/* ════════════════════════════════════════════════════════════════
   JD PRODUCTIONS — WHITE SYSTEM (v2)
   Architecture venture · infrastructure technology company.
   Apple-level restraint, GitHub structure, Luma footer architecture.
   Governed by .stitch/DESIGN.md v2.
   ════════════════════════════════════════════════════════════════ */

:root {
  --bg:      #ffffff;
  --bg-2:    #f7f7f8;
  --bg-3:    #eef0f3;
  --ink:     #0a0a0c;
  --ink-2:   #51545c;
  --ink-3:   #9a9da6;
  --line:    rgba(10, 10, 12, 0.08);
  --line-2:  rgba(10, 10, 12, 0.16);
  /* Accent — OFFICIAL JD Productions gold #FFC20E (brand palette: white #fff / #f5f5f5 / blue #0080C6 / gold #FFC20E / navy #002244 / black #000).
     Var name --blue kept for backwards-compat; value is the brand gold. */
  --gold:    #ffc20e;          /* OFFICIAL brand gold — marks, gradients, glows, badges, fills, accents */
  --gold-2:  #e0a500;          /* deeper official gold — borders, hover, gradient ends */
  --gold-ink:#a06f00;          /* deepest gold — legible accent text on white (AA on white) */
  --blue:    #b3870c;          /* accent text token: deepened official gold so links/eyebrows stay readable on white */
  --blue-bg: rgba(255, 194, 14, 0.12);
  --navy:    #002244;          /* official brand navy — for gold to sit on at full strength */
  --brand-blue: #0080c6;       /* official brand blue */
  --green:   #16a34a;
  --amber:   #d97706;

  --font: 'Inter', -apple-system, 'SF Pro Display', 'Helvetica Neue', sans-serif;
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --nav-h: 64px;
  --max-w: 1200px;
  --pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --pad-section: clamp(5rem, 10vh, 8rem);
  --radius: 12px;

  --shadow-soft: 0 1px 2px rgba(10, 10, 20, 0.04);
  --shadow-lift: 0 12px 32px rgba(10, 10, 20, 0.08), 0 2px 8px rgba(10, 10, 20, 0.04);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Base ───────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--blue-bg); }

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

/* ── Typography ─────────────────────────────────────────────── */

h1, h2, h3, h4 { font-weight: 650; letter-spacing: -0.03em; color: var(--ink); }

.display-hero {
  font-size: clamp(2.75rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.display-section {
  font-size: clamp(1.875rem, 3.6vw, 3rem);
  font-weight: 650;
  line-height: 1.12;
}

.display-page {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
}
.eyebrow--mute { color: var(--ink-3); }

.lede {
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink-2);
}

.body-measure { max-width: 62ch; }

/* ── Status dots ────────────────────────────────────────────── */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.status--live { color: var(--green); }
.status--live::before { background: var(--green); }
.status--building { color: var(--amber); }
.status--building::before { background: var(--amber); }

/* ── Buttons ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.5rem;
  border-radius: 100px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.15s var(--ease-out), box-shadow 0.2s, background 0.2s, border-color 0.2s;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #1d1d22; box-shadow: var(--shadow-lift); transform: translateY(-1px); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-1px); }

.btn--small { padding: 0.4375rem 1.0625rem; font-size: 0.875rem; }

/* ── Links ──────────────────────────────────────────────────── */

.link {
  color: var(--ink-2);
  font-weight: 500;
  transition: color 0.2s;
}
.link:hover { color: var(--blue); }
.link--arrow::after { content: ' →'; }

/* ── Navigation ─────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 2.25rem;
  padding: 0 var(--pad-x);
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 17px; width: auto; }

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px; height: 44px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--ink);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

.menu-overlay {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 99;
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 2rem var(--pad-x);
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}
.menu-overlay.is-open { opacity: 1; visibility: visible; }
.menu-overlay a {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--line);
}
.menu-overlay .menu-contact { color: var(--blue); border-bottom: none; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-right .btn { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-right { margin-left: 0; }
}

/* ── Structure ──────────────────────────────────────────────── */

main { position: relative; z-index: 1; }

.section { position: relative; padding: var(--pad-section) var(--pad-x); }
.section--tint { background: var(--bg-2); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

.rule { border: none; border-top: 1px solid var(--line); max-width: var(--max-w); margin: 0 auto; }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vh, 4rem); }
.section-head .lede { margin-top: 1rem; }

/* ── Hero ───────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 3rem) var(--pad-x) 4rem;
  overflow: hidden;
}

.hero-atmosphere { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-atmosphere canvas { width: 100%; height: 100%; display: block; }
/* static fallback — soft light fields (reduced-motion / no WebGL) */
.hero-atmosphere::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(90% 60% at 75% 12%, rgba(255, 194, 14, 0.14) 0%, transparent 60%),
    radial-gradient(70% 55% at 18% 30%, rgba(255, 194, 14, 0.08) 0%, transparent 65%),
    radial-gradient(100% 70% at 50% 108%, rgba(255, 194, 14, 0.10) 0%, transparent 55%),
    #ffffff;
  opacity: 1;
  transition: opacity 1s var(--ease-out);
}
.hero-atmosphere.is-live::before { opacity: 0; }

.hero > * { position: relative; z-index: 1; }

.hero .display-hero { max-width: 16ch; margin: 0 auto 1.5rem; }
.hero .lede { max-width: 56ch; margin: 0 auto 2.25rem; }

.hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 0.375rem 1rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
}
.hero-kicker .status { text-transform: none; letter-spacing: 0; font-size: 0.8125rem; font-weight: 500; }

/* ── Proof ticker ───────────────────────────────────────────── */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1.375rem 0;
  overflow: hidden;
  background: var(--bg);
}
.ticker-label {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.875rem;
}
.ticker-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
}
.ticker-track span {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
  white-space: nowrap;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Cards ──────────────────────────────────────────────────── */

.card-grid { display: grid; gap: 1rem; }
@media (min-width: 640px)  { .card-grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px)  { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: block;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, border-color 0.25s;
}
/* gold specular edge revealed on hover — the liquid-glass tell */
.card { position: relative; overflow: hidden; }
.card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--gold) 0%, transparent 40%, transparent 60%, rgba(255, 194, 14,0.4) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: transparent; }
a.card:hover::after { opacity: 1; }

.card .status { margin-bottom: 1rem; }
.card h3 { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.card p { font-size: 0.9375rem; color: var(--ink-2); line-height: 1.6; }
.card .card-link { display: inline-block; margin-top: 1.125rem; font-size: 0.875rem; font-weight: 600; color: var(--blue); }

/* ── Media frame (real screenshots, styled into the system) ──── */
.media-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  box-shadow: var(--shadow-lift);
}
.media-frame img { width: 100%; height: auto; display: block; }
/* liquid-glass chrome bar on framed media */
.media-frame .frame-bar {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255,255,255,0.7);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.media-frame .frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: inline-block; }
.media-frame .frame-bar span { margin-left: 0.6rem; font-size: 0.75rem; color: var(--ink-3); font-weight: 500; }
.media-frame .frame-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 194, 14,0.0) 70%, rgba(255, 194, 14,0.06) 100%);
}

/* ── Splits ─────────────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.mark-anchor { display: flex; flex-direction: column; align-items: center; gap: 1.75rem; }
.mark-anchor canvas, .mark-anchor img.mark-static {
  width: min(320px, 64vw);
  height: auto;
  object-fit: contain;
}
.mark-anchor .anchor-line {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: center;
  line-height: 2.2;
}
.mark-anchor .anchor-line strong { color: var(--ink); display: block; }

/* ── Feature rows (zig-zag) ─────────────────────────────────── */

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(3rem, 6vh, 5rem) 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .feature-row { grid-template-columns: 1fr; gap: 2rem; }
  .feature-row > .feature-visual { order: -1; }
}

.feature-visual {
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--line);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
}

/* ── Ledger rows ────────────────────────────────────────────── */

.ledger-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 2rem;
  padding: clamp(1.75rem, 3.5vh, 2.5rem) 0;
  border-bottom: 1px solid var(--line);
}
.ledger-row:first-of-type { border-top: 1px solid var(--line); }
.ledger-row h3 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); letter-spacing: -0.02em; margin-bottom: 0.375rem; }
.ledger-row .ledger-desc { font-size: 0.9375rem; color: var(--ink-2); max-width: 58ch; }
.ledger-row .ledger-price {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  text-align: right;
}
.ledger-row .ledger-price .link { display: inline-block; margin-top: 0.5rem; color: var(--blue); }
@media (max-width: 700px) {
  .ledger-row { grid-template-columns: 1fr; gap: 0.875rem; }
  .ledger-row .ledger-price { text-align: left; }
}

/* ── Work entries ───────────────────────────────────────────── */

.work-entry {
  display: block;
  padding: clamp(1.75rem, 3.5vh, 2.75rem) 0;
  border-bottom: 1px solid var(--line);
}
.work-entry:first-of-type { border-top: 1px solid var(--line); }
.work-entry h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.5rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  transition: color 0.2s;
}
.work-entry .work-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 0.5rem;
}
.work-entry .work-desc { font-size: 0.9375rem; color: var(--ink-2); max-width: 60ch; }
.work-entry .work-index {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}

/* ── CTA band ───────────────────────────────────────────────── */

.cta-band {
  text-align: center;
  padding: clamp(5rem, 10vh, 8rem) var(--pad-x);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.cta-band .display-section { max-width: 22ch; margin: 0 auto 1rem; }
.cta-band .lede { max-width: 48ch; margin: 0 auto 2rem; }
.cta-band .hero-ctas { justify-content: center; }

/* ── Forms ──────────────────────────────────────────────────── */

.field { margin-bottom: 1.75rem; }
.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 0.5rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-bg);
}
.field textarea { resize: vertical; min-height: 130px; }
.field ::placeholder { color: var(--ink-3); }

/* ── Footer (Luma-style architecture) ───────────────────────── */

.footer {
  border-top: 1px solid var(--line);
  padding: clamp(3.5rem, 7vh, 5rem) var(--pad-x) 2.5rem;
  background: var(--bg);
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer-brand img { height: 16px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.875rem; color: var(--ink-3); max-width: 28ch; line-height: 1.6; }

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.625rem; }
.footer-col a { font-size: 0.875rem; font-weight: 500; color: var(--ink-2); transition: color 0.2s; }
.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.footer-bottom p { font-size: 0.8125rem; color: var(--ink-3); }
.footer-bottom ul { display: flex; gap: 1.5rem; list-style: none; }
.footer-bottom a { font-size: 0.8125rem; font-weight: 500; color: var(--ink-3); transition: color 0.2s; }
.footer-bottom a:hover { color: var(--ink); }

/* ── Reveal choreography ────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: translateY(0); }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ── Reduced motion ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  .hero-atmosphere canvas, .mark-anchor canvas { display: none; }
  .hero-atmosphere::before { opacity: 1 !important; }
  .mark-anchor img.mark-static { display: block !important; }
}

/* ════════════════════════════════════════════════════════════════
   v2.1 — footer depth, newsletter, Luma-style feature cards, article
   ════════════════════════════════════════════════════════════════ */

/* ── Footer: 6 columns + newsletter ─────────────────────────── */
.footer-grid--wide {
  grid-template-columns: 1.6fr repeat(5, 1fr);
}
@media (max-width: 1080px) { .footer-grid--wide { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 640px)  { .footer-grid--wide { grid-template-columns: 1fr 1fr; } }

.footer-sub { margin-top: 1.5rem; }
.footer-sub label {
  display: block;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.6rem;
}
.footer-sub-row { display: flex; gap: 0; max-width: 280px; }
.footer-sub-row input {
  flex: 1; min-width: 0;
  background: var(--bg); border: 1px solid var(--line-2);
  border-radius: 100px 0 0 100px; border-right: none;
  padding: 0.55rem 1rem; font-family: var(--font); font-size: 0.875rem; color: var(--ink);
}
.footer-sub-row input:focus { outline: none; border-color: var(--gold-2); }
.footer-sub-row button {
  background: var(--ink); color: #fff; border: none;
  border-radius: 0 100px 100px 0; padding: 0 1.1rem; cursor: pointer;
  font-size: 1rem; transition: background 0.2s;
}
.footer-sub-row button:hover { background: var(--gold); color: var(--navy); }

/* ── Luma-style large feature cards ─────────────────────────── */
.feature-lg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
@media (max-width: 860px) { .feature-lg-grid { grid-template-columns: 1fr; } }

.feature-lg {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
a.feature-lg:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: var(--line-2); }
.feature-lg-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg-2); }
.feature-lg-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.6s var(--ease-out); }
a.feature-lg:hover .feature-lg-media img { transform: scale(1.03); }
.feature-lg-body { padding: 1.75rem 1.75rem 2rem; }
.feature-lg-body .badge-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.875rem; }
.feature-lg-body h3 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); font-weight: 700; letter-spacing: -0.03em; }
.badge {
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.25rem 0.6rem; border-radius: 100px; background: var(--ink); color: #fff;
}
.badge--gold { background: var(--gold); color: var(--navy); }
.feature-lg-body p { font-size: 1rem; color: var(--ink-2); line-height: 1.6; margin: 0.625rem 0 1.5rem; max-width: 46ch; }

/* ── Article body ───────────────────────────────────────────── */
.article-body h2:first-child { margin-top: 0; }
.article-body a { color: var(--blue); font-weight: 500; }
blockquote { quotes: none; }

/* ── Voices / quote module ──────────────────────────────────── */
.voice {
  max-width: 60ch;
}
.voice p {
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; color: var(--ink);
}
.voice .voice-attr { margin-top: 1.5rem; font-size: 0.875rem; color: var(--ink-3); font-weight: 500; }
.voice .voice-attr strong { color: var(--ink); font-weight: 600; }

/* ════════════════════════════════════════════════════════════════
   v2.2 — LIQUID GLASS LANGUAGE (site-wide)
   Surfaces refract; interactive elements sweep a specular sheen.
   ════════════════════════════════════════════════════════════════ */

@keyframes glass-sheen {
  0%   { transform: translateX(-160%) skewX(-18deg); }
  100% { transform: translateX(260%) skewX(-18deg); }
}

/* shared sheen element for buttons / cards / frames */
.btn, .card, .feature-lg, .media-frame, .badge, .hero-kicker, .ledger-row .ledger-price .link {
  position: relative;
}
.btn, .card, .feature-lg { overflow: hidden; isolation: isolate; }

.btn::after, .card::before, .feature-lg::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.55) 50%, transparent 100%);
  transform: translateX(-160%) skewX(-18deg);
  pointer-events: none; z-index: 2;
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::after, a.card:hover::before, a.feature-lg:hover::before {
  opacity: 1;
  animation: glass-sheen 0.85s var(--ease-out);
}

/* ── Buttons as glass ───────────────────────────────────────── */
.btn {
  -webkit-backdrop-filter: blur(10px) saturate(1.25);
  backdrop-filter: blur(10px) saturate(1.25);
}
.btn--primary {
  background: linear-gradient(135deg, #16161d 0%, #0a0a0c 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), inset 0 -1px 0 rgba(0,0,0,0.3), 0 1px 2px rgba(10,10,20,0.18);
}
.btn--primary:hover { background: linear-gradient(135deg, #20202a 0%, #111118 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), var(--shadow-lift); transform: translateY(-1px); }
/* ambient motion-glass on the primary CTA — slow idle shimmer */
.btn--primary::after { opacity: 0.6; animation: glass-sheen 7s var(--ease-out) infinite; animation-delay: 1.5s; }
.btn--primary:hover::after { opacity: 1; animation: glass-sheen 0.85s var(--ease-out); }

.btn--ghost {
  background: rgba(255,255,255,0.5);
  border-color: rgba(10,10,12,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 1px 2px rgba(10,10,20,0.05);
}
.btn--ghost:hover { background: rgba(255,255,255,0.78); border-color: var(--gold-2); color: var(--ink); transform: translateY(-1px); }

/* ── Cards as glass ─────────────────────────────────────────── */
.card {
  background: rgba(255,255,255,0.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.65), var(--shadow-soft);
}
a.card:hover { background: rgba(255,255,255,0.74); }

/* feature cards inherit glass on the body */
.feature-lg { background: rgba(255,255,255,0.62); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }

/* ── Nav + menu glass (deepen) ──────────────────────────────── */
.nav { box-shadow: inset 0 -1px 0 rgba(255,255,255,0.4); }
.nav.is-scrolled { box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 1px 12px rgba(10,10,20,0.04); }
.menu-overlay { box-shadow: inset 0 1px 0 rgba(255,255,255,0.6); }

/* ── Inputs / pills / badges glass ──────────────────────────── */
.field input, .field textarea, .field select,
.footer-sub-row input {
  background: rgba(255,255,255,0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.badge {
  -webkit-backdrop-filter: blur(8px) saturate(1.3);
  backdrop-filter: blur(8px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.badge:not(.badge--gold) { background: linear-gradient(135deg, #1a1a22, #0a0a0c); }
.hero-kicker {
  background: rgba(255,255,255,0.55);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 2px 12px rgba(10,10,20,0.04);
}

/* ── Media frame: liquid-glass chrome bar already; add edge ──── */
.media-frame { box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), var(--shadow-lift); }

/* reduced-motion: kill sheen animation */
@media (prefers-reduced-motion: reduce) {
  .btn::after, .card::before, .feature-lg::before { display: none !important; }
}

/* ════════════════════════════════════════════════════════════
   THE BRIEF — daily intelligence feed + subscribe (homepage)
   Official gold #FFC20E as the live accent.
   ════════════════════════════════════════════════════════════ */
.brief { display: grid; grid-template-columns: 1.25fr 1fr; gap: 2rem; align-items: stretch; margin-top: 3rem; }
.brief[hidden] { display: none; }
@media (max-width: 860px) { .brief { grid-template-columns: 1fr; } }

.brief-feature {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 2.25rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); box-shadow: var(--shadow-soft); min-height: 340px;
  transition: box-shadow .4s var(--ease-out), transform .4s var(--ease-out), border-color .4s var(--ease-out);
}
.brief-feature:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); border-color: var(--line-2); }

.brief-cat {
  align-self: flex-start; padding: 0.25rem 0.6rem; border-radius: 100px;
  background: var(--gold); color: var(--navy);
  font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.brief-feature h3 {
  font-family: var(--font-display); font-weight: 400; line-height: 1.1;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem); letter-spacing: -0.01em; color: var(--ink); margin: 0;
}
.brief-excerpt { color: var(--ink-2); font-size: 1.02rem; line-height: 1.6; margin: 0; max-width: 48ch; }
.brief-meta { display: flex; align-items: center; gap: 0.7rem; margin-top: auto; padding-top: 1.1rem; }
.brief-by { font-size: 0.85rem; color: var(--ink-2); line-height: 1.3; }
.brief-by b { color: var(--ink); font-weight: 600; }
.brief-by i { color: var(--ink-3); font-style: normal; }
.brief-cta { font-size: 0.9rem; font-weight: 600; color: var(--blue); }
.brief-feature:hover .brief-cta { color: var(--gold-ink); }

.brief-avs { display: inline-flex; flex-shrink: 0; }
.mono-av {
  width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.02em; border: 2px solid var(--bg);
}
.mono-av--lead { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: var(--navy); }
.mono-av--second { background: linear-gradient(135deg, #2a3550, var(--navy)); color: #fff; margin-left: -10px; }

.brief-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.brief-item { border-bottom: 1px solid var(--line); }
.brief-item:last-child { border-bottom: 0; }
.brief-item a {
  display: grid; grid-template-columns: 1fr auto; gap: 0.15rem 1rem; align-items: baseline;
  padding: 0.95rem 0.25rem 0.95rem 1rem; border-left: 2px solid transparent;
  transition: border-color .3s var(--ease-out), background .3s var(--ease-out);
}
.brief-item a:hover { background: var(--bg); }
.brief-item.is-active a { border-left-color: var(--gold); background: var(--bg); }
.brief-item-cat { grid-column: 1; color: var(--gold-ink); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.brief-item-title { grid-column: 1; font-size: 1rem; font-weight: 500; color: var(--ink); line-height: 1.35; }
.brief-item-meta { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 0.78rem; color: var(--ink-3); white-space: nowrap; }

.brief-empty { color: var(--ink-3); margin-top: 2rem; }

/* Subscribe panel — "the brief, in your inbox" */
.brief-sub { margin-top: 3.5rem; }
.brief-sub-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding: 2.5rem; border-radius: calc(var(--radius) + 4px);
  background: var(--bg); border: 1px solid var(--line-2);
  position: relative; overflow: hidden;
}
.brief-sub-inner::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 100% 0%, rgba(255,194,14,0.10) 0%, transparent 55%);
}
.brief-sub-copy { position: relative; }
.brief-sub-copy .eyebrow { margin-bottom: 0.6rem; }
.brief-sub-copy h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 0.5rem; color: var(--ink); }
.brief-sub-copy p { color: var(--ink-2); max-width: 42ch; margin: 0; line-height: 1.55; }
.brief-sub-form { position: relative; flex: 0 1 380px; min-width: 280px; }
.brief-sub-row { display: flex; gap: 0.6rem; }
.brief-sub-row input {
  flex: 1; min-width: 0; padding: 0.85rem 1rem; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--bg); color: var(--ink); font: inherit; font-size: 0.95rem;
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.brief-sub-row input:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(255,194,14,0.28); }
.brief-sub-form .btn { white-space: nowrap; }
.brief-sub-note { font-size: 0.82rem; color: var(--ink-3); margin: 0.75rem 0 0; }
.brief-sub-note.is-ok { color: var(--gold-ink); font-weight: 600; }
.brief-sub-note.is-err { color: #b3261e; }
.brief-sub-note a { color: var(--gold-ink); font-weight: 600; }

@media (max-width: 860px) {
  .brief-sub-inner { flex-direction: column; align-items: flex-start; padding: 2rem; }
  .brief-sub-form { width: 100%; flex-basis: auto; }
}
