/* Bernard J. O’Connell, Ph.D., Educational Consultant
   Design system: OKLCH tokens + light-dark(), @layer, nesting, scroll-driven animation,
   view transitions, popover menu. Every effect is progressive and respects reduced motion. */

@layer reset, tokens, base, layout, components, pages, motion, print;

/* ------------------------------------------------------------------ fonts */
@font-face { font-family: "Fraunces"; src: url(../fonts/fraunces.woff2) format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url(../fonts/fraunces-italic.woff2) format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(../fonts/instrument-sans.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
/* Metric-matched fallbacks so a slow font load barely shifts layout. */
@font-face { font-family: "Fraunces Fallback"; src: local("Georgia"); size-adjust: 103%; ascent-override: 90%; descent-override: 24%; line-gap-override: 0%; }
@font-face { font-family: "Instrument Sans Fallback"; src: local("Arial"); size-adjust: 101%; ascent-override: 93%; descent-override: 24%; line-gap-override: 0%; }

/* ------------------------------------------------------------------ reset */
@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  img, svg, picture { display: block; max-width: 100%; }
  button, input, select, textarea { font: inherit; color: inherit; }
  button { cursor: pointer; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  :where(ul, ol) { padding-left: 1.2em; }
  table { border-collapse: collapse; width: 100%; }
}

/* ----------------------------------------------------------------- tokens */
@layer tokens {
  :root {
    color-scheme: light dark;

    --paper:   light-dark(oklch(0.975 0.014 88), oklch(0.205 0.024 222));
    --paper-2: light-dark(oklch(0.945 0.021 85), oklch(0.245 0.03 220));
    --surface: light-dark(oklch(0.993 0.007 88), oklch(0.275 0.032 218));
    --ink:     light-dark(oklch(0.25 0.035 225), oklch(0.95 0.012 88));
    --muted:   light-dark(oklch(0.46 0.03 228),  oklch(0.79 0.025 215));
    --line:    light-dark(oklch(0.88 0.02 85),   oklch(0.37 0.035 215));
    --accent:  light-dark(oklch(0.5 0.13 58),    oklch(0.83 0.15 82));
    --focus:   light-dark(oklch(0.45 0.12 225),  oklch(0.83 0.15 82));

    --deep:    light-dark(oklch(0.285 0.058 205), oklch(0.155 0.03 215));
    --deep-2:  light-dark(oklch(0.23 0.05 208),   oklch(0.115 0.025 215));
    --on-deep: oklch(0.97 0.012 88);
    --on-deep-muted: oklch(0.83 0.03 200);
    --saffron: oklch(0.83 0.16 80);
    --saffron-hover: oklch(0.89 0.15 83);
    --on-saffron: oklch(0.2 0.04 70);

    --ph-bg:   light-dark(oklch(0.95 0.12 100), oklch(0.38 0.08 90));
    --ph-ink:  light-dark(oklch(0.32 0.06 85),  oklch(0.95 0.1 100));
    --ph-line: light-dark(oklch(0.7 0.15 85),   oklch(0.8 0.15 85));

    --font-display: "Fraunces", "Fraunces Fallback", Georgia, "Times New Roman", serif;
    --font-body: "Instrument Sans", "Instrument Sans Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

    --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.9rem);
    --step-0: clamp(1.0625rem, 1.03rem + 0.17vw, 1.1875rem);
    --step-1: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
    --step-3: clamp(1.95rem, 1.5rem + 2.2vw, 3.2rem);
    --step-4: clamp(2.4rem, 1.6rem + 3.8vw, 4.6rem);
    --step-5: clamp(2.75rem, 1.4rem + 6.4vw, 6.4rem);

    --r-sm: 0.75rem;
    --r: 1.25rem;
    --r-lg: 2rem;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --maxw: 74rem;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

    --shadow-1: 0 1px 2px light-dark(oklch(0.3 0.05 220 / 0.07), oklch(0 0 0 / 0.3)), 0 6px 18px -8px light-dark(oklch(0.3 0.05 220 / 0.14), oklch(0 0 0 / 0.4));
    --shadow-2: 0 2px 4px light-dark(oklch(0.3 0.05 220 / 0.06), oklch(0 0 0 / 0.3)), 0 24px 48px -20px light-dark(oklch(0.3 0.05 220 / 0.28), oklch(0 0 0 / 0.55));
  }
  :root, [data-tone] {
    --h: 75;
    --tone-bg: light-dark(oklch(0.94 0.045 var(--h)), oklch(0.31 0.06 var(--h)));
    --tone-bg-2: light-dark(oklch(0.89 0.07 var(--h)), oklch(0.38 0.08 var(--h)));
    --tone-fg: light-dark(oklch(0.46 0.15 var(--h)), oklch(0.84 0.13 var(--h)));
    --tone-solid: oklch(0.72 0.15 var(--h));
  }
  :root[data-theme="light"] { color-scheme: light; }
  :root[data-theme="dark"] { color-scheme: dark; }

  [data-tone="understand"] { --h: 320; }
  [data-tone="build"]      { --h: 75; }
  [data-tone="prove"]      { --h: 30; }
  [data-tone="launch"]     { --h: 240; }
}

/* ------------------------------------------------------------------- base */
@layer base {
  html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
  body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100dvh;
  }
  :is(h1, h2, h3, h4) { font-family: var(--font-display); font-weight: 380; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
  h1 { font-size: var(--step-4); letter-spacing: -0.03em; line-height: 1.02; }
  h2 { font-size: var(--step-3); }
  h3 { font-size: var(--step-1); line-height: 1.2; font-weight: 450; }
  :is(h1, h2, h3) em { font-style: italic; color: var(--accent); font-weight: 340; }
  p { text-wrap: pretty; }
  a { color: inherit; text-decoration-color: color-mix(in oklab, currentColor 40%, transparent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
  a:hover { text-decoration-color: currentColor; }
  strong { font-weight: 650; }
  address { font-style: normal; }
  ::selection { background: var(--saffron); color: var(--on-saffron); }
  :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
  :target { scroll-margin-top: 6rem; }
  main:focus { outline: none; }

  .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--saffron); color: var(--on-saffron); padding: 0.7rem 1.1rem; border-radius: var(--r-sm); font-weight: 650; text-decoration: none; transition: top 0.2s; }
  .skip-link:focus { top: 1rem; }
  [data-needs-js] { display: none; }
  .js [data-needs-js] { display: revert; }
  .no-js-only { display: block; }
  .js .no-js-only { display: none; }
  .placeholder { background: var(--ph-bg); color: var(--ph-ink); outline: 2px dashed var(--ph-line); outline-offset: 1px; padding: 0 0.3em; border-radius: 3px; font-weight: 600; font-style: normal; }
}

/* ----------------------------------------------------------------- layout */
@layer layout {
  .wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
  .wrap--narrow { width: min(100% - 2 * var(--gutter), 48rem); margin-inline: auto; }
  .section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
  .section--tint { background: var(--paper-2); }
  .section--deep { background: var(--deep); color: var(--on-deep); --focus: var(--saffron); --accent: var(--saffron); --muted: var(--on-deep-muted); --line: oklch(1 0 0 / 0.16); }
  .section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4.5vw, 3.75rem); display: grid; gap: 1rem; }
  .section-head p:not(.eyebrow) { color: var(--muted); font-size: var(--step-1); max-width: 40rem; }
  .stack > * + * { margin-top: var(--stack, 1.25rem); }
  .cluster { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
  .grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
  .grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
  .grid--3 { grid-template-columns: 1fr; }
  @media (min-width: 40rem) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 64rem) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
  .split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
  @media (min-width: 56rem) {
    .split { grid-template-columns: 1fr 1fr; }
    .split--wide-left { grid-template-columns: 1.25fr 1fr; }
    .split--sticky > :first-child { position: sticky; top: 7rem; }
  }
  .prose > * + * { margin-top: 1.1em; }
  .prose a { color: var(--accent); }
  .lede { font-size: var(--step-1); color: var(--muted); max-width: 40rem; line-height: 1.5; }
  .muted { color: var(--muted); }
  .eyebrow { display: inline-flex; align-items: center; gap: 0.7rem; font-size: 0.78rem; letter-spacing: 0.17em; text-transform: uppercase; font-weight: 650; color: var(--accent); }
  .eyebrow::before { content: ""; width: 2rem; height: 2px; background: currentColor; border-radius: 2px; }
  .eyebrow--light { color: var(--saffron); }
}

/* ------------------------------------------------------------- components */
@layer components {
  /* ---- buttons ---- */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.8rem 1.35rem; min-height: 2.9rem; border-radius: 999px; font-weight: 650; text-decoration: none; line-height: 1.1; border: 1.5px solid transparent; transition: background 0.2s, color 0.2s, translate 0.25s var(--ease), box-shadow 0.25s; }
  .btn svg { width: 1.15em; height: 1.15em; flex: none; }
  .btn-call { background: var(--saffron); color: var(--on-saffron); box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.45), 0 8px 20px -8px oklch(0.7 0.17 70 / 0.7); }
  .btn-call:hover { background: var(--saffron-hover); translate: 0 -2px; }
  .btn-call:active { translate: 0 0; }
  .btn-ghost { border-color: currentColor; background: transparent; color: inherit; }
  .btn-ghost:hover { background: color-mix(in oklab, currentColor 12%, transparent); }
  .btn-lg { font-size: 1.15rem; padding: 1.05rem 1.75rem; min-height: 3.6rem; }
  .btn-sm { padding: 0.55rem 1rem; min-height: 2.5rem; font-size: 0.95rem; }
  .icon-btn { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1.5px solid oklch(1 0 0 / 0.25); background: transparent; color: inherit; transition: background 0.2s; }
  .icon-btn:hover { background: oklch(1 0 0 / 0.12); }
  .icon-btn svg { width: 1.2rem; height: 1.2rem; }
  .chip { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.9rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 0.95rem; text-decoration: none; }
  .chip svg { width: 1em; height: 1em; }
  .chip-btn { color: inherit; background: transparent; }
  .chip-btn:hover { background: color-mix(in oklab, currentColor 10%, transparent); }
  @media (hover: none) and (pointer: coarse) { .chip-btn[data-copy] { display: none; } }
  .chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
  .chips li { padding: 0.35rem 0.95rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.97rem; }

  /* ---- status pill (open now) ---- */
  .status { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.92rem; font-weight: 550; }
  .status:empty { display: none; }
  .status::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: oklch(0.7 0.02 230); flex: none; }
  .status[data-state="open"]::before { background: oklch(0.78 0.2 150); box-shadow: 0 0 0 0 oklch(0.78 0.2 150 / 0.6); animation: pulse 2.4s infinite; }
  .status[data-state="closed"]::before { background: oklch(0.75 0.14 55); }

  /* ---- site header ---- */
  .site-header { position: sticky; top: 0; z-index: 50; view-transition-name: site-header; background: color-mix(in oklab, var(--deep) 88%, transparent); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); color: var(--on-deep); border-bottom: 1px solid oklch(1 0 0 / 0.09); --focus: var(--saffron); }
  .header-inner { display: flex; align-items: center; gap: 1rem; min-height: 4.4rem; }
  .brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; margin-right: auto; }
  .brand-mark { width: 2.5rem; height: 2.5rem; flex: none; }
  .brand-text { display: grid; line-height: 1.1; }
  .brand-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; letter-spacing: -0.01em; }
  .brand-sub { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.75; font-weight: 600; }
  .header-actions { display: flex; align-items: center; gap: 0.6rem; }
  .header-call .lbl-full { display: none; }
  @media (min-width: 30rem) { .header-call .lbl-full { display: inline; } .header-call .lbl-short { display: none; } }

  .theme-toggle svg { display: none; }
  .theme-toggle[data-mode="auto"] .ti-auto, .theme-toggle[data-mode="light"] .ti-light, .theme-toggle[data-mode="dark"] .ti-dark { display: block; }
  .no-js .theme-toggle, :root:not(.js) .theme-toggle { display: none; }

  /* menu: popover on mobile, inline list on desktop */
  .menu { color: var(--on-deep); }
  .menu:popover-open { position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 5.5rem var(--gutter) 2rem; border: 0; background: var(--deep); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; overflow: auto; opacity: 1; translate: 0 0; --focus: var(--saffron); }
  .menu { opacity: 0; translate: 0 -1rem; transition: opacity 0.3s var(--ease), translate 0.35s var(--ease), display 0.3s allow-discrete, overlay 0.3s allow-discrete; }
  @starting-style { .menu:popover-open { opacity: 0; translate: 0 -1rem; } }
  .menu::backdrop { background: var(--deep); }
  @supports not selector(:popover-open) { .menu { opacity: 1; translate: none; } .nav-toggle, .menu-close { display: none; } .menu-list { display: flex; flex-wrap: wrap; list-style: none; padding: 0; } }
  body:has(.menu:popover-open) { overflow: hidden; }
  .menu-close { position: absolute; top: 1rem; right: var(--gutter); }
  .menu-list { list-style: none; padding: 0; display: grid; gap: 0.25rem; }
  .menu-list a { display: block; padding: 0.4rem 0; font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3.2rem); font-weight: 350; letter-spacing: -0.025em; text-decoration: none; line-height: 1.15; }
  .menu-list a[aria-current="page"] { color: var(--saffron); font-style: italic; }
  .menu-list a:hover { color: var(--saffron); }
  .menu-foot { display: grid; gap: 0.75rem; }
  .menu-call { width: 100%; }
  .menu-theme { width: 100%; }
  @media (max-width: 47.99rem) { .header-actions .theme-toggle { display: none; } }
  @media (max-width: 29.99rem) {
    .header-inner { gap: 0.6rem; }
    .header-actions { gap: 0.4rem; }
    .brand { gap: 0.55rem; }
    .brand-sub { display: none; }
    .brand-name { font-size: 1.05rem; line-height: 1.05; }
    .brand-text { max-width: 8.5rem; }
  }
  @media (min-width: 62rem) {
    .nav { flex: 1; display: flex; justify-content: center; }
    .nav-toggle, .menu-close, .menu-foot { display: none; }
    .menu, .menu:popover-open { display: block; position: static; inset: auto; width: auto; height: auto; margin: 0; padding: 0; border: 0; background: none; color: inherit; opacity: 1; translate: none; overflow: visible; transition: none; }
    .menu-list { display: flex; gap: 0.15rem; }
    .menu-list a { font-family: var(--font-body); font-size: 0.97rem; font-weight: 600; letter-spacing: 0; padding: 0.55rem 0.9rem; border-radius: 999px; transition: background 0.2s; }
    .menu-list a:hover { background: oklch(1 0 0 / 0.1); color: inherit; }
    .menu-list a[aria-current="page"] { font-style: normal; color: var(--on-saffron); background: var(--saffron); }
    .brand { margin-right: 0; }
  }

  /* ---- hero ---- */
  .hero { position: relative; isolation: isolate; overflow: clip; background:
      radial-gradient(60rem 36rem at 88% -8%, oklch(0.56 0.12 196 / 0.55), transparent 62%),
      radial-gradient(44rem 30rem at -5% 108%, oklch(0.55 0.14 62 / 0.35), transparent 62%),
      radial-gradient(30rem 24rem at 55% 120%, oklch(0.42 0.1 300 / 0.35), transparent 60%),
      var(--deep);
    color: var(--on-deep); --focus: var(--saffron); --accent: var(--saffron); --muted: var(--on-deep-muted);
    padding-block: clamp(3.25rem, 7vw, 6.5rem) clamp(5.5rem, 11vw, 9rem); }
  .hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5; mix-blend-mode: overlay; pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
  .hero-grid { display: grid; gap: 3rem; align-items: center; }
  @media (min-width: 62rem) { .hero-grid { grid-template-columns: 1.3fr 0.85fr; gap: 2rem; } }
  .hero-copy { display: grid; gap: 1.5rem; justify-items: start; }
  .hero h1 { font-size: clamp(2.6rem, 1.2rem + 4.6vw, 5.1rem); max-width: 17ch; }
  .hero--page { padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3.5rem, 7vw, 6rem); }
  .hero--page h1 { font-size: var(--step-4); max-width: 17ch; }
  .hero .lede { color: var(--on-deep-muted); }
  .hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
  .hero-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-size: 0.95rem; color: var(--on-deep-muted); }
  .hero-meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
  .hero-meta svg { width: 1.05em; height: 1.05em; color: var(--saffron); }
  .hero-status { padding: 0.4rem 0.95rem 0.4rem 0.8rem; border-radius: 999px; background: oklch(1 0 0 / 0.1); border: 1px solid oklch(1 0 0 / 0.14); }
  .crumbs ol { list-style: none; padding: 0; display: flex; gap: 0.5rem; font-size: 0.9rem; color: var(--on-deep-muted); }
  .crumbs li + li::before { content: "/"; margin-right: 0.5rem; opacity: 0.6; }
  .crumbs a { text-decoration: none; }
  .crumbs a:hover { text-decoration: underline; }

  .hero[data-tone] { background:
      radial-gradient(56rem 34rem at 90% -10%, oklch(0.52 0.14 var(--h) / 0.6), transparent 62%),
      radial-gradient(40rem 28rem at -5% 110%, oklch(0.5 0.1 200 / 0.4), transparent 62%),
      var(--deep); }
  .hero-glyph { display: none; position: relative; justify-self: end; width: min(100%, 24rem); aspect-ratio: 1; place-items: center; color: var(--saffron); }
  @media (min-width: 62rem) { .hero-glyph { display: grid; } }
  .hero-glyph::before, .hero-glyph::after { content: ""; position: absolute; border-radius: 50%; border: 1.5px solid oklch(1 0 0 / 0.14); }
  .hero-glyph::before { inset: 0; }
  .hero-glyph::after { inset: 12%; border-style: dashed; }
  .hero-glyph .glyph-core { width: 52%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, var(--tone-solid) 55%, var(--deep)); border: 1px solid color-mix(in oklab, var(--tone-solid) 70%, transparent); box-shadow: 0 0 60px -10px var(--tone-solid); }
  .hero-glyph svg { width: 42%; height: 42%; color: var(--on-deep); }
  .hero-glyph .orbit { position: absolute; inset: 0; }
  .hero-glyph .orbit i { position: absolute; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--saffron); top: 6%; left: 50%; box-shadow: 0 0 24px 4px oklch(0.83 0.16 80 / 0.55); }



  /* hero: "What brings you here?" panel */
  .hero-paths { display: grid; gap: 1rem; width: min(100%, 29rem); justify-self: center; }
  @media (min-width: 62rem) { .hero-paths { justify-self: end; } }
  .paths-title { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.17em; text-transform: uppercase; font-weight: 650; color: var(--saffron); }
  .hero-paths ul { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
  .hero-paths a { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.15rem; border-radius: var(--r); background: oklch(1 0 0 / 0.07); border: 1px solid oklch(1 0 0 / 0.14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--on-deep); text-decoration: none; transition: background 0.25s, border-color 0.25s, transform 0.3s var(--ease); }
  .hero-paths a:hover { background: oklch(1 0 0 / 0.13); border-color: var(--tone-solid); transform: translateX(-4px); }
  .path-icon { width: 2.9rem; height: 2.9rem; flex: none; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, var(--tone-solid) 45%, var(--deep)); }
  .path-icon svg { width: 1.35rem; height: 1.35rem; }
  .path-text { display: grid; flex: 1; line-height: 1.25; }
  .path-text strong { font-family: var(--font-display); font-weight: 450; font-size: var(--step-1); letter-spacing: -0.01em; }
  .path-text small { color: var(--on-deep-muted); font-size: 0.9rem; }
  .path-arrow { width: 1.2rem; height: 1.2rem; flex: none; color: var(--saffron); transition: translate 0.25s var(--ease); }
  .hero-paths a:hover .path-arrow { translate: 0.3rem 0; }

  /* ---- stats card overlapping hero ---- */
  .stats-wrap { position: relative; z-index: 2; margin-top: calc(-1 * clamp(3rem, 6vw, 4.75rem)); }
  .stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-2); }
  @media (min-width: 48rem) { .stats { grid-template-columns: repeat(4, 1fr); } }
  .stat { background: var(--surface); padding: clamp(1.1rem, 2.5vw, 1.8rem); display: grid; gap: 0.2rem; }
  .stat-num { font-family: var(--font-display); font-size: var(--step-3); line-height: 1; font-weight: 380; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
  .stat-num small { font-size: 0.5em; font-weight: 450; margin-left: 0.1em; color: var(--accent); }
  .stat-label { color: var(--muted); font-size: 0.93rem; line-height: 1.35; }

  /* ---- bento service tiles ---- */
  .bento { display: grid; gap: 1rem; }
  @media (min-width: 40rem) { .bento { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 66rem) {
    .bento { grid-template-columns: repeat(6, 1fr); }
    .tile:nth-child(1) { grid-column: span 3; }
    .tile:nth-child(2) { grid-column: span 3; }
    .tile:nth-child(3) { grid-column: span 2; }
    .tile:nth-child(4) { grid-column: span 4; }
  }
  @media (min-width: 66rem) { .bento--three { grid-template-columns: repeat(3, 1fr); } .bento--three .tile:nth-child(n) { grid-column: auto; } }
  .tile { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 1.25rem; min-height: 19rem; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--r); background: var(--tone-bg); border: 1px solid color-mix(in oklab, var(--tone-solid) 28%, transparent); color: var(--ink); text-decoration: none; transition: transform 0.35s var(--ease), box-shadow 0.35s; }
  .tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
  .tile::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.3s; background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, 0%), color-mix(in oklab, var(--tone-solid) 38%, transparent), transparent 70%); }
  .tile:hover::before { opacity: 1; }
  .tile-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
  .tile-step { font-size: 0.78rem; letter-spacing: 0.17em; text-transform: uppercase; font-weight: 650; color: var(--tone-fg); }
  .tile-icon { width: 3rem; height: 3rem; border-radius: 50%; display: grid; place-items: center; background: var(--tone-bg-2); color: var(--tone-fg); }
  .tile-icon svg { width: 1.45rem; height: 1.45rem; }
  .tile h3 { font-size: var(--step-2); font-weight: 400; margin-top: auto; }
  .tile p { color: var(--muted); max-width: 32rem; }
  .tile-link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 650; color: var(--tone-fg); }
  .tile-link svg { width: 1.1em; height: 1.1em; transition: translate 0.25s var(--ease); }
  .tile:hover .tile-link svg { translate: 0.35rem 0; }

  /* ---- generic cards ---- */
  .card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(1.25rem, 2.5vw, 1.9rem); box-shadow: var(--shadow-1); display: grid; gap: 0.75rem; align-content: start; }
  .card h3 { font-size: var(--step-1); }
  .card p { color: var(--muted); }
  .card-icon { width: 2.9rem; height: 2.9rem; border-radius: 0.9rem; display: grid; place-items: center; background: var(--tone-bg); color: var(--tone-fg); }
  .card-icon svg { width: 1.4rem; height: 1.4rem; }
  .card[data-spot]::before, .principle[data-spot]::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; pointer-events: none; transition: opacity 0.3s; background: radial-gradient(18rem circle at var(--mx, 50%) var(--my, 0%), color-mix(in oklab, var(--tone-solid) 22%, transparent), transparent 70%); }
  .card[data-spot]:hover::before, .principle[data-spot]:hover::before { opacity: 1; }

  .principles { display: grid; gap: 1rem; }
  .principle { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.25rem; padding: clamp(1.25rem, 2.5vw, 1.9rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-1); }
  .principle-num { grid-row: span 2; font-family: var(--font-display); font-size: var(--step-3); line-height: 1; color: var(--tone-fg); font-weight: 350; min-width: 2.2ch; }
  .principle p { color: var(--muted); }

  /* ---- finder ---- */
  .finder { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
  @media (min-width: 62rem) { .finder { grid-template-columns: 1fr 1fr; align-items: start; } }
  .finder-form { display: grid; gap: 1.75rem; }
  .q { border: 0; padding: 0; min-width: 0; display: grid; gap: 0.8rem; }
  .q legend { font-family: var(--font-display); font-size: var(--step-1); padding: 0; margin-bottom: 0.8rem; }
  .q legend span { color: var(--saffron); font-style: italic; margin-right: 0.4rem; }
  .opts { display: flex; flex-wrap: wrap; gap: 0.55rem; }
  .opt { position: relative; }
  .opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
  .opt span { display: inline-block; padding: 0.6rem 1.05rem; border-radius: 999px; border: 1.5px solid oklch(1 0 0 / 0.28); transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease); line-height: 1.25; }
  .opt:hover span { border-color: var(--saffron); }
  .opt input:checked + span { background: var(--saffron); color: var(--on-saffron); border-color: var(--saffron); font-weight: 650; }
  .opt input:focus-visible + span { outline: 3px solid var(--saffron); outline-offset: 3px; }
  .result { border-radius: var(--r); background: oklch(1 0 0 / 0.06); border: 1px solid oklch(1 0 0 / 0.14); padding: clamp(1.25rem, 3vw, 2rem); display: grid; gap: 1.1rem; min-height: 20rem; align-content: start; }
  .result-empty { color: var(--on-deep-muted); display: grid; gap: 0.75rem; justify-items: start; align-content: center; min-height: 16rem; }
  .result-empty svg { width: 2.2rem; height: 2.2rem; color: var(--saffron); }
  .result-label { font-size: 0.78rem; letter-spacing: 0.17em; text-transform: uppercase; color: var(--saffron); font-weight: 650; }
  .result h3 { font-size: var(--step-2); font-weight: 400; }
  .result h3 a { text-decoration: none; }
  .result .also a { color: var(--saffron); }
  .script { margin: 0; padding: 1rem 1.15rem; border-left: 3px solid var(--saffron); background: oklch(0 0 0 / 0.2); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-family: var(--font-display); font-style: italic; font-size: 1.1rem; line-height: 1.45; }
  .result-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

  /* ---- bio ---- */
  .bio { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
  @media (min-width: 52rem) { .bio { grid-template-columns: minmax(16rem, 22rem) 1fr; } }
  .portrait { position: relative; aspect-ratio: 5 / 6; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 6rem; overflow: hidden; background: var(--tone-bg); box-shadow: 1rem 1rem 0 var(--tone-bg-2); }
  .portrait img { width: 100%; height: 100%; object-fit: cover; }
  .bio-name { font-size: var(--step-3); }
  .bio-title { color: var(--muted); font-weight: 600; margin-top: 0.35rem; }
  .bio .chips { margin-top: 1.25rem; }
  .pull { position: relative; margin-top: 1.5rem; padding: 1.1rem 1.25rem 1.1rem 3.4rem; border-radius: var(--r); background: var(--paper-2); font-family: var(--font-display); font-size: var(--step-1); line-height: 1.35; }
  .pull svg { position: absolute; left: 1rem; top: 1.1rem; width: 1.6rem; height: 1.6rem; color: var(--accent); opacity: 0.8; }

  /* ---- testimonials ---- */
  .quotes { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1rem; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: thin; }
  .quote-card { flex: 0 0 min(88%, 28rem); scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.75rem; display: grid; gap: 1rem; align-content: space-between; box-shadow: var(--shadow-1); }
  .quote-card blockquote { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.35; margin: 0; }
  .quote-card figcaption { color: var(--muted); font-size: 0.95rem; }
  .quote-card svg { width: 2rem; height: 2rem; color: var(--accent); opacity: 0.7; }

  /* ---- visit ---- */
  .visit { display: grid; gap: 1.5rem; }
  @media (min-width: 56rem) { .visit { grid-template-columns: 1fr 1fr; } }
  .visit-card { display: grid; gap: 1rem; align-content: start; }
  .visit-card address { font-size: var(--step-1); line-height: 1.4; font-family: var(--font-display); }
  .hours { font-size: 1rem; }
  .hours th, .hours td { padding: 0.7rem 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
  .hours td { text-align: right; font-variant-numeric: tabular-nums; }
  .hours tr.is-today th, .hours tr.is-today td { font-weight: 650; color: var(--accent); }
  .hours tr.is-today th::after { content: " (today)"; font-weight: 400; color: var(--muted); }

  /* ---- tabs ---- */
  .tabs-list { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.25rem 0.25rem 0.5rem; margin: 0 -0.25rem 1.25rem; scrollbar-width: none; scroll-snap-type: x proximity; }
  .tab { flex: none; scroll-snap-align: start; padding: 0.65rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; transition: background 0.2s, color 0.2s, border-color 0.2s; }
  .tab:hover { border-color: var(--ink); }
  .tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .tabpanel { display: grid; gap: 1.25rem; animation: fade 0.4s var(--ease); }
  .tabpanel[hidden] { display: none; }
  .js [data-tabs]:not([data-ready]) .tabpanel + .tabpanel { display: none; }
  .tabpanel h3 { font-size: var(--step-2); }
  .no-js-heading { display: block; }
  .js .no-js-heading { display: none; }

  /* ---- steps ---- */
  .steps { --line-x: 1.65rem; list-style: none; padding: 0; counter-reset: step; display: grid; gap: clamp(1.5rem, 3vw, 2.25rem); position: relative; }
  .steps::before, .steps::after { content: ""; position: absolute; left: var(--line-x); top: 1.65rem; bottom: 1.65rem; width: 2px; translate: -50% 0; background: var(--line); }
  .steps::before, .steps::after { z-index: 0; }
  .steps::after { background: var(--accent); transform-origin: top; scale: 1 0; }
  .steps li { z-index: 1; counter-increment: step; display: grid; grid-template-columns: 3.3rem 1fr; gap: 1.25rem; align-items: start; position: relative; }
  .steps li::before { content: counter(step); width: 3.3rem; height: 3.3rem; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--line); font-family: var(--font-display); font-size: 1.35rem; color: var(--accent); position: relative; z-index: 1; }
  .section--tint .steps li::before { background: var(--paper-2); }
  .steps h3 { margin-bottom: 0.3rem; padding-top: 0.55rem; }
  .steps p { color: var(--muted); max-width: 42rem; }
  @supports not (animation-timeline: view()) { .steps::after { scale: 1 1; opacity: 0.35; } }

  /* ---- lists ---- */
  .checks { list-style: none; padding: 0; display: grid; gap: 0.7rem; }
  .checks li { position: relative; padding-left: 2rem; }
  .checks li::before { content: ""; position: absolute; left: 0.35rem; top: 0.38em; width: 0.5rem; height: 0.9rem; border: solid var(--accent); border-width: 0 2.5px 2.5px 0; rotate: 40deg; }

  /* ---- aside ---- */
  .aside { background: var(--tone-bg); border: 1px solid color-mix(in oklab, var(--tone-solid) 25%, transparent); border-radius: var(--r); padding: clamp(1.4rem, 3vw, 2rem); display: grid; gap: 0.75rem; align-content: start; }
  .aside h3 { font-size: var(--step-1); }
  .aside p { color: var(--muted); }

  /* ---- check rows (checklist + signs) ---- */
  .check { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: start; padding: 0.7rem 0.85rem; border-radius: var(--r-sm); cursor: pointer; transition: background 0.2s; }
  .check:hover { background: color-mix(in oklab, var(--ink) 5%, transparent); }
  .check input { position: absolute; opacity: 0; width: 1.4rem; height: 1.4rem; margin: 0; cursor: pointer; }
  .check .box { width: 1.4rem; height: 1.4rem; margin-top: 0.15rem; border-radius: 0.45rem; border: 2px solid var(--muted); display: grid; place-items: center; transition: background 0.2s, border-color 0.2s, scale 0.2s var(--ease); }
  .check .box svg { width: 0.95rem; height: 0.95rem; color: var(--on-saffron); scale: 0; transition: scale 0.2s var(--ease); }
  .check input:checked ~ .box { background: var(--saffron); border-color: var(--saffron); }
  .check input:checked ~ .box svg { scale: 1; }
  .check input:focus-visible ~ .box { outline: 3px solid var(--focus); outline-offset: 3px; }
  .check input:checked ~ .check-text { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in oklab, currentColor 45%, transparent); }
  .signs .check input:checked ~ .check-text { text-decoration: none; color: var(--ink); font-weight: 550; }

  .progress-head { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
  .ring { width: 5rem; height: 5rem; flex: none; position: relative; }
  .ring svg { width: 100%; height: 100%; rotate: -90deg; }
  .ring circle { fill: none; stroke-width: 7; }
  .ring .trk { stroke: var(--line); }
  .ring .bar { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset 0.6s var(--ease); }
  .ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.25rem; font-weight: 450; font-variant-numeric: tabular-nums; }
  .cl-groups { display: grid; gap: 1rem; }
  @media (min-width: 56rem) { .cl-groups { grid-template-columns: repeat(2, 1fr); } }
  .cl-group { border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem 0.75rem 0.75rem; background: var(--surface); min-width: 0; }
  .cl-group legend { font-family: var(--font-display); font-size: var(--step-1); padding: 0 0.6rem; float: left; width: 100%; margin-bottom: 0.4rem; }
  .cl-group legend small { font-family: var(--font-body); font-size: 0.82rem; color: var(--muted); margin-left: 0.5rem; letter-spacing: 0.04em; }
  .cl-group .check { clear: both; }
  .btn-text { background: none; border: 0; padding: 0.3rem 0; color: var(--muted); text-decoration: underline; text-underline-offset: 0.2em; font-size: 0.95rem; }
  .btn-text:hover { color: var(--ink); }

  .signs-result { margin-top: 1.5rem; padding: 1.25rem 1.5rem; border-radius: var(--r); background: var(--tone-bg); border: 1px solid color-mix(in oklab, var(--tone-solid) 30%, transparent); display: grid; gap: 0.75rem; }
  .signs-result strong { font-family: var(--font-display); font-size: var(--step-1); font-weight: 450; }
  .fine { font-size: 0.9rem; color: var(--muted); }

  /* ---- planner ---- */
  .planner { display: grid; gap: 1.5rem; }
  .field { display: grid; gap: 0.4rem; max-width: 22rem; }
  .field label { font-weight: 650; }
  .field input { padding: 0.85rem 1rem; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--surface); min-height: 3rem; }
  .field input:focus-visible { outline-offset: 2px; }
  .plan-out { display: grid; gap: 1.25rem; }
  .plan-bar { display: flex; height: 3.2rem; border-radius: 999px; overflow: hidden; gap: 3px; background: var(--paper); }
  .plan-bar > span { display: grid; place-items: center; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; color: oklch(0.2 0.04 70); min-width: 0; padding-inline: 0.5rem; white-space: nowrap; overflow: hidden; background: oklch(0.82 0.1 var(--ph)); animation: grow 0.7s var(--ease) both; }
  .plan-list { list-style: none; padding: 0; display: grid; gap: 0.6rem; counter-reset: p; }
  .plan-list li { display: grid; grid-template-columns: 1fr; gap: 0.35rem; padding: 0.9rem 1rem; background: var(--paper); border-radius: var(--r-sm); border-left: 5px solid oklch(0.78 0.12 var(--ph)); }
  .plan-list .when { font-weight: 650; font-variant-numeric: tabular-nums; display: flex; align-items: flex-start; gap: 0.6rem; }
  .plan-list .pn { flex: none; width: 1.55rem; height: 1.55rem; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; background: oklch(0.82 0.1 var(--ph)); color: oklch(0.2 0.04 70); }
  .plan-list small { font-weight: 400; color: var(--muted); margin-left: 0.35rem; }
  .plan-bar > span { font-size: 0.95rem; letter-spacing: 0; text-transform: none; }
  .plan-list p { color: var(--muted); font-size: 0.97rem; }
  .plan-list strong { display: block; }
  .plan-note { padding: 1rem 1.25rem; border-radius: var(--r-sm); background: var(--ph-bg); color: var(--ph-ink); }
  @media (max-width: 34rem) { .plan-list li { grid-template-columns: 1fr; gap: 0.15rem; } }

  /* ---- FAQ ---- */
  .faq { display: grid; gap: 0.75rem; max-width: 52rem; }
  .faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color 0.2s, box-shadow 0.2s; }
  .faq-item[open] { border-color: color-mix(in oklab, var(--accent) 55%, var(--line)); box-shadow: var(--shadow-1); }
  .faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 1.4rem; font-family: var(--font-display); font-size: var(--step-1); line-height: 1.25; }
  .faq-item summary::-webkit-details-marker { display: none; }
  .faq-icon { width: 1.5rem; height: 1.5rem; flex: none; color: var(--accent); transition: rotate 0.3s var(--ease); }
  .faq-item[open] .faq-icon { rotate: 135deg; }
  .faq-a { padding: 0 1.4rem 1.3rem; color: var(--muted); max-width: 44rem; }
  .faq-a a { color: var(--accent); }
  @supports (interpolate-size: allow-keywords) {
    :root { interpolate-size: allow-keywords; }
    .faq-item::details-content { block-size: 0; overflow: clip; transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete; }
    .faq-item[open]::details-content { block-size: auto; }
  }

  /* ---- call section ---- */
  .call { background:
      radial-gradient(50rem 28rem at 15% 0%, oklch(0.55 0.12 196 / 0.4), transparent 62%),
      radial-gradient(40rem 26rem at 100% 100%, oklch(0.55 0.14 62 / 0.3), transparent 60%),
      var(--deep);
    color: var(--on-deep); text-align: center; overflow: clip; --focus: var(--saffron); --muted: var(--on-deep-muted); }
  .call-inner { display: grid; gap: 1.25rem; justify-items: center; }
  .call-title { font-size: var(--step-4); max-width: 16ch; }
  .call-title em { color: var(--saffron); }
  .call-lede { color: var(--on-deep-muted); font-size: var(--step-1); max-width: 34rem; }
  .call-number { font-family: var(--font-display); font-size: clamp(2.6rem, 0.6rem + 10.5vw, 8.5rem); line-height: 1; letter-spacing: -0.035em; color: var(--saffron); text-decoration: none; font-weight: 340; padding: 0.1em 0.15em; background: linear-gradient(currentColor, currentColor) 0 100% / 0% 3px no-repeat; transition: background-size 0.5s var(--ease); font-variant-numeric: lining-nums; }
  .call-number:hover { background-size: 100% 3px; }
  .call-meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.75rem 1.5rem; color: var(--on-deep-muted); font-size: 0.97rem; }
  .call-addr { display: inline-flex; align-items: center; gap: 0.45rem; }
  .call-addr svg { width: 1.05em; height: 1.05em; color: var(--saffron); }
  .call .chip { border-color: oklch(1 0 0 / 0.25); color: var(--on-deep); }

  /* ---- sticky mobile call bar ---- */
  .callbar { display: none; position: fixed; inset-inline: 0; bottom: 0; z-index: 40; flex-direction: column; align-items: center; gap: 0.3rem; padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom)); background: color-mix(in oklab, var(--deep) 93%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: var(--on-deep); border-top: 1px solid oklch(1 0 0 / 0.12); translate: 0 110%; transition: translate 0.4s var(--ease); view-transition-name: callbar; }
  .js .callbar { display: flex; }
  .callbar.is-visible { translate: 0 0; }
  .callbar .btn { width: 100%; max-width: 26rem; }
  .callbar .status { font-size: 0.82rem; color: var(--on-deep-muted); }
  @media (min-width: 62rem) { .callbar, .js .callbar { display: none; } }

  /* ---- footer ---- */
  .site-footer { background: var(--deep-2); color: var(--on-deep); padding-block: clamp(3rem, 7vw, 5.5rem) 2rem; overflow: clip; --focus: var(--saffron); --muted: var(--on-deep-muted); }
  .footer-wordmark { font-family: var(--font-display); font-size: clamp(3.2rem, 0.5rem + 13vw, 10.5rem); line-height: 0.88; letter-spacing: -0.04em; font-weight: 340; color: transparent; -webkit-text-stroke: 1.3px oklch(1 0 0 / 0.22); margin-bottom: clamp(2rem, 5vw, 4rem); user-select: none; }
  .footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); }
  @media (min-width: 62rem) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; } }
  .footer-col { display: grid; gap: 0.75rem; align-content: start; font-size: 0.97rem; color: var(--on-deep-muted); }
  .footer-h { font-family: var(--font-body); font-size: 0.74rem; font-weight: 650; letter-spacing: 0.18em; text-transform: uppercase; color: var(--saffron); }
  .footer-col a { text-decoration: none; color: var(--on-deep); }
  .footer-col a:hover { text-decoration: underline; }
  .footer-links { list-style: none; padding: 0; display: grid; gap: 0.35rem; }
  .footer-link-icon { display: inline-flex; align-items: center; gap: 0.5rem; }
  .footer-link-icon svg { width: 1.05em; height: 1.05em; color: var(--saffron); }
  .footer-legal { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid oklch(1 0 0 / 0.12); font-size: 0.88rem; color: var(--on-deep-muted); }
  @media (max-width: 61.99rem) { .site-footer { padding-bottom: 6.5rem; } }

  /* ---- toast ---- */
  .toast { position: fixed; left: 50%; bottom: 5.5rem; translate: -50% 1rem; background: var(--ink); color: var(--paper); padding: 0.65rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; opacity: 0; pointer-events: none; transition: opacity 0.25s, translate 0.25s var(--ease); z-index: 90; }
  .toast.is-on { opacity: 1; translate: -50% 0; }

  /* ---- scroll progress ---- */
  .scroll-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; background: var(--saffron); transform-origin: 0 50%; scale: 0 1; pointer-events: none; }

  /* ---- 404 ---- */
  .nf-code { font-family: var(--font-display); font-size: clamp(6rem, 3rem + 20vw, 16rem); line-height: 0.85; color: var(--saffron); font-weight: 300; letter-spacing: -0.05em; }
}

/* ------------------------------------------------------------------ pages */
@layer pages {
  .page-index .hero { padding-bottom: clamp(6.5rem, 12vw, 10rem); }
  .journey { display: grid; gap: 0.5rem; }
}

/* ----------------------------------------------------------------- motion */
@layer motion {
  @keyframes pulse { 70% { box-shadow: 0 0 0 0.55rem oklch(0.78 0.2 150 / 0); } 100% { box-shadow: 0 0 0 0 oklch(0.78 0.2 150 / 0); } }
  @keyframes rise { from { translate: 0 1rem; } }
  @keyframes fade { from { opacity: 0; translate: 0 0.5rem; } }
  @keyframes grow { from { scale: 0 1; opacity: 0; } }
  @keyframes spin { to { rotate: 1turn; } }
  /* Slide only, no opacity change: text stays at full contrast at every moment of the animation. */
  @keyframes reveal { from { translate: 0 2.5rem; } to { translate: 0 0; } }
  @keyframes progress { to { scale: 1 1; } }
  @keyframes line-grow { to { scale: 1 1; } }
  @keyframes float { 50% { translate: 0 -0.6rem; } }

  @view-transition { navigation: auto; }

  @media (prefers-reduced-motion: no-preference) {
    ::view-transition-old(root) { animation: 0.25s var(--ease) both vt-out; }
    ::view-transition-new(root) { animation: 0.4s var(--ease) both vt-in; }
    @keyframes vt-out { to { opacity: 0; translate: 0 -0.6rem; } }
    @keyframes vt-in { from { opacity: 0; translate: 0 0.8rem; } }

    .hero-paths li { animation: rise 0.6s var(--ease) both; animation-delay: calc(0.15s + var(--i, 0) * 0.09s); }
    .hero-glyph .orbit { animation: spin 18s linear infinite; }
    .hero-glyph .glyph-core { animation: float 6s ease-in-out infinite; }

    @supports (animation-timeline: view()) {
      .reveal, .reveal-stagger > * { animation: reveal linear both; animation-timeline: view(); animation-range: entry 4% entry 38%; }
      .steps::after { animation: line-grow linear both; animation-timeline: view(); animation-range: entry 30% cover 62%; }
    }
    @supports (animation-timeline: scroll()) {
      .scroll-progress { animation: progress linear both; animation-timeline: scroll(root block); }
    }
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    @view-transition { navigation: none; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  }
}

/* ------------------------------------------------------------------ print */
@layer print {
  @media print {
    .site-header, .callbar, .scroll-progress, .hero-art, .hero-glyph, .finder, .toast, .skip-link, .footer-wordmark, [data-needs-js] { display: none !important; }
    body { background: #fff; color: #000; font-size: 11pt; }
    .hero, .call, .site-footer, .section--deep { background: #fff !important; color: #000 !important; }
    .call-number { color: #000; font-size: 28pt; }
    a { text-decoration: none; }
    .section { padding-block: 1.2rem; }
    .reveal, .reveal-stagger > * { animation: none !important; opacity: 1 !important; translate: none !important; }
  }
}

/* ------------------------------------------------------- forced colors */
@media (forced-colors: active) {
  .btn-call, .tab[aria-selected="true"], .opt input:checked + span { border: 2px solid ButtonText; }
  .status::before { background: CanvasText; }
  .check .box { border-color: CanvasText; }
}
