/* Vestra Capital — site styles */

/* ── fonts (self-hosted) ─────────────────────────────────────────────────────────────────────── */
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-ext-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2C60-2C7F, U+A720-A7FF; }

/* ── tokens ──────────────────────────────────────────────────────────────────────────────────── */
:root {
  --bg: #070708;
  --bg-2: #0b0b0e;
  --surface: #101014;
  --surface-2: #16161b;
  --surface-3: #1d1d23;
  --line: rgba(242, 239, 232, 0.08);
  --line-2: rgba(242, 239, 232, 0.14);
  --line-3: rgba(242, 239, 232, 0.22);
  --text: #f2efe8;
  --muted: #a39e93;
  --faint: #6e6a61;
  --gold: #d9bc85;
  --gold-2: #b08d57;
  --gold-3: #f4e6c4;
  --gold-glow: rgba(217, 188, 133, 0.22);
  --live: #5fe39b;
  --ok: #5fe39b;
  --warn: #f0c46b;
  --bad: #f08473;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --radius: 20px;
  --radius-sm: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1320px;
  --nav-h: 72px;
  color-scheme: dark;
}

/* ── base ────────────────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.6; letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--gold); color: #120f09; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4, h5, p { margin: 0; }
.sr-only { 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 { position: fixed; left: 16px; top: -60px; z-index: 300; background: var(--gold); color: #120f09; padding: 10px 16px; border-radius: 999px; font-weight: 600; transition: top .3s var(--ease); }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: clamp(96px, 14vw, 180px) 0; }
.section + .section { border-top: 1px solid var(--line); }

/* the grain over everything */
.grain {
  pointer-events: none; position: fixed; inset: -50%; z-index: 90; opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0) } 20% { transform: translate(-3%,2%) } 40% { transform: translate(2%,-3%) } 60% { transform: translate(-2%,-1%) } 80% { transform: translate(3%,3%) } }

/* ── type ────────────────────────────────────────────────────────────────────────────────────── */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .6; }
.display { font-family: var(--serif); font-weight: 400; line-height: .92; letter-spacing: -0.025em; font-size: clamp(3.4rem, 10.5vw, 9.6rem); }
.h2 { font-family: var(--serif); font-weight: 400; line-height: 1; letter-spacing: -0.02em; font-size: clamp(2.6rem, 6vw, 5.4rem); }
.h3 { font-size: 1.25rem; font-weight: 550; letter-spacing: -0.01em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34em; line-height: 1.55; }
.gold { color: var(--gold); }
em.g, .display em, .h2 em { font-style: italic; color: var(--gold); }
.display em, .h2 em {
  background: linear-gradient(100deg, var(--gold-2) 0%, var(--gold-3) 45%, var(--gold) 70%, var(--gold-2) 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s var(--ease-in-out) infinite; padding-right: .05em; margin-right: -.05em;
}
@keyframes sheen { 0%, 100% { background-position: 0% 50% } 50% { background-position: 100% 50% } }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1, "zero" 1; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* split-text masks (filled by GSAP) */
.line-mask, .ln-mask { display: block; overflow: clip; padding: 0 .06em .16em; margin: 0 -.06em -.16em; }
.line-mask .ln { display: block; }

/* ── nav ─────────────────────────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 80; height: var(--nav-h);
  display: flex; align-items: center; transition: background .5s var(--ease), border-color .5s var(--ease), transform .6s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7, 7, 8, .72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-color: var(--line); }
.nav.hide { transform: translateY(-100%); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: .26em; font-size: 13px; text-transform: uppercase; }
.brand .mark { width: 30px; height: 30px; color: var(--gold); }
.brand img.mark { object-fit: contain; }
.brand small { display: block; font-size: 9px; letter-spacing: .42em; color: var(--muted); font-weight: 500; margin-top: 2px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a.link { position: relative; padding: 8px 14px; font-size: 14px; color: var(--muted); border-radius: 999px; transition: color .3s; }
.nav-links a.link:hover, .nav-links a.link[aria-current="page"] { color: var(--text); }
.nav-links a.link[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--gold); }
.nav .preview { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--warn); border: 1px solid rgba(240,196,107,.35); padding: 4px 10px; border-radius: 999px; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-btn span:nth-child(1) { top: 17px; } .menu-btn span:nth-child(2) { top: 25px; }
.menu-open .menu-btn span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.mobile-menu { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: flex; flex-direction: column; justify-content: center; padding: 96px var(--gutter) 40px; clip-path: inset(0 0 100% 0); pointer-events: none; transition: clip-path .8s var(--ease-in-out); }
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); pointer-events: auto; }
.mobile-menu a { font-family: var(--serif); font-size: clamp(2.8rem, 13vw, 4.6rem); line-height: 1.1; display: block; overflow: clip; }
.mobile-menu a span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); }
.menu-open .mobile-menu a span { transform: none; }
.menu-open .mobile-menu a:nth-child(2) span { transition-delay: .06s } .menu-open .mobile-menu a:nth-child(3) span { transition-delay: .12s } .menu-open .mobile-menu a:nth-child(4) span { transition-delay: .18s }
.mobile-menu .foot { margin-top: 48px; color: var(--muted); font-size: 14px; }

/* ── buttons ─────────────────────────────────────────────────────────────────────────────────── */
.btn {
  --h: 52px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px; font-size: 15px; font-weight: 550; letter-spacing: -0.005em;
  white-space: nowrap; isolation: isolate; overflow: hidden; transition: color .4s var(--ease), border-color .4s, background .4s, transform .2s;
}
.btn .lbl { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; }
.btn svg { width: 16px; height: 16px; }
.btn-gold { color: #15110a; background: linear-gradient(120deg, var(--gold-3), var(--gold) 40%, var(--gold-2)); box-shadow: 0 10px 40px -12px var(--gold-glow), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-gold::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--text); transform: translateY(101%); border-radius: inherit; transition: transform .6s var(--ease); }
.btn-gold:hover::before { transform: none; }
.btn-ghost { color: var(--text); border: 1px solid var(--line-3); background: rgba(242,239,232,.02); }
.btn-ghost::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--text); transform: translateY(101%); border-radius: inherit; transition: transform .6s var(--ease); }
.btn-ghost:hover { color: var(--bg); border-color: var(--text); }
.btn-ghost:hover::before { transform: none; }
.btn-sm { --h: 40px; padding: 0 18px; font-size: 13.5px; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.arrow { transition: transform .5s var(--ease); }
a:hover .arrow, button:hover .arrow { transform: translateX(4px); }
.textlink { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14.5px; transition: color .3s; }
.textlink:hover { color: var(--text); }
.textlink svg { width: 14px; height: 14px; flex: none; }
.textlink .u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); padding-bottom: 2px; }
.textlink:hover .u { background-size: 100% 1px; }

.chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(242,239,232,.03); font-size: 13px; color: var(--muted); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.chip b { color: var(--text); font-weight: 550; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(95,227,155,.6); animation: ping 2.2s var(--ease) infinite; flex: none; }
.dot.off { background: var(--faint); animation: none; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(95,227,155,.55) } 70% { box-shadow: 0 0 0 9px rgba(95,227,155,0) } 100% { box-shadow: 0 0 0 0 rgba(95,227,155,0) } }

/* ── hero ────────────────────────────────────────────────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding: calc(var(--nav-h) + 40px) 0 0; overflow: clip; }
.hero-gl { position: absolute; inset: 0; z-index: 0; background: radial-gradient(120% 80% at 70% 30%, #2a2116 0%, #0d0b09 45%, var(--bg) 75%); }
.hero-gl canvas { width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; z-index: 1; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; }
.hero-inner { position: relative; z-index: 2; padding-bottom: clamp(40px, 7vw, 88px); }
.hero .chip { margin-bottom: clamp(24px, 4vw, 40px); }
.hero h1 { max-width: 12ch; }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.hero-foot .lead { max-width: 30em; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.scroll-cue { position: absolute; right: var(--gutter); top: calc(var(--nav-h) + 32px); z-index: 2; writing-mode: vertical-rl; font-family: var(--mono); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--faint); display: flex; align-items: center; gap: 14px; }
.scroll-cue::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--gold), transparent); animation: cue 2.4s var(--ease-in-out) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0) } 50% { transform: scaleY(1); transform-origin: top } 51% { transform-origin: bottom } 100% { transform: scaleY(0); transform-origin: bottom } }

/* the ticker under the hero */
.ticker { position: relative; z-index: 2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(7,7,8,.6); backdrop-filter: blur(8px); overflow: hidden; }
.ticker-track { display: flex; width: max-content; }
.ticker-item { display: inline-flex; align-items: center; gap: 14px; padding: 18px 28px; font-family: var(--mono); font-size: 13px; letter-spacing: .06em; color: var(--muted); white-space: nowrap; text-transform: uppercase; }
.ticker-item b { color: var(--text); font-weight: 500; }
.ticker-item .off { color: var(--gold); }
.ticker-item::after { content: "✦"; color: var(--gold-2); font-size: 10px; margin-left: 14px; }

/* ── section heads ───────────────────────────────────────────────────────────────────────────── */
.head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px 48px; margin-bottom: clamp(40px, 6vw, 80px); }
.head .eyebrow { grid-column: 1 / -1; }
.head .lead { max-width: 26em; }
.head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 18px; text-align: right; }

/* ── pulse ───────────────────────────────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { position: relative; padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 28px); min-height: 200px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .label { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.stat .num { font-family: var(--serif); font-size: clamp(3rem, 6.4vw, 6rem); line-height: .9; letter-spacing: -0.03em; font-feature-settings: "lnum" 1, "tnum" 1; }
.stat .num.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { color: var(--gold-3); text-shadow: 0 0 24px var(--gold-glow) } 100% { color: var(--text); text-shadow: none } }
.spark { margin-top: clamp(32px, 4vw, 56px); display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; }
.spark svg { width: 100%; height: 120px; overflow: visible; }
.spark .meta { color: var(--muted); font-size: 14px; }
.spark .meta b { display: block; color: var(--text); font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; }

/* ── codes ───────────────────────────────────────────────────────────────────────────────────── */
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.code-card {
  --x: 50%; --y: 50%; position: relative; border-radius: var(--radius); padding: 26px; background: var(--surface);
  border: 1px solid var(--line); overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 22px;
  transition: border-color .5s var(--ease), transform .7s var(--ease), background .5s;
}
.code-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s var(--ease); background: radial-gradient(420px circle at var(--x) var(--y), rgba(217,188,133,.13), transparent 45%); }
.code-card::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity .5s; background: radial-gradient(300px circle at var(--x) var(--y), rgba(244,230,196,.55), transparent 45%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.code-card:hover { border-color: var(--line-2); background: var(--surface-2); }
.code-card:hover::before, .code-card:hover::after { opacity: 1; }
.code-top { display: flex; align-items: center; gap: 16px; }
.logo { width: 52px; height: 52px; border-radius: 14px; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--surface-3); border: 1px solid var(--line); font-family: var(--serif); font-size: 22px; color: var(--gold); }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.firm { min-width: 0; flex: 1; }
.firm h3 { font-size: 1.15rem; font-weight: 550; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.firm p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.off-badge { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.5rem); line-height: .9; color: var(--gold); letter-spacing: -0.02em; white-space: nowrap; }
.off-badge small { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.code-row { display: flex; align-items: stretch; gap: 8px; }
.code-box { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 54px; padding: 0 8px 0 18px; border-radius: 14px; border: 1px dashed var(--line-3); background: rgba(7,7,8,.5); }
.code-box .code { font-family: var(--mono); font-size: 17px; font-weight: 500; letter-spacing: .12em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copy { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--line-2); font-size: 13px; font-weight: 550; transition: background .3s, color .3s, border-color .3s; flex: none; }
.copy:hover { background: var(--gold); color: #15110a; border-color: var(--gold); }
.copy.done { background: var(--ok); color: #06150d; border-color: var(--ok); }
.copy svg { width: 15px; height: 15px; }
.code-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); min-height: 24px; }
.ends { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--warn); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ends svg { width: 13px; height: 13px; flex: none; }
.empty { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 56px 24px; text-align: center; color: var(--muted); }
.empty .h3 { color: var(--text); margin-bottom: 6px; }

/* ── posts ───────────────────────────────────────────────────────────────────────────────────── */
.news-pin { position: relative; overflow-x: clip; }
.news-rail { overflow: visible; }
.news-track { display: flex; gap: 18px; will-change: transform; }
.news-track .post-card { width: min(420px, 82vw); flex: none; }
.news-progress { height: 1px; background: var(--line); margin-top: 40px; position: relative; overflow: hidden; }
.news-progress i { position: absolute; inset: 0; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.post-card { position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: border-color .5s, transform .7s var(--ease); }
.post-card:hover { border-color: var(--line-2); }
.post-card .media { aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.post-card .media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.4s var(--ease); }
.post-card:hover .media img { transform: scale(1); }
.post-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.post-meta .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--gold); text-transform: lowercase; }
.post-meta .pin { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #15110a; background: var(--gold); padding: 2px 8px; border-radius: 999px; }
.post-meta .new { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--live); border: 1px solid rgba(95,227,155,.4); padding: 1px 8px; border-radius: 999px; }
.post-card .excerpt { color: #d8d4cb; font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.post-card.text-only .body { padding-top: 26px; }
.post-card.text-only .excerpt { font-family: var(--serif); font-size: clamp(1.45rem, 2vw, 1.8rem); line-height: 1.22; letter-spacing: -0.01em; color: var(--text); -webkit-line-clamp: 9; }
.post-card.text-only::before { content: "“"; position: absolute; right: 22px; top: 6px; font-family: var(--serif); font-size: 7rem; line-height: 1; color: rgba(217,188,133,.14); pointer-events: none; }
.post-card .more { margin-top: auto; }
.post-card a.cover { position: absolute; inset: 0; z-index: 1; }
.post-card .more, .post-card .post-meta { position: relative; z-index: 2; }
.post-card.fresh { animation: fresh 2.4s var(--ease); }
@keyframes fresh { 0% { box-shadow: 0 0 0 1px var(--gold), 0 0 60px -10px var(--gold-glow) } 100% { box-shadow: 0 0 0 1px transparent } }

/* a full post (news page + modal) */
.post { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); padding: clamp(20px, 3vw, 32px); }
.post + .post { margin-top: 16px; }
.post-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-3); object-fit: cover; flex: none; border: 1px solid var(--line); }
.post-head .who { min-width: 0; }
.post-head .who b { display: block; font-weight: 550; font-size: 15px; }
.post-head .who span { color: var(--muted); font-size: 12.5px; }
.post-head .share { margin-left: auto; }
.prose { color: #e3dfd6; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.prose > * + * { margin-top: .75em; }
.prose h3, .prose h4, .prose h5 { font-family: var(--serif); font-weight: 400; color: var(--text); line-height: 1.1; margin-top: 1em; }
.prose h3 { font-size: 2rem; } .prose h4 { font-size: 1.6rem; } .prose h5 { font-size: 1.3rem; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--gold); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 1px; }
.prose a:hover { color: var(--gold-3); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--surface-3); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.prose pre { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; overflow-x: auto; }
.prose pre code { background: none; border: 0; padding: 0; font-size: 13.5px; }
.prose blockquote { margin: 0; padding: 2px 0 2px 16px; border-left: 2px solid var(--gold-2); color: var(--muted); }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; }
.prose li + li { margin-top: .25em; }
.prose li.d1 { margin-left: 1.2em; } .prose li.d2 { margin-left: 2.4em; } .prose li.d3 { margin-left: 3.6em; }
.prose .sub { font-size: 13px; color: var(--faint); }
.prose .mention { color: var(--gold-3); background: rgba(217,188,133,.12); padding: 0 5px; border-radius: 5px; font-weight: 500; }
.prose .mention.role { color: var(--c, var(--gold-3)); background: color-mix(in srgb, var(--c, #d9bc85) 16%, transparent); }
.prose .emoji { display: inline-block; width: 1.35em; height: 1.35em; vertical-align: -.3em; object-fit: contain; }
.prose .spoiler { background: var(--surface-3); color: transparent; border-radius: 4px; cursor: pointer; transition: color .3s, background .3s; }
.prose .spoiler.shown { color: inherit; background: rgba(242,239,232,.06); }
.prose time { color: var(--gold-3); }
.prose .forward { border-left: 2px solid var(--line-3); padding-left: 14px; }
.prose .poll { border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; }
.prose .poll-q { font-weight: 550; color: var(--text); }
.gallery { display: grid; gap: 8px; margin-top: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.gallery a, .gallery .vid { display: block; border-radius: 14px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.gallery img, .gallery video { width: 100%; height: 100%; max-height: 520px; object-fit: cover; }
.gallery .one { grid-column: 1 / -1; }
.gallery .one img { object-fit: contain; max-height: 640px; background: var(--bg-2); }
.gallery .sticker { width: 160px; border: 0; background: none; }
.embed { margin-top: 16px; display: grid; grid-template-columns: 1fr auto; gap: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--ec, var(--gold-2)); padding: 14px 16px; }
.embed .e-main { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.embed .e-author { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 550; }
.embed .e-author img { width: 22px; height: 22px; border-radius: 50%; }
.embed .e-title { font-weight: 600; font-size: 15.5px; color: var(--text); }
.embed .e-title a { color: var(--gold); }
.embed .e-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 16px; }
.embed .e-field { grid-column: 1 / -1; }
.embed .e-field.inline { grid-column: auto; }
.embed .e-field b { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.embed .e-field .prose { font-size: 14px; }
.embed .e-thumb img { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; }
.embed .e-image { grid-column: 1 / -1; }
.embed .e-image img { border-radius: 8px; max-height: 420px; width: 100%; object-fit: cover; }
.embed .e-foot { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); grid-column: 1 / -1; }
.embed .e-foot img { width: 18px; height: 18px; border-radius: 50%; }
.embed .prose { font-size: 14.5px; }
.embed.image-only { display: block; padding: 0; border: 0; background: none; }
.embed.image-only img { border-radius: 12px; max-height: 520px; }

/* feed controls */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 13.5px; transition: all .3s var(--ease); }
.filter:hover { color: var(--text); border-color: var(--line-3); }
.filter[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.feed { max-width: 820px; }
.load-more { margin-top: 28px; }

/* ── rewards teaser + steps ──────────────────────────────────────────────────────────────────── */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps .bar { position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.step { padding: 36px clamp(16px, 2.4vw, 32px) 8px 0; }
.step + .step { padding-left: clamp(16px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.step .n { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 3.2rem; line-height: 1; }
.step h3 { margin-top: 28px; font-size: 1.3rem; font-weight: 550; }
.step p { margin-top: 8px; color: var(--muted); max-width: 22em; }
.rewards-cta { margin-top: clamp(40px, 6vw, 64px); display: flex; gap: 12px; flex-wrap: wrap; }

/* ── join ────────────────────────────────────────────────────────────────────────────────────── */
.join { position: relative; text-align: center; overflow: clip; padding: clamp(120px, 18vw, 240px) 0; }
.join .glow { position: absolute; left: 50%; top: 50%; width: min(900px, 120vw); aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(217,188,133,.18), transparent 70%); pointer-events: none; filter: blur(10px); }
.join .display { font-size: clamp(3.6rem, 13vw, 12rem); }
.join .lead { margin: 28px auto 40px; text-align: center; }
.join .chip { margin-bottom: 32px; }

/* ── footer ──────────────────────────────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 64px 0 40px; color: var(--muted); font-size: 14px; }
.footer .top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer nav a:hover { color: var(--text); }
.footer .note { margin-top: 48px; max-width: 60em; font-size: 12.5px; color: var(--faint); line-height: 1.6; }
.footer .big { font-family: var(--serif); font-size: clamp(5rem, 33vw, 31rem); line-height: .78; letter-spacing: -0.045em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(217,188,133,.28); background: linear-gradient(to bottom, rgba(217,188,133,.16), rgba(217,188,133,0) 78%); -webkit-background-clip: text; background-clip: text; margin-top: 64px; user-select: none; white-space: nowrap; overflow: hidden; padding-bottom: .06em; }
.footer .bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; font-size: 12.5px; color: var(--faint); flex-wrap: wrap; }

/* ── page header (news / rewards) ────────────────────────────────────────────────────────────── */
.page-head { padding: calc(var(--nav-h) + clamp(56px, 9vw, 120px)) 0 clamp(40px, 6vw, 72px); position: relative; }
.page-head .display { font-size: clamp(3.4rem, 11vw, 9rem); }
.page-head .lead { margin-top: 24px; }
.page-head .chip { margin-top: 28px; }

/* ── rewards page ────────────────────────────────────────────────────────────────────────────── */
.panel { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); padding: clamp(22px, 3.4vw, 40px); }
.auth { display: grid; grid-template-columns: 1.1fr .9fr; gap: 16px; align-items: start; }
.signin { text-align: center; padding: clamp(40px, 6vw, 72px) clamp(20px, 4vw, 48px); }
.signin .h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
.signin p { color: var(--muted); margin: 14px auto 28px; max-width: 28em; }
.profile { display: flex; align-items: center; gap: 16px; }
.profile .avatar { width: 64px; height: 64px; }
.profile b { font-size: 1.2rem; font-weight: 550; display: block; }
.profile span { color: var(--muted); font-size: 13.5px; }
.profile .out { margin-left: auto; }
.roles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.role { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12.5px; }
.role i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--faint)); }
.notice { display: flex; gap: 12px; align-items: flex-start; border-radius: 14px; padding: 14px 16px; font-size: 14px; border: 1px solid rgba(240,196,107,.3); background: rgba(240,196,107,.06); color: #f3dcae; margin-top: 18px; }
.notice.bad { border-color: rgba(240,132,115,.35); background: rgba(240,132,115,.07); color: #f6c1b7; }
.form { display: grid; gap: 18px; margin-top: 28px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 550; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 8px; height: 20px; line-height: 20px; white-space: nowrap; }
.field label small { line-height: 1; }
.field label small { color: var(--faint); font-weight: 400; }
.input, .select, .textarea { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line-2); transition: border-color .3s, box-shadow .3s; font-size: 15px; }
.textarea { height: auto; min-height: 96px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a39e93' stroke-width='1.5'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; padding-right: 40px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217,188,133,.12); }
.field .err { color: var(--bad); font-size: 12.5px; min-height: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.drop { position: relative; border: 1px dashed var(--line-3); border-radius: 16px; padding: 26px 18px; text-align: center; color: var(--muted); font-size: 14px; transition: border-color .3s, background .3s; cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--gold); background: rgba(217,188,133,.05); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .ask svg { width: 26px; height: 26px; margin: 0 auto 10px; color: var(--gold); }
.drop .ask b { color: var(--text); font-weight: 550; }
.drop .pv { display: none; align-items: center; gap: 14px; text-align: left; }
.drop.has .pv { display: flex; }
.drop.has .ask { display: none; }
.drop .pv img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.drop .pv b { color: var(--text); display: block; font-weight: 550; word-break: break-all; }
.claims { display: grid; gap: 10px; margin-top: 20px; }
.claim { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.claim .thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--surface-3); }
.claim b { font-weight: 550; display: block; }
.claim span { color: var(--muted); font-size: 12.5px; }
.claim .note { grid-column: 2 / -1; font-size: 13px; color: var(--muted); border-left: 2px solid var(--line-3); padding-left: 10px; }
.status { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--line-2); color: var(--muted); }
.status.review { color: var(--warn); border-color: rgba(240,196,107,.4); }
.status.ok { color: var(--ok); border-color: rgba(95,227,155,.4); }
.status.bad { color: var(--bad); border-color: rgba(240,132,115,.4); }
.status.wait { color: var(--gold-3); border-color: var(--line-3); }
.success { text-align: center; padding: 28px 0 8px; }
.success svg { width: 64px; height: 64px; margin: 0 auto 14px; color: var(--ok); }

/* ── modal, toast ────────────────────────────────────────────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px var(--gutter); visibility: hidden; }
.modal.open { visibility: visible; }
.modal .shade { position: absolute; inset: 0; background: rgba(4,4,5,.78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .5s var(--ease); }
.modal.open .shade { opacity: 1; }
.modal .sheet { position: relative; width: min(820px, 100%); max-height: calc(100svh - 48px); overflow: auto; overscroll-behavior: contain; border-radius: 24px; background: var(--surface); border: 1px solid var(--line-2); transform: translateY(40px) scale(.98); opacity: 0; transition: transform .7s var(--ease), opacity .5s var(--ease); }
.modal.open .sheet { transform: none; opacity: 1; }
.modal .sheet .post { border: 0; background: none; }
.modal .close { position: sticky; top: 14px; float: right; margin: 14px 14px 0 0; z-index: 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); border: 1px solid var(--line-2); }
.modal .close svg { width: 16px; height: 16px; }
.toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 150; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: rgba(29,29,35,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-2); font-size: 14px; box-shadow: 0 20px 60px -20px rgba(0,0,0,.8); animation: toast-in .6s var(--ease); }
.toast.out { animation: toast-out .5s var(--ease) forwards; }
.toast .ic { color: var(--ok); }
.toast.bad .ic { color: var(--bad); }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96) } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px) scale(.96) } }

/* ── preloader + page transition ─────────────────────────────────────────────────────────────── */
.loader { position: fixed; inset: 0; z-index: 200; background: var(--bg); display: none; }
html.first .loader { display: block; }
.loader .center { position: absolute; inset: 0; display: grid; place-items: center; }
.loader .mark { width: 76px; height: 76px; color: var(--gold); }
.loader .word { margin-top: 22px; font-size: 12px; letter-spacing: .5em; text-transform: uppercase; color: var(--muted); text-align: center; overflow: clip; }
.loader .word span { display: inline-block; }
.loader .count { position: absolute; left: var(--gutter); bottom: 28px; font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--faint); }
.loader .line { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.curtain { position: fixed; inset: 0; z-index: 190; pointer-events: none; display: grid; place-items: center; background: var(--surface); transform: translateY(100%); }
.curtain .mark { width: 54px; height: 54px; color: var(--gold); opacity: 0; }
html.entering .curtain { transform: none; }
html.entering .curtain .mark { opacity: 1; }

/* ── custom cursor ───────────────────────────────────────────────────────────────────────────── */
.cursor, .cursor-ring { position: fixed; left: 0; top: 0; z-index: 160; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .3s; }
.cursor { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--gold-3); }
.cursor-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(244,230,196,.45); display: grid; place-items: center; transition: opacity .3s, width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), background .5s, border-color .5s; }
.cursor-ring span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #15110a; opacity: 0; transition: opacity .3s; }
.has-cursor .cursor, .has-cursor .cursor-ring { opacity: 1; }
.cursor-ring.big { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--gold); border-color: var(--gold); }
.cursor-ring.big span { opacity: 1; }
.cursor-ring.hover { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-color: var(--gold); }
@media (pointer: coarse) { .cursor, .cursor-ring { display: none; } }

/* reveal start states (only when JS runs and motion is on) */
html.js:not(.reduce) [data-reveal] { opacity: 0; transform: translateY(32px); }
html.js:not(.reduce) [data-reveal="fade"] { transform: none; }
html.js:not(.reduce) [data-hero] { opacity: 0; }
html.js:not(.reduce) .hero h1 .ln { transform: translateY(118%); }
/* if the scripts never arrive, show everything */
html.nomotion [data-reveal], html.nomotion [data-hero], html.nomotion .hero h1 .ln { opacity: 1 !important; transform: none !important; }

/* skeletons while data loads */
.skel { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 10px; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(242,239,232,.05), transparent); animation: skel 1.6s infinite; }
@keyframes skel { to { transform: translateX(100%); } }

/* ── responsive ──────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .spark { grid-template-columns: 1fr; gap: 12px; }
  .auth { grid-template-columns: 1fr; }
  .head { grid-template-columns: 1fr; }
  .head-side { align-items: flex-start; text-align: left; }
}
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .nav-links a.link, .nav-links .btn { display: none; }
  .menu-btn { display: block; }
  .scroll-cue { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .step { padding: 28px 0 24px; }
  .step h3 { margin-top: 16px; }
  .two { grid-template-columns: 1fr; }
  .stat { min-height: 150px; }
  .news-track { flex-direction: column; }
  .news-track .post-card { width: 100%; }
  .news-progress { display: none; }
  .embed .e-fields { grid-template-columns: 1fr; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .code-card { padding: 20px; }
  .claim { grid-template-columns: auto 1fr; }
  .claim .status { grid-column: 2; justify-self: start; }
}

/* ── less motion ─────────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .grain { display: none; }
}
