/* Font: Inter, self-hosted latin subset (SIL Open Font License, see assets/fonts/LICENSE.txt).
   Variable font: weights 100-900 and optical sizes 14-32 in one file. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial");
  size-adjust: 108.1%;
  ascent-override: 89.6%;
  descent-override: 22.3%;
  line-gap-override: 0%;
}

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
  color-scheme: light;
  --bg: #FFFFFF;
  --bg-soft: #F6F7F9;
  --surface: #FFFFFF;
  --line: rgb(11 18 32 / 0.09);
  --line-strong: rgb(11 18 32 / 0.16);
  --ink: #0B1220;
  --ink-2: #4A5468;
  --ink-3: #687184;
  --accent: #1F4FE0;
  --accent-hover: #1840B8;
  --accent-ink: #FFFFFF;
  --ok: #12A150;
  --ok-ring: rgb(18 161 80 / 0.16);
  --band-top: #121B2D;
  --band-bottom: #0A101C;
  --band-ink: #F3F6FB;
  --band-ink-2: #A9B4C8;
  --band-edge: rgb(255 255 255 / 0.09);
  --band-shadow: 0 30px 60px -30px rgb(11 18 32 / 0.45);
  --lift: 0 1px 2px rgb(11 18 32 / 0.06), 0 0 0 1px rgb(11 18 32 / 0.06);
  --toast-bg: #0B1220;
  --toast-ink: #F3F6FB;
  --focus: #1F4FE0;
  --mark-a: #7B5CFF;
  --mark-b: #22D3EE;

  --font: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(1.25rem, 0.5rem + 3vw, 2.5rem);
  --max: 72rem;
  --section-y: clamp(4.5rem, 2.5rem + 5vw, 8rem);
  --radius: 14px;
  --radius-lg: 22px;

  /* ---------------- Motion system ----------------
     One set of curves, durations and offsets for every animation on the page.
     Curves are the strong custom curves from Emil Kowalski's animation guidance;
     durations follow its budgets (press 100-160ms, UI under 300ms, marketing longer). */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);       /* entering, exiting, responding */
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);   /* things already on screen moving A to B */
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);    /* sheets and the nav backdrop */
  --ease-toast: ease;                                /* Sonner's gentler toast feel */
  --dur-press: 140ms;   /* press feedback */
  --dur-hover: 160ms;   /* hover and color changes */
  --dur-ui: 240ms;      /* state changes: tabs, accordion, highlight, toast exit */
  --dur-toast: 400ms;   /* toast enter */
  --dur-enter: 640ms;   /* marketing entrances and reveals */
  --dur-sweep: 1200ms;  /* explanatory motion: dial sweep, line drawing */
  --stagger: 50ms;      /* gap between items in a group */
  --intent: 80ms;       /* hover rest time before a hover switches content */
  --rise: 12px;         /* entrance travel */
  --blur: 6px;          /* entrance blur, kept small */
  --press: 0.97;        /* button press scale */
  --press-wide: 0.99;   /* press scale for full-width rows */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0A0D14;
    --bg-soft: #10141D;
    --surface: #151A25;
    --line: rgb(255 255 255 / 0.08);
    --line-strong: rgb(255 255 255 / 0.15);
    --ink: #EEF1F6;
    --ink-2: #A7B0C0;
    --ink-3: #8590A3;
    --accent: #8AAEFF;
    --accent-hover: #ABC4FF;
    --accent-ink: #08101F;
    --ok: #34D399;
    --ok-ring: rgb(52 211 153 / 0.18);
    --band-top: #161E2E;
    --band-bottom: #0F1522;
    --band-shadow: 0 0 0 1px rgb(255 255 255 / 0.05);
    --lift: 0 0 0 1px rgb(255 255 255 / 0.08), inset 0 1px 0 rgb(255 255 255 / 0.04);
    --toast-bg: #EEF1F6;
    --toast-ink: #0B1220;
    --focus: #ABC4FF;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A0D14;
  --bg-soft: #10141D;
  --surface: #151A25;
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.15);
  --ink: #EEF1F6;
  --ink-2: #A7B0C0;
  --ink-3: #8590A3;
  --accent: #8AAEFF;
  --accent-hover: #ABC4FF;
  --accent-ink: #08101F;
  --ok: #34D399;
  --ok-ring: rgb(52 211 153 / 0.18);
  --band-top: #161E2E;
  --band-bottom: #0F1522;
  --band-shadow: 0 0 0 1px rgb(255 255 255 / 0.05);
  --lift: 0 0 0 1px rgb(255 255 255 / 0.08), inset 0 1px 0 rgb(255 255 255 / 0.04);
  --toast-bg: #EEF1F6;
  --toast-ink: #0B1220;
  --focus: #ABC4FF;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
@media (hover: hover) and (pointer: fine) { a:hover { color: var(--accent-hover); } }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.mark-stop-a { stop-color: var(--mark-a); }
.mark-stop-b { stop-color: var(--mark-b); }

/* Keyboard-initiated: no transition */
.skip-link {
  position: fixed; left: var(--gutter); top: calc(env(safe-area-inset-top, 0px) + 0.5rem); z-index: 300;
  padding: 0.7rem 1rem; background: var(--ink); color: var(--bg); border-radius: 10px;
  font-weight: 600; text-decoration: none; transform: translateY(-160%);
}
.skip-link:focus { transform: none; color: var(--bg); }
.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 8px; pointer-events: none; }
.anchor-top { position: absolute; top: 0; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); scroll-margin-top: 4rem; }

/* ==========================================================================
   Type
   ========================================================================== */
.h2 {
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.038em;
  font-weight: 620;
  max-width: 20ch;
}
.h3 { font-size: 1.125rem; line-height: 1.35; letter-spacing: -0.015em; margin-bottom: 0.5rem; }
.section-lead { margin-top: 1.1rem; color: var(--ink-2); font-size: 1.125rem; line-height: 1.55; max-width: 34rem; }

/* ==========================================================================
   Buttons and pressables
   ========================================================================== */
.btn {
  -webkit-tap-highlight-color: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0.7rem 1.25rem;
  border-radius: 11px; border: 1px solid transparent;
  font: inherit; font-size: 1rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.012em;
  text-decoration: none; cursor: pointer; user-select: none; white-space: nowrap;
  transition:
    transform var(--dur-press) var(--ease-out),
    background-color var(--dur-hover) ease,
    border-color var(--dur-hover) ease,
    color var(--dur-hover) ease;
}
.btn:active { transform: scale(var(--press)); }
.btn-sm { min-height: 40px; padding: 0.5rem 0.95rem; font-size: 0.9375rem; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 0.85rem 1.5rem; font-size: 1.0625rem; }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 1px 2px rgb(11 18 32 / 0.18);
}
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
  .btn-secondary:hover { border-color: var(--ink-3); color: var(--ink); }
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ==========================================================================
   Header: transparent at the top, a blurred material once the page scrolls
   ========================================================================== */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100; }
.site-header::before,
.site-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--dur-ui) var(--ease-drawer);
}
.site-header::before {
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  backdrop-filter: blur(16px) saturate(170%);
}
.site-header::after { top: auto; height: 1px; background: var(--line); }
.site-header.is-scrolled::before,
.site-header.is-scrolled::after { opacity: 1; }
@media (prefers-reduced-transparency: reduce) {
  .site-header::before { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.nav-bar { display: flex; align-items: center; gap: 1.5rem; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; min-height: 44px; flex: none; }
.logo:hover { color: var(--ink); }
.logo-mark { display: block; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 650; letter-spacing: -0.03em; }
.logo .brand-name { font-size: 1.1875rem; }
.logo-sub { display: none; font-size: 0.75rem; color: var(--ink-3); }
.nav-links { display: none; margin-left: auto; }
.nav-links ul { display: flex; gap: 0.25rem; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 0.75rem;
  color: var(--ink-2); font-size: 0.9375rem; font-weight: 500; text-decoration: none; border-radius: 8px;
  transition: color var(--dur-hover) ease;
}
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { color: var(--ink); } }
.nav-cta { margin-left: auto; }
.nav-cta-long { display: none; }
@media (max-width: 22.5rem) { .nav-bar { gap: 0.75rem; } .nav-cta { padding-inline: 0.8rem; } }
@media (min-width: 30rem) { .logo-sub { display: block; } }
@media (min-width: 52rem) {
  .nav-links { display: block; }
  .nav-cta { margin-left: 0.5rem; }
  .nav-cta-long { display: inline; }
  .nav-cta-short { display: none; }
}

/* ==========================================================================
   Entrances (one keyframe, shared tokens)
   ========================================================================== */
@keyframes enter {
  from { opacity: 0; transform: translateY(var(--rise)); filter: blur(var(--blur)); }
}
@keyframes enter-fade { from { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-title .w { animation: enter var(--dur-enter) var(--ease-out) both; animation-delay: calc(var(--stagger) * var(--n, 0)); }
  .enter { animation: enter var(--dur-enter) var(--ease-out) both; }
  .enter-d1 { animation-delay: calc(var(--stagger) * 5); }
  .enter-d2 { animation-delay: calc(var(--stagger) * 7); }
  .enter-d3 { animation-delay: calc(var(--stagger) * 9); }
}
@media (prefers-reduced-motion: reduce) {
  .enter { animation: enter-fade var(--dur-ui) ease both; }
}
.hero-title .w:nth-child(2) { --n: 1; }
.hero-title .w:nth-child(3) { --n: 2; }
.hero-title .w:nth-child(4) { --n: 3; }
.hero-title .w:nth-child(5) { --n: 4; }
.hero-title .w:nth-child(6) { --n: 5; }
.hero-title .w:nth-child(7) { --n: 6; }
.hero-title .w:nth-child(8) { --n: 7; }
.hero-title .w:nth-child(9) { --n: 8; }
.hero-title .w:nth-child(10) { --n: 9; }

/* Scroll reveals, fired once by main.js */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(var(--rise));
    filter: blur(var(--blur));
    transition:
      opacity var(--dur-enter) var(--ease-out),
      transform var(--dur-enter) var(--ease-out),
      filter var(--dur-enter) var(--ease-out);
  }
  .js .reveal + .reveal { transition-delay: var(--stagger); }
  .js .reveal + .reveal + .reveal { transition-delay: calc(var(--stagger) * 2); }
  .js .reveal.is-in { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 0; transition: opacity var(--dur-ui) ease; }
  .js .reveal.is-in { opacity: 1; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-block: clamp(3rem, 1.5rem + 6vw, 7rem) clamp(4rem, 2rem + 6vw, 7.5rem); }
.hero-grid { display: grid; gap: 3.5rem; align-items: center; }
.hero-title {
  font-size: clamp(2.7rem, 1.4rem + 4.3vw, 5rem);
  line-height: 1.0;
  letter-spacing: -0.045em;
  font-weight: 650;
  max-width: 13.5ch;
}
.hero-title .w { display: inline-block; }
.hero-lead {
  margin-top: 1.75rem;
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  line-height: 1.55;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  max-width: 34rem;
}
.hero .cta-row { margin-top: 2.25rem; }
.hero-note { margin-top: 1.25rem; font-size: 0.9375rem; color: var(--ink-3); }
@media (max-width: 29.99rem) { .hero .cta-row .btn { width: 100%; } }
@media (min-width: 64rem) {
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 4rem; }
}

/* ---- The 24-hour dial ---- */
.dial {
  position: relative;
  width: min(100%, 27rem);
  aspect-ratio: 1;
  justify-self: center;
}
@media (min-width: 64rem) { .dial { justify-self: end; } }
.dial-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dial-face { fill: var(--bg-soft); }
.dial-rim { fill: none; stroke: var(--line); stroke-width: 1; }
.dial-ticks .tk { stroke: var(--ink-3); stroke-width: 1; stroke-linecap: round; opacity: 0.35; }
.dial-ticks .tk-hour { stroke: var(--ink-2); opacity: 0.75; stroke-width: 1.25; }
.dial-ticks .tk-major { stroke: var(--ink); opacity: 1; stroke-width: 1.75; }
.dial-labels text {
  fill: var(--ink-3);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.dial-hand {
  transform-box: view-box;
  transform-origin: 200px 200px;
  opacity: 0;
}
.dial.is-live .dial-hand { opacity: 1; }
.dial.is-ticking .dial-hand { transition: transform var(--dur-ui) var(--ease-in-out); }
.hand-line { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.hand-tip { fill: url(#hand-grad); stroke: var(--bg-soft); stroke-width: 3; paint-order: stroke; }
.dial-pin { fill: var(--ink); }
.dial-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  pointer-events: none;
}
.dial-label { font-size: 0.8125rem; font-weight: 500; color: var(--ink-3); }
.dial-time {
  margin-top: 0.15rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem;
  font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem);
  font-weight: 620;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums lining-nums;
}
.t-ap { font-size: 0.42em; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.dial-on {
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}
.on-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-ring); }
.dial-center { padding: 24%; }

/* ==========================================================================
   Why Northlink
   ========================================================================== */
.why { padding-top: clamp(1rem, 0.5rem + 2vw, 2.5rem); }
.always {
  margin-top: 3rem;
  display: grid;
  gap: 1.5rem 3.5rem;
  align-items: center;
  padding: clamp(2rem, 1rem + 4vw, 4.25rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--band-top), var(--band-bottom));
  color: var(--band-ink);
  box-shadow: inset 0 1px 0 var(--band-edge), inset 0 0 0 1px rgb(255 255 255 / 0.04), var(--band-shadow);
}
.always-figure {
  display: flex;
  font-size: clamp(4.75rem, 2.5rem + 9vw, 10rem);
  font-weight: 640;
  line-height: 0.88;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums lining-nums;
}
.always-figure .ch { display: inline-block; }
.always-figure .ch-slash { color: var(--band-ink-2); font-weight: 300; margin-inline: -0.02em; }
.always-title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.2; letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.always-copy p { color: var(--band-ink-2); max-width: 30rem; }
@media (min-width: 48rem) { .always { grid-template-columns: auto minmax(0, 1fr); } }

/* The characters settle in, once, when the band comes into view */
@media (prefers-reduced-motion: no-preference) {
  .js .always .ch,
  .js .always .always-copy {
    opacity: 0;
    transform: translateY(0.3em);
    filter: blur(var(--blur));
    transition:
      opacity var(--dur-enter) var(--ease-out),
      transform var(--dur-enter) var(--ease-out),
      filter var(--dur-enter) var(--ease-out);
    transition-delay: calc(var(--stagger) * var(--n, 0) * 1.5);
  }
  .js .always .always-copy { transform: translateY(var(--rise)); --n: 3; }
  .js .always .ch:nth-child(2) { --n: 1; }
  .js .always .ch:nth-child(3) { --n: 2; }
  .js .always .ch:nth-child(4) { --n: 3; }
  .js .always.is-in .ch,
  .js .always.is-in .always-copy { opacity: 1; transform: none; filter: none; }
}

.points { display: grid; gap: 2rem 3.5rem; margin-top: 3.5rem; }
.point { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.point p { color: var(--ink-2); max-width: 30rem; }
@media (min-width: 48rem) { .points { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   Incident story
   ========================================================================== */
.story { padding-block: var(--section-y); }
.story-grid { display: grid; gap: 2.5rem 5rem; align-items: center; }
.story-tag {
  display: inline-flex;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}
.story-timeline { position: relative; padding-left: 2.25rem; }
.story-rail {
  position: absolute;
  left: 7px;
  top: 1.4rem;
  bottom: 1.4rem;
  width: 2px;
  border-radius: 2px;
  background: var(--line-strong);
  overflow: hidden;
}
.story-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: top;
  transform: scaleY(1);
}
.story-step {
  position: relative;
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  align-items: baseline;
  padding-block: 0.85rem;
}
.step-time { font-size: 0.9375rem; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.story-step p { font-size: 1.0625rem; line-height: 1.45; letter-spacing: -0.01em; }
.step-node {
  position: absolute;
  left: -2.25rem;
  top: calc(0.85rem + 0.2em);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.step-node::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}
@media (min-width: 60rem) { .story-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
@media (max-width: 29.99rem) { .story-step { grid-template-columns: minmax(0, 1fr); } }

/* Live states, only once main.js drives the story */
.story.is-live .story-fill { transform: scaleY(0); transition: transform var(--dur-ui) var(--ease-in-out); }
.story.is-live .story-step {
  opacity: 0.32;
  transition: opacity var(--dur-ui) ease;
}
.story.is-live .story-step.is-past { opacity: 0.55; }
.story.is-live .story-step.is-active { opacity: 1; }
.story.is-live .step-node { border-color: var(--line-strong); transition: border-color var(--dur-ui) ease, transform var(--dur-ui) var(--ease-out); }
.story.is-live .step-node::after { opacity: 0; transform: scale(0.5); transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out); }
.story.is-live .is-past .step-node,
.story.is-live .is-active .step-node { border-color: var(--accent); }
.story.is-live .is-past .step-node::after,
.story.is-live .is-active .step-node::after { opacity: 1; transform: none; }
.story.is-live .is-active .step-node { transform: scale(1.12); }
.story.is-live .step-time { transition: color var(--dur-hover) ease; }
.story.is-live .is-active .step-time { color: var(--accent); }

/* Big clock that follows the active step (sticky mode only) */
.story-clock { display: none; margin-top: 2.75rem; }
.story.is-sticky .story-clock { display: block; }
.sc-time {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: clamp(3.5rem, 2rem + 3.6vw, 5.5rem);
  font-weight: 620;
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums lining-nums;
}
.sc-ap { font-size: 0.32em; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }
.sc-status { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.55rem; font-size: 0.9375rem; font-weight: 600; }
.sc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--tone) 20%, transparent);
  transition: background-color var(--dur-ui) ease, box-shadow var(--dur-ui) ease;
}
[data-tone="alert"] { --tone: #E5484D; }
[data-tone="work"] { --tone: #E09A1A; }
[data-tone="done"] { --tone: var(--ok); }

/* Sticky mode on large screens: the stage pins while the page scrolls past it */
.story.is-sticky { padding-block: 0; }
.story.is-sticky .story-track { height: 250vh; }
.story.is-sticky .story-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 68px;
}
.story.is-sticky .story-stage > .wrap { width: 100%; }

/* ==========================================================================
   Services
   ========================================================================== */
.services { background: var(--bg-soft); }
.services-head { margin-bottom: 3rem; }
.svc-list-wrap { position: relative; }
.svc-item { padding-block: 1.1rem; border-top: 1px solid var(--line); }
.svc-item:first-child { border-top: 0; padding-top: 0; }
.svc-name { display: block; font-weight: 600; letter-spacing: -0.015em; font-size: 1.125rem; }
.svc-line { display: block; margin-top: 0.2rem; color: var(--ink-2); }
.svc-panels, .svc-hl { display: none; }

/* Desktop, enhanced by main.js: a list on the left, one moving highlight, a crossfading panel */
@media (min-width: 60rem) {
  .svc.is-enhanced { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; align-items: start; }
  .svc.is-enhanced .svc-item {
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 3.5rem;
    padding: 0 1.1rem;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    transition: transform var(--dur-press) var(--ease-out);
  }
  .svc.is-enhanced .svc-item:active { transform: scale(var(--press-wide)); }
  .svc.is-enhanced .svc-name { font-weight: 550; font-size: 1.1875rem; color: var(--ink-3); transition: color var(--dur-hover) ease; }
  .svc.is-enhanced .svc-item[aria-selected="true"] .svc-name { color: var(--ink); }
  .svc.is-enhanced .svc-line { display: none; }
  .svc.is-enhanced .svc-item:focus-visible { outline-offset: -2px; border-radius: 12px; }
  .svc.is-enhanced .svc-hl {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3.5rem;
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--lift);
    transition: transform var(--dur-ui) var(--ease-in-out);
  }
  .svc.is-enhanced.is-placing .svc-hl { transition: none; }
  .svc.is-enhanced .svc-panels {
    display: grid;
    min-height: 21rem;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--lift);
  }
  /* Outgoing panel steps back fast and up; the new one rises in a little slower,
     so the two never read as one stack of doubled text. */
  .svc-panel {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translateY(calc(var(--rise) * -0.5));
    filter: blur(2px);
    pointer-events: none;
    transition:
      opacity var(--dur-press) var(--ease-out),
      transform var(--dur-press) var(--ease-out),
      filter var(--dur-press) var(--ease-out);
  }
  .svc-panel.is-active {
    opacity: 1; transform: none; filter: none; pointer-events: auto;
    transition-duration: var(--dur-ui);
    transition-delay: calc(var(--dur-press) * 0.5);
  }
  .svc-panel:focus-visible { outline-offset: 8px; border-radius: 12px; }
}
.svc-panel-title { font-size: 1.75rem; font-weight: 620; letter-spacing: -0.035em; line-height: 1.15; }
.svc-panel-line { margin-top: 0.6rem; color: var(--ink-2); font-size: 1.0625rem; max-width: 30rem; }
.svc-detail { margin-top: 1.75rem; border-top: 1px solid var(--line); }
.svc-detail li {
  position: relative;
  padding: 0.8rem 0 0.8rem 1.6rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9875rem;
}
.svc-detail li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 1.25rem;
  width: 0.7rem;
  height: 0.38rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ==========================================================================
   Switching: a line draws through the three steps
   ========================================================================== */
.steps { position: relative; display: grid; gap: 2.25rem 3rem; margin-top: 3.5rem; padding-left: 2.5rem; }
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
}
.steps::before { background: var(--line-strong); }
.steps::after { background: var(--accent); transform-origin: top; }
/* The last step ("we run it") has no end, so the line fades out instead of stopping */
.steps::before, .steps::after {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 5rem), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 5rem), transparent);
}
.step { position: relative; }
.step-dot {
  position: absolute;
  z-index: 1;
  left: -2.5rem;
  top: 0.2em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.step p { color: var(--ink-2); max-width: 22rem; }
.step-n { color: var(--accent); font-weight: 600; }
@media (min-width: 48rem) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-left: 0; padding-top: 2.75rem; }
  .steps::before, .steps::after { left: 8px; right: 0; top: 7px; bottom: auto; width: auto; height: 2px; }
  .steps::after { transform-origin: left; }
  .steps::before, .steps::after {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 8rem), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 8rem), transparent);
  }
  .step-dot { left: 0; top: -2.75rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .steps::after { transform: scaleY(0); transition: transform var(--dur-sweep) var(--ease-in-out); }
  .js .step {
    opacity: 0;
    transform: translateY(var(--rise));
    filter: blur(var(--blur));
    transition:
      opacity var(--dur-enter) var(--ease-out),
      transform var(--dur-enter) var(--ease-out),
      filter var(--dur-enter) var(--ease-out);
  }
  /* Each step arrives as the line reaches it (the in-out curve passes 1/3 and 2/3 at about 42% and 58%) */
  .js .steps.is-in .step:nth-child(2) { transition-delay: calc(var(--dur-sweep) * 0.42); }
  .js .steps.is-in .step:nth-child(3) { transition-delay: calc(var(--dur-sweep) * 0.58); }
  .js .steps.is-in::after { transform: none; }
  .js .steps.is-in .step { opacity: 1; transform: none; filter: none; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 48rem) {
  .js .steps::after { transform: scaleX(0); }
  .js .steps.is-in::after { transform: none; }
}

/* ==========================================================================
   FAQ: height via grid rows (0fr to 1fr), chevron turns
   ========================================================================== */
.faq-section { background: var(--bg-soft); }
.split { display: grid; gap: 2.5rem 4rem; }
@media (min-width: 56rem) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.split-head .section-lead { font-size: 1.0625rem; max-width: 22rem; }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  -webkit-tap-highlight-color: transparent;
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 64px; padding-block: 1rem;
  font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.35;
  transition: transform var(--dur-press) var(--ease-out);
}
.faq summary:active { transform: scale(var(--press-wide)); }
.faq summary::-webkit-details-marker { display: none; }
.chev { flex: none; fill: none; stroke: var(--ink-3); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--dur-ui) var(--ease-out); }
.faq details[open] .chev { transform: rotate(180deg); }
.faq-inner p { padding-bottom: 1.4rem; color: var(--ink-2); max-width: 40rem; }
.js .faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-ui) var(--ease-out);
}
.js .faq-inner { min-height: 0; overflow: hidden; opacity: 0; transition: opacity var(--dur-ui) var(--ease-out); }
.js .faq details[data-state="open"] .faq-body { grid-template-rows: 1fr; }
.js .faq details[data-state="open"] .faq-inner { opacity: 1; }
.js .faq details .chev { transform: none; }
.js .faq details[data-state="open"] .chev { transform: rotate(180deg); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-wrap { text-align: center; }
.contact-wrap .h2 { margin-inline: auto; }
.contact-wrap .section-lead { margin-inline: auto; }
.email-big {
  margin-block: 2rem;
  font-size: clamp(1.4rem, 1rem + 1.8vw, 2.25rem);
  font-weight: 600; letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}
.email-text { user-select: all; -webkit-user-select: all; }
.cta-center { justify-content: center; }

/* ==========================================================================
   Toasts (hand-built, Sonner behaviour): enter from the bottom, stack, leave the same way
   ========================================================================== */
.toaster {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  width: min(22rem, calc(100% - 2rem));
  height: 0;
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
  pointer-events: none;
}
@media (min-width: 48rem) {
  .toaster { left: auto; right: calc(var(--gutter) + 0.5rem); transform: none; }
}
.toast {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: var(--toast-bg);
  color: var(--toast-ink);
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.08);
  font-size: 0.9375rem;
  line-height: 1.35;
  transform-origin: bottom center;
  transform: translateY(calc(var(--index, 0) * -12px)) scale(calc(1 - var(--index, 0) * 0.05));
  opacity: 1;
  transition:
    transform var(--dur-toast) var(--ease-toast),
    opacity var(--dur-toast) var(--ease-toast);
}
.toast[data-mounted="false"] { transform: translateY(100%); opacity: 0; }
.toast[data-hidden="true"] { opacity: 0; }
/* Exit is faster than the entrance, along the same path */
.toast[data-removed="true"] {
  transform: translateY(100%);
  opacity: 0;
  transition-duration: var(--dur-ui);
}
.toast svg { flex: none; }
.toast-title { font-weight: 600; }
.toast-desc { opacity: 0.7; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); padding-block: 3rem calc(2rem + env(safe-area-inset-bottom, 0px)); font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer-brand p { margin-top: 0.5rem; color: var(--ink-2); }
.footer-brand p .brand-name { font-weight: inherit; letter-spacing: inherit; }
.footer-brand .logo .brand-name { font-size: 1.0625rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.25rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink-2); text-decoration: none; transition: color var(--dur-hover) ease; }
@media (hover: hover) and (pointer: fine) { .footer-links a:hover { color: var(--ink); } }
.footer-small { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 2rem; color: var(--ink-3); font-size: 0.875rem; }
@media (min-width: 48rem) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) auto; }
  .footer-links { align-items: flex-end; }
}

/* ==========================================================================
   404
   ========================================================================== */
.lost { min-height: calc(100dvh - 68px); display: grid; align-items: center; padding-block: 4rem; }
.lost .hero-title { font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); }
.lost-code { font-size: 0.9375rem; font-weight: 600; color: var(--accent); margin-bottom: 1rem; }
.hero-cta { margin-top: 2.25rem; }

/* ==========================================================================
   Reduced motion and contrast
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .btn, .chev, .faq summary, .svc-item, .svc-hl, .svc-panel, .story-fill, .story-step, .step-node, .step-node::after { transition-property: opacity, color, background-color, border-color; }
  .btn:active, .faq summary:active, .svc.is-enhanced .svc-item:active { transform: none; }
  .svc-panel { transform: none !important; filter: none !important; }
  .toast, .toast[data-mounted="false"], .toast[data-removed="true"] { transform: none; }
  .js .faq-body, .js .faq-inner { transition: none; }
}
@media (prefers-contrast: more) {
  .site-header::before { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .btn-secondary { border-color: var(--ink-2); }
  :root, :root:not([data-theme="light"]), :root[data-theme="dark"] { --ink-2: var(--ink); --ink-3: var(--ink); --band-ink-2: var(--band-ink); --line: var(--ink-3); }
}
