/* ============================================================
   RSDLive — Brand-kit aligned redesign
   Identity: Barlow Condensed Black Italic / JetBrains Mono / Fraunces Italic
   Palette : Red #db3537 · Ink #0a0a0a · Paper #fafafa · Muted #737373
   ============================================================ */

:root {
  /* Brand palette (locked to brand-kit spec) */
  --red: #db3537;
  --red-bright: #ee4448;   /* hover tint, kept close to brand */
  --ink: #0a0a0a;
  --paper: #fafafa;
  --muted: #737373;

  /* Working tones derived from the brand palette */
  --ink-2: #141414;        /* one notch up from ink */
  --ink-3: #1c1c1c;        /* card surfaces on ink */
  --line-dk: #2a2a2a;      /* hairlines on ink */
  --line-dk-2: #3a3a3a;    /* hairlines, brighter */
  --ink-dim: #a8a8a8;      /* secondary text on ink */
  --ink-faint: #5a5a5a;    /* tertiary text on ink */
  --rule: #e5e5e5;         /* hairlines on paper (matches brand sheet) */
  --paper-2: #f1f1f1;      /* card surface on paper */
  --paper-3: #ebebeb;      /* deeper paper surface */

  /* Type stack */
  --display: 'Barlow Condensed', Impact, sans-serif;   /* wordmark / headlines — 900 italic */
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --serif: 'Fraunces', 'Times New Roman', serif;       /* editorial italic accent */

  /* Spec */
  --maxw: 1320px;
  --gutter: 48px;
  --pulse: 1.6s;           /* brand-kit pulse interval */
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 14.5px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--red); color: var(--paper); }

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--paper); color: var(--ink);
  padding: 8px 16px; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.25em; text-transform: uppercase; z-index: 999;
}
.skip-link:focus { left: 8px; }

/* Grain overlay */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: 0.045;
  background-image: 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'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
  mix-blend-mode: overlay;
}

/* Brand-kit pulse — 1 → 0.35 → 1 at 1.6s */
@keyframes brand-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ============================================================
   Status bar
   ============================================================ */
.status-bar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #000;
  border-bottom: 1px solid var(--line-dk);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding: 10px 28px;
  white-space: nowrap;
  overflow: hidden;
}
.status-bar__inner { display: flex; align-items: center; gap: 16px; }
.status-bar .dot {
  display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px rgba(219,53,55,0.6);
  animation: brand-pulse var(--pulse) ease-in-out infinite;
}
.status-bar__sep { color: var(--ink-faint); font-weight: 700; }
.status-bar__label em { color: var(--red); font-style: normal; font-weight: 700; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid var(--line-dk);
  background: var(--ink);
  position: relative;
  z-index: 80;
}
.logo { display: inline-flex; align-items: center; height: 40px; }
.logo__mark { height: 40px; width: auto; display: block; }
.logo__dot { animation: brand-pulse var(--pulse) ease-in-out infinite; transform-origin: center; }

.nav {
  display: flex; align-items: center;
  gap: 32px;
  font-family: var(--mono); font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.nav a {
  position: relative;
  color: var(--ink-dim);
  padding: 6px 0;
  transition: color .2s ease;
}
.nav a:hover { color: var(--paper); }
.nav__num {
  color: var(--ink-faint);
  margin-right: 8px;
  font-weight: 700;
}
.nav a:hover .nav__num { color: var(--red); }
.nav__cta {
  color: var(--paper) !important;
  border: 1px solid var(--paper);
  padding: 10px 18px !important;
  letter-spacing: 0.24em;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.nav__cta:hover {
  background: var(--red);
  border-color: var(--red);
  color: var(--paper) !important;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 96px 32px 64px;
  overflow: hidden;
  background: var(--ink);
  min-height: calc(100vh - 80px);
  display: flex; flex-direction: column;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--line-dk) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-dk) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -1px -1px;
  opacity: 0.45;
  mask-image: radial-gradient(ellipse at center, black 0%, black 50%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, black 50%, transparent 90%);
  pointer-events: none;
}

/* Corner meta */
.hero__meta {
  position: absolute;
  display: flex; flex-direction: column;
  font-family: var(--mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  line-height: 1.4;
  gap: 4px;
  z-index: 2;
}
.hero__meta-val { color: var(--paper); font-weight: 700; letter-spacing: 0.2em; }
.hero__meta-val.pulse { color: var(--red); animation: brand-pulse var(--pulse) ease-in-out infinite; }
.hero__meta--tl { top: 32px; left: 32px; }
.hero__meta--tr { top: 32px; right: 32px; align-items: flex-end; }
.hero__meta--bl { bottom: 32px; left: 32px; }
.hero__meta--br { bottom: 32px; right: 32px; align-items: flex-end; }

.hero__inner {
  position: relative;
  z-index: 3;
  max-width: var(--maxw);
  width: 100%;
  margin: auto;
  padding: 16px 0;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line-dk-2);
  background: rgba(255,255,255,0.02);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 40px;
}
.hero__eyebrow-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px rgba(219,53,55,0.7);
  animation: brand-pulse var(--pulse) ease-in-out infinite;
}

/* Headline — Barlow Condensed Black Italic, brand-kit signature */
.hero__headline {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(64px, 11vw, 168px);
  line-height: 0.85;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 56px;
}
.hero__headline .line {
  display: block;
  position: relative;
  padding-left: 90px;
  animation: hero-line-in 1s cubic-bezier(.2,.7,.2,1) backwards;
}
.hero__headline .line:nth-child(1) { animation-delay: .05s; }
.hero__headline .line:nth-child(2) { animation-delay: .15s; }
.hero__headline .line:nth-child(3) { animation-delay: .25s; }
.hero__headline .line:nth-child(4) { animation-delay: .35s; }
.hero__headline .ord {
  position: absolute;
  left: 0; top: 0.22em;
  font-family: var(--mono);
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--red);
}
.hero__headline em {
  font-style: italic;
  color: var(--red);
}
.hero__headline .hero__air {
  position: relative;
}
.hero__headline .hero__period {
  display: inline-block;
  color: var(--red);
  transform: translateY(-0.05em);
}

@keyframes hero-line-in {
  from { opacity: 0; transform: translateY(20px) skewX(-2deg); }
  to   { opacity: 1; transform: translateY(0) skewX(0); }
}

/* Hero two-column lower band */
.hero__cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line-dk);
}
.hero__lede {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-dim);
  max-width: 56ch;
}
.hero__lede-em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--paper);
  display: inline;
}
.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: flex-end;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all .18s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--red);
  color: var(--paper);
  border-color: var(--red);
}
.btn--primary:hover {
  background: var(--red-bright);
  border-color: var(--red-bright);
  transform: translateX(2px);
}
.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-dk-2);
}
.btn--ghost:hover {
  border-color: var(--paper);
  background: rgba(255,255,255,0.04);
}
.btn--lg { padding: 18px 28px; font-size: 12px; }
.btn__arrow { transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* Paper-section button variants */
.paper .btn--ghost {
  color: var(--ink);
  border-color: var(--ink);
}
.paper .btn--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Timing strip in hero */
.timing-strip {
  border: 1px solid var(--line-dk-2);
  background: rgba(0,0,0,0.4);
  padding: 18px 22px;
  font-family: var(--mono);
  position: relative;
}
.timing-strip__label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  font-weight: 500;
}
.timing-strip__row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}
.lap {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
}
.lap__pos { color: var(--red); font-weight: 700; }
.lap__num { color: var(--paper); font-weight: 700; }
.lap__bar {
  height: 1px;
  background: linear-gradient(to right, var(--line-dk-2), transparent);
}
.lap__time { color: var(--paper); font-weight: 500; }
.lap:first-child .lap__time { color: var(--red); }

/* Scroll cue */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 9px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--ink-faint);
  z-index: 2;
}
.hero__scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--line-dk-2), transparent);
  animation: scroll-pulse 2.4s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* ============================================================
   Marquee — paper-inverted strip, chapter break
   ============================================================ */
.marquee {
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 42px;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  animation: marquee-scroll 40s linear infinite;
  width: max-content;
}
.marquee__track span { display: inline-block; }
.marquee__sep {
  color: var(--red);
  font-size: 18px;
  transform: translateY(-6px);
  font-style: normal;
  font-family: var(--mono);
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   Section: shared head
   ============================================================ */
.section {
  padding: 120px 32px 96px;
  max-width: 100%;
  position: relative;
}
.section__head {
  max-width: var(--maxw);
  margin: 0 auto 80px;
  position: relative;
}
.section__head-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}
.section__num {
  color: var(--red);
  font-weight: 700;
}
.section__rule {
  flex: 0 0 auto;
  width: 80px;
  height: 1px;
  background: currentColor;
  opacity: 0.4;
}
.section__kicker { color: var(--muted); }
.section__head--dark .section__kicker { color: var(--ink-dim); }

.section__title {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(64px, 9.5vw, 144px);
  line-height: 0.85;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.section__title em {
  color: var(--red);
  font-style: italic;
}
.section__title-mark {
  color: var(--red);
  display: inline-block;
  transform: translateY(-0.05em);
}

.section__sub {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  max-width: 64ch;
  margin-bottom: 32px;
}
.section__sub .fraunces {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  font-weight: 400;
}
.section__sub-link {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 22px;
  color: var(--red);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.section__sublogo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 100%;
  background: transparent;
  margin-top: 12px;
}


/* ============================================================
   Section: SERVICES (paper overview)
   ============================================================ */
.section--services {
  border-bottom: 1px solid var(--ink);
}
.services-grid {
  max-width: var(--maxw);
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.service-card {
  min-height: 280px;
  padding: 32px 28px 30px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transition: background .2s ease, color .2s ease;
}
.service-card:hover { background: var(--paper-2); }
.service-card--featured {
  background: var(--ink);
  color: var(--paper);
}
.service-card--featured:hover { background: var(--ink-2); }
.service-card__num {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  padding: 4px 10px;
  border: 1px solid var(--red);
}
.service-card h3 {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 34px;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-top: auto;
}
.service-card h3 em {
  color: var(--red);
  font-style: italic;
}
.service-card p {
  font-family: var(--mono);
  font-size: 12.75px;
  line-height: 1.65;
  color: var(--muted);
}
.service-card--featured p { color: var(--ink-dim); }
.service-callout {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.6fr 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 26px 28px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.service-callout:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
}
.service-callout__label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
}
.service-callout:hover .service-callout__label { color: var(--paper); }
.service-callout strong {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.service-callout__arrow {
  font-family: var(--mono);
  font-size: 28px;
  color: var(--red);
  transition: transform .2s ease, color .2s ease;
}
.service-callout:hover .service-callout__arrow {
  color: var(--paper);
  transform: translate(4px, -4px);
}

/* ============================================================
   Section: PRODUCTION (paper)
   ============================================================ */
.paper {
  background: var(--paper);
  color: var(--ink);
}
.paper .section__sub { color: #1c1c1c; }

.section--production {
  border-bottom: 1px solid var(--rule);
}

.prod-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}
.prod-card {
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 36px 32px 32px;
  display: flex; flex-direction: column;
  background: var(--paper);
  position: relative;
  transition: background .2s ease;
}
.prod-card:hover { background: var(--paper-2); }
.prod-card--featured {
  background: var(--ink);
  color: var(--paper);
}
.prod-card--featured:hover { background: var(--ink-2); }
.prod-card__top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.prod-card__tag { color: var(--muted); }
.prod-card--featured .prod-card__tag { color: var(--ink-dim); }
.prod-card__badge {
  background: var(--red);
  color: var(--paper);
  padding: 6px 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
}
.prod-card__title {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 44px;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.prod-card__title em {
  color: var(--red);
  font-style: italic;
}
.prod-card--featured .prod-card__title em { color: var(--red); }
.prod-card__desc {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 28px;
  max-width: 42ch;
}
.prod-card--featured .prod-card__desc { color: var(--ink-dim); }
.prod-card__list {
  list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}
.prod-card__list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.prod-card--featured .prod-card__list li { border-color: var(--line-dk); }
.prod-card__bullet { color: var(--red); flex: 0 0 auto; font-weight: 700; }
.prod-card__foot { margin-top: auto; padding-top: 20px; border-top: 1px solid var(--ink); }
.prod-card--featured .prod-card__foot { border-color: var(--paper); }
.prod-card__price {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ink);
}
.prod-card--featured .prod-card__price { color: var(--paper); }

/* ============================================================
   Section: TIMING (ink)
   ============================================================ */
.section--timing {
  background: var(--ink);
  color: var(--paper);
}
.timing-grid {
  max-width: var(--maxw);
  margin: 0 auto 64px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-dk-2);
  border-left: 1px solid var(--line-dk-2);
}
.timing-card {
  border-right: 1px solid var(--line-dk-2);
  border-bottom: 1px solid var(--line-dk-2);
  padding: 40px 36px 36px;
  background: var(--ink);
  position: relative;
  transition: background .2s ease;
}
.timing-card:hover { background: var(--ink-2); }
.timing-card__num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
  padding: 4px 10px;
  border: 1px solid var(--red);
}
.timing-card h3 {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 38px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--paper);
}
.timing-card p {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-dim);
  max-width: 48ch;
}

/* Leaderboard demo */
.leaderboard {
  max-width: var(--maxw);
  margin: 0 auto;
  border: 1px solid var(--line-dk-2);
  background: #000;
  overflow: hidden;
}
.leaderboard__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 22px;
  background: var(--ink-2);
  border-bottom: 1px solid var(--line-dk-2);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}
.leaderboard__head-label { color: var(--ink-dim); }
.leaderboard__head-label em {
  font-style: normal;
  color: var(--red);
  margin: 0 6px;
}
.leaderboard__live {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--red);
  font-weight: 700;
  letter-spacing: 0.32em;
}
.leaderboard__livedot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px rgba(219,53,55,0.7);
  animation: brand-pulse var(--pulse) ease-in-out infinite;
}
.lb-row {
  display: grid;
  grid-template-columns: 60px 80px 1fr 140px 120px;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line-dk);
  font-family: var(--mono);
  font-size: 13px;
}
.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: rgba(219,53,55,0.04); }
.lb-pos {
  font-weight: 700;
  color: var(--red);
  font-size: 14px;
  letter-spacing: 0.04em;
}
.lb-num { color: var(--paper); font-weight: 700; letter-spacing: 0.04em; }
.lb-name {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--paper);
}
.lb-lap { color: var(--paper); font-weight: 500; letter-spacing: 0.04em; }
.lb-gap {
  color: var(--ink-dim);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: right;
}
.lb-row:first-child .lb-gap { color: var(--red); font-weight: 700; }

/* ============================================================
   Section: SOFTWARE (ink continuation)
   ============================================================ */
.section--software {
  background: var(--ink);
  color: var(--paper);
  padding-top: 80px;
}

.cap-grid {
  max-width: var(--maxw);
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line-dk-2);
  border-left: 1px solid var(--line-dk-2);
}
.cap-card {
  border-right: 1px solid var(--line-dk-2);
  border-bottom: 1px solid var(--line-dk-2);
  padding: 40px 32px 36px;
  background: var(--ink);
  transition: background .2s ease;
  position: relative;
}
.cap-card:hover { background: var(--ink-2); }
.cap-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width .3s ease;
}
.cap-card:hover::before { width: 100%; }
.cap-card__head {
  margin-bottom: 28px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.cap-card__id { color: var(--red); }
.cap-card__name {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 38px;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--paper);
}
.cap-card__name em {
  color: var(--red);
  font-style: italic;
}
.cap-card__desc {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-dim);
}

/* SpeedTools destination */
.speedtools {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 0;
  border: 1px solid var(--red);
  background: linear-gradient(135deg, rgba(219,53,55,0.06), transparent 60%);
  transition: background .25s ease, transform .25s ease;
  position: relative;
  overflow: hidden;
}
.speedtools::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  transform: translateX(-100%);
  transition: transform .35s cubic-bezier(.22,.7,.18,1);
  z-index: 0;
}
.speedtools:hover::after { transform: translateX(0); }
.speedtools > * { position: relative; z-index: 1; }
.speedtools__left {
  padding: 40px;
  border-right: 1px solid var(--red);
  display: flex; flex-direction: column; gap: 16px;
}
.speedtools__label {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
}
.speedtools:hover .speedtools__label { color: var(--paper); }
.speedtools__brand {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 64px;
  line-height: 0.9;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--paper);
}
.speedtools__brand-tld { color: var(--red); }
.speedtools:hover .speedtools__brand-tld { color: var(--paper); }
.speedtools__url {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-top: auto;
}
.speedtools:hover .speedtools__url { color: var(--paper); }
.speedtools__right {
  padding: 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 24px;
}
.speedtools__right p {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-dim);
}
.speedtools__right p em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--paper);
}
.speedtools:hover .speedtools__right p,
.speedtools:hover .speedtools__right p em { color: var(--paper); }
.speedtools__cta {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  padding-top: 18px;
  border-top: 1px solid var(--red);
}
.speedtools:hover .speedtools__cta { color: var(--paper); border-color: var(--paper); }
.speedtools__arrow { transition: transform .25s ease; font-size: 16px; }
.speedtools:hover .speedtools__arrow { transform: translate(4px, -4px); }

/* ============================================================
   CTA / Contact (paper)
   ============================================================ */
.cta {
  padding: 120px 32px;
  position: relative;
}
.cta__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
  border-top: 2px solid var(--ink);
  padding-top: 56px;
}
.cta__lefthand { position: relative; }
.cta__pretitle {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 24px;
  padding: 6px 12px;
  border: 1px solid var(--red);
}
.cta__title {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(56px, 7.5vw, 112px);
  line-height: 0.88;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--ink);
}
.cta__title em {
  color: var(--red);
  font-style: italic;
}
.cta__period { color: var(--red); display: inline-block; transform: translateY(-0.05em); }
.cta__righthand {
  display: flex; flex-direction: column; gap: 32px;
  padding-top: 16px;
}
.cta__lede {
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.75;
  color: #1c1c1c;
  max-width: 48ch;
}
.cta__lede .fraunces {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--ink);
}
.cta__buttons {
  display: flex; flex-wrap: wrap; gap: 16px;
}
.cta__signal {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.cta__signal-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  animation: brand-pulse var(--pulse) ease-in-out infinite;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 32px 32px;
  border-top: 1px solid var(--line-dk);
}
.footer__top {
  max-width: var(--maxw);
  margin: 0 auto 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dk);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.footer__logo-link {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.footer__mark {
  height: 44px;
  width: auto;
  display: block;
}
.footer__tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.footer__cols {
  max-width: var(--maxw);
  margin: 0 auto 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.footer__col {
  display: flex; flex-direction: column; gap: 12px;
}
.footer__head {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}
.footer__col a {
  font-family: var(--display);
  font-weight: 900;
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--paper);
  transition: color .15s ease;
}
.footer__col a:hover { color: var(--red); }

.footer__base {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line-dk);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.footer__sig {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink-dim);
}
.footer__sig-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  animation: brand-pulse var(--pulse) ease-in-out infinite;
}

/* ============================================================
   Responsive — small screens
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: 1fr; }
  .prod-card { border-left: 1px solid var(--ink); }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .speedtools { grid-template-columns: 1fr; }
  .speedtools__left { border-right: none; border-bottom: 1px solid var(--red); }
  .cta__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__cols { grid-template-columns: 1fr; gap: 32px; }
  .hero__cta-row { justify-content: flex-start; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  :root { --gutter: 24px; }
  .status-bar { padding: 10px 16px; font-size: 9.5px; letter-spacing: 0.2em; }
  .status-bar__inner { gap: 10px; }
  .site-header { padding: 18px 20px; }
  .logo__mark { height: 32px; }
  .nav { gap: 0; font-size: 10px; letter-spacing: 0.22em; }
  .nav a:not(.nav__cta) { display: none; }
  .nav__cta { padding: 10px 14px !important; font-size: 10px; letter-spacing: 0.2em; }
  .hero { padding: 64px 20px 48px; min-height: auto; }
  .hero__meta { font-size: 9px; letter-spacing: 0.2em; }
  .hero__meta--tl, .hero__meta--bl { left: 20px; }
  .hero__meta--tr, .hero__meta--br { right: 20px; }
  .hero__meta--tl, .hero__meta--tr { top: 20px; }
  .hero__meta--bl, .hero__meta--br { bottom: 20px; }
  .hero__headline { font-size: clamp(56px, 16vw, 96px); }
  .hero__headline .line { padding-left: 0; }
  .hero__headline .ord { display: none; }
  .hero__scroll { display: none; }
  .timing-strip__row { grid-template-columns: 1fr; gap: 12px; }
  .marquee__track { font-size: 30px; gap: 28px; }
  .section { padding: 72px 20px 56px; }
  .section__head { margin-bottom: 48px; }
  .section__title { font-size: clamp(56px, 14vw, 80px); }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 220px; padding: 28px 22px; }
  .service-callout { grid-template-columns: 1fr; padding: 24px 22px; }
  .cap-grid { grid-template-columns: 1fr; }
  .prod-card__title { font-size: 36px; }
  .timing-card { padding: 28px 22px; }
  .timing-card h3, .cap-card__name { font-size: 30px; }
  .leaderboard__head { padding: 12px 14px; flex-wrap: wrap; gap: 8px; }
  .lb-row { grid-template-columns: 36px 56px 1fr 84px; padding: 12px 14px; gap: 6px; font-size: 11.5px; }
  .lb-gap { grid-column: 1 / -1; text-align: left; padding-top: 4px; padding-left: 100px; }
  .lb-name { font-size: 16px; }
  .speedtools__left, .speedtools__right { padding: 28px 22px; }
  .speedtools__brand { font-size: 48px; }
  .cta { padding: 72px 20px; }
  .cta__inner { padding-top: 32px; }
  .cta__title { font-size: clamp(48px, 13vw, 84px); }
  .footer { padding: 48px 20px 24px; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__col a { font-size: 18px; }
  .footer__base { flex-direction: column; align-items: flex-start; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .marquee__track { animation: none; }
}
