/* YRT.com: trading, time, space. Terminal dark, mono headings, green up, red down, amber labels.
   Layout: one long scroll of three acts over a revolving wireframe sphere, with a now-playing bar pinned to the bottom. */
:root {
  --bg: #0b0e11; --panel: #11161c; --grid: #1c232c; --faint: #6b7684; --ink: #e6edf3;
  --up: #00d26a; --down: #ff3b3b; --amber: #f5b700;
  --mono: 'IBM Plex Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --sans: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); min-height: 100%; overflow-x: hidden; padding-bottom: 96px; line-height: 1.5; }
body.locked { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--mono); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: .01em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--up); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
code { background: var(--panel); padding: 1px 6px; border-radius: 4px; font-family: var(--mono); }

#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.gate { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; text-align: center; padding: 24px; background: var(--bg); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 40px 40px; }
.gate[hidden] { display: none; }
.gate-inner { max-width: 640px; display: grid; gap: 22px; justify-items: center; }
.gate-title { font-size: clamp(56px, 14vw, 140px); line-height: .9; }
.gate-title span { display: block; font-size: .3em; color: var(--up); }
.gate-title.small { font-size: clamp(28px, 7vw, 56px); }
.gate-rules { font-size: clamp(15px, 2.2vw, 20px); font-weight: 600; max-width: 36ch; color: var(--ink); }
.candles { display: flex; align-items: flex-end; gap: 14px; height: 110px; border-bottom: 1px solid var(--grid); padding: 0 10px; }
.candles span { width: 14px; border-radius: 2px; background: var(--up); animation: candle 1.6s ease-in-out infinite alternate; transform-origin: bottom; }
.candles span:nth-child(1) { height: 40px; background: var(--down); animation-delay: -.3s; }
.candles span:nth-child(2) { height: 72px; animation-delay: -1s; }
.candles span:nth-child(3) { height: 56px; background: var(--down); animation-delay: -.6s; }
.candles span:nth-child(4) { height: 96px; animation-delay: -1.3s; }
.candles span:nth-child(5) { height: 66px; animation-delay: -.1s; }
@keyframes candle { to { transform: scaleY(1.3); } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--up); color: #04150b; border: 1px solid var(--up); border-radius: 4px; padding: 11px 20px; font-family: var(--mono); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; cursor: pointer; }
.btn:hover { background: #1ee27f; box-shadow: 0 0 0 3px rgba(0,210,106,.25); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--faint); }
.btn-ghost:hover { background: rgba(255,255,255,.06); box-shadow: none; }
.btn-huge { font-size: clamp(16px, 2.6vw, 22px); padding: 18px 40px; }
.btn.danger { border-color: var(--down); color: var(--down); background: transparent; }
.linkish { background: none; border: 0; color: var(--faint); text-decoration: underline; cursor: pointer; padding: 0; font-family: var(--mono); font-size: 12px; }

.top { position: sticky; top: 0; z-index: 20; background: rgba(11,14,17,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--grid); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; padding: 10px 20px 0; }
.logo { display: inline-flex; align-items: baseline; text-decoration: none; font-family: var(--mono); font-weight: 700; font-size: 28px; line-height: 1; }
.logo-y { color: var(--up); } .logo-r { color: var(--down); } .logo-t { color: var(--amber); }
.logo small { color: var(--ink); font-size: 12px; margin-left: 2px; }
.nav { display: flex; gap: 6px 10px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--ink); text-decoration: none; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 6px 10px; border-radius: 4px; }
.nav a:hover { background: rgba(255,255,255,.06); }
.nav-hot { background: var(--up); color: #04150b !important; }
.ticker { grid-column: 1 / -1; overflow: hidden; margin: 8px -20px 0; background: var(--panel); border-top: 1px solid var(--grid); font-family: var(--mono); font-size: 11px; padding: 4px 0; }
.ticker-track { display: inline-flex; gap: 40px; white-space: nowrap; animation: ticker 40s linear infinite; padding-left: 100%; }
.ticker span:nth-child(odd) { color: var(--up); } .ticker span:nth-child(even) { color: var(--down); }
@keyframes ticker { to { transform: translateX(-100%); } }

main { position: relative; z-index: 1; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.section { padding: 72px 0 40px; }
.section-head { margin-bottom: 24px; display: grid; gap: 8px; }
.section-head h2 { font-size: clamp(30px, 5vw, 54px); }
.eyebrow { font-family: var(--mono); font-size: 12px; color: var(--amber); letter-spacing: .12em; text-transform: uppercase; }
.quote { font-family: var(--mono); font-size: 15px; color: var(--faint); max-width: 60ch; }
.tiny { font-size: 12px; color: var(--faint); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack { display: grid; gap: 12px; }
.hero { padding: 72px 0 24px; display: grid; gap: 18px; }
.hero-title { font-size: clamp(44px, 9vw, 110px); }
.hero-title em { font-style: normal; color: var(--up); }
.hero-sub { max-width: 58ch; font-size: 18px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.card { background: rgba(17,22,28,.86); border: 1px solid var(--grid); border-radius: 4px; padding: 22px; display: grid; gap: 12px; backdrop-filter: blur(6px); align-content: start; }
.card h3 { font-size: 20px; }
.card .row b { font-family: var(--mono); font-size: 18px; color: var(--up); }
.points { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 15px; }
.mentor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
input, textarea, select { font: inherit; font-family: var(--mono); font-size: 14px; color: var(--ink); background: var(--bg); border: 1px solid var(--grid); border-radius: 4px; padding: 9px 12px; width: 100%; }
input:focus, textarea:focus, select:focus { border-color: var(--up); outline: none; }
input::placeholder, textarea::placeholder { color: var(--faint); }
select option { color: var(--ink); background: var(--bg); }
.done { border-color: var(--up); background: rgba(0,210,106,.08); }
.done h4 { font-size: 20px; }

.clock-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: center; }
#face { width: 100%; height: auto; display: block; background: rgba(11,14,17,.7); border: 1px solid var(--grid); border-radius: 4px; }
.clock-side { display: grid; gap: 14px; }
.readout { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 18px; font-variant-numeric: tabular-nums; }
.readout div { display: grid; gap: 1px; }
.readout b { font-family: var(--mono); font-size: 22px; }
.readout span { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--amber); }
.readout i { font-style: normal; font-size: 11px; font-family: var(--mono); }
.up { color: var(--up); } .down { color: var(--down); }
.clock-note { font-size: 14px; color: var(--faint); }
.hex { fill: var(--panel); stroke: var(--amber); stroke-width: 2.5; }
.lbl { font-family: var(--mono); font-weight: 700; fill: var(--amber); text-anchor: middle; dominant-baseline: central; }
.seg { fill: #8b96a5; text-anchor: middle; dominant-baseline: central; font-size: 9px; font-family: var(--mono); font-weight: 700; }
.arc { fill: none; stroke: var(--up); stroke-width: 5; stroke-linecap: round; opacity: .9; }
.dot { fill: var(--up); stroke: var(--bg); stroke-width: 2; transition: all .2s cubic-bezier(.2,1.6,.4,1); }
.sechand { stroke: var(--down); stroke-width: 1.2; stroke-linecap: round; transform-origin: 500px 500px; transition: transform .18s cubic-bezier(.2,1.8,.4,1); }

.space { min-height: 70vh; display: grid; align-content: center; }
.space-note { max-width: 52ch; font-size: 18px; }

.foot { padding: 60px 0 20px; font-size: 13px; color: var(--faint); display: grid; gap: 6px; }

.np { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: rgba(11,14,17,.95); backdrop-filter: blur(14px); border-top: 1px solid var(--grid); }
.np-disc { width: 42px; height: 42px; border-radius: 50%; background: var(--panel); border: 2px solid var(--up); animation: spin 4s linear infinite; flex-shrink: 0; position: relative; }
.np-disc::after { content: ''; position: absolute; inset: 16px; border-radius: 50%; background: var(--up); }
.np.paused .np-disc { animation-play-state: paused; }
@keyframes spin { to { transform: rotate(360deg); } }
.np-text { min-width: 0; }
.np-label { font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; font-family: var(--mono); }
.np-title { font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--up); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-viz { width: 160px; height: 40px; flex-shrink: 0; }
.np-controls { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.np-btn { background: var(--panel); border: 1px solid var(--grid); color: var(--ink); border-radius: 4px; padding: 7px 12px; cursor: pointer; font-family: var(--mono); font-weight: 700; font-size: 11px; text-transform: uppercase; }
.np-vol { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; font-family: var(--mono); }
.np-vol input { width: 90px; padding: 0; accent-color: var(--up); }
.np-mute { opacity: .6; }
.np-mute.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.drawer { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.6); display: grid; justify-items: end; }
.drawer[hidden] { display: none; }
.drawer-inner { width: min(520px, 100%); height: 100%; overflow-y: auto; background: var(--bg); border-left: 1px solid var(--up); padding: 20px; display: grid; gap: 16px; align-content: start; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head h2 { font-size: 22px; }
.wl-row { background: var(--panel); border: 1px solid var(--grid); border-radius: 4px; padding: 10px 12px; font-size: 13px; display: grid; gap: 2px; }
.wl-row b { color: var(--amber); font-family: var(--mono); }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--amber); color: #0b0e11; font-family: var(--mono); font-weight: 700; padding: 10px 18px; border-radius: 4px; opacity: 0; transition: .25s; z-index: 45; pointer-events: none; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .top { grid-template-columns: 1fr; gap: 6px; }
  .nav { justify-content: flex-start; }
  .mentor-grid, .clock-wrap { grid-template-columns: 1fr; }
  .np-viz, .np-label, .np-vol span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .candles span, .np-disc { animation: none !important; }
  html { scroll-behavior: auto; }
}


/* ---------- minimal pass ---------- */
body { background-image: none; padding-bottom: 80px; }
h1, h2, h3, h4 { font-weight: 400; letter-spacing: -.01em; }
.gate { background-image: none; }
.gate-inner { gap: 28px; }
.gate-title { font-size: clamp(34px, 8vw, 96px); font-weight: 400; letter-spacing: .08em; }
.gate-title.small { font-weight: 400; }
.gate-rules { font-weight: 400; color: var(--faint); font-family: var(--mono); font-size: 14px; letter-spacing: .2em; text-transform: uppercase; }
.orb { width: 120px; height: 120px; border-radius: 50%; border: 1px solid var(--faint); position: relative; animation: orb 6s linear infinite; }
.orb::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--up); transform: scaleX(.35); }
.orb::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--faint); }
@keyframes orb { to { transform: rotate(360deg); } }
.btn { background: transparent; color: var(--ink); border: 1px solid var(--ink); border-radius: 0; text-transform: none; letter-spacing: .04em; font-weight: 400; padding: 12px 26px; }
.btn:hover { background: var(--ink); color: var(--bg); box-shadow: none; }
.btn-ghost { border-color: var(--faint); color: var(--faint); }
.btn-huge { font-size: 15px; padding: 14px 44px; }
.top { background: rgba(11,14,17,.7); border-bottom: 0; padding: 18px 28px; }
.logo { font-size: 16px; font-weight: 400; letter-spacing: .3em; color: var(--ink); }
.nav a { font-size: 12px; letter-spacing: .3em; color: var(--faint); padding: 6px 0; margin-left: 24px; border-radius: 0; }
.nav a:hover { background: none; color: var(--ink); }
main { max-width: 1040px; padding: 0 28px; }
.hero { padding: 18vh 0 10vh; gap: 28px; }
.hero-title { font-size: clamp(56px, 11vw, 150px); font-weight: 400; line-height: .95; }
.hero-title em { color: var(--up); }
.hero-sub { font-family: var(--mono); font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--faint); }
.section { padding: 14vh 0 8vh; border-top: 1px solid var(--grid); }
.section-head { margin-bottom: 48px; gap: 12px; }
.section-head h2 { font-size: clamp(36px, 6vw, 72px); }
.eyebrow { color: var(--faint); letter-spacing: .4em; }
.quote { color: var(--faint); font-size: 13px; letter-spacing: .08em; }
.panel { display: grid; gap: 18px; align-content: start; padding: 0; }
.panel.form { border-left: 1px solid var(--grid); padding-left: 32px; }
.big { font-family: var(--mono); font-size: clamp(22px, 3vw, 32px); color: var(--ink); }
.points { padding-left: 0; list-style: none; gap: 10px; font-family: var(--mono); font-size: 14px; color: var(--faint); }
.points li::before { content: '— '; color: var(--up); }
.field { font-weight: 400; font-family: var(--mono); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
input, textarea, select { background: transparent; border: 0; border-bottom: 1px solid var(--grid); border-radius: 0; padding: 8px 0; color: var(--ink); font-size: 15px; }
input:focus { border-bottom-color: var(--up); }
.done { border-left: 1px solid var(--up); padding-left: 32px; background: none; }
.done h4 { font-size: 22px; } .done p { color: var(--faint); font-size: 14px; }
.clock-wrap { grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; }
#face { background: none; border: 0; }
.readout { grid-template-columns: 1fr; gap: 12px; }
.readout b { font-size: 20px; font-weight: 400; }
.readout span { color: var(--faint); letter-spacing: .3em; }
.readout i { display: none; }
.hex { fill: none; stroke: var(--faint); stroke-width: 1; }
.lbl { fill: var(--faint); font-weight: 400; }
.seg { fill: #3a4452; font-weight: 400; font-size: 8px; }
.arc { stroke-width: 2.5; opacity: 1; }
.dot { stroke-width: 0; }
.sechand { stroke: #3a4452; stroke-width: 1; }
.space { min-height: 60vh; }
.foot { font-family: var(--mono); font-size: 11px; letter-spacing: .3em; padding: 10vh 0 20px; }
.np { background: rgba(11,14,17,.85); border-top: 1px solid var(--grid); padding: 12px 28px; gap: 18px; }
.np-disc { width: 10px; height: 10px; border: 0; background: var(--up); animation: pulse 1.2s ease-in-out infinite; }
.np-disc::after { display: none; }
@keyframes pulse { 50% { opacity: .3; } }
.np.paused .np-disc { animation: none; opacity: .3; }
.np-label { display: none; }
.np-title { font-weight: 400; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.np-viz { display: none; }
.np-btn { background: none; border: 0; color: var(--faint); font-weight: 400; letter-spacing: .2em; padding: 6px 0; }
.np-btn:hover { color: var(--ink); }
.np-vol { font-weight: 400; letter-spacing: .2em; font-size: 11px; color: var(--faint); text-transform: uppercase; }
.np-vol input { accent-color: var(--ink); width: 70px; }
.np-mute { opacity: .4; }
.drawer-inner { border-left: 1px solid var(--grid); }
.wl-row { background: none; border: 0; border-left: 1px solid var(--grid); border-radius: 0; padding: 6px 12px; }
.wl-row b { color: var(--ink); font-weight: 400; }
.toast { background: var(--ink); color: var(--bg); border-radius: 0; font-weight: 400; letter-spacing: .1em; }
@media (max-width: 760px) { .panel.form, .done { border-left: 0; padding-left: 0; border-top: 1px solid var(--grid); padding-top: 24px; } .np { padding: 12px 16px; } }

[hidden] { display: none !important; }


/* ---------- content left, sphere right ---------- */
.hero, .section-head, .mentor-grid, .clock-wrap, .space-note { max-width: 560px; }
.mentor-grid { grid-template-columns: 1fr; gap: 36px; }
.panel.form { border-left: 0; padding-left: 0; border-top: 1px solid var(--grid); padding-top: 28px; }
.done { border-left: 0; padding-left: 0; border-top: 1px solid var(--up); padding-top: 28px; }
.clock-wrap { grid-template-columns: 1fr; gap: 24px; }
.readout { grid-template-columns: repeat(7, auto); justify-content: start; gap: 10px 22px; }
.readout b { font-size: 16px; }
@media (max-width: 760px) { .readout { grid-template-columns: repeat(4, auto); } #bg { opacity: .35; } }

.count { display: grid; gap: 6px; margin-top: 8px; }
.count-num { font-family: var(--mono); font-size: clamp(28px, 5vw, 56px); font-variant-numeric: tabular-nums; letter-spacing: .04em; color: var(--ink); }
.nav-login { color: var(--up) !important; }
.pay { display: grid; gap: 10px; padding: 14px 0; border-top: 1px solid var(--grid); border-bottom: 1px solid var(--grid); }
.pay .field { margin: 0; }
.crypto { display: grid; gap: 6px; }
.crypto code { background: none; padding: 0; font-size: 13px; color: var(--ink); word-break: break-all; }

.section, .hero, #top { scroll-margin-top: 84px; }
.top { background: var(--bg); }
#face { margin-top: 8px; }

.now-line { font-family: var(--mono); font-size: clamp(16px, 2.4vw, 24px); color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: .04em; }

.nav a { letter-spacing: .18em; text-transform: uppercase; font-size: 11px; }
.nav-login { color: var(--up) !important; }
.modal { position: fixed; inset: 0; z-index: 46; background: rgba(11,14,17,.8); display: grid; place-items: center; padding: 20px; }
.modal-inner { width: min(460px, 100%); background: var(--bg); border: 1px solid var(--grid); padding: 28px; display: grid; gap: 14px; }
.modal-inner h3 { font-size: 24px; }

.hero { padding: 26vh 0 10vh; }
.count-num { font-size: clamp(40px, 8vw, 110px); line-height: 1; }
.count-eyebrow { color: var(--up); }

.hero-title.brand { font-size: clamp(40px, 9.5vw, 128px); letter-spacing: .06em; font-weight: 400; }
.hero { gap: 36px; padding: 20vh 0 10vh; }

.hero-title.brand { font-size: clamp(34px, 6vw, 84px); letter-spacing: .04em; }

.foot { padding: 14vh 0 24px; letter-spacing: 0; border-top: 1px solid var(--grid); display: grid; gap: 40px; }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 760px; }
.about p { font-family: var(--sans); font-size: 15px; color: var(--ink); letter-spacing: 0; }
.about .eyebrow { font-family: var(--mono); margin-bottom: 8px; }
.about-text { max-width: 44ch; }
.contact p { margin-bottom: 4px; white-space: pre-line; }
.contact a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--grid); }
.contact a:hover { border-bottom-color: var(--up); }
.foot-line { font-family: var(--mono); font-size: 11px; letter-spacing: .3em; color: var(--faint); }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

body { padding-bottom: 24px; }
.toast { bottom: 28px; }

/* ---------- type pass ---------- */
:root { --serif: 'Instrument Serif', 'Times New Roman', serif; --sans: 'Geist', 'Helvetica Neue', Arial, sans-serif; --mono: 'Geist Mono', 'JetBrains Mono', Menlo, monospace; }
body { font-family: var(--sans); font-weight: 300; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: 0; }
.hero-title.brand { font-family: var(--serif); font-size: clamp(56px, 9vw, 128px); letter-spacing: -.01em; line-height: 1; }
.section-head h2 { font-size: clamp(44px, 7vw, 88px); }
.logo { font-family: var(--serif); font-size: 22px; letter-spacing: 0; }
.nav a { font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: .14em; }
.eyebrow, .count-eyebrow { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: .3em; }
.quote { font-family: var(--serif); font-style: italic; font-size: 20px; letter-spacing: 0; color: var(--faint); }
.count-num { font-family: var(--mono); font-weight: 300; letter-spacing: 0; }
.now-line { font-family: var(--mono); font-weight: 300; letter-spacing: 0; }
.big { font-family: var(--serif); font-size: clamp(30px, 4vw, 44px); }
.points { font-family: var(--sans); font-weight: 300; font-size: 15px; }
.field { font-family: var(--sans); font-weight: 500; font-size: 11px; letter-spacing: .22em; }
input, textarea, select { font-family: var(--sans); font-weight: 300; font-size: 16px; }
.btn { font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: .08em; }
.tiny { font-family: var(--sans); font-weight: 300; }
.about p { font-weight: 300; }
.about .eyebrow { font-family: var(--sans); }
.foot-line, .linkish { font-family: var(--sans); font-weight: 400; letter-spacing: .2em; font-size: 11px; }
.crypto code { font-family: var(--mono); font-weight: 300; }
.modal-inner h3, .done h4 { font-size: 30px; }
.toast { font-family: var(--sans); font-weight: 500; letter-spacing: .08em; }
.drawer-head h2 { font-size: 30px; }

.count-eyebrow { display: inline-block; padding-bottom: 6px; border-bottom: 1px solid var(--up); }

/* stoic brand */
:root { --stoic: 'Cinzel', 'Trajan Pro', 'Times New Roman', serif; }
.hero-title.brand { font-family: var(--stoic); font-weight: 400; font-size: clamp(34px, 5.6vw, 76px); letter-spacing: .12em; text-transform: uppercase; }
.logo { font-family: var(--stoic); font-size: 15px; letter-spacing: .22em; text-transform: uppercase; }

.count-eyebrow { justify-self: start; width: auto; }
.hero-title.brand { font-size: clamp(32px, 5.2vw, 70px); letter-spacing: .1em; }

/* ---------- improvisation pass ---------- */
.count-num span { white-space: nowrap; display: inline-block; margin-right: .35em; }
.hero .row { gap: 18px; }
.reveal { opacity: 1; transform: none; }
.reveal:not(.in) { opacity: .001; transform: translateY(18px); }
.reveal.in { transition: opacity .8s ease, transform .8s ease; }
.space { min-height: 92vh; }
.contact p { margin-bottom: 6px; }
@media (max-width: 760px) {
  .top { padding: 14px 20px; gap: 10px; }
  .nav { gap: 0 16px; }
  .nav a { margin-left: 0; font-size: 10px; letter-spacing: .12em; }
  .hero { padding: 12vh 0 8vh; }
  .count-num { font-size: clamp(34px, 11vw, 56px); }
  #bg { opacity: .35; }
  .section { padding: 10vh 0 6vh; }
}

/* ---------- countdown, quiet ---------- */
.units { display: flex; gap: 28px; align-items: flex-end; flex-wrap: wrap; }
.unit { display: grid; gap: 4px; justify-items: start; }
.unit b { font-family: var(--mono); font-weight: 300; font-size: clamp(26px, 3vw, 38px); line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.unit span { font-family: var(--sans); font-weight: 500; font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--faint); }
.unit.sec { grid-template-columns: auto auto; align-items: end; column-gap: 10px; }
.unit.sec svg { grid-row: 1 / 3; align-self: center; }
.unit.sec b { grid-column: 2; } .unit.sec span { grid-column: 2; }
.window { width: min(100%, 420px); height: 1px; background: var(--grid); margin-top: 6px; }
.window i { display: block; height: 100%; background: var(--up); width: 0; transition: width 1s linear; }
.count { gap: 14px; }
@media (max-width: 760px) { .units { gap: 18px; } }

.btn.wide { width: 100%; justify-content: center; padding: 16px 20px; }

.about { grid-template-columns: 1fr; }
#biz-address { white-space: pre-line; color: var(--faint); }

/* ---------- header, inverted ---------- */
.top { background: #ffffff; border-bottom: 1px solid #e6e8eb; }
.top .logo { color: var(--up); }
.top .nav a { color: #4b5563; }
.top .nav a:hover { color: #0b0e11; }
.top .nav-login { color: var(--up) !important; }
.top .logo { color: #0b0e11; }
.top .nav-login { color: #0b0e11 !important; font-weight: 600; }

.modal-inner { border: 1px solid rgba(230,237,243,.55); }

.modal { background: var(--bg); }

.top .nav a { color: #6b7684; }
.top .nav-login { font-weight: 500; }

.gate { background: var(--bg); z-index: 60; }
.gate-title.brand { font-family: var(--stoic); text-transform: uppercase; letter-spacing: .14em; font-size: clamp(28px, 6vw, 72px); font-weight: 400; }
.gate-inner { gap: 34px; }
.gate .orb { width: 96px; height: 96px; }
.gate .orb::before { border-color: var(--graphite); }

.gate-sound { color: var(--faint); letter-spacing: .2em; text-transform: uppercase; font-size: 10px; }

/* ===== Paper, everywhere after the gate ===== */
:root { --bg: #f7f6f3; --panel: #ffffff; --grid: #e3e1dc; --faint: #6f7378; --ink: #0b0e11; --up: #b08d57; color-scheme: light; }
body { background: #f7f6f3; color: #0b0e11; }
.top { background: #f7f6f3; border-bottom: 1px solid #e3e1dc; }
.top .logo { color: #0b0e11; } .top .nav a { color: #6f7378; } .top .nav-login { color: #0b0e11 !important; }
.gate { background: #f7f6f3; } .gate-title.brand { color: #0b0e11; } .gate .orb { border-color: #9a9b9d; } .gate .orb::before { border-color: #b08d57; } .gate .orb::after { border-top-color: #9a9b9d; }
.btn { color: #0b0e11; border-color: #0b0e11; } .btn:hover { background: #0b0e11; color: #f7f6f3; }
.btn-ghost { color: #6f7378; border-color: #b9b7b1; }
input, textarea, select { color: #0b0e11; border-bottom-color: #c9c7c1; background: transparent; } input:focus { border-bottom-color: #b08d57; }
input::placeholder, textarea::placeholder { color: #9a9b9d; }
.unit b, .hero-title.brand, .section-head h2, .big, .modal-inner h3, .done h4 { color: #0b0e11; }
.count-eyebrow { color: #b08d57; border-bottom-color: #b08d57; }
.window { background: #e3e1dc; } .window i { background: #b08d57; }
#u-ring { stroke: #b08d57 !important; } .unit.sec svg circle:first-child { stroke: #e3e1dc !important; }
.points li::before { color: #b08d57; }
.modal { background: #f7f6f3; } .modal-inner { background: #ffffff; border-color: #e3e1dc; }
.drawer-inner { background: #ffffff; border-left-color: #b08d57; } .wl-row { border-left-color: #e3e1dc; }
.foot { border-top-color: #e3e1dc; } .section { border-top-color: #e3e1dc; }
.toast { background: #0b0e11; color: #f7f6f3; }
.crypto code { color: #0b0e11; }

/* ===== Obsidian gate ===== */
.gate { background: #0b0e11; }
.gate-title.brand { color: #e6e2d8; }
.gate .orb { border-color: #6b7684; } .gate .orb::before { border-color: #c9c2b2; } .gate .orb::after { border-top-color: #6b7684; }
.gate .btn { color: #e6edf3; border-color: #e6edf3; background: transparent; } .gate .btn:hover { background: #e6edf3; color: #0b0e11; }
.gate .gate-sound { color: #6b7684; }
.gate::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .07; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.gate-inner { position: relative; z-index: 1; }

/* ---------- panels in flow, not fixed: works inside tall frames ---------- */
.modal { position: static; inset: auto; min-height: 0; padding: 12vh 0 8vh; display: grid; justify-items: start; background: transparent; }
.modal-inner { width: min(460px, 100%); }
body.paneled .hero, body.paneled #trading, body.paneled .foot { display: none !important; }
body.paneled main { min-height: 80vh; }

.modal { padding: 56px 0 48px; }

/* ---------- payment as the third panel ---------- */
body.paneled #trading:not([hidden]) { display: grid !important; }
#trading.panel-pay { padding: 56px 0 48px; border-top: 0; }
#trading .mentor-grid { max-width: 460px; }
#trading .panel.form, #trading .done, #trading #join-external { background: #ffffff; border: 1px solid #e3e1dc; padding: 28px; border-top: 1px solid #e3e1dc; }
#trading .pay { border-top: 0; padding-top: 0; }

.cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 48; margin: 0 auto; max-width: 560px; background: #ffffff; color: #0b0e11; border: 1px solid #e3e1dc; padding: 16px 18px; display: grid; gap: 12px; }
.cookies .tiny { color: #0b0e11; }
.cookies .btn { padding: 9px 18px; font-size: 12px; }

/* login page */
.phone-row { display: grid; grid-template-columns: minmax(120px, 44%) 1fr; gap: 12px; }
#login-modal .or-line { text-align: left; margin: 10px 0 2px; }
#login-form .row, #login-done .row { margin-top: 14px; }
#login-modal .modal-inner > .row:last-child { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--grid); }
#recaptcha-box { min-height: 0; }
/* login: centred, plain background */
body.login-open #bg { display: none; }
#login-modal.modal { justify-items: center; min-height: calc(100vh - 160px); align-content: center; }
#login-modal .modal-inner { width: min(440px, 100%); }
