:root {
  --void: #03050b;
  --midnight: #070b16;
  --navy: #0b1224;
  --panel: #101a33;
  --panel-2: #162445;
  --line: rgba(0, 194, 255, 0.2);
  --line-soft: rgba(244, 247, 251, 0.08);
  --blue: #00c2ff;
  --blue-hot: #5ae7ff;
  --blue-dim: #0a7eab;
  --gold: #e8c547;
  --gold-2: #f6d56a;
  --red: #ff2d3a;
  --white: #f4f7fb;
  --muted: #93a0bb;
  --ink: #041018;
  --header-h: 4.25rem;
  --max: 1180px;
  --font-display: "Oswald", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --font-serif: "Cormorant Garamond", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 0.6rem); }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--midnight);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hot); }
button { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.04em; line-height: 0.95; margin: 0; text-wrap: balance; }
p { margin: 0; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--blue);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 80;
}
.skip:focus { top: 0.7rem; }

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue);
}

.lede {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:hover { background: var(--blue-hot); border-color: var(--blue-hot); color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(244, 247, 251, 0.28);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); background: transparent; }
.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 5, 11, 0.88);
  backdrop-filter: blur(16px);
}
.header-inner {
  width: min(1280px, calc(100% - 1.4rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  min-width: max-content;
}
.brand:hover { color: var(--white); }
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  object-fit: cover;
  background: #000;
}
.brand-name { display: flex; flex-direction: column; gap: 0.05rem; }
.brand-name strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.brand-name span {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}

.nav-desktop {
  display: none;
  flex: 1;
  justify-content: center;
  gap: 0.15rem;
}
.nav-desktop a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.45rem 0.5rem;
}
.nav-desktop a:hover,
.nav-desktop a.is-active { color: var(--white); }

.header-cta { display: none; gap: 0.45rem; margin-left: auto; }
.header-cta-mobile {
  margin-left: auto;
  min-height: 2.35rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.62rem;
}
.menu-btn {
  margin-left: 0.4rem;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.menu-btn span,
.menu-btn span::before,
.menu-btn span::after {
  display: block;
  width: 1.05rem;
  height: 1.5px;
  background: var(--white);
  position: relative;
}
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(3, 5, 11, 0.97);
  z-index: 39;
  padding: 1.2rem;
  overflow: auto;
}
.nav-mobile.is-open { display: block; }
.nav-mobile a {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.nav-explain {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0.4rem 0 1rem;
}
.nav-mobile .btn-row { margin-top: 1.2rem; }

@media (min-width: 1100px) {
  .nav-desktop, .header-cta { display: flex; }
  .menu-btn, .nav-mobile, .header-cta-mobile { display: none !important; }
}
@media (min-width: 1100px) and (max-width: 1280px) {
  .header-cta .btn-ghost { display: none; }
}
@media (max-width: 560px) {
  .hero .btn-row { flex-direction: column; align-items: stretch; }
  .hero .btn { width: 100%; }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 42%;
  filter: brightness(1.18) contrast(1.06) saturate(1.08);
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3,5,11,0.04) 0%, rgba(3,5,11,0.02) 42%, rgba(7,11,22,0.55) 88%, var(--midnight) 100%);
}
.hero-copy { position: relative; z-index: 2; padding: 6.5rem 0 3.2rem; }
.hero-copy .kicker { margin-bottom: 1rem; }
.hero h1 {
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  max-width: 12ch;
}
.hero h1 span { display: block; color: var(--blue-hot); }
.hero .lede { margin-top: 1.2rem; color: rgba(244,247,251,0.82); }
.hero .btn-row { margin-top: 1.7rem; }

.dispatch {
  padding: 2.6rem 0 2.8rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(0,194,255,0.1), transparent 42%),
    var(--navy);
}
.dispatch-inner {
  max-width: 46rem;
  padding-left: 1.15rem;
  border-left: 2px solid var(--gold);
}
.dispatch-quote {
  margin: 0.85rem 0 0.7rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.4;
  color: var(--gold-2);
}
.dispatch-cite {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.file-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}
.file-stamp::before {
  content: "";
  width: 1.6rem;
  height: 1px;
  background: var(--gold);
}

/* Sections */
.section { padding: 4.5rem 0; }
.section-head { margin-bottom: 1.8rem; }
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-top: 0.55rem;
}
.split-head {
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .split-head {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
  }
}

/* Category cards */
.cat-grid {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 720px) {
  .cat-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px) {
  .cat-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.cat-card {
  position: relative;
  min-height: 16.5rem;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  border: 1px solid var(--line);
  background: var(--navy);
  isolation: isolate;
}
.cat-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.6s ease;
  z-index: 0;
}
.cat-card:hover img { transform: scale(1.1); }
.cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(3,5,11,0.05), rgba(3,5,11,0.88) 72%);
}
.cat-card .cat-copy {
  position: relative;
  z-index: 2;
  padding: 1.2rem 1.15rem 1.15rem;
}
.cat-card h3 {
  font-size: 1.35rem;
  margin: 0.35rem 0 0.4rem;
}
.cat-card p { color: rgba(244,247,251,0.78); font-size: 0.92rem; }
.cat-card.is-coming { cursor: default; }
.cat-card.is-coming:hover img { transform: scale(1.04); }
.coming-flag {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
}

.community-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 960px) {
  .community-grid { grid-template-columns: 1.1fr 0.9fr; align-items: start; }
}
.chat-panel {
  border: 1px solid var(--line);
  background: var(--navy);
  padding: 1.15rem;
}
.chat-panel h2 { font-size: 1.6rem; margin: 0.35rem 0 0.9rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 0.7rem; }
.chat-live {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-hot);
}
.chat-log {
  min-height: 16rem;
  max-height: 22rem;
  overflow: auto;
  border: 1px solid var(--line-soft);
  background: rgba(3, 5, 11, 0.45);
  padding: 0.85rem;
}
.chat-empty, .chat-line p { color: var(--muted); }
.chat-line { margin-bottom: 0.85rem; }
.chat-line strong { display: block; font-size: 0.92rem; }
.chat-line time {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.chat-line p { margin-top: 0.25rem; color: var(--white); }
.chat-form { display: grid; gap: 0.65rem; margin-top: 0.9rem; position: relative; }
.chat-form .honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.chat-form label {
  display: grid;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.chat-form input, .chat-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--void);
  color: var(--white);
  padding: 0.7rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
}
.bubble { margin-bottom: 0.8rem; padding: 0.75rem 0.8rem; border: 1px solid var(--line-soft); }
.bubble.you { border-color: rgba(232,197,71,0.35); }
.bubble.desk { border-color: var(--line); }
.ask-cites { margin-top: 0.55rem; font-size: 0.88rem; }
@media (min-width: 720px) {
  .cat-card.wide { grid-column: span 2; }
}

/* Archive covers */
.file-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .file-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px) {
  .file-grid { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
.file-card {
  display: flex;
  flex-direction: column;
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--line);
  min-height: 100%;
}
.file-card:hover { border-color: var(--blue); color: var(--white); }
.file-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #050814;
  position: relative;
}
.file-cover img { width: 100%; height: 100%; object-fit: cover; }
.file-body { padding: 0.95rem 0.95rem 1.1rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.file-body h3 { font-size: 1.15rem; letter-spacing: 0.05em; }
.file-body p { color: var(--muted); font-size: 0.92rem; }
.meta-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; padding-top: 0.55rem; }

.badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.28rem 0.45rem;
  border: 1px solid var(--line);
  color: var(--blue-hot);
}
.badge-free { color: var(--blue-hot); border-color: rgba(0,194,255,0.45); }
.badge-member { color: var(--gold); border-color: rgba(232,197,71,0.45); }
.badge-premium { color: #ffd0d3; border-color: rgba(255,45,58,0.55); background: rgba(255,45,58,0.12); }
.badge-type { color: var(--muted); }
.badge-soon { color: var(--gold-2); }

/* Featured */
.featured {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 34rem;
  display: grid;
  align-items: center;
}
.featured-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.featured-bg img { width: 100%; height: 100%; object-fit: cover; }
.featured-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3,5,11,0.72) 0%, rgba(3,5,11,0.48) 42%, rgba(3,5,11,0.18) 100%);
}
.featured-copy { padding: 4.2rem 0; max-width: 36rem; }
.featured h2 { font-size: clamp(2.2rem, 6vw, 4.2rem); margin: 0.4rem 0 1rem; }
.names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  margin: 1rem 0 1.3rem;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--gold-2);
  font-style: italic;
}
.featured .question {
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 1.4rem;
}

/* Watch */
.watch-grid {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 800px) {
  .watch-grid { grid-template-columns: 1.4fr 1fr; }
}
.watch-main, .watch-side article {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 14rem;
  display: flex;
  align-items: flex-end;
  color: var(--white);
}
.watch-main { min-height: 22rem; background: #07101f; }
.watch-side { display: grid; gap: 0.85rem; }
.watch-side article { min-height: 10.4rem; background: var(--navy); }
.watch-main img, .watch-side img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55;
}
.watch-copy { position: relative; padding: 1.15rem; }
.play {
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--blue);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 0.8rem;
  background: rgba(0,194,255,0.12);
}
.play::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 11px solid var(--blue-hot);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  margin-left: 3px;
}

/* Sources */
.sources {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(0,194,255,0.12), transparent 40%),
    var(--navy);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.source-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.2rem 0 1.4rem;
}
.source-pills span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 0.45rem 0.65rem;
  color: var(--blue-hot);
}

/* Membership */
.member {
  display: grid;
  gap: 1.6rem;
  border: 1px solid var(--line-gold);
  background: linear-gradient(180deg, rgba(232,197,71,0.07), rgba(7,11,22,0.4));
  padding: 1.4rem;
}
@media (min-width: 860px) {
  .member { grid-template-columns: 1.3fr 0.7fr; padding: 2.2rem; align-items: center; }
}
.price {
  font-family: var(--font-display);
  font-size: 3.2rem;
  letter-spacing: 0.04em;
  color: var(--gold-2);
}
.price small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}
.perks { list-style: none; margin: 1rem 0 0; padding: 0; color: var(--muted); }
.perks li { padding: 0.28rem 0 0.28rem 1rem; position: relative; }
.perks li::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border: 1px solid var(--gold);
  position: absolute;
  left: 0;
  top: 0.7rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 1.4rem;
  background: var(--void);
}
.foot-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}
.foot-brand span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0.25rem 0 0.8rem;
}
.motto {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold-2);
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.1rem;
  margin: 1.3rem 0 1rem;
}
.foot-nav a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.legal { color: var(--muted); font-size: 0.85rem; }

/* Page heros */
.page-hero {
  padding: 3.2rem 0 1.4rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 80% 0%, rgba(0,194,255,0.14), transparent 40%),
    var(--void);
}
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin-top: 0.5rem; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.75rem 0 0.9rem;
  margin-bottom: 0.4rem;
  position: sticky;
  top: var(--header-h);
  z-index: 15;
  background: rgba(7, 11, 22, 0.94);
  backdrop-filter: blur(12px);
}
.filter {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
}
.filter.is-on, .filter:hover { color: var(--ink); background: var(--blue); border-color: var(--blue); }

.explorer-grid, .topic-grid {
  display: grid;
  gap: 0.8rem;
}
@media (min-width: 720px) {
  .explorer-grid { grid-template-columns: 1fr 1fr; }
  .topic-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.explorer, .topic {
  border: 1px solid var(--line);
  background: var(--navy);
  padding: 1.1rem;
}
.explorer h3, .topic h3 { font-size: 1.2rem; margin-bottom: 0.35rem; }
.explorer p, .topic p { color: var(--muted); font-size: 0.95rem; }
.years {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.notice {
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  color: var(--muted);
  background: rgba(0,194,255,0.05);
}
.notice strong { color: var(--white); }

.about-grid {
  display: grid;
  gap: 1.4rem;
  align-items: start;
}
@media (min-width: 800px) {
  .about-grid { grid-template-columns: 1.15fr 0.85fr; }
}
.mission {
  max-width: 42rem;
  border: 1px solid var(--line);
  background: var(--navy);
  padding: 1.4rem 1.35rem 1.55rem;
}
.mission h2 {
  margin-top: 0.45rem;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
}
.mission p {
  margin-top: 0.85rem;
  color: var(--muted);
}
.quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.55rem;
  line-height: 1.35;
  color: var(--gold-2);
}

body.is-locked { overflow: hidden; }
