:root {
  --bg: #000;
  --panel: #111111;
  --ink: #fff;
  --muted: #adadad;
  --faint: #8a8a8a;
  --line: #262626;
  --accent: #fd9968;
  --accent-hot: #ffb48f;
  --accent-deep: #8a4325;
  --header-h: 4.75rem;
  --sans: Lato, "Helvetica Neue", Arial, sans-serif;
  --mono: Lato, "Helvetica Neue", Arial, sans-serif;
  --wrap: min(100% - 3rem, 76rem);
  --display: clamp(3.4rem, 1.2rem + 8.4vw, 8.6rem);
  --statement: clamp(1.85rem, 1.2rem + 2.4vw, 3.15rem);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

body.nav-open { overflow: hidden; }

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

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
  text-wrap: balance;
}

h1, h2, h3, p { margin-top: 0; }

p { text-wrap: pretty; }

a { color: inherit; }

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

::selection { background: #8a4325; color: #fff; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 40;
  background: var(--ink);
  color: var(--bg);
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

.skip-link:focus { top: 0.75rem; }

.wrap { width: var(--wrap); margin-inline: auto; }

.eyebrow,
.band-label,
.spec-index,
.footer-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--muted);
  text-transform: none;
}

.band-label span,
.spec-index span,
.eyebrow { color: var(--accent); }

.lede,
.narrow {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.62;
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.6rem;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--accent);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.button::after { content: "↗"; color: var(--accent); }

.button:hover { color: var(--accent); }

.button-ghost { border-bottom-color: var(--line); }
.button-ghost::after { content: none; }
.button-ghost:hover { color: var(--ink); border-bottom-color: var(--ink); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.6rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #000;
}

.site-header.is-scrolled { box-shadow: inset 0 -1px 0 var(--line); }

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}

.header-bar {
  position: relative;
  z-index: 2;
  width: var(--wrap);
  height: var(--header-h);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  font-size: 1.15rem;
}

.logo-mark { width: 1.55rem; height: 1.55rem; flex: none; }

.site-nav { display: flex; align-items: center; gap: 2rem; }

.nav-link {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
}

.nav-link:hover { color: var(--accent-hot); }

.nav-link.is-active { box-shadow: inset 0 -1px 0 currentColor; }

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  min-height: 2.4rem;
  padding: 0.35rem 0;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem 0 0.4rem;
  overflow: hidden;
}

.stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.stage canvas,
.stage-controls { pointer-events: auto; }

.stage-frame,
.stage canvas,
.stage-still {
  width: 100%;
  height: 100%;
  display: block;
}

.stage-frame { height: 100%; border: 0; border-radius: 0; background: #000; overflow: hidden; }

.stage canvas { cursor: grab; touch-action: pan-y; }
.stage canvas.is-dragging { cursor: grabbing; }
.stage-still { display: none; }

.stage.is-still canvas,
.stage.is-still .stage-controls { display: none; }
.stage.is-still .stage-still,
.stage.is-still .stage-caption-still { display: block; }

.stage-caption { display: none; }
.stage-caption-still {
  position: absolute;
  left: 1.5rem;
  bottom: 1rem;
  margin: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.stage-controls {
  position: absolute;
  right: max(1.5rem, calc((100% - 76rem) / 2));
  bottom: 1.25rem;
  z-index: 2;
  display: flex;
  gap: 0.9rem;
  visibility: hidden;
}

.stage.is-ready .stage-controls { visibility: visible; }

.stage-controls button,
.filters button {
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 0;
  min-height: 2rem;
  padding: 0.2rem 0;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.75rem;
}

.stage-controls button:hover,
.filters button:hover { color: var(--ink); border-bottom-color: var(--ink); }

.stage-controls button[aria-pressed="true"],
.filters button[aria-pressed="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
  background: transparent;
}

.hero-top,
.hero-title { position: relative; z-index: 1; }

.hero-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.4rem;
  padding-top: 0.5rem;
}

.hero-points {
  list-style: none;
  margin: 0;
  padding: 1rem 0 0;
  border-top: 1px solid #333;
  min-width: 16rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--muted);
}

.hero-points li { display: flex; align-items: center; gap: 0.7rem; margin: 0.45rem 0; }

.hero-points li::before {
  content: "";
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.hero h1 {
  margin: 0;
  max-width: none;
  font-size: clamp(3.6rem, 11.4vw, 11.2rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
  font-weight: 700;
  color: var(--accent);
}

.hero-title { padding-bottom: 0.2rem; }

.band { padding: clamp(4.5rem, 9vw, 8rem) 0; }

.band-grid,
.section-head {
  display: grid;
  grid-template-columns: minmax(9rem, 0.7fr) minmax(0, 1.6fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  margin-bottom: 2.5rem;
}

.band h2,
.section-head h2,
.page-hero h1,
.article h1,
.split-card h2,
.cta-inner h2 {
  margin: 0 0 1rem;
  font-size: var(--statement);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}

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

.spec {
  display: block;
  padding: 1.4rem 1.4rem 1.6rem 0;
  border-right: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.spec:last-child { border-right: 0; padding-right: 0; }
.spec:not(:first-child) { padding-left: 1.4rem; }

.spec h3 {
  margin: 0.8rem 0 0.45rem;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
}

.spec p:last-child,
.principle p,
.post-card p,
.split-card p,
.step p { margin: 0; color: var(--muted); }

.spec:hover h3 { color: var(--accent); }

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 1.1rem 0;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 28s linear infinite;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  letter-spacing: -0.03em;
  color: var(--faint);
}

.marquee-track span { padding-right: 3rem; }

.principle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.principle {
  padding: 1.5rem 1.6rem 1.7rem 0;
  border-bottom: 1px solid var(--line);
}

.principle:nth-child(odd) { padding-right: 2rem; border-right: 1px solid var(--line); }
.principle:nth-child(even) { padding-left: 2rem; }

.principle h3 {
  margin: 0.55rem 0 0.4rem;
  font-size: clamp(1.7rem, 2.5vw, 2.3rem);
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.step {
  padding: 1.5rem 1.5rem 1.6rem 0;
  border-bottom: 1px solid var(--line);
}

.step:nth-child(odd) { padding-right: 2rem; border-right: 1px solid var(--line); }
.step:nth-child(even) { padding-left: 2rem; }

.step .spec-index { margin-bottom: 0.7rem; font-size: 1.15rem; }

.post-list { border-bottom: 1px solid var(--line); counter-reset: note; }

.post-card {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1.3fr) minmax(0, 1.4fr) auto;
  gap: 0.25rem 1.5rem;
  align-items: center;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  counter-increment: note;
}

.post-card::before {
  content: counter(note, decimal-leading-zero);
  grid-column: 1;
  grid-row: 1 / span 2;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.post-card .eyebrow { grid-column: 2; grid-row: 1; }
.post-card h2,
.post-card h3 { grid-column: 2; grid-row: 2; margin: 0; font-size: clamp(1.35rem, 2vw, 1.85rem); }
.post-card > p:not(.eyebrow):not(.meta) { grid-column: 3; grid-row: 1 / span 2; }
.post-card .meta {
  grid-column: 4;
  grid-row: 1 / span 2;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.75rem;
  white-space: nowrap;
}

.post-card:hover h2,
.post-card:hover h3 { color: var(--accent); }

.filters { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-bottom: 1.5rem; }

.split-band { padding: 0 0 clamp(4rem, 8vw, 7rem); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
}

.split-card {
  display: block;
  padding: 1.6rem 1.6rem 0.4rem 0;
  color: inherit;
  text-decoration: none;
}

.split-card + .split-card {
  padding-left: 1.6rem;
  border-left: 1px solid var(--line);
}

.split-card p:last-child { margin-top: 0.8rem; }
.split-card:hover h2 { color: var(--accent); }

.site-footer { background: #000; }

.notice {
  display: grid;
  grid-template-columns: minmax(9rem, 0.7fr) minmax(0, 1.6fr);
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.notice p { margin: 0; }

.footer-panel {
  background: var(--panel);
  padding: clamp(3rem, 7vw, 5.5rem) 0 2.5rem;
}

.footer-statement {
  margin: 0 0 0.8rem;
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.mail {
  display: inline-flex;
  gap: 0.45rem;
  color: var(--muted);
  text-decoration: none;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  letter-spacing: -0.03em;
}

.mail:hover { color: var(--accent); }

.footer-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr 0.8fr;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #2a2a2a;
}

.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--accent); }
.footer-grid .fine-print { margin-top: 1rem; }

.page-hero { padding: clamp(3rem, 8vw, 6rem) 0 1rem; }
.page-hero .lede { margin-top: 1rem; }

.crumbs { margin: 0 0 1.4rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 0.75rem; color: var(--faint); }
.crumbs a { color: var(--muted); }

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }

.story {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.story h2 { font-size: var(--statement); margin-bottom: 1rem; }
.story p { color: var(--muted); }

.note {
  margin: 0;
  padding: 1.3rem 0 0 1.4rem;
  border-left: 1px solid var(--line);
  background: transparent;
}

.note p { color: var(--muted); }
.note a { color: var(--ink); }

.faq-list { border-bottom: 1px solid var(--line); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.1rem 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item h3 { margin: 0; font-size: 1.45rem; }
.faq-item p { margin: 0 0 1.1rem; max-width: 40rem; color: var(--muted); }
.faq-item a { color: var(--accent-hot); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
  padding-top: clamp(3rem, 7vw, 5.5rem);
  padding-bottom: 4.5rem;
}

.contact-grid .page-hero { padding: 0; }

.email-link {
  display: inline-block;
  margin: 0.6rem 0 1.4rem;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.email-link:hover { color: var(--accent); border-color: var(--accent); }

.check-list { margin: 0.6rem 0 0; padding-left: 1.1rem; color: var(--muted); }
.check-list li { margin: 0.35rem 0; }

.form-card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding: 1.4rem 0 0;
}

.form-card h2 { font-size: 1.6rem; margin-bottom: 1.2rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin: 0 0 1.1rem; }
.field label { display: block; margin-bottom: 0.35rem; color: var(--faint); font-family: var(--mono); font-size: 0.75rem; }

input,
textarea,
select {
  width: 100%;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.7rem 0;
}

textarea { min-height: 8rem; resize: vertical; }

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 0.7rem) 55%, calc(100% - 0.4rem) 55%;
  background-size: 0.3rem 0.3rem, 0.3rem 0.3rem;
  background-repeat: no-repeat;
  padding-right: 1.4rem;
}

.form-status { min-height: 1.5rem; margin: 0.6rem 0 0; }
.form-status[data-state="success"] { color: #32d583; }
.form-status[data-state="error"] { color: #e04438; }
.fine-print { margin: 1rem 0 0; color: var(--faint); font-size: 0.85rem; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.article { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.article-header { max-width: 46rem; }
.byline { color: var(--faint); font-family: var(--mono); font-size: 0.75rem; }

.prose { max-width: 42rem; padding-bottom: 2rem; }
.prose p,
.prose li { color: var(--muted); }
.prose h2 { margin: 2.2rem 0 0.7rem; font-size: 1.7rem; color: var(--ink); }
.prose h3 { margin: 1.6rem 0 0.5rem; font-size: 1.25rem; }
.prose a { color: var(--accent-hot); }
.prose blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  color: var(--ink);
}
.prose ul,
.prose ol { padding-left: 1.2rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.related { padding: 1rem 0 3rem; }
.related h2 { margin-bottom: 0.8rem; font-size: 1.8rem; }
.related ul { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.related li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
}
.related a { text-decoration: none; }
.related a:hover { color: var(--accent); }
.related span { color: var(--faint); font-family: var(--mono); font-size: 0.75rem; flex: none; }

.empty { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .hero h1 { animation: rise 0.9s ease both; }
  [data-reveal] { animation: rise 0.8s ease both; }
}

@keyframes rise {
  from { transform: translateY(16px); }
  to { transform: none; }
}

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

@media (max-width: 980px) {
  .hero-top,
  .band-grid,
  .section-head,
  .notice,
  .specs,
  .split,
  .story,
  .contact-grid,
  .principle-grid,
  .steps,
  .footer-grid { grid-template-columns: 1fr; }

  .spec,
  .spec:not(:first-child),
  .split-card,
  .split-card + .split-card,
  .principle,
  .principle:nth-child(odd),
  .principle:nth-child(even),
  .step,
  .step:nth-child(odd),
  .step:nth-child(even) {
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
    border-left: 0;
  }

  .post-card { grid-template-columns: 3rem 1fr; }
  .post-card::before { grid-row: 1 / span 3; }
  .post-card .eyebrow { grid-column: 2; grid-row: 1; }
  .post-card h2,
  .post-card h3 { grid-column: 2; grid-row: 2; }
  .post-card > p:not(.eyebrow):not(.meta) { grid-column: 2; grid-row: 3; }
  .post-card .meta { grid-column: 2; grid-row: 4; }

  .hero { min-height: 100svh; }
  .hero h1 { font-size: clamp(3.1rem, 14vw, 5.2rem); }
  .stage-controls { right: 1.25rem; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    display: none;
    position: fixed;
    z-index: 1;
    inset: var(--header-h) 0 0 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 1.5rem 1.25rem 2rem;
    background: #000;
    overflow: auto;
  }

  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: 1.8rem; padding: 0.4rem 0; }
  .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .stage-still,
  .stage-caption-still { display: block; }
  .stage canvas,
  .stage-controls { display: none; }
}

@media (prefers-contrast: more) {
  :root { --muted: #fff; --faint: #fff; --line: #fff; }
}

@media print {
  .site-header,
  .stage,
  .marquee,
  .filters,
  .progress,
  .nav-toggle { display: none !important; }
  body { background: white; color: black; }
  a { text-decoration: underline; }
}
