/* ============================================================
   A Life Code — landing
   Brand system (from the A Life Code brand deck):
     Ivory page · Pearl sections · Charcoal Ink text/buttons
     Champagne Gold + Gold Dark accents · Heartbeat Mark.
   Editorial serif (Cormorant Garamond) + neutral sans
   (Hanken Grotesk) + mono labels (IBM Plex Mono);
   IBM Plex Sans Arabic for RTL.
   ============================================================ */

:root {
  /* ── brand palette (exact, from the deck) ── */
  --ivory:      #F5F1EB;   /* primary background */
  --pearl:      #EDE8DF;   /* secondary background · sections · raised cards */
  --ink2:       #1A1714;   /* Charcoal Ink — wordmark · headlines · buttons */
  --gold-l:     #C9A870;   /* Champagne Gold — mark stroke · "Code" · CTA hover */
  --gold:       #9A7840;   /* Gold Dark — eyebrow labels · icon accents · links */
  --muted:      #6A6258;   /* body text · descriptions · labels */
  --rule:       #D0C8B8;   /* borders · dividers (baseline 20%) */

  /* opacity variants of Charcoal / Ivory (hairlines on light & dark bands) */
  --line:       rgba(26, 23, 20, 0.14);
  --line-soft:  rgba(26, 23, 20, 0.07);
  --line-dark:  rgba(245, 241, 235, 0.16);

  /* type */
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --arabic:'IBM Plex Sans Arabic', system-ui, sans-serif;

  /* shape + motion — squared, editorial */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 6px;
  --shadow: 0 1px 2px rgba(26,23,20,.04), 0 12px 32px -12px rgba(26,23,20,.16);
  --shadow-lg: 0 2px 6px rgba(26,23,20,.05), 0 30px 60px -24px rgba(26,23,20,.26);
  --ease: cubic-bezier(.2,.7,.2,1);
  --wrap: 1180px;
}

/* RTL swaps all faces to Arabic (Cormorant/Plex Mono have no Arabic glyphs) */
html[dir="rtl"] {
  --serif: 'IBM Plex Sans Arabic', sans-serif;
  --sans:  'IBM Plex Sans Arabic', sans-serif;
  --mono:  'IBM Plex Sans Arabic', sans-serif;
}

* { 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(--sans);
  color: var(--muted);
  background: var(--ivory);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[dir="rtl"] body { letter-spacing: 0; line-height: 1.85; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 28px; }

/* skip link — hidden by moving UP (never sideways: a horizontal offset blows out
   the layout width in RTL and zooms mobile out to desktop size). */
.skip {
  position: absolute; inset-inline-start: 24px; top: 8px; z-index: 100;
  transform: translateY(-180%); transition: transform .2s var(--ease);
  background: var(--ink2); color: var(--ivory); padding: 12px 18px; border-radius: var(--r-sm);
}
.skip:focus { transform: translateY(0); }

/* ── typography helpers ── */
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; display: inline-block; width: 26px; height: 1px;
  background: var(--gold); margin-inline-end: 12px; vertical-align: middle;
}
html[dir="rtl"] .eyebrow { letter-spacing: .04em; }

.section-title {
  font-family: var(--serif);
  font-weight: 500; font-size: clamp(2.1rem, 1.2rem + 3vw, 3.5rem);
  line-height: 1.06; letter-spacing: -0.01em; color: var(--ink2);
}
.section-title em { font-style: italic; color: var(--gold); }
html[dir="rtl"] .section-title { letter-spacing: 0; line-height: 1.35; font-weight: 600; }
html[dir="rtl"] .section-title em { font-style: normal; }

.section-sub { font-size: 1.12rem; color: var(--muted); max-width: 60ch; margin-top: 18px; }

/* ── buttons — squared, mono uppercase ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--mono); font-weight: 500; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 16px 28px; border-radius: var(--r-sm); border: 1px solid transparent;
  cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease),
              background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  white-space: nowrap;
}
html[dir="rtl"] .btn { letter-spacing: 0; font-weight: 600; font-size: .95rem; }
.btn-sm { padding: 11px 20px; font-size: .74rem; }
html[dir="rtl"] .btn-sm { font-size: .88rem; }
.btn-block { width: 100%; padding-block: 18px; }
/* Charcoal Ink button; Champagne Gold on hover (per deck: "CTA hover") */
.btn-solid { background: var(--ink2); color: var(--ivory); box-shadow: var(--shadow); }
.btn-solid:hover { background: var(--gold-l); color: var(--ink2); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--ink2); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink2); transform: translateY(-2px); }

/* ───────────────────────── Header ───────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ivory) 84%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 74px; }

/* ── brand lockup: Heartbeat Mark + serif wordmark ── */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark { flex: none; width: 48px; height: 24px; display: block; }
.brand-mark svg { display: block; width: 100%; height: 100%; overflow: visible; }
.mark-base { stroke: var(--ink2); stroke-opacity: .2; stroke-width: 2; stroke-linecap: round; }
.mark-pulse { stroke: var(--gold-l); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* wordmark: Cormorant Garamond, 300, italic, 0.04em — "A Life" ink · "Code" champagne */
.brand-word {
  font-family: var(--serif); font-weight: 300; font-style: italic; font-size: 1.62rem;
  letter-spacing: .04em; color: var(--ink2); white-space: nowrap; line-height: 1;
}
.brand-word em { font-style: italic; color: var(--gold-l); }
/* keep the Latin brand name in Cormorant even on the Arabic (RTL) page */
html[dir="rtl"] .brand-word { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 300; font-size: 1.5rem; }

.nav { display: flex; gap: 30px; margin-inline-start: auto; }
.nav a { font-size: .96rem; color: var(--ink2); opacity: .82; transition: opacity .25s; position: relative; }
.nav a::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: -6px; height: 1px; width: 0;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav a:hover { opacity: 1; } .nav a:hover::after { width: 100%; }
.nav-cta { display: none; } /* in-menu CTA: only shown in the mobile dropdown */
.header-actions { display: flex; align-items: center; gap: 14px; }
.nav + .header-actions { margin-inline-start: 0; }

.lang-toggle {
  background: transparent; border: 1px solid var(--rule); border-radius: var(--r-sm);
  padding: 8px 14px; font-family: var(--mono); font-weight: 500; font-size: .78rem;
  color: var(--ink2); cursor: pointer; display: inline-flex; gap: 5px; letter-spacing: .06em;
  transition: border-color .25s, background .25s;
}
.lang-toggle:hover { border-color: var(--ink2); }
.lang-sep { opacity: .4; }
html[lang="en"] .lang-ar, html[lang="ar"] .lang-en { opacity: .4; }
html[lang="en"] .lang-en, html[lang="ar"] .lang-ar { color: var(--gold); }

/* hamburger — only shown on mobile (see responsive block) */
.nav-toggle {
  display: none; flex: none; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--rule); border-radius: var(--r-sm);
  color: var(--ink2); cursor: pointer; transition: border-color .25s, background .25s;
}
.nav-toggle:hover { border-color: var(--ink2); }
.nav-toggle-bars { position: relative; display: block; width: 20px; height: 14px; }
.nav-toggle-bars span {
  position: absolute; inset-inline-start: 0; width: 100%; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }
.site-header.menu-open .nav-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.site-header.menu-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.site-header.menu-open .nav-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* ───────────────────────── Hero ───────────────────────── */
.hero { position: relative; padding-top: clamp(56px, 7vw, 110px); padding-bottom: clamp(56px, 7vw, 100px); overflow: hidden; }
.hero-atmosphere {
  position: absolute; inset: -20% -10% auto -10%; height: 120%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(42% 52% at 78% 8%, rgba(201, 168, 112, .30), transparent 70%),
    radial-gradient(46% 56% at 10% 4%, rgba(201, 168, 112, .16), transparent 72%),
    radial-gradient(60% 60% at 50% 122%, rgba(26, 23, 20, .05), transparent 70%);
  filter: saturate(104%);
}
.hero-inner { position: relative; z-index: 1; max-width: 920px; }
.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.9rem, 1.3rem + 6vw, 5.8rem); line-height: 1.02; letter-spacing: -0.02em;
  color: var(--ink2); margin-bottom: 26px;
}
/* gold italic tail flows inline, as in the brand reference */
.hero-title em { font-style: italic; color: var(--gold); }
html[dir="rtl"] .hero-title { letter-spacing: 0; line-height: 1.3; font-weight: 600; }
html[dir="rtl"] .hero-title em { font-style: normal; }
.hero-sub { font-size: clamp(1.1rem, .98rem + .5vw, 1.32rem); color: var(--muted); max-width: 62ch; margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 64px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px); border-top: 1px solid var(--rule); padding-top: 32px; }
.stat dt { font-family: var(--serif); font-size: clamp(2rem, 1.3rem + 1.8vw, 2.9rem); font-weight: 500; color: var(--ink2); line-height: 1; }
html[dir="rtl"] .stat dt { font-weight: 600; }
.stat dd {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-top: 10px; max-width: 24ch; line-height: 1.7;
}
html[dir="rtl"] .stat dd { letter-spacing: 0; font-size: .85rem; }

/* ───────────────────────── Trust strip ───────────────────────── */
.trust { background: var(--pearl); padding-block: clamp(44px, 6vw, 72px); border-block: 1px solid var(--rule); }
.trust-line {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(1.35rem, 1rem + 1.4vw, 2.1rem); line-height: 1.4; letter-spacing: 0;
  max-width: 46ch; color: var(--ink2);
}
html[dir="rtl"] .trust-line { font-style: normal; line-height: 1.7; font-weight: 500; max-width: 40ch; }

/* ───────────────────────── Sections ───────────────────────── */
.section { padding-block: clamp(72px, 9vw, 130px); }
.section-head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 72px); }

/* Pillars — "The System" on ivory, pearl cards */
.system { background: var(--ivory); }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pillar {
  position: relative; background: var(--pearl);
  border: 1px solid var(--rule); border-top: 2px solid var(--gold-l);
  border-radius: var(--r-md); padding: 28px 26px 32px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold-l); }
.pillar-num { font-family: var(--mono); font-size: .82rem; color: var(--gold); letter-spacing: .18em; }
.pillar-icon { display: block; width: 30px; height: 30px; color: var(--gold); margin: 18px 0 16px; }
.pillar-icon svg { width: 100%; height: 100%; }
.pillar h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; color: var(--ink2); margin-bottom: 10px; }
.pillar p { font-size: .96rem; color: var(--muted); }

/* How — the journey as an editorial numbered list, on pearl */
.how { background: var(--pearl); }
.steps { list-style: none; display: grid; grid-template-columns: 1fr; gap: 0; max-width: 820px; }
.step {
  display: grid; grid-template-columns: 72px 1fr; align-items: start;
  padding-block: 30px; border-top: 1px solid var(--rule);
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step-k { font-family: var(--mono); font-size: .85rem; font-weight: 500; color: var(--gold); letter-spacing: .1em; padding-top: 10px; }
.step h3 { font-family: var(--serif); font-weight: 500; font-size: 1.75rem; color: var(--ink2); grid-column: 2; margin-bottom: 8px; }
.step p { font-size: 1rem; color: var(--muted); grid-column: 2; max-width: 58ch; }
html[dir="rtl"] .step h3 { font-weight: 600; }

/* Membership — the single deliberate Charcoal Ink anchor band */
.membership { background: var(--ink2); color: var(--ivory); position: relative; overflow: hidden; }
.membership::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 60% at 88% 0%, rgba(201, 168, 112, .22), transparent 65%),
    radial-gradient(46% 60% at 4% 100%, rgba(201, 168, 112, .12), transparent 66%);
}
.membership-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.membership .section-title { color: var(--ivory); }
.membership .section-title em { color: var(--gold-l); }
.membership .section-sub { color: rgba(245, 241, 235, .68); }
.membership .eyebrow { color: var(--gold-l); }
.membership .eyebrow::before { background: var(--gold-l); }
.membership .btn-solid { background: var(--gold-l); color: var(--ink2); margin-top: 30px; }
.membership .btn-solid:hover { background: var(--ivory); color: var(--ink2); }
.includes { list-style: none; display: grid; gap: 2px; }
.includes li {
  position: relative; padding: 18px 0 18px 38px; border-top: 1px solid var(--line-dark);
  font-size: 1.05rem; color: var(--ivory);
}
html[dir="rtl"] .includes li { padding: 18px 38px 18px 0; }
.includes li::before {
  content: ""; position: absolute; inset-inline-start: 4px; top: 22px; width: 16px; height: 16px;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A870' stroke-width='2.4'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.includes li:last-child { border-bottom: 1px solid var(--line-dark); }

/* ───────────────────────── Register ───────────────────────── */
.register { background: var(--ivory); }
.register-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 6vw, 80px); align-items: start; }
.register-intro { position: sticky; top: 110px; }
.register-assure { margin-top: 22px; font-size: .9rem; color: var(--muted); max-width: 34ch; }

.register-form { background: var(--pearl); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow); }
/* honeypot — visually hidden via clip (NOT an off-canvas offset, which overflows in RTL) */
.hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.field { margin-bottom: 20px; }
.field label, .consent span { display: block; }
.field label { font-size: .86rem; font-weight: 600; color: var(--ink2); margin-bottom: 8px; letter-spacing: .01em; }
.field input, .field select {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--ink2);
  background: var(--ivory); border: 1px solid var(--rule); border-radius: var(--r-sm);
  padding: 14px 16px; transition: border-color .25s, box-shadow .25s, background .25s;
}
html[dir="rtl"] .field input, html[dir="rtl"] .field select { font-family: var(--arabic); }
.field input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--gold); background: var(--ivory);
  box-shadow: 0 0 0 4px rgba(154, 120, 64, .16);
}
/* email + phone read left-to-right even on the Arabic (RTL) page */
.field input[type="email"], .field input[type="tel"] { direction: ltr; }
html[dir="rtl"] .field input[type="email"], html[dir="rtl"] .field input[type="tel"] { text-align: right; }

.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; inset-inline-end: 16px; top: 50%; width: 11px; height: 7px; transform: translateY(-50%);
  pointer-events: none; background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%231A1714' stroke-width='1.6'%3E%3Cpath d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
}
.field select { appearance: none; -webkit-appearance: none; padding-inline-end: 42px; cursor: pointer; }

.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .92rem; color: var(--muted); margin: 4px 0 24px; cursor: pointer; }
.consent input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--gold); flex: none; }

.btn-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(245,241,235,.4); border-top-color: var(--ivory); animation: spin .7s linear infinite; display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.is-loading .btn-label { opacity: .6; }
.is-loading .btn-spinner { display: inline-block; }
.btn[disabled] { opacity: .75; cursor: default; transform: none; }

.form-note { margin-top: 16px; font-size: .9rem; min-height: 1.2em; }
.form-note.error { color: var(--gold); font-weight: 600; }

/* the success panel replaces the form, which sits in grid track 2 in BOTH
   directions (RTL only flips the visual order) — so no RTL override here */
.register-success { text-align: center; padding: clamp(40px, 6vw, 72px) 30px; background: var(--pearl); border: 1px solid var(--rule); border-radius: var(--r-lg); box-shadow: var(--shadow); grid-column: 2; align-self: start; }
.success-mark { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: rgba(201, 168, 112, .16); color: var(--gold); margin-bottom: 22px; }
.success-mark svg { width: 28px; height: 28px; }
.register-success h3 { font-family: var(--serif); font-weight: 500; font-size: 1.8rem; color: var(--ink2); margin-bottom: 10px; }
.register-success p { color: var(--muted); max-width: 36ch; margin-inline: auto; }

/* ───────────────────────── Footer ───────────────────────── */
.site-footer { background: var(--ink2); color: var(--ivory); padding-block: 56px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand .brand { margin-bottom: 2px; }
.footer-brand .brand-word { color: var(--ivory); }
.footer-brand .brand-word em { color: var(--gold-l); }
.footer-brand p { color: rgba(245, 241, 235, .6); font-size: .95rem; }
/* mark on the charcoal footer: baselines go light, pulse stays champagne */
.site-footer .mark-base { stroke: var(--ivory); stroke-opacity: .3; }
.footer-meta { display: flex; flex-direction: column; gap: 8px; text-align: end; }
html[dir="rtl"] .footer-meta { text-align: start; }
.footer-meta a { font-family: var(--mono); font-size: .85rem; letter-spacing: .06em; color: var(--gold-l); }
.footer-rights { color: rgba(245, 241, 235, .5); font-size: .85rem; }

/* ───────────────────────── Reveal motion ───────────────────────── */
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(20px); }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

/* ───────────────────────── Responsive ───────────────────────── */
@media (max-width: 980px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .membership-grid, .register-grid { grid-template-columns: 1fr; }
  .register-intro { position: static; }
  .register-success { grid-column: 1; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  /* nav is absolute on mobile → brand + actions are the only in-flow items;
     space-between sends the logo to one edge and lang+menu to the other. */
  .header-inner { gap: 12px; justify-content: space-between; }
  .nav-toggle { display: inline-flex; }

  /* nav becomes a slide-down panel anchored under the sticky header */
  .nav {
    display: flex; flex-direction: column; gap: 0; margin-inline-start: auto;
    position: absolute; top: 100%; inset-inline: 0;
    padding: 6px 28px 18px;
    background: color-mix(in srgb, var(--ivory) 97%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--rule); box-shadow: var(--shadow-lg);
    /* closed state — collapsed and inert until toggled */
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .26s var(--ease), transform .26s var(--ease), visibility .26s;
  }
  .site-header.menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav > a:not(.nav-cta) {
    padding: 16px 2px; font-size: 1.06rem; opacity: 1;
    border-top: 1px solid var(--line-soft);
  }
  .nav > a:not(.nav-cta):first-child { border-top: 0; }
  .nav > a:not(.nav-cta)::after { display: none; }
  /* CTA moves into the menu on mobile so the header never crowds */
  .header-cta { display: none; }
  .nav a.nav-cta { display: inline-flex; margin-top: 16px; color: var(--ivory); opacity: 1; }
  .nav a.nav-cta:hover { color: var(--ink2); }
  .nav a.nav-cta::after { display: none; }

  .brand-mark { width: 40px; height: 20px; }
  .brand-word { font-size: 1.36rem; }
  .pillars { grid-template-columns: 1fr; }
  .step { grid-template-columns: 48px 1fr; }
  .hero-cta .btn { flex: 1 1 auto; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-meta { text-align: start; }
}
