/* Qorlith landing page. Dark-locked: the page is a window onto the WebGL scene behind it.
   Shape rule: interactive controls are pills (999px), surfaces are 18px, screenshots are 14px, chips are pills.
   Colour rule: mint is the one accent (actions, Qorlith, live data); indigo only marks guardians and finality. */
:root {
  --void: #05070d;
  --deep: #0a0f1a;
  --glass: rgba(12, 17, 29, .64);
  --glass-hi: rgba(18, 25, 41, .78);
  --line: rgba(160, 180, 220, .14);
  --line-2: rgba(160, 180, 220, .24);
  --text: #e9eef8;
  --muted: #a3aec6;
  --dim: #7c88a2;
  --mint: #5cf2c8;
  --mint-ink: #04201a;
  --indigo: #8f9dff;
  --r: 18px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --sans: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: Unbounded, var(--sans);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--void); color: var(--text);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
code { font-family: var(--mono); font-size: .9em; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 40; background: var(--mint); color: var(--mint-ink); padding: 8px 14px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { left: 12px; }

/* 3D canvas sits behind everything */
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; z-index: 0; opacity: 0; transition: opacity 1.2s var(--ease-out); }
.webgl-ready #scene { opacity: 1; }
.no-webgl #scene { display: none; }
.no-webgl body {
  background:
    radial-gradient(520px 520px at 74% 34%, rgba(92, 242, 200, .16), transparent 70%),
    radial-gradient(700px 500px at 90% 10%, rgba(122, 140, 255, .14), transparent 70%), var(--void);
  background-attachment: fixed;
}
main, .bar, .foot { position: relative; z-index: 1; }

/* ---------- header ---------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; }
.bar::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(5, 7, 13, .82), rgba(5, 7, 13, .5)); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line); z-index: -1; }
.bar-row { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 600 17px/1 var(--display); letter-spacing: -.01em; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 14.5px; padding: 8px 11px; border-radius: 999px; transition: color .2s ease, background-color .2s ease; }
.nav a[aria-current="true"] { color: var(--text); }
@media (hover: hover) and (pointer: fine) { .nav a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, .05); } }
.nav-sep { width: 1px; height: 18px; background: var(--line-2); margin: 0 8px; }
.nav .btn { margin-left: 10px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; cursor: pointer; padding: 0; place-content: center; gap: 6px; }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--text); margin: 0 auto; transition: transform .25s var(--ease-out); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  height: 44px; padding: 0 20px; border-radius: 999px; text-decoration: none; font: 500 15px/1 var(--sans);
  color: var(--text); background: rgba(10, 14, 24, .55); border: 1px solid var(--line-2);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .16s var(--ease-out), background-color .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn-primary { background: var(--mint); color: var(--mint-ink); border-color: transparent; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 26px -14px rgba(0, 0, 0, .9); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: rgba(255, 255, 255, .08); border-color: rgba(200, 215, 245, .36); }
  .btn-primary:hover { background: #7af6d4; border-color: transparent; }
}

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding-top: 64px; }
.hero-grid { display: flex; align-items: center; padding-block: clamp(28px, 6vh, 88px); }
.hero-copy { max-width: 640px; }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); padding: 6px 14px 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(10, 15, 26, .55); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(92, 242, 200, .14); flex: none; }
.status-blk { font: 500 13px/1 var(--mono); color: var(--text); padding-left: 10px; border-left: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.status-blk:empty { display: none; }
@media (prefers-reduced-motion: no-preference) { .status i { animation: live 2.4s ease-in-out infinite; } }
@keyframes live { 50% { box-shadow: 0 0 0 7px rgba(92, 242, 200, 0); } }
h1 { margin-top: 26px; font-size: clamp(2.2rem, 4.6vw, 4.6rem); line-height: 1; letter-spacing: -.05em; font-weight: 500; }
h1 span { display: block; white-space: nowrap; }
.nw { white-space: nowrap; }
.lead { margin-top: 24px; font-size: clamp(1.06rem, 1.4vw, 1.22rem); color: var(--muted); max-width: 44ch; }
.hero .btn-row { margin-top: 34px; }

/* one orchestrated entrance, timed with the crystal turning into place */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .live { animation: rise .9s var(--ease-out) backwards; }
  /* the headline and lead are the LCP candidates: they move into place but are never invisible */
  .hero-copy > h1, .hero-copy > .lead { animation-name: settle; }
  .hero-copy > :nth-child(1) { animation-delay: .1s; }
  .hero-copy > :nth-child(2) { animation-delay: .18s; }
  .hero-copy > :nth-child(3) { animation-delay: .28s; }
  .hero-copy > :nth-child(4) { animation-delay: .36s; }
  .live { animation-delay: .55s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
@keyframes settle { from { transform: translateY(14px); } }

.live { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 0 28px; border-top: 1px solid var(--line); }
.live > div { padding: 18px 20px 4px 0; }
.live dt, .mine-stats dt, .specs dt, .supply-live dt { font-size: 13px; color: var(--dim); }
.live dd { margin: 6px 0 0; font: 500 clamp(15px, 1.5vw, 19px)/1.2 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; min-height: 1.2em; }
.live dd:empty, [data-k]:empty { background: rgba(255, 255, 255, .06); border-radius: 6px; width: 6em; }
.live.offline dd[data-k="height"] { color: #ffb37a; }
@media (prefers-reduced-motion: no-preference) { .tick { animation: tick .6s var(--ease-out); } }
@keyframes tick { from { color: var(--mint); } }

/* ---------- 3D chapters ---------- */
.chapter { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-block: 96px; }
.chapter-grid { display: grid; grid-template-columns: 1fr 1fr; }
.ch-right .chapter-copy { grid-column: 2; }
.chapter-copy { max-width: 540px; }
.ch-left .chapter-copy { max-width: 580px; }
.chapter-copy.wide { max-width: 660px; }
.chapter h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.06; letter-spacing: -.035em; }
.chapter-copy > p:not(.big-num):not(.note) { margin-top: 20px; color: var(--muted); font-size: 1.075rem; max-width: 52ch; }
.chapter-copy > p + p:not(.note) { margin-top: 12px; }
/* the chain and coins pass behind the copy while scrolling: a soft dark halo keeps every word legible */
.chapter-copy p, .chapter-copy .legend, .chapter h2, .feats, .split { text-shadow: 0 1px 16px var(--void), 0 0 4px var(--void); }

.specs, .mine-stats, .supply-live { display: grid; margin: 32px 0 0; }
.specs { grid-template-columns: repeat(4, auto); justify-content: start; gap: 18px 32px; }
.specs dd, .mine-stats dd, .supply-live dd { margin: 4px 0 0; font: 500 1.3rem/1.2 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* protocol features: one list, scanned top to bottom, method names as the proof */
.proto h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.feats { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 4px; counter-reset: f; }
.feats li { display: grid; grid-template-columns: 1fr auto; gap: 2px 18px; padding: 15px 0; border-top: 1px solid var(--line); }
.feats li:last-child { border-bottom: 1px solid var(--line); }
.feats h3 { font-size: 1.07rem; letter-spacing: -.01em; line-height: 1.35; }
.feats p { grid-column: 1; color: var(--muted); font-size: 15px; line-height: 1.55; }
.feats code { grid-column: 2; grid-row: 1; align-self: start; font-size: 12.5px; color: var(--mint); padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(92, 242, 200, .25); background: rgba(92, 242, 200, .06); white-space: nowrap; }

.ch-top { align-items: flex-start; padding-top: 132px; }
.ch-top .wrap { display: grid; grid-template-rows: auto 1fr auto; min-height: calc(100svh - 132px - 72px); }
.mine-stats { grid-row: 3; grid-template-columns: repeat(4, auto); justify-content: end; gap: 48px; text-align: right; }
.mine-stats dd { min-width: 4.5em; }

.legend { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 14px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 10px; }
.sw { width: 14px; height: 14px; border-radius: 4px; flex: none; border: 1.5px solid; display: inline-block; }
.sw-pending { border-color: var(--mint); background: rgba(92, 242, 200, .35); box-shadow: 0 0 12px rgba(92, 242, 200, .5); }
.sw-final { border-color: rgba(92, 242, 200, .55); background: rgba(92, 242, 200, .1); }
.sw-check { border-color: var(--indigo); background: rgba(122, 140, 255, .3); box-shadow: 0 0 12px rgba(122, 140, 255, .55); }

.big-num { font: 600 clamp(2.3rem, 4.6vw, 4.3rem)/1 var(--display); letter-spacing: -.05em; margin-bottom: 18px; color: #dffcf3; font-variant-numeric: tabular-nums; }
#tokenomics h2 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -.025em; }
.split { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 22px; }
.split li { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; }
.split .sw { margin-top: 5px; }
.split b { display: block; font: 500 1.05rem/1.3 var(--mono); letter-spacing: -.02em; }
.split span { display: block; font-size: 14.5px; color: var(--muted); margin-top: 4px; }
.split em { font: 500 1.05rem/1.3 var(--mono); font-style: normal; color: var(--text); }
.supply-live { grid-template-columns: auto auto; justify-content: start; gap: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.supply-live dd { font-size: 1.1rem; }
.note { margin-top: 22px; font-size: 14px; color: var(--dim); max-width: 48ch; }

/* ---------- content blocks ---------- */
.block { padding-block: clamp(80px, 12vh, 140px); }
.block-h { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.06; letter-spacing: -.035em; max-width: 22ch; margin-bottom: 44px; }
.tbl, .code-card, .road-now, .road-next {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r);
  backdrop-filter: blur(18px) saturate(130%); -webkit-backdrop-filter: blur(18px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
@media (prefers-reduced-transparency: reduce) { .tbl, .code-card, .road-now, .road-next, .bar::before { background: var(--deep); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.fine { margin-top: 18px; font-size: 14px; color: var(--dim); max-width: 74ch; }

/* comparison */
.tbl { overflow-x: auto; overscroll-behavior-x: contain; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; min-width: 820px; }
th, td { text-align: left; padding: 15px 20px; vertical-align: top; }
thead th { font-weight: 500; color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--line); }
tbody th { font-weight: 400; color: var(--muted); width: 24%; }
tbody tr + tr > * { border-top: 1px solid rgba(160, 180, 220, .07); }
td.q, th.q { background: rgba(92, 242, 200, .075); color: var(--text); }
thead th.q { color: var(--mint); font-weight: 600; font-size: 15px; }
td.q { font-weight: 500; }
td.no { color: var(--dim); }

/* product stories */
.prod { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.prod + .prod { margin-top: clamp(96px, 14vh, 160px); }
.prod-copy h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: -.03em; line-height: 1.1; }
.prod-copy > p { margin-top: 16px; color: var(--muted); font-size: 1.06rem; max-width: 46ch; }
.prod-copy .btn-row { margin-top: 28px; }
.chips { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 13.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(10, 14, 24, .55); color: var(--text); }

.shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: var(--deep); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .06); }
.shot img { width: 100%; }
.stack { position: relative; padding-bottom: 12%; }
.shot-float { position: absolute; width: 38%; left: -7%; bottom: 0; border-radius: 16px; border-color: rgba(160, 180, 220, .32); box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .95), 0 0 0 1px rgba(0, 0, 0, .6); }
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .shot-float { animation: float-in linear both; animation-timeline: view(); animation-range: entry 10% cover 45%; }
    @keyframes float-in { from { transform: translateY(48px); } }
  }
}

.prod-markets { grid-template-columns: 1fr; gap: 28px; }
.prod-markets .prod-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 40px; }
.prod-markets .prod-copy > p { grid-column: 1; }
.prod-markets .text-link { grid-column: 2; grid-row: 1 / span 2; align-self: end; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 8px 0 0; }
.facts div { padding-top: 16px; border-top: 1px solid var(--line-2); }
.facts dt { font-weight: 500; font-size: 1.02rem; }
.facts dd { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.text-link { color: var(--mint); text-decoration: none; font-weight: 500; font-size: 15.5px; padding-block: 4px; white-space: nowrap; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .text-link:hover { background-size: 100% 1px; } }

.prod-social { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.ticks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 26px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .42em; width: 10px; height: 6px; border-left: 1.5px solid var(--mint); border-bottom: 1.5px solid var(--mint); transform: rotate(-45deg); }
.ticks b { color: var(--text); font-weight: 500; }

/* builders */
.b-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.code-card { padding: 8px; overflow: hidden; }
.tabs { display: flex; gap: 4px; padding: 4px; }
.tabs button { font: 500 14px/1 var(--sans); color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 999px; height: 36px; padding: 0 16px; cursor: pointer; transition: color .2s ease, background-color .2s ease, border-color .2s ease; }
.tabs button[aria-selected="true"] { color: var(--text); background: rgba(255, 255, 255, .07); border-color: var(--line-2); }
@media (hover: hover) and (pointer: fine) { .tabs button:hover { color: var(--text); } }
.code { margin: 6px 0 0; padding: 20px 22px; border-radius: 12px; background: rgba(3, 5, 10, .78); border: 1px solid var(--line); overflow-x: auto; font: 13.5px/1.75 var(--mono); color: #c9d4ea; min-height: 17.2em; tab-size: 2; }
.code .k { color: var(--mint); } .code .s { color: #f4c38e; } .code .c { color: var(--dim); }
.tools { display: grid; gap: 22px; }
.tools h3 { font-size: 1.07rem; letter-spacing: -.01em; }
.tools p { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.tools code { color: var(--text); }
.tools .btn-row { margin-top: 6px; }
.pair-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: clamp(56px, 8vh, 88px); }
.shot-link { text-decoration: none; display: grid; gap: 16px; border-radius: 16px; }
.shot-link span { color: var(--muted); font-size: 15px; max-width: 52ch; }
.shot-link b { color: var(--text); font-weight: 500; margin-right: 6px; }
.shot-link .shot { transition: border-color .25s ease, transform .35s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .shot-link:hover .shot { border-color: rgba(92, 242, 200, .45); transform: translateY(-3px); } }

/* live totals */
.totals { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line-2); }
.totals div { padding: 22px 20px 26px 0; border-bottom: 1px solid var(--line); }
.totals dt { font-size: 14px; color: var(--muted); }
.totals dd { margin: 8px 0 0; font: 500 clamp(1.8rem, 3.2vw, 2.7rem)/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; min-height: 1em; }

/* roadmap */
.road { display: grid; grid-template-columns: 7fr 5fr; gap: 16px; }
.road-now, .road-next { padding: clamp(24px, 3vw, 36px); }
.road h3 { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; letter-spacing: -.02em; }
.road dl { margin: 22px 0 0; display: grid; gap: 18px; }
.road dt { font: 500 13px/1 var(--mono); color: var(--mint); }
.road dd { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.road ol { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.road ol li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 0 10px; font-size: 15px; }
.road ol li::before { content: counter(s); grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(143, 157, 255, .45); color: var(--indigo); font: 500 12px/22px var(--mono); text-align: center; }
.road ol b { font-weight: 500; }
.road ol span { color: var(--muted); }

.final { padding-block: clamp(100px, 16vh, 180px); }
.final-in { display: grid; justify-items: start; gap: 22px; }
.final h2 { font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.02; letter-spacing: -.045em; max-width: 15ch; }
.final p { color: var(--muted); font-size: 1.1rem; max-width: 52ch; }
.final .btn-row { margin-top: 10px; }

.foot { border-top: 1px solid var(--line); background: rgba(5, 7, 13, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.foot-row { display: flex; justify-content: space-between; gap: 32px; padding-block: 34px 40px; font-size: 14px; }
.foot strong { font-family: var(--display); font-weight: 500; font-size: 15px; }
.foot p { margin-top: 8px; color: var(--dim); max-width: 52ch; }
.foot nav { display: flex; flex-wrap: wrap; align-content: flex-start; justify-content: flex-end; gap: 6px 20px; color: var(--muted); max-width: 620px; }
.foot nav a { color: var(--muted); text-decoration: none; padding-block: 4px; }
.foot nav a:hover { color: var(--text); }
.foot nav span { width: 100%; text-align: right; color: var(--dim); }

/* scroll-driven reveals: decorative, progressive enhancement only. Finished once the element is fully in view. */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }
    @keyframes reveal { from { opacity: 0; transform: translateY(32px); } }
  }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .menu-btn { display: grid; }
  .nav {
    position: fixed; inset: 64px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 20px;
    background: rgba(7, 10, 18, .97); border-bottom: 1px solid var(--line); max-height: calc(100svh - 64px); overflow-y: auto;
    opacity: 0; transform: translateY(-8px); pointer-events: none; visibility: hidden;
    transition: opacity .2s var(--ease-out), transform .2s var(--ease-out), visibility 0s .2s;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .2s var(--ease-out), transform .2s var(--ease-out); }
  .nav a:not(.btn) { padding: 13px 8px; font-size: 16px; border-radius: 10px; }
  .nav-sep { width: auto; height: 1px; margin: 8px 0; }
  .nav .btn { margin: 12px 0 0; height: 48px; }
  .live { grid-template-columns: repeat(3, 1fr); }
  .prod, .prod-social, .b-grid { grid-template-columns: 1fr; }
  .prod-social .shot-social { order: 2; }
  .stack { max-width: 760px; }
  .shot-float { left: auto; right: -2%; }
  .facts { grid-template-columns: 1fr 1fr; }
  .road { grid-template-columns: 1fr; }
}
/* portrait tablets: the scene switches to its portrait framing (object above), so the copy moves down too */
@media (min-width: 761px) and (max-aspect-ratio: 4/5) {
  .hero-grid { align-items: flex-end; padding-bottom: 36px; }
  .chapter, .ch-top { align-items: flex-end; padding-block: 96px 64px; }
  .ch-top .wrap { display: block; min-height: 0; }
  .chapter-grid { grid-template-columns: 1fr; }
  .ch-right .chapter-copy { grid-column: 1; }
  #protocol { padding-top: 34vh; }
  .mine-stats { justify-content: start; text-align: left; margin-top: 32px; }
  .hero-copy, .chapter-copy { position: relative; }
  .hero-copy::before, .chapter-copy::before { content: ""; position: absolute; inset: -56px -24px -28px; z-index: -1; background: linear-gradient(transparent, rgba(5, 7, 13, .78) 30%, rgba(5, 7, 13, .9)); pointer-events: none; border-radius: 24px; }
}
@media (max-width: 760px) {
  /* object floats above; text sits low on a scrim */
  .hero { display: block; }
  .hero-grid { min-height: calc(100svh - 64px); align-items: flex-end; padding-block: 0 28px; }
  h1 { margin-top: 18px; font-size: min(9.4vw, 3.4rem); }
  .lead { margin-top: 18px; }
  .hero .btn-row { margin-top: 26px; }
  .hero .btn-row .btn { flex: 1 1 auto; }
  .live { margin-bottom: 8px; grid-template-columns: 1fr 1fr; }
  .live > div:last-child { grid-column: span 2; }
  .hero-copy, .chapter-copy { position: relative; }
  .hero-copy::before, .chapter-copy::before { content: ""; position: absolute; inset: -48px -16px -24px; z-index: -1; background: linear-gradient(transparent, rgba(5, 7, 13, .8) 30%, rgba(5, 7, 13, .92)); pointer-events: none; }
  .chapter { align-items: flex-end; padding-block: 64px 48px; }
  .chapter-grid { grid-template-columns: 1fr; }
  .ch-right .chapter-copy { grid-column: 1; }
  #protocol { padding-top: 38vh; }
  .ch-top { align-items: flex-end; padding-top: 64px; }
  .ch-top .wrap { display: block; min-height: 0; }
  .mine-stats { grid-template-columns: 1fr 1fr; text-align: left; justify-content: start; gap: 18px; margin-top: 28px; position: relative; }
  .mine-stats::before { content: ""; position: absolute; inset: -16px -16px -16px; z-index: -1; background: rgba(5, 7, 13, .85); }
  .specs { grid-template-columns: 1fr 1fr; gap: 18px; }
  .feats li { grid-template-columns: 1fr; }
  .feats code { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
  .block-h { margin-bottom: 32px; }
  /* comparison: keep the capability column pinned while the chains scroll */
  table { min-width: 680px; font-size: 14px; }
  th, td { padding: 13px 14px; }
  tbody th { position: sticky; left: 0; z-index: 1; background: #0b101c; width: 128px; min-width: 128px; }
  thead th:first-child { position: sticky; left: 0; z-index: 1; background: #0b101c; }
  .prod-markets .prod-copy { grid-template-columns: 1fr; }
  .prod-markets .text-link { grid-column: 1; grid-row: auto; justify-self: start; }
  .facts { grid-template-columns: 1fr; gap: 18px; }
  .stack { padding-bottom: 30%; }
  .shot-float { width: 46%; right: -1%; }
  .pair-shots { grid-template-columns: 1fr; }
  .totals { grid-template-columns: 1fr 1fr; }
  .final { min-height: 100svh; display: flex; align-items: flex-end; padding-block: 64px 56px; }
  .final-in { position: relative; }
  .final-in::before { content: ""; position: absolute; inset: -56px 0 -32px; z-index: -1; background: linear-gradient(transparent, rgba(5, 7, 13, .82) 30%, rgba(5, 7, 13, .92)); pointer-events: none; }
  .final .btn-row .btn { flex: 1 1 auto; }
  .foot-row { flex-direction: column; }
  .foot nav { justify-content: flex-start; }
  .foot nav span { text-align: left; }
}
