/* ============================================================
   Sofito Consultancy — Design System (Direction C: warm heritage)
   Tokens, type scale, components, motion.
   Single source of truth — see README for rationale.
   ============================================================ */

/* ---------- 0. Self-hosted fonts (variable, latin subset) ---------- */
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("../fonts/cormorant-italic.woff2") format("woff2"); font-weight: 500 600; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

/* Cross-document view transitions (progressive enhancement) */
@view-transition { navigation: auto; }

/* ---------- 1. Tokens ---------- */
:root {
  /* Surfaces & accents */
  --green-900: #16241d;
  --green-800: #1f3329;
  --green-700: #27402f;
  --gold:      #c0a258;
  --gold-light:#d8bd7e;
  --cream:     #efe7d6;
  --sage:      #a9b3a4;
  --hairline:  rgba(216, 189, 126, .2);
  --hairline-strong: rgba(216, 189, 126, .4);

  /* Semantic */
  --bg:          var(--green-900);
  --bg-raised:   var(--green-800);
  --bg-hover:    var(--green-700);
  --text:        var(--cream);
  --text-muted:  var(--sage);
  --accent:      var(--gold);
  --accent-2:    var(--gold-light);
  --on-accent:   var(--green-900);

  /* Light section (cream) */
  --cream-bg:    var(--cream);
  --cream-text:  var(--green-900);
  --cream-muted: #5a5240;

  /* State */
  --focus-ring:  var(--gold-light);
  --error:       #d98c6a;
  --success:     #9bbf8f;

  /* Type */
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Type scale (1.25 — major third), base 16/18 */
  --fs-eyebrow: .75rem;
  --fs-small:   .875rem;
  --fs-body:    1.0625rem;   /* ~17px */
  --fs-lead:    1.25rem;
  --fs-h3:      1.5rem;
  --fs-h2:      clamp(1.9rem, 3.5vw, 2.5rem);
  --fs-h1:      clamp(2.5rem, 6vw, 4.5rem);
  --fs-display: clamp(3rem, 8vw, 6rem);

  /* Spacing (8px rhythm) */
  --s-1: .25rem; --s-2: .5rem;  --s-3: .75rem; --s-4: 1rem;
  --s-6: 1.5rem; --s-8: 2rem;   --s-12: 3rem;  --s-16: 4rem;
  --s-24: 6rem;  --s-32: 8rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 760px;
  --radius: 6px;
  --radius-lg: 10px;

  /* Z-scale */
  --z-base: 1; --z-raised: 10; --z-nav: 30; --z-overlay: 40; --z-modal: 50;

  /* Motion */
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-in:  cubic-bezier(.55, .06, .68, .19);
  --ease-smooth: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: 160ms;
  --dur: 240ms;
  --dur-slow: 320ms;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

/* Detail polish: selection, scrollbar */
::selection { background: var(--gold); color: var(--green-900); }
* { scrollbar-width: thin; scrollbar-color: var(--green-700) var(--green-900); }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--green-900); }
::-webkit-scrollbar-thumb { background: var(--green-700); border-radius: 10px; border: 3px solid var(--green-900); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Scroll-progress hairline (element injected by main.js) */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 60; pointer-events: none;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--accent-2); }
ul[role="list"] { list-style: none; padding: 0; }

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

.skip-link {
  position: absolute; left: 50%; transform: translateX(-50%) translateY(-150%);
  top: 8px; background: var(--gold); color: var(--on-accent);
  padding: .6rem 1.2rem; border-radius: var(--radius); z-index: var(--z-modal);
  font-weight: 600; transition: transform var(--dur) var(--ease-out);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); color: var(--on-accent); }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
p, li { text-wrap: pretty; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
h2 em, h1 em { font-style: italic; color: var(--accent); font-weight: 500; }

p { max-width: 68ch; }
.lead { font-size: var(--fs-lead); color: var(--text); max-width: 60ch; line-height: 1.55; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body); font-size: var(--fs-eyebrow);
  font-weight: 600; text-transform: uppercase; letter-spacing: .16em;
  color: var(--accent); margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--accent);
  display: inline-block; opacity: .8;
}

/* ---------- 4. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-6); }
.container-narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--s-24); }
.section--tight { padding-block: var(--s-16); }
.section--cream { background: var(--cream-bg); color: var(--cream-text); }
.section--cream p { color: var(--cream-muted); }
.section--cream .eyebrow { color: #8a6d2e; }
.section--cream .eyebrow::before { background: #8a6d2e; }
.section--raised { background: var(--bg-raised); }

.divider { height: 1px; background: var(--hairline); border: 0; }

.grid { display: grid; gap: var(--s-8); }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.stack > * + * { margin-top: var(--s-4); }
.measure { max-width: 60ch; }
.center { text-align: center; margin-inline: auto; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--gold); --btn-fg: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-body); font-size: var(--fs-small); font-weight: 600;
  letter-spacing: .02em; padding: .9rem 1.6rem; border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid transparent;
  cursor: pointer; min-height: 48px;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.btn:hover { --btn-bg: var(--gold-light); color: var(--on-accent); }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--cream);
  border-color: var(--hairline-strong);
}
.btn--ghost:hover { --btn-bg: rgba(216,189,126,.08); color: var(--gold-light); border-color: var(--gold); }
.btn--on-cream { --btn-fg: var(--green-900); }
.btn--lg { padding: 1.05rem 2rem; font-size: var(--fs-body); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }

/* ---------- 6. Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(22, 36, 29, .72);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.site-header.is-scrolled { background: rgba(22, 36, 29, .95); border-bottom-color: var(--hairline); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); min-height: 76px; }
.nav__logo img { height: 38px; width: auto; }
.nav__links { display: none; align-items: center; gap: var(--s-6); }
.nav__links a { color: var(--cream); font-family: var(--font-body); font-size: var(--fs-small); font-weight: 500; letter-spacing: .01em; position: relative; padding: .4rem 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--gold); transition: width var(--dur) var(--ease-out);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--gold-light); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__cta { display: none; }

.nav__toggle {
  display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
  width: 48px; height: 48px; background: transparent; border: 1px solid var(--hairline-strong);
  border-radius: var(--radius); cursor: pointer; padding: 0; align-items: center;
}
.nav__toggle span { display: block; width: 22px; height: 1.5px; background: var(--cream); transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-slow) var(--ease-out);
  background: var(--green-800); border-bottom: 1px solid var(--hairline);
}
.mobile-menu.is-open { grid-template-rows: 1fr; }
.mobile-menu__inner { overflow: hidden; }
.mobile-menu a {
  display: block; padding: var(--s-4) var(--s-6); color: var(--cream);
  font-weight: 500; border-bottom: 1px solid var(--hairline);
}
.mobile-menu a:hover, .mobile-menu a[aria-current="page"] { color: var(--gold-light); background: rgba(216,189,126,.05); }
.mobile-menu .btn { margin: var(--s-6); width: calc(100% - var(--s-6) * 2); }

@media (min-width: 980px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}

/* ---------- 7. Hero + annotation signature ---------- */
.hero { position: relative; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.5) sepia(.18) brightness(.62); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,36,29,.55) 0%, rgba(22,36,29,.78) 55%, var(--green-900) 100%),
              linear-gradient(90deg, rgba(22,36,29,.7) 0%, rgba(22,36,29,.25) 100%);
}
.hero__inner { position: relative; z-index: var(--z-raised); padding-block: clamp(5rem, 14vh, 9rem) var(--s-16); }
.hero h1 { max-width: 16ch; margin-bottom: var(--s-6); }
.hero .lead { margin-bottom: var(--s-8); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.hero__trust {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-6);
  margin-top: var(--s-12); padding-top: var(--s-6); border-top: 1px solid var(--hairline);
}
.hero__trust img { height: 40px; width: auto; opacity: .95; }
.hero__trust .trust-text { font-size: var(--fs-small); color: var(--text-muted); }
.hero__trust .trust-text strong { color: var(--cream); display: block; font-weight: 600; }

/* Annotation device — leader lines + labels */
.annotations { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: none; }
@media (min-width: 980px) { .annotations { display: block; } }
.annotation { position: absolute; display: flex; align-items: center; gap: .5rem; }
.annotation__line { height: 1px; width: 0; background: var(--gold-light); transition: width 700ms var(--ease-out); }
.annotation__dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--gold-light); background: rgba(216,189,126,.25); flex: none; }
.annotation__label {
  font-family: var(--font-body); font-size: .7rem; text-transform: uppercase; letter-spacing: .14em;
  color: var(--gold-light); white-space: nowrap; opacity: 0; transform: translateY(4px);
  transition: opacity 500ms var(--ease-out) 400ms, transform 500ms var(--ease-out) 400ms;
  background: rgba(22,36,29,.6); padding: .25rem .5rem; border-radius: 3px;
}
.annotation--a { top: 30%; left: 54%; }
.annotation--b { top: 50%; left: 60%; }
.annotation--c { top: 68%; left: 50%; }
.hero.is-revealed .annotation__line { width: 56px; }
.hero.is-revealed .annotation__label { opacity: 1; transform: translateY(0); }

/* ---------- 8. Cards ---------- */
.card {
  background: var(--bg-raised); border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); padding: var(--s-8);
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  height: 100%;
}
.card:hover { border-color: var(--hairline-strong); background: var(--green-700); }
a.card:hover, .card--link:hover { transform: translateY(-3px); }
.card__icon { width: 44px; height: 44px; color: var(--gold); margin-bottom: var(--s-4); }
.card__icon svg { width: 100%; height: 100%; }
.card h3 { margin-bottom: var(--s-3); color: var(--cream); }
.card p { color: var(--text-muted); font-size: var(--fs-small); }
.card__more { display: inline-flex; align-items: center; gap: .4rem; margin-top: var(--s-4); font-size: var(--fs-small); font-weight: 600; }
.card__num { font-family: var(--font-display); font-size: 2.2rem; color: var(--gold); line-height: 1; display: block; margin-bottom: var(--s-3); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-8); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__num { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--gold); line-height: 1; }
.stat__label { font-size: var(--fs-small); color: var(--text-muted); margin-top: var(--s-2); }

/* ---------- 9. Process (genuine sequence — numbered) ---------- */
.process { counter-reset: step; display: grid; gap: var(--s-8); }
@media (min-width: 768px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process__step { position: relative; padding-top: var(--s-8); border-top: 1px solid var(--hairline); }
.process__step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-size: 1.6rem; color: var(--gold);
  position: absolute; top: var(--s-3); left: 0;
}
.process__step h3 { font-size: var(--fs-lead); margin-bottom: var(--s-2); }
.process__step p { font-size: var(--fs-small); color: var(--text-muted); }

/* ---------- 10. Forms ---------- */
.field { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-6); }
.field label { font-size: var(--fs-small); font-weight: 600; color: var(--cream); }
.field .hint { font-size: .8rem; color: var(--text-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: var(--fs-body); color: var(--cream);
  background: var(--green-900); border: 1px solid var(--hairline-strong);
  border-radius: var(--radius); padding: .85rem 1rem; width: 100%;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(169,179,164,.6); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216,189,126,.18); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.field .error-msg { font-size: .8rem; color: var(--error); min-height: 1em; }
.field--cream label { color: var(--green-900); }
.field--cream input, .field--cream select, .field--cream textarea { background: #fff; color: var(--green-900); border-color: rgba(22,36,29,.25); }

.form-status { font-size: var(--fs-small); padding: var(--s-4); border-radius: var(--radius); margin-top: var(--s-4); display: none; }
.form-status.is-error { display: block; background: rgba(217,140,106,.12); border: 1px solid var(--error); color: var(--error); }
.form-status.is-success { display: block; background: rgba(155,191,143,.12); border: 1px solid var(--success); color: var(--success); }

/* Spinner */
.btn .spinner { width: 16px; height: 16px; border: 2px solid rgba(22,36,29,.35); border-top-color: var(--on-accent); border-radius: 50%; display: none; animation: spin .7s linear infinite; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading .btn__label { opacity: .7; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 1.4s; } }

/* ---------- 11. Quote calculator ---------- */
.quote { background: var(--bg-raised); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 3rem); }
.quote__steps { display: grid; gap: var(--s-8); }
.optionset { display: grid; gap: var(--s-3); grid-template-columns: 1fr; }
@media (min-width: 560px) { .optionset { grid-template-columns: repeat(3, 1fr); } }
.optionset--2 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .optionset--2 { grid-template-columns: repeat(2, 1fr); } }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.option__box {
  display: block; padding: var(--s-4); border: 1px solid var(--hairline-strong);
  border-radius: var(--radius); cursor: pointer; transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
  height: 100%;
}
.option__box strong { display: block; color: var(--cream); font-family: var(--font-body); font-size: var(--fs-body); margin-bottom: .2rem; }
.option__box span { font-size: .8rem; color: var(--text-muted); }
.option input:hover + .option__box { border-color: var(--gold); }
.option input:checked + .option__box { border-color: var(--gold); background: rgba(216,189,126,.1); box-shadow: 0 0 0 1px var(--gold) inset; }
.option input:focus-visible + .option__box { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

.quote__result {
  margin-top: var(--s-8); padding-top: var(--s-8); border-top: 1px solid var(--hairline);
  opacity: 0; transform: translateY(8px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.quote__result.is-visible { opacity: 1; transform: translateY(0); }
.quote__range { font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 3.2rem); color: var(--gold); line-height: 1.1; }
.quote__range small { font-size: 1rem; color: var(--text-muted); font-family: var(--font-body); display: block; margin-top: .3rem; }
.quote__note { font-size: var(--fs-small); color: var(--text-muted); margin: var(--s-4) 0; }
.quote__empty { color: var(--text-muted); font-size: var(--fs-small); }

/* ---------- 12. Testimonials ---------- */
.quote-card { background: var(--bg-raised); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: var(--s-8); display: flex; flex-direction: column; height: 100%; transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out); }
.quote-card:hover { border-color: var(--hairline-strong); }
.quote-card blockquote { font-family: var(--font-display); font-size: var(--fs-lead); font-style: italic; color: var(--cream); line-height: 1.4; }
.quote-card blockquote::before { content: "\201C"; color: var(--gold); font-size: 1.4em; line-height: 0; vertical-align: -.35em; margin-right: .05em; }
.quote-card .attr { margin-top: auto; padding-top: var(--s-6); font-size: var(--fs-small); color: var(--text-muted); }
.quote-card .attr strong { color: var(--gold); font-weight: 600; }
.stars { color: var(--gold); letter-spacing: .15em; margin-bottom: var(--s-3); }
.review-src { display: inline-block; margin-left: .5rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sage); border: 1px solid var(--hairline); border-radius: 100px; padding: .12rem .55rem; vertical-align: middle; }
.rating-line { display: inline-flex; align-items: center; gap: .7rem; margin-top: var(--s-6); font-size: var(--fs-small); color: var(--text-muted); }
.rating-line .rl-stars { color: var(--gold); font-size: 1.3rem; letter-spacing: .14em; line-height: 1; }
.rating-line strong { color: var(--cream); font-weight: 600; }

/* ---------- 13. Footer ---------- */
.site-footer { background: #101b16; border-top: 1px solid var(--hairline); padding-block: var(--s-16) var(--s-8); }
.footer__grid { display: grid; gap: var(--s-8); grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }
.footer__logo img { height: 42px; margin-bottom: var(--s-4); }
.footer h4 { font-family: var(--font-body); font-size: var(--fs-eyebrow); text-transform: uppercase; letter-spacing: .14em; color: var(--gold); margin-bottom: var(--s-4); font-weight: 600; }
.footer a { color: var(--text-muted); font-size: var(--fs-small); display: inline-block; padding: .25rem 0; }
.footer a:hover { color: var(--gold-light); }
.footer p { color: var(--text-muted); font-size: var(--fs-small); }
.footer__rics { display: flex; align-items: center; gap: var(--s-4); margin-top: var(--s-4); }
.footer__rics img { height: 44px; width: auto; }
.footer__rics span { font-size: .8rem; color: var(--text-muted); }
.footer__bottom { margin-top: var(--s-12); padding-top: var(--s-6); border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between; align-items: center; }
.footer__bottom p { font-size: .8rem; }

/* ---------- 14. Page header (interior pages) ---------- */
.page-head { padding-block: clamp(3rem, 8vh, 6rem) var(--s-12); border-bottom: 1px solid var(--hairline); position: relative; }
.page-head h1 { max-width: 18ch; margin-bottom: var(--s-4); }
.page-head .lead { max-width: 56ch; }
.breadcrumb { font-size: .8rem; color: var(--text-muted); margin-bottom: var(--s-6); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- 15. Misc / utilities ---------- */
.placeholder-flag {
  display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold-light); border: 1px dashed var(--hairline-strong); border-radius: 4px;
  padding: .15rem .5rem; margin-bottom: var(--s-3);
}
.split { display: grid; gap: var(--s-12); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--media-first .split__media { order: -1; } }
.split__media img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; }
.figure-duotone { filter: saturate(.55) sepia(.15) brightness(.95); }
.tag-list { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }
.tag { font-size: .75rem; color: var(--text-muted); border: 1px solid var(--hairline); border-radius: 100px; padding: .3rem .75rem; }
.cta-band { background: var(--green-700); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 4rem); text-align: center; }
.cta-band h2 { margin-bottom: var(--s-4); }
.cta-band .btn { margin-top: var(--s-6); }

/* ---------- 16. Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-smooth), transform .8s var(--ease-smooth); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 80ms; }
.reveal-delay-2 { transition-delay: 160ms; }
.reveal-delay-3 { transition-delay: 240ms; }

/* ---------- 17. Premium polish ---------- */

/* Eyebrow hairline draws in as its section reveals (echoes the annotation device) */
.reveal .eyebrow::before { width: 0; transition: width .7s var(--ease-smooth) .25s; }
.reveal.is-visible .eyebrow::before { width: 28px; }

/* Hero: staggered entrance, slow living zoom, fine grain for depth */
.hero__inner > * { opacity: 0; animation: heroIn .9s var(--ease-smooth) both; }
.hero__inner > .eyebrow { animation-delay: .15s; }
.hero__inner > h1 { animation-delay: .28s; }
.hero__inner > .lead { animation-delay: .42s; }
.hero__inner > .hero__actions { animation-delay: .56s; }
.hero__inner > .hero__trust { animation-delay: .70s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.hero__media img { animation: heroZoom 22s var(--ease-out) forwards; }
@keyframes heroZoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.hero__media::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Media: settle-in scale on reveal + gentle hover zoom (gallery feel) */
.split__media { overflow: hidden; border-radius: var(--radius-lg); }
.split__media img { transition: transform 1.1s var(--ease-smooth); }
.split__media.reveal img { transform: scale(1.06); }
.split__media.reveal.is-visible img { transform: scale(1); }
.split__media:hover img { transform: scale(1.04); }

/* Card images: clipped hover zoom */
.card > div:first-child, .card picture { overflow: hidden; }
.card img { transition: transform .9s var(--ease-smooth); }
.card:hover img { transform: scale(1.05); }

/* Buttons: depth + a single light sweep on hover */
.btn { position: relative; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.btn::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.22), transparent);
  transform: skewX(-18deg); pointer-events: none;
}
.btn:hover { box-shadow: 0 10px 26px -10px rgba(192,162,88,.55); }
.btn:hover::after { animation: sheen .7s var(--ease-out); }
.btn--ghost:hover { box-shadow: 0 10px 26px -14px rgba(0,0,0,.5); }
@keyframes sheen { from { left: -130%; } to { left: 150%; } }

/* Cards: smoother elevation + arrow nudge */
.card { box-shadow: 0 1px 2px rgba(0,0,0,.14); }
.card:hover { box-shadow: 0 22px 48px -24px rgba(0,0,0,.65); }
.card__more { transition: transform .25s var(--ease-smooth), color var(--dur-fast) var(--ease-out); }
.card:hover .card__more { transform: translateX(5px); }

/* Header: subtle shrink on scroll */
.site-header .nav { transition: min-height var(--dur) var(--ease-out); }
.site-header.is-scrolled .nav { min-height: 62px; }
.nav__logo img { transition: height var(--dur) var(--ease-out); }
.site-header.is-scrolled .nav__logo img { height: 32px; }

/* ---------- 17b. FAQ accordion ---------- */
.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary { cursor: pointer; list-style: none; padding: var(--s-6) 0; font-family: var(--font-display); font-size: var(--fs-h3); color: var(--cream); display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); transition: color var(--dur-fast) var(--ease-out); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold); font-size: 1.6rem; font-family: var(--font-body); line-height: 1; transition: transform var(--dur) var(--ease-out); flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--gold-light); }
.faq-item summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 4px; }
.faq-item .faq-a { padding: 0 0 var(--s-6); color: var(--text-muted); max-width: 70ch; }
.faq-item .faq-a p { margin-bottom: var(--s-3); }

/* ---------- 18. Legal pages ---------- */
.legal { color: var(--text-muted); }
.legal h2 { font-size: var(--fs-h3); margin-top: var(--s-12); margin-bottom: var(--s-4); color: var(--cream); }
.legal h3 { font-size: var(--fs-lead); margin-top: var(--s-8); margin-bottom: var(--s-3); color: var(--cream); }
.legal p { margin-bottom: var(--s-4); }
.legal ul { list-style: disc; padding-left: 1.3rem; margin-bottom: var(--s-6); display: flex; flex-direction: column; gap: .5rem; }
.legal a { text-decoration: underline; }
.legal strong { color: var(--cream); }

/* ---------- 19. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal, .annotation__line, .annotation__label, .quote__result { transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .annotation__line { width: 56px; }
  .annotation__label { opacity: 1; transform: none; }
  .quote__result.is-visible { transition: none; }
  .card:hover, a.card:hover { transform: none; }
  .hero__inner > * { opacity: 1; animation: none; }
  .hero__media img { animation: none; transform: none; }
  .hero__media::before { display: none; }
  .split__media img, .card img { transition: none; transform: none !important; }
  .reveal .eyebrow::before { width: 28px; transition: none; }
  .btn::after { display: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Soften the cross-document fade */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }

/* ---------- 20. Print ---------- */
@media print {
  *, *::before, *::after { background: #fff !important; color: #111 !important; box-shadow: none !important; text-shadow: none !important; }
  .site-header, .mobile-menu, .nav__toggle, .scroll-progress, .hero__media, .annotations, .cta-band .btn, .btn, .site-footer, .form-status, .quote__result, .skip-link { display: none !important; }
  .hero, .section, .section--tight { padding-block: 1rem !important; }
  .hero__inner { color: #111 !important; }
  a { color: #111 !important; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
  h1, h2, h3 { color: #111 !important; page-break-after: avoid; }
  .card, .quote-card, .split__media { border: 1px solid #ccc !important; page-break-inside: avoid; }
  img { max-width: 40% !important; }
}
