:root {
  --bg: #151515;
  --bg-raised: #1e1e1e;
  --yellow: #fafc1a;
  --ink: #f4f2ea;
  --muted: #a8a69c;
  --line: rgba(255, 255, 255, 0.1);
  --serif: "Instrument Serif", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

::selection {
  background: var(--yellow);
  color: #151515;
}

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

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(21, 21, 21, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #111;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover { color: var(--yellow); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  margin: 0 auto;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.hero {
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 48px 0 28px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1, h2, .quote-text, .close-band h2, .prose h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.03em;
}

h1 {
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 6.4rem);
  line-height: 0.9;
}

h1 em {
  font-style: italic;
  color: var(--yellow);
}

.lead {
  max-width: 38rem;
  margin: 22px 0 0;
  color: #dddacd;
  font-size: 1.15rem;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
}

.btn-yellow { background: var(--yellow); color: #151515; }
.btn-yellow:hover { background: #fff45c; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-ghost:hover { border-color: var(--yellow); color: var(--yellow); }

.btn-dark { background: #151515; color: var(--yellow); }
.btn-dark:hover { background: #000; }

.btn-ink {
  background: transparent;
  color: #151515;
  border-color: rgba(21, 21, 21, 0.28);
}

.btn-ink:hover { background: rgba(21, 21, 21, 0.06); }

.device {
  width: min(100%, 300px);
  margin-inline: auto;
  padding: 10px;
  border-radius: 36px;
  background: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow), 0 0 0 1px rgba(250, 252, 26, 0.06);
}

.device img {
  display: block;
  width: 100%;
  border-radius: 28px;
}

.device figcaption {
  margin-top: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  margin-top: 18px;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 42s linear infinite;
}

.ticker span {
  padding: 16px 28px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  white-space: nowrap;
}

.ticker strong {
  color: var(--ink);
  font-weight: 560;
}

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

.section { padding: 84px 0; }
.section.follow { padding-top: 10px; }

section[id] { scroll-margin-top: 84px; }

.section-head { max-width: 40rem; margin-bottom: 36px; }

h2 {
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 0.95;
}

.section-head p,
.split p { color: #d9d6cb; }

.section-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}

.steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.steps li {
  position: relative;
  padding: 18px 18px 18px 68px;
  background: var(--bg-raised);
  border-radius: 18px;
}

.steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 16px;
  top: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: #151515;
  font-weight: 700;
}

.steps { counter-reset: step; }

.steps h3,
.modes h3,
.brain-list h3,
.science-list h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.steps p,
.modes p,
.brain-list p,
.science-list p,
.quotes p,
.faq p { margin: 0; }

.film-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin: 64px 0 16px;
}

.film-label h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
}

.film-label p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.film {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 220px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

.film figure {
  margin: 0;
  scroll-snap-align: start;
}

.film .device { width: 100%; }

.modes-layout {
  display: grid;
  gap: 36px;
  align-items: start;
}

.modes {
  list-style: none;
  margin: 0;
  padding: 0;
}

.modes > li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.mode-time {
  margin: 0;
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 0.85;
  color: var(--yellow);
}

.mode-time span {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.modes dl {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
}

.modes dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
}

.modes dt { color: var(--muted); }
.modes dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.brain-list,
.science-list { margin: 0; }

.brain-list article,
.science-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 22px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.index-num {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--yellow);
  line-height: 1;
}

.cite {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.caveat {
  margin-top: 8px;
  padding: 22px 22px 22px 24px;
  border-left: 3px solid var(--yellow);
  background: rgba(250, 252, 26, 0.05);
  border-radius: 0 16px 16px 0;
}

.caveat p { margin: 0; color: #e7e4d8; }

.quotes {
  display: grid;
  gap: 14px;
}

.quotes blockquote {
  margin: 0;
  padding: 24px;
  background: var(--bg-raised);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 100%;
}

.quote-text {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  line-height: 1.2;
}

.quotes footer {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.9rem;
}

.quotes footer span {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.faq { border-bottom: 1px solid var(--line); }

.faq details { border-top: 1px solid var(--line); }

.faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--yellow);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  margin: 0 0 18px;
  max-width: 44rem;
  color: #d9d6cb;
}

.close-band {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 28px;
  border-radius: 28px;
  background: var(--yellow);
  color: #151515;
}

.close-band h2 {
  margin: 8px 0 12px;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 0.92;
}

.close-band p { margin: 0; max-width: 36rem; }

.close-band .kicker { color: #151515; }

.brand-art {
  width: min(100%, 280px);
  justify-self: center;
  border-radius: 28px;
  display: block;
}

.site-footer {
  padding: 28px 0 48px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--yellow); }

.legal-hero { padding: 48px 0 10px; }

.legal-hero h1 {
  font-size: clamp(3rem, 6vw, 4.8rem);
}

.prose {
  max-width: 740px;
  padding-bottom: 72px;
}

.template-note {
  margin: 22px 0 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(250, 252, 26, 0.08);
  border: 1px solid rgba(250, 252, 26, 0.35);
  color: #f6f3c4;
  font-size: 0.95rem;
}

.prose h2 {
  margin: 2.2rem 0 0.6rem;
  font-size: 2rem;
  line-height: 1.1;
}

.prose p,
.prose li { color: #dddacd; }

.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.35rem; }

.updated { color: var(--muted); margin-top: 8px; }

@media (min-width: 800px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; padding-top: 64px; }
  .hero .device { margin-inline: 0 0; width: min(100%, 320px); }
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split.flip { grid-template-columns: 0.85fr 1.15fr; }
  .split.flip .copy { order: 2; }
  .modes-layout { grid-template-columns: 280px 1fr; }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .close-band {
    grid-template-columns: 1.4fr auto;
    padding: 48px;
  }
  .film {
    grid-auto-flow: unset;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
  }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 20px 18px;
    background: #151515;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-links.is-open { display: flex; }
  .modes dl div { flex-direction: column; gap: 2px; }
  .modes dd { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
}
