:root {
  /* ---- high-contrast monochrome kinetic system ---- */
  --paper: #000;
  --ink: #ffffff;
  --ink-2: #cecece;
  --ink-3: #767676;
  --rule: rgba(255, 255, 255, 0.12);
  --rule-soft: rgba(255, 255, 255, 0.06);
  --amber: #ffc857; /* sparing punch color */
  --amber-deep: #de9a3a;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  --font: "Space Grotesk", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Consolas, ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  background: #000;
  color: #fff;
}
body {
  margin: 0;
  min-height: 100vh;
  background: #000;
  font-family: var(--font);
  text-rendering: optimizeLegibility;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
img, video, canvas { max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
  border-radius: 10px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 50;
  transform: translateY(-160%);
  background: var(--amber);
  color: #000;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--rule-soft);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: saturate(0.6) blur(16px);
}
.site-header[data-elevated="true"], .site-header.compact {
  background: rgba(0, 0, 0, 0.84);
  border-color: var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  min-height: 44px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 16px;
  background: rgba(255, 200, 87, 0.08);
  color: var(--amber);
  font-weight: 900;
  letter-spacing: -0.04em;
}
.brand strong, .brand small { display: block; }
.brand strong { font-size: 0.95rem; letter-spacing: -0.01em; }
.brand small { color: var(--ink-3); font-size: 0.72rem; margin-top: 0.12rem; }

.nav { display: flex; align-items: center; gap: clamp(0.35rem, 1.4vw, 1rem); flex-wrap: wrap; justify-content: flex-end; }
.nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 180ms var(--ease), background 180ms var(--ease);
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

/* HERO */
.hero {
  position: relative;
  min-height: calc(100svh - 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(290px, 0.62fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
  padding: clamp(4.5rem, 11vw, 9rem) clamp(1rem, 5vw, 6rem) clamp(5.2rem, 9vw, 7.5rem);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; opacity: 0.38; }
.kinetic-field {
  position: absolute;
  inset: -30px;
  display: grid;
  place-items: center;
  font: 900 clamp(4rem, 12vw, 9.5rem) / 0.9 var(--font);
  letter-spacing: -0.06em;
  color: #fff;
  text-align: center;
  transition: letter-spacing 420ms var(--ease), opacity 240ms var(--ease), transform 480ms var(--ease);
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.92), rgba(0,0,0,0.64) 48%, rgba(0,0,0,0.9)),
    linear-gradient(180deg, rgba(0,0,0,0.18), #000 92%);
  pointer-events: none;
}

.hero-copy, .proof-console { position: relative; z-index: 1; }

/* TYPOGRAPHY */
.eyebrow, .section-kicker {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-block-start: 0; }
h1 {
  font-size: clamp(3.4rem, 8.3vw, 8.4rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  max-width: 14.5ch;
}
h2 {
  font-size: clamp(2.4rem, 5.3vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  max-width: 14ch;
}
h3 { font-size: clamp(1.2rem, 1.9vw, 1.55rem); line-height: 1.04; margin-block-end: 0.7rem; }

.lede {
  max-width: 64ch;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  line-height: 1.58;
}
.section-lede { color: var(--ink-2); max-width: 66ch; margin-inline-start: 0; }

/* REVEAL / CLIP-PATH */
.reveal {
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  animation: reveal-in 1.1s var(--ease) forwards;
  animation-delay: 180ms;
}
@keyframes reveal-in {
  to { clip-path: inset(0 0 0 0); }
}

/* ACTIONS */
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }
.button, .ghost-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}
.button:hover, .ghost-button:hover { transform: translateY(-2px); }
.button.primary {
  background: var(--ink);
  color: #000;
  border: 1px solid transparent;
}
.button.secondary, .ghost-button {
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.ghost-button { cursor: pointer; font: inherit; font-size: 0.9rem; }

/* PROOF CONSOLE */
.proof-console {
  justify-self: end;
  width: min(100%, 420px);
  border: 1px solid rgba(255, 200, 87, 0.18);
  border-radius: 24px;
  background: rgba(18, 18, 18, 0.82);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}
.console-bar {
  display: flex;
  align-items: center;
  gap: 0.555rem;
  border-bottom: 1px solid var(--rule);
  padding: 0.85rem 1rem;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.76rem;
}
.console-bar span { width: 10px; height: 10px; border-radius: 50%; background: #ff5f56; }
.console-bar span:nth-child(2) { background: #ffbd2e; }
.console-bar span:nth-child(3) { background: #27c93f; }
.console-bar strong { margin-left: auto; color: var(--ink-2); font-weight: 600; }

.proof-stats { margin: 0; padding: 1.1rem; display: grid; gap: 0.8rem; }
.proof-stats div {
  padding: 1rem;
  border: 1px solid var(--rule-soft);
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
}
.proof-stats dt { color: #fff; font-weight: 900; margin-bottom: 0.28rem; }
.proof-stats dd { margin: 0; color: var(--ink-2); line-height: 1.45; }

.verify-strip {
  list-style: none;
  display: grid;
  gap: 0.42rem;
  margin: 0;
  padding: 0 1.1rem 1.1rem;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.verify-strip li { position: relative; padding-left: 1rem; }
.verify-strip li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #27c93f;
  box-shadow: 0 0 18px rgba(39,201,63,0.5);
}

/* SECTION SYSTEM */
.section {
  padding: clamp(4.2rem, 8vw, 7.5rem) clamp(1.1rem, 5vw, 6rem);
}
.section > h2 { margin-block-end: 0.7rem; }

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.52fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: end;
  margin: 0.8rem 0 2.2rem;
}
.split-heading p { color: var(--ink-2); line-height: 1.65; font-size: 1.06rem; }

/* CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.proof-card, .lab-list article, .pipeline li, .guide-grid div {
  border: 1px solid var(--rule);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.045);
  padding: clamp(1.1rem, 2vw, 1.4rem);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}
.proof-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), background 220ms var(--ease);
}
.proof-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 200, 87, 0.36);
  background: rgba(255, 255, 255, 0.075);
}
.proof-card p { color: var(--ink-2); line-height: 1.58; }
.proof-card a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--amber);
  font-weight: 800;
  text-underline-offset: 0.22em;
  margin-top: auto;
}

/* LABELS */
.label {
  width: max-content;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0.24rem 0.62rem;
  margin-bottom: 1.1rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.real-label { background: rgba(39, 201, 97, 0.16); color: #7ee88a; border: 1px solid rgba(39, 201, 97, 0.32); }
.concept-label { background: rgba(255, 149, 127, 0.18); color: #ffa194; border: 1px solid rgba(255, 149, 127, 0.4); }
.built-label { background: rgba(255, 200, 87, 0.16); color: #ffc857; border: 1px solid rgba(255, 200, 87, 0.38); }

/* STUDY LIST */
.study-list { display: grid; gap: 1rem; }
.study-item {
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: clamp(1.2rem, 2.2vw, 1.55rem);
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 1fr);
  gap: 1.2rem;
  align-items: start;
}
.study-meta { color: var(--ink-2); line-height: 1.5; }
.study-meta strong { color: var(--amber); font-size: 1.4rem; margin-top: 0.2rem; display: inline-block; }

/* THESIS */
.thesis ul { list-style: none; padding: 0; display: grid; gap: 0.8rem; max-width: 72ch; margin-top: 1rem; }
.thesis li { border-left: 2px solid rgba(255,200,87,0.45); padding-left: 1rem; color: var(--ink-2); line-height: 1.6; }
.thesis strong { color: #fff; }

/* CLOSING */
.closing {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.52fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  background:
    radial-gradient(circle at 82% 22%, rgba(255, 200, 87, 0.14), transparent 24rem),
    #0A0A0A;
  padding-block: clamp(5rem, 9vw, 8rem);
}
.closing-copy p { max-width: 68ch; color: var(--ink-2); line-height: 1.66; }
.closing-figure { justify-self: end; }
.stamp {
  width: clamp(88px, 10vw, 130px);
  height: clamp(88px, 10vw, 130px);
  border: 2px solid rgba(255,255,255,0.55);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 0.06em;
  line-height: 1.15;
}

/* CONCEPT PANEL */
.concept-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}
.concept-panel[hidden] { display: none; }
.panel-card {
  position: relative;
  width: min(520px, 100%);
  border: 1px solid rgba(255, 200, 87, 0.24);
  border-radius: 28px;
  background: #0a0a0a;
  padding: clamp(1.4rem, 4vw, 2rem);
  box-shadow: var(--shadow);
}
.panel-card p { color: var(--ink-2); line-height: 1.6; margin-block-end: 0.6rem; }
.panel-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
}
.panel-card ul { list-style: none; padding: 0; margin-top: 0.4rem; color: var(--ink-2); }

/* FOOTER */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--rule-soft);
  padding: 1.1rem clamp(1.1rem, 5vw, 6rem);
  color: var(--ink-3);
  font-size: 0.9rem;
}
.footer a { color: var(--amber); text-decoration: underline; text-underline-offset: 0.18em; }
.telemetry { display: flex; gap: 1rem; font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.04em; }
.tele strong { color: var(--amber); }

/* RESPONSIVE */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .proof-console { justify-self: stretch; width: auto; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .study-item { grid-template-columns: 1fr; }
  .closing { grid-template-columns: 1fr; }
  .closing-figure { display: none; }
}
@media (max-width: 640px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .hero { padding-top: 3rem; }
  h1 { font-size: clamp(3rem, 17vw, 4.5rem); }
  .card-grid, .study-list { grid-template-columns: 1fr; }
  .proof-card { min-height: unset; }
  .hero-actions .button { width: 100%; }
}

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { clip-path: inset(0 0 0 0); }
  .kinetic-field { opacity: 0.55; letter-spacing: 0em; transform: none; }
}

/* GUIDE ROUTE */
.guide-body { background: #000; }
.guide-main { padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1.1rem, 5vw, 6rem); }
.guide-article { width: min(920px, 100%); margin: 0 auto; }
.guide-article h1 { max-width: 14ch; font-size: clamp(3.1rem, 7.8vw, 7.4rem); }
.guide-article section { border-top: 1px solid var(--rule); padding-top: 2rem; margin-top: 2rem; }
.guide-article code {
  background: rgba(255, 255, 255, 0.09);
  color: var(--amber);
  padding: 0.14rem 0.3rem;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.85em;
}
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.2rem; }
.pass-list { color: var(--ink-2); line-height: 1.65; margin-top: 1rem; }

@media (max-width: 980px) {
  .guide-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .nav { justify-content: flex-start; }
  .guide-main { padding-top: 2.2rem; }
  .guide-article h1 { font-size: clamp(3rem, 16vw, 4.5rem); }
}
