/* ==========================================================================
   ELEVEN TWELVE — style.css
   Palette: gunmetal / gauge-paper / ember / cold steel.
   Rule: steel = idle, ember = live. Nothing decorative moves.
   ========================================================================== */

:root {
  --bg: #171310;
  --surface: #201A15;
  --surface-2: #2A221B;
  --text: #EFE7D7;
  --muted: #9A8F80;
  --steel: #B3A48A;
  --steel-dim: rgba(179, 164, 138, 0.38);
  --ember: #D4682F;
  --ember-soft: rgba(212, 104, 47, 0.14);
  --amber: #D8A343;
  --line: rgba(239, 231, 215, 0.13);
  --line-soft: rgba(239, 231, 215, 0.07);
  color-scheme: dark;
  --display: "Archivo", sans-serif;
  --body: "IBM Plex Sans", sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--ember); color: #171310; }

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

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

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */

h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -0.015em; }

h1 { font-weight: 900; font-size: clamp(2.5rem, 6.2vw, 4.7rem); }
h2 { font-weight: 900; font-size: clamp(1.9rem, 3.8vw, 3rem); max-width: 18ch; }
h3 { font-weight: 700; font-size: 1.25rem; letter-spacing: 0; }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 58ch; }
.lede strong { color: var(--text); font-weight: 500; }

.mono { font-family: var(--mono); }

.sec-mark {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--steel);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.sec-mark::after { content: ""; height: 1px; flex: 0 0 64px; background: var(--steel-dim); }
.sec-mark b { color: var(--ember); font-weight: 500; }

.u-ember {
  color: var(--text);
  text-decoration: none;
  background-image: linear-gradient(var(--ember), var(--ember));
  background-repeat: no-repeat;
  background-size: 100% 2px;
  background-position: 0 96%;
}

section { padding: 110px 0; border-top: 1px solid var(--line-soft); }

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

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(23, 19, 16, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.22rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.brand i { font-style: normal; color: var(--ember); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav a:not(.btn):hover { color: var(--text); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 4px;
  transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-ember { background: var(--ember); color: #171310; font-weight: 600; }
.btn-ember:hover { background: #E0763C; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.band-ctas, .form-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.form-ctas { margin-top: 2px; }
.btn-ghost:hover { border-color: var(--ember); color: var(--ember); }
.site-nav .btn { padding: 9px 16px; font-size: 0.72rem; }

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

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

.hero {
  border-top: none;
  padding: 168px 0 70px;
  position: relative;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 62% at 50% 16%, transparent 52%, var(--bg) 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--ember); }

.hero h1 { max-width: 15ch; }
.hero h1 .stop { color: var(--ember); }

.hero .lede { margin: 26px 0 34px; }

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 66px; }

.schematic-frame {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(32, 26, 21, 0.55);
  padding: clamp(10px, 2.5vw, 28px);
  position: relative;
}
.schematic-frame::before {
  content: "OPERATIONS SCHEMATIC · 11/001";
  position: absolute;
  top: -9px;
  left: 22px;
  padding: 0 10px;
  background: var(--bg);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  color: var(--steel);
}

.annotation {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.annotation .pen { color: var(--ember); }

/* Schematic SVG internals */
.schem { width: 100%; height: auto; }
.schem .node-box { fill: var(--surface); stroke: var(--line); stroke-width: 1; rx: 5; }
.schem .node-label {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 2px;
  fill: var(--steel);
}
.schem .node-sub { font-family: var(--mono); font-size: 10px; fill: var(--muted); letter-spacing: 1px; }
.schem .node-data { font-family: var(--mono); font-size: 12.5px; fill: var(--text); letter-spacing: 1px; }
.schem .flow {
  fill: none;
  stroke: var(--steel-dim);
  stroke-width: 1.2;
  stroke-dasharray: 3 7;
  transition: stroke 0.25s, opacity 0.25s;
}
.schem .flow { animation: dash-drift 26s linear infinite; }
@keyframes dash-drift { to { stroke-dashoffset: -260; } }
.schem.hovering .flow { opacity: 0.18; }
.schem.hovering .flow.lit { opacity: 1; stroke: var(--ember); }
.schem .tok { fill: var(--ember); }
.schem .tok-amber { fill: var(--amber); }
.schem .tok-steel { fill: var(--steel); }
.schem .belt { stroke: var(--steel-dim); stroke-width: 1.4; stroke-dasharray: 6 5; animation: belt-run 1.6s linear infinite; }
@keyframes belt-run { to { stroke-dashoffset: -44; } }
.schem .gauge-well { fill: rgba(179, 164, 138, 0.10); stroke: var(--line); }
.schem .gauge-level { fill: var(--steel); opacity: 0.75; }
.schem .reorder-line { stroke: var(--steel-dim); stroke-width: 1; stroke-dasharray: 4 4; }
.schem .exception-box { fill: rgba(216, 163, 67, 0.05); stroke: var(--amber); stroke-dasharray: 4 4; stroke-width: 1; }
.schem .ledger-row { stroke: var(--steel-dim); stroke-width: 1; }
.schem .ledger-amt { font-family: var(--mono); font-size: 10px; fill: var(--muted); }
.schem .node-hot { cursor: default; }

/* --------------------------------------------------------------------------
   Hero scroll cue
   -------------------------------------------------------------------------- */

.hero { min-height: calc(100vh - 64px); display: flex; align-items: center; }
.hero .wrap { width: 100%; }


.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  text-decoration: none;
}
.scroll-cue:hover { color: var(--text); }
.scroll-cue .arr { color: var(--ember); animation: cue-bob 2.2s ease-in-out infinite; }
@keyframes cue-bob { 50% { transform: translateY(5px); } }

/* --------------------------------------------------------------------------
   The fly-through tour
   Base layout = stacked sections (mobile, no-JS, reduced motion).
   Pinned camera mode switches on for capable desktop browsers below.
   -------------------------------------------------------------------------- */

.flight-track { position: relative; }
.flight-pin { position: relative; }
.scene { padding: 84px 0; border-top: 1px solid var(--line-soft); }
.scene-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.scene-copy .sector {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
}
.scene-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(2.2rem, 4.4vw, 3.9rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 14px 0 18px;
}
.scene-title .stop { color: var(--ember); }
.scene-copy p { color: var(--muted); max-width: 44ch; }
.scene-cta {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 104, 47, 0.4);
  padding-bottom: 3px;
}
.scene-cta:hover { border-color: var(--ember); }

.dio { width: 100%; height: auto; }
.dio .lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.6px; fill: var(--steel); }
.dio .stamp { font-family: var(--mono); font-size: 11.5px; letter-spacing: 1.6px; fill: var(--text); }
.dio .box { fill: var(--surface-2); stroke: var(--line); }
.dio .wire { stroke: var(--steel-dim); fill: none; stroke-width: 1.1; }
.dio .wire-hot { stroke: var(--ember); fill: none; stroke-width: 1.4; stroke-dasharray: 5 6; animation: dash-drift 18s linear infinite; }
.dio .belt { stroke: var(--steel-dim); stroke-width: 1.4; stroke-dasharray: 6 5; animation: belt-run 1.6s linear infinite; }
.dio .txtline { stroke: rgba(239, 231, 215, 0.28); stroke-width: 6; stroke-linecap: round; }
.dio .txtline-dim { stroke: rgba(154, 143, 128, 0.3); stroke-width: 4; stroke-linecap: round; }

.flight-rail { display: none; }

@media (min-width: 961px) and (prefers-reduced-motion: no-preference) {
  html.js .flight-track { height: 560vh; }
  html.js .flight-pin {
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    /* hidden (not clip — clip broke compositing here); the focusin handler in
       main.js undoes any sideways scroll the browser applies when tabbing. */
    overflow: hidden;
  }
  html.js .flight-world {
    display: flex;
    width: 500%;
    height: 100%;
    will-change: transform;
  }
  html.js .scene {
    width: 20%;
    flex: none;
    height: 100%;
    border-top: none;
    padding: 0;
    display: flex;
    align-items: center;
  }
  html.js .scene-inner { width: 100%; }
  html.js .scene-viz svg { max-height: calc(100vh - 250px); }
  html.js .flight-rail {
    display: flex;
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    gap: 12px;
    z-index: 5;
  }
  .flight-rail button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 2px;
    text-align: center;
  }
  .flight-rail button i {
    display: block;
    width: 46px;
    height: 2px;
    background: var(--steel-dim);
    transition: background 0.25s;
  }
  .flight-rail button span {
    display: block;
    margin-top: 7px;
    font-family: var(--mono);
    font-size: 0.56rem;
    letter-spacing: 0.14em;
    color: var(--muted);
    transition: color 0.25s;
  }
  .flight-rail button.active i { background: var(--ember); }
  .flight-rail button.active span { color: var(--text); }
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band { background: var(--surface); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.cta-band .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 44px;
  padding-bottom: 44px;
}
.band-line { font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.5rem); max-width: 30ch; }

/* --------------------------------------------------------------------------
   Lead form
   -------------------------------------------------------------------------- */

.lead-form { display: grid; gap: 16px; }
.lead-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form label {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 7px;
}
.lead-form label .opt { color: var(--muted); text-transform: none; letter-spacing: 0.06em; }
.lead-form input, .lead-form select, .lead-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  font-family: var(--body);
  font-size: 0.95rem;
  padding: 12px 14px;
}
.lead-form select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--steel) 50%), linear-gradient(135deg, var(--steel) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { border-color: var(--ember); }
.lead-form select option { background: var(--surface-2); color: var(--text); }
.lead-form button { border: none; cursor: pointer; font-size: 0.82rem; }
.lead-form .fine, .contact .fine { font-size: 0.82rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Proof bar
   -------------------------------------------------------------------------- */

.proof { padding: 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.proof .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.proof-item { padding: 30px 26px; border-left: 1px solid var(--line-soft); }
.proof-item:first-child { border-left: none; padding-left: 0; }
.proof-item .n {
  font-family: var(--mono);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  color: var(--text);
  display: block;
}
.proof-item .n b { color: var(--ember); font-weight: 500; }
.proof-item .l {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   What we build
   -------------------------------------------------------------------------- */

.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px 28px 34px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.panel:hover { border-color: rgba(212, 104, 47, 0.45); transform: translateY(-3px); }
.panel:hover::before { transform: scaleX(1); }
.panel .idx {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--steel);
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 18px;
}
.panel h3 { margin-bottom: 14px; }
.panel p { color: var(--muted); font-size: 0.98rem; }
.panel p strong { color: var(--text); font-weight: 500; }
.panel-has-link { position: relative; padding-bottom: 62px; }
.panel-link {
  position: absolute;
  left: 28px;
  bottom: 28px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ember);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 104, 47, 0.35);
  padding-bottom: 3px;
}
.panel-link span { display: inline-block; transition: transform 0.2s; }
.panel-has-link:hover .panel-link { border-color: var(--ember); }
.panel-has-link:hover .panel-link span { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   Operator difference (manifesto)
   -------------------------------------------------------------------------- */

.manifesto { background: var(--surface); }
.manifesto-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: start; margin-top: 8px; }
.manifesto blockquote {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.manifesto blockquote em { font-style: normal; color: var(--ember); }
.manifesto-copy p { color: var(--muted); margin-bottom: 18px; }
.manifesto-copy p strong { color: var(--text); font-weight: 500; }
.sig {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--steel);
  text-transform: uppercase;
}
.sig b { color: var(--text); font-weight: 500; }

/* --------------------------------------------------------------------------
   Journey — how a build happens
   -------------------------------------------------------------------------- */

.journey-svg-frame { margin: 44px 0 8px; }
.journey-svg { width: 100%; height: auto; }
.journey-svg .rail { stroke: var(--steel-dim); stroke-width: 1.4; fill: none; }
.journey-svg .station-dot { fill: var(--bg); stroke: var(--steel); stroke-width: 1.5; }
.journey-svg .station-glyph { stroke: var(--steel); stroke-width: 1.4; fill: none; }
.journey-svg .station-label { font-family: var(--mono); font-size: 11px; letter-spacing: 2px; fill: var(--steel); }
.journey-svg .station { transition: opacity 0.5s ease, transform 0.5s ease; }
html.js .journey-svg .station:not(.inked) { opacity: 0; transform: translateY(8px); }
.journey-svg .station.inked .station-dot { stroke: var(--ember); }
.journey-svg .ghost-tok { fill: var(--steel); }

.journey-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; margin-top: 26px; }
.jstep .k {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: var(--ember);
  display: block;
  margin-bottom: 8px;
}
.jstep h3 { font-size: 1.02rem; margin-bottom: 8px; }
.jstep p { font-size: 0.88rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Showcase — built and running
   -------------------------------------------------------------------------- */

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.25s;
}
.card:hover { border-color: rgba(179, 164, 138, 0.5); }
.card-wide { grid-column: 1 / -1; }
.card-wide .card-body { max-width: 62ch; }
.card-viz { border-bottom: 1px solid var(--line-soft); background: rgba(23, 19, 16, 0.5); }
.dash .box { fill: var(--surface); stroke: var(--line); }
.card-viz svg { width: 100%; height: auto; }
.card-body { padding: 26px 28px 30px; }
.card-body .tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  display: block;
  margin-bottom: 10px;
}
.card-body h3 { margin-bottom: 10px; }
.card-body p { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.card-body p strong { color: var(--text); font-weight: 500; }
.card-link {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  text-decoration: none;
  border-bottom: 1px solid var(--steel-dim);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.card-link:hover { color: var(--ember); border-color: var(--ember); }

/* mini svg shared */
.mini .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 1.6px; fill: var(--steel); }
.mini .stamp { font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px; fill: var(--text); }
.mini .box { fill: var(--surface-2); stroke: var(--line); }
.mini .wire { stroke: var(--steel-dim); fill: none; stroke-width: 1.1; }
.mini .wire-hot { stroke: var(--ember); fill: none; stroke-width: 1.3; stroke-dasharray: 4 6; animation: dash-drift 18s linear infinite; }

/* --------------------------------------------------------------------------
   AI at work
   -------------------------------------------------------------------------- */

.ai { background: var(--surface); }
.ai-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; margin-top: 8px; }
.ai-list { list-style: none; margin-top: 26px; }
.ai-list li {
  padding: 16px 0 16px 34px;
  border-top: 1px solid var(--line-soft);
  position: relative;
  color: var(--muted);
  font-size: 0.97rem;
}
.ai-list li:last-child { border-bottom: 1px solid var(--line-soft); }
.ai-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 24px;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: var(--ember);
}
.ai-list li strong { color: var(--text); font-weight: 500; display: block; }
.ai-viz {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: clamp(8px, 2vw, 20px);
}
.ai-viz svg { width: 100%; height: auto; }
.ai-viz .lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.6px; fill: var(--steel); }
.ai-viz .frag { fill: var(--surface-2); stroke: var(--line); }
.ai-viz .frag-txt { font-family: var(--mono); font-size: 8.5px; fill: var(--muted); }
.ai-viz .row-cell { fill: var(--surface-2); stroke: var(--line); }
.ai-viz .jig-body { fill: var(--surface); stroke: var(--steel); stroke-width: 1.3; }

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.pay-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin: 40px 0 30px; }
.pay-toggle button {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: none;
  border: none;
  color: var(--muted);
  padding: 12px 22px;
  cursor: pointer;
  border-left: 1px solid var(--line);
  transition: background 0.2s, color 0.2s;
}
.pay-toggle button:first-child { border-left: none; }
.pay-toggle button:hover { color: var(--text); }
.pay-toggle button[aria-pressed="true"] { background: var(--ember); color: #171310; font-weight: 600; }

.rail-frame { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: clamp(10px, 2vw, 26px); }
.rail-svg { width: 100%; height: auto; }
.rail-svg .rail-base { stroke: var(--steel-dim); stroke-width: 3; stroke-linecap: round; }
.rail-svg .notch { stroke: var(--steel); stroke-width: 1.4; }
.rail-svg .fill-seg { stroke: var(--ember); stroke-width: 5; stroke-linecap: butt; }
.rail-svg .tag-txt { font-family: var(--mono); font-size: 11px; letter-spacing: 1.4px; fill: var(--text); }
.rail-svg .tag-sub { font-family: var(--mono); font-size: 10px; fill: var(--muted); letter-spacing: 1px; }
.rail-svg .retainer-dash { stroke: var(--ember); stroke-width: 5; stroke-dasharray: 14 10; animation: retainer-run 2.4s linear infinite; }
@keyframes retainer-run { to { stroke-dashoffset: -48; } }

.rail-svg .mode { display: none; }
.rail-svg .mode.active { display: block; }
.mode.active .fill-seg { stroke-dasharray: var(--seg); stroke-dashoffset: var(--seg); animation: seg-fill 0.7s ease forwards; animation-delay: var(--d, 0s); }
@keyframes seg-fill { to { stroke-dashoffset: 0; } }
.mode.active .tag { opacity: 0; animation: tag-in 0.5s ease forwards; animation-delay: var(--d, 0s); }
@keyframes tag-in { to { opacity: 1; } }

.pay-copy { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pay-card { border: 1px solid var(--line); border-radius: 8px; padding: 26px; background: var(--surface); }
.pay-card.is-active { border-color: rgba(212, 104, 47, 0.5); }
.pay-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.pay-card .from { font-family: var(--mono); color: var(--ember); font-size: 0.85rem; display: block; margin-bottom: 12px; letter-spacing: 0.06em; }
.pay-card p { font-size: 0.92rem; color: var(--muted); }
.pay-note { margin-top: 26px; font-size: 0.92rem; color: var(--muted); border-left: 2px solid var(--ember); padding-left: 16px; max-width: 62ch; }
.pay-note strong { color: var(--text); font-weight: 500; }

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

.faq-list { margin-top: 44px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 24px 4px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.12rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--ember);
  font-size: 1.2rem;
  transition: transform 0.2s;
  flex: none;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list .a { padding: 0 4px 26px; color: var(--muted); max-width: 68ch; }
.faq-list .a strong { color: var(--text); font-weight: 500; }

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

.contact { padding-bottom: 90px; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: start; }
.contact h2 { max-width: 14ch; }
.contact .lede { margin-top: 22px; }
.contact-ctas { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.contact-meta { border: 1px solid var(--line); border-radius: 8px; padding: 30px; background: var(--surface); }
.contact-meta dl { display: grid; gap: 18px; }
.contact-meta dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 4px;
}
.contact-meta dd a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--steel-dim); }
.contact-meta dd a:hover { color: var(--ember); border-color: var(--ember); }
.contact-meta .fine { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 0.84rem; color: var(--muted); }

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

.site-foot { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: baseline; }
.site-foot p { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.site-foot a { color: var(--muted); }
.site-foot a:hover { color: var(--ember); }

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

/* Hidden-until-revealed applies only once JS confirms it can reveal (html.js) —
   no-JS visitors and failed script loads get the fully visible page. */
.rv { transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: var(--d, 0s); }
html.js .rv:not(.on) { opacity: 0; transform: translateY(22px); }

/* Off-screen SVGs get their CSS loops paused by main.js */
.anim-off .flow, .anim-off .belt, .anim-off .wire-hot, .anim-off .retainer-dash { animation-play-state: paused; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .panels { grid-template-columns: 1fr; }
  .pay-copy { grid-template-columns: 1fr 1fr; }
  .manifesto-grid, .ai-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .journey-steps { grid-template-columns: repeat(2, 1fr); }
  .proof .wrap { grid-template-columns: 1fr 1fr; }
  .proof-item { padding-left: 0; border-left: none; }
  .cards { grid-template-columns: 1fr; }
  .site-nav { gap: 14px; }
  .site-nav a:not(.btn) { font-size: 0.64rem; letter-spacing: 0.08em; }
}

@media (max-width: 680px) {
  .site-head .wrap { gap: 12px; }
  .site-nav { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: none; }
}

@media (max-width: 560px) {
  section { padding: 76px 0; }
  .hero { padding-top: 130px; }
  .journey-steps { grid-template-columns: 1fr; }
  .proof .wrap { grid-template-columns: 1fr; }
  .proof-item { padding: 18px 0; }
  .pay-copy { grid-template-columns: 1fr; }
}

/* Wide schematics scroll sideways on small screens instead of shrinking to dust */
@media (max-width: 720px) {
  .schematic-frame { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .schematic-frame::before { content: "11/001"; white-space: nowrap; }
  .schem { min-width: 860px; }
  .journey-svg-frame { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .journey-svg { min-width: 780px; }
  .rail-frame { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .rail-svg { min-width: 640px; }
  .ai-viz { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ai-viz svg { min-width: 640px; }
  .scene-inner { grid-template-columns: 1fr; gap: 26px; }
  .scene-viz { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .scene-viz svg { min-width: 900px; }
  .scene-viz:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
  .lead-form .row2 { grid-template-columns: 1fr; }
}

@media (min-width: 721px) and (max-width: 960px) {
  .scene-inner { grid-template-columns: 1fr; gap: 30px; }
}

/* --------------------------------------------------------------------------
   Reduced motion — schematics render as static drawings
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .rv:not(.on) { opacity: 1; transform: none; }
  html.js .journey-svg .station:not(.inked) { opacity: 1; transform: none; }
}

/* ==========================================================================
   EARTH LAYER — the ground-up re-skin.
   Loam, clay, sand, parchment. Warm grain, machined edges, one serif accent.
   Later rules override the base system above by design.
   ========================================================================== */

:root {
  --paper: #EAE0CC;
  --paper-ink: #221B14;
  --paper-muted: #6B6153;
  --paper-line: rgba(34, 27, 20, 0.16);
  --paper-line-soft: rgba(34, 27, 20, 0.08);
}

/* ---- warm film grain over everything: the single biggest anti-flat move ---- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.028;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="180" height="180"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter><rect width="180" height="180" filter="url(%23n)"/></svg>');
}

/* ---- machined edges: every box gets a lit top edge and a grounded base ---- */
.panel, .card, .svc-card, .pay-card, .contact-meta, .schematic-frame,
.rail-frame, .ai-viz, .svc-viz, .proof-item, .more-link {
  box-shadow: inset 0 1px 0 rgba(239, 231, 215, 0.055), 0 1px 2px rgba(0, 0, 0, 0.35);
}
.panel:hover, .card:hover, .svc-card:hover, .more-link:hover {
  box-shadow: inset 0 1px 0 rgba(239, 231, 215, 0.08), 0 22px 44px -22px rgba(0, 0, 0, 0.65);
}
.proof-item { box-shadow: none; }

.btn { border-radius: 5px; }
.btn-ember {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 3px 12px -3px rgba(212, 104, 47, 0.5);
}
.btn-ember:active { box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25); }
.btn-ghost { background: rgba(239, 231, 215, 0.02); }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #3A3128; border-radius: 6px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #4A3F33; }

/* ---- the serif accent: one warm italic voice, used sparingly ---- */
.earth {
  font-family: "Fraunces", Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--ember);
  letter-spacing: -0.01em;
}
.manifesto blockquote em { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 600; }

/* ---- parchment stratum: the build section drawn on actual paper ---- */
.paper {
  --bg: var(--paper);
  --surface: #E2D6BE;
  --surface-2: #DACDB2;
  --text: var(--paper-ink);
  --muted: var(--paper-muted);
  --steel: var(--paper-muted);
  --steel-dim: rgba(107, 97, 83, 0.45);
  --ember: #9C4A15;
  --ember-soft: rgba(156, 74, 21, 0.14);
  --line: var(--paper-line);
  --line-soft: var(--paper-line-soft);
  background: var(--paper);
  color: var(--paper-ink);
  background-image:
    linear-gradient(var(--paper-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  border-top: none;
}
.paper .lede strong { color: var(--paper-ink); }
.paper .journey-svg .ghost-tok { fill: #857763; }
.paper .journey-svg .station-label { fill: var(--paper-muted); }
.journey-svg .ghost-tok.cleared { fill: var(--ember); }

/* ---- HERO: built from the ground up ---- */
.hero { padding-bottom: 0; align-items: flex-start; }
.hero .wrap { padding-top: 4vh; padding-bottom: clamp(90px, 9vw, 150px); }

.gnd {
  position: absolute;
  inset: auto 0 0 0;
  height: auto;
  aspect-ratio: 1440 / 380;
  min-height: 250px;
  pointer-events: none;
  z-index: 1;
}
.gnd svg { width: 100%; height: 100%; display: block; }

.gnd .stratum { opacity: 0; animation: gnd-settle 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.gnd .s1 { animation-delay: 0.05s; } .gnd .s2 { animation-delay: 0.16s; }
.gnd .s3 { animation-delay: 0.27s; } .gnd .s4 { animation-delay: 0.38s; }
@keyframes gnd-settle { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.gnd .gnd-line { transform-origin: left center; animation: gnd-draw 1s cubic-bezier(0.6, 0, 0.2, 1) 0.5s both; }
@keyframes gnd-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.gnd .pile { transform-origin: center top; animation: gnd-drive 0.5s cubic-bezier(0.5, 0, 0.3, 1) both; }
.gnd .p1 { animation-delay: 0.62s; } .gnd .p2 { animation-delay: 0.72s; }
.gnd .p3 { animation-delay: 0.82s; } .gnd .p4 { animation-delay: 0.92s; } .gnd .p5 { animation-delay: 1.02s; }
@keyframes gnd-drive { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.gnd .floor { opacity: 0; animation: gnd-rise 0.65s cubic-bezier(0.2, 0.9, 0.25, 1.08) both; }
.gnd .f1 { animation-delay: 1.15s; } .gnd .f2 { animation-delay: 1.34s; }
.gnd .f3 { animation-delay: 1.53s; } .gnd .f4 { animation-delay: 1.72s; }
.gnd .cap { opacity: 0; animation: gnd-rise 0.6s cubic-bezier(0.2, 0.9, 0.25, 1.1) 1.95s both; }
@keyframes gnd-rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

.gnd .rootline {
  stroke-dasharray: 3 5;
  opacity: 0;
  animation: gnd-fade 0.8s ease 2.3s both;
}
@keyframes gnd-fade { to { opacity: 0.55; } }

.gnd .livedot { animation: gnd-live 3.2s ease-in-out 2.6s infinite; }
@keyframes gnd-live { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.gnd .gnd-label { opacity: 0; animation: gnd-fade-full 0.8s ease 0.9s both; }
@keyframes gnd-fade-full { to { opacity: 0.75; } }

@media (max-width: 960px) {
  .hero .wrap { padding-bottom: clamp(80px, 10vw, 130px); }
  .gnd { height: clamp(200px, 34vw, 300px); }
}

/* ---- the mark in the header: all-bone lockup, the CTA owns the ember ---- */
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); }
.brand-mark { height: 21px; width: auto; flex: none; display: block; }
.brand span { letter-spacing: 0.02em; }

/* ==========================================================================
   BLOCKWORK — the mark's grammar runs through the whole site.
   One unit: 20px block, 4px grout, 24px pitch. Same as the logo.
   ========================================================================== */

/* hero blocks assemble like bricklaying: per-block delays are inline */
.gnd .blk { opacity: 0; animation: blk-in 0.34s cubic-bezier(0.2, 0.9, 0.3, 1.12) both; }
@keyframes blk-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.gnd .livedot { animation: blk-in 0.34s both, gnd-live 3.2s ease-in-out 3s infinite; }

/* section marks carry a block, not just a number */
.sec-mark::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--ember);
  flex: none;
}

/* every card earns its corner block on hover: the mark's signature */
.panel, .card, .svc-card, .pay-card, .more-link { position: relative; }
.panel::after, .card::after, .svc-card::after, .pay-card::after, .more-link::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--ember);
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.panel:hover::after, .card:hover::after, .svc-card:hover::after,
.pay-card.is-active::after, .more-link:hover::after { opacity: 1; transform: none; }

/* the tour rail becomes a row of blocks, active one ember */
@media (min-width: 961px) and (prefers-reduced-motion: no-preference) {
  .flight-rail button i {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    background: transparent;
    border: 1px solid var(--steel-dim);
    margin: 0 auto;
    transition: background 0.25s, border-color 0.25s;
  }
  .flight-rail button.active i { background: var(--ember); border-color: var(--ember); }
}

/* background: the generic grid gives way to the block pitch (24 fine / 96 coarse) */
.hero, .svc-hero, .paper {
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 96px 96px;
}

/* ==========================================================================
   MOBILE FLOW — proper rhythm on small screens
   ========================================================================== */

@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  section { padding: 64px 0; }
  h2 { max-width: none; }

  .hero { min-height: 0; padding-top: 108px; }
  .hero .wrap { padding-top: 0; padding-bottom: clamp(64px, 14vw, 104px); }
  .gnd { height: 100%; aspect-ratio: auto; min-height: 0; }
  .hero-eyebrow { margin-bottom: 18px; }
  .hero .lede { margin: 20px 0 26px; }
  .hero-ctas { margin-bottom: 36px; gap: 10px; }
  .hero-ctas .btn { width: 100%; text-align: center; }
  .scroll-cue { margin-top: 0; }

  .scene { padding: 56px 0; }
  .scene-title { font-size: 2rem; }
  .scene-copy p { font-size: 0.98rem; }
  .scene-cta { margin-top: 16px; }

  .proof .wrap { gap: 0; }
  .proof-item { padding: 16px 0; }
  .proof-item .n { font-size: 1.35rem; }

  .panels { gap: 14px; }
  .panel { padding: 24px 20px 56px; }
  .panel-has-link { padding-bottom: 56px; }
  .panel-link { left: 20px; bottom: 22px; }

  .manifesto-grid { gap: 28px; }
  .journey-steps { gap: 18px; margin-top: 18px; }
  .jstep h3 { font-size: 0.98rem; }

  .cards { gap: 14px; }
  .card-body { padding: 20px 20px 24px; }

  .ai-grid { gap: 28px; }
  .ai-list li { padding: 13px 0 13px 28px; font-size: 0.93rem; }

  .pay-toggle { display: flex; width: 100%; margin: 28px 0 20px; }
  .pay-toggle button { flex: 1; padding: 11px 6px; font-size: 0.66rem; }
  .pay-copy { gap: 14px; margin-top: 20px; }
  .pay-card { padding: 22px 20px; }

  .faq-list summary { font-size: 1rem; padding: 18px 2px; }
  .faq-list .a { padding-bottom: 20px; font-size: 0.95rem; }

  .cta-band .wrap { padding-top: 34px; padding-bottom: 34px; }
  .band-ctas { width: 100%; }
  .band-ctas .btn { flex: 1; text-align: center; }

  .contact-grid { gap: 34px; }
  .contact-meta { padding: 22px 18px; }
  .form-ctas .btn { width: 100%; text-align: center; }

  .site-foot { padding: 30px 0 36px; }
  .site-foot .wrap { flex-direction: column; gap: 8px; }
}

/* ---- header never wraps, at any width ---- */
.brand span { white-space: nowrap; }
@media (max-width: 680px) {
  .site-head .wrap { height: 56px; gap: 10px; }
  .brand span { font-size: 0.92rem; }
  .brand-mark { height: 17px; }
  .site-nav { gap: 14px; }
  .site-nav .btn { padding: 8px 12px; font-size: 0.64rem; white-space: nowrap; }
  .hero { padding-top: 96px; }
}

/* header: brand fixed, nav scrolls in whatever space remains */
.site-head .wrap { gap: 16px; }
.brand { flex: none; }
.site-nav { flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
@media (max-width: 480px) {
  .brand span { display: none; }        /* mark only: the logo carries it */
  .brand-mark { height: 22px; }
}

/* ==========================================================================
   NOVA LAYER — the finish-grade rebuild.
   Glass, gradient fire, ghost numerals, chips, phase timeline, mega panel.
   ========================================================================== */

:root {
  --g1: #D4682F;
  --g2: #EFA23F;
  --fire: linear-gradient(96deg, var(--g1) 8%, var(--g2) 92%);
  --glass: rgba(32, 26, 21, 0.62);
  --glass-line: rgba(239, 231, 215, 0.1);
}

/* ---- floating pill nav ---- */
.site-head {
  inset: 14px 0 auto 0;
  background: none;
  border-bottom: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.site-head .wrap {
  height: 64px;
  max-width: 1240px;
  background: rgba(23, 19, 16, 0.72);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  padding: 0 12px 0 24px;
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(239, 231, 215, 0.06);
}
.site-nav .btn-ember { border-radius: 999px; }
main { padding-top: 14px; }

/* ---- gradient utilities ---- */
.gfire {
  background: var(--fire);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.earth.gfire { color: transparent; }   /* Fraunces italic + fire gradient */

.btn-ember {
  background: var(--fire);
  border-radius: 999px;
  padding: 15px 28px;
  box-shadow: 0 4px 24px -6px rgba(212, 104, 47, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-ember:hover { filter: brightness(1.07); background: var(--fire); }
.btn-ghost { border-radius: 999px; padding: 15px 28px; background: rgba(32, 26, 21, 0.5); border-color: var(--glass-line); }

/* ---- chip badges ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  padding: 10px 18px;
}
.chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--fire);
}
.chip-row { display: flex; justify-content: center; margin-bottom: 26px; }

/* ---- ghost numerals ---- */
.sect { position: relative; overflow: hidden; }
.ghostnum {
  position: absolute;
  right: -0.05em;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(180px, 26vw, 380px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(239, 231, 215, 0.07);
  pointer-events: none;
  user-select: none;
}
.ghostnum i {
  position: absolute;
  right: 0.14em;
  bottom: -0.22em;
  font-family: var(--mono);
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.55em;
  color: rgba(239, 231, 215, 0.28);
  -webkit-text-stroke: 0;
}

/* ---- centered hero ---- */
.hero { display: block; text-align: center; padding-top: 150px; }
.hero .wrap { max-width: 1080px; }
.hero-eyebrow { display: none; }
.hero .chip-row { margin-bottom: 30px; }
.hero h1 { max-width: none; margin: 0 auto; font-size: clamp(2.9rem, 7vw, 5.9rem); letter-spacing: -0.025em; }
.hero .lede { margin: 30px auto 38px; max-width: 62ch; }
.hero-ctas { justify-content: center; margin-bottom: 0; }
.hero .scroll-cue { margin-top: 54px; }
#blockfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero { background-image: none; }
.hero::after { display: none; }

/* the ground becomes its own full-width band under the hero */
.gnd-band {
  position: relative;
  height: auto;
  aspect-ratio: 1440 / 380;   /* matches the tower artwork, so nothing is ever sliced off the top */
  border-top: none;           /* no min-height: with an aspect-ratio it would drive the WIDTH and overflow the page */
  padding: 0;
  overflow: hidden;
}
.gnd-band .gnd { position: absolute; inset: auto 0 0 0; height: 100%; aspect-ratio: auto; min-height: 0; }

/* ---- challenge rows ---- */
.rows { border-top: 1px solid var(--line-soft); margin-top: 54px; }
.row {
  display: grid;
  grid-template-columns: 150px 1.05fr 1.6fr 0.9fr;
  gap: 28px;
  padding: 30px 4px;
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
}
.row .cat {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--g2);
  text-transform: uppercase;
  padding-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.row .cat::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--fire); flex: none; }
.row h3 { font-size: 1.3rem; letter-spacing: -0.01em; }
.row p { color: var(--muted); font-size: 0.97rem; }
.row .punch {
  font-weight: 600;
  color: var(--g2);
  font-size: 0.97rem;
  text-align: right;
  padding-top: 6px;
}

/* ---- gradient-border quote card ---- */
.quote-card {
  position: relative;
  margin: 64px auto 0;
  max-width: 900px;
  border-radius: 18px;
  padding: 38px 44px;
  background:
    linear-gradient(var(--glass), var(--glass)) padding-box,
    linear-gradient(120deg, rgba(212, 104, 47, 0.75), rgba(239, 162, 63, 0.4), rgba(239, 231, 215, 0.12)) border-box;
  border: 1.5px solid transparent;
  text-align: center;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.6;
  color: var(--muted);
}
.quote-card strong { color: var(--text); font-weight: 600; }

/* ---- phase timeline ---- */
.phases { position: relative; margin-top: 60px; max-width: 780px; }
.phases::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 10px;
  bottom: 10px;
  border-left: 2px dashed var(--steel-dim);
}
.phase { position: relative; padding: 0 0 56px 96px; }
.phase:last-child { padding-bottom: 0; }
.phase .num {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--bg);
  border: 2px solid var(--g1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--text);
  box-shadow: 0 0 0 6px var(--bg);
}
.phase .kick {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--g2);
  display: block;
  margin-bottom: 10px;
  padding-top: 4px;
}
.phase h3 { font-size: 1.45rem; margin-bottom: 10px; }
.phase p { color: var(--muted); max-width: 56ch; }
.phase .deliver {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin-top: 18px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  border-radius: 999px;
  padding: 12px 22px;
  font-size: 0.92rem;
}
.phase .deliver b { font-weight: 600; color: var(--text); }
.phase .deliver span { color: var(--g2); font-weight: 600; }
.paper .phase .num { background: var(--paper); box-shadow: 0 0 0 6px var(--paper); border-color: var(--ember); }
.paper .phase .deliver { background: rgba(34, 27, 20, 0.05); border-color: var(--paper-line); }
.paper .phase .deliver span { color: var(--ember); }
.paper .phase .kick { color: var(--ember); }

/* ---- mega CTA panel ---- */
.mega {
  border-radius: 26px;
  padding: clamp(44px, 6vw, 90px) clamp(24px, 5vw, 80px);
  background:
    linear-gradient(rgba(32, 26, 21, 0.85), rgba(23, 19, 16, 0.95)) padding-box,
    linear-gradient(130deg, rgba(212, 104, 47, 0.8), rgba(239, 231, 215, 0.1) 45%, rgba(239, 162, 63, 0.7)) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8);
}

/* ---- section headline treatment ---- */
.sect h2.center { text-align: center; max-width: none; margin-left: auto; margin-right: auto; }
.sect .lede.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---- footer, minimal ---- */
.site-foot { border-top: 1px solid var(--line-soft); padding: 44px 0 52px; }
.site-foot .fine-print { font-family: var(--body); font-size: 0.85rem; color: var(--muted); text-transform: none; letter-spacing: 0; max-width: 58ch; margin-top: 10px; }

@media (max-width: 960px) {
  .row { grid-template-columns: 1fr; gap: 8px; padding: 24px 2px; }
  .row .punch { text-align: left; padding-top: 2px; }
  .ghostnum { font-size: 160px; opacity: 0.7; }
  .phases::before { left: 21px; }
  .phase { padding-left: 72px; }
  .phase .num { width: 44px; height: 44px; border-radius: 11px; font-size: 1.05rem; }
}
@media (max-width: 680px) {
  .site-head { inset: 10px 0 auto 0; }
  .site-head .wrap { height: 54px; border-radius: 999px; margin: 0 12px; padding: 0 8px 0 16px; }
  .hero { padding-top: 118px; }
  .quote-card { padding: 26px 22px; }
}

@media (max-width: 680px) {
  .site-nav a:not(.btn) { display: none; }   /* pill = mark + one action. Clean. */
}

/* ==========================================================================
   MOTION LAYER — the Novum-grade animation system, in our tones.
   Blur-up cascades, bar sweeps, dot pops, crawling dashes, aurora.
   ========================================================================== */

/* ---- aurora: two warm blobs drifting behind everything ---- */
.aurora, .aurora::before, .aurora::after { pointer-events: none; }
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; filter: blur(70px); }
.aurora::before, .aurora::after {
  content: "";
  position: absolute;
  width: 46vw; height: 46vw;
  border-radius: 50%;
}
.aurora::before {
  left: -12vw; top: -14vh;
  background: radial-gradient(circle, rgba(212, 104, 47, 0.13), transparent 65%);
  animation: auA 26s ease-in-out infinite alternate;
}
.aurora::after {
  right: -14vw; bottom: -18vh;
  background: radial-gradient(circle, rgba(239, 162, 63, 0.09), transparent 65%);
  animation: auB 32s ease-in-out infinite alternate;
}
@keyframes auA { to { transform: translate(13vw, 9vh) scale(1.15); } }
@keyframes auB { to { transform: translate(-11vw, -12vh) scale(0.92); } }
main, .site-head, footer { position: relative; z-index: 1; }

/* ---- reveal grammar: blur-up + cascaded children ---- */
html.js .rv:not(.on) { opacity: 0; transform: translateY(26px); filter: blur(6px); }
.rv { transition: opacity 0.85s cubic-bezier(0.2, 0.65, 0.25, 1), transform 0.85s cubic-bezier(0.2, 0.65, 0.25, 1), filter 0.85s; transition-delay: var(--d, 0s); }

/* challenge rows: bar sweep + dot pop + child cascade */
.row { position: relative; }
.row::before {
  content: "";
  position: absolute;
  left: -18px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--fire);
  transform: scaleY(0);
}
html.js .row.on::before { animation: barsweep 1.1s cubic-bezier(0.4, 0, 0.2, 1) 0.1s 1; }
@keyframes barsweep {
  0% { transform: scaleY(0); transform-origin: center top; }
  55% { transform: scaleY(1); transform-origin: center top; }
  56% { transform-origin: center bottom; }
  100% { transform: scaleY(0); transform-origin: center bottom; }
}
html.js .row .cat, html.js .row h3, html.js .row p, html.js .row .punch {
  transition: opacity 0.6s cubic-bezier(0.2, 0.65, 0.25, 1), transform 0.6s cubic-bezier(0.2, 0.65, 0.25, 1);
}
html.js .row:not(.on) .cat  { opacity: 0; transform: translateY(10px); }
html.js .row:not(.on) h3    { opacity: 0; transform: translateY(14px); }
html.js .row:not(.on) p     { opacity: 0; transform: translateY(14px); }
html.js .row:not(.on) .punch{ opacity: 0; transform: translateY(10px); }
.row .cat   { transition-delay: 0.05s; }
.row h3     { transition-delay: 0.18s; }
.row p      { transition-delay: 0.3s; }
.row .punch { transition-delay: 0.45s; }
html.js .row.on .cat::before { animation: dotpop 0.7s cubic-bezier(0.3, 1.6, 0.5, 1) 0.25s 1 backwards; }
@keyframes dotpop { 0% { transform: scale(0.2); } 60% { transform: scale(1.7); } 100% { transform: scale(1); } }

/* sheen crawling across punchlines and deliverables */
.row .punch, .phase .deliver span {
  background: linear-gradient(100deg, var(--g2) 42%, #FFE3B8 50%, var(--g2) 58%) 0 0 / 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheenx 7s linear infinite;
}
@keyframes sheenx { 0% { background-position: 0% 0; } 50% { background-position: 100% 0; } 100% { background-position: 0% 0; } }

/* chip dots pulse */
.chip::before { animation: chippulse 2.4s ease infinite; }
@keyframes chippulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 104, 47, 0.45); }
  55% { box-shadow: 0 0 0 8px rgba(212, 104, 47, 0); }
}

/* ---- phase timeline: crawling spine, spinning ring, springing pills ---- */
.phases::before {
  border-left: none;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--steel-dim) 0 6px, transparent 6px 12px);
  animation: crawl 1.2s linear infinite;
}
@keyframes crawl { to { background-position-y: 12px; } }
.phase .num { position: absolute; z-index: 1; }
.phase .num::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: 18px;
  border: 1.5px dashed rgba(212, 104, 47, 0.5);
  animation: numspin 14s linear infinite;
}
@keyframes numspin { to { transform: rotate(360deg); } }
html.js .phase .num { transition: opacity 0.4s, transform 0.65s cubic-bezier(0.3, 1.7, 0.5, 1) 0.05s; }
html.js .phase:not(.on) .num { opacity: 0; transform: scale(0.4); }
html.js .phase .kick, html.js .phase h3, html.js .phase p {
  transition: opacity 0.55s cubic-bezier(0.2, 0.65, 0.25, 1), transform 0.55s cubic-bezier(0.2, 0.65, 0.25, 1);
}
html.js .phase:not(.on) .kick { opacity: 0; transform: translateY(10px); }
html.js .phase:not(.on) h3    { opacity: 0; transform: translateY(12px); }
html.js .phase:not(.on) p     { opacity: 0; transform: translateY(12px); }
.phase .kick { transition-delay: 0.15s; }
.phase h3    { transition-delay: 0.25s; }
.phase p     { transition-delay: 0.35s; }
html.js .phase .deliver { transition: opacity 0.5s 0.5s, transform 0.5s cubic-bezier(0.3, 1.4, 0.5, 1) 0.5s; }
html.js .phase:not(.on) .deliver { opacity: 0; transform: translateY(10px) scale(0.96); }

/* ---- ghost numerals: filled, and gone on small screens ---- */
.ghostnum {
  color: rgba(239, 231, 215, 0.035);
  -webkit-text-stroke: 1.5px rgba(239, 231, 215, 0.075);
}
@media (max-width: 960px) {
  .ghostnum { display: none; }
}

/* ==========================================================================
   IPHONE — nothing scrolls sideways, ever. Compact dioramas instead.
   ========================================================================== */

.dio-m { display: none; }
@media (max-width: 720px) {
  .scene-viz { overflow: visible; }
  .scene-viz .dio, .scene-viz .schematic-frame, .scene-viz .annotation { display: none; }
  .scene-viz .dio-m { display: block; width: 100%; height: auto; }
  .rail-frame { display: none; }
  .ai-viz { display: none; }
  .journey-svg-frame { display: none; }
  .card-wide .card-viz { display: none; }   /* the sales screen returns on desktop */
  .schematic-frame { overflow-x: visible; }
  .schem { min-width: 0; }
  .journey-svg { min-width: 0; }
  .rail-svg { min-width: 0; }
  .scene-viz svg { min-width: 0; }
  body { overflow-x: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .aurora::before, .aurora::after, .phases::before, .phase .num::after,
  .row .punch, .phase .deliver span, .chip::before { animation: none !important; }
  .row .punch, .phase .deliver span { color: var(--g2); background: none; }
}


/* ghost numerals live behind, inside, and never over the content */
.sect { overflow: hidden; overflow: clip; }
.ghostnum {
  right: 1.5%;
  font-size: clamp(150px, 17vw, 260px);
  z-index: 0;
  color: rgba(239, 231, 215, 0.03);
  -webkit-text-stroke: 1.5px rgba(239, 231, 215, 0.06);
}
.ghostnum i { right: 0.1em; bottom: -0.16em; font-size: 12px; letter-spacing: 0.4em; white-space: nowrap; }
.sect > .wrap { position: relative; z-index: 1; }
@media (max-width: 1200px) { .ghostnum { display: none; } }


/* hero: quiet double-click into the call */
.hero-doubleclick { margin: 30px 0 0; text-align: center; }
.hero-doubleclick a {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color .35s cubic-bezier(0.2,0.65,0.25,1);
}
.hero-doubleclick a::after {
  content: "\2192"; font-size: .8rem;
  transition: transform .35s cubic-bezier(0.2,0.65,0.25,1);
}
.hero-doubleclick a:hover { color: var(--text); }
.hero-doubleclick a:hover::after { transform: translateX(4px); }
@media (max-width: 720px) {
  .hero-doubleclick { margin-top: 24px; }
  .hero-doubleclick a { font-size: .66rem; letter-spacing: .1em; }
}

/* ---- brand kit page ---- */
.brand-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(280px,1fr)); gap:22px; margin-top:34px; }
.brand-tile { border:1px solid var(--line); border-radius:14px; overflow:hidden; background:var(--surface); }
.brand-swatch-lg { display:grid; place-items:center; padding:56px 20px; background:var(--bg); }
.brand-swatch-lg.brand-light { background:var(--paper); }
.bk-mark { width:132px; height:132px; }
.bk-mark-dark rect { fill:#221B14; }
.bk-mark-dark rect:last-child { fill:#9C4A15; }
.brand-dl { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:16px 18px; border-top:1px solid var(--line); }
.bk-name { font-family:var(--mono); font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-right:auto; }
.bk-btn { font-family:var(--mono); font-size:.7rem; letter-spacing:.08em; text-transform:uppercase;
  color:var(--text); background:var(--surface-2); border:1px solid var(--line); border-radius:999px;
  padding:8px 15px; cursor:pointer; text-decoration:none; transition:border-color .3s cubic-bezier(0.2,0.65,0.25,1), color .3s, background .3s; }
.bk-btn:hover { border-color:var(--ember); color:var(--ember); }
.bk-btn.done { border-color:var(--steel); color:var(--steel); }
.bk-swatches { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:16px; margin-top:34px; }
.bk-swatch { display:grid; grid-template-columns:auto 1fr; grid-template-areas:"chip name" "chip hex" "use use";
  gap:2px 16px; align-items:center; text-align:left; padding:18px; cursor:pointer;
  background:var(--surface); border:1px solid var(--line); border-radius:12px; transition:border-color .3s; }
.bk-swatch:hover { border-color:var(--steel-dim); }
.bk-chip { grid-area:chip; width:46px; height:46px; border-radius:8px; background:var(--sw); border:1px solid var(--line); }
.bk-sw-name { grid-area:name; font-weight:600; color:var(--text); font-size:.95rem; }
.bk-sw-hex { grid-area:hex; font-family:var(--mono); font-size:.78rem; color:var(--muted); }
.bk-sw-use { grid-area:use; font-size:.82rem; color:var(--muted); margin-top:10px; line-height:1.5; }
.bk-note { font-family:var(--mono); font-size:.72rem; letter-spacing:.06em; color:var(--muted); margin-top:16px; }
.bk-ig { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:22px; margin-top:34px; }
.bk-ig-item { border:1px solid var(--line); border-radius:14px; overflow:hidden; background:var(--surface); display:flex; flex-direction:column; }
.bk-ig-frame { padding:20px; background:var(--bg); display:grid; place-items:center; flex:1; min-height:300px; }
.bk-ig-frame canvas { width:100%; height:auto; display:block; border-radius:6px; }
.bk-ig-frame.bk-round canvas { border-radius:50%; max-width:210px; }
.bk-ig-frame.bk-tall canvas { max-width:148px; }
.bk-copy { white-space:normal; }
.bk-copy-btn { margin-top:14px; }
@media (max-width:720px){ .brand-swatch-lg { padding:40px 16px; } .bk-mark { width:104px; height:104px; } }

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


/* ---- ground band: phone sizing, declared last so it always wins the cascade ---- */
@media (max-width: 720px) {
  .gnd-band { aspect-ratio: auto; height: clamp(170px, 44vw, 250px); min-height: 0; }
  .gnd-band .gnd { height: 100%; aspect-ratio: auto; min-height: 0; }
}

/* honeypot: keep it off-screen without pushing the document sideways on iOS */
.lf-hp {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; left: auto;
}


/* ---- service / landing page heroes: these had no spacing rules of their own ---- */
.svc-hero .crumb { margin-bottom: 22px; }
.svc-hero h1 { margin: 0 0 22px; }
.svc-hero .lede { margin: 0 0 8px; }
.svc-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(34px, 4.5vw, 52px);
}
@media (max-width: 720px) {
  .svc-hero .crumb { margin-bottom: 16px; }
  .svc-hero h1 { margin-bottom: 18px; }
  .svc-ctas { margin-top: 34px; gap: 12px; }
  .svc-ctas .btn { width: 100%; text-align: center; }
}
