:root {
  color-scheme: light dark;
  --paper: #f2f0e8;
  --paper-strong: #fffdf4;
  --ink: #11110f;
  --muted: #67665f;
  --line: rgba(17, 17, 15, 0.24);
  --line-strong: #11110f;
  --red: #c92f19;
  --red-ink: #fff9eb;
  --acid: #dfff43;
  --acid-ink: #11110f;
  --shadow: rgba(17, 17, 15, 0.16);
  --display: Georgia, "Times New Roman", "Songti SC", serif;
  --sans: Inter, Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --page-pad: clamp(1rem, 3vw, 3.25rem);
  --hairline: 1px solid var(--line-strong);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151511;
    --paper-strong: #1e1e19;
    --ink: #f2f0e8;
    --muted: #aaa89d;
    --line: rgba(242, 240, 232, 0.25);
    --line-strong: #f2f0e8;
    --red: #e64b2f;
    --red-ink: #11110f;
    --acid: #dfff43;
    --acid-ink: #11110f;
    --shadow: rgba(0, 0, 0, 0.42);
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  background: var(--paper);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--paper);
  background-size: 48px 48px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  color: inherit;
}

a {
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  padding: 0.7rem 1rem;
  transform: translateY(-110%);
  background: var(--acid);
  color: var(--acid-ink);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  min-height: 4.75rem;
  border-bottom: var(--hairline);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.top-action {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.75rem;
  padding: 0 var(--page-pad);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
}

.brand-mark path:first-child {
  fill: var(--red);
}

.brand-mark path:nth-child(2) {
  fill: none;
  stroke: var(--paper-strong);
  stroke-width: 3.4;
  stroke-linejoin: bevel;
}

.brand-mark circle {
  fill: var(--acid);
}

.site-nav {
  align-self: stretch;
  border-left: var(--hairline);
}

.site-nav a {
  display: grid;
  min-width: 6.5rem;
  place-items: center;
  padding: 0 1.25rem;
  border-right: var(--hairline);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 180ms ease, background-color 180ms ease;
}

.site-nav a:hover {
  background: var(--ink);
  color: var(--paper);
}

.site-nav a[aria-current="location"] {
  box-shadow: inset 0 -0.35rem 0 var(--red);
}

.top-action {
  gap: 1rem;
  justify-content: center;
  min-width: 9.75rem;
  padding: 0 1.5rem;
  background: var(--red);
  color: var(--red-ink);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.top-action svg,
.button svg,
.text-link svg {
  width: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(360px, 0.78fr);
  grid-template-rows: minmax(0, 1fr) 10.5rem;
  min-height: calc(100svh - 4.75rem);
  border-bottom: var(--hairline);
  background: var(--paper);
}

.hero-copy {
  display: flex;
  grid-row: 1 / 3;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(2.5rem, 5vw, 6rem) var(--page-pad) clamp(2rem, 4vw, 4.5rem);
  border-right: var(--hairline);
}

.overline {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(0.66rem, 0.75vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.overline::before {
  display: inline-block;
  width: 2.4rem;
  height: 0.55rem;
  margin-right: 0.75rem;
  background: var(--red);
  content: "";
}

.hero h1,
.section h2,
.cta-section h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.075em;
}

.hero h1 {
  margin: auto 0;
  font-size: clamp(5rem, 8.5vw, 9.6rem);
  line-height: 0.85;
  white-space: nowrap;
}

.hero h1 em,
.section h2 em {
  color: var(--red);
  font-weight: 400;
}

.hero-bottom {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(300px, 1.2fr);
  gap: 2rem;
  align-items: end;
}

.hero-bottom p {
  max-width: 28rem;
  margin: 0;
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  letter-spacing: -0.025em;
}

.hero-actions {
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  padding: 0.8rem 1.2rem;
  border: var(--hairline);
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, color 180ms ease, background-color 180ms ease;
}

.button:hover {
  transform: translate(-3px, -3px);
  box-shadow: 4px 4px 0 var(--ink);
}

.button-primary {
  background: var(--red);
  color: var(--red-ink);
}

.button-quiet {
  background: var(--paper-strong);
}

.hero-visual {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: var(--ink);
}

.hero-image-wrap,
.hero-image-wrap img {
  width: 100%;
  height: 100%;
}

.hero-image-wrap {
  display: block;
}

.hero-image-wrap img {
  scale: 1.08;
  object-fit: cover;
  transform: translate3d(var(--tilt-x, 0), var(--tilt-y, 0), 0);
  transition: transform 350ms ease-out;
}

.visual-tag {
  position: absolute;
  padding: 0.55rem 0.7rem;
  border: 1px solid currentColor;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.visual-tag-top {
  top: 1rem;
  left: 1rem;
  background: var(--acid);
  color: var(--acid-ink);
}

.visual-tag-bottom {
  right: 1rem;
  bottom: 1rem;
  background: var(--red);
  color: var(--red-ink);
}

.crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4rem;
  height: 4rem;
  transform: translate(-50%, -50%);
  border: 1px solid var(--acid);
  border-radius: 50%;
  mix-blend-mode: screen;
}

.crosshair::before,
.crosshair::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--acid);
  content: "";
  transform: translate(-50%, -50%);
}

.crosshair::before {
  width: 6rem;
  height: 1px;
}

.crosshair::after {
  width: 1px;
  height: 6rem;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.fact {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.1rem;
  border-top: var(--hairline);
  border-right: var(--hairline);
  background: var(--paper-strong);
}

.fact:last-child {
  border-right: 0;
}

.fact-value {
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.fact-label {
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fact-acid {
  background: var(--acid);
  color: var(--acid-ink);
}

.fact-red {
  background: var(--red);
  color: var(--red-ink);
}

.ticker {
  overflow: hidden;
  border-bottom: var(--hairline);
  background: var(--ink);
  color: var(--paper);
}

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 2rem;
  padding: 0.88rem 0;
  animation: ticker 28s linear infinite;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ticker-track i {
  color: var(--acid);
  font-style: normal;
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

.section {
  padding: clamp(5rem, 10vw, 10rem) var(--page-pad);
  border-bottom: var(--hairline);
  background: var(--paper);
}

.section-heading,
.training-heading,
.evidence-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1.66fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 8rem);
}

.section-heading h2,
.training-heading h2,
.evidence-heading h2,
.lineage-copy h2 {
  font-size: clamp(4rem, 8.2vw, 8.4rem);
  line-height: 0.84;
}

.section-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 7vw, 8rem);
  max-width: 72rem;
  margin: clamp(4rem, 8vw, 8rem) 0 clamp(3rem, 6vw, 6rem) auto;
}

.section-intro p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.28rem);
}

.section-intro .intro-lead {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.stage-lab {
  border: var(--hairline);
  background: var(--paper-strong);
  box-shadow: 12px 12px 0 color-mix(in srgb, var(--ink) 12%, transparent);
}

.stage-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: var(--hairline);
}

.stage-tab {
  position: relative;
  min-height: 6.75rem;
  padding: 1rem;
  border: 0;
  border-right: var(--hairline);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: color 180ms ease, background-color 180ms ease;
}

.stage-tab:last-child {
  border-right: 0;
}

.stage-tab span,
.stage-tab small {
  display: block;
}

.stage-tab span {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 2.3rem);
  letter-spacing: -0.04em;
}

.stage-tab small {
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.64rem;
}

.stage-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 0.4rem;
  background: var(--red);
  content: "";
  scale: 0 1;
  transform-origin: left;
  transition: scale 220ms ease;
}

.stage-tab:hover,
.stage-tab.is-active {
  background: var(--acid);
  color: var(--acid-ink);
}

.stage-tab.is-active::after {
  scale: 1 1;
}

.stage-canvas {
  display: grid;
  grid-template-columns: minmax(270px, 0.65fr) minmax(0, 1.35fr);
  min-height: 30rem;
}

.stage-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5rem);
  border-right: var(--hairline);
}

.stage-index {
  margin: 0 0 2rem;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.stage-copy h3 {
  max-width: 14ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.stage-copy > p:not(.stage-index) {
  max-width: 34rem;
  margin: 2rem 0;
  color: var(--muted);
  font-size: 1rem;
}

.stage-copy ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stage-copy li {
  font-family: var(--mono);
  font-size: 0.7rem;
}

.stage-copy li::before {
  margin-right: 0.75rem;
  color: var(--red);
  content: "■";
}

.signal-map {
  position: relative;
  min-height: 30rem;
  overflow: hidden;
  background:
    radial-gradient(circle, var(--line) 1px, transparent 1.5px),
    var(--paper);
  background-size: 24px 24px;
}

.signal-line {
  position: absolute;
  top: 50%;
  right: 8%;
  left: 8%;
  height: 1px;
  background: var(--ink);
}

.signal-node {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  width: clamp(3.5rem, 6vw, 5.5rem);
  aspect-ratio: 1;
  place-items: center;
  transform: translate(-50%, -50%);
  border: var(--hairline);
  border-radius: 50%;
  background: var(--paper-strong);
  transition: background-color 220ms ease, color 220ms ease, scale 220ms ease;
}

.signal-node span {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
}

.signal-node:nth-of-type(2) { left: 9%; }
.signal-node:nth-of-type(3) { left: 29.5%; }
.signal-node:nth-of-type(4) { left: 50%; }
.signal-node:nth-of-type(5) { left: 70.5%; }
.signal-node:nth-of-type(6) { left: 91%; }

.signal-node.is-active {
  z-index: 3;
  background: var(--red);
  color: var(--red-ink);
  scale: 1.22;
  box-shadow: 0 0 0 0.6rem var(--acid);
}

.signal-curve {
  position: absolute;
  inset: 15% 4%;
  width: 92%;
  height: 70%;
  fill: none;
  opacity: 0.35;
  stroke: var(--red);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.signal-curve path:last-child {
  stroke: var(--ink);
  stroke-dasharray: 5 9;
}

.training-heading {
  margin-bottom: clamp(4rem, 8vw, 8rem);
}

.training-heading h2 {
  grid-column: 2;
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  border-top: var(--hairline);
  border-left: var(--hairline);
}

.method {
  position: relative;
  min-height: 21rem;
  padding: clamp(1.5rem, 3vw, 3rem);
  overflow: hidden;
  border-right: var(--hairline);
  border-bottom: var(--hairline);
  background: var(--paper-strong);
}

.method h3 {
  margin: 0.85rem 0 1.4rem;
  font-family: var(--display);
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.method p {
  max-width: 38rem;
  margin: 0;
}

.method-kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.method-primary {
  grid-column: span 8;
  min-height: 34rem;
  background: var(--red);
  color: var(--red-ink);
}

.method-primary::after {
  position: absolute;
  right: -7rem;
  bottom: -10rem;
  width: 30rem;
  height: 30rem;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 2.5rem transparent, 0 0 0 2.6rem currentColor, 0 0 0 5rem transparent, 0 0 0 5.1rem currentColor;
  content: "";
  opacity: 0.6;
}

.method-primary h3 {
  max-width: 8ch;
  font-size: clamp(4.8rem, 9.2vw, 10rem);
}

.method-formula {
  position: absolute;
  z-index: 1;
  right: 2.5rem;
  bottom: 2.5rem;
  left: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid currentColor;
  background: color-mix(in srgb, var(--red) 90%, var(--ink));
  font-family: var(--mono);
  font-size: 0.72rem;
}

.method-formula strong {
  font-weight: 500;
}

.method-sft,
.method-dpo,
.method-mcp {
  grid-column: span 4;
}

.method-sft {
  background: var(--acid);
  color: var(--acid-ink);
}

.method-dpo {
  background: var(--ink);
  color: var(--paper);
}

.method-models {
  grid-column: span 8;
}

.method-models h3 {
  max-width: 12ch;
}

.method-mcp svg {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 8.5rem;
  fill: none;
  stroke: var(--red);
  stroke-width: 1.2;
}

.evidence-heading {
  grid-template-columns: minmax(180px, 0.3fr) minmax(0, 1.1fr) minmax(260px, 0.6fr);
  align-items: end;
  margin-bottom: clamp(4rem, 8vw, 8rem);
}

.evidence-heading h2 {
  grid-column: 2;
}

.evidence-heading > p:last-child {
  margin: 0;
  color: var(--muted);
}

.evidence-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto;
  gap: 1rem;
}

.evidence-shot {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: var(--hairline);
  background: var(--ink);
  color: var(--paper);
  cursor: zoom-in;
  text-align: left;
}

.evidence-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  opacity: 0.92;
  transition: scale 500ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
}

.evidence-shot picture {
  display: block;
  width: 100%;
  height: 100%;
}

.evidence-shot:hover img {
  scale: 1.025;
  opacity: 1;
}

.evidence-shot-main {
  grid-row: span 2;
  grid-column: span 8;
  min-height: 44rem;
}

.evidence-shot-flow {
  grid-column: span 4;
  min-height: 24rem;
}

.shot-label,
.shot-action {
  position: absolute;
  z-index: 2;
  padding: 0.6rem 0.8rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.shot-label {
  top: 1rem;
  left: 1rem;
  background: var(--acid);
  color: var(--acid-ink);
}

.shot-action {
  right: 1rem;
  bottom: 1rem;
  background: var(--red);
  color: var(--red-ink);
}

.shot-action b {
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

.evidence-note {
  display: flex;
  grid-column: span 4;
  min-height: 16rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  border: var(--hairline);
  background: var(--acid);
  color: var(--acid-ink);
}

.evidence-note p {
  max-width: 22rem;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.5vw, 2.6rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.note-mark {
  font-size: 2.5rem;
}

.lineage-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: clamp(3rem, 8vw, 10rem);
  align-items: center;
}

.lineage-copy > p:not(.overline) {
  max-width: 32rem;
  margin: 2.5rem 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.lineage-copy h2 {
  margin-top: 2.5rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--red);
  font-weight: 800;
}

.lineage-diagram {
  border-top: var(--hairline);
  border-left: var(--hairline);
  box-shadow: 12px 12px 0 color-mix(in srgb, var(--ink) 12%, transparent);
}

.lineage-row {
  display: grid;
  grid-template-columns: 0.55fr 1fr auto;
  gap: 1rem;
  align-items: center;
  min-height: 6.8rem;
  padding: 1rem 1.25rem;
  border-right: var(--hairline);
  border-bottom: var(--hairline);
  background: var(--paper-strong);
}

.lineage-row strong {
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.7vw, 1.8rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.lineage-key,
.lineage-row i {
  font-family: var(--mono);
  font-size: 0.66rem;
  font-style: normal;
  letter-spacing: 0.1em;
}

.lineage-row i {
  display: grid;
  width: 2rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.lineage-row-acid {
  background: var(--acid);
  color: var(--acid-ink);
}

.lineage-row-red {
  background: var(--red);
  color: var(--red-ink);
}

.cta-section {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(3rem, 8vw, 9rem);
  padding: clamp(5rem, 10vw, 10rem) var(--page-pad);
  border-bottom: var(--hairline);
  background: var(--red);
  color: var(--red-ink);
}

.cta-section .overline::before {
  background: var(--acid);
}

.cta-section h2 {
  margin-top: 2.5rem;
  font-size: clamp(4rem, 9.8vw, 10rem);
  line-height: 0.82;
}

.clone-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.clone-box > p {
  margin: 0 0 1.25rem;
}

.clone-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  border: 1px solid currentColor;
  background: var(--ink);
  color: var(--paper);
}

.clone-command code {
  overflow: hidden;
  padding: 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clone-command button {
  display: inline-flex;
  align-self: stretch;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1rem;
  border: 0;
  border-left: 1px solid currentColor;
  background: var(--acid);
  color: var(--acid-ink);
  cursor: pointer;
  min-width: 5.25rem;
  justify-content: center;
  white-space: nowrap;
}

.clone-command button svg {
  width: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.cta-links {
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
}

.cta-links a {
  padding-bottom: 0.2rem;
  border-bottom: 1px solid currentColor;
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 2rem;
  align-items: center;
  min-height: 7rem;
  padding: 1.5rem var(--page-pad);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.67rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 800;
}

.footer p {
  margin: 0;
}

.lightbox {
  width: min(94vw, 110rem);
  max-width: none;
  height: min(92vh, 72rem);
  max-height: none;
  padding: 0;
  border: var(--hairline);
  background: var(--ink);
  color: var(--paper);
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.lightbox-close {
  position: absolute;
  z-index: 3;
  top: 1rem;
  right: 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid currentColor;
  background: var(--red);
  color: var(--red-ink);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.lightbox figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  margin: 0;
}

.lightbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox figcaption {
  padding: 1rem;
  border-top: 1px solid var(--paper);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 1rem;
  bottom: 1rem;
  padding: 0.75rem 1rem;
  border: var(--hairline);
  background: var(--acid);
  color: var(--acid-ink);
  font-family: var(--mono);
  font-size: 0.7rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 650ms cubic-bezier(0.2, 0.75, 0.25, 1), transform 650ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

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

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: minmax(180px, 1fr) auto auto;
  }

  .site-nav a {
    min-width: 5.25rem;
    padding: 0 0.8rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.75fr);
  }

  .hero h1 {
    font-size: 7.8vw;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .evidence-shot-main {
    min-height: 36rem;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 4rem;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    min-height: 4rem;
  }

  .brand {
    padding: 0 1rem;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
    border-left: var(--hairline);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 0.66rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .menu-button svg {
    width: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    grid-template-columns: 1fr 1fr;
    border-top: var(--hairline);
    border-left: 0;
    background: var(--paper);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    min-height: 3.6rem;
    border-right: var(--hairline);
    border-bottom: var(--hairline);
  }

  .top-action {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(26rem, 1fr) minmax(14rem, 34vh) 6.8rem;
    min-height: calc(100svh - 4rem);
  }

  .hero-copy {
    grid-row: auto;
    min-height: 26rem;
    padding: 2rem 1rem;
    border-right: 0;
    border-bottom: var(--hairline);
  }

  .hero h1 {
    font-size: 11vw;
    line-height: 0.88;
  }

  .hero-bottom {
    gap: 1rem;
  }

  .hero-bottom p {
    max-width: 22rem;
    font-size: 0.9rem;
  }

  .hero-actions {
    gap: 0.5rem;
  }

  .button {
    min-height: 2.8rem;
    padding: 0.65rem 0.9rem;
    font-size: 0.78rem;
  }

  .hero-facts {
    min-height: 6.8rem;
  }

  .fact {
    padding: 0.8rem;
  }

  .fact-label {
    font-size: 0.52rem;
  }

  .section-heading,
  .training-heading,
  .evidence-heading {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .section-heading h2,
  .training-heading h2,
  .evidence-heading h2 {
    grid-column: 1;
  }

  .evidence-heading > p:last-child {
    max-width: 34rem;
  }

  .section-intro {
    grid-template-columns: 1fr;
  }

  .stage-rail {
    grid-template-columns: 1fr;
  }

  .stage-tab {
    display: flex;
    min-height: 3.8rem;
    align-items: center;
    justify-content: space-between;
    border-right: 0;
    border-bottom: var(--hairline);
  }

  .stage-tab:last-child {
    border-bottom: 0;
  }

  .stage-tab span {
    font-size: 1.35rem;
  }

  .stage-tab small {
    margin: 0;
  }

  .stage-tab::after {
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    width: 0.4rem;
    height: auto;
    scale: 1 0;
    transform-origin: bottom;
  }

  .stage-tab.is-active::after {
    scale: 1 1;
  }

  .stage-canvas {
    grid-template-columns: 1fr;
  }

  .stage-copy {
    min-height: 25rem;
    border-right: 0;
    border-bottom: var(--hairline);
  }

  .signal-map {
    min-height: 19rem;
  }

  .training-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method,
  .method-primary,
  .method-sft,
  .method-dpo,
  .method-models,
  .method-mcp {
    grid-column: span 1;
  }

  .method-primary,
  .method-models {
    grid-column: 1 / -1;
  }

  .evidence-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .evidence-shot-main,
  .evidence-shot-flow,
  .evidence-note {
    grid-column: auto;
    grid-row: auto;
  }

  .evidence-shot-main {
    grid-column: 1 / -1;
    min-height: 34rem;
  }

  .evidence-shot-flow,
  .evidence-note {
    min-height: 18rem;
  }

  .lineage-section,
  .cta-section {
    grid-template-columns: 1fr;
  }

  .lineage-diagram {
    margin-right: 12px;
  }

  .footer {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 600px) {
  body {
    background-size: 32px 32px;
  }

  .hero {
    grid-template-rows: minmax(23rem, 1fr) minmax(12rem, 27vh) 5.8rem;
  }

  .hero-copy {
    min-height: 23rem;
  }

  .hero h1 {
    font-size: 10.65vw;
  }

  .hero-actions .button {
    flex: 1;
  }

  .fact {
    padding: 0.55rem;
  }

  .fact-value {
    font-size: 1.35rem;
  }

  .fact-label {
    font-size: 0.45rem;
  }

  .ticker-track {
    gap: 1.2rem;
  }

  .section-heading h2,
  .training-heading h2,
  .evidence-heading h2,
  .lineage-copy h2 {
    font-size: 17vw;
  }

  .section-intro {
    margin: 3rem 0;
  }

  .stage-copy {
    padding: 2rem 1.25rem;
  }

  .signal-node {
    width: 3.2rem;
  }

  .method,
  .method-primary,
  .method-sft,
  .method-dpo,
  .method-models,
  .method-mcp {
    grid-column: 1 / -1;
  }

  .method {
    min-height: 18rem;
  }

  .method-primary {
    min-height: 30rem;
  }

  .method-primary h3 {
    font-size: 13vw;
    white-space: nowrap;
  }

  .method-formula {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .evidence-gallery {
    grid-template-columns: 1fr;
  }

  .evidence-shot-main,
  .evidence-shot-flow,
  .evidence-note {
    grid-column: 1;
    min-height: 17rem;
  }

  .evidence-shot-main {
    min-height: 26rem;
  }

  .lineage-row {
    grid-template-columns: 0.45fr 1fr auto;
    gap: 0.6rem;
    min-height: 5.8rem;
    padding: 0.75rem;
  }

  .lineage-row strong {
    font-size: 1rem;
  }

  .lineage-key,
  .lineage-row i {
    font-size: 0.52rem;
  }

  .cta-section h2 {
    font-size: 19vw;
  }

  .clone-command code {
    max-width: 70%;
  }

  .cta-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer {
    min-height: 10rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-image-wrap img {
    transform: none !important;
  }
}
