/* ==========================================================================
   ARC INTELLIGENCE: DESIGN SYSTEM
   Enterprise defense infrastructure for the agentic era.
   Palette, type, grid and components derived from the Arc brand guideline.
   --------------------------------------------------------------------------
   00  Tokens
   01  Reset & base
   02  Typography
   03  Layout / rails / sections
   04  Surfaces, panels, hairlines
   05  Buttons & links
   06  Navigation
   07  Hero + architecture diagram
   08  Telemetry, status, metadata
   09  Content blocks (risk, pillars, matrix, pipeline, industries)
   10  Forms & assessment
   11  Footer
   12  Motion & reveals
   13  Responsive
   ========================================================================== */

/* ---------------------------------------------------------- 00  TOKENS -- */
:root {
  /* Brand core */
  --void:        #050505;
  --black:       #000000;
  --graphite:    #0e0e0e;
  --graphite-2:  #141414;
  --graphite-3:  #1c1c1c;
  --silver:      #a5a5a5;
  --grey:        #6f6f6f;
  --grey-dim:    #4a4a4a;
  --white:       #f5f5f5;
  --pure:        #ffffff;
  --status:      #6ee7a0;
  --status-dim:  rgba(110, 231, 160, .12);
  --alert:       #d8b46a;

  /* Hairlines: the primary structural device */
  --line:        rgba(255, 255, 255, .07);
  --line-2:      rgba(255, 255, 255, .12);
  --line-3:      rgba(255, 255, 255, .2);

  /* Type */
  --f-display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-sans:    "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Spacing scale: intentional, 4px based */
  --s-1:  4px;
  --s-2:  8px;
  --s-3:  12px;
  --s-4:  16px;
  --s-5:  24px;
  --s-6:  32px;
  --s-7:  48px;
  --s-8:  64px;
  --s-9:  96px;
  --s-10: 128px;

  /* Structure */
  --wrap:   1360px;
  --gutter: 32px;
  --r:      2px;              /* modest radii only */
  --r-lg:   3px;

  /* Depth: base -> elevated -> floating */
  --shadow-1: 0 1px 0 rgba(255,255,255,.03) inset;
  --shadow-2: 0 24px 48px -32px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.04) inset;
  --shadow-3: 0 40px 80px -40px rgba(0,0,0,1), 0 0 0 1px rgba(255,255,255,.06);

  --ease:      cubic-bezier(.22, .61, .36, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --dur:       .5s;
}

/* ------------------------------------------------- 01  RESET & BASE ----- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--void);
  color: var(--white);
  font-family: var(--f-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body::before {           /* engineered grid field */
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 78%);
}

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

img, svg { max-width: 100%; display: block; }
svg { height: auto; }

::selection { background: rgba(110,231,160,.22); color: var(--pure); }

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--white);
  color: var(--black);
  padding: 10px 16px;
  font: 500 12px/1 var(--f-mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.skip:focus { left: 16px; top: 16px; }

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

/* ------------------------------------------------- 02  TYPOGRAPHY ------- */
h1, h2, h3, h4, h5 {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -.032em;
  line-height: 1.04;
  margin: 0;
  color: var(--white);
  text-wrap: balance;
}

.d1 { font-size: clamp(40px, 5.5vw, 76px); line-height: 1; letter-spacing: -.038em; }
.d2 { font-size: clamp(30px, 3.8vw, 52px); line-height: 1.04; letter-spacing: -.034em; }
.d3 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; letter-spacing: -.03em; }
.d4 { font-size: clamp(20px, 2vw, 26px); line-height: 1.2;  letter-spacing: -.024em; }
.d5 { font-size: 17px; line-height: 1.35; letter-spacing: -.018em; font-weight: 600; }

p { margin: 0; }

.lede {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.65;
  color: var(--silver);
  max-width: 62ch;
  font-weight: 400;
}

.body { color: var(--silver); max-width: 68ch; }
.body + .body { margin-top: var(--s-5); }

.dim   { color: var(--grey); }
.bright{ color: var(--white); }

.statement {
  font-family: var(--f-display);
  font-size: clamp(20px, 2.3vw, 30px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -.028em;
  color: var(--white);
  max-width: 30ch;
}

/* Mono technical metadata: a core part of the design language */
.meta,
.eyebrow {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey);
  line-height: 1.4;
}
.eyebrow { color: var(--silver); }
.meta--bright { color: var(--silver); }
.meta--status { color: var(--status); }

.idx {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--grey-dim);
}

a { color: inherit; text-decoration: none; }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--silver);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-2);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.tlink svg { transition: transform .4s var(--ease-out); }
.tlink:hover { color: var(--white); border-color: var(--line-3); }
.tlink:hover svg { transform: translateX(4px); }

/* ------------------------------------------ 03  LAYOUT / RAILS ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

/* Fixed architectural rails framing the whole canvas */
.rails {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
}
.rails > div {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: var(--gutter);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

main { position: relative; z-index: 1; }

.section {
  padding-block: clamp(72px, 9vw, 132px);
  position: relative;
  border-top: 1px solid var(--line);
}
.section--flush { border-top: 0; }
.section--tight { padding-block: clamp(56px, 6vw, 84px); }
.section--black { background: linear-gradient(180deg, #000 0%, var(--void) 100%); }

/* Section header: index + eyebrow + rule */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-5);
  margin-bottom: clamp(40px, 5vw, 72px);
}
.sec-head__top {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.sec-head__top::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-2), transparent);
}
.sec-head__lede { max-width: 64ch; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }

/* Hairline-joined grids sit on a line-coloured bed */
.grid-bed {
  background: var(--line);
  border: 1px solid var(--line);
}
.grid-bed > * { background: var(--void); }

.split {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: start;
}
/* Equal columns stretch so paired panels and hairline beds stay flush,
   a short column would otherwise expose the bed colour beneath it. */
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }

.stack-4 > * + * { margin-top: var(--s-4); }
.stack-5 > * + * { margin-top: var(--s-5); }
.stack-6 > * + * { margin-top: var(--s-6); }
.stack-7 > * + * { margin-top: var(--s-7); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --------------------------------------- 04  SURFACES & PANELS ---------- */
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,0));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(24px, 2.6vw, 36px);
  transition: border-color .4s var(--ease), background-color .4s var(--ease), transform .4s var(--ease-out);
}
.panel--flat { background: none; }
.panel--raised { background: var(--graphite); box-shadow: var(--shadow-2); }

/* Corner brackets: signature detail */
.brackets::before,
.brackets::after {
  content: "";
  position: absolute;
  width: 10px; height: 10px;
  pointer-events: none;
  opacity: .75;
  transition: opacity .4s var(--ease);
}
.brackets::before {
  top: -1px; left: -1px;
  border-top: 1px solid var(--line-3);
  border-left: 1px solid var(--line-3);
}
.brackets::after {
  bottom: -1px; right: -1px;
  border-bottom: 1px solid var(--line-3);
  border-right: 1px solid var(--line-3);
}

a.panel:hover,
.panel--hover:hover {
  border-color: var(--line-2);
  background-color: rgba(255,255,255,.014);
}
a.panel:hover .brackets::before,
.panel--hover:hover .brackets::before,
a.panel:hover.brackets::before,
.panel--hover:hover.brackets::before { opacity: 1; }

/* Cell: grid child with padding, used inside .grid-bed */
.cell {
  padding: clamp(24px, 2.4vw, 34px);
  position: relative;
  transition: background-color .4s var(--ease);
}
.cell:hover { background: rgba(255,255,255,.015); }
.cell__idx {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--grey-dim);
  display: block;
  margin-bottom: var(--s-5);
}
.cell h3 { margin-bottom: var(--s-3); }
.cell p { color: var(--silver); font-size: 14.5px; line-height: 1.62; }

/* Bullet list, technical */
.tlist { list-style: none; margin: 0; padding: 0; }
.tlist li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--silver);
  padding-block: 7px;
  border-bottom: 1px solid var(--line);
}
.tlist li:last-child { border-bottom: 0; }
.tlist li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 6px; height: 1px;
  background: var(--grey);
}
.tlist--mono li { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; }

/* --------------------------------------------- 05  BUTTONS -------------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-bd: var(--line-2);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r);
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .35s var(--ease-out), background-color .35s var(--ease),
              border-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
}
.btn svg { flex: none; transition: transform .4s var(--ease-out); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  --btn-bg: var(--white);
  --btn-fg: var(--black);
  --btn-bd: var(--white);
  font-weight: 600;
}
.btn--primary:hover {
  --btn-bg: var(--pure);
  box-shadow: 0 12px 30px -18px rgba(245,245,245,.5);
}

.btn--ghost:hover {
  --btn-bd: var(--line-3);
  background: rgba(255,255,255,.04);
}

.btn[hidden] { display: none; }
.btn:disabled { opacity: .55; cursor: default; }
.btn--lg { padding: 17px 28px; font-size: 12px; }
.btn--sm { padding: 10px 15px; font-size: 10.5px; letter-spacing: .12em; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}

/* --------------------------------------------- 06  NAVIGATION ----------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .45s var(--ease), border-color .45s var(--ease),
              backdrop-filter .45s var(--ease);
}
.nav.scrolled,
.nav--solid {
  background: rgba(5,5,5,.78);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  height: 72px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__mark { width: 24px; height: 26px; overflow: visible; }
.brand__mark path,
.brand__mark line { stroke: var(--white); }
.brand__word {
  font-family: var(--f-display);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--white);
  white-space: nowrap;
}
.brand:hover .brand__mark { opacity: .78; }
.brand__mark { transition: opacity .4s var(--ease); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav__link {
  position: relative;
  padding: 9px 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--silver);
  transition: color .3s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--white); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); background: var(--line-3); }

.nav__side {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-left: var(--s-5);
  padding-left: var(--s-5);
  border-left: 1px solid var(--line);
}

.nav__toggle {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 11px;
  width: 16px; height: 1px;
  background: var(--white);
  transition: transform .35s var(--ease-out), opacity .2s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 20px; }
.nav__toggle span:nth-child(3) { top: 25px; }
.nav__toggle.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ------------------------------------- 08 (shared) STATUS / TELEMETRY --- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--silver);
  white-space: nowrap;
}
.status b { color: var(--status); font-weight: 400; }

.dot {
  position: relative;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--status);
  flex: none;
}
.dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--status);
  opacity: 0;
  animation: ping 2.6s var(--ease-out) infinite;
}
@keyframes ping {
  0%   { transform: scale(.6); opacity: .9; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
.dot--alert { background: var(--alert); }
.dot--alert::after { border-color: var(--alert); }
.dot--idle  { background: var(--grey); }
.dot--idle::after { display: none; }

/* Operational strip */
.strip {
  border-block: 1px solid var(--line);
  background: rgba(0,0,0,.4);
}
.strip__inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
}
.strip__cell {
  background: var(--void);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.strip__k {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey-dim);
}
.strip__v {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Metadata bar used above/below blocks */
.metabar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-5);
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metabar > * { font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--grey); }

/* ------------------------------------------------- 07  HERO ------------- */
.hero {
  position: relative;
  padding-top: clamp(120px, 15vh, 172px);
  padding-bottom: clamp(48px, 6vw, 76px);
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -30%; left: 50%;
  width: 120vw; height: 90vh;
  transform: translateX(-50%);
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 42% at 50% 38%, rgba(255,255,255,.055), transparent 70%),
    radial-gradient(ellipse 30% 30% at 72% 55%, rgba(110,231,160,.035), transparent 72%);
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 232px;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.hero__aside {
  border-left: 1px solid var(--line);
  padding-left: var(--s-5);
  margin-top: 6px;
}
.hero__aside dl { margin: 0; display: grid; gap: 0; }
.hero__aside div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  padding-block: 11px;
  border-bottom: 1px solid var(--line);
}
.hero__aside dt,
.hero__aside dd {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero__aside dt { color: var(--grey-dim); }
.hero__aside dd { color: var(--silver); text-align: right; }
.hero__aside dd.on { color: var(--status); }
.hero__eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: var(--s-6); }
.hero__eyebrow::after { content: ""; width: 64px; height: 1px; background: var(--line-2); }
.hero h1 { max-width: 17ch; }
.hero__sub { margin-top: var(--s-6); max-width: 58ch; }
.hero__actions { margin-top: var(--s-7); }
.hero__note {
  margin-top: var(--s-5);
  font-size: 13px;
  color: var(--grey);
  max-width: 52ch;
  line-height: 1.6;
}

/* Interior page hero */
.page-hero {
  position: relative;
  padding-top: clamp(116px, 14vh, 156px);
  padding-bottom: clamp(48px, 6vw, 76px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero__inner { position: relative; }
.page-hero h1 { max-width: 20ch; }
.page-hero .lede { margin-top: var(--s-6); }
.crumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s-6);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey-dim);
}
.crumb a { color: var(--grey); transition: color .3s var(--ease); }
.crumb a:hover { color: var(--white); }
.crumb b { color: var(--silver); font-weight: 400; }

/* Diagram frame: reused for every architecture visual */
.dframe {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0) 60%),
    #070707;
  overflow: hidden;
}
.dframe__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0,0,0,.5);
}
.dframe__body { position: relative; }
.dframe__scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
.dframe__scroll > svg { min-width: 720px; }
.dframe__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-5);
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  background: rgba(0,0,0,.35);
}

/* Slow scanning sweep over diagrams */
.dframe__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.dframe__scan::before {
  content: "";
  position: absolute;
  top: -20%; left: 0;
  width: 100%; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.028), transparent);
  animation: sweep 9s linear infinite;
}
@keyframes sweep {
  0%   { transform: translateY(-60%); }
  100% { transform: translateY(360%); }
}

/* SVG diagram primitives */
.dg-node      { fill: #101010; stroke: rgba(255,255,255,.13); }
.dg-node-alt  { fill: #161616; stroke: rgba(255,255,255,.18); }
.dg-zone      { fill: rgba(255,255,255,.012); stroke: rgba(255,255,255,.16); stroke-dasharray: 3 4; }
.dg-arc       { fill: rgba(110,231,160,.022); stroke: rgba(110,231,160,.34); }
.dg-line      { fill: none; stroke: rgba(255,255,255,.13); stroke-width: 1; }
.dg-flow      { fill: none; stroke: rgba(255,255,255,.34); stroke-width: 1; stroke-dasharray: 2 7; animation: flow 3.6s linear infinite; }
.dg-flow--g   { stroke: rgba(110,231,160,.55); }
@keyframes flow { to { stroke-dashoffset: -36; } }
.dg-t         { font-family: "Inter", sans-serif; font-size: 11px; fill: #cfcfcf; letter-spacing: .02em; }
.dg-t-sm      { font-family: "IBM Plex Mono", monospace; font-size: 8.2px; fill: #6f6f6f; letter-spacing: .14em; }
.dg-t-lg      { font-family: "Archivo", sans-serif; font-size: 13px; font-weight: 600; fill: #f5f5f5; letter-spacing: -.01em; }
.dg-t-g       { fill: var(--status); }
.dg-pulse     { animation: nodepulse 3.2s ease-in-out infinite; }
@keyframes nodepulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

.dg-hit { cursor: pointer; }
.dg-hit rect, .dg-hit circle { transition: fill .35s var(--ease), stroke .35s var(--ease); }
.dg-hit:hover rect.dg-node { fill: #191919; stroke: rgba(255,255,255,.34); }
.dg-hit:hover text { fill: var(--pure); }

/* Diagram legend / hover readout */
.dread {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  min-height: 20px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--grey);
}
.dread b { color: var(--status); font-weight: 400; letter-spacing: .16em; text-transform: uppercase; }
.dread span { text-transform: none; letter-spacing: .02em; color: var(--silver); font-family: var(--f-sans); font-size: 12px; }

/* ---------------------------------- 09  CONTENT BLOCKS ------------------ */
/* Flow comparison: workforce -> arc -> systems */
.flow3 {
  display: grid;
  grid-template-columns: 1fr auto 1.05fr auto 1fr;
  align-items: stretch;
  gap: 0;
}
.flow3__col {
  border: 1px solid var(--line);
  padding: clamp(20px, 2vw, 28px);
  background: rgba(255,255,255,.008);
}
.flow3__col--arc {
  border-color: rgba(110,231,160,.28);
  background:
    linear-gradient(180deg, rgba(110,231,160,.045), rgba(110,231,160,0) 65%),
    #080808;
  box-shadow: var(--shadow-2);
}
.flow3__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(28px, 4vw, 64px);
  color: var(--grey-dim);
}
.flow3__arrow svg { width: 100%; }
.flow3__h {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.flow3__col--arc .flow3__h { color: var(--status); border-color: rgba(110,231,160,.2); }

/* Pillars */
.pillar { display: grid; grid-template-columns: 88px minmax(0,1fr) minmax(0,.85fr); gap: clamp(20px, 3vw, 48px); align-items: start; padding-block: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar__no { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; color: var(--grey-dim); padding-top: 6px; }
.pillar__title { margin-bottom: var(--s-4); }
.pillar:hover .pillar__no { color: var(--status); }
.pillar__no { transition: color .4s var(--ease); }

/* Responsibility matrix */
.matrix { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.matrix__col { background: var(--void); padding: clamp(24px, 2.6vw, 38px); }
.matrix__col--arc { background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,0) 70%); }
.matrix__h { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding-bottom: var(--s-4); margin-bottom: var(--s-5); border-bottom: 1px solid var(--line-2); }

/* Incident pipeline */
.pipe { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.pipe__step { background: var(--void); padding: clamp(20px, 2.2vw, 30px); position: relative; transition: background-color .45s var(--ease); }
.pipe__step.active { background: rgba(110,231,160,.05); }
.pipe__step.active .pipe__no { color: var(--status); }
.pipe__step.active .pipe__bar::after { transform: scaleX(1); }
.pipe__no { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; color: var(--grey-dim); transition: color .4s var(--ease); }
.pipe__bar { position: relative; height: 1px; background: var(--line-2); margin: 16px 0 18px; }
.pipe__bar::after { content: ""; position: absolute; inset: 0; background: var(--status); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease-out); }
.pipe__step h3 { font-size: 15px; letter-spacing: -.02em; margin-bottom: 10px; }
.pipe__step p { font-size: 13.5px; color: var(--silver); line-height: 1.55; }

/* Two-panel architecture (runtime vs AOC) */
.interlock { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 0; }
.interlock__panel { border: 1px solid var(--line); padding: clamp(24px, 2.8vw, 40px); background: rgba(255,255,255,.008); }
.interlock__mid {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 0 clamp(12px, 2vw, 28px);
  border-block: 1px solid var(--line);
  background: #070707;
}
.interlock__mid span {
  writing-mode: vertical-rl;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--status);
}
.interlock__mid i { display: block; width: 1px; flex: 1; background: linear-gradient(180deg, transparent, var(--line-2), transparent); }

/* Telemetry log */
.logfeed {
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.9;
  letter-spacing: .02em;
  padding: 16px;
  height: 320px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #060606;
}
.logfeed__row {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 14px;
  color: var(--grey);
  border-bottom: 1px solid rgba(255,255,255,.035);
  padding-block: 3px;
  animation: logIn .5s var(--ease-out) both;
}
.logfeed__row b { color: var(--silver); font-weight: 400; letter-spacing: .06em; }
.logfeed__row i { font-style: normal; color: var(--status); letter-spacing: .1em; }
.logfeed__row.is-alert i { color: var(--alert); }
.logfeed__row.is-alert b { color: var(--white); }
@keyframes logIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Regions / map */
.mapwrap { position: relative; background: #060606; }
.mapwrap svg { width: 100%; }
.map-dot { fill: var(--status); opacity: .9; }
.map-ring { fill: none; stroke: var(--status); stroke-width: .8; transform-origin: center; animation: mapping 3.4s var(--ease-out) infinite; }
@keyframes mapping { 0% { r: 3; opacity: .7; } 100% { r: 15; opacity: 0; } }
.map-grid { fill: #131313; }

/* Ecosystem */
.eco { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.eco__item {
  background: var(--void);
  padding: 28px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--silver);
  text-align: center;
  transition: color .4s var(--ease), background-color .4s var(--ease);
}
.eco__item:hover { color: var(--white); background: rgba(255,255,255,.02); }

/* Principles */
.principle { padding-block: var(--s-6); border-top: 1px solid var(--line); display: grid; grid-template-columns: 96px 1fr; gap: var(--s-5); }

/* Featured industry */
.ind-tabs { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.ind-tab {
  flex: 1 1 auto;
  background: var(--void);
  border: 0;
  color: var(--grey);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 15px 18px;
  cursor: pointer;
  transition: color .35s var(--ease), background-color .35s var(--ease);
}
.ind-tab:hover { color: var(--silver); }
.ind-tab.active { color: var(--white); background: rgba(255,255,255,.045); }
.ind-panel { display: none; }
.ind-panel.active { display: block; animation: fadeUp .5s var(--ease-out) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Final CTA */
.finale { text-align: center; padding-block: clamp(88px, 12vw, 168px); background: var(--black); border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.finale::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(255,255,255,.05), transparent 70%);
}
.finale h2 { max-width: 16ch; margin-inline: auto; }
.finale .lede { margin-inline: auto; text-align: center; }
.finale .btn-row { justify-content: center; }
.finale__sig {
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: var(--s-6);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.finale__sig b {
  font-family: var(--f-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
}
.finale__sig span { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--grey); }

/* Disclaimer */
.disclaimer { border: 1px solid var(--line); padding: clamp(20px, 2.4vw, 30px); background: rgba(255,255,255,.008); }
.disclaimer p { font-size: 13px; color: var(--grey); line-height: 1.65; max-width: 92ch; }

/* --------------------------------------------- 10  FORMS ---------------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field + .field { margin-top: var(--s-4); }
.field label,
.fieldset__legend {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: #0a0a0a;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  color: var(--white);
  font-family: var(--f-sans);
  font-size: 14.5px;
  padding: 13px 14px;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.field textarea { min-height: 108px; resize: vertical; line-height: 1.6; }
.field input::placeholder, .field textarea::placeholder { color: #4d4d4d; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-3); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(110,231,160,.6);
  background: #0c0c0c;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%236f6f6f' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.field select option { background: #0a0a0a; }
.field--2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
.field--2 .field + .field { margin-top: 0; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* Selectable option chips */
/* Bed is void (not line-coloured) so a partly-filled last row stays dark;
   each option draws its own hairline via outline, which sits in the 1px gap. */
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; background: var(--void); border: 1px solid var(--line); }
.opt {
  position: relative;
  background: var(--void);
  outline: 1px solid var(--line);
  padding: 15px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--silver);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__box {
  flex: none;
  width: 14px; height: 14px;
  border: 1px solid var(--line-3);
  border-radius: 1px;
  position: relative;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.opt__box::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--status);
  opacity: 0;
  transform: scale(.4);
  transition: opacity .25s var(--ease), transform .25s var(--ease-out);
}
.opt:hover { background: rgba(255,255,255,.02); color: var(--white); }
.opt input:checked ~ .opt__box { border-color: var(--status); }
.opt input:checked ~ .opt__box::after { opacity: 1; transform: none; }
.opt:has(input:checked) { color: var(--white); background: rgba(110,231,160,.045); }
.opt input:focus-visible ~ .opt__box { outline: 1px solid var(--status); outline-offset: 2px; }
.opts--radio .opt__box { border-radius: 50%; }
.opts--radio .opt__box::after { border-radius: 50%; }

/* Multi-step assessment */
.assess { border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0) 40%), #070707; box-shadow: var(--shadow-3); }
.assess__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: 14px 18px; border-bottom: 1px solid var(--line); }
.assess__track { display: flex; gap: 4px; }
.assess__track i { display: block; width: 26px; height: 2px; background: var(--line-2); transition: background-color .5s var(--ease); }
.assess__track i.done { background: var(--status); }
.assess__body { padding: clamp(24px, 3vw, 42px); }
.assess__step { display: none; }
.assess__step.active { display: block; animation: fadeUp .45s var(--ease-out) both; }
.assess__q { margin-bottom: var(--s-6); }
.assess__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: 16px 18px; border-top: 1px solid var(--line); background: rgba(0,0,0,.4); }
.assess__note { font-size: 12.5px; color: var(--grey); }

.confirm { display: none; padding: clamp(32px, 5vw, 64px); text-align: center; }
.confirm.show { display: block; animation: fadeUp .5s var(--ease-out) both; }
.confirm__ic {
  width: 46px; height: 46px;
  margin: 0 auto var(--s-5);
  border: 1px solid rgba(110,231,160,.5);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--status);
}

/* --------------------------------------------- 11  FOOTER --------------- */
.footer { border-top: 1px solid var(--line); background: var(--black); position: relative; z-index: 1; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(5, minmax(0, 1fr)); gap: var(--s-6); padding-block: clamp(48px, 6vw, 80px); }
.footer__brand { max-width: 30ch; }
.footer__brand p { margin-top: var(--s-5); font-size: 13.5px; color: var(--grey); line-height: 1.65; }
.footer__contact { display: flex; align-items: center; gap: var(--s-4); }
.footer__contact .meta { transition: color .3s var(--ease); }
.footer__contact .meta:hover { color: var(--white); }
.footer__social {
  display: inline-flex;
  color: var(--grey);
  transition: color .3s var(--ease);
}
.footer__social:hover { color: var(--white); }
.footer__col h4 {
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey-dim);
  margin-bottom: var(--s-4);
}
.footer__col a {
  display: block;
  font-size: 13.5px;
  color: var(--silver);
  padding-block: 5px;
  transition: color .3s var(--ease), transform .3s var(--ease-out);
}
.footer__col a:hover { color: var(--white); transform: translateX(2px); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: var(--s-5);
  border-top: 1px solid var(--line);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.footer__bottom, .footer__legal a, .footer__bottom span {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
}
.footer__legal a:hover { color: var(--white); }

/* ------------------------------------------- 12  MOTION & REVEALS ------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: var(--d, 0s);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .dframe__scan::before { display: none; }
}

/* --------------------------------------------- 13  RESPONSIVE ----------- */
/* The nav CTA is the widest fixed element, shed the status pill, then
   tighten link padding, before the mobile drawer takes over at 1024. */
@media (max-width: 1320px) {
  .nav__side .status { display: none; }
  .nav__side { margin-left: var(--s-4); padding-left: var(--s-4); }
}
@media (max-width: 1200px) {
  .nav__link { padding-inline: 9px; letter-spacing: .1em; }
  .nav__link::after { left: 9px; right: 9px; }
  .nav__inner { gap: var(--s-4); }
}

@media (max-width: 1180px) {
  .footer__top { grid-template-columns: repeat(3, 1fr); row-gap: var(--s-7); }
  .footer__brand { grid-column: 1 / -1; max-width: 46ch; }
}

@media (max-width: 1024px) {
  :root { --gutter: 24px; }
  .nav__links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: var(--s-4) var(--gutter) var(--s-6);
    background: rgba(5,5,5,.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), transform .35s var(--ease-out), visibility .3s;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
  }
  .nav__links.open { opacity: 1; transform: none; visibility: visible; }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
  .nav__link::after { display: none; }
  .nav__side { margin: var(--s-5) 0 0; padding: 0; border-left: 0; flex-direction: column; align-items: stretch; gap: var(--s-4); }
  .nav__side .status { display: inline-flex; }
  .nav__side .btn { width: 100%; }
  .nav__toggle { display: block; }
  .rails > div { border-color: rgba(255,255,255,.05); }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__aside { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: var(--s-4); max-width: 420px; }
  .split, .split--even { grid-template-columns: 1fr; gap: var(--s-7); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .strip__inner { grid-template-columns: repeat(2, 1fr); }
  .pipe { grid-template-columns: 1fr; }
  .interlock { grid-template-columns: 1fr; }
  .interlock__mid { flex-direction: row; padding: 14px; border-inline: 1px solid var(--line); }
  .interlock__mid span { writing-mode: horizontal-tb; }
  .interlock__mid i { height: 1px; width: auto; flex: 1; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
  .flow3 { grid-template-columns: 1fr; }
  .flow3__arrow { width: 100%; height: 44px; }
  .flow3__arrow svg { width: 24px; transform: rotate(90deg); }
  .eco { grid-template-columns: repeat(2, 1fr); }
  .pillar { grid-template-columns: 1fr; gap: var(--s-4); }
  .pillar__no { padding-top: 0; }
}

@media (max-width: 720px) {
  :root { --gutter: 18px; }
  body { font-size: 15.5px; }
  .grid-2, .grid-3, .grid-4, .matrix { grid-template-columns: 1fr; }
  .field--2 { grid-template-columns: 1fr; }
  .field--2 .field + .field { margin-top: var(--s-4); }
  .strip__inner { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: repeat(2, 1fr); }
  .btn-row .btn { width: 100%; }
  .hero__eyebrow::after { display: none; }
  .dframe__scroll > svg { min-width: 640px; }
  .logfeed { font-size: 10.5px; height: 260px; }
  .logfeed__row { grid-template-columns: 60px 1fr; }
  .logfeed__row i { grid-column: 2; }
  .principle { grid-template-columns: 1fr; gap: var(--s-3); }
  .brand__word { font-size: 12px; letter-spacing: .14em; }
  .assess__foot { flex-wrap: wrap; gap: var(--s-3); }
  .assess__foot .btn { flex: 1 1 auto; }
  .assess__note { order: 3; flex: 1 0 100%; text-align: center; }
  .sec-head__top { align-items: flex-start; }
  .opts { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .eco { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
}

/* ==========================================================================
   14  HOMEPAGE: CONVERSION REBUILD
   Eight sections. Nothing important behind hover. Every diagram reflows
   instead of scrolling sideways on mobile.
   ========================================================================== */

/* ------------------------------------------------ 14.1  ABOVE THE FOLD -- */
.hero--v2 { padding-bottom: clamp(56px, 7vw, 96px); }
.hero--v2 .hero__h1 { max-width: 20ch; }
.hero--v2 .hero__sub { max-width: 60ch; }

.hero__cta {
  margin-top: clamp(32px, 4vw, 52px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-5) var(--s-6);
}
.hero__cta .hero__note { margin-top: 0; max-width: 34ch; }
/* Own row, but the link itself stays only as wide as its text. */
.hero__altrow { flex-basis: 100%; }

.hero__figure { margin-top: clamp(44px, 5.5vw, 76px); position: relative; }

/* Hero flow map: HTML, not SVG, so it stacks cleanly at every width. */
.flowmap { padding: clamp(20px, 2.6vw, 34px); }

.flowmap__row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 60px minmax(0,1.25fr) 60px minmax(0,1fr);
  align-items: stretch;
  gap: 0;
}

.flowmap__node,
.flowmap__gate,
.flowmap__held {
  border: 1px solid var(--line-2);
  background: #101010;
  padding: clamp(16px, 1.8vw, 22px);
}
.flowmap__gate {
  border-color: rgba(110, 231, 160, .34);
  background:
    linear-gradient(180deg, rgba(110,231,160,.045), rgba(110,231,160,0) 70%),
    #0c0c0c;
  box-shadow: var(--shadow-2);
}

.flowmap__k {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--silver);
}
.flowmap__k--arc   { color: var(--status); }
.flowmap__k--alert { color: var(--alert); }

.flowmap__node ul { list-style: none; margin: var(--s-4) 0 0; padding: 0; }
.flowmap__node li {
  font-size: 14px;
  color: var(--white);
  line-height: 1.5;
  padding-block: 7px;
  border-bottom: 1px solid var(--line);
}
.flowmap__node li:last-child { border-bottom: 0; padding-bottom: 0; }

.flowmap__gatesub {
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey);
}
.flowmap__checks {
  margin-top: var(--s-4);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.flowmap__checks span {
  background: #121212;
  padding: 11px 12px;
  font-size: 13px;
  color: var(--white);
  letter-spacing: -.01em;
}

/* Connector: hairline plus arrowhead, rotates to vertical on small screens */
.flowmap__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--grey);
  position: relative;
}
.flowmap__link i {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-3), transparent);
}
.flowmap__link svg { width: 22px; position: relative; z-index: 1; background: #070707; padding-inline: 2px; }
.flowmap__link b {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--status);
  position: relative;
  z-index: 1;
  background: #070707;
  padding-inline: 4px;
}
.flowmap__link--ok { color: var(--status); }

/* The held branch: the single frame that carries the whole idea */
.flowmap__branch {
  display: grid;
  grid-template-columns: minmax(0,1fr) 60px minmax(0,1fr);
  gap: 0;
  align-items: stretch;
  padding-top: 56px;
  position: relative;
  margin-left: auto;
  width: min(100%, 760px);
}
.flowmap__drop {
  position: absolute;
  top: 0; left: 84px;
  width: 1px; height: 42px;
  background: linear-gradient(180deg, rgba(216,180,106,.6), rgba(216,180,106,.2));
}
.flowmap__tag {
  position: absolute;
  top: 12px; left: 100px;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--alert);
}
.flowmap__held { border-color: rgba(216,180,106,.3); }
.flowmap__held--human { border-color: rgba(110,231,160,.3); }
.flowmap__held p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--silver);
}

/* --------------------------------------------- 14.2  PROBLEM ------------ */
.statement--wide {
  max-width: 52ch;
  border-left: 1px solid var(--line-2);
  padding-left: clamp(20px, 2.4vw, 32px);
}

/* ----------------------------------------------- 14.3  PROOF WALL ------- */
/* Everything visible at once. Vertical stack on mobile. Never a carousel. */
.proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.proof__tile {
  background: var(--void);
  padding: clamp(26px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-5);
}
.proof__tile .cell__idx { margin-bottom: 0; }
.proof__tile .body { max-width: 46ch; }
.proof__tile--doc {
  background:
    linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,0) 55%),
    var(--void);
}
.proof__tile--doc .btn { margin-top: auto; }
.proof__tile--honest {
  background: linear-gradient(180deg, rgba(216,180,106,.07), rgba(216,180,106,0) 48%), var(--void);
  box-shadow: inset 0 1px 0 rgba(216,180,106,.34);
}
.proof__meta { color: var(--grey-dim); }

/* --------------------------------------------- 14.4  SERVICE ------------ */
.cell--tall { display: flex; flex-direction: column; gap: var(--s-4); }
.cell--tall h3 { margin-bottom: 0; }
.cell--tall .body { font-size: 14.5px; line-height: 1.62; }
.cell--tall .tlist { margin-top: auto; padding-top: var(--s-4); }
.cell--tall .tlist li { font-size: 13.5px; }

/* ----------------------------------------- 14.5  OPERATIONS GRID -------- */
.opsgrid {
  margin-top: var(--s-7);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.opsgrid__feed { background: var(--void); display: flex; flex-direction: column; }
.opsgrid__feed .logfeed { flex: 1; }
.opsgrid__nums { display: grid; grid-template-rows: 1fr 1fr; gap: 1px; background: var(--line); }
.opsgrid__num {
  background: var(--void);
  padding: clamp(22px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s-3);
}
.opsgrid__big { color: var(--white); letter-spacing: -.04em; }
.opsgrid__num .body { font-size: 14px; line-height: 1.6; max-width: 44ch; }

/* -------------------------------------------- 14.6  CLAIMS CHAIN -------- */
.chain {
  display: grid;
  grid-template-columns: minmax(0,1fr) 44px minmax(0,1fr) 44px minmax(0,1.1fr) 44px minmax(0,1fr) 44px minmax(0,1fr);
  align-items: stretch;
  border: 1px solid var(--line);
  background: #070707;
  padding: clamp(18px, 2vw, 26px);
}
.chain__step {
  border: 1px solid var(--line-2);
  background: #101010;
  padding: clamp(14px, 1.6vw, 20px);
}
.chain__step--arc {
  border-color: rgba(110,231,160,.34);
  background: linear-gradient(180deg, rgba(110,231,160,.05), rgba(110,231,160,0) 70%), #0c0c0c;
}
.chain__k {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  color: var(--grey-dim);
}
.chain__k--arc { color: var(--status); }
.chain__t {
  margin-top: 10px;
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--white);
}
.chain__s {
  margin-top: 5px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--grey);
}
.chain__arrow { display: flex; align-items: center; justify-content: center; color: var(--grey-dim); }
.chain__arrow svg { width: 20px; }
.chain__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-top: 0;
  background: rgba(0,0,0,.35);
}
.chain__foot .meta { text-transform: none; letter-spacing: .02em; font-size: 11.5px; }
.chain__foot b {
  color: var(--silver);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 9.5px;
  margin-right: 8px;
}

/* ------------------------------------------- 14.7  ASSESSMENT GRID ------ */
.assessgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.assessgrid__cell {
  background: var(--void);
  padding: clamp(22px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.assessgrid__cell .cell__idx { margin-bottom: 0; }
.assessgrid__cell .body { font-size: 14.5px; line-height: 1.62; max-width: none; }
.assessgrid__cell .tlist li { font-size: 13.5px; }
.assessgrid__cell--wide {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, rgba(110,231,160,.035), rgba(110,231,160,0) 60%), var(--void);
}
.assessgrid__cell--wide .body { max-width: 86ch; }

/* Final CTA folded into section 08 rather than a standalone band */
.finale--inline {
  margin-top: clamp(64px, 8vw, 104px);
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  padding-block: clamp(64px, 8vw, 108px) 0;
}
.finale--inline::before { display: none; }
.finale--inline h2 { max-width: 18ch; }

/* --------------------------------------------- 14.8  RESPONSIVE --------- */
@media (max-width: 1100px) {
  .assessgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chain { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
  .chain__arrow { display: none; }
  .opsgrid { grid-template-columns: 1fr; }
  .opsgrid__nums { grid-template-rows: auto auto; }
}

@media (max-width: 1024px) {
  /* Flow map goes vertical: connectors rotate, nothing scrolls sideways. */
  .flowmap__row,
  .flowmap__branch { grid-template-columns: 1fr; }
  .flowmap__branch { width: 100%; padding-top: var(--s-5); margin-left: 0; }
  .flowmap__drop,
  .flowmap__tag { display: none; }
  .flowmap__link { flex-direction: row; height: 52px; gap: 12px; }
  .flowmap__link i {
    top: 0; bottom: 0; left: 50%; right: auto;
    width: 1px; height: 100%;
    background: linear-gradient(180deg, transparent, var(--line-3), transparent);
  }
  .flowmap__link svg { transform: rotate(90deg); }
  .flowmap__branch::before {
    content: "Outside its limits";
    grid-column: 1 / -1;
    font-family: var(--f-mono);
    font-size: 9px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--alert);
    padding-bottom: var(--s-3);
  }
  .proof { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .assessgrid,
  .chain { grid-template-columns: 1fr; }
  .flowmap__checks { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; gap: var(--s-4); }
  .hero__cta .hero__note { max-width: none; }
  .hero__altrow { align-self: flex-start; }
  .statement--wide { padding-left: var(--s-4); }
  .chain__foot { flex-direction: column; align-items: flex-start; gap: var(--s-3); }
  /* The hero frame label has no room for a subtitle at this width. */
  .hero__figure .dframe__bar .meta { display: none; }
}

/* ==========================================================================
   15  CONTROL QUESTIONS DOCUMENT
   A public artifact. Reads on screen, prints to a clean PDF.
   ========================================================================== */
.qlist { list-style: none; margin: 0; padding: 0; counter-reset: q; }

.qitem {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 48px);
  padding-block: clamp(32px, 4vw, 52px);
  border-top: 1px solid var(--line);
}
.qitem:last-child { border-bottom: 1px solid var(--line); }

.qitem__no {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--grey-dim);
  padding-top: 8px;
  transition: color .4s var(--ease);
}
.qitem:hover .qitem__no { color: var(--status); }

.qitem__body { max-width: 74ch; }
.qitem__body h3 { margin-bottom: var(--s-5); max-width: 30ch; }
.qitem__body .body { max-width: 70ch; }

.qitem__warn {
  margin-top: var(--s-5);
  padding: clamp(16px, 1.8vw, 22px);
  border: 1px solid rgba(216, 180, 106, .28);
  background: linear-gradient(180deg, rgba(216,180,106,.045), rgba(216,180,106,0) 70%), rgba(255,255,255,.008);
  color: var(--silver);
  font-size: 14.5px;
  line-height: 1.65;
}
.qitem__warn b {
  display: block;
  margin-bottom: 8px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--alert);
}

@media (max-width: 720px) {
  .qitem { grid-template-columns: 1fr; gap: var(--s-4); }
  .qitem__no { padding-top: 0; }
  .qitem__body h3 { margin-bottom: var(--s-4); }
}

/* ------------------------------------------------------------- PRINT ---- */
@media print {
  .rails, .nav, .footer, .hero__glow, .skip,
  .btn-row, .section--black .btn-row, [data-print] { display: none !important; }

  html, body { background: #fff !important; color: #111 !important; }
  body::before, body::after { display: none !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }

  .section, .page-hero { padding-block: 18pt !important; border: 0 !important; }
  .section--black { background: #fff !important; }
  .wrap { max-width: none; padding-inline: 0; }

  h1, h2, h3, h4 { color: #111 !important; }
  .d1 { font-size: 26pt !important; }
  .d2 { font-size: 16pt !important; }
  .d3 { font-size: 12.5pt !important; }
  .body, .lede, p { color: #333 !important; font-size: 10.5pt !important; }
  .eyebrow, .meta, .idx, .crumb { color: #777 !important; }

  .qitem {
    break-inside: avoid;
    page-break-inside: avoid;
    border-top: 1px solid #ddd !important;
    padding-block: 14pt !important;
  }
  .qitem__no { color: #999 !important; }
  .qitem__warn {
    background: #f6f4ef !important;
    border: 1px solid #ddd4bd !important;
    color: #333 !important;
    font-size: 10pt !important;
  }
  .qitem__warn b { color: #8a6d1f !important; }
  .sec-head__top::after { display: none; }
}

/* ==========================================================================
   16  LANDING PAGE  (body.lp)
   One page, one goal. An instrument panel that is mostly quiet.
   Status green appears exactly once on this page: the FROZEN log line.
   No section entrance animations. The only motion is the hero log typing.
   --------------------------------------------------------------------------
   16.1  Page shell, header, footer
   16.2  Hero
   16.3  Terminal panel
   16.4  Pain section + contrast block
   16.5  Value props + guarantee
   16.6  Steps
   16.7  After (containment + AOC)
   16.8  FAQ
   16.9  Closer
   16.10 Booking + thank you
   16.11 Responsive
   ========================================================================== */

/* ------------------------------------------ 16.1  SHELL / HEADER -------- */
/* Green is a status colour on this page, never a focus or hover colour. */
:root {
  --lp-label: #8f8f8f;   /* 6.3:1 on void, mono labels and ordinals */
  --lp-dim:   #7d7d7d;   /* 4.9:1 on void, the dimmest supporting type */
}
body.lp :focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

/* .lp-head is sticky and therefore sits in the flow, unlike the fixed .nav it
   replaced. Interior page heroes no longer need to clear a floating bar. */
.page-hero { padding-top: clamp(48px, 6vh, 72px); }

/* Quieter grid field: the terminal panel is the thing that should be seen. */
body.lp::before {
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse 80% 46% at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 80% 46% at 50% 0%, #000 0%, transparent 72%);
}

.lp-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 5, .86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.lp-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  height: 68px;
}

.lp-sec { padding-block: clamp(72px, 8.5vw, 132px); border-top: 1px solid var(--line); }

.lp-split {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.lp-split .lp-prose { margin-top: 6px; }
.lp-split .faq { margin-top: 0; border-top: 0; }
.lp-sec__h { max-width: 22ch; }
.lp-sec__lede { margin-top: var(--s-5); max-width: 62ch; }

.lp-foot { border-top: 1px solid var(--line); background: var(--black); position: relative; z-index: 1; }
.lp-foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-6);
  padding-block: clamp(40px, 5vw, 64px);
}
.lp-foot__links { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.lp-foot__links a {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--silver);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 3px;
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.lp-foot__links a:hover { color: var(--white); border-color: var(--line-3); }
.lp-foot__line {
  flex: 1 0 100%;
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--lp-label);
}

/* ------------------------------------------------ 16.2  HERO ------------ */
.lp-hero { padding-block: clamp(40px, 5vw, 68px) clamp(28px, 3vw, 40px); }
.lp-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}
.lp-hero__h1 {
  font-size: clamp(28px, 2.95vw, 43px);
  line-height: 1.08;
  letter-spacing: -.032em;
  max-width: 21ch;
  text-wrap: balance;
}
.lp-hero__sub {
  margin-top: var(--s-5);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.62;
  color: var(--silver);
  max-width: 56ch;
}
.lp-hero__cta { margin-top: var(--s-6); }

/* Three risk reducers, one line, directly under the CTA. */
.lp-reducers {
  margin-top: var(--s-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .01em;
  line-height: 1.5;
  color: var(--silver);
}
.lp-reducers i { font-style: normal; color: var(--lp-dim); }

.lp-price {
  margin-top: var(--s-4);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--silver);
  max-width: 54ch;
}
.lp-price b { color: var(--white); font-weight: 500; }

/* Trust strip: three data points. Deliberately not a logo bar. */
.lp-tstrip {
  margin-top: clamp(32px, 4vw, 52px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.lp-tstrip__cell {
  background: var(--void);
  padding: clamp(18px, 1.9vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lp-tstrip__k {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lp-label);
}
.lp-tstrip__v {
  font-size: 14px;
  line-height: 1.5;
  color: var(--silver);
  max-width: 36ch;
}

/* ------------------------------------------- 16.3  TERMINAL PANEL ------- */
.term {
  --term-bg: #0a0a0a;
  margin: 0;
  border: 1px solid var(--line-2);
  background: var(--term-bg);
  box-shadow: var(--shadow-2);
  border-radius: var(--r);
  overflow: hidden;
}
.term__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, .45);
}
.term__bar span {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lp-label);
}
.term__bar .term__id { display: inline-flex; align-items: center; gap: 8px; color: var(--lp-label); }
.term__bar .term__id::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--lp-label);
  flex: none;
}
.term__body {
  padding: clamp(18px, 2.1vw, 30px) clamp(12px, 1.2vw, 16px);
  overflow-x: auto;
}
.term__log {
  margin: 0;
  font-family: var(--f-mono);
  font-size: clamp(9px, .93vw, 13.5px);
  line-height: 2.6;
  letter-spacing: .01em;
  color: var(--silver);
  /* Shrink-wrap to the widest line so each line box, and therefore each
     typing mask, spans the full text even when the panel scrolls. */
  width: max-content;
  min-width: 100%;
}
.term__line {
  position: relative;
  display: block;
  overflow: hidden;
  white-space: pre;
  color: var(--silver);
}
.term__line b { color: var(--white); font-weight: 400; }
.term__t { color: var(--lp-dim); }
.term__line--frozen { color: var(--status); }
.term__line--frozen .term__t { color: rgba(110, 231, 160, .5); }

/* Typing reveal. The mask only exists once the head script has stamped
   html.js-term, so a reader without JavaScript sees the finished log.
   The mask slides off in character-sized steps: transform only. */
.js-term .term.is-typing .term__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--term-bg);
  border-left: 6px solid rgba(245, 245, 245, .55);
  transform: translateX(0);
  transition: transform var(--term-dur, 0s) steps(24);
}
.js-term .term.is-typing .term__line.is-on::after { transform: translateX(101%); }
.js-term .term.is-typing .term__line.is-done::after { border-left-color: transparent; }

@media (prefers-reduced-motion: reduce) {
  .js-term .term.is-typing .term__line::after { display: none; }
}

/* ------------------------------------- 16.4  PAIN + CONTRAST BLOCK ------ */
.lp-prose { max-width: 68ch; margin-top: clamp(32px, 4vw, 56px); }
.lp-prose p {
  font-size: clamp(15.5px, 1.2vw, 17.5px);
  line-height: 1.78;
  color: var(--silver);
}
.lp-prose p + p { margin-top: var(--s-6); }
.lp-prose strong { color: var(--white); font-weight: 500; }

.lp-prose p.lp-prose__lead {
  color: var(--white);
  font-family: var(--f-display);
  font-size: clamp(19px, 1.6vw, 23px);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -.022em;
}

.vs {
  margin-top: clamp(48px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.vs__col { background: var(--void); padding: clamp(24px, 2.8vw, 38px); }
.vs__col--arc { background: linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, 0) 62%), var(--void); }
.vs__h {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lp-label);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line-2);
}
.vs__col--arc .vs__h { color: var(--silver); }
.vs__list { list-style: none; margin: 0; padding: 0; }
.vs__list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--silver);
}
.vs__col--arc .vs__list li { color: var(--white); }
.vs__list li:last-child { border-bottom: 0; padding-bottom: 0; }

/* --------------------------------- 16.5  VALUE PROPS + GUARANTEE -------- */
.props {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.props__cell {
  background: var(--void);
  padding: clamp(22px, 2.4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.props__cell p.props__no {
  font-family: var(--f-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: .18em;
  color: var(--lp-label);
}
.props__cell h3 { font-size: 16.5px; line-height: 1.28; letter-spacing: -.022em; }
.props__cell p { font-size: 14px; line-height: 1.62; color: var(--silver); }

/* The second place boldness is spent. Give it room and a real border. */
.grt {
  margin-top: clamp(40px, 5vw, 64px);
  position: relative;
  border: 1px solid var(--line-3);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0) 58%), #070707;
  padding: clamp(40px, 6.5vw, 88px) clamp(24px, 5vw, 72px);
  text-align: center;
  box-shadow: var(--shadow-2);
}
.grt::before,
.grt::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--line-3);
  pointer-events: none;
}
.grt::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.grt::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.grt__h {
  font-size: clamp(23px, 2.9vw, 42px);
  line-height: 1.16;
  letter-spacing: -.032em;
  max-width: 22ch;
  margin-inline: auto;
}
.grt__sub {
  margin-top: var(--s-5);
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.6;
  color: var(--silver);
  max-width: 52ch;
  margin-inline: auto;
}

/* ------------------------------------------------ 16.6  STEPS ----------- */
.steps { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(20px, 3vw, 48px);
  align-items: start;
  padding-block: clamp(28px, 3.4vw, 44px);
  border-bottom: 1px solid var(--line);
}
.step p.step__no {
  font-family: var(--f-mono);
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: .16em;
  color: var(--lp-label);
  padding-top: 5px;
}
.step h3 { font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.026em; line-height: 1.25; }
.step p { font-size: 15px; line-height: 1.68; color: var(--silver); max-width: 56ch; }

/* ------------------------------------------------ 16.7  AFTER ----------- */
.after {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.after__col { background: var(--void); padding: clamp(26px, 3vw, 44px); }
.after__col h3 { font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.026em; margin-bottom: var(--s-5); }
.after__col p { font-size: 14.5px; line-height: 1.72; color: var(--silver); }
.after__col p + p { margin-top: var(--s-4); }
.after__rule { margin-top: clamp(28px, 3vw, 40px); }
.after__note {
  margin-top: var(--s-5);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--silver);
  max-width: 74ch;
}

/* -------------------------------------------------- 16.8  FAQ ----------- */
.faq { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-5);
  padding-block: clamp(20px, 2.2vw, 28px);
  font-family: var(--f-display);
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 500;
  letter-spacing: -.022em;
  line-height: 1.35;
  color: var(--silver);
  transition: color .3s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--white); }
.faq__item[open] .faq__q { color: var(--white); }
.faq__sign {
  position: relative;
  flex: none;
  width: 13px; height: 13px;
  margin-top: 6px;
}
.faq__sign::before,
.faq__sign::after {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 13px; height: 1px;
  background: var(--silver);
  transition: transform .35s var(--ease-out);
}
.faq__sign::after { transform: rotate(90deg); }
.faq__item[open] .faq__sign::after { transform: rotate(0deg); }
.faq__a { padding-bottom: clamp(24px, 2.6vw, 34px); }
.faq__a p { font-size: 15px; line-height: 1.75; color: var(--silver); max-width: 68ch; }
.faq__a p + p { margin-top: var(--s-4); }

/* ----------------------------------------------- 16.9  CLOSER ----------- */
.lp-close { text-align: center; background: linear-gradient(180deg, var(--void) 0%, #000 100%); }
.lp-close__h {
  font-size: clamp(26px, 3.1vw, 46px);
  line-height: 1.1;
  letter-spacing: -.034em;
  max-width: 26ch;
  margin-inline: auto;
}
.lp-close__sub {
  margin-top: var(--s-5);
  font-size: clamp(15px, 1.2vw, 17.5px);
  line-height: 1.62;
  color: var(--silver);
  max-width: 54ch;
  margin-inline: auto;
}
.lp-close .lp-hero__cta { margin-top: var(--s-7); }
.lp-close .lp-reducers { justify-content: center; }
.lp-close .lp-price { margin-inline: auto; max-width: 62ch; }

/* --------------------------------------- 16.10  BOOKING / THANK YOU ----- */
.lp-book { padding-block: clamp(56px, 7vw, 96px); }
.lp-book__grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
/* The booker scrolls inside the frame: a cross-origin iframe cannot report
   its height back under this CSP, so the frame is sized generously instead. */
.lp-embed {
  border: 1px solid var(--line-2);
  background: #070707;
  overflow: hidden;
}
.lp-embed iframe {
  display: block;
  width: 100%;
  height: 900px;               /* tall enough for a full month grid */
  max-height: calc(100vh - 140px);
  min-height: 640px;           /* below this the booker cannot lay out */
  border: 0;
}

/* Placeholder variant, used when no scheduler is wired up. */
.lp-embed--gap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 620px;
  padding: clamp(24px, 4vw, 56px);
}

/* Visible unresolved placeholder. Nothing here pretends to be finished. */
.lp-gap {
  border: 1px dashed rgba(216, 180, 106, .5);
  background: linear-gradient(180deg, rgba(216, 180, 106, .045), rgba(216, 180, 106, 0) 70%), rgba(255, 255, 255, .008);
  padding: clamp(22px, 3vw, 34px);
  max-width: 58ch;
}
.lp-gap b {
  display: block;
  margin-bottom: var(--s-3);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--alert);
}
.lp-gap p { font-size: 14.5px; line-height: 1.7; color: var(--silver); }
.lp-gap p + p { margin-top: var(--s-4); }
.lp-gap code {
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--white);
  background: rgba(255, 255, 255, .05);
  padding: 2px 6px;
  white-space: nowrap;
}

.lp-done { text-align: center; padding-block: clamp(96px, 13vw, 180px); }
.lp-done__h { font-size: clamp(28px, 3.2vw, 46px); letter-spacing: -.034em; max-width: 20ch; margin-inline: auto; }
.lp-done__sub { margin-top: var(--s-5); color: var(--silver); max-width: 54ch; margin-inline: auto; font-size: 16px; line-height: 1.7; }
.lp-done .btn { margin-top: var(--s-7); }

/* ------------------------------------------ 16.12  CURRENCY SELECTOR ---- */
/* The row is laid out from first paint but held invisible until /api/price
   has filled the select. Nothing shifts, and a failed fetch leaves no dead
   control on the page rather than an empty dropdown. */
.cursel {
  visibility: hidden;
  margin-top: var(--s-4);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.cursel.is-ready { visibility: visible; }

.cursel__k {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lp-label);
}

.cursel__select {
  appearance: none;
  -webkit-appearance: none;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .04em;
  line-height: 1.4;
  color: var(--white);
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='6' viewBox='0 0 9 6' fill='none'%3E%3Cpath d='M1 1l3.5 3.5L8 1' stroke='%23a5a5a5' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 7px 27px 7px 10px;
  cursor: pointer;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.cursel__select:hover { border-color: var(--line-3); background-color: rgba(255,255,255,.03); }
/* The native popup is drawn by the OS, so it needs its own colours. */
.cursel__select option { background: #0a0a0a; color: var(--white); }

.cursel__note {
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .06em;
  color: var(--lp-dim);
}

@media (max-width: 560px) {
  .cursel__note { flex: 1 0 100%; }
}

/* --------------------------------------------- 16.11  RESPONSIVE -------- */
@media (max-width: 1180px) {
  .lp-hero__grid { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 44px); }
  .lp-split { grid-template-columns: 1fr; gap: clamp(28px, 4vw, 44px); }
  .lp-split .lp-prose { margin-top: 0; }
  .lp-hero__h1 { max-width: 24ch; }
  .props { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { grid-template-columns: 68px minmax(0, 1fr); }
  .step p.step__no { grid-column: 1; }
  .step h3 { grid-column: 2; }
  .step p:not(.step__no) { grid-column: 2; max-width: 62ch; }
  .lp-book__grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .lp-tstrip { grid-template-columns: 1fr; }
  .vs, .after { grid-template-columns: 1fr; }
  .lp-head__inner { height: 60px; }
}

@media (max-width: 560px) {
  .props { grid-template-columns: 1fr; }
  .lp-hero__cta .btn { width: 100%; }
  /* The header CTA keeps its full wording, so the wordmark yields the room.
     The mark stays, and the link keeps its accessible name. */
  .lp-head .brand__word { display: none; }
  .lp-head .btn { padding: 10px 12px; font-size: 9.5px; letter-spacing: .1em; }
  .step { grid-template-columns: 1fr; gap: var(--s-3); }
  .step p.step__no { grid-column: 1; padding-top: 0; }
  .step h3,
  .step p:not(.step__no) { grid-column: 1; }
  .term__body { padding-inline: 10px; }
  /* No room for the two panel labels side by side at this width. */
  .term__bar { flex-direction: column; align-items: flex-start; gap: 5px; }
  .lp-foot__inner { align-items: flex-start; }
}


/* ==========================================================================
   17  MOTION  (landing, company, legal)

   A deliberately small vocabulary, kept inside the brand's own language
   rather than reaching for the usual fade-and-rise:

     fade      opacity only, no movement at all
     stagger   direct children fade in sequence, so a grid reads like a
               console populating rather than a deck of cards landing
     draw      a hairline scales out from its left edge

   Nothing translates vertically. Only opacity and transform are animated,
   so no reveal can move the layout or trigger a reflow.

   The hidden state is gated on html.js-motion, which motion.js stamps before
   first paint and never stamps under prefers-reduced-motion. Without the
   class every rule below is inert and the page is simply finished.
   ========================================================================== */
:root {
  --anim-dur:      .62s;
  --anim-draw-dur: .8s;
}

.js-motion [data-anim="fade"],
.js-motion [data-anim="stagger"] > * { opacity: 0; }

.js-motion [data-anim="draw"] {
  transform: scaleX(0);
  transform-origin: left center;
}

[data-anim="fade"],
[data-anim="stagger"] > * {
  transition: opacity var(--anim-dur) var(--ease-out) var(--anim-delay, 0s);
}
[data-anim="draw"] {
  transition: transform var(--anim-draw-dur) var(--ease-out) var(--anim-delay, 0s);
}

.js-motion [data-anim="fade"].is-in,
.js-motion [data-anim="stagger"].is-in > * { opacity: 1; }
.js-motion [data-anim="draw"].is-in { transform: scaleX(1); }

/* Belt and braces: the class is never stamped under reduced motion, but if a
   preference flips mid-session nothing should be left mid-transition. */
@media (prefers-reduced-motion: reduce) {
  .js-motion [data-anim="fade"],
  .js-motion [data-anim="stagger"] > * { opacity: 1; }
  .js-motion [data-anim="draw"] { transform: none; }
  [data-anim="fade"],
  [data-anim="stagger"] > *,
  [data-anim="draw"] { transition: none; }
}
