:root {
  --black: #080808;
  --panel: #101010;
  --panel-2: #151515;
  --ink: #f1ece8;
  --muted: #9d9693;
  --line: #2a2828;
  --red: #ff2b2b;
  --dark-red: #8e1111;
  --mono: "IBM Plex Mono", monospace;
  --sans: "Space Grotesk", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--black);
  font-family: var(--sans);
  overflow-x: hidden;
}

::selection { color: #fff; background: var(--red); }
a { color: inherit; text-decoration: none; }
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  z-index: 20;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.95' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

.site-header {
  height: 76px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 4vw;
  position: absolute;
  z-index: 10;
  width: 100%;
}
.brand { display: flex; align-items: center; gap: 14px; width: max-content; }
.brand-mark, .footer-mark {
  font: 700 18px/1 var(--sans);
  letter-spacing: -3px;
}
.brand-mark span, .footer-mark span { color: var(--red); }
.brand-name { font: 500 12px/1 var(--mono); letter-spacing: .08em; }
nav { display: flex; gap: 32px; }
nav a {
  color: var(--muted);
  font: 500 10px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: color .2s;
}
nav a:hover { color: var(--red); }
.status {
  justify-self: end;
  color: var(--muted);
  font: 500 10px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 12px var(--red);
  margin-right: 8px;
  animation: pulse 2s infinite;
}

.conversation-intro {
  min-height: 720px;
  padding: 156px 8vw 90px;
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(480px, 1.2fr);
  gap: 9vw;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(255,255,255,.045) 50%, transparent 50.1%),
    radial-gradient(circle at 78% 38%, rgba(180, 0, 0, .13), transparent 30%);
}
.conversation-meta h2 {
  font-size: clamp(48px, 5.8vw, 86px);
}
.conversation-note {
  max-width: 430px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.conversation-thread {
  position: relative;
  padding-left: 38px;
}
.conversation-thread::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 16px;
  bottom: 45px;
  width: 1px;
  background: linear-gradient(var(--red), #3a1515 72%, transparent);
}
.message {
  border: 1px solid var(--line);
  background: rgba(13, 13, 13, .86);
  padding: 25px 28px 29px;
  position: relative;
}
.message + .message { margin-top: 18px; }
.message::before {
  content: "";
  position: absolute;
  left: -38px;
  top: 29px;
  width: 33px;
  height: 1px;
  background: #531a1a;
}
.message-response {
  margin-left: 6vw;
  border-color: #5b1d1d;
  background: linear-gradient(105deg, rgba(38, 9, 9, .9), rgba(13, 10, 10, .9));
}
.message header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.speaker-dot {
  width: 7px;
  height: 7px;
  border: 1px solid #77706e;
  border-radius: 50%;
}
.message-response .speaker-dot {
  border: 0;
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 43, 43, .5);
}
.message header strong,
.message header small {
  font: 500 9px/1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.message header strong { color: var(--muted); }
.message header small { color: #655f5d; }
.message blockquote {
  margin: 0;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.65;
  letter-spacing: -.015em;
}
.message-response blockquote { color: #d1c9c6; }
.thread-continuation {
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px 24px;
}
.thread-continuation > span {
  height: 1px;
  background: linear-gradient(90deg, #3e1414, transparent);
  grid-column: 1 / -1;
}
.thread-continuation p {
  margin: 0;
  color: #6e6866;
  font: 500 9px/1.5 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.thread-continuation a {
  color: var(--red);
  font: 500 9px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.thread-continuation a b { margin-left: 7px; }

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 48% 52%;
  align-items: center;
  position: relative;
  padding-top: 76px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 49.9%, var(--line) 50%, transparent 50.1%),
    radial-gradient(circle at 75% 48%, rgba(180, 0, 0, .17), transparent 33%);
}
.hero-copy { padding: 7vw 5vw 7vw 8vw; position: relative; z-index: 2; }
.eyebrow, .kicker {
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: .19em;
  font: 600 11px/1.3 var(--mono);
  margin: 0 0 26px;
}
.eyebrow::before, .kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--red);
  display: inline-block;
  vertical-align: middle;
  margin-right: 12px;
}
h1, h2 { margin: 0; font-weight: 500; letter-spacing: -.065em; }
h1 { font-size: clamp(64px, 8vw, 128px); line-height: .82; }
h1 em, h2 em { color: var(--red); font-style: normal; }
.lede {
  max-width: 570px;
  margin: 42px 0 38px;
  color: #b9b3b0;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.7;
}
.cta {
  display: inline-flex;
  align-items: center;
  border: 1px solid #3b3737;
  height: 56px;
  font: 600 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.cta span { padding: 0 24px; }
.cta b {
  display: grid;
  place-items: center;
  width: 55px;
  height: 54px;
  border-left: 1px solid #3b3737;
  color: var(--red);
  font-size: 18px;
  transition: background .2s, color .2s;
}
.cta:hover b { background: var(--red); color: white; }
.hero-visual {
  height: 100%;
  min-height: 620px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.sequence-grid {
  width: min(36vw, 570px);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 10px;
  transform: rotate(-8deg);
  z-index: 2;
}
.tier {
  display: grid;
  place-items: center;
  border: 1px solid #3b2a2a;
  background: rgba(13, 9, 9, .86);
  color: #7c6f6f;
  font: 500 clamp(24px, 3vw, 47px)/1 var(--mono);
  animation: rise .75s both;
  animation-delay: calc(var(--i) * .07s);
}
.tier:hover { color: white; border-color: var(--red); background: var(--dark-red); }
.t1 { grid-column: 1; grid-row: 4; }
.t2:nth-of-type(2) { grid-column: 1; grid-row: 3; }
.t2:nth-of-type(3) { grid-column: 2; grid-row: 3; }
.t3:nth-of-type(4) { grid-column: 1; grid-row: 2; }
.t3:nth-of-type(5) { grid-column: 2; grid-row: 2; }
.t3:nth-of-type(6) { grid-column: 3; grid-row: 2; }
.t4 { grid-row: 1; color: var(--red); border-color: #692020; }
.orbit { position: absolute; border: 1px solid #251919; border-radius: 50%; }
.orbit-one { width: 47vw; height: 47vw; }
.orbit-two { width: 60vw; height: 60vw; }
.visual-caption {
  position: absolute;
  bottom: 8%;
  font: 500 10px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.visual-caption span { color: var(--red); }
.scroll-index {
  position: absolute;
  bottom: 30px;
  left: 4vw;
  color: #6e6866;
  font: 500 10px/1 var(--mono);
  letter-spacing: .15em;
  writing-mode: vertical-rl;
}

.chapter {
  display: grid;
  grid-template-columns: minmax(120px, 18vw) minmax(0, 1fr);
  border-bottom: 1px solid var(--line);
}
.chapter-label {
  border-right: 1px solid var(--line);
  padding: 100px 4vw;
}
.chapter-label span {
  color: var(--red);
  font: 500 14px/1 var(--mono);
}
.chapter-label p {
  color: var(--muted);
  font: 500 10px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  margin: 24px 0 0;
}
.chapter-body {
  width: min(100%, 1180px);
  padding: clamp(80px, 10vw, 150px) clamp(28px, 8vw, 130px);
}
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
h2 { font-size: clamp(48px, 6.8vw, 102px); line-height: .94; }
.intro {
  max-width: 730px;
  color: #b9b3b0;
  font-size: clamp(17px, 1.45vw, 21px);
  line-height: 1.75;
  margin: 42px 0 70px;
}
.intro strong { color: var(--ink); font-family: var(--mono); }

.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.concept-grid article { padding: 34px 28px 38px 0; }
.concept-grid article + article { border-left: 1px solid var(--line); padding-left: 28px; }
.concept-number { color: var(--red); font: 500 10px/1 var(--mono); }
.concept-grid h3, .gather-scatter h3 {
  margin: 45px 0 20px;
  font-size: 20px;
  font-weight: 600;
}
.concept-grid p, .gather-scatter p, .pipeline > p:last-child, .cuda-note p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  margin: 0;
}
.formula-band {
  margin-top: 70px;
  display: grid;
  grid-template-columns: 1fr 250px;
  border: 1px solid #4a1717;
  background: linear-gradient(100deg, #1c0b0b, #0d0909);
}
.formula-band > div { padding: 32px; }
.formula-band > div + div { border-left: 1px solid #4a1717; }
.formula-band span, .transform-card span, .transform-card small {
  display: block;
  color: var(--muted);
  font: 500 10px/1.4 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.formula-band strong {
  display: block;
  margin-top: 14px;
  color: var(--red);
  font: 500 clamp(29px, 3vw, 45px)/1 var(--mono);
}
.formula-result strong { color: var(--ink); }
.formula-result small { color: var(--muted); font-size: 12px; }

.split-copy {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 70px;
  margin: 45px 0 65px;
}
.split-copy > p { color: #b9b3b0; font-size: 18px; line-height: 1.75; margin: 0; }
.loop-legend { align-self: center; }
.loop-legend span { display: block; color: var(--muted); font: 500 11px/2.2 var(--mono); }
.loop-legend i { width: 7px; height: 7px; display: inline-block; margin-right: 10px; }
.outer-dot { background: var(--red); }
.inner-dot { border: 1px solid #8d8280; }

.code-window {
  margin: 0;
  background: #0c0c0c;
  border: 1px solid #302d2d;
  box-shadow: 0 28px 60px rgba(0,0,0,.28);
}
.code-window figcaption {
  height: 52px;
  padding: 0 14px 0 18px;
  border-bottom: 1px solid #302d2d;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: #8f8986;
  font: 500 10px/1 var(--mono);
}
.window-dots { display: flex; gap: 7px; }
.window-dots i { width: 7px; height: 7px; border-radius: 50%; background: #383434; }
.window-dots i:first-child { background: var(--red); }
.copy-button {
  justify-self: end;
  border: 0;
  background: transparent;
  color: #88817e;
  cursor: pointer;
  font: 500 9px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.copy-button:hover { color: var(--red); }
pre {
  margin: 0;
  padding: 34px;
  overflow: auto;
  tab-size: 4;
  font: 400 13px/1.85 var(--mono);
}
code { font-family: inherit; }
.tok-comment { color: #6f6966; font-style: italic; }
.tok-pre { color: #ff6767; }
.tok-keyword { color: #ff3e3e; }
.tok-type { color: #efb1a8; }
.tok-number { color: #ff8b62; }
.tok-string { color: #d6c49a; }
.tok-function { color: #f1ece8; }
.tok-operator { color: #bdb5b2; }

.pull-quote {
  margin: 34px 0 0 auto;
  max-width: 500px;
  border-left: 2px solid var(--red);
  padding: 10px 0 10px 26px;
  display: flex;
  gap: 24px;
}
.pull-quote span { color: var(--red); font: 500 22px/1.5 var(--mono); white-space: nowrap; }
.pull-quote p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

.flatten-section {
  background: linear-gradient(155deg, #080808 70%, #120707);
}
.transform {
  display: grid;
  grid-template-columns: 1fr 120px 1fr;
  align-items: center;
  margin-bottom: 60px;
}
.transform-card { border: 1px solid var(--line); padding: 28px; }
.transform-card strong {
  display: block;
  margin: 35px 0;
  font: 500 clamp(22px, 2.5vw, 38px)/1 var(--mono);
}
.transform-card.active { border-color: #6d2020; background: #170a0a; }
.transform-card.active strong { color: var(--red); }
.transform-arrow { text-align: center; color: var(--red); font: 500 24px/1 var(--mono); }
.transform-arrow span { display: block; color: var(--muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 7px; }
.sequence-track { margin: 34px 0 70px; border: 1px solid var(--line); }
.track-row { display: grid; grid-template-columns: 70px repeat(10, 1fr); }
.track-row + .track-row { border-top: 1px solid var(--line); }
.track-row > * { padding: 13px 4px; text-align: center; font: 500 10px/1 var(--mono); }
.track-row > * + * { border-left: 1px solid var(--line); }
.track-row span { color: var(--muted); text-transform: uppercase; }
.track-row b { font-weight: 500; color: #77706e; }
.track-row.values b { color: var(--red); background: rgba(120, 0, 0, .08); }
.cuda-note {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 45px;
  align-items: center;
  margin-bottom: 34px;
}
.cuda-title { border-left: 2px solid var(--red); padding-left: 20px; }
.cuda-title span { display: block; color: var(--red); font: 600 28px/1 var(--mono); letter-spacing: .08em; }
.cuda-title small { display: block; color: var(--muted); margin-top: 8px; font: 500 9px/1 var(--mono); text-transform: uppercase; }

.compute-section .chapter-body { padding-bottom: 0; }
.gather-scatter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  margin-bottom: 60px;
}
.gather-scatter article { padding: 38px; }
.gather-scatter article + article { border-left: 1px solid var(--line); }
.gather-scatter .scatter { background: #150909; }
.mode { color: var(--red); font: 500 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.gather-scatter h3 { font-size: 30px; margin: 14px 0 28px; }
.pixel-demo {
  width: 150px;
  height: 150px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 27px;
  position: relative;
}
.pixel-demo i { border: 1px solid #3b3535; background: #171515; }
.gather-demo i:nth-child(5), .scatter-demo i:nth-child(3), .scatter-demo i:nth-child(7) { background: var(--red); border-color: var(--red); }
.pixel-demo b { position: absolute; color: var(--red); font: 500 24px/1 var(--mono); }
.gather-demo b { left: 67px; bottom: -14px; }
.scatter-demo b:nth-of-type(1) { top: 32px; left: 68px; }
.scatter-demo b:nth-of-type(2) { top: 75px; left: 52px; }
.scatter-demo b:nth-of-type(3) { top: 105px; left: 100px; }
.pipeline {
  margin: 80px -130px 0;
  padding: 70px 130px 80px;
  background: var(--red);
  color: white;
}
.pipeline .kicker { color: white; }
.pipeline .kicker::before { background: white; }
.pipeline-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 30px 0;
}
.pipeline-flow span {
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.55);
  font: 500 10px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}
.pipeline-flow span.hot { color: var(--red); background: white; border-color: white; }
.pipeline-flow i { font: normal 18px/1 var(--mono); }
.pipeline > p:last-child { color: rgba(255,255,255,.75); max-width: 650px; }

footer {
  min-height: 260px;
  padding: 70px 8vw;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
}
.footer-mark { font-size: 40px; }
footer p { margin: 0; color: var(--muted); line-height: 1.6; }
footer a { justify-self: end; color: var(--red); font: 500 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  50% { opacity: .35; box-shadow: 0 0 2px var(--red); }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr 1fr; }
  nav { display: none; }
  .conversation-intro {
    grid-template-columns: 1fr;
    gap: 55px;
    padding: 135px 8vw 80px;
  }
  .conversation-meta { max-width: 680px; }
  .conversation-thread { max-width: 720px; }
  .hero { grid-template-columns: 1fr; padding-top: 110px; }
  .hero-copy { padding: 12vw 8vw 4vw; }
  .hero-visual { min-height: 520px; }
  .sequence-grid { width: min(72vw, 500px); }
  .orbit-one { width: 90vw; height: 90vw; }
  .orbit-two { display: none; }
  .chapter { grid-template-columns: 75px minmax(0, 1fr); }
  .chapter-label { padding: 80px 26px; }
  .chapter-body { padding: 80px 6vw; }
  .concept-grid { grid-template-columns: 1fr; }
  .concept-grid article + article { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .concept-grid h3 { margin-top: 22px; }
  .pipeline { margin-left: -6vw; margin-right: -6vw; padding-left: 6vw; padding-right: 6vw; }
}

@media (max-width: 650px) {
  .site-header { padding: 0 20px; }
  .brand-name, .status { display: none; }
  .conversation-intro {
    min-height: auto;
    padding: 120px 24px 70px;
    gap: 42px;
    background: radial-gradient(circle at 80% 45%, rgba(180, 0, 0, .12), transparent 38%);
  }
  .conversation-thread { padding-left: 21px; }
  .conversation-thread::before { left: 0; }
  .message { padding: 21px 20px 24px; }
  .message::before { left: -21px; width: 17px; }
  .message-response { margin-left: 0; }
  .thread-continuation { grid-template-columns: 1fr; }
  .thread-continuation p { line-height: 1.7; }
  .hero-copy { padding: 55px 24px 20px; }
  h1 { font-size: clamp(60px, 20vw, 90px); }
  .hero-visual { min-height: 430px; }
  .chapter { display: block; }
  .chapter-label {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
  }
  .chapter-label p { writing-mode: initial; margin: 0; }
  .chapter-body { padding: 70px 24px; }
  h2 { font-size: clamp(46px, 15vw, 70px); }
  .formula-band, .split-copy, .gather-scatter, .cuda-note { grid-template-columns: 1fr; }
  .formula-band > div + div, .gather-scatter article + article { border-left: 0; border-top: 1px solid var(--line); }
  .split-copy { gap: 24px; }
  .transform { grid-template-columns: 1fr; gap: 18px; }
  .transform-arrow { transform: rotate(90deg); }
  pre { padding: 22px 18px; font-size: 11px; }
  .track-row { grid-template-columns: 48px repeat(10, 1fr); }
  .track-row > * { font-size: 8px; padding: 10px 1px; }
  .cuda-note { gap: 25px; }
  .pipeline { margin-left: -24px; margin-right: -24px; padding: 60px 24px; }
  .pipeline-flow { flex-wrap: wrap; justify-content: flex-start; }
  .pipeline-flow i { transform: rotate(90deg); }
  footer { grid-template-columns: 1fr; gap: 35px; align-items: start; }
  footer a { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
