/* AA Reliable: site styles. Brand: navy #0B2A3F and cloud cerulean #2EA3D3 from the logo. */

@font-face {
  font-family: "Overpass";
  src: url("../assets/fonts/overpass-latin.woff2?v=3d4945e840") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Overpass Fallback";
  src: local("Arial");
  size-adjust: 98.5%;
  ascent-override: 89.6%;
  descent-override: 38.9%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */

:root {
  --navy-950: #04121d;
  --navy-900: #071a28;
  --navy-850: #0a2134;
  --navy-800: #0b2a3f;
  --navy-700: #12354f;
  --cerulean: #2ea3d3;
  --cerulean-300: #7cc9e8;
  --cerulean-700: #0b6e99;
  --lime: #b8f03c;
  --amber: #f2b544;
  --coral: #ff7a66;
  --frost: #f3f7fa;

  --font-sans: "Overpass", "Overpass Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --chamfer: 4px;
  --chamfer-lg: 6px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 68px;

  --step--1: 0.9375rem;
  --step-0: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.1875rem, 1.08rem + 0.45vw, 1.375rem);
  --step-2: clamp(1.9rem, 1.35rem + 2.2vw, 3rem);
  --step-3: clamp(2.5rem, 1.45rem + 4.3vw, 4.75rem);

  interpolate-size: allow-keywords;
}

@supports (corner-shape: bevel) {
  :root {
    --chamfer: 10px;
    --chamfer-lg: 18px;
  }
}

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--navy-900);
  --bg-alt: var(--navy-850);
  --surface: var(--navy-800);
  --field-bg: #0d2c43;
  --field-border: #5c7c93;
  --ink: #e6eff5;
  --ink-2: #a8becc;
  --ink-3: #7e98aa;
  --line: rgba(230, 239, 245, 0.12);
  --line-strong: rgba(230, 239, 245, 0.24);
  --accent: var(--cerulean);
  --accent-hover: #4fb6e0;
  --on-accent: var(--navy-950);
  --link: var(--cerulean-300);
  --focus: var(--cerulean-300);
  --ok: var(--lime);
  --warn: var(--amber);
  --fail: var(--coral);
  --info: var(--cerulean-300);
  --tint: 16%;
  --header-bg: var(--navy-900);
  --hero-bg: var(--navy-900);
  --footer-bg: var(--navy-950);
  --report-bg: linear-gradient(180deg, #0d2e46 0%, var(--navy-800) 100%);
  --report-border: rgba(124, 201, 232, 0.2);
  --report-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
  --skyline: color-mix(in srgb, var(--cerulean) 42%, transparent);
  --scene-slab-top: #123a56;
  --scene-slab-side: #0a2436;
  --scene-device: #1b4866;
  --scene-device-edge: #2b6a92;
  --scene-screen-bg: #0b2233;
  --scene-screen-ink: #7cc9e8;
  --scene-screen-accent: #2ea3d3;
  --scene-pedestal: #0f3149;
  --scene-ring: #2ea3d3;
  --scene-coin: #15405f;
  --scene-coin-edge: #2ea3d3;
  --scene-mark: #2ea3d3;
  --scene-rack: #10314a;
  --scene-rack-front: #184563;
  --scene-led-ok: #b8f03c;
  --scene-led-warn: #f2b544;
  --scene-db: #1d5579;
  --scene-cloud: #7cc9e8;
  --scene-link: #2ea3d3;
  --scene-req: #4fc3f0;
  --scene-res: #b8f03c;
  --scene-grid: #2ea3d3;
  --scene-glow: #2ea3d3;
  --scene-monitor: #7cc9e8;
  --scene-sky: #dceef8;
  --scene-ground: #0b2a3f;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: var(--frost);
  --bg-alt: #e8eff4;
  --surface: #ffffff;
  --field-bg: #ffffff;
  --field-border: #6f8a9e;
  --ink: var(--navy-800);
  --ink-2: #3d5a6e;
  --ink-3: #4f6b7e;
  --line: rgba(11, 42, 63, 0.12);
  --line-strong: rgba(11, 42, 63, 0.26);
  --accent: var(--cerulean-700);
  --accent-hover: #095b80;
  --on-accent: #ffffff;
  --link: var(--cerulean-700);
  --focus: var(--cerulean-700);
  --ok: #3b6f00;
  --warn: #8a5300;
  --fail: #b3261e;
  --info: var(--cerulean-700);
  --tint: 13%;
  --header-bg: var(--frost);
  --hero-bg: var(--frost);
  --footer-bg: #e3ebf1;
  --report-bg: #ffffff;
  --report-border: var(--line);
  --report-shadow: 0 30px 60px -36px rgba(11, 42, 63, 0.35);
  --skyline: color-mix(in srgb, var(--cerulean-700) 32%, transparent);
  --scene-slab-top: #ffffff;
  --scene-slab-side: #c9d8e3;
  --scene-device: #dbe6ee;
  --scene-device-edge: #9fb6c6;
  --scene-screen-bg: #ffffff;
  --scene-screen-ink: #9fb6c6;
  --scene-screen-accent: #0b6e99;
  --scene-pedestal: #e3ebf1;
  --scene-ring: #0b6e99;
  --scene-coin: #ffffff;
  --scene-coin-edge: #2ea3d3;
  --scene-mark: #2ea3d3;
  --scene-rack: #e3ebf1;
  --scene-rack-front: #ffffff;
  --scene-led-ok: #3b8f00;
  --scene-led-warn: #c27a00;
  --scene-db: #cfe0ea;
  --scene-cloud: #bfe3f3;
  --scene-link: #0b6e99;
  --scene-req: #0b6e99;
  --scene-res: #3b8f00;
  --scene-grid: #0b6e99;
  --scene-glow: #2ea3d3;
  --scene-monitor: #0b6e99;
  --scene-sky: #ffffff;
  --scene-ground: #9fb6c6;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: var(--step-3);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.028em;
}

h2 {
  font-size: var(--step-2);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.022em;
}

h3 {
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

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

::selection {
  background: color-mix(in srgb, var(--cerulean) 40%, transparent);
}

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

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--frost);
  color: var(--navy-900);
  font-weight: 700;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.container {
  width: min(1200px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.narrow {
  width: min(52rem, 100% - 2 * var(--gutter));
}

.section {
  padding-block: clamp(4.5rem, 3rem + 5vw, 7.5rem);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.25rem);
}

.section-intro {
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: var(--step-1);
  line-height: 1.5;
  max-width: 36rem;
}

.split {
  display: grid;
  gap: 2.5rem 4rem;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .split-aside {
    position: sticky;
    top: calc(var(--header-h) + 2.5rem);
  }
}

/* ---------- Buttons and links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 46px;
  padding: 0.8rem 1.25rem 0.7rem;
  border: 1.5px solid transparent;
  border-radius: var(--chamfer);
  corner-shape: bevel;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease,
    transform 160ms var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn-lg {
  min-height: 52px;
  padding: 0.95rem 1.5rem 0.85rem;
  font-size: 1.0625rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}

.btn-secondary {
  border-color: var(--accent);
  color: var(--ink);
  background: transparent;
}

.btn-quiet {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

@media (hover: hover) {
  .btn-primary:hover {
    background: var(--accent-hover);
  }

  .btn-secondary:hover {
    background: color-mix(in srgb, var(--accent) var(--tint), transparent);
  }

  .btn-quiet:hover {
    border-color: var(--ink-2);
  }
}

.text-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--link);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.22em;
}

@media (hover: hover) {
  .text-link:hover {
    text-decoration-thickness: 2.5px;
  }
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--chamfer);
  corner-shape: bevel;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

@media (hover: hover) {
  .icon-btn:hover {
    border-color: var(--ink-2);
    background: color-mix(in srgb, var(--ink) 6%, transparent);
  }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}

/* No backdrop-filter here: it would make the header the containing block of the fixed mobile menu. */
.site-header[data-scrolled="true"] {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 32px;
  color: var(--cerulean);
}

.brand-name {
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  padding-top: 0.15em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
  padding-block: 0.5rem;
  transition: color 150ms ease;
}

@media (hover: hover) {
  .nav-links a:hover {
    color: var(--ink);
  }
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

[data-theme="dark"] .icon-moon,
[data-theme="light"] .icon-sun {
  display: none;
}

.nav-toggle {
  display: none;
}

.no-js .header-tools {
  display: none;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 220ms var(--ease-out), opacity 150ms ease;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

[data-nav="open"] .nav-toggle-bars {
  background: transparent;
}

[data-nav="open"] .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

[data-nav="open"] .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-grid;
  }

  .header-tools {
    margin-left: auto;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 40;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2rem;
    margin: 0;
    padding: 1.5rem var(--gutter) 2.5rem;
    background: var(--header-bg);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .no-js .site-nav {
    position: static;
    display: flex;
    flex-basis: 100%;
    padding: 0 0 1rem;
    border: 0;
  }
  .no-js .site-header { position: static; }
  .no-js .header-inner {
    height: auto;
    flex-wrap: wrap;
    padding-top: 1rem;
  }
  [data-nav="open"] .site-nav {
    display: flex;
  }

  [data-nav="open"] body {
    overflow: hidden;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 1.375rem;
    font-weight: 700;
  }

  .nav-cta {
    min-height: 54px;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
  padding-block: clamp(3rem, 2rem + 4.5vw, 6rem) clamp(6.5rem, 5rem + 5vw, 9rem);
}

.hero-grid {
  display: grid;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 1040px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 4.5rem;
  }
}

/* Hero scene: a static poster first, then a three.js canvas fades in over it. */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 4 / 3;
  justify-self: center;
}

.hero-poster,
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-canvas {
  opacity: 0;
  transition: opacity 700ms var(--ease-out);
}

.hero-visual.is-live .hero-canvas {
  opacity: 1;
}

.hero-poster {
  transition: opacity 700ms var(--ease-out);
}

.hero-visual.is-live .hero-poster {
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms var(--ease-out), visibility 0s 700ms;
}

.scene-label {
  position: absolute;
  left: var(--x, 50%);
  top: var(--y, 50%);
  padding: 0.3rem 0.6rem 0.2rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--chamfer);
  corner-shape: bevel;
  background: color-mix(in srgb, var(--hero-bg) 82%, transparent);
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transform: translate(-50%, -100%);
  pointer-events: none;
}

.scene-label-us {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  color: var(--ink);
}


/* Poster fills come from the same tokens as the 3D materials. */
.pt-slab-top { fill: var(--scene-slab-top); }
.pt-slab-side { fill: var(--scene-slab-side); }
.pt-device { fill: var(--scene-device); }
.pt-device-edge { fill: none; stroke: var(--scene-device-edge); }
.pt-screen-bg { fill: var(--scene-screen-bg); }
.pt-screen-ink { fill: var(--scene-screen-ink); }
.pt-screen-accent { fill: var(--scene-screen-accent); }
.pt-pedestal { fill: var(--scene-pedestal); }
.pt-ring { fill: none; stroke: var(--scene-ring); }
.pt-coin { fill: var(--scene-coin); }
.pt-coin-edge { fill: var(--scene-coin-edge); }
.pt-rack { fill: var(--scene-rack); }
.pt-rack-front { fill: var(--scene-rack-front); }
.pt-led { fill: var(--scene-led-ok); }
.pt-db { fill: var(--scene-db); }
.pt-cloud { fill: var(--scene-cloud); }
.pt-link { fill: none; stroke: var(--scene-link); opacity: 0.35; }
.pt-flow-req { fill: none; stroke: var(--scene-req); }
.pt-flow-res { fill: none; stroke: var(--scene-res); }
.pt-pulse { fill: none; stroke: var(--scene-glow); }
.pt-monitor { fill: none; stroke: var(--scene-monitor); stroke-width: 1.5; stroke-dasharray: 6 5; opacity: 0.6; }
.pt-glow { fill: var(--scene-glow); }
.pt-grid { fill: var(--scene-grid); }
.pt-mark { color: var(--scene-mark); }

/* The still picture moves too, so the hero is alive before three.js loads.
   These are small SVG repaints; they stop once the 3D scene takes over. */
@media (prefers-reduced-motion: no-preference) {
  .pt-flow-req,
  .pt-flow-res {
    stroke-width: 4.5;
    stroke-linecap: round;
    stroke-dasharray: 0.1 16;
    animation: scene-flow 1.3s linear infinite;
  }

  .pt-monitor {
    animation: scene-monitor 2.2s linear infinite;
  }

  .pt-flow-res {
    animation-direction: reverse;
    animation-duration: 1.9s;
  }

  .pt-pulse {
    transform-box: fill-box;
    transform-origin: center;
    animation: scene-pulse 2.6s var(--ease-out) infinite;
  }

  .pt-led {
    animation: scene-led 2.4s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * -0.37s);
  }

  .hero-visual.is-live .hero-poster *,
  .hero-visual.is-poster-paused .hero-poster * {
    animation-play-state: paused;
  }
}

@keyframes scene-flow {
  to { stroke-dashoffset: -16.1; }
}

@keyframes scene-monitor {
  to { stroke-dashoffset: -22; }
}

@keyframes scene-pulse {
  from { transform: scale(0.45); opacity: 0.7; }
  to { transform: scale(1.35); opacity: 0; }
}

@keyframes scene-led {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-copy h1 {
  max-width: 8.95em;
}
@media (min-width: 1040px) and (max-width: 1259px) {
  .hero-copy h1 { font-size: calc(6.9vw - 11px); }
}

.lede {
  margin-top: 1.5rem;
  max-width: 34rem;
  color: var(--ink-2);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2.25rem;
}

.hero-note {
  margin-top: 1.5rem;
  color: var(--ink-3);
  font-size: var(--step--1);
}

.skyline {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: clamp(56px, 4vw + 40px, 110px);
  color: var(--skyline);
  pointer-events: none;
}

/* ---------- Review section: pipeline animation ---------- */

.pipeline-visual {
  width: 100%;
  max-width: 720px;
  justify-self: center;
}

.pipeline-visual .pipeline-scene {
  display: block;
  width: 100%;
  height: auto;
}

/* One shared clock; the zero frame is a complete, paused illustration. */
.pipeline-scene { --pl-duration: 9s; display: block; width: 100%; height: auto; }
.pipeline-scene * { animation-play-state: paused !important; }
.is-playing .pipeline-scene * { animation-play-state: running !important; }
.pipeline-visual:not(.is-playing) .pipeline-scene * { animation-play-state: paused !important; }
.pipeline-scene .pl-panel { fill: var(--surface); stroke: var(--line-strong); }
.pipeline-scene .pl-grid { fill: var(--line-strong); }
.pipeline-scene .pl-grid-field { fill: url(#pl-dots); opacity: .45; }
.pipeline-scene .pl-window, .pipeline-scene .pl-node-idle, .pipeline-scene .pl-server {
  fill: var(--bg-alt); stroke: var(--line-strong); stroke-width: 1;
}
.pipeline-scene .pl-divider, .pipeline-scene .pl-roadmap {
  fill: none; stroke: var(--line); stroke-width: 1;
}
.pipeline-scene .pl-tab { fill: var(--ink-3); opacity: .45; }
.pipeline-scene .pl-tab-active { fill: var(--accent); transform: translateX(68px); animation: pl-tabs var(--pl-duration) linear infinite; }
.pipeline-scene .pl-glyph, .pipeline-scene .pl-gutter, .pipeline-scene .pl-server-slot {
  fill: none; stroke: var(--ink-3); stroke-width: 1.5; stroke-linecap: round;
}
.pipeline-scene .pl-bar { fill: var(--accent); opacity: .75; }
.pipeline-scene .pl-code-a { fill: var(--accent); }
.pipeline-scene .pl-code-b { fill: var(--link); }
.pipeline-scene .pl-code-c { fill: var(--ok); }
.pipeline-scene .pl-code-line { opacity: .8; }
.pipeline-scene .pl-bar, .pipeline-scene .pl-code-line {
  transform-box: fill-box; transform-origin: left center;
  animation: pl-grow var(--pl-duration) infinite, pl-reset var(--pl-duration) linear infinite;
  animation-timing-function: linear(1 0%, 0 .01%, 0 calc(1% + var(--n) * 2.4%), 1 calc(5% + var(--n) * 2.4%), 1 100%), linear;
}
.pipeline-scene .pl-code-line {
  animation-timing-function: linear(1 0%, 0 .01%, 0 calc(28.9% + var(--n) * 2.2%), 1 calc(30.6% + var(--n) * 2.2%), 1 100%), linear;
}
.pipeline-scene .pl-marker { fill: none; stroke: var(--warn); stroke-width: 1; opacity: .65; animation: pl-marker-slide var(--pl-duration) linear infinite; }
.pipeline-scene .pl-caret { fill: var(--ink-2); opacity: 0; animation: pl-caret-step var(--pl-duration) step-end infinite, pl-caret-blink var(--pl-duration) step-end infinite; }
.pipeline-scene .pl-cloud {
  fill: var(--bg-alt); stroke: var(--link); stroke-width: 1.5;
  transform-box: fill-box; transform-origin: center; animation: pl-cloud-pulse var(--pl-duration) ease-in-out infinite;
}
.pipeline-scene .pl-status { fill: var(--ok); animation: pl-opacity var(--pl-duration) infinite; animation-timing-function: linear(1 0%, 0 .01%, 0 calc(71% + var(--n) * 3%), 1 calc(73% + var(--n) * 3%), 1 93.3%, 0 100%); }
.pipeline-scene .pl-connector { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 3 6; opacity: .65; }
.pipeline-scene .pl-track { fill: none; stroke: var(--line-strong); stroke-width: 2; }
.pipeline-scene .pl-progress {
  fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 568; stroke-dashoffset: 0; animation: pl-progress-fill var(--pl-duration) linear infinite;
}
.pipeline-scene .pl-node-active {
  fill: var(--bg-alt); stroke: var(--accent); stroke-width: 2;
  animation: pl-opacity var(--pl-duration) infinite;
  animation-timing-function: linear(1 0%, 0 .01%, 0 var(--on), 1 calc(var(--on) + 1%), 1 93.3%, 0 100%);
}
.pipeline-scene .pl-icon { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pipeline-scene .pl-check {
  fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  animation: pl-opacity var(--pl-duration) infinite;
  animation-timing-function: linear(1 0%, 0 .01%, 0 var(--done), 1 calc(var(--done) + 1%), 1 93.3%, 0 100%);
}
.pipeline-scene .pl-node { transform-box: fill-box; transform-origin: 22px 24px; }
.pipeline-scene .pl-test-node { animation: pl-test-pulse var(--pl-duration) ease-in-out infinite; }
.pipeline-scene .pl-label { fill: var(--ink); font: 700 15px var(--font-sans); text-anchor: middle; }
@media (max-width: 599px) {
  .pipeline-scene .pl-label { font-size: 29px; }
}
@media (min-width: 960px) and (max-width: 1119px) {
  .pipeline-scene .pl-label { font-size: 18px; }
}
.pipeline-scene .pl-token { fill: var(--accent); stroke: var(--bg-alt); stroke-width: 2; opacity: 0; animation: pl-token-travel var(--pl-duration) linear infinite; }
.pipeline-scene .pl-packet { fill: var(--ok); opacity: 0; animation: pl-packet-travel var(--pl-duration) linear infinite; }
@keyframes pl-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pl-opacity { from { opacity: 0; } to { opacity: 1; } }
@keyframes pl-reset { 0%, 93.3% { opacity: .8; } 100% { opacity: 0; } }
@keyframes pl-tabs {
  0%, 100% { transform: translateX(68px); }
  .01%, 15.6% { transform: translateX(0); }
  21% { transform: translateX(34px); }
  28.9%, 93.3% { transform: translateX(68px); }
}
@keyframes pl-marker-slide { from { transform: translateX(0); } to { transform: translateX(244px); } }
@keyframes pl-progress-fill {
  0% { stroke-dashoffset: 0; }
  .01% { stroke-dashoffset: 568; }
  15.6% { stroke-dashoffset: 426; }
  28.9% { stroke-dashoffset: 284; }
  51.1% { stroke-dashoffset: 142; }
  66.7%, 93.3% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 568; }
}
@keyframes pl-token-travel {
  0% { opacity: 0; transform: translateX(0); }
  .01% { opacity: 1; transform: translateX(0); }
  15.6% { transform: translateX(142px); }
  28.9% { transform: translateX(284px); }
  51.1% { transform: translateX(426px); }
  66.7%, 79.9% { opacity: 1; transform: translateX(568px); }
  80%, 100% { opacity: 0; transform: translateX(568px); }
}
@keyframes pl-caret-step {
  0%, 28.9% { transform: translate(0, 0); }
  31.1% { transform: translate(0, 17px); }
  33.3% { transform: translate(92px, 34px); }
  35.5% { transform: translate(-24px, 51px); }
  37.7% { transform: translate(46px, 68px); }
  39.9% { transform: translate(38px, 85px); }
  42.1% { transform: translate(-46px, 102px); }
  44.3% { transform: translate(18px, 119px); }
  46.5%, 100% { transform: translate(-38px, 136px); }
}
@keyframes pl-caret-blink {
  0%, 28.8%, 31%, 35.4%, 39.8%, 44.2%, 48.6%, 51.1%, 100% { opacity: 0; }
  28.9%, 33.2%, 37.6%, 42%, 46.4%, 50.8% { opacity: 1; }
}
@keyframes pl-test-pulse {
  0%, 51.1%, 58.9%, 66.7%, 100% { transform: scale(1); }
  55%, 62.8% { transform: scale(1.08); }
}
@keyframes pl-cloud-pulse {
  0%, 74%, 80%, 100% { transform: scale(1); }
  77% { transform: scale(1.04); }
}
@keyframes pl-packet-travel {
  0%, 66.6% { opacity: 0; transform: translate(0, 0); }
  66.7% { opacity: 1; transform: translate(0, 0); }
  70% { opacity: 1; transform: translate(0, -32px); }
  71.2% { transform: translate(-8px, -40px); }
  72.8% { transform: translate(-20px, -40px); }
  74% { transform: translate(-28px, -48px); }
  74.5% { opacity: 1; transform: translate(-28px, -50px); }
  75%, 100% { opacity: 0; transform: translate(-28px, -50px); }
}
@media (prefers-reduced-motion: reduce) {
  .pipeline-scene * { animation: none !important; }
  .pipeline-scene .pl-bar, .pipeline-scene .pl-code-line { transform: scaleX(1); opacity: .8; }
  .pipeline-scene .pl-node-active, .pipeline-scene .pl-check, .pipeline-scene .pl-status { opacity: 1; }
  .pipeline-scene .pl-progress { stroke-dashoffset: 0; }
  .pipeline-scene .pl-token, .pipeline-scene .pl-packet, .pipeline-scene .pl-caret { opacity: 0; }
}

/* ---------- Services ---------- */

.service-groups {
  display: grid;
  gap: 3rem;
}

.group-title {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line-strong);
  color: var(--accent);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0;
}

.service {
  padding-block: 2rem 2.25rem;
  border-bottom: 1px solid var(--line);
}

.service h4 {
  margin: 0;
  font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.018em;
}

.service-lead {
  margin-top: 0.6rem;
  max-width: 38rem;
  color: var(--ink);
  font-size: var(--step-0);
}

.service-points {
  display: grid;
  gap: 0.45rem 2rem;
  margin-top: 1.25rem;
  list-style: none;
  color: var(--ink-2);
  font-size: 1rem;
}

@media (min-width: 640px) {
  .service-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.service-points li {
  position: relative;
  padding-left: 1.2rem;
}

.service-points li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.62em;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ---------- Help doors and pricing (shared ruled columns) ---------- */

/* Section bands alternate: hero, help (alt), sample, services (alt), pricing,
   process (alt), who we are, FAQ (alt), contact. */
.doors,
.services,
.process,
.faq {
  background: var(--bg-alt);
}

.door-list,
.price-list {
  display: grid;
  border-top: 1px solid var(--line-strong);
}

.door,
.price {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 0 2rem;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 900px) {
  .door-list,
  .price-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
  }

  .door,
  .price {
    padding: 2rem 2rem 2.25rem;
    border-bottom: 0;
  }

  .door:first-child,
  .price:first-child {
    padding-left: 0;
  }

  .door:last-child,
  .price:last-child {
    padding-right: 0;
  }

  .door + .door,
  .price + .price {
    border-left: 1px solid var(--line);
  }
}

.door h3 {
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.022em;
}

.door p {
  margin-top: 0.85rem;
  max-width: 34rem;
  color: var(--ink-2);
}

.door .text-link {
  margin-top: auto;
  padding-top: 1.25rem;
}

.price h3 {
  color: var(--ink-2);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0;
}

.price-figure {
  margin: 0.4rem 0 0.9rem;
  line-height: 1.05;
}

.price-amount {
  color: var(--ink);
  font-size: clamp(1.875rem, 1.45rem + 1.6vw, 2.625rem);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.price p:last-child {
  max-width: 30rem;
  color: var(--ink-2);
}

.pricing-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2.5rem;
  margin-top: 1.75rem;
}

.fine-print {
  max-width: 42rem;
  color: var(--ink-3);
  font-size: var(--step--1);
}

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

.steps {
  display: grid;
  gap: 2.5rem 2rem;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.step {
  counter-increment: step;
  padding-top: 1.5rem;
  border-top: 2px solid var(--line-strong);
}

.step:first-child {
  border-top-color: var(--accent);
}

.step::before {
  content: counter(step);
  display: block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.step p {
  margin-top: 0.6rem;
  color: var(--ink-2);
  font-size: 1rem;
}

/* ---------- How we work ---------- */

.principle-list {
  margin: 0;
  border-top: 1px solid var(--line-strong);
}

.principle {
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.principle dt {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.principle dd {
  margin: 0.6rem 0 0;
  max-width: 36rem;
  color: var(--ink-2);
}

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

.faq h2 {
  margin-bottom: 2rem;
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  position: relative;
  display: block;
  padding: 1.35rem 3rem 1.2rem 0;
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before,
.faq-item summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 16px;
  height: 2px;
  background: var(--accent);
  transition: transform 220ms var(--ease-out);
}

.faq-item summary::after {
  transform: rotate(90deg);
}

.faq-item[open] summary::after {
  transform: rotate(0deg);
}

.faq-item::details-content {
  height: 0;
  overflow: clip;
  transition: height 200ms var(--ease-out), content-visibility 200ms allow-discrete;
}

.faq-item[open]::details-content {
  height: auto;
}

.faq-body p {
  max-width: 44rem;
  padding-bottom: 1.4rem;
  color: var(--ink-2);
}

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

.contact-grid {
  display: grid;
  gap: 3rem 4rem;
}

@media (min-width: 1000px) {
  .contact-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }
}

.next-steps {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
  list-style: none;
  counter-reset: next;
}

.next-steps li {
  counter-increment: next;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: baseline;
  color: var(--ink-2);
}

.next-steps li::before {
  content: counter(next);
  color: var(--accent);
  font-weight: 800;
}

.contact-direct {
  margin-top: 2rem;
  color: var(--ink-2);
}

.contact-direct a {
  color: var(--link);
  font-weight: 700;
  text-underline-offset: 0.2em;
}

.contact-form {
  position: relative;
  min-width: 0;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--chamfer-lg);
  corner-shape: bevel;
}

[data-theme="light"] .contact-form {
  box-shadow: 0 30px 60px -45px rgba(11, 42, 63, 0.45);
}

.field {
  margin-bottom: 1.35rem;
}

.field label,
.more-details summary {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1rem;
  font-weight: 700;
}

.optional {
  margin-left: 0.35rem;
  color: var(--ink-3);
  font-size: 0.875rem;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  padding: 0.8rem 0.9rem 0.7rem;
  border: 1px solid var(--field-border);
  border-radius: var(--chamfer);
  corner-shape: bevel;
  background-color: var(--field-bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 32%, transparent);
}

.field [aria-invalid="true"] {
  border-color: var(--fail);
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  padding-right: 2.75rem;
  cursor: pointer;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: -0.4rem;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg);
  pointer-events: none;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
  margin-bottom: 0.75rem;
}

.check-field input {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.check-field label {
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.call-fields .field {
  margin-bottom: 1.35rem;
}

.field-hint {
  margin-top: 0.45rem;
  color: var(--ink-3);
  font-size: 0.875rem;
}

.field-error {
  margin-top: 0.45rem;
  color: var(--fail);
  font-size: 0.9375rem;
  font-weight: 600;
}

.more-details {
  margin: 0.25rem 0 1.5rem;
}

.more-details summary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--link);
  cursor: pointer;
  list-style: none;
}

.more-details summary::-webkit-details-marker {
  display: none;
}

.more-details summary::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 200ms var(--ease-out);
}

.more-details[open] summary::before {
  transform: rotate(45deg);
}

.more-grid {
  display: grid;
  gap: 0 1.25rem;
  margin-top: 1rem;
}

@media (min-width: 560px) {
  .more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cf-turnstile-slot {
  min-height: 76px;
  margin-bottom: 1rem;
}

.privacy-note {
  color: var(--ink-3);
  font-size: 0.875rem;
}

.form-actions {
  margin-top: 1.25rem;
}

.form-actions .btn {
  width: 100%;
}

@media (min-width: 560px) {
  .form-actions .btn {
    width: auto;
  }
}

.btn-spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.btn[data-busy="true"] .btn-spinner {
  display: inline-block;
}

.btn[disabled] {
  cursor: progress;
  opacity: 0.85;
}

@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

.form-status {
  min-height: 1.6em;
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.form-status[data-tone="error"] {
  color: var(--fail);
  font-weight: 600;
}

.form-success {
  padding-block: 1rem;
  overflow-wrap: anywhere;
}

.form-success:focus {
  outline: none;
}

.form-success:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 6px;
}

.success-icon {
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.55rem;
  margin-bottom: 1.25rem;
  border-radius: 8px;
  corner-shape: bevel;
  color: var(--ok);
  background: color-mix(in srgb, currentColor var(--tint), transparent);
}

.form-success p {
  margin-top: 0.75rem;
  color: var(--ink-2);
}

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

.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--line);
  padding-block: 3.5rem;
  font-size: var(--step--1);
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.footer-brand p,
.footer-contact p {
  margin-top: 0.75rem;
  color: var(--ink-3);
}

.footer-nav ul {
  display: grid;
  gap: 0.5rem;
  list-style: none;
}

.footer-nav a,
.footer-contact a {
  color: var(--ink-2);
  text-decoration: none;
}

.footer-contact a {
  font-weight: 700;
  color: var(--ink);
}

@media (hover: hover) {
  .footer-nav a:hover,
  .footer-contact a:hover {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }
}

@media (max-width: 899px), (pointer: coarse) {
  .brand { min-height: 44px; }
  .text-link { min-height: 44px; padding-block: 0.6rem; margin-top: 0.9rem; }
  .footer-nav a, .footer-contact a, .contact-direct a {
    display: inline-block;
    min-width: 44px;
    min-height: 44px;
    padding-block: 0.8rem;
  }
  .footer-nav ul { gap: 0; }
  .check-field label { min-height: 44px; padding-block: 0.7rem; }
  .check-field { position: relative; }
  .check-field label::before { content: ""; position: absolute; inset: 0; }
}
/* Turnstile's normal widget is 300 px wide; js/main.js renders the compact one in narrower slots. */
.form-fields { container-type: inline-size; }
@container (width < 300px) {
  .cf-turnstile-slot { min-height: 151px; }
}
/* ---------- Motion preferences and forced colors ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 1ms !important;
  }

  .btn-spinner {
    animation: none;
  }
}

/* ---------- Per-element values ---------- */
/* Kept here rather than in style attributes, so the CSP needs no 'unsafe-inline' for styles. */
.scene-label[data-anchor="customers"] { --x: 13.704%; --y: 62.338%; }
.scene-label[data-anchor="us"] { --x: 40.831%; --y: 11.662%; }
.scene-label[data-anchor="cloud"] { --x: 80.245%; --y: 23.261%; }
[data-i="0"] { --i: 0; }
[data-i="1"] { --i: 1; }
[data-i="2"] { --i: 2; }
[data-i="3"] { --i: 3; }
[data-i="4"] { --i: 4; }
[data-i="5"] { --i: 5; }
[data-i="6"] { --i: 6; }
[data-i="7"] { --i: 7; }
[data-i="8"] { --i: 8; }
[data-i="9"] { --i: 9; }
[data-i="10"] { --i: 10; }
[data-i="11"] { --i: 11; }
[data-i="12"] { --i: 12; }
[data-n="0"] { --n: 0; }
[data-n="1"] { --n: 1; }
[data-n="2"] { --n: 2; }
[data-n="3"] { --n: 3; }
[data-n="4"] { --n: 4; }
[data-n="5"] { --n: 5; }
[data-n="6"] { --n: 6; }
[data-n="7"] { --n: 7; }
[data-n="8"] { --n: 8; }
.pl-node[data-n="0"] { --on: 0.01%; --done: 15.6%; }
.pl-node[data-n="1"] { --on: 15.6%; --done: 28.9%; }
.pl-node[data-n="2"] { --on: 28.9%; --done: 51.1%; }
.pl-node[data-n="3"] { --on: 51.1%; --done: 66.7%; }
.pl-node[data-n="4"] { --on: 66.7%; --done: 80%; }

/* ---------- 404 page ---------- */
.not-found { min-height: calc(100svh - var(--header-h)); display: grid; align-items: center; }
.not-found h1 { max-width: 18ch; }
.not-found .lede { max-width: 38rem; }

/* ---------- Privacy page ---------- */
.policy h1 { max-width: 18ch; }
.policy-date { margin-top: 0.75rem; color: var(--ink-3); }
.policy section { margin-top: 2.25rem; max-width: 40rem; }
.policy h2 { font-size: var(--step-1); }
.policy section p { margin-top: 0.6rem; color: var(--ink-2); line-height: 1.6; }
.policy section a { color: var(--accent); }
.policy-back { margin-top: 2.5rem; }

@media (forced-colors: active) {
  .btn,
  .icon-btn,
  .contact-form {
    border: 1px solid CanvasText;
  }

  .service-points li::before {
    forced-color-adjust: none;
    background: CanvasText;
  }
}
