/* ==========================================================================
   Bean to Brews — site styles
   Tokens → base → layout → components → sections → motion
   ========================================================================== */

@view-transition { navigation: auto; }

:root {
  /* palette — roast scale */
  --paper: #faf6ef;
  --cream: #f3ece1;
  --oat: #e7dccb;
  --latte: #c9b39a;
  --crema: #c8915a;
  --roast: #3b2418;
  --espresso: #1d130e;
  --ink: #241914;
  --ink-soft: #6a5a4f;
  --cherry: #b23a2a;
  --cherry-soft: #e4a08f;
  --leaf: #5b6b3a;
  --leaf-soft: #c9d1b0;

  /* flavour wheel families */
  --f-floral: #c97b9b;
  --f-fruity: #b23a2a;
  --f-citrus: #e2a72e;
  --f-sweet: #c8915a;
  --f-choc: #6b3f2a;
  --f-nutty: #a47a52;
  --f-spice: #8c4a2f;
  --f-green: #6f7f45;

  --bg: var(--paper);
  --fg: var(--ink);
  --muted: var(--ink-soft);
  --line: color-mix(in oklab, var(--ink) 14%, transparent);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --font-logo: "Comfortaa", "Varela Round", "Nunito", system-ui, sans-serif;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.92rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.9vw, 2.05rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.8vw, 3.1rem);
  --step-4: clamp(2.5rem, 1.8rem + 3.4vw, 4.8rem);
  --step-5: clamp(3.2rem, 2rem + 6vw, 8.6rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.75rem);
  --maxw: 1320px;
  /* left/right inset that lines full-bleed scrollers up with the centred content column */
  --edge: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  --radius: 22px;
  --radius-lg: 36px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 30px 60px -30px rgba(29,19,14,.35);

  interpolate-size: allow-keywords;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--cherry); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--cherry); color: var(--paper); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0;
}
h1 { font-size: var(--step-5); letter-spacing: -0.04em; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
em, .ital { font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 1000;
  background: var(--espresso); color: var(--paper); padding: .7rem 1.1rem; border-radius: 999px;
}
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* film grain */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); }
  60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); }
}

/* ---------- layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(5rem, 3rem + 8vw, 10rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 6rem); }
.dark { --bg: var(--espresso); --fg: var(--cream); --muted: color-mix(in oklab, var(--cream) 62%, transparent); --line: color-mix(in oklab, var(--cream) 16%, transparent); background: var(--bg); color: var(--fg); }
.oat { --bg: var(--cream); background: var(--bg); }

.eyebrow {
  font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: .7em; margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 46ch; }
.section-head { display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 2rem + 3vw, 5rem); }
.section-head--split { grid-template-columns: 1.2fr .8fr; align-items: end; }
@media (max-width: 860px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 14px var(--gutter) auto; z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 10px 10px 10px 20px; border-radius: 999px;
  background: color-mix(in oklab, var(--paper) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid color-mix(in oklab, var(--ink) 8%, transparent);
  transition: transform .6s var(--ease-out), background .4s;
  max-width: var(--maxw); margin-inline: auto;
}
.nav.is-hidden { transform: translateY(calc(-100% - 24px)); }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--font-logo); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; flex-shrink: 0; }
.nav__links { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: inline-block; padding: .55rem .95rem; border-radius: 999px; text-decoration: none; font-size: .95rem;
  transition: background .3s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { background: color-mix(in oklab, var(--ink) 7%, transparent); }
.nav__cta { display: flex; align-items: center; gap: .5rem; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out); }
.menu-btn span:first-child { top: 18px; } .menu-btn span:last-child { top: 26px; }
.menu-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* mobile menu: see .mm block below */

.brand { white-space: nowrap; }
.nav__links a { white-space: nowrap; }
@media (max-width: 1180px) { .nav__cta .btn--ghost { display: none; } }
@media (max-width: 1020px) {
  .nav__links { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 460px) {
  .nav { padding-left: 16px; }
  .nav__cta .btn { padding: .65rem .9rem; font-size: .82rem; }
  .brand { font-size: 1.08rem; gap: .45rem; }
  .brand svg { width: 24px; height: 24px; }
}
@media (max-width: 440px) { .nav__cta .btn { display: none; } }
@media (max-width: 560px) {
  .note-chip { font-size: .8rem; left: auto !important; right: auto !important; }
  .note-chip:nth-child(2), .note-chip:nth-child(4) { left: 3% !important; }
  .note-chip:nth-child(3), .note-chip:nth-child(5) { right: 3% !important; }
    }
/* belt and braces: nothing decorative may ever cause sideways scrolling on phones */
html { overflow-x: clip; }

/* comfortable thumb targets on touch screens */
@media (pointer: coarse), (max-width: 700px) {
  .footer ul { gap: 0; }
  .footer ul a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer address a { display: inline-flex; align-items: center; min-height: 44px; }
  .brand { min-height: 44px; }
  .link-arrow { min-height: 44px; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 36px; }
  .toc a { padding-block: .7rem; }
}

/* ---------- mobile menu (rendered by site.js) ---------- */
.menu-open { overflow: hidden; }
.menu-open .nav { transform: none; background: transparent; border-color: transparent; color: var(--cream); backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-open .nav .brand path { stroke: var(--espresso); }
.menu-open .menu-btn { border-color: color-mix(in oklab, var(--cream) 30%, transparent); }
.mm:focus { outline: none; }
.mm .btn--ghost:hover { --b-fill: var(--cream); color: var(--espresso); }
.mm {
  --bg: var(--espresso); --fg: var(--cream);
  --muted: color-mix(in oklab, var(--cream) 62%, transparent); --line: color-mix(in oklab, var(--cream) 14%, transparent);
  position: fixed; inset: 0; z-index: 70; background: var(--espresso); color: var(--cream);
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  visibility: hidden; clip-path: inset(0 0 100% 0);
  transition: clip-path .45s var(--ease-in-out), visibility 0s linear .45s;
}
.menu-open .mm { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .45s var(--ease-in-out), visibility 0s; }
.mm__inner {
  min-height: 100%; max-width: 560px; margin-inline: auto; display: flex; flex-direction: column; gap: 1.5rem;
  padding: calc(92px + env(safe-area-inset-top, 0px)) var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
}
.mm__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mm__link {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; row-gap: .2rem; align-items: center;
  min-height: 72px; padding: .95rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit;
}
.mm__label { font-family: var(--font-display); font-size: clamp(1.65rem, 7vw, 2.1rem); line-height: 1.05; letter-spacing: -0.02em; }
.mm__desc { grid-column: 1; font-size: .88rem; color: var(--muted); }
.mm__link > svg { grid-column: 2; grid-row: 1 / 3; color: var(--muted); transition: transform .35s var(--ease-out), color .35s; }
.mm__link:hover > svg, .mm__link:focus-visible > svg { transform: translateX(4px); color: var(--cream); }
.mm__link[aria-current="page"] .mm__label { color: var(--crema); }
.mm__link[aria-current="page"] .mm__label::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: .55rem; border-radius: 50%; background: var(--cherry); vertical-align: .35em; }
.mm__event {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: center;
  padding: .9rem 1rem; border-radius: 18px; background: #2a1d16; border: 1px solid var(--line); text-decoration: none; color: inherit;
}
.mm__date { display: grid; justify-items: center; min-width: 52px; padding-right: 1rem; border-right: 1px solid var(--line); }
.mm__date b { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: .95; }
.mm__date small { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.mm__event b { display: block; font-weight: 600; font-size: 1rem; }
.mm__event span > span { display: block; font-size: .85rem; color: var(--muted); }
.mm__kicker { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--crema); margin-bottom: .15rem; }
.mm__event > svg { color: var(--muted); }
.mm__ctas { display: grid; gap: .6rem; }
.mm__ctas .btn { width: 100%; padding: 1.05rem 1.2rem; font-size: 1rem; }
.mm__foot { margin-top: auto; display: flex; flex-wrap: wrap; column-gap: 1.4rem; padding-top: .5rem; border-top: 1px solid var(--line); }
.mm__foot a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; color: var(--muted); text-decoration: none; }
.mm__foot a:hover { color: var(--cream); }
.mm [data-mm] { opacity: 0; transform: translateY(14px); transition: opacity .35s, transform .5s var(--ease-out); }
.menu-open .mm [data-mm] { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i) * .03s); }
@media (min-width: 1021px) { .mm { display: none; } }
@media (max-height: 640px) { .mm__link { min-height: 60px; padding: .7rem 0; } .mm__label { font-size: 1.55rem; } .mm__inner { gap: 1.1rem; } }

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--espresso); --b-fg: var(--cream); --b-fill: var(--cherry);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: .65rem; justify-content: center;
  padding: .95rem 1.45rem; border-radius: 999px; border: 1px solid var(--b-bg);
  background: var(--b-bg); color: var(--b-fg); text-decoration: none; font-weight: 500; font-size: .98rem; line-height: 1;
  transition: color .45s var(--ease-out), border-color .45s;
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--b-fill);
  transform: translateY(101%); transition: transform .55s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { border-color: var(--b-fill); }
.btn .arrow { width: 1.05em; height: 1.05em; transition: transform .45s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px) rotate(-45deg); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--fg); --b-fill: var(--espresso); border-color: var(--line); }
.btn--ghost:hover { color: var(--cream); }
.dark .btn--ghost:hover { --b-fill: var(--cream); color: var(--espresso); }
.btn--cream { --b-bg: var(--cream); --b-fg: var(--espresso); --b-fill: var(--crema); }
.btn--sm { padding: .7rem 1.1rem; font-size: .9rem; }
.btn--lg { padding: 1.2rem 1.9rem; font-size: 1.05rem; }

.link-arrow { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow svg { width: 1em; transition: transform .4s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

.chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .85rem; border-radius: 999px;
  border: 1px solid var(--line); font-size: .85rem; background: color-mix(in oklab, var(--bg) 60%, transparent);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cherry); }
.live-dot { position: relative; }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--cherry); animation: ping 2s var(--ease-out) infinite; }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* ---------- hero ---------- */
.hero { min-height: 100svh; padding-top: clamp(6.5rem, 14svh, 9.5rem); padding-bottom: clamp(2.5rem, 6svh, 4rem); position: relative; display: grid; align-items: center; }
/* keep the headline in proportion on short laptop screens so the CTAs stay above the fold */
.hero h1 { font-size: min(var(--step-5), 13.5svh); }
@media (max-width: 920px) { .hero h1 { font-size: var(--step-5); } }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 4vw, 5rem); align-items: center; }
.hero h1 { margin-bottom: 1.8rem; }
.hero h1 .line { display: block; overflow: hidden; padding: 0 .16em .06em 0; margin: 0 -.16em -.06em 0; }
.hero h1 .line > span { display: inline-block; }
.hero h1 em { color: var(--cherry); }
.hero__sub { font-size: var(--step-1); color: var(--muted); max-width: 40ch; margin-bottom: 2.2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2.4rem; }
.next-session {
  display: inline-flex; align-items: center; gap: .9rem; padding: .55rem .6rem .55rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); text-decoration: none; font-size: .92rem; background: color-mix(in oklab, var(--paper) 70%, transparent);
  transition: border-color .3s, background .3s;
}
.next-session:hover { border-color: var(--cherry); }
.next-session b { font-weight: 600; }
.next-session .pill { background: var(--espresso); color: var(--cream); border-radius: 999px; padding: .35rem .7rem; font-family: var(--font-mono); font-size: .75rem; letter-spacing: .06em; }

.hero__visual { position: relative; aspect-ratio: 4 / 5; max-height: 78svh; justify-self: center; width: 100%; max-width: 520px; }
.arch {
  position: absolute; inset: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--roast); box-shadow: var(--shadow); transform-origin: 50% 100%;
}
.arch video, .arch img { width: 100%; height: 100%; object-fit: cover; }
.arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(29,19,14,.55)); }
.arch__caption { position: absolute; left: 1.4rem; bottom: 1.2rem; z-index: 2; color: var(--cream); font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.note-chip {
  position: absolute; z-index: 3; padding: .55rem .95rem .55rem .6rem; border-radius: 999px;
  background: var(--paper); box-shadow: 0 20px 40px -18px rgba(29,19,14,.45); font-size: .88rem; white-space: nowrap;
  display: inline-flex; align-items: center; gap: .5rem; will-change: transform;
}
.note-chip i { width: 22px; height: 22px; border-radius: 50%; display: inline-block; background: var(--c, var(--cherry)); }
.note-chip span { font-family: var(--font-display); font-style: italic; font-size: 1.02rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: grid; justify-items: center; gap: .6rem; }
.scroll-cue::after { content: ""; width: 1px; height: 46px; background: linear-gradient(var(--muted), transparent); animation: drip 2.2s var(--ease-in-out) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 420px; aspect-ratio: 4/4.6; }
    .scroll-cue { display: none; }
}

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 1.4rem; background: var(--bg); position: relative; }
.marquee__track { display: flex; width: max-content; gap: 0; will-change: transform; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__item { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 3vw, 4.2rem); font-style: italic; letter-spacing: -0.03em; padding-inline: 1.6rem; white-space: nowrap; line-height: 1.1; }
.marquee__sep { width: 14px; height: 14px; border-radius: 50%; background: var(--cherry); flex-shrink: 0; }
.marquee--venues .marquee__item { font-style: normal; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.3rem); }
.marquee--venues .marquee__sep { width: 8px; height: 8px; background: var(--crema); }
html:not(.js) .marquee__track { animation: marq 40s linear infinite; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- proof ---------- */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.proof__item { padding: 2.2rem var(--gutter) 2.2rem 0; border-right: 1px solid var(--line); }
.proof__item:last-child { border-right: 0; }
.proof__num { font-family: var(--font-display); font-size: var(--step-4); line-height: 1; letter-spacing: -0.04em; display: block; margin-bottom: .5rem; }
.proof__label { color: var(--muted); font-size: .95rem; }
.proof__item:first-child { padding-left: 0; }
@media (min-width: 861px) { .proof__item + .proof__item { padding-left: 2rem; } }
@media (max-width: 860px) {
  .proof { grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
  .proof__item { padding: 1.5rem 1rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .proof__item:nth-child(odd) { padding-left: 0; border-right: 1px solid var(--line); }
  .proof__item:nth-child(n+3) { border-bottom: 0; }
  .proof__num { font-size: clamp(2rem, 9vw, 2.6rem); margin-bottom: .35rem; }
  .proof__label { font-size: .9rem; line-height: 1.35; display: block; }
}

/* ---------- notes pit (physics playground) ---------- */
.pit__head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.pit__side { display: grid; gap: 1.2rem; justify-items: start; }
.pit__side .lede { margin: 0; }
@media (max-width: 860px) { .pit__head { grid-template-columns: 1fr; } }
.pit {
  position: relative; height: clamp(420px, 62svh, 640px); border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 110%, #3b2418 0%, var(--espresso) 60%); touch-action: pan-y;
  -webkit-user-select: none; user-select: none; isolation: isolate;
}
.pit::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in oklab, var(--cream) 18%, transparent) 1px, transparent 0);
  background-size: 26px 26px;
}
.pit__fallback { list-style: none; margin: 0; padding: 2rem; height: 100%; display: flex; flex-wrap: wrap; gap: .6rem; align-content: flex-end; }
.pit__fallback li, .pit__note {
  background: var(--c); color: var(--paper); border-radius: 999px; padding: .75rem 1.35rem; white-space: nowrap;
  font-family: var(--font-display); font-style: italic; font-size: clamp(1.05rem, .95rem + .8vw, 1.7rem); line-height: 1.1;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; box-shadow: inset 0 -3px 0 rgba(0,0,0,.18);
}
.pit.is-live .pit__fallback { display: none; }
.pit__fallback li.pit__method { --c: var(--espresso); font-family: var(--font-mono); font-style: normal; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; border: 1px solid color-mix(in oklab, var(--cream) 30%, transparent); }
.pit__note, .pit__bean, .pit__dot { position: absolute; left: 0; top: 0; will-change: transform; cursor: grab; }
.pit__note:active, .pit__bean:active, .pit__dot:active { cursor: grabbing; }
.pit__dot {
  border-radius: 50%; display: grid; place-items: center; text-align: center; background: var(--c); color: var(--paper);
  box-shadow: inset 0 0 0 3px color-mix(in oklab, var(--paper) 22%, transparent);
  font-family: var(--font-mono); font-size: .74rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1.2; padding: .5rem;
}
.pit__bean svg { width: 100%; height: 100%; overflow: visible; }

/* ---------- statement (scrubbed words) ---------- */
.statement { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.18; letter-spacing: -0.025em; max-width: 26ch; }
.statement .w { opacity: 1; transition: opacity .2s; }
.js .statement[data-scrub-words] .w { opacity: .14; }
.statement strong { font-weight: 400; color: var(--cherry); font-style: italic; }
.answer-card {
  margin-top: 3rem; display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; max-width: 760px;
  padding: 1.6rem 1.8rem; border-radius: var(--radius); border: 1px solid var(--line); background: color-mix(in oklab, var(--bg) 85%, var(--oat));
}
.answer-card h3 { font-size: var(--step-1); margin-bottom: .5rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.answer-card p { color: var(--muted); margin: 0; }
.answer-card .q { font-family: var(--font-mono); font-size: .8rem; color: var(--cherry); padding-top: .25rem; }

/* ---------- journey (pinned horizontal) ---------- */
.journey { position: relative; overflow: hidden; }
.journey__head { padding-top: clamp(5rem, 8vw, 9rem); }
.journey__viewport { position: relative; }
.journey__track { display: flex; gap: clamp(1rem, 2vw, 2rem); padding: 3rem var(--edge) clamp(4rem, 8vw, 8rem); width: max-content; }
.stage {
  width: min(78vw, 560px); flex-shrink: 0; border-radius: var(--radius-lg); padding: 2.2rem; position: relative;
  border: 1px solid var(--line); background: color-mix(in oklab, var(--bg) 92%, var(--cream)); min-height: 520px;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
}
.stage__num { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .14em; color: var(--muted); }
.stage__art { height: 230px; display: grid; place-items: center; margin-block: 1.2rem; }
.stage__art svg { height: 230px; width: 240px; overflow: visible; }
@media (min-width: 901px) {
  .journey__viewport { height: 100svh; display: flex; align-items: center; }
  .journey__track { padding-block: 2rem 3rem; }
  .stage { min-height: min(560px, 74svh); }
  .stage__art { --art: clamp(150px, 26svh, 230px); height: var(--art); }
  .stage__art svg { height: var(--art); width: calc(var(--art) * 240 / 230); }
}
.stage__art .draw { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.stage__art .fill-c { fill: var(--cherry); }
.stage__art .fill-cr { fill: var(--crema); }
.stage__art .fill-l { fill: var(--leaf); }
.stage h3 { font-size: var(--step-3); margin-bottom: .8rem; }
.stage p { color: var(--muted); margin: 0; max-width: 38ch; }
.stage__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.stage__num { white-space: nowrap; }
.stage__tag { font-family: var(--font-display); font-style: italic; font-size: 1.1rem; line-height: 1.2; color: var(--cherry); text-align: right; }
.stage--end { background: var(--cherry); color: var(--paper); border-color: transparent; --muted: color-mix(in oklab, var(--paper) 78%, transparent); }
.stage--end .stage__tag { color: var(--paper); }
.journey__progress { position: absolute; left: var(--edge); right: var(--edge); bottom: 2.5rem; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.journey__progress span { display: block; height: 100%; width: 100%; background: var(--cherry); transform-origin: left; transform: scaleX(0); }
.journey__hint { display: none; }
@media (max-width: 900px) {
  /* phones: compact swipe carousel instead of five tall stacked cards */
  .journey__head { padding-top: clamp(4rem, 10vw, 6rem); }
  .journey__track {
    width: auto; gap: .9rem; padding: 1.6rem var(--gutter) 3.4rem; overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .journey__track::-webkit-scrollbar { display: none; }
  .stage { width: min(80vw, 340px); min-height: 0; padding: 1.4rem 1.4rem 1.6rem; scroll-snap-align: start; border-radius: 28px; }
  .stage__tag { font-size: .98rem; }
  .stage__art { height: 140px; margin-block: .8rem 1rem; }
  .stage__art svg { height: 140px; width: 146px; }
  .stage h3 { font-size: 1.85rem; margin-bottom: .5rem; }
  .stage p { font-size: .95rem; }
  .stage--end { justify-content: flex-start; gap: 2rem; }
  .journey__progress { display: block; bottom: 1.6rem; }
  .journey__hint { display: inline-flex; align-items: center; gap: .5rem; margin: 1.2rem 0 0; font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
}

/* ---------- paths (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.8rem, 1.4vw, 1.25rem); }
.card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: clamp(1.6rem, 2.5vw, 2.6rem);
  background: var(--cream); border: 1px solid var(--line); display: flex; flex-direction: column; min-height: 420px;
  transform-style: preserve-3d; transition: box-shadow .5s;
}
.card:hover { box-shadow: var(--shadow); }
.card--corp { grid-column: span 7; background: var(--espresso); color: var(--cream); --muted: color-mix(in oklab, var(--cream) 65%, transparent); --line: color-mix(in oklab, var(--cream) 16%, transparent); border-color: transparent; }
.card--comm { grid-column: span 5; background: var(--leaf-soft); }
.card--host { grid-column: span 12; min-height: 0; flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; background: var(--oat); }
.card h3 { font-size: var(--step-3); margin: .2rem 0 1rem; }
.card p { color: var(--muted); max-width: 44ch; }
.card ul { list-style: none; padding: 0; margin: 1rem 0 2rem; display: grid; gap: .6rem; }
.card li { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: baseline; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.card li b { font-family: var(--font-mono); font-weight: 500; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--crema); min-width: 8.5em; }
/* long format names would squeeze the details into a sliver on phones: stack them */
@media (max-width: 560px) { .card--corp li { grid-template-columns: 1fr; gap: .2rem; } }
.card--comm li b { color: var(--leaf); }
.card__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; justify-content: space-between; }
.card__img { position: absolute; right: -50px; top: -50px; width: 180px; height: 180px; border-radius: 50%; overflow: hidden; opacity: .9; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card .eyebrow { margin-bottom: .6rem; }
@media (max-width: 900px) {
  .card--corp, .card--comm, .card--host { grid-column: span 12; }
  .card--host { flex-direction: column; align-items: flex-start; }
  .card__img { width: 150px; height: 150px; right: -30px; top: -30px; }
}
/* phones: keep the corner photo clear of the card heading */
@media (max-width: 560px) {
  .card__img { width: 110px; height: 110px; }
  .card:has(.card__img) :is(h3, .eyebrow) { max-width: calc(100% - 64px); }
}

/* ---------- flavour wheel ---------- */
.palate { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 6rem); align-items: center; }
.wheel-wrap { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: center; }
.wheel { width: 100%; height: 100%; overflow: visible; transition: transform 1.2s var(--ease-out); }
.wheel .seg { cursor: pointer; transition: opacity .35s, transform .5s var(--ease-out); transform-origin: 250px 250px; }
.wheel .seg path { stroke: var(--bg); stroke-width: 3; }
.wheel .seg text { font-family: var(--font-display); font-style: italic; font-size: 17px; fill: var(--paper); pointer-events: none; }
.wheel.has-pick .seg:not(.is-on) { opacity: .28; }
.wheel .seg.is-on { transform: scale(1.045); }
.wheel .seg:focus-visible path { stroke: var(--espresso); stroke-width: 4; }
.wheel__hub { position: absolute; inset: 31%; border-radius: 50%; background: var(--bg); display: grid; place-items: center; text-align: center; padding: 1rem; box-shadow: inset 0 0 0 1px var(--line); }
.wheel__hub b { font-family: var(--font-display); font-size: clamp(1.1rem, 2.2vw, 1.6rem); line-height: 1.1; font-weight: 400; display: block; }
.wheel__hub small { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.flavours { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.6rem 0; }
.flavour-btn {
  border: 1px solid var(--line); background: transparent; padding: .6rem 1rem; border-radius: 999px; font-size: .95rem;
  display: inline-flex; align-items: center; gap: .5rem; transition: background .3s, color .3s, border-color .3s;
}
.flavour-btn i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.flavour-btn[aria-pressed="true"] { background: var(--c); color: var(--paper); border-color: var(--c); }
.flavour-btn[aria-pressed="true"] i { background: var(--paper); }
.palate-result {
  border-radius: var(--radius); padding: 1.6rem 1.8rem; background: var(--espresso); color: var(--cream);
  min-height: 190px; display: grid; align-content: start; gap: .5rem;
}
.palate-result .label { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--latte); }
.palate-result h3 { font-size: var(--step-2); }
.palate-result p { color: color-mix(in oklab, var(--cream) 72%, transparent); margin: 0 0 .6rem; }
.palate-result .btn { justify-self: start; margin-top: .4rem; }
.dark .palate-result { background: #2a1d16; border: 1px solid var(--line); }
@media (max-width: 900px) { .palate { grid-template-columns: 1fr; } }

/* ---------- sessions ---------- */
.event {
  display: grid; grid-template-columns: 170px 1fr auto; gap: clamp(1rem, 3vw, 3rem); align-items: center;
  padding: clamp(1.4rem, 2.5vw, 2.2rem); border-radius: var(--radius-lg); background: var(--paper); border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.event + .event { margin-top: 1rem; }
.event__date { text-align: center; border-right: 1px solid var(--line); padding-right: clamp(1rem, 3vw, 3rem); }
.event__date b { font-family: var(--font-display); font-weight: 400; font-size: 4.4rem; line-height: .9; display: block; letter-spacing: -0.05em; }
.event__date span { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.event h3 { font-size: var(--step-2); margin-bottom: .5rem; }
.event__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; color: var(--muted); font-size: .95rem; margin-bottom: .8rem; }
.event__meta span { display: inline-flex; gap: .4rem; align-items: center; }
.event__incl { display: flex; flex-wrap: wrap; gap: .4rem; }
.event__price { text-align: right; display: grid; gap: .8rem; justify-items: end; }
.event__price b { font-family: var(--font-display); font-weight: 400; font-size: var(--step-3); line-height: 1; }
.event__price small { color: var(--muted); font-size: .8rem; }
.event--ghost { background: transparent; border-style: dashed; }
@media (max-width: 860px) {
  .event { grid-template-columns: 1fr; }
  .event__date { text-align: left; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 1rem; display: flex; align-items: baseline; gap: .8rem; }
  .event__price { text-align: left; justify-items: start; }
}

/* ---------- stacked steps ---------- */
.steps { display: grid; gap: 0; }
.step {
  position: sticky; top: calc(110px + var(--i) * 22px);
  display: grid; grid-template-columns: 120px 1fr 1fr; gap: 2rem; align-items: start;
  padding: clamp(1.8rem, 3vw, 2.8rem); border-radius: var(--radius-lg); margin-bottom: 1.2rem;
  background: var(--paper); border: 1px solid var(--line); box-shadow: 0 -20px 40px -30px rgba(29,19,14,.25);
  transform-origin: 50% 0;
}
.dark .step { background: #2a1d16; }
.step__n { font-family: var(--font-display); font-size: var(--step-4); line-height: .9; color: var(--crema); font-style: italic; }
.step h3 { font-size: var(--step-2); }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .step { grid-template-columns: 1fr; gap: .8rem; position: relative; top: auto; } }

/* ---------- founder ---------- */
.founder { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 7rem); align-items: center; }
.founder__photo { position: relative; aspect-ratio: 4/5; border-radius: var(--radius-lg); overflow: hidden; background: var(--oat); }
.founder__photo img { width: 100%; height: 120%; margin-top: -10%; object-fit: cover; object-position: 50% 35%; }
.founder__badge { position: absolute; left: 1rem; bottom: 1rem; right: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius); background: color-mix(in oklab, var(--paper) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .9rem; }
.founder__badge b { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; }
.founder blockquote { margin: 0 0 2rem; font-family: var(--font-display); font-size: var(--step-3); line-height: 1.12; letter-spacing: -0.025em; }
.founder blockquote em { color: var(--cherry); }
.creds { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; margin: 2rem 0; }
.cred { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 16px; display: grid; gap: .2rem; }
.cred b { font-weight: 600; font-size: .95rem; }
.cred span { font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; } }

/* ---------- reels ---------- */
.reels { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); padding: .5rem var(--edge) 2rem; scrollbar-width: none; cursor: grab; }
.reels::-webkit-scrollbar { display: none; }
.reels.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.reel {
  flex: 0 0 auto; width: clamp(220px, 24vw, 300px); aspect-ratio: 9/16; border-radius: 26px; overflow: hidden; position: relative;
  scroll-snap-align: start; background: var(--roast); border: 0; padding: 0; color: var(--cream); text-align: left;
}
.reel video { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out), filter .6s; filter: saturate(.85); }
.reel:hover video, .reel.is-playing video { transform: scale(1.04); filter: saturate(1.05); }
.reel__ui { position: absolute; inset: auto 0 0 0; padding: 1rem; background: linear-gradient(transparent, rgba(29,19,14,.8)); display: flex; justify-content: space-between; align-items: end; gap: .6rem; }
.reel__ui span { font-size: .85rem; line-height: 1.3; }
.reel__btn { width: 42px; height: 42px; border-radius: 50%; background: var(--paper); color: var(--espresso); display: grid; place-items: center; flex-shrink: 0; }
.reel__btn svg { width: 16px; height: 16px; }
.reel .sound { position: absolute; top: .8rem; right: .8rem; width: 36px; height: 36px; border-radius: 50%; background: rgba(29,19,14,.55); display: grid; place-items: center; opacity: 0; transition: opacity .3s; }
.reel.is-playing .sound { opacity: 1; }
.reel .sound svg { width: 16px; }

/* ---------- gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 80px; gap: 1rem; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--oat); }
.gallery img { width: 100%; height: 120%; margin-top: -10%; object-fit: cover; }
/* press clipping: shown whole like a pinned cutting, never cropped or parallaxed */
.gallery .press { background: var(--oat); display: grid; place-items: center; padding: clamp(.9rem, 2vw, 1.4rem) clamp(.9rem, 2vw, 1.4rem) 3rem; }
.press__clip { display: block; width: 100%; height: 100%; transform: rotate(-1.6deg); transition: transform .35s var(--ease-out); }
.press__clip:hover, .press__clip:focus-visible { transform: rotate(0deg) scale(1.02); }
.gallery .press img { width: 100%; height: 100%; margin: 0; object-fit: contain; background: #fff; padding: 6px; box-shadow: 0 14px 28px -14px rgba(29,19,14,.45), 0 2px 4px rgba(29,19,14,.12); }
.gallery figcaption { position: absolute; left: .8rem; bottom: .8rem; padding: .35rem .7rem; border-radius: 999px; background: var(--paper); font-size: .78rem; font-family: var(--font-mono); letter-spacing: .04em; }
.g1 { grid-column: 1 / 8; grid-row: span 5; }
.g2 { grid-column: 8 / 13; grid-row: span 7; }
.g3 { grid-column: 1 / 5; grid-row: span 5; }
.g4 { grid-column: 5 / 8; grid-row: span 5; }
.g5 { grid-column: 8 / 13; grid-row: span 3; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 120px; }
  .g1 { grid-column: 1 / 3; grid-row: span 2; } .g2 { grid-column: 1 / 2; grid-row: span 3; } .g3 { grid-column: 2 / 3; grid-row: span 3; }
  .g4 { grid-column: 1 / 2; grid-row: span 2; } .g5 { grid-column: 2 / 3; grid-row: span 2; }
}

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.quote { padding: 2rem; border-radius: var(--radius-lg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 1.6rem; min-height: 300px; }
.quote p { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
.quote p::before { content: "“"; display: block; font-size: 3.5rem; line-height: .6; color: var(--cherry); margin-bottom: .6rem; }
.quote footer { margin-top: auto; font-size: .9rem; color: var(--muted); }
.quote footer b { color: var(--fg); font-weight: 600; display: block; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } .quote { min-height: 0; } }

/* ---------- comparison table ---------- */
.compare { width: 100%; border-collapse: collapse; font-size: .98rem; }
.compare th, .compare td { text-align: left; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--font-mono); font-weight: 500; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.compare tbody th { font-weight: 600; }
.compare .yes { color: var(--leaf); font-weight: 600; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.dark .compare .yes { color: var(--leaf-soft); }

/* ---------- formats (corporate tiers) ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; }
.tier { border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; gap: 1rem; position: relative; }
.tier--feature { background: var(--espresso); color: var(--cream); border-color: transparent; --muted: color-mix(in oklab, var(--cream) 65%, transparent); --line: color-mix(in oklab, var(--cream) 16%, transparent); }
.tier__flag { position: static; align-self: flex-start; order: -1; margin-bottom: -.25rem; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; background: var(--cherry); color: var(--paper); padding: .35rem .6rem; border-radius: 999px; }
.tier h3 { font-size: var(--step-3); text-wrap: balance; }
.tier .best { color: var(--muted); font-size: .95rem; }
.tier dl { display: grid; grid-template-columns: auto 1fr; gap: .7rem 1rem; margin: .5rem 0 1rem; font-size: .93rem; }
.tier dt { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.tier dd { margin: 0; }
.tier .btn { margin-top: auto; }
@media (max-width: 980px) { .tiers { grid-template-columns: 1fr; } }

.uses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.use { padding: 1.6rem; border-radius: var(--radius); border: 1px solid var(--line); min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.use svg { width: 40px; height: 40px; color: var(--cherry); }
.use h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; margin-bottom: .4rem; }
.use p { color: var(--muted); font-size: .93rem; margin: 0; }
.uses--3 { grid-template-columns: repeat(3, 1fr); }
.tiers--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .uses, .uses--3 { grid-template-columns: 1fr 1fr; } .tiers--2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .uses { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1.5rem; align-items: center;
  padding: 1.5rem 0; font-family: var(--font-display); font-size: var(--step-1); letter-spacing: -0.01em;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary .pm { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); flex-shrink: 0; position: relative; transition: background .3s, transform .5s var(--ease-out); }
.faq__list summary .pm::before, .faq__list summary .pm::after { content: ""; position: absolute; left: 10px; right: 10px; top: 16px; height: 1.5px; background: currentColor; }
.faq__list summary .pm::after { transform: rotate(90deg); transition: transform .5s var(--ease-out); }
.faq__list details[open] summary .pm { background: var(--cherry); color: var(--paper); border-color: var(--cherry); }
.faq__list details[open] summary .pm::after { transform: rotate(0deg); }
.faq__list details::details-content { block-size: 0; overflow: hidden; transition: block-size .55s var(--ease-out), content-visibility .55s allow-discrete; }
.faq__list details[open]::details-content { block-size: auto; }
.faq__list .ans { padding: 0 3.5rem 1.6rem 0; color: var(--muted); }
.faq__list .ans p:last-child { margin: 0; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } .faq__list .ans { padding-right: 0; } }

/* ---------- forms ---------- */
.planner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.form { display: grid; gap: 1rem; padding: clamp(1.4rem, 3vw, 2.4rem); border-radius: var(--radius-lg); background: color-mix(in oklab, var(--bg) 80%, var(--cream)); border: 1px solid var(--line); }
.dark .form { background: #261a14; }
.seg-toggle { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; padding: .35rem; border-radius: 999px; border: 1px solid var(--line); }
.seg-toggle label { position: relative; text-align: center; }
.seg-toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-toggle span { display: block; padding: .7rem .5rem; border-radius: 999px; font-size: .9rem; transition: background .35s, color .35s; }
.seg-toggle input:checked + span { background: var(--fg); color: var(--bg); }
.seg-toggle input:focus-visible + span { outline: 2px solid var(--cherry); outline-offset: 2px; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .82rem; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: .95rem 1.1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--bg);
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cherry); box-shadow: 0 0 0 4px color-mix(in oklab, var(--cherry) 18%, transparent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.range-out { font-family: var(--font-display); font-size: 1.6rem; }
input[type="range"] { accent-color: var(--cherry); padding: 0; border: 0; background: transparent; }
.form__note { font-size: .82rem; color: var(--muted); margin: 0; }
.form__status { font-size: .92rem; min-height: 1.4em; margin: 0; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 900px) { .planner { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } .seg-toggle span { font-size: .8rem; } }

/* ---------- CTA ---------- */
.cta-final { text-align: center; padding-block: clamp(6rem, 12vw, 12rem); overflow: hidden; position: relative; }
.cta-final h2 { font-size: var(--step-5); letter-spacing: -0.045em; margin-bottom: 2rem; }
.cta-final h2 em { color: var(--crema); }
.cta-final .btn-row { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.steam { position: absolute; left: 50%; top: 8%; width: 240px; translate: -50% 0; opacity: .4; pointer-events: none; }
.steam path { fill: none; stroke: var(--latte); stroke-width: 2; stroke-linecap: round; }

/* ---------- footer ---------- */
.footer { background: var(--espresso); color: var(--cream); padding-top: 5rem; overflow: hidden; --muted: color-mix(in oklab, var(--cream) 60%, transparent); --line: color-mix(in oklab, var(--cream) 14%, transparent); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line); }
.footer h4 { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; font-weight: 500; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer a { text-decoration: none; opacity: .9; }
.footer a:hover { opacity: 1; text-decoration: underline; }
.footer address { font-style: normal; color: var(--muted); }
.footer__word { font-family: var(--font-logo); font-weight: 700; font-size: clamp(3rem, 13.4vw, 13.4rem); line-height: .85; letter-spacing: -0.04em; white-space: nowrap; padding-top: 2rem; margin-bottom: -0.12em; color: var(--cream); display: flex; justify-content: center; }
.footer__word span { display: inline-block; }
.footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-block: 1.4rem; font-size: .85rem; color: var(--muted); }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- floating WhatsApp ---------- */
.wa-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 75; display: inline-flex; align-items: center; gap: .6rem;
  padding: .6rem 1.1rem .6rem .6rem; border-radius: 999px; background: var(--espresso); color: var(--cream); text-decoration: none; font-size: .9rem;
  box-shadow: 0 20px 40px -20px rgba(29,19,14,.6); transform: translateY(140%); transition: transform .6s var(--ease-out);
}
.wa-fab.is-in { transform: translateY(0); }
.wa-fab .ic { width: 38px; height: 38px; border-radius: 50%; background: #25d366; display: grid; place-items: center; }
.wa-fab svg { width: 20px; height: 20px; fill: #fff; }
@media (max-width: 520px) { .wa-fab span.t { display: none; } .wa-fab { padding: .5rem; } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding-top: clamp(9rem, 7rem + 6vw, 13rem); padding-bottom: clamp(3rem, 6vw, 6rem); position: relative; }
.page-hero h1 { font-size: clamp(2.9rem, 1.8rem + 5.6vw, 7.4rem); max-width: 14ch; margin-bottom: 1.6rem; }
.page-hero h1 em { color: var(--cherry); }
.page-hero .lede { max-width: 52ch; margin-bottom: 2rem; }
.crumbs { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; color: var(--muted); margin-bottom: 1.6rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--cherry); }
.page-hero__media { margin-top: 3rem; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21/9; background: var(--roast); }
.page-hero__media video, .page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .page-hero__media { aspect-ratio: 4/3; } }
/* three portrait clips side by side (until landscape footage exists) */
.page-hero__media.media-trio {
  aspect-ratio: auto; height: clamp(300px, 38vw, 540px); background: none; border-radius: 0; overflow: visible;
  display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: clamp(.5rem, 1.2vw, 1rem); align-items: center;
}
.media-trio video { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg); background: var(--roast); }
.media-trio video:not(:nth-child(2)) { height: 86%; }
@media (max-width: 700px) {
  .page-hero__media.media-trio { height: auto; grid-template-columns: 1fr; }
  .media-trio video { aspect-ratio: 4 / 5; height: auto; }
  .media-trio video:not(:nth-child(2)) { display: none; }
}

/* ---------- guide (article) ---------- */
.article { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.toc { position: sticky; top: 110px; font-size: .92rem; }
.toc h2 { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; counter-reset: t; border-left: 1px solid var(--line); }
.toc a { display: block; padding: .45rem 0 .45rem 1rem; text-decoration: none; color: var(--muted); border-left: 2px solid transparent; margin-left: -1px; transition: color .3s, border-color .3s; }
.toc a.is-active, .toc a:hover { color: var(--fg); border-left-color: var(--cherry); }
.prose { max-width: 70ch; font-size: 1.08rem; }
.prose h2 { font-size: var(--step-3); margin: 4.5rem 0 1.2rem; scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-1); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; margin: 2rem 0 .6rem; }
.prose p, .prose li { color: color-mix(in oklab, var(--fg) 84%, transparent); }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose li::marker { color: var(--cherry); }
.tldr { padding: 1.4rem 1.6rem; border-radius: var(--radius); background: var(--cream); border-left: 3px solid var(--cherry); margin: 1.2rem 0 1.6rem; }
.tldr b { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cherry); display: block; margin-bottom: .4rem; font-weight: 500; }
.tldr p { margin: 0; color: var(--fg); }
.glossary { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin: 1.4rem 0; }
.glossary div { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 16px; }
.glossary dt { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: .3rem; }
.glossary dd { margin: 0; color: var(--muted); font-size: .95rem; }
.author-box { display: grid; grid-template-columns: 80px 1fr; gap: 1.2rem; align-items: center; padding: 1.4rem; border-radius: var(--radius); border: 1px solid var(--line); margin: 2rem 0; }
.author-box img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--oat); }
.author-box p { margin: 0; font-size: .95rem; color: var(--muted); }
.author-box b { color: var(--fg); }
.howto { counter-reset: h; list-style: none; padding: 0 !important; display: grid; gap: .8rem; }
.howto li { counter-increment: h; display: grid; grid-template-columns: 52px 1fr; gap: 1rem; padding: 1.2rem; border-radius: 18px; border: 1px solid var(--line); margin: 0 !important; }
.howto li::before { content: counter(h, decimal-leading-zero); font-family: var(--font-display); font-style: italic; font-size: 1.8rem; color: var(--cherry); line-height: 1; }
.howto li b { display: block; color: var(--fg); margin-bottom: .2rem; }
@media (max-width: 960px) { .article { grid-template-columns: minmax(0, 1fr); } .toc { position: static; } }

/* ---------- 404 ---------- */
.nf { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 8rem var(--gutter) 4rem; }
.nf h1 { font-size: clamp(6rem, 25vw, 18rem); line-height: .8; }
.nf h1 em { color: var(--cherry); }

/* ---------- motion helpers ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-reveal="fade"] { transform: none; }
.js [data-split] .wi { transform: translateY(105%); }
/* padding gives italic overhangs room inside the clipping box; negative margin keeps spacing unchanged */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .14em .1em .04em; margin: 0 -.14em -.1em -.04em; }
[data-split] .wi { display: inline-block; will-change: transform; }
.js [data-clip] { clip-path: inset(100% 0 0 0 round var(--radius-lg)); }
.is-ready [data-clip].is-in { clip-path: inset(0 0 0 0 round var(--radius-lg)); transition: clip-path 1.4s var(--ease-in-out); }

.no-motion [data-reveal], .no-motion [data-split] .wi { opacity: 1 !important; transform: none !important; }
.no-motion [data-clip] { clip-path: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-split] .wi, .js [data-clip] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js .statement[data-scrub-words] .w { opacity: 1; }
  .grain { animation: none; }
  @view-transition { navigation: none; }
}

::view-transition-old(root) { animation: .45s var(--ease-in-out) both vt-out; }
::view-transition-new(root) { animation: .6s var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Instagram strip (auto-updating feed) ---------- */
.ig__follow { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-start; }
.ig__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .6rem; }
.ig__post { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--oat); }
.ig__post img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.ig__post:hover img, .ig__post:focus-visible img { transform: scale(1.05); }
.ig__badge { position: absolute; top: .5rem; right: .5rem; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(29,19,14,.6); color: #fff; font-size: .7rem; }
@media (max-width: 900px) { .ig__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ig__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ig__grid .ig__post:nth-child(n+5) { display: none; } }
