/* =====================================================================
   Darayar — Quiet Wealth × Refined Liquid Glass
   1. Fonts  2. Tokens  3. Base  4. Material (glass tiers)  5. Components
   6. Sections  7. Motion  8. Preference / capability fallbacks
   ===================================================================== */

/* ---------- 1. Fonts (self-hosted Fontsource woff2, OFL) ---------- */
@font-face { font-family: "Estedad"; font-weight: 400; font-style: normal; font-display: swap;
  src: url(../fonts/estedad-arabic-400-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Estedad"; font-weight: 500; font-style: normal; font-display: swap;
  src: url(../fonts/estedad-arabic-500-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Estedad"; font-weight: 400; font-style: normal; font-display: swap;
  src: url(../fonts/estedad-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Estedad"; font-weight: 500; font-style: normal; font-display: swap;
  src: url(../fonts/estedad-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Vazirmatn"; font-weight: 400; font-style: normal; font-display: swap;
  src: url(../fonts/vazirmatn-arabic-400-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Vazirmatn"; font-weight: 500; font-style: normal; font-display: swap;
  src: url(../fonts/vazirmatn-arabic-500-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Vazirmatn"; font-weight: 400; font-style: normal; font-display: swap;
  src: url(../fonts/vazirmatn-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Vazirmatn"; font-weight: 500; font-style: normal; font-display: swap;
  src: url(../fonts/vazirmatn-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }

/* ---------- 2. Tokens ---------- */
:root {
  /* colour — brief.md */
  --navy: #0E1625;
  --ivory: #FAF8F3;
  --white: #FFFFFF;
  --emerald: #0D8B73;        /* focus rings + selected states only */
  --cta: #0B7A65;            /* solid CTA fill (5.3:1 with white) */
  --cta-hover: #096B59;      /* 6.4:1 */
  --gold: #C8A45D;           /* small details only */
  --error: #A4262C;

  --ink: #0E1625;            /* labels on light */
  --ink-2: #5A6476;          /* secondary labels on light: 5.5:1 on ivory, 5.9:1 on white */
  --line-strong: rgb(14 22 37 / .5);  /* input boundaries: ≥3:1 on ivory */
  --on-dark: rgb(250 248 243 / .94);
  --on-dark-2: rgb(250 248 243 / .72);

  /* type */
  --font-head: "Estedad", "Vazirmatn", Tahoma, sans-serif;
  --font-body: "Vazirmatn", Tahoma, sans-serif;

  /* spacing: 4px grid */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s7: 28px; --s8: 32px;
  --s10: 40px; --s12: 48px; --s14: 56px; --s16: 64px; --s20: 80px; --s24: 96px; --s30: 120px;
  --gutter: 20px;
  --maxw: 1160px;

  /* radius — nested radii are derived: inner = outer − padding */
  --r-card: 24px;
  --r-panel: 28px;
  --r-field: 16px;
  --r-pill: 999px;
  --nav-h: 56px;
  --nav-pad: 8px;
  --nav-r: calc(var(--nav-h) / 2);                 /* 28 */
  --nav-item-h: calc(var(--nav-h) - 2 * var(--nav-pad)); /* 40 */
  --nav-item-r: calc(var(--nav-r) - var(--nav-pad));     /* 20 */
  --dock-h: 64px;
  --dock-pad: 8px;
  --dock-r: calc(var(--dock-h) / 2);               /* 32 */
  --dock-cta-r: calc(var(--dock-r) - var(--dock-pad)); /* 24 */
  --menu-pad: 6px;
  --menu-row-r: calc(var(--r-field) - var(--menu-pad)); /* 10 */
  --badge-r: 28px;
  --badge-pad: 12px;
  --badge-icon-r: calc(var(--badge-r) - var(--badge-pad)); /* 16 */

  /* material */
  --shadow-contact: 0 10px 30px rgb(8 12 20 / .12);
  --spec-shift: 0deg;  /* updated by one rAF loop in app.js */
  --rim: linear-gradient(calc(135deg + var(--spec-shift)),
          rgb(255 255 255 / .62) 0%, rgb(255 255 255 / .16) 22%, rgb(255 255 255 / .04) 55%,
          rgb(255 255 255 / .10) 80%, rgb(255 255 255 / .30) 100%);

  /* spring fallbacks (browsers without linear()) */
  --ease-morph: cubic-bezier(.22, .8, .24, 1);  --dur-morph: 628ms;
  --ease-press: cubic-bezier(.3, 1.2, .5, 1);   --dur-press: 319ms;
  --ease-hover: cubic-bezier(.25, .8, .3, 1);   --dur-hover: 400ms;
  --ease-nav:   cubic-bezier(.25, .75, .3, 1);  --dur-nav: 882ms;
}

/* Generated by tools/gen-springs.js — closed-form damped springs, 41 stops, settle within 0.1% */
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    /* morph: response 0.45, damping 0.86, settle 628ms, overshoot 0.50% */
    --ease-morph: linear(0, 0.0212, 0.0748, 0.1484, 0.2328, 0.3214, 0.4091, 0.4929, 0.5706, 0.641, 0.7036, 0.7583, 0.8055, 0.8456, 0.8793, 0.9072, 0.9301, 0.9485, 0.9632, 0.9748, 0.9837, 0.9905, 0.9955, 0.9991, 1.0017, 1.0033, 1.0043, 1.0049, 1.005, 1.0049, 1.0047, 1.0043, 1.0039, 1.0034, 1.003, 1.0026, 1.0022, 1.0018, 1.0015, 1.0012, 1);
    /* press: response 0.25, damping 0.75, settle 319ms, overshoot 2.83% */
    --ease-press: linear(0, 0.0181, 0.0654, 0.1326, 0.2123, 0.2985, 0.3865, 0.4729, 0.555, 0.6312, 0.7004, 0.7619, 0.8157, 0.8619, 0.9009, 0.9332, 0.9594, 0.9802, 0.9963, 1.0084, 1.017, 1.0228, 1.0263, 1.028, 1.0283, 1.0276, 1.0261, 1.024, 1.0217, 1.0192, 1.0167, 1.0143, 1.012, 1.0099, 1.008, 1.0063, 1.0049, 1.0036, 1.0026, 1.0017, 1);
    /* hover: response 0.3, damping 0.9, settle 400ms, overshoot 0.15% */
    --ease-hover: linear(0, 0.0193, 0.0683, 0.1358, 0.2136, 0.2956, 0.3775, 0.4563, 0.5302, 0.598, 0.6591, 0.7134, 0.7611, 0.8026, 0.8382, 0.8685, 0.8941, 0.9155, 0.9332, 0.9478, 0.9598, 0.9694, 0.9771, 0.9833, 0.9881, 0.9918, 0.9947, 0.9968, 0.9984, 0.9996, 1.0004, 1.0009, 1.0013, 1.0014, 1.0015, 1.0015, 1.0015, 1.0014, 1.0012, 1.0011, 1);
    /* nav: response 0.6, damping 1, settle 882ms, overshoot 0.00% */
    --ease-nav: linear(0, 0.0229, 0.0789, 0.1533, 0.2362, 0.3209, 0.4031, 0.4803, 0.5511, 0.6147, 0.6712, 0.7208, 0.7639, 0.8011, 0.833, 0.8602, 0.8833, 0.9028, 0.9192, 0.933, 0.9445, 0.9542, 0.9622, 0.9688, 0.9744, 0.9789, 0.9827, 0.9858, 0.9884, 0.9905, 0.9922, 0.9936, 0.9948, 0.9958, 0.9966, 0.9972, 0.9977, 0.9981, 0.9985, 0.9988, 1);
  }
}

@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; } }

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
  background: var(--ivory);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.9;
  font-weight: 400;
  color: var(--ink);
  background: var(--ivory);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; margin: 0; color: inherit; }
p, ul, ol, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.sprite, .fx-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

:focus-visible { outline: 2px solid var(--emerald); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgb(13 139 115 / .22); }

.skip {
  position: fixed; inset-inline-start: 12px; top: 12px; z-index: 100;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--cta); color: #fff; font-weight: 500;
  transform: translateY(-160%);
}
.skip:focus-visible { transform: none; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
.wrap--narrow { max-width: calc(760px + 2 * var(--gutter)); }

/* zones: brief.md light/dark mapping */
.zone-light { --text: var(--ink); --text-2: var(--ink-2); --line: rgb(14 22 37 / .1); background: var(--ivory); color: var(--text); }
.zone-dark { --text: var(--on-dark); --text-2: var(--on-dark-2); --line: rgb(250 248 243 / .14); background: var(--navy); color: var(--text); }

.section { position: relative; padding-block: var(--s20); }
.section--tight { padding-block: 0 var(--s20); }
@media (min-width: 1024px) { .section { padding-block: var(--s24); } .section--tight { padding-block: 0 var(--s24); } }
/* Below-the-fold sections skip rendering until needed. app.js renders them once at idle so the browser
   remembers their real sizes (contain-intrinsic-size: auto) — otherwise anchor jumps would aim at the
   900px estimates. Without scripting that correction can't run, so the optimisation is off. */
@media (scripting: enabled) {
  .cv { content-visibility: auto; contain-intrinsic-size: auto 900px; }
  .cv-measure .cv { content-visibility: visible; }
}

h1, h2, h3 { text-wrap: balance; }
.section__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.55; max-width: 760px; margin-block-end: var(--s10); }
.section__sub { color: var(--text-2); margin-block: calc(-1 * var(--s8)) var(--s8); }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 2; color: var(--text-2); }

/* ---------- Icons ---------- */
/* one optical size per context; stroke converts to ~1.5px at every size */
.icon { --is: 24; width: calc(var(--is) * 1px); height: calc(var(--is) * 1px); flex: none;
  fill: none; stroke: currentColor; stroke-width: calc(36 / var(--is)); stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { --is: 20; }
.icon--md { --is: 28; }
.icon--lg { --is: 32; }
:dir(rtl) .icon--dir { transform: scaleX(-1); } /* arrows/chevrons that point along the reading direction */

.wordmark { display: inline-flex; align-items: baseline; gap: 5px; font-family: var(--font-head); font-weight: 500; font-size: 1.25rem; line-height: 1; color: var(--ivory); }
.wordmark__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

.placeholder-tag { display: inline-block; font-family: var(--font-body); font-size: .8125rem; line-height: 1.6; padding: 4px 10px; border: 1px dashed currentColor; border-radius: 8px; color: var(--text-2); }
.placeholder-box { margin-block-start: var(--s8); padding: var(--s8); border: 1px dashed var(--line-strong); border-radius: var(--r-card); color: var(--text-2); text-align: center; font-size: .875rem; }

/* ---------- 4. Material ---------- */
/* Tier 0 is the default: solid (94%+) surfaces with the same rim and radii. */
.glass--dark   { --g-solid: rgb(27 37 57 / .97); --g-tint: rgb(250 248 243 / .10); --g-blur: blur(18px) saturate(160%); }
.glass--chrome { --g-solid: rgb(20 29 46 / .97); --g-tint: rgb(250 248 243 / .10); --g-blur: blur(20px) saturate(170%); }
.glass--light  { --g-solid: rgb(255 255 255 / .96); --g-tint: rgb(255 255 255 / .42); --g-blur: blur(14px) saturate(140%); }
.glass--menu   { --g-solid: rgb(255 255 255 / .97); --g-tint: rgb(255 255 255 / .78); --g-blur: blur(20px) saturate(150%); }

.glass, .glass-fill { background: var(--g-solid); }
.glass { position: relative; box-shadow: var(--shadow-contact); }

/* 1px specular rim, lit from the top-left (physical light, not mirrored for RTL) */
.glass::before, .rim {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: .85;
  transition: opacity var(--dur-press) var(--ease-press);
}
.glass--light::before, .glass--menu::before { opacity: 1; }

/* Tier 1 — frosted glass for every engine that supports backdrop-filter */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .glass-fill { background: var(--g-tint); -webkit-backdrop-filter: var(--g-blur); backdrop-filter: var(--g-blur); }
  /* mobile budget (≤4 backdrop layers): form fields sit on a smooth colour field where blur is invisible,
     so on phones they keep tint + rim without a backdrop pass */
  @media (max-width: 767px) { .control.glass { -webkit-backdrop-filter: none; backdrop-filter: none; } }
}

/* zone dim under nav / dock labels (set at design time, switched by zone) */
/* default (and no-JS) is dimmed so labels stay legible over any section; JS lifts it over navy zones */
.nav__dim { position: absolute; inset: 0; background: rgb(14 22 37 / .82); opacity: 1; transition: opacity 240ms linear; border-radius: inherit; }
/* over navy zones ivory headings can pass under the labels: keep a lighter dim, never none */
[data-zone-now="dark"] .nav__dim { opacity: .85; }

/* pointer highlight inside glass controls (fine pointer only, injected by app.js) */
.hl { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
.hl__dot { position: absolute; top: 0; left: 0; width: 140px; height: 140px; margin: -70px 0 0 -70px; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(255 255 255 / .26), rgb(255 255 255 / 0)); opacity: 0; }
.glass--light .hl__dot, .control .hl__dot { background: radial-gradient(closest-side, rgb(255 255 255 / .75), rgb(255 255 255 / 0)); }

/* ---------- 5. Components ---------- */
/* Buttons: pills. Solid CTA never becomes glass. */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s6); border: 0; border-radius: var(--r-pill);
  font-family: var(--font-body); font-weight: 500; font-size: 1rem; line-height: 1.5; white-space: nowrap;
  transition: transform var(--dur-press) var(--ease-press), background-color 160ms linear, box-shadow var(--dur-press) var(--ease-press);
  -webkit-tap-highlight-color: transparent;
}
.btn--lg { min-height: 52px; padding-inline: var(--s7); }
.btn--sm { min-height: var(--nav-item-h); padding-inline: var(--s5); font-size: .9375rem; }
.btn--block { width: 100%; }
.btn--cta { background: var(--cta); color: #fff; }
.btn--cta:hover { background: var(--cta-hover); }
.btn--cta:active { transform: translateY(-1px) scale(1.03); box-shadow: 0 10px 30px rgb(8 12 20 / .12); }
.btn--ghost { color: var(--ivory); box-shadow: inset 0 0 0 1px rgb(250 248 243 / .45); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px rgb(250 248 243 / .7); }
.btn--ghost:active { transform: translateY(-1px) scale(1.03); }
.btn:focus-visible { outline-offset: 3px; border-radius: var(--r-pill); }

.glass-control { transition: transform var(--dur-press) var(--ease-press); }
.glass-control:active { transform: scale(1.04); }
.glass-control:active::before { opacity: 1; }

.card { position: relative; background: var(--white); border-radius: var(--r-card); padding: var(--s6);
  box-shadow: 0 0 0 1px rgb(14 22 37 / .06), 0 8px 24px rgb(14 22 37 / .04); }
@media (min-width: 1024px) { .card { padding: var(--s8); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 50;
  top: calc(10px + env(safe-area-inset-top, 0px));
  left: 0; right: 0; margin-inline: auto;
  width: max-content; max-width: calc(100% - 24px);
  height: var(--nav-h);
  color: var(--ivory);
}
.nav__shadow, .nav__glass, .nav__rim { position: absolute; inset: 0; border-radius: var(--nav-r); }
.nav__shadow { box-shadow: var(--shadow-contact); }
.nav__glass { overflow: hidden; }
.nav.is-morph .nav__glass, .nav.is-morph .nav__rim { border-radius: 0; }
.nav.is-morph .nav__rim { padding: 0; -webkit-mask: none; mask: none; }
.nav__inner { position: relative; height: 100%; display: flex; align-items: center; gap: var(--s2); padding-inline: var(--nav-pad); }
.nav__brand { padding-inline: var(--s5) var(--s3); height: var(--nav-item-h); align-items: center; }
.nav__items { position: relative; display: none; align-items: center; gap: 2px; }
.nav__item { position: relative; display: inline-flex; align-items: center; height: var(--nav-item-h); padding-inline: var(--s4);
  border-radius: var(--nav-item-r); font-weight: 500; font-size: .9375rem; line-height: 1.5; color: rgb(250 248 243 / .86); }
.nav__item:hover, .nav__item[aria-current] { color: var(--ivory); }
.nav__item:focus-visible { border-radius: var(--nav-item-r); outline-offset: 0; }
.nav__drop { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 200ms linear; }
.nav__drop.is-on { opacity: 1; }
.nav__drop-fill, .nav__drop-rim { position: absolute; inset: 0; clip-path: inset(0 100% 0 0); }
.nav__drop-fill { background: rgb(250 248 243 / .14); }
.nav__drop-rim { background: var(--rim); }
.nav__cta { display: none; }
@media (min-width: 768px) {
  .nav__items { display: flex; }
  .nav__cta { display: inline-flex; margin-inline-start: var(--s2); }
  .nav__brand { padding-inline: var(--s4) var(--s3); }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: calc(var(--nav-h) + 56px) var(--s12); overflow: clip; }
.hero__inner { display: flex; flex-direction: column; align-items: flex-start; }
.hero__title { font-size: clamp(1.75rem, 1.2rem + 2.3vw, 3.25rem); line-height: 1.5; letter-spacing: -0.005em; max-width: 20ch; color: var(--ivory); }
.hero__lead { margin-block-start: var(--s5); max-width: 60ch; color: var(--on-dark-2); font-size: clamp(1rem, .95rem + .3vw, 1.1875rem); line-height: 2; }
.hero__actions { display: flex; flex-direction: column; gap: var(--s3); width: 100%; margin-block-start: var(--s8); }
.hero__note { margin-block-start: var(--s3); font-size: .875rem; color: var(--on-dark-2); }
@media (min-width: 768px) {
  .hero { padding-block: calc(var(--nav-h) + 96px) var(--s20); }
  .hero__actions { flex-direction: row; width: auto; }
}
@media (min-width: 1024px) { .hero { padding-block: calc(var(--nav-h) + 128px) var(--s24); } }

.trust { display: grid; gap: var(--s3); width: 100%; margin-block-start: var(--s10); }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(3, max-content); gap: var(--s4); margin-block-start: var(--s16); } }
.badge { display: flex; align-items: center; gap: var(--s3); min-height: 56px; padding: var(--badge-pad) var(--badge-pad) var(--badge-pad) var(--s5);
  padding-inline: var(--badge-pad) var(--s5); border-radius: var(--badge-r); font-weight: 500; font-size: .9375rem; line-height: 1.6; color: var(--ivory); }
.badge__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--badge-icon-r); flex: none;
  color: var(--gold); box-shadow: inset 0 0 0 1px rgb(200 164 93 / .45); }

/* Backdrops: what the glass bends */
.backdrop { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.backdrop__layer { position: absolute; inset: -24px 0; transform: translate3d(0, var(--py, 0px), 0); }
.blob { position: absolute; border-radius: 50%; }
.zone-dark .blob--emerald { width: 900px; height: 900px; background: radial-gradient(closest-side, rgb(13 139 115 / .34), rgb(13 139 115 / 0)); }
.zone-dark .blob--navy { width: 1000px; height: 1000px; background: radial-gradient(closest-side, rgb(58 78 116 / .5), rgb(58 78 116 / 0)); }
.zone-light .blob--emerald { width: 900px; height: 900px; background: radial-gradient(closest-side, rgb(13 139 115 / .13), rgb(13 139 115 / 0)); }
.zone-light .blob--navy { width: 900px; height: 900px; background: radial-gradient(closest-side, rgb(14 22 37 / .07), rgb(14 22 37 / 0)); }
.arcs { position: absolute; width: 760px; height: 760px; color: rgb(250 248 243 / .09); stroke-width: 1; }
.grain { position: absolute; inset: 0; opacity: .06;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.zone-light .grain { opacity: .04; filter: invert(1); }

.backdrop--hero .blob--emerald { left: -380px; bottom: -420px; }
.backdrop--hero .blob--navy { right: -420px; top: -460px; }
.backdrop--hero .arcs { left: -300px; bottom: -330px; }
@media (min-width: 1024px) { .backdrop--hero .arcs { width: 1000px; height: 1000px; left: -200px; bottom: -560px; } .backdrop--hero .blob--emerald { left: -120px; } }

/* ---------- Problem / deliverable ---------- */
.split { display: grid; gap: var(--s5); }
.split__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.55; }
@media (min-width: 1024px) { .split { grid-template-columns: 5fr 7fr; gap: var(--s16); align-items: start; } }

.deliver { display: grid; gap: var(--s5); border-top: 0; }
.deliver::after { content: ""; position: absolute; top: 0; inset-inline: var(--s6); height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .7; }
.deliver__icon { color: var(--gold); }
.deliver h2 { font-size: clamp(1.3125rem, 1.15rem + .7vw, 1.75rem); line-height: 1.6; margin-block-end: var(--s3); }
.deliver p { color: var(--text-2); }
@media (min-width: 1024px) { .deliver { grid-template-columns: auto 1fr; gap: var(--s8); padding: var(--s12); } }

/* ---------- Markets ---------- */
.markets { display: grid; gap: var(--s4); }
@media (min-width: 640px) { .markets { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .markets { grid-template-columns: repeat(4, 1fr); gap: var(--s5); } }
.market__icon { display: block; color: var(--gold); margin-block-end: var(--s5); }
.market h3 { font-size: 1.1875rem; line-height: 1.6; margin-block-end: var(--s2); }
.market p { color: var(--text-2); font-size: .9375rem; line-height: 1.9; }

.stance { margin-block-start: var(--s16); padding-block-start: var(--s10); border-top: 1px solid rgb(200 164 93 / .6); max-width: 760px; }
.stance__title { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem); line-height: 1.6; margin-block-end: var(--s3); }
.stance p { color: var(--text-2); }

/* ---------- Fit ---------- */
.fit { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .fit { grid-template-columns: 3fr 2fr; gap: var(--s5); align-items: start; } }
.fit h3 { font-size: 1.125rem; line-height: 1.6; margin-block-end: var(--s4); }
.fit__col--no { background: #F3F0E8; box-shadow: 0 0 0 1px rgb(14 22 37 / .06); }
.ticks { display: grid; gap: var(--s3); }
.ticks li { display: flex; gap: var(--s3); align-items: flex-start; line-height: 1.9; }
.tick { margin-block-start: 4px; }
.tick--yes { color: var(--gold); }
.tick--no { color: var(--ink-2); }
.fit__col--no li span { color: var(--text-2); }

/* ---------- Process ---------- */
.steps { display: grid; gap: var(--s8); counter-reset: none; }
.step { display: grid; grid-template-columns: 40px 1fr; gap: var(--s4); position: relative; }
.step__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--gold);
  font-family: var(--font-head); font-weight: 500; font-size: 1.0625rem; line-height: 1; color: var(--ink); background: var(--ivory); position: relative; z-index: 1; }
.step:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 19.5px; top: 48px; bottom: calc(-1 * var(--s8) + 8px); width: 1px; background: rgb(200 164 93 / .55); }
.step h3 { font-size: 1.125rem; line-height: 1.7; }
.step__meta { display: block; font-family: var(--font-body); font-weight: 400; font-size: .875rem; color: var(--text-2); }
.step p { margin-block-start: var(--s1); color: var(--text-2); }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: var(--s6); }
  .step { grid-template-columns: 1fr; gap: var(--s5); }
  .step:not(:last-child)::before { inset-inline-start: 48px; inset-inline-end: -16px; top: 19.5px; bottom: auto; width: auto; height: 1px; }
}

/* ---------- Advisor ---------- */
.advisor { display: grid; gap: var(--s8); align-items: center; }
.advisor__photo { position: relative; width: 100%; max-width: 320px; aspect-ratio: 4 / 5; border-radius: var(--r-card); overflow: hidden;
  background: linear-gradient(180deg, #1B2638, #141D2D); box-shadow: inset 0 0 0 1px rgb(250 248 243 / .1); display: grid; place-items: end center; }
.advisor__silhouette { width: 70%; fill: rgb(250 248 243 / .08); }
.advisor__photo .placeholder-tag { position: absolute; top: var(--s4); left: var(--s4); color: var(--on-dark-2); }
.advisor h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); line-height: 1.5; margin-block-end: var(--s4); }
.advisor h2::after { content: ""; display: block; width: 40px; height: 1px; margin-block-start: var(--s4); background: var(--gold); }
.advisor p { color: var(--text-2); font-size: clamp(1rem, .96rem + .2vw, 1.125rem); line-height: 2.05; max-width: 60ch; }
@media (min-width: 900px) { .advisor { grid-template-columns: 320px 1fr; gap: var(--s16); } }

/* ---------- Proof ---------- */
.stats { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }
.stat p { color: var(--text-2); line-height: 1.9; }
.stat__big { display: block; width: max-content; margin-block-end: var(--s3); padding-block-end: var(--s2); border-bottom: 1px solid var(--gold);
  font-family: var(--font-head); font-weight: 500; font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); line-height: 1.5; color: var(--ink); }
.stat__icon { display: block; color: var(--gold); margin-block-end: var(--s4); }

/* ---------- Pricing ---------- */
.pricing .wrap { display: grid; justify-items: center; }
.backdrop--pricing .blob--emerald { left: 50%; top: 50%; transform: translate(-80%, -40%); }
.backdrop--pricing .blob--navy { left: 50%; top: 50%; transform: translate(-10%, -70%); }
.backdrop--pricing .arcs { left: 50%; top: 50%; width: 900px; height: 900px; transform: translate(-50%, -50%); color: rgb(250 248 243 / .1); }
.price-card { width: 100%; max-width: 480px; border-radius: var(--r-panel); padding: var(--s7) var(--s6); color: var(--ivory); }
@media (min-width: 768px) { .price-card { padding: var(--s10); } }
.price-card__tag { display: flex; align-items: center; gap: var(--s2); font-size: .875rem; font-weight: 500; color: var(--gold); }
.price-card__tag::before { content: ""; width: 20px; height: 1px; background: currentColor; }
.price-card__title { margin-block: var(--s3) var(--s6); font-size: clamp(1.3125rem, 1.15rem + .7vw, 1.625rem); line-height: 1.6; }
.price-card__price { font-family: var(--font-head); font-weight: 500; font-size: clamp(2rem, 1.7rem + 1.2vw, 2.625rem); line-height: 1.3; color: var(--gold); }
.price-card__unit { font-size: 1.0625rem; color: var(--on-dark); }
.price-card__later { margin-block-start: var(--s2); font-size: .9375rem; color: var(--on-dark-2); }
.price-card__list { margin-block: var(--s6); padding-block: var(--s5); border-block: 1px solid rgb(250 248 243 / .14); }
.price-card__list li { display: flex; gap: var(--s3); align-items: flex-start; }
.price-card__list .icon { color: var(--gold); margin-block-start: 5px; }
.price-card__terms { margin-block-start: var(--s4); text-align: center; font-size: .875rem; color: var(--on-dark-2); }

/* ---------- Request form ---------- */
.request-section { overflow: clip; }
.backdrop--form { -webkit-mask: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.backdrop--form .blob--emerald { left: -300px; top: 10%; }
.backdrop--form .blob--navy { right: -360px; bottom: -10%; }
.request { position: relative; padding: var(--s7) var(--s5); }
@media (min-width: 768px) { .request { padding: var(--s10); } }
.request__fill, .request__rim { position: absolute; inset: 0; border-radius: var(--r-panel); pointer-events: none; }
.request__fill { background: rgb(255 255 255 / .3); }
.request__rim { box-shadow: inset 0 0 0 1px rgb(14 22 37 / .1); }
.request.is-morph .request__fill, .request.is-morph .request__rim { border-radius: 0; box-shadow: none; }
.request.is-morph .request__rim { background: rgb(14 22 37 / .1); }
.request__stage { position: relative; }
#request-form { display: grid; gap: var(--s7); }

.field { position: relative; border: 0; margin: 0; padding: 0; min-width: 0; }
.field__label { display: block; padding: 0; margin-block-end: var(--s2); font-weight: 500; font-size: .9375rem; line-height: 1.7; color: var(--ink); }
.field__help { margin-block-start: var(--s2); font-size: .875rem; line-height: 1.7; color: var(--ink-2); }
.field__error { margin-block-start: var(--s2); font-size: .875rem; line-height: 1.7; color: var(--error); font-weight: 500; }

.control { display: flex; align-items: center; min-height: 52px; border-radius: var(--r-field); box-shadow: inset 0 0 0 1px var(--line-strong), 0 6px 18px rgb(8 12 20 / .06); }
.control:focus-within { outline: 2px solid var(--emerald); outline-offset: 2px; }
.control[data-invalid] { box-shadow: inset 0 0 0 1.5px var(--error), 0 6px 18px rgb(8 12 20 / .06); }
.control__input { position: relative; z-index: 1; flex: 1; min-width: 0; height: 50px; padding-inline: var(--s4); background: transparent; border: 0; border-radius: inherit;
  font-family: var(--font-body); font-size: 1rem; line-height: 1.6; color: var(--ink); outline: none; }
.control__input::placeholder { color: var(--ink-2); opacity: 1; }
.control__input--ltr { text-align: right; }
.control__select { appearance: none; -webkit-appearance: none; padding-inline-end: 48px; cursor: pointer; }
.select { position: relative; }
.select__chevron { position: absolute; inset-inline-end: var(--s4); top: 50%; margin-top: -10px; color: var(--ink-2); pointer-events: none; z-index: 1;
  transition: transform var(--dur-morph) var(--ease-morph); }

/* enhanced dropdown */
.select__trigger { position: relative; z-index: 1; flex: 1; display: flex; align-items: center; height: 50px; padding-inline: var(--s4) 48px; border: 0; background: transparent;
  border-radius: inherit; text-align: start; font-size: 1rem; line-height: 1.6; color: var(--ink); }
.select__trigger:focus-visible { outline: none; }
.select__value[data-empty] { color: var(--ink-2); }
.menu { position: absolute; inset-inline: 0; z-index: 20; border-radius: var(--r-field); }
.menu__fill, .menu__rim { position: absolute; inset: 0; border-radius: inherit; }
.menu__shadow { position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--shadow-contact); transform-origin: top; }
.menu:not(.is-open) .menu__opt { transition: opacity 100ms linear, transform 100ms linear; }
.menu.is-morph .menu__fill, .menu.is-morph .menu__rim { border-radius: 0; }
.menu__rim { background: rgb(14 22 37 / .18); }
.menu:not(.is-morph) .menu__rim { background: none; box-shadow: inset 0 0 0 1px rgb(14 22 37 / .18); }
.menu__inner { position: relative; display: flex; flex-direction: column; padding: var(--menu-pad); }
.menu.is-up .menu__inner { flex-direction: column-reverse; }
.menu__head { display: flex; align-items: center; justify-content: space-between; height: 38px; padding-inline: 10px 8px; color: var(--ink-2); font-size: 1rem; cursor: pointer; }
.menu__head .icon { transform: rotate(180deg); }
.menu.is-up .menu__head .icon { transform: none; }
.menu__list { list-style: none; margin: 0; padding: 0; outline: none; }
.menu__opt { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 44px; padding-inline: 10px; border-radius: var(--menu-row-r);
  cursor: pointer; font-size: .9375rem; line-height: 1.6; color: var(--ink); }
.menu__opt .icon { color: var(--emerald); visibility: hidden; }
.menu__opt[aria-selected="true"] { font-weight: 500; }
.menu__opt[aria-selected="true"] .icon { visibility: visible; }
.menu__opt.is-active { background: rgb(14 22 37 / .06); box-shadow: inset 0 0 0 1.5px var(--emerald); }
.menu__opt:hover { background: rgb(14 22 37 / .06); }
.menu__opt { opacity: 0; transform: translateY(-4px); transition: opacity 180ms linear calc(var(--i) * 28ms + 60ms), transform var(--dur-morph) var(--ease-morph) calc(var(--i) * 28ms + 60ms); }
.menu.is-up .menu__opt { transform: translateY(4px); }
.menu.is-open .menu__opt { opacity: 1; transform: none; }
.select.is-open-src { opacity: 0; }

/* chips (real radio inputs) */
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 18px; border-radius: 22px; background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line-strong); font-weight: 500; font-size: .9375rem; line-height: 1.6; color: var(--ink); pointer-events: none;
  transition: transform var(--dur-press) var(--ease-press), box-shadow 160ms linear, background-color 160ms linear; }
.chip:hover span { box-shadow: inset 0 0 0 1px var(--ink); }
.chip input:checked + span { background: #E9F4F1; box-shadow: inset 0 0 0 2px var(--emerald); }
.chip input:focus-visible + span { outline: 2px solid var(--emerald); outline-offset: 3px; }
.chip:active span { transform: translateY(-1px) scale(1.04); }
.field[data-invalid] .chip span { box-shadow: inset 0 0 0 1px var(--error); }
.field[data-invalid] .chip input:checked + span { box-shadow: inset 0 0 0 2px var(--emerald); }

/* submit → ring → check */
.submit { display: grid; gap: 0; margin-block-start: var(--s2); }
.submit__btn { background: transparent !important; isolation: isolate; }
.submit__bg { position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--cta); transition: background-color 160ms linear, opacity 160ms linear; }
.submit__btn:hover .submit__bg { background: var(--cta-hover); }
.submit__label { transition: opacity 120ms linear; }
.submit__ring, .submit__check { position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; opacity: 0; pointer-events: none; }
.submit__ring { transition: opacity 160ms linear; }
.submit__track { fill: none; stroke: rgb(13 139 115 / .22); stroke-width: 3; }
.submit__arc { fill: none; stroke: var(--emerald); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 36 145; transform-origin: 26px 26px; }
.submit__check path, .done__mark path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 32; stroke-dashoffset: 32; }
.submit__btn.is-busy { pointer-events: none; }
.submit__btn.is-busy .submit__label { opacity: 0; }
.submit__btn.is-ring .submit__bg { opacity: 0; }
.submit__btn.is-ring .submit__ring { opacity: 1; }
.submit__btn.is-ring .submit__arc { animation: spin 900ms linear infinite; }
.submit__btn.is-done .submit__bg { opacity: 1; transition: opacity 120ms linear; }
.submit__btn.is-done .submit__ring { opacity: 0; }
.submit__btn.is-done .submit__check { opacity: 1; }
.submit__btn.is-done .submit__check path { stroke-dashoffset: 0; transition: stroke-dashoffset 360ms var(--ease-morph) 80ms; }
@keyframes spin { to { transform: rotate(360deg); } }
.submit__error { margin-block-start: var(--s3); }
.submit__privacy { margin-block-start: var(--s4); font-size: .8125rem; line-height: 1.9; color: var(--ink-2); text-align: center; }

.request__done { text-align: center; padding-block: var(--s6); outline: none; }
.request__done:target { display: block !important; }
.done__mark { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto var(--s5); border-radius: 50%; background: var(--cta); }
.done__mark svg { width: 52px; height: 52px; }
.done__mark path { stroke-dashoffset: 0; }
.done__title { font-size: clamp(1.3125rem, 1.15rem + .7vw, 1.625rem); line-height: 1.6; margin-block-end: var(--s3); }
.done__text { color: var(--ink-2); max-width: 46ch; margin-inline: auto; }

/* content swap: exit 120ms (blur 6px, scale .96, fade); enter starts 60ms after exit ends */
.swap-out { opacity: 0 !important; transform: scale(.96); filter: blur(6px); transition: opacity 120ms linear, transform 120ms ease-in, filter 120ms linear; }
.swap-in-from { opacity: 0; transform: scale(.98) translateY(6px); }
.swap-in { transition: opacity 240ms linear, transform var(--dur-morph) var(--ease-morph); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 64px; padding-block: var(--s4);
  cursor: pointer; list-style: none; font-weight: 500; font-size: 1.0625rem; line-height: 1.8; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline-offset: 2px; border-radius: 8px; }
.faq__chev { color: var(--ink-2); transition: transform var(--dur-morph) var(--ease-morph); }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__item.is-closing .faq__chev { transform: none; }
.faq__a { position: relative; }
.faq__a p { padding-block-end: var(--s5); color: var(--ink-2); max-width: 62ch; }

/* ---------- Final CTA ---------- */
.final { overflow: clip; }
.final__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.final h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.375rem); line-height: 1.55; max-width: 22ch; color: var(--ivory); }
.final .lead { margin-block: var(--s4) var(--s8); max-width: 52ch; }
.backdrop--final .blob--emerald { left: 50%; top: 40%; transform: translate(-50%, 0); }
.backdrop--final .blob--navy { left: -300px; top: -500px; }

/* ---------- Footer ---------- */
.footer { padding-block: var(--s12) calc(var(--s12) + var(--dock-h) + 24px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgb(250 248 243 / .08); }
@media (min-width: 768px) { .footer { padding-block: var(--s16); } }
.footer__inner { display: grid; gap: var(--s6); }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); }
.footer__phone { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; font-size: 1.0625rem; font-weight: 500; color: var(--ivory); }
.footer__phone .icon { color: var(--gold); }
.footer__phone:hover span { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--gold); }
.footer__social { display: flex; gap: var(--s3); justify-content: flex-end; }
.footer__disclaimer { font-size: .875rem; line-height: 2; color: var(--on-dark-2); max-width: 80ch; padding-block-start: var(--s6); border-top: 1px solid rgb(250 248 243 / .1); }
.footer__copy { font-size: .8125rem; color: var(--on-dark-2); }

/* ---------- Mobile sticky CTA bar ---------- */
.dock { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); height: var(--dock-h); padding: var(--dock-pad);
  transition: transform var(--dur-morph) var(--ease-morph), opacity 200ms linear; }
.dock__shell { position: absolute; inset: 0; border-radius: var(--dock-r); overflow: hidden; }
.dock__cta { position: relative; height: calc(var(--dock-h) - 2 * var(--dock-pad)); min-height: 0; border-radius: var(--dock-cta-r); }
.js .dock:not(.is-shown) { transform: translateY(calc(100% + 24px + env(safe-area-inset-bottom, 0px))); opacity: 0; }
@media (min-width: 768px) { .dock { display: none; } }

/* ---------- 7. Motion ---------- */
.js .reveal.pre { opacity: 0; transform: translateY(10px); }
.js .reveal.in { opacity: 1; transform: none;
  transition: opacity 420ms linear calc(var(--i, 0) * 70ms), transform var(--dur-morph) var(--ease-morph) calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal.pre { transform: none; }
  .js .reveal.in { transition: opacity 150ms linear; }
  .backdrop__layer { transform: none; }
  .btn, .glass-control, .chip span, .faq__chev, .select__chevron, .dock { transition-duration: 0ms !important; }
  .btn:active, .glass-control:active, .chip:active span { transform: none; }
  .dock { transition: opacity 150ms linear !important; }
  .js .dock:not(.is-shown) { transform: none; }
  .menu__opt { transition: opacity 150ms linear !important; transform: none !important; }
  .submit__btn.is-ring .submit__arc { animation: none; }
  .swap-out, .swap-in { transition: opacity 150ms linear !important; transform: none !important; filter: none !important; }
  .swap-in-from { transform: none; }
}

/* ---------- 8. Preference / capability fallbacks → Tier 0 ---------- */
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .glass, .glass-fill { background: var(--g-solid) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .nav__dim { display: none; }
  .blob, .grain { display: none; }
}
@media (prefers-contrast: more) {
  :root { --ink-2: #3D4656; --on-dark-2: rgb(250 248 243 / .88); --line-strong: rgb(14 22 37 / .75); }
  .glass::before, .rim { opacity: 1; }
  .btn--ghost { box-shadow: inset 0 0 0 1.5px var(--ivory); }
}
@media (forced-colors: active) {
  .glass, .card, .control, .chip span, .nav__glass, .dock__shell, .menu__fill { border: 1px solid CanvasText; }
  .btn { border: 1px solid ButtonText; }
  .submit__bg { forced-color-adjust: none; }
}
