/* =====================================================================
   Our Story (/story/): page styles. Prefix: st-
   Hero arch window · Pat's story · the shop film · chalkboard
   principles · the shop · logo story · CTA
   Scroll-linked values come from js/story.js as CSS custom properties
   (--p, --e, --py, --fade, --tag …); every default is the settled state,
   so the page reads correctly without JS and with reduced motion.
   ===================================================================== */

.page-story {
  --slate: #1a201d;
  --slate-2: #222a26;
  --chalk: #f2efe6;
  --chalk-2: rgba(242, 239, 230, .6);
  --chalk-accent: #ffb2a6;
  --st-stage-h: calc(100svh - var(--header-h) - var(--announce-h));
  --chalk-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='c'><feTurbulence type='fractalNoise' baseFrequency='1.25' numOctaves='2' seed='7' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 -3.2 2.55'/></filter><rect width='100%' height='100%' filter='url(%23c)'/></svg>");
}
[data-glow="on"] .page-story { --chalk-accent: #7cf3c4; --slate: #111714; }

@keyframes st-spin { to { transform: rotate(360deg); } }
@keyframes st-float {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  18% { opacity: var(--o, .85); }
  82% { opacity: var(--o, .85); }
  100% { transform: translate3d(var(--dx, 0), -150px, 0); opacity: 0; }
}
@keyframes st-halo { from { opacity: .55; transform: scale(1); } to { opacity: 0; transform: scale(1.32); } }
@keyframes st-cue { 0% { transform: scaleX(0); transform-origin: left; } 45% { transform: scaleX(1); transform-origin: left; } 55% { transform: scaleX(1); transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

/* Circular text (badges, seals) */
.st-ring-text { width: 100%; height: 100%; overflow: visible; }
.st-ring-text text {
  font-family: var(--font-sans); font-size: 8.6px; font-weight: 800; letter-spacing: .16em;
  text-transform: uppercase; fill: currentColor;
}

/* Floating spores (hero + CTA). Static & softly visible when motion is reduced. */
.st-spores { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.st-spores span {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 233, 186, .95) 0 30%, rgba(255, 214, 140, 0) 72%);
  opacity: .5;
  animation: st-float var(--t, 12s) linear var(--dl, 0s) infinite;
}
[data-glow="on"] .st-spores span {
  background: radial-gradient(circle, #d9fff0 0 25%, rgba(124, 243, 196, .9) 40%, rgba(124, 243, 196, 0) 72%);
  box-shadow: 0 0 10px 2px rgba(124, 243, 196, .35);
  --o: 1;
}

/* ================================================================ HERO */
.st-hero { position: relative; }
.st-hero__stage { position: relative; min-height: var(--st-stage-h); overflow: hidden; }
.st-hero__comp {
  --arch-w: clamp(250px, 31vw, 460px);
  --pad: clamp(24px, 4.5vh, 52px);
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) var(--arch-w);
  gap: clamp(28px, 5vw, 96px);
  min-height: var(--st-stage-h);
  padding-block: var(--pad);
}
@media (min-width: 1600px) { .st-hero__comp { --arch-w: clamp(250px, 31vw, 560px); } }
/* Title, lede and cue sit together as one block, centred against the arch */
.st-hero__copy { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: clamp(32px, 5.5vh, 60px); min-width: 0; }
.st-hero__title { margin-top: 22px; font-size: clamp(56px, 9.6vw, 156px); }
.st-hero__line { display: block; }
.st-hero__line--b { padding-left: .62em; }
.st-hero__bottom { display: grid; gap: 26px; justify-items: start; padding-left: clamp(0px, 4.2vw, 96px); }
.st-hero__lede { max-width: 40ch; }

.st-cue {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.st-cue__line { position: relative; width: 56px; height: 1px; background: var(--line-2); overflow: hidden; }
.st-cue__line::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: st-cue 2.6s var(--ease) infinite; }
.st-cue:hover { color: var(--accent); }

/* The arch: a window into the forest */
.st-hero__arch {
  --ar: calc(var(--arch-w) / 2);
  position: relative; z-index: 1;
  width: var(--arch-w);
  height: min(calc(var(--st-stage-h) - var(--pad) * 2), calc(var(--arch-w) * 1.5));
  align-self: center;
}
.st-hero__arch::before { /* frame line */
  content: ""; position: absolute; inset: -12px; z-index: 0;
  border: 1px solid var(--line-2);
  border-radius: calc(var(--ar) + 12px) calc(var(--ar) + 12px) 34px 34px / calc(var(--ar) + 12px) calc(var(--ar) + 12px) 34px 34px;
  opacity: calc(1 - var(--fade, 0) * 1.6);
  transition: border-color .6s var(--ease), box-shadow .6s var(--ease);
  pointer-events: none;
}
[data-glow="on"] .st-hero__arch::before {
  border-color: color-mix(in srgb, var(--glow) 55%, transparent);
  box-shadow: 0 0 34px -4px color-mix(in srgb, var(--glow) 45%, transparent), inset 0 0 24px -8px color-mix(in srgb, var(--glow) 40%, transparent);
}
.st-hero__media {
  position: absolute; inset: 0; z-index: 1; overflow: hidden;
  border-radius: var(--ar) var(--ar) 22px 22px / var(--ar) var(--ar) 22px 22px;
  background: #1a2216;
  box-shadow: 0 40px 80px -40px rgba(var(--shadow), .55);
}
.st-hero__media::after { /* film grain: keeps the opened-up forest from reading as an enlarged photo */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: calc(.1 + var(--scrim, 0) * .12); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
}
.st-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.st-hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 80% at 50% 50%, rgba(8, 12, 7, .46), rgba(8, 12, 7, .78));
  opacity: var(--scrim, 0);
}
.st-hero__media .st-spores { z-index: 2; }

.st-badge {
  position: absolute; z-index: 3; left: calc(clamp(52px, 5vw, 64px) * -1); bottom: 13%;
  width: clamp(104px, 9vw, 128px); aspect-ratio: 1;
  border-radius: 50%; background: var(--bg); color: var(--ink-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  box-shadow: 0 18px 40px -22px rgba(var(--shadow), .55);
  opacity: calc(1 - var(--fade, 0) * 2);
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
.st-badge .st-ring-text { position: absolute; inset: 9%; width: 82%; height: 82%; animation: st-spin 28s linear infinite; }
.st-badge img { width: 30%; height: auto; translate: 8.5% .3%; } /* optical centre, see .st-sign__hand */
[data-glow="on"] .st-badge { color: var(--glow); border-color: color-mix(in srgb, var(--glow) 35%, transparent); box-shadow: 0 0 30px -8px color-mix(in srgb, var(--glow) 50%, transparent); }

.st-hero__tag { display: none; }

/* Pinned mode (js: wide + tall screens, motion allowed): the arch opens into a large framed forest.
   The section slides up under the (transparent) header so the composition clears the header both
   at load and once the stage is stuck; the opened image may run under the frosted header. */
.st-hero.is-pinned { margin-top: calc(var(--header-h) * -1); }
.st-hero.is-pinned .st-hero__stage { position: sticky; top: 0; height: 100svh; min-height: 0; }
.st-hero.is-pinned .st-hero__comp { margin-top: var(--header-h); min-height: 0; height: var(--st-stage-h); }
.st-hero.is-pinned :is(.st-hero__top, .st-hero__bottom) {
  opacity: calc(1 - var(--fade, 0));
  transform: translate3d(calc(var(--fade, 0) * -8vw), 0, 0);
  will-change: transform, opacity;
}
.st-hero.is-open :is(.st-hero__top, .st-hero__bottom) { visibility: hidden; }
.st-hero.is-pinned .st-hero__media { border-radius: 0; box-shadow: none; will-change: clip-path; }
.st-hero.is-pinned .st-hero__img { position: absolute; left: 0; top: 0; max-width: none; object-fit: fill; transform-origin: 50% 50%; will-change: transform; }
.st-hero.is-pinned .st-hero__tag {
  display: grid; position: absolute; inset: 0; z-index: 4; place-content: center; justify-items: center; gap: 18px;
  padding-inline: var(--gutter); text-align: center; color: #f4efe3; pointer-events: none;
  opacity: var(--tag, 0);
  transform: translate3d(0, calc((1 - var(--tag, 0)) * 36px), 0);
}
.st-hero__tag .eyebrow { color: rgba(244, 239, 227, .78); }
.st-hero__tagline {
  font-family: var(--font-display); font-weight: 350; letter-spacing: -.04em; line-height: .95;
  font-size: clamp(48px, 8vw, 128px); font-variation-settings: "SOFT" 100, "WONK" 0; max-width: 12ch;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .45);
}
.st-hero__tagline em { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; color: #ffb2a6; }
[data-glow="on"] .st-hero__tagline em { color: var(--glow); text-shadow: 0 0 30px color-mix(in srgb, var(--glow) 60%, transparent); }

/* Portrait tablets: title across the top, lede beside a taller arch */
@media (min-width: 700px) and (max-width: 1079px) and (max-aspect-ratio: 4 / 5) and (min-height: 501px) {
  .st-hero__comp {
    --arch-w: clamp(300px, 46vw, 440px);
    grid-template-columns: minmax(0, 1fr) var(--arch-w);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas: "top top" "bottom arch";
    row-gap: clamp(28px, 4vh, 48px);
  }
  .st-hero__copy { display: contents; }
  .st-hero__top { grid-area: top; position: relative; z-index: 2; }
  .st-hero__bottom { grid-area: bottom; align-self: end; position: relative; z-index: 2; padding-left: 0; }
  .st-hero__title { font-size: clamp(72px, 12.5vw, 128px); }
  .st-hero__arch { grid-area: arch; align-self: end; height: min(100%, calc(var(--arch-w) * 1.42)); }
  .st-badge { left: calc(clamp(44px, 6vw, 56px) * -1); }
}

/* Phones, and any short landscape screen: stacked and static */
@media (max-width: 699px), (max-height: 500px) {
  .st-hero__comp { grid-template-columns: minmax(0, 1fr); --arch-w: min(100%, 420px); gap: 34px; min-height: 0; }
  .st-hero__title { font-size: clamp(54px, 16vw, 92px); }
  .st-hero__bottom { padding-left: 0; }
  .st-hero__arch { justify-self: center; width: min(100% - 28px, 420px); height: auto; aspect-ratio: 3 / 4; --ar: calc(min(100vw - var(--gutter) * 2 - 28px, 420px) / 2); }
  .st-badge { left: -16px; bottom: 8%; width: 96px; }
  .st-hero__copy { gap: 26px; }
}

/* ============================================================ JOURNEY */
.st-journey__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); align-items: start; }
.st-journey__head { position: sticky; top: calc(var(--header-h) + 32px); }
.st-journey__head h2 { margin-top: 20px; font-size: clamp(42px, 5.2vw, 80px); }
.st-journey__intro { margin-top: 26px; color: var(--muted); max-width: 34ch; font-size: 17px; }
.st-journey__fig { margin-top: clamp(28px, 4vh, 44px); width: clamp(190px, 27vh, 300px); }
.st-journey__arch {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; isolation: isolate;
  border-radius: 50% 50% var(--r) var(--r) / 40% 40% var(--r) var(--r);
  background: var(--chip);
  box-shadow: 0 30px 60px -36px rgba(var(--shadow), .55);
}
.st-journey__arch img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; object-position: 46% 50%; transform: translate3d(0, var(--py, 0), 0); }
.st-journey__fig figcaption { margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .01em; }
[data-glow="on"] .st-journey__arch { box-shadow: 0 0 0 1px color-mix(in srgb, var(--glow) 28%, transparent), 0 30px 80px -36px color-mix(in srgb, var(--glow) 45%, transparent); }

.st-quote { position: relative; padding-top: clamp(40px, 6vw, 80px); }
.st-quote__mark {
  position: absolute; top: clamp(-60px, -4vw, -20px); left: -.06em;
  font-family: var(--font-display); font-size: clamp(150px, 17vw, 260px); line-height: 1;
  font-variation-settings: "SOFT" 100, "WONK" 1; font-style: italic;
  color: var(--accent); opacity: .2; pointer-events: none; user-select: none;
  transform: translate3d(0, var(--py, 0), 0);
}
.st-quote__body { position: relative; }
.st-quote__body p {
  font-family: var(--font-display); font-weight: 360; font-size: clamp(25px, 2.85vw, 44px);
  line-height: 1.26; letter-spacing: -.02em; color: var(--ink);
  font-variation-settings: "SOFT" 100, "WONK" 0;
}
.st-quote__body p + p { margin-top: .95em; }
.st-quote mark {
  --hl: color-mix(in srgb, var(--amanita) 22%, transparent);
  color: inherit; padding: 0 .04em;
  background: linear-gradient(var(--hl), var(--hl)) 0 86% / 0% .34em no-repeat;
  transition: background-size 1.4s var(--ease) .55s, background-color .6s var(--ease);
}
.js .st-quote p.is-in mark, html:not(.js) .st-quote mark { background-size: 100% .34em; }
[data-glow="on"] .st-quote mark { --hl: color-mix(in srgb, var(--glow) 30%, transparent); text-shadow: 0 0 22px color-mix(in srgb, var(--glow) 45%, transparent); }
.st-quote__sign { display: flex; align-items: center; gap: 22px; margin-top: clamp(36px, 5vw, 56px); padding-top: 26px; border-top: 1px solid var(--line); }
.st-quote__name {
  font-family: var(--font-display); font-style: italic; font-weight: 400; line-height: 1;
  font-size: clamp(54px, 6vw, 88px); letter-spacing: -.03em;
  font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--accent);
}
[data-glow="on"] .st-quote__name { text-shadow: 0 0 28px color-mix(in srgb, var(--glow) 45%, transparent); }
.st-quote__role { font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1.5; letter-spacing: .02em; }

@media (max-width: 900px) {
  .st-journey__grid { grid-template-columns: minmax(0, 1fr); }
  .st-journey__head { position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(20px, 5vw, 48px); align-items: end; }
  .st-journey__head > :not(.st-journey__fig) { grid-column: 1; }
  .st-journey__fig { grid-column: 2; grid-row: 1 / span 3; align-self: end; width: clamp(150px, 26vw, 220px); margin-top: 0; }
}
@media (max-width: 560px) {
  .st-journey__head { display: block; }
  .st-journey__fig { width: min(62%, 240px); margin-top: 28px; }
}

/* =============================================================== FILM */
/* A silent loop with no controls: the poster image sits under the video until the first frame. */
.st-film { overflow: hidden; }
/* The chalkboard follows straight on, so the two read as one dark chapter: the film band shades
   into the slate, the chalk texture fades in, and the gap between them is a single section's.
   The frame's shadow may spill softly over the top of the board instead of being cut off. */
.st-film:has(+ .st-chalk) {
  z-index: 1; overflow-x: clip; overflow-y: visible;
  padding-bottom: calc(var(--section) * .4);
  background: linear-gradient(to bottom, var(--dark) 55%, var(--slate));
}
.st-film + .st-chalk::before, .st-film + .st-chalk::after {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 240px); mask-image: linear-gradient(to bottom, transparent, #000 240px);
}
.st-film__head { display: flex; justify-content: space-between; align-items: end; gap: 22px 48px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 60px); }
.st-film__eyebrow { color: rgba(241, 235, 221, .6); margin-bottom: 16px; }
.st-film h2 { color: var(--dark-ink); }
.st-film h2 em { color: #ff8a7c; }
[data-glow="on"] .st-film h2 em { color: var(--glow); }
.st-film__note { color: rgba(241, 235, 221, .72); max-width: 34ch; font-size: 16.5px; }
.st-film__frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  background: #0a0d08;
  transform: scale(calc(.9 + .1 * var(--e, 1)));
  transform-origin: 50% 0;
  box-shadow: 0 60px 120px -60px rgba(0, 0, 0, .8);
}
[data-glow="on"] .st-film__frame { box-shadow: 0 0 0 1px color-mix(in srgb, var(--glow) 22%, transparent), 0 40px 140px -50px color-mix(in srgb, var(--glow) 40%, transparent); }
.st-film__poster, .st-film__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .st-film__frame { border-radius: var(--r); aspect-ratio: 4 / 3; }
}

/* ========================================================== CHALKBOARD */
.st-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.st-chalk {
  position: relative; isolation: isolate;
  background: var(--slate); color: var(--chalk);
}
.st-chalk::before { /* chalk dust, eraser swirls */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 18% 30%, rgba(242, 239, 230, .055), transparent 70%),
    radial-gradient(45% 60% at 72% 62%, rgba(242, 239, 230, .045), transparent 70%),
    radial-gradient(30% 30% at 90% 15%, rgba(242, 239, 230, .04), transparent 70%),
    repeating-linear-gradient(-14deg, rgba(242, 239, 230, .012) 0 2px, transparent 2px 9px);
}
.st-chalk::after { /* fine slate grain */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.st-chalk__pin { position: relative; padding-block: var(--section); }
.st-chalk__head { display: flex; justify-content: space-between; align-items: end; gap: 20px 56px; flex-wrap: wrap; }
.st-chalk__eyebrow { color: var(--chalk-2); margin-bottom: 16px; }
.st-chalk__title { color: var(--chalk); font-size: clamp(42px, 5.2vw, 80px); }
.st-chalk__title em { color: var(--chalk-accent); }
.st-chalk__intro { color: var(--chalk-2); max-width: 38ch; font-size: 16.5px; }
.st-chalk__viewport {
  margin-top: clamp(28px, 5vh, 56px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  /* --st-inset (js) = the .wrap content edge, measured without the classic scrollbar; the fallback uses 100vw */
  scroll-padding-inline: var(--st-inset, max(var(--gutter), calc((100vw - var(--wrap)) / 2)));
}
.st-chalk__viewport::-webkit-scrollbar { display: none; }
.st-chalk__viewport:focus-visible { outline: 2px solid var(--chalk-2); outline-offset: -2px; border-radius: 0; }
.st-chalk__track {
  display: flex; width: max-content;
  padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  margin: 0; list-style: none;
}
.st-chalk__viewport .st-chalk__track { padding-inline: var(--st-inset, max(var(--gutter), calc((100vw - var(--wrap)) / 2))); }
.st-board {
  position: relative; flex: none;
  width: clamp(272px, 31vw, 460px);
  padding: 48px clamp(22px, 2.8vw, 46px) 14px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  scroll-snap-align: start;
}
.st-board:first-child { padding-left: 0; }
.st-board:first-child .st-board__no { left: 0; }
/* every headline shares the top line; on tall (pinned) boards some doodles drop to the foot */
.st-board--low .st-doodle { margin-top: auto; }
.st-board + .st-board::before { /* chalk divider */
  content: ""; position: absolute; left: 0; top: 4%; bottom: 4%; width: 2px; border-radius: 2px;
  background: linear-gradient(to bottom, transparent, rgba(242, 239, 230, .16) 18%, rgba(242, 239, 230, .1) 70%, transparent);
  -webkit-mask-image: var(--chalk-grain); mask-image: var(--chalk-grain);
}
.st-board__no { position: absolute; top: 8px; left: clamp(22px, 2.8vw, 46px); font-size: 11px; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--chalk-2); }
.st-chalk-text { -webkit-mask-image: var(--chalk-grain); mask-image: var(--chalk-grain); -webkit-mask-size: 180px 180px; mask-size: 180px 180px; }
.st-board__word { font-size: clamp(46px, 4.7vw, 78px); line-height: .98; color: var(--chalk); letter-spacing: -.02em; }
.st-board:nth-child(odd) .st-board__word { transform: rotate(-1.6deg); }
.st-board:nth-child(even) .st-board__word { transform: rotate(1.2deg); }
.st-c-sans { display: block; font-family: var(--font-sans); font-weight: 700; font-size: .4em; letter-spacing: .04em; margin-bottom: .22em; }
.st-c-serif { display: block; font-family: var(--font-display); font-weight: 350; font-size: .64em; letter-spacing: -.02em; font-variation-settings: "SOFT" 100, "WONK" 0; }
.st-c-script { font-family: var(--font-display); font-style: italic; font-weight: 400; font-variation-settings: "SOFT" 100, "WONK" 1; }
.st-c-caps { display: block; font-family: var(--font-sans); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; font-size: .86em; line-height: .95; }
.st-c-caps--sm { font-size: .44em; letter-spacing: .16em; margin-bottom: .18em; }
.st-c-caps--long { font-size: min(.62em, 9.4vw); letter-spacing: -.005em; }
.st-c-bang { color: var(--chalk-accent); }
.st-c-eq { position: relative; display: inline-block; font-family: var(--font-sans); font-weight: 300; color: var(--chalk-accent); margin-inline: .3em; }
.st-c-eq::after { /* chalk ring around the equals sign */
  content: ""; position: absolute; left: 50%; top: 54%; width: 1.25em; height: .9em; transform: translate(-50%, -50%) rotate(-8deg);
  border: 2px solid currentColor; border-radius: 50%; opacity: .7;
}
.st-c-stack { display: grid; gap: .04em; font-size: .9em; }
.st-c-stack span:nth-child(2) { padding-left: .5em; }
.st-c-stack span:nth-child(3) { padding-left: 1.3em; color: var(--chalk-accent); }
.st-board__sub { font-size: 15.5px; line-height: 1.5; color: var(--chalk-2); max-width: 30ch; font-weight: 600; }
.st-board__sub--big { font-family: var(--font-display); font-weight: 380; font-size: clamp(21px, 1.75vw, 27px); line-height: 1.28; letter-spacing: -.01em; color: var(--chalk); max-width: 18ch; font-variation-settings: "SOFT" 100, "WONK" 0; }
.st-board__sub u { text-decoration-color: var(--chalk-accent); text-decoration-thickness: 2px; text-underline-offset: .25em; color: var(--chalk); }
.st-doodle { width: min(100%, 250px); height: auto; overflow: visible; margin-top: 6px; }
.st-doodle :is(path, circle, ellipse) {
  fill: none; stroke: var(--chalk); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .8;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.8s var(--ease) .35s;
}
.st-board:nth-child(1) .st-doodle path:nth-child(-n+3),
.st-board:nth-child(3) .st-doodle :is(circle, path:nth-child(2)),
.st-board:nth-child(4) .st-doodle path:first-child { stroke: var(--chalk-accent); }
.st-doodle :is(path, circle, ellipse):nth-child(2) { transition-delay: .55s; }
.st-doodle :is(path, circle, ellipse):nth-child(n+3) { transition-delay: .8s; }
.st-board.is-in .st-doodle :is(path, circle, ellipse), html:not(.js) .st-doodle :is(path, circle, ellipse) { stroke-dashoffset: 0; }
[data-glow="on"] .st-doodle { filter: drop-shadow(0 0 6px rgba(124, 243, 196, .35)); }
[data-glow="on"] .st-c-bang, [data-glow="on"] .st-c-eq, [data-glow="on"] .st-c-stack span:nth-child(3) { text-shadow: 0 0 18px rgba(124, 243, 196, .55); }

.st-chalk__foot { display: flex; align-items: center; gap: 20px; margin-top: 22px; }
.st-chalk__hint { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--chalk-2); white-space: nowrap; }
.st-chalk__hint .i { width: 16px; height: 16px; }
.st-chalk__hint-txt::before { content: "Swipe to read on"; }
@media (hover: hover) and (pointer: fine) { .st-chalk__hint-txt::before { content: "Scroll sideways to read on"; } }
.st-chalk.is-pinned .st-chalk__hint-txt::before { content: "Keep scrolling"; }
.st-chalk__progress { position: relative; flex: 1; height: 2px; border-radius: 2px; background: rgba(242, 239, 230, .1); overflow: hidden; }
.st-chalk__progress span { position: absolute; inset: 0; background: var(--chalk); transform-origin: left; transform: scaleX(var(--p, 0)); -webkit-mask-image: var(--chalk-grain); mask-image: var(--chalk-grain); }
[data-glow="on"] .st-chalk__progress span { background: var(--glow); box-shadow: 0 0 12px var(--glow); }
.st-chalk:not(.is-pinned) .st-chalk__progress { display: none; }
@media (max-width: 760px) {
  .st-board { width: min(80vw, 340px); padding-bottom: 8px; }
}

/* pinned horizontal scroll (js: wide screens, motion allowed) */
.st-chalk.is-pinned .st-chalk__pin {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column;
  padding-block: clamp(84px, 12vh, 132px) clamp(26px, 5vh, 52px);
}
.st-chalk.is-pinned .st-chalk__viewport { flex: 1; min-height: 0; overflow: hidden; scroll-snap-type: none; display: flex; }
.st-chalk.is-pinned .st-chalk__track { height: 100%; will-change: transform; }
.st-chalk.is-pinned .st-board { min-height: 0; height: 100%; max-height: 540px; align-self: center; }

/* ============================================================== LOCAL */
/* The "Thank you for supporting LOCAL" board sits in the photo's left fifth, so the crop and the
   scroll zoom are both anchored to the left edge: the sign stays whole at every --p. */
.st-local { position: relative; display: grid; }
.st-local > * { grid-area: 1 / 1; min-width: 0; }
.st-local__media { position: relative; height: clamp(560px, 92svh, 980px); overflow: hidden; background: var(--dark); }
.st-local__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 0% 40%;
  transform: translate3d(0, calc((var(--p, .5) - .5) * -4%), 0) scale(calc(1.04 + (1 - var(--p, .5)) * .1));
  transform-origin: 0% 40%;
  will-change: transform;
}
.st-local__media::after { /* seat the card: a soft shade toward the lower right */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 70% at 100% 100%, rgba(8, 10, 6, .5), transparent 70%), linear-gradient(to bottom, transparent 70%, rgba(8, 10, 6, .25));
}
.st-local__wrap { position: relative; z-index: 2; align-self: end; display: flex; justify-content: flex-end; padding-bottom: clamp(28px, 4vw, 64px); }
.st-local__card {
  max-width: 560px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: clamp(28px, 3.6vw, 50px);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .55);
  display: grid; gap: 18px; justify-items: start;
  transition: background-color .6s var(--ease), border-color .6s var(--ease);
}
.st-local__title { font-size: clamp(36px, 4vw, 58px); line-height: 1; }
.st-local__title em { font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: .01em; }
.st-local__card > p:not(.eyebrow) { color: var(--ink-2); max-width: 44ch; }
[data-glow="on"] .st-local__card { box-shadow: 0 0 0 1px color-mix(in srgb, var(--glow) 18%, transparent), 0 40px 100px -40px rgba(0, 0, 0, .9); }
@media (max-width: 1079px) {
  .st-local { display: block; padding-bottom: calc(var(--section) * .5); }
  .st-local__media { height: clamp(440px, 70svh, 760px); }
  .st-local__media::after { background: linear-gradient(to bottom, transparent 62%, rgba(8, 10, 6, .3)); }
  .st-local__wrap { margin-top: -120px; padding-bottom: 0; }
}
@media (max-width: 760px) {
  .st-local__media { height: auto; aspect-ratio: 4 / 4.4; }
  /* phones: zoom toward the sign so the lettering stays legible */
  .st-local__img { transform-origin: 0% 38%; transform: translate3d(0, calc((var(--p, .5) - .5) * -3%), 0) scale(calc(1.34 + (1 - var(--p, .5)) * .08)); }
  .st-local__wrap { margin-top: -72px; }
}

/* =============================================================== SIGN */
.st-sign__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.st-sign__fig { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; margin-inline: auto; display: grid; place-items: center; overflow: clip; border-radius: 50%; }
.st-sign__disc {
  position: absolute; inset: 9%; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, var(--panel), var(--moss-tint) 78%);
  border: 1px solid var(--line);
  transition: background .6s var(--ease), border-color .6s var(--ease), box-shadow .6s var(--ease);
}
[data-glow="on"] .st-sign__disc {
  background: radial-gradient(circle at 50% 40%, #1a2416, #0e140d 80%);
  border-color: color-mix(in srgb, var(--glow) 30%, transparent);
  box-shadow: 0 0 80px -20px color-mix(in srgb, var(--glow) 40%, transparent), inset 0 0 60px -20px color-mix(in srgb, var(--glow) 30%, transparent);
}
.st-sign__ring { position: absolute; inset: 0; color: var(--muted); animation: st-spin 60s linear infinite; }
.st-sign__ring text { font-size: 7.4px; letter-spacing: .3em; }
[data-glow="on"] .st-sign__ring { color: var(--glow); }
/* The hand sits on its visual centre, not its box centre (the thumb reaches far to the right).
   --hx/--hy is the point that leaves equal room above the index cap and below the wrist, and equal
   room beside the little finger cap and the thumb tip; it also sits close to the hand's centre of
   mass. `translate` moves that point onto the centre of the disc, and the scroll tilt pivots on it,
   so the tilt never pushes a fingertip toward the rim. Size: the farthest tips reach 0.678 of the
   image width from that point, so at 52% of the figure they stay 5.7% of the figure inside the
   disc (radius 41%), and the same at every breakpoint since all of it is proportional. */
.st-sign__hand {
  --hx: 41.5%; --hy: 49.7%;
  position: relative; width: 52%;
  translate: calc(50% - var(--hx)) calc(50% - var(--hy));
  transform-origin: var(--hx) var(--hy);
  transform: rotate(calc((var(--p, .5) - .5) * 14deg));
  will-change: transform;
}
.st-sign__hand img { width: 100%; height: auto; filter: drop-shadow(0 26px 30px rgba(var(--shadow), .28)); transition: filter .6s var(--ease); }
[data-glow="on"] .st-sign__hand img { filter: drop-shadow(0 0 22px rgba(255, 107, 91, .45)) drop-shadow(0 0 2px rgba(255, 255, 255, .3)); }
/* Fingertip markers: a cream ring with an ink keyline that circles the cap (or the thumb tip), so it
   reads on the red amanita caps, the skin tone and the disc alike. */
.st-pin {
  --pin: var(--ink);
  position: absolute; width: 34%; aspect-ratio: 1; border-radius: 50%;
  border: 3px solid var(--panel);
  box-shadow: 0 0 0 1.5px var(--pin), inset 0 0 0 1.5px var(--pin);
  transform: translate(-50%, -50%) scale(.6); opacity: 0;
  transition: opacity .4s var(--ease), transform .6s var(--ease-out);
  pointer-events: none;
}
.st-pin::after { /* slow halo */
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1.5px solid var(--pin); opacity: 0;
}
.st-pin--little { left: 13.6%; top: 17.6%; }
.st-pin--index { left: 53.6%; top: 8.4%; width: 38%; }
.st-pin--thumb { left: 93%; top: 50.5%; width: 28%; }
.st-sign__fig[data-active~="little"] .st-pin--little,
.st-sign__fig[data-active~="index"] .st-pin--index,
.st-sign__fig[data-active~="thumb"] .st-pin--thumb { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.st-sign__fig[data-active~="little"] .st-pin--little::after,
.st-sign__fig[data-active~="index"] .st-pin--index::after,
.st-sign__fig[data-active~="thumb"] .st-pin--thumb::after { animation: st-halo 2s var(--ease-out) infinite; }
[data-glow="on"] .st-pin { --pin: var(--glow); border-color: rgba(12, 17, 11, .85); box-shadow: 0 0 0 1.5px var(--pin), inset 0 0 0 1.5px var(--pin), 0 0 22px -2px var(--glow); }

.st-sign__copy h2 { margin-top: 18px; }
.st-sign__copy .lede { margin-top: 24px; }
.st-sign__how { margin-top: 26px; font-size: 14px; font-weight: 800; letter-spacing: .02em; color: var(--muted); }
.st-sign__letters { display: grid; gap: 10px; margin-top: 16px; padding: 0; list-style: none; }
.st-sign__item {
  display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 16px;
  padding: 10px 18px 10px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel);
  font-size: 15.5px; color: var(--ink-2);
  transition: background-color .4s var(--ease), border-color .4s var(--ease), transform .5s var(--ease), color .4s var(--ease);
}
.st-sign__letters b { color: var(--ink); }
.st-sign__l {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--chip); font-family: var(--font-display); font-size: 26px; font-style: italic;
  font-variation-settings: "SOFT" 100, "WONK" 1; color: var(--ink);
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
/* the nudge lives on the inner pill, so it never fights the [data-reveal] transform on the <li> */
.st-sign__letters li.is-active .st-sign__item { border-color: color-mix(in srgb, var(--accent) 55%, transparent); transform: translateX(10px); }
.st-sign__letters li.is-active .st-sign__l { background: var(--accent); color: var(--amanita-ink); }
[data-glow="on"] .st-sign__letters li.is-active .st-sign__l { color: #0c110b; box-shadow: 0 0 22px -2px var(--glow); }
@media (max-width: 900px) {
  .st-sign__grid { grid-template-columns: minmax(0, 1fr); }
  .st-sign__fig { max-width: 420px; }
}

/* ================================================================ CTA */
.st-cta { padding-top: 0; }
.st-cta__card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; justify-items: center; text-align: center;
  padding: clamp(56px, 8vw, 116px) clamp(20px, 5vw, 80px);
  border-radius: var(--r-xl);
  background: var(--moss); color: var(--moss-ink);
  transition: background-color .6s var(--ease), color .6s var(--ease), box-shadow .6s var(--ease);
}
.st-cta__card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(70% 60% at 50% 0%, rgba(255, 255, 255, .1), transparent 70%), radial-gradient(50% 50% at 85% 100%, rgba(179, 38, 30, .28), transparent 70%);
}
[data-glow="on"] .st-cta__card {
  background: var(--moss-tint); color: var(--ink);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--glow) 26%, transparent), 0 40px 140px -50px color-mix(in srgb, var(--glow) 45%, transparent);
}
[data-glow="on"] .st-cta__card::before { background: radial-gradient(70% 60% at 50% 0%, rgba(124, 243, 196, .12), transparent 70%); }
.st-cta__seal { position: relative; width: 132px; height: 132px; display: grid; place-items: center; margin-bottom: 28px; color: currentColor; }
.st-cta__seal .st-ring-text { position: absolute; inset: 0; opacity: .75; animation: st-spin 36s linear infinite; }
.st-cta__seal img { width: 40px; height: auto; translate: 8.5% .3%; transform: rotate(-8deg); transform-origin: 41.5% 49.7%; } /* optical centre, see .st-sign__hand */
[data-glow="on"] .st-cta__seal .st-ring-text { color: var(--glow); opacity: 1; }
.st-cta__card .eyebrow { color: currentColor; opacity: .7; }
.st-cta__title { margin-top: 16px; font-size: clamp(42px, 6.4vw, 100px); max-width: 13ch; color: inherit; }
.st-cta__title em { color: #ffb2a6; }
[data-glow="on"] .st-cta__title em { color: var(--glow); }
.st-cta__text { margin-top: 22px; max-width: 44ch; font-size: 18px; opacity: .85; }
.st-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.st-cta__ig { margin-top: 26px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: inherit; opacity: .8; text-decoration: none; }
.st-cta__ig .i { width: 17px; height: 17px; }
.st-cta__ig:hover { opacity: 1; text-decoration: underline; }
.st-cta__card :focus-visible { outline-color: currentColor; }
@media (max-width: 560px) {
  .st-cta__actions { flex-direction: column; align-self: stretch; }
  .st-cta__actions .btn { width: 100%; }
}

/* Glow: split-word wrappers (overflow hidden) clip the base em text-shadow into a box;
   glow those words with a filter on the wrapper instead. */
[data-glow="on"] .page-story [data-split] em { text-shadow: none; }
[data-glow="on"] .page-story [data-split] em .w { filter: drop-shadow(0 0 16px color-mix(in srgb, var(--glow) 50%, transparent)); }

/* ===================================================== REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .st-quote__mark, .st-journey__arch img { transform: none !important; }
  .st-sign__hand { transform: none !important; }
  .st-film__frame { transform: none !important; }
}
