/* ════════════════════════════════════════════════════════════════
   DCBridge — enterprise infrastructure website
   Static site · no build step · tokens per the DCBridge style guide
   ════════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  color-scheme: dark;
  --navy-deep: #050B18;
  --navy-mid: #091426;
  --graphite: #151D2B;
  --steel: #8794A8;
  --white-cool: #F5F8FC;
  --blue-electric: #2F80FF;
  --blue-azure: #4FA8FF;
  /* button-only blue: white text on --blue-electric is 3.49:1 (fails AA);
     on this it is 4.76:1. Accent borders/glows keep --blue-electric. */
  --blue-button: #2368E1;
  --blue-button-hover: #1D5AC9;
  --emerald: #18C29C;

  --font-display: "Space Grotesk", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --font-body: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --font-mono: "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;

  --text-hero: clamp(2.75rem, 7vw, 6.5rem);
  --text-section: clamp(2rem, 4.5vw, 3.5rem);
  --text-sub: clamp(1.25rem, 2vw, 1.5rem);
  --text-body: clamp(1rem, 1.1vw, 1.125rem);
  --text-label: 0.8125rem;

  --space-1: 8px;  --space-2: 16px; --space-3: 24px; --space-4: 32px;
  --space-5: 48px; --space-6: 64px; --space-7: 96px; --space-8: 128px;

  --container-max: 1440px;
  --container-pad: clamp(20px, 5vw, 64px);
  --section-pad: clamp(96px, 12vh, 192px);
  --radius: 12px;
  --hairline: 1px solid rgba(135, 148, 168, 0.18);
}

/* ── Reset / base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--navy-deep);
  color: var(--white-cool);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle film grain over the whole page */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 3;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-azure); text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

:focus-visible { outline: 2px solid var(--blue-azure); outline-offset: 2px; border-radius: 4px; }

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

.skip-link {
  position: absolute; top: -48px; left: var(--space-2); z-index: 200;
  background: var(--blue-button); color: var(--white-cool);
  padding: 10px 18px; border-radius: 0 0 8px 8px; font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.container-narrow { max-width: 920px; }

section[id], #enquiry-form { scroll-margin-top: 84px; }

/* ── Typography helpers ─────────────────────────────────────── */
.eyebrow {
  font-size: var(--text-label);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--steel);
  margin-bottom: var(--space-3);
}
.section-heading {
  font-family: var(--font-display);
  font-size: var(--text-section);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-4);
  max-width: 20ch;
}
.body-lg { font-size: var(--text-sub); line-height: 1.55; color: var(--steel); max-width: 60ch; }
.body-lg + .body-lg { margin-top: var(--space-3); }
.accent-line { color: var(--white-cool); border-left: 2px solid var(--blue-electric); padding-left: var(--space-3); margin-top: var(--space-4); }
.text-link { color: var(--blue-azure); border-bottom: 1px solid rgba(79, 168, 255, 0.4); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 28px;
  border-radius: 10px; font-weight: 600; font-size: 1rem;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  will-change: transform;
}
.btn-primary { background: var(--blue-button); color: var(--white-cool); }
.btn-primary:hover { background: var(--blue-button-hover); }
.btn-secondary {
  color: var(--white-cool);
  border: 1px solid rgba(135, 148, 168, 0.45);
  background: rgba(9, 20, 38, 0.6);
}
.btn-secondary:hover { border-color: var(--blue-azure); }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }

/* ── Real-time scene layer ──────────────────────────────────────
   Fixed behind every section. The poster is always painted; the canvas
   fades in over it once the first frame is up, so reduced-motion, absent
   WebGL2, failed JS, and context loss all land on the same visual floor
   with nothing to toggle. */
.scene-layer { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.scene-poster {
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 620px at 50% 46%, rgba(47, 128, 255, 0.16), transparent 68%),
    radial-gradient(760px 480px at 18% 74%, rgba(24, 194, 156, 0.1), transparent 70%),
    radial-gradient(820px 520px at 84% 26%, rgba(79, 168, 255, 0.09), transparent 72%),
    var(--navy-deep);
}
#scene {
  position: absolute; inset: 0;
  width: 100%; height: 100%; display: block;
  opacity: 0;
  transition: opacity 0.9s ease;
}
#scene.is-ready { opacity: 1; }

/* Content sits above the scene. Sections carry a navy veil rather than a
   solid fill, so the journey stays faintly present the whole way down
   while text keeps its contrast. */
.site-header, main, .site-footer { position: relative; z-index: 1; }
.section { background: rgba(5, 11, 24, 0.88); }
.section-alt { background: rgba(9, 20, 38, 0.9); }
.capabilities { background: rgba(9, 20, 38, 0.92); }
.site-footer { background: rgba(9, 20, 38, 0.94); }
/* the two cinematic bookends stay clear so the scene plays uncovered */
.hero, .final-cta { background: transparent; }

/* ── Loader ─────────────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--navy-deep);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-3);
  transition: opacity 0.5s ease;
}
#loader.is-done { opacity: 0; pointer-events: none; }
.loader-label {
  font-size: var(--text-label); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--steel);
}
.loader-path { stroke-dasharray: 300; stroke-dashoffset: 300; animation: loader-draw 1.6s ease forwards; }
@keyframes loader-draw { to { stroke-dashoffset: 0; } }
/* loader exists only for the JS-enhanced experience */
html:not(.js) #loader { display: none; }
@media (prefers-reduced-motion: reduce) { #loader { display: none; } }

/* ── Navigation ─────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(5, 11, 24, 0.85);
  border-bottom: var(--hairline);
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself makes
   it the containing block for fixed descendants (Chromium), which re-parents
   the mobile .nav-menu and collapses the full-screen overlay to a strip. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  backdrop-filter: blur(10px);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
  color: var(--white-cool); letter-spacing: 0.01em;
}
.nav-menu { display: flex; align-items: center; gap: var(--space-5); }
.nav-links { display: flex; gap: var(--space-4); }
.nav-links a {
  color: var(--steel); font-size: 0.95rem; font-weight: 500;
  padding: 6px 2px; border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-links a:hover { color: var(--white-cool); }
.nav-links a[aria-current="true"] { color: var(--white-cool); border-bottom-color: var(--blue-electric); }
.nav-cta { min-height: 42px; padding: 8px 20px; font-size: 0.95rem; }
.nav-signin { color: var(--white-cool); font-size: 0.95rem; font-weight: 500; white-space: nowrap; }
.nav-signin:hover { color: var(--blue-azure); }
.nav-actions { display: flex; align-items: center; gap: var(--space-4); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: flex; flex-direction: column; gap: 6px;
    width: 48px; height: 48px; align-items: center; justify-content: center;
  }
  .nav-toggle-bar {
    width: 22px; height: 2px; background: var(--white-cool);
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-menu {
    position: fixed; inset: 72px 0 0 0;
    background: var(--navy-deep);
    flex-direction: column; justify-content: flex-start;
    padding: var(--space-6) var(--container-pad);
    gap: var(--space-5);
    display: none;
    overflow-y: auto;
  }
  .nav-menu.is-open { display: flex; }
  .nav-links { flex-direction: column; gap: var(--space-3); width: 100%; }
  .nav-links a { font-size: 1.4rem; font-family: var(--font-display); color: var(--white-cool); }
  .nav-actions { flex-direction: column; align-items: stretch; gap: var(--space-3); width: 100%; }
  .nav-signin { font-size: 1.2rem; font-family: var(--font-display); }
  .nav-cta { width: 100%; }
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 72px;
}
.hero-media { position: absolute; inset: 0; overflow: hidden; }
/* Two-part scrim: a vertical wash for overall legibility plus a left-weighted
   pass behind the headline column, which is where the type actually sits. */
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(5, 11, 24, 0.86) 0%, rgba(5, 11, 24, 0.6) 46%, rgba(5, 11, 24, 0.12) 78%),
    linear-gradient(to top, rgba(5, 11, 24, 0.94) 0%, rgba(5, 11, 24, 0.45) 45%, rgba(5, 11, 24, 0.25) 100%);
}
.hero-content { position: relative; z-index: 2; padding-block: var(--space-7); }
.hero-heading {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 600; line-height: 1.02; letter-spacing: -0.02em;
  max-width: 14ch;
}
.hero-support { font-size: var(--text-sub); color: var(--white-cool); opacity: 0.85; max-width: 54ch; margin-top: var(--space-4); }
.hero-status {
  margin-top: var(--space-6);
  font-size: var(--text-label); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--steel);
  display: inline-flex; align-items: center; gap: 10px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px rgba(24, 194, 156, 0.7);
}
.video-pause {
  /* fixed, not absolute: the scene it pauses runs behind the whole page,
     so the control must stay reachable after scrolling past the hero */
  position: fixed; right: var(--space-3); bottom: var(--space-3); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(9, 20, 38, 0.7); border: var(--hairline); color: var(--white-cool);
}
.video-pause .icon-play { display: none; }
.video-pause[aria-pressed="true"] .icon-pause { display: none; }
.video-pause[aria-pressed="true"] .icon-play { display: block; }

/* ── Capabilities strip ─────────────────────────────────────── */
.capabilities {
  border-block: var(--hairline);
  padding-block: var(--space-3);
  overflow: hidden;
}
.marquee { display: flex; width: max-content; gap: 0; }
.marquee-track {
  display: flex; align-items: center; gap: var(--space-6);
  padding-inline: var(--space-4);
  animation: marquee 48s linear infinite;
}
.marquee-track li {
  white-space: nowrap;
  font-size: var(--text-label); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--steel);
  display: flex; align-items: center; gap: var(--space-6);
}
.marquee-track li::after { content: "·"; color: var(--blue-electric); }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee:hover .marquee-track,
.marquee:focus-visible .marquee-track,
.marquee:focus-within .marquee-track,
.marquee.is-paused .marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee { width: auto; }
  .marquee-track[aria-hidden="true"] { display: none; }
}

/* ── Sections ───────────────────────────────────────────────── */
.section { padding-block: var(--section-pad); position: relative; }
/* background comes from the translucent veil block above — an opaque fill
   here would kill the scene shining through */
.section-alt { border-block: var(--hairline); }

.grid-2 {
  display: grid; grid-template-columns: 7fr 5fr;
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.grid-2-wide { grid-template-columns: 6fr 6fr; align-items: start; }
@media (max-width: 900px) { .grid-2, .grid-2-wide { grid-template-columns: 1fr; } }

/* ── Mission diagram ────────────────────────────────────────── */
.diagram-frame {
  background: var(--graphite); border: var(--hairline); border-radius: var(--radius);
  padding: var(--space-3);
}
.diagram { width: 100%; height: auto; font-family: var(--font-body); }

/* ── Pillars ────────────────────────────────────────────────── */
.pillar {
  display: grid; grid-template-columns: 180px 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding-block: var(--space-6);
  border-top: var(--hairline);
  margin-top: var(--space-6);
}
.pillar:first-of-type { margin-top: var(--space-7); }
.pillar-flip { grid-template-columns: 1fr 180px; }
.pillar-flip .pillar-num { order: 2; text-align: right; }
.pillar-flip .pillar-body { order: 1; }
.pillar-num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5rem); font-weight: 600; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(79, 168, 255, 0.45);
}
.pillar-body h3 {
  font-family: var(--font-display); font-size: var(--text-sub);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: var(--space-2); color: var(--white-cool);
}
.pillar-body p { color: var(--steel); max-width: 62ch; }
@media (max-width: 700px) {
  .pillar, .pillar-flip { grid-template-columns: 1fr; }
  .pillar-flip .pillar-num { order: 0; text-align: left; }
}

.token-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-3); }
.token-list li {
  font-size: 0.8rem; color: var(--steel);
  border: var(--hairline); border-radius: 999px;
  padding: 4px 12px; white-space: nowrap;
}
.token-list-label {
  font-size: var(--text-label); text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--steel); margin-top: var(--space-4);
}

/* ── Architecture stack ─────────────────────────────────────── */
.arch-stack { margin-top: var(--space-6); list-style: none; position: relative; }
.arch-stack::before {
  content: ""; position: absolute; left: 11px; top: 24px; bottom: 24px;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue-electric), var(--emerald));
  opacity: 0.55;
}
.arch-layer { position: relative; padding-left: var(--space-5); margin-bottom: var(--space-2); }
.arch-layer::before {
  content: ""; position: absolute; left: 6px; top: 22px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--navy-deep); border: 2px solid var(--blue-electric);
}
.arch-layer details {
  background: var(--graphite); border: var(--hairline); border-radius: var(--radius);
  overflow: hidden;
}
.arch-layer summary {
  cursor: pointer; padding: var(--space-2) var(--space-3);
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  list-style: none;
}
.arch-layer summary::-webkit-details-marker { display: none; }
.arch-layer summary::after {
  content: "−"; color: var(--steel); font-size: 1.2rem; flex-shrink: 0;
}
.arch-layer details:not([open]) summary::after { content: "+"; }
.arch-layer details p {
  padding: 0 var(--space-3) var(--space-3);
  color: var(--steel); max-width: 70ch;
}

/* ── Platform ───────────────────────────────────────────────── */
.shots-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4); margin-top: var(--space-6);
}
@media (max-width: 800px) { .shots-grid { grid-template-columns: 1fr; } }
.shot { background: var(--graphite); border: var(--hairline); border-radius: var(--radius); overflow: hidden; }
.shot-open { display: block; width: 100%; padding: 0; }
.shot-open img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.shot figcaption { padding: var(--space-2) var(--space-3); font-size: 0.9rem; color: var(--steel); }

/* ── Connectors ─────────────────────────────────────────────── */
.group-label {
  font-size: var(--text-label); text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--steel); margin-top: var(--space-6); margin-bottom: var(--space-3);
}
.connector-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-3);
}
.connector {
  background: var(--graphite); border: var(--hairline); border-radius: var(--radius);
  padding: var(--space-3);
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.2s ease;
}
.connector:hover { border-color: rgba(79, 168, 255, 0.5); }
.connector-name { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.connector-name small { font-weight: 400; color: var(--steel); font-size: 0.85rem; }
.connector-cat { font-size: var(--text-label); text-transform: uppercase; letter-spacing: 0.1em; color: var(--blue-azure); }
.connector-tokens { font-size: 0.85rem; color: var(--steel); }

/* ── Automations demo ───────────────────────────────────────── */
.auto-demo {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: var(--space-5); margin-top: var(--space-6);
  align-items: start;
}
@media (max-width: 860px) { .auto-demo { grid-template-columns: 1fr; } }
.auto-flow, .auto-channels {
  background: var(--graphite); border: var(--hairline); border-radius: var(--radius);
  padding: var(--space-4);
}
.auto-flow-label {
  font-size: var(--text-label); text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--steel); margin-bottom: var(--space-3);
}
.auto-steps { list-style: none; counter-reset: step; }
.auto-steps li {
  counter-increment: step;
  position: relative; padding: 12px 0 12px 44px;
  font-weight: 500;
}
.auto-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 10px;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; color: var(--blue-azure);
  border: 1px solid rgba(79, 168, 255, 0.5);
}
.auto-steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 13.5px; top: 40px; bottom: -8px;
  width: 1px; background: rgba(79, 168, 255, 0.35);
}
.auto-channels { border: var(--hairline); }
.auto-channels legend { padding: 0; }
.auto-channels input[type="radio"] {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.auto-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-3); }
.auto-tabs label {
  cursor: pointer; padding: 8px 18px; border-radius: 999px;
  border: var(--hairline); color: var(--steel); font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.auto-tabs label:hover { color: var(--white-cool); }
/* visible keyboard focus per radio — the inputs are visually hidden, so the
   matching label must carry the ring */
#ch-whatsapp:focus-visible ~ .auto-tabs label[for="ch-whatsapp"],
#ch-sms:focus-visible ~ .auto-tabs label[for="ch-sms"],
#ch-telegram:focus-visible ~ .auto-tabs label[for="ch-telegram"],
#ch-slack:focus-visible ~ .auto-tabs label[for="ch-slack"] {
  outline: 2px solid var(--blue-azure); outline-offset: 2px; color: var(--white-cool);
}
#ch-whatsapp:checked ~ .auto-tabs label[for="ch-whatsapp"],
#ch-sms:checked ~ .auto-tabs label[for="ch-sms"],
#ch-telegram:checked ~ .auto-tabs label[for="ch-telegram"],
#ch-slack:checked ~ .auto-tabs label[for="ch-slack"] {
  color: var(--white-cool); border-color: var(--blue-electric);
  background: rgba(47, 128, 255, 0.12);
}
.auto-panel { display: none; }
#ch-whatsapp:checked ~ .auto-panels #panel-whatsapp,
#ch-sms:checked ~ .auto-panels #panel-sms,
#ch-telegram:checked ~ .auto-panels #panel-telegram,
#ch-slack:checked ~ .auto-panels #panel-slack { display: block; }
.auto-panel-title { font-family: var(--font-display); font-weight: 600; margin-bottom: var(--space-1); }
.auto-panel p:last-child { color: var(--steel); }
/* no-JS / no-:checked fallback safety: radios always work without JS (pure CSS) */

/* ── Use cases ──────────────────────────────────────────────── */
.usecase-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--space-3); margin-top: var(--space-6);
}
.usecase {
  background: var(--graphite); border: var(--hairline); border-radius: var(--radius);
  padding: var(--space-3);
}
.usecase h3 { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: var(--space-1); }
.usecase p { color: var(--steel); font-size: 0.95rem; }
.usecase .mech {
  margin-top: var(--space-2);
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--blue-azure);
}

/* ── Reliability ledger ─────────────────────────────────────── */
.ledger { margin-top: var(--space-6); }
.ledger-row {
  display: grid; grid-template-columns: 5fr 7fr;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-top: var(--hairline);
}
.ledger-row dt {
  font-family: var(--font-display); font-weight: 600;
  position: relative; padding-left: 20px;
}
.ledger-row dt::before {
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--emerald); opacity: 0.85;
}
.ledger-row dd { color: var(--steel); }
@media (max-width: 700px) { .ledger-row { grid-template-columns: 1fr; gap: var(--space-1); } }

/* ── Story ──────────────────────────────────────────────────── */
.story p { color: var(--steel); font-size: var(--text-sub); line-height: 1.6; margin-top: var(--space-4); max-width: 62ch; }
.story-quote {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  border-left: 2px solid var(--blue-electric);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.4;
}
.story-quote strong { color: var(--blue-azure); font-weight: 600; }

/* ── Resources ──────────────────────────────────────────────── */
.resource-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: var(--space-3); margin-top: var(--space-6);
}
.resource {
  display: block;
  background: var(--graphite); border: var(--hairline); border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
  color: var(--white-cool);
  transition: border-color 0.2s ease;
}
.resource:hover { border-color: rgba(79, 168, 255, 0.5); }
.resource-type { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; }
.resource p { color: var(--steel); font-size: 0.95rem; margin-top: var(--space-1); }

/* ── Pricing ────────────────────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: var(--space-3); margin-top: var(--space-6);
}
.price-card {
  background: var(--graphite); border: var(--hairline); border-radius: var(--radius);
  padding: var(--space-4);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.price-card-featured { border-color: rgba(47, 128, 255, 0.6); }
.price-tier { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; }
.price-amount { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; line-height: 1; }
.price-amount small { font-size: 0.9rem; font-weight: 400; color: var(--steel); }
.price-list { display: grid; gap: 8px; margin-block: var(--space-2); flex-grow: 1; }
.price-list li { color: var(--steel); font-size: 0.95rem; padding-left: 18px; position: relative; }
.price-list li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 8px; height: 2px; background: var(--emerald);
}
.pricing-note { margin-top: var(--space-4); color: var(--steel); font-size: 0.9rem; max-width: 70ch; }

/* ── Credibility ────────────────────────────────────────────── */
.surface-list { margin-top: var(--space-4); display: grid; gap: var(--space-2); }
.surface-list li { color: var(--steel); padding-left: 20px; position: relative; }
.surface-list li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 8px; height: 2px; background: var(--blue-electric);
}
.surface-list strong { color: var(--white-cool); }
.code-panel {
  background: var(--graphite); border: var(--hairline); border-radius: var(--radius);
  overflow: hidden;
}
.code-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  border-bottom: var(--hairline);
  font-size: var(--text-label); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--steel);
}
.code-panel-head em { font-style: normal; text-transform: none; letter-spacing: 0; }
.btn-copy {
  font-size: 0.8rem; color: var(--blue-azure);
  border: 1px solid rgba(79, 168, 255, 0.4); border-radius: 6px;
  padding: 4px 12px; text-transform: none; letter-spacing: 0;
}
.btn-copy:hover { border-color: var(--blue-azure); }
.code-panel pre {
  padding: var(--space-3); overflow-x: auto;
  font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.6;
  color: var(--white-cool);
}

/* ── Final CTA ──────────────────────────────────────────────── */
.final-cta { position: relative; overflow: hidden; }
.final-media { position: absolute; inset: 0; }
.final-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(5, 11, 24, 0.58), rgba(5, 11, 24, 0.9));
}
.final-content { position: relative; z-index: 2; }
.final-heading { max-width: 16ch; }

.enquiry {
  margin-top: var(--space-8);
  background: rgba(9, 20, 38, 0.85);
  border: var(--hairline); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 48px);
  max-width: 880px;
}
.enquiry h3 { font-family: var(--font-display); font-size: var(--text-sub); margin-bottom: var(--space-4); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-bottom: var(--space-4); }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend {
  font-size: 0.85rem; font-weight: 500; color: var(--steel);
}
.field input, .field select, .field textarea {
  background: var(--navy-deep); color: var(--white-cool);
  /* stronger than --hairline: field boundaries need ~3:1 to be findable (1.4.11) */
  border: 1px solid rgba(135, 148, 168, 0.65); border-radius: 8px;
  padding: 12px 14px; font: inherit; min-height: 48px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--blue-azure); outline-offset: 1px;
}
.field input[aria-invalid="true"] { border-color: #E0526B; }
.field-error { font-size: 0.8rem; color: #F08CA0; min-height: 1em; }
fieldset.field { border: none; }
.check-row { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); padding-top: 6px; }
.check-row label {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--white-cool); font-size: 0.95rem; font-weight: 400;
  min-height: 32px; cursor: pointer;
}
.check-row input { accent-color: var(--blue-electric); width: 18px; height: 18px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: var(--space-2); color: var(--emerald); }
.form-status.is-error { color: #F08CA0; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  border-top: var(--hairline);
  padding-block: var(--space-7) var(--space-4);
}
.footer-brand { margin-bottom: var(--space-6); }
.footer-brand p { color: var(--steel); margin-top: var(--space-2); font-size: 0.95rem; }
.footer-nav {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-4);
  padding-bottom: var(--space-6);
  border-bottom: var(--hairline);
}
.footer-head {
  font-size: var(--text-label); text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--white-cool); margin-bottom: var(--space-2); font-weight: 600;
}
.footer-group li { margin-bottom: 10px; }
.footer-group a { color: var(--steel); font-size: 0.92rem; }
.footer-group a:hover { color: var(--white-cool); }
.footer-legal { margin-top: var(--space-3); color: var(--steel); font-size: 0.85rem; }

/* ── Lightbox ───────────────────────────────────────────────── */
.lightbox {
  border: none; border-radius: var(--radius);
  background: var(--navy-mid); padding: var(--space-2);
  max-width: min(1200px, 92vw);
}
.lightbox::backdrop { background: rgba(5, 11, 24, 0.85); }
.lightbox img { border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 6px; right: 10px; z-index: 2;
  font-size: 1.6rem; color: var(--white-cool);
  width: 40px; height: 40px;
}

/* ── Reveal animation states (JS-managed; content visible by default) ── */
.js .reveal-init { opacity: 0; transform: translateY(24px); }
.js .reveal-in {
  opacity: 1; transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal-init { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
