:root {
  --ink: #111111;
  --ink-2: #1d1d1d;
  --chalk: #f4efe6;
  --paper: #fffaf0;
  --paper-2: #ebe2d2;
  --red: #ff4f2e;
  --red-dark: #c9311a;
  --blue: #1f5bff;
  --green: #00a86b;
  --yellow: #f1b82d;
  --muted: #6d665c;
  --line: rgba(17,17,17,0.16);
  --line-dark: rgba(244,239,230,0.2);
  --radius: 6px;
  --max: 1180px;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17,17,17,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,17,17,0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent 70%);
  z-index: -1;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: 0; line-height: 0.98; }
h1 { font-size: 76px; font-weight: 900; max-width: 10.5ch; }
h2 { font-size: 46px; font-weight: 850; max-width: 12ch; }
h3 { font-size: 23px; font-weight: 850; }
p { color: inherit; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 14px;
  background: var(--red);
  color: #fff;
}

.skip-link:focus { left: 12px; top: 12px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  color: var(--chalk);
  background: rgba(17,17,17,0.92);
  border-bottom: 1px solid rgba(244,239,230,0.16);
  backdrop-filter: blur(10px);
}

.header-row {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--chalk);
  border-radius: 50%;
  font-weight: 900;
}

.brand-name {
  font-size: 19px;
  font-weight: 850;
}

.nav-list {
  display: flex;
  gap: 22px;
  list-style: none;
}

.nav-list a {
  display: block;
  padding: 7px 0;
  color: rgba(244,239,230,0.82);
  font-size: 14px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-list a:hover,
.nav-list a[aria-current="true"] {
  color: var(--chalk);
  border-bottom-color: var(--red);
}

.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(244,239,230,0.2);
  border-radius: var(--radius);
  background: transparent;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--chalk);
}

.nav-toggle-bar { top: 20px; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }

.hero {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  color: var(--chalk);
  background:
    linear-gradient(120deg, rgba(255,79,46,0.22), transparent 40%),
    linear-gradient(180deg, #111 0%, #191919 64%, #241f1a 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 30px, rgba(244,239,230,0.035) 30px 31px);
  animation: gridShift 9s linear infinite;
}

.hero-rail {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.75;
}

.hero-rail span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,79,46,0.9), transparent);
  animation: railMove 5s linear infinite;
}

.hero-rail span:nth-child(1) { top: 18%; animation-delay: 0s; }
.hero-rail span:nth-child(2) { top: 39%; animation-delay: -1.2s; }
.hero-rail span:nth-child(3) { top: 61%; animation-delay: -2.4s; }
.hero-rail span:nth-child(4) { top: 82%; animation-delay: -3.6s; }

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.9fr);
  gap: 68px;
  align-items: center;
  min-height: 700px;
  padding-top: 74px;
  padding-bottom: 64px;
}

.hero-copy,
.motion-board { min-width: 0; }

.kicker {
  margin-bottom: 18px;
  color: currentColor;
  opacity: 0.68;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.lede {
  max-width: 620px;
  margin-top: 28px;
  color: rgba(244,239,230,0.78);
  font-size: 21px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 11px 18px;
  border-radius: var(--radius);
  font-weight: 850;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--chalk); color: var(--ink); }
.btn-line { border: 1px solid rgba(244,239,230,0.34); color: var(--chalk); }
.btn-line:hover { background: rgba(244,239,230,0.1); }

.motion-board {
  position: relative;
  min-height: 440px;
  padding: 22px;
  border: 1px solid rgba(244,239,230,0.22);
  border-radius: 0;
  background:
    linear-gradient(rgba(244,239,230,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,239,230,0.07) 1px, transparent 1px),
    rgba(244,239,230,0.035);
  background-size: 28px 28px;
  box-shadow: 0 40px 90px rgba(0,0,0,0.28);
  overflow: hidden;
}

.motion-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,79,46,0.16) 48%, transparent 72%);
  transform: translateX(-80%);
  animation: sweep 4.8s ease-in-out infinite;
}

.board-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(244,239,230,0.2);
  color: rgba(244,239,230,0.66);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}

.board-track {
  position: relative;
  z-index: 1;
  height: 74px;
  margin: 34px 0;
}

.track-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 36px;
  height: 2px;
  background: rgba(244,239,230,0.22);
}

.track-pulse {
  position: absolute;
  top: 27px;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--red);
  transform: rotate(45deg);
  animation: pulseAcross 3.2s cubic-bezier(.7,0,.2,1) infinite;
}

.board-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.board-cell {
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(244,239,230,0.18);
  background: rgba(17,17,17,0.46);
}

.board-cell span {
  color: var(--red);
  font-family: var(--mono);
  font-size: 12px;
}

.board-cell strong {
  display: block;
  margin-top: 22px;
  color: var(--chalk);
  font-size: 25px;
}

.marquee {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid rgba(244,239,230,0.16);
  border-bottom: 1px solid rgba(244,239,230,0.16);
  background: rgba(17,17,17,0.78);
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 26px;
  padding: 14px 0;
  animation: marquee 24s linear infinite;
}

.marquee span {
  color: rgba(244,239,230,0.78);
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
}

.marquee span::after {
  content: "/";
  margin-left: 26px;
  color: var(--red);
}

.section {
  padding: 92px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 80px;
}

.split-section {
  background: var(--paper);
}

.split-grid,
.model-grid,
.facts-grid,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 76px;
  align-items: start;
}

.section-intro p,
.section-head > p,
.model-copy > p,
.facts-grid > div > p {
  max-width: 60ch;
  color: var(--muted);
  font-size: 18px;
}

.copy-stack {
  display: grid;
  gap: 22px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.32;
}

.dark-section {
  color: var(--chalk);
  background: var(--ink);
}

.section-head {
  display: grid;
  gap: 18px;
  max-width: 780px;
  margin-bottom: 42px;
}

.section-head p { color: rgba(244,239,230,0.72); }

.domain-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-dark);
  border-left: 1px solid var(--line-dark);
}

.domain-card {
  min-height: 310px;
  padding: 28px;
  border-right: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: linear-gradient(180deg, rgba(244,239,230,0.05), transparent);
  transition: background-color .18s ease, transform .18s ease;
}

.domain-card:hover {
  background-color: rgba(255,79,46,0.1);
  transform: translateY(-6px);
}

.domain-card span,
.model-list > li > span,
.facts dt {
  color: var(--red);
  font-family: var(--mono);
  font-size: 12px;
}

.domain-card h3 {
  margin-top: 64px;
  color: var(--chalk);
}

.domain-card p {
  margin-top: 18px;
  color: rgba(244,239,230,0.72);
}

.model-section {
  background: var(--paper-2);
}

.model-copy p {
  margin-top: 22px;
  color: var(--muted);
  font-size: 19px;
}

.model-list {
  position: relative;
  display: grid;
  gap: 0;
  list-style: none;
}

.model-list::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: rgba(17,17,17,0.14);
}

.model-list::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 10px;
  width: 2px;
  height: 34%;
  background: var(--red);
  animation: lineGrow 4s ease-in-out infinite;
}

.model-list li {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 0 0 34px;
}

.model-list li:last-child { padding-bottom: 0; }

.model-list > li > span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(17,17,17,0.18);
  background: var(--paper-2);
}

.model-list h3 { margin-bottom: 8px; }
.model-list p { color: var(--muted); }

.facts-section {
  background: var(--paper);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.facts div {
  min-height: 118px;
  padding: 20px;
  background: var(--paper);
}

.facts dd {
  margin: 9px 0 0;
  font-size: 18px;
  font-weight: 750;
}

.contact-section {
  padding: 88px 0;
  color: var(--chalk);
  background: var(--red-dark);
}

.contact-layout {
  align-items: center;
}

.contact-layout h2 { color: var(--chalk); }

.contact-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 18px;
  color: var(--chalk);
  border: 1px solid rgba(244,239,230,0.5);
  border-radius: var(--radius);
  font-size: 22px;
  font-weight: 850;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}

.contact-link:hover {
  background: rgba(244,239,230,0.12);
  transform: translateY(-2px);
}

.site-footer {
  padding: 22px 0;
  color: rgba(244,239,230,0.66);
  background: var(--ink);
  font-size: 13px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: opacity .7s ease, transform .7s ease;
}

.hero .reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes railMove {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes gridShift {
  0% { background-position: 0 0; }
  100% { background-position: 62px 0; }
}

@keyframes sweep {
  0%, 28% { transform: translateX(-90%); }
  64%, 100% { transform: translateX(90%); }
}

@keyframes pulseAcross {
  0% { left: 0; opacity: 0; }
  10% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: calc(100% - 20px); opacity: 0; }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes lineGrow {
  0%, 100% { height: 12%; }
  50% { height: calc(100% - 20px); }
}

@media (max-width: 980px) {
  h1 { font-size: 56px; max-width: 11ch; }
  h2 { font-size: 38px; }
  .hero { min-height: auto; }
  .hero-layout,
  .split-grid,
  .model-grid,
  .facts-grid,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .domain-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .container { padding: 0 18px; }
  h1 {
    font-size: 34px;
    max-width: 9.6ch;
    overflow-wrap: anywhere;
  }
  h2 { font-size: 31px; max-width: 100%; }
  h3 { font-size: 21px; }
  .header-row { min-height: 62px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-list {
    display: none;
    position: absolute;
    right: 18px;
    top: 58px;
    min-width: 178px;
    padding: 10px;
    flex-direction: column;
    gap: 4px;
    background: var(--ink);
    border: 1px solid rgba(244,239,230,0.18);
  }
  .primary-nav.is-open .nav-list { display: flex; }
  .nav-list a { padding: 9px 10px; }
  .hero-layout {
    display: block;
    width: 100%;
    max-width: 100vw;
    min-height: auto;
    padding-top: 54px;
    padding-bottom: 92px;
    overflow: hidden;
  }
  .lede {
    width: 100%;
    font-size: 18px;
    max-width: 25ch;
    overflow-wrap: anywhere;
  }
  .motion-board {
    width: 100%;
    max-width: calc(100vw - 48px);
    margin-top: 44px;
    min-height: 380px;
    padding: 18px;
  }
  .hero-copy {
    width: 100%;
    max-width: calc(100vw - 36px);
  }
  .marquee {
    display: none;
  }
  .board-grid,
  .domain-grid,
  .facts {
    grid-template-columns: 1fr;
  }
  .domain-card {
    min-height: 220px;
  }
  .copy-stack {
    font-size: 19px;
  }
  .section,
  .contact-section {
    padding: 64px 0;
  }
  .contact-link {
    width: 100%;
    justify-content: center;
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
