/* ==========================================================================
   Rovanta Solutions — keynote design system
   San Francisco via the system stack (real SF on Apple devices, Inter
   elsewhere), keynote-scale type, alternating dark stages, deep motion.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* Neutrals — Apple's exact greys */
  --white:      #FFFFFF;
  --grey-bg:    #F5F5F7;   /* Apple section grey */
  --ink:        #1D1D1F;   /* Apple near-black */
  --ink-2:      #424245;
  --ink-3:      #6E6E73;   /* Apple secondary text */
  --border:     #D2D2D7;   /* Apple hairline */
  --border-soft:#E8E8ED;

  /* Stage (always-dark sections) */
  --stage:      #000000;
  --stage-2:    #0B0B0D;
  --stage-ink:  #F5F5F7;
  --stage-ink-2:#A1A1A6;
  --stage-line: rgba(255,255,255,.14);

  /* Brand */
  --accent:      #00A093;
  --accent-deep: #0F5A57;
  --accent-lift: #34D5C4;
  --accent-soft: #E3F2F0;
  --on-accent:   #FFFFFF;
  --signal:      #B4530A;
  --signal-lift: #F5A623;
  --signal-soft: #FDF2E4;
  --positive:    #1D7A3E;

  /* Semantic (light default) */
  --bg:         var(--white);
  --surface:    var(--white);
  --surface-2:  var(--grey-bg);
  --text:       var(--ink);
  --text-2:     var(--ink-2);
  --text-3:     var(--ink-3);
  --line:       var(--border);
  --ring:       var(--accent-deep);

  /* Type — SF on Apple, Inter elsewhere */
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
          'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', 'IBM Plex Mono', Menlo, Consolas, monospace;

  /* Keynote scale */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1.0625rem;                                    /* 17 — Apple body */
  --fs-md:   1.3125rem;                                    /* 21 — Apple intro */
  --fs-lg:   clamp(1.5rem, 1.1rem + 1.6vw, 1.75rem);
  --fs-xl:   clamp(1.875rem, 1.3rem + 2.6vw, 2.5rem);
  --fs-2xl:  clamp(2.5rem, 1.5rem + 4.4vw, 4rem);
  --fs-3xl:  clamp(3rem, 1.4rem + 7vw, 6rem);              /* hero */

  /* Space */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 80px; --s-9: 130px;

  /* Shape — Apple's generous radii */
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 28px; --r-2xl: 40px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.04);
  --shadow-md: 0 8px 28px rgba(0,0,0,.08);
  --shadow-lg: 0 30px 70px rgba(0,0,0,.14), 0 8px 24px rgba(0,0,0,.06);
  --shadow-stage: 0 40px 90px rgba(0,0,0,.55);

  --container: 1120px;
  --gutter: 22px;

  /* Motion — Apple's curves */
  --dur: 240ms;
  --dur-slow: 900ms;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.28, .11, .32, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #000000;
    --surface:   #0B0B0D;
    --surface-2: #141416;
    --text:      #F5F5F7;
    --text-2:    #C7C7CC;
    --text-3:    #8E8E93;
    --line:      #2C2C2E;
    --border-soft: #1F1F22;
    --accent:      #34D5C4;
    --accent-deep: #34D5C4;
    --accent-lift: #6FE9DB;
    --accent-soft: #10302D;
    --on-accent:   #00201D;
    --signal:      #F5A623;
    --signal-soft: #2A1F0E;
    --positive:    #4ADE80;
    --ring:        #34D5C4;
    --shadow-lg: 0 30px 70px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}

@media (min-width: 768px) { :root { --gutter: 40px; } }

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; border-radius: var(--r-sm); }

/* --- Typography — Apple's tight tracking on large sizes ------------------- */
h1, h2, h3 { color: var(--text); font-weight: 600; text-wrap: balance; }
h1 { font-size: var(--fs-3xl);  line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: var(--fs-2xl);  line-height: 1.06; letter-spacing: -0.03em; }
h3 { font-size: var(--fs-lg);   line-height: 1.2;  letter-spacing: -0.02em; }
h4 { font-size: var(--fs-base); line-height: 1.3;  letter-spacing: -0.01em; font-weight: 600; }
p  { text-wrap: pretty; }

.lede { font-size: var(--fs-md); line-height: 1.42; color: var(--text-2); letter-spacing: -0.015em; max-width: 34ch; }
.prose { max-width: 68ch; color: var(--text-2); line-height: 1.6; }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-7); color: var(--text); font-size: var(--fs-xl); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: var(--s-2); }

.eyebrow {
  display: block; margin-bottom: var(--s-4);
  font-size: var(--fs-base); font-weight: 600; letter-spacing: -0.01em;
  color: var(--accent-deep);
}
.muted { color: var(--text-3); }
.small { font-size: var(--fs-sm); }
.mono  { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }

/* Gradient headline accent — the keynote "one bright word". */
.grad {
  background: linear-gradient(100deg, var(--accent-lift), var(--accent) 45%, var(--accent-deep));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.stage .grad { background: linear-gradient(100deg, #6FE9DB, #34D5C4 50%, #00A093); }

/* --- Layout --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: 1320px; }
.section { padding-block: var(--s-8); }
@media (min-width: 768px) { .section { padding-block: var(--s-9); } }
.section--tight { padding-block: var(--s-7); }
.section--grey { background: var(--surface-2); }

/* Always-dark keynote stage, regardless of theme. */
.stage {
  background: var(--stage); color: var(--stage-ink);
  position: relative; overflow: hidden; isolation: isolate;
}
.stage h1, .stage h2, .stage h3 { color: #FFFFFF; }
.stage .lede, .stage p { color: var(--stage-ink-2); }
.stage .eyebrow { color: var(--accent-lift); }
.stage a:not(.btn) { color: var(--accent-lift); }
.stage .muted { color: #86868B; }

/* Soft light bloom behind stage content. */
.stage__glow {
  position: absolute; inset: auto; width: 90vw; max-width: 1100px; aspect-ratio: 1;
  left: 50%; top: -30%; translate: -50% 0; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0,160,147,.30), rgba(0,160,147,.06) 55%, transparent 72%);
  filter: blur(10px);
}

.grid { display: grid; gap: var(--s-5); }
@media (min-width: 640px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) and (max-width: 899px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }

/* Centred keynote section header. */
.section-head { max-width: 40ch; margin-bottom: var(--s-8); }
.section-head p { margin-top: var(--s-5); font-size: var(--fs-md); color: var(--text-2); line-height: 1.45; max-width: 46ch; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center p { margin-inline: auto; }

/* --- Skip link ------------------------------------------------------------ */
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 10000;
  background: var(--ink); color: #fff; padding: var(--s-3) var(--s-5);
  border-radius: 980px; font-weight: 600;
}
.skip-link:focus { top: var(--s-4); }

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.preloader {
  position: fixed; inset: 0; z-index: 9999; background: #000;
  display: grid; place-items: center;
  transition: opacity 700ms var(--ease-out), visibility 700ms;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { display: grid; place-items: center; gap: var(--s-5); }
.preloader__mark { width: 76px; height: 76px; }
.preloader__mark path, .preloader__mark circle {
  stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--len, 120); stroke-dashoffset: var(--len, 120);
  animation: draw 900ms var(--ease-out) forwards;
}
.preloader__mark circle { animation-delay: 420ms; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.preloader__word {
  font-size: 1.75rem; font-weight: 600; letter-spacing: -0.03em; color: #fff;
  opacity: 0; transform: translateY(10px);
  animation: wordUp 700ms var(--ease-out) 650ms forwards;
}
@keyframes wordUp { to { opacity: 1; transform: none; } }

.js .page-in { opacity: 0; transform: translateY(14px); transition: opacity 800ms var(--ease-out) 120ms, transform 800ms var(--ease-out) 120ms; }
.js.preload-done .page-in { opacity: 1; transform: none; }

/* ==========================================================================
   SCROLL REVEALS — keynote build-ins
   ========================================================================== */
.js [data-reveal] {
  opacity: 0; transform: translateY(40px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal="scale"] { transform: scale(.92) translateY(30px); }
.js [data-reveal="left"]  { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="blur"]  { filter: blur(14px); transform: translateY(24px) scale(1.02); transition-property: opacity, transform, filter; }
.js [data-reveal].is-visible { opacity: 1; transform: none; filter: none; }

@media (max-width: 767px) {
  .js [data-reveal="left"], .js [data-reveal="right"] { transform: translateY(32px); }
}

/* Line-by-line headline rise. */
.reveal-words { display: inline; }
.reveal-words .word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; }
.js .reveal-words .word > span {
  display: inline-block; transform: translateY(110%);
  transition: transform 1000ms var(--ease-out);
  transition-delay: calc(var(--w, 0) * 70ms);
}
.js .reveal-words.is-visible .word > span { transform: none; }

.motion-failsafe [data-reveal], .motion-failsafe .page-in,
.motion-failsafe .reveal-words .word > span {
  opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important;
}

[data-parallax] { will-change: transform; }

/* ==========================================================================
   HEADER — Apple's translucent bar
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: var(--s-4); min-height: 52px; }

.brand { display: inline-flex; align-items: center; gap: var(--s-3); color: var(--text); flex: 0 0 auto; min-height: 44px; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 26px; height: 26px; flex: none; transition: transform var(--dur) var(--ease); }
.brand:hover .brand__mark { transform: scale(1.08); }
.brand__name { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.02em; }
.brand__name span { color: var(--text-3); font-weight: 400; }
.mark-plate { fill: var(--text); opacity: .07; }
.mark-line  { stroke: var(--accent-deep); }
.mark-dot   { fill: var(--accent-deep); }

.nav { margin-left: auto; display: none; align-items: center; gap: var(--s-2); }
@media (min-width: 940px) { .nav { display: flex; } }
.nav a:not(.btn) {
  color: var(--text-2); font-size: var(--fs-sm); font-weight: 400;
  padding: var(--s-2) var(--s-3); border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav a:not(.btn):hover { color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); font-weight: 500; }

/* Language pill */
.lang {
  display: inline-flex; align-items: center; border: 1px solid var(--line);
  border-radius: 980px; padding: 2px; margin-left: var(--s-2); flex: none;
}
.lang a, .lang span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 26px; padding: 0 8px; border-radius: 980px;
  font-size: 12px; font-weight: 600; letter-spacing: 0; line-height: 1;
  color: var(--text-3); transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.lang [aria-current="true"] { background: var(--text); color: var(--bg); }
.stage .lang, .site-header .lang { border-color: var(--line); }

.nav-toggle {
  margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer; color: var(--text);
}
@media (min-width: 940px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 18px; height: 18px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open  { display: none; }

.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--bg); padding: var(--s-4) 0 var(--s-6); }
.mobile-nav.is-open { display: block; }
@media (min-width: 940px) { .mobile-nav { display: none !important; } }
.mobile-nav a:not(.btn) {
  display: flex; align-items: center; min-height: 52px;
  color: var(--text); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em;
  border-bottom: 1px solid var(--border-soft);
}
.mobile-nav a:not(.btn):hover { text-decoration: none; color: var(--accent-deep); }
.mobile-nav .btn { margin-top: var(--s-5); width: 100%; }
.mobile-nav .lang { margin: var(--s-5) 0 0; }

/* --- Buttons — Apple pill ------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 12px 26px;
  font-size: var(--fs-base); font-weight: 500; letter-spacing: -0.01em;
  border-radius: 980px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform 120ms var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn svg { width: 15px; height: 15px; flex: none; transition: transform var(--dur) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }

.btn--primary { background: var(--accent-deep); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent); box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn--secondary { background: transparent; color: var(--accent-deep); border-color: var(--line); }
.btn--secondary:hover { background: var(--surface-2); }
.btn--lg { min-height: 56px; padding: 14px 34px; font-size: var(--fs-md); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

.stage .btn--primary { background: var(--accent-lift); color: #00201D; }
.stage .btn--primary:hover { background: #8FF0E4; box-shadow: 0 10px 32px rgba(52,213,196,.32); }
.stage .btn--secondary { color: #fff; border-color: var(--stage-line); }
.stage .btn--secondary:hover { background: rgba(255,255,255,.08); }

/* --- Badges --------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; letter-spacing: 0;
  padding: 5px 11px; border-radius: 980px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2); white-space: nowrap;
}
.badge--signal { background: var(--signal-soft); border-color: color-mix(in srgb, var(--signal) 30%, transparent); color: var(--signal); }
.badge--accent { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent-deep) 30%, transparent); color: var(--accent-deep); }
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* --- Cards ---------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--r-xl); padding: var(--s-6);
  transition: transform 600ms var(--ease-out), box-shadow 600ms var(--ease-out);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: var(--s-3); }
.card p { color: var(--text-2); font-size: var(--fs-sm); line-height: 1.55; }
.section--grey .card { background: var(--white); }
@media (prefers-color-scheme: dark) { .section--grey .card { background: var(--surface); } }

/* ==========================================================================
   HERO — the opening slide
   ========================================================================== */
.hero { padding-block: var(--s-8) var(--s-9); text-align: center; }
@media (min-width: 768px) { .hero { padding-block: var(--s-9) var(--s-9); } }
.hero h1 { margin-bottom: var(--s-5); max-width: 16ch; margin-inline: auto; }
.hero .lede { margin-inline: auto; max-width: 40ch; font-size: clamp(1.125rem, .9rem + .8vw, 1.4375rem); }
.hero .btn-row { margin-top: var(--s-7); justify-content: center; }
.hero__note { margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--stage-ink-2); }

.scroll-cue {
  display: none; margin-top: var(--s-8); justify-content: center; align-items: center; gap: var(--s-3);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #86868B;
}
@media (min-width: 900px) { .scroll-cue { display: flex; } }
.scroll-cue__line { width: 1px; height: 34px; background: var(--stage-line); position: relative; overflow: hidden; }
.scroll-cue__line::after {
  content: ""; position: absolute; inset: 0; background: var(--accent-lift);
  transform: translateY(-100%); animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(100%); } }

/* Hero product card — the "device shot" */
.hero__card { margin-top: var(--s-9); perspective: 1600px; }
.signal-card {
  max-width: 620px; margin-inline: auto; text-align: left;
  background: linear-gradient(180deg, #17171A, #0D0D0F);
  border: 1px solid rgba(255,255,255,.10); border-radius: var(--r-2xl);
  box-shadow: var(--shadow-stage); overflow: hidden;
}
.signal-card__bar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-4) var(--s-5); background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: var(--font-mono); font-size: 11px; color: #86868B; letter-spacing: .04em;
}
.signal-card__bar .badge { background: rgba(245,166,35,.14); border-color: rgba(245,166,35,.34); color: var(--signal-lift); }
.signal-card__body { padding: var(--s-6); }
.signal-card__title { font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.02em; color: #fff; margin-bottom: 4px; }
.signal-card__sub { font-size: var(--fs-sm); color: #86868B; margin-bottom: var(--s-5); }
.field-list { display: grid; border-top: 1px solid rgba(255,255,255,.09); }
.field-list__row {
  display: grid; grid-template-columns: minmax(8rem, 44%) 1fr; gap: var(--s-3);
  padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.09); align-items: baseline;
}
.field-list__key { font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; color: #86868B; text-transform: uppercase; }
.field-list__val { font-size: var(--fs-sm); font-weight: 500; color: #F5F5F7; font-variant-numeric: tabular-nums; }
.signal-card__foot { font-size: 12px; color: #86868B; margin-top: var(--s-4); }

.redacted {
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.10) 4px, rgba(255,255,255,.02) 4px, rgba(255,255,255,.02) 8px);
  border-radius: 4px; color: transparent; user-select: none; padding-inline: 3px;
}

/* --- Source strip --------------------------------------------------------- */
.sources { margin-top: var(--s-9); padding-top: var(--s-6); border-top: 1px solid var(--stage-line); }
.sources__label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #86868B; margin-bottom: var(--s-4); }
.sources__list { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-3); list-style: none; padding: 0; }
.sources__list li {
  font-size: var(--fs-sm); color: var(--stage-ink-2);
  padding: 8px 16px; border: 1px solid var(--stage-line); border-radius: 980px;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.sources__list li:hover { border-color: rgba(255,255,255,.35); color: #fff; }

/* --- Stat row — keynote numbers ------------------------------------------ */
.stats { display: grid; gap: var(--s-7); text-align: center; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(3, 1fr); gap: var(--s-5); } }
.stat__num {
  font-size: clamp(3rem, 2rem + 4vw, 5rem); font-weight: 600;
  letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums;
}
.stat__label { margin-top: var(--s-4); font-size: var(--fs-base); color: var(--text-3); max-width: 22ch; margin-inline: auto; }
.stage .stat__label { color: var(--stage-ink-2); }

/* --- Timeline ------------------------------------------------------------- */
.timeline { list-style: none; padding: 0; display: grid; gap: var(--s-4); counter-reset: step; }
@media (min-width: 960px) { .timeline { grid-template-columns: repeat(5, 1fr); gap: var(--s-3); } }
.timeline__item {
  position: relative; padding: var(--s-5); border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--border-soft);
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
}
.section--grey .timeline__item { background: var(--white); }
@media (prefers-color-scheme: dark) { .section--grey .timeline__item { background: var(--surface); } }
.timeline__item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.timeline__item--now { border-color: color-mix(in srgb, var(--accent-deep) 45%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-deep) 10%, transparent); }
.timeline__when { display: block; font-size: 12px; letter-spacing: .02em; color: var(--text-3); margin-bottom: var(--s-3); }
.timeline__item--now .timeline__when { color: var(--accent-deep); font-weight: 600; }
.timeline__what { font-weight: 600; font-size: var(--fs-sm); line-height: 1.35; letter-spacing: -0.01em; display: block; }
.timeline__note { font-size: 13px; color: var(--text-3); margin-top: var(--s-3); line-height: 1.45; }

/* --- Feature list --------------------------------------------------------- */
.checks { list-style: none; padding: 0; display: grid; gap: var(--s-5); }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s-4); align-items: start; color: var(--text-2); font-size: var(--fs-base); line-height: 1.45; }
.checks svg { width: 20px; height: 20px; color: var(--accent-deep); margin-top: 2px; }
.checks strong { color: var(--text); font-weight: 600; display: block; }
.stage .checks li { color: var(--stage-ink-2); }
.stage .checks strong { color: #fff; }
.stage .checks svg { color: var(--accent-lift); }

/* --- Callout -------------------------------------------------------------- */
.callout {
  border-radius: var(--r-xl); padding: var(--s-6);
  background: var(--surface-2); font-size: var(--fs-base); color: var(--text-2); line-height: 1.5;
}
.callout strong { color: var(--text); display: block; margin-bottom: 6px; font-weight: 600; }
.section--grey .callout { background: var(--white); border: 1px solid var(--border-soft); }
@media (prefers-color-scheme: dark) { .section--grey .callout { background: var(--surface); } }

/* --- Forms ---------------------------------------------------------------- */
.form { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); } }
.field { display: grid; gap: 7px; }
.field label { font-size: var(--fs-sm); font-weight: 500; color: var(--text); }
.field .req { color: var(--signal); }
.field__hint { font-size: 13px; color: var(--text-3); line-height: 1.4; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 13px var(--s-4);
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--r-md);
  font-size: 1rem; letter-spacing: -0.01em;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; padding-right: var(--s-7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236E6E73' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--s-4) center; background-size: 12px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent-deep);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-deep) 16%, transparent);
}
.field [aria-invalid="true"] { border-color: var(--signal); }
.field__error { font-size: 13px; color: var(--signal); font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-card {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--r-2xl); padding: var(--s-6); box-shadow: var(--shadow-md);
}
@media (min-width: 768px) { .form-card { padding: var(--s-7); } }

.alert { border-radius: var(--r-md); padding: var(--s-4) var(--s-5); font-size: var(--fs-sm); border: 1px solid; display: grid; gap: var(--s-2); }
.alert--error   { background: var(--signal-soft); border-color: var(--signal); color: var(--text); }
.alert--success { background: var(--accent-soft); border-color: var(--accent-deep); color: var(--text); }
.alert ul { margin: 0; padding-left: 1.1em; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface-2); padding-block: var(--s-7) var(--s-6); font-size: var(--fs-sm); }
.site-footer__grid { display: grid; gap: var(--s-6); }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.7fr 1fr 1fr; gap: var(--s-7); } }
.site-footer h4 { font-size: 12px; color: var(--text-3); margin-bottom: var(--s-2); font-weight: 600; }
.site-footer ul { list-style: none; padding: 0; display: grid; }
.site-footer ul a { color: var(--text-2); font-size: var(--fs-sm); display: inline-flex; align-items: center; min-height: 34px; }
.site-footer ul a:hover { color: var(--accent-deep); }
.site-footer__about { color: var(--text-3); max-width: 44ch; margin-top: var(--s-3); line-height: 1.5; }
.site-footer__legal {
  margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: 12px; color: var(--text-3); align-items: center;
}

/* --- Utilities ------------------------------------------------------------ */
.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; }
.text-center { text-align: center; }
.mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); } .mt-8 { margin-top: var(--s-8); }
.divider { height: 1px; background: var(--line); border: 0; margin-block: var(--s-7); }

/* --- Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  [data-reveal], .page-in { opacity: 1 !important; transform: none !important; filter: none !important; }
  .reveal-words .word > span { transform: none !important; }
  [data-parallax] { transform: none !important; }
  .preloader { display: none !important; }
  .scroll-cue__line::after { display: none; }
}

/* --- Print ---------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .nav-toggle, .preloader, .scroll-cue { display: none !important; }
  body, .stage { background: #fff !important; color: #000 !important; }
  .stage h1, .stage h2, .stage p, .stage .lede { color: #000 !important; }
  [data-reveal], .page-in { opacity: 1 !important; transform: none !important; }
}
