:root {
  --bg: #12110f;
  --panel: #1b1916;
  --ink: #f3ece0;
  --muted: #c4bbaa;
  --dim: #8f8778;
  --line: rgba(243, 236, 224, 0.14);
  --ok: #8ea071;
  --accent: #c9a36a;
  --olive: #6b7a52;
  --gold: #c9a36a;
  --on: #12110f;
  --warn: #c9a36a;
  --max: 1180px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Source Sans 3", "Source Sans Fallback", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
}
body.nav-open { overflow: hidden; }

a { color: inherit; }
a, button, .cta, .nav-cta, .menu-btn { touch-action: manipulation; }
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: max(32px, env(safe-area-inset-left));
  padding-right: max(32px, env(safe-area-inset-right));
}
.skip { position: absolute; left: -999px; }
.skip:focus {
  left: 12px; top: 12px; z-index: 40;
  background: var(--ink); color: var(--on); padding: 8px 12px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

header.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
}
header.nav.scrolled {
  background: rgba(18, 17, 15, 0.92);
  border-bottom-color: var(--line);
}
.nav-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 56px;
  gap: 12px;
  position: relative;
}
.brand { justify-self: start; }
nav.links { margin: 0; justify-self: center; }
.nav-end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  font-size: 15px;
}
.brand small { display: none; }
nav.links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0 auto;
}
nav.links a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  opacity: 0.86;
}
nav.links a:hover,
nav.links a[aria-current="page"] { opacity: 1; }
.menu-btn {
  display: none;
  background: transparent;
  color: var(--ink);
  border: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 8px;
}
.nav-cta {
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--on);
  background: var(--accent);
}

.cta,
button.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--on);
  text-decoration: none;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--accent);
  border-radius: 2px;
  cursor: pointer;
  min-width: 180px;
  min-height: 44px;
}
.cta.ghost,
a.cta.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.cta:hover { filter: brightness(1.06); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero .actions { justify-content: flex-start; }

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
}
.hero img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 48%;
}
.hero .shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18,17,15,0.72) 0%, rgba(18,17,15,0.28) 28%, rgba(18,17,15,0.35) 48%, rgba(18,17,15,0.92) 100%);
}
.hero .grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero .copy {
  position: relative;
  padding: 0 0 calc(88px + env(safe-area-inset-bottom));
  text-align: left;
  max-width: 720px;
  margin: 0;
}
.hero .copy > * {
  animation: rise 0.75s ease both;
}
.hero .copy .lede { animation-delay: 0.08s; }
.hero .copy .actions { animation-delay: 0.16s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.hero h1,
h1 {
  font-family: "Source Serif 4", "Source Serif Fallback", Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 500;
  line-height: 1.02;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.hero p { margin: 0 0 0; max-width: 36rem; color: #ececec; }
.hero .lede {
  font-size: clamp(16px, 2.1vw, 20px);
  line-height: 1.5;
  max-width: 38rem;
  margin: 0 0 4px;
  color: #ececec;
}
figure.proof { margin: 32px 0 0; }
.proof .still { margin-top: 0; }
.proof .caption { margin-top: 12px; max-width: 40rem; }
#offer .card h3 {
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.03em;
  text-transform: none;
  margin: 0 0 10px;
  font-weight: 700;
}
#offer .card p { margin: 0; color: #d4d4d4; }
#offer .card .kicker { margin: 0 0 8px; }
#offer .caption a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.engine-line {
  margin-top: 28px;
  font-size: 15px;
  color: var(--muted);
  max-width: 40rem;
}
.kicker {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.hero .kicker { color: rgba(255,255,255,0.78); }
.caption { font-size: 12px; color: var(--dim); margin-top: 18px; }
.hero .caption { color: rgba(255,255,255,0.55); }
.scroll {
  display: inline-block;
  margin-top: 28px;
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

section { padding: 96px 0; }
body > section:first-of-type { padding-top: 120px; }
section + section { border-top: 1px solid var(--line); }
h2 {
  font-family: "Source Serif 4", "Source Serif Fallback", Georgia, serif;
  font-weight: 500;
  font-size: clamp(28px, 4.2vw, 44px);
  margin: 8px 0 16px;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 28px 0 8px;
  font-weight: 600;
  color: #fff;
}
p.lead { font-size: clamp(16px, 2.4vw, 19px); max-width: 40rem; color: #d4d4d4; }

.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: 4px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
  border-color: rgba(255, 255, 255, 0.32);
  transform: translateY(-2px);
}
.card h3 { margin-top: 0; }
.pillars { margin-top: 36px; }
.pillar h3 {
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.03em;
  text-transform: none;
  margin: 0 0 10px;
  font-weight: 700;
}
.pillar p { margin: 0; color: #d4d4d4; }
.pillar .kicker { margin: 0 0 8px; }
.pillar .caption { margin-top: 16px; }
.pillar .caption a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.sources {
  margin-top: 36px;
  max-width: 46rem;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.6;
}
.sources p { margin: 0 0 14px; }
.sources a { color: var(--muted); }
.sources-list {
  margin: 0;
  padding-left: 1.25rem;
}
.sources-list li { margin: 0 0 10px; }
.card img {
  margin: -24px -24px 16px;
  width: calc(100% + 48px);
  max-width: none;
  height: 180px;
  object-fit: cover;
}
.card a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid #fff;
}

.bar { height: 4px; background: #222; margin: 8px 0 16px; }
.bar > span { display: block; height: 100%; background: #fff; }
.demo {
  border: 1px solid var(--warn);
  color: var(--warn);
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  width: fit-content;
}
.chain {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
}
.chain span { padding: 8px 12px; border: 1px solid var(--line); }
.muted { color: var(--muted); }
.timeline { list-style: none; padding: 0; }
.timeline li { padding: 12px 0 12px 20px; border-left: 1px solid #fff; }

.lane {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.still {
  overflow: hidden;
  width: 100%;
  height: 520px;
  max-height: 60vh;
  margin-top: 24px;
}
.still img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 55%;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 calc(48px + env(safe-area-inset-bottom));
  font-size: 13px;
  color: var(--dim);
}
footer .wrap {
  display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center;
}
footer .wrap.socials { padding-top: 12px; }
footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
footer a:hover { color: #fff; }

.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.94);
  border-top: 1px solid var(--line);
  padding: 16px 0 calc(16px + env(safe-area-inset-bottom));
}
.consent .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
}
.consent p {
  margin: 0;
  max-width: 40rem;
  color: #d4d4d4;
  font-size: 14px;
}
.consent .actions { margin: 0; }
.consent a { color: #fff; }

form.stack { display: grid; gap: 14px; max-width: 36rem; }
form.stack label { font-size: 13px; color: var(--muted); font-weight: 500; }
form.stack input, form.stack select, form.stack textarea {
  font: inherit;
  font-size: 16px;
  padding: 12px 12px;
  border: 1px solid var(--line);
  background: #0a0a0a;
  color: #fff;
  width: 100%;
  border-radius: 4px;
  min-height: 44px;
}
form.stack textarea { min-height: 120px; }
.hp { position: absolute; left: -9999px; }
.note { padding: 12px 14px; border: 1px solid var(--line); font-size: 14px; }
.note.ok { border-color: var(--ok); color: var(--ok); }
.note.bad { border-color: #ff6b6b; color: #ff6b6b; }
.note.warn { border-color: var(--warn); color: var(--warn); }
.pill {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 2px 8px;
  vertical-align: middle;
}
.pill.dev { color: var(--warn); }
.pill.plan { color: var(--dim); }
.status-row {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0;
}
.status-row span {
  border: 1px solid var(--line);
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.specs { width: 100%; max-width: 560px; border-collapse: collapse; }
.specs th, .specs td {
  text-align: left;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.specs th { width: 34%; padding-right: 16px; color: var(--muted); font-weight: 500; }
.gh-list { display: grid; gap: 0; margin: 0 0 28px; }
.gh-day {
  margin: 36px 0 8px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.gh-day:first-of-type { margin-top: 8px; }
.gh-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.gh-row strong { font-weight: 500; }
section.band {
  padding: 0;
  min-height: 78vh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.band img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.band .shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.75) 100%);
}
.band .copy { position: relative; padding: 0 0 64px; }

@media (max-width: 1100px) {
  .grid.three { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .wrap {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }
  .nav-row { grid-template-columns: 1fr auto; min-height: 52px; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  nav.links {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: calc(52px + env(safe-area-inset-top));
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 8px max(20px, env(safe-area-inset-left)) 20px max(20px, env(safe-area-inset-right));
    gap: 0;
    border-bottom: 1px solid var(--line);
    justify-self: stretch;
  }
  nav.links a {
    min-height: 48px;
    display: flex;
    align-items: center;
    font-size: 16px;
    opacity: 1;
  }
  header.nav.open {
    background: var(--bg);
    border-bottom-color: var(--line);
  }
  header.nav.open nav.links { display: flex; }
  .lane { grid-template-columns: 1fr; gap: 24px; }
  .hero img { object-position: center 58%; }
  .hero .copy {
    padding-bottom: calc(48px + env(safe-area-inset-bottom));
    text-align: left;
  }
  .hero .actions {
    justify-content: stretch;
    flex-direction: column;
    align-items: stretch;
  }
  .hero .cta,
  .actions .cta,
  button.cta {
    width: 100%;
    min-width: 0;
  }
  .grid.two,
  .grid.three { grid-template-columns: 1fr; }
  .still { height: 240px; max-height: 42vh; }
  section { padding: 56px 0; }
  body > section:first-of-type { padding-top: calc(96px + env(safe-area-inset-top)); }
  .gh-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 16px 0;
    min-height: 56px;
  }
}
@media (max-width: 600px) {
  .specs th { width: 42%; }
  .still { height: 200px; }
  h2 { font-size: clamp(26px, 8vw, 36px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .copy > * { animation: none; }
  .card { transition: none; }
  .card:hover { transform: none; }
}

.dev-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.feature-now, .feature-dev, .feature-plan {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 14px 0 0;
}
.feature-now { color: var(--ok); }
.feature-dev { color: var(--accent); }
.feature-plan { color: var(--dim); }
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.media-item { margin: 0; }
.media-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.media-item figcaption {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.locations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.locations article img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin: 0 0 12px;
}
.locations h3 {
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 22px;
  font-family: "Source Serif 4", "Source Serif Fallback", Georgia, serif;
  margin: 0 0 6px;
}
.locations p { margin: 0; color: var(--muted); font-size: 15px; }
.updates { list-style: none; padding: 0; margin: 28px 0 0; }
.updates li {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.updates time {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.final-cta {
  text-align: left;
}
@media (max-width: 900px) {
  .media-grid, .locations { grid-template-columns: 1fr; }
}

.chip {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  margin: 0 8px 12px 0;
}
.chip-now { color: var(--ok); border-color: var(--ok); }
.chip-dev { color: var(--accent); border-color: var(--accent); }
.chip-plan { color: var(--dim); }
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.gallery-item { margin: 0; }
.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.gallery-open img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.gallery-item figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.lightbox {
  max-width: min(960px, 94vw);
  background: var(--panel);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 16px;
}
.lightbox img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; }
.lightbox-close {
  min-height: 44px;
  margin-bottom: 12px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  font: inherit;
  cursor: pointer;
  padding: 8px 16px;
}
.update-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.update-card h3 { text-transform: none; letter-spacing: -0.02em; font-size: 22px; color: var(--ink); }
.update-card time {
  display: block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.rel-step {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 6px;
}
.rel-k {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 16px 0 8px;
}
.release-note ul {
  margin: 0;
  padding-left: 1.15rem;
}
.release-note li { margin: 0 0 6px; }
.gh-raw {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.gh-raw summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.loop { max-width: 36rem; padding-left: 1.2rem; }
.loop li { margin: 0 0 10px; }
.hero .chip { display: inline-block; }

/* Shared chrome. AFTERLIGHT pages keep their own article colors.
   Header and footer use The Lab Files on every page. */
header.nav,
header.nav.scrolled,
header.nav.open {
  background: rgba(13, 14, 11, 0.94);
  border-bottom-color: rgba(234, 228, 211, 0.14);
  color: #eae4d3;
  font-family: "IBM Plex Mono", "IBM Plex Fallback", ui-monospace, monospace;
}
header.nav :focus-visible {
  outline-color: #cfe35a;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #eae4d3;
  font-family: "IBM Plex Mono", "IBM Plex Fallback", ui-monospace, monospace;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
}
.brand-mark {
  width: 36px;
  height: 36px;
  display: block;
  flex: none;
}
nav.links a,
.menu-btn {
  font-family: "IBM Plex Mono", "IBM Plex Fallback", ui-monospace, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #eae4d3;
}
nav.links a[aria-current="page"] {
  color: #8fb3c7;
  opacity: 1;
}
.nav-cta {
  background: #cfe35a;
  border-color: #cfe35a;
  color: #0d0e0b;
  font-family: "IBM Plex Mono", "IBM Plex Fallback", ui-monospace, monospace;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
footer {
  background: #0d0e0b;
  color: #7e8174;
  border-top-color: rgba(234, 228, 211, 0.18);
  font-family: "IBM Plex Mono", "IBM Plex Fallback", ui-monospace, monospace;
}
footer a { color: #eae4d3; }
footer a:hover { color: #cfe35a; }
