/* ==========================================================================
   Savvidis Technologies · site.css
   Brand v1.0: Savvidis Navy #0B1F33, Electric Cyan #00C2FF (accent on dark),
   Deep Cyan #0096C7 (accent on light), Steel Blue #8FB3D1, Slate #4A5A6E.
   Chakra Petch for headings, Arial for text. The 45° chamfer (top-right and
   bottom-left corners) repeats the logo tile. The logo itself is never animated,
   recoloured or given effects; it switches between the reversed and primary
   versions as the chapter colour beneath the header changes.
   Direction: taste-skill "Type and nothing else" with colour by chapter,
   adapted to the brief (animated board light in the first screen).
   ========================================================================== */

@font-face { font-family: "Chakra Petch"; src: url(/assets/fonts/ChakraPetch-Medium.ttf?v=1ID0-XQF-s) format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url(/assets/fonts/ChakraPetch-SemiBold.ttf?v=RSZN4yBN29) format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Chakra Petch"; src: url(/assets/fonts/ChakraPetch-Bold.ttf?v=Zfv3bZVlFp) format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ground: #06111C;
  --ground-2: #081827;
  --navy: #0B1F33;
  --surface: #0A1D2F;
  --surface-navy: #12304A;
  --paper: #F3F5F8;
  --white: #FFFFFF;
  --ink: #EEF6FC;
  --ink-2: #C9DCEB;
  --steel: #8FB3D1;
  --slate: #4A5A6E;
  --paper-ink: #33465B;
  --cyan: #00C2FF;
  --cyan-deep: #0096C7;
  --cyan-soft: #7FDDFF;
  --cyan-pale: #9BE6FF;
  --cyan-hot: #D4F6FF;
  --trace: #1D5A7E;
  --gold: #D8AE52;
  --error: #FF9C94;
  --error-on-light: #7A0018;
  --ok: #5BE3A8;
  --line: rgb(143 179 209 / 0.3);

  --font-display: "Chakra Petch", "Arial Narrow", Arial, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
  /* Five type steps: statement, display, section, body, small. */
  --fs-statement: clamp(3.25rem, 15.5vw, 15rem);
  --fs-h2: clamp(2.125rem, 1.45rem + 2.9vw, 4rem);
  --fs-h3: clamp(1.375rem, 1.15rem + 0.8vw, 2rem);
  --fs-body: clamp(1.0625rem, 1.02rem + 0.18vw, 1.1875rem);
  --fs-small: 0.9375rem;

  --gutter: clamp(22px, 5vw, 76px);
  --col-gap: clamp(16px, 2vw, 32px);
  --section-gap: clamp(112px, 13vw, 208px);
  --header-h: 76px;

  /* Motion: strong custom curves; UI feedback stays under 300 ms. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  color-scheme: dark;
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  scrollbar-color: #1B4766 var(--ground);
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.still):focus-within { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-height: 100svh;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--fs-body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  caret-color: var(--cyan);
}
html.menu-open, html.menu-open body { overflow: hidden; }
::selection { background: var(--cyan); color: var(--ground); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--ground); }
::-webkit-scrollbar-thumb { background: #16405E; border: 3px solid var(--ground); }
::-webkit-scrollbar-thumb:hover { background: var(--cyan-deep); }
img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: rgb(0 194 255 / 0.55);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.24em;
  transition: text-decoration-color 160ms ease, color 160ms ease;
}
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; }
p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
p { text-wrap: pretty; }
button, input, select, textarea, optgroup { font: inherit; }
.skip {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  padding: 14px 18px; background: var(--cyan); color: var(--ground);
  font: 700 1rem var(--font-display); text-decoration: none;
  transition: top 160ms var(--ease-out);
}
.skip:focus { top: 16px; }

/* ---------- Header: takes the ink of the chapter beneath it ---------- */
.site-header {
  position: fixed; z-index: 60; inset: 0 0 auto;
  height: var(--header-h);
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px);
  padding: 0 var(--gutter);
  color: var(--ink);
  transition: background-color 300ms ease, color 300ms ease;
}
.site-header[data-scrolled][data-tone="dark"], .menu-open .site-header { background: rgb(6 17 28 / 0.96); }
.site-header[data-tone="navy"] { background: rgb(11 31 51 / 0.97); }
.site-header[data-tone="paper"] { background: var(--paper); color: var(--navy); }
.site-header[data-tone="white"] { background: var(--white); color: var(--navy); }
.brand { display: block; flex: none; padding: 8px 0; }
.brand img { height: 40px; width: auto; }
.logo-on-light { display: none; }
.site-header:is([data-tone="paper"], [data-tone="white"]) .logo-on-dark { display: none; }
.site-header:is([data-tone="paper"], [data-tone="white"]) .logo-on-light { display: block; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.nav a {
  position: relative; display: block; padding: 10px 0;
  color: inherit; opacity: 0.8;
  font: 500 var(--fs-small)/1 var(--font-display); letter-spacing: 0.01em;
  text-decoration: none; transition: opacity 200ms ease;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left center;
  transition: transform 260ms var(--ease-out);
}
.site-header:is([data-tone="paper"], [data-tone="white"]) .nav a::after { background: var(--cyan-deep); }
.nav a[aria-current="true"] { opacity: 1; }
.nav a[aria-current="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { opacity: 1; }
  .nav a:hover::after { transform: scaleX(1); }
}
.header-cta { flex: none; }
.motion-toggle {
  flex: none; display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 2px; border: 0; background: none; color: inherit; opacity: 0.8;
  font: 500 var(--fs-small)/1 var(--font-display); letter-spacing: 0.01em; cursor: pointer;
  transition: opacity 200ms ease;
}
.motion-toggle:active .mt-bars { transform: scale(0.9); }
.mt-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; transition: transform 160ms var(--ease-out); }
.mt-bars i { width: 3px; height: 14px; background: currentColor; transform: scaleY(0.3); transform-origin: 50% 100%; }
.motion-toggle[aria-pressed="true"] .mt-bars i { background: var(--cyan); animation: mt-level 900ms var(--ease-in-out) infinite alternate; }
.motion-toggle[aria-pressed="true"] .mt-bars i:nth-child(2) { animation-delay: -300ms; }
.motion-toggle[aria-pressed="true"] .mt-bars i:nth-child(3) { animation-delay: -600ms; }
.site-header:is([data-tone="paper"], [data-tone="white"]) .motion-toggle[aria-pressed="true"] .mt-bars i { background: var(--cyan-deep); }
@keyframes mt-level { from { transform: scaleY(0.3); } to { transform: scaleY(1); } }
@media (hover: hover) and (pointer: fine) {
  .motion-toggle:hover { opacity: 1; }
}
.btn-quiet { color: var(--ink); }
.btn.btn-quiet::before { background: rgb(143 179 209 / 0.16); }
@media (hover: hover) and (pointer: fine) {
  .btn.btn-quiet:hover::before { background: rgb(143 179 209 / 0.28); }
}
.site-header:is([data-tone="paper"], [data-tone="white"]) .header-cta { color: var(--white); }
.site-header:is([data-tone="paper"], [data-tone="white"]) .header-cta::before { background: var(--navy); }
.menu-toggle {
  display: none; margin-left: auto; align-items: center; gap: 12px;
  min-height: 44px; padding: 0 2px; border: 0; background: none; color: inherit;
  font: 600 var(--fs-small) var(--font-display); cursor: pointer;
}
.menu-bars { position: relative; width: 22px; height: 2px; background: currentColor; transition: background-color 200ms ease; }
.menu-bars::before, .menu-bars::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor;
  transition: transform 260ms var(--ease-out);
}
.menu-bars::before { transform: translateY(-7px); }
.menu-bars::after { transform: translateY(7px); }
.menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-bars::before { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars::after { transform: rotate(-45deg); }
@media (max-width: 980px) {
  .nav, .site-header .header-cta { display: none; }
  .menu-toggle { display: inline-flex; margin-left: 0; }
  .motion-toggle { margin-left: auto; }
  .mt-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.menu-open .site-header { color: var(--ink); }
.menu-open .site-header .logo-on-dark { display: block; }
.menu-open .site-header .logo-on-light { display: none; }
.mobile-menu {
  position: fixed; z-index: 55; inset: var(--header-h) 0 0;
  display: flex; flex-direction: column; gap: 32px;
  padding: 24px var(--gutter) 40px; overflow-y: auto;
  background: var(--ground);
  transition: opacity 240ms ease, transform 360ms var(--ease-drawer);
}
.mobile-menu[hidden] { display: none; }
@starting-style { .mobile-menu { opacity: 0; transform: translateY(-12px); } }
.mobile-menu ul { display: grid; gap: 2px; }
.mobile-menu nav a {
  display: block; padding: 10px 0;
  font: 600 clamp(1.75rem, 1.2rem + 3vw, 2.5rem)/1.15 var(--font-display); letter-spacing: -0.01em;
  text-decoration: none;
}
.mobile-menu .btn { align-self: flex-start; }
.mobile-mail a { color: var(--steel); }

/* ---------- Buttons: one shape, chamfered like the logo tile ---------- */
.btn {
  --c: 14px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border: 0; background: none;
  color: var(--ground); font: 600 var(--fs-body)/1 var(--font-display); letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer; user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms var(--ease-out), color 200ms ease;
}
.btn::before {
  content: ""; position: absolute; z-index: -1; inset: 0; background: var(--cyan);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  transition: background-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 260ms var(--ease-out); }
.btn-sm { --c: 11px; min-height: 44px; padding: 0 18px; font-size: var(--fs-small); }
.btn-dark { color: var(--white); }
.btn-dark::before { background: var(--navy); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover::before { background: #6BDDFF; }
  .btn-dark:hover::before { background: var(--cyan-deep); }
  .btn:hover svg { transform: translateX(4px); }
}

/* ---------- Hero: one statement, set across the full width, over the board ---------- */
.hero {
  position: relative; isolation: isolate;
  display: grid; grid-template-rows: 1fr auto;
  min-height: 100vh; min-height: 100svh; /* taste-skill-ignore: 100vh fallback; 100svh follows */
  padding: calc(var(--header-h) + 32px) var(--gutter) clamp(40px, 7vh, 88px);
  overflow: hidden; background: var(--ground);
}
.hero-rig { position: absolute; z-index: -2; inset: 0; pointer-events: none; will-change: transform; }
.hero-canvas { display: block; width: 100%; height: 100%; }
.hero-shade {
  position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 60% at 30% 42%, rgb(6 17 28 / 0.62) 0%, rgb(6 17 28 / 0) 72%), /* taste-skill-ignore: neutral scrim under the statement, over the board scene */
    linear-gradient(to top, rgb(6 17 28 / 0.92), rgb(6 17 28 / 0) 34%), /* taste-skill-ignore: neutral scrim under the statement, over the board scene */
    linear-gradient(to bottom, rgb(6 17 28 / 0.75), rgb(6 17 28 / 0) 20%); /* taste-skill-ignore: neutral scrim under the statement, over the board scene */
}
.hero-title {
  align-self: center;
  margin: 0 0 3vh;
  font-size: var(--fs-statement); line-height: 0.86; letter-spacing: -0.035em;
}
.hero-title .line { position: relative; display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
/* Depth: the first line sits behind the board, the second in front of it. */
.hero-title .line-1 { z-index: 1; }
.hero-title .line-2 { z-index: 3; text-align: right; }
.hero-object {
  position: absolute; z-index: 2; left: 54%; top: 57%; width: min(76vw, 1500px);
  translate: -50% -50%; pointer-events: none; will-change: transform;
}
.hero-board { display: block; width: 100%; height: auto; filter: drop-shadow(0 36px 34px rgb(0 0 0 / 0.6)); } /* taste-skill-ignore: the cut-out board casts its shadow on the lettering: depth from the real alpha */
.hero-title .line > span { display: inline-block; white-space: nowrap; }
.hero-foot {
  position: relative; z-index: 3;
  display: grid; justify-items: start; gap: 24px; width: min(100%, 31rem); margin-left: auto;
}
.hero-lede { max-width: 31rem; font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.375rem); line-height: 1.45; text-wrap: pretty; }
@media (max-width: 900px) {
  .hero-title { align-self: start; margin-top: 4vh; }
  .hero-object { left: 52%; top: 45%; width: 124vw; }
  .hero-foot { width: 100%; }
}
@media (max-width: 640px) {
  .hero-foot { flex-direction: column; align-items: stretch; }
  .hero-cta { width: 100%; }
}

/* ---------- Chapters: each section is one full-bleed field of a brand colour ---------- */
main { position: relative; display: block; overflow-x: clip; } /* 3D scenes may not widen the page: phones would zoom out to fit them */
.section { position: relative; padding: calc(var(--section-gap) * 0.55) var(--gutter); }
.section[data-tone="navy"] { background: var(--navy); }
.section[data-tone="cyan"] { z-index: 3; background: var(--cyan); color: var(--navy); }
.section[data-tone="paper"] { z-index: 3; background: var(--paper); color: var(--navy); }
.section[data-tone="cyan"] ::selection, .section[data-tone="paper"] ::selection { background: var(--navy); color: var(--white); }
.section[data-tone="paper"] a, .section[data-tone="cyan"] a { text-decoration-color: rgb(11 31 51 / 0.45); }
.section[data-tone="paper"] :focus-visible, .section[data-tone="cyan"] :focus-visible { outline-color: var(--navy); }
.section-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap); row-gap: 24px; align-items: end;
  margin-bottom: clamp(56px, 7vw, 120px);
}
.section-head h2 { grid-column: 1 / span 7; font-size: var(--fs-h2); line-height: 1; }
.section-head .lede { grid-column: 8 / span 5; max-width: 34rem; }
@media (max-width: 900px) {
  .section-head h2, .section-head .lede { grid-column: 1 / -1; }
}
/* Chapter statements: Services and Contact open with the heading set large across the page,
   the lede offset under it to the right. */
.services .section-head h2, .contact .section-head h2 {
  grid-column: 1 / -1;
  font-size: clamp(2.75rem, 1.2rem + 6.2vw, 7.5rem); line-height: 0.94; letter-spacing: -0.035em;
}
.services .section-head .lede, .contact .section-head .lede { grid-column: 7 / span 5; }
@media (max-width: 900px) {
  .services .section-head .lede, .contact .section-head .lede { grid-column: 1 / -1; }
}
.ticks { display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 1px; top: 0.5em; width: 12px; height: 12px; border-radius: 50%;
  border: 3px solid var(--cyan-deep); background: var(--ground);
}

/* Name ........ value rows (a table, so the dotted leader is allowed). */
.rows { display: grid; gap: 14px; }
.rows > div { display: flex; align-items: baseline; gap: 12px; }
.rows dt { flex: none; font: 600 var(--fs-body)/1.3 var(--font-display); }
.rows > div::after {
  content: ""; order: 1; flex: 1 1 24px; min-width: 24px; align-self: flex-end;
  margin-bottom: 0.38em; border-bottom: 4px dotted rgb(143 179 209 / 0.42);
}
.rows dd { order: 2; flex: 0 1 auto; text-align: right; color: var(--ink-2); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
@media (max-width: 480px) {
  /* Too narrow for a leader: the value drops under its name. */
  .rows > div { flex-wrap: wrap; gap: 2px 12px; }
  .rows > div::after { display: none; }
  .rows dd { flex-basis: 100%; text-align: left; }
}


/* ---------- Services: the exploded layer stack ---------- */
.stack-wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.stack {
  grid-column: 1 / span 6; position: sticky; top: calc(var(--header-h) + 3vh);
  height: calc(100vh - var(--header-h) - 6vh); min-height: 440px;
  display: grid; place-items: center; perspective: 1700px;
}
.stack-scene {
  position: relative; width: min(86%, 500px); aspect-ratio: 6 / 5;
  transform-style: preserve-3d; transform: rotateX(55deg) rotateZ(-38deg) translateY(-6%);
}
.plate { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 1000ms var(--ease-expo); }
.plate-face, .plate-edge {
  position: absolute; inset: 0;
  clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 44px 100%, 0 calc(100% - 44px));
}
.plate-face { background: rgb(18 48 74 / 0.9); transition: background-color 500ms ease; }
.plate-edge { background: rgb(4 13 21 / 0.92); transform: translateZ(-10px); }
.plate svg { width: 100%; height: 100%; }
.plate .art path { fill: none; stroke: rgb(143 179 209 / 0.34); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; transition: stroke 500ms ease; }
.plate .art-fine path, .plate .art-fine circle { fill: none; stroke: rgb(143 179 209 / 0.24); stroke-width: 4; stroke-linecap: round; transition: stroke 500ms ease; }
.plate .dash { stroke-dasharray: 10 12; }
.plate .vias circle { fill: #12304A; stroke: rgb(143 179 209 / 0.4); stroke-width: 6; transition: stroke 500ms ease, fill 500ms ease; }
.plate-labels text { font: 600 22px var(--font-display); fill: rgb(143 179 209 / 0.6); transition: fill 500ms ease; }
.plate[data-layer="hardware"] { transform: translateZ(0); }
.plate[data-layer="firmware"] { transform: translateZ(70px); }
.plate[data-layer="systems"] { transform: translateZ(140px); }
.stack[data-exploded] .plate[data-layer="firmware"] { transform: translateZ(120px); }
.stack[data-exploded] .plate[data-layer="systems"] { transform: translateZ(240px); }
.plate.is-active .plate-face { background: rgb(17 66 100 / 0.95); }
.plate.is-active .art path { stroke: var(--cyan); }
.plate.is-active .art-fine path, .plate.is-active .art-fine circle { stroke: var(--cyan-soft); }
.plate.is-active .vias circle { stroke: var(--cyan); fill: #063A52; }
.plate.is-active .plate-labels text { fill: var(--ink); }
.stack-legend {
  position: absolute; left: 0; right: 0; bottom: 2vh;
  display: flex; justify-content: center; gap: 28px;
  font: 600 var(--fs-small) var(--font-display); color: var(--steel);
}
.stack-legend span { transition: color 300ms ease; }
.stack-legend span.is-active { color: var(--cyan); }
.layers { grid-column: 8 / span 5; }
.layer { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; padding: 8vh 0; }
.layer:first-child { justify-content: flex-start; padding-top: 2vh; }
.layer h3 { font-size: var(--fs-h3); margin-bottom: 16px; transition: color 400ms ease; }
.layer.is-active h3 { color: var(--cyan); }
.layer > p { max-width: 34rem; margin-bottom: 30px; }
@media (max-width: 900px) {
  .stack { grid-column: 1 / -1; position: relative; top: 0; height: 400px; min-height: 0; margin-bottom: 16px; }
  .stack-scene { width: min(78%, 360px); }
  .stack[data-exploded] .plate[data-layer="firmware"] { transform: translateZ(80px); }
  .stack[data-exploded] .plate[data-layer="systems"] { transform: translateZ(160px); }
  .layers { grid-column: 1 / -1; }
  .layer { min-height: 0; padding: 36px 0; }
}

/* ---------- Work: the two names, set as specimens ---------- */
.specimens { display: grid; gap: clamp(8px, 2vw, 24px); margin: 0 0 clamp(96px, 12vw, 190px); }
.specimen { display: flex; align-items: flex-end; gap: clamp(16px, 2.4vw, 36px); min-width: 0; }
.specimen-right { justify-content: flex-end; }
.specimen-cap { padding-bottom: 1.2em; color: var(--steel); font: 600 var(--fs-small) var(--font-display); white-space: nowrap; }
.specimen-word { font: 700 clamp(3.6rem, 15vw, 15rem)/0.9 var(--font-display); letter-spacing: -0.04em; white-space: nowrap; color: var(--ink); }
.specimen-right .specimen-word { color: var(--cyan); }
@media (max-width: 760px) {
  .specimen { flex-direction: column; align-items: flex-start; gap: 4px; }
  .specimen-right { align-items: flex-end; }
  .specimen-cap { padding: 0; }
  .specimen-word { font-size: 18vw; }
}

/* ---------- Work: ResQvara ---------- */
.project + .project { margin-top: clamp(120px, 14vw, 220px); }
.project-head {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap); row-gap: 16px; align-items: end;
  margin-bottom: clamp(36px, 4.5vw, 64px);
}
.project-head h3 { grid-column: 1 / span 5; font-size: var(--fs-h2); line-height: 1; }
.project-head p { grid-column: 7 / span 6; max-width: 38rem; }
@media (max-width: 900px) {
  .project-head h3, .project-head p { grid-column: 1 / -1; }
}
.diagram { margin-bottom: clamp(56px, 7vw, 104px); }
.diagram svg { width: 100%; height: auto; overflow: visible; }
.diagram-tall { display: none; max-width: 420px; margin: 0 auto; }
@media (max-width: 860px) {
  .diagram-wide { display: none; }
  .diagram-tall { display: block; }
}
.node-box { fill: #0A1F31; stroke: rgb(143 179 209 / 0.38); stroke-width: 2; }
.node-core .node-box { fill: #0C2740; stroke: var(--cyan-deep); }
.node-title { font: 700 27px var(--font-display); fill: var(--ink); letter-spacing: -0.01em; }
.node-sub { font: 400 19px var(--font-body); fill: var(--steel); }
.diagram-tall .node-title { font-size: 25px; }
.diagram-tall .node-sub { font-size: 18px; }
.link { fill: none; stroke: var(--trace); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.link-labels text { font: 600 17px var(--font-display); fill: var(--cyan); }
.packet { fill: var(--cyan-hot); }
.packet-halo { fill: rgb(0 194 255 / 0.3); }
.project-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap); row-gap: 48px; align-items: start;
}
.feature-block:nth-child(1) { grid-column: 1 / span 5; grid-row: 1; }
.feature-block:nth-child(2) { grid-column: 1 / span 5; grid-row: 2; }
.feature-block h4 { font-size: var(--fs-h3); margin-bottom: 18px; }
.app-window { grid-column: 7 / span 6; grid-row: 1 / span 2; }
@media (max-width: 980px) {
  .feature-block:nth-child(1), .feature-block:nth-child(2), .app-window { grid-column: 1 / -1; grid-row: auto; }
}

/* A faithful, simplified fragment of the real ResQvara Factory window. */
.app-titlebar {
  display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px;
  background: #1F1F1F; color: #E8E8E8; font: 400 13px "Segoe UI", Arial, sans-serif;
  border-radius: 10px 10px 0 0;
}
.app-titlebar img { width: 16px; height: 16px; }
.app-body {
  display: grid; grid-template-columns: 34% 1fr; min-height: 380px;
  border-radius: 0 0 10px 10px; overflow: hidden;
  box-shadow: 0 60px 100px -50px rgb(0 0 0 / 0.85); /* taste-skill-ignore: data-ui fragment of the real ResQvara Factory window */
}
.app-side { background: #18233A; padding: 18px 12px; }
.app-brand { color: #fff; font: 700 17px "Segoe UI", Arial, sans-serif; padding: 0 8px 14px; }
.app-brand span { display: block; color: #9DB0CB; font-weight: 400; font-size: 13px; }
.app-side li { padding: 9px 10px; color: #DCE4F0; font: 400 13.5px "Segoe UI", Arial, sans-serif; border-radius: 6px; }
.app-side li.on { background: #2B3954; box-shadow: inset 3px 0 0 var(--cyan); font-weight: 700; } /* taste-skill-ignore: data-ui fragment of the real ResQvara Factory window */
.app-main { background: #F4F6F9; color: #1F2933; padding: 22px 22px 26px; }
.app-h { font: 600 19px "Segoe UI", Arial, sans-serif; color: #0B1F33; margin-bottom: 14px; }
.app-stages { display: grid; gap: 8px; }
.app-stages li {
  position: relative; overflow: hidden; padding: 11px 14px;
  background: #fff; border: 1px solid #E1E6EC; border-radius: 6px; /* taste-skill-ignore: data-ui fragment of the real ResQvara Factory window */
  font: 400 13.5px/1.45 "Segoe UI", Arial, sans-serif; color: #4A5A6E;
  transition: border-color 300ms ease, box-shadow 300ms ease, transform 300ms var(--ease-out);
}
.app-stages b { display: block; color: #0B1F33; font-size: 14px; margin-bottom: 2px; }
.app-stages li.on { border-color: var(--cyan-deep); box-shadow: 0 0 0 3px rgb(0 150 199 / 0.16); transform: translateX(4px); } /* taste-skill-ignore: data-ui fragment of the real ResQvara Factory window */
.app-stages li.on::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px;
  background: var(--cyan-deep); transform-origin: left center;
  animation: stage-progress 2400ms linear forwards;
}
@keyframes stage-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.app-window figcaption { margin-top: 16px; color: var(--steel); font-size: var(--fs-small); }
@media (max-width: 560px) {
  .app-body { grid-template-columns: 1fr; }
  .app-side { display: none; }
}

/* ---------- Work: AmbuLink One, the real board rendered live ---------- */
.ambulink { position: relative; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
.board-sticky { position: relative; padding: 0 var(--gutter); }
.board-view { position: relative; }
.board-canvas { display: none; }
.board-fallback { width: 100%; }
.board-captions { display: grid; gap: 40px; margin-top: 40px; }
.board-cap h3 { font-size: var(--fs-h2); line-height: 1; margin-bottom: 18px; }
.board-cap h4 { font: 700 var(--fs-h3)/1.1 var(--font-display); color: var(--cyan); margin-bottom: 12px; }
.board-cap p { max-width: 34rem; }
.board-cap-img { --c: 18px; width: min(100%, 300px); margin-top: 18px; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c))); }
.motion-ready .board-sticky { height: 100vh; height: 100svh; overflow: hidden; padding: 0; } /* taste-skill-ignore: 100vh fallback; 100svh follows */
.motion-ready .board-view { position: absolute; inset: 0; }
.motion-ready .board-canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1400ms ease; }
.motion-ready .ambulink.is-3d .board-canvas { opacity: 1; }
.motion-ready .board-fallback { position: absolute; left: 50%; top: 44%; width: min(94%, 1500px); transform: translate(-50%, -50%); transition: opacity 900ms ease; }
.motion-ready .ambulink.is-3d .board-fallback { opacity: 0; }
.motion-ready .board-captions { position: absolute; z-index: 2; right: var(--gutter); bottom: clamp(36px, 9vh, 110px); width: min(440px, 38vw); height: 0; margin: 0; display: block; }
.motion-ready .board-captions::before { content: ""; position: absolute; z-index: -1; right: -80px; bottom: -80px; width: calc(100% + 200px); height: 460px; background: radial-gradient(closest-side, rgb(6 17 28 / 0.9), rgb(6 17 28 / 0)); pointer-events: none; } /* taste-skill-ignore: legibility scrim over the live 3D scene */
.motion-ready .board-cap { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; transform: translateY(26px); transition: opacity 500ms ease, transform 800ms var(--ease-expo); }
.motion-ready .board-cap.is-active { opacity: 1; transform: none; }
@media (max-width: 899px) {
  .motion-ready .board-captions { left: var(--gutter); right: var(--gutter); width: auto; bottom: 28px; }
  .motion-ready .board-cap-img { width: 140px; }
}

/* ---------- Process: the project traveller, a paper slip on the cyan chapter ---------- */
.process-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap); row-gap: 56px; align-items: start;
}
.process-intro { grid-column: 1 / span 5; }
.process-intro h2 { font-size: var(--fs-h2); line-height: 1; margin-bottom: 28px; }
.process-intro p { max-width: 30ch; font-size: clamp(1.125rem, 1rem + 0.45vw, 1.5rem); line-height: 1.45; }
.slip {
  --z: 12px;
  grid-column: 7 / span 5; justify-self: start; width: min(100%, 480px);
  padding: 34px 32px 64px; background: var(--white); color: var(--navy);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%; /* taste-skill-ignore: mask that cuts the zigzag edge of the slip */
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--z)) 100%; /* taste-skill-ignore: mask that cuts the zigzag edge of the slip */
}
.slip-title { font-size: var(--fs-h3); }
.slip-group h4 { margin: 28px 0 12px; font: 700 var(--fs-body) var(--font-body); letter-spacing: 0; }
.slip .rows { gap: 10px; }
.slip .rows dt { font: 400 var(--fs-small)/1.35 var(--font-body); }
.slip .rows dd { color: var(--navy); font-size: var(--fs-small); }
.slip .rows > div::after { border-bottom-color: rgb(11 31 51 / 0.45); }
.slip-total {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 44px; margin: 30px -32px 0; padding: 10px 32px;
  background: var(--navy); color: var(--white); font-weight: 700; font-size: var(--fs-small);
}
@media (max-width: 900px) {
  .process-intro, .slip { grid-column: 1 / -1; }
  .slip { width: 100%; }
}
@media (max-width: 480px) {
  .slip { padding: 26px 20px 56px; }
  .slip-total { margin: 28px -20px 0; padding: 10px 20px; flex-direction: column; align-items: flex-start; gap: 2px; }
}

/* ---------- About: the story in two columns, facts highlighted ---------- */
.about h2 { font-size: var(--fs-h2); line-height: 1; max-width: 16ch; margin-bottom: clamp(40px, 5vw, 72px); }
.about-prose {
  columns: 2; column-gap: var(--col-gap);
  font-size: var(--fs-h3); line-height: 1.22; color: var(--paper-ink);
  text-align: left;
}
.about-prose strong { color: var(--navy); }
.hl {
  padding: 0 0.1em; color: var(--navy); background-color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hl { background-image: linear-gradient(var(--hl), var(--hl)); background-repeat: no-repeat; background-size: 100% 100%; } /* taste-skill-ignore: flat highlight drawn as an image so it can wipe in */
.hl-a { --hl: #BEEBFF; }
.hl-final { color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--cyan-deep); text-decoration-thickness: 0.12em; text-underline-offset: 0.18em; }
@media (hover: hover) and (pointer: fine) { .hl-final:hover { text-decoration-color: var(--navy); } }
@media (max-width: 760px) {
  .about-prose { columns: 1; text-align: left; line-height: 1.3; }
}

/* ---------- Contact: forms as a clip-out coupon ---------- */
.contact-forms, .direct { width: min(100%, 1240px); margin-inline: auto; }
.tabs {
  --c: 14px; position: relative; display: inline-flex; gap: 4px; max-width: 100%;
  padding: 5px; margin-bottom: 28px; background: var(--surface);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
}
.tab {
  position: relative; z-index: 1; min-height: 50px; padding: 0 22px;
  border: 0; background: none; color: var(--steel);
  font: 600 var(--fs-body)/1.15 var(--font-display); cursor: pointer;
  transition: color 220ms ease;
}
.tab[aria-selected="true"] { color: var(--ground); }
.tab:focus-visible { outline-offset: -5px; }
@media (hover: hover) and (pointer: fine) { .tab[aria-selected="false"]:hover { color: var(--ink); } }
.tab-ink {
  --c: 10px; position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0;
  background: var(--cyan);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  transition: transform 360ms var(--ease-out), width 360ms var(--ease-out);
}
.no-js .tabs { display: none; }
.no-js .panel + .panel { margin-top: 64px; }
.panel[hidden] { display: none; }
@media (max-width: 560px) {
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1 1 0; padding: 0 10px; font-size: var(--fs-small); }
}

.coupon {
  --c: 26px; --perf: 38%;
  position: relative; display: grid; grid-template-columns: var(--perf) 1fr;
  background: var(--cyan); color: var(--navy);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  -webkit-mask: radial-gradient(circle 15px at var(--perf) 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 15px at var(--perf) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat; /* taste-skill-ignore: mask that cuts the coupon notches */
  mask: radial-gradient(circle 15px at var(--perf) 0, #0000 97%, #000) top / 100% 51% no-repeat, radial-gradient(circle 15px at var(--perf) 100%, #0000 97%, #000) bottom / 100% 51% no-repeat; /* taste-skill-ignore: mask that cuts the coupon notches */
}
.coupon ::selection { background: var(--navy); color: var(--white); }
/* The stub rides along while the form is filled in, so the live summary stays in view. */
.coupon-stub {
  position: sticky; top: calc(var(--header-h) + 16px); align-self: start;
  display: flex; flex-direction: column; gap: 32px;
  padding: clamp(32px, 4vw, 52px);
}
.coupon::after {
  content: ""; position: absolute; top: 22px; bottom: 22px; left: calc(var(--perf) - 3px);
  border-left: 5px dotted var(--ground); pointer-events: none;
}
.coupon-title { font-size: var(--fs-h3); line-height: 1.05; text-transform: uppercase; letter-spacing: 0.01em; max-width: 12ch; }
.coupon-lede { font-size: var(--fs-body); }
.coupon-stub .ticks { gap: 10px; font-size: var(--fs-small); }
.coupon-stub .ticks li::before { border-color: var(--navy); background: var(--cyan); }
.coupon-stub h4 { font: 600 var(--fs-body)/1.3 var(--font-display); margin-bottom: 12px; }
.coupon-note { margin-top: auto; font-size: var(--fs-small); color: #0B3550; overflow-wrap: anywhere; }
.summary { display: flex; align-items: center; gap: 18px; }
.summary p { font-size: var(--fs-small); color: #0B3550; }
.mini-stack { flex: none; width: 68px; height: auto; overflow: visible; }
.mini-stack path { fill: var(--cyan-pale); stroke: #0B3550; stroke-width: 3; stroke-linejoin: round; transition: fill 300ms ease, transform 400ms var(--ease-out); }
.mini-stack path.on { fill: var(--navy); transform: translateY(-4px); }
.coupon-body { padding: clamp(28px, 3.6vw, 48px); }
.form-fields { display: grid; gap: 26px; }
.field { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field > label, .field legend { padding: 0; font: 600 var(--fs-body)/1.3 var(--font-display); }
.field legend { margin-bottom: 12px; }
.req, .opt { margin-left: 8px; color: #0B3550; font: 400 var(--fs-small) var(--font-body); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.coupon input[type="text"], .coupon input[type="email"], .coupon input[type="tel"], .coupon select, .coupon textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  border: 0; border-radius: 0; background: var(--cyan-pale); color: var(--navy);
  font: 400 1rem/1.4 var(--font-body);
  box-shadow: inset 0 0 0 1px rgb(11 31 51 / 0.12); /* taste-skill-ignore: form control state */
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
.coupon textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.coupon select {
  appearance: none; -webkit-appearance: none; padding-right: 46px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230B1F33' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
.coupon select option { background: var(--white); color: var(--navy); }
@media (hover: hover) and (pointer: fine) {
  .coupon input:hover, .coupon select:hover, .coupon textarea:hover { background-color: #B2ECFF; }
}
.coupon input:focus-visible, .coupon select:focus-visible, .coupon textarea:focus-visible {
  outline: 3px solid var(--navy); outline-offset: 0; background-color: #C8F1FF;
}
.coupon [aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--error-on-light); } /* taste-skill-ignore: form control state */
.coupon ::placeholder { color: #2D5C78; opacity: 1; }
.hint { color: #0B3550; font-size: var(--fs-small); }
.error { color: var(--error-on-light); font-size: var(--fs-small); font-weight: 700; }
.error[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { --c: 10px; position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px;
  background: var(--cyan-pale); color: var(--navy); font: 500 var(--fs-small)/1.25 var(--font-display);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .chip:hover span { background: #B2ECFF; } }
.chip input:checked + span { background: var(--navy); color: var(--white); }
.chip input:focus-visible + span { box-shadow: inset 0 0 0 3px var(--navy); } /* taste-skill-ignore: form control state */
.chip input:checked:focus-visible + span { box-shadow: inset 0 0 0 3px var(--cyan); } /* taste-skill-ignore: form control state */
.chip:active span { transform: scale(0.97); }
.field.is-invalid .chip span { box-shadow: inset 0 0 0 2px var(--error-on-light); } /* taste-skill-ignore: form control state */
.submit-bar {
  --c: 14px; position: relative; isolation: isolate;
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px;
  border: 0; background: none; color: var(--white); cursor: pointer;
  font: 600 var(--fs-body)/1 var(--font-display); letter-spacing: 0.01em;
  transition: transform 160ms var(--ease-out);
}
.submit-bar::before {
  content: ""; position: absolute; z-index: -1; inset: 0; background: var(--navy);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  transition: background-color 200ms ease;
}
.submit-bar:active { transform: scale(0.985); }
.submit-bar:focus-visible { outline-color: var(--navy); }
@media (hover: hover) and (pointer: fine) { .submit-bar:hover::before { background: #133352; } }
.submit-bar[aria-busy="true"] { cursor: progress; }
.submit-bar[aria-busy="true"]::before { background: #24496B; }
.form-status { min-height: 1.5em; color: #0B3550; font-size: var(--fs-small); }
.form-status.is-error { color: var(--error-on-light); font-weight: 700; }
.privacy-note { color: #0B3550; font-size: var(--fs-small); }
.coupon a { text-decoration-color: rgb(11 31 51 / 0.5); }
.coupon :focus-visible { outline-color: var(--navy); }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: visually hidden honeypot field */
.success { display: grid; gap: 14px; align-content: start; }
.success[hidden] { display: none; }
.success:focus { outline: none; }
.success h4 { font-size: var(--fs-h3); }
.success p { overflow-wrap: anywhere; }
.success .submit-bar { margin-top: 12px; }
.form.is-sent .form-fields { display: none; }
@media (max-width: 860px) {
  .coupon { grid-template-columns: 1fr; -webkit-mask: none; mask: none; }
  .coupon-stub { position: relative; top: 0; gap: 24px; }
  .coupon::after { display: none; }
  .coupon-stub::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: -3px; border-bottom: 5px dotted var(--ground); }
  .coupon-note { margin-top: 0; }
}
@media (max-width: 640px) {
  .field-row, .field-row.three { grid-template-columns: 1fr; }
}

/* Every inbox, set as display rows. */
.direct { margin-top: clamp(88px, 10vw, 150px); }
.direct > h3 { font-size: var(--fs-h3); margin-bottom: 20px; }
.inbox-rows li {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) auto; align-items: center;
  gap: 8px 28px; padding: 22px 20px;
}
.inbox-rows li:nth-child(odd) { background: var(--surface); }
.inbox-label { color: var(--steel); font-size: var(--fs-small); }
.inbox-addr { font: 600 var(--fs-h3)/1.15 var(--font-display); letter-spacing: -0.01em; text-decoration: none; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .inbox-addr:hover { color: var(--cyan); } }
.copy {
  min-height: 40px; padding: 0 16px;
  border: 0; background: #0F2A40; color: var(--ink); font: 600 var(--fs-small) var(--font-display); cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out);
}
.copy:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .copy:hover { background: #14364F; } }
.copy.done { background: var(--ok); color: var(--ground); }
.quote-help { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 20px; margin-top: 72px; }
.quote-help h3 { grid-column: 1 / span 4; font-size: var(--fs-h3); }
.quote-help .ticks { grid-column: 5 / span 5; }
.direct-note { margin-top: 20px; color: var(--steel); font-size: var(--fs-small); }
@media (max-width: 860px) {
  .inbox-rows li { grid-template-columns: minmax(0, 1fr) auto; }
  .inbox-label { grid-column: 1 / -1; }
  .quote-help h3, .quote-help .ticks, .direct-note { grid-column: 1 / -1; }
}

/* ---------- Footer: an invitation over the cropped name ---------- */
.site-footer {
  position: relative; z-index: 3; overflow: hidden;
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; /* taste-skill-ignore: 100vh fallback; 100svh follows */
  padding: clamp(96px, 11vw, 160px) var(--gutter) 0;
  background: var(--white); color: var(--navy);
}
.site-footer ::selection { background: var(--navy); color: var(--white); }
.site-footer :focus-visible { outline-color: var(--navy); }
.footer-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 48px; }
.footer-invite { grid-column: 1 / span 7; }
.invite { font-size: var(--fs-h2); line-height: 1; margin-bottom: 36px; }
.footer-links { grid-column: 10 / span 3; }
.footer-links ul { display: grid; gap: 12px; }
.footer-links a { text-decoration-color: rgb(11 31 51 / 0.35); overflow-wrap: anywhere; font-size: var(--fs-small); }
@media (hover: hover) and (pointer: fine) { .footer-links a:hover { color: var(--cyan-deep); } }
.footer-legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  margin-top: auto; padding: 72px 0 14px; color: var(--slate); font-size: var(--fs-small);
}
.footer-name {
  margin: 0 0 clamp(18px, 3vw, 44px); color: var(--navy); text-align: center;
  font: 700 17.2vw/0.86 var(--font-display); letter-spacing: -0.04em;
  white-space: nowrap; user-select: none;
}
@media (max-width: 900px) {
  .footer-invite, .footer-links { grid-column: 1 / -1; }
  .invite { font-size: clamp(2.5rem, 11vw, 4rem); }
  .footer-invite .btn { width: 100%; }
  .footer-name { font-size: 17.6vw; }
}

/* ---------- Entrances (only with JavaScript; content is visible without it) ---------- */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); }
.js [data-reveal].in {
  opacity: 1; transform: none;
  transition: opacity 900ms ease, transform 1200ms var(--ease-expo);
  transition-delay: var(--d, 0ms);
}
.js .slip [data-reveal] { transform: translate3d(0, 10px, 0); }
.js .slip [data-reveal].in { transform: none; transition: opacity 500ms ease, transform 600ms var(--ease-expo); transition-delay: var(--d, 0ms); }
.js .frame[data-reveal], .js .detail[data-reveal] { transform: none; }
.js .frame[data-reveal] img, .js .frame[data-reveal] video, .js .detail[data-reveal] img { transform: scale(1.14); transition: transform 1700ms var(--ease-expo); }
.js .frame[data-reveal].in img, .js .frame[data-reveal].in video, .js .detail[data-reveal].in img { transform: none; }
.js .specimen[data-reveal] { transform: translate3d(0, 60px, 0); }
.js .specimen[data-reveal]:nth-child(2) { transition-delay: 120ms; }

/* ---------- Plain pages (privacy, thanks, 404, form errors) ---------- */
.plain-page .site-header { background: rgb(6 17 28 / 0.96); }
.plain { max-width: 48rem; margin: 0 auto; padding: calc(var(--header-h) + clamp(64px, 10vw, 128px)) var(--gutter) clamp(80px, 10vw, 140px); }
.plain h1 { font-size: var(--fs-h2); line-height: 1.02; margin-bottom: 28px; }
.plain h2 { font-size: var(--fs-h3); margin: 48px 0 14px; }
.plain p + p, .plain p + ul, .plain ul + p { margin-top: 16px; }
.plain ul { display: grid; gap: 10px; }
.plain .btn { margin-top: 32px; }
.plain .meta { color: var(--steel); font-size: var(--fs-small); margin-bottom: 36px; }
.plain .ref { font: 700 var(--fs-h3) var(--font-display); color: var(--cyan); }
.plain-back { margin-left: auto; font: 600 var(--fs-small) var(--font-display); text-decoration: none; }

/* ---------- Still page: keep fades and state changes, drop travel ----------
   boot.js sets .still when the system asks for reduced motion (unless the visitor turned motion
   on) or when the visitor turned motion off. Without JavaScript the media query decides. */
@media (prefers-reduced-motion: reduce) {
  .no-js *, .no-js *::before, .no-js *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}
.still *, .still *::before, .still *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
.still :is(.hero-canvas, .hero-title, .hero-foot) { transform: none !important; opacity: 1 !important; }
.still.js :is(.hero-title .line > span, .hero-lede, .hero-cta) { transform: none; }
.still.ready :is(.hero-lede, .hero-cta) { transition: opacity 400ms ease; }
.still.js :is([data-reveal], .slip [data-reveal], .specimen[data-reveal]) { transform: none; }
.still.js [data-reveal].in { transition: opacity 400ms ease; }
.still.js :is(.frame[data-reveal] img, .frame[data-reveal] video, .detail[data-reveal] img) { transform: none; transition: none; }
.still :is(.plate, .tab-ink, .mini-stack path, .app-stages li) { transition-property: background-color, color, stroke, fill, box-shadow, opacity; }
.still .board img { transform: none; }
.still :is(.app-stages li.on, .mini-stack path.on) { transform: none; }

/* ==========================================================================
   Motion layer (src/motion.js): smooth scroll, preloader, cursor, grain,
   marquees, the design scene, curtains.
   Everything here only takes effect with JavaScript; reduced motion keeps
   the page still.
   ========================================================================== */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

.preloader { display: none; }
/* boot.js adds .has-preloader only when motion is on. */
.has-preloader .preloader {
  position: fixed; inset: 0; z-index: 200; display: grid; align-items: end;
  padding: var(--gutter); background: var(--ground); clip-path: inset(0% 0% 0% 0%);
}
.pre-inner { display: grid; gap: 18px; width: 100%; }
.pre-word { overflow: hidden; color: var(--steel); font: 600 var(--fs-h3) var(--font-display); }
.pre-word span { display: inline-block; transform: translateY(120%); }
.pre-count { color: var(--ink); font: 700 clamp(5rem, 18vw, 16rem)/0.85 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.pre-bar { height: 4px; overflow: hidden; background: rgb(143 179 209 / 0.18); }
.pre-fill { display: block; height: 100%; background: var(--cyan); transform: scaleX(0); transform-origin: left center; }

.cursor { position: fixed; z-index: 300; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity 300ms ease; mix-blend-mode: difference; }
.cursor.is-on { opacity: 1; }
.cursor-dot, .cursor-ring { position: fixed; left: 0; top: 0; border-radius: 50%; pointer-events: none; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor-ring {
  display: grid; place-items: center; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1.5px solid rgb(255 255 255 / 0.85);
  transition: scale 350ms var(--ease-out), background-color 300ms ease;
}
.cursor.is-action .cursor-ring { scale: 1.7; background: rgb(255 255 255 / 0.14); }
.cursor.is-media .cursor-ring { scale: 2.4; background: #fff; }
.cursor.is-text .cursor-ring { scale: 0.5; }
.cursor.is-down .cursor-ring { scale: 0.85; }
.cursor-label { color: #000; font: 700 6px/1 var(--font-display); letter-spacing: 0.02em; opacity: 0; transition: opacity 200ms ease; }
.cursor.is-media .cursor-label { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .motion-ready body, .motion-ready :is(a, button, label, select, [role="tab"]) { cursor: none; }
  .motion-ready :is(input, textarea) { cursor: text; }
}

.scroll-progress { position: fixed; z-index: 80; left: 0; right: 0; top: 0; height: 3px; background: var(--cyan); transform: scaleX(0); transform-origin: left center; pointer-events: none; }

/* .motion-ready is set by the motion layer, which only runs when motion is on. */
.motion-ready body::after {
  content: ""; position: fixed; inset: -100%; z-index: 90; pointer-events: none;
  background: url(/assets/img/grain.png?v=Kjai7BtZJ0); opacity: 0.06; animation: grain 0.8s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-5%, 3%); }
  50% { transform: translate(4%, -6%); }
  75% { transform: translate(-2%, 7%); }
  100% { transform: translate(0, 0); }
}

.marquee { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 60px) 0; background: var(--ground); }
.marquee-track { display: flex; align-items: center; gap: clamp(28px, 3vw, 56px); width: max-content; will-change: transform; }
.marquee-track span { color: var(--ink); font: 700 clamp(3rem, 8vw, 8.5rem)/1 var(--font-display); letter-spacing: -0.03em; white-space: nowrap; }
.marquee-track .outline { color: transparent; -webkit-text-stroke: 2px var(--cyan); }
.marquee-track .via { flex: none; width: clamp(18px, 1.8vw, 28px); aspect-ratio: 1; border-radius: 50%; border: 5px solid var(--cyan); }

.stack-rig { position: relative; width: 100%; height: 100%; display: grid; place-items: center; transform-style: preserve-3d; }
.stack.is-driven .plate { transition: none; }
/* Enhanced only (motion.js adds these): current pulsing along the traces, columns of light between layers. */
.plate .flow path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 9 91; stroke-dashoffset: 112; }
.plate .flow-glow path { stroke: var(--cyan); stroke-width: 16; opacity: 0.22; }
.plate .flow-core path { stroke: var(--cyan-soft); stroke-width: 5; }
.plate:not(.is-active) .flow { opacity: 0.5; }
.beam {
  position: absolute; width: 4px; height: 100px; margin-left: -2px; pointer-events: none;
  background: linear-gradient(to bottom, rgb(0 194 255 / 0), var(--cyan) 42%, var(--ink) 50%, var(--cyan) 58%, rgb(0 194 255 / 0)) 0 0 / 100% 300%; /* taste-skill-ignore: a moving pulse of light, not a decorative fill */
  animation: beam-run 1.3s linear infinite paused;
}
.stack.is-live .beam { animation-play-state: running; }
@keyframes beam-run { to { background-position: 0 -300%; } }
.rows > div::after { transform: scaleX(var(--lead, 1)); transform-origin: left center; }

.frame::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--cyan); transform: scaleY(var(--curtain, 0)); transform-origin: center top; pointer-events: none; }
.video-toggle { z-index: 2; }

/* ---------- The design scene: the real layout drawing itself, PCB-editor style ---------- */
.design-stage { position: relative; margin: clamp(120px, 14vw, 220px) calc(var(--gutter) * -1) clamp(40px, 6vw, 96px); }
.design-sticky { display: grid; gap: 32px; padding: 0 var(--gutter); }
.eda { display: none; }
.design-captions { display: grid; gap: 32px; }
.design-cap h3 { font-size: var(--fs-h2); line-height: 1; margin-bottom: 18px; }
.design-cap h4 { font: 700 var(--fs-h3)/1.1 var(--font-display); color: var(--cyan); margin-bottom: 12px; }
.design-cap p { max-width: 34rem; }
.motion-ready .eda {
  position: relative; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 0;
  background: #040C14; border-radius: 12px; overflow: hidden;
  box-shadow: 0 70px 140px -70px rgb(0 0 0 / 0.95), 0 0 0 1px rgb(143 179 209 / 0.12); /* taste-skill-ignore: data-ui editor window */
}
.motion-ready .design-sticky {
  height: 100vh; height: 100svh; grid-template-columns: minmax(0, 1fr) min(360px, 30vw); align-items: center; /* taste-skill-ignore: 100vh fallback; 100svh follows */
  padding: calc(var(--header-h) + 16px) var(--gutter) 28px;
}
.motion-ready .eda { height: min(78vh, 820px); }
.eda-bar { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; background: #0A1826; color: var(--steel); font: 600 13px var(--font-display); }
.eda-bar i { width: 10px; height: 10px; border-radius: 50%; background: #1D3A52; }
.eda-title { margin-left: 8px; color: var(--ink); }
.eda-mode { margin-left: auto; color: var(--cyan); }
.eda-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); min-height: 0; }
.eda-layers { display: grid; align-content: start; gap: 4px; padding: 14px 10px; background: #071320; }
.eda-layers li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 6px; color: rgb(143 179 209 / 0.5); font: 600 13px var(--font-display); transition: color 300ms ease, background-color 300ms ease; }
.eda-layers li i { width: 14px; height: 14px; border-radius: 3px; background: var(--sw); opacity: 0.3; transition: opacity 300ms ease; }
.eda-layers li.is-on { color: var(--ink); background: rgb(143 179 209 / 0.08); }
.eda-layers li.is-on i { opacity: 1; }
.eda-view { position: relative; min-height: 0; }
.eda-canvas { display: block; width: 100%; height: 100%; }
.eda-status { display: flex; flex-wrap: wrap; gap: 4px 26px; padding: 10px 16px; background: #0A1826; color: var(--steel); font: 500 13px var(--font-display); font-variant-numeric: tabular-nums; }
.eda-status b { color: var(--ink); font-weight: 600; }
.motion-ready .design-captions { position: relative; display: block; height: 340px; }
.motion-ready .design-cap { position: absolute; left: 0; right: 0; top: 50%; opacity: 0; transform: translateY(calc(-50% + 26px)); transition: opacity 500ms ease, transform 800ms var(--ease-expo); }
.motion-ready .design-cap.is-active { opacity: 1; transform: translateY(-50%); }
@media (max-width: 899px) {
  .motion-ready .design-sticky { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; align-items: stretch; }
  .motion-ready .eda { height: auto; }
  .eda-body { grid-template-columns: 1fr; }
  .eda-layers { display: none; }
  .motion-ready .design-captions { height: 190px; }
  .motion-ready .design-cap { top: 0; transform: translateY(20px); }
  .motion-ready .design-cap.is-active { transform: none; }
}


/* Design scene: layer swatches, and the still version for reduced motion. */
.eda-layers .le i { background: #EAF6FF; }
.eda-layers .l0 i { background: #00C2FF; }
.eda-layers .l1 i { background: #3BA3D0; }
.eda-layers .l2 i { background: #2C7FB0; }
.eda-layers .l3 i { background: #7FE6FF; }
.eda-layers .l4 i { background: #1F6A99; }
.eda-layers .l5 i { background: #D8AE52; }
.eda-ready:not(.motion-ready) .eda {
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: min(70vh, 640px);
  background: #040C14; border-radius: 12px; overflow: hidden;
}
.hero-title .hc { will-change: transform; }

/* ==========================================================================
   ResQvara: the statement, the mission scene and the facts.
   Coral is a signal colour only: the incident, priority P1, live states.
   Without JavaScript or on a still page the scene is a readable report:
   the stages listed, then the panels in a grid. With motion the console is
   pinned, its layers start pulled apart in 3D and assemble, then one mission
   plays through the six stages (src/motion.js, src/mission2d.js).
   ========================================================================== */
:root { --coral: #FF5A4E; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.specimens, .contact { overflow-x: clip; }

.rq-open { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 36px var(--col-gap); margin-bottom: clamp(64px, 9vw, 140px); }
.rq-statement {
  position: relative; grid-column: 1 / -1;
  font: 700 clamp(2.5rem, 1.1rem + 6.1vw, 7.4rem)/0.96 var(--font-display); letter-spacing: -0.035em;
}
.rq-line { display: block; }
.rq-line-1 { color: var(--steel); }
.rq-line-2 { padding-left: clamp(0px, 8vw, 150px); }
.rq-name { color: var(--cyan); }
.rq-lede { grid-column: 7 / span 5; max-width: 36rem; color: var(--ink-2); }
.rq-dot {
  position: absolute; left: 0; top: 0; width: 0.2em; height: 0.2em; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 0.09em rgb(0 194 255 / 0.25); /* taste-skill-ignore: position ring around the moving dot, like a map marker */
  pointer-events: none;
}
@media (max-width: 900px) {
  .rq-lede { grid-column: 1 / -1; }
  .rq-line-2 { padding-left: 0; }
}

/* Console: shared look */
.rq-stage { position: relative; }
.rq-console {
  --c: 18px;
  position: relative; display: grid; gap: 0;
  background: var(--ground-2); color: var(--ink);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
}
.rq-bar {
  display: flex; align-items: center; gap: 18px; min-height: 46px; padding: 0 20px;
  border-bottom: 1px solid var(--line); font: 600 0.8125rem/1 var(--font-display); color: var(--steel); /* taste-skill-ignore: dispatch console chrome (data-ui): the product interface keeps its rules */
}
.rq-app { color: var(--ink); font-weight: 700; }
.rq-live { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--coral); }
.rq-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.rq-clock { color: var(--ink); font-variant-numeric: tabular-nums; min-width: 5.2em; text-align: right; }
.rq-rail {
  position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 0 20px; border-bottom: 1px solid var(--line); /* taste-skill-ignore: dispatch console chrome (data-ui): the product interface keeps its rules */
}
.rq-rail li {
  display: flex; align-items: center; gap: 10px; min-height: 50px;
  color: var(--steel); font: 600 var(--fs-small)/1 var(--font-display); transition: color 300ms ease;
}
.rq-rail li span {
  display: grid; place-items: center; width: 24px; height: 24px; border: 1.5px solid currentColor; border-radius: 50%;
  font-size: 0.75rem; font-variant-numeric: tabular-nums; transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease;
}
.rq-rail li.is-done { color: var(--ink-2); }
.rq-rail li.is-on { color: var(--ink); }
.rq-rail li.is-on span { background: var(--cyan); border-color: var(--cyan); color: var(--ground); }
.rq-rail::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: -1px; height: 2px;
  background: var(--cyan); transform: scaleX(var(--rail, 0)); transform-origin: left center;
}
.rq-say { position: relative; padding: 16px 20px; border-bottom: 1px solid var(--line); } /* taste-skill-ignore: dispatch console chrome (data-ui): the product interface keeps its rules */
.rq-say p { max-width: 70ch; color: var(--ink-2); font-size: var(--fs-small); line-height: 1.5; }
.rq-say p + p { margin-top: 10px; }
.rq-say b { color: var(--ink); font-family: var(--font-display); font-weight: 700; }
.rq-world { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; padding: 16px; }
.rq-layer { position: relative; }
.rq-l0, .rq-l1, .rq-tag { display: none; }
.rq-note { padding: 12px 20px 16px; color: var(--steel); font-size: 0.8125rem; }
.rq-note a { color: inherit; }

/* Panels: the product's own interface, small and dense on purpose */
.rq-panel {
  --c: 12px;
  padding: 16px 18px 18px; background: rgb(6 17 28 / 0.94); color: var(--ink);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  box-shadow: inset 0 0 0 1px rgb(143 179 209 / 0.22); /* taste-skill-ignore: dispatch console panel outline (data-ui) */
  font-size: 0.875rem; line-height: 1.45;
}
.rq-ph { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.rq-ph b { font: 700 1.0625rem/1.2 var(--font-display); }
.rq-ph span { color: var(--steel); font-size: 0.8125rem; text-align: right; }
.rq-ph .rq-pri { padding: 3px 8px; background: var(--coral); color: var(--ground); font: 700 0.75rem/1.2 var(--font-display); }
.rq-what { margin-bottom: 10px; font: 600 1rem/1.35 var(--font-display); }
.rq-kv { display: grid; gap: 5px; }
.rq-kv > div { display: grid; grid-template-columns: 8.4em 1fr; gap: 10px; }
.rq-kv dt { color: var(--steel); }
.rq-kv dd { color: var(--ink); font-variant-numeric: tabular-nums; }
.rq-audit, .rq-rec { display: grid; gap: 4px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 0.8125rem; } /* taste-skill-ignore: audit trail rule inside a console panel (data-ui) */
.rq-audit time, .rq-rec time { display: inline-block; min-width: 5.4em; color: var(--steel); font-variant-numeric: tabular-nums; }
.rq-src { display: flex; align-items: center; gap: 8px; margin: 12px 0 6px; color: var(--cyan-soft); font: 600 0.8125rem/1.2 var(--font-display); }
.rq-ph + .rq-src { margin-top: 2px; }
.i { width: 16px; height: 16px; flex: none; }
.rq-checks { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.rq-checks th, .rq-checks td { padding: 6px 4px; border-bottom: 1px solid rgb(143 179 209 / 0.14); text-align: center; }
.rq-checks thead th { color: var(--steel); font-weight: 400; }
.rq-checks th[scope="row"], .rq-checks thead th:first-child { text-align: left; font: 600 0.8125rem var(--font-display); }
.rq-checks td .i { margin: 0 auto; color: var(--ok); }
.rq-checks td:has(use[href="#i-no"]) .i { color: var(--coral); }
.rq-checks td:has(use[href="#i-na"]) .i { color: var(--slate); }
.rq-checks tr.is-go th { color: var(--cyan); }
.rq-why { display: grid; gap: 3px; margin-top: 10px; color: var(--ink-2); font-size: 0.8125rem; }
.rq-why b { color: var(--ink); font-family: var(--font-display); }
.rq-review { margin-top: 12px; padding: 8px 10px; background: rgb(0 194 255 / 0.12); color: var(--cyan-pale); font: 600 0.8125rem var(--font-display); }
.rq-report { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr); gap: 18px 28px; align-items: center; }
.rq-stats { display: grid; gap: 8px; }
.rq-stats p { display: flex; align-items: baseline; gap: 12px; color: var(--ink-2); }
.rq-stats b { min-width: 1.6em; color: var(--ink); font: 700 2.25rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.rq-tl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.rq-tl-key { display: grid; padding-top: 2px; color: var(--steel); font-size: 0.75rem; }
.rq-tl-key li { height: 36px; line-height: 22px; }
.rq-timeline { width: 100%; height: auto; overflow: visible; }
.rq-lanes rect { fill: rgb(143 179 209 / 0.07); }
.rq-em rect { fill: var(--cyan); opacity: 0.75; }
.rq-em rect.rq-4471 { fill: var(--coral); opacity: 1; }
.rq-tr rect { fill: var(--steel); opacity: 0.55; }
.rq-ev rect { fill: var(--cyan-deep); }
.rq-ticks text { fill: var(--steel); font: 400 13px var(--font-body); }
@media (max-width: 760px) {
  .rq-report { grid-template-columns: 1fr; }
  .rq-bar .rq-view { display: none; }
  .rq-rail { grid-template-columns: repeat(6, auto); justify-content: space-between; }
  .rq-rail li { gap: 0; font-size: 0; }
  .rq-rail li span { font-size: 0.75rem; }
}

/* Facts under the scene */
.rq-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px var(--col-gap); margin: clamp(72px, 9vw, 150px) 0 clamp(80px, 10vw, 160px); }
.rq-fact h4 { margin-bottom: 20px; font: 700 var(--fs-h3)/1.1 var(--font-display); }
.rq-fact .rows dt { font-size: 1rem; }
.rq-small { margin-top: 14px; color: var(--steel); font-size: var(--fs-small); }
.rq-sub { margin-bottom: clamp(28px, 4vw, 56px); font: 700 var(--fs-h3)/1.1 var(--font-display); }
@media (max-width: 1100px) { .rq-facts { grid-template-columns: 1fr; max-width: 640px; } }

/* Motion: the pinned console. The world is a 3D stack of layers (map, fleet, five panels). */
.motion-ready .rq-stage { margin: 0 calc(var(--gutter) * -1); }
.motion-ready .rq-sticky { height: 100vh; height: 100svh; padding: calc(var(--header-h) + 10px) var(--gutter) 18px; } /* taste-skill-ignore: 100vh fallback; 100svh follows */
.motion-ready .rq-console { height: 100%; grid-template-rows: auto auto auto minmax(0, 1fr) auto; perspective: 2300px; perspective-origin: 50% 40%; }
.motion-ready .rq-say { min-height: 76px; }
/* The chrome stays above the 3D stack while it is pulled apart. */
.motion-ready :is(.rq-bar, .rq-rail, .rq-say, .rq-note) { position: relative; z-index: 2; background: var(--ground-2); }
.motion-ready .rq-say p { position: absolute; left: 20px; right: 20px; top: 16px; margin: 0; opacity: 0; transform: translateY(10px); transition: opacity 360ms ease, transform 600ms var(--ease-expo); }
.motion-ready .rq-say p.is-active { opacity: 1; transform: none; }
.motion-ready .rq-world { display: block; padding: 0; transform-style: preserve-3d; transform-origin: 50% 46%; }
.motion-ready .rq-layer { position: absolute; inset: 0; display: block; transform-style: preserve-3d; pointer-events: none; }
.motion-ready .rq-layer::before {
  content: ""; position: absolute; inset: 0; opacity: var(--sheet, 0);
  background: rgb(8 24 39 / 0.5); box-shadow: inset 0 0 0 1px rgb(0 194 255 / 0.45); /* taste-skill-ignore: outline of each pulled-apart console layer (data-ui) */
}
.motion-ready .rq-l0::before { background: rgb(8 24 39 / 0.85); }
.motion-ready .rq-map, .motion-ready .rq-fleet { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.motion-ready .rq-tag {
  position: absolute; left: 16px; top: 12px; display: block; opacity: var(--sheet, 0);
  color: var(--cyan-pale); font: 700 1.5rem/1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap;
}
.motion-ready :is(.rq-l2, .rq-l3, .rq-l4, .rq-l5, .rq-l6) .rq-tag { top: auto; bottom: 12px; }
.motion-ready .rq-panel { position: absolute; width: min(350px, 31%); max-height: calc(100% - 32px); overflow: hidden; pointer-events: auto; }
.motion-ready .rq-incident { left: 16px; top: 16px; }
.motion-ready :is(.rq-assign, .rq-unit, .rq-care) { right: 16px; top: 16px; }
.motion-ready .rq-report { left: 16px; right: 16px; top: auto; bottom: 16px; width: auto; }
@media (max-width: 900px) {
  .motion-ready .rq-sticky { padding: calc(var(--header-h) + 6px) 12px 12px; }
  .motion-ready .rq-say { min-height: 100px; padding: 12px 14px; }
  .motion-ready .rq-say p { left: 14px; right: 14px; top: 12px; font-size: 0.875rem; }
  .motion-ready .rq-panel { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; max-height: 60%; font-size: 0.8125rem; }
  .motion-ready .rq-report { grid-template-columns: 1fr; gap: 10px; }
  .motion-ready .rq-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .motion-ready .rq-stats p { display: grid; gap: 4px; font-size: 0.75rem; }
  .motion-ready .rq-stats b { font-size: 1.6rem; }
  .motion-ready .rq-tl-key { display: none; }
  .motion-ready .rq-tl { grid-template-columns: 1fr; }
}
.no-js .motion-toggle { display: none; }

/* Still page with JavaScript: the mission map is drawn once, above the panels. */
.still.rq-ready .rq-world > :is(.rq-l0, .rq-l1) { display: block; grid-column: 1 / -1; grid-row: 1; aspect-ratio: 2 / 1; }
.still .rq-world :is(.rq-map, .rq-fleet) { display: block; width: 100%; height: 100%; }

/* Product offers: one line of what is on offer, one action, after each product chapter. */
.offer {
  --c: 18px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 48px;
  margin: 0 0 clamp(80px, 10vw, 160px); padding: clamp(28px, 4vw, 52px) clamp(24px, 4vw, 56px);
  background: var(--surface-navy);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
}
.offer-line { max-width: 36ch; font: 600 var(--fs-h3)/1.25 var(--font-display); text-wrap: pretty; }
.offer-board { margin: clamp(56px, 7vw, 110px) var(--gutter) clamp(80px, 10vw, 160px); }
.offer-consult { margin: clamp(56px, 7vw, 110px) 0 0; }
/* The scroll cue belongs to the animated board only. */
.still .cap-cue { display: none; }
@media (max-width: 760px) {
  .offer { grid-template-columns: 1fr; }
  .offer .btn { justify-self: start; }
}

/* ==========================================================================
   Entrance scene: Standard or Enhanced. Shown on a first visit (boot.js adds
   .gate before first paint); the choice is remembered. Without JavaScript it
   never appears. On devices that ask for reduced motion it holds still.
   ========================================================================== */
.gate { display: none; }
.js.gated, .js.gated body { overflow: hidden; }
.js.gated .gate {
  position: fixed; inset: 0; z-index: 260; display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: end;
  padding: clamp(24px, 4vw, 64px) var(--gutter);
  background: var(--ground); color: var(--ink); overflow: hidden;
}
.gate-scene { position: absolute; inset: 0; pointer-events: none; }
.gate-glow {
  position: absolute; left: 58%; top: 46%; width: 70vw; height: 46vw; translate: -50% -50%;
  background: radial-gradient(closest-side, rgb(0 194 255 / 0.22), rgb(0 194 255 / 0)); /* taste-skill-ignore: the light under the board */
}
.gate-board {
  position: absolute; left: 66%; top: 42%; width: min(72vw, 1400px); height: auto; translate: -50% -50%;
  filter: drop-shadow(0 40px 38px rgb(0 0 0 / 0.65)); /* taste-skill-ignore: the cut-out board casts its shadow */
}
.gate-sweep {
  position: absolute; inset: -20% -40%; opacity: 0; mix-blend-mode: screen;
  background: linear-gradient(100deg, rgb(0 194 255 / 0) 40%, rgb(155 230 255 / 0.32) 50%, rgb(0 194 255 / 0) 60%); /* taste-skill-ignore: a light sweep over the render */
}
.gate-panel { position: relative; z-index: 1; grid-column: 1; display: grid; gap: 22px; max-width: 40rem; }
.gate-scene::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgb(6 17 28 / 0.94) 0%, rgb(6 17 28 / 0.72) 30%, rgb(6 17 28 / 0) 56%); /* taste-skill-ignore: keeps the words legible over the render */
}
.gate-logo { height: 40px; width: auto; margin-bottom: clamp(12px, 4vh, 48px); }
.gate-title { font: 700 clamp(3rem, 1.6rem + 5.6vw, 7.5rem)/0.92 var(--font-display); letter-spacing: -0.035em; }
.gate-title .gl { display: block; overflow: hidden; padding-bottom: 0.06em; }
.gate-title .gl > span { display: inline-block; }
.gate-lede { max-width: 34rem; color: var(--ink-2); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); }
.gate-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 8px; }
.gate-choice {
  --c: 16px;
  position: relative; display: grid; align-content: start; gap: 10px; min-height: 100%;
  padding: 22px 24px 24px; border: 0; color: var(--ink); text-align: left; cursor: pointer;
  background: var(--surface-navy);
  clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% var(--c), 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)));
  transition: background-color 220ms ease, color 220ms ease, transform 160ms var(--ease-out);
}
.gate-choice:active { transform: scale(0.98); }
.gate-choice[data-experience="enhanced"] { background: var(--cyan); color: var(--ground); }
.gc-name { font: 700 clamp(1.5rem, 1.2rem + 1vw, 2.125rem)/1 var(--font-display); }
.gc-what { font-size: 0.9375rem; line-height: 1.45; }
.gc-note { margin-top: 4px; font: 600 0.8125rem/1.3 var(--font-display); opacity: 0.78; }
.gate-choice:focus-visible { outline: 3px solid var(--cyan-hot); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .gate-choice:hover { background: #1A4466; }
  .gate-choice[data-experience="enhanced"]:hover { background: #6BDDFF; }
}
.gate-foot { color: var(--steel); font-size: var(--fs-small); }
.gate-os { display: none; }
.os-reduce .gate-os { display: inline; }
@media (max-width: 900px) {
  .js.gated .gate { grid-template-columns: 1fr; align-items: end; overflow-y: auto; padding-top: 16px; padding-bottom: 20px; }
  .gate-board { left: 50%; top: 15%; width: 128vw; }
  .gate-glow { left: 50%; top: 15%; width: 110vw; height: 70vw; }
  .gate-scene::after { background: linear-gradient(180deg, rgb(6 17 28 / 0) 18%, rgb(6 17 28 / 0.9) 36%); } /* taste-skill-ignore: keeps the words legible over the render */
  .gate-panel { gap: 14px; padding-top: 24vh; }
  .gate-logo { height: 32px; margin-bottom: 4px; }
  .gate-title { font-size: clamp(2.5rem, 11vw, 3.5rem); }
  .gate-lede { font-size: 1rem; }
  .gate-choices { grid-template-columns: 1fr; gap: 10px; }
  .gate-choice { padding: 16px 18px 18px; gap: 6px; }
  .gc-name { font-size: 1.5rem; }
  .gc-what { font-size: 0.875rem; }
}

/* The entrance plays once, when motion is allowed: the board rises out of the dark, a light runs
   across it, the words arrive. */
@media (prefers-reduced-motion: no-preference) {
  .js.gated .gate-board { animation: gate-board 2.4s var(--ease-expo) both; }
  .js.gated .gate-glow { animation: gate-glow 3.2s ease-out both; }
  .js.gated .gate-sweep { animation: gate-sweep 2.6s 0.9s var(--ease-in-out) both; }
  .js.gated .gate-logo { animation: gate-up 1s 0.2s var(--ease-expo) both; }
  .js.gated .gate-title .gl > span { animation: gate-line 1.2s var(--ease-expo) both; }
  .js.gated .gate-title .gl:nth-child(1) > span { animation-delay: 0.35s; }
  .js.gated .gate-title .gl:nth-child(2) > span { animation-delay: 0.5s; }
  .js.gated .gate-lede { animation: gate-up 1.1s 0.75s var(--ease-expo) both; }
  .js.gated .gate-choice { animation: gate-up 1.1s var(--ease-expo) both; }
  .js.gated .gate-choice:nth-child(1) { animation-delay: 0.95s; }
  .js.gated .gate-choice:nth-child(2) { animation-delay: 1.08s; }
  .js.gated .gate-foot { animation: gate-up 1s 1.3s var(--ease-expo) both; }
}
@keyframes gate-board { from { opacity: 0; transform: translateY(9%) scale(1.14) rotate(-3deg); } to { opacity: 1; transform: none; } }
@keyframes gate-glow { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes gate-sweep { 0% { opacity: 0; transform: translateX(-60%); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(60%); } }
@keyframes gate-line { from { transform: translateY(110%); } to { transform: none; } }
@keyframes gate-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Leaving. Enhanced: the board flies at the viewer and the scene wipes up into the hero.
   Standard, or reduced motion: a short fade. */
.gate-leaving .gate { pointer-events: none; }
.gate-quiet .gate { opacity: 0; transition: opacity 400ms ease; }
.gate-cinematic .gate { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s 0.15s var(--ease-in-out); }
.gate-cinematic .gate-board { animation: none; transform: scale(1.35) translateY(-6%); opacity: 0; transition: transform 1.2s var(--ease-in-out), opacity 0.9s 0.2s ease; }
.gate-cinematic .gate-panel { opacity: 0; transform: translateY(-40px); transition: opacity 0.4s ease, transform 0.8s var(--ease-in-out); }

/* Enhanced only: a soft light that follows the pointer across the page. */
.pointer-light {
  position: fixed; z-index: 85; left: 0; top: 0; width: 900px; height: 900px; margin: -450px 0 0 -450px;
  border-radius: 50%; pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity 600ms ease;
  background: radial-gradient(closest-side, rgb(0 194 255 / 0.09), rgb(0 194 255 / 0)); /* taste-skill-ignore: the pointer's light */
}
.pointer-light.is-on { opacity: 1; }
