/* {{BRAND}} site styles. plain css, no build step, self-hosted fonts, runs offline. */

/* small layout utilities (moved out of inline style= on services.html so a strict
   style-src csp holds at deploy). */
.mt-18 { margin-top: 18px; }
.svc-wrap { padding-top: 44px; padding-bottom: 60px; }
.svc-cta { border: 0; text-align: center; padding: 20px 0 0; }

/* self-hosted fonts. inter for ui/body, jetbrains mono for labels/terminal. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/inter-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/JetBrainsMono-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/JetBrainsMono-Bold.woff2") format("woff2");
}

/*
  palette. ONLY the five design-system colors per mode. any lighter/darker
  tone is derived from one of these five via opacity (color-mix / rgba), never
  a new invented hue. light is the default; dark applies when the system asks
  for it (initial default only) OR when the user picks it with the header
  toggle via [data-theme]. the toggle wins over the system setting.
*/
:root {
  --bg: #F0F7EE;         /* mint cream */
  --text: #02020A;       /* near-black */
  --primary: #05204A;    /* prussian blue */
  --accent: #247BA0;     /* cerulean */
  --secondary: #AFDEDC;  /* frosted blue */
  /* R3.2: the OTHER mode's text color, for the drag-inversion clone. light
     mode exposes the dark text tone, dark mode the light text tone. both are
     existing palette values, no new hue. */
  --text-opposite: #f7f7fd;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1080px;
  --radius: 4px;
}

/* dark palette values, shared by system-default and by the manual toggle */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1108;
    --text: #f7f7fd;
    --primary: #b7d0fa;
    --accent: #61b7db;
    --secondary: #21504d;
    --text-opposite: #02020A;
  }
}
/* manual override: user picked a theme. these win regardless of the system. */
:root[data-theme="light"] {
  --bg: #F0F7EE;
  --text: #02020A;
  --primary: #05204A;
  --accent: #247BA0;
  --secondary: #AFDEDC;
  --text-opposite: #f7f7fd;
}
:root[data-theme="dark"] {
  --bg: #0a1108;
  --text: #f7f7fd;
  --primary: #b7d0fa;
  --accent: #61b7db;
  --secondary: #21504d;
  --text-opposite: #02020A;
}

* { box-sizing: border-box; }

/* guard against any single element pushing the page wider than the viewport
   (e.g. a long unbroken string, or the clamped terminal transform). clip (not
   hidden) because hidden makes the root a scroll container, which breaks
   position: sticky on the header; clip trims the same overflow without that. */
html, body { overflow-x: clip; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  /* C2: smooth color crossfade when the theme toggle flips the palette. */
  transition: background-color 0.4s ease, color 0.4s ease;
}
/*
  C2 crossfade. surfaces that carry their own background/border fade together
  with the body so the whole page transitions as one instead of snapping.
  only surfaces WITHOUT an existing hover transition are listed here; the
  ones that already animate (.btn, .btn-link, .why-card, .offer-card,
  .term-chip, .nav-link, .theme-toggle) get the color props folded into
  their own transition rule instead, so their hover motion is not clobbered.
*/
.site-header, .terminal, .offers, .contacts, .page-intro, .svc-block, .footer {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

a { color: var(--accent); }

h1, h2, h3 { line-height: 1.18; color: var(--text); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 18px; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin: 0 0 18px; }
h3 { font-size: 1.15rem; margin: 0 0 8px; font-weight: 600; }
p { margin: 0 0 14px; }

/* accessibility helpers */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--primary); color: var(--bg);
  padding: 10px 16px; z-index: 100; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* mono label used across sections */
.label {
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 12px;
}
.why-tag { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); margin: 0 0 8px; }

/* header / nav */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  /* Safari needs the -webkit- prefix; both are harmless where unsupported and
     the solid-ish bg above keeps the header readable without the blur. */
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 24px; max-width: var(--wrap); margin: 0 auto;
}
.brand-mark { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
/* real logo: colour lockup on light surfaces, white lockup on dark. flat brand asset,
   no glow/shadow (anti-AI-tell). the two variants swap with the theme. */
.brand-logo { height: 64px; width: auto; display: block; }
.brand-logo-inverse { display: none; }
:root[data-theme="dark"] .brand-logo-color { display: none; }
:root[data-theme="dark"] .brand-logo-inverse { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo-color { display: none; }
  :root:not([data-theme="light"]) .brand-logo-inverse { display: block; }
}
.nav-menu { display: flex; align-items: center; gap: 22px; }
/* C3: nav links fade smoothly on hover (and on theme switch). */
.nav-link {
  color: color-mix(in srgb, var(--text) 66%, transparent);
  text-decoration: none; font-size: 0.95rem; font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}
.nav-link:hover, .nav-link:focus-visible { color: var(--text); }
/* animated underline that grows from the left on hover/focus-visible. */
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease;
}
.nav-link:hover::after, .nav-link:focus-visible::after { transform: scaleX(1); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle-bar { width: 24px; height: 2px; background: var(--text); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* theme toggle button in the header */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; padding: 0;
  background: none; cursor: pointer;
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--text) 22%, transparent);
  border-radius: var(--radius);
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.theme-toggle:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* language toggle: a small mono EN/SK box, matches the theme-toggle shape.
   shows the language a click switches TO (set by app.js). */
.lang-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 9px;
  background: none; cursor: pointer; color: var(--text);
  border: 1px solid color-mix(in srgb, var(--text) 22%, transparent);
  border-radius: var(--radius);
  font-family: var(--mono); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.5px;
  transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}
.lang-toggle:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* C2: sun/moon icon crossfade + rotate instead of an instant swap */
.theme-toggle svg {
  width: 18px; height: 18px; display: block;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
/*
  show sun in dark mode (click to go light), moon in light mode (click to go
  dark). the two icons are stacked on top of each other so we can crossfade +
  rotate between them (C2) rather than hard-swapping display, which cannot
  animate. the button is the positioning context.
*/
.theme-toggle { position: relative; }
.theme-toggle svg { position: absolute; top: 50%; left: 50%; margin: -9px 0 0 -9px; }
/* default (light): moon visible, sun hidden-rotated */
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0); }
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg); }
/* dark via manual toggle */
:root[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0); }
:root[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg); }
/* dark via system default (only before the user picks light) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { opacity: 1; transform: rotate(0); }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg); }
}

/*
  buttons: terminal / mono aesthetic. square-ish, monospace, a leading "$"
  marker on the primary button, an animated inline arrow on links.
*/
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  position: relative; overflow: hidden;
  color: var(--bg);
  text-decoration: none; padding: 12px 20px; border-radius: var(--radius);
  font-family: var(--mono); font-weight: 500; font-size: 0.95rem;
  border: 1px solid var(--primary);
  /* flat solid fill - the baked gloss highlight + hover shine sweep were ai-tells, removed */
  background: var(--primary);
  transition: transform 0.12s ease,
              background-color 0.4s ease, border-color 0.4s ease, color 0.4s ease;
}
.btn::before { content: "$"; opacity: 0.6; position: relative; z-index: 1; }
/* flat hover: a small lift only, no shadow/glow/sweep */
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-small { padding: 8px 14px; font-size: 0.86rem; }

/* text link with an inlined arrow icon that slides on hover + animated underline.
   also used on <button> CTAs, so reset native button chrome here. */
.btn-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); text-decoration: none;
  font-family: var(--mono); font-weight: 500; font-size: 0.92rem;
  position: relative;
  background: none; border: 0; padding: 0; cursor: pointer;
  transition: color 0.3s ease;
}
.btn-link .icon-arrow { width: 16px; height: 16px; transition: transform 0.22s ease; }
.btn-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease;
}
.btn-link:hover::after, .btn-link:focus-visible::after { transform: scaleX(1); }
.btn-link:hover .icon-arrow, .btn-link:focus-visible .icon-arrow { transform: translateX(4px); }

/* sections */
section { padding: 84px 0; }
.lead { font-size: 1.2rem; color: color-mix(in srgb, var(--text) 68%, transparent); max-width: 720px; }

/* hero */
.hero {
  padding-top: 72px;
  position: relative;
  /* fit the space under the sticky header (~96px) so the bottom scroll cue lands
     in view instead of spilling below the fold */
  min-height: calc(100vh - 96px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
/* the LEFT copy sits over the dark photo: pin the light-on-dark palette just here
   so the headline/sub/CTAs stay readable no matter the page theme. the terminal
   card keeps its own palette (it is a light panel with its own dark text). */
.hero-copy {
  --text: #f7f7fd;
  --primary: #b7d0fa;
  --accent: #61b7db;
  --secondary: #AFDEDC;
  --text-opposite: #02020A;
}
/* the hero fill button is pinned light-blue (--primary above) in BOTH themes, so its
   label must be dark ink, not var(--bg): in light theme var(--bg) is near-white and
   vanished on the light-blue fill. --text-opposite is dark here = readable on both. */
.hero-copy .btn { color: var(--text-opposite); }
.hero-copy .btn::before { color: var(--text-opposite); }
.hero-wrap {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 48px; align-items: center;
}
.hero-copy { position: relative; }
.hero h1 { max-width: 640px; }

/*
  R3.2 drag-inversion clone. a copy of the hero copy sits exactly over the
  original, painted in the OTHER mode's text color, and is normally hidden by
  a zero-area clip. while the terminal is dragged, JS updates its clip-path to
  reveal only the slice of text under the terminal, so the covered text reads
  in the opposite theme color. non-interactive and hidden from a11y tree.
*/
.hero-copy-ghost {
  position: absolute; inset: 0; margin: 0;
  pointer-events: none; user-select: none;
  color: var(--text-opposite);
  /* start fully clipped (nothing shown) until a drag reveals a region. */
  clip-path: inset(0 100% 100% 0);
}
/* the ghost must paint ITS OWN text in the opposite color, overriding the
   token-colored children it was cloned from (headline, sub, swap word). */
.hero-copy-ghost h1,
.hero-copy-ghost .sub,
.hero-copy-ghost .swap-word { color: var(--text-opposite); }
/* the live word-swap keeps cycling on the original; freeze the ghost's copy
   so the two stay pixel-aligned and the reveal never shows a stale frame. */
.hero-copy-ghost .swap-word { animation: none; opacity: 1; }
.hero-copy-ghost .swap-word:nth-child(n+2) { display: none; }
/*
  invert the ghost's CTAs too, so the slice under the terminal stays readable.
  same idea as the text: paint in the OPPOSITE theme palette. the solid button
  fills with the opposite text tone and its label takes the opposite bg; the
  text link flips to the opposite text tone. palette values only (mix/opacity),
  no new hue. the ghost's sweep is frozen so the reveal never shows a stale frame.
*/
.hero-copy-ghost .btn {
  color: var(--text);
  border-color: var(--text-opposite);
  background: var(--text-opposite);
}
.hero-copy-ghost .btn::after { display: none; }
.hero-copy-ghost .btn-link {
  color: var(--text-opposite);
}
.hero-copy-ghost .btn-link::after { background: var(--text-opposite); }
.hero .sub { font-size: 1.18rem; color: color-mix(in srgb, var(--text) 68%, transparent); max-width: 560px; margin-bottom: 26px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
/* D2 safety net: keep the hero primary CTA above the draggable terminal so a
   drag can never visually cover or block it (JS also clamps it out). */
.hero .cta-row { position: relative; z-index: 3; }
/* trust microcopy under the hero CTA: quiet + light over the dark photo */
.cta-note { position: relative; z-index: 3; margin-top: 12px; font-size: 0.86rem; color: rgba(255, 255, 255, 0.72); }

/*
  animated word swap on its own dedicated line with reserved height so the
  layout never jumps as the word cycles.
*/
.hero h1 .swap-line {
  display: block;
  min-height: 1.3em;   /* reserve the (now larger) word's line height */
}
.swap { display: inline-grid; vertical-align: bottom; }
/* swap words are the signature motion: made bigger and bolder than the
   surrounding headline so they read as the moving focal point. */
.swap-word {
  grid-area: 1 / 1; color: var(--accent); font-family: var(--mono);
  font-weight: 700; opacity: 0; letter-spacing: -0.02em;
  font-size: 1.18em; line-height: 1;
  animation: swap 6s infinite;
}
.swap-word:nth-child(1) { animation-delay: 0s; }
.swap-word:nth-child(2) { animation-delay: 2s; }
.swap-word:nth-child(3) { animation-delay: 4s; }
@keyframes swap {
  0%    { opacity: 0; transform: translateY(8px); }
  6%    { opacity: 1; transform: translateY(0); }
  28%   { opacity: 1; transform: translateY(0); }
  34%   { opacity: 0; transform: translateY(-8px); }
  100%  { opacity: 0; }
}

/*
  terminal visual. tones are derived from the five palette colors via opacity
  so we do not invent extra hues. primary is the terminal background; text is
  a light-on-dark inversion built from --secondary/--bg mixes.
*/
.terminal {
  background: var(--primary); border-radius: var(--radius);
  /* hairline only: the drop shadow broke the "toast is the only shadow" rule in the hero.
     a stronger border separates it from the photo without a shadow. */
  border: 1px solid color-mix(in srgb, var(--text) 22%, transparent); overflow: hidden;
  font-family: var(--mono);
  position: relative; z-index: 1;
  /* D2: JS sets transform for drag; keep a snap-back ease when it resets.
     the transform itself is applied via element.style.transform (CSSOM),
     never an inline style= attribute, so style-src 'self' still holds. */
  transition: transform 0.25s ease;
}
/*
  R3.2: while dragging we drive movement with transform only and promote the
  terminal to its own layer. no layout-affecting props animate; the snap-back
  transition is suppressed so the pointer-driven move is 1:1.
*/
.terminal.dragging {
  transition: none; cursor: grabbing;
  will-change: transform;
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; background: color-mix(in srgb, var(--secondary) 16%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--secondary) 18%, transparent);
}
/* D2: the title bar is the drag handle on desktop pointers. JS adds .draggable. */
.terminal.draggable .term-bar { cursor: grab; touch-action: none; }
.terminal.draggable.dragging .term-bar { cursor: grabbing; }
.term-dot { width: 11px; height: 11px; border-radius: 50%; background: color-mix(in srgb, var(--secondary) 55%, var(--primary)); }
.term-title { margin-left: 8px; color: color-mix(in srgb, var(--secondary) 80%, var(--primary)); font-size: 0.8rem; }
/*
  D1: fixed height with internal scroll so typing many commands never grows
  the page. newest line sits at the bottom (JS pins scrollTop); scroll up for
  history, like a real terminal.
*/
.term-body {
  margin: 0; padding: 20px; color: var(--secondary);
  font-size: 0.88rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word;
  /* tall enough for 7 lines + input + hint row at this line-height; max is a
     CAP so typing many extra commands scrolls internally, never grows the page. */
  min-height: 300px; max-height: 300px; overflow-y: auto;
}
.term-body .ln { display: block; }
/*
  R5.5: on load the body lines reveal one after another, as if the pipeline is
  running, ending at the blinking cursor. JS adds .term-run to the body (only
  when motion is allowed), which hides the static lines then fades + lifts each
  one in on a short staggered delay. the body keeps its fixed min-height, so
  reserving the hidden lines never reflows the page. without .term-run (no JS or
  reduced-motion) every line is visible at once, the static frame.
*/
.term-body.term-run .ln { opacity: 0; transform: translateY(4px); }
.term-body.term-run .ln.is-in {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
/* R4.2: one shared rule drives EVERY "$" prompt (static body lines, the
   interactive input line, and the hint row). same color, weight, and a fixed
   font-size so none inherits a different scale from its row. */
.term-body .prompt,
.term-input-line .prompt,
.term-hints .prompt {
  color: var(--secondary); font-weight: 700;
  font-family: var(--mono); font-size: 0.88rem; line-height: 1.6;
}
.term-body .ok { color: var(--secondary); }
.term-body .muted { color: color-mix(in srgb, var(--secondary) 72%, var(--primary)); }
.term-body .err { color: var(--secondary); font-weight: 700; }

/* interactive input line (revealed by JS; hidden when JS is off).
   R4.2: match .term-body font metrics AND its 20px left padding so the "$"
   prompt lines up exactly under the static body prompts. gap after the "$"
   matches the single space the body prompts use. */
.term-input-line {
  display: none; align-items: baseline; gap: 6px; margin-top: 4px;
  padding: 0 20px;
  font-size: 0.88rem; line-height: 1.8;
}
.js .term-input-line { display: flex; }
.term-input {
  flex: 1; min-width: 0;
  background: transparent; border: 0; outline: none;
  color: var(--secondary);
  font-family: var(--mono); font-size: 0.88rem; line-height: 1.8;
  caret-color: var(--secondary); padding: 0;
}
/*
  suggestion chips. these live INSIDE the terminal, on the dark --primary
  terminal background, so they must use the terminal's light-on-dark tone
  (--secondary, same as .term-body) instead of the page foreground. the old
  page-foreground tones (--text 60%, --accent) were near-invisible on the
  dark terminal in both themes; --secondary on --primary clears WCAG AA
  (light: #AFDEDC on #05204A ~10:1, dark: #21504d on #b7d0fa ~6.7:1).
*/
.term-hints {
  display: none; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 0 0 18px; padding: 0 20px;
  font-family: var(--mono); font-size: 0.78rem;
  color: var(--secondary);
}
.js .term-hints { display: flex; }
/* R4.2: the "$" hugs the "try:" text with the same small gap the input line
   uses, so the hint reads as one terminal line aligned to the body prompts. */
.term-hints .prompt { margin-right: -2px; }
/* the "try:" label full-strength on the dark terminal, not knocked back */
.term-hints .try-label { color: var(--secondary); }
.term-chip {
  background: transparent; cursor: pointer;
  color: var(--secondary); font-family: var(--mono); font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--secondary);
  border-radius: var(--radius); padding: 4px 11px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
/* reads as tappable: solid fill + inverted text on hover/focus */
.term-chip:hover, .term-chip:focus-visible {
  background: var(--secondary); color: var(--primary);
  transform: translateY(-1px);
}

.cursor {
  display: inline-block; width: 9px; height: 1.05em;
  background: var(--secondary); vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* why automation matters */
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 28px;
}
.why-card {
  position: relative;
  background: color-mix(in srgb, var(--secondary) 14%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  border-radius: var(--radius); padding: 26px;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.why-card:hover { transform: translateY(-3px); }

/*
  spotlight. .is-lit is the moving highlight: by default JS puts it on the
  middle (payoff) card; hovering any card moves it there; after idle it
  returns to the middle. same visual on all three. built from palette tones.
*/
.why-card.is-lit {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--secondary) 30%, var(--bg));
}

/*
  corner-bracket reticle on the why cards. four L-shaped marks drawn with two
  borders each at the corners. base class is "bk"; the bottom-right corner is
  "rb" so every corner keeps a unique selector and all four render.
  R5.1: brackets live on ALL three cards now. they are hidden by default and
  fade/scale IN whenever a card is .is-lit. the spotlight logic (app.js) puts
  .is-lit on hover and returns it to the middle card on idle, so the middle
  card shows its brackets by default and whenever nothing is hovered.
*/
.why-card .brackets {
  position: absolute; inset: 8px; pointer-events: none;
  opacity: 0; transform: scale(0.96);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.why-card.is-lit .brackets { opacity: 1; transform: scale(1); }
.why-card .bk { position: absolute; width: 14px; height: 14px; border: 2px solid var(--accent); }
.why-card .bk.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.why-card .bk.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.why-card .bk.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.why-card .bk.rb { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* offers */
.offers { background: color-mix(in srgb, var(--secondary) 12%, var(--bg)); }
.offer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 30px;
}
.offer-card {
  position: relative;
  background: var(--bg); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  border-radius: var(--radius); padding: 26px;
  display: flex; flex-direction: column;
  transition: transform 0.15s ease, border-color 0.2s ease, background-color 0.4s ease;
}
.offer-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.offer-card.entry { border: 2px solid var(--accent); }
/* flag pinned OUT OF FLOW (top-right pill) so it never pushes the card body down -
   every card's title sits on the same baseline whether it has a flag or not */
.entry-flag {
  position: absolute; top: 14px; right: 16px; margin: 0;
  font-family: var(--mono); font-size: 0.62rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--bg); background: var(--accent);
  padding: 3px 9px; border-radius: 999px;
}
.offer-benefit { color: color-mix(in srgb, var(--text) 68%, transparent); flex: 1; }
/*
  prices aligned across all six cards. the price block is a fixed two-row
  stack: the MAIN figure (.price-main) sits on a shared baseline in every
  card, with the range/unit as a smaller note underneath. the block has a
  reserved height so the CTA row below lines up across cards regardless of
  whether a card has a note line or not.
*/
.offer-price {
  display: flex; flex-direction: column; gap: 2px;
  margin: 6px 0 16px; min-height: 3.4em;
}
.offer-price .price-main {
  font-family: var(--mono); font-size: 1.35rem; font-weight: 700;
  color: var(--text); line-height: 1.2;
}
.offer-price .unit {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
  color: color-mix(in srgb, var(--text) 60%, transparent);
}
/* one shared CTA style on all six cards, pinned to a common baseline row */
.offer-cta { align-self: flex-start; margin-top: auto; padding-top: 4px; }
.footnote { margin-top: 26px; color: color-mix(in srgb, var(--text) 62%, transparent); font-size: 0.92rem; }

/* who we are */
.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 26px; }
.who-grid p { max-width: 52ch; }

/* faqs */
.faq-list { margin-top: 24px; max-width: 760px; }
.faq-list details {
  border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent); padding: 6px 0;
}
.faq-list summary {
  cursor: pointer; font-weight: 600; padding: 14px 0;
  list-style: none; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
/*
  C4: plus <-> minus icon crossfades + rotates instead of hard-swapping
  display. the two icons are stacked so both can transition.
*/
.faq-icon {
  flex: 0 0 auto; color: var(--accent);
  position: relative; width: 20px; height: 20px;
  transition: transform 0.25s ease;
}
.faq-icon svg { position: absolute; top: 0; left: 0; transition: opacity 0.25s ease, transform 0.25s ease; }
.faq-icon .icon-minus { opacity: 0; transform: rotate(-90deg); }
/*
  R4.1: open/close is driven by an "is-open" class, not the native [open]
  attribute. JS keeps the panel rendered and animates a measured pixel
  max-height both ways (see app.js). the [open] selectors remain as a no-JS
  fallback (works, just without motion).
*/
.faq-list details.is-open .faq-icon,
.faq-list details[open]:not(.js-faq) .faq-icon { transform: rotate(180deg); }
.faq-list details.is-open .faq-icon .icon-plus,
.faq-list details[open]:not(.js-faq) .faq-icon .icon-plus { opacity: 0; transform: rotate(90deg); }
.faq-list details.is-open .faq-icon .icon-minus,
.faq-list details[open]:not(.js-faq) .faq-icon .icon-minus { opacity: 1; transform: rotate(0); }
/*
  R4.1: animate the panel with a measured max-height (set in px by JS each
  toggle). the fr-based grid trick did not reliably fire its transitionend on
  close in every browser, so the panel left empty space then collapsed late.
  a pixel max-height animates symmetrically every open AND close, and JS
  clears it to 0 when fully closed so no leftover space remains. the no-JS
  [open] fallback just shows the panel (no height animation needed).
*/
.faq-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.28s ease;
}
.faq-list details[open]:not(.js-faq) .faq-panel { max-height: none; }
.faq-panel > p {
  color: color-mix(in srgb, var(--text) 68%, transparent);
  margin: 14px 0 16px; max-width: 68ch;
}

/* contacts */
.contacts { background: color-mix(in srgb, var(--secondary) 12%, var(--bg)); text-align: center; }
.contacts .lead { margin: 0 auto 26px; }
.contacts .cta-row { justify-content: center; }

/* footer */
.footer { border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent); padding: 30px 0; }
.footer-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
.footer-year { font-family: var(--mono); color: color-mix(in srgb, var(--text) 60%, transparent); font-size: 0.9rem; }
.footer-legal { color: color-mix(in srgb, var(--text) 60%, transparent); text-decoration: none; font-size: 0.92rem; }
.footer-legal:hover { color: var(--text); }

/* --- shared blocks for services.html / legal.html --- */
.page-intro { background: color-mix(in srgb, var(--secondary) 12%, var(--bg)); padding: 56px 0; }
.eyebrow {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 1.5px;
  font-size: 0.72rem; color: var(--accent); font-weight: 500; margin: 0 0 12px;
}
.svc-block {
  background: color-mix(in srgb, var(--secondary) 14%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  border-radius: var(--radius); padding: 28px; margin-bottom: 22px;
}
.svc-block.entry { border: 2px solid var(--accent); }
.svc-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.svc-price { font-family: var(--mono); color: var(--text); font-weight: 700; white-space: nowrap; }
.badge {
  display: inline-block; background: var(--accent); color: var(--bg);
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 9px;
  border-radius: 20px; margin-left: 8px; vertical-align: middle;
}
.meta { color: color-mix(in srgb, var(--text) 62%, transparent); font-size: 0.92rem; margin: 4px 0 14px; }
.back-to-check { margin-top: 12px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent); font-size: 0.95rem; color: color-mix(in srgb, var(--text) 62%, transparent); }
.legal-body { padding: 40px 0 60px; }
.legal-body h2 { margin-top: 34px; }
.placeholder-block {
  background: color-mix(in srgb, var(--secondary) 12%, var(--bg));
  border: 1px dashed color-mix(in srgb, var(--text) 20%, transparent);
  border-radius: var(--radius); padding: 18px 20px; color: color-mix(in srgb, var(--text) 62%, transparent);
}

/*
  R5.3: booking modal (ui shell only). the overlay is [hidden] by default and
  JS removes [hidden] + adds .open to show it. the dialog is a plain styled
  box; all tones come from the five palette colors via opacity, no new hue.
  the form submits nowhere (no action/method; JS preventDefault).
*/
.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: color-mix(in srgb, var(--text) 55%, transparent);
  opacity: 0; transition: opacity 0.2s ease;
}
.modal-overlay.open { opacity: 1; }
.modal-overlay[hidden] { display: none; }
.modal {
  width: 100%; max-width: 460px; max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--bg); color: var(--text);
  border: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
  border-radius: var(--radius); padding: 24px;
  box-shadow: 0 24px 60px color-mix(in srgb, var(--text) 30%, transparent);
  transform: translateY(8px); transition: transform 0.2s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal-head h2 { margin: 0; font-size: 1.35rem; }
.modal-close {
  flex: 0 0 auto; width: 36px; height: 36px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; cursor: pointer; color: var(--text);
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.modal-close:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.modal-close svg { width: 18px; height: 18px; }
.modal-note { color: color-mix(in srgb, var(--text) 68%, transparent); font-size: 0.95rem; margin: 6px 0 18px; }

/* required legend above the form; the star is the signal, text spells it out. */
.req-legend {
  font-family: var(--mono); font-size: 0.74rem;
  color: color-mix(in srgb, var(--text) 64%, transparent);
  margin: 0 0 16px;
}
.req-star { color: var(--accent); font-weight: 700; }

.book-form .field { margin-bottom: 18px; }
.field-row { display: flex; gap: 16px; }
.field-row .field { flex: 1; min-width: 0; }
.book-form label, .book-form legend {
  display: block; font-family: var(--mono); font-size: 0.78rem;
  font-weight: 500; color: color-mix(in srgb, var(--text) 72%, transparent);
  margin: 0 0 7px;
}
.book-form input[type="text"],
.book-form input[type="email"],
.book-form input[type="tel"],
.book-form select {
  width: 100%; min-height: 44px; padding: 11px 13px;
  font-family: var(--sans); font-size: 0.95rem;
  color: var(--text); background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--text) 22%, transparent);
  border-radius: var(--radius);
}
.book-form input:focus-visible, .book-form select:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
/*
  error state. no new hue: the emphasis is the palette --accent on the border
  plus a bold accent-colored message with a leading mark, and aria-invalid for
  assistive tech. an accent-tinted fill makes the bad field stand out without a
  brand-new red. tone via opacity only.
*/
.book-form input[aria-invalid="true"] {
  border-color: var(--accent); border-width: 2px;
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
}
.field-err {
  margin: 6px 0 0; min-height: 0; font-family: var(--mono);
  font-size: 0.76rem; font-weight: 700; color: var(--accent);
  display: none;
}
/* the leading "!" is a non-color cue so the error does not rely on hue alone. */
.field-err.show::before { content: "! "; }
.field-err.show { display: block; }

/* honeypot: off the screen for everyone, kept out of the tab order and the a11y
   tree (aria-hidden in markup). no display:none, so bots that fill visible-ish
   fields still find it. */
.hp-field {
  position: absolute; left: -9999px; top: 0;
  width: 1px; height: 1px; overflow: hidden;
}

.modal-actions { display: flex; align-items: center; gap: 18px; margin-top: 22px; }
/* sending state: dim + no pointer so a double-submit cannot fire. */
.btn[disabled] { opacity: 0.6; cursor: default; pointer-events: none; }

.book-status {
  margin: 14px 0 0; font-size: 0.9rem; font-weight: 500;
  color: color-mix(in srgb, var(--text) 72%, transparent);
  min-height: 1.2em;
}
/* success / error status are visible blocks, not a thin line: a bordered panel
   in the accent tone. same panel for both; the text says which, and a failed
   submit also marks the offending fields. palette tones only, no new hue. */
.book-status.show {
  padding: 11px 13px; border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
  color: var(--text);
}
.book-status.is-err { font-weight: 700; }

/* reduced-motion: no fade/scale on the modal, it just appears. */
@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .modal { transition: none; transform: none; }
}

/* responsive. three breakpoints: tablet reflow (<=1024px), stack + mobile
   nav (<=860px), small-phone tightening (<=520px). standard media queries
   only, nothing Safari trips on. */

/* tablet: three-up grids reflow to two columns before fully stacking. */
@media (max-width: 1024px) {
  .why-grid, .offer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* phone/stack: everything to one column, hero + terminal stack, nav collapses
   to the hamburger menu. */
@media (max-width: 860px) {
  .hero-wrap, .why-grid, .offer-grid, .who-grid { grid-template-columns: 1fr; }
  .hero-wrap { gap: 32px; }
  section { padding: 60px 0; }

  .nav-toggle { display: flex; }
  /*
    the collapse is scoped to a menu that FOLLOWS a .nav-toggle (sibling
    combinator, supported everywhere). the home page has the toggle + JS to
    open it; the sub-pages (services/legal) have neither, so their menu is NOT
    hidden here, it just wraps onto two lines and stays usable without JS.
  */
  .nav-toggle ~ .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg); border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
    padding: 14px 24px 22px;
  }
  .nav-toggle ~ .nav-menu.open { display: flex; }
  /* sub-page menu (no toggle): let it wrap instead of overflowing. */
  .nav-menu { flex-wrap: wrap; row-gap: 10px; }
  .nav-menu .nav-link { padding: 10px 0; font-size: 1.05rem; }
  .nav-menu .btn { text-align: center; justify-content: center; }
  .nav-toggle ~ .nav-menu .btn { margin-top: 8px; }
  .nav-menu .theme-toggle { align-self: center; }
  .nav-toggle ~ .nav-menu .theme-toggle { margin-top: 8px; align-self: flex-start; }
}

/* small phones: tighter gutters and a shorter terminal so the hero fits. */
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  /* phones: shorter cap; lines may wrap so overflow scrolls internally, never clipped-unscrollable. */
  .term-body { min-height: 240px; max-height: 240px; }
  .cta-row { gap: 14px; }
  .field-row { flex-direction: column; gap: 0; }
}

/*
  R4.4: disable the terminal drag affordance on touch / no-hover devices even
  if JS ran. JS already guards on (pointer: fine) + width, but this keeps the
  grab cursor and layering from implying draggability on hybrid devices.
*/
@media (hover: none), (pointer: coarse) {
  .terminal.draggable .term-bar,
  .terminal.draggable.dragging .term-bar { cursor: default; touch-action: auto; }
}

/* respect reduced-motion: kill the signature animations */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition: none !important; }
  /* stop cycling; show one static word so sighted users still read the headline */
  .swap-word { animation: none; opacity: 0; transform: none; }
  .swap-word:nth-child(1) { opacity: 1; }
  .cursor { animation: none; opacity: 1; }
  /* R4.3: no sweep under reduced-motion. the static gloss gradient on .btn
     stays (it is not motion); only the sliding highlight is removed. */
  .btn::after { display: none; }
  /* JS also declines to wire the interactive terminal under reduced-motion;
     the static frame and hidden input line remain. */
  /* R5.5: no run reveal under reduced-motion; all body lines show at once. */
  .term-body.term-run .ln { opacity: 1; transform: none; }
  /* product gallery: no blur/lift, logs shown statically (JS fills them at once) */
  .scn-term-body .ln { opacity: 1; transform: none; }
  .scn-grid.has-active .scn-card:not(.active) { filter: none; opacity: 1; }
  /* no scroll-reveal under reduced-motion: everything visible immediately */
  .reveal { opacity: 1; transform: none; }
}

/* ============ JumpingRay additions ============ */

/* language fade: dim the main content while text is swapped, then fade back. */
#main { transition: opacity 0.18s ease; }
html.lang-anim #main { opacity: 0.25; }

/* align card bodies: a fixed-height heading so the paragraph starts on the same
   line across all cards in a row (why / product / how), regardless of whether
   the heading is one line or two. */
.why-card h3 { min-height: 2.6em; }

/* early-access gate: terminal-styled overlay, a soft preview lock. */
.gate {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: var(--bg);
  transition: opacity 0.4s ease;
}
.gate.gate-out { opacity: 0; pointer-events: none; }
.gate-box {
  width: 100%; max-width: 420px;
  background: var(--primary); border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  overflow: hidden; font-family: var(--mono);
}
.gate-form { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.gate-title {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: 1.5px;
  font-size: 0.72rem; color: var(--secondary); margin: 0;
}
.gate-label { font-size: 0.9rem; color: color-mix(in srgb, var(--secondary) 85%, var(--primary)); margin: 0; }
.gate-input {
  width: 100%; padding: 11px 13px;
  background: color-mix(in srgb, var(--secondary) 10%, var(--primary));
  border: 1px solid color-mix(in srgb, var(--secondary) 35%, transparent);
  border-radius: var(--radius); color: var(--secondary);
  font-family: var(--mono); font-size: 0.95rem;
}
.gate-input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
/* the gate button sits on the dark --primary box, so flip it to --secondary
   fill with --primary text (the normal .btn is primary-on-bg and would vanish). */
.gate-form .btn {
  justify-content: center; margin-top: 2px;
  background: var(--secondary); color: var(--primary); border-color: var(--secondary);
}
.gate-form .btn::before { color: var(--primary); }
.gate-msg {
  font-family: var(--mono); font-size: 0.78rem; color: var(--secondary);
  margin: 0; min-height: 1em; opacity: 0; transition: opacity 0.2s ease;
}
.gate-msg.show { opacity: 1; }

/* early-access banner: a thin accent strip above the header, now a full-width
   clickable button that opens the early-access form. */
.ea-banner {
  display: block; width: 100%; border: 0; cursor: pointer;
  background: var(--accent); color: var(--bg);
  text-align: center; font-family: var(--mono);
  font-size: 0.76rem; letter-spacing: 0.5px; font-weight: 500;
  padding: 7px 16px;
}
.ea-banner:hover { background: color-mix(in srgb, var(--accent) 86%, var(--text)); }
.ea-banner:focus-visible { outline: 2px solid var(--bg); outline-offset: -3px; }

/* secondary mailto line under the contacts CTA */
.contact-mail { margin-top: 14px; font-family: var(--mono); font-size: 0.85rem; }
.contact-mail a { color: var(--accent); text-decoration: none; }
.contact-mail a:hover { text-decoration: underline; }

/* ============ product gallery: scenario cards with a live mini-terminal ============ */
.scn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.scn-card {
  display: flex; flex-direction: column; cursor: pointer;
  background: var(--bg); border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease,
              filter 0.25s ease, opacity 0.25s ease;
}
.scn-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.scn-info { padding: 22px 22px 12px; }
.scn-info h3 { margin: 4px 0 8px; }
.scn-info p { margin: 0; color: color-mix(in srgb, var(--text) 72%, transparent); font-size: 0.95rem; }

/* mini-terminal inside each card */
.scn-term {
  margin: 0 14px 14px; border-radius: var(--radius); overflow: hidden;
  background: var(--primary);
  border: 1px solid color-mix(in srgb, var(--secondary) 18%, transparent);
}
.scn-term .term-bar { padding: 8px 12px; }
.scn-term-body {
  margin: 0; padding: 14px 16px; color: var(--secondary);
  font-family: var(--mono); font-size: 0.72rem; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word;
  min-height: 170px; max-height: 170px; overflow-y: auto;
}
.scn-term-body .ln { display: block; opacity: 0; transform: translateY(3px); }
.scn-term-body .ln.is-in {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.scn-term-body .cmd { color: var(--secondary); font-weight: 700; }
.scn-term-body .ok { color: var(--secondary); }
.scn-term-body .muted { color: color-mix(in srgb, var(--secondary) 68%, var(--primary)); }
/* task5: tinted success status line, blinking caret, and the run control */
.scn-term-body .exit { color: var(--secondary); font-weight: 700; letter-spacing: 0.3px; }
.scn-caret {
  display: inline-block; width: 7px; height: 0.95em; margin-left: 2px;
  vertical-align: -1px; background: var(--secondary);
}
@media (prefers-reduced-motion: no-preference) {
  .scn-caret { animation: caretBlink 1.05s steps(1, end) infinite; }
}
@keyframes caretBlink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
.scn-run {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 12px 0 2px; padding: 6px 12px; border-radius: 5px;
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500;
  color: var(--accent); background: transparent;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  cursor: pointer; transition: background 0.18s ease, border-color 0.18s ease;
}
.scn-run span { font-size: 0.95em; line-height: 1; }
.scn-run:hover, .scn-run:focus-visible { background: color-mix(in srgb, var(--accent) 12%, transparent); border-color: var(--accent); }
.scn-run:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* hover/focus one card: lift it, blur + dim the others (japanese-style focus) */
.scn-grid.has-active .scn-card:not(.active) { filter: blur(3px); opacity: 0.45; }
.scn-card.active {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}

/* pipeline flow diagram inside each card: stages with arrows */
.scn-flow { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; padding: 2px 18px 16px; }
.scn-flow .stage {
  position: relative; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.3px;
  padding: 4px 9px; border-radius: 5px; background: var(--bg);
  color: color-mix(in srgb, var(--text) 55%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.scn-flow .stage:not(:last-child)::after {
  content: "\2192"; position: absolute; right: -12px; top: 50%; transform: translateY(-50%);
  color: color-mix(in srgb, var(--text) 32%, transparent); font-size: 11px;
}
/* active card: a highlight runs stage by stage, synced with the log typing */
.scn-card.active .scn-flow .stage { animation: stageLit 2.2s ease-in-out infinite; }
.scn-card.active .scn-flow .stage:nth-child(2) { animation-delay: 0.3s; }
.scn-card.active .scn-flow .stage:nth-child(3) { animation-delay: 0.6s; }
.scn-card.active .scn-flow .stage:nth-child(4) { animation-delay: 0.9s; }
@keyframes stageLit {
  0%, 55%, 100% {
    color: color-mix(in srgb, var(--text) 55%, transparent);
    border-color: color-mix(in srgb, var(--text) 16%, transparent);
    background: var(--bg);
  }
  16% { color: #fff; border-color: var(--accent); background: var(--accent); }
}

/* how-it-works: hover a step -> dim the others, run its mini-flow (CSS only) */
#how .why-card { transition: opacity 0.25s, filter 0.25s, transform 0.25s, border-color 0.25s; }
#how .scn-flow { padding: 14px 0 0; }
#how .why-grid:has(.why-card:hover) .why-card:not(:hover) { opacity: 0.5; filter: blur(1.5px); }
#how .why-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
#how .why-card:hover .scn-flow .stage { animation: stageLit 2s ease-in-out infinite; }
#how .why-card:hover .scn-flow .stage:nth-child(2) { animation-delay: 0.3s; }
#how .why-card:hover .scn-flow .stage:nth-child(3) { animation-delay: 0.6s; }

@media (max-width: 860px) { .scn-grid { grid-template-columns: 1fr; } }

/* scroll reveal: fade + rise elements in as they enter the viewport */
.reveal { opacity: 0; transform: translateY(18px); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 0.55s ease, transform 0.55s ease; }

/* ============ ops rework: parallax layer, trust chips, bands ============ */

/*
  hero parallax background layer. a soft radial glow built from the two
  palette accents, sitting behind the hero content. JS nudges translateY on
  scroll (wireParallax); static under reduced-motion. decorative + aria-hidden.
*/
.hero { position: relative; overflow: hidden; }
/* no glow: the coloured radial blobs read as an ai-tell over the photo. the hero
   now rests on the photo + scrim alone (flat, honest). kept for the parallax hook. */
.hero-bg {
  position: absolute; inset: -20% -10% auto -10%; height: 140%;
  z-index: 0; pointer-events: none;
  background: none;
  will-change: transform;
}
/* keep hero content above the parallax layer */
.hero-wrap { position: relative; z-index: 1; }

/* scroll affordance: centered at the bottom of the hero. light over the dark photo
   in both themes; a gentle bounce under motion-allowed only. */
.hero-scroll {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  z-index: 3; display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
  color: rgba(255, 255, 255, 0.82); text-decoration: none;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.03em;
}
.hero-scroll:hover { color: #fff; }
.hero-scroll svg { width: 22px; height: 22px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-scroll svg { animation: heroScrollBounce 1.8s ease-in-out infinite; }
}
@keyframes heroScrollBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/*
  trust chips: a row of glass pills under the hero copy. reuses the site's
  backdrop-filter glass look (saturate + blur) over a translucent surface,
  palette tones only.
*/
.trust-chips {
  list-style: none; margin: 26px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
/* task2: flat, crisp pills. dropped the frosted glass fill + backdrop blur that
   glowed over the photo. subtle translucent fill + a clean hairline border. */
/* sans, not mono: these are benefit phrases, not technical values (mono is reserved for
   ids/ports/prices/commands). */
.trust-chip {
  font-family: var(--sans); font-size: 0.85rem; font-weight: 500;
  color: var(--text);
  padding: 8px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 24%, transparent);
}
.trust-chip::before {
  content: "\2713"; color: var(--accent); font-weight: 700; margin-right: 8px;
}

/*
  "your code stays yours" band. the key differentiator, so it is a prominent
  glass card on a tinted section band. reuses the glass pattern + palette.
*/
.yours-band { background: color-mix(in srgb, var(--primary) 10%, var(--bg)); }
/* task3: quiet hand-crafted card. removed the left accent bar (template tell),
   the accent glow box-shadow and the glass blur. even hairline border, soft flat
   fill, nothing shouting. copy untouched. */
.yours-card {
  position: relative;
  background: color-mix(in srgb, var(--primary) 6%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  border-radius: var(--radius); padding: 34px 36px;
}
.yours-card .label { margin-bottom: 10px; }
.yours-card h2 { max-width: 20ch; }
.yours-lead { font-size: 1.18rem; color: color-mix(in srgb, var(--text) 74%, transparent); max-width: 70ch; margin: 0; }

/* self-serve vs managed band */
.choose-band { background: color-mix(in srgb, var(--secondary) 12%, var(--bg)); }
.choose-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px;
}
/* flat card: dropped the backdrop-filter glass blur (no-blur rule). solid fill + hairline,
   matching the pricing cards. */
.choose-card {
  background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  border-radius: var(--radius); padding: 28px;
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.choose-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.choose-card > p { color: color-mix(in srgb, var(--text) 72%, transparent); }
.check-list { list-style: none; margin: 14px 0 0; padding: 0; }
.check-list li {
  position: relative; padding-left: 26px; margin: 0 0 10px;
  font-size: 0.95rem; color: var(--text);
}
.check-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  color: var(--accent); font-weight: 700;
}

/* how-it-works now has four steps: let it reflow 2x2 on wider screens */
.how-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .how-grid { grid-template-columns: repeat(2, 1fr); } }

/*
  horizontal scroll-snap ("swipe") for card rows on narrow screens. on phones
  the three-up grids become a single swipeable row of ~82%-wide cards that
  snap into place, instead of a tall stack. CSS-only; pointer/touch native.
*/
@media (max-width: 680px) {
  .why-grid, .scn-grid, .offer-grid, .choose-grid, .how-grid {
    display: flex; flex-wrap: nowrap;
    overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 14px; margin-left: -16px; margin-right: -16px;
    padding: 4px 16px 10px; scroll-padding: 16px;
    -webkit-overflow-scrolling: touch;
  }
  .why-grid > *, .scn-grid > *, .offer-grid > *, .choose-grid > *, .how-grid > * {
    flex: 0 0 82%; scroll-snap-align: start;
  }
  /* a reveal inside a horizontal scroller must not shift x; keep it y-only */
  .reveal { will-change: opacity, transform; }
}

/* reduced-motion: freeze the parallax layer, keep scroll-snap (not motion) */
@media (prefers-reduced-motion: reduce) {
  .hero-bg { transform: none !important; }
}

/* ============================================================
   OCEANIC DEPTH PASS: deep background plane, hero motif, pinned
   how-it-works, brand-video mock, neumorphic polish.
   all tones derived from the five palette tokens via opacity, no new hues.
============================================================ */

/*
  1. DEEP BACKGROUND PLANE (true parallax).
  a fixed-size gradient-mesh + fine grain that sits behind EVERYTHING and is
  scrolled SLOWER than the page by JS (wireDepthParallax -> translateY). the
  mesh is palette-tinted radial gradients (signal rays from the corners);
  grain.svg adds texture at a whisper opacity. decorative + aria-hidden.
*/
/* task4: much taller than the viewport so its parallax travel (capped in js)
   can never slide the plane's own edge into view = no drifting horizontal seam. */
/* glow removed: the page-wide radial mesh was the main ai-tell (coloured blooms behind
   every section). the page now rests on the flat --bg; the whisper grain (::after) stays
   as quiet hand-crafted texture, which is the opposite of a glow. */
.depth-bg {
  position: fixed; inset: -40vh -5vw; z-index: -2;
  pointer-events: none;
  background: none;
  will-change: transform;
  transition: background-color 0.4s ease;
}
/* fine grain overlay, tinted neutral, barely-there */
.depth-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: url("assets/grain.svg");
  background-size: 160px 160px;
  opacity: 0.05; mix-blend-mode: overlay;
}
/* dark mode: a touch more grain so the deep green-black does not go flat */
:root[data-theme="dark"] .depth-bg::after { opacity: 0.08; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .depth-bg::after { opacity: 0.08; }
}

/*
  2. HERO MOTIF slot. the inline ray/node SVG sits behind the hero copy and
  terminal, bleeding off the right edge. non-interactive. on narrow screens it
  fades back so it never fights the stacked copy.
*/
/* full-bleed manta photo fills the whole hero. #hero-art drifts (scroll + pointer
   parallax in app.js); the scrim above it stays put and carries the text contrast. */
.hero-art {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; will-change: transform;
}
.hero-art svg { width: 100%; height: auto; display: block; }
.hero-manta {
  width: 100%; height: 100%; display: block;
  object-fit: cover; object-position: 54% 42%;   /* keep manta + sunburst in frame */
}
/* stronger, even scrim: the old gradient dropped to 0.12 on the right, letting the
   photo's baked top-right sunburst bloom through. now an even dark field (0.9 -> 0.5)
   so the manta stays visible but no bright patch reads as a glow. */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(3,9,18,0.9) 0%, rgba(3,9,18,0.66) 45%, rgba(3,9,18,0.5) 100%),
    linear-gradient(to bottom, rgba(3,9,18,0.3) 0%, rgba(3,9,18,0) 30%, rgba(3,9,18,0) 70%, var(--bg) 100%);
}
/* lift the hero content above photo + scrim */
.hero > .hero-wrap { position: relative; z-index: 2; width: 100%; }
@media (max-width: 860px) {
  .hero-manta { object-position: 54% 40%; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(3,9,18,0.5) 0%, rgba(3,9,18,0.2) 40%, rgba(3,9,18,0.86) 100%),
      linear-gradient(to bottom, transparent 82%, var(--bg) 100%);
  }
}

/*
  3. SCROLL-PINNED how-it-works.
  .how-pin-outer is a tall spacer (its height = the scroll distance the pin
  lasts). .how-pin-stage is sticky and fills the viewport while the user
  scrolls past the outer. JS sets the active step; CSS lights the matching
  pipeline station + step panel.
*/
.how-pinned { padding: 0; }   /* the inner stage owns the padding */
.how-pin-outer { position: relative; height: 320vh; }
.how-pin-stage {
  position: sticky; top: 0;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 72px 0;
  overflow: hidden;
}
.how-pin-stage .label { margin-bottom: 10px; }
.how-pin-stage > .wrap { width: 100%; }

/* the isometric pipeline diagram */
.how-pipeline { margin: 26px 0 30px; }
.how-pipeline svg { width: 100%; height: auto; max-height: 240px; display: block; }
/* pipeline stations: rest state dim, "lit" state lifts + glows cerulean.
   the <text> caps use the mono font and the page text tone. */
#pipeline-art .cap {
  font-family: var(--mono); font-size: 15px; letter-spacing: 0.5px;
  fill: color-mix(in srgb, var(--text) 55%, transparent);
  transition: fill 0.3s ease;
}
#pipeline-art .stage .riser {
  transform: translateY(5px); opacity: 0.5;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
#pipeline-art .stage.lit .riser { transform: translateY(-4px); opacity: 1; }
#pipeline-art .stage.lit .cap { fill: var(--accent); }

/* task6: line-icon stations. stroke dims at rest, accent when lit. */
#pipeline-art .pipe-ic {
  stroke: color-mix(in srgb, var(--accent) 72%, var(--text));
  stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round;
  transition: stroke 0.3s ease;
}
#pipeline-art .pipe-ic .nd { fill: var(--secondary); stroke: none; }
#pipeline-art .pipe-ic .fin { fill: var(--accent); stroke: none; }
#pipeline-art .stage.lit .pipe-ic { stroke: var(--accent); }
/* each svg sub-element needs its own box so transforms rotate/translate in place */
#pipeline-art .blk-top, #pipeline-art .rocket, #pipeline-art .flame {
  transform-box: fill-box; transform-origin: center;
}
/* micro-animations run ONLY when the stage is lit AND motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  #pipeline-art .stage.lit .blk-top { animation: blkDrop 1.9s ease-in-out infinite; }
  #pipeline-art #stage-deploy.lit .rocket { animation: rocketNudge 1.5s ease-in-out infinite; }
  #pipeline-art #stage-deploy.lit .flame { animation: flameFlick 0.45s ease-in-out infinite; transform-origin: center top; }
  #pipeline-art #stage-watch.lit .pulse-line { stroke-dasharray: 16 64; animation: pulseTravel 1.5s linear infinite; }
  #pipeline-art #stage-repo.lit .nd { animation: ndPulse 1.8s ease-in-out infinite; }
}
@keyframes blkDrop { 0% { transform: translateY(-7px); opacity: 0; } 22% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(0); opacity: 1; } }
/* keep the rocket's -26 lift (its svg transform) while it nudges - a css animation
   transform REPLACES the element transform, so the offset must live in the keyframes
   or the rocket drops onto the line */
@keyframes rocketNudge { 0%, 100% { transform: translateY(-26px); } 50% { transform: translateY(-29px); } }
@keyframes flameFlick { 0%, 100% { opacity: 0.5; transform: scaleY(0.75); } 50% { opacity: 1; transform: scaleY(1.2); } }
@keyframes pulseTravel { from { stroke-dashoffset: 80; } to { stroke-dashoffset: 0; } }
@keyframes ndPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* step panels: all stacked in the same spot, only the active one is shown */
.how-steps { position: relative; margin-top: 8px; min-height: 180px; }
.how-step {
  position: absolute; inset: 0;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
  max-width: 620px;
}
.how-step.active { opacity: 1; transform: none; pointer-events: auto; }
.how-step .why-tag { margin-bottom: 6px; }
.how-step h3 { font-size: 1.5rem; }
.how-step > p { color: color-mix(in srgb, var(--text) 72%, transparent); max-width: 60ch; }
.how-step .scn-flow { padding: 14px 0 0; gap: 16px; }
/* task7: icon + label chips. the icon inherits the chip's current text colour. */
.scn-flow .stage { display: inline-flex; align-items: center; gap: 6px; }
.stage-ic {
  width: 12px; height: 12px; flex: 0 0 auto;
  stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
/* task7: thin progress bar under the active step, fills in sync with the chip
   sequence. subtle + accent-tinted; motion-gated (static-full under reduced-motion). */
.flow-prog {
  height: 2px; margin: 13px 0 0; max-width: 300px; border-radius: 2px; overflow: hidden;
  background: color-mix(in srgb, var(--text) 12%, transparent);
  opacity: 0; transition: opacity 0.3s ease;
}
.how-step.active .flow-prog { opacity: 1; }
.flow-prog > span { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--accent); }
.how-step.active .flow-prog > span { width: 100%; }   /* reduced-motion fallback: static full */

@media (prefers-reduced-motion: no-preference) {
  /* chips highlight one after another across one cycle */
  .how-step.active .scn-flow .stage { animation: stageSeq 2.7s ease-in-out infinite; }
  .how-step.active .scn-flow .stage:nth-child(1) { animation-delay: 0s; }
  .how-step.active .scn-flow .stage:nth-child(2) { animation-delay: 0.9s; }
  .how-step.active .scn-flow .stage:nth-child(3) { animation-delay: 1.8s; }
  /* bar fills across the whole cycle, in sync, looping */
  .how-step.active .flow-prog > span { width: 0; animation: flowFill 2.7s linear infinite; }
}
@keyframes stageSeq {
  0% { color: color-mix(in srgb, var(--text) 55%, transparent); border-color: color-mix(in srgb, var(--text) 16%, transparent); background: var(--bg); }
  7%, 26% { color: #fff; border-color: var(--accent); background: var(--accent); }
  33%, 100% { color: color-mix(in srgb, var(--text) 55%, transparent); border-color: color-mix(in srgb, var(--text) 16%, transparent); background: var(--bg); }
}
@keyframes flowFill { 0% { width: 0; } 100% { width: 100%; } }

/* progress dots */
.how-dots {
  list-style: none; display: flex; gap: 10px; margin: 26px 0 0; padding: 0;
}
.how-dot {
  width: 26px; height: 4px; border-radius: 2px;
  background: color-mix(in srgb, var(--text) 18%, transparent);
  transition: background 0.3s ease, width 0.3s ease;
}
.how-dot.active { background: var(--accent); width: 40px; }

/*
  4. BRAND VIDEO mock.
  a 16:9 slot with a clear placeholder badge and a looping CSS scene timeline.
  the four <g class="vm-scene"> crossfade on one shared 20s animation; a
  drifting glow rides underneath. muted + decorative; static under
  reduced-motion (scenes 1..4 all shown faintly, glow frozen).
*/
.video-band { background: color-mix(in srgb, var(--primary) 8%, var(--bg)); }
.video-slot {
  position: relative; margin-top: 30px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  aspect-ratio: 16 / 9; background: var(--primary);
}
.video-badge {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  font-family: var(--mono); font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--primary); background: var(--secondary);
  padding: 5px 10px; border-radius: 999px;
}
.video-mock { position: absolute; inset: 0; }
.video-mock-svg { width: 100%; height: 100%; display: block; }
.video-play {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary); background: color-mix(in srgb, var(--secondary) 90%, transparent);
  border-radius: 50%;
  opacity: 0.85;
}
.video-play svg { width: 26px; height: 26px; margin-left: 3px; }

/* scene timeline: each scene is visible for its quarter of a 20s loop */
.vm-scene { opacity: 0; }
.vm-s1 { animation: vmScene 20s infinite; animation-delay: 0s; }
.vm-s2 { animation: vmScene 20s infinite; animation-delay: 5s; }
.vm-s3 { animation: vmScene 20s infinite; animation-delay: 10s; }
.vm-s4 { animation: vmScene 20s infinite; animation-delay: 15s; }
@keyframes vmScene {
  0%   { opacity: 0; transform: translateY(14px); }
  4%   { opacity: 1; transform: translateY(0); }
  22%  { opacity: 1; transform: translateY(0); }
  26%  { opacity: 0; transform: translateY(-14px); }
  100% { opacity: 0; }
}
.vm-glow { animation: vmGlowDrift 20s ease-in-out infinite; }
@keyframes vmGlowDrift {
  0%   { transform: translate(-80px, 60px); opacity: 0.5; }
  25%  { transform: translate(60px, -30px); opacity: 0.8; }
  50%  { transform: translate(120px, 40px); opacity: 0.6; }
  75%  { transform: translate(-40px, -20px); opacity: 0.75; }
  100% { transform: translate(-80px, 60px); opacity: 0.5; }
}

/*
  5. FLAT surfaces (was neumorphic polish).
  the soft dual inset/outset shadows were a dated soft-UI ai-tell. removed. every one of
  these already carries a hairline border, so they stay separated with no shadow and no
  blur. only the transient overlay (.modal, the site analog of the toast) keeps elevation.
*/
.theme-toggle:active, .lang-toggle:active, .term-chip:active { transform: translateY(0); }

/* ============================================================
   REDUCED-MOTION + RESPONSIVE fallbacks for the depth pass
============================================================ */
@media (prefers-reduced-motion: reduce) {
  /* depth plane: no parallax offset */
  .depth-bg { transform: none !important; }

  /* NO PIN: collapse the tall outer, un-stick the stage, stack everything */
  .how-pin-outer { height: auto; }
  .how-pin-stage { position: static; min-height: 0; display: block; overflow: visible; }
  .how-steps { position: static; min-height: 0; display: grid; gap: 22px; margin-top: 22px; }
  .how-step { position: static; opacity: 1; transform: none; pointer-events: auto; max-width: none; }
  /* all pipeline stations shown lit so the sequence still reads */
  #pipeline-art .stage .riser { transform: none; opacity: 1; }
  #pipeline-art .cap { fill: var(--accent); }
  #pipeline-art #pipeline-progress { stroke-dashoffset: 0 !important; }
  .how-dot { background: var(--accent); }

  /* brand video: show the pipeline scene statically, freeze glow */
  .vm-scene { opacity: 1; transform: none; animation: none; }
  .vm-s1, .vm-s2, .vm-s4 { opacity: 0; }  /* keep the clearest scene (pipeline) */
  .vm-s3 { opacity: 1; }
  .vm-glow { animation: none; opacity: 0.5; }

  /* yours sequence: all shown at once */
  .yours-seq .seq-item { opacity: 1; transform: none; }
}

/*
  yours-band sequenced reveal (motion path). items start hidden; .seq-in
  (added by JS when the card scrolls in) fades them up on a stagger.
*/
.yours-seq .seq-item { opacity: 0; transform: translateY(14px); }
.yours-seq.seq-in .seq-item {
  opacity: 1; transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.yours-seq.seq-in .seq-item:nth-child(2) { transition-delay: 0.12s; }
.yours-seq.seq-in .seq-item:nth-child(3) { transition-delay: 0.24s; }

/* tablet/phone: the pin still works but needs a shorter stage + smaller type */
@media (max-width: 860px) {
  .how-pin-outer { height: 280vh; }
  .how-pin-stage { padding: 56px 0; }
  .how-pipeline svg { max-height: 180px; }
  .how-step h3 { font-size: 1.3rem; }
  .how-steps { min-height: 210px; }
}
/* very narrow: drop the pin entirely (like reduced-motion) so tall phones do
   not get stuck scrolling a sticky block; stack the steps instead. */
@media (max-width: 560px) {
  .how-pin-outer { height: auto; }
  .how-pin-stage { position: static; min-height: 0; display: block; overflow: visible; }
  .how-steps { position: static; min-height: 0; display: grid; gap: 20px; }
  .how-step { position: static; opacity: 1; transform: none; pointer-events: auto; max-width: none; }
  #pipeline-art .stage .riser { transform: none; opacity: 1; }
}
