/* Lamp of Knowledge — navy-black & gold */
@font-face { font-family: "Cinzel"; src: url(fonts/cinzel-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url(fonts/cinzel-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url(fonts/cinzel-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(fonts/space-grotesk-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(fonts/space-grotesk-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(fonts/space-grotesk-latin-700-normal.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #050913; --bg2: #08101f; --panel: rgba(12, 19, 36, .78); --line: rgba(212, 175, 55, .16); --line2: rgba(212, 175, 55, .42);
  --ink: #ece6d6; --muted: #8e94a4; --gold: #d4af37; --gold2: #f2d27e; --gold3: #9c7a1f; --up: #3fcf8e; --down: #ef5a5a; --teal: #2fe3b0;
  --head: "Cinzel", "Times New Roman", serif; --body: "Space Grotesk", "Segoe UI", system-ui, sans-serif; --mono: "Plex Mono", ui-monospace, Consolas, monospace;
  --shadow: 0 30px 60px -40px rgba(212, 175, 55, .45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); color-scheme: dark; }
body { margin: 0; background: radial-gradient(1000px 600px at 80% 0%, rgba(212, 175, 55, .07), transparent 60%), var(--bg); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--gold2); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.sr, .skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--gold); color: #000; padding: 8px 12px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; letter-spacing: .06em; line-height: 1.2; margin: 0; }
.eyebrow { font: 500 12px var(--mono); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 0 0 10px; }

/* header */
.site-head { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px max(22px, env(safe-area-inset-left)); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-head.scrolled { background: rgba(5, 9, 19, .82); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-logo { filter: drop-shadow(0 0 10px rgba(242, 210, 126, .35)); }
.brand-name { font: 600 16px var(--head); letter-spacing: .2em; text-transform: uppercase; color: var(--gold2); }
.site-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; align-items: center; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font: 500 14px var(--body); opacity: .85; }
.site-nav a:hover { color: var(--gold2); opacity: 1; }
.site-nav .nav-cta { border: 1px solid var(--line2); color: var(--gold2); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line2); border-radius: 8px; width: 42px; height: 38px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--gold2); margin: 5px 0; transition: .3s; }
@media (max-width: 780px) {
  .brand-name { font-size: 13px; letter-spacing: .14em; white-space: nowrap; }
  .brand-logo { width: 32px; height: 32px; }
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 66px 12px auto; background: rgba(8, 14, 28, .97); border: 1px solid var(--line); border-radius: 14px; padding: 10px; display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
}

/* hero */
.hero { position: relative; min-height: max(660px, 100svh); display: grid; align-items: center; overflow: hidden; isolation: isolate; padding: 110px max(22px, 6vw) 90px; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 140px; background: linear-gradient(transparent, var(--bg)); z-index: -1; }
.hero-lamp { position: absolute; right: max(2vw, 10px); top: 13%; width: min(36vw, 460px); aspect-ratio: 1; z-index: 0; opacity: 0; transform: translateY(12px) scale(.96); animation: lampIn 1.4s 2.2s cubic-bezier(.2, .8, .2, 1) forwards; }
.hero-lamp img { width: 100%; filter: drop-shadow(0 0 30px rgba(242, 210, 126, .22)); }
.flame-glow { position: absolute; left: 82%; top: 30%; width: 44%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 120, .55), rgba(255, 180, 60, .18) 40%, transparent 70%); mix-blend-mode: screen; animation: flame 2.6s ease-in-out infinite; pointer-events: none; }
@keyframes lampIn { to { opacity: 1; transform: none; } }
@keyframes flame { 0%, 100% { opacity: .85; transform: translate(-50%, -50%) scale(1); } 30% { opacity: 1; transform: translate(-50%, -52%) scale(1.08); } 60% { opacity: .7; transform: translate(-50%, -49%) scale(.95); } 80% { opacity: .95; transform: translate(-50%, -51%) scale(1.04); } }
.hero-text { position: relative; z-index: 1; max-width: 640px; margin-top: -6vh; }
.hero-title { font-size: clamp(34px, 5.4vw, 72px); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold2); filter: drop-shadow(0 0 18px rgba(242, 210, 126, .25)); }
.hero-title .word { display: inline-block; white-space: nowrap; }
.hero-title .word span { background: linear-gradient(180deg, #f8e3a4, #d4af37 60%, #a8841f); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; opacity: 0; transform: translateY(18px); filter: blur(6px); animation: letter .8s calc(.9s + var(--i) * 45ms) cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes letter { to { opacity: 1; transform: none; filter: none; } }
.hero-rule { height: 1px; margin: 18px 0; background: linear-gradient(90deg, var(--gold), transparent); transform-origin: left; transform: scaleX(0); animation: rule 1.2s 1.8s ease forwards; }
.hero-rule.thin { opacity: .5; animation-delay: 2.6s; }
@keyframes rule { to { transform: scaleX(1); } }
.hero-tag1 { font: 500 clamp(17px, 2vw, 24px) var(--body); margin: 0; min-height: 1.6em; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--gold2); margin-left: 4px; vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-tag2 { font: 600 clamp(15px, 1.6vw, 19px) var(--mono); letter-spacing: .12em; color: var(--gold2); margin: 0; opacity: 0; animation: fade 1s 3.2s forwards; }
.hero-intro { color: var(--muted); max-width: 52ch; margin: 18px 0 0; opacity: 0; animation: fade 1s 3.5s forwards; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; opacity: 0; animation: fade 1s 3.8s forwards; }
@keyframes fade { to { opacity: 1; } }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; border: 1px solid var(--line2); border-radius: 14px; transform: translateX(-50%); }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold2); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 860px) {
  .hero { align-items: end; padding-top: 90px; }
  .hero-lamp { top: 84px; right: 50%; transform: translateX(50%); width: min(62vw, 320px); animation-name: lampInM; }
  @keyframes lampInM { from { opacity: 0; } to { opacity: 1; } }
  .hero-text { margin-top: min(62vw, 320px); }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px; text-decoration: none; font: 600 15px var(--body); color: #120d02; background: linear-gradient(180deg, #f5d98a, #d4af37); box-shadow: 0 10px 30px -12px rgba(212, 175, 55, .7); border: 1px solid transparent; transition: transform .2s, box-shadow .2s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(212, 175, 55, .85); }
.btn.ghost { background: transparent; color: var(--gold2); border-color: var(--line2); box-shadow: none; }
.btn.ghost:hover { background: rgba(212, 175, 55, .08); }

/* tape */
.tape { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg2); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tape-track { display: flex; width: max-content; animation: tape 36s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
@keyframes tape { to { transform: translateX(-50%); } }
.t-item { display: inline-flex; align-items: center; gap: 10px; padding: 12px 26px; white-space: nowrap; font: 500 14px var(--mono); border-right: 1px solid var(--line); }
.t-item b { font-weight: 500; font-size: 11px; letter-spacing: .14em; color: var(--muted); }
.t-item.note b { color: var(--gold3); }
.t-item .v { color: var(--ink); padding: 1px 5px; border-radius: 4px; transition: background .8s, color .8s; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.t-item.on .live-dot { background: var(--up); animation: ping 1.8s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(63, 207, 142, .6); } 100% { box-shadow: 0 0 0 8px transparent; } }
.flash-up { background: rgba(63, 207, 142, .22); color: var(--up) !important; } .flash-down { background: rgba(239, 90, 90, .22); color: var(--down) !important; }
.up { color: var(--up); } .down { color: var(--down); }

/* sections */
.section { max-width: 1200px; margin: 0 auto; padding: 100px max(22px, env(safe-area-inset-left)) 20px; }
.sec-head { margin-bottom: 34px; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 44px); color: var(--ink); }
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); backdrop-filter: blur(8px); transition: border-color .3s, box-shadow .3s; transform-style: preserve-3d; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(242, 210, 126, .12), transparent 45%); opacity: 0; transition: opacity .3s; }
.card:hover { border-color: var(--line2); }
.card:hover::before { opacity: 1; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cards3 { grid-template-columns: 1fr; } }
.card h3 { font-size: 20px; color: var(--gold2); margin: 14px 0 10px; }
.card p { color: var(--muted); margin: 0; }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--line2); color: var(--gold2); background: radial-gradient(circle at 30% 20%, rgba(242, 210, 126, .2), transparent 70%); }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; font-size: 14px; }
.ticks li::before { content: "◆"; color: var(--gold); font-size: 10px; margin-right: 10px; vertical-align: 1px; }
.tilt { will-change: transform; transition: transform .25s ease, border-color .3s; }

/* lab */
.lab-grid { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 20px; align-items: stretch; }
@media (max-width: 1000px) { .lab-grid { grid-template-columns: 1fr 1fr; } .calc { grid-column: 1 / -1; } }
@media (max-width: 640px) { .lab-grid { grid-template-columns: 1fr; } }
.lab-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.lab-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold2); border: 1px solid var(--line2); padding: 4px 10px; border-radius: 999px; }
.badge svg { width: 14px; height: 14px; }
.badge.open { color: var(--up); border-color: rgba(63, 207, 142, .45); }
.host { font-size: 11px; color: var(--muted); }
.mini-radar { width: 100%; aspect-ratio: 16 / 9; margin: 16px 0 0; border-radius: 12px; background: #060b17; border: 1px solid var(--line); }
.mini-desk { display: flex; align-items: flex-end; gap: 8px; height: 0; padding-top: 56.25%; position: relative; margin: 16px 0 0; border-radius: 12px; background: #060b17; border: 1px solid var(--line); overflow: hidden; }
.mini-desk i { position: absolute; bottom: 14%; width: 7%; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--gold2), rgba(212, 175, 55, .15)); transform-origin: bottom; animation: grow 2.4s ease-in-out infinite alternate; }
.mini-desk i:nth-child(1) { left: 8%; } .mini-desk i:nth-child(2) { left: 19%; animation-delay: .2s; } .mini-desk i:nth-child(3) { left: 30%; animation-delay: .4s; } .mini-desk i:nth-child(4) { left: 41%; animation-delay: .6s; }
.mini-desk i:nth-child(5) { left: 52%; animation-delay: .8s; } .mini-desk i:nth-child(6) { left: 63%; animation-delay: 1s; } .mini-desk i:nth-child(7) { left: 74%; animation-delay: 1.2s; } .mini-desk i:nth-child(8) { left: 85%; animation-delay: 1.4s; }
@keyframes grow { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
.lab-go { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 8px; color: var(--gold2); font-weight: 600; }
.lab-go svg { width: 18px; transition: transform .2s; } .lab-card:hover .lab-go svg { transform: translateX(4px); }

/* calculator */
.calc h3 { margin-top: 14px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; margin: 4px 0 14px; }
.seg button { border: 0; background: none; color: var(--muted); padding: 6px 14px; border-radius: 999px; cursor: pointer; font: 600 12px var(--mono); letter-spacing: .1em; }
.seg button.on { background: var(--gold); color: #120d02; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-grid label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.calc-grid .wide { grid-column: 1 / -1; }
.calc-grid input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(5, 9, 19, .8); color: var(--ink); font: 500 15px var(--mono); }
.calc-grid input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .18); }
.calc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.calc-out div { border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; display: grid; background: rgba(212, 175, 55, .05); }
.calc-out span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.calc-out strong { font-size: 22px; color: var(--gold2); }
.hint { font-size: 12px; color: var(--muted); margin: 12px 0 0 !important; }

/* journey */
.timeline { list-style: none; margin: 0; padding: 0 0 0 28px; position: relative; display: grid; gap: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--gold), rgba(212, 175, 55, .1)); }
.timeline li { position: relative; display: grid; grid-template-columns: 90px 1fr; gap: 18px; align-items: start; }
.timeline li::before { content: ""; position: absolute; left: -27px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold2); box-shadow: 0 0 14px rgba(242, 210, 126, .6); }
.t-year { font-size: 22px; color: var(--gold2); font-weight: 500; }
.t-card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.t-card h3 { font-size: 18px; color: var(--ink); }
.t-card p { margin: 6px 0 0; color: var(--muted); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 6px; } }

/* notes */
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .notes-grid { grid-template-columns: 1fr; } }
.note-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.note-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.note-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.note-body { padding: 20px; }
.note-body h3 { font-size: 18px; color: var(--gold2); margin: 4px 0 8px; }
.note-body p { color: var(--muted); margin: 0; font-size: 15px; }
.note-meta { font-size: 12px; color: var(--muted); margin: 0; }
.note-more { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; color: var(--gold2); font-weight: 600; }
.note-more svg { width: 16px; }

/* follow */
.follow { padding-bottom: 100px; }
.follow-card { text-align: center; padding: 60px 24px; border-radius: 24px; border: 1px solid var(--line2); background: radial-gradient(600px 300px at 50% 0%, rgba(212, 175, 55, .14), transparent 70%), var(--panel); }
.follow-lamp { filter: drop-shadow(0 0 20px rgba(242, 210, 126, .4)); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.follow-card h2 { font-size: clamp(26px, 3vw, 38px); color: var(--gold2); margin-top: 10px; }
.follow-card p { color: var(--muted); }
.follow-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); background: #04070f; }
.foot-in { max-width: 1200px; margin: 0 auto; padding: 34px 22px; display: grid; gap: 12px; }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-brand strong { display: block; font: 600 15px var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--gold2); }
.foot-brand span { font-size: 13px; color: var(--muted); }
.disclaimer, .copy { font-size: 13px; color: var(--muted); margin: 0; }

/* inner pages */
.page-wrap { max-width: 860px; margin: 0 auto; padding: 130px 22px 80px; }
.page-wrap.center { text-align: center; }
.page-head { margin-bottom: 30px; }
.page-head h1 { font-size: clamp(30px, 4vw, 46px); color: var(--gold2); }
.entry-content { font-size: 17px; line-height: 1.75; }
.entry-content h2, .entry-content h3 { color: var(--gold2); margin: 1.6em 0 .6em; }
.entry-content a { color: var(--gold2); }
.entry-content img { border-radius: 12px; }
.entry-content blockquote { border-left: 3px solid var(--gold); margin: 1.4em 0; padding: .2em 1em; color: var(--muted); }
.entry-content pre, .entry-content code { font-family: var(--mono); background: var(--bg2); border-radius: 6px; }
.entry-content pre { padding: 14px; overflow-x: auto; }
.entry-img img { border-radius: 16px; }
.entry-note { color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 40px; }
.entry-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.page-wrap .notes-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .page-wrap .notes-grid { grid-template-columns: 1fr; } }
.pager { margin-top: 30px; } .pager .page-numbers { padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; margin-right: 4px; }
.lost-lamp { filter: drop-shadow(0 0 24px rgba(242, 210, 126, .4)); }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .reveal, .hero-title span, .hero-lamp, .hero-tag2, .hero-intro, .hero-cta { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero-rule { transform: none; }
}

/* ---------- 3D ring (live markets + what I build) ---------- */
.ring-wrap { --cw: 150px; --ch: 196px; --tz: 230px; position: relative; z-index: 1; justify-self: center; width: min(100%, calc(var(--tz) * 2 + var(--cw) + 40px)); margin-top: 46px; opacity: 0; animation: fade 1.2s 4s forwards; }
.ring-cap { text-align: center; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; display: flex; gap: 8px; align-items: center; justify-content: center; }
.ring-cap .live-dot { background: var(--up); animation: ping 1.8s infinite; }
.ring-stage { height: calc(var(--ch) + 110px); perspective: 1100px; display: grid; place-items: center; }
.ring-tilt { transform-style: preserve-3d; transform: rotateX(-9deg); }
.ring { position: relative; width: var(--cw); height: var(--ch); transform-style: preserve-3d; animation: ringspin 28s linear infinite; }
.ring-wrap:hover .ring, .ring-wrap:focus-within .ring { animation-play-state: paused; }
@keyframes ringspin { from { transform: rotateY(0deg); } to { transform: rotateY(-360deg); } }
.ring-card { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(calc(var(--i) * 72deg)) translateZ(var(--tz)); text-decoration: none; color: var(--ink); }
.ring-card .face { position: absolute; inset: 0; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px 12px; text-align: center;
  background: linear-gradient(160deg, rgba(242, 210, 126, .16), rgba(12, 19, 36, .88) 42%, rgba(5, 9, 19, .94)); border: 1px solid var(--line2);
  box-shadow: 0 0 0 1px rgba(242, 210, 126, .05) inset, 0 24px 50px -24px rgba(212, 175, 55, .55), 0 0 36px -12px rgba(242, 210, 126, .35); backdrop-filter: blur(6px); transition: border-color .3s, box-shadow .3s; }
.ring-card:hover .face.front, .ring-card:focus-visible .face.front { border-color: var(--gold2); box-shadow: 0 0 0 1px rgba(242, 210, 126, .25) inset, 0 0 46px -6px rgba(242, 210, 126, .55); }
.ring-card .face.back { transform: rotateY(180deg); background: radial-gradient(circle at 50% 40%, rgba(242, 210, 126, .14), rgba(5, 9, 19, .92) 70%); }
.ring-card .face.back img { opacity: .55; filter: drop-shadow(0 0 12px rgba(242, 210, 126, .4)); }
.rc-badge { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font: 700 20px var(--head); color: #120d02; background: radial-gradient(circle at 35% 30%, #fbe7a8, #d4af37 55%, #8f6c17); box-shadow: 0 0 22px rgba(242, 210, 126, .45); }
.rc-badge svg { width: 26px; height: 26px; color: #120d02; }
.rc-name { font: 600 15px var(--head); letter-spacing: .12em; color: var(--gold2); }
.rc-price { font-size: 18px; font-weight: 500; padding: 1px 6px; border-radius: 6px; transition: background .8s, color .8s; }
.rc-chg { font-size: 12px; min-height: 1.2em; }
.rc-sub { font-size: 10.5px; color: var(--muted); letter-spacing: .04em; line-height: 1.45; }

/* very wide, tall screens: the ring lives in the hero, under the lamp; everywhere else it is a band below the hero */
.ring-wrap.in-hero { display: none; }
.ring-wrap.in-band { margin: 14px auto 0; padding-bottom: 34px; }
@media (min-width: 2000px) and (min-height: 940px) {
  .ring-wrap.in-hero { display: block; position: absolute; margin: 0; --cw: 170px; --ch: 220px; --tz: 265px; right: max(2vw, 10px); top: calc(13% + min(36vw, 460px) + 6px); width: calc(var(--tz) * 2 + var(--cw) + 40px); }
  .ring-wrap.in-band { display: none; }
}
@media (max-width: 860px) { .ring-wrap { --cw: 118px; --ch: 158px; --tz: 170px; margin-top: 34px; } .rc-badge { width: 42px; height: 42px; font-size: 16px; } .rc-price { font-size: 15px; } .rc-sub { font-size: 9.5px; } }
@media (max-width: 420px) { .ring-wrap { --cw: 104px; --ch: 146px; --tz: 140px; } }
@media (prefers-reduced-motion: reduce) { .ring { animation: none; } .ring-wrap { opacity: 1; } }

/* ---------- TradingView: hero chart + ticker strip ---------- */
.hero-tv { position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: 0; animation: tvIn 1.6s .4s ease forwards;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.32) 38%, #000 70%), linear-gradient(180deg, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.32) 38%, #000 70%), linear-gradient(180deg, #000 80%, transparent 100%); mask-composite: intersect; }
.hero-tv .tradingview-widget-container, .hero-tv .tradingview-widget-container__widget, .hero-tv iframe { width: 100% !important; height: 100% !important; }
@keyframes tvIn { to { opacity: .6; } }
.tv-credit { position: absolute; right: 14px; bottom: 12px; z-index: 2; font-size: 10px; letter-spacing: .06em; color: rgba(142, 148, 164, .7); text-decoration: none; }
.tv-credit:hover { color: var(--gold2); }
.tape-tv { mask-image: none; padding: 2px 0; min-height: 46px; }
.tape-tv .tradingview-widget-container { width: 100%; }
@media (max-width: 860px) {
  .hero-tv { bottom: auto; height: 50%; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
}
@media (prefers-reduced-motion: reduce) { .hero-tv { opacity: .6; } }

/* ---------- Lab showcase panels ---------- */
html.dlg-open { overflow: hidden; }
dialog.showcase { width: min(1080px, 94vw); max-height: 92vh; padding: 0; border: 1px solid var(--line2); border-radius: 22px; color: var(--ink); overflow: auto;
  background: radial-gradient(700px 320px at 20% 0%, rgba(212, 175, 55, .12), transparent 70%), #070c18; box-shadow: 0 40px 120px -30px rgba(212, 175, 55, .45); }
dialog.showcase[open] { animation: dlgIn .45s cubic-bezier(.2, .8, .2, 1); }
dialog.showcase::backdrop { background: rgba(2, 4, 10, .72); backdrop-filter: blur(6px); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.sc-close { position: absolute; top: 12px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(5, 9, 19, .8); color: var(--gold2); font-size: 22px; line-height: 1; cursor: pointer; }
.sc-close:hover { background: rgba(212, 175, 55, .15); }
.sc-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; }
.sc-preview { background: #050913; border-right: 1px solid var(--line); min-height: 420px; position: relative; }
.sc-preview canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sc-info { padding: 34px 30px 28px; display: flex; flex-direction: column; gap: 10px; }
.sc-info h2 { font-size: clamp(28px, 3vw, 38px); color: var(--gold2); margin-top: 6px; }
.sc-lead { color: var(--muted); margin: 0; }
.sc-info .ticks { margin-top: 6px; }
.sc-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.sc-info .badge { align-self: flex-start; }
@media (max-width: 820px) { .sc-grid { grid-template-columns: 1fr; } .sc-preview { min-height: 300px; border-right: 0; border-bottom: 1px solid var(--line); } .sc-info { padding: 24px 20px; } }

/* ---------- waitlist ---------- */
.waitlist { padding-top: 90px; }
.wl-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 34px; align-items: center; padding: 40px; border-radius: 24px; border: 1px solid var(--line2);
  background: radial-gradient(500px 260px at 90% 0%, rgba(212, 175, 55, .14), transparent 70%), var(--panel); box-shadow: var(--shadow); }
.wl-text h2 { font-size: clamp(28px, 3.2vw, 40px); color: var(--gold2); margin-bottom: 10px; }
.wl-text p { color: var(--muted); margin: 0; }
.wl-form { display: grid; gap: 12px; }
.wl-form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.wl-form input, .wl-form select { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(5, 9, 19, .85); color: var(--ink); font: 500 16px var(--body); }
.wl-form input:focus, .wl-form select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .18); }
.wl-form .btn { justify-content: center; }
.wl-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-msg { min-height: 1.4em; margin: 0; font-size: 14px; color: var(--muted); }
.wl-msg.ok { color: var(--up); } .wl-msg.err { color: var(--down); }
.wl-form.done .btn { opacity: .55; pointer-events: none; }
@media (max-width: 820px) { .wl-card { grid-template-columns: 1fr; padding: 26px 20px; } }

.safety-note { display: inline-flex; gap: 10px; align-items: center; max-width: 620px; margin: 26px auto 0; padding: 10px 16px; border: 1px solid var(--line2); border-radius: 12px; font-size: 13.5px; color: var(--muted); text-align: left; background: rgba(5, 9, 19, .5); }
.safety-note svg { flex: none; width: 18px; height: 18px; color: var(--gold2); }
.disclaimer.safety { color: var(--gold2); opacity: .85; }

.side { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.side button { border: 1px solid var(--line); background: rgba(5, 9, 19, .6); color: var(--muted); padding: 9px 0; border-radius: 10px; cursor: pointer; font: 700 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; transition: .2s; }
.side .buy.on { background: rgba(38, 166, 91, .16); border-color: #26a65b; color: #5fe39a; }
.side .sell.on { background: rgba(229, 72, 77, .16); border-color: #e5484d; color: #ff8a8d; }
.calc-grid select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(5, 9, 19, .8); color: var(--ink); font: 500 15px var(--mono); }
.calc-rr { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--line2); border-radius: 12px; font-size: 13px; color: var(--muted); }
.calc-rr b { color: var(--gold2); font-size: 15px; margin-left: 6px; }
.calc-rr b.low { color: #ff8a8d; }
.calc-warn { margin: 10px 0 0 !important; padding: 8px 12px; border-radius: 10px; background: rgba(229, 72, 77, .12); border: 1px solid rgba(229, 72, 77, .5); color: #ff9a9d; font-size: 12.5px; }
[hidden] { display: none !important; }

.mkt { display: grid; gap: 4px; font-size: 12px; color: var(--muted); margin: 6px 0 12px; }
.mkt select, .calc-grid select { width: 100%; padding: 10px 38px 10px 12px; border-radius: 10px; border: 1px solid var(--line2); color: var(--gold2); font: 600 15px var(--mono); cursor: pointer; appearance: none; -webkit-appearance: none;
  background: rgba(5, 9, 19, .8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23e8c66a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.mkt select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 175, 55, .18); }
.mkt option, .mkt optgroup { background: #0b1220; color: var(--ink); }
.calc-grid .opt { font-style: normal; opacity: .65; font-size: 11px; }

/* The site runs in dark color-scheme; browsers paint an opaque white backdrop behind a
   transparent iframe whose document uses a different scheme. Matching it keeps TradingView see-through. */
.tradingview-widget-container iframe { color-scheme: light; background: transparent !important; }
