/* ==========================================================================
   NYC IVF — base: brand tokens, type, primitives, chrome
   Brand book: Didot (display) · Proxima Nova Light (body)
   Colors: #4d6860 primary · #cad5c8 tertiary · #f2f1e6 cream · #3e3735 / #606161 body
   ========================================================================== */

/* Warbler, by David Jonathan Ross - licensed to NYC IVF, order 2026-10-13-c4467ce, Mini combined:
   3 desktop workstations, 15,000 monthly unique web visitors, 1 app. Self-hosted; nothing phones home.

   These are the variable releases. The optical-size axis runs 15-96 and `font-optical-sizing: auto` on
   <html> drives it from the rendered size, so a title that falls from 62px on a desktop to 36px on a
   phone gets a sturdier drawing on the way down rather than the same hairlines shrunk - the readability
   complaint, answered by the font instead of by a media query. Weight runs 400-700 continuously, so a
   declared 500 or 600 is a real weight and not a snap to the nearest static cut. */
@font-face { font-family: "Warbler"; src: url("../fonts/warbler.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Warbler"; src: url("../fonts/warbler-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }

/* Open-licence faces (SIL OFL), self-hosted. Bodoni Moda stands in for Warbler while it loads and
   carries its own optical-size axis, so the swap moves the least. */
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url("../fonts/bodoni-moda-italic.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }

:root {
  --sage: #4d6860;
  --sage-deep: #3d544d;
  --sage-soft: #cad5c8;
  --sage-mist: #e4eae1;
  --cream: #f2f1e6;
  --paper: #fbfaf6;
  --white: #ffffff;
  --ink: #3e3735;
  --ink-2: #606161;
  --line: rgba(62, 55, 53, 0.1);
  --line-strong: rgba(62, 55, 53, 0.22);
  --error: #9b2c1f;

  /* One family across all three roles now - the optical-size axis does what the three static cuts did. */
  --font-display: "Warbler", "Bodoni Moda", Georgia, serif;
  --font-headline: "Warbler", "Bodoni Moda", Georgia, serif;
  --font-display-text: "Warbler", "Bodoni Moda", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(72px, 10vw, 136px);
  --nav-h: 72px;

  /* Critically damped feel for CSS-driven UI (no overshoot). Gestures use JS springs. */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.64, 0, 0.78, 0);

  --shadow-sm: 0 1px 2px rgba(40, 36, 34, 0.06), 0 2px 8px rgba(40, 36, 34, 0.04);
  --shadow-lg: 0 2px 6px rgba(40, 36, 34, 0.06), 0 24px 64px rgba(40, 36, 34, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-optical-sizing: auto; scroll-padding-top: calc(var(--nav-h) + 24px); }
/* In-page links glide to their section instead of jumping. Stays instant for anyone who asks for less motion. */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* On pages with the sticky section pills, an anchored section has to clear those too */
body:has(.subnav) :is(.section, .faq-group, .toc-group, h2)[id] { scroll-margin-top: calc(var(--nav-h) + 68px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  letter-spacing: 0.01em;
  /* No -webkit-font-smoothing: antialiased. On macOS it thins every stroke, which is survivable for a
     sans and fatal for a didone - it was why the type looked lighter here than on the type specimen. */
  text-rendering: optimizeLegibility;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; }
strong, b { font-weight: 600; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--sage-soft); color: var(--ink); }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--cream { background: var(--cream); }
.section--mist { background: var(--sage-mist); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--sage); color: #fff; padding: 10px 16px; border-radius: 999px; }
.skip:focus { top: 12px; }

/* ---------- Type: tracking and leading are size-specific ---------- */
/* Hero-size type uses the 64pt cut; section headings use the sturdier 42pt cut so hairlines stay readable */
.display-xl, .display-lg, .display-md { font-family: var(--font-headline); font-weight: 500; margin: 0; color: var(--ink); text-wrap: balance; }
.display-xl { font-family: var(--font-display); font-size: clamp(2.75rem, 6.2vw, 5.5rem); line-height: 1.02; letter-spacing: -0.012em; }
.display-lg { font-size: clamp(2.25rem, 4.6vw, 3.9rem); line-height: 1.06; letter-spacing: -0.008em; }
.display-md { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.004em; }
.display-sm { font-family: var(--font-display-text); font-weight: 600; font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1.18; letter-spacing: 0.005em; margin: 0; text-wrap: balance; }
/* SemiBold italic: the slanted words hold their own beside Medium roman */
.display-xl em, .display-lg em, .display-md em { font-style: italic; font-weight: 600; color: var(--sage); }

/* Brand's wide Didot tracking lives in small caps labels, where it reads as the logo does */
.eyebrow { display: inline-block; font: 600 0.75rem/1.4 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); margin: 0 0 16px; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--ink-2); margin: 20px 0 0; max-width: 38em; text-wrap: pretty; }
.small { font-size: 0.875rem; line-height: 1.5; font-weight: 400; letter-spacing: 0.015em; color: var(--ink-2); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 0.9375rem; color: var(--sage); text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform 240ms var(--ease-out); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Buttons: feedback on press, instantly ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 0.9375rem/1 var(--font-body); letter-spacing: 0.02em; text-decoration: none; white-space: nowrap;
  cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 260ms var(--ease-out);
}
.btn:active, .btn.is-pressed { transform: scale(0.97); transition-duration: 200ms, 200ms, 200ms, 90ms; }
.btn--primary { background: var(--sage); color: #fff; }
.btn--primary:hover { background: var(--sage-deep); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--sage); color: var(--sage); background: rgba(77, 104, 96, 0.05); }
.btn--light { background: #fff; color: var(--sage); }
.btn--light:hover { background: var(--cream); }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 0.875rem; }
.btn--block { width: 100%; }

.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(62, 55, 53, 0.06); cursor: pointer; transition: background-color 200ms, transform 90ms;
}
.icon-btn:hover { background: rgba(62, 55, 53, 0.1); }
.icon-btn:active { transform: scale(0.92); }

/* ---------- Navigation: translucent material, content scrolls beneath ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(251, 250, 246, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}
/* Scroll-edge effect instead of a hard divider — only once content is underneath */
.nav::after {
  content: ""; position: absolute; inset: 100% 0 auto; height: 18px; pointer-events: none;
  background: linear-gradient(rgba(62, 55, 53, 0.07), transparent);
  opacity: 0; transition: opacity 240ms var(--ease-out);
}
.nav[data-scrolled]::after { opacity: 1; }
.nav__inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.nav__logo { flex: none; display: block; padding: 6px 0; }
.nav__logo img { width: 132px; height: auto; }
.nav__links { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 0; border-radius: 999px;
  background: transparent; font-weight: 400; font-size: 0.9375rem; letter-spacing: 0.015em; color: var(--ink);
  text-decoration: none; cursor: pointer; transition: background-color 160ms, color 160ms;
}
.nav__link:hover, .nav__trigger[aria-expanded="true"] { background: rgba(77, 104, 96, 0.08); color: var(--sage); }
.nav__link[aria-current="page"] { color: var(--sage); font-weight: 600; }
.nav__trigger svg { transition: transform 260ms var(--ease-out); }
.nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__actions { display: flex; align-items: center; gap: 16px; flex: none; }
.nav__phone { font-weight: 400; font-size: 0.9375rem; text-decoration: none; color: var(--ink-2); }
.nav__phone:hover { color: var(--sage); }
.nav__burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; position: relative; }
.nav__burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); border-radius: 2px; }
.nav__burger span:first-child { top: 17px; }
.nav__burger span:last-child { bottom: 17px; }

/* Mega menu grows from its trigger (transform-origin set by JS) */
.nav__menu { position: static; }
.mega {
  position: absolute; left: 50%; top: calc(var(--nav-h) - 6px); width: min(1180px, calc(100vw - 2 * var(--gutter)));
  translate: -50% 0; padding: 28px; border-radius: var(--radius);
  background: rgba(251, 250, 246, 0.94);
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, 0.7);
  opacity: 0; transform: translateY(-6px) scale(0.985); filter: blur(4px);
  transition: opacity 180ms var(--ease-in), transform 200ms var(--ease-in), filter 180ms var(--ease-in);
}
.mega[data-open] {
  opacity: 1; transform: none; filter: none;
  transition: opacity 260ms var(--ease-out), transform 360ms var(--ease-out), filter 260ms var(--ease-out);
}
.mega__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.35fr); gap: 28px; }
.mega__title { font: 600 0.75rem/1.4 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); margin: 4px 0 12px; }
.mega__group a { display: block; padding: 7px 0; font-size: 0.9375rem; font-weight: 400; text-decoration: none; color: var(--ink); transition: color 140ms; }
.mega__group a:hover { color: var(--sage); }
.mega__feature { position: relative; display: block; border-radius: var(--radius-sm); overflow: hidden; min-height: 220px; text-decoration: none; }
.mega__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.mega__feature:hover img { transform: scale(1.03); }
.mega__feature-text {
  position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 16px; border-radius: 14px;
  background: rgba(251, 250, 246, 0.82); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.mega__feature-text .eyebrow { margin-bottom: 6px; }
.mega__feature-title { display: block; font-family: var(--font-display-text); font-weight: 500; font-size: 1.125rem; line-height: 1.25; color: var(--ink); }

/* About and Blog dropdowns share the mega menu's material and motion */
.nav__menu--drop { position: relative; }
.dropdown {
  position: absolute; left: 50%; top: calc(100% + 12px); width: 290px; translate: -50% 0; padding: 8px; border-radius: var(--radius);
  background: rgba(251, 250, 246, 0.94);
  -webkit-backdrop-filter: blur(28px) saturate(180%); backdrop-filter: blur(28px) saturate(180%);
  box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, 0.7);
  opacity: 0; transform: translateY(-6px) scale(0.985); filter: blur(4px);
  transition: opacity 180ms var(--ease-in), transform 200ms var(--ease-in), filter 180ms var(--ease-in);
}
/* Bridges the gap under the trigger so the pointer can travel into the panel */
.dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.dropdown[data-open] {
  opacity: 1; transform: none; filter: none;
  transition: opacity 260ms var(--ease-out), transform 360ms var(--ease-out), filter 260ms var(--ease-out);
}
.dropdown a { display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; text-decoration: none; transition: background-color 140ms; }
.dropdown a:hover, .dropdown a:focus-visible { background: rgba(77, 104, 96, 0.08); }
.dropdown__title { font-size: 0.9375rem; font-weight: 600; color: var(--ink); transition: color 140ms; }
.dropdown a:hover .dropdown__title { color: var(--sage); }
.dropdown__desc { font-size: 0.8125rem; font-weight: 400; line-height: 1.4; color: var(--ink-2); }

/* ---------- Scrim, drawer, sheet (motion driven by JS springs) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(34, 31, 30, 0.38); opacity: 0; }
.drawer-root, .sheet-root { position: fixed; inset: 0; z-index: 80; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 88vw);
  display: flex; flex-direction: column; background: var(--paper); box-shadow: var(--shadow-lg);
  transform: translateX(100%); touch-action: pan-y; will-change: transform;
}
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.drawer__nav { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer__nav > a, .drawer__nav summary {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display-text); font-weight: 500; font-size: 1.35rem; text-decoration: none; cursor: pointer; list-style: none;
}
.drawer__nav summary::-webkit-details-marker { display: none; }
.drawer__nav summary::after { content: "+"; font-family: var(--font-body); font-weight: 300; font-size: 1.5rem; color: var(--sage); transition: transform 240ms var(--ease-out); }
.drawer__nav details[open] summary::after { transform: rotate(45deg); }
.drawer__nav details a { display: block; padding: 10px 4px 10px 16px; font-size: 1rem; font-weight: 400; text-decoration: none; color: var(--ink-2); }
.drawer__foot { display: grid; gap: 10px; padding: 20px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }

.sheet {
  position: absolute; left: 50%; top: 50%; width: min(620px, calc(100vw - 48px)); max-height: calc(100dvh - 48px);
  overflow-y: auto; overscroll-behavior: contain; background: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  translate: -50% -50%; opacity: 0; will-change: transform, opacity;
}
.sheet__grabber { display: none; }
.sheet__close { position: absolute; top: 16px; right: 16px; z-index: 1; }
.sheet__body { padding: clamp(28px, 5vw, 44px); }
.sheet__lede { color: var(--ink-2); margin: 12px 0 28px; }
.sheet__done { text-align: center; display: grid; justify-items: center; gap: 8px; padding-block: 56px; }
.sheet__done img { width: 88px; margin-bottom: 8px; }

@media (max-width: 719px) {
  .sheet {
    left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 92dvh; translate: none; opacity: 1;
    border-radius: 24px 24px 0 0; transform: translateY(100%); padding-bottom: env(safe-area-inset-bottom);
    /* Paper continues below the edge so a springy return never reveals a gap */
    box-shadow: 0 120px 0 var(--paper), var(--shadow-lg);
  }
  .sheet__grabber { display: block; position: sticky; top: 0; z-index: 2; height: 28px; margin-bottom: -28px; touch-action: none; cursor: grab; }
  .sheet__grabber span { display: block; width: 40px; height: 5px; margin: 10px auto 0; border-radius: 3px; background: rgba(62, 55, 53, 0.22); }
  .sheet__body { padding-top: 36px; }
}

/* ---------- Forms: validate inline, not on submit ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.03em; color: var(--ink); padding: 0; }
.optional { font-weight: 400; color: var(--ink-2); margin-left: 4px; }
.field input, .field select, .field textarea {
  width: 100%; height: 50px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--white); font: 400 1rem var(--font-body); color: var(--ink); appearance: none;
  transition: border-color 160ms, box-shadow 160ms;
}
.field textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%234d6860' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage); box-shadow: 0 0 0 4px rgba(77, 104, 96, 0.16); }
.field__msg { min-height: 0; margin: 0; font-size: 0.8125rem; font-weight: 400; color: var(--error); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--error); }
.field.is-valid input { border-color: rgba(77, 104, 96, 0.55); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 0.875rem; font-weight: 400; cursor: pointer; transition: background-color 160ms, color 160ms, border-color 160ms, transform 90ms;
}
.chip span:active { transform: scale(0.96); }
.chip input:checked + span { background: var(--sage); border-color: var(--sage); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--sage); outline-offset: 2px; }
.field.is-invalid .chip span { border-color: var(--error); }
.form__privacy { margin: 0; font-size: 0.8125rem; font-weight: 400; color: var(--ink-2); }
.form__error { margin: 0; padding: 12px 16px; border-radius: var(--radius-sm); background: rgba(155, 44, 31, 0.08); font-size: 0.875rem; font-weight: 400; color: var(--error); }
.form__error[hidden] { display: none; }
/* Honeypot: off-screen for people and screen readers, still present for bots that fill every field */
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field[hidden] { display: none; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- CTA band + footer ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--sage-mist); text-align: center; padding-block: clamp(72px, 9vw, 120px); }
.cta-band__leaf { position: absolute; width: 300px; right: -40px; top: -30px; opacity: 0.55; pointer-events: none; transform: rotate(-12deg); }
.cta-band__inner { position: relative; max-width: 760px; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

.footer { background: var(--cream); padding-top: clamp(56px, 7vw, 88px); font-size: 0.9375rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer__brand img { width: 104px; margin-bottom: 16px; }
.footer__brand p { max-width: 26ch; color: var(--ink-2); margin: 0 0 20px; }
.footer__title { font: 600 0.75rem/1.4 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); margin: 0 0 14px; }
.footer__col { display: grid; align-content: start; gap: 8px; }
.footer__col a { text-decoration: none; font-weight: 400; }
.footer__col a:hover { color: var(--sage); text-decoration: underline; }
.footer address { font-style: normal; font-weight: 400; }
.footer__muted { margin: 0; color: var(--ink-2); }
.footer__social { display: flex; gap: 8px; }
.footer__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--sage); transition: background-color 160ms, color 160ms; }
.footer__social a:hover { background: var(--sage); color: #fff; }
.footer__social svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding-block: 24px; border-top: 1px solid var(--line); font-size: 0.8125rem; font-weight: 400; color: var(--ink-2); }
.footer__legal p { margin: 0; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
/* Above the fold never waits on script: it animates in on load */
.hero .reveal, .page-hero .reveal, .welcome .reveal { opacity: 1; transform: none; transition: none; animation: enter 900ms var(--ease-out) backwards; }
@keyframes enter { from { opacity: 0; transform: translateY(16px); } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Responsive chrome ---------- */
@media (max-width: 1240px) { .nav__phone { display: none; } }
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__burger { display: block; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .nav__actions .btn { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; transition: opacity 300ms ease; }
  .hero .reveal, .page-hero .reveal, .welcome .reveal { animation: fade-in 300ms ease backwards; }
  .mega, .mega[data-open], .dropdown, .dropdown[data-open] { transform: none; filter: none; transition: opacity 160ms ease; }
  .btn:active, .btn.is-pressed, .icon-btn:active, .chip span:active { transform: none; }
  .link-arrow::after, .mega__feature img { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .mega, .dropdown, .mega__feature-text { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(62, 55, 53, 0.35); --line-strong: rgba(62, 55, 53, 0.6); --ink-2: #3e3735; }
  .nav { background: var(--paper); border-bottom: 1px solid var(--ink); }
}

/* ---------- WordPress admin bar (logged-in reviewers) ---------- */
.admin-bar .nav { top: 32px; }
.admin-bar .subnav { top: calc(var(--nav-h) + 32px); }
@media (max-width: 782px) { .admin-bar .nav { top: 46px; } .admin-bar .subnav { top: calc(var(--nav-h) + 46px); } }
@media (max-width: 600px) { .admin-bar .nav { top: 0; } .admin-bar .subnav { top: var(--nav-h); } }
