/* AccEarth — landing page stylesheet */

:root {
  --ink: #060708;
  --text: #f2f1ee;
  --muted: #8b8b86;
  --dim: rgba(242, 241, 238, 0.62);
  --line: rgba(242, 241, 238, 0.13);
  --line-soft: rgba(242, 241, 238, 0.07);
  --accent: #d8a061;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(20px, 5vw, 64px);
  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }

::selection { background: var(--accent); color: #0a0a0a; }

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--text);
  color: var(--ink);
  font-size: 14px;
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.4s var(--ease);
}
.skip:focus { transform: translateY(0); }

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- shared type ---------- */

.eyebrow,
.label,
.phase,
.status,
.cue-txt,
.media-note,
.hero-meta dt,
th {
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--dim);
}

.dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(216, 160, 97, 0.16);
}

.label { color: var(--muted); display: flex; gap: 12px; align-items: baseline; }
.label em { font-style: normal; color: var(--accent); }

.lede {
  max-width: 48ch;
  color: var(--dim);
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--text);
  color: #08090a;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: #ffffff; }
.btn:active { transform: translateY(0) scale(0.99); }

.btn-sm { padding: 8px 16px; font-size: 14px; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(242, 241, 238, 0.28);
}
.btn-ghost:hover {
  background: rgba(242, 241, 238, 0.08);
  border-color: rgba(242, 241, 238, 0.5);
}

.quiet-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--dim);
  border-bottom: 1px solid rgba(242, 241, 238, 0.2);
  padding-bottom: 3px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.quiet-link:hover { color: var(--text); border-color: var(--text); }
.quiet-link span { transition: transform 0.4s var(--ease); }
.quiet-link:hover span { transform: translateY(3px); }

/* ---------- nav ---------- */

.nav {
  position: fixed;
  z-index: 100;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1280px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(242, 241, 238, 0.07);
  background: rgba(6, 7, 8, 0.42);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease);
}
.nav.is-solid {
  background: rgba(6, 7, 8, 0.82);
  border-color: rgba(242, 241, 238, 0.12);
}

.nav-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 21px;
  letter-spacing: 0.01em;
}
.mark-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text);
  position: relative;
}
.mark-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(242, 241, 238, 0.35);
}

.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px;
  color: var(--dim);
  position: relative;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(242, 241, 238, 0.16);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 16px; height: 1px;
  background: var(--text);
  transition: transform 0.45s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 22px; }
body.menu-open .nav-toggle span:first-child { transform: translateY(2.5px) rotate(45deg); }
body.menu-open .nav-toggle span:last-child { transform: translateY(-2.5px) rotate(-45deg); }

/* ---------- mobile menu ---------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
  padding: 96px var(--pad) 40px;
  background: rgba(6, 7, 8, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
body.menu-open { overflow: hidden; }
.menu[hidden] { display: none; }

.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--serif);
  font-size: clamp(30px, 9vw, 46px);
  line-height: 1.1;
  opacity: 1;
}
.menu.is-open nav a { animation: menuIn 0.55s var(--ease) both; }
@keyframes menuIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.menu.is-open nav a:nth-child(1) { animation-delay: 0.06s; }
.menu.is-open nav a:nth-child(2) { animation-delay: 0.12s; }
.menu.is-open nav a:nth-child(3) { animation-delay: 0.18s; }
.menu.is-open nav a:nth-child(4) { animation-delay: 0.24s; }
.menu.is-open nav a:nth-child(5) { animation-delay: 0.3s; }
.menu nav em {
  font-style: normal;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.menu-foot { font-size: 13px; color: var(--muted); }

/* ---------- telemetry rail ---------- */

.telemetry {
  position: fixed;
  z-index: 80;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: rgba(242, 241, 238, 0.4);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  mix-blend-mode: difference;
}
.t-index { writing-mode: vertical-rl; }
.t-line {
  width: 1px;
  height: 120px;
  background: rgba(242, 241, 238, 0.18);
  position: relative;
  overflow: hidden;
}
.t-line i {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 0%;
  background: var(--accent);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}

.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04) translate3d(0, 0, 0);
  will-change: transform;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 7, 8, 0.94) 0%, rgba(6, 7, 8, 0.35) 45%, rgba(6, 7, 8, 0.5) 100%),
    linear-gradient(to right, rgba(6, 7, 8, 0.55), rgba(6, 7, 8, 0) 65%);
}

.hero-inner {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 140px var(--pad) 108px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(48px, 8.2vw, 128px);
  line-height: 0.94;
  letter-spacing: -0.018em;
  margin: 24px 0 28px;
  max-width: 15ch;
  background: linear-gradient(to right, #ffffff 30%, #9b9b9b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}

.hero-sub {
  max-width: 46ch;
  color: rgba(242, 241, 238, 0.7);
  font-size: 17px;
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(48px, 8vh, 84px);
  padding-top: 22px;
  border-top: 1px solid rgba(242, 241, 238, 0.18);
}
.hero-meta dt { color: var(--muted); margin-bottom: 8px; }
.hero-meta dd { font-size: 14px; line-height: 1.5; color: rgba(242, 241, 238, 0.84); }

.scroll-cue {
  position: absolute;
  right: var(--pad);
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}
.cue-txt { transition: color 0.3s var(--ease); }
.cue-line {
  width: 48px;
  height: 1px;
  background: rgba(242, 241, 238, 0.2);
  position: relative;
  overflow: hidden;
}
.cue-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: translateX(-100%);
  animation: cue 2.6s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: translateX(-100%); }
  55% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}
.scroll-cue:hover .cue-txt { color: var(--text); }

/* ---------- statement ---------- */

.statement {
  padding: clamp(96px, 18vh, 200px) var(--pad);
  border-bottom: 1px solid var(--line-soft);
}
.statement-text {
  width: min(1120px, 100%);
  margin: 0 auto;
  font-family: var(--serif);
  font-size: clamp(32px, 4.9vw, 68px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: none;
  text-wrap: pretty;
}
.statement-text .w {
  color: var(--text);
  transition: color 0.6s var(--ease);
}
.motion .statement-text .w { color: rgba(242, 241, 238, 0.22); }
.statement-text .w.on { color: var(--text); }

.statement-foot {
  width: min(1120px, 100%);
  margin: 64px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- plate ---------- */

.plate { padding: 0 var(--pad); }
.plate-figure { margin: 0; }
.plate-figure img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}
.plate-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0 clamp(64px, 10vh, 96px);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.plate-caption span:first-child { color: var(--dim); }

/* ---------- features ---------- */

.feature {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(72px, 11vh, 128px) var(--pad);
  border-bottom: 1px solid var(--line-soft);
}
.feature-flip .feature-media { order: -1; }

.feature-copy h2,
.section-head h2,
.orbital-copy h2,
.error-inner h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.012em;
  margin: 20px 0 22px;
  max-width: 18ch;
  text-wrap: balance;
}

.feature-copy .lede { max-width: 44ch; }

.feature-media { position: relative; }
.feature-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.media-note {
  margin-top: 12px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.spec-list { margin-top: 32px; border-top: 1px solid var(--line); }
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
.spec-list li span:first-child { font-weight: 500; }
.spec-list li span:last-child { color: var(--muted); text-align: right; }

.detect-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 32px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.detect-grid h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.detect-grid p { font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ---------- orbital / 3d globe ---------- */

.orbital {
  display: grid;
  grid-template-columns: 0.95fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(72px, 11vh, 128px) var(--pad);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.orbital-copy .lede { max-width: 44ch; }

.orbital-stage {
  display: grid;
  justify-items: center;
  gap: 8px;
  perspective: 1200px;
}
.orbital-stage .media-note { margin-top: 56px; }
.orbital-stage .credit {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242, 241, 238, 0.32);
}

.globe {
  position: relative;
  width: min(420px, 80vw);
  aspect-ratio: 1;
  perspective: 1200px;
}

.globe-canvas {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.globe.live .globe-canvas { opacity: 1; }
.globe.live .globe-core,
.globe.live .globe-rings,
.globe.live .globe-scan,
.globe.live .orbit { display: none; }

/* Image sphere for browsers where WebGL is unavailable or the day map fails. */
.globe-earth {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 50%;
  background-color: #0b1620;
  background-image: url("../img/earth-day.jpg");
  background-repeat: repeat-x;
  background-size: 200% 100%;
  box-shadow: 0 0 80px rgba(122, 172, 196, 0.16);
  animation: globeDrift 90s linear infinite;
}
.globe-earth::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.14), transparent 40%),
    radial-gradient(circle at 68% 74%, rgba(0, 0, 0, 0.5), transparent 60%),
    radial-gradient(circle at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.72) 100%);
  box-shadow: inset 0 0 0 1px rgba(242, 241, 238, 0.12);
}
@keyframes globeDrift {
  from { background-position: 0 0; }
  to { background-position: -200% 0; }
}
.globe.fallback .globe-core,
.globe.fallback .globe-rings,
.globe.fallback .globe-scan,
.globe.fallback .orbit { display: none; }

.globe-glow {
  position: absolute;
  inset: -20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 140, 204, 0.34), rgba(38, 92, 148, 0.14) 48%, transparent 72%);
  filter: blur(14px);
}

.globe-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 26%, rgba(146, 198, 216, 0.34), rgba(26, 48, 62, 0.72) 40%, rgba(7, 9, 11, 0.94) 72%),
    radial-gradient(circle at 72% 84%, rgba(216, 160, 97, 0.26), transparent 58%);
  box-shadow:
    inset 0 0 70px rgba(0, 0, 0, 0.85),
    inset 0 0 0 1px rgba(242, 241, 238, 0.12),
    0 0 80px rgba(122, 172, 196, 0.16);
}

.globe-scan {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
}
.globe-scan::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 34%;
  border-bottom: 1px solid rgba(216, 160, 97, 0.45);
  background: linear-gradient(to bottom, transparent 15%, rgba(216, 160, 97, 0.14));
  animation: sweep 7s var(--ease) infinite;
}
@keyframes sweep {
  0% { transform: translateY(-130%); }
  60%, 100% { transform: translateY(260%); }
}

.globe-rings {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: spin 40s linear infinite;
}
.globe-rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(242, 241, 238, 0.18);
}
.globe-rings .mer { transform: rotateY(var(--a)); }
.globe-rings .par {
  inset: auto;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-color: rgba(216, 160, 97, 0.26);
  transform: translate(-50%, -50%) translateY(var(--y)) rotateX(90deg) scale(var(--s));
}
.globe-rings .pin {
  inset: auto;
  top: 36%;
  left: 64%;
  width: 7px;
  height: 7px;
  border: 0;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(216, 160, 97, 0.16), 0 0 14px 2px rgba(216, 160, 97, 0.5);
}
@keyframes spin { to { transform: rotateY(360deg); } }

.orbit {
  position: absolute;
  inset: -7%;
  transform-style: preserve-3d;
  transform: rotateX(74deg) rotateZ(-18deg);
}
.orbit-2 {
  inset: 1%;
  transform: rotateX(-64deg) rotateZ(30deg);
}
.orbit i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(216, 160, 97, 0.16);
  animation: fly 22s linear infinite;
}
.orbit-2 i { animation-duration: 16s; animation-direction: reverse; }
.orbit i::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 2px rgba(216, 160, 97, 0.55);
}
@keyframes fly { to { transform: rotateZ(360deg); } }

/* ---------- instruments ---------- */

.instruments {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(72px, 11vh, 128px) var(--pad);
  border-bottom: 1px solid var(--line-soft);
}
.section-head { max-width: 720px; }
.section-head .lede { margin-top: 8px; }

.table-wrap { margin-top: 56px; overflow-x: auto; }
.instruments-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.instruments-table thead th {
  text-align: left;
  padding: 0 16px 14px 0;
  color: var(--muted);
  font-weight: 500;
}
.instruments-table tbody th,
.instruments-table tbody td {
  padding: 20px 16px 20px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: baseline;
}
.instruments-table tbody tr:last-child th,
.instruments-table tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.instruments-table tbody th { font-size: 16px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.instruments-table tbody td { font-size: 14px; color: var(--dim); }
.instruments-table tbody tr { transition: background 0.4s var(--ease); }
.instruments-table tbody tr:hover { background: rgba(242, 241, 238, 0.03); }

.table-foot {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- steps ---------- */

.steps {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(72px, 11vh, 128px) var(--pad);
  border-bottom: 1px solid var(--line-soft);
}
.steps-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.steps-list li { border-top: 1px solid var(--line); padding-top: 20px; }
.step-no {
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.steps-list h3 {
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.15;
  margin: 14px 0 12px;
}
.steps-list p { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 34ch; }

/* ---------- roadmap ---------- */

.roadmap {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(72px, 11vh, 128px) var(--pad);
  border-bottom: 1px solid var(--line-soft);
}
.roadmap-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.roadmap-list li {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 190px;
}
.phase { color: var(--muted); letter-spacing: 0.12em; }
.roadmap-list h3 { font-family: var(--serif); font-size: 24px; line-height: 1.15; }
.roadmap-list p { font-size: 13px; line-height: 1.55; color: var(--muted); flex: 1; }
.status {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(242, 241, 238, 0.16);
  color: var(--muted);
  letter-spacing: 0.1em;
}
.status.done { color: var(--dim); border-color: rgba(242, 241, 238, 0.24); }
.status.live { color: var(--accent); border-color: rgba(216, 160, 97, 0.5); }

/* ---------- faq ---------- */

.faq {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(72px, 11vh, 128px) var(--pad);
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
  border-bottom: 1px solid var(--line-soft);
}
.faq .section-head { position: sticky; top: 120px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  background: none;
  border: 0;
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.faq-q:hover { color: #ffffff; }
.faq-q span {
  flex: none;
  width: 14px; height: 14px;
  position: relative;
}
.faq-q span::before,
.faq-q span::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 1px;
  background: var(--dim);
  transition: transform 0.5s var(--ease), background 0.3s var(--ease);
}
.faq-q span::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] span::before,
.faq-q[aria-expanded="true"] span::after { background: var(--accent); }
.faq-q[aria-expanded="true"] span::after { transform: rotate(0deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.55s var(--ease);
}
.faq-a p {
  padding: 0 40px 24px 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- download ---------- */

.download {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  border-top: 1px solid var(--line-soft);
}
.download-media { position: absolute; inset: 0; z-index: -1; }
.download-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.download-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(6, 7, 8, 0.6) 0%, rgba(6, 7, 8, 0.95) 72%);
}
.download-inner {
  padding: clamp(80px, 14vh, 140px) var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.download .eyebrow { justify-content: center; }
.download h2 {
  font-family: var(--serif);
  font-size: clamp(44px, 7.4vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 22px 0 20px;
}
.download-sub { color: var(--dim); max-width: 46ch; font-size: 17px; line-height: 1.6; }
.download-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 34px;
}
.download-note { margin-top: 32px; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- footer ---------- */

.footer {
  padding: 64px var(--pad) 28px;
  border-top: 1px solid var(--line);
  background: #040506;
}
.footer-top {
  width: min(1280px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1.6fr;
  gap: clamp(32px, 6vw, 80px);
}
.footer-brand p { margin-top: 16px; font-size: 14px; color: var(--muted); max-width: 30ch; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer-cols h3 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 14px;
}
.footer-cols a {
  display: block;
  font-size: 14px;
  color: var(--dim);
  padding: 5px 0;
  transition: color 0.3s var(--ease);
}
.footer-cols a:hover { color: var(--text); }

.footer-bottom {
  width: min(1280px, 100%);
  margin: 56px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}
.foot-coord { letter-spacing: 0.12em; }

/* ---------- 404 ---------- */

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--pad);
}
.error-inner { max-width: 620px; }
.error-inner .lede { margin-bottom: 32px; }

/* ---------- reveal ---------- */

.reveal {
  opacity: 1;
  transform: none;
}
.reveal.in {
  animation: riseIn 0.8s var(--ease) both;
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(32px); }
  to { opacity: 1; transform: translateY(0); }
}
.feature .feature-media.reveal.in { animation-delay: 0.08s; }
.steps-list li.reveal.in:nth-child(2),
.roadmap-list li.reveal.in:nth-child(2) { animation-delay: 0.08s; }
.steps-list li.reveal.in:nth-child(3),
.roadmap-list li.reveal.in:nth-child(3) { animation-delay: 0.16s; }
.roadmap-list li.reveal.in:nth-child(4) { animation-delay: 0.24s; }
.roadmap-list li.reveal.in:nth-child(5) { animation-delay: 0.32s; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .telemetry { display: none; }
  .nav-links { gap: 18px; }
  /* eight menu items now, so keep the mobile menu inside short screens */
  .menu { gap: 26px; padding-top: 84px; }
  .menu nav a { font-size: clamp(26px, 7.6vw, 38px); padding: 11px 0; }
  .roadmap-list { grid-template-columns: repeat(2, 1fr); }
  .roadmap-list li { min-height: 0; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .feature { grid-template-columns: 1fr; }
  .feature-flip .feature-media { order: 0; }
  .feature-media img { aspect-ratio: 16 / 10; }
  .orbital { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .faq .section-head { position: static; }
  .steps-list { grid-template-columns: 1fr; gap: 28px; }
  .footer-top { grid-template-columns: 1fr; }
  .plate-figure img { aspect-ratio: 16 / 10; }
  .plate-caption { flex-direction: column; gap: 6px; }
  .statement-foot { flex-direction: column; }
}

@media (max-width: 560px) {
  .hero-inner { padding-top: 120px; padding-bottom: 96px; }
  .hero-meta { grid-template-columns: 1fr; gap: 18px; }
  .hero-meta div { display: flex; flex-direction: column; gap: 4px; }
  .hero-meta dt { margin-bottom: 0; }
  .hero-meta dd { text-align: left; }
  .scroll-cue { display: none; }
  .hero-cta { gap: 20px; }
  .btn { width: 100%; }
  .hero-cta .btn,
  .download-actions .btn { width: 100%; }
  .detect-grid { grid-template-columns: 1fr; }
  .globe { width: min(320px, 74vw); }
  .roadmap-list { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
  .download-actions { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .reveal.in { animation: none; }
  .statement-text .w { color: var(--text); }
  .hero-media img { transform: none; }
  .globe { transform: none; }
  .globe-rings,
  .orbit i,
  .globe-scan::after { animation: none; }
}

/* =====================================================================
   Inner pages — journal, article, about, contact, legal, sign in, index
   ===================================================================== */

.nav-login {
  font-size: 14px;
  color: var(--dim);
  padding: 0 6px;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}
.nav-login:hover { color: var(--text); }

@media (max-width: 900px) {
  .nav-login { display: none; }
}

.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- page frame ---------- */

.page-hero {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(132px, 18vh, 190px) var(--pad) clamp(40px, 6vh, 64px);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(40px, 6.2vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.018em;
  max-width: 18ch;
  margin: 22px 0 24px;
  text-wrap: balance;
}
.page-hero .lede { font-size: 18px; max-width: 56ch; }

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-body {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(48px, 8vh, 88px) var(--pad) clamp(80px, 12vh, 128px);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.crumbs a { transition: color 0.3s var(--ease); }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { color: rgba(242, 241, 238, 0.28); }

/* ---------- journal ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(242, 241, 238, 0.16);
  background: transparent;
  color: var(--dim);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.chip:hover { color: var(--text); border-color: rgba(242, 241, 238, 0.35); }
.chip.is-active { background: var(--text); color: #08090a; border-color: var(--text); }

.journal-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 28px;
  margin-bottom: clamp(32px, 5vh, 48px);
  border-bottom: 1px solid var(--line);
}
.journal-count { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.post-feature {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(40px, 6vh, 64px);
  margin-bottom: clamp(40px, 6vh, 64px);
  border-bottom: 1px solid var(--line);
}
.post-feature figure { margin: 0; overflow: hidden; }
.post-feature img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.post-feature a:hover img { transform: scale(1.02); }
.post-feature h2 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.06;
  margin: 16px 0 14px;
  max-width: 20ch;
}
.post-feature p { font-size: 16px; line-height: 1.65; color: var(--muted); max-width: 46ch; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 44px);
}
.post-card { display: flex; flex-direction: column; }
.post-card[hidden] { display: none; }
.post-card figure { margin: 0; overflow: hidden; background: #0b0d0f; }
.post-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.post-card a:hover img { transform: scale(1.03); }
.post-card h2 {
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.14;
  margin: 18px 0 10px;
}
.post-card h2 a:hover { color: var(--accent); }
.post-card p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.post-card .post-meta { margin-bottom: 14px; order: -1; }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-meta .cat { color: var(--accent); }
.post-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(242, 241, 238, 0.3); }

.subscribe {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  margin-top: clamp(56px, 9vh, 88px);
  padding-top: clamp(32px, 5vh, 48px);
  border-top: 1px solid var(--line);
}
.subscribe h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  margin-bottom: 10px;
}
.subscribe p { font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 46ch; }
.inline-form { display: flex; gap: 10px; }
.inline-form input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border-radius: 2px;
  border: 1px solid rgba(242, 241, 238, 0.16);
  background: rgba(242, 241, 238, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.inline-form input::placeholder { color: rgba(242, 241, 238, 0.32); }
.inline-form input:focus { outline: none; border-color: var(--accent); background: rgba(242, 241, 238, 0.06); }
.subscribe .form-status { margin-top: 12px; }

/* ---------- article ---------- */

.article-head { max-width: 780px; }
.article-head h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5.4vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  margin: 20px 0 0;
  text-wrap: balance;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 30px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-hero { margin: clamp(32px, 5vh, 48px) 0 0; }
.article-hero img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.article-hero figcaption {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.prose {
  max-width: 68ch;
  margin: clamp(40px, 6vh, 64px) auto 0;
  font-size: 17px;
  line-height: 1.78;
  color: rgba(242, 241, 238, 0.78);
}
.prose > * + * { margin-top: 22px; }
.prose h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  color: var(--text);
  margin-top: 48px;
}
.prose h3 { font-size: 17px; font-weight: 600; color: var(--text); margin-top: 32px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--text); border-bottom: 1px solid rgba(216, 160, 97, 0.5); transition: color 0.3s var(--ease); }
.prose a:hover { color: var(--accent); }
.prose ul, .prose ol { display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 24px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.8em;
  width: 8px; height: 1px;
  background: var(--accent);
}
.prose ol { counter-reset: n; }
.prose ol li::before {
  counter-increment: n;
  content: counter(n);
  position: absolute;
  left: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--accent);
  top: 0.35em;
}
.prose blockquote {
  margin: 44px 0;
  padding-left: 26px;
  border-left: 1px solid var(--accent);
  font-family: var(--serif);
  font-size: clamp(24px, 2.8vw, 31px);
  line-height: 1.25;
  color: var(--text);
}
.prose figure { margin: 40px 0; }
.prose figure img { width: 100%; }
.prose figcaption {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-foot {
  max-width: 68ch;
  margin: clamp(48px, 7vh, 64px) auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.byline { display: flex; align-items: center; gap: 14px; }
.avatar {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(242, 241, 238, 0.04);
  font-family: var(--serif);
  font-size: 16px;
  color: var(--accent);
}
.byline strong { display: block; font-size: 14px; font-weight: 500; }
.byline span { font-size: 12px; color: var(--muted); }
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share a {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.share a:hover { color: var(--text); border-color: rgba(242, 241, 238, 0.35); }

.related {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: clamp(56px, 9vh, 88px) var(--pad) clamp(80px, 12vh, 120px);
  border-top: 1px solid var(--line-soft);
}
.related h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  margin-bottom: clamp(28px, 4vh, 40px);
}

/* ---------- forms ---------- */

.form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field > label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 2px;
  border: 1px solid rgba(242, 241, 238, 0.16);
  background: rgba(242, 241, 238, 0.03);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(242, 241, 238, 0.3); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--accent); background: rgba(242, 241, 238, 0.06); }
.field textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%238b8b86' stroke-width='1.4'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field select option { background: #0c0e10; color: var(--text); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--dim);
}
.check input { width: 16px; height: 16px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.check a { color: var(--text); border-bottom: 1px solid rgba(242, 241, 238, 0.3); }

.form-status { font-size: 14px; line-height: 1.5; color: var(--accent); min-height: 1.5em; }
.hint { font-size: 12px; line-height: 1.6; color: var(--muted); }

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.contact-aside { display: grid; gap: 32px; }
.contact-details { display: grid; gap: 26px; border-top: 1px solid var(--line); padding-top: 26px; }
.contact-details dt {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-details dd { font-size: 15px; line-height: 1.65; color: var(--dim); }
.contact-details a { border-bottom: 1px solid rgba(242, 241, 238, 0.25); transition: color 0.3s var(--ease); }
.contact-details a:hover { color: var(--text); }

/* ---------- legal ---------- */

.legal {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 120px;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.legal-toc h2 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 4px;
}
.legal-toc a { font-size: 14px; line-height: 1.4; color: var(--dim); transition: color 0.3s var(--ease); }
.legal-toc a:hover { color: var(--text); }

.legal-body { max-width: 72ch; }
.legal-body > p { font-size: 15px; line-height: 1.75; color: var(--dim); }
.legal-body section { margin-top: 44px; }
.legal-body section:first-of-type { margin-top: 32px; }
.legal-body h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 30px);
  line-height: 1.2;
  margin-bottom: 14px;
}
.legal-body p,
.legal-body li { font-size: 15px; line-height: 1.75; color: var(--dim); }
.legal-body p + p { margin-top: 14px; }
.legal-body ul { display: grid; gap: 8px; margin-top: 14px; }
.legal-body li { position: relative; padding-left: 20px; }
.legal-body li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.8em;
  width: 6px; height: 1px;
  background: var(--accent);
}
.footer-bottom a {
  color: var(--dim);
  border-bottom: 1px solid rgba(242, 241, 238, 0.22);
}
.footer-bottom a:hover { color: var(--text); }

.legal-updated {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.legal-note {
  margin-top: 48px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 1px solid var(--accent);
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- sign in ---------- */

.auth-page { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }
.auth-media { position: relative; overflow: hidden; }
.auth-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; }
.auth-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 7, 8, 0.97) 4%, rgba(6, 7, 8, 0.2) 70%);
}
.auth-quote { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: var(--pad); }
.auth-quote blockquote {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.2;
  max-width: 22ch;
}
.auth-quote p {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.auth-panel { display: grid; place-items: center; padding: 150px var(--pad) 90px; }
.auth-card { width: min(420px, 100%); }
.auth-card h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.05;
  margin: 18px 0 10px;
}
.auth-card > .lede { font-size: 15px; margin-bottom: 32px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.auth-row a { font-size: 13px; color: var(--accent); }
.auth-row a:hover { color: var(--text); }
.auth-alt {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.auth-alt a { color: var(--text); border-bottom: 1px solid rgba(242, 241, 238, 0.3); }
.auth-alt a:hover { color: var(--accent); }

/* ---------- stats ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: clamp(36px, 5vh, 56px) 0 clamp(48px, 7vh, 72px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.stat-row div { display: grid; gap: 10px; }
.stat-row strong {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  font-weight: 400;
}
.stat-row span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.more { margin-top: 24px; }
.section-gap { margin-top: 72px; }
.label-gap { margin-bottom: 16px; }

/* ---------- page index ---------- */

.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.index-col h2 {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.index-col a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  color: var(--dim);
  transition: color 0.3s var(--ease);
}
.index-col a:hover { color: var(--text); }
.index-col a span {
  flex: none;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- inner page responsive ---------- */

@media (max-width: 900px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-feature { grid-template-columns: 1fr; }
  .contact-grid,
  .legal,
  .subscribe { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-media { display: none; }
  .auth-panel { padding-top: 140px; }
  .index-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .stat-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .post-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .inline-form { flex-direction: column; }
  .page-hero h1 { font-size: clamp(36px, 10vw, 48px); }
  .article-head h1 { font-size: clamp(30px, 8.4vw, 40px); }
}

/* ---------- features and guides ---------- */

.page-hero .crumbs + .eyebrow { margin-top: 28px; }

.feature-nav { margin-bottom: clamp(40px, 6vh, 64px); }
.feature-nav .chip { text-decoration: none; }

.feature-group + .feature-group { margin-top: clamp(56px, 8vh, 88px); }
.feature-group .faq-list { margin-top: 28px; }
.feature-group .faq-q { font-size: 16px; }
.feature-group .faq-a p { padding-right: 0; }

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
}
.guide-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  background: rgba(242, 241, 238, 0.02);
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease);
}
.guide-card:hover {
  border-color: rgba(242, 241, 238, 0.3);
  background: rgba(242, 241, 238, 0.045);
  transform: translateY(-3px);
}
.guide-no { font-family: var(--serif); font-size: 15px; color: var(--accent); }
.guide-card h2 { font-family: var(--serif); font-size: 25px; line-height: 1.15; margin: 12px 0 10px; }
.guide-card p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.guide-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.guide-foot span:last-child { color: var(--dim); transition: color 0.3s var(--ease); }
.guide-card:hover .guide-foot span:last-child { color: var(--accent); }

@media (max-width: 900px) {
  .guide-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .guide-grid { grid-template-columns: 1fr; }
  .feature-nav .chip { font-size: 12px; padding: 7px 13px; }
}
