/* ============================================================================
   ANAM CARA CENTRE — theme.css
   The single design-token + component system for the whole site.
   Every page loads exactly this file plus ocean.js + site.js.

   Base aesthetic: "Night Sea" — a deep oceanic dark. The site lives
   underwater-at-night. Calm, premium, editorial, contemplative.

   HOW TO USE (for page executors):
     1. In <head>:  <link rel="stylesheet" href="assets/css/theme.css">
     2. Wrap page content in <main> ... </main>.
     3. Use <section class="section"> ... </section> for each band.
     4. Constrain width with <div class="wrap"> inside sections.
     5. Reach for the documented components below by class name.
        Every component block is commented with its purpose + markup.

   NAMING: all custom properties are --kebab-case. Colours are grouped:
   surfaces (--sea-*), text (--ink-*), brand (--violet/--lavender/--rose),
   SWIM frames (--som/--wis/--int/--met), plus derived tints.
   ============================================================================ */

/* Higuen (display serif) is self-hosted from the official brand pack.
   EB Garamond (the quiet body serif) loads from Google Fonts; Georgia is the
   offline fallback so the site stays fully legible with no network. */
@font-face {
  font-family: 'Higuen';
  src: url('../fonts/Higuen-Regular.woff2') format('woff2'),
       url('../fonts/Higuen-Regular.woff') format('woff');
  font-weight: normal; font-style: normal; font-display: swap;
}
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500;1,600&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

/* ----------------------------------------------------------------------------
   1. DESIGN TOKENS  — official Anam Cara brand pack (v1)
   Two voices only: Higuen carries the soul, a quiet serif carries the words.
   Palette is dusk over water, botanical depth, one warm point of light.
   Legacy token names (--sea-*, --ink*, --violet, --lavender, --rose) are kept
   as ALIASES onto the brand tokens so existing pages/classes never break.
---------------------------------------------------------------------------- */
:root {
  /* ===== BRAND CORE (canonical names) ===== */
  --night-sea:   #10182E;  /* primary background */
  --abyss:       #1C2544;  /* elevated surfaces, cards, deep water */
  --dusk-indigo: #2B3563;  /* mid water, section tint, skies-at-top */
  --deep-abyss:  #0B1122;  /* deepest base, bottom of the depth gradient */

  --rockpool:    #2E7D6E;  /* brand teal, logo gradient start */
  --lagoon:      #45A18D;  /* bright teal, active states, links */
  --eucalypt:    #7FA05B;  /* botanical green, logo foliage */
  --deep-leaf:   #1E4A3E;  /* dark green grounds */

  --violet-dusk: #7A4A9E;  /* brand purple, logo gradient end */
  --deep-violet: #4A2E6F;  /* depth layers beneath violet */
  --orchid:      #C05A9E;  /* magenta warmth, flowers */
  --dawn-pink:   #E08BB8;  /* the single point of light */

  --wattle:      #E3BE5F;  /* gold, rare accent only */
  --cream:       #F4EEE3;  /* text on dark */
  --mist:        #B9C0D4;  /* secondary text, captions */

  /* ===== LEGACY ALIASES (keep pages working; now brand-valued) ===== */
  --sea-abyss:   var(--deep-abyss);
  --sea-night:   var(--night-sea);
  --sea-deep:    #161F3C;
  --sea-mid:     var(--abyss);
  --sea-dusk:    var(--dusk-indigo);

  --ink:         var(--cream);
  --ink-soft:    #E4E9F4;   /* readable primary body on dark (brightened for contrast over the mote field) */
  --ink-mute:    #C4CBDE;   /* brightened secondary text */
  --ink-faint:   #5A6480;

  --violet:      var(--violet-dusk);
  --lavender:    var(--lagoon);   /* the "active light" accent, now teal */
  --rose:        var(--orchid);
  --rose-soft:   var(--dawn-pink);

  /* --- SWIM frame colours (SWIM framework contexts only) --- */
  --som:          #f2b73c;  /* Somatic — gold */
  --wis:          #7d8cf8;  /* Wisdom — periwinkle */
  --int:          #3ecf8e;  /* Interdependence — green */
  --met:          #ff5fc1;  /* Metacognition — magenta */
  --som-glow:     rgba(242,183,60,0.30);
  --wis-glow:     rgba(125,140,248,0.30);
  --int-glow:     rgba(62,207,142,0.30);
  --met-glow:     rgba(255,95,193,0.30);

  /* --- Semantic accents --- */
  --gold:         var(--wattle);
  --link:         var(--lagoon);
  --link-hover:   #6ecdb6;

  /* --- Gradients (from the brand pack) --- */
  --grad-logo:  linear-gradient(105deg, var(--rockpool) 0%, var(--violet-dusk) 100%);
  --grad-depth: linear-gradient(180deg, var(--dusk-indigo) 0%, var(--night-sea) 60%, var(--deep-abyss) 100%);
  --grad-dawn:  linear-gradient(120deg, var(--violet-dusk) 0%, var(--orchid) 55%, var(--dawn-pink) 100%);
  --grad-swim:  linear-gradient(100deg, var(--som), var(--wis) 34%, var(--int) 66%, var(--met));
  /* headline sheen — luminous teal→violet→orchid wash (mirrors the logo) */
  --grad-pearl: linear-gradient(104deg, #f4eee3 0%, #8fd0c0 26%, #b79ad8 54%, #e0a5c8 80%, #f4eee3 100%);

  /* --- Typography ---
     Two serif voices, used with discipline:
       --font-display : Higuen — ONLY the largest moments (h1, .display, hero titles).
       --font-heading : Cormorant Garamond — the readable heading voice for
                        h2 / h3 / h4, section-heads, quotes and interactive labels.
       --font-body    : EB Garamond — running text, buttons, nav, eyebrows. */
  --font-display: 'Higuen', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-heading: 'Cormorant Garamond', 'EB Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'EB Garamond', Georgia, 'Times New Roman', serif;

  /* Fluid type scale (clamp: min, preferred, max) */
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1.06rem, 1rem + 0.28vw, 1.22rem);     /* body (EB Garamond runs small) */
  --step-1:  clamp(1.2rem, 1.12rem + 0.4vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.35rem + 0.75vw, 2.1rem);
  --step-3:  clamp(1.95rem, 1.7rem + 1.25vw, 3rem);
  --step-4:  clamp(2.4rem, 1.9rem + 2.5vw, 4rem);
  --step-5:  clamp(3rem, 2.2rem + 4vw, 5.6rem);          /* hero display */

  /* --- Spacing scale --- */
  --space-2xs: 0.35rem;
  --space-xs:  0.65rem;
  --space-sm:  1rem;
  --space-md:  1.6rem;
  --space-lg:  2.6rem;
  --space-xl:  4rem;
  --space-2xl: 6.5rem;
  --space-3xl: 9rem;

  /* --- Structure --- */
  --wrap-max: 74rem;      /* standard content column */
  --wrap-wide: 88rem;     /* wide bands */
  --wrap-narrow: 44rem;   /* prose / reading measure */
  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --border-hair: 1px solid rgba(185,192,212,0.14);
  --border-soft: 1px solid rgba(185,192,212,0.22);

  /* --- Shadow / lift (violet-tinted deep water) --- */
  --shadow:    0 14px 40px rgba(7,10,22,0.55);
  --shadow-lg: 0 24px 60px rgba(7,10,22,0.7);
  --glow-violet: 0 0 40px rgba(69,161,141,0.28);

  /* --- Motion --- */
  --ease-water: cubic-bezier(0.22, 0.9, 0.32, 1);
  --dur-fast:   240ms;
  --dur:        520ms;
  --dur-slow:   900ms;

  --nav-h: 4.75rem;
}

/* ----------------------------------------------------------------------------
   2. RESET + BASE
---------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.75;
  color: var(--ink-soft);
  background: var(--sea-night);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Legibility over the bioluminescent mote field: a soft dark halo behind all
   running text quiets any bright particle passing beneath the letters. */
main p, main li, main figcaption, main blockquote {
  text-shadow: 0 1px 3px rgba(11,17,34,0.9), 0 0 14px rgba(11,17,34,0.75);
}

img, picture, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-decoration: none; transition: color var(--dur-fast) var(--ease-water); }
a:hover { color: var(--link-hover); }

::selection { background: rgba(69,161,141,0.35); color: var(--ink); }

:focus-visible { outline: 2px solid var(--lavender); outline-offset: 3px; border-radius: 3px; }

/* ----------------------------------------------------------------------------
   3. TYPOGRAPHY
   .display : hero-scale serif.   .eyebrow : uppercase kicker above a heading.
   .lede    : large intro paragraph.   .pull-quote : oversized cited quote.
---------------------------------------------------------------------------- */
/* h1 carries Higuen (a largest-heading moment). h2/h3/h4 move to the readable
   Cormorant voice — Higuen is reserved for h1 / .display / hero titles only. */
h1, h2, h3, h4 {
  line-height: 1.14;
  color: var(--ink);
  letter-spacing: 0.01em;
}
h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--step-4); }
h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; letter-spacing: 0.005em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p  { max-width: 66ch; }

.display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--step-5);
  line-height: 1.02;
  letter-spacing: 0.02em;
  color: var(--ink);
}

/* Pearl sheen headline — apply to a serif heading for a soft luminous wash. */
.text-pearl {
  background: var(--grad-pearl);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---- Iridescent text sheen (site-wide, NOT on headings) ------------------
   A slow pastel wash — cream → pink → lilac → seafoam → peach — clipped to the
   text glyphs. Applied to inline emphasis (em, .shimmer), lede emphasis and
   pull-quotes. All stops are high-luminance so the text stays WCAG-readable on
   the night-sea background. Reduced-motion freezes the wash to a still gradient. */
:root {
  --grad-iris: linear-gradient(100deg,
    #f4eee3 0%, #ecc0d2 22%, #cbb6e6 44%, #a9dcc9 64%, #f1cbab 82%, #f4eee3 100%);
}
em, .shimmer, .lede em, .pull-quote {
  background: var(--grad-iris);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  font-style: italic;
}
.shimmer { font-style: normal; }
/* keep the pull-quote's cited author painted normally, not clipped */
.pull-quote cite { -webkit-text-fill-color: var(--ink-mute); color: var(--ink-mute); background: none; }
/* Motion is on by default (html.force-motion, stamped by ocean.js); the OS
   reduced-motion flag alone must not freeze the site — see motion policy. */
em, .shimmer, .lede em, .pull-quote { animation: iris-drift 14s var(--ease-water) infinite; }
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) em, html:not(.force-motion) .shimmer,
  html:not(.force-motion) .lede em, html:not(.force-motion) .pull-quote { animation: none; }
}
@keyframes iris-drift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Eyebrow / kicker — small uppercase label that sits above a heading. */
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--lavender);
  margin-bottom: var(--space-sm);
  display: inline-block;
}

/* Lede — the large paragraph that opens a section. */
.lede {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 52ch;
}

.muted { color: var(--ink-mute); }
.serif { font-family: var(--font-display); }
.italic { font-style: italic; }

/* Pull-quote — an oversized cited passage (Jung / O'Donohue etc). */
.pull-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: var(--step-2);
  line-height: 1.5;
  color: var(--ink);
  max-width: 34ch;
  margin-inline: auto;
  text-wrap: balance;
}
.pull-quote cite {
  display: block;
  margin-top: var(--space-md);
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ----------------------------------------------------------------------------
   4. LAYOUT
   .wrap : centred column.  .section : vertical rhythm band.
   Modifiers: .wrap--wide, .wrap--narrow.  .section--tight for less padding.
---------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap-max); margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 2.4rem); }
.wrap--wide   { max-width: var(--wrap-wide); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--space-2xl); position: relative; }
.section--tight { padding-block: var(--space-xl); }
.section + .section::before {
  /* faint waterline between sections */
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(90%, var(--wrap-max)); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(69,161,141,0.22), transparent);
}

/* Section header block — <div class="section-head"> eyebrow + h2 + lede </div> */
.section-head { max-width: 46rem; margin-bottom: var(--space-xl); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: var(--space-sm); }

/* Simple responsive grids */
.grid { display: grid; gap: var(--space-lg); }
/* minmax(0,1fr), NOT bare 1fr: bare 1fr lets a long word ("Interdependence")
   widen its column and squeeze the others into ragged towers. */
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid > * { min-width: 0; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Split layout: text beside media */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 820px) { .split, .split--reverse { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; } }

/* ----------------------------------------------------------------------------
   5. BUTTONS
   .btn (base) + .btn--primary (filled violet), .btn--ghost (outline),
   .btn--frame (inherits current frame colour via --frame). .btn--sm smaller.
---------------------------------------------------------------------------- */
.btn {
  --btn-c: var(--lavender);
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-body); font-weight: 500; font-size: var(--step-0);
  letter-spacing: 0.02em; line-height: 1;
  padding: 0.95rem 1.7rem; border-radius: var(--radius-pill);
  border: 1px solid var(--btn-c); color: var(--ink);
  background: transparent; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-water),
              box-shadow var(--dur) var(--ease-water),
              background var(--dur) var(--ease-water);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 0 34px -6px var(--btn-c); }
.btn:active { transform: translateY(0); }
.btn--primary {
  --btn-c: transparent;
  background: var(--grad-dawn); border-color: transparent; color: #fff;
}
.btn--primary:hover { box-shadow: 0 12px 34px -8px var(--rose); }
.btn--ghost { background: rgba(255,255,255,0.02); }
.btn--frame { --btn-c: var(--frame, var(--lavender)); }
.btn--sm { padding: 0.6rem 1.15rem; font-size: var(--step--1); }
/* Text link with animated underline — <a class="link-arrow">More →</a> */
.link-arrow {
  font-weight: 500; color: var(--lavender);
  border-bottom: 1px solid rgba(69,161,141,0.4); padding-bottom: 2px;
}
.link-arrow:hover { border-color: var(--link-hover); }

/* ----------------------------------------------------------------------------
   6. CARDS
   .card : elevated water panel. .card--media has an .card__media image top.
   .card__body holds padding. .card--link makes the whole card hover-lift.
---------------------------------------------------------------------------- */
.card {
  background: linear-gradient(180deg, rgba(28,37,68,0.62), rgba(16,24,46,0.62));
  border: var(--border-soft); border-radius: var(--radius-lg);
  overflow: hidden; position: relative;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform var(--dur) var(--ease-water),
              box-shadow var(--dur) var(--ease-water),
              border-color var(--dur) var(--ease-water);
}
.card--link:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(69,161,141,0.4); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-water); }
.card--link:hover .card__media img { transform: scale(1.05); }
.card__body { padding: clamp(1.3rem, 3vw, 2rem); }
.card__body h3 { margin-bottom: var(--space-xs); }
.card__body p { color: var(--ink-soft); }

/* ----------------------------------------------------------------------------
   7. FRAME ACCENTS  (SWIM: Somatic / Wisdom / Interdependence / Metacognition)
   Add .frame + .frame--som|wis|int|met to any element. It sets --frame to the
   frame's colour and gives a soft coloured edge + glow-on-hover. Children can
   read var(--frame) freely (headings, borders, buttons via .btn--frame).
---------------------------------------------------------------------------- */
.frame { --frame: var(--lavender); }
.frame--som { --frame: var(--som); }
.frame--wis { --frame: var(--wis); }
.frame--int { --frame: var(--int); }
.frame--met { --frame: var(--met); }

/* A frame card: coloured left edge, glowing title, hover halo in its hue. */
.frame-card {
  background: linear-gradient(180deg, rgba(22,31,60,0.7), rgba(14,20,40,0.7));
  border: 1px solid color-mix(in srgb, var(--frame) 35%, transparent);
  border-top: 3px solid var(--frame);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  position: relative;
  transition: transform var(--dur) var(--ease-water), box-shadow var(--dur) var(--ease-water);
}
.frame-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 60px -20px var(--frame); opacity: 0.5;
  transition: opacity var(--dur) var(--ease-water);
}
.frame-card:hover { transform: translateY(-4px); box-shadow: 0 18px 50px -18px color-mix(in srgb, var(--frame) 55%, transparent); }
.frame-card:hover::after { opacity: 1; }
.frame-card .frame-card__letter {
  font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1; color: var(--frame); text-shadow: 0 0 30px color-mix(in srgb, var(--frame) 50%, transparent);
}
.frame-card h3 { color: var(--ink); margin: var(--space-xs) 0; }
.frame-card .frame-card__role {
  text-transform: uppercase; letter-spacing: 0.24em; font-size: var(--step--1);
  color: var(--frame); font-weight: 500; margin-bottom: var(--space-sm);
}

/* ----------------------------------------------------------------------------
   8. TESTIMONIAL CARDS
   <figure class="testimonial"><blockquote>…</blockquote>
     <figcaption><span class="t-name">Name</span><span class="t-role">Role</span></figcaption>
   </figure>
---------------------------------------------------------------------------- */
.testimonial {
  background: linear-gradient(180deg, rgba(28,37,68,0.5), rgba(16,24,46,0.5));
  border: var(--border-soft); border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3.5vw, 2.6rem); position: relative;
}
.testimonial::before {
  content: "\201C"; font-family: var(--font-display); font-size: 5rem; line-height: 0.7;
  color: var(--lavender); opacity: 0.35; position: absolute; top: 1.1rem; left: 1.3rem;
}
.testimonial blockquote {
  font-family: var(--font-heading); font-style: italic; font-size: var(--step-1);
  line-height: 1.55; color: var(--ink); margin-bottom: var(--space-md);
  position: relative; z-index: 1;
}
.testimonial figcaption { display: flex; flex-direction: column; gap: 0.15rem; }
.testimonial .t-name { font-family: var(--font-body); font-weight: 600; color: var(--ink); letter-spacing: 0.02em; }
.testimonial .t-role { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-mute); }

/* ----------------------------------------------------------------------------
   9. TEAM CARDS
   <article class="team-card"><div class="team-card__photo"><img …></div>
     <div class="team-card__body"><h3>Name</h3><p class="team-card__role">Role</p>
     <p>Bio…</p></div></article>
---------------------------------------------------------------------------- */
.team-card {
  background: linear-gradient(180deg, rgba(28,37,68,0.55), rgba(16,24,46,0.55));
  border: var(--border-soft); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform var(--dur) var(--ease-water), box-shadow var(--dur) var(--ease-water);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-card__photo { aspect-ratio: 1 / 1; overflow: hidden; background: var(--sea-mid); }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.95); transition: transform var(--dur-slow) var(--ease-water); }
.team-card:hover .team-card__photo img { transform: scale(1.05); }
.team-card__body { padding: 1.3rem 1.4rem 1.6rem; }
.team-card__body h3 { font-size: var(--step-1); margin-bottom: 0.2rem; }
.team-card__role { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.14em; color: var(--lavender); margin-bottom: var(--space-sm); }
.team-card__body p { color: var(--ink-soft); font-size: var(--step-0); }

/* ----------------------------------------------------------------------------
   10. FORMS
   <div class="field"><label for="x">Label</label><input id="x"></div>
   Works for input, textarea, select. .field--full spans a grid row.
---------------------------------------------------------------------------- */
.form { display: grid; gap: var(--space-md); }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--step--1); font-weight: 500; letter-spacing: 0.04em; color: var(--ink-soft); }
.field label .req { color: var(--rose); }
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: var(--step-0); color: var(--ink);
  background: rgba(7,10,22,0.5); border: var(--border-soft); border-radius: var(--radius-sm);
  padding: 0.85rem 1rem; width: 100%;
  transition: border-color var(--dur-fast) var(--ease-water), box-shadow var(--dur-fast) var(--ease-water);
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--lavender); box-shadow: 0 0 0 3px rgba(69,161,141,0.18);
}
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23a084d1' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.6rem;
}
.field--check { flex-direction: row; align-items: flex-start; gap: 0.7rem; }
.field--check input { width: auto; margin-top: 0.35rem; accent-color: var(--violet); }

/* ----------------------------------------------------------------------------
   11. FAQ ACCORDION
   <div class="accordion"><details class="acc-item"><summary>Question</summary>
     <div class="acc-body"><p>Answer…</p></div></details> … </div>
   Uses native <details>; works with JS off. site.js adds smooth height later.
---------------------------------------------------------------------------- */
.accordion { display: flex; flex-direction: column; gap: 0.9rem; }
.acc-item { border: var(--border-soft); border-radius: var(--radius); background: rgba(22,31,60,0.5); overflow: hidden; }
.acc-item summary {
  list-style: none; cursor: pointer; padding: 1.2rem 1.5rem;
  font-family: var(--font-heading); font-weight: 600; font-size: var(--step-1); color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: color var(--dur-fast) var(--ease-water);
}
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary::after {
  content: ""; flex: 0 0 auto; width: 0.75rem; height: 0.75rem;
  border-right: 2px solid var(--lavender); border-bottom: 2px solid var(--lavender);
  transform: rotate(45deg); transition: transform var(--dur) var(--ease-water); margin-right: 0.3rem;
}
.acc-item[open] summary::after { transform: rotate(-135deg); }
.acc-item summary:hover { color: var(--lavender); }
.acc-body { padding: 0 1.5rem 1.4rem; color: var(--ink-soft); }
.acc-body p + p { margin-top: var(--space-sm); }

/* ----------------------------------------------------------------------------
   12. NAVIGATION  (injected by site.js into <div id="site-nav"></div>)
---------------------------------------------------------------------------- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(10,15,30,0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease-water), border-color var(--dur) var(--ease-water);
}
.site-nav.scrolled { background: rgba(8,12,24,0.86); border-bottom: var(--border-hair); }
.site-nav__inner { width: 100%; max-width: var(--wrap-wide); margin-inline: auto;
  padding-inline: clamp(1.2rem, 4vw, 2.4rem); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.site-nav__brand { display: flex; align-items: center; gap: 0.7rem; flex: 0 0 auto; }
.site-nav__mark { height: 2.9rem; width: auto; filter: drop-shadow(0 2px 8px rgba(11,17,34,0.5)); }
.site-nav__brand .brand-word {
  font-family: var(--font-display); font-size: 1.42rem; letter-spacing: 0.06em;
  color: var(--cream); line-height: 0.98; display: flex; flex-direction: column;
}
.site-nav__brand .brand-word small {
  font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.42em;
  text-transform: uppercase; color: var(--lagoon); margin-top: 0.18rem;
}
@media (max-width: 460px) { .site-nav__brand .brand-word { display: none; } }
.site-nav__links { display: flex; align-items: center; gap: clamp(0.6rem, 1.6vw, 1.5rem); list-style: none; }
.site-nav__links a {
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 500; letter-spacing: 0.03em;
  color: var(--ink-soft); padding: 0.4rem 0.2rem; position: relative; white-space: nowrap;
}
.site-nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px;
  background: var(--lavender); transition: width var(--dur) var(--ease-water);
}
.site-nav__links a:hover, .site-nav__links a[aria-current="page"] { color: var(--ink); }
.site-nav__links a:hover::after, .site-nav__links a[aria-current="page"]::after { width: 100%; }
.site-nav__links .nav-cta { color: var(--ink); }
.site-nav__toggle {
  display: none; background: none; border: none; cursor: pointer; padding: 0.5rem;
  width: 2.6rem; height: 2.6rem; position: relative; z-index: 101;
}
.site-nav__toggle span { display: block; width: 1.5rem; height: 2px; background: var(--ink); margin: 0.28rem auto;
  transition: transform var(--dur) var(--ease-water), opacity var(--dur-fast); }
.site-nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(0.36rem) rotate(45deg); }
.site-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-0.36rem) rotate(-45deg); }

@media (max-width: 940px) {
  .site-nav__toggle { display: block; }
  .site-nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: flex-start;
    gap: 0.2rem; padding: 1.4rem clamp(1.2rem, 4vw, 2.4rem) 2rem;
    background: rgba(8,12,24,0.97); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: var(--border-hair);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity var(--dur) var(--ease-water), transform var(--dur) var(--ease-water);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  .site-nav__links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav__links a { width: 100%; padding: 0.8rem 0; font-size: 1.05rem; border-bottom: var(--border-hair); }
  .site-nav__links a::after { display: none; }
}

/* Spacer so fixed nav doesn't cover page content. Added automatically by site.js. */
.nav-spacer { height: var(--nav-h); }

/* ----------------------------------------------------------------------------
   13. FOOTER  (injected by site.js into <div id="site-footer"></div>)
---------------------------------------------------------------------------- */
.site-footer { background: linear-gradient(180deg, transparent, rgba(7,10,22,0.85)); border-top: var(--border-hair);
  padding-block: var(--space-2xl) var(--space-lg); margin-top: var(--space-2xl); position: relative; z-index: 1; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-xl); margin-bottom: var(--space-xl); }
@media (max-width: 820px) { .site-footer__grid { grid-template-columns: 1fr; gap: var(--space-lg); } }
.site-footer h4 { font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.78rem;
  color: var(--ink-mute); margin-bottom: var(--space-md); font-weight: 600; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--lavender); }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.site-footer .foot-brand img { height: 3rem; margin-bottom: var(--space-sm); }
.site-footer .foot-tagline { font-family: var(--font-heading); font-style: italic; font-size: var(--step-1); color: var(--ink); max-width: 30ch; margin-bottom: var(--space-md); }
.site-footer .foot-ack { font-size: var(--step--1); color: var(--ink-mute); line-height: 1.7; max-width: 60ch; }
.site-footer .foot-ack strong { color: var(--ink-soft); font-weight: 600; }
.site-footer .foot-ack img { display: inline-block; height: 3.2rem; width: auto; margin-top: var(--space-sm); border-radius: 6px; opacity: 0.9; }
.site-footer .foot-socials { display: flex; gap: 1rem; margin-top: var(--space-sm); }
.site-footer .foot-socials a { display: inline-flex; width: 2.4rem; height: 2.4rem; align-items: center; justify-content: center;
  border: var(--border-soft); border-radius: var(--radius-pill); }
.site-footer .foot-socials a:hover { border-color: var(--lavender); }
.site-footer__legal { border-top: var(--border-hair); padding-top: var(--space-lg); display: flex; flex-wrap: wrap;
  gap: 0.6rem 1.6rem; justify-content: space-between; font-size: var(--step--1); color: var(--ink-mute); }
.site-footer__legal .legal-links { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; }

/* ----------------------------------------------------------------------------
   14. OCEAN CANVAS + CURSOR GLOW  (managed by ocean.js / site.js)
   The WebGL background canvas is fixed behind everything. Content sits above.
---------------------------------------------------------------------------- */
#ocean-canvas, .ocean-canvas {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: -2; pointer-events: none; display: block;
}
/* Static gradient fallback painted on <body> when WebGL is unavailable. */
.ocean-fallback {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -12%, #1b2547 0%, transparent 55%),
    radial-gradient(80% 55% at 82% 112%, rgba(74,46,111,0.5) 0%, transparent 60%),
    radial-gradient(60% 40% at 18% 108%, rgba(46,125,110,0.32) 0%, transparent 62%),
    var(--grad-depth);
}
/* Cursor-tracked radial glow — light from below: dawn-pink core over teal. */
.cursor-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  transition: opacity 1.2s var(--ease-water);
  background: radial-gradient(circle 34rem at var(--gx, 50%) var(--gy, 50%),
    rgba(224,139,184,0.09), rgba(69,161,141,0.06) 42%, transparent 70%);
}
.cursor-glow.on { opacity: 1; }

/* Main content wrapper sits above the ocean. */
main { position: relative; z-index: 1; }

/* ----------------------------------------------------------------------------
   15. HERO  (used by index; available to any page that wants a full hero)
   <header class="hero"> … <div class="hero__inner wrap"> … </div></header>
---------------------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-block: calc(var(--nav-h) + var(--space-xl)) var(--space-2xl); overflow: hidden; }
.hero__inner { position: relative; z-index: 2; text-align: center; margin-inline: auto; }
.hero .display { margin-bottom: var(--space-md); }
.hero__sub { font-family: var(--font-display); font-style: italic; font-size: var(--step-2);
  color: var(--ink-soft); max-width: 26ch; margin: 0 auto var(--space-lg); text-wrap: balance; }
.hero__actions { display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap; margin-top: var(--space-lg); }
.hero__note { margin-top: var(--space-lg); font-size: var(--step--1); color: var(--ink-mute); max-width: 52ch; margin-inline: auto; }

/* A soft scroll cue at the base of a hero */
.scroll-cue { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 2;
  font-size: var(--step--1); letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-mute); }
.scroll-cue::after { content: ""; display: block; width: 1px; height: 2.2rem; margin: 0.6rem auto 0;
  background: linear-gradient(var(--lavender), transparent); }
.scroll-cue::after { animation: cue-drift 2.4s var(--ease-water) infinite; }
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .scroll-cue::after { animation: none; }
}
@keyframes cue-drift { 0%,100% { opacity: 0.4; transform: scaleY(0.7); } 50% { opacity: 1; transform: scaleY(1); } }

/* ----------------------------------------------------------------------------
   16. SCROLL REVEAL
   Add class .reveal to any element; site.js adds .is-visible when it enters.
   Optional stagger: set style="--reveal-delay:120ms" on the element.
---------------------------------------------------------------------------- */
/* Hidden state only applies once site.js stamps html.js, so content stays visible with JS disabled. */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity var(--dur-slow) var(--ease-water),
  transform var(--dur-slow) var(--ease-water); transition-delay: var(--reveal-delay, 0ms); will-change: opacity, transform; }
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js:not(.force-motion) .reveal { opacity: 1; transform: none; transition: none; }
}

/* ----------------------------------------------------------------------------
   17. UTILITIES
---------------------------------------------------------------------------- */
.center { text-align: center; }
.mt-sm { margin-top: var(--space-sm); } .mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); } .mt-xl { margin-top: var(--space-xl); }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: var(--space-md); }
.stack-sm > * + * { margin-top: var(--space-sm); }
.badge { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.9rem;
  border: var(--border-soft); border-radius: var(--radius-pill); font-size: var(--step--1);
  letter-spacing: 0.08em; color: var(--ink-soft); background: rgba(69,161,141,0.08); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.divider-word { display: flex; align-items: center; gap: 1.2rem; color: var(--ink-mute);
  font-family: var(--font-heading); font-style: italic; font-size: var(--step-1); }
.divider-word::before, .divider-word::after { content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(69,161,141,0.3), transparent); }

/* ============================================================================
   18. ART DIRECTION LAYER  (Home overhaul; shared components inherit)
   Editorial hero, sacred-geometry backdrop, the EMPATHS flower, section
   rhythm, nav dropdown, and micro-interactions. Built on the brand tokens.
============================================================================ */

/* Higuen sits a touch wider and airier than a normal serif */
.display, h1, h2 { letter-spacing: 0.012em; }
.display { letter-spacing: 0.015em; }

/* ---- 18.1 Editorial hero: asymmetric type + treated oceanic photo ---- */
.hero--split { align-items: stretch; }
.hero--split .hero__inner {
  text-align: left; margin: 0;
  display: grid; grid-template-columns: 1.02fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center; width: 100%;
  max-width: var(--wrap-wide);
}
.hero__lede-col { max-width: 40rem; }
.hero--split .display { margin-bottom: var(--space-md); }
.hero--split .hero__sub { margin: 0 0 var(--space-lg); max-width: 30ch; }
.hero--split .hero__actions { justify-content: flex-start; margin-top: var(--space-lg); }
.hero__eligibility {
  margin-top: var(--space-lg); font-size: var(--step--1); color: var(--ink-mute);
  max-width: 46ch; padding-left: 1rem; border-left: 2px solid rgba(69,161,141,0.35);
}

/* the photo panel: treated to twilight so daylight sea reads oceanic-at-night */
.hero__media { position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); isolation: isolate; }
.hero__media img { width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.56) contrast(1.06) saturate(0.8); }
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(16,24,46,0.42) 0%, rgba(11,17,34,0.72) 100%),
    radial-gradient(120% 90% at 28% 8%, rgba(122,74,158,0.42), transparent 58%),
    radial-gradient(120% 85% at 88% 104%, rgba(46,125,110,0.46), transparent 62%);
}
.hero__media::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit; box-shadow: inset 0 1px 0 rgba(244,238,227,0.14), inset 0 0 90px -30px rgba(224,139,184,0.5);
}
.hero__media figcaption {
  position: absolute; left: 1.1rem; bottom: 1rem; z-index: 3;
  font-size: var(--step--1); color: var(--cream); letter-spacing: 0.02em;
  background: rgba(11,17,34,0.5); backdrop-filter: blur(6px);
  padding: 0.4rem 0.85rem; border-radius: var(--radius-pill); border: var(--border-hair);
}
@media (max-width: 900px) {
  .hero--split .hero__inner { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero__media { aspect-ratio: 16 / 11; max-height: 46vh; order: -1; }
}

/* ---- 18.2 Sacred geometry backdrop (flower of life, drifting) ---- */
.geo-section { position: relative; overflow: hidden; }
.geo-bg { position: absolute; inset: -12% -6%; z-index: 0; pointer-events: none;
  opacity: 0.3; color: var(--lagoon);
  -webkit-mask-image: radial-gradient(60% 55% at 50% 45%, #000 0%, transparent 78%);
          mask-image: radial-gradient(60% 55% at 50% 45%, #000 0%, transparent 78%); }
.geo-bg svg { width: 100%; height: 100%; }
.geo-bg svg circle { stroke: currentColor; fill: none; vector-effect: non-scaling-stroke; }
.geo-bg { animation: geo-drift 44s var(--ease-water) infinite alternate; transform-origin: 50% 45%; }
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .geo-bg { animation: none; }
}
@keyframes geo-drift {
  from { transform: rotate(-4deg) scale(1.0); opacity: 0.22; }
  to   { transform: rotate(4deg)  scale(1.08); opacity: 0.38; }
}
.geo-section > .wrap { position: relative; z-index: 1; }

/* ---- 18.3 EMPATHS interactive flower ---- */
.empaths-flower {
  /* balanced: flower still leads but no longer overwhelms; words+reveal get room */
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4rem);
  align-items: center; margin-top: var(--space-xl);
}
@media (max-width: 900px) { .empaths-flower { grid-template-columns: 1fr; gap: 2.4rem; } }

/* The flower is the dominant element of the section — let it run large. */
.flower-stage { position: relative; aspect-ratio: 1 / 1; width: min(100%, 32rem); margin-inline: auto; }
/* The EMPATHS artwork is now truly transparent (navy keyed out, no wordmark),
   so it floats on the night-sea directly — no corner-fade mask (which clipped
   the outer petals). Just a soft drop-shadow to lift it off the water. */
.flower-stage__img { width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 10px 40px rgba(11,17,34,0.6)); }
.flower-stage__img { animation: flower-breathe 9s var(--ease-water) infinite alternate; }
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .flower-stage__img { animation: none; }
}
@keyframes flower-breathe { from { transform: scale(0.99) rotate(-0.6deg);} to { transform: scale(1.01) rotate(0.6deg);} }
.flower-stage::before {
  content: ""; position: absolute; inset: 6%; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle at 50% 50%, rgba(224,139,184,0.22), rgba(69,161,141,0.12) 46%, transparent 70%);
  opacity: 0.5; transition: opacity var(--dur) var(--ease-water);
}
.empaths.is-active .flower-stage::before { opacity: 1; }
.petal { position: absolute; top: 50%; left: 50%; width: 34%; height: 34%;
  margin: -17% 0 0 -17%; border-radius: 50%; opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease-water), transform var(--dur) var(--ease-water);
  background: radial-gradient(circle, var(--petal-c, var(--lagoon)) 0%, transparent 68%);
  mix-blend-mode: screen; filter: blur(2px); }
/* Petals follow the artwork's clockwise EMPATHS order from the top:
   E scales · M eye · P lotus · A compass · T tree · H earth · S atom.
   Each tint echoes that petal's own hue so the glow reads as belonging to it. */
.petal--ethics       { transform: rotate(0deg)      translateY(-116%); --petal-c: var(--violet-dusk); }
.petal--metacognition{ transform: rotate(51.43deg)  translateY(-116%); --petal-c: var(--orchid); }
.petal--potentiality { transform: rotate(102.86deg) translateY(-116%); --petal-c: var(--dawn-pink); }
.petal--agency       { transform: rotate(154.29deg) translateY(-116%); --petal-c: var(--lagoon); }
.petal--transpersonal{ transform: rotate(205.71deg) translateY(-116%); --petal-c: var(--rockpool); }
.petal--holistic     { transform: rotate(257.14deg) translateY(-116%); --petal-c: var(--eucalypt); }
.petal--science      { transform: rotate(308.57deg) translateY(-116%); --petal-c: var(--violet-dusk); }
.empaths[data-active="ethics"]        .petal--ethics,
.empaths[data-active="metacognition"] .petal--metacognition,
.empaths[data-active="potentiality"]  .petal--potentiality,
.empaths[data-active="agency"]        .petal--agency,
.empaths[data-active="transpersonal"] .petal--transpersonal,
.empaths[data-active="holistic"]      .petal--holistic,
.empaths[data-active="science"]       .petal--science { opacity: 0.95; }

.empaths-words { list-style: none; display: flex; flex-direction: column; gap: 0.1rem; }
.empaths-word { border: 0; background: none; width: 100%; text-align: left; cursor: pointer;
  font-family: var(--font-heading); font-weight: 600; color: var(--cream);
  font-size: clamp(1.15rem, 1.9vw, 1.55rem); line-height: 1.2; letter-spacing: 0.01em;
  padding: 0.18rem 0; display: flex; align-items: baseline; gap: 0.7rem;
  transition: opacity var(--dur) var(--ease-water), transform var(--dur) var(--ease-water), color var(--dur) var(--ease-water); }
.empaths-word .empaths-word__i { font-family: var(--font-body); font-size: 0.9rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--lagoon); width: 1.4rem; flex: 0 0 auto; }
.empaths-word:hover, .empaths-word:focus-visible { color: var(--dawn-pink); outline: none; }
.empaths-word[aria-expanded="true"] { color: var(--dawn-pink); }
.empaths.is-active .empaths-word:not([aria-expanded="true"]) { opacity: 0.32; transform: scale(0.965); }
/* The reveal shows just the value name + description, beautifully typeset —
   no per-value card artwork (the tarot-style cards were removed). */
.empaths-reveal { margin-top: var(--space-lg); min-height: 8.5rem;
  display: block; max-width: 54ch;
  opacity: 0; transform: translateY(10px); transition: opacity var(--dur) var(--ease-water), transform var(--dur) var(--ease-water); }
.empaths.is-active .empaths-reveal { opacity: 1; transform: none; }
.empaths-reveal__title { font-size: var(--step-2) !important; margin-bottom: var(--space-xs) !important; }
.empaths-reveal__body p { color: var(--ink-soft); margin: 0; }
.empaths-reveal__title { font-family: var(--font-heading); font-weight: 600; color: var(--cream);
  font-size: var(--step-1); margin-bottom: 0.3rem; }
.empaths-hint { font-size: var(--step--1); color: var(--ink-mute); letter-spacing: 0.04em; margin-top: var(--space-sm);
  transition: opacity var(--dur) var(--ease-water); }
.empaths.is-active .empaths-hint { opacity: 0; }
@media (max-width: 560px) {
  .empaths-word { font-size: 1.5rem; }
}

/* ---- 18.4 Section rhythm helpers ---- */
.section--deep { background:
  radial-gradient(120% 80% at 50% 0%, rgba(43,53,99,0.5), transparent 60%); }
.eyebrow--gold { color: var(--wattle); }
.lede--wide { max-width: 60ch; }
.split--editorial { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
.split--editorial.split--reverse { grid-template-columns: 0.85fr 1.15fr; }
@media (max-width: 820px) { .split--editorial, .split--editorial.split--reverse { grid-template-columns: 1fr; } }
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-frame::after { content:""; position:absolute; inset:0; pointer-events:none; border-radius:inherit;
  box-shadow: inset 0 1px 0 rgba(244,238,227,0.12); background: linear-gradient(180deg, transparent 55%, rgba(11,17,34,0.4)); }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--wide { aspect-ratio: 3 / 2; }

/* ---- 18.5 Button micro-interaction: a slow light sweeps across on hover ---- */
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(244,238,227,0.22) 50%, transparent 70%);
  transform: translateX(-120%); }
.btn:hover::after { transition: transform 0.9s var(--ease-water); transform: translateX(120%); }
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) .btn:hover::after { transition: none; transform: none; }
}

/* ---- 18.6 Nav dropdown (CPACT submenu) ---- */
.site-nav__links .has-sub { position: relative; }
.site-nav__subtoggle { display: inline-flex; align-items: center; gap: 0.3rem;
  background: none; border: 0; cursor: pointer; color: var(--ink-soft); font-family: var(--font-body);
  font-size: 0.92rem; font-weight: 500; letter-spacing: 0.03em; padding: 0.4rem 0.2rem; }
.site-nav__subtoggle:hover, .has-sub[data-open="true"] .site-nav__subtoggle { color: var(--cream); }
.site-nav__subtoggle .caret { width: 0.42rem; height: 0.42rem; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-left: 0.15rem;
  transition: transform var(--dur) var(--ease-water); opacity: 0.7; }
.site-nav__links .has-sub[data-open="true"] .caret { transform: rotate(-135deg); }
.sub-menu { list-style: none; position: absolute; top: calc(100% + 0.5rem); left: -0.8rem;
  min-width: 14rem; padding: 0.5rem; margin: 0; border-radius: var(--radius);
  background: rgba(11,17,34,0.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: var(--border-hair); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-water), transform var(--dur-fast) var(--ease-water); z-index: 20; }
.site-nav__links .has-sub[data-open="true"] .sub-menu { opacity: 1; transform: none; pointer-events: auto; }
.sub-menu li a { display: block; width: auto; padding: 0.6rem 0.8rem; border-radius: 10px; font-size: 0.92rem;
  border-bottom: 0 !important; color: var(--ink-soft); }
.sub-menu li a::after { display: none; }
.sub-menu li a:hover { background: rgba(69,161,141,0.14); color: var(--cream); }

@media (max-width: 940px) {
  .sub-menu { position: static; opacity: 1; transform: none; pointer-events: auto;
    background: none; border: 0; box-shadow: none; backdrop-filter: none; padding: 0 0 0 0.8rem;
    max-height: 0; overflow: hidden; transition: max-height var(--dur) var(--ease-water); }
  .site-nav__links .has-sub[data-open="true"] .sub-menu { max-height: 20rem; }
  .sub-menu li a { font-size: 1rem; padding: 0.6rem 0; border-bottom: var(--border-hair) !important; }
  .site-nav__subtoggle { width: 100%; justify-content: space-between; padding: 0.8rem 0;
    font-size: 1.05rem; border-bottom: var(--border-hair); }
}

/* EMPATHS: with JS off, show each value's description inline (readable);
   with JS on, the reveal panel takes over and inline descriptions hide. */
.empaths-word { flex-wrap: wrap; }
.empaths-word__desc { flex-basis: 100%; font-family: var(--font-body);
  font-size: var(--step--1); line-height: 1.5; color: var(--ink-soft);
  max-width: 54ch; margin: 0.2rem 0 0.7rem 2.3rem; }
html.js .empaths-word__desc { display: none; }
html.js .empaths-reveal__text { margin: 0; }
