/* ============================================================
   KSHN — Page layout patterns
   ============================================================ */

/* ---------------- Hero: "The Lineup" — the products ARE the hero ----------------
   No copy block. The state's flavors rise up from below the fold as a row of
   interactive 3D tins (staggered arrival, then idle float). Middle tin sits open. */
.hero {
  position: relative; color: var(--ink);
  min-height: clamp(620px, 96svh, 940px);
  display: flex; align-items: center;
  overflow: hidden; isolation: isolate;
}
.hero-deco { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-sky { position: absolute; inset: 0; background: linear-gradient(180deg, #FBF9F4 0%, var(--paper-2) 70%, #F1EDE3 100%); }
/* soft warm glow behind the products (the brand's sunset, used as a whisper) */
.hero-sun {
  position: absolute; left: 50%; top: 34%; width: min(70vw, 760px); aspect-ratio: 1;
  translate: -50% 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(251,177,84,.26), rgba(231,135,40,.09) 48%, rgba(255,255,255,0) 72%);
  filter: blur(10px);
}
@media (prefers-reduced-motion: no-preference) { .hero-sun { animation: sunRise 6s var(--ease) both; } }
@keyframes sunRise { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.hero-haze { display: none; }

/* split layout: copy column left, 3D tin cluster right */
.hero-split-grid {
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; width: 100%;
  padding-block: clamp(5.5rem, 10vh, 7rem) clamp(3rem, 6vh, 4.5rem);
}
/* grid items default to min-width:auto, which lets long content force the
   column past the viewport on small phones — every split child must shrink */
.hero-split-grid > *, .formula-grid > *, .anatomy-grid > *, .split > * { min-width: 0; }
.hero-title {
  position: relative; z-index: 2;
  font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: 1.02; letter-spacing: -.03em;
  max-width: 15ch; margin: .7rem 0 0; text-wrap: balance;
}
.hero-sub {
  position: relative; z-index: 2;
  color: var(--ink-soft); font-weight: 500;
  font-size: clamp(.95rem, 1.4vw, 1.12rem); line-height: 1.55;
  max-width: 48ch; margin: 1rem 0 0; text-wrap: pretty;
}
.hero-hint {
  display: inline-block; margin-top: 1.6rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-hint::before { content: "✦ "; color: var(--burnt); }

/* the right stage: ghost wordmark behind a 3-over-2 cluster of tins */
.hero-stage3 { position: relative; height: clamp(430px, 58vh, 620px); }
.hero-stage3 .hero-clouds { position: absolute; inset: -10% -6%; z-index: 0; pointer-events: none; }
.hero-stage3 .hero-wordmark { top: 50%; font-size: clamp(4rem, 12vw, 9.5rem); }
.hero-cluster-mount, .hero3d.hero-cluster-mount { position: relative; z-index: 1; width: 100%; height: 100%; }
.hero-cluster { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: 1fr 1fr; height: 100%; }
/* sequenced entrance: each tin transitions in when its model is ready
   (.is-in is granted one by one by Hero3D). Springy settle + de-blur, with
   odd/even cells sweeping in from opposite sides. */
.hero-tin {
  position: relative; opacity: 0;
  transform: translate(-4vw, 16vh) scale(.7) rotate(-10deg);
  filter: blur(10px);
  transition:
    opacity .55s var(--ease),
    filter .8s var(--ease),
    transform .95s cubic-bezier(.22, 1.36, .3, 1);
  will-change: transform, opacity, filter;
}
.hero-tin:nth-child(even) { transform: translate(4vw, 16vh) scale(.7) rotate(9deg); }
.hero-tin.is-in { opacity: 1; transform: none; filter: blur(0); }
/* blur transitions over WebGL canvases are expensive on mobile GPUs — keep
   the rise, drop the blur, shorten the travel */
@media (max-width: 880px) {
  .hero-tin, .hero-tin:nth-child(even) {
    filter: none;
    transform: translate(0, 9vh) scale(.86);
    transition: opacity .5s var(--ease), transform .7s var(--ease);
  }
  .hero-tin.is-in { filter: none; transform: none; }
}
/* 3 on the shelf, 2 nestled below — small offsets keep it organic, not gridded */
.hero-tin:nth-child(1) { grid-column: 1 / 3; grid-row: 1; translate: 0 6%; }
.hero-tin:nth-child(2) { grid-column: 3 / 5; grid-row: 1; translate: 0 -2%; }
.hero-tin:nth-child(3) { grid-column: 5 / 7; grid-row: 1; translate: 0 7%; }
.hero-tin:nth-child(4) { grid-column: 2 / 4; grid-row: 2; translate: -4% 2%; }
.hero-tin:nth-child(5) { grid-column: 4 / 6; grid-row: 2; translate: 4% 4%; }
@keyframes tinArrive {
  from { opacity: 0; transform: translateY(14vh) scale(.82) rotate(-3deg); }
  to { opacity: 1; transform: none; }
}
.hero-tin-bob { height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .hero-tin-bob { animation: tinBob 7s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-tin { opacity: 1; transform: none; transition: none; }
}
/* the traveler's hero anchor: a stable, unanimated cell (the traveler itself
   does the entrance — an animated anchor would throw its measurements off) */
.hero-tin-slot { width: 100%; height: 100%; }
.hero-tin:has(.hero-tin-slot) { opacity: 1; transform: none; transition: none; }

/* the traveling tin: a document-absolute host steered per scroll frame from
   the hero slot down into the science stage */
.traveler {
  position: absolute; z-index: 50; pointer-events: none;
  will-change: top, left, width, height;
}
.traveler.arrive { animation: tinArrive 1s var(--ease) .25s backwards; }
.traveler model-viewer { pointer-events: auto; }
.traveler .traveler-bob { width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .traveler .traveler-bob { animation: tinBob 7s ease-in-out -1.7s infinite; }
}
.hero-split .hero-cta { position: relative; z-index: 2; margin-top: 1.8rem; display: flex; gap: .8rem; flex-wrap: wrap; }

/* small screens: copy stacks on top; the cluster becomes ONE centered tin
   (the traveler — it spins 360° and departs down the page on scroll) */
@media (max-width: 880px) {
  .hero { min-height: clamp(560px, 90svh, 780px); }
  .hero-split-grid { grid-template-columns: 1fr; gap: 1.2rem; padding-top: clamp(5rem, 14vw, 6rem); }
  /* a legacy rule gives .hero-copy order:1 — keep the copy above the tin */
  .hero-split .hero-copy { order: 0; }
  .hero-split .hero-stage3 { order: 1; }
  .hero-stage3 { height: clamp(280px, 42vh, 400px); }
  .hero-cluster { display: grid; place-items: center; }
  .hero-tin { width: min(80vw, 380px); height: 100%; translate: 0 0; grid-column: auto; grid-row: auto; }
}

/* hero content plays its entrance on load; base state is VISIBLE so it never gets stuck hidden */
.hero .anim { opacity: 1; transform: none; animation: heroUp .85s var(--ease) backwards; }
.hero .anim.d1 { animation-delay: .12s; }
.hero .anim.d2 { animation-delay: .24s; }
.hero .anim.d3 { animation-delay: .36s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(26px); } }
@media (prefers-reduced-motion: reduce) { .hero .anim { animation: none; } }

/* layout */
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center; padding-block: clamp(5.5rem, 10vw, 7rem) clamp(3.5rem, 6vw, 4.5rem);
}
.hero-copy { position: relative; z-index: 2; }
.hero .display { color: var(--ink); max-width: 16ch; }
.hero .lead { color: var(--ink-soft); max-width: 46ch; margin-top: 1.2rem; }
.hero .hero-cta { margin-top: 2rem; display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.hero .hero-stats { display: flex; gap: 2rem; margin-top: 2.5rem; flex-wrap: wrap; }
.hero .hero-stats div b { font-family: var(--display); font-size: 1.6rem; display: block; }
.hero .hero-stats div span { font-size: .82rem; opacity: .9; text-transform: uppercase; letter-spacing: .1em; }
/* ---------------- Product showcase (interior pages, e.g. pouches hero) ---------------- */
.hero-showcase {
  position: relative; height: clamp(420px, 52vw, 640px);
  display: grid; place-items: center;
  padding: clamp(20px, 3vw, 36px) clamp(12px, 2vw, 28px) clamp(40px, 5vw, 56px);
}

/* ghost-type layer behind the product (parallax target; clouds removed in reskin) */
.hero-clouds { position: absolute; inset: -16% -8%; z-index: 0; will-change: transform; }
.hero-clouds .cloud { display: none; }

.hero-wordmark {
  position: absolute; left: 50%; top: 40%; translate: -50% -50%;
  font-family: var(--display); font-weight: 700; letter-spacing: -.04em;
  font-size: clamp(4rem, 13vw, 9rem); line-height: 1; color: var(--ink);
  opacity: .05;
  user-select: none; white-space: nowrap;
}

/* decorations must never steal hover from the 3D tins */
.hero-clouds, .hero-showcase .squiggle, .hero-showcase .loose-pouch { pointer-events: none; }
.hero3d { position: relative; z-index: 1; width: 100%; height: 100%; }
@keyframes tinBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------------- Function-First Formula: copy left, annotated film right ----------------
   The vertical film sits in a portrait stage; curved leader lines run from
   labels to dots that TOUCH the film (lines render above it). Hover/focus/tap
   a label for the why. */
.formula-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.formula-copy .lead { max-width: 44ch; }
.formula { position: relative; }
.formula-glow {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 0;
  width: min(720px, 100%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(112,186,225,.22), rgba(112,186,225,.07) 55%, transparent 75%);
  filter: blur(26px);
}
.formula-stage { position: relative; z-index: 1; aspect-ratio: 700 / 800; max-width: 640px; margin-inline: auto; }
/* lines sit ABOVE the film so they visibly land on it */
.formula-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.formula-lines path {
  fill: none; stroke: var(--c-sky); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset .7s var(--ease);
}
.formula.in .formula-lines path { stroke-dashoffset: 0; }
.formula.in .formula-lines path:nth-child(2) { transition-delay: .08s; }
.formula.in .formula-lines path:nth-child(3) { transition-delay: .16s; }
.formula.in .formula-lines path:nth-child(4) { transition-delay: .24s; }
.formula.in .formula-lines path:nth-child(5) { transition-delay: .32s; }
.formula.in .formula-lines path:nth-child(6) { transition-delay: .4s; }
.formula.in .formula-lines path:nth-child(7) { transition-delay: .48s; }
/* the pouch stage: a square box mid-stage that the traveling pouch docks into
   (and where the fallback pouch renders); the callout dots touch its edges */
.formula-pouch {
  position: absolute; left: 28.6%; top: 25%; width: 42.8%; aspect-ratio: 1;
  z-index: 1;
}
.formula-pouch model-viewer { width: 100%; height: 100%; }
/* the pouch's traveling host starts invisible (it appears at science phase 3);
   it sits ABOVE the tin so it reads as popping out of the open mouth */
.traveler.pouch-host { opacity: 0; transition: opacity .35s var(--ease); z-index: 55; }
.callout { position: absolute; inset: 0; pointer-events: none; }
.co-dot {
  position: absolute; left: var(--dx); top: var(--dy); translate: -50% -50%;
  width: 13px; height: 13px; border-radius: 50%; background: var(--c-sky);
  box-shadow: 0 0 0 4px rgba(112,186,225,.25);
  pointer-events: auto; cursor: pointer; z-index: 3;
  transition: transform .2s var(--ease);
}
.callout:hover .co-dot { transform: scale(1.25); }
@media (prefers-reduced-motion: no-preference) {
  .co-dot { animation: dotPulse 2.6s ease-in-out infinite; }
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(112,186,225,.25); }
  50% { box-shadow: 0 0 0 9px rgba(112,186,225,.12); }
}
.co-label {
  position: absolute; left: var(--lx); top: var(--ly); translate: -50% -50%;
  pointer-events: auto; z-index: 3;
  font-family: var(--display); font-weight: 700; font-size: clamp(.85rem, 1.35vw, 1.08rem);
  color: var(--ink); line-height: 1.15; text-align: center; max-width: 12ch;
  padding: .2em .35em; border-radius: 8px;
  transition: color .2s var(--ease);
}
.co-label:hover { color: var(--burnt); }
.co-info {
  position: absolute; left: var(--lx); top: calc(var(--ly) + 2.4rem); translate: -50% 0;
  z-index: 4; width: max-content; max-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: .6rem .8rem; font-size: .84rem; line-height: 1.45; color: var(--ink-soft);
  box-shadow: var(--sh-md); text-align: left;
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.callout:hover .co-info,
.callout:focus-within .co-info,
.callout.open .co-info { opacity: 1; transform: none; pointer-events: auto; }
@media (prefers-reduced-motion: reduce) {
  .co-dot { animation: none; }
  .co-info { transition: none; }
  .formula-lines path { stroke-dashoffset: 0 !important; transition: none; }
}

/* small screens: copy stacks on top, then the pouch + a plain annotated list */
@media (max-width: 760px) {
  .formula-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .formula-stage { aspect-ratio: auto; max-width: none; display: flex; flex-direction: column; gap: .6rem; }
  .formula-lines, .co-dot { display: none; }
  .formula-pouch { position: relative; left: auto; top: auto; width: 100%; aspect-ratio: 4 / 3; }
  .callout { position: static; pointer-events: auto; padding: .55rem .2rem; border-bottom: 1px solid var(--line); }
  .callout:last-child { border-bottom: 0; }
  .co-label { position: static; translate: none; max-width: none; text-align: left; padding: 0; display: block; }
  .co-info {
    position: static; translate: none; opacity: 1; transform: none; pointer-events: auto;
    border: 0; box-shadow: none; background: none; padding: .15rem 0 0; max-width: none; width: auto;
  }
}

/* ---------------- Inside the Session: pinned science act ----------------
   200svh section, 100svh sticky stage; scroll scrubs the tin while the
   .acard annotations activate via .phase-N classes from use-scroll-scrub. */
/* .dark sets overflow:hidden, which would turn the section into the sticky
   containing block and kill the pin — the pin stage clips instead */
.anatomy.dark, .anatomy { min-height: 200svh; position: relative; overflow: visible; }
.anatomy-pin {
  position: sticky; top: 0; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  padding-block: clamp(2.5rem, 5vh, 4rem);
}
.anatomy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.anatomy-stage { position: relative; height: clamp(420px, 44vw, 580px); }
.anatomy-stage #anatomy3d-mount { position: relative; z-index: 1; width: 100%; height: 100%; }
.anatomy-glow {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(48,197,228,.22), rgba(11,181,149,.08) 55%, transparent 75%);
  filter: blur(30px);
}
.anatomy-copy .h2 { color: #fff; margin-top: .7rem; }
.anatomy-cards { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.6rem; }
.acard {
  background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); border-radius: 12px;
  padding: 1rem 1.2rem; color: #fff;
  opacity: .35; transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.acard .ak { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--peach); margin-bottom: .35rem; }
.acard h4 { color: #fff; font-size: 1.1rem; }
.acard p { color: rgba(255,255,255,.72); font-size: .92rem; margin: .35rem 0 0; }
.anatomy.phase-1 .acard[data-phase="1"],
.anatomy.phase-2 .acard[data-phase="2"],
.anatomy.phase-3 .acard[data-phase="3"] { opacity: 1; transform: none; }

/* DRAW: the onset curves stroke themselves when phase 1 lands */
.onset-chart { width: 100%; height: auto; margin-top: .8rem; display: block; }
.onset-chart .oc-edible, .onset-chart .oc-kshn {
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.2s var(--ease);
}
.onset-chart .oc-kshn { transition-delay: .3s; }
.onset-chart .oc-dot { transform: scale(0); transform-origin: center; transform-box: fill-box; transition: transform .35s var(--ease) 1.4s; }
.anatomy.phase-1 .oc-edible, .anatomy.phase-1 .oc-kshn { stroke-dashoffset: 0; }
.anatomy.phase-1 .oc-dot { transform: scale(1); }

/* mobile: pinned and scrubbed EXACTLY like desktop, in a compact single
   column — one phase card visible at a time so the pin fits 100svh */
@media (max-width: 880px) {
  .anatomy-pin { align-items: flex-start; padding-top: 4.8rem; }
  .anatomy-grid { grid-template-columns: 1fr; gap: .8rem; align-items: start; }
  .anatomy-stage { height: clamp(220px, 34svh, 320px); }
  .anatomy-copy .h2 { font-size: clamp(1.4rem, 5.5vw, 1.8rem); }
  .anatomy-cards { position: relative; min-height: 250px; margin-top: .9rem; }
  /* swap-in-place: only the CURRENT phase's card is visible (stacked cards
     ghost each other's text otherwise) */
  .anatomy-cards .acard { position: absolute; left: 0; right: 0; top: 0; opacity: 0; }
  .anatomy.phase-2 .acard[data-phase="1"] { opacity: 0; transform: translateY(-10px); pointer-events: none; }
  .anatomy.phase-3 .acard[data-phase="2"] { opacity: 0; transform: translateY(-10px); pointer-events: none; }
  /* shorter chart so the phase-1 card fits small phones */
  .onset-chart { max-height: 118px; }
  /* keep the pinned content within one viewport */
  .anatomy-copy > .btn { display: none; }
}

/* reduced motion: unpinned, everything visible, curves pre-drawn */
@media (prefers-reduced-motion: reduce) {
  .anatomy { min-height: auto; }
  .anatomy-pin { position: static; min-height: auto; padding-block: var(--sect-y); align-items: center; }
  .anatomy-stage { height: clamp(340px, 70vw, 460px); }
  .anatomy-cards { min-height: 0; }
  .anatomy-cards .acard, .acard { position: static; opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
  .anatomy-copy > .btn { display: inline-flex; }
  .onset-chart .oc-edible, .onset-chart .oc-kshn { stroke-dashoffset: 0; transition: none; }
  .onset-chart .oc-dot { transform: scale(1); transition: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 880px) {
  .anatomy-grid { grid-template-columns: 1fr; }
}

/* tin cluster */
.tin-cluster { position: relative; z-index: 1; width: 100%; height: 100%; will-change: transform; perspective: 1100px; }
.tin {
  position: absolute; left: 50%; top: 50%;
  width: 46%; aspect-ratio: 1 / 1.04;
  --rot: 0deg; --scl: 1;
  transform:
    translate(calc(-50% + var(--driftX, 0px) + var(--proxX, 0px)),
              calc(-50% + var(--driftY, 0px) + var(--proxY, 0px)))
    rotate(var(--rot)) scale(var(--scl));
  transition: filter .4s var(--ease);
}
.tin__bob { width: 100%; height: 100%; transform-style: preserve-3d; }
.tin__can { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s var(--ease); }

/* soft ground shadow */
.tin__shadow {
  position: absolute; left: 50%; bottom: -7%; translate: -50% 0;
  width: 78%; height: 12%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(20,12,30,.5), rgba(20,12,30,0) 72%);
  filter: blur(5px); z-index: -1;
}

/* cylinder side wall (dark navy/charcoal) */
.tin__side {
  position: absolute; left: 4%; right: 4%; top: 30%; bottom: 5%;
  border-radius: 46% 46% 48% 48% / 16% 16% 22% 22%;
  background:
    linear-gradient(90deg, #070d16 0%, #1d2b40 20%, #34465f 49%, #16243a 80%, #060c14 100%);
  box-shadow:
    inset 0 -10px 22px rgba(0,0,0,.5), inset 0 6px 14px rgba(255,255,255,.05),
    inset 13px 0 26px -10px rgba(120,180,255,.4), inset -13px 0 26px -12px rgba(255,150,80,.34);
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  gap: .35em; padding-bottom: 11%;
}
.tin__side::after { /* vertical sheen */
  content: ""; position: absolute; left: 24%; top: 0; bottom: 0; width: 14%;
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.16), rgba(255,255,255,0));
}
.tin__name {
  font-family: var(--display); font-weight: 700; letter-spacing: .02em;
  font-size: clamp(.6rem, 1.7vw, .92rem); color: var(--accent); white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0,0,0,.5); z-index: 1;
}
.tin__dots {
  display: inline-flex; align-items: center; gap: .4em; z-index: 1; white-space: nowrap;
  font-family: var(--body); font-weight: 700; letter-spacing: .06em;
  font-size: clamp(.36rem, .95vw, .5rem); color: rgba(255,255,255,.72);
}
.tin__dots i { width: .42em; height: .42em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
/* back tins are smaller — shrink their labels so nothing clips */
.tin--back .tin__name { font-size: clamp(.44rem, 1.18vw, .66rem); letter-spacing: 0; }
.tin--back .tin__dots { font-size: clamp(.3rem, .76vw, .42rem); }

/* colored gradient rim ring just under the lid */
.tin__rim {
  position: absolute; left: 2%; right: 2%; top: 24%; height: 16%;
  border-radius: 50%; background: var(--rim);
  box-shadow: 0 4px 16px rgba(0,0,0,.32), 0 0 22px -4px var(--accent);
}

/* top lid ellipse with logo */
.tin__lid {
  position: absolute; left: 5%; right: 5%; top: 4%; height: 40%;
  border-radius: 50%;
  background:
    radial-gradient(120% 150% at 50% 18%, #2b3c52 0%, #16212f 58%, #0c141e 100%);
  box-shadow:
    inset 0 2px 4px rgba(255,255,255,.18),
    inset 0 -6px 14px rgba(0,0,0,.5),
    0 6px 16px rgba(0,0,0,.3);
  display: grid; place-items: center; transform: translateZ(1px);
}
.tin__lid::before { /* rim highlight on lid edge */
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.1);
}
.tin__lid::after { /* glossy environment reflection sweep */
  content: ""; position: absolute; left: 12%; top: 7%; width: 56%; height: 32%;
  border-radius: 50%; transform: rotate(-14deg);
  background: linear-gradient(120deg, rgba(255,255,255,.5), rgba(255,255,255,0) 68%);
  filter: blur(2px); pointer-events: none;
}
.tin__logo { width: 58%; height: 58%; color: #fff; opacity: .9; }

/* depth staggering — position + art transform via vars (JS drives drift/prox) */
.tin--front { width: 50%; z-index: 3; left: 56%; top: 58%; --rot: -7deg; --scl: 1; }
.tin--front .tin__shadow { filter: blur(7px); }
.tin--back  { width: 38%; z-index: 1; filter: saturate(.92) brightness(.96); }
.tin--spearmint { left: 24%; top: 34%; --rot: 9deg; --scl: .96; z-index: 2; }
.tin--citrus    { left: 76%; top: 26%; --rot: -13deg; --scl: .86; filter: blur(.4px) saturate(.9); }
.tin.is-near { filter: drop-shadow(0 0 26px rgba(255,255,255,.45)) brightness(1.05); }

/* idle bob lives on its own layer so it never collides with art/drift/tilt transforms */
@media (prefers-reduced-motion: no-preference) {
  .tin--front .tin__bob     { animation: bobA 7s ease-in-out infinite; }
  .tin--spearmint .tin__bob { animation: bobB 8.5s ease-in-out -1.5s infinite; }
  .tin--citrus .tin__bob    { animation: bobC 9.5s ease-in-out -3s infinite; }
}
@keyframes bobA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes bobB { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes bobC { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-19px); } }

/* ---- responsive ---- */
@media (max-width: 880px) {
  .hero { align-items: flex-start; }
  .hero-grid { grid-template-columns: 1fr; gap: clamp(1rem, 5vw, 2rem); padding-top: clamp(5rem, 16vw, 7rem); }
  .hero-copy { order: 1; }
  .hero-showcase { order: 2; height: clamp(300px, 64vw, 420px); margin-top: -1rem; }
  .hero-wordmark { top: 34%; }
}
@media (max-width: 560px) {
  .hero-showcase { height: 300px; }
  .tin { width: 50%; }
  .tin--front { width: 56%; left: 54%; top: 60%; }
  .tin--spearmint { left: 22%; top: 36%; }
  .tin--citrus { left: 80%; top: 30%; }
  .hero-wordmark { font-size: clamp(3.4rem, 22vw, 6rem); }
}

/* ---------------- Generic section header ---------------- */
.sect-head { max-width: 60ch; }
.sect-head.center { margin-inline: auto; text-align: center; }
.sect-head .h2 { margin-top: .7rem; }
.sect-head p { margin-top: 1rem; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1080px) { .g-5 { grid-template-columns: repeat(3, 1fr); } .g-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) { .g-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .g-2, .g-3, .g-4, .g-5 { grid-template-columns: 1fr; } }

/* the flavor carousel: a swipeable snap rail at every size, edge-faded,
   alternating rhythm, cursor-tilt cards (data-tilt via home.js) */
.lineup {
  display: flex; gap: clamp(1rem, 2vw, 1.6rem);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 1.4rem .4rem 1.8rem;
  margin-inline: calc(var(--pad-x) * -1); padding-inline: var(--pad-x);
  scrollbar-width: none; cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.lineup:active { cursor: grabbing; }
.lineup::-webkit-scrollbar { display: none; }
.lineup > * { flex: 0 0 clamp(260px, 25vw, 330px); scroll-snap-align: center; }
.lineup .flavor-card { border-radius: var(--r-xl); border: 0; box-shadow: 0 16px 44px -24px rgba(16,34,43,.35); }

/* Pick Your Vibe — product cards on the flavor's brand gradient with the
   state's availability map behind the live 3D tin, white info bar with the
   flavor-colored name and a black SHOP pill */
.vibe-ultra {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: .9rem;
  background: var(--vc-grad, #f3f2ee); padding: 1rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.vibe-ultra:hover { transform: translateY(-6px); box-shadow: 0 26px 54px -26px rgba(16,34,43,.45); }
.vu-media { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.vu-media .prod-fallback { width: 78%; }
.vu-media img {
  position: absolute; inset: 6%; width: 88%; height: 88%; object-fit: contain;
  transform: rotate(-12deg); opacity: 0;
  filter: drop-shadow(0 26px 26px rgba(16,34,43,.3));
  transition: transform .45s var(--ease), opacity .4s var(--ease);
}
.vu-media.has-photo img { opacity: 1; }
.vu-media.has-photo .prod-fallback { display: none; }
.vibe-ultra:hover .vu-media img { transform: rotate(-6deg) scale(1.05); }
/* 3D variant: a live tin model fills the media box; the state's availability
   map spans the WHOLE card behind everything — oversized, anchored right and
   bleeding off the edge as a darker shade of the same gradient (multiply),
   like the brand square renders */
.vu-map {
  position: absolute; top: -4%; left: 0; width: 100%; height: 108%;
  object-fit: contain; object-position: center;
  mix-blend-mode: multiply; opacity: .95;
  filter: brightness(.72) saturate(1.05);
  pointer-events: none;
}
.vu-media-3d, .vibe-ultra .vu-bar { position: relative; z-index: 1; }
/* push the whole 3D canvas down so the tin rides the middle of the card */
.vu-media-3d { margin-top: 13%; }
.vu-media-3d model-viewer { position: relative; z-index: 1; }
.vu-bar {
  display: flex; align-items: center; gap: .8rem;
  background: #fff; border-radius: 14px; padding: .85rem 1rem;
  box-shadow: 0 8px 22px -16px rgba(16,34,43,.3);
}
.vu-names { min-width: 0; }
.vu-flavor {
  display: block; font-family: var(--display); font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em; font-size: 1.02rem;
  line-height: 1.15;
  /* accent hue pulled toward ink so light flavors (citrus, sweetmint) keep
     readable contrast on the white bar */
  color: color-mix(in srgb, var(--accent, var(--burnt)) 68%, var(--ink));
}
.vu-cat {
  display: block; margin-top: .15rem; font-weight: 700; font-size: .75rem;
  text-transform: uppercase; letter-spacing: .02em; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@media (max-width: 760px) {
  .vu-shop { padding: .55em .9em; font-size: .8rem; }
  .vu-bar { padding: .75rem .85rem; }
}
.vu-shop {
  margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: .45em;
  background: var(--ink); color: #fff; border-radius: 999px; padding: .62em 1.1em;
  font-family: var(--display); font-weight: 700; font-size: .85rem;
  transition: gap .25s var(--ease);
}
.vibe-ultra:hover .vu-shop { gap: .7em; }
.vu-shop svg { width: 16px; height: 16px; }
.lineup .flavor-card .fc-media { aspect-ratio: 1 / 1.06; }
.lineup .flavor-card .fc-photo { transition: transform .5s var(--ease); }
.lineup .flavor-card:hover { transform: translateY(-10px); box-shadow: 0 34px 70px -30px rgba(16,34,43,.45); }
.lineup .flavor-card:hover .fc-photo { transform: scale(1.07); }
.lineup .flavor-card .fc-name { font-size: 1.45rem; }
@media (prefers-reduced-motion: reduce) {
  .lineup .flavor-card:hover { transform: none; }
  .lineup .flavor-card:hover .fc-photo { transform: none; }
}
@media (max-width: 760px) { .lineup > * { flex: 0 0 78%; } }

/* journal carousel (more than three picked articles): same rail mechanics as
   the flavor lineup — swipe on mobile, arrow buttons on desktop */
.journal-rail {
  display: flex; gap: clamp(1rem, 2vw, 1.5rem);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-block: .5rem 1.2rem; margin-top: clamp(2rem, 4vw, 3rem);
  mask-image: linear-gradient(90deg, transparent 0, #000 2.5%, #000 97.5%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2.5%, #000 97.5%, transparent 100%);
}
.journal-rail::-webkit-scrollbar { display: none; }
.journal-rail > * { flex: 0 0 clamp(280px, 28vw, 360px); scroll-snap-align: center; }
@media (max-width: 760px) { .journal-rail > * { flex: 0 0 82%; } }
.jr-nav { margin-top: .2rem; }

/* carousel nav row: pill arrows left, shop CTA right */
.lineup-nav { display: flex; align-items: center; gap: .6rem; margin-top: .6rem; }
.lnav {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  font-size: 1.15rem; line-height: 1; display: grid; place-items: center;
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.lnav:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
@media (max-width: 760px) { .lnav { display: none; } .lineup-nav .btn { margin-inline: auto !important; } }

/* ---------------- Two-up / Best of both worlds ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 4vw, 4rem); align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }
/* ruled diptych: two sharp panels butted at one seam, a VS pill straddling it */
.versus { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.versus .vcard { background: var(--paper-2); border: 1px solid var(--line); border-radius: 0; padding: 1.6rem 1.4rem; }
.versus .vcard + .vcard { border-left: 0; }
.versus .vc-title { display: block; font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-bottom: .8rem; }
.versus .vcard ul li { padding: .4rem 0 .4rem 1.4rem; position: relative; font-size: .94rem; color: var(--ink-soft); }
.versus .vcard ul li::before { content: ""; position: absolute; left: 0; top: .95em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-soft); opacity: .5; }
/* DRAW: strikes draw across the smoking list when the diptych reveals */
.versus .strike { text-decoration: none; }
.versus .strike::after {
  content: ""; position: absolute; left: 1.4rem; right: 18%; top: 50%; height: 1.5px;
  background: var(--ink-soft); transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease);
}
.versus.in .strike:nth-child(1)::after { transform: scaleX(1); transition-delay: .35s; }
.versus.in .strike:nth-child(2)::after { transform: scaleX(1); transition-delay: .47s; }
.versus.in .strike:nth-child(3)::after { transform: scaleX(1); transition-delay: .59s; }
.versus.in .strike:nth-child(4)::after { transform: scaleX(1); transition-delay: .71s; }
.versus .vcard.win { background: var(--flavor, var(--sunset-warm)); color: #fff; border-color: transparent; transition: filter .2s var(--ease); }
.versus .vcard.win:hover { filter: saturate(1.15); }
.versus .vcard.win .vc-title { color: #fff; }
.versus .vcard.win ul li { color: rgba(255,255,255,.94); }
.versus .vcard.win ul li::before { background: #fff; opacity: 1; }
.versus .vs-pill {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 2;
  padding: .45em .9em; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-family: var(--display); font-weight: 700; font-size: .9rem; color: var(--ink);
  box-shadow: var(--sh-sm);
  transform: scale(.6); opacity: 0; transition: transform .35s var(--ease) .35s, opacity .35s var(--ease) .35s;
}
.versus.in .vs-pill { transform: scale(1); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .versus .strike::after { transform: scaleX(1) !important; transition: none; }
  .versus .vs-pill { transform: scale(1); opacity: 1; transition: none; }
  .versus .vcard.win, .versus .vcard.win:hover { filter: none; transition: none; }
}
@media (max-width: 720px) {
  .versus { grid-template-columns: 1fr; }
  .versus .vcard + .vcard { border-left: 1px solid var(--line); border-top: 0; }
  .versus .vs-pill { display: none; }
}

/* ---------------- Ambient proof: one oversized pull-quote at a time ---------------- */
.proof { border-block: 1px solid var(--line); padding: clamp(2rem, 5vw, 3.2rem) 0; }
.proof-stage { position: relative; min-height: clamp(170px, 22vw, 230px); }
.pquote {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transform: translateY(12px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  pointer-events: none;
}
.pquote.is-on { opacity: 1; transform: none; pointer-events: auto; }
.pquote blockquote {
  margin: 0; font-family: var(--display); font-weight: 600;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.18; letter-spacing: -.02em;
  color: var(--ink); max-width: 26ch; position: relative; padding-left: .9em;
}
.pquote blockquote::before { content: "“"; position: absolute; left: 0; top: -.08em; color: var(--burnt); }
.pquote figcaption { display: flex; align-items: center; gap: .6rem; margin-top: 1.1rem; font-size: .9rem; color: var(--ink-soft); }
.pquote figcaption .av { width: 26px; height: 26px; border-radius: 50%; background: var(--flavor, var(--sunset-warm)); flex: none; }
.pquote figcaption b { color: var(--ink); font-family: var(--display); }
.pquote figcaption i { font-style: normal; color: var(--burnt); letter-spacing: .12em; }
.proof-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.4rem; }
.proof-dots { display: flex; gap: .5rem; }
/* 44px touch targets (a11y) — the visible dot is the ::after, the button is the hit area */
.proof-dots button { width: 44px; height: 44px; margin: -14px; padding: 0; background: none; display: grid; place-items: center; }
.proof-dots button::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line); transition: background .2s, transform .2s; }
.proof-dots button.on::after { background: var(--ink); transform: scale(1.2); }
.proof-tag { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) {
  .proof-stage { min-height: 0; }
  .pquote { position: static; opacity: 1; transform: none; pointer-events: auto; padding-block: 1rem; border-bottom: 1px solid var(--line); }
  .pquote:last-child { border-bottom: 0; }
  .proof-dots { display: none; }
}

/* ---------------- Checklist ---------------- */
.checklist li { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem 0; }
.checklist li .ck { width: 26px; height: 26px; border-radius: 50%; background: var(--flavor, var(--sunset-warm)); color: #fff; flex: none; display: grid; place-items: center; margin-top: 2px; }
.checklist li .ck svg { width: 15px; }
.checklist li b { font-family: var(--display); font-weight: 600; }
.checklist li span { display: block; font-size: .9rem; color: var(--ink-soft); }
.dark .checklist li span { color: rgba(255,255,255,.66); }

/* ---------------- Usage steps ---------------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: step; }
/* DRAW: a connector rules through the numerals when the row reveals */
.steps::before {
  content: ""; position: absolute; left: 0; right: 0; top: 2.6rem; height: 1px;
  background: var(--line); transform: scaleX(0); transform-origin: left;
  transition: transform .9s var(--ease) .2s; z-index: 1;
}
.steps.in::before { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .steps::before { transform: scaleX(1) !important; transition: none; } }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } .steps::before { display: none; } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.4rem; position: relative; z-index: 2; }
.step .num { font-family: var(--display); font-weight: 700; font-size: clamp(3rem, 6vw, 4.5rem); line-height: 1; background: var(--flavor, var(--sunset-warm)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step .ic { width: 40px; height: 40px; margin: .8rem 0; color: var(--burnt); }
.step .ic img { width: 100%; height: 100%; object-fit: contain; }
.step h4 { font-size: 1.15rem; }
.step p { font-size: .9rem; color: var(--ink-soft); margin: .3rem 0 0; }
.step .step-foot { display: block; margin-top: .6rem; font-size: .78rem; color: var(--ink-soft); font-style: italic; }

/* ---------------- Testimonials ---------------- */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.8rem; display: flex; flex-direction: column; gap: 1rem; }
.quote .stars { color: var(--peach); letter-spacing: 2px; }
.quote p { font-size: 1.08rem; line-height: 1.55; font-weight: 500; }
.quote .who { display: flex; align-items: center; gap: .7rem; margin-top: auto; }
.quote .who .av { width: 42px; height: 42px; border-radius: 50%; background: var(--sunset-warm); flex: none; }
.quote .who b { font-family: var(--display); display: block; }
.quote .who span { font-size: .85rem; color: var(--ink-soft); }

/* ---------------- Instagram strip ---------------- */
/* film strip: square crops butted edge-to-edge, closing on the same ruled beat */
.ig-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; border: 1px solid var(--line); }
@media (max-width: 920px) { .ig-strip { grid-template-columns: repeat(3, 1fr); } }
.ig-strip a { aspect-ratio: 1; border-radius: 0; overflow: hidden; position: relative; }
.ig-strip a .ph { border-radius: 0; height: 100%; }
.ig-strip a::after { content: ""; position: absolute; inset: 0; background: rgba(20,16,13,.0); transition: .25s; }
.ig-strip a:hover::after { background: rgba(20,16,13,.22); }
.ig-strip .ig-follow {
  display: grid; place-items: center; background: var(--flavor, var(--sunset-warm));
  color: #fff; font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 1.8vw, 1.3rem);
  gap: .2em; text-align: center; transition: filter .25s var(--ease);
}
.ig-strip .ig-follow:hover { filter: saturate(1.2); }
.ig-strip .ig-follow:hover span { translate: 3px -3px; }
.ig-strip .ig-follow span { display: inline-block; transition: translate .25s var(--ease); }
.ig-strip .ig-follow::after { display: none; }

/* ---------------- Page hero band (interior pages) ---------------- */
.band { position: relative; overflow: hidden; color: #fff; padding-block: clamp(7rem, 14vw, 11rem) clamp(3rem,6vw,5rem); }
.band.flavor-band { background: var(--flavor); }
/* interior heroes: deep premium band with a whisper of the brand sunset */
.band.sky-band, .band.sunset-band {
  background:
    radial-gradient(90% 130% at 88% -20%, rgba(231,135,40,.32) 0%, rgba(231,135,40,0) 52%),
    radial-gradient(120% 150% at 12% 110%, #14424E 0%, var(--night) 64%);
}
.band.warm-band { background: var(--sunset-warm); }
.band .display, .band .h1 { color: #fff; }
.band .lead { color: rgba(255,255,255,.95); }
.band-art { position: absolute; right: -6%; top: 50%; translate: 0 -50%; width: min(40vw, 420px); opacity: .9; }

/* ---------------- Flavor detail product facts ---------------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
@media (max-width: 620px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts .fact { background: #fff; padding: 1.3rem; }
.facts .fact span { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); font-weight: 700; }
.facts .fact b { font-family: var(--display); font-size: 1.4rem; display: block; margin-top: .25rem; }

/* ---------------- Legal documents (Privacy, Terms) ---------------- */
.legal { max-width: 800px; margin-inline: auto; color: var(--ink); }
.legal-updated { margin-top: 1rem; font-size: .9rem; color: rgba(16,34,43,.7); }
.legal h2 {
  font-family: var(--display); font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  margin: 2.4rem 0 .6rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
}
.legal h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { font-size: 1.02rem; font-weight: 700; margin: 1.3rem 0 .4rem; color: var(--ink); }
.legal p { font-size: .98rem; line-height: 1.7; color: var(--ink-soft); margin: .6rem 0; }
.legal ul { margin: .6rem 0 .6rem 1.1rem; display: flex; flex-direction: column; gap: .4rem; }
.legal li { font-size: .98rem; line-height: 1.6; color: var(--ink-soft); list-style: disc; }
.legal a { color: var(--crimson); text-decoration: underline; text-underline-offset: 2px; }
.legal strong { color: var(--ink); font-weight: 700; }
.legal .legal-ack {
  margin-top: 2.4rem; padding: 1.1rem 1.3rem; border-radius: var(--r-md);
  background: var(--paper-2); font-weight: 600; color: var(--ink); line-height: 1.6;
}

/* ingredient cards (dark) */
.ing-card { background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); border-radius: var(--r-md); padding: 1.5rem; }
.ing-card .n { width: 44px; height: 44px; border-radius: 12px; background: var(--flavor); display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: #fff; margin-bottom: 1rem; }
.ing-card h4 { color: #fff; font-size: 1.15rem; }
.ing-card p { color: rgba(255,255,255,.66); font-size: .92rem; margin-top: .5rem; }

/* ---------------- Locations ---------------- */
.loc-wrap { display: grid; grid-template-columns: 360px 1fr; gap: 1.4rem; align-items: start; }
@media (max-width: 880px) { .loc-wrap { grid-template-columns: 1fr; } }
.loc-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.loc-search { padding: 1.1rem; border-bottom: 1px solid var(--line); display: flex; gap: .5rem; }
.loc-search .input { padding: .7em 1em; }
.loc-list { max-height: 520px; overflow-y: auto; }
.loc-item { padding: 1.1rem; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; display: flex; gap: .8rem; }
.loc-item:hover, .loc-item.active { background: var(--flavor-soft); }
.loc-item .pin { width: 34px; height: 34px; border-radius: 10px; background: var(--flavor, var(--sunset-warm)); color: #fff; flex: none; display: grid; place-items: center; }
.loc-item .pin svg { width: 18px; }
.loc-item b { font-family: var(--display); display: block; }
.loc-item small { color: var(--ink-soft); font-size: .85rem; }
.loc-item .dist { margin-left: auto; font-weight: 700; color: var(--burnt); font-size: .85rem; white-space: nowrap; }
.loc-map { position: relative; min-height: 520px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 30%, rgba(90,198,208,.18), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(231,135,40,.16), transparent 45%),
    repeating-linear-gradient(0deg, rgba(0,0,0,.04) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.04) 0 1px, transparent 1px 44px),
    var(--paper-2);
}
.loc-map .mpin { position: absolute; width: 30px; height: 30px; translate: -50% -100%; color: var(--crimson); cursor: pointer; transition: transform .2s; }
.loc-map .mpin:hover, .loc-map .mpin.active { transform: scale(1.25); z-index: 2; }
.loc-map .mpin svg { width: 30px; height: 30px; filter: drop-shadow(0 3px 5px rgba(0,0,0,.3)); }
.loc-empty, .loc-loading { padding: 3rem 1.4rem; text-align: center; color: var(--ink-soft); }
.loc-map .map-load { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--ink-soft); background: rgba(242,234,223,.66); backdrop-filter: blur(2px); z-index: 3; }
.loc-map .map-load[hidden] { display: none; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--burnt); margin: 0 auto 1rem; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- News ---------------- */
.feat-post { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); }
@media (max-width: 820px) { .feat-post { grid-template-columns: 1fr; } }
.feat-post .fp-body { padding: clamp(1.6rem, 3vw, 2.6rem); display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: .35em .8em; border-radius: var(--r-pill); background: var(--flavor-soft); color: var(--crimson); }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease); display: flex; flex-direction: column; }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.post-card .pc-body { padding: 1.3rem; display: flex; flex-direction: column; gap: .6rem; }
.post-card h3 { font-size: 1.25rem; }
.post-card .meta { font-size: .82rem; color: var(--ink-soft); }
/* editorial variant (home journal): sharp blocks, title underline grows on hover */
.post-card.edge { border-radius: 0; }
.post-card.edge h3 { display: inline; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-size: 0% 2px; background-position: 0 100%; transition: background-size .35s var(--ease); }
.post-card.edge:hover h3 { background-size: 100% 2px; }
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill { padding: .45em .9em; border-radius: var(--r-pill); font-weight: 600; font-size: .85rem; background: #fff; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: .2s; }
.pill:hover, .pill.on { background: var(--ink); color: #fff; box-shadow: none; }

/* article */
.article { max-width: 720px; margin-inline: auto; }
.article p { margin: 1.2rem 0; font-size: 1.12rem; line-height: 1.7; }
.article h2 { margin: 2.4rem 0 1rem; }
.article blockquote { border-left: 4px solid var(--burnt); padding-left: 1.2rem; margin: 1.8rem 0; font-size: 1.3rem; font-family: var(--display); font-weight: 500; }

/* About timeline */
.timeline { display: grid; gap: 1.2rem; }
.tl { display: grid; grid-template-columns: 110px 1fr; gap: 1.4rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.tl .yr { font-family: var(--display); font-weight: 700; font-size: 1.6rem; color: var(--burnt); }
.tl h4 { margin-bottom: .3rem; }
.tl p { color: var(--ink-soft); margin: 0; }
@media (max-width: 560px) { .tl { grid-template-columns: 1fr; gap: .4rem; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.4rem, 4vw, 3rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.info-row { display: flex; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.info-row .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--flavor-soft); color: var(--burnt); display: grid; place-items: center; flex: none; }
.info-row b { font-family: var(--display); display: block; }
.info-row span { color: var(--ink-soft); font-size: .92rem; }
