/* =============================================================
   Kate Lappin — Homepage prototype
   Direction A2: "Warm + Accent Highlights"
   Design system + components. Portable; maps 1:1 to Jinja later.
   ============================================================= */

/* ---------- Fonts ---------- */
/* Self-hosted fonts (latin subset, variable woff2). Source: Google Fonts CSS2 API.
   Deduped to one variable file per family/style; weight ranges below. font-display: swap. */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/fraunces.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/fraunces-italic.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/hanken-grotesk.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
  /* surfaces */
  --cream:    #FBF6EF;
  --cream-2:  #F5ECDF;
  --paper:    #FFFFFF;
  --ink:      #33291F;
  --ink-soft: #6F6253;
  --ink-faint:#9A8C7B;

  /* accent palette */
  --terracotta: #D2663B;
  /* darker terracotta for small text (eyebrows): meets WCAG AA 4.5:1 on cream,
     where the raw --terracotta (3.2:1) only passes as large text (the surname) */
  --terracotta-text: #A8431E;
  --sage:       #2E7D5B;
  --marigold:   #E8A93C;
  --periwinkle: #5A6FB5;
  --clay:       #C24E6B;

  /* pastel tints (chips / blocks) */
  --tint-terra:  #FBE3D6; --on-terra:  #9E4522;
  --tint-sage:   #DCEEE3; --on-sage:   #236347;
  --tint-peri:   #E4E8F6; --on-peri:   #475399;
  --tint-marig:  #FBEFD2; --on-marig:  #80590B;
  --tint-clay:   #F8E0E6; --on-clay:   #A53C54;

  /* type */
  --display: 'Fraunces', Georgia, serif;
  --body:    'Hanken Grotesk', system-ui, sans-serif;

  /* shape */
  --r-pill: 999px;
  --r-card: 22px;
  --r-lg:   30px;

  /* shadow (warm) */
  --shadow-sm: 0 4px 14px rgba(51,41,31,.07);
  --shadow-md: 0 14px 36px rgba(51,41,31,.10);
  --shadow-lg: 0 30px 70px rgba(51,41,31,.16);

  /* layout */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);

  /* motion */
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.62;
  font-size: 17px;
  overflow-x: hidden;
  position: relative;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--marigold); color: var(--ink); }

/* skip-to-content link — off-screen until focused */
.skip-link {
  position: absolute; left: 8px; top: -48px; z-index: 300;
  background: var(--ink); color: var(--cream);
  padding: .6em 1.1em; border-radius: var(--r-pill);
  font-weight: 600; font-size: .92rem;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 8px; outline: 2px solid var(--marigold); outline-offset: 2px; }

/* Alpine x-cloak — hide pre-init ONLY when JS is active (html.js set by main.js).
   Without JS the rule never matches, so faq answers stay visible (no-JS contract). */
html.js [x-cloak] { display: none !important; }

/* paper-grain atmosphere */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: .035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Shared layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--body);
  font-size: .82rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--terracotta-text);
}
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 46ch; }

/* small spacing/layout utilities (replace former inline style= attributes,
   so a strict CSP style-src can drop 'unsafe-inline') */
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-18 { margin-top: 18px; }
.mt-28 { margin-top: 28px; }
.chips--center { justify-content: center; }

/* highlight words */
.hl { font-style: italic; }
.hl-terra { color: var(--terracotta); }
.hl-sage  { color: var(--sage); }
.hl-peri  { color: var(--periwinkle); }
.hl-clay  { color: var(--clay); }
.hl-marig { color: var(--on-marig); }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--body); font-weight: 600; font-size: .98rem;
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.5em; border-radius: var(--r-pill);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  will-change: transform;
}
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--sage); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(46,125,91,.32); }
/* visible focus ring on the green fill (default outline is thin/low-contrast);
   marigold reads against both the sage button and the cream page */
.btn-primary:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 2px;
}
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(51,41,31,.22); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--ink); background: rgba(51,41,31,.04); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter);
  background: rgba(251,246,239,.72);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, opacity .7s var(--ease);
}
/* nav fades in only once the intro resolves into the full page (JS only;
   without JS the nav stays visible since .is-loaded is never added) */
html.js:not(.is-loaded) .nav { opacity: 0; pointer-events: none; }
.nav.scrolled { border-color: rgba(51,41,31,.08); background: rgba(251,246,239,.9); }
.nav .brand {
  font-family: var(--display); font-weight: 600; font-size: 1.32rem;
  letter-spacing: -.01em; color: var(--ink);
  display: inline-flex; align-items: center; gap: .5em;
}
.nav .brand .mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, var(--marigold), var(--terracotta) 75%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
}
.nav .links { display: flex; align-items: center; gap: 8px; }
.nav .links a {
  font-size: .96rem; font-weight: 500; color: var(--ink-soft);
  padding: .5em .9em; border-radius: var(--r-pill);
  transition: color .2s, background .2s;
}
.nav .links a:hover { color: var(--ink); background: rgba(51,41,31,.05); }
.nav .links .btn { padding: .6em 1.25em; margin-left: 6px; }
/* keep the pill text white — .nav .links a would otherwise win on specificity */
.nav .links a.btn-primary { color: #fff; }
.nav-toggle { display: none; }

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  padding: clamp(48px, 8vw, 92px) 0 clamp(60px, 9vw, 110px);
  overflow: hidden;
}
/* warm radial glows */
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; z-index: 0;
  filter: blur(70px); opacity: .55; pointer-events: none;
}
.hero::before { width: 460px; height: 460px; top: -120px; right: -80px;
  background: radial-gradient(circle, rgba(232,169,60,.55), transparent 70%); }
.hero::after { width: 420px; height: 420px; bottom: -160px; left: -120px;
  background: radial-gradient(circle, rgba(90,111,181,.30), transparent 70%); }

.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-eyebrow { margin-bottom: 20px; display: inline-block; }
.hero h1 {
  font-family: var(--display);
  font-weight: 500; font-optical-sizing: auto;
  font-size: clamp(3.1rem, 8.2vw, 5.6rem);
  line-height: .94; letter-spacing: -.02em;
  color: var(--ink); margin-bottom: 4px;
}
.hero h1 .surname { color: var(--terracotta); }
.hero .tagline {
  font-family: var(--display); font-weight: 400; font-style: italic;
  font-size: clamp(1.25rem, 2.4vw, 1.72rem);
  line-height: 1.28; color: var(--ink); max-width: 19ch;
  margin: 22px 0 0;
}
.hero .blurb { margin: 18px 0 0; max-width: 40ch; color: var(--ink-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 26px 0 0; }
.chip {
  font-size: .86rem; font-weight: 600; padding: .5em 1em;
  border-radius: var(--r-pill);
}
.chip.c-terra { background: var(--tint-terra); color: var(--on-terra); }
.chip.c-sage  { background: var(--tint-sage);  color: var(--on-sage); }
.chip.c-peri  { background: var(--tint-peri);  color: var(--on-peri); }
.chip.c-clay  { background: var(--tint-clay);  color: var(--on-clay); }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* hero photo — layered card, Austin-style offset, warm */
.portrait { position: relative; justify-self: center; width: min(100%, 430px); }
.portrait .offset {
  position: absolute; inset: 22px -22px -22px 22px;
  background: var(--sage); border-radius: var(--r-lg); z-index: 0;
  opacity: .9;
}
.portrait .frame {
  position: relative; z-index: 1; aspect-ratio: 4/5;
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--cream-2);
}
.portrait .frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.86) contrast(1.02);
}
.portrait .frame::after { /* warm duotone unify */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(150deg, rgba(210,102,59,.26), rgba(46,125,91,.16) 60%, rgba(90,111,181,.18));
  mix-blend-mode: multiply;
}
.portrait .tagchip {
  position: absolute; z-index: 2; bottom: 16px; left: 16px;
  background: var(--paper); color: var(--ink);
  font-weight: 600; font-size: .82rem;
  padding: .55em 1em; border-radius: var(--r-pill);
  box-shadow: var(--shadow-md);
  display: inline-flex; align-items: center; gap: .5em;
}
.portrait .tagchip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }
.portrait .ph-note {
  position: absolute; z-index: 2; top: 14px; right: 14px;
  font-size: .68rem; font-weight: 600; letter-spacing: .04em;
  background: rgba(51,41,31,.6); color: #fff; padding: .35em .7em;
  border-radius: var(--r-pill);
}

/* ===========================================================
   APPROACH
   =========================================================== */
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section-head { max-width: 60ch; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .eyebrow { margin-bottom: 16px; display: inline-block; }
.section-head h2, .section-head h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.08;
  letter-spacing: -.015em; color: var(--ink);
}
.approach { background:
   linear-gradient(180deg, var(--cream), var(--cream)); }
.approach .statement {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem); line-height: 1.3;
  letter-spacing: -.01em; color: var(--ink);
  max-width: 22ch; max-width: 26ch;
}
.approach .grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 6vw, 80px); align-items: start;
}
.approach .body p { color: var(--ink-soft); margin-bottom: 1.1em; max-width: 48ch; }
.approach .body p:last-child { margin-bottom: 0; }
.approach .body .btn { margin-top: 10px; }

/* ===========================================================
   HELP CARDS
   =========================================================== */
.help { background: var(--paper); }
.cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  border-radius: var(--r-card); padding: 26px 22px 28px;
  min-height: 230px; display: flex; flex-direction: column;
  justify-content: space-between;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card .num {
  font-family: var(--display); font-size: 1rem; font-weight: 600;
  opacity: .55;
}
.card h3 {
  font-family: var(--display); font-weight: 500;
  font-size: 1.35rem; line-height: 1.12; margin: 14px 0 8px;
}
.card p { font-size: .94rem; line-height: 1.55; opacity: .85; }
.card.k1 { background: var(--tint-terra); color: var(--on-terra); }
.card.k2 { background: var(--tint-sage);  color: var(--on-sage); }
.card.k3 { background: var(--tint-peri);  color: var(--on-peri); }
.card.k4 { background: var(--tint-marig); color: var(--on-marig); }
.card h3, .card .num { color: var(--ink); }

/* ===========================================================
   QUOTE
   =========================================================== */
.quote { background: var(--cream); text-align: center; }
.quote blockquote {
  font-family: var(--display); font-weight: 400; font-style: italic;
  font-size: clamp(1.6rem, 4vw, 3rem); line-height: 1.24;
  letter-spacing: -.015em; color: var(--ink);
  max-width: 20ch; margin: 0 auto;
}
.quote blockquote .mk { color: var(--terracotta); font-style: normal; }
.quote .attrib {
  margin-top: 28px; font-size: .9rem; font-weight: 600;
  letter-spacing: .04em; color: var(--ink-soft);
}

/* ===========================================================
   CTA BAND
   =========================================================== */
.cta-band { padding: clamp(20px,4vw,40px) 0; }
.cta-band .inner {
  position: relative; overflow: hidden;
  background: var(--sage); color: var(--cream);
  border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 76px) clamp(28px, 5vw, 70px);
  display: grid; grid-template-columns: 1.4fr auto;
  gap: 28px; align-items: center;
}
.cta-band .inner::after {
  content: ""; position: absolute; width: 320px; height: 320px;
  border-radius: 50%; right: -60px; top: -120px;
  background: radial-gradient(circle, rgba(232,169,60,.5), transparent 70%);
}
.cta-band h2 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.9rem); line-height: 1.06;
  letter-spacing: -.015em; position: relative; z-index: 1;
}
.cta-band p { margin-top: 10px; opacity: .9; max-width: 40ch; position: relative; z-index: 1; }
.cta-band .btn { position: relative; z-index: 1; }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer { background: var(--ink); color: var(--cream); padding: clamp(56px,7vw,90px) 0 36px; }
.footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .brand { font-family: var(--display); font-size: 1.7rem; font-weight: 600; }
.footer .brand + p { margin-top: 14px; color: var(--ink-faint); max-width: 34ch; }
.footer h4 { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--marigold); margin-bottom: 16px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer a { color: rgba(251,246,239,.78); transition: color .2s; }
.footer a:hover { color: #fff; }
.footer .bottom {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(251,246,239,.14);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .82rem; color: var(--ink-faint);
}

/* ===========================================================
   ABOUT PAGE
   =========================================================== */
.about-hero { padding-bottom: clamp(40px, 6vw, 72px); }
.about-hero .grid {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 6vw, 80px); align-items: center;
}
.about-hero h1.statement { max-width: 18ch; }
.credentials { background: var(--cream-2); }
.cred-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.cred-item {
  background: var(--paper); border-radius: var(--r-card);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.cred-item dt {
  font-size: .8rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--terracotta-text); margin-bottom: 8px;
}
.cred-item dd { color: var(--ink-soft); }

/* ===========================================================
   FAQ ACCORDION
   =========================================================== */
.faq-item {
  border-bottom: 1px solid rgba(51,41,31,.12);
}
.faq-item:first-of-type { border-top: 1px solid rgba(51,41,31,.12); }
/* heading wrapper around each question button — no visual change, the button
   carries its own typography; this only restores it to the heading outline */
.faq-h { margin: 0; font: inherit; }
.faq-q {
  font-family: var(--body); font-weight: 600; font-size: 1.08rem;
  width: 100%; text-align: left; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1em;
  padding: 22px 4px; background: transparent; border: none; color: var(--ink);
  transition: color .2s var(--ease);
}
.faq-q:hover { color: var(--sage); }
.faq-q:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 6px; }
.faq-mark {
  flex: none; font-family: var(--display); font-size: 1.5rem; line-height: 1;
  color: var(--sage);
}
.faq-a {
  padding: 0 4px 24px; color: var(--ink-soft); max-width: 62ch;
}

/* ===========================================================
   INQUIRY FORM (Book a consultation)
   =========================================================== */
.section.book .section-head { margin-bottom: clamp(28px, 4vw, 44px); }
#inquiry-form {
  display: flex; flex-direction: column; gap: 18px;
  max-width: 580px;
}
#inquiry-form > label {
  display: flex; flex-direction: column; gap: 7px;
  font-weight: 600; font-size: .92rem; color: var(--ink);
}
.field {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  width: 100%; padding: .8em 1em;
  background: var(--cream);
  border: 1.5px solid rgba(51,41,31,.28);
  border-radius: 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field:hover { border-color: rgba(51,41,31,.38); }
.field:focus,
.field:focus-visible {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(46,125,91,.18);
}
textarea.field { min-height: 140px; resize: vertical; line-height: 1.55; }
select.field { cursor: pointer; }
.field-error {
  color: var(--clay); font-size: .86rem; font-weight: 500; margin-top: -4px;
}
.consent {
  flex-direction: row; align-items: flex-start; gap: 10px;
  font-weight: 500; font-size: .94rem; color: var(--ink-soft);
  cursor: pointer; line-height: 1.5;
}
.consent input[type="checkbox"] {
  margin-top: .2em; flex: none; width: 18px; height: 18px;
  accent-color: var(--sage); cursor: pointer;
}
#inquiry-form .btn { align-self: flex-start; margin-top: 4px; }

.form-success {
  background: var(--tint-sage); color: var(--ink);
  border-radius: var(--r-card);
  padding: clamp(28px, 5vw, 44px);
  max-width: 580px;
  box-shadow: var(--shadow-sm);
}
.form-success h3, .form-success h1 {
  font-family: var(--display); font-weight: 500; font-size: 1.5rem;
  margin-bottom: 10px;
}
.form-success p { color: var(--ink-soft); }
.form-success a { color: var(--on-sage); font-weight: 600; text-decoration: underline; }

/* ===========================================================
   MOTION — wave reveal + scroll reveals
   =========================================================== */
/* per-letter wave */
.word { display: inline-block; white-space: nowrap; }
.js .letter {
  display: inline-block;
  opacity: 0; transform: translateY(.72em);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.is-played .letter { opacity: 1; transform: translateY(0); }

/* sequenced hero items */
.js [data-seq] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.is-loaded [data-seq] { opacity: 1; transform: none; }

/* scroll reveal */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal-stagger] > * { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-reveal-stagger].is-in > * { opacity: 1; transform: none; }

/* ===========================================================
   INTRO OVERLAY — two-stage cinematic load
   Stage 1: centered "Hello, my name is" + name waves in (full width)
   Stage 2: overlay glides up-left + shrinks, hero phases in behind it
   =========================================================== */
.js .intro {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: var(--gutter);
  background: var(--cream);
  transition: opacity .9s var(--ease), transform 1s var(--ease);
  will-change: transform, opacity;
}
/* soft warm glow echoing the hero so the handoff feels continuous */
.intro::before {
  content: ""; position: absolute; width: 540px; height: 540px;
  border-radius: 50%; filter: blur(80px); opacity: .5; pointer-events: none;
  background: radial-gradient(circle, rgba(232,169,60,.5), transparent 70%);
  top: 12%; left: 58%;
}
.intro-inner { position: relative; z-index: 1; }
.intro-eyebrow {
  display: block; margin-bottom: 22px;
  opacity: 0; transform: translateY(12px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.intro--show .intro-eyebrow { opacity: 1; transform: none; }
.intro-name {
  font-family: var(--display); font-weight: 500; font-optical-sizing: auto;
  font-size: clamp(3.2rem, 9.5vw, 7rem);
  line-height: .98; letter-spacing: -.02em; color: var(--ink);
}
.intro-name .surname { color: var(--terracotta); }
.intro--exit {
  opacity: 0;
  transform: translate(-24vw, -18vh) scale(.58);
  pointer-events: none;
}

/* hero head pieces phase in with the rest once loaded (no second wave) */

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .portrait { order: -1; width: min(100%, 360px); }
  .approach .grid { grid-template-columns: 1fr; }
  .about-hero .grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cta-band .inner { grid-template-columns: 1fr; }
  .footer .top { grid-template-columns: 1fr 1fr; }

  /* Mobile nav — collapse the links behind the toggle ONLY when JS is present.
     Without JS the toggle can't work, so links must stay visible (no .js prefix). */
  .js .nav-toggle { display: inline-flex; }
  .js .nav .links {
    display: none;
    position: absolute; top: 100%; right: var(--gutter);
    flex-direction: column; align-items: stretch; gap: 4px;
    min-width: 220px; padding: 10px;
    background: rgba(251,246,239,.97);
    backdrop-filter: blur(12px) saturate(1.2);
    border: 1px solid rgba(51,41,31,.08); border-radius: var(--r-card);
    box-shadow: var(--shadow-md);
  }
  .js .nav .links.is-open { display: flex; }
  .js .nav .links .btn { margin-left: 0; margin-top: 4px; }
}
@media (max-width: 540px) {
  .cards { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; }
  .footer .top { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

/* ===========================================================
   REDUCED MOTION — everything visible, no transforms
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .letter, [data-seq], [data-reveal], [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }
}
