/* ════════════════════════════════════════════════════════
   QUANTUM LABS PROFESSIONAL
   palette: white · ink · charcoal · signal red
   ════════════════════════════════════════════════════════ */

:root {
  --cream:     #ffffff;
  --cream-2:   #ffffff;
  --cream-3:   #f0f0ee;
  --ink:       #141210;
  --ink-2:     #2a2622;
  --char:      #4a443c;
  --muted:     #6e6860;
  --muted-2:   #9a9388;
  --line:      #d8d3ca;
  --line-2:    #e8e4dd;
  --red:       oklch(0.54 0.22 28);
  --red-deep:  oklch(0.42 0.18 28);
  --red-glow:  oklch(0.6 0.22 28 / 0.28);
  --peach:     oklch(0.84 0.07 40);
  --pixel:     "VT323", "Courier New", monospace;
  --display:   "VT323", "Courier New", monospace;
  --mono:      "Geist Mono", ui-monospace, monospace;
  --sans:      "Geist", "Helvetica Neue", Arial, sans-serif;
  --serif:     "Instrument Serif", "Times New Roman", serif;
  --gut:       clamp(20px, 4vw, 56px);
  --maxw:      1320px;
}

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

html {
  background: var(--cream);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; font-weight: 400; }
b { font-weight: 600; }
small { font-size: 11px; letter-spacing: 0.08em; }

::selection { background: var(--ink); color: var(--cream); }

/* subtle grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 199;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.15  0 0 0 0 0.12  0 0 0 0 0.1  0 0 0 0.028 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
  opacity: 0.3;
}

/* ───── NAV ───── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gut);
  background: linear-gradient(to bottom, var(--cream) 70%, rgba(255,255,255,0));
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

body[data-scrolled="true"] .nav {
  border-color: var(--line);
  background: var(--cream);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  position: relative;
  width: 22px;
  height: 22px;
  background: var(--ink);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.5px;
  padding: 1.5px;
  flex-shrink: 0;
}

.logo-pixel { background: var(--cream); }
.logo-pixel.is-red { background: var(--red); }
.logo-pixel.is-ink { background: var(--ink); }

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-text span {
  font-family: var(--pixel);
  font-size: 22px;
  letter-spacing: 0;
  color: var(--ink);
}

.logo-text small {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-top: 1px;
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: 28px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--char);
}

.nav__links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.25s;
}

.nav__links a:hover { color: var(--red); }

.nav__links a::before {
  content: "[";
  opacity: 0;
  margin-right: 2px;
  transition: opacity 0.2s;
  color: var(--red);
}

.nav__links a::after {
  content: "]";
  opacity: 0;
  margin-left: 2px;
  transition: opacity 0.2s;
  color: var(--red);
}

.nav__links a:hover::before,
.nav__links a:hover::after { opacity: 1; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  transition: background 0.2s, border-color 0.2s;
}

.nav__cta:hover { background: var(--red); border-color: var(--red); }

.nav__cta .arrow { transition: transform 0.25s; }
.nav__cta:hover .arrow { transform: translateX(3px); }

@media (max-width: 820px) {
  .nav__links { display: none; }
  .nav { padding: 14px 18px; }
  .logo-text small { display: none; }
}

/* ───── RAIL ───── */
.rail {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}

.rail__track {
  position: relative;
  width: 2px;
  height: 240px;
  background: var(--cream-3);
}

.rail__fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--red);
  height: 0%;
  transition: height 0.12s linear;
}

.rail__steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rail__steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.5;
  transition: opacity 0.3s;
  cursor: pointer;
  pointer-events: auto;
}

.rail__steps li.is-active { opacity: 1; }

.rail__steps li span {
  width: 8px;
  height: 8px;
  background: var(--cream-3);
  transition: background 0.3s;
}

.rail__steps li.is-active span { background: var(--red); }

.rail__steps li em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--char);
  text-transform: uppercase;
}

@media (max-width: 1100px) { .rail { display: none; } }

/* ───── STICKY BACKDROP ───── */
.stage-wrap {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.stage {
  position: absolute;
  inset: 0;
}

.rim {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 80vmin;
  height: 80vmin;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 55%);
  opacity: 0;
  mix-blend-mode: multiply;
  filter: blur(70px);
  transition: opacity 0.6s;
}

.particles {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--ink);
}

.particle.red {
  background: var(--red);
  box-shadow: 0 0 4px var(--red);
}

/* HUD */
.hud {
  position: absolute;
  left: var(--gut);
  bottom: calc(var(--gut) * 0.8);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--char);
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--cream-2);
}

.hud__row {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.hud__row em {
  font-style: normal;
  color: var(--muted);
  min-width: 70px;
}

.hud__row b {
  color: var(--ink);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 1100px) { .hud { display: none; } }

/* ───── SECTOR RIM STATES ───── */
body[data-sector="HERO"]      .rim { opacity: 0.3; }
body[data-sector="PROBLEM"]   .rim { opacity: 0.45; }
body[data-sector="VISION"]    .rim { opacity: 0.7; }
body[data-sector="MANIFESTO"] .rim { opacity: 0.4; }
body[data-sector="BUILD"]     .rim { opacity: 0.85; }
body[data-sector="PROCESS"]   .rim { opacity: 0.5; }
body[data-sector="PLANS"]     .rim { opacity: 0.65; }
body[data-sector="APPLY"]     .rim { opacity: 0.9; }

/* ───── SECTIONS ───── */
main { position: relative; z-index: 2; }

.sec {
  position: relative;
  padding: clamp(120px, 18vh, 200px) var(--gut);
  max-width: var(--maxw);
  margin: 0 auto;
}

.chapter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--char);
  text-transform: uppercase;
}

.chapter::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--red);
}

.chapter.centered { justify-content: center; }

.sec__head { margin-bottom: 80px; }
.sec__head .display { margin-top: 22px; }

.sec__head--split {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: end;
}

@media (max-width: 820px) {
  .sec__head--split { grid-template-columns: 1fr; gap: 20px; }
}

.sec__lede {
  font-family: var(--sans);
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--char);
  max-width: 740px;
  margin-top: 30px;
}

/* Pixel display type */
.display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 180px);
  line-height: 0.92;
  letter-spacing: 0;
  color: var(--ink);
  text-shadow:
    0.04em 0 0 rgba(212,52,52,.16),
    -0.04em 0 0 rgba(40,90,140,.10);
}

.display.alt { font-size: clamp(48px, 7.5vw, 120px); }

.red { color: var(--red); }

.underline-red {
  position: relative;
  display: inline-block;
}

.underline-red::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.1em;
  height: 0.18em;
  background: var(--red);
  z-index: -1;
  opacity: 0.8;
}

.red-underline {
  position: relative;
  color: var(--red);
}

.red-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.02em;
  height: 0.08em;
  background: var(--red);
}

/* ═══════ HERO ═══════ */
.sec--hero {
  min-height: 100vh;
  padding-top: clamp(140px, 22vh, 240px);
  display: grid;
  grid-template-areas: "meta meta" "title title" "sub cta" "scroll scroll";
  grid-template-columns: 1fr 1fr;
  gap: 60px 40px;
}

.hero__meta  { grid-area: meta; }
.hero__title { grid-area: title; }
.hero__sub   { grid-area: sub; align-self: end; }
.hero__cta   { grid-area: cta; align-self: end; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.hero__scroll { grid-area: scroll; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 8px 14px;
  border: 1.5px solid var(--ink);
  background: var(--cream-2);
}

.pulse {
  width: 6px;
  height: 6px;
  background: var(--red);
  display: inline-block;
  flex-shrink: 0;
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.hero__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 11.5vw, 184px);
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow:
    0.03em 0 0 rgba(212,52,52,.16),
    -0.03em 0 0 rgba(40,90,140,.10);
}

.hero__title .line { display: block; }
.hero__title .line--muted { color: var(--char); }
.hero__title em { font-style: italic; color: var(--ink); }

.hero__title .strike {
  position: relative;
  display: inline-block;
  color: var(--ink);
}

.strike-line {
  position: absolute;
  left: -2%;
  right: -2%;
  top: 50%;
  width: 104%;
  height: auto;
  pointer-events: none;
}

.strike-line line {
  stroke: var(--red);
  stroke-width: 7;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: strike 1s 0.5s forwards cubic-bezier(0.2, 0.7, 0.2, 1);
}

@keyframes strike { to { stroke-dashoffset: 0; } }

.hero__sub p {
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.5;
  max-width: 520px;
  color: var(--ink-2);
}

.hero__sub p + p { margin-top: 18px; }

.guarantee {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--char);
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--ink);
  display: inline-block;
  flex-shrink: 0;
}

.dot.red {
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(214,52,52,.16);
}

/* BUTTONS */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 26px 16px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 4px 4px 0 var(--ink);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--red);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 var(--ink);
}

.btn .arrow {
  font-size: 16px;
  transition: transform 0.25s;
}

.btn:hover .arrow { transform: translateX(3px); }

.btn--primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 4px 4px 0 var(--red);
}

.btn--primary:hover {
  background: var(--red);
  box-shadow: 6px 6px 0 var(--ink);
}

.cta-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

.hero__scroll {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: start;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--char);
  text-transform: uppercase;
}

.scroll-bar {
  position: relative;
  width: 100px;
  height: 8px;
  border: 1px solid var(--ink);
  overflow: hidden;
  background: var(--cream-2);
}

.scroll-bar i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 24px;
  background: var(--red);
  animation: scrollbar 2s infinite cubic-bezier(0.6, 0, 0.4, 1);
}

@keyframes scrollbar {
  0%   { left: -25%; }
  100% { left: 100%; }
}

@media (max-width: 820px) {
  .sec--hero {
    grid-template-areas: "meta" "title" "sub" "cta" "scroll";
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero__title { font-size: clamp(58px, 15vw, 92px); }
}

/* ═══════ PROBLEM ═══════ */
.points {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1.5px solid var(--ink);
  background: var(--ink);
}

.point {
  background: var(--cream-2);
  padding: 42px 32px 50px;
  position: relative;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transition: background 0.3s;
}

.point:nth-child(2n) { border-right: 0; }
.point:nth-last-child(-n+2) { border-bottom: 0; }
.point:hover { background: var(--cream-3); }

.point__num {
  font-family: var(--display);
  font-size: 34px;
  color: var(--red);
  display: inline-block;
  margin-bottom: 16px;
  text-shadow: 0.04em 0 0 rgba(40,90,140,.16);
}

.point h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.1;
  letter-spacing: 0;
  margin-bottom: 14px;
  text-wrap: balance;
}

.point p { font-size: 15px; line-height: 1.6; color: var(--char); max-width: 50ch; }
.point .red { color: var(--red); }

.sec__foot {
  margin-top: 60px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--char);
}

.cursor-arrow { color: var(--red); font-size: 16px; }

@media (max-width: 820px) {
  .points { grid-template-columns: 1fr; }
  .point { border-right: 0; padding: 32px 22px; }
  .point:nth-last-child(-n+2) { border-bottom: 1.5px solid var(--ink); }
  .point:last-child { border-bottom: 0; }
}

/* ═══════ VISION ═══════ */
.sec--vision { text-align: center; max-width: 1100px; }

.vision__head {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 6.5vw, 88px);
  line-height: 1.04;
  letter-spacing: 0;
  margin: 36px auto 30px;
  text-wrap: balance;
  text-shadow:
    0.03em 0 0 rgba(212,52,52,.16),
    -0.03em 0 0 rgba(40,90,140,.10);
}

.vision__head em { color: var(--red); font-style: italic; }

.vision__lede {
  font-family: var(--sans);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.5;
  color: var(--char);
  max-width: 700px;
  margin: 0 auto;
  text-wrap: balance;
}

.vision__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 60px 0;
  color: var(--muted-2);
}

.vision__divider span { width: 80px; height: 2px; background: var(--line); }
.vision__divider i { font-family: var(--display); font-style: normal; color: var(--red); font-size: 24px; line-height: 1; }

.vision__body {
  font-size: clamp(15px, 1.4vw, 19px);
  max-width: 640px;
  margin: 0 auto 14px;
  color: var(--ink-2);
  line-height: 1.55;
  text-wrap: balance;
}

.vision__kicker {
  margin-top: 48px;
  font-family: var(--display);
  font-size: clamp(30px, 4.5vw, 60px);
  line-height: 1.05;
  color: var(--ink);
  text-wrap: balance;
}

.strike-inline { position: relative; color: var(--muted); }
.strike-inline::after {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: 55%;
  height: 3px;
  background: var(--red);
}

/* ═══════ MANIFESTO ═══════ */
.manifesto {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1.5px solid var(--ink);
}

.m-card {
  background: var(--cream-2);
  padding: 40px 30px 46px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 380px;
  border-right: 1.5px solid var(--ink);
  transition: background 0.3s;
}

.m-card:last-child { border-right: 0; }
.m-card:hover { background: var(--cream-3); }

.m-card__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--char);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.m-card__label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.m-card p {
  font-family: var(--display);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  color: var(--ink-2);
}

.m-card p:first-of-type { color: var(--ink); }

.m-card--red { background: var(--ink); color: var(--cream); }
.m-card--red:hover { background: var(--ink-2); }
.m-card--red .m-card__label { color: var(--red); }
.m-card--red .m-card__label::after { background: var(--char); }
.m-card--red p { color: var(--cream); }
.m-card--red p:first-of-type { color: var(--peach); }
.m-card--red em { color: var(--red); }

@media (max-width: 820px) {
  .manifesto { grid-template-columns: 1fr; }
  .m-card { min-height: auto; padding: 32px 22px; border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .m-card:last-child { border-bottom: 0; }
}

/* ═══════ BRIDGE — pinned 3D scroll ═══════ */
.sec--bridge {
  text-align: center;
  padding: 0;
  max-width: none;
  min-height: 300vh;
  position: relative;
}

.bridge__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--gut);
  overflow: hidden;
}

.bridge__inner {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.bridge__head {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 128px);
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow:
    0.03em 0 0 rgba(212,52,52,.20),
    -0.03em 0 0 rgba(40,90,140,.12);
  transform-origin: 50% 50%;
  will-change: transform;
  max-width: 96vw;
}

.bridge__head.is-glitch { animation: headGlitch 0.35s cubic-bezier(0.6, 0, 0.4, 1); }

@keyframes headGlitch {
  0%   { filter: none; transform: perspective(1200px) translateX(0) scale(1); }
  20%  { filter: contrast(1.5) brightness(1.3); transform: perspective(1200px) translateX(-4px) scale(1); }
  40%  { filter: contrast(1.2) brightness(1.1); transform: perspective(1200px) translateX(3px) scale(1); }
  60%  { filter: contrast(1.3) brightness(1.2); transform: perspective(1200px) translateX(-2px) scale(1); }
  100% { filter: none; transform: perspective(1200px) translateX(0) scale(1); }
}

.bridge__head .row {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  white-space: nowrap;
  transition: opacity 0.4s, transform 0.4s;
}

.bridge__head .row--alt { color: var(--red); font-style: italic; }
.bridge__head em { color: var(--ink); font-style: normal; }

.bridge__body {
  font-family: var(--sans);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--char);
  max-width: 680px;
  text-wrap: balance;
}

.bridge__track {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 760px;
}

.bridge__track-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--muted);
  text-transform: uppercase;
}

.bridge__channels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.ch {
  padding: 6px 12px;
  border: 1px solid var(--line);
  background: var(--cream-2);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.ch.is-active {
  background: var(--ink);
  color: var(--cream-2);
  border-color: var(--ink);
}

.bridge__bar {
  width: 100%;
  max-width: 600px;
  height: 6px;
  border: 1.5px solid var(--ink);
  background: var(--cream-2);
  position: relative;
  overflow: hidden;
}

.bridge__bar i {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--red);
  width: 0%;
  transition: width 0.15s linear;
}

@media (max-width: 820px) {
  .sec--bridge { min-height: 260vh; }
  .bridge__inner { gap: 20px; }
  .bridge__head { font-size: clamp(48px, 14vw, 80px); }
  .bridge__channels { gap: 8px 12px; font-size: 9px; }
  .ch { padding: 5px 10px; }
}

/* ═══════ PROCESS ═══════ */
.big-num {
  font-family: var(--display);
  color: var(--red);
  font-size: 1.1em;
  display: inline-block;
  line-height: 1;
  position: relative;
}

.big-num small {
  font-family: var(--mono);
  font-size: 0.18em;
  letter-spacing: 0.12em;
  color: var(--muted);
  vertical-align: top;
  margin-left: 4px;
  text-transform: uppercase;
}

.quiet { color: var(--char); }

.exchange {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  margin: 60px 0 100px;
  border: 1.5px solid var(--ink);
  background: var(--cream-2);
}

.x-col {
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-right: 1.5px solid var(--ink);
}

.x-col:last-child { border-right: 0; }

.x-col header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.x-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--char);
  text-transform: uppercase;
}

.x-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 5px 10px;
  background: var(--cream-3);
  color: var(--ink);
  text-transform: uppercase;
}

.x-tag--red { background: var(--red); color: var(--cream); }

.x-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.x-col li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.x-col li::before {
  content: "▸";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--muted);
  font-family: var(--mono);
}

.x-col--us li::before { color: var(--red); }
.x-col--us li b { color: var(--ink); }

/* exchange divider (hidden on desktop — grid handles layout) */
.x-divider { display: none; }

@media (max-width: 820px) {
  .exchange { grid-template-columns: 1fr; }
  .x-col { border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .x-col:last-child { border-bottom: 0; }
  .x-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1.5px solid var(--ink);
    background: var(--cream-3);
  }
  .x-arrow { font-size: 24px; transform: rotate(90deg); display: inline-block; }
}

.outputs__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--char);
  text-transform: uppercase;
  margin-bottom: 22px;
}

.outputs__label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.outputs__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1.5px solid var(--ink);
}

.output {
  background: var(--cream-2);
  padding: 32px 26px 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}

.output:nth-child(3n) { border-right: 0; }
.output:nth-child(n+4) { border-bottom: 0; }
.output:hover { background: var(--cream-3); }

.output__num { font-family: var(--display); font-size: 22px; color: var(--red); }
.output__name { font-family: var(--display); font-size: clamp(28px, 2.6vw, 40px); line-height: 1; color: var(--ink); }
.output p { font-size: 14px; line-height: 1.55; color: var(--char); }

.output--red { background: var(--ink); color: var(--cream); }
.output--red:hover { background: var(--ink-2); }
.output--red .output__name { color: var(--cream); }
.output--red p { color: var(--cream-3); }

.process__kicker {
  margin-top: 80px;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(28px, 3.6vw, 52px);
  line-height: 1.1;
  color: var(--ink);
  max-width: 900px;
  margin-inline: auto;
  text-wrap: balance;
}

.quote-mark {
  color: var(--red);
  font-size: 1.2em;
  line-height: 0;
  display: inline-block;
  vertical-align: -0.2em;
  margin-right: 6px;
}

@media (max-width: 900px) { .outputs__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .outputs__grid { grid-template-columns: 1fr; }
  .output { border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .output:last-child { border-bottom: 0; }
  .x-col { padding: 28px 22px; }
}

/* ═══════ PLANS ═══════ */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 60px;
  border: 1.5px solid var(--ink);
}

.plan {
  position: relative;
  padding: 42px 36px 52px;
  background: var(--cream-2);
  display: flex;
  flex-direction: column;
  gap: 22px;
  border-right: 1.5px solid var(--ink);
  transition: background 0.3s;
}

.plan:last-child { border-right: 0; }
.plan:hover { background: var(--cream-3); }

.plan__flag {
  position: absolute;
  top: 0;
  right: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--cream);
  background: var(--red);
  padding: 6px 12px;
}

.plan__tier {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--char);
  text-transform: uppercase;
  display: block;
  margin-bottom: 14px;
}

.plan__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink);
  text-shadow:
    0.03em 0 0 rgba(212,52,52,.18),
    -0.03em 0 0 rgba(40,90,140,.10);
}

.plan__pull {
  font-family: var(--display);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  color: var(--ink-2);
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  text-wrap: balance;
}

.plan__intro { font-size: 15px; line-height: 1.65; color: var(--char); }

.plan__sub {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--char);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan__sub::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.plan__list { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.plan__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}

.plan__list li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red);
  font-family: var(--mono);
  font-weight: 600;
}

.plan__commit { border-top: 1px solid var(--line); padding-top: 22px; }

.plan__commit-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--char);
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.plan__commit p { font-size: 14px; line-height: 1.6; color: var(--char); }

.plan__commit--red {
  background: var(--ink);
  color: var(--cream);
  margin: 0 -36px -52px;
  padding: 24px 36px 36px;
  border-top: 0;
}

.plan__commit--red .plan__commit-label { color: var(--red); }
.plan__commit--red p { color: var(--cream); }
.plan__commit--red p b { color: var(--red); }

.plan__foot {
  font-family: var(--display);
  font-size: 22px;
  color: var(--char);
  margin-top: 8px;
}

/* Beast plan (dark) */
.plan--beast { background: var(--ink); color: var(--cream); }
.plan--beast:hover { background: var(--ink-2); }
.plan--beast .plan__tier { color: var(--red); }
.plan--beast .plan__name {
  color: var(--cream);
  text-shadow:
    0.03em 0 0 rgba(212,52,52,.4),
    -0.03em 0 0 rgba(80,140,200,.18);
}
.plan--beast .plan__pull { color: var(--peach); border-top-color: var(--char); }
.plan--beast .plan__intro,
.plan--beast .plan__commit p,
.plan--beast .plan__list li { color: var(--cream-3); }
.plan--beast .plan__sub { color: var(--peach); }
.plan--beast .plan__sub::after { background: var(--char); }
.plan--beast .plan__list li::before { color: var(--red); }
.plan--beast .plan__foot { color: var(--peach); }
.plan--beast .plan__commit { border-top-color: var(--char); }
.plan--beast .plan__commit-label { color: var(--red); }
.plan--beast .plan__commit p b { color: var(--cream); }
.plan--beast .plan__commit--red {
  background: var(--red);
  margin: 0 -36px -52px;
  padding: 24px 36px 36px;
}
.plan--beast .plan__commit--red p,
.plan--beast .plan__commit--red .plan__commit-label { color: var(--cream); }
.plan--beast .plan__commit--red p b { color: var(--ink); }

@media (max-width: 820px) {
  .plans { grid-template-columns: 1fr; }
  .plan { padding: 36px 26px 44px; border-right: 0; border-bottom: 1.5px solid var(--ink); }
  .plan:last-child { border-bottom: 0; }
  .plan__commit--red,
  .plan--beast .plan__commit--red { margin: 0 -26px -44px; padding: 22px 26px 28px; }
}

.plans__summary {
  margin-top: 80px;
  border-top: 1.5px solid var(--ink);
  padding-top: 50px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.summary__row {
  display: grid;
  grid-template-columns: 160px auto 1fr;
  gap: 20px;
  align-items: baseline;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.summary__name { font-family: var(--display); font-size: clamp(28px, 2.8vw, 42px); color: var(--ink); }
.summary__sep { font-family: var(--mono); color: var(--muted-2); letter-spacing: -2px; }
.summary__row--red .summary__name { color: var(--red); }
.summary__row b { color: var(--ink); }

.summary__foot {
  margin-top: 24px;
  font-family: var(--display);
  font-size: clamp(24px, 2.4vw, 34px);
  text-align: center;
  color: var(--ink);
}

.summary__q {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 68px);
  text-align: center;
  line-height: 1.1;
  margin-top: 10px;
  text-shadow:
    0.03em 0 0 rgba(212,52,52,.18),
    -0.03em 0 0 rgba(40,90,140,.10);
}

.summary__small {
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--char);
  text-transform: uppercase;
  margin-top: 12px;
}

@media (max-width: 680px) {
  .summary__row { grid-template-columns: 1fr; gap: 6px; }
  .summary__sep { display: none; }
}

/* ═══════ APPLY ═══════ */
.sec--apply { text-align: center; padding-block: clamp(140px, 22vh, 240px); }

.apply {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.apply__head {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(60px, 11vw, 180px);
  line-height: 0.95;
  letter-spacing: 0;
  margin: 24px 0 8px;
  text-shadow:
    0.03em 0 0 rgba(212,52,52,.20),
    -0.03em 0 0 rgba(40,90,140,.12);
}

.apply__head em { color: var(--red); font-style: italic; }

.apply__meta {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--char);
  text-transform: uppercase;
}

.btn--giant {
  padding: 24px 40px 22px;
  font-size: 16px;
  background: var(--red);
  border-color: var(--ink);
  color: var(--cream);
  box-shadow: 6px 6px 0 var(--ink);
}

.btn--giant:hover {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 10px 10px 0 var(--red);
}

.apply__pact {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink);
  text-transform: uppercase;
  padding: 14px 22px;
  border: 1.5px solid var(--ink);
  background: var(--cream-2);
}

/* ═══════ FOOTER ═══════ */
.foot {
  position: relative;
  z-index: 2;
  border-top: 1.5px solid var(--ink);
  padding: 50px var(--gut) 30px;
  background: var(--cream);
}

.foot__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 40px;
}

.foot__brand { display: flex; align-items: center; gap: 14px; }

.foot__line {
  font-family: var(--display);
  font-size: clamp(22px, 2vw, 30px);
  color: var(--ink-2);
  max-width: 500px;
  text-wrap: balance;
}

.foot__bot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--mono);
  color: var(--char);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

/* ═══════ SCROLL REVEAL ═══════ */
.reveal {
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  filter: brightness(1.5) contrast(1.3);
  transition:
    opacity 0.25s linear,
    clip-path 0.65s cubic-bezier(0.5, 0.05, 0.2, 1),
    filter 0.35s linear 0.2s;
}

.reveal.is-in {
  opacity: 1;
  clip-path: inset(0 0 0% 0);
  filter: none;
}

.reveal.is-in::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  box-shadow: 0 0 12px var(--red), 0 0 24px var(--red-glow);
  pointer-events: none;
  animation: crtScan 0.7s cubic-bezier(0.45, 0.05, 0.55, 1) forwards;
  z-index: 5;
}

@keyframes crtScan {
  0%   { top: 0; opacity: 1; }
  85%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.reveal.d1 { transition-delay: 0s, 0.04s, 0.04s; }
.reveal.d2 { transition-delay: 0s, 0.10s, 0.10s; }
.reveal.d3 { transition-delay: 0s, 0.16s, 0.16s; }
.reveal.d4 { transition-delay: 0s, 0.22s, 0.22s; }

/* Glitch hover */
.glitch { position: relative; }

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
}

.glitch::before { color: rgba(212,52,52,.65); transform: translate(-2px, 1px); }
.glitch::after  { color: rgba(40,140,200,.45); transform: translate(2px, -1px); }
.glitch:hover::before,
.glitch:hover::after { opacity: 1; }

/* ═══════ MISC ═══════ */
@media (max-width: 560px) {
  .sec { padding: 90px 22px; }
  .vision__divider { margin: 40px 0; }
  .plans__summary { margin-top: 50px; padding-top: 36px; }
  .process__kicker { margin-top: 50px; }
}
