/* ==========================================================================
   Deborah Gottlieb-Porlick, LLC — site styles
   Concept: "Two directions, one pattern." Indigo dusk + sunflower gold.
   People are circles; relationships are the space between them.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no third-party requests) ---------- */
@font-face {
  font-family: "DGP Display";
  src: url("../fonts/dgp-display.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DGP Display";
  src: url("../fonts/dgp-display-slant.woff") format("woff");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-medium.woff") format("woff");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-semibold.woff") format("woff");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* colour */
  --night: #15123F;
  --ink: #1F1B5C;
  --indigo-700: #2B2680;
  --indigo-600: #3A33A8;
  --indigo-400: #7C78D6;
  --peri: #C9C8F0;
  --peri-soft: #A9A6F2;
  --mist: #ECEBF8;
  --paper: #F6F6FA;
  --white: #FFFFFF;
  --sun: #F2B61F;
  --sun-deep: #D99A0B;
  --sun-pale: #FCEBB6;
  --sun-ink: #9C6A00; /* gold that passes contrast on light backgrounds */
  --muted: #4D4A86;
  --line: rgba(31, 27, 92, 0.14);
  --line-strong: rgba(31, 27, 92, 0.28);
  --line-dark: rgba(201, 200, 240, 0.18);
  --error: #B3261E;

  /* type */
  --font-display: "DGP Display", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --fs-display: clamp(3.3rem, 1rem + 6.5vw, 8.2rem);
  --fs-h1: clamp(2.9rem, 1.7rem + 4.8vw, 6.5rem);
  --fs-h2: clamp(2.2rem, 1.45rem + 3vw, 4.4rem);
  --fs-h3: clamp(1.55rem, 1.25rem + 1.15vw, 2.3rem);
  --fs-h4: clamp(1.25rem, 1.12rem + .5vw, 1.55rem);
  --fs-lead: clamp(1.14rem, 1.04rem + .42vw, 1.42rem);
  --fs-body: clamp(1.03rem, 1rem + .14vw, 1.125rem);
  --fs-small: .9rem;
  --fs-micro: .8rem;

  /* space */
  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1240px;
  --space-section: clamp(88px, 11vw, 168px);
  --header-h: 76px;

  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  /* grain used on dark "sun-print" surfaces */
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.62;
  font-feature-settings: "cv05", "cv08", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img, svg, canvas, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--sun-pale); color: var(--night); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
.theme-dark :focus-visible, [data-theme="dark"] :focus-visible { outline-color: var(--sun); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
  color: inherit;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: .98; letter-spacing: -.022em; }
h2 { font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -.016em; }
h3 { font-size: var(--fs-h3); line-height: 1.1; letter-spacing: -.008em; }
h4 { font-size: var(--fs-h4); line-height: 1.2; }
p { margin: 0 0 1em; max-width: 66ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
ul, ol { margin: 0; padding: 0; }
figure, blockquote { margin: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  background: var(--sun); color: var(--night); padding: 10px 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none; transform: translateY(-160%);
  transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.container--narrow { width: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; }
.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: calc(var(--space-section) * .62); }
.theme-dark { background: var(--ink); color: var(--paper); }
.theme-night { background: var(--night); color: var(--paper); }
.theme-mist { background: var(--mist); }
.theme-dark .muted, .theme-night .muted { color: var(--peri); }
.muted { color: var(--muted); }
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); opacity: .07; mix-blend-mode: soft-light;
}
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); max-width: 40ch; }
.theme-dark .lead, .theme-night .lead { color: var(--peri); }
.serif { font-family: var(--font-display); }

/* ---------- Buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
  --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.45em; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  font-family: var(--font-sans); font-size: 1rem; font-weight: 500; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .3s var(--ease-out), color .3s, border-color .3s, transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn:hover { background: var(--indigo-700); }
.btn:active { transform: scale(.98); }
.btn--sun { --btn-bg: var(--sun); --btn-fg: var(--night); }
.btn--sun:hover { background: #F7C641; box-shadow: 0 10px 40px -12px rgba(242, 182, 31, .55); }
.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; --btn-bd: var(--line-strong); color: inherit; }
.btn--ghost:hover { background: rgba(31, 27, 92, .06); border-color: var(--ink); }
.theme-dark .btn--ghost, .theme-night .btn--ghost, [data-theme="dark"] .btn--ghost { --btn-bd: rgba(201, 200, 240, .38); }
.theme-dark .btn--ghost:hover, .theme-night .btn--ghost:hover, [data-theme="dark"] .btn--ghost:hover { background: rgba(201, 200, 240, .1); border-color: var(--peri); }
.btn--small { min-height: 42px; padding: 0 1.1em; font-size: .94rem; }

.text-link {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 500; text-decoration: underline; text-decoration-color: var(--sun);
  text-decoration-thickness: 2px; text-underline-offset: .35em;
  transition: text-underline-offset .3s var(--ease-out), color .2s;
}
.text-link:hover { text-underline-offset: .5em; }
.text-link .icon { display: inline-block; vertical-align: -.12em; margin-left: .35em; width: .95em; height: .95em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h);
  color: var(--ink);
  transition: transform .5s var(--ease-out), color .35s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: rgba(246, 246, 250, .8);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid var(--line);
  transition: opacity .35s, background-color .35s, border-color .35s;
}
.site-header[data-theme="dark"] { color: var(--paper); }
.site-header[data-theme="dark"]::before { background: rgba(21, 18, 63, .72); border-color: var(--line-dark); }
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; min-width: 0; }
.brand__mark { width: 40px; height: 40px; flex: none; transition: transform 1.2s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-28deg); }
.brand__name { font-family: var(--font-display); font-size: 1.32rem; line-height: 1; letter-spacing: -.005em; white-space: nowrap; }
.brand__mark .disc { fill: var(--ink); transition: fill .35s; }
[data-theme="dark"] .brand__mark .disc { fill: var(--indigo-700); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { display: flex; list-style: none; gap: 2px; }
.nav__link {
  display: inline-flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 999px;
  font-size: .95rem; font-weight: 500; text-decoration: none; opacity: .86;
  transition: opacity .2s, background-color .25s;
}
.nav__link:hover { opacity: 1; background: rgba(31, 27, 92, .06); }
[data-theme="dark"] .nav__link:hover { background: rgba(201, 200, 240, .1); }
.nav__link[aria-current="page"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--sun); border-radius: 0; }
.header-call { margin-left: 10px; }
.site-header[data-theme="dark"] .header-call { --btn-bg: var(--sun); --btn-fg: var(--night); }
.site-header[data-theme="dark"] .header-call:hover { background: #F7C641; }

.menu-toggle {
  display: none; position: relative; width: 48px; height: 48px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; cursor: pointer; flex: none;
}
[data-theme="dark"] .menu-toggle { border-color: rgba(201, 200, 240, .38); }
.menu-toggle span {
  position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .45s var(--ease-out), top .45s var(--ease-out), opacity .2s;
}
.menu-toggle span:nth-child(1) { top: 19px; }
.menu-toggle span:nth-child(2) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { top: 23px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { top: 23px; transform: rotate(-45deg); }
.call-icon-btn { display: none; }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55; background: var(--night); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 28px) var(--gutter) 32px;
  clip-path: circle(0% at calc(100% - 44px) 38px); visibility: hidden;
  transition: clip-path .8s var(--ease-out), visibility 0s linear .8s;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; transition: clip-path .9s var(--ease-out), visibility 0s; }
.mobile-menu ul { list-style: none; display: grid; gap: 4px; }
.mobile-menu a.mm-link {
  display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.12;
  text-decoration: none; padding: 4px 0;
  opacity: 0; transform: translateY(24px);
  transition: opacity .5s, transform .7s var(--ease-out);
}
.menu-open .mobile-menu a.mm-link { opacity: 1; transform: none; }
.menu-open .mobile-menu li:nth-child(1) a { transition-delay: .12s; }
.menu-open .mobile-menu li:nth-child(2) a { transition-delay: .16s; }
.menu-open .mobile-menu li:nth-child(3) a { transition-delay: .2s; }
.menu-open .mobile-menu li:nth-child(4) a { transition-delay: .24s; }
.menu-open .mobile-menu li:nth-child(5) a { transition-delay: .28s; }
.menu-open .mobile-menu li:nth-child(6) a { transition-delay: .32s; }
.menu-open .mobile-menu li:nth-child(7) a { transition-delay: .36s; }
.mobile-menu a.mm-link[aria-current="page"] { color: var(--sun); }
.mobile-menu__foot { display: grid; gap: 14px; }
.mobile-menu__foot p { color: var(--peri); font-size: .95rem; }

@media (max-width: 1080px) {
  .nav__list { display: none; }
  .menu-toggle { display: inline-block; }
  .header-call .num { display: none; }
}
@media (max-width: 560px) {
  :root { --header-h: 68px; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 1.12rem; }
  .header-call { display: none; }
  .call-icon-btn {
    display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
    border-radius: 999px; background: var(--ink); color: var(--paper); flex: none;
  }
  [data-theme="dark"] .call-icon-btn { background: var(--sun); color: var(--night); }
  .call-icon-btn svg { width: 20px; height: 20px; }
  .nav { gap: 8px; }
}
@media (max-width: 380px) { .brand__name { font-size: 1rem; } .brand { gap: 9px; } }

/* ---------- Generic page hero (inner pages) ---------- */
.page-hero { padding-top: calc(var(--header-h) + clamp(56px, 9vw, 128px)); padding-bottom: clamp(56px, 8vw, 112px); position: relative; overflow: hidden; }
.page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.page-hero h1 { font-size: clamp(2.7rem, 1.45rem + 4.3vw, 5.9rem); }
.page-hero .lead { margin-top: clamp(20px, 2.4vw, 32px); }
.page-hero .btn-row { margin-top: clamp(28px, 3vw, 40px); }
.page-hero__art { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; justify-self: end; }
.page-hero__art canvas { width: 100%; height: 100%; }
.page-hero__art--canvas { aspect-ratio: auto; }
.page-hero__art--canvas canvas { aspect-ratio: 1.18; height: auto; }
.crumb { display: inline-flex; gap: 8px; align-items: center; font-size: .92rem; font-weight: 500; color: var(--muted); margin-bottom: 26px; text-decoration: none; }
.crumb:hover { color: var(--ink); }
.theme-dark .crumb { color: var(--peri); }
@media (max-width: 860px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__art { justify-self: start; max-width: 420px; }
}

/* load-in for page titles: two halves of a thought arriving from opposite sides */
.title-converge .tc-line { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js .title-converge .tc-line { opacity: 0; transition: opacity 1.1s var(--ease-out), transform 1.6s var(--ease-out); }
  .js .title-converge .tc-line:nth-child(odd) { transform: translateX(-.28em); }
  .js .title-converge .tc-line:nth-child(even) { transform: translateX(.28em); }
  .js .title-converge.is-in .tc-line { opacity: 1; transform: none; }
  .js .title-converge.is-in .tc-line:nth-child(2) { transition-delay: .12s; }
  .js .title-converge.is-in .tc-line:nth-child(3) { transition-delay: .24s; }
  .js .hero-fade { opacity: 0; transform: translateY(14px); transition: opacity 1s var(--ease-out) .45s, transform 1.2s var(--ease-out) .45s; }
  .js .is-loaded .hero-fade { opacity: 1; transform: none; }
}

/* ==========================================================================
   HOME — sunflower scene
   ========================================================================== */
.scene { position: relative; }
.scene__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scene__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.turn-scene { height: 300vh; background: var(--night); color: var(--paper); }
.hero-copy {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--header-h) * .6);
  will-change: opacity, transform;
}
.hero-title { font-size: var(--fs-display); line-height: .92; letter-spacing: -.03em; }
.hero-title .tc-line { white-space: nowrap; }
.hero-title .h1-sub {
  display: block; font-family: var(--font-sans); font-size: var(--fs-lead); line-height: 1.5;
  letter-spacing: 0; color: var(--peri); max-width: 34ch; margin-top: clamp(22px, 2.4vw, 34px);
  font-weight: 400;
}
.hero-title .h1-sub strong { color: var(--paper); font-weight: 500; }
.hero-copy .btn-row { margin-top: clamp(26px, 3vw, 40px); }
.hero-creds { margin-top: clamp(26px, 3vw, 40px); display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: .93rem; color: var(--peri); }
.hero-creds span { display: inline-flex; align-items: center; gap: 10px; }
.hero-creds svg { width: 18px; height: 18px; color: var(--sun); flex: none; }

.scene-captions { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.scene-caption {
  position: absolute; left: var(--gutter); bottom: clamp(56px, 12vh, 140px);
  width: min(22ch, calc(100% - 2 * var(--gutter)));
  font-family: var(--font-display); font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.6rem); line-height: 1.04; letter-spacing: -.015em;
  opacity: 0; transform: translateY(26px);
  text-shadow: 0 2px 30px rgba(10, 8, 40, .65);
}
.scene-caption small { display: block; font-family: var(--font-sans); font-size: var(--fs-body); line-height: 1.5; letter-spacing: 0; color: var(--peri); margin-top: 14px; max-width: 36ch; }
.scene-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: radial-gradient(90% 70% at 0% 100%, rgba(13, 11, 44, .86) 0%, rgba(13, 11, 44, .5) 40%, rgba(13, 11, 44, 0) 72%);
}

@media (max-width: 760px) {
  .turn-scene { height: 280vh; }
  .turn-scene .scene-caption { top: calc(var(--header-h) + 3vh); bottom: auto; }
  .turn-scene .scene-scrim { background: linear-gradient(180deg, rgba(13, 11, 44, .85) 0%, rgba(13, 11, 44, .4) 22%, rgba(13, 11, 44, 0) 36%); }
  .hero-copy { justify-content: flex-start; padding-top: calc(var(--header-h) + 5vh); }
  .hero-title { font-size: clamp(2.6rem, 13.4vw, 4.4rem); }
  .hero-copy .btn { padding: 0 1.05em; font-size: .95rem; min-height: 48px; }
  .hero-copy .btn-row { gap: 10px; }
  .hero-creds { display: none; }
}
@media (max-height: 640px) and (min-width: 761px) { .hero-creds { display: none; } }

/* reduced motion: scene becomes a normal hero + static figure */
.scene.is-static { height: auto !important; }
.scene.is-static .scene__sticky { position: relative; height: auto; min-height: 100svh; }
.scene.is-static .scene__canvas { height: 100vh; height: 100svh; bottom: auto; }
.scene.is-static .hero-copy { height: auto; min-height: 100vh; min-height: 100svh; }
.scene.is-static .scene-captions { position: relative; inset: auto; padding: 72px var(--gutter) 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; border-top: 1px solid var(--line-dark); }
.scene.is-static .scene-caption { position: static; opacity: 1; transform: none; width: auto; max-width: 30ch; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.4rem); }
.scene.is-static .scene-scrim, .scene.is-static .hero-creds { display: none; }

/* ==========================================================================
   HOME — sections after the scene
   ========================================================================== */
.statement { font-size: var(--fs-h2); line-height: 1.04; letter-spacing: -.018em; max-width: 17ch; }
.intro-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 7vw, 120px);
  margin-top: clamp(56px, 8vw, 112px); align-items: start;
}
.intro-grid .portrait { position: sticky; top: calc(var(--header-h) + 32px); }
.intro-copy h3 { margin-bottom: 18px; }
.intro-copy p { color: var(--muted); }
.intro-copy p.first { color: var(--ink); font-size: var(--fs-lead); line-height: 1.55; }
.intro-copy .text-link { margin-top: 14px; }
.cred-list { list-style: none; margin: 34px 0 30px; border-top: 1px solid var(--line); }
.cred-list li { display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cred-list b { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; letter-spacing: .01em; }
.cred-list span { color: var(--muted); font-size: .98rem; }
@media (max-width: 860px) {
  .intro-grid { grid-template-columns: 1fr; }
  .intro-grid .portrait { position: relative; top: 0; max-width: 440px; }
}

/* Portrait slot: sun-print art until a real photo is added */
.portrait { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--ink); isolation: isolate; }
.portrait .sunprint { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait .portrait-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.portrait figcaption {
  position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 3;
  font-size: .86rem; color: var(--peri); line-height: 1.45;
}
.portrait::after { content: ""; position: absolute; inset: 0; z-index: 1; background-image: var(--grain); opacity: .12; mix-blend-mode: soft-light; pointer-events: none; }

/* The Imago Dialogue — three steps, circles move closer at each step */
.dialogue-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: end; }
.dialogue-head p { color: var(--muted); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(48px, 6vw, 80px); counter-reset: step; }
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.step__fig { width: 112px; height: 64px; margin-bottom: 30px; color: var(--ink); }
.step__num { font-family: var(--font-display); font-size: 1.05rem; color: var(--muted); margin-bottom: 10px; display: block; }
.step h3 { margin-bottom: 14px; }
.step p { color: var(--muted); }
.stem { margin-top: 18px; font-family: var(--font-display); font-style: italic; font-size: 1.22rem; line-height: 1.35; color: var(--ink); }
.dialogue-cta { margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 860px) {
  .dialogue-head { grid-template-columns: 1fr; align-items: start; }
  .steps { grid-template-columns: 1fr; }
}

/* Services: an index, not a card grid */
.services-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.services { list-style: none; margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line-strong); }
.service { border-bottom: 1px solid var(--line-strong); }
.service a {
  display: grid; grid-template-columns: 92px minmax(0, 1.1fr) minmax(0, 1fr) 48px; gap: clamp(16px, 3vw, 48px);
  align-items: center; padding: clamp(24px, 3vw, 40px) 0; text-decoration: none;
  transition: background-color .4s var(--ease-out), padding .5s var(--ease-out);
}
.service h3 { font-size: clamp(1.7rem, 1.2rem + 1.9vw, 3rem); }
.service p { color: var(--muted); margin: 0; }
.service__fig { width: 92px; height: 64px; color: var(--ink); }
.service__go { width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line-strong); display: grid; place-items: center; transition: background-color .3s, border-color .3s, transform .5s var(--ease-out); }
.service__go svg { width: 18px; height: 18px; }
.service a:hover .service__go, .service a:focus-visible .service__go { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: rotate(-45deg); }
.service a:hover { background: linear-gradient(90deg, rgba(236, 235, 248, 0), rgba(236, 235, 248, .9) 30%, rgba(236, 235, 248, 0)); }
@media (max-width: 860px) {
  .service a { grid-template-columns: 64px minmax(0, 1fr) 40px; grid-template-areas: "fig title go" "fig text go"; row-gap: 6px; }
  .service__fig { grid-area: fig; width: 64px; height: 46px; align-self: start; margin-top: 6px; }
  .service h3 { grid-area: title; }
  .service p { grid-area: text; font-size: .98rem; }
  .service__go { grid-area: go; width: 40px; height: 40px; }
}

/* Circle glyph parts (shared by steps, services, figures) */
.glyph .a { fill: none; stroke: currentColor; stroke-width: 1.6; }
.glyph .b { fill: none; stroke: var(--sun-deep); stroke-width: 1.6; }
.glyph .lens { fill: var(--sun); }
.glyph .dot { fill: var(--sun-deep); }
.glyph .faint { fill: none; stroke: currentColor; stroke-width: 1.2; opacity: .35; stroke-dasharray: 2 4; }
.theme-dark .glyph .b, .theme-night .glyph .b { stroke: var(--sun); }
/* scroll-linked: --g goes 0 → 1 as the glyph enters; people move toward each other */
.glyph[data-anim] .gm-l { transform: translateX(calc((1 - var(--g, 1)) * -11px)); }
.glyph[data-anim] .gm-r { transform: translateX(calc((1 - var(--g, 1)) * 11px)); }
.glyph[data-anim] .gm-d { transform: translateY(calc((1 - var(--g, 1)) * 10px)); }
.glyph[data-anim] .g-fade { opacity: clamp(0, calc(var(--g, 1) * 2.2 - 1.2), 1); }
.glyph[data-anim] .g-grow { transform-box: fill-box; transform-origin: center; transform: scale(var(--g, 1)); }
.glyph[data-anim] .sd { opacity: clamp(0, calc((var(--g, 1) - var(--i)) * 7), 1); }
.icon { width: 1.1em; height: 1.1em; flex: none; }

/* Scroll-highlighted statement */
.reveal-words { font-family: var(--font-display); font-size: clamp(2rem, 1.25rem + 3.2vw, 4.6rem); line-height: 1.08; letter-spacing: -.016em; max-width: 21ch; }
.reveal-words .w { opacity: .2; transition: opacity .25s linear; }
.reveal-words .w.on { opacity: 1; }
.reveal-words .w.gold.on { color: var(--sun); }
.reveal-cite { margin-top: 36px; color: var(--peri); font-size: .98rem; }

/* Visit */
.visit-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.address { font-family: var(--font-display); font-size: clamp(2.1rem, 1.4rem + 2.8vw, 4.2rem); line-height: 1.04; letter-spacing: -.016em; font-style: normal; }
.visit-facts { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.visit-facts li { display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line-strong); }
.visit-facts span:first-child { color: var(--muted); }
.visit-facts a { font-weight: 500; }
.visit-note { margin-top: 26px; color: var(--muted); font-size: .98rem; }
@media (max-width: 860px) { .visit-grid { grid-template-columns: 1fr; } }

/* Closing CTA */
.cta-band { text-align: left; overflow: hidden; padding-bottom: clamp(64px, 8vw, 120px); }
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.cta-band h2 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 6rem); line-height: .98; max-width: 11ch; }
.cta-band .lead { margin-top: 22px; }
.cta-band .btn-row { margin-top: 34px; }
.cta-band__art { justify-self: end; width: min(100%, 420px); aspect-ratio: 1; position: relative; }
.cta-band__art svg { width: 100%; height: 100%; }
.cta-band__art .slow-turn { transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
  .cta-band__art .slow-turn { animation: turn 90s linear infinite; }
}
@keyframes turn { to { transform: rotate(360deg); } }
@media (max-width: 860px) { .cta-band__inner { grid-template-columns: 1fr; } .cta-band__art { justify-self: start; width: 220px; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--peri); position: relative; overflow: hidden; padding-top: 8px; }
.site-footer > .container { border-top: 1px solid var(--line-dark); padding-top: clamp(48px, 6vw, 80px); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.footer-brand img, .footer-brand svg { width: min(100%, 360px); height: auto; }
.footer-col h2 { font-family: var(--font-sans); font-size: .95rem; font-weight: 600; color: var(--paper); margin-bottom: 14px; letter-spacing: 0; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--paper); text-decoration: underline; text-decoration-color: var(--sun); }
.footer-col address { font-style: normal; }
.footer-crisis {
  margin-top: clamp(48px, 6vw, 80px); padding: 22px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  font-size: .95rem; color: var(--paper);
}
.footer-crisis p { max-width: none; }
.footer-crisis a { color: var(--sun); font-weight: 600; text-decoration: none; }
.footer-crisis a:hover { text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px 24px; padding: 26px 0 6px; font-size: .88rem; flex-wrap: wrap; }
.footer-bottom p { max-width: none; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--paper); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Bunnies: user-triggered ear twitch only */
.bunny { cursor: pointer; }
.bunny .ear { transform-box: fill-box; transform-origin: 50% 100%; }
.bunny.twitch .ear-l { animation: twitchL .7s var(--ease-out); }
.bunny.twitch .ear-r { animation: twitchR .7s var(--ease-out) .06s; }
@keyframes twitchL { 30% { transform: rotate(-14deg); } 60% { transform: rotate(6deg); } }
@keyframes twitchR { 30% { transform: rotate(12deg); } 60% { transform: rotate(-5deg); } }
.bunny:focus-visible { outline: none; }
.bunny:focus-visible .body { stroke: var(--sun); stroke-width: 2; }


/* ---------- Footer meadow: grass, sunflowers, a windmill flower, two bunnies ---------- */
.meadow { position: relative; height: 210px; overflow: hidden; margin-top: 4px; }
.meadow::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 90% at 78% 100%, rgba(242, 182, 31, .10), rgba(242, 182, 31, 0) 70%); pointer-events: none; }
.meadow__grass { position: absolute; left: 0; bottom: 0; width: 100%; max-width: none; display: block; }
.meadow__grass--back { height: 120px; z-index: 0; }
.meadow__grass--front { height: 44px; z-index: 3; pointer-events: none; }
.meadow__flowers { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.mf { position: absolute; bottom: 24px; transform-origin: 50% 100%; }
.mf svg { width: 100%; height: 100%; overflow: visible; }
.windmill { transform-box: fill-box; transform-origin: center; will-change: transform; }
.meadow__stage { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hopper { position: absolute; left: 0; bottom: 16px; width: 92px; height: 92px; pointer-events: auto; cursor: pointer; will-change: transform; -webkit-tap-highlight-color: transparent; }
.hopper__body { position: absolute; inset: 0; transform-origin: 50% 100%; }
.hopper__body svg { width: 100%; height: 100%; overflow: visible; }
.hopper__shadow { position: absolute; left: 22%; width: 56%; bottom: -1px; height: 7px; border-radius: 50%; background: rgba(4, 3, 20, .45); transform-origin: center; }
.hopper .b-ears { transform-box: fill-box; transform-origin: 35% 100%; }
.hopper .b-eye { transform-box: fill-box; transform-origin: center; }
.hopper .b-nose { transform-box: fill-box; transform-origin: center; }
.firefly { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #FFE08A; box-shadow: 0 0 10px 3px rgba(255, 214, 102, .55); opacity: 0; z-index: 1; }
@media (prefers-reduced-motion: no-preference) {
  .firefly { animation: firefly 7s ease-in-out infinite; animation-delay: var(--fd, 0s); }
}
@keyframes firefly {
  0% { opacity: 0; transform: translate(0, 0); }
  20% { opacity: .9; }
  50% { opacity: .35; transform: translate(var(--fx, 18px), -26px); }
  80% { opacity: .85; }
  100% { opacity: 0; transform: translate(calc(var(--fx, 18px) * -0.6), -48px); }
}
.heart { position: absolute; width: 32px; height: 29px; pointer-events: none; animation: heartUp 1.9s cubic-bezier(.16, 1, .3, 1) forwards; }
.heart svg { width: 100%; height: 100%; }
@keyframes heartUp {
  0% { opacity: 0; transform: translateY(8px) scale(.3); }
  18% { opacity: 1; transform: translateY(-6px) scale(1.15); }
  100% { opacity: 0; transform: translateY(-58px) scale(.9) rotate(-8deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .meadow .sway { transform-box: fill-box; transform-origin: 50% 100%; animation: grassSway 5s ease-in-out infinite; }
  .meadow .sway-2 { animation-duration: 6.3s; animation-delay: -1.4s; }
  .meadow .sway-3 { animation-duration: 5.6s; animation-delay: -2.8s; }
  .mf { animation: mfSway 5.8s ease-in-out infinite; animation-delay: calc(var(--d) * -1); }
  .mf--windmill { animation-duration: 7.5s; }
  .hopper .b-eye { animation: blink 4.6s infinite; }
  .hopper[data-hopper="honey"] .b-eye { animation-delay: -2.1s; }
  .hopper .b-nose { animation: sniff 1.6s ease-in-out infinite; }
}
@keyframes grassSway { 0%, 100% { transform: skewX(-5deg); } 50% { transform: skewX(5deg); } }
@keyframes mfSway { 0%, 100% { transform: rotate(-1.8deg); } 50% { transform: rotate(2deg); } }
@keyframes blink { 0%, 44%, 49%, 100% { transform: scaleY(1); } 46.5% { transform: scaleY(.08); } }
@keyframes sniff { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-.7px) scale(1.12); } }
@media (max-width: 760px) {
  .meadow { height: 176px; }
  .mf--hide-sm { display: none; }
  .mf--windmill { scale: .82; }
  .hopper { width: 70px; height: 70px; }
}

/* ==========================================================================
   IMAGO PAGE
   ========================================================================== */
.imago-hero { background: var(--paper); }
.imago-hero h1 { max-width: 10ch; }
.about-hero-grid h1 { font-size: clamp(3rem, 1.6rem + 5vw, 6.6rem); }
.cert-note {
  margin-top: clamp(26px, 3vw, 36px); display: flex; gap: 16px; align-items: center; max-width: 520px;
  padding: 14px 18px 14px 14px; border-radius: 18px; background: var(--white); border: 1px solid var(--line);
}
.cert-note img, .cert-note svg { width: 52px; height: 52px; flex: none; }
.cert-note img { border-radius: 50%; object-fit: cover; }
.cert-note p { margin: 0; font-size: .97rem; line-height: 1.45; color: var(--muted); }
.cert-note strong { color: var(--ink); font-weight: 600; }
.art-caption { margin-top: 14px; font-size: .9rem; color: var(--muted); text-align: center; }

.define { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 7vw, 120px); align-items: start; }
.define__word { font-family: var(--font-display); font-size: clamp(4.5rem, 2rem + 11vw, 12.5rem); line-height: .82; letter-spacing: -.04em; font-style: italic; }
.define__meta { margin-top: 18px; font-size: 1.05rem; color: var(--muted); }
.define__meta em { font-family: var(--font-display); font-size: 1.25em; color: var(--ink); }
.define__body p:first-child { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink); }
.define__body p { color: var(--muted); }
@media (max-width: 860px) { .define { grid-template-columns: 1fr; } }

/* Timeline */
.timeline { position: relative; margin-top: clamp(48px, 6vw, 88px); }
.timeline__track { position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--line); }
.timeline__fill { position: absolute; left: 0; top: 0; height: 100%; width: 100%; background: var(--sun-deep); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.timeline ol { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 4vw, 64px); position: relative; }
.timeline li { padding-top: 46px; position: relative; }
.timeline li::before {
  content: ""; position: absolute; top: 3px; left: 0; width: 18px; height: 18px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--line-strong); transition: border-color .4s, background-color .4s, transform .6s var(--ease-out);
}
.timeline li.on::before { border-color: var(--sun-deep); background: var(--sun); transform: scale(1.15); }
.timeline .year { font-family: var(--font-display); font-size: clamp(2.6rem, 1.7rem + 2.6vw, 4.2rem); line-height: 1; letter-spacing: -.02em; display: block; margin-bottom: 14px; }
.timeline p { color: var(--muted); }
@media (max-width: 760px) {
  .timeline__track { left: 8px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .timeline__fill { transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
  .timeline ol { grid-template-columns: 1fr; gap: 36px; }
  .timeline li { padding: 0 0 0 44px; }
  .timeline li::before { top: 10px; left: 0; }
}

/* Stages scene */
.stages-scene { height: 380vh; }
.stages-scene .scene__sticky { background: radial-gradient(90% 80% at 72% 50%, #2A2580 0%, var(--ink) 55%, var(--night) 100%); }
.stages-wrap { position: relative; z-index: 2; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 40px; }
.stages-intro { position: absolute; top: calc(var(--header-h) + 3vh); left: 0; font-size: .95rem; color: var(--peri); }
.stage-list { list-style: none; display: grid; gap: clamp(20px, 3.4vh, 40px); }
.stage { opacity: .28; transition: opacity .5s var(--ease-out); max-width: 46ch; }
.stage.on { opacity: 1; }
.stage__num { font-family: var(--font-display); font-size: 1.1rem; color: var(--sun); display: block; margin-bottom: 6px; }
.stage h3 { font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.8rem); margin-bottom: 10px; }
.stage p { color: var(--peri); font-size: 1.02rem; }
.stage .p-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.stage .p-wrap > div { overflow: hidden; }
.stage.on .p-wrap { grid-template-rows: 1fr; }
.stages-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 860px) {
  .stages-scene { height: 340vh; }
  .stages-wrap { grid-template-columns: 1fr; align-items: end; padding-bottom: 7vh; }
  .stage-list { gap: 14px; }
  .stage { display: none; }
  .stage.on { display: block; }
  .stages-intro { display: none; }
}
.scene.is-static.stages-scene .stage { display: block; opacity: 1; }
.scene.is-static.stages-scene .stage .p-wrap { grid-template-rows: 1fr; }
.scene.is-static.stages-scene .stages-wrap { grid-template-columns: 1fr; padding-block: 120px 80px; }
.scene.is-static.stages-scene .stages-canvas { display: none; }

/* Dialogue (Imago page) */
.dialogue-steps { list-style: none; display: grid; gap: 0; margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line-strong); }
.dialogue-steps li { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); padding: clamp(28px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--line-strong); align-items: start; }
.dialogue-steps .n { font-family: var(--font-display); font-size: clamp(3rem, 2rem + 3vw, 5rem); line-height: .8; color: var(--sun-ink); }
.dialogue-steps h3 { margin-bottom: 12px; }
.dialogue-steps p { color: var(--muted); }
.dialogue-steps .stems { list-style: none; display: grid; gap: 10px; }
.dialogue-steps .stems li { display: block; padding: 0; border: 0; font-family: var(--font-display); font-style: italic; font-size: 1.26rem; line-height: 1.35; }
@media (max-width: 860px) { .dialogue-steps li { grid-template-columns: 1fr; gap: 12px; } }

/* Practice tool */
.practice { margin-top: clamp(56px, 7vw, 104px); border-radius: 32px; background: var(--ink); color: var(--paper); padding: clamp(24px, 4vw, 56px); position: relative; overflow: hidden; box-shadow: 0 40px 100px -50px rgba(21, 18, 63, .7); }
.practice::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .08; mix-blend-mode: soft-light; pointer-events: none; }
.practice__top { display: flex; justify-content: space-between; align-items: start; gap: 24px; flex-wrap: wrap; position: relative; z-index: 1; }
.practice__top h3 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 3rem); }
.practice__top p { color: var(--peri); margin-top: 10px; max-width: 52ch; }
.roles { display: inline-flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--peri); background: rgba(201, 200, 240, .08); border: 1px solid var(--line-dark); border-radius: 999px; padding: 6px 6px 6px 16px; }
.roles b { color: var(--paper); font-weight: 600; }
.roles button { border: 0; background: rgba(201, 200, 240, .14); color: var(--paper); border-radius: 999px; padding: 8px 14px; cursor: pointer; font-size: .88rem; font-weight: 500; }
.roles button:hover { background: rgba(201, 200, 240, .24); }
.progress { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: clamp(26px, 3vw, 40px) 0 clamp(22px, 3vw, 32px); position: relative; z-index: 1; }
.progress li { font-size: .86rem; color: var(--peri); padding-top: 12px; border-top: 3px solid rgba(201, 200, 240, .18); transition: border-color .4s, color .4s; }
.progress li.done { border-color: var(--peri-soft); }
.progress li.now { border-color: var(--sun); color: var(--paper); font-weight: 500; }
.practice__stage { position: relative; z-index: 1; min-height: 300px; }
.p-step { display: none; }
.p-step.on { display: block; animation: stepIn .6s var(--ease-out); }
@keyframes stepIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.p-step h4 { font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem); margin-bottom: 8px; }
.p-step .hint { color: var(--peri); font-size: .98rem; margin-bottom: 18px; }
.said { border-left: 3px solid var(--sun); padding: 6px 0 6px 18px; margin: 0 0 20px; font-family: var(--font-display); font-size: 1.3rem; line-height: 1.4; color: var(--paper); }
.said small { display: block; font-family: var(--font-sans); font-size: .82rem; color: var(--peri); margin-bottom: 4px; }
.field-dark { width: 100%; min-height: 120px; resize: vertical; border-radius: 18px; border: 1px solid rgba(201, 200, 240, .3); background: rgba(10, 8, 40, .35); color: var(--paper); padding: 16px 18px; font-size: 1.05rem; line-height: 1.55; }
.field-dark::placeholder { color: rgba(201, 200, 240, .6); }
.field-dark:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(242, 182, 31, .25); }
.stem-lead { font-family: var(--font-display); font-style: italic; font-size: 1.32rem; margin-bottom: 10px; color: var(--sun); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 6px; }
.chip { border: 1px solid rgba(201, 200, 240, .35); background: transparent; color: var(--paper); border-radius: 999px; padding: 8px 14px; font-size: .92rem; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.chip:hover { border-color: var(--peri); }
.chip[aria-pressed="true"] { background: var(--sun); color: var(--night); border-color: var(--sun); }
.p-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.transcript { list-style: none; display: grid; gap: 14px; margin: 8px 0 6px; }
.transcript li { padding: 14px 18px; border-radius: 16px; background: rgba(201, 200, 240, .08); border: 1px solid var(--line-dark); }
.transcript small { display: block; color: var(--peri); font-size: .8rem; margin-bottom: 4px; }
.transcript p { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.4; max-width: none; }
.practice .btn--ghost { --btn-bd: rgba(201, 200, 240, .38); color: var(--paper); }
.practice .btn--ghost:hover { background: rgba(201, 200, 240, .1); border-color: var(--peri); }
.practice__privacy { position: relative; z-index: 1; margin-top: 26px; font-size: .86rem; color: var(--peri); display: flex; gap: 10px; align-items: center; }
.practice__privacy svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 640px) {
  .progress { grid-template-columns: repeat(4, 1fr); }
  .progress li { font-size: .74rem; }
  .practice { border-radius: 24px; }
}

/* Tools list */
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 80px); margin-top: clamp(36px, 5vw, 64px); }
.tool { padding: 28px 0; border-top: 1px solid var(--line-strong); display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; align-items: start; }
.tool svg { width: 72px; height: 52px; color: var(--ink); }
.tool h3 { font-size: var(--fs-h4); margin-bottom: 8px; }
.tool p { color: var(--muted); font-size: 1rem; }
@media (max-width: 760px) { .tools { grid-template-columns: 1fr; } }

/* Split text block */
.split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 7vw, 120px); align-items: start; }
.split__body p { color: var(--muted); }
.split__body p.big { color: var(--ink); font-size: var(--fs-lead); line-height: 1.55; }
.theme-dark .split__body p, .theme-night .split__body p { color: var(--peri); }
.theme-dark .split__body p.big, .theme-night .split__body p.big { color: var(--paper); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 24px 0; font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.8rem); line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 40px; height: 40px; flex: none; border-radius: 999px; border: 1px solid var(--line-strong); transition: background-color .3s, transform .5s var(--ease-out); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 12px; right: 12px; top: 19px; height: 1.5px; background: currentColor; transition: transform .5s var(--ease-out); }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.faq details[open] summary .pm::after { transform: rotate(0deg); }
.faq .answer { padding: 0 64px 28px 0; color: var(--muted); overflow: hidden; }
.faq .answer a { color: var(--indigo-600); font-weight: 500; }

/* Book / resource */
.resource { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 3.4vw, 44px); border-radius: 28px; background: var(--white); border: 1px solid var(--line); }
.book { width: 160px; aspect-ratio: 2 / 3; border-radius: 6px 12px 12px 6px; background: linear-gradient(90deg, #1A1650 0 9%, var(--ink) 9% 100%); color: var(--paper); padding: 18px 14px 18px 24px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 30px 60px -30px rgba(21, 18, 63, .6); font-family: var(--font-display); }
.book b { font-weight: 400; font-size: 1.15rem; line-height: 1.1; }
.book span { font-family: var(--font-sans); font-size: .62rem; color: var(--peri); line-height: 1.35; }
.resource h3 { margin-bottom: 10px; }
.resource p { color: var(--muted); }
@media (max-width: 640px) { .resource { grid-template-columns: 1fr; } .book { width: 120px; } }

.safety {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 20px 22px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); max-width: 760px;
}
.safety svg { width: 24px; height: 24px; color: var(--indigo-600); margin-top: 2px; }
.safety p { font-size: .98rem; color: var(--muted); }
.safety a { color: var(--indigo-600); font-weight: 600; }
.theme-dark .safety { background: rgba(201, 200, 240, .06); border-color: var(--line-dark); }
.theme-dark .safety p { color: var(--peri); }
.theme-dark .safety a { color: var(--sun); }

/* ==========================================================================
   SERVICE PAGES
   ========================================================================== */
.signs { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 80px); margin-top: clamp(36px, 5vw, 64px); }
.signs li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--line-strong); font-family: var(--font-display); font-size: clamp(1.3rem, 1.12rem + .7vw, 1.75rem); line-height: 1.25; }
.signs svg { width: 22px; height: 22px; margin-top: 6px; color: var(--sun-ink); }
@media (max-width: 760px) { .signs { grid-template-columns: 1fr; } }

.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(28px, 5vw, 80px); margin-top: clamp(36px, 5vw, 64px); }
.principle h3 { font-size: var(--fs-h3); margin-bottom: 12px; }
.principle p { color: var(--muted); }
.theme-dark .principle p, .theme-night .principle p { color: var(--peri); }
.principle .rule { width: 56px; height: 2px; background: var(--sun); margin-bottom: 22px; }
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }

.topics { display: grid; gap: 0; margin-top: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line-strong); }
.topic { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 5vw, 80px); padding: clamp(26px, 3.4vw, 44px) 0; border-bottom: 1px solid var(--line-strong); scroll-margin-top: calc(var(--header-h) + 20px); }
.topic h3 { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.6rem); }
.topic p { color: var(--muted); }
@media (max-width: 760px) { .topic { grid-template-columns: 1fr; gap: 10px; } }

.feature-link { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 32px; align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: 32px; background: var(--ink); color: var(--paper); text-decoration: none; overflow: hidden; position: relative; }
.feature-link h3 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3.2rem); margin-bottom: 12px; }
.feature-link p { color: var(--peri); }
.feature-link .fl-art { width: 220px; height: 150px; }
.feature-link .fl-go { margin-top: 22px; display: inline-flex; gap: 10px; align-items: center; color: var(--sun); font-weight: 500; }
.feature-link:hover .fl-go { text-decoration: underline; text-underline-offset: .35em; }
@media (max-width: 760px) { .feature-link { grid-template-columns: 1fr; } .feature-link .fl-art { width: 180px; height: 120px; order: -1; } }


/* COUPLES — growing sunflowers scene */
.grow-scene { height: 390vh; background: var(--night); color: var(--paper); }
.grow-scene .hero-copy { justify-content: center; }
.grow-scene h1 { font-size: clamp(2.8rem, 1.5rem + 4.6vw, 6.2rem); line-height: .95; letter-spacing: -.025em; max-width: 9.5ch; }
.grow-scene .lead { margin-top: clamp(20px, 2.4vw, 32px); max-width: 34ch; }
.grow-scene .btn-row { margin-top: clamp(26px, 3vw, 40px); }
.grow-scene .scene-caption { bottom: 20vh; }
@media (max-width: 760px) {
  .grow-scene { height: 330vh; }
  .grow-scene .hero-copy { justify-content: flex-start; padding-top: calc(var(--header-h) + 5vh); }
  .grow-scene h1 { font-size: clamp(2.5rem, 11.4vw, 3.6rem); }
  .grow-scene .scene-caption { top: calc(var(--header-h) + 3vh); bottom: auto; }
  .grow-scene .scene-scrim { background: linear-gradient(180deg, rgba(13, 11, 44, .85) 0%, rgba(13, 11, 44, .4) 20%, rgba(13, 11, 44, 0) 32%); }
  .grow-scene .hero-copy .btn { padding: 0 1.05em; font-size: .95rem; min-height: 48px; }
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.big-phone { font-family: var(--font-display); font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.6rem); line-height: 1; letter-spacing: -.02em; text-decoration: none; display: inline-block; }
.big-phone:hover { color: var(--indigo-600); }
.contact-facts { list-style: none; margin-top: 36px; border-top: 1px solid var(--line-strong); }
.contact-facts li { padding: 18px 0; border-bottom: 1px solid var(--line-strong); display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; }
.contact-facts span:first-child { color: var(--muted); font-size: .95rem; }
.contact-facts address { font-style: normal; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 3.4vw, 44px); box-shadow: 0 40px 90px -60px rgba(21, 18, 63, .55); }
.form-card h2 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.8rem); margin-bottom: 8px; }
.form-card > p { color: var(--muted); }
.form { display: grid; gap: 18px; margin-top: 26px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: .92rem; font-weight: 500; }
.field .opt { color: var(--muted); font-weight: 400; }
.input, .select, .textarea {
  width: 100%; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--paper);
  padding: 14px 16px; font-size: 1rem; line-height: 1.4; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.textarea { min-height: 128px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231F1B5C' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 4px rgba(242, 182, 31, .35); }
.field .help { font-size: .86rem; color: var(--muted); }
.field.invalid .input, .field.invalid .textarea { border-color: var(--error); }
.field .err { display: none; font-size: .86rem; color: var(--error); font-weight: 500; }
.field.invalid .err { display: block; }
.radios { display: flex; gap: 10px; flex-wrap: wrap; border: 0; padding: 0; margin: 0; }
.radios legend { margin-bottom: 8px; }
.radio { position: relative; }
.radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .95rem; transition: background-color .2s, color .2s, border-color .2s; }
.radio input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.radio input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 3px; }
.form-note { font-size: .86rem; color: var(--muted); display: flex; gap: 10px; align-items: start; }
.form-note svg { width: 16px; height: 16px; margin-top: 3px; flex: none; }
.form-status { display: none; padding: 18px 20px; border-radius: 16px; font-size: .98rem; }
.form-status.show { display: block; animation: stepIn .6s var(--ease-out); }
.form-status.ok { background: var(--mist); color: var(--ink); }
.form-status.warn { background: #FFF4D6; color: #5A4300; }
.form-status b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; margin-bottom: 4px; }
.preview-tag { display: inline-block; margin-left: 8px; font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--sun-pale); color: #5A4300; vertical-align: middle; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form .row2 { grid-template-columns: 1fr; } .contact-facts li { grid-template-columns: 1fr; gap: 4px; } }

/* About */
.about-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-hero-grid .portrait { max-width: 460px; justify-self: end; width: 100%; }
@media (max-width: 860px) { .about-hero-grid { grid-template-columns: 1fr; } .about-hero-grid .portrait { justify-self: start; max-width: 380px; } }
.aside-note { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 28px; align-items: center; max-width: 760px; }
.aside-note svg { width: 120px; height: 120px; }
.aside-note p { color: var(--muted); font-size: 1.05rem; }
@media (max-width: 560px) { .aside-note { grid-template-columns: 1fr; } }

/* 404 */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 40px) var(--gutter) 80px; }
.lost svg { width: 220px; height: auto; margin: 0 auto 28px; }
.lost h1 { font-size: var(--fs-h2); margin-bottom: 14px; }
.lost p { margin: 0 auto 28px; color: var(--muted); }
.lost .btn-row { justify-content: center; }

/* Deborah's face, small */
.avatar { border-radius: 50%; object-fit: cover; }
.person { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.person .avatar--lg { width: 72px; height: 72px; box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px rgba(242, 182, 31, .9); }
.person b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; line-height: 1.15; }
.person span { color: var(--muted); font-size: .95rem; }
.portrait picture { position: absolute; inset: 0; }
.portrait .portrait-photo { object-position: 50% 28%; }

/* anchors land below the fixed header */
main [id] { scroll-margin-top: calc(var(--header-h) + 20px); }

/* Utility spacing */
.mt-s { margin-top: 18px; } .mt-m { margin-top: clamp(28px, 3vw, 40px); } .mt-l { margin-top: clamp(48px, 6vw, 88px); }
.maxw-28 { max-width: 28ch; } .maxw-20 { max-width: 20ch; } .maxw-14 { max-width: 14ch; }

/* Reduced motion: no transitions beyond opacity */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal-words .w { opacity: 1; }
}

/* Print */
@media print {
  .site-header, .mobile-menu, .scene-captions, canvas, .footer-meadow, .practice { display: none !important; }
  .turn-scene, .grow-scene, .stages-scene { height: auto !important; }
  .scene__sticky { position: static; height: auto; }
  body { background: #fff; color: #000; }
}
