/* ============================================================
   Soulmated — hero (skyline direction)
   Recreation of hero-voorbeeld-boston-skyline.png with Dan's
   locked copy. Palette + type from the brand guidelines.

   Design tokens are warm throughout: one accent (rose) for
   "you" / CTAs / icons / details, warm dark text instead of
   black, ivory/cream surfaces, and warm-brown (never grey)
   shadows derived from --shadow-rgb.
   ============================================================ */

:root {
  --bone:   #F5F1EA;  /* page background          */
  --oat:    #E7DED2;  /* secondary surface        */
  --peach:  #FEE1C7;  /* warm tint (icon chips)   */
  --ink:    #2A211E;  /* warm dark type           */
  --gray:   #6A6058;  /* warm muted (labels)      */
  --body:   #574E46;  /* body copy (more contrast)*/
  --blush:  #D8B6A3;
  --copper: #B56A52;
  --rose:   #BD5C5A;
  --beige:  #C9BFB4;
  --paper:  #FBF8F2;  /* card / surface           */
  --sand:   #F1E8DB;  /* alternating section bg    */

  /* one warm accent for "you", CTAs, icons, details */
  --accent:      #BD5C5A;
  --accent-soft: #C86C62;  /* lighter end of the CTA gradient */
  --accent-deep: #A8504C;  /* depth end of the CTA gradient   */

  /* warm-brown shadow base (never hard black/grey) */
  --shadow-rgb: 120, 74, 56;
  --line:       rgba(120, 74, 56, .12);   /* warm hairline borders */
  --line-soft:  rgba(120, 74, 56, .07);   /* warm soft dividers    */
  --glass:      rgba(252, 249, 244, .60); /* floating header pill  */

  --maxw: 1180px;
  --pill-radius: 999px;

  /* warm-deep family promoted to global so every section + utility can use it
     (dawn-to-dusk journey). Depth is ALWAYS warm, never cold near-black. */
  --cocoa:      #1E1818;  /* palette charcoal (retired the old chocolate brown) */
  --cocoa-deep: #161313;  /* deepest charcoal                           */
  --cocoa-mid:  #2A2424;  /* charcoal mid                               */
  --seam:       #6F665E;  /* palette taupe (was a mid-brown)            */
  --cream:      #F6ECDF;  /* warm light type on dark                    */
  --tan:        #D6BFAE;  /* warm body type on dark                     */
  --amber:      #C97C66;  /* warm copper-rose: numbers, glows, accents  */
  --coral:      #D27E72;  /* lightened brand rose for keywords          */

  /* --- Section 3 "copper room" (Method) -------------------------------- */
  --m-ground:  #B56A52;   /* the copper room (locked --copper); the wall      */
  --m-card:    #9C5340;   /* deeper bronze panel so light body text clears AA  */
  --m-floor:   #8A4A3A;   /* deepest copper: lit foot-glow + lower band        */
  --m-shadow:  42, 24, 18;/* warm terracotta shadow rgb for dark-surface cards */
  --m-edge-hi: rgba(255, 240, 224, .28);  /* glass top-edge highlight on copper */
  --m-num:     #FBF8F2;   /* number = flat near-white, carved (not neon)       */

  /* motion language — one system, declared once, reused everywhere */
  --ease-out:     cubic-bezier(.22, .61, .36, 1);   /* entrances, reveals, UI */
  --ease-spatial: cubic-bezier(.32, .72, 0, 1);     /* card expand / flip settle */
  --ease-inout:   cubic-bezier(.65, .05, .36, 1);   /* state swaps / crossfades */

  /* the traveling golden-hour key-light (the "sun" spine that replaces the
     thread). x/y are viewport-relative; one rAF scroll loop moves them along a
     dawn->dusk path; each section reads them in its own .s-sun glow layer. */
  --sun-x: 18%;
  --sun-y: 24%;
  --sun-i: .55;          /* intensity 0..1 */
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* `height: auto` is load-bearing, not cosmetic. Every <img> now carries width
   and height attributes so the browser can reserve the right box before the
   file arrives (no layout shift). Those attributes are ALSO presentational
   hints: with no author rule for height, `height="900"` lays the image out
   900px tall. The community format cards hit exactly that — they set only
   width, so the cards grew from 191px to 900px and the page by 709px. This
   rule restores `auto` wherever a stylesheet has not deliberately set a
   height; any rule with a class in it still outranks it. */
img { max-width: 100%; height: auto; }

/* Full-width page: sections run edge to edge so any of them can carry a
   full-bleed image/video background. Inner content is centered per-section
   with a shared .wrap container (max-width: var(--maxw)). */
main {
  position: relative;
  overflow-x: clip;
}

/* shared content container — centers a section's inner content and caps its
   measure, while the section itself stays full-bleed */
.wrap {
  width: min(var(--maxw), 100%);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* Sections 3-6 (Method, Paths, Community, Proof) carry their gutter inside
   .wrap's padding, which used to pull their CONTENT 40px in from each edge, so
   they read a touch narrower than the hero, the patterns rail and the header
   pill (all of which align their content to the bare --maxw edge). Widen the box
   by the gutter so the inner content lands on the exact same 1180 measure. */
.method  > .wrap,
.paths   > .wrap,
.community > .wrap,
.proof   > .wrap,
/* .flagship was missing from this list, so the Blueprint section's content sat
   40px narrower than every other section. Invisible while it had a centred
   header; obvious once brief 2 gave it a left-aligned two-column layout. */
.flagship > .wrap,
/* blueprint page: same alignment so every section's content lands on the
   bare --maxw (1180) edge, exactly as wide as the header pill */
.bp-gap     > .wrap,
.bp-doc     > .wrap,
.bp-anchors > .wrap,
.bp-proc    > .wrap,
.bp-yield   > .wrap,
.bp-diff    > .wrap,
.bp-quotes  > .wrap,
.bp-price   > .wrap {
  width: min(calc(var(--maxw) + 2 * clamp(1.25rem, 4vw, 2.5rem)), 100%);
}

/* ------------------------------------------------------------
   Buttons — matched height, radius, spacing & type
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--pill-radius);
  padding: .95rem 1.65rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.btn .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.btn .ico-arrow { width: 15px; height: 15px; margin-left: .15rem; }

/* primary: warm gradient, layered depth, soft hover lift.
   Warmed one notch toward amber/coral so every CTA foreshadows the golden-hour
   climax, while staying in the rose accent family for "yes" identity. */
.btn-primary {
  background: linear-gradient(140deg, #CE7E60 0%, var(--accent-soft) 42%, var(--accent-deep) 100%);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .20),
    0 1px 2px rgba(var(--shadow-rgb), .22),
    0 11px 24px -10px rgba(var(--shadow-rgb), .55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    0 2px 5px rgba(var(--shadow-rgb), .24),
    0 18px 34px -12px rgba(var(--shadow-rgb), .6);
}

/* secondary: minimal, chic, quiet surface + subtle hover */
.btn-ghost {
  background: rgba(252, 249, 244, .55);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(var(--shadow-rgb), .05);
}
.btn-ghost:hover {
  background: rgba(252, 249, 244, .92);
  border-color: rgba(120, 74, 56, .26);
  transform: translateY(-1px);
}

/* ------------------------------------------------------------
   Floating pill header — light, elegant, premium glass
   ------------------------------------------------------------ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.45rem 1.25rem;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  width: min(var(--maxw), 100%);
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: var(--pill-radius);
  padding: .5rem .5rem .5rem 1.6rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    0 1px 2px rgba(var(--shadow-rgb), .04),
    0 14px 34px -18px rgba(var(--shadow-rgb), .3);
}
/* min-height: 44px tap height, the logo keeps its size (audit 20 Nov F4: the link was 38px tall on phones) */
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 38px; width: auto; display: block; }

.nav-links {
  display: flex;
  gap: 2rem;
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nav-links a {
  color: #574E46;
  opacity: 1;
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}
.nav-links a:hover { color: var(--ink); opacity: 1; }

.nav-cta {
  margin-left: 1.8rem;
  padding: .72rem 1.25rem;
  font-size: .69rem;
  /* lighter elevation so the CTA sits gracefully inside the pill */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .2),
    0 8px 18px -10px rgba(var(--shadow-rgb), .55);
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-cta .ico { width: 14px; height: 14px; }

/* ---- mobile menu: hamburger toggle + expanding panel (shown under 920px) ---- */
.nav-burger {
  display: none;
  margin-left: auto;
  align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  border: 0; background: none; color: var(--ink); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nav-burger-box { position: relative; width: 22px; height: 14px; }
.nav-burger-box span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: currentColor;
  transition: transform .34s var(--ease-spatial), top .34s var(--ease-spatial), opacity .2s var(--ease-out);
}
.nav-burger-box span:nth-child(1) { top: 0; }
.nav-burger-box span:nth-child(2) { top: 6px; }
.nav-burger-box span:nth-child(3) { top: 12px; }
.nav.is-open .nav-burger-box span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav.is-open .nav-burger-box span:nth-child(2) { opacity: 0; }
.nav.is-open .nav-burger-box span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.nav-menu {
  display: none;
  pointer-events: auto;
  width: min(var(--maxw), 100%);
  margin-top: .55rem;
  flex-direction: column;
  padding: .65rem;
  background: rgba(252, 249, 244, .94);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    0 18px 44px -18px rgba(var(--shadow-rgb), .42);
  transform-origin: top center;
  transform: translateY(-12px) scaleY(.94);
  opacity: 0; visibility: hidden;
  transition: transform .36s var(--ease-spatial), opacity .28s var(--ease-out), visibility 0s linear .36s;
}
.nav.is-open .nav-menu {
  transform: none; opacity: 1; visibility: visible;
  transition: transform .4s var(--ease-spatial), opacity .3s var(--ease-out), visibility 0s;
}
.nav-menu > a { transform: translateY(-7px); opacity: 0; transition: transform .42s var(--ease-spatial), opacity .34s var(--ease-out); }
.nav-menu > a:not(.nav-menu-cta) {
  font-family: "JetBrains Mono", monospace;
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: #574E46; text-decoration: none;
  padding: .95rem 1.05rem; border-radius: 13px;
  transition: background .2s ease, color .2s ease, transform .42s var(--ease-spatial), opacity .34s var(--ease-out);
}
.nav-menu > a:not(.nav-menu-cta):hover { background: rgba(174, 84, 67, .08); color: var(--ink); }
.nav-menu-cta { justify-content: center; margin-top: .4rem; }
.nav.is-open .nav-menu > a { transform: none; opacity: 1; }
.nav.is-open .nav-menu > a:nth-child(1) { transition-delay: .08s; }
.nav.is-open .nav-menu > a:nth-child(2) { transition-delay: .14s; }
.nav.is-open .nav-menu > a:nth-child(3) { transition-delay: .20s; }
.nav.is-open .nav-menu > a:nth-child(4) { transition-delay: .26s; }

/* ---- mobile menu: collapsible "Shop" foldout ---------------------------- */
.nav-menu-fold { display: flex; flex-direction: column; }
.nav-menu-foldtoggle {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  width: 100%; text-align: left; cursor: pointer;
  background: none; border: 0; margin: 0;
  font-family: "JetBrains Mono", monospace; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  color: #574E46; padding: .95rem 1.05rem; border-radius: 13px;
  transition: background .2s ease, color .2s ease;
}
.nav-menu-foldtoggle:hover { background: rgba(174, 84, 67, .08); color: var(--ink); }
.nav-menu-caret { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .28s var(--ease-spatial); }
.nav-menu-fold.is-open .nav-menu-caret { transform: rotate(180deg); }
.nav-menu-sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease-spatial); }
.nav-menu-fold.is-open .nav-menu-sub { grid-template-rows: 1fr; }
.nav-menu-sub-inner { overflow: hidden; min-height: 0; }
.nav-menu-sub a {
  display: block; text-decoration: none;
  font-family: "JetBrains Mono", monospace; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: #6B6058; padding: .72rem 1.05rem .72rem 1.7rem; border-radius: 11px;
  transition: background .2s ease, color .2s ease;
}
.nav-menu-sub a:hover { background: rgba(174, 84, 67, .08); color: var(--ink); }

/* ---- Products dropdown in the primary (desktop) nav --------------------- */
.nav-drop { position: relative; display: inline-flex; align-items: center; }
.nav-drop-toggle {
  display: inline-flex; align-items: center; gap: .34rem;
  margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: #574E46; transition: color .2s ease;
}
.nav-drop-toggle:hover,
.nav-drop:hover .nav-drop-toggle,
.nav-drop:focus-within .nav-drop-toggle { color: var(--ink); }
.nav-drop-caret {
  width: 11px; height: 11px; fill: none; stroke: currentColor;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .28s var(--ease-spatial);
}
.nav-drop:hover .nav-drop-caret,
.nav-drop:focus-within .nav-drop-caret,
.nav-drop.is-open .nav-drop-caret { transform: rotate(180deg); }

.nav-drop-menu {
  position: absolute; top: calc(100% + .85rem); right: 0;
  min-width: 15.5rem;
  display: flex; flex-direction: column; gap: .1rem;
  padding: .5rem;
  background: rgba(252, 249, 244, .97);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .5),
    0 18px 44px -18px rgba(var(--shadow-rgb), .42);
  opacity: 0; visibility: hidden;
  transition: opacity .2s var(--ease-out), visibility 0s linear .2s;
  z-index: 60;
}
/* invisible bridge so the pointer can cross the gap without the menu closing */
.nav-drop-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -.85rem; height: .85rem; }
.nav-drop:hover .nav-drop-menu,
.nav-drop:focus-within .nav-drop-menu,
.nav-drop.is-open .nav-drop-menu {
  opacity: 1; visibility: visible;
  transition: opacity .2s var(--ease-out), visibility 0s;
}
.nav-drop-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .68rem .8rem; border-radius: 11px;
  font-family: "JetBrains Mono", monospace;
  font-size: .66rem; letter-spacing: .08em; text-transform: uppercase;
  color: #574E46; text-decoration: none; white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.nav-drop-menu a[href]:hover { background: rgba(174, 84, 67, .08); color: var(--ink); }
.nav-drop-menu .is-soon { color: rgba(87, 78, 70, .42); cursor: default; }
.nav-drop-soon {
  font-size: .54rem; letter-spacing: .1em; color: rgba(87, 78, 70, .34);
  border: 1px solid rgba(87, 78, 70, .18); border-radius: 999px; padding: .12rem .4rem;
}

/* ---- Products group inside the mobile menu ------------------------------ */
.nav-menu-label {
  margin: .55rem 1.05rem .1rem;
  font-family: "JetBrains Mono", monospace;
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(87, 78, 70, .5);
}
.nav-menu > a.nav-menu-soon { color: rgba(87, 78, 70, .4); cursor: default; }

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.6rem, 2.6vw, 2.4rem);
  padding: 7rem 1.5rem 1.5rem;
  overflow: hidden;
}
/* Skyline as a soft atmospheric layer: desaturated + lightly
   blurred, washed heavily to cream behind the copy (left) so it
   never competes with the headline, body or buttons. */
/* The skyline plate is a generated variant, not the 1.7 MB source PNG: it sits
   under four gradient washes and a blur(1.6px), so nothing above ~1600px is
   visible, and the mobile rule below drops to the 640px plate (13 KB) because
   its blur is heavier still. Regenerate with `npm run images`. */
.hero::before {
  content: "";
  position: absolute;
  inset: -2.5%;
  z-index: 0;
  background:
    radial-gradient(86% 60% at 82% 20%, rgba(254, 225, 199, .30) 0%, rgba(254, 225, 199, 0) 56%),
    radial-gradient(120% 95% at 80% 28%, rgba(245, 241, 234, 0) 0%, rgba(245, 241, 234, .30) 58%, rgba(245, 241, 234, .66) 100%),
    linear-gradient(100deg, var(--bone) 4%, rgba(245, 241, 234, .84) 30%, rgba(245, 241, 234, .44) 60%, rgba(245, 241, 234, .14) 100%),
    linear-gradient(to bottom, rgba(245, 241, 234, .26) 0%, rgba(245, 241, 234, .55) 56%, var(--bone) 80%, var(--bone) 100%),
    url("assets/opt/boston-skyline-1600.webp") center 16% / cover no-repeat;
  filter: saturate(.99) brightness(1.03) blur(1.6px);
}
/* hero skyline can shift a few px on scroll (parallax) — transform only */
.hero::before { will-change: transform; transform: translate3d(0, var(--par, 0px), 0); }
/* Seam fix: the ::before above is brightness-boosted, so its bone reads a touch
   lighter than section 2 (#F5F1EA). This unfiltered overlay sits ON TOP of the
   skyline layer but BEHIND the hero copy (z-index 0 < .hero-inner's 1), fading
   the bottom band to the EXACT section-2 background colour so the two meet with
   no tonal step. Only the background fades — the photo/copy stay crisp. */
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 26%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(245, 241, 234, 0)   0%,
    rgba(245, 241, 234, .55) 42%,
    var(--bone)              72%,
    var(--bone)             100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: clamp(2.5rem, 5.5vw, 5.5rem);
  align-items: center;
  align-content: center;
}

/* --- copy column --- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: .8rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--gray);
}
.eyebrow-line {
  width: 34px; height: 1.5px;
  /* 2-stop amber -> rose to foreshadow the golden-hour journey */
  background: linear-gradient(90deg, var(--amber), var(--accent));
  display: inline-block;
}

.hero-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(3rem, 5.6vw, 4.9rem);
  line-height: 1.05;
  letter-spacing: -.012em;
  text-wrap: balance;
  margin: 0 0 1.55rem;
  color: var(--ink);
}
.hero-title em { font-style: italic; color: var(--accent); }

.hero-sub {
  font-size: clamp(1.02rem, 1.05vw, 1.13rem);
  line-height: 1.68;
  color: var(--body);
  max-width: 37ch;
  margin: 0 0 2rem;
}
.hero-sub .hero-sub-short { display: none; }   /* mobile-only short copy, shown < 520px */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* --- media column (layered premium image card) --- */
.hero-media { position: relative; display: flex; justify-content: flex-end; }

/* soft warm glow that lifts the card off the background */
.hero-media::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -8% -6% -11% -6%;
  border-radius: 46px;
  background: radial-gradient(58% 58% at 62% 42%,
    rgba(189, 92, 90, .28) 0%, rgba(181, 106, 82, .15) 46%, rgba(245, 241, 234, 0) 72%);
  filter: blur(44px);
  pointer-events: none;
}
/* subtle cream backing panel for a quiet layered-card feel */
.hero-media::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 7% -1.6% -3.5% 5.5%;
  border-radius: 30px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  box-shadow: 0 28px 56px -32px rgba(var(--shadow-rgb), .42);
}

.hero-photo {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 3.6;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .5);
  /* layered, warm elevation: contact -> near -> mid -> far ambient -> hairline */
  box-shadow:
    0 1.5px 2px rgba(var(--shadow-rgb), .12),
    0 6px 14px -5px rgba(var(--shadow-rgb), .20),
    0 16px 30px -12px rgba(var(--shadow-rgb), .26),
    0 40px 76px -28px rgba(var(--shadow-rgb), .42),
    0 0 0 1px rgba(var(--shadow-rgb), .05);
}
.hero-photo::after {  /* glass top-edge highlight + crisp inner ring */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .42),
    inset 0 0 0 1px rgba(255, 255, 255, .12);
  pointer-events: none;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* delicate, asymmetric hand-drawn contour just outside the card */
/* hand-drawn double frame hugging the photo: two slightly offset, rotated outlines */
.photo-frame {
  position: absolute;
  z-index: 2;
  border: 1.4px solid var(--accent);
  border-radius: 32px;
  pointer-events: none;
}
.photo-frame-1 {
  inset: -5px -4px -7px -8px;
  opacity: .36;
  transform: rotate(1.3deg);
  transform-origin: 50% 65%;
}
.photo-frame-2 {
  inset: -9px -8px -3px -3px;
  opacity: .24;
  transform: rotate(-2deg);
  transform-origin: 50% 72%;
}

/* handwritten note — sits onto the card's bottom-left, lightly tilted */
.photo-note {
  position: absolute;
  left: -.85rem;
  bottom: -.85rem;
  z-index: 3;
  margin: 0;
  max-width: 12.5rem;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 16px;
  padding: .9rem 1.15rem;
  box-shadow:
    0 2px 6px rgba(var(--shadow-rgb), .12),
    0 16px 30px -14px rgba(var(--shadow-rgb), .4);
  transform: rotate(-2deg);
  font-family: "Caveat", cursive;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.08;
  color: var(--ink);
}
.photo-note span { color: var(--accent); }

/* ------------------------------------------------------------
   Floating social-proof bar — quiet, luxe, well-integrated
   ------------------------------------------------------------ */
.proof-bar {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  width: min(var(--maxw), 100%);
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  background: rgba(252, 249, 244, .86);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    0 1px 2px rgba(var(--shadow-rgb), .05),
    0 26px 56px -30px rgba(var(--shadow-rgb), .32);
}
.proof-cell {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: clamp(1.55rem, 2vw, 2rem) clamp(1.6rem, 2vw, 2.15rem);
}
.proof-cell + .proof-cell { border-left: 1px solid var(--line-soft); }

/* feature cell: avatars + heart + handwritten line, kept calm */
.proof-feature { gap: 1.1rem; }
.proof-script {
  margin: 0;
  font-family: "Caveat", cursive;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 1.06;
  color: var(--ink);
  max-width: 14ch;
}

/* stat cells */
.proof-text { margin: 0; display: flex; flex-direction: column; }
.proof-text b {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.62rem;
  line-height: 1.03;
  color: var(--ink);
}
.proof-serif b { font-size: 1.34rem; line-height: 1.12; }
/* rating cell: score + 5 stars, the hard proof beat in the hero bar */
.proof-rating b { display: inline-flex; align-items: center; gap: .5rem; }
.proof-rating .rating-stars {
  font-family: system-ui, "Segoe UI Symbol", sans-serif;
  font-size: 1.28rem;
  line-height: 1;
  letter-spacing: .04em;
  color: var(--amber);
}
.proof-text span {
  font-family: "JetBrains Mono", monospace;
  font-size: .66rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: .32rem;
}

.proof-ico {
  display: inline-flex;
  flex: 0 0 auto;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--peach);
}
.proof-ico svg {
  width: 21px; height: 21px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* avatar cluster (real faces + bare heart) */
.avatars { display: flex; align-items: center; flex: 0 0 auto; }
.avatars img {
  width: 35px; height: 35px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2.5px solid var(--paper);
  margin-left: -11px;
  display: block;
}
.avatars img:first-child { margin-left: 0; }
.feature-heart { flex: 0 0 auto; margin-left: .35rem; line-height: 0; }
.feature-heart svg { width: 22px; height: 22px; fill: var(--accent); display: block; }

/* ============================================================
   02 — What Keeps Happening  (interactive pattern explorer)
   Warm ivory, no hard box; terracotta + espresso accents kept
   mature and gender-neutral. Local tokens for the spec's exact
   hairline + the section's terracotta accent.
   ============================================================ */
.patterns {
  --terra: #AE5443;                       /* deep brick terracotta accent (grounded, not pink) */
  --hair:  rgba(80, 60, 45, .12);         /* spec card/row hairline    */
  --hair-soft: rgba(80, 60, 45, .08);
  position: relative;
  /* A warm OAT reading-ground, distinct from the bone hero above and the bright
     paper of S4 below. Two warm radial blooms for tactility. The section ends on
     its own light surface and meets the espresso of S3 as a crisp HARD CUT (S3's
     copper hairline draws the seam), never a melt into the dark. */
  background:
    radial-gradient(1000px 680px at 84% 98%, rgba(216, 182, 163, .34), rgba(216, 182, 163, 0) 60%),
    radial-gradient(1150px 720px at 20% 72%, rgba(254, 225, 199, .30), rgba(254, 225, 199, 0) 64%),
    /* --oat, the palette's declared "secondary surface". Was a one-off #D8C8B2
       that appeared nowhere else in the codebase and carried a khaki cast the
       rest of the page never uses. --oat keeps the intent (a real tonal step
       down from the bone hero, so the upper page is not one flat beige) at the
       same hue as everything else, ~9% lighter and without the mud. */
    var(--oat);
  padding: clamp(3rem, 5vw, 4.5rem) 1.5rem clamp(4rem, 7vw, 6.5rem);
}
/* faint paper grain so the lit surface reads tactile, never digital-flat */
.patterns::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: .03;
  mix-blend-mode: multiply;
  /* fade the grain in below the seam so the very top of section 2 stays pure
     ivory and meets the hero with no tonal step */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 96px);
          mask-image: linear-gradient(to bottom, transparent 0, #000 96px);
}
/* hero -> section 2: editorial "chapter break". A thin warm rule across the
   width, interrupted in the centre by a small terracotta spark mark (echoes the
   Clarity icon). Sits on the seam; adds no layout height. No wave, no curve. */
.chapter-break {
  position: absolute;
  top: 0; left: 0; right: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(.9rem, 1.8vw, 1.4rem);
  padding: 0 clamp(1.5rem, 6vw, 5rem);
  pointer-events: none;
  z-index: 3;
}
.cb-rule { flex: 1; height: 1px; }
.cb-rule-l { background: linear-gradient(90deg, rgba(120, 74, 56, 0) 0%, rgba(120, 74, 56, .2) 88%); }
.cb-rule-r { background: linear-gradient(90deg, rgba(120, 74, 56, .2) 12%, rgba(120, 74, 56, 0) 100%); }
.cb-mark { flex: 0 0 auto; line-height: 0; color: #AE5443; filter: drop-shadow(0 0 6px rgba(174, 84, 67, .45)); }
.cb-mark svg { width: 15px; height: 15px; fill: currentColor; display: block; }

/* ------------------------------------------------------------
   Reusable section seam-mark — the page's single, ground-agnostic
   punctuation. A faint taupe hairline pair + a small copper diamond,
   placed at every section boundary so the page reads as ONE site even
   where the ground tone shifts. The rule is NOT a hard line and adds no
   layout height (absolutely positioned, centered on the seam). This,
   plus a shared light ground, replaces the old hard crisp cuts. */
.seam-mark {
  position: absolute; top: 0; left: 0; right: 0;
  transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  gap: clamp(.9rem, 1.8vw, 1.4rem);
  padding: 0 clamp(1.5rem, 6vw, 5rem);
  pointer-events: none; z-index: 4;
}
.seam-mark .sm-rule { flex: 1 1 0; max-width: 200px; height: 1px; }
.seam-mark .sm-rule-l { background: linear-gradient(90deg, rgba(111, 102, 94, 0), rgba(111, 102, 94, .40) 92%); }
.seam-mark .sm-rule-r { background: linear-gradient(90deg, rgba(111, 102, 94, .40) 8%, rgba(111, 102, 94, 0)); }
.seam-mark .sm-mark { flex: 0 0 auto; line-height: 0; color: var(--copper); }
.seam-mark .sm-mark svg { width: 13px; height: 13px; fill: currentColor; display: block; }
/* on a dark/charcoal ground taupe vanishes; switch to a warm tan rule + amber mark */
.seam-mark.on-dark .sm-rule-l { background: linear-gradient(90deg, rgba(214, 191, 174, 0), rgba(214, 191, 174, .32) 92%); }
.seam-mark.on-dark .sm-rule-r { background: linear-gradient(90deg, rgba(214, 191, 174, .32) 8%, rgba(214, 191, 174, 0)); }
.seam-mark.on-dark .sm-mark { color: var(--amber); }
.patterns-inner {
  width: min(var(--maxw), 100%);   /* match the header / hero / proof-bar zone */
  margin: 0 auto;
  display: grid;
  grid-template-columns: 32fr 68fr;
  column-gap: clamp(2.75rem, 5.5vw, 5.5rem);
  align-items: stretch;   /* both columns share the taller column's height */
}

/* ---------- LEFT COLUMN ---------- */
.patterns-aside {
  display: flex;
  flex-direction: column;
}
.pat-eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.6rem;
  font-family: "JetBrains Mono", monospace;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terra);
}
.pat-eyebrow-num { font-variant-numeric: tabular-nums; }
.pat-eyebrow-dash { width: 24px; height: 1.5px; background: var(--terra); display: inline-block; }

.pat-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(3.4rem, 6vw, 5.4rem);
  line-height: .9;
  letter-spacing: -.015em;
  margin: 0 0 1.6rem;
  color: var(--ink);
}
.pat-dot { color: var(--terra); }

.pat-lead { margin: 0; max-width: 340px; }
.pat-lead p {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.66;
  color: var(--body);
}
.pat-lead p + p { margin-top: 1.3rem; }

/* quiet supporting line (replaces the old clarity card so the interactive
   pattern explorer on the right is the single focus of this section) */
.pat-note {
  position: relative;
  margin: clamp(2.25rem, 5vw, 3.75rem) 0 0;
  max-width: 300px;
  padding-top: 1.5rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.32rem;
  line-height: 1.5;
  color: var(--body);
}
.pat-note::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 26px; height: 2.5px; border-radius: 3px;
  background: var(--terra);
}
.pat-note em { font-style: italic; color: var(--terra); }
/* mobile-only duplicate of the note (shown below the card under 920px) */
.pat-note--m { display: none; }

/* Inline route out of the homepage patterns section into /patterns. The
   section names the five patterns and, before the pattern pages existed,
   pointed nowhere. Sits inside .patterns-aside, which stays visible on mobile
   even where .pat-note is hidden. */
.pat-more { margin: 1.1rem 0 0; }
.pat-more a {
  font-family: "JetBrains Mono", monospace; font-size: .72rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.pat-more a:hover { color: var(--accent-deep); }

/* keep all content above the background light + grain; the lifeline (z-index 2)
   sits above this, and is ROUTED to avoid the photo card rather than layered behind it */
.patterns-inner { position: relative; z-index: 1; }

/* ---------- RIGHT COLUMN ---------- */
.patterns-main { min-width: 0; display: flex; flex-direction: column; }

.rail-label {
  margin: .35rem 0 1.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gray);
}

/* progress rail: 5 labelled steps. Dots span the full card width — the first
   dot's left edge sits flush with the card / label left, the last dot's right
   edge flush with the card right. Words sit centered under each dot. */
.rail {
  position: relative;
  display: flex;
  justify-content: space-between;          /* dot 1 flush-left, dot 5 flush-right, even gaps */
  padding-bottom: 1.85rem;                 /* reserve room for the words below the dots */
  margin-bottom: clamp(1.5rem, 2.4vw, 2.1rem);
}
.rail-line {
  position: absolute;
  left: 19px; right: 19px; top: 19px;      /* connects the dot centers */
  height: 1.5px;
  background: var(--hair);
}
.step {
  position: relative;
  flex: 0 0 38px;
  width: 38px; height: 38px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
}
.step:focus-visible { outline: 2px solid var(--terra); outline-offset: 4px; border-radius: 50%; }
/* invisible 44px tap area around the 32-38px dot (audit 20 Nov F4) */
.step::before { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); }
.dot {
  position: relative;
  z-index: 1;
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--hair);
  color: var(--gray);
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.step-word {
  position: absolute;
  top: calc(100% + .65rem);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1;
  color: var(--gray);
  transition: color .25s ease;
}
.step:first-of-type .step-word { left: 0; transform: none; text-align: left; }   /* flush with dot 01's left. first-of-type, not first-child: the rail's first child is the .rail-line span */
.step:last-child  .step-word { left: auto; right: 0; transform: none; text-align: right; }
.step:hover .dot { border-color: rgba(80, 60, 45, .26); color: var(--ink); }
.step:hover .step-word { color: var(--ink); }
.step.is-active .dot {
  background: var(--terra);
  border-color: var(--terra);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    0 8px 18px -8px rgba(174, 84, 67, .6);
}
.step.is-active .step-word { color: var(--ink); }

/* ---------- active pattern: a framed photo sitting on the section ground (no
   white card), with a small floating note card (the hero photo-note motif) at
   its lower-right holding the pattern line + the prev/next arrows. The big
   number is gone — the rail above carries the 01-05 numbering. ---------- */
.pcard {
  position: relative;
  display: block;
  width: 100%;               /* fills the right column so the photo's left edge lines up with dot 01 */
  touch-action: pan-y;       /* let the browser scroll vertically; horizontal is our swipe */
}
/* quiet cream backing panel offset behind the photo for a layered-card depth,
   the same trick as the hero photo (.hero-media::after). Peeks down-left so it
   stays clear of the floating note at the lower-right. */
.pcard::before {
  content: ""; position: absolute; z-index: 0;
  inset: 14px 30px -9px -13px;          /* only a sliver peeks, like the hero backing */
  border-radius: 20px;
  background: var(--paper);
  border: 1px solid rgba(120, 74, 56, .06);
  box-shadow: 0 18px 36px -34px rgba(var(--shadow-rgb), .3);
}
.pcard-media {
  position: relative;
  z-index: 1;                /* sits above the backing panel */
  aspect-ratio: 16 / 9.35;   /* 15% shorter than 16/11 → crops ~7.5% off top + bottom (object-position center), section reads less tall */
  border-radius: 16px;
}
.pcard-media::before {       /* fallback wash if the image is missing */
  content: ""; position: absolute; inset: 0; z-index: 0; border-radius: 16px;
  background:
    radial-gradient(120% 90% at 30% 22%, rgba(174, 84, 67, .16), transparent 60%),
    linear-gradient(158deg, var(--oat) 0%, var(--blush) 120%);
}
.pcard-img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  border-radius: 16px;
}
.pcard-media.is-empty .pcard-img { display: none; }
/* a soft lower-right vignette so the floating note stays legible over any photo */
.pcard-media::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: 16px;
  pointer-events: none;
  background:
    radial-gradient(125% 95% at 100% 100%, rgba(30, 24, 20, .44), transparent 54%),
    linear-gradient(to bottom, rgba(30, 24, 20, 0) 62%, rgba(30, 24, 20, .14) 100%);
}
/* hand-drawn double frame hugging the photo — Motif A (pictures only) */
.pcard-frame {
  position: absolute; z-index: 3;
  border: 1.4px solid var(--accent);
  border-radius: 18px;
  pointer-events: none;
}
.pcard-frame-1 { inset: -6px -5px -8px -8px; opacity: .3; transform: rotate(1.1deg);  transform-origin: 50% 62%; }
.pcard-frame-2 { inset: -9px -8px -4px -3px; opacity: .2; transform: rotate(-1.6deg); transform-origin: 50% 70%; }

/* floating note — the same little paper card as the hero photo-note, tucked onto
   the photo's lower-right corner, lightly tilted */
.pcard-note {
  position: absolute; z-index: 5;
  right: clamp(-1.1rem, -1.4vw, -.6rem);
  bottom: clamp(-1.3rem, -1.6vw, -.8rem);
  width: min(62%, 23rem);
  margin: 0;
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 16px;
  padding: 1.05rem 1.2rem 1rem;
  box-shadow:
    0 2px 6px rgba(var(--shadow-rgb), .12),
    0 18px 34px -16px rgba(var(--shadow-rgb), .42);
  transform: rotate(-1.6deg);
}
.pcard-note-title {
  margin: 0 0 .65rem;
  font-family: "Caveat", cursive;          /* the hero photo-note's handwritten hand */
  font-weight: 600;
  font-size: clamp(1.5rem, 1.95vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--ink);
}
.pcard-note-nav { display: flex; align-items: center; justify-content: space-between; }
.pcard-note-count {
  font-family: "JetBrains Mono", monospace;
  font-size: .74rem; font-weight: 600; letter-spacing: .1em;
  font-variant-numeric: tabular-nums;
  color: var(--gray);
}
.pcard-note-count [data-count] { color: var(--terra); }

/* prev / next arrows — small round buttons living inside the note */
.pnav {
  position: relative;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid rgba(174, 84, 67, .28);
  padding: 0;
  color: var(--ink);
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.pnav svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.pnav:hover { color: #fff; background: var(--terra); border-color: var(--terra); }
.pnav-prev:hover { transform: translateX(-2px); }
.pnav-next:hover { transform: translateX(2px); }
.pnav:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }

/* mobile slide-position dots (hidden on desktop; the labelled rail is the nav
   there). The active slide's dot stretches into a short coloured pill. */
/* Each dot button is a 44px tap target (audit 20 Nov F4: they were 26px). The visible
   pill is the ::after and keeps its size; the -9px block margin keeps the row's 26px
   footprint, and the zero gap keeps neighbouring targets from overlapping. The row sits
   above the card's floating note (z-index 5), whose lower edge reaches into the top of
   the tap area; the note has no controls on phones. */
.pcard-dots { position: relative; z-index: 6; display: none; justify-content: center; gap: 0; margin-top: clamp(1rem, 3.5vw, 1.5rem); }
.pcard-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-block: -9px; padding: 0; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pcard-dot::after {
  content: ""; display: block; width: 7px; height: 7px; border-radius: 999px;
  background: rgba(174, 84, 67, .3);
  transition: width .28s var(--ease-out), background .28s var(--ease-out);
}
.pcard-dot.is-active::after { width: 22px; background: var(--terra); }
.pcard-dot:focus-visible { outline: 2px solid var(--terra); outline-offset: 1px; border-radius: 8px; }

/* swap transition: fade the note title + scale the image in */
.pcard-note-title { transition: opacity .18s ease, transform .4s cubic-bezier(.22, .61, .36, 1); }
.pcard-img { transition: opacity .2s ease, transform .5s cubic-bezier(.22, .61, .36, 1); }
.pcard.is-fading .pcard-note-title { opacity: 0; transform: translateY(6px); }
.pcard.is-fading .pcard-img { opacity: 0; transform: scale(1.02); }

@media (prefers-reduced-motion: reduce) {
  .pcard-note-title, .pcard-img, .dot, .step-word, .pnav { transition: none; }
}

/* ------------------------------------------------------------
   Entrance motion (opt-in; disabled under reduced-motion)
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-media, .proof-bar {
    opacity: 0;
    transform: translateY(14px);
    animation: rise .8s cubic-bezier(.22, .61, .36, 1) forwards;
  }
  .eyebrow      { animation-delay: .05s; }
  .hero-title   { animation-delay: .14s; }
  .hero-sub     { animation-delay: .24s; }
  .hero-actions { animation-delay: .34s; }
  .hero-media   { animation-delay: .30s; }
  .proof-bar    { animation-delay: .50s; }

  @keyframes rise {
    to { opacity: 1; transform: none; }
  }
}


/* ============================================================
   Scroll reveal (shared) — used by section 03 onward
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(7px);
    transition: opacity .7s cubic-bezier(.22, .61, .36, 1),
                transform .7s cubic-bezier(.22, .61, .36, 1),
                filter .7s ease;
  }
  .reveal.is-in { opacity: 1; transform: none; filter: none; }

  /* lift = scale + opacity (cards / tiles / windows) */
  .reveal-lift { opacity: 0; transform: scale(.965); transition: opacity .6s var(--ease-out), transform .7s var(--ease-spatial); }
  .reveal-lift.is-in { opacity: 1; transform: none; }

  /* generic staggered children — add class="stagger" data-reveal to a container */
  .stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .7s var(--ease-out); }
  .stagger.is-in > * { opacity: 1; transform: none; }
  .stagger.is-in > *:nth-child(1) { transition-delay: .04s; }
  .stagger.is-in > *:nth-child(2) { transition-delay: .10s; }
  .stagger.is-in > *:nth-child(3) { transition-delay: .16s; }
  .stagger.is-in > *:nth-child(4) { transition-delay: .22s; }
  .stagger.is-in > *:nth-child(5) { transition-delay: .28s; }
  .stagger.is-in > *:nth-child(6) { transition-delay: .34s; }
  .stagger.is-in > *:nth-child(n+7) { transition-delay: .38s; }
}

/* ============================================================
   Foundation utilities — the shared "Golden Hour" component layer
   (tokens live in :root; sun spine driven by one rAF loop in index.html).
   Authored lit/visible FIRST so reduced-motion is never a broken page.
   ============================================================ */

/* full-width page; sections are full-bleed block elements. Contained content
   uses .wrap (defined near the top). Sections opt into the traveling sun with
   a .s-sun glow layer and put their own content above it (z-index 1). */
section, .site-footer { position: relative; }

/* the traveling golden-hour key-light, read per-section. Set --sun-tint and
   --sun-i locally to taste; the global --sun-x/--sun-y move it on scroll. */
.s-sun {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(46vmax 40vmax at var(--sun-x) var(--sun-y),
    var(--sun-tint, rgba(255, 201, 150, .18)), transparent 62%);
  opacity: var(--sun-i);
  mix-blend-mode: screen;
  transition: opacity .8s var(--ease-out);
}
/* on light surfaces, screen blend would wash out; sections on light bg set
   .s-sun--soft to switch to a gentler soft-light warm wash */
.s-sun--soft { mix-blend-mode: soft-light; }

/* "a light comes on" — the page's signature window micro-feedback. Any
   element: add class="light-on"; toggle .is-lit (JS/scroll) or hover. */
.light-on { position: relative; }
.light-on::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 92% at 50% 116%, var(--glow, rgba(201, 124, 102, .55)), transparent 62%);
  opacity: var(--lit, 0);
  transition: opacity .22s var(--ease-out);
}
.light-on.is-lit::after, .light-on:hover::after, .light-on:focus-visible::after { opacity: 1; }

/* lining + tabular numerals so Cormorant "01" / "4,500+" never render as "O I" */
.tnum { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }

/* one warm default focus ring for anything interactive without its own */
:where(a, button, [tabindex="0"]):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* hero: proof-bar avatars seed the "light comes on" language on hover */
.avatars img { transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.avatars img:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px var(--peach), 0 4px 10px -4px rgba(var(--shadow-rgb), .5); }

/* hero "turn the lights on": a faint warm key-light sweeps once across the
   skyline on load to seed the sun spine before any scroll */
.hero-dawn {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.hero-dawn::before {
  content: ""; position: absolute; top: 0; bottom: 40%; left: -40%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 226, 188, .5), transparent);
  filter: blur(6px);
  transform: translateX(0);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-dawn::before { animation: dawnSweep 1500ms var(--ease-out) .2s 1 both; }
  @keyframes dawnSweep { from { transform: translateX(0); opacity: 0; } 30% { opacity: 1; } to { transform: translateX(360%); opacity: 0; } }
}

/* Reduced-motion: render the lit / settled state, never an empty page */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-lift, .stagger > * { opacity: 1 !important; transform: none !important; filter: none !important; }
  .light-on::after { opacity: 1; }
  .s-sun { transition: none; }
  .hero-dawn { display: none; }
}

/* ============================================================
   Responsive  (kept at the end so later rules win the cascade)
   ============================================================ */
@media (max-width: 920px) {
  .nav-links { display: none; }
  /* Links + CTA + cart all move into the hamburger menu; only the burger stays
     in the header, on the right. The cart sits beside the CTA inside the menu. */
  .nav-cta { display: none; }
  .nav-cart { display: none; }
  .nav-burger { display: inline-flex; margin-left: auto; }
  .nav-menu { display: flex; }

  .hero { padding: 7.5rem 1.25rem 2.25rem; gap: 2.75rem; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    align-content: center;
  }
  /* calmer backdrop on mobile so the copy stays legible */
  .hero::before {
    background:
      linear-gradient(180deg, rgba(245, 241, 234, .84) 0%, rgba(245, 241, 234, .62) 46%, var(--bone) 100%),
      url("assets/opt/boston-skyline-640.webp") center 12% / cover no-repeat;
    filter: saturate(.88) brightness(1.05) blur(2px);
  }

  .hero-media { justify-content: stretch; }
  .hero-media::after { inset: 6% -1.4% -3% 5%; }
  .hero-photo { aspect-ratio: 16 / 11; }
  .photo-note { left: -.5rem; bottom: -.9rem; font-size: 1.35rem; max-width: 11.5rem; }
  .hero-sub { max-width: 48ch; }

  /* compact trust bar: the feature line spans the top, then 4,500+ members and
     Weekly sit side by side underneath; the rating cell is dropped to keep it 2-up */
  .proof-bar { grid-template-columns: 1fr 1fr; }
  .proof-cell { justify-content: flex-start; padding: 1.05rem 1.05rem; gap: .7rem; }
  .proof-feature { grid-column: 1 / -1; gap: .85rem; padding: 1.15rem 1.3rem; border-bottom: 1px solid var(--line-soft); }
  .proof-cell:nth-child(4) { display: none; }          /* hide the 4.9 rating cell on the 2-up mobile bar */
  .proof-cell + .proof-cell { border-left: 0; }
  .proof-cell:nth-child(3) { border-left: 1px solid var(--line-soft); }  /* divide the two stats */
  .avatars img:nth-child(n+3) { display: none; }       /* only two faces */
  .proof-script { font-size: 1.28rem; max-width: 19ch; }
  .proof-text b { font-size: 1.28rem; }
  .proof-ico { width: 34px; height: 34px; }
  .proof-ico svg { width: 18px; height: 18px; }

  /* 02 — pattern explorer: stack columns; card stacks (text, then wide image) */
  .patterns { padding: clamp(3.5rem, 9vw, 5rem) 1.25rem; }
  .patterns-inner { grid-template-columns: 1fr; row-gap: clamp(2.25rem, 6vw, 3rem); }
  .pat-lead { max-width: none; }
  .pat-note { max-width: none; }
  /* move the closing note below the card: hide the aside copy, show the dup,
     and drop its little dash on mobile */
  .patterns-aside .pat-note { display: none; }
  .pat-note--m { display: block; margin-top: clamp(1.5rem, 5vw, 2.1rem); }
  .pat-note--m::before { display: none; }
  .step-word { font-size: .85rem; }
  .pcard { grid-template-columns: 1fr; min-height: 0; }
  .pcard-media { aspect-ratio: 16 / 10; }
  .pnav { display: none; }            /* arrows skipped on mobile (swipe instead) */
  .pcard-dots { display: flex; }      /* slide-position dots take their place */

}

@media (max-width: 520px) {
  /* Slimmer header on phones (Timo, 20 Nov): less air above and below the bar and
     inside it, the logo a little further left; logo and burger keep their size. */
  .nav { padding-top: .7rem; padding-bottom: .7rem; }
  .nav-pill { padding: .15rem .3rem .15rem .7rem; }
  .brand img { height: 30px; }
  .nav-cta { margin-left: auto; padding: .5rem .8rem; font-size: .6rem; }
  .nav-cta .ico { display: none; }
  .nav-cart { width: 40px; height: 40px; }

  /* Hero fits within one viewport height, reflowed to a single column in the
     order: eyebrow -> title -> sub -> photo+note -> Join-webinar CTA -> trust bar.
     hero-copy is flattened with display:contents so the photo (hero-media) can
     slot between the sub and the CTA. "Explore the method" is dropped on mobile. */
  .hero { min-height: 100svh; justify-content: flex-start; padding: 5.2rem 1.25rem 3.75rem; gap: .7rem; }
  .hero-inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .hero-copy { display: contents; }
  .eyebrow { order: 1; margin: 0 0 .9rem; font-size: .62rem; letter-spacing: .12em; gap: .55rem; }
  .eyebrow-line { width: 24px; }
  /* A touch smaller on phones so the title, intro, photo and CTA fit the first screen (Timo, 20 Nov) */
  /* Bigger again (Timo, 20 Nov): with the shorter phone intro the title can lead. */
  .hero-title { order: 2; font-size: clamp(2.2rem, 9.8vw, 2.6rem); line-height: 1.06; margin: 0 0 .6rem; }
  /* 16px: the audience is 40+, so body copy stays at a comfortable reading size (Timo, 20 Nov) */
  .hero-sub { order: 3; font-size: 1rem; line-height: 1.5; max-width: none; margin: 0 0 .85rem; }
  .hero-sub .hero-sub-full { display: none; }
  .hero-sub .hero-sub-short { display: inline; }
  .hero-media { order: 4; margin: 0 0 1rem; }
  .hero-actions { order: 5; gap: .75rem; margin: 0; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-actions .btn.btn-ghost { display: none; }   /* "Explore the method" dropped on mobile */

  /* full-width photo (align-items:stretch makes the whole column, incl. the CTA,
     span the exact section width); controlled height so the trust bar clears the fold */
  .hero-media, .hero-photo { width: 100%; }
  .hero-photo { aspect-ratio: auto; height: clamp(195px, 30vh, 255px); }
  .photo-frame { display: none; }       /* keep small screens clean */
  /* The same tilted three-line note as on desktop, smaller, at the photo's bottom right
     and a little up from its edge. As a wide caption under the photo it read as a third
     bar above the two buttons (Timo, 20 Nov). */
  .photo-note { left: auto; right: -.35rem; bottom: .9rem; width: auto; max-width: 9.6rem;
    font-size: 1.22rem; line-height: 1.08; padding: .6rem .8rem; transform: rotate(-2.5deg); }

  /* trust bar above the fold: only 4,500+ members and the 4.9 rating, side by side, one row */
  .proof-bar { grid-template-columns: 1fr 1fr; }
  .proof-feature { display: none; }                    /* drop "Built on four years..." */
  .proof-cell:nth-child(3) { display: none; }          /* drop "Weekly live discussions" */
  .proof-cell + .proof-cell { border-left: 0; }
  .proof-cell:nth-child(4) { display: flex; border-left: 1px solid var(--line-soft); }  /* show 4.9 rating + divider */
  /* compact cell so "average member rating" fits on 2 lines even on iPhone SE (375px) */
  .proof-cell { padding: .75rem .7rem; gap: .55rem; }
  .proof-ico { width: 28px; height: 28px; }
  .proof-ico svg { width: 15px; height: 15px; }
  .proof-rating .rating-stars { font-size: .68rem; }   /* smaller stars on mobile */
  /* text block fills the cell (so the small stars don't shrink it) + slightly
     smaller label so AVERAGE MEMBER stays on one line -> 2-line label */
  .proof-cell .proof-text { flex: 1 1 0; min-width: 0; }
  .proof-text span { font-size: .58rem; letter-spacing: .04em; }
  .proof-text b { font-size: 1.4rem; }

  /* 02 — pattern explorer on the smallest screens */
  .step { flex-basis: 32px; width: 32px; height: 32px; }
  .dot { width: 32px; height: 32px; font-size: .62rem; }
  .rail-line { top: 16px; left: 16px; right: 16px; }
  .step-word { font-size: .72rem; }
  /* "Choosing Chemistry" is twice as long as the other four words: at this width it
     ran into "Settling". Let the first word break onto two lines under its dot. */
  .step:first-of-type .step-word { white-space: normal; width: 4.4rem; line-height: 1.1; }
  .rail { padding-bottom: 2.6rem; }
  /* modest photo height + a wider, shorter note (fewer line wraps) so the image stays clearly visible */
  .pcard-media { aspect-ratio: 4 / 3.2; }
  .pcard-note { width: min(86%, 19rem); right: -.4rem; bottom: -.6rem; padding: .78rem 1rem .74rem; }
  .pcard-note-title { font-size: 1.22rem; margin-bottom: .45rem; }

}

/* Short desktop viewports — keep the entire hero above the fold */
@media (min-width: 921px) and (max-height: 820px) {
  .hero { padding-top: 5.5rem; gap: clamp(1.1rem, 1.6vh, 1.7rem); }
  .hero-title { font-size: clamp(2.5rem, 4.4vw, 3.7rem); margin-bottom: 1.1rem; }
  .hero-sub { margin-bottom: 1.5rem; }
  .hero-photo { aspect-ratio: 4 / 3.15; }
  .proof-cell { padding-top: 1.15rem; padding-bottom: 1.15rem; }
  .proof-script { font-size: 1.34rem; }
  .proof-text b { font-size: 1.46rem; }
  .proof-serif b { font-size: 1.2rem; }
  .photo-note { font-size: 1.34rem; bottom: -1rem; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   PATTERN PAGES — /patterns and /patterns/<slug>

   Lives here rather than in a page's <style is:global> because BOTH routes
   need the .pt-* base. It was originally scoped inside patterns/[slug].astro,
   which meant the hub page rendered its h1 with no .pt-title rule at all and
   silently fell back to a sans-serif default while every card under it used
   the serif. Shared styles belong in the shared stylesheet.
   ═══════════════════════════════════════════════════════════════════════════ */
  /* ── Pattern pages ─────────────────────────────────────────────────────── */
  .pt { position: relative; background: var(--bone); padding: 0 0 clamp(4rem, 8vw, 6rem); }
  .pt-crumbs { padding: clamp(5.5rem, 11vh, 7.5rem) 0 0; }
  .pt-crumbs .wrap { display: flex; gap: .6rem; align-items: center; font-family: "JetBrains Mono", monospace; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gray); }
  .pt-crumbs a { color: var(--accent); text-decoration: none; }
  .pt-crumbs a:hover { text-decoration: underline; }
  .pt-wrap { max-width: 760px; }
  .pt-head { margin: clamp(1.6rem, 3vw, 2.4rem) 0 clamp(2rem, 4vw, 3rem); }
  .pt-title { margin: .8rem 0 1.2rem; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: clamp(2.5rem, 6vw, 3.9rem); line-height: 1.03; letter-spacing: -.02em; color: var(--ink); }
  .pt-lede { margin: 0 0 1rem; font-size: clamp(1.06rem, 1.6vw, 1.18rem); line-height: 1.6; color: var(--body); }
  .pt-figure { margin: 0 0 clamp(2rem, 4vw, 3rem); border-radius: 14px; overflow: hidden; }
  .pt-figure img { display: block; width: 100%; height: auto; }
  .pt-sec { margin: 0 0 clamp(2.2rem, 4vw, 3.2rem); scroll-margin-top: 6rem; }
  .pt-h2 { margin: 0 0 1rem; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.14; color: var(--ink); }
  .pt-p { margin: 0 0 1rem; font-size: 1.02rem; line-height: 1.65; color: var(--body); }
  .pt-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
  .pt-list li { position: relative; padding-left: 1.5rem; font-size: 1.02rem; line-height: 1.55; color: var(--body); }
  .pt-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
  .pt-question .pt-quote { margin: 0; padding: 1.2rem 1.4rem; border-left: 3px solid var(--accent); background: var(--sand); border-radius: 0 12px 12px 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.4; color: var(--ink); }
  .pt-cta { margin: clamp(2.5rem, 5vw, 3.5rem) 0; padding: clamp(1.6rem, 3vw, 2.2rem); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
  .pt-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.2rem; }
  .pt-others { margin: 0; padding: 0; list-style: none; display: grid; gap: .7rem; }
  .pt-others a { display: block; padding: .9rem 1.1rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
  .pt-others a:hover { border-color: var(--blush); transform: translateY(-1px); }
  .pt-others-name { display: block; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: 1.24rem; color: var(--ink); }
  .pt-others-sub { display: block; margin-top: .25rem; font-size: .93rem; line-height: 1.5; color: var(--gray); }
  @media (prefers-reduced-motion: reduce) { .pt-others a { transition: none; } }
  /* ── Patterns hub (shares the .pt-* base from patterns/[slug].astro) ────── */
  .pt-hub { padding-top: clamp(6.5rem, 13vh, 9rem); }
  .pt-hub-list { margin: clamp(1rem, 2vw, 2rem) 0 0; padding: 0; list-style: none; display: grid; gap: 1rem; }
  .pt-hub-item a { display: block; padding: clamp(1.2rem, 2.4vw, 1.8rem); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
  .pt-hub-item a:hover { border-color: var(--blush); transform: translateY(-2px); }
  .pt-hub-name { margin: 0 0 .6rem; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.12; color: var(--ink); }
  .pt-hub-lede { margin: 0 0 .7rem; font-size: 1rem; line-height: 1.6; color: var(--body); }
  .pt-hub-gap { margin: 0 0 .8rem; font-size: .9rem; color: var(--gray); }
  .pt-hub-gap strong { color: var(--accent); font-weight: 600; }
  .pt-hub-more { font-family: "JetBrains Mono", monospace; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
  @media (prefers-reduced-motion: reduce) { .pt-hub-item a { transition: none; } }

/* Phone pass 20 Nov (Timo): pattern pages on the site-wide phone type scale. */
@media (max-width: 640px) {
  .pt-h2 { font-size: 2rem; line-height: 1.1; }
  .pt-title { line-height: 1.08; }
  .pt-hub-name { font-size: 1.375rem; }
}
