/* ==========================================================================
   DOVELO — core styles
   ========================================================================== */

:root {
  /* Brand palette */
  --navy: #071426;
  --midnight: #0A1F44;
  --blue: #007BFF;
  --cyan: #00D4FF;
  --teal: #22D3A7;
  --white: #FFFFFF;
  --soft: #F4F7FB;
  --muted: #9AABC2;
  --border: #20324A;

  /* Derived */
  --navy-2: #0B1A31;
  --ink: #071426;
  --ink-muted: #4A5B73;
  --line-light: #DCE3EE;
  --blue-hover: #1A8BFF;

  /* Type */
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(80px, 11vw, 144px);
  --header-h: 76px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Reset ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--cyan); color: var(--navy); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--white); color: var(--navy); border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* Shared primitives ----------------------------------------------------- */
.icon { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; letter-spacing: -.005em; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-ghost { border-color: var(--border); color: var(--white); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: .9375rem; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--cyan); font-weight: 600; font-size: .9375rem;
}
.text-link:hover .icon { transform: translateX(3px); }

.kicker {
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 20px;
}
.section { padding-block: var(--section-y); }
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.125rem, 4.6vw, 3.75rem); line-height: 1.04; letter-spacing: -.035em;
}
.muted { color: var(--muted); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot-teal { background: var(--teal); box-shadow: 0 0 0 4px rgba(34, 211, 167, .15); }

/* Brand lockup ---------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--white); }
.brand-symbol { width: 38px; height: 38px; transition: transform .35s var(--ease); }
.brand:hover .brand-symbol { transform: rotate(-5deg) scale(1.05); }
.lg-play { transform-box: fill-box; transform-origin: center; transition: transform .3s var(--ease); }
.brand:hover .lg-play { transform: scale(1.3); }
.brand-wordmark { width: 161px; height: 15px; }
.brand-lg .brand-symbol { width: 52px; height: 52px; }
.brand-lg .brand-wordmark { width: 215px; height: 20px; }

/* Header ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
}
.site-header.is-scrolled {
  background: rgba(7, 20, 38, .82);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--border);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.primary-nav { display: flex; align-items: center; gap: 40px; }
.primary-nav ul { display: flex; gap: 32px; }
.primary-nav ul a {
  position: relative; font-size: .9375rem; font-weight: 500; color: var(--muted);
  padding-block: 8px; transition: color .2s;
}
.primary-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.primary-nav ul a:hover, .primary-nav ul a[aria-current="true"] { color: var(--white); }
.primary-nav ul a[aria-current="true"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 10px;
  background: transparent; border: 1px solid var(--border); cursor: pointer; place-items: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--white);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------ */
.hero {
  position: relative; isolation: isolate;
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px));
  padding-bottom: clamp(48px, 6vw, 72px);
  overflow: hidden;
}
.hero::before {
  /* single, quiet light source behind the symbol */
  content: ""; position: absolute; z-index: -1;
  width: 900px; height: 900px; right: -260px; top: -120px;
  background: radial-gradient(closest-side, rgba(0, 123, 255, .20), rgba(0, 123, 255, 0));
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center; gap: clamp(32px, 5vw, 80px);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .875rem; font-weight: 500; color: var(--muted);
  padding: 8px 16px 8px 14px; border: 1px solid var(--border); border-radius: 999px;
  margin-bottom: 36px;
}
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(3.25rem, 8.6vw, 7.25rem); line-height: .94; letter-spacing: -.05em;
  margin-bottom: 36px;
}
.hero-title span { display: block; }
.hero-title .accent { color: var(--cyan); }

.hero-lede {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.125rem, 1.8vw, 1.375rem); line-height: 1.4; letter-spacing: -.015em;
  color: var(--muted); margin-bottom: 16px;
}
.hero-lede strong { color: var(--white); font-weight: 600; }
.hero-sub { max-width: 34rem; color: var(--muted); margin-bottom: 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Orbit visual */
.hero-visual { display: flex; justify-content: center; }
.orbit { position: relative; width: min(100%, 480px); aspect-ratio: 1; }
.orbit-ring { position: absolute; border-radius: 50%; border: 1px solid var(--border); }
.orbit-ring-outer { inset: 0; }
.orbit-ring-inner { inset: 17%; border-style: dashed; border-color: rgba(154, 171, 194, .18); }
.orbit-symbol {
  position: absolute; inset: 27%; width: 46%; height: 46%;
  filter: drop-shadow(0 24px 60px rgba(0, 123, 255, .35));
}
.orbit-label {
  position: absolute; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  background: var(--midnight); border: 1px solid var(--border);
  font-size: .875rem; font-weight: 600; color: var(--soft);
  transform: translate(-50%, -50%);
}
.orbit-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.orbit-label.l-1 { left: 50%; top: 0; }
.orbit-label.l-2 { left: 100%; top: 50%; transform: translate(-70%, -50%); }
.orbit-label.l-3 { left: 50%; top: 100%; }
.orbit-label.l-4 { left: 0; top: 50%; transform: translate(-30%, -50%); }
.orbit-label.l-4 i { background: var(--teal); }

.hero-index {
  display: flex; flex-wrap: wrap; gap: 12px 0;
  margin-top: clamp(56px, 8vw, 104px); padding-top: 28px; border-top: 1px solid var(--border);
}
.hero-index li {
  flex: 1 1 0; min-width: 160px; display: flex; align-items: baseline; gap: 12px;
  font-size: .9375rem; font-weight: 500; color: var(--soft);
}
.hero-index span { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Verbs ----------------------------------------------------------------- */
.section-head { margin-bottom: clamp(48px, 7vw, 88px); }
.verbs-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}
.verb {
  padding: 36px clamp(20px, 3vw, 40px) 8px 0;
  display: flex; flex-direction: column; gap: 16px;
}
.verb + .verb { padding-left: clamp(20px, 3vw, 40px); border-left: 1px solid var(--border); }
.verb-num { font-size: .8125rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.verb-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 3.4vw, 2.75rem); letter-spacing: -.04em; line-height: 1;
  margin-top: 24px;
}
.verb:nth-child(3) .verb-title { color: var(--cyan); }
.verb p { color: var(--muted); max-width: 22rem; }
.verb .text-link { margin-top: auto; padding-top: 16px; }

/* Ecosystem ------------------------------------------------------------- */
.ecosystem { background: var(--navy-2); border-block: 1px solid var(--border); }
.eco-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.eco-intro { max-width: 26rem; color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  min-height: 40px; padding: 0 18px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--border);
  font-size: .875rem; font-weight: 600; color: var(--muted);
  transition: color .2s, border-color .2s, background-color .2s;
}
.filter:hover { color: var(--white); border-color: var(--muted); }
.filter[aria-pressed="true"] { background: var(--white); border-color: var(--white); color: var(--navy); }

.eco-list { border-top: 1px solid var(--border); }
.eco-row {
  position: relative;
  display: grid; grid-template-columns: 64px minmax(180px, 1fr) minmax(0, 1.4fr) 132px;
  align-items: center; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--border);
  transition: background-color .25s;
}
.eco-row::before {
  content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 2px;
  background: var(--cyan); transform: scaleY(0); transition: transform .3s var(--ease);
}
.eco-row:hover::before { transform: scaleY(1); }
.eco-row[hidden] { display: none; }
.eco-num { padding-left: 16px; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.eco-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.375rem, 2.2vw, 1.75rem); letter-spacing: -.03em; line-height: 1.15;
  transition: color .2s;
}
.eco-row:hover .eco-name { color: var(--cyan); }
.eco-desc { color: var(--muted); }

.status {
  justify-self: end; display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 600; color: var(--soft); white-space: nowrap;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.status-live::before { background: var(--teal); }
.status-building::before { background: var(--cyan); }
.status-planned { color: var(--muted); }
.status-planned::before { background: transparent; border: 1.5px solid var(--muted); width: 5px; height: 5px; }

/* Principles (light) ---------------------------------------------------- */
.principles { background: var(--soft); color: var(--ink); }
.principles .kicker { color: var(--blue); }
.principles-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(48px, 8vw, 120px); }
.principles-head { align-self: start; position: sticky; top: calc(var(--header-h) + 40px); }
.principles-intro { margin-top: 28px; max-width: 26rem; color: var(--ink-muted); }
.principles-list { border-top: 1px solid var(--line-light); }
.principle { padding: 36px 0; border-bottom: 1px solid var(--line-light); }
.principle dt {
  display: flex; align-items: baseline; gap: 20px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.03em; line-height: 1.15;
}
.principle dt span { font-family: var(--font-body); font-size: .8125rem; font-weight: 600; color: var(--blue); letter-spacing: 0; }
.principle dd { margin-top: 14px; padding-left: 40px; color: var(--ink-muted); max-width: 34rem; }

/* Journal --------------------------------------------------------------- */
.journal-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-rows: auto auto; gap: 24px;
}
.post-feature { grid-row: span 2; }
.post-link {
  display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--navy-2); transition: border-color .25s;
}
.post-link:hover { border-color: #33507A; }
.post-link:hover .post-title { color: var(--cyan); }
.post-body { padding: 24px 28px 28px; }
.post-meta { font-size: .8125rem; color: var(--muted); margin-bottom: 12px; }
.post-meta span { color: var(--cyan); font-weight: 600; }
.post-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.375rem; line-height: 1.25; letter-spacing: -.02em; transition: color .2s;
}
.post-feature .post-title { font-size: clamp(1.625rem, 2.6vw, 2.125rem); line-height: 1.15; letter-spacing: -.03em; }
.post-excerpt { margin-top: 14px; color: var(--muted); max-width: 36rem; }

/* Abstract editorial art — geometry, not stock imagery */
.post-art { position: relative; flex: 1 1 auto; min-height: 180px; background: var(--midnight); overflow: hidden; }
.post-art span { position: absolute; display: block; }
.post-feature .post-art { min-height: 320px; }

.art-a span:nth-child(1) { width: 62%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(0, 212, 255, .35); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.art-a span:nth-child(2) { width: 36%; aspect-ratio: 1; border-radius: 50%; background: linear-gradient(145deg, var(--cyan), var(--blue)); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.art-a span:nth-child(3) { width: 0; height: 0; left: 50%; top: 50%; border-style: solid; border-width: 22px 0 22px 36px; border-color: transparent transparent transparent var(--navy); transform: translate(-38%, -50%); }

.art-b span:nth-child(1) { left: 12%; right: 12%; top: 34%; height: 14px; border-radius: 7px; background: var(--blue); }
.art-b span:nth-child(2) { left: 12%; width: 46%; top: calc(34% + 30px); height: 14px; border-radius: 7px; background: var(--cyan); }

.art-c { display: block; }
.art-c span { width: 22%; aspect-ratio: 1; top: 50%; border-radius: 10px; border: 1px solid rgba(154, 171, 194, .3); transform: translateY(-50%); }
.art-c span:nth-child(1) { left: 6%; }
.art-c span:nth-child(2) { left: 29%; }
.art-c span:nth-child(3) { left: 52%; background: var(--blue); border-color: var(--blue); }
.art-c span:nth-child(4) { left: 75%; }

/* Letter ---------------------------------------------------------------- */
.letter { padding-top: 0; }
.letter-panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center;
  gap: 32px 64px; padding: clamp(36px, 6vw, 72px);
  border-radius: 24px; background: var(--midnight); border: 1px solid var(--border);
}
.letter-mark {
  position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px; opacity: .08; pointer-events: none;
}
.letter-copy p { margin-top: 16px; color: var(--muted); max-width: 28rem; }
.letter-form { position: relative; }
.field {
  display: flex; gap: 8px; padding: 6px; border-radius: 999px;
  background: var(--navy); border: 1px solid var(--border); transition: border-color .2s;
}
.field:focus-within { border-color: var(--blue); }
.field input {
  flex: 1 1 auto; min-width: 0; padding: 0 18px; background: transparent; border: 0; outline: 0;
  font-size: 1rem;
}
.field input::placeholder { color: #5F7290; }
.field .btn { min-height: 48px; }
.field .btn:disabled { opacity: .6; cursor: progress; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 12px; padding-left: 20px; font-size: .875rem; color: var(--muted); }
.form-msg.is-error { color: #FF8A8A; }
.form-msg.is-success { color: var(--teal); }
.letter-form.is-error .field { border-color: #FF8A8A; }

/* Footer ---------------------------------------------------------------- */
.site-footer { padding-block: clamp(64px, 8vw, 96px) 32px; border-top: 1px solid var(--border); }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-tag { margin-top: 20px; color: var(--muted); font-size: .9375rem; }
.footer-nav { display: flex; gap: clamp(40px, 7vw, 96px); flex-wrap: wrap; }
.footer-nav h2 { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.footer-nav li + li { margin-top: 10px; }
.footer-nav a, .footer-bottom a { color: var(--muted); font-size: .9375rem; transition: color .2s; }
.footer-nav a:hover, .footer-bottom a:hover { color: var(--white); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: .875rem; color: var(--muted);
}
.footer-bottom ul { display: flex; gap: 24px; }

/* Subpages: legal + 404 ------------------------------------------------- */
.page-hero { padding-block: clamp(64px, 9vw, 112px) clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--border); }
.page-hero .section-title { max-width: 14ch; }
.page-meta { margin-top: 20px; color: var(--muted); font-size: .9375rem; }

.notice {
  display: flex; gap: 12px; align-items: flex-start; max-width: 46rem; margin-top: 32px;
  padding: 16px 20px; border-radius: 12px; border: 1px solid var(--border); background: var(--midnight);
  font-size: .9375rem; color: var(--soft);
}
.notice .dot { margin-top: 8px; flex: none; background: var(--cyan); }

.legal { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-block: clamp(48px, 7vw, 88px) var(--section-y); }
.legal-toc { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.legal-toc p { font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.legal-toc li + li { margin-top: 10px; }
.legal-toc a { font-size: .9375rem; color: var(--muted); transition: color .2s; }
.legal-toc a:hover { color: var(--white); }

.prose { max-width: 44rem; color: var(--soft); }
.prose h2 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.2;
  color: var(--white); margin: 56px 0 16px; scroll-margin-top: calc(var(--header-h) + 24px);
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-bottom: 16px; }
.prose ul { padding-left: 20px; list-style: disc; }
.prose li + li { margin-top: 6px; }
.prose li::marker { color: var(--cyan); }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
mark { background: rgba(0, 212, 255, .14); color: var(--white); padding: 0 4px; border-radius: 4px; }

.not-found {
  min-height: calc(100vh - var(--header-h) - 120px);
  display: grid; align-content: center; justify-items: start; gap: 24px; padding-block: 64px;
}
.not-found-code {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 16vw, 11rem); line-height: .9; letter-spacing: -.06em;
}
.not-found-code svg { width: .78em; height: .78em; }
.not-found p { color: var(--muted); max-width: 30rem; }
.not-found .hero-actions { margin-top: 8px; }

.footer-slim { padding-block: 32px; }
.footer-slim .footer-bottom { margin-top: 0; padding-top: 0; border-top: 0; }

@media (max-width: 960px) {
  .legal { grid-template-columns: 1fr; }
  .legal-toc { position: static; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
}

/* Reveal ---------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 960px) {
  .nav-toggle { display: grid; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 24px;
    padding: 24px var(--gutter) 32px;
    background: var(--navy); border-bottom: 1px solid var(--border);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility 0s .25s;
  }
  .primary-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s var(--ease); }
  .primary-nav ul { flex-direction: column; gap: 0; }
  .primary-nav ul a { display: block; padding: 14px 0; font-size: 1.125rem; color: var(--white); border-bottom: 1px solid var(--border); }
  .primary-nav ul a::after { display: none; }
  .nav-cta { min-height: 52px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .orbit { width: min(78%, 360px); }
  .hero::before { right: -400px; top: -300px; }

  .verbs-list { grid-template-columns: 1fr; }
  .verb, .verb + .verb { padding: 32px 0; border-left: 0; }
  .verb + .verb { border-top: 1px solid var(--border); }
  .verb-title { margin-top: 12px; }

  .eco-row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 8px 16px; }
  .eco-num { padding-left: 12px; grid-row: span 2; align-self: start; padding-top: 6px; }
  .eco-desc { grid-column: 2 / -1; }
  .status { grid-column: 3; grid-row: 1; }

  .principles-grid { grid-template-columns: 1fr; }
  .principles-head { position: static; }

  .journal-grid { grid-template-columns: 1fr; }
  .post-feature { grid-row: auto; }
  .post-feature .post-art { min-height: 240px; }

  .letter-panel { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .hero-index li { flex-basis: 50%; min-width: 0; }
  .orbit-label { font-size: .75rem; padding: 6px 10px; }
  .orbit-label.l-2 { transform: translate(-85%, -50%); }
  .orbit-label.l-4 { transform: translate(-15%, -50%); }
  .hero-actions .btn { flex: 1 1 100%; }
  .principle dd { padding-left: 0; }
  .field { flex-direction: column; border-radius: 16px; padding: 8px; }
  .field input { min-height: 48px; padding: 0 12px; }
  .field .btn { width: 100%; }
  .form-msg { padding-left: 4px; }
}

/* Picks spotlight -------------------------------------------------------- */
.picks-grid { display: grid; grid-template-columns: minmax(240px, .75fr) minmax(0, 1.45fr); gap: clamp(28px, 4.5vw, 64px); align-items: start; }

.pick-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.pick-tab {
  position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: baseline; gap: 12px; text-align: left; cursor: pointer;
  padding: 18px 10px 18px 14px; background: none; border: 0; border-bottom: 1px solid var(--border);
  transition: background-color .2s;
}
.pick-tab::before {
  content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 2px;
  background: var(--cyan); transform: scaleY(0); transition: transform .3s var(--ease);
}
.pick-tab:hover { background: rgba(0, 123, 255, .05); }
.pick-tab:hover::before, .pick-tab[aria-pressed="true"]::before { transform: scaleY(1); }
.pt-num { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pt-name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -.015em;
  color: var(--muted); transition: color .2s; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pick-tab:hover .pt-name { color: var(--soft); }
.pick-tab[aria-pressed="true"] .pt-name { color: var(--white); }
.pt-cat { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pick-tab[aria-pressed="true"] .pt-cat { color: var(--cyan); }

.pick-stage {
  position: relative; border: 1px solid var(--border); border-radius: 20px;
  background:
    radial-gradient(560px at var(--mx, 75%) var(--my, 20%), rgba(0, 123, 255, .10), transparent 65%),
    var(--navy-2);
  padding: clamp(24px, 4vw, 48px); overflow: hidden;
}
.pick-count {
  position: absolute; top: 22px; right: 26px;
  font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums;
}
.pick-panel { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: clamp(24px, 3.5vw, 44px); align-items: start; }
.js .pick-panel { display: none; }
.js .pick-panel.is-active { display: grid; animation: panel-in .45s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } }
.pick-panel + .pick-panel { margin-top: 32px; } /* no-JS fallback: panels stack */
.js .pick-panel + .pick-panel { margin-top: 0; }

.pick-art {
  position: relative; width: 150px; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; margin-top: 8px;
  background: radial-gradient(closest-side, #0E2A54, var(--midnight));
  border: 1px solid rgba(0, 212, 255, .25);
}
.pick-art::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%;
  border: 1px dashed rgba(154, 171, 194, .25);
}
.p-icon {
  width: 52px; height: 52px; color: var(--cyan);
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.pick-kicker { display: flex; align-items: center; gap: 10px; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tag {
  font-size: .6875rem; font-weight: 700; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px;
  color: var(--teal); background: rgba(34, 211, 167, .12); border: 1px solid rgba(34, 211, 167, .3);
}
.pick-name { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.03em; line-height: 1.1; margin-top: 12px; }
.pick-hook { font-family: var(--font-display); font-weight: 500; font-size: 1.0625rem; color: var(--cyan); margin-top: 8px; }
.pick-verdict { color: var(--muted); margin-top: 14px; max-width: 48ch; }
.pick-points { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.pick-points li { display: flex; align-items: baseline; gap: 10px; font-size: .9375rem; color: var(--soft); }
.pick-points .icon { width: 15px; height: 15px; color: var(--teal); transform: translateY(2px); }
.pick-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.pick-price { font-weight: 600; color: var(--soft); font-size: .9375rem; }
.fine-print { margin-top: 28px; font-size: .8125rem; color: var(--muted); }
.fine-print a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* How we choose ---------------------------------------------------------- */
.how { border-block: 1px solid var(--border); background: var(--navy-2); padding-block: clamp(56px, 7vw, 88px); }
.how-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.section-title-sm { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.625rem, 3vw, 2.25rem); letter-spacing: -.03em; line-height: 1.1; }
.how-note { font-size: .9375rem; font-weight: 600; color: var(--teal); }
.how-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-left: 1px solid var(--border); counter-reset: step; }
.step { position: relative; padding: 20px 24px 6px; border-right: 1px solid var(--border); transition: background-color .3s; }
.step::before {
  content: ""; position: absolute; left: -1px; right: 0; top: 0; height: 2px;
  background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.step:hover { background: rgba(0, 123, 255, .05); }
.step:hover::before { transform: scaleX(1); }
.step-num { font-size: .75rem; font-weight: 600; color: var(--cyan); font-variant-numeric: tabular-nums; }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1875rem; letter-spacing: -.02em; margin-top: 14px; }
.step p { font-size: .9375rem; color: var(--muted); margin-top: 8px; }

/* FAQ -------------------------------------------------------------------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 110px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 40px); }
.faq-head .principles-intro { color: var(--muted); }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item h3 { margin: 0; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 4px; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: -.015em;
  color: var(--soft); transition: color .2s;
}
.faq-q:hover { color: var(--white); }
.faq-item.open .faq-q { color: var(--white); }
.faq-q .icon { width: 18px; height: 18px; flex: none; color: var(--cyan); transition: transform .3s var(--ease); }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; min-height: 0; }
.faq-a p { color: var(--muted); padding: 0 40px 24px 4px; max-width: 58ch; }
.faq-a a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* Toast + scroll progress ------------------------------------------------ */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 80;
  transform: translate(-50%, 16px);
  background: var(--midnight); border: 1px solid var(--border); color: var(--soft);
  padding: 12px 22px; border-radius: 999px; font-size: .9375rem; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
#progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 70; background: linear-gradient(90deg, var(--cyan), var(--blue)); }

@media (max-width: 1024px) {
  .picks-grid { grid-template-columns: 1fr; }
  .pick-list {
    flex-direction: row; overflow-x: auto; border-top: 0; gap: 8px; padding-bottom: 6px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .pick-list::-webkit-scrollbar { display: none; }
  .pick-tab {
    flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
    border: 1px solid var(--border); border-radius: 999px; padding: 10px 16px;
  }
  .pick-tab::before { display: none; }
  .pick-tab[aria-pressed="true"] { border-color: var(--cyan); background: rgba(0, 212, 255, .08); }
  .pt-cat { display: none; }
  .pt-name { font-size: .9375rem; }
  .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step { border-bottom: 1px solid var(--border); padding-bottom: 20px; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-head { position: static; }
}
@media (max-width: 640px) {
  .pick-panel { grid-template-columns: 1fr; }
  .pick-art { width: 120px; margin-top: 0; }
  .pick-count { top: 18px; right: 20px; }
  .pick-foot .btn { flex: 1 1 100%; }
  .how-grid { grid-template-columns: 1fr; border-left: 0; }
  .step { border-right: 0; border-left: 1px solid var(--border); }
  .brand-wordmark { width: 140px; height: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
