/* ─────────────────────────────────────────────────────────────────
   Timeward Capital stylesheet
   A tactical web3 hedge fund. Foresight alpha in digital assets.
   Monochrome — black, platinum, silver. One hairline exception: --prism,
   a faint spectrum glint on a few signature edges. See below.
   ───────────────────────────────────────────────────────────────── */

:root {
  /* obsidian base */
  --paper:     #15151A;   /* page background — softened warm charcoal */
  --white:     #1E1E25;   /* raised surface / cards */
  --mist:      #26262E;
  --hairline:  #2F2F37;
  --hairline-2:#45454F;

  --ink:       #ECEBE5;   /* primary text — warm off-white, eased contrast */
  --graphite:  #C6C6CC;   /* secondary text (lede) */
  --slate:     #9A9AA1;   /* body text */
  --ash:       #6E6E77;   /* muted labels */

  /* platinum — the single (colorless) accent */
  --gold:          #ECEBE5;
  --gold-bright:   #FFFFFF;
  --gold-deep:     #C6C6CC;
  --logo-gold:     #D9D9DE;   /* brand mark — cool platinum/silver, distinct from body ink */
  --accent:        #ECEBE5;
  --accent-dim:    #C6C6CC;
  --accent-bright: #FFFFFF;
  --on-accent:     #0A0A0C;   /* text on the platinum accent */

  --chrome-light: #F5F5F2;
  --chrome-mid:   #C6C6CC;
  --chrome-dark:  #8A8A93;

  /* prism — a single deliberate exception to "no hue accent", kept to hairline
     filaments only: a cool, narrow-band glint (like light on brushed steel),
     not a spectrum sweep. */
  --prism: linear-gradient(90deg,
    transparent,
    rgba(210,220,235,.5) 22%,
    rgba(180,200,255,.55) 45%,
    rgba(205,190,255,.5) 62%,
    rgba(215,222,235,.45) 80%,
    transparent);

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease:     cubic-bezier(.2,.7,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  --pad-x: clamp(20px, 5vw, 72px);
  --maxw:  1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
::selection { background: var(--gold); color: var(--on-accent); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad-x); }
.section { padding-block: clamp(64px, 9vw, 140px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.divider { border: 0; height: 1px; margin: 0; background: linear-gradient(90deg, transparent, var(--hairline) 14%, var(--hairline) 86%, transparent); }

.display { font-family: var(--font-display); font-weight: 400; line-height: 1.04; letter-spacing: -0.015em; font-size: clamp(2.6rem, 6vw, 5rem); margin: 0; text-wrap: balance; }
.h2 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; font-size: clamp(1.8rem, 3.4vw, 2.9rem); margin: 0 0 0.6em; text-wrap: balance; }
.h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.2; margin: 0 0 0.4em; text-wrap: balance; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--graphite); max-width: 62ch; text-wrap: pretty; }
.body { color: var(--slate); max-width: 64ch; text-wrap: pretty; }
.body a { color: var(--ink); border-bottom: 1px solid var(--hairline-2); }
.body a:hover { border-bottom-color: var(--ink); }

.eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash); display: inline-flex; align-items: center; gap: 0.85em; margin: 0 0 1.4em; }
/* editorial keyline — a short gold rule that opens each section label */
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); opacity: .9; flex: none; }

.figure { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* wordmark + brand mark lockup */
.wordmark { font-family: "Share Tech Mono", ui-monospace, monospace; font-weight: 400; letter-spacing: 0.04em; color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand .mark { flex: none; display: block; height: 21px; width: auto; color: var(--logo-gold); }

.btn { display: inline-flex; align-items: center; gap: 0.55em; font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.04em; padding: 0.85em 1.4em; border-radius: 2px; transition: all .25s var(--ease); }
.btn--primary { background: var(--gold); color: var(--on-accent); font-weight: 500; }
.btn--primary:hover { background: var(--gold-bright); }
/* nav CTA — give "Request access" extra presence next to the mono links */
.nav-links .btn--primary { font-weight: 500; padding-block: 0.7em; }
.btn--ghost { border: 1px solid var(--hairline-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--gold); background: var(--white); }

.card { background: var(--white); border: 1px solid var(--hairline); border-radius: 4px; padding: clamp(24px, 2.7vw, 38px); transition: border-color .25s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.card:hover { border-color: color-mix(in srgb, var(--gold) 30%, var(--hairline-2)); transform: translateY(-3px); box-shadow: 0 22px 48px -30px rgba(0,0,0,.85); }
.card .kicker { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.grid { display: grid; gap: clamp(16px, 1.6vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 860px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px) saturate(135%); -webkit-backdrop-filter: blur(14px) saturate(135%); border-bottom: 1px solid var(--hairline); transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; transition: height .3s var(--ease); }
.nav .mark { height: 23px; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav-links a { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.03em; color: var(--slate); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-toggle { display: none; }
/* hamburger ↔ ✕ — three bars that fold into a cross when the menu opens */
.hb { position: relative; display: block; width: 22px; height: 14px; }
.hb i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .32s var(--ease), opacity .2s var(--ease); }
.hb i:nth-child(1) { top: 0; }
.hb i:nth-child(2) { top: 6px; }
.hb i:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .hb i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hb i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .hb i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 760px) {
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - 56px); overflow-y: auto; overscroll-behavior: contain; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--hairline); box-shadow: 0 28px 50px -30px rgba(0,0,0,.95); padding: 8px var(--pad-x) 22px; visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-16px); transition: opacity .34s var(--ease-out), transform .42s var(--ease-out), visibility .42s; }
  .nav-links.open { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-links a { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--hairline); opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), color .25s var(--ease); }
  .nav-links.open a { opacity: 1; transform: translateY(0); }
  .nav-links.open a:nth-child(1) { transition-delay: .07s; }
  .nav-links.open a:nth-child(2) { transition-delay: .12s; }
  .nav-links.open a:nth-child(3) { transition-delay: .17s; }
  .nav-links.open a:nth-child(4) { transition-delay: .22s; }
  .nav-links.open a:nth-child(5) { transition-delay: .27s; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; padding: 9px 11px; border-radius: 3px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .nav-links, .nav-links a { transition: opacity .15s linear; transform: none; }
}

.footer { background: var(--white); border-top: 1px solid var(--hairline); padding-block: clamp(40px, 5vw, 72px); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.footer a { color: var(--slate); font-family: var(--font-mono); font-size: 0.8rem; }
.footer a:hover { color: var(--ink); }
.eco-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.eco-chips .eco-chip { display: inline-flex; align-items: center; border: 1px solid var(--hairline); border-radius: 2px; padding: 5px 9px; font-size: 0.7rem; line-height: 1; color: var(--slate); }
.eco-chips .eco-chip:hover { border-color: var(--accent); color: var(--accent); }
.eco-chips .eco-chip--icon { padding: 6px; }
.eco-chips .eco-chip--icon svg { width: 15px; height: 15px; display: block; fill: currentColor; }
.disclaimer { color: var(--ash); font-size: 0.72rem; font-family: var(--font-mono); line-height: 1.7; max-width: 92ch; margin-top: 28px; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

.footer .mark { height: 22px; }

/* ── article / blog ────────────────────────────────────────────── */
.article { max-width: 720px; margin: 0 auto; }
.article p { color: var(--slate); margin: 0 0 1.3em; }
.article h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.95rem); line-height: 1.15; letter-spacing: -0.01em; margin: 1.9em 0 0.5em; }
.article h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin: 1.6em 0 0.4em; }
.article ul { color: var(--slate); padding-left: 1.2em; margin: 0 0 1.3em; }
.article li { margin: 0.45em 0; }
.article strong { color: var(--ink); font-weight: 600; }
.article a { color: var(--ink); border-bottom: 1px solid var(--hairline-2); }
.article a:hover { border-bottom-color: var(--ink); }
/* buttons inside article copy must keep their own contrast — no inherited link
   colour/underline (gold CTA needs dark text, not the article's near-white ink) */
.article a.btn { border-bottom: 0; }
.article a.btn--primary, .article a.btn--primary:hover { color: var(--on-accent); border-bottom: 0; }
.article a.btn--ghost { color: var(--ink); }
.post-meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ash); letter-spacing: 0.04em; margin-top: 14px; }
.tldr { background: var(--white); border: 1px solid var(--hairline); border-left: 3px solid var(--gold); border-radius: 4px; padding: 22px 26px; margin: 0 0 2.2em; }
.tldr p { margin: 0 0 0.5em; color: var(--graphite); }
.tldr .kicker { color: var(--ink); }
.tldr ul { margin: 0.4em 0 0; }
.backlink { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ash); letter-spacing: 0.03em; }
.backlink:hover { color: var(--ink); }
/* article figures */
.article figure { margin: 2.2em 0; }
.article figure img { display: block; width: 100%; height: auto; border: 1px solid var(--hairline); border-radius: 4px; }
.article figure.shot img { width: auto; max-width: 100%; max-height: 640px; margin: 0 auto; }
.article figure.cover img { border-color: var(--ink); }
.article figure svg { display: block; width: 100%; height: auto; border: 1px solid var(--hairline); border-radius: 4px; background: var(--white); }
.article figure.cover svg { border-color: var(--ink); }
.article figcaption { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ash); letter-spacing: .03em; line-height: 1.5; margin-top: 10px; text-align: center; }

/* ── mobile refinements ────────────────────────────────────────── */
@media (max-width: 640px) {
  .section { padding-block: clamp(52px, 11vw, 84px); }
  .section--tight { padding-block: clamp(40px, 8vw, 64px); }
  /* full-width, stacked CTAs in content (nav button keeps its own layout) */
  main .btn { display: flex; width: 100%; justify-content: center; padding-block: 1em; }
  main .btn + .btn { margin-top: 12px; }
  .lede { font-size: 1.08rem; }
  .article h1 { font-size: clamp(1.9rem, 7.5vw, 2.4rem) !important; }
  /* the homepage method diagram is restated by the 3 cards below it —
     drop the wide horizontal figure rather than shrink its text to nothing */
  .method-flow { display: none; }
  /* roomier tap targets for the small mono chip links */
  .eco-chips .eco-chip { padding: 7px 10px; }
  .eco-chips .eco-chip--icon { padding: 7px; }
  /* technical article diagrams: scroll at a legible width instead of
     scaling the labels down past readability */
  .article figure:has(svg) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .article figure:has(svg) svg { min-width: 600px; }
}
@media (max-width: 560px) {
  /* tighter, shorter nav so the bold lockup fits small screens */
  .nav-inner { height: 64px; }
  .nav .mark { height: 20px; }
  .brand { gap: 9px; }
  .display { font-size: clamp(2rem, 8.5vw, 2.7rem); }
  .h2 { font-size: clamp(1.5rem, 6.4vw, 2.1rem); }
  .eyebrow { letter-spacing: 0.12em; }
  .nav-links { padding-bottom: 18px; }
  /* avoid edge-to-edge text crowding on phones */
  .tldr { padding: 18px 18px; }
}
@media (max-width: 380px) {
  .nav .mark { height: 18px; }
}

/* ── header (obsidian nav) + gold CTA ──────────────────────────── */
.nav { background: linear-gradient(to bottom, color-mix(in srgb, #101015 90%, transparent), color-mix(in srgb, #101015 72%, transparent)); border-bottom: 1px solid var(--hairline); }
/* faint prismatic filament along the very top edge — premium without weight */
.nav::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: var(--prism); opacity: .38; pointer-events: none; }
/* scroll-aware: condense + deepen + gold-tinted hairline + soft lift */
.nav.is-scrolled { background: color-mix(in srgb, #101015 94%, transparent); border-bottom-color: color-mix(in srgb, var(--gold) 24%, var(--hairline)); box-shadow: 0 16px 44px -28px rgba(0,0,0,.85); }
.nav.is-scrolled .nav-inner { height: 62px; }
.nav.is-scrolled::before { opacity: .7; }
.nav .brand .mark { transition: color .25s var(--ease); }
.nav .brand:hover .mark { color: var(--gold-bright); }
.nav .mark { color: var(--logo-gold); }
.nav .nav-links a { color: var(--graphite); }
.nav .nav-links a:hover, .nav .nav-links a[aria-current="page"] { color: var(--ink); }
/* keep the gold CTA label dark even under the link-hover rule above */
.nav .nav-links a.btn--primary, .nav .nav-links a.btn--primary:hover { color: var(--on-accent); }
.nav .nav-toggle { border-color: var(--hairline-2); color: var(--ink); }
.nav .nav-toggle:hover { border-color: var(--gold); background: transparent; }
.footer .mark { color: var(--gold); }
@media (max-width: 760px) {
  .nav-links { background: #101015; border-bottom: 1px solid var(--hairline); }
}

/* ── cutting-edge layer: grid backdrop · ticker · HUD cards ─────── */
main, .footer { position: relative; z-index: 1; }

.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(#2A2A31 1px, transparent 1.6px);
  background-size: 40px 40px;
  opacity: 0.06;
  -webkit-mask-image: radial-gradient(120% 82% at 50% -8%, #000 20%, transparent 72%);
          mask-image: radial-gradient(120% 82% at 50% -8%, #000 20%, transparent 72%);
}
/* static depth — a soft warm glow lit from the top, no motion */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(90% 55% at 50% -12%, color-mix(in srgb, var(--gold) 6%, transparent), transparent 58%),
    radial-gradient(70% 50% at 100% 0%, color-mix(in srgb, var(--gold) 3%, transparent), transparent 55%);
}
html[data-theme="light"] body::before { background: radial-gradient(90% 55% at 50% -12%, color-mix(in srgb, var(--gold) 9%, transparent), transparent 58%); }

/* hero — "a longer line of sight": animated sightline canvas behind the copy */
.hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: min(84vh, 800px); }
.hero .hero-copy { position: relative; z-index: 2; }
/* hero sightline viz retired — clean serif hero on plain obsidian (too distracting) */
.hero-viz { display: none; }
.hero-viz canvas {
  position: absolute; inset: 0; display: block; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(95deg, transparent 0%, transparent 30%, #000 46%, #000 100%);
          mask-image: linear-gradient(95deg, transparent 0%, transparent 30%, #000 46%, #000 100%);
}
@media (max-width: 760px) { .hero { display: block; min-height: 0; } .hero-viz { display: none; } }

/* institutional cards — flat, with a restrained gold-tinted lift on hover */
.card { position: relative; }
/* segment cards carry a hairline prismatic index accent along the top edge, on hover only */
.card.seg::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; border-radius: 4px 4px 0 0; background: var(--prism); opacity: 0; transition: opacity .3s var(--ease); }
.card.seg:hover::before { opacity: .7; }

/* ── dropdown navigation ───────────────────────────────────────── */
.nav-links { gap: clamp(14px, 2vw, 30px); }
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-top { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 2px; transition: color .22s var(--ease); }
.nav-links .nav-top { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }
/* animated gold underline indicator under each header — gradient + soft glow */
.nav-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; opacity: 0; transition: transform .3s var(--ease-out), opacity .22s; }
.nav-item:hover > .nav-top::after, .nav-top[aria-current="page"]::after { transform: scaleX(1); opacity: 1; }
.nav-top[aria-current="page"] { color: var(--ink); }
.caret { width: 5px; height: 5px; border-right: 1.2px solid currentColor; border-bottom: 1.2px solid currentColor; transform: rotate(45deg) translateY(-1px); opacity: .5; transition: transform .22s var(--ease), opacity .22s; }
.nav-item.has-menu:hover .caret { opacity: .85; }
.nav-menu { position: absolute; top: 100%; left: -12px; min-width: 214px; margin-top: 10px; padding: 7px; display: flex; flex-direction: column; gap: 1px; background: var(--white); border: 1px solid var(--hairline); border-radius: 7px; box-shadow: 0 26px 64px -28px rgba(0,0,0,.7); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility .2s; z-index: 60; }
/* invisible hover bridge so the gap below the header doesn't drop the menu */
.nav-item.has-menu::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 16px; }
.nav-item.has-menu:hover .nav-menu, .nav-item.has-menu:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-item.has-menu:hover .caret, .nav-item.has-menu:focus-within .caret { transform: rotate(225deg) translateY(2px); }
.nav-menu a { display: block; padding: 9px 12px; border-radius: 4px; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: .02em; color: var(--slate); white-space: nowrap; }
.nav-menu a:hover { background: var(--mist); color: var(--ink); }
/* language switcher (globe) */
.lang-btn { cursor: pointer; }
.lang-btn .globe { display: block; opacity: .85; }
.lang-item:hover .globe { opacity: 1; }
.lang-menu { left: auto; right: -12px; min-width: 172px; }
.lang-menu a[aria-current="true"] { color: var(--gold); }
.lang-soon { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 12px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--ash); white-space: nowrap; cursor: default; }
.lang-soon em { font-style: normal; font-size: 0.6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ash); border: 1px solid var(--hairline); border-radius: 2px; padding: 1px 5px; }
/* auxiliary row labels (Theme / Language) — only surfaced in the mobile stack */
.nav-aux-label { display: none; }
/* lock the page behind the open mobile menu */
body.nav-open { overflow: hidden; }
html:has(body.nav-open) { overflow: hidden; }
@media (max-width: 760px) {
  /* full-width vertical stack, each row divided by a hairline */
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { display: block; width: 100%; border-top: 1px solid var(--hairline); }
  .nav-item:first-child { border-top: 0; }
  .nav-top { display: flex; width: 100%; justify-content: flex-start; align-items: center; padding: 16px 2px; }
  .nav-top::after { display: none; }
  .nav-aux-label { display: inline; margin-left: 8px; }
  /* caret becomes the right-aligned expand cue */
  .caret { display: block; margin-left: auto; opacity: .55; transition: transform .28s var(--ease), opacity .2s; }
  /* kill the desktop invisible hover-bridge so it can't eat taps */
  .nav-item.has-menu::after { display: none; }
  /* accordion: submenus stay collapsed until their parent row is tapped */
  .nav-menu { position: static; min-width: 0; margin: 0; padding: 0 0 0 14px; border: 0; border-radius: 0; background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none; overflow: hidden; max-height: 0; transition: max-height .34s var(--ease); }
  .nav-item.open .nav-menu { max-height: 60vh; }
  .nav-item.open > .nav-top .caret { transform: rotate(225deg) translateY(2px); opacity: .95; }
  .nav-menu a { padding: 11px 0; border-bottom: 0; white-space: normal; }
  .nav-menu a:last-child { padding-bottom: 14px; }
  .nav-links .btn--primary { width: 100%; justify-content: center; margin-top: 16px; border-bottom: 0; }
}

/* ── newsletter (footer) ───────────────────────────────────────── */
.footer-news { display: flex; flex-wrap: wrap; gap: 22px 40px; align-items: flex-end; justify-content: space-between; }
.footer-news-copy { max-width: 48ch; }
.news-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.news-input { background: var(--paper); border: 1px solid var(--hairline-2); border-radius: 2px; color: var(--ink); padding: 0.8em 1em; font-family: var(--font-mono); font-size: 0.82rem; min-width: 240px; transition: border-color .2s var(--ease); }
.news-input::placeholder { color: var(--ash); }
.news-input:focus { outline: none; border-color: var(--gold); }
.news-form .btn { white-space: nowrap; }
.news-msg { width: 100%; margin: 4px 0 0; min-height: 1em; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: .02em; color: var(--ash); }
.news-msg.ok { color: var(--gold); }
.news-msg.err { color: #E0726A; }
@media (max-width: 560px) { .news-form, .news-input { width: 100%; } .news-input { min-width: 0; } .news-form .btn { width: 100%; justify-content: center; } }

/* ── theme toggle button ───────────────────────────────────────── */
.theme-btn { cursor: pointer; }
.theme-ic { display: block; opacity: .8; transition: opacity .2s var(--ease), transform .3s var(--ease); }
.theme-item:hover .theme-ic { opacity: 1; transform: rotate(180deg); }
/* no gold underline beneath the icon-only triggers */
.lang-btn::after, .theme-btn::after { display: none; }

/* ── light theme (toggle; dark is the default / main) ──────────── */
html[data-theme="light"] {
  --paper: #F7F7F5;
  --white: #FFFFFF;
  --mist: #ECECEF;
  --hairline: #E1E1E6;
  --hairline-2: #CCCCD4;
  --ink: #12121A;
  --graphite: #3A3A42;
  --slate: #55555E;
  --ash: #8A8A93;
}
html[data-theme="light"] .nav { background: color-mix(in srgb, #FFFFFF 82%, transparent); }
@media (max-width: 760px) { html[data-theme="light"] .nav-links { background: #FFFFFF; } }

/* ── factsheet strip — institutional figure row under the hero ──── */
.statline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border: 1px solid var(--hairline); border-radius: 6px; overflow: hidden; }
/* faint prismatic filament along the top edge — same signature as the nav */
.statline::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: var(--prism); opacity: .5; pointer-events: none; }
.stat { padding: clamp(20px, 2.2vw, 30px) clamp(18px, 2vw, 30px); border-left: 1px solid var(--hairline); }
.stat:first-child { border-left: 0; }
.stat-k { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ash); margin-bottom: 12px; }
.stat-v { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.05rem, 1.55vw, 1.4rem); line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); }
.stat-v .figure { color: var(--gold); }
@media (max-width: 760px) {
  .statline { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--hairline); }
}
@media (max-width: 430px) {
  .statline { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--hairline); }
  .stat:first-child { border-top: 0; }
}

/* ── inline form status (contact) ──────────────────────────────── */
.form-msg { margin: 16px 0 0; min-height: 1em; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: .02em; color: var(--ash); }
.form-msg.ok { color: var(--gold); }
.form-msg.err { color: #E0726A; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
