
/* ===== tokens ===== */
/* OLYMP — design tokens
   Source: design/Design-System.dc.html (Handoff v1.0) */

:root {
  /* Surfaces */
  --bg-primary: #0B0D12;
  --bg-secondary: #151821;
  --bg-surface-2: #11141B;
  --bg-preview: #1A1D26;
  --surface-light: #F7F8FA;
  --surface-card: #FFFFFF;

  /* Text on dark */
  --text-primary: #F4F5F7;
  --text-secondary: #A6ABB6;
  --text-tertiary: #7E8491;
  --text-soft: #D5D8DE;

  /* Text on light */
  --text-dark: #16181D;
  --text-dark-2: #555B66;
  --text-dark-3: #3A3F49;
  --text-dark-muted: #6B7180;

  /* Violet — a signal, not a theme */
  --accent: #7C3AED;
  --accent-hover: #8B5CF6;
  --accent-light: #9B6CFF;
  --accent-dark: #6D28D9;
  --accent-tint: #EDE6FF;
  --accent-tint-text: #E4DAFF;
  --accent-soft: rgba(124, 58, 237, 0.18);
  --accent-soft-2: rgba(124, 58, 237, 0.10);
  --accent-line: rgba(155, 108, 255, 0.35);

  /* Hairlines */
  --line-dark: rgba(255, 255, 255, 0.08);
  --line-dark-soft: rgba(255, 255, 255, 0.06);
  --line-dark-mid: rgba(255, 255, 255, 0.14);
  --line-dark-strong: rgba(255, 255, 255, 0.18);
  --line-dark-hover: rgba(255, 255, 255, 0.45);
  --line-light: #DFE2E8;
  --line-light-soft: #E6E8ED;
  --line-light-faint: #EEF0F3;

  /* Typography */
  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --fs-display: clamp(52px, 8.2vw, 124px);
  --fs-h1: clamp(46px, 6.6vw, 96px);
  --fs-h2: clamp(36px, 4.8vw, 68px);
  --fs-h2-sm: clamp(32px, 3.6vw, 48px);
  --fs-h3: clamp(26px, 2.4vw, 32px);
  --fs-lead: clamp(18px, 1.6vw, 22px);
  --fs-body-lg: 18px;
  --fs-body: 16px;
  --fs-small: 15px;
  --fs-mono: 13px;
  --fs-mono-sm: 12px;
  --fs-tag: 11px;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(88px, 11vw, 160px);
  --section-md: clamp(88px, 10vw, 144px);
  --section-sm: clamp(72px, 8vw, 120px);
  --stack: clamp(48px, 6vw, 80px);
  --header-h: 72px;

  /* Radius */
  --r-control: 6px;
  --r-frame: 10px;
  --r-panel: 12px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 0.2s;
  --dur: 0.3s;
  --dur-reveal: 0.9s;

  /* Shadow (previews only) */
  --shadow-preview: 0 30px 80px -30px rgba(0, 0, 0, 0.7);

  /* Contextual tokens — dark context by default, overridden in .section--light */
  --c-fg: var(--text-primary);
  --c-body: var(--text-secondary);
  --c-muted: var(--text-tertiary);
  --c-line: var(--line-dark);
  --c-line-soft: var(--line-dark-soft);
  --c-eyebrow: var(--accent-light);
  --c-card: var(--bg-secondary);
  --c-bullet: var(--accent-light);
}

/* ===== base ===== */
/* OLYMP — base: reset, document, typography */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; transition: color var(--dur-fast); }

:focus-visible {
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

::selection { background: var(--accent); color: #fff; }

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

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 12px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--r-control);
  font-weight: 500;
}
.skip-link:focus { top: 12px; }

/* ---- Type scale ---- */

.display, .h1, .h2, .h2-sm, .h3 {
  font-weight: 500;
  color: var(--c-fg);
}
.display { font-size: var(--fs-display); line-height: 0.96; letter-spacing: -0.045em; text-wrap: balance; }
.h1      { font-size: var(--fs-h1);      line-height: 0.98; letter-spacing: -0.045em; text-wrap: balance; }
.h2      { font-size: var(--fs-h2);      line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.h2--sub { font-size: clamp(36px, 4.6vw, 64px); }
.h2-sm   { font-size: var(--fs-h2-sm);   line-height: 1.05; letter-spacing: -0.03em;  text-wrap: balance; }
.h3      { font-size: var(--fs-h3);      line-height: 1.15; letter-spacing: -0.02em; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--c-body);
  text-wrap: pretty;
  max-width: 600px;
}
.body-lg { font-size: var(--fs-body-lg); line-height: 1.6; color: var(--c-body); text-wrap: pretty; }
.small   { font-size: var(--fs-small);   line-height: 1.5;  color: var(--c-body); }
.muted   { color: var(--c-muted); }
.strong  { color: var(--c-fg); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-eyebrow);
}
.eyebrow--neutral { color: var(--c-body); }
.eyebrow--dot::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-light);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--fs-mono);
  color: var(--c-muted);
}
.mono--label {
  font-family: var(--font-mono);
  font-size: var(--fs-mono-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.mono--label.is-accent { color: var(--accent-light); }
.mono--label.is-light  { color: var(--text-secondary); }

.measure-sm { max-width: 420px; }
.measure    { max-width: 520px; }
.measure-lg { max-width: 760px; }
.measure-xl { max-width: 900px; }

/* ===== layout ===== */
/* OLYMP — layout primitives */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

main { display: block; }

/* Sections alternate dark / light. Light sections re-map the contextual tokens. */
.section { padding-block: var(--section); }
.section--md { padding-block: var(--section-md); }
.section--sm { padding-block: var(--section-sm); }
.section--flush-top { padding-top: 0; }

.section--light {
  background: var(--surface-light);
  color: var(--text-dark);
  --c-fg: var(--text-dark);
  --c-body: var(--text-dark-2);
  --c-muted: var(--text-dark-muted);
  --c-line: var(--line-light);
  --c-line-soft: var(--line-light-soft);
  --c-eyebrow: var(--accent-dark);
  --c-card: var(--surface-card);
  --c-bullet: var(--accent);
}
.section--light + .section--light { padding-top: clamp(48px, 6vw, 80px); }

.section--graphite {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
  border-top: 1px solid var(--accent-line);
}
.section--graphite::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
}
.section--graphite > .container { position: relative; }
.section--graphite.section--hero { border-top: 0; border-bottom: 1px solid var(--line-dark-soft); }

/* Dark theme inside a light section (e.g. "OLYMP model" card) */
.theme-dark {
  background: var(--bg-primary);
  color: var(--text-primary);
  --c-fg: var(--text-primary);
  --c-body: var(--text-secondary);
  --c-muted: var(--text-tertiary);
  --c-line: var(--line-dark);
  --c-line-soft: var(--line-dark-soft);
  --c-eyebrow: var(--accent-light);
  --c-card: var(--bg-secondary);
  --c-bullet: var(--accent-light);
}

/* Stacks */
.stack    { display: flex; flex-direction: column; gap: var(--stack); }
.stack-xs { display: flex; flex-direction: column; gap: 12px; }
.stack-sm { display: flex; flex-direction: column; gap: 20px; }
.stack-md { display: flex; flex-direction: column; gap: 28px; }
.stack-lg { display: flex; flex-direction: column; gap: clamp(40px, 5vw, 64px); }

/* Section head: eyebrow + heading, optionally a trailing paragraph / link */
.section-head {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 64px;
  justify-content: space-between;
  align-items: flex-end;
}
.section-head__title { display: flex; flex-direction: column; gap: 20px; max-width: 800px; }

/* Auto grid: set --min / --gap inline where the design differs */
.auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 320px)), 1fr));
  gap: var(--gap, 24px);
}
.auto-grid--start { align-items: start; }
.auto-grid--center{ align-items: center; }

/* Split: two columns that collapse */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.split--end    { align-items: end; }
.split--center { align-items: center; }
.split--tight  { gap: 24px 64px; }

/* Hairline rows */
.rows { display: flex; flex-direction: column; }
.row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px 0;
  border-top: 1px solid var(--c-line);
}
.row--sm { padding: 22px 0; gap: 6px; }
.row--tight { padding: 18px 0; gap: 6px; }
.row--tight .row__title { font-size: 18px; }
.row__title { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; color: var(--c-fg); }
.row__title--lg { font-size: 21px; }
.row__text { font-size: 16px; line-height: 1.55; color: var(--c-body); }
.row--numbered {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
}
.row--numbered .mono { padding-top: 4px; }

/* Joined panel of cells (levels, sectors, metrics, layers) */
.panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 320px)), 1fr));
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--r-panel);
  overflow: hidden;
}
.panel > * { background: var(--c-card); }
.panel--base > * { background: var(--bg-primary); }

/* Hairline bar for inline stats / notes */
.bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-small);
  color: var(--c-body);
}
.bar--between { justify-content: space-between; align-items: center; gap: 20px 32px; padding-top: 32px; }

/* ===== components ===== */
/* OLYMP — components */

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 17px 26px;
  border-radius: var(--r-control);
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition:
    background-color var(--dur-fast),
    border-color var(--dur-fast),
    color var(--dur-fast);
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--secondary {
  padding: 16px 24px;
  font-weight: 400;
  color: var(--text-primary);
  border-color: var(--line-dark-strong);
}
.btn--secondary:hover { border-color: var(--line-dark-hover); color: var(--text-primary); }
.btn--sm { padding: 11px 18px; font-size: 15px; }
.btn--lg { padding: 20px 28px; font-size: 17px; }
.btn--between { justify-content: space-between; }
.btn--ghost {
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  border-color: var(--line-dark-strong);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--line-dark-hover); }
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; }
.btn--primary[disabled], .btn--primary.btn--muted { background: #3A3550; }
.btn--primary.btn--muted:hover { background: #4A4566; }
.btn.is-busy { pointer-events: none; opacity: 0.8; }

.link {
  color: var(--c-fg);
  border-bottom: 1px solid color-mix(in srgb, var(--c-fg) 30%, transparent);
  padding-bottom: 4px;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.link:hover { color: var(--c-eyebrow); border-color: var(--c-eyebrow); }
.link--quiet { color: var(--c-body); border: 0; padding: 0; font-size: 15px; }
.link--quiet:hover { color: var(--c-fg); }
.link--strong { font-weight: 500; font-size: 15px; color: var(--c-fg); border: 0; padding: 0; }
.link--strong:hover { color: var(--c-eyebrow); }
.link--plain { color: var(--c-fg); border: 0; padding: 16px 8px; }
.link--plain:hover { color: var(--accent-light); }

.cta-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-stack { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

/* ---------- Tags ---------- */

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-tag);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 4px;
  border: 1px solid var(--line-dark-mid);
  color: var(--text-secondary);
  white-space: nowrap;
}
.tag--fill { border-color: transparent; background: rgba(255, 255, 255, 0.06); padding: 4px 8px; }
.tag--you { border-color: transparent; background: rgba(124, 58, 237, 0.22); color: var(--accent-tint-text); padding: 4px 8px; }
.tag--accent { border: 0; padding: 0; color: var(--c-eyebrow); letter-spacing: 0.08em; }

/* ---------- Header / navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 18, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: border-color var(--dur);
}
.site-header.is-scrolled { border-bottom-color: rgba(255, 255, 255, 0.12); }
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand__logo { height: 30px; width: auto; display: block; }

.site-nav__list { display: flex; align-items: center; gap: 28px; }
.site-nav__list a { font-size: 15px; color: var(--text-secondary); }
.site-nav__list a:hover,
.site-nav__list a[aria-current="page"] { color: var(--text-primary); }
.site-nav__actions { display: none; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-dark-strong);
  color: var(--text-primary);
  font-size: 15px;
  padding: 10px 16px;
  border-radius: var(--r-control);
  transition: border-color var(--dur-fast);
}
.nav-toggle:hover { border-color: var(--line-dark-hover); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
}
.site-footer__inner {
  padding-top: 72px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.site-footer__top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 340px; font-size: 15px; line-height: 1.6; }
.site-footer__cols {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 680px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 40px 32px;
}
.site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.site-footer__col a { font-size: 15px; color: var(--text-secondary); }
.site-footer__col a:hover { color: var(--text-primary); }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 14px;
}
.site-footer__legal { display: flex; gap: 24px; }
.site-footer__legal span { color: var(--text-tertiary); }

/* ---------- Cards ---------- */

.card {
  border-radius: var(--r-panel);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.card--lg { padding: clamp(28px, 3.4vw, 44px); gap: 24px; }
.card--surface { background: var(--bg-secondary); border: 1px solid var(--line-dark); }
.card--outline-accent { border: 1px solid var(--accent-line); }
.card--light { background: var(--surface-card); border: 1px solid var(--line-light); }
.card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card__title { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }

.bullets { display: flex; flex-direction: column; }
.bullets > li {
  display: flex;
  gap: 14px;
  font-size: 17px;
  line-height: 1.5;
  padding: 14px 0;
  border-top: 1px solid var(--c-line-soft, var(--line-dark-soft));
}
.bullets > li::before {
  content: "";
  width: 6px; height: 6px;
  margin-top: 9px;
  flex-shrink: 0;
  background: var(--c-bullet);
}
.bullets--muted > li { color: var(--text-soft); }
.bullets--muted > li::before { background: rgba(255, 255, 255, 0.35); }
.bullets--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 24px; }
.bullets--compact > li { font-size: 16px; line-height: 1.45; padding: 0; border: 0; gap: 12px; }
.bullets--compact > li::before { margin-top: 8px; }
.bullets--compact { gap: 12px; }

/* Split CTA cards (home final / about routes) */
.cta-card {
  display: flex;
  flex-direction: column;
  gap: 56px;
  min-height: 200px;
  padding: clamp(28px, 3.4vw, 44px);
  border-radius: var(--r-panel);
  color: var(--text-primary);
  transition: background-color var(--dur), border-color var(--dur);
}
.cta-card--business { background: var(--accent); color: #fff; border: 1px solid transparent; }
.cta-card--business:hover { background: var(--accent-hover); color: #fff; }
.cta-card--business .eyebrow { color: var(--accent-tint); }
.cta-card--agency { background: var(--bg-secondary); border: 1px solid rgba(255, 255, 255, 0.1); }
.cta-card--agency:hover { border-color: rgba(155, 108, 255, 0.6); color: var(--text-primary); }
.cta-card--short { justify-content: flex-end; }
.cta-card__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: auto; }
.cta-card__text { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; letter-spacing: -0.02em; max-width: 16ch; }
.cta-card__arrow { font-size: 32px; line-height: 1; }

/* ---------- Process steps ---------- */

.steps {
  display: grid;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.step {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 24px 32px 0;
  margin-top: -1px;
  border-top: 2px solid rgba(255, 255, 255, 0.3);
}
.step--you { border-top-color: var(--accent-light); }
.step__meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.step__title { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.step__text { font-size: 16px; line-height: 1.6; color: var(--text-secondary); }
.legend { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; color: var(--text-secondary); }
.legend > span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 14px; height: 2px; background: rgba(255, 255, 255, 0.3); }
.legend i.is-you { background: var(--accent-light); }

/* ---------- Levels ---------- */

.level { padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; gap: 28px; }
.level__head { display: flex; flex-direction: column; gap: 18px; }
.level__meta { display: flex; justify-content: space-between; align-items: center; }
.bars { display: flex; gap: 4px; }
.bars > i { width: 22px; height: 4px; border-radius: 2px; background: var(--line-light); }
.bars > i.is-on { background: var(--accent); }
.level__name { font-size: 36px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.level__lead { font-size: 18px; line-height: 1.45; color: var(--text-dark); }
.level__ideal {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid var(--line-light-soft);
  border-bottom: 1px solid var(--line-light-soft);
}
.level__ideal p { font-size: 16px; line-height: 1.5; color: var(--text-dark-3); }
.level__items { display: flex; flex-direction: column; gap: 12px; }
.level__plus { font-size: 15px; color: var(--text-dark-muted); }
.level__foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--text-dark-muted);
}

/* ---------- Sector cells / principle columns ---------- */

.cell { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 10px; }
.cell__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cell__title { font-size: 20px; font-weight: 500; }
.cell__text { font-size: 16px; line-height: 1.55; color: var(--c-body); }

.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0 40px; }
.cols--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 0 48px; }
.col { display: flex; flex-direction: column; gap: 10px; padding: 28px 0 36px; border-top: 1px solid var(--c-line); }
.col--numbered { gap: 12px; }
.col__title { font-size: 20px; font-weight: 500; }
.col--numbered .col__title { font-size: 22px; letter-spacing: -0.015em; }
.col__text { font-size: 16px; line-height: 1.6; color: var(--c-body); }

/* Expandable modules */
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 0 32px; }
.modules > li { font-size: 20px; padding: 16px 0; border-top: 1px solid var(--line-light); }

/* ---------- Metrics ---------- */

.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; }
.metric { display: flex; flex-direction: column; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line-dark-mid); }
.metric__value { font-size: clamp(64px, 8vw, 120px); font-weight: 500; letter-spacing: -0.05em; line-height: 0.9; }
.metric__label { font-size: 16px; line-height: 1.5; color: var(--text-secondary); }
.metric--cell { padding: 36px 32px; min-height: 200px; justify-content: flex-end; border: 0; }
.metric--cell .metric__value { font-size: clamp(48px, 5vw, 72px); letter-spacing: -0.04em; line-height: 1; }

/* ---------- Site preview (browser frame) ---------- */

.preview {
  width: 100%;
  container-type: inline-size;
  border-radius: var(--r-frame);
  overflow: hidden;
  background: var(--bg-preview);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-preview);
}
.preview__chrome {
  display: flex;
  align-items: center;
  gap: 1.6cqw;
  padding: 1.3cqw 1.8cqw;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.preview__dots { display: flex; gap: 0.8cqw; }
.preview__dots i { width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: #3A3E4A; }
.preview__url {
  flex: 1;
  display: flex;
  justify-content: center;
}
.preview__url span {
  font-family: var(--font-mono);
  font-size: 1.5cqw;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5cqw 2.4cqw;
  border-radius: 0.6cqw;
  min-width: 32cqw;
  text-align: center;
}
.preview__spacer { width: 4.6cqw; }

.preview__page {
  aspect-ratio: 16 / 10;
  background: var(--pv-bg);
  color: var(--pv-ink);
  position: relative;
  overflow: hidden;
  font-family: var(--font-sans);
}
.pv-nav { display: flex; align-items: center; justify-content: space-between; padding: 2.4cqw 4cqw; }
.pv-brand { font-family: var(--font-serif); font-size: 2.6cqw; letter-spacing: -0.01em; }
.pv-links { display: flex; gap: 3cqw; font-size: 1.35cqw; opacity: 0.75; }
.pv-cta { font-size: 1.3cqw; padding: 0.9cqw 1.8cqw; border: 1px solid var(--pv-line); border-radius: 10cqw; }
.pv-eyebrow { font-family: var(--font-mono); font-size: 1.2cqw; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.6; }
.pv-headline { font-family: var(--font-serif); line-height: 0.98; letter-spacing: -0.02em; }
.pv-body { line-height: 1.5; opacity: 0.7; }
.pv-img {
  background: repeating-linear-gradient(135deg, var(--pv-stripe-a) 0 8px, var(--pv-stripe-b) 8px 16px);
  display: flex;
  align-items: flex-end;
  padding: 1.6cqw;
}
.pv-img span { font-family: var(--font-mono); font-size: 1.2cqw; opacity: 0.6; }

/* layout: split */
.pv-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4cqw; padding: 3cqw 4cqw 0; height: 78%; }
.pv-split__copy { display: flex; flex-direction: column; justify-content: center; gap: 2.2cqw; }
.pv-split .pv-headline { font-size: 6.2cqw; }
.pv-split .pv-body { font-size: 1.5cqw; max-width: 34cqw; }

/* layout: image */
.pv-image { padding: 2cqw 4cqw 0; display: flex; flex-direction: column; gap: 2.4cqw; }
.pv-image__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 4cqw; }
.pv-image .pv-headline { font-size: 6cqw; max-width: 58cqw; }
.pv-image .pv-body { font-size: 1.4cqw; max-width: 24cqw; }
.pv-image__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.4cqw; height: 30cqw; }
.pv-image__grid .pv-img { padding: 1.4cqw; }

/* layout: text */
.pv-text { padding: 4cqw 4cqw 0; display: flex; flex-direction: column; gap: 4cqw; }
.pv-text .pv-headline { font-size: 7cqw; line-height: 0.96; max-width: 72cqw; }
.pv-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; }
.pv-service { border-top: 1px solid var(--pv-line); padding-top: 1.6cqw; display: flex; flex-direction: column; gap: 0.8cqw; }
.pv-service__n { font-family: var(--font-mono); font-size: 1.1cqw; opacity: 0.55; }
.pv-service__t { font-size: 1.8cqw; }
.pv-service__d { font-size: 1.25cqw; opacity: 0.6; line-height: 1.5; }

/* layout: booking */
.pv-booking { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4cqw; padding: 3cqw 4cqw 0; }
.pv-booking__copy { display: flex; flex-direction: column; gap: 2.2cqw; padding-top: 2cqw; }
.pv-booking .pv-headline { font-size: 6cqw; }
.pv-booking .pv-body { font-size: 1.5cqw; max-width: 36cqw; }
.pv-booking .pv-img { height: 14cqw; padding: 1.2cqw; }
.pv-form {
  background: var(--pv-card);
  border: 1px solid var(--pv-line);
  border-radius: 1.4cqw;
  padding: 2.6cqw;
  display: flex;
  flex-direction: column;
  gap: 1.8cqw;
  align-self: start;
}
.pv-form__title { font-size: 1.8cqw; font-weight: 500; }
.pv-days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.8cqw; }
.pv-days span, .pv-slots span { border: 1px solid var(--pv-line); border-radius: 0.8cqw; text-align: center; font-size: 1.2cqw; }
.pv-days span { padding: 1cqw 0; }
.pv-days span.is-on { background: var(--pv-accent); color: #fff; }
.pv-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8cqw; }
.pv-slots span { padding: 0.9cqw 0; }
.pv-submit { background: var(--pv-accent); color: #fff; border-radius: 0.8cqw; padding: 1.3cqw; text-align: center; font-size: 1.35cqw; }

/* variants */
.preview--arch    { --pv-bg: #ECE8E1; --pv-ink: #1B1A18; --pv-line: rgba(27,26,24,.25);   --pv-stripe-a: #DDD7CD; --pv-stripe-b: #D4CDC1; --pv-accent: #1B1A18; }
.preview--law     { --pv-bg: #0F1922; --pv-ink: #ECE6DA; --pv-line: rgba(236,230,218,.22); --pv-stripe-a: #16222D; --pv-stripe-b: #1B2834; --pv-accent: #ECE6DA; }
.preview--clinic  { --pv-bg: #F3F6F5; --pv-ink: #11302B; --pv-line: rgba(17,48,43,.18);   --pv-stripe-a: #E1E9E6; --pv-stripe-b: #D7E1DD; --pv-card: #FFFFFF; --pv-accent: #2F6B5E; }
.preview--consult { --pv-bg: #FAFAF8; --pv-ink: #14161B; --pv-line: rgba(20,22,27,.18);   --pv-stripe-a: #ECECE8; --pv-stripe-b: #E4E4DF; --pv-accent: #14161B; }
.preview--studio  { --pv-bg: #1C1B19; --pv-ink: #EEE9E1; --pv-line: rgba(238,233,225,.22); --pv-stripe-a: #262522; --pv-stripe-b: #2D2B28; --pv-accent: #EEE9E1; }
.preview--salon   { --pv-bg: #F4EDE7; --pv-ink: #2B1E1A; --pv-line: rgba(43,30,26,.2);    --pv-stripe-a: #E8DDD4; --pv-stripe-b: #E0D3C8; --pv-card: #FBF7F3; --pv-accent: #8A4B3A; }

/* Preview figure wrappers */
.preview-figure { display: flex; flex-direction: column; gap: 18px; }
.preview-figure--sm { gap: 16px; }
.preview-figure__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 15px;
  color: var(--text-secondary);
}
.preview-figure__caption--mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.example { display: flex; flex-direction: column; gap: 18px; }
.example__meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.example__name { font-size: 18px; font-weight: 500; }
.example__sector { font-size: 15px; color: var(--text-secondary); }
.preview-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.preview-pair > :last-child { margin-top: 48px; }

/* ---------- Comparison table ---------- */

.compare {
  overflow-x: auto;
  border: 1px solid var(--line-light);
  border-radius: var(--r-panel);
  background: var(--surface-card);
  -webkit-overflow-scrolling: touch;
}
.compare table { width: 100%; min-width: 760px; border-collapse: collapse; }
.compare th, .compare td { text-align: left; vertical-align: top; }
.compare thead th { padding: 28px 24px; border-bottom: 1px solid var(--line-light); border-left: 1px solid var(--line-light-soft); font-weight: 400; }
.compare thead th:first-child { padding: 28px; border-left: 0; vertical-align: bottom; width: 30%; }
.compare__level { display: flex; flex-direction: column; gap: 8px; }
.compare__level-name { font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.compare__level-job { font-size: 15px; line-height: 1.45; color: var(--text-dark-2); }
.compare__group th {
  padding: 16px 28px 10px;
  background: var(--surface-light);
  border-bottom: 1px solid var(--line-light-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark-muted);
}
.compare tbody td, .compare tbody th { border-bottom: 1px solid var(--line-light-faint); font-weight: 400; }
.compare tbody th[scope="row"] { padding: 16px 28px; font-size: 16px; }
.compare tbody td { padding: 16px 24px; border-left: 1px solid var(--line-light-faint); font-size: 15px; }
.compare__v { display: inline-flex; align-items: center; gap: 10px; color: var(--text-dark); }
.compare__v::before { content: ""; width: 7px; height: 7px; background: var(--accent); flex-shrink: 0; }
.compare__v--no { color: #9AA0AB; }
.compare__v--no::before { background: transparent; }
.compare tfoot th, .compare tfoot td { border: 0; vertical-align: top; }
.compare tfoot th { padding: 24px 28px; font-size: 16px; font-weight: 400; color: var(--text-dark-2); }
.compare tfoot td { padding: 24px; border-left: 1px solid var(--line-light-faint); }
.compare__invest { display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: var(--text-dark-2); }

/* ---------- Delivery flow (agency) ---------- */

.flow { display: flex; flex-direction: column; border: 1px solid var(--line-dark); border-radius: var(--r-panel); overflow: hidden; }
.flow__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-bottom: 1px solid var(--line-dark-soft); }
.flow__row:last-child { border-bottom: 0; }
.flow__head { background: var(--bg-secondary); border-bottom: 1px solid var(--line-dark); }
.flow__head > * { padding: 18px 24px; }
.flow__head > * + * { border-left: 1px solid var(--line-dark); }
.flow__cell { padding: 22px 24px; font-size: 17px; line-height: 1.45; display: flex; gap: 14px; align-items: baseline; }
.flow__cell + .flow__cell { border-left: 1px solid var(--line-dark); color: var(--text-soft); }
.flow__cell.is-empty { color: #4A4F5B; }

/* Layers (agency hero) */
.layer { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.layer--agency { background: var(--bg-primary); }
.layer--olymp  { background: var(--bg-surface-2); }
.layer__title { font-size: 22px; font-weight: 500; letter-spacing: -0.015em; }
.layer__text { font-size: 16px; line-height: 1.55; color: var(--text-secondary); }

/* Partner model cards */
.model { gap: 24px; }
.model__title { font-size: clamp(30px, 3vw, 40px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.model__text { font-size: 17px; line-height: 1.55; color: var(--text-dark-3); }
.kv { display: flex; flex-direction: column; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-light-soft); font-size: 16px; }
.kv dt { color: var(--text-dark-2); }
.kv dd { text-align: right; font-weight: 500; }
.model__fit { font-size: 15px; line-height: 1.5; color: var(--text-dark-2); margin-top: auto; }

/* ---------- FAQ ---------- */

.faq { display: flex; flex-direction: column; border-bottom: 1px solid var(--c-line); }
.faq__item { border-top: 1px solid var(--c-line); }
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-size: 19px;
  font-weight: 500;
  color: var(--c-fg);
  list-style: none;
  cursor: pointer;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--c-eyebrow);
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.faq__item[open] .faq__q::after { content: "−"; }
.faq__a { padding: 0 48px 26px 0; font-size: 17px; line-height: 1.6; color: var(--c-body); }

/* ---------- Contact ---------- */

.route-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; max-width: 760px; }
.route {
  text-align: left;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-frame);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-primary);
  transition: background-color 0.25s, border-color 0.25s;
}
.route:hover { border-color: rgba(255, 255, 255, 0.3); }
.route[aria-pressed="true"] { background: var(--accent-soft-2); border-color: var(--accent-light); }
.route__title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; }
.route__title::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 0 0 3px transparent;
  background: transparent;
  transition: border-color 0.25s, background-color 0.25s;
}
.route[aria-pressed="true"] .route__title::before {
  border-color: var(--accent-light);
  background: radial-gradient(circle, var(--accent-light) 0 3px, transparent 3.5px);
}
.route__text { font-size: 15px; color: var(--text-secondary); padding-left: 24px; }

.form-card { gap: 32px; padding: clamp(24px, 3.4vw, 44px); }
.progress { display: flex; flex-direction: column; gap: 16px; }
.progress__meta { display: flex; justify-content: space-between; gap: 12px; }
.progress__bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.progress__bars i { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); transition: background-color 0.4s; }
.progress__bars i.is-on { background: var(--accent-light); }

.form { display: flex; flex-direction: column; gap: 32px; }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.form > fieldset > legend { padding: 0; font-size: 18px; font-weight: 500; margin-bottom: 4px; }
.js .form > fieldset > legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.field > legend { padding: 0; width: 100%; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field__label { font-size: 16px; font-weight: 500; display: flex; justify-content: space-between; gap: 12px; }
.field__hint { font-size: 14px; font-weight: 400; color: var(--text-tertiary); }
.field input, .field textarea {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-control);
  padding: 15px 16px;
  font-size: 17px;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--dur-fast);
}
.field textarea { line-height: 1.5; resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-tertiary); }
.field input:focus, .field textarea:focus { border-color: var(--accent-light); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #E5484D; }
.field__error { font-size: 14px; color: #F0787C; }
.field__error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block;
  font-size: 15px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-secondary);
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.chip:hover span { border-color: rgba(255, 255, 255, 0.3); }
.chip input:checked + span { background: var(--accent-soft); border-color: var(--accent-light); color: var(--text-primary); }
.chip input:focus-visible + span { outline: 2px solid var(--accent-light); outline-offset: 3px; }

.form__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.form__back { background: transparent; border: 0; color: var(--text-secondary); font-size: 16px; padding: 12px 0; }
.form__back:hover { color: var(--text-primary); }
.form__back.is-hidden { visibility: hidden; }
.form__status { font-size: 15px; color: #F0787C; width: 100%; }
.form__status:empty { display: none; }

.success { display: flex; flex-direction: column; gap: 28px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--r-control);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(155, 108, 255, 0.28);
  font-size: 15px;
  color: var(--accent-tint-text);
  align-self: flex-start;
}
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-light); }
.success__title { font-size: clamp(28px, 3vw, 40px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.next-steps { display: flex; flex-direction: column; }
.next-steps > li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line-dark); font-size: 17px; line-height: 1.5; color: var(--text-soft); }
.next-steps .mono { color: var(--accent-light); padding-top: 3px; }

.aside { display: flex; flex-direction: column; gap: 32px; padding-top: 8px; }
.aside__box { display: flex; flex-direction: column; gap: 8px; padding: 24px; border: 1px solid var(--line-dark); border-radius: var(--r-frame); }
.aside__box a { color: var(--text-secondary); }
.aside__box a:hover { color: var(--accent-light); }

/* ---------- Heroes ---------- */

.hero { padding: clamp(64px, 9vw, 128px) 0 clamp(72px, 8vw, 120px); }
.hero > .stack { gap: clamp(48px, 6vw, 88px); }
.hero__row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
  align-items: flex-end;
  justify-content: space-between;
}
.hero-stats { list-style: none; padding-left: 0; margin: 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.hero-stats > li { display: inline; }
.hero--split { padding-bottom: clamp(64px, 8vw, 112px); }
.hero--agency { padding: clamp(72px, 10vw, 144px) 0 clamp(72px, 9vw, 128px); }
.hero--about { padding: clamp(72px, 10vw, 144px) 0 clamp(64px, 8vw, 112px); }
.hero--contact { padding: clamp(56px, 7vw, 104px) 0 clamp(88px, 10vw, 144px); }

/* ===== animations ===== */
/* OLYMP — motion. Restrained: reveals once, hovers 200–300ms, nothing loops. */

/* Scroll reveal: only active when JS is present (html.js) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--dur-reveal) var(--ease),
    transform var(--dur-reveal) var(--ease);
  transition-delay: var(--delay, 0s);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Hero entrance: pure CSS, lightly staggered */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.hero-stagger > * {
  animation: hero-in 0.8s var(--ease) both;
}
.hero-stagger > :nth-child(2) { animation-delay: 0.06s; }
.hero-stagger > :nth-child(3) { animation-delay: 0.12s; }
.hero-stagger > :nth-child(4) { animation-delay: 0.18s; }

/* Card lift */
.lift { transition: transform 0.5s var(--ease); }
.lift:hover { transform: translateY(-4px); }

/* Arrow nudge in links/buttons */
.arrow { display: inline-block; transition: transform var(--dur-fast) var(--ease); }
a:hover .arrow, button:hover .arrow { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-stagger > * { animation: none; }
  .lift:hover { transform: none; }
  a:hover .arrow, button:hover .arrow { transform: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ===== responsive ===== */
/* OLYMP — responsive rules
   Most layouts collapse via auto-fit grids; these are the exceptions. */

/* Navigation collapses below 1080px */
@media (max-width: 1079px) {
  .nav-toggle { display: inline-flex; }
  .site-header__cta { display: none; }

  .js .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: var(--header-h);
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 12px var(--gutter) 28px;
  }
  .js .site-nav.is-open { display: block; }

  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list a {
    display: block;
    font-size: 22px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .site-nav__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
  .site-nav__actions .btn { width: 100%; white-space: normal; padding: 16px 20px; font-size: 17px; }

  /* No JS: show the nav inline, stacked */
  html:not(.js) .site-nav { width: 100%; order: 3; padding-bottom: 16px; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; height: auto; padding-block: 16px; }
  html:not(.js) .nav-toggle { display: none; }
}

@media (max-width: 767px) {
  .step { padding-right: 0; }
  .steps { gap: 0; }
  .cta-card { gap: 40px; }
  .compare thead th:first-child { width: auto; }
  .hero-stats { gap: 10px 28px; }
  .flow__row { grid-template-columns: 1fr; }
  .flow__cell + .flow__cell { border-left: 0; border-top: 1px solid var(--line-dark-soft); }
  .flow__head { display: none; }
  .flow__cell::before {
    content: attr(data-owner);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    min-width: 72px;
  }
  .flow__cell:first-child::before { color: var(--accent-light); }
}

@media (max-width: 479px) {
  .btn { white-space: normal; }
  .cta-group > .btn, .cta-stack > .btn { width: 100%; }
  .preview-pair { grid-template-columns: 1fr; }
  .preview-pair > :last-child { margin-top: 0; }
  .cta-card__arrow { font-size: 26px; }
  .faq__a { padding-right: 24px; }
  .route-choice { grid-template-columns: 1fr; }
  .form__actions .btn { width: 100%; }
}

/* Three-up panels never leave an orphan cell: 3 columns or 1 */
.panel--levels, .panel--layers { grid-template-columns: 1fr; }
@media (min-width: 1000px) { .panel--levels { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .panel--layers { grid-template-columns: repeat(3, 1fr); } }

/* Process steps: five across on desktop, a single column below */
.steps { grid-template-columns: 1fr; }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 999px) {
  .step { padding: 24px 0 28px; }
  .step__title { font-size: 21px; }
}

/* Very wide screens: keep hero display from becoming absurd (clamp already caps at 124px) */
@media (min-width: 1600px) {
  .section--graphite::before { background-size: 80px 80px; }
}
