/* =========================================================
   NAWA | نواة — Landing page
   Tokens come from the Brand Identity Guidelines v01 (2026).
   Ratio: 70% ink/paper · 20% sand/cedar · 10% clay.
   Vocabulary: node · link · orbit. No gradients, no arrows, no sharp corners.
   ========================================================= */

:root {
  /* Core palette (guidelines p.20) */
  --ink: #211F1C;          /* حبر النواة — primary ground */
  --paper: #F5EAD8;        /* ورق — light ground / text on dark */
  --sand: #EBDDC5;         /* رمل — surface */
  --cedar: #3D472B;        /* سدر داكن — secondary ground */
  --clay: #C67139;         /* طين — accent / action */
  --clay-light: #F6A06B;   /* طين فاتح — accent on dark */

  /* Supporting tones used inside the guidelines themselves */
  --surface: #302C27;      /* cards on ink */
  --cedar-2: #56633F;      /* cedar tint (section dividers) */
  --sage: #8FA073;         /* secondary node colour */
  --clay-deep: #8C491A;    /* accent ground, clay text on light */

  --paper-muted: #B8AE9E;  /* secondary text on ink */
  --ink-muted: #5C554B;    /* secondary text on paper/sand */
  --line-dark: rgba(245, 234, 216, 0.14);
  --line-light: rgba(33, 31, 28, 0.14);

  /* Type (guidelines p.21) */
  --f-ar-display: "Lalezar", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-ar-text: "IBM Plex Sans Arabic", "Figtree", system-ui, sans-serif;
  --f-lat-display: "Caprasimo", Georgia, serif;
  --f-lat-text: "Figtree", "IBM Plex Sans Arabic", system-ui, sans-serif;

  /* Space */
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --section: clamp(88px, 12vw, 168px);
  --radius: 18px;
  --radius-lg: 28px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--f-ar-text);
  font-size: 1.125rem;
  line-height: 1.85;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-ar-display); font-weight: 400; line-height: 1.3; }

[lang="en"] { font-family: var(--f-lat-text); }
.lat-d { font-family: var(--f-lat-display); }

.container { width: min(100% - var(--gutter) * 2, var(--maxw)); margin-inline: auto; }

.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--ink); padding: 10px 18px; border-radius: 999px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--clay-light); outline-offset: 3px; border-radius: 6px; }
.on-light :focus-visible { outline-color: var(--clay-deep); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Grounds ---------- */
.on-ink   { background: var(--ink); color: var(--paper); }
.on-paper { background: var(--paper); color: var(--ink); }
.on-sand  { background: var(--sand); color: var(--ink); }
.on-cedar { background: var(--cedar); color: var(--paper); }
.on-light { --muted: var(--ink-muted); --line: var(--line-light); --eyebrow: var(--clay-deep); }
.on-ink, .on-cedar { --muted: var(--paper-muted); --line: var(--line-dark); --eyebrow: var(--clay-light); }
.on-cedar { --muted: #CBC6AE; --line: rgba(245,234,216,.18); }

.section { padding-block: var(--section); position: relative; }

/* ---------- Type roles ---------- */
.eyebrow {
  font-family: var(--f-lat-text);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--eyebrow);
  display: inline-flex; gap: .75em; align-items: center; flex-wrap: wrap;
  line-height: 1.6;
}
.eyebrow .ar { font-family: var(--f-ar-text); letter-spacing: 0; text-transform: none; font-size: .9375rem; font-weight: 500; }
.eyebrow .sep { opacity: .6; }

.display {
  font-size: clamp(3.1rem, 8.6vw, 7.25rem);
  line-height: 1.18;
  letter-spacing: -.005em;
}
.h2 { font-size: clamp(2.1rem, 5vw, 4.1rem); line-height: 1.28; }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); line-height: 1.45; }

.lead { font-size: clamp(1.15rem, 1.7vw, 1.35rem); line-height: 1.9; color: var(--muted); font-weight: 300; }
.lead strong { color: inherit; font-weight: 500; }
.on-ink .lead strong, .on-cedar .lead strong { color: var(--paper); }
.on-light .lead strong { color: var(--ink); }
.muted { color: var(--muted); }

.sec-head { display: grid; gap: 22px; max-width: 820px; margin-bottom: clamp(48px, 7vw, 88px); }
.sec-head .lead { max-width: 680px; }

/* ---------- Buttons ---------- */
.btn {
  --h: 56px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--h); padding: 0 30px;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--f-ar-text); font-size: 1.0625rem; font-weight: 600; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-primary { background: var(--clay); color: var(--ink); }
.btn-primary:hover { background: var(--clay-light); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; border-color: var(--line); }
.on-ink .btn-ghost, .on-cedar .btn-ghost { border-color: rgba(245,234,216,.35); }
.on-light .btn-ghost { border-color: rgba(33,31,28,.3); }
.btn-ghost:hover { border-color: currentColor; }
.btn-lg { --h: 68px; padding: 0 44px; font-size: 1.1875rem; }
.btn-node { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }
.cta-note { font-size: .9375rem; color: var(--muted); }

.cta-band {
  margin-top: clamp(56px, 7vw, 88px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
  padding: 26px 30px; border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.cta-band p { font-size: 1.125rem; max-width: 560px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(33, 31, 28, .92);
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line-dark); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }

.lockup { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--paper); }
.lockup svg { width: 34px; height: 34px; }
.lockup .ar { font-family: var(--f-ar-display); font-size: 1.75rem; line-height: 1; padding-top: 6px; }
.lockup .en { font-family: var(--f-lat-display); font-size: .8125rem; letter-spacing: .32em; color: var(--clay-light); padding-inline-start: 12px; border-inline-start: 1px solid var(--line-dark); line-height: 1.4; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--paper-muted); font-size: 1rem; transition: color .2s; }
.nav-links a:hover { color: var(--paper); }
.nav .btn { --h: 46px; padding: 0 22px; font-size: 1rem; }
@media (max-width: 960px) { .nav-links { display: none; } }
@media (max-width: 420px) { .lockup .en { display: none; } .nav .btn { padding: 0 18px; } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 72px) clamp(72px, 9vw, 120px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(24px, 4vw, 64px); }
.hero-copy { display: grid; gap: 28px; position: relative; z-index: 2; }
.hero-questions { display: grid; gap: 4px; font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 300; color: var(--paper-muted); }
.hero-questions li { display: flex; gap: 14px; align-items: baseline; }
.hero-questions li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); flex: none; transform: translateY(-.2em); }
.hero-statement { font-size: clamp(1.1rem, 1.5vw, 1.25rem); max-width: 560px; color: var(--paper); border-inline-start: 2px solid var(--clay-light); padding-inline-start: 18px; line-height: 1.8; }
.hero-vis { position: relative; aspect-ratio: 1; width: 100%; max-width: 600px; justify-self: center; }
.hero-vis svg { width: 100%; height: 100%; overflow: visible; }
.hero-vis .v-label { font-family: var(--f-ar-text); font-size: 15px; fill: var(--paper-muted); stroke: var(--ink); stroke-width: 6px; stroke-linejoin: round; paint-order: stroke; }
.hero-vis .v-label-en { font-family: var(--f-lat-text); font-size: 10px; letter-spacing: .2em; fill: var(--clay-light); stroke: var(--ink); stroke-width: 5px; stroke-linejoin: round; paint-order: stroke; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-vis { order: -1; max-width: 420px; margin-block: -8px -24px; }
}

/* Hero build-up: nucleus → expansion → venture (runs once) */
.js .hv-orbit { transform-box: view-box; transform-origin: 50% 50%; opacity: 0; transform: scale(.4); animation: orbitIn 1.6s var(--ease) forwards; }
.js .hv-link { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s var(--ease) forwards; }
.js .hv-node, .js .hv-center, .js .hv-sat, .js .hv-label { transform-box: fill-box; transform-origin: center; opacity: 0; animation: pop .7s var(--ease) forwards; }
.js .hv-label { animation-name: fade; }
@keyframes orbitIn { to { opacity: 1; transform: scale(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes fade { to { opacity: 1; } }

/* Verbs strip */
.verbs { border-block: 1px solid var(--line-dark); }
.verbs ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; padding-block: 26px; }
.verbs li { font-family: var(--f-ar-display); font-size: clamp(1.1rem, 1.8vw, 1.45rem); display: inline-flex; align-items: center; gap: 12px; }
.verbs li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--clay-light); }
.verbs li:nth-child(even)::before { background: var(--sage); }

/* ---------- Cards grid (cases) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 28px 28px 30px;
  display: grid; gap: 14px; align-content: start; min-height: 230px;
  border: 1px solid transparent; transition: border-color .3s;
}
.card:hover { border-color: var(--line-dark); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.card-num { font-family: var(--f-lat-text); font-size: .8125rem; letter-spacing: .12em; color: var(--clay-light); }
.card p { color: var(--paper-muted); font-size: 1.0625rem; line-height: 1.8; }
.glyph { width: 56px; height: 40px; }

/* ---------- Founder Potential framework ---------- */
.fp-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .fp-grid { grid-template-columns: 1fr; } }
.fp-diagram { position: sticky; top: 110px; }
@media (max-width: 960px) { .fp-diagram { position: static; max-width: 440px; margin-inline: auto; width: 100%; } }
.fp-diagram svg { width: 100%; height: auto; overflow: visible; }
.fp-diagram .fp-node circle { fill: var(--ink); transition: fill .3s, r .3s; }
.fp-diagram .fp-node text { fill: var(--paper); font-family: var(--f-lat-text); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.fp-diagram .fp-link { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; opacity: .35; transition: opacity .3s, stroke .3s; }
.fp-diagram .fp-node.is-active circle { fill: var(--clay); }
.fp-diagram .fp-node.is-active text { fill: var(--ink); }
.fp-diagram .fp-link.is-active { stroke: var(--clay); opacity: 1; stroke-width: 3; }
.fp-caption { margin-top: 18px; font-size: .9375rem; color: var(--muted); text-align: center; }

.fp-list { border-top: 1px solid var(--line); counter-reset: fp; }
.fp-item { border-bottom: 1px solid var(--line); padding: 24px 6px; display: grid; grid-template-columns: 52px 1fr; gap: 6px 18px; cursor: default; transition: background-color .25s; border-radius: 4px; }
.fp-item:hover, .fp-item:focus-within, .fp-item.is-active { background: rgba(33,31,28,.04); }
.fp-code { font-family: var(--f-lat-text); font-size: .8125rem; font-weight: 600; letter-spacing: .08em; color: var(--clay-deep); padding-top: 6px; grid-row: span 3; }
.fp-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.fp-title h3 { font-size: 1.45rem; }
.fp-title [lang="en"] { font-size: .8125rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.fp-q { font-size: 1.125rem; }
.fp-e { font-size: .9375rem; color: var(--muted); display: flex; gap: 10px; }
.fp-e b { color: var(--clay-deep); font-weight: 600; flex: none; }
.fp-note { margin-top: 28px; font-size: 1rem; color: var(--muted); display: flex; gap: 12px; align-items: baseline; }
.fp-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--clay); flex: none; transform: translateY(-.15em); }

/* ---------- Linear node paths (process, model, comparison) ---------- */
.path { position: relative; display: grid; }
.path-node { position: relative; display: grid; gap: 10px; align-content: start; }
.dot {
  --s: 18px;
  width: var(--s); height: var(--s); border-radius: 50%;
  background: var(--paper); position: relative; z-index: 1;
  transition: background-color .5s var(--ease), transform .5s var(--ease);
}
.dot-wrap { height: 72px; display: flex; align-items: center; }

/* Process timeline */
.process { grid-template-columns: repeat(5, 1fr); gap: 0 20px; }
.process::before { content: ""; position: absolute; top: 36px; inset-inline: 0; height: 2px; background: var(--line-dark); }
.process .path-node { padding-inline-end: 8px; }
.step-num { font-family: var(--f-lat-display); font-size: 1.05rem; color: var(--clay-light); }
.step-title { font-size: 1.5rem; }
.step-en { font-family: var(--f-lat-text); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--sage); }
.step-text { color: var(--paper-muted); font-size: 1.0625rem; line-height: 1.8; }
@media (max-width: 960px) {
  .process { grid-template-columns: 1fr; gap: 0; }
  .process::before { top: 0; bottom: 0; inset-inline-start: 35px; inset-inline-end: auto; width: 2px; height: auto; }
  .process .path-node { grid-template-columns: 72px 1fr; column-gap: 18px; padding-bottom: 34px; }
  .process .dot-wrap { grid-row: span 4; justify-content: center; align-items: flex-start; height: auto; padding-top: 6px; }
  .process .path-node > :not(.dot-wrap) { grid-column: 2; }
}

.selective {
  margin-top: clamp(56px, 7vw, 88px);
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); background: var(--surface);
}
.selective h3 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.selective p { color: var(--paper-muted); margin-top: 8px; }
.selective .sel-vis { width: clamp(84px, 11vw, 132px); }
@media (max-width: 640px) { .selective { grid-template-columns: 1fr; } }

/* Venture model */
.model { grid-template-columns: repeat(9, 1fr); gap: 0 10px; }
.model::before { content: ""; position: absolute; top: 44px; inset-inline: 4%; height: 2px; background: rgba(245,234,216,.22); transform-origin: right center; }
.model .dot-wrap { height: 88px; justify-content: flex-start; }
.model .dot { background: var(--paper); }
.model .path-node:last-child .dot { background: var(--clay-light); }
.js .model .path-node:not(.is-lit) .dot { background: var(--cedar-2); transform: scale(.7); }
.model-ar { font-family: var(--f-ar-display); font-size: 1.3rem; line-height: 1.35; }
.model-en { font-family: var(--f-lat-text); font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: #CBC6AE; }
.model-text { font-size: .9375rem; line-height: 1.7; color: #DCD5C2; }
.model-idx { font-family: var(--f-lat-text); font-size: .75rem; color: var(--clay-light); letter-spacing: .1em; }
@media (max-width: 1100px) {
  .model { grid-template-columns: 1fr; gap: 0; max-width: 620px; }
  .model::before { top: 20px; bottom: 20px; inset-inline-start: 43px; inset-inline-end: auto; width: 2px; height: auto; }
  .model .path-node { grid-template-columns: 88px 1fr; column-gap: 18px; padding-bottom: 26px; }
  .model .dot-wrap { grid-row: span 4; height: auto; justify-content: center; padding-top: 4px; min-height: 40px; }
  .model .path-node > :not(.dot-wrap) { grid-column: 2; }
}
.model-foot { margin-top: clamp(48px, 6vw, 72px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; border-top: 1px solid rgba(245,234,216,.18); }
.model-foot p { font-family: var(--f-ar-display); font-size: clamp(1.4rem, 2.6vw, 2rem); }
.model-foot [lang="en"] { font-family: var(--f-lat-display); color: var(--clay-light); font-size: 1.05rem; }

/* Comparison */
.compare { display: grid; gap: 16px; }
.compare-row { border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 40px); display: grid; gap: 26px; }
.compare-row.traditional { border: 1px dashed rgba(245,234,216,.22); }
.compare-row.nawa { background: var(--surface); }
.compare-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; align-items: baseline; }
.compare-head h3 { font-size: 1.6rem; }
.compare-head [lang="en"] { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--paper-muted); }
.chain { display: flex; flex-wrap: wrap; align-items: center; row-gap: 18px; }
.chain li { display: inline-flex; align-items: center; gap: 10px; font-size: 1.125rem; }
.chain li + li::before { content: ""; width: clamp(18px, 3vw, 40px); height: 2px; background: currentColor; opacity: .3; margin-inline: 12px 2px; }
.chain .c-dot { width: var(--s, 12px); height: var(--s, 12px); border-radius: 50%; background: currentColor; flex: none; }
.traditional .chain { color: var(--paper-muted); }
.traditional .chain li:last-child .c-dot { background: transparent; border: 2px solid currentColor; }
.nawa .chain { color: var(--paper); }
.nawa .chain li:last-child .c-dot { background: var(--clay-light); }
.compare-end { font-size: 1rem; color: var(--paper-muted); }
.nawa .compare-end { color: var(--paper); }

/* Who can apply */
.who-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 960px) { .who-grid { grid-template-columns: 1fr; } }
.who-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 600px) { .who-list { grid-template-columns: 1fr; } }
.who-list li { background: var(--paper); border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 6px; }
.who-list h3 { font-size: 1.3rem; }
.who-list h3::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--clay); margin-inline-end: 12px; vertical-align: .2em; }
.who-list p { font-size: 1rem; color: var(--ink-muted); line-height: 1.75; }
.not-for { border-radius: var(--radius); padding: 28px; border: 1.5px solid rgba(33,31,28,.2); }
.not-for h3 { font-size: 1.45rem; margin-bottom: 14px; }
.not-for li { display: flex; gap: 12px; align-items: baseline; padding-block: 10px; border-top: 1px solid var(--line-light); font-size: 1.0625rem; }
.not-for li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--clay-deep); flex: none; transform: translateY(-.1em); }

/* Final CTA */
.final { text-align: center; overflow: hidden; }
.final .container { position: relative; z-index: 1; display: grid; justify-items: center; gap: 28px; }
.final h2 { font-size: clamp(2.4rem, 6.4vw, 5.4rem); max-width: 17ch; line-height: 1.25; }
.final .lead { max-width: 640px; }
.final-note { font-size: .9375rem; color: var(--paper-muted); display: inline-flex; gap: 10px; align-items: center; }
.final-orbits { position: absolute; inset: 50% auto auto 50%; width: min(1100px, 170vw); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.final-orbits circle { fill: none; stroke: var(--sage); stroke-width: 1; opacity: .28; }

/* ---------- Application form ---------- */
.apply-wrap { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .apply-wrap { grid-template-columns: 1fr; } }
.apply-aside { position: sticky; top: 110px; display: grid; gap: 22px; }
@media (max-width: 960px) { .apply-aside { position: static; } }
.apply-aside .h2 { font-size: clamp(2rem, 4vw, 3rem); }

.steps-nav { display: grid; gap: 0; margin-top: 8px; }
.steps-nav li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: center; position: relative; padding-block: 9px; color: var(--ink-muted); font-size: 1rem; }
.steps-nav li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 13px; top: 32px; height: calc(100% - 22px); width: 2px; background: var(--line-light); }
.steps-nav .s-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(33,31,28,.35); justify-self: center; background: var(--paper); z-index: 1; transition: all .3s; }
.steps-nav li.is-done .s-dot { background: var(--ink); border-color: var(--ink); }
.steps-nav li.is-current { color: var(--ink); font-weight: 600; }
.steps-nav li.is-current .s-dot { width: 18px; height: 18px; background: var(--clay); border-color: var(--clay); }
@media (max-width: 960px) {
  .steps-nav { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .steps-nav li { grid-template-columns: 1fr; justify-items: center; }
  .steps-nav li span:not(.s-dot) { display: none; }
  .steps-nav li:not(:last-child)::after { top: 50%; inset-inline-start: 50%; width: 100%; height: 2px; }
}

.form-card { background: #FBF4E8; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line-light); }
.form-step { display: grid; gap: 26px; }
.form-step[hidden] { display: none; }
.step-head { display: grid; gap: 8px; padding-bottom: 6px; }
.step-head .step-count { font-family: var(--f-lat-text); font-size: .8125rem; letter-spacing: .16em; color: var(--clay-deep); font-weight: 600; }
.step-head h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.step-head p { color: var(--ink-muted); font-size: 1rem; }

.field { display: grid; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 18px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.field > label, .field legend { font-weight: 600; font-size: 1.0625rem; line-height: 1.6; padding: 0; }
.field .req { color: var(--clay-deep); margin-inline-start: 4px; }
.field .opt { color: var(--ink-muted); font-weight: 400; font-size: .875rem; margin-inline-start: 6px; }
.field .hint { font-size: .9rem; color: var(--ink-muted); line-height: 1.6; }
.field .dim-tag { font-family: var(--f-lat-text); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--clay-deep); }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }

.input, .textarea, .select {
  width: 100%; font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid rgba(33,31,28,.18); border-radius: 14px;
  padding: 14px 16px; line-height: 1.6; transition: border-color .2s, background-color .2s;
}
.input::placeholder, .textarea::placeholder { color: #8E8577; }
.input:hover, .textarea:hover, .select:hover { border-color: rgba(33,31,28,.34); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--ink); background: #FFF9EF; }
.input[dir="ltr"] { text-align: right; }
.input[dir="ltr"]:focus, .input[dir="ltr"]:not(:placeholder-shown) { text-align: left; }
.textarea { min-height: 132px; resize: vertical; }
.select { appearance: none; background-image: none; cursor: pointer; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; inset-inline-end: 18px; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); transform: translateY(-50%); pointer-events: none; }
.field.has-error .input, .field.has-error .textarea, .field.has-error .select { border-color: #A3361C; }
.error-msg { color: #A3361C; font-size: .9rem; font-weight: 500; }
.error-msg:empty { display: none; }
.counter { font-family: var(--f-lat-text); font-size: .8125rem; color: var(--ink-muted); justify-self: end; }
.counter.is-ok { color: #4F5E36; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px;
  border-radius: 999px; border: 1.5px solid rgba(33,31,28,.2); background: var(--paper);
  font-size: 1rem; cursor: pointer; transition: all .2s; line-height: 1.4;
}
.choice span::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid rgba(33,31,28,.45); flex: none; transition: all .2s; }
.choice input:hover + span { border-color: rgba(33,31,28,.4); }
.choice input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice input:checked + span::before { background: var(--clay-light); border-color: var(--clay-light); }
.choice input:focus-visible + span { outline: 2px solid var(--clay-deep); outline-offset: 3px; }
.choice small { font-family: var(--f-lat-text); opacity: .7; font-size: .8125rem; }
.choices.stacked { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.choices.stacked .choice span { width: 100%; border-radius: 14px; }

.consent { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 14px; background: var(--sand); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin-top: 5px; accent-color: var(--ink); flex: none; }

.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line-light); }
.form-actions .btn-primary { margin-inline-start: auto; }
.form-actions .btn-back { background: transparent; border: 0; color: var(--ink-muted); font: inherit; cursor: pointer; padding: 12px 4px; font-size: 1rem; }
.form-actions .btn-back:hover { color: var(--ink); }
.form-save { font-size: .875rem; color: var(--ink-muted); }
.btn[disabled] { opacity: .6; cursor: progress; }

.form-status { border-radius: 14px; padding: 16px 18px; font-size: 1rem; margin-top: 18px; }
.form-status:empty { display: none; }
.form-status.is-error { background: #F4DCCB; color: #6E2A12; }

.form-done { text-align: center; display: grid; justify-items: center; gap: 18px; padding-block: 24px; }
.form-done h3 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.form-done p { color: var(--ink-muted); max-width: 460px; }
.form-done svg { width: 96px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 72px 40px; border-top: 1px solid var(--line-dark); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-end; }
.footer-tag { font-family: var(--f-ar-display); font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.4; }
.footer-tag [lang="en"] { display: block; font-family: var(--f-lat-display); font-size: 1rem; color: var(--clay-light); margin-top: 4px; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .875rem; color: var(--paper-muted); }

/* ---------- Reveal on scroll (progressive: only hides when JS runs) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hv-orbit, .js .hv-link, .js .hv-node, .js .hv-center, .js .hv-sat, .js .hv-label { animation: none; opacity: 1; transform: none; stroke-dashoffset: 0; }
  .dot { transition: none; }
}
