/* =========================================================
   OBHOLZ SOLUTIONS · STUDIO
   Magazine cover meets operating system.
   Warm paper · dark cinematic tiles · red as accent only.
   ========================================================= */

:root {
  /* base palette */
  --paper:        #efece4;
  --paper-warm:   #e6e2d6;
  --paper-cold:   #f6f4ed;
  --ink:          #0a0a0c;
  --ink-soft:     #14141a;
  --ink-mid:      #1e1e26;
  --mute:         #6e6e75;
  --low:          #a9a9b1;
  --line:         #d6d2c7;
  --line-soft:    #e3dfd4;
  --red:          #e51f2e;
  --red-deep:     #ad0014;
  --red-soft:     rgba(229,31,46,.16);

  --sans:         "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --mono:         "JetBrains Mono", "SFMono-Regular", Menlo, monospace;
  --serif:        "Instrument Serif", "Cormorant Garamond", Georgia, serif;

  --w-max:        1480px;
  --gutter:       clamp(16px, 3vw, 32px);
  --gap:          clamp(12px, 1.4vw, 20px);

  --r-card:       24px;
  --r-tile:       20px;
  --r-md:         16px;
  --r-sm:         10px;
  --r-pill:       999px;

  --ease:         cubic-bezier(.2,.9,.25,1);
  --ease-out:    cubic-bezier(.16,1,.3,1);

  --shadow-1:     0 1px 2px rgba(10,10,11,.04);
  --shadow-2:     0 14px 36px rgba(10,10,11,.07);
  --shadow-3:     0 30px 80px rgba(10,10,11,.12);

  /* "Paper on paper" — soft drop + top edge highlight. The highlight is a
     1px inset that gives the impression of light catching the top edge of
     the card, so it reads as a separate sheet of paper rather than a flat
     coloured block. Tuned to be barely perceptible. */
  --shadow-paper: 0 1px 2px rgba(20,15,5,.04),
                  0 10px 28px -14px rgba(20,15,5,.08),
                  inset 0 1px 0 rgba(255,255,255,.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--paper); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--red); color: #fff; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }

/* ─────────────── PAPER GRAIN ─────────────── */
.bg-noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 200;
  opacity: .035; mix-blend-mode: multiply;
  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='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ─────────────── TOP BAR ─────────────── */
.top {
  position: fixed; top: 14px; left: 14px; right: 14px;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 8px 10px 8px 18px;
  background: var(--ink);
  color: var(--paper-cold);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-2);
}
.top__brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600;
}
.top__mark {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--paper-cold);
  position: relative;
}
.top__mark::before, .top__mark::after {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  border-top-color: var(--red);
  border-bottom-color: var(--red);
}
.top__mark::after { inset: 11px; border-color: var(--red); border-top-color: transparent; border-bottom-color: transparent; }

.top__nav {
  display: inline-flex; gap: 2px;
  justify-self: end;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase;
}
.top__nav a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  color: rgba(239,236,228,.62);
  font-weight: 500;
  transition: color .2s, background .2s;
}
.top__nav a:hover, .top__nav a.is-active { color: var(--paper-cold); background: rgba(239,236,228,.08); }

.top__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  background: var(--red);
  color: #fff;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  transition: background .2s, transform .2s;
}
.top__cta:hover { background: var(--paper-cold); color: var(--ink); transform: scale(1.03); }
.top__cta svg { transition: transform .2s; }
.top__cta:hover svg { transform: translateX(3px); }

@media (max-width: 760px) { .top__nav { display: none; } .top { grid-template-columns: auto auto; } }

/* ─────────────── SHELL ─────────────── */
.shell { padding: 90px 14px 14px; }
.shell > * + * { margin-top: var(--gap); }

/* Centered content container — section() wraps blocks in .container.
   Uses the design tokens --w-max / --gutter (previously defined but unused). */
.container {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ─────────────── BUTTONS ─────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  background: var(--ink); color: var(--paper-cold);
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-1px); }
.btn svg { transition: transform .2s; }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper-cold); }
.btn--paper { background: var(--paper-cold); color: var(--ink); border-color: var(--paper-cold); }
.btn--paper:hover { background: var(--red); color: #fff; border-color: var(--red); }

.linkx {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink); font-weight: 600; font-size: 14px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--red);
}
.linkx::after { content: "→"; color: var(--red); transition: transform .25s; }
.linkx:hover::after { transform: translateX(5px); }

/* ─────────────── EYEBROW / META ─────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: ""; width: 22px; height: 1px; background: currentColor;
}
.eyebrow--soft { color: var(--mute); }

.metaline {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute);
  display: inline-flex; align-items: center; gap: 8px;
}
.metaline strong { color: var(--ink); font-weight: 600; }
.metaline .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #239a52; box-shadow: 0 0 8px #239a52;
}

/* ─────────────── HERO ─────────────── */
.hero {
  position: relative;
  background: var(--paper-cold);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-paper);
  padding: clamp(18px, 1.8vw, 28px) clamp(28px, 4vw, 72px) clamp(40px, 6vw, 72px);
  overflow: hidden;
}

.hero__masthead {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding-bottom: 24px;
  margin-bottom: clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute);
}
.hero__masthead strong { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) {
  .hero__masthead { grid-template-columns: 1fr 1fr; }
  .hero__mast-only-wide { display: none; }
}

.hero__h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(56px, 12vw, 220px);
  line-height: .86;
  letter-spacing: -.05em;
  color: var(--ink);
  max-width: 12ch;
}
.hero__h1 em {
  font-style: normal;
  background: linear-gradient(105deg, var(--red) 0%, var(--red) 50%, rgba(229,31,46,.4) 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero__h1 .word { display: inline-block; overflow: hidden; padding-bottom: .06em; vertical-align: top; }
.hero__h1 .word > span { display: inline-block; transform: translateY(110%); opacity: 0; transition: transform 1.1s var(--ease-out), opacity .8s; }
.hero__h1 .word > span.in { transform: translateY(0); opacity: 1; }

/* Hero with a big right-aligned logo aside (e.g. legal pages). */
.hero__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
.hero--haslogo .hero__head > * { margin: 0; }
.hero--haslogo .hero__head > * + * { margin-top: clamp(16px, 2vw, 28px); }
.hero__aside { justify-self: end; }
.hero__logo-xl {
  display: block;
  width: clamp(220px, 26vw, 460px);
  height: auto;
}
@media (max-width: 900px) {
  .hero__split { grid-template-columns: 1fr; }
  .hero__aside { justify-self: start; }
  .hero__logo-xl { width: clamp(160px, 44vw, 300px); }
}

.hero__row {
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(20px, 3vw, 48px);
  align-items: end;
}
.hero__lead {
  font-size: clamp(15px, 1.18vw, 18px);
  line-height: 1.55;
  max-width: 52ch;
  color: var(--ink);
}
.hero__lead strong { font-weight: 600; }
.hero__stat .n {
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 48px);
  letter-spacing: -.03em;
  line-height: 1;
}
.hero__stat .n em { font-style: normal; color: var(--red); }
.hero__stat .l {
  margin-top: 8px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute);
}
@media (max-width: 900px) { .hero__row { grid-template-columns: 1fr 1fr; } }

.hero__index {
  position: absolute;
  right: clamp(28px, 4vw, 72px);
  top: clamp(40px, 6vw, 100px);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute);
  text-align: right;
  display: flex; flex-direction: column; gap: 6px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}
.hero__index a { transition: color .2s; }
.hero__index a:hover { color: var(--red); }
.hero__index strong { color: var(--ink); font-weight: 600; }
@media (max-width: 980px) { .hero__index { display: none; } }

.hero__cta-row {
  display: inline-flex; gap: 12px; flex-wrap: wrap;
  margin-top: 36px;
}

/* ─────────────── BLOCKS ─────────────── */
.block {
  position: relative;
  background: var(--ink);
  color: var(--paper-cold);
  border-radius: var(--r-card);
  overflow: hidden;
  isolation: isolate;
}
.block--paper { background: var(--paper-cold); color: var(--ink); }
.block--warm { background: var(--paper-warm); color: var(--ink); }

/* ─────────────── FLOOR (LIVE STUDIO) ─────────────── */
.floor {
  position: relative;
  padding: 0;
  overflow: hidden;
}
.floor__hd {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 24px;
  padding: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 56px) 28px;
  border-bottom: 1px solid rgba(239,236,228,.1);
}
.floor__title {
  font-weight: 800;
  font-size: clamp(36px, 7vw, 112px);
  line-height: .9;
  letter-spacing: -.045em;
  max-width: 14ch;
  background: linear-gradient(110deg, var(--paper-cold) 0%, var(--paper-cold) 50%, rgba(239,236,228,.42) 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.floor__title em {
  font-style: normal;
  background: linear-gradient(110deg, var(--red) 0%, var(--red) 50%, rgba(229,31,46,.42) 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.floor__meta {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(239,236,228,.55);
  display: inline-flex; align-items: center; gap: 8px;
}
.floor__meta .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #2bd16d; box-shadow: 0 0 12px #2bd16d;
  animation: heartbeat 1.6s ease infinite;
}
@keyframes heartbeat {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .55; }
}

.floor__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: rgba(239,236,228,.08);
}
.floor__cell {
  background: var(--ink);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.cell-feed   { grid-column: span 7; min-height: 360px; }
.cell-pipe   { grid-column: span 5; min-height: 360px; }
.cell-chart  { grid-column: span 5; min-height: 260px; }
.cell-stat-1 { grid-column: span 3; min-height: 200px; }
.cell-stat-2 { grid-column: span 2; min-height: 200px; }
.cell-stat-3 { grid-column: span 2; min-height: 200px; }
.cell-roster { grid-column: span 12; min-height: 180px; padding: 32px clamp(28px, 4vw, 56px); }
@media (max-width: 1100px) {
  .cell-feed, .cell-pipe, .cell-chart, .cell-stat-1, .cell-stat-2, .cell-stat-3 { grid-column: span 12; }
}
.floor__cell-hd {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(239,236,228,.5);
}
.floor__cell-hd .pulse {
  display: inline-flex; align-items: center; gap: 6px;
  color: #2bd16d;
}
.floor__cell-hd .pulse .d {
  width: 6px; height: 6px; border-radius: 50%;
  background: #2bd16d; box-shadow: 0 0 8px #2bd16d;
  animation: heartbeat 1.6s ease infinite;
}

/* Live activity feed */
.feed {
  font-family: var(--mono); font-size: 12px;
  line-height: 1.85;
  max-height: 280px;
  overflow: hidden;
  position: relative;
  color: rgba(239,236,228,.7);
}
.feed::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px;
  background: linear-gradient(180deg, transparent, var(--ink));
}
.feed__l {
  display: grid; grid-template-columns: 72px 90px 1fr;
  gap: 12px;
  opacity: 0;
  animation: fadeUp .5s var(--ease-out) forwards;
}
.feed__t { color: rgba(239,236,228,.32); }
.feed__a { color: var(--red); font-weight: 600; }
.feed__m { color: var(--paper-cold); }
.feed__m .ok { color: #2bd16d; }
@keyframes fadeUp { from { transform: translateY(8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Pipeline */
.pipe {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 22px;
}
.pipe__step {
  background: rgba(239,236,228,.04);
  border: 1px solid rgba(239,236,228,.1);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  position: relative;
  transition: background .35s, border-color .35s;
}
.pipe__step.active {
  background: rgba(229,31,46,.16);
  border-color: var(--red);
  box-shadow: 0 0 24px rgba(229,31,46,.3);
}
.pipe__step .ic {
  width: 20px; height: 20px;
  margin: 0 auto 8px;
  color: rgba(239,236,228,.55);
  transition: color .3s;
}
.pipe__step.active .ic { color: var(--red); }
.pipe__step .nm { font-size: 11px; font-weight: 600; color: var(--paper-cold); }
.pipe__step .rl { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: rgba(239,236,228,.45); margin-top: 2px; }
.pipe__step__num { position: absolute; top: 6px; right: 8px; font-family: var(--mono); font-size: 9px; color: rgba(239,236,228,.35); }

/* Pipeline timeline */
.pipe__meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(239,236,228,.1);
  font-family: var(--mono); font-size: 11px;
  color: rgba(239,236,228,.55);
}
.pipe__meta .prog {
  flex: 1;
  height: 4px;
  background: rgba(239,236,228,.08);
  border-radius: 999px;
  margin: 0 16px;
  position: relative;
  overflow: hidden;
}
.pipe__meta .prog__bar {
  position: absolute; inset: 0 var(--p, 50%) 0 0;
  background: linear-gradient(90deg, transparent, var(--red));
  border-radius: 999px;
  transition: inset .8s var(--ease);
}

/* Chart */
.chart {
  position: relative;
  height: 200px;
  margin-top: 14px;
}
.chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart__axis {
  position: absolute; left: 0; right: 0; bottom: -4px;
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: .04em;
  color: rgba(239,236,228,.32);
}

/* Stat */
.stat {
  display: flex; flex-direction: column; gap: 12px;
  height: 100%;
}
.stat__lbl {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(239,236,228,.5);
}
.stat__val {
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -.035em;
  line-height: 1;
  margin-top: auto;
}
.stat__val em { font-style: normal; color: var(--red); }
.stat__delta {
  font-family: var(--mono); font-size: 11px;
  color: #2bd16d;
  display: inline-flex; align-items: center; gap: 4px;
}
.stat__delta::before { content: "↑"; }
.stat__delta--down { color: #ffa654; }
.stat__delta--down::before { content: "↓"; }

/* Roster strip */
.roster {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}
.roster__lbl {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(239,236,228,.5);
  display: flex; flex-direction: column; gap: 4px;
}
.roster__lbl strong { color: var(--paper-cold); font-weight: 600; }
.roster__avs {
  display: flex; align-items: center;
}
.av {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink-mid);
  border: 2px solid var(--ink);
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px;
  font-weight: 600; letter-spacing: .04em;
  color: var(--paper-cold);
  margin-left: -8px;
  position: relative;
  transition: transform .25s, z-index .25s;
  cursor: default;
}
.av:first-child { margin-left: 0; }
.av:hover { transform: translateY(-3px) scale(1.08); z-index: 5; }
.av::after {
  content: ""; position: absolute; bottom: 2px; right: 2px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #2bd16d; box-shadow: 0 0 6px #2bd16d;
  border: 2px solid var(--ink);
}
.av--red { background: var(--red); }
.roster__cta { color: var(--paper-cold); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; padding-bottom: 3px; border-bottom: 1px solid var(--red); }
.roster__cta::after { content: " →"; color: var(--red); }
@media (max-width: 760px) {
  .roster { grid-template-columns: 1fr; gap: 14px; text-align: left; }
}

/* ─────────────── SECTION HEAD ─────────────── */
.shead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  padding: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 56px) 28px;
}
.shead h2 {
  font-weight: 800;
  font-size: clamp(40px, 6.5vw, 96px);
  line-height: .92;
  letter-spacing: -.04em;
  max-width: 18ch;
}
.shead h2 em {
  font-style: normal;
  background: linear-gradient(110deg, var(--red) 0%, var(--red) 50%, rgba(229,31,46,.42) 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.shead h2::after {
  content: ""; display: inline-block;
  width: .16em; height: .16em;
  background: var(--red); border-radius: 2px;
  margin-left: .14em;
  transform: translateY(-.06em);
  vertical-align: middle;
}
.shead__sub {
  color: var(--mute); font-size: clamp(15px, 1.1vw, 18px); line-height: 1.55;
  max-width: 56ch;
}
.block--paper .shead__sub { color: var(--mute); }
.block .shead__sub { color: rgba(239,236,228,.62); }
@media (max-width: 900px) { .shead { grid-template-columns: 1fr; gap: 16px; } }

/* ─────────────── CAPABILITIES ─────────────── */
.caps {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}
.cap {
  position: relative;
  background: var(--ink);
  color: var(--paper-cold);
  border-radius: var(--r-tile);
  overflow: hidden;
  min-height: 380px;
  isolation: isolate;
  transition: transform .55s var(--ease);
  display: block;
}
.cap:hover { transform: translateY(-4px); }
.cap > canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; opacity: .55;
}
.cap::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 700px at 95% 100%, rgba(229,31,46,.5), transparent 60%),
    var(--ink-soft);
}
.cap::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.6) 90%);
}
.cap > * { position: relative; z-index: 2; }
.cap__word {
  position: absolute;
  top: clamp(20px, 2.4vw, 32px);
  left: clamp(20px, 2.4vw, 32px);
  right: clamp(20px, 2.4vw, 32px);
  font-weight: 800;
  font-size: clamp(56px, 8vw, 120px);
  line-height: .88;
  letter-spacing: -.045em;
  background: linear-gradient(105deg, #ffffff 0%, #ffffff 45%, rgba(255,255,255,.4) 80%, rgba(255,255,255,.18) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  pointer-events: none;
}
.cap__word em {
  font-style: normal;
  background: linear-gradient(105deg, var(--red) 0%, var(--red) 40%, rgba(229,31,46,.5) 75%, rgba(229,31,46,.18) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cap__foot {
  position: absolute;
  inset: auto clamp(20px, 2.4vw, 32px) clamp(20px, 2.4vw, 32px) clamp(20px, 2.4vw, 32px);
}
.cap__tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.cap__h {
  font-weight: 700; font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -.018em; line-height: 1.2;
  margin-bottom: 6px; color: var(--paper-cold);
  max-width: 28ch;
}
.cap__d {
  color: rgba(239,236,228,.65);
  font-size: 13px; line-height: 1.55;
  max-width: 46ch;
  margin-bottom: 14px;
}
.cap__tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.chip {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .04em;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(239,236,228,.06);
  border: 1px solid rgba(239,236,228,.12);
  color: rgba(239,236,228,.75);
}

.cap--lg { grid-column: span 7; min-height: 460px; }
.cap--md { grid-column: span 5; min-height: 460px; }
.cap--sm { grid-column: span 4; }
.cap--wide { grid-column: span 12; min-height: 320px; flex-direction: row; }
@media (max-width: 1000px) { .cap--lg, .cap--md, .cap--sm, .cap--wide { grid-column: span 12; } }

/* ─────────────── BUILDS (CASES) ─────────────── */
.builds {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
}
.build {
  position: relative;
  background: var(--ink);
  color: var(--paper-cold);
  border-radius: var(--r-tile);
  overflow: hidden;
  min-height: 460px;
  display: flex; flex-direction: column;
  isolation: isolate;
  transition: transform .55s var(--ease);
}
.build:hover { transform: translateY(-4px); }
.build > canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; opacity: .55;
}
.build::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 700px at 90% 95%, rgba(229,31,46,.55), transparent 60%),
    var(--ink-soft);
}
.build::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.7) 92%);
}
.build > * { position: relative; z-index: 2; }
.build__word {
  position: absolute;
  top: clamp(20px, 2.4vw, 32px);
  left: clamp(20px, 2.4vw, 32px);
  right: clamp(20px, 2.4vw, 32px);
  font-weight: 800;
  font-size: clamp(64px, 9vw, 140px);
  line-height: .88;
  letter-spacing: -.045em;
  background: linear-gradient(105deg, #ffffff 0%, #ffffff 45%, rgba(255,255,255,.4) 80%, rgba(255,255,255,.18) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  pointer-events: none;
}
.build__word em {
  font-style: normal;
  background: linear-gradient(105deg, var(--red) 0%, var(--red) 40%, rgba(229,31,46,.5) 75%, rgba(229,31,46,.2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.build__foot {
  margin-top: auto;
  padding: 28px;
}
.build__num {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(239,236,228,.4);
  margin-bottom: 12px;
}
.build__tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}
.build__h {
  font-weight: 700; font-size: clamp(18px, 1.8vw, 24px);
  letter-spacing: -.018em; line-height: 1.2;
  margin-bottom: 8px;
  max-width: 26ch;
}
.build__d {
  color: rgba(239,236,228,.65);
  font-size: 13px; line-height: 1.55;
  max-width: 44ch;
  margin-bottom: 16px;
}
.build__stats {
  display: flex; gap: 18px; flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid rgba(239,236,228,.12);
}
.build__stat .n {
  font-weight: 700; font-size: 18px;
  letter-spacing: -.02em;
}
.build__stat .n em { font-style: normal; color: var(--red); }
.build__stat .l {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(239,236,228,.45);
  margin-top: 2px;
}

.build--lg { grid-column: span 8; min-height: 540px; }
.build--md { grid-column: span 4; }
.build--sm { grid-column: span 4; }
.build--mid { grid-column: span 6; }
@media (max-width: 1000px) { .build--lg, .build--md, .build--sm, .build--mid { grid-column: span 12; } }

/* ─────────────── TEAM ─────────────── */
.team-headline {
  font-weight: 800;
  font-size: clamp(40px, 6.5vw, 96px);
  line-height: .92;
  letter-spacing: -.04em;
  max-width: 14ch;
  margin: 0 clamp(28px, 4vw, 56px);
  padding-bottom: 28px;
}

.team {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gap);
  margin: 0 clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px);
}
.featag {
  grid-column: span 4;
  background: var(--paper-warm);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-tile);
  box-shadow: var(--shadow-paper);
  padding: 28px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 280px;
  transition: transform .45s var(--ease), background .25s;
}
.featag:hover { transform: translateY(-3px); background: var(--ink); color: var(--paper-cold); }
.featag:hover .featag__id, .featag:hover .featag__role { color: rgba(239,236,228,.6); }
.featag:hover .featag__d { color: rgba(239,236,228,.65); }
.featag:hover .featag__status { color: #2bd16d; }
.featag__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 36px;
}
.featag__av {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--ink);
  display: grid; place-items: center;
  font-family: var(--sans);
  font-weight: 700; font-size: 18px;
  color: var(--paper-cold);
  letter-spacing: -.01em;
  transition: background .25s;
  position: relative;
}
.featag__av--red { background: var(--red); }
.featag:hover .featag__av { background: var(--red); }
.featag__id {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute);
}
.featag__status {
  position: absolute; top: 24px; right: 24px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 9px;
  letter-spacing: .14em; text-transform: uppercase;
  color: #239a52;
}
.featag__status .d {
  width: 5px; height: 5px; border-radius: 50%;
  background: #239a52; box-shadow: 0 0 6px #239a52;
}
.featag__nm {
  font-weight: 800;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -.025em;
  line-height: 1;
  margin-bottom: 6px;
}
.featag__role {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 14px;
  transition: color .25s;
}
.featag__d {
  font-size: 13px; line-height: 1.6;
  color: var(--mute);
  transition: color .25s;
}
@media (max-width: 1000px) { .featag { grid-column: span 6; } }
@media (max-width: 640px) { .featag { grid-column: span 12; } }

.team-table {
  background: var(--paper-cold);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-tile);
  box-shadow: var(--shadow-paper);
  overflow: hidden;
  margin: 0 clamp(28px, 4vw, 56px) clamp(36px, 5vw, 64px);
  font-family: var(--mono); font-size: 12px;
}
.team-table__hd, .team-table__row {
  display: grid;
  grid-template-columns: 50px 1fr 1.2fr 2fr 90px;
  gap: 16px;
  padding: 12px 24px;
  align-items: center;
}
.team-table__hd {
  background: var(--paper-warm);
  color: var(--mute);
  font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  border-bottom: 1px solid var(--line-soft);
}
.team-table__row {
  border-bottom: 1px solid var(--line-soft);
  transition: background .2s, color .2s;
  cursor: default;
}
.team-table__row:last-child { border-bottom: 0; }
.team-table__row:hover {
  background: var(--ink);
  color: var(--paper-cold);
}
.team-table__row:hover .ttid, .team-table__row:hover .ttrole, .team-table__row:hover .ttdesc { color: rgba(239,236,228,.6); }
.team-table__row:hover .ttname { color: var(--paper-cold); }
.ttid { color: var(--low); }
.ttname {
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  color: var(--ink); letter-spacing: -.01em;
}
.ttrole { color: var(--mute); text-transform: uppercase; letter-spacing: .08em; font-size: 10px; }
.ttdesc { color: var(--mute); font-family: var(--sans); font-size: 13px; }
.ttst {
  display: inline-flex; align-items: center; gap: 6px;
  color: #239a52;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  justify-self: end;
}
.ttst .d { width: 6px; height: 6px; border-radius: 50%; background: #239a52; box-shadow: 0 0 6px #239a52; }
@media (max-width: 900px) {
  .team-table__hd, .team-table__row { grid-template-columns: 50px 1fr 90px; }
  .h-role, .h-desc, .ttrole, .ttdesc { display: none; }
}

/* ─────────────── PROCESS / TERMINAL ─────────────── */
.proc {
  margin: 0;
}
.proc__win {
  background: var(--ink-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-tile);
  overflow: hidden;
  margin: 0 clamp(28px, 4vw, 56px) clamp(36px, 5vw, 64px);
  font-family: var(--mono); font-size: 13px;
}
.proc__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: rgba(239,236,228,.04);
  border-bottom: 1px solid rgba(239,236,228,.06);
  font-size: 11px;
  color: rgba(239,236,228,.5);
}
.proc__bar .d { width: 11px; height: 11px; border-radius: 50%; }
.proc__bar .d:nth-child(1) { background: #ff5f57; }
.proc__bar .d:nth-child(2) { background: #ffbd2e; }
.proc__bar .d:nth-child(3) { background: #28ca41; }
.proc__bar .nm { margin-left: 16px; color: var(--paper-cold); }
.proc__body { padding: 32px clamp(20px, 3vw, 36px); }
.proc__l {
  display: grid;
  grid-template-columns: 70px 140px 1fr;
  gap: 22px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(239,236,228,.07);
  align-items: start;
}
.proc__l:last-child { border-bottom: 0; }
.proc__step {
  color: var(--red); font-weight: 600;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.proc__cmd { color: var(--paper-cold); font-weight: 500; }
.proc__cmd::before { content: "$ "; color: rgba(239,236,228,.35); }
.proc__out {
  color: rgba(239,236,228,.7);
  font-family: var(--sans); font-size: 14px; line-height: 1.6;
}
.proc__out strong { color: var(--paper-cold); font-weight: 600; }
@media (max-width: 900px) { .proc__l { grid-template-columns: 1fr; gap: 6px; } }

/* ─────────────── BRIEF (CTA) ─────────────── */
.brief {
  position: relative;
  background: var(--ink);
  color: var(--paper-cold);
  border-radius: var(--r-card);
  overflow: hidden;
  padding: clamp(48px, 7vw, 120px) clamp(28px, 4vw, 72px);
  isolation: isolate;
}
.brief > canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; opacity: .55;
}
.brief::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1000px 800px at 95% 95%, rgba(229,31,46,.5), transparent 60%),
    var(--ink-soft);
}
.brief__tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px;
  background: rgba(239,236,228,.08);
  border: 1px solid rgba(239,236,228,.18);
  border-radius: var(--r-pill);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(239,236,228,.8);
  margin-bottom: 28px;
}
.brief__tag .d {
  width: 6px; height: 6px; border-radius: 50%;
  background: #2bd16d; box-shadow: 0 0 8px #2bd16d;
  animation: heartbeat 1.6s ease infinite;
}
.brief__title {
  font-weight: 800;
  font-size: clamp(64px, 13vw, 200px);
  line-height: .86;
  letter-spacing: -.05em;
  max-width: 13ch;
  background: linear-gradient(105deg, #ffffff 0%, #ffffff 50%, rgba(255,255,255,.4) 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: 24px;
}
.brief__title em {
  font-style: normal;
  background: linear-gradient(105deg, var(--red) 0%, var(--red) 50%, rgba(229,31,46,.4) 95%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brief__sub {
  font-size: clamp(16px, 1.2vw, 19px);
  color: rgba(239,236,228,.7);
  max-width: 60ch;
  line-height: 1.55;
  margin-bottom: clamp(24px, 4vw, 40px);
}
.brief__sub strong { color: var(--paper-cold); font-weight: 600; }
.brief__row {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding-top: clamp(20px, 3vw, 36px);
  border-top: 1px solid rgba(239,236,228,.14);
}
.brief__eva {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(239,236,228,.55);
}
.brief__eva__av {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--red);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 14px;
  font-family: var(--sans); letter-spacing: -.01em;
}
.brief__eva strong { color: var(--paper-cold); font-weight: 600; }

/* ─────────────── FAQ ─────────────── */
.faq-wrap {
  background: var(--paper-cold);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-paper);
  padding: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 56px);
}
.faq-wrap .shead { padding: 0 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.faq { max-width: 880px; }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 0;
  font-weight: 700;
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: -.02em;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary em { font-style: normal; color: var(--ink); }
.faq summary::after {
  content: "+"; font-family: var(--mono);
  width: 32px; height: 32px;
  border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center;
  color: var(--mute);
  transition: transform .3s, color .3s, border-color .3s, background .3s;
  flex-shrink: 0; margin-left: 16px;
  font-size: 16px;
}
.faq details[open] summary { color: var(--red); }
.faq details[open] summary em { color: var(--red); }
.faq details[open] summary::after {
  content: "−"; transform: rotate(180deg); color: #fff; background: var(--red); border-color: var(--red);
}
.faq__a {
  padding: 0 0 28px;
  color: var(--mute);
  line-height: 1.65;
  font-size: 15px;
  max-width: 70ch;
}

/* ─────────────── FOOTER ─────────────── */
.foot {
  background: var(--ink);
  color: var(--paper-cold);
  border-radius: var(--r-card);
  padding: clamp(48px, 7vw, 96px) clamp(28px, 4vw, 56px) clamp(28px, 4vw, 40px);
  position: relative;
  overflow: hidden;
}
.foot__word {
  font-weight: 800;
  font-size: clamp(64px, 14vw, 240px);
  line-height: .88;
  letter-spacing: -.05em;
  background: linear-gradient(105deg, rgba(239,236,228,.94) 0%, rgba(239,236,228,.6) 65%, rgba(239,236,228,.2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: clamp(36px, 5vw, 64px);
  pointer-events: none;
}
.foot__word em {
  font-style: normal;
  background: linear-gradient(105deg, var(--red) 0%, var(--red) 55%, rgba(229,31,46,.4) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(20px, 3vw, 48px);
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(239,236,228,.12);
}
.foot__about {
  color: rgba(239,236,228,.65);
  font-size: 14px; line-height: 1.55;
  max-width: 36ch;
}
.foot__about strong { color: var(--paper-cold); font-weight: 600; }
.foot__col h4 {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase;
  color: rgba(239,236,228,.4);
  margin-bottom: 18px;
}
.foot__col a {
  display: block;
  font-size: 13px;
  color: rgba(239,236,228,.65);
  padding: 6px 0;
  transition: color .2s, padding-left .2s;
}
.foot__col a:hover { color: var(--paper-cold); padding-left: 6px; }
.foot__base {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(239,236,228,.4);
  flex-wrap: wrap; gap: 12px;
}
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr 1fr; } }

/* ─────────────── REVEAL ─────────────── */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1s var(--ease-out); }
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; }
.rv-d3 { transition-delay: .24s; } .rv-d4 { transition-delay: .32s; }
.rv-d5 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .rv { opacity: 1 !important; transform: none !important; }
  .hero__h1 .word > span { transform: none !important; opacity: 1 !important; }
  /* Hide decorative breathing/pulsing accents that would still flicker briefly */
  .av .d, .featag__status .d, .top__claim em,
  .scroll-progress__bar,
  canvas[data-fx="net"] { animation: none !important; }
  /* Disable scroll-progress + scroll-dot active-jump for reduced-motion */
  .scroll-progress__bar { transition: none !important; }
}

.skip { position: absolute; left: -10000px; }
.skip:focus { left: 14px; top: 14px; padding: 10px 16px; background: var(--red); color: #fff; z-index: 1000; border-radius: var(--r-pill); }

/* ─────────────── HOVER HALO ON BLOCKS ─────────────── */
.cap, .build, .featag, .team-table__row {
  position: relative;
}

/* Section spacing inside blocks */
.section-pad { padding: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 56px); }

/* ═══════════ VISIBILITY POLISH + Z-INDEX ENFORCEMENT ═══════════ */

/* Make every gradient wordmark always readable on its right edge.
   Minimum opacity bumped from ~.20 to ~.42 across the board. */
.floor__title {
  background: linear-gradient(105deg, var(--paper-cold) 0%, var(--paper-cold) 50%, rgba(239,236,228,.7) 92%) !important;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.floor__title em {
  background: linear-gradient(105deg, var(--red) 0%, var(--red) 50%, rgba(229,31,46,.7) 92%) !important;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cap__word {
  background: linear-gradient(105deg, #ffffff 0%, #ffffff 50%, rgba(255,255,255,.62) 88%, rgba(255,255,255,.42) 100%) !important;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cap__word em {
  background: linear-gradient(105deg, var(--red) 0%, var(--red) 45%, rgba(229,31,46,.72) 80%, rgba(229,31,46,.45) 100%) !important;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.build__word {
  background: linear-gradient(105deg, #ffffff 0%, #ffffff 48%, rgba(255,255,255,.65) 85%, rgba(255,255,255,.45) 100%) !important;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.build__word em {
  background: linear-gradient(105deg, var(--red) 0%, var(--red) 45%, rgba(229,31,46,.7) 80%, rgba(229,31,46,.45) 100%) !important;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brief__title {
  background: linear-gradient(105deg, #ffffff 0%, #ffffff 55%, rgba(255,255,255,.65) 95%) !important;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brief__title em {
  background: linear-gradient(105deg, var(--red) 0%, var(--red) 55%, rgba(229,31,46,.65) 95%) !important;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.foot__word {
  background: linear-gradient(105deg, rgba(239,236,228,.95) 0%, rgba(239,236,228,.78) 60%, rgba(239,236,228,.5) 100%) !important;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.foot__word em {
  background: linear-gradient(105deg, var(--red) 0%, var(--red) 60%, rgba(229,31,46,.62) 100%) !important;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__h1 em {
  background: linear-gradient(105deg, var(--red) 0%, var(--red) 60%, rgba(229,31,46,.7) 100%) !important;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Z-INDEX ENFORCEMENT — canvas ALWAYS behind text on tiles */
.cap canvas, .build canvas, .brief > canvas, .heroblock > canvas {
  z-index: 0 !important;
  position: absolute;
  inset: 0;
}
.cap > *:not(canvas), .build > *:not(canvas), .brief > *:not(canvas), .heroblock > *:not(canvas) {
  position: relative;
  z-index: 3 !important;
}
.cap::after, .build::after { z-index: 1 !important; }
.cap::before, .build::before { z-index: 0 !important; }

/* Slightly stronger bottom darkening so text always reads */
.build::after {
  background: linear-gradient(180deg, transparent 22%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.88) 92%) !important;
}
.cap::after {
  background: linear-gradient(180deg, transparent 25%, rgba(0,0,0,.5) 65%, rgba(0,0,0,.8) 92%) !important;
}

/* Bigword z-index always above particles & gradient overlay */
.cap__word, .build__word { z-index: 3 !important; }

/* Subtle inner shadow under the words so they pop on busy particle bg */
.cap__word, .build__word, .brief__title, .floor__title {
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.4));
}

/* Foot word — same drop shadow trick */
.foot__word { filter: drop-shadow(0 1px 0 rgba(0,0,0,.5)); }

/* Hero title doesn't need shadow — light bg */

/* Ensure brief/foot content above their bg layers */
.brief > *:not(canvas) { position: relative; z-index: 2; }
.brief::before { z-index: 0 !important; }

/* ═══════════ WORDMARK FINAL FIX — mask-image clean edge fade ═══════════ */

/* Background-gradient stays SOLID across 95% then fades.
   Mask-image creates a clean right-edge fade independent of text length. */
.cap__word,
.build__word,
.brief__title,
.floor__title,
.foot__word {
  -webkit-mask-image: linear-gradient(95deg, #000 0%, #000 72%, rgba(0,0,0,.85) 88%, transparent 100%);
  mask-image: linear-gradient(95deg, #000 0%, #000 72%, rgba(0,0,0,.85) 88%, transparent 100%);
}

/* Solid backgrounds (no fade) — let the mask do the fade */
.cap__word {
  background: linear-gradient(95deg, #ffffff 0%, #ffffff 100%) !important;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}
.cap__word em {
  background: linear-gradient(95deg, var(--red) 0%, var(--red) 100%) !important;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent !important;
}

.build__word {
  background: linear-gradient(95deg, #ffffff 0%, #ffffff 100%) !important;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}
.build__word em {
  background: linear-gradient(95deg, var(--red) 0%, var(--red) 100%) !important;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent !important;
}

.floor__title {
  background: var(--paper-cold) !important;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent !important;
}
.floor__title em {
  background: var(--red) !important;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent !important;
}

.brief__title {
  background: #ffffff !important;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent !important;
}
.brief__title em {
  background: var(--red) !important;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent !important;
}

.foot__word {
  background: var(--paper-cold) !important;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent !important;
}
.foot__word em {
  background: var(--red) !important;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent !important;
}

/* Slightly smaller wordmark on small tiles so less gets clipped */
.cap--sm .cap__word, .build--sm .build__word {
  font-size: clamp(48px, 6.5vw, 96px);
}

/* Force tiles to have proper room — bring the wordmark inward slightly */
.cap__word, .build__word {
  right: clamp(20px, 2.4vw, 32px);
}

/* Brief title: no mask-fade since it's a structured 3-line headline */
.brief__title {
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* Process terminal — animated typing cursor */
.proc__cmd { position: relative; display: inline-block; }
.proc__cmd::after {
  content: "_";
  display: none;
  color: var(--red);
  margin-left: 4px;
  animation: blink 0.9s steps(1) infinite;
}
.proc__l.is-typing .proc__cmd::after { display: inline; }
@keyframes blink { 50% { opacity: 0; } }

/* ═══════════ SCROLL PROGRESS + SECTION DOTS ═══════════ */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: transparent;
  z-index: 1000;
  pointer-events: none;
}
.scroll-progress__bar {
  height: 100%;
  background: var(--red);
  width: 0%;
  transition: width .1s linear;
  box-shadow: 0 0 12px rgba(229,31,46,.6);
}

.section-dots {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex; flex-direction: column; gap: 14px;
  pointer-events: none;
}
.section-dots a {
  display: block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(10,10,12,.18);
  border: 1px solid transparent;
  cursor: pointer;
  pointer-events: auto;
  transition: background .25s, transform .25s, border-color .25s;
  position: relative;
}
.section-dots a::before {
  content: attr(data-label);
  position: absolute;
  right: 20px; top: 50%; transform: translateY(-50%) translateX(8px);
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink);
  background: var(--paper-cold);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  box-shadow: var(--shadow-1);
}
.section-dots a:hover::before { opacity: 1; transform: translateY(-50%) translateX(0); }
.section-dots a:hover { background: var(--ink); transform: scale(1.3); }
.section-dots a.is-active { background: var(--red); transform: scale(1.4); box-shadow: 0 0 12px rgba(229,31,46,.5); }

@media (max-width: 900px) { .section-dots { display: none; } }

/* Per-char inside em: each char gets the em's red gradient + text-clip */
.hero__h1 em .char {
  background: linear-gradient(105deg, var(--red) 0%, var(--red) 70%, rgba(229,31,46,.6) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent !important;
  color: transparent;
}
/* Non-em chars stay black */
.hero__h1 .word > span > .char {
  color: var(--ink);
}

/* ═══════════ FINAL FIX: Hero em — chars own the gradient, em is naked ═══════════ */

/* Reset em: no background, no clip, no transparent fill. Just red color as fallback. */
.hero__h1 em {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: var(--red) !important;
  color: var(--red) !important;
  font-style: normal;
}

/* Each char gets its own gradient + text-clip — single clipping pass */
.hero__h1 em .char {
  background: linear-gradient(105deg, var(--red) 0%, var(--red) 75%, rgba(229,31,46,.55) 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

/* Non-em chars stay black */
.hero__h1 .word > span > .char {
  color: var(--ink);
  background: none !important;
  -webkit-text-fill-color: var(--ink) !important;
}

/* ═══════════ NUCLEAR RESET — solid colors + mask-only edge fade ═══════════ */

/* Wordmarks: NO background-clip. Solid white/red text. Mask handles the edge fade. */
.cap__word,
.build__word,
.foot__word,
.floor__title,
.brief__title {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  color: #fff !important;
}

.cap__word em,
.build__word em,
.foot__word em,
.floor__title em,
.brief__title em {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--red) !important;
  font-style: normal;
}

/* Mask-image on the element does the soft edge fade */
.cap__word,
.build__word,
.foot__word {
  -webkit-mask-image: linear-gradient(95deg, #000 0%, #000 78%, rgba(0,0,0,.6) 92%, transparent 100%) !important;
  mask-image: linear-gradient(95deg, #000 0%, #000 78%, rgba(0,0,0,.6) 92%, transparent 100%) !important;
}
/* floor + brief titles don't get masked — they're full headlines that wrap multi-line */
.floor__title, .brief__title {
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* Hero em + chars: solid red, no clip:text gymnastics */
.hero__h1 em {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: var(--red) !important;
  color: var(--red) !important;
  font-style: normal;
}
.hero__h1 em .char {
  background: none !important;
  -webkit-background-clip: border-box !important;
  -webkit-text-fill-color: var(--red) !important;
  color: var(--red) !important;
}
.hero__h1 .word > span > .char {
  background: none !important;
  -webkit-text-fill-color: var(--ink) !important;
  color: var(--ink) !important;
}

/* Section-head H2 em (e.g. "What we build") — solid red, no clip */
.shead h2 em {
  background: none !important;
  -webkit-background-clip: border-box !important;
  -webkit-text-fill-color: var(--red) !important;
  color: var(--red) !important;
  font-style: normal;
}

/* ═══════════ LAYOUT FIX — wordmarks no longer overlap foot ═══════════ */

/* CAP tiles — taller + flex layout, no absolute overlap */
.cap {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  padding: clamp(28px, 3vw, 44px) !important;
  min-height: 520px !important;
}
.cap--lg { min-height: 560px !important; }
.cap--md { min-height: 540px !important; }
.cap--sm { min-height: 480px !important; }

.cap__word {
  position: absolute !important;
  top: clamp(28px, 3vw, 44px) !important;
  left: clamp(28px, 3vw, 44px) !important;
  right: clamp(28px, 3vw, 44px) !important;
  font-size: clamp(48px, 6.5vw, 96px) !important;
  line-height: .9 !important;
  /* Single-line, mask handles overflow */
  white-space: nowrap;
  overflow: hidden;
}
.cap--sm .cap__word { font-size: clamp(40px, 5vw, 72px) !important; }

.cap__foot {
  position: relative !important;
  inset: auto !important;
  margin-top: auto;
}

/* BUILD tiles — same treatment, bigger */
.build {
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  padding: 0 !important;
  min-height: 560px !important;
}
.build--lg { min-height: 620px !important; }
.build--md, .build--sm { min-height: 540px !important; }
.build--mid { min-height: 580px !important; }

.build__word {
  position: absolute !important;
  top: clamp(28px, 3vw, 44px) !important;
  left: clamp(28px, 3vw, 44px) !important;
  right: clamp(28px, 3vw, 44px) !important;
  font-size: clamp(56px, 8vw, 130px) !important;
  line-height: .9 !important;
  white-space: nowrap;
  overflow: hidden;
}
.build--sm .build__word, .build--md .build__word { font-size: clamp(48px, 6.5vw, 100px) !important; }

.build__foot {
  position: relative !important;
  margin-top: auto !important;
  padding: clamp(28px, 3vw, 44px) !important;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.4));
}

/* Make sure wordmark doesn't wrap — fade clipping handles long ones */
.cap__word, .build__word, .foot__word { word-break: keep-all; }

/* ═══════════ NO CUTOFF — Container queries scale fonts to tile width ═══════════ */

.cap, .build {
  container-type: inline-size;
  container-name: tile;
}

/* Font scales with tile width (cqi), capped at sensible max */
.cap__word {
  font-size: clamp(38px, 14cqi, 88px) !important;
  white-space: nowrap;
  overflow: visible;
}
.cap--lg .cap__word  { font-size: clamp(48px, 13cqi, 110px) !important; }
.cap--md .cap__word  { font-size: clamp(40px, 12cqi, 84px) !important; }
.cap--sm .cap__word  { font-size: clamp(36px, 16cqi, 68px) !important; }

.build__word {
  font-size: clamp(48px, 15cqi, 110px) !important;
  white-space: nowrap;
  overflow: visible;
}
.build--lg .build__word { font-size: clamp(56px, 13cqi, 130px) !important; }
.build--md .build__word { font-size: clamp(44px, 14cqi, 84px) !important; }
.build--sm .build__word { font-size: clamp(40px, 14cqi, 76px) !important; }
.build--mid .build__word { font-size: clamp(48px, 13cqi, 100px) !important; }

/* Soften the mask-fade so it's just stylistic, not hiding cutoff */
.cap__word, .build__word, .foot__word {
  -webkit-mask-image: linear-gradient(95deg, #000 0%, #000 86%, rgba(0,0,0,.7) 96%, rgba(0,0,0,.55) 100%) !important;
  mask-image: linear-gradient(95deg, #000 0%, #000 86%, rgba(0,0,0,.7) 96%, rgba(0,0,0,.55) 100%) !important;
}

/* ═══════════ BUILD TILES AS LINKS — clickable affordance ═══════════ */

a.build { cursor: pointer; }
a.build:hover { transform: translateY(-6px); }
a.build:hover .build__h { color: #fff; }

/* External link icon — appears on hover at top right */
a.build[target="_blank"]::before {
  content: "↗";
  position: absolute;
  top: clamp(20px, 2.4vw, 32px);
  right: clamp(20px, 2.4vw, 32px);
  z-index: 5;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(239,236,228,.1);
  border: 1px solid rgba(239,236,228,.18);
  color: rgba(239,236,228,.65);
  display: grid; place-items: center;
  font-family: var(--sans);
  font-size: 16px; font-weight: 600;
  transition: transform .3s var(--ease), background .25s, color .25s, border-color .25s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
a.build[target="_blank"]:hover::before {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translate(2px, -2px) scale(1.1);
}

/* Internal anchor — small arrow */
a.build[href^="#"]::before {
  content: "→";
  position: absolute;
  top: clamp(20px, 2.4vw, 32px);
  right: clamp(20px, 2.4vw, 32px);
  z-index: 5;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(239,236,228,.06);
  border: 1px solid rgba(239,236,228,.12);
  color: rgba(239,236,228,.55);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 600;
  transition: transform .3s var(--ease), background .25s, color .25s, border-color .25s;
  opacity: .8;
}
a.build[href^="#"]:hover::before {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  opacity: 1;
  transform: translateX(3px);
}

/* CTA hint at the bottom of each build */
.build__cta-hint {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 12px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  padding-top: 12px;
  border-top: 1px solid rgba(239,236,228,.1);
  width: max-content;
}
a.build:hover .build__cta-hint { color: #ffa3ad; }

/* ═══════════ FINAL POLISH: Descender room + harmonized BG ═══════════ */

/* Wordmarks: give descenders (g, y, p, q) room — overflow visible + line-height 1 + bottom padding */
.cap__word, .build__word, .foot__word, .floor__title, .brief__title, .hero__h1 {
  overflow: visible !important;
  line-height: 1 !important;
  padding-bottom: 0.12em;
}

/* Team block: use paper-cold instead of paper-warm — harmonizes with surrounding sections */
.block--warm { background: var(--paper-cold) !important; }

/* ═══════════ TERMINAL — no jump during typing ═══════════ */

/* Wider cmd column so longest command fits with cursor + breath */
.proc__l {
  grid-template-columns: 80px 200px 1fr !important;
  min-height: 56px;
}

/* Command line: never wrap */
.proc__cmd {
  white-space: nowrap;
}

/* Cursor: reserve space always — toggle only visibility */
.proc__cmd::after {
  content: "_" !important;
  display: inline !important;
  visibility: hidden !important;
  color: var(--red);
  margin-left: 4px;
}
.proc__l.is-typing .proc__cmd::after {
  visibility: visible !important;
  animation: blink 0.9s steps(1) infinite;
}

/* ═══════════ CARD BORDERS — subtle red outline for separation ═══════════ */

.cap, .build {
  border: 1px solid rgba(229,31,46,.18) !important;
  box-shadow: 0 0 0 1px rgba(229,31,46,.04), 0 12px 32px rgba(0,0,0,.25) !important;
  transition: transform .55s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease) !important;
}

.cap:hover, .build:hover {
  border-color: rgba(229,31,46,.55) !important;
  box-shadow: 0 0 0 1px rgba(229,31,46,.15), 0 20px 48px rgba(0,0,0,.4), 0 0 40px rgba(229,31,46,.12) !important;
}

a.cap:hover, a.build:hover {
  transform: translateY(-6px) !important;
}

/* ═══════════ DEPLOYING STATUS — amber pulse for in-flight agents ═══════════ */

/* ═══════════ FIX: hero__index doesn't overlap masthead ═══════════ */
.hero__index {
  top: clamp(120px, 14vw, 220px) !important;
  right: clamp(20px, 4vw, 72px) !important;
}
@media (max-width: 1300px) {
  .hero__index { display: none !important; }
}

/* ═══════════ FEATURED CARD ROTATION — Apple WWDC style ═══════════ */
.featag {
  transition: opacity .6s cubic-bezier(.4,0,.2,1),
              transform .7s cubic-bezier(.4,0,.2,1),
              filter .6s cubic-bezier(.4,0,.2,1),
              background .25s !important;
  will-change: opacity, transform, filter;
}
/* (legacy flipping rules neutralized — see canonical version below) */
.featag__av {
  transition: background .35s cubic-bezier(.4,0,.2,1), transform .35s;
}

/* ═══════════ HERO descender room — overflow visible after reveal ═══════════ */
.hero__h1 .word {
  overflow: hidden;
  padding-bottom: 0.18em !important;
}
/* After reveal animation completes, unclip so descenders show */
.hero__h1.revealed .word {
  overflow: visible !important;
}

/* ═══════════ FEATURED CARD ROTATION — Apple style, GPU-friendly ═══════════ */
/* Remove the expensive blur, use only opacity + translate3d */
.featag {
  transition: opacity .55s cubic-bezier(.4,0,.2,1),
              transform .65s cubic-bezier(.4,0,.2,1),
              background .25s !important;
  will-change: opacity, transform;
  filter: none !important;
}
/* (canonical flipping rules are below — these legacy rules removed) */

/* ═══════════ ROTATION FIX — kill transition during animation, no double ═══════════ */
.featag.flipping-out,
.featag.flipping-in {
  transition: none !important;
}
.featag.flipping-out {
  animation: featagSlideOut .5s cubic-bezier(.4,0,.2,1) forwards !important;
}
.featag.flipping-in {
  animation: featagSlideIn .7s cubic-bezier(.16,1,.3,1) forwards !important;
}
@keyframes featagSlideOut {
  0%   { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  100% { opacity: 0; transform: translate3d(0, -10px, 0) scale(.96); }
}
@keyframes featagSlideIn {
  0%   { opacity: 0; transform: translate3d(0, 14px, 0) scale(.96); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

/* ═══════════ FAQ FIX — kein space-between gap, plus zentriert ═══════════ */
.faq { margin-left: auto !important; margin-right: auto !important; }
.faq summary {
  justify-content: flex-start !important;
  gap: 16px;
}
/* Push the + icon to the right edge without justify-content gap on text */
.faq summary > * { flex-shrink: 0; }
.faq summary::after { margin-left: auto !important; }
/* Make sure text wraps as one block, not as space-distributed children */
.faq summary { white-space: normal; }

/* ═══════════ LOGO + CLAIM INTEGRATION ═══════════ */

/* Top bar — real logo + claim */
.top__logo {
  width: 28px; height: 28px;
  filter: invert(1);  /* black SVG → white for dark top bar */
  flex-shrink: 0;
}
.top__claim {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(239,236,228,.45);
  margin-left: 14px;
  padding-left: 14px;
  border-left: 1px solid rgba(239,236,228,.18);
  white-space: nowrap;
  font-weight: 500;
}
.top__claim em {
  color: var(--red);
  font-style: normal;
  font-weight: 600;
}
@media (max-width: 1200px) { .top__claim { display: none; } }

/* Hero masthead — brand inline with logo */
.hero__mast-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.hero__mast-logo {
  width: 48px; height: 48px;
  flex-shrink: 0;
}
.hero__mast-claim em {
  color: var(--red);
  font-style: normal;
  font-weight: 700;
}

/* Footer — big logo + claim row */
.foot__logo-row {
  display: flex; align-items: center; gap: 24px;
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(239,236,228,.1);
  flex-wrap: wrap;
}
.foot__logo {
  width: 64px; height: 64px;
  filter: invert(1);  /* black → white */
}
.foot__claim {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(239,236,228,.6);
  font-weight: 500;
}
.foot__claim em {
  color: var(--red);
  font-style: normal;
  font-weight: 700;
}
@media (max-width: 600px) {
  .foot__logo { width: 48px; height: 48px; }
  .foot__claim { font-size: 11px; }
}

/* Bump cache: claim should never break across letters */
.top__claim, .hero__mast-claim, .foot__claim {
  white-space: nowrap;
}

/* ═══════════ HERO REVEAL — no clip, opacity+slide only ═══════════ */
/* Apple-style: chars are never clipped. Opacity fade + small translate.
   This kills the "descender cut" issue during animation entirely. */
.hero__h1 .word {
  overflow: visible !important;
  padding-bottom: 0 !important;
}
.hero__h1 .word > span,
.hero__h1 em {
  overflow: visible !important;
}
.hero__h1 .char {
  /* Override inline transform from JS: smaller initial offset, no clip needed */
  display: inline-block;
}

/* ═══════════ SUB-PAGES — shared components ═══════════ */

/* Sub-page hero — slimmer than homepage hero */
.hero--sub {
  min-height: auto;
  padding-top: 0;
  padding-bottom: clamp(40px, 6vw, 80px);
}
.hero--sub .hero__masthead { margin-top: 0; padding-top: 0; }
.hero__h1--sub {
  font-size: clamp(48px, 8vw, 140px);
  max-width: 14ch;
  margin-top: 32px;
}
.hero__cta-row {
  display: inline-flex; gap: 12px; flex-wrap: wrap;
  margin-top: 36px;
}

/* Bullets */
.bullets {
  list-style: none;
  padding: 0;
  display: flex; flex-direction: column;
  gap: 14px;
}
.bullets li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}
.bullets li::before {
  content: "↘";
  position: absolute;
  left: 0; top: 0;
  color: var(--red);
  font-weight: 700;
}
.section--dark .bullets li { color: var(--paper-cold); }

/* Chips */
.chips-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 16px;
}
.chips-row .chip {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(10,10,12,.06);
  border: 1px solid rgba(10,10,12,.1);
  color: var(--ink);
}
.section--dark .chips-row .chip {
  background: rgba(239,236,228,.06);
  border-color: rgba(239,236,228,.12);
  color: var(--paper-cold);
}

/* Two-col */
.two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }

/* Muted text */
.muted {
  font-size: 13px;
  color: var(--mute);
  line-height: 1.55;
  margin-top: 16px;
}
.section--dark .muted { color: rgba(239,236,228,.55); }

/* Stat grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.stat-grid__cell {
  background: var(--bg-2, var(--paper-cold));
  border: 1px solid var(--line, var(--line-soft));
  border-radius: var(--r-md);
  box-shadow: var(--shadow-paper);
  padding: 28px 24px;
  text-align: left;
}
.section--dark .stat-grid__cell {
  background: rgba(239,236,228,.04);
  border-color: rgba(239,236,228,.1);
}
.stat-grid__n {
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 48px);
  letter-spacing: -.025em;
  line-height: 1;
  color: var(--ink);
}
.section--dark .stat-grid__n { color: var(--paper-cold); }
.stat-grid__l {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
}
.section--dark .stat-grid__l { color: rgba(239,236,228,.55); }
@media (max-width: 760px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .stat-grid { grid-template-columns: 1fr; } }

/* Pricing cards */
/* Numbered list */
.numbered-list {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: flex; flex-direction: column;
  gap: 16px;
  max-width: 64ch;
}
.numbered-list li {
  counter-increment: step;
  position: relative;
  padding-left: 56px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
}
.numbered-list li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: .12em;
  background: rgba(229,31,46,.08);
  border: 1px solid rgba(229,31,46,.25);
  border-radius: 999px;
  padding: 6px 12px;
}

/* Copy block */
.copy-block {
  max-width: 64ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
}
.copy-block p + p { margin-top: 1em; }
.copy-block strong { font-weight: 600; }
.section--dark .copy-block { color: var(--paper-cold); }
.section--dark .copy-block strong { color: #fff; }

/* Contact grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.contact-card {
  display: block;
  background: var(--paper-cold);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-paper);
  padding: 32px 28px;
  text-decoration: none;
  color: var(--ink);
  transition: background .25s, border-color .25s, transform .35s var(--ease), box-shadow .25s;
}
.contact-card:hover { box-shadow: 0 4px 12px rgba(20,15,5,.06), 0 24px 60px -20px rgba(20,15,5,.18); }
.contact-card:hover {
  background: var(--ink);
  color: var(--paper-cold);
  border-color: var(--ink);
  transform: translateY(-3px);
}
.contact-card:hover .contact-card__cta,
.contact-card:hover .contact-card__p { color: var(--paper-cold); }
.contact-card__icon {
  font-size: 28px;
  color: var(--red);
  margin-bottom: 18px;
}
.contact-card__h {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}
.contact-card__p {
  color: var(--mute);
  line-height: 1.55;
  font-size: 14px;
}
.contact-card__cta {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--red);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Brief form */
.brief-form {
  display: flex; flex-direction: column;
  gap: 20px;
  max-width: 720px;
}
.brief-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) { .brief-form__row { grid-template-columns: 1fr; } }
.brief-form label {
  display: flex; flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(239,236,228,.7);
  font-weight: 600;
}
.brief-form label small {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(239,236,228,.5);
  font-weight: 400;
  margin-top: 2px;
}
.brief-form input,
.brief-form textarea,
.brief-form select {
  background: #ece9df;            /* recessed: slightly darker than body paper */
  border: 1px solid rgba(20,15,5,.10);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
  transition: border-color .2s, background .2s;
}
.brief-form input::placeholder,
.brief-form textarea::placeholder { color: var(--mute); }
/* Keep the original dark-context style intact if the form ever appears inside .section--dark */
.section--dark .brief-form input,
.section--dark .brief-form textarea,
.section--dark .brief-form select {
  background: rgba(239,236,228,.06);
  border-color: rgba(239,236,228,.16);
  color: var(--paper-cold);
}
.brief-form input:focus,
.brief-form textarea:focus,
.brief-form select:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(239,236,228,.1);
}
.brief-form textarea { resize: vertical; min-height: 140px; }
.brief-form button {
  align-self: flex-start;
  margin-top: 12px;
}

/* Founder card */
.founder-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}
.founder-card__avatar {
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 56px;
  letter-spacing: -.02em;
  font-family: var(--sans);
}
.founder-card__body h3 {
  font-weight: 700;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.founder-card__role {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
  font-weight: 600;
}
.founder-card__body p {
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 14px;
}
.founder-card__body a {
  color: var(--red);
  border-bottom: 1px solid currentColor;
}
@media (max-width: 700px) {
  .founder-card { grid-template-columns: 1fr; gap: 24px; }
  .founder-card__avatar { margin: 0 auto; }
}

/* Legal block */
.legal-block {
  max-width: 72ch;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
}
.imprint__logo-row {
  margin: 0 0 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.imprint__logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 320px;
}
.legal-block h3,
.legal-block .h2--legal {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.018em;
  margin: 2.2em 0 .8em;
  color: var(--ink);
}
.legal-block h3:first-of-type,
.legal-block .h2--legal:first-of-type { margin-top: 0; }
.legal-block p { margin-bottom: 1em; }
.legal-block strong { font-weight: 600; }
.legal-block ul {
  padding-left: 24px;
  margin-bottom: 1em;
}
.legal-block ul li {
  margin-bottom: 6px;
}
.legal-block a {
  color: var(--red);
  border-bottom: 1px solid currentColor;
}

/* Team full grid */
.team--full {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ═══════════ SUB-PAGE CARD GRID — auto-fit, no broken columns ═══════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gap);
}
.cards-grid .cap,
.cards-grid .build {
  min-height: 380px;
  grid-column: auto !important;
  container-type: inline-size;
}

/* Related-case cards on service pages: lighter than .cap/.build, plain paper */
.related-case {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--paper-cold);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-tile);
  box-shadow: var(--shadow-paper);
  padding: 28px 26px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .25s var(--ease-out), box-shadow .25s;
}
.related-case:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20,15,5,.06), 0 24px 60px -20px rgba(20,15,5,.18);
}
.related-case__label {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--red); font-weight: 700;
}
.related-case__h {
  font-size: 19px; font-weight: 700; letter-spacing: -0.012em;
  color: var(--ink); margin: 4px 0 2px;
}
.related-case__d {
  font-size: 13px; color: var(--mute); line-height: 1.55;
  flex: 1;
}
.related-case__cta {
  margin-top: 12px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em; color: var(--red);
  font-weight: 700;
}

/* Cards-grid wordmark: scale down + force two-line stack so wordmarks like
   "Brand websites" / "Native mobile" don't overflow narrow cards. */
.cards-grid .cap__word {
  font-size: clamp(34px, 11cqi, 56px) !important;
  letter-spacing: -.032em !important;
  line-height: 0.98 !important;
  white-space: normal !important;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.cards-grid .cap__word > span,
.cards-grid .cap__word > em {
  display: block;
}

/* Use-case cards: editorial ghost-number (01, 02, 03…) as chapter marker.
   Outline-only so it reads as background-texture, not foreground text. */
.cap--usecase { overflow: hidden; }
.cap--usecase .cap__ghost {
  position: absolute;
  top: -18px;
  right: -6px;
  font-family: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(180px, 26cqi, 260px);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(225, 31, 46, 0.45);
  text-stroke: 2px rgba(225, 31, 46, 0.45);
  pointer-events: none;
  user-select: none;
  z-index: 1;
}
.cap--usecase .cap__foot { z-index: 2; position: relative; }
