/* ZEXVRO design tokens (see ZEXVRO/design.md) — dark-first, borders over shadows, restrained accents */
@font-face {
  font-family: "Geist Pixel";
  src: url("/assets/fonts/GeistPixel-Square.woff2") format("woff2");
  font-display: swap;
}

:root {
  --bg: #050505;
  --surface: #0a0a0b;
  --raised: #111113;
  --hover: #18181b;
  --border: #27272a;
  --border-strong: #3f3f46;
  --text: #fafafa;
  --text-2: #a1a1aa;
  --muted: #71717a;
  --accent: #ffffff;
  --accent-text: #050505;
  --purple: #7c3aed;
  --blue: #3b82f6;
  --success: #22c55e;
  --warning: #f59e0b;

  --font-display: "Orbitron", "Inter", ui-sans-serif, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --font-pixel: "Geist Pixel", var(--font-mono);

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --r: 8px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--text); color: var(--bg); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.mono { font-family: var(--font-mono); }
.dim { color: var(--muted); }
.small { font-size: 13px; }
.strong { color: var(--text); font-weight: 700; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 12px; border-radius: var(--r); }
.skip:focus { left: 8px; }

.tag {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 11px;
  letter-spacing: .08em;
  padding: 2px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--text);
  margin-right: 8px;
}

/* ─────────── Buttons ─────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px;
  border-radius: var(--r);
  font: 600 14px/1 var(--font-sans);
  border: 1px solid transparent;
  transition: background .2s, border-color .2s, transform .2s, color .2s;
  white-space: nowrap;
}
.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn--primary { background: var(--accent); color: var(--accent-text); }
.btn--primary:hover { transform: translateY(-1px); background: #e4e4e7; }
.btn--ghost { border-color: var(--border); color: var(--text); background: rgba(255,255,255,.02); }
.btn--ghost:hover { border-color: var(--border-strong); background: var(--hover); }
.link { color: var(--text-2); border-bottom: 1px solid var(--border-strong); padding-bottom: 2px; }
.link:hover { color: var(--text); border-color: var(--text); }

/* ─────────── Nav ─────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 var(--gutter);
  background: rgba(5,5,5,.6);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.is-scrolled { border-bottom-color: var(--border); background: rgba(5,5,5,.82); }
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__brand img { border-radius: 6px; }
.nav__id { font: 600 15px var(--font-mono); }
.nav__links { display: flex; gap: 28px; font-size: 14px; color: var(--text-2); }
.nav__links a { position: relative; transition: color .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--text); }
.nav__right { display: flex; align-items: center; gap: 12px; }

.ledger-pill {
  display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 12px; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.dot.is-live { background: var(--success); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: ping 2s infinite; }
.dot.is-off { background: var(--warning); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); } 80%,100% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } }
.flash { animation: flash .7s ease-out; }
@keyframes flash { from { color: var(--success); } to { color: var(--text); } }

/* ─────────── Hero ─────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 104px var(--gutter) 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero__grid, .contact__grid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero__inner {
  width: 100%; max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.eyebrow { font-size: 12px; color: var(--text-2); margin: 0 0 20px; }
.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 9vw, 120px);
  line-height: .92;
  margin: 0 0 28px;
  letter-spacing: 0;
}
.display .line { display: block; overflow: hidden; white-space: nowrap; }
.display--sm { font-size: clamp(36px, 7vw, 88px); }
.cursor { color: var(--muted); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--text-2); max-width: 600px; margin: 0 0 32px; }
.hero__lede strong { color: var(--text); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 40px 0 0; font-size: 12px; }
.hero__meta dt { color: var(--muted); }
.hero__meta dd { margin: 2px 0 0; color: var(--text); }

.hero__portrait { margin: 0; justify-self: end; width: 100%; max-width: 400px; }
.portrait__frame {
  position: relative; aspect-ratio: 4 / 5;
  border: 1px solid var(--border); border-radius: var(--r);
  background:
    radial-gradient(120% 80% at 50% 100%, rgba(124,58,237,.16), transparent 60%),
    radial-gradient(80% 60% at 50% 0%, rgba(59,130,246,.10), transparent 60%),
    var(--surface);
  overflow: hidden;
}
.portrait__frame img { position: absolute; left: -9%; bottom: 0; width: 118%; max-width: none; height: auto; filter: grayscale(1) contrast(1.05); transition: filter .6s ease; }
.hero__portrait:hover .portrait__frame img { filter: none; }
.portrait__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,.035) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}
.corner { position: absolute; width: 14px; height: 14px; border: 0 solid var(--text); z-index: 2; }
.corner.tl { top: 10px; left: 10px; border-top-width: 1px; border-left-width: 1px; }
.corner.tr { top: 10px; right: 10px; border-top-width: 1px; border-right-width: 1px; }
.corner.bl { bottom: 10px; left: 10px; border-bottom-width: 1px; border-left-width: 1px; }
.corner.br { bottom: 10px; right: 10px; border-bottom-width: 1px; border-right-width: 1px; }
.hero__portrait figcaption { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--muted); }
.hero__portrait code { color: var(--text-2); }
.hero__scroll { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.hero__scroll:hover { color: var(--text); }

/* ─────────── Marquee ─────────── */
.marquee { border-block: 1px solid var(--border); overflow: hidden; background: var(--surface); }
.marquee__track { display: flex; gap: 28px; width: max-content; padding: 14px 0; font-size: 13px; color: var(--text-2); animation: marq 40s linear infinite; }
.marquee__track i { font-style: normal; color: var(--purple); }
@keyframes marq { to { transform: translateX(-50%); } }

/* ─────────── Blocks ─────────── */
.block {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) var(--gutter);
  position: relative;
}
.block + .block { border-top: 1px dashed var(--border); }
.block__head { margin-bottom: 48px; max-width: 760px; }
.block__meta { font-size: 12px; color: var(--muted); margin: 0 0 16px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.hash { color: var(--muted); overflow-wrap: anywhere; }
.h2 { font: 700 clamp(30px, 4.4vw, 52px)/1.05 var(--font-display); margin: 0 0 18px; }
.h2 .dim { font-family: var(--font-sans); font-weight: 500; font-size: .5em; vertical-align: middle; }
.h3 { font: 600 18px/1.3 var(--font-sans); margin: 0; }
.block__lede { color: var(--text-2); font-size: 17px; margin: 0; max-width: 680px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ─────────── ZEXVRO ─────────── */
.zx { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: start; }
.zx__lockup {
  border: 1px solid var(--border); border-radius: var(--r); background: var(--surface);
  padding: 32px; display: grid; gap: 16px; position: sticky; top: 96px;
}
.zx__lockup img { width: 100%; height: auto; }
.zx__lockup p { margin: 0; font-size: 13px; }
.services { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.svc {
  display: grid; grid-template-columns: 40px 1fr auto; gap: 16px; align-items: center;
  padding: 18px 20px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface);
  transition: border-color .2s, background .2s, transform .2s;
}
.svc:hover { border-color: var(--border-strong); background: var(--raised); transform: translateX(4px); }
.svc img { width: 32px; height: 32px; }
.svc h3 { margin: 0; font: 600 16px var(--font-sans); }
.svc p { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }
.svc--mine { border-color: var(--border-strong); background: linear-gradient(90deg, rgba(124,58,237,.08), transparent 60%), var(--surface); }
.badge { font-size: 11px; padding: 3px 8px; border-radius: 4px; border: 1px solid var(--border); color: var(--text-2); }
.badge--mine { border-color: rgba(124,58,237,.6); color: #c4b5fd; }

/* ─────────── Zer0 ─────────── */
.zer0 { display: grid; gap: 24px; }
.flow { display: grid; grid-template-columns: 1fr 48px 1fr 48px 1fr; align-items: stretch; }
.flow__step { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); padding: 24px; }
.flow__step .n { font-size: 12px; color: var(--muted); }
.flow__step h4 { margin: 8px 0 6px; font: 700 20px var(--font-display); }
.flow__step p { margin: 0; color: var(--text-2); font-size: 14px; }
.flow__wire { position: relative; align-self: center; height: 1px; background: var(--border-strong); overflow: hidden; }
.flow__wire span { position: absolute; top: -1px; left: -30%; width: 30%; height: 3px; background: linear-gradient(90deg, transparent, var(--blue), transparent); animation: wire 2.2s linear infinite; }
.flow__wire:nth-of-type(4) span { animation-delay: 1.1s; }
@keyframes wire { to { left: 100%; } }

.contracts { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); padding: 24px; display: grid; gap: 18px; }
.contracts__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.contracts__head p { margin: 0; }
.contracts__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.contract { display: grid; grid-template-columns: 88px 1fr 40px; align-items: center; border: 1px solid var(--border); border-radius: var(--r); background: var(--bg); overflow: hidden; }
.contract .tier { padding: 0 12px; font-size: 12px; color: var(--text); border-right: 1px solid var(--border); height: 100%; display: flex; align-items: center; }
.contract .addr { text-align: left; padding: 12px; font-size: 13px; color: var(--text-2); transition: color .2s, background .2s; }
.contract .addr:hover { color: var(--text); background: var(--hover); }
.contract .verify { display: grid; place-items: center; height: 100%; border-left: 1px solid var(--border); color: var(--text-2); transition: background .2s, color .2s; }
.contract .verify:hover { background: var(--text); color: var(--bg); }
.contracts > p { margin: 0; }

/* ─────────── Morph ─────────── */
.morph { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; align-items: start; }
.term { border: 1px solid var(--border); border-radius: var(--r); background: #08080a; overflow: hidden; }
.term__bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
.term__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.term__bar p { margin: 0 0 0 auto; font-size: 11px; color: var(--muted); }
.term__body { margin: 0; padding: 20px; min-height: 360px; font-size: 13px; line-height: 1.7; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.term__body .p { color: var(--text); }
.term__body .ok { color: var(--success); }
.term__body .ac { color: #a78bfa; }
.term__body .bl { color: #93c5fd; }
.term__body .caret { display: inline-block; width: 8px; height: 15px; background: var(--text); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.facts { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.facts li { display: grid; gap: 2px; padding: 16px 20px; font-size: 14px; color: var(--text-2); }
.facts li + li { border-top: 1px solid var(--border); }
.k { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 500; margin: 0; }

/* ─────────── Work ─────────── */
.work { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%;
  padding: 24px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface);
  transition: border-color .25s, background .25s, transform .25s;
}
.card::after { content: "↗"; position: absolute; top: 20px; right: 20px; color: var(--muted); transition: transform .25s, color .25s; }
.card:hover { border-color: var(--border-strong); background: var(--raised); transform: translateY(-3px); }
.card:hover::after { color: var(--text); transform: translate(2px, -2px); }
.card h3 { margin: 4px 0 0; font: 600 19px var(--font-sans); }
.card p { margin: 0; color: var(--text-2); font-size: 14px; flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips i { font-style: normal; font-size: 11px; padding: 2px 8px; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); }

/* ─────────── Roles ─────────── */
.roles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.roles li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--border); }
.roles span { font-size: 12px; padding-top: 4px; }
.roles h3 { margin: 0; font: 600 18px var(--font-sans); }
.roles .org { margin: 0 0 6px; color: #c4b5fd; font: 500 13px var(--font-mono); }
.roles p { margin: 0; color: var(--text-2); font-size: 14px; }

/* ─────────── Ledger ─────────── */
.tx { border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.tx__row { display: grid; grid-template-columns: 120px 110px 110px 1fr; gap: 16px; align-items: center; padding: 14px 20px; font-size: 14px; }
.tx__row + .tx__row, #txBody .tx__row { border-top: 1px solid var(--border); }
.tx__row--head { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; background: var(--raised); }
#txBody .tx__row { transition: background .2s; }
#txBody .tx__row:hover { background: var(--raised); }
.tx__hash { font: 12px var(--font-mono); color: var(--blue); }
.tx__date { font: 12px var(--font-mono); color: var(--muted); }
.tx__type { font: 11px var(--font-mono); padding: 2px 8px; border-radius: 4px; border: 1px solid var(--border); width: fit-content; }
.tx__type[data-t="SELECTED"] { color: var(--success); border-color: rgba(34,197,94,.4); }
.tx__type[data-t="CERTIFIED"] { color: #c4b5fd; border-color: rgba(124,58,237,.5); }
.tx__type[data-t="WON"] { color: var(--bg); background: var(--text); border-color: var(--text); font-weight: 700; }
.tx__event { color: var(--text); }
.tx__event small { display: block; color: var(--muted); font-size: 12px; }

/* ─────────── Stack ─────────── */
.stack { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.stack > div { padding: 24px; background: var(--surface); }
.stack > div + div { border-left: 1px solid var(--border); }
.stack p { margin: 10px 0 0; color: var(--text-2); font-size: 14px; }

/* ─────────── Contact ─────────── */
.contact { position: relative; isolation: isolate; overflow: hidden; border-top: 1px solid var(--border); padding: clamp(96px, 14vw, 180px) var(--gutter); text-align: center; }
.contact__inner { max-width: 820px; margin: 0 auto; display: grid; justify-items: center; gap: 24px; }
.contact .display { margin: 0; }
.contact .block__lede { margin: 0 auto; }
.contact .hero__cta { justify-content: center; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 24px var(--gutter); border-top: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
.foot a:hover { color: var(--text); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: var(--r); font-size: 13px; transition: opacity .25s, transform .25s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ─────────── Responsive ─────────── */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .work { grid-template-columns: repeat(2, 1fr); }
  .stack { grid-template-columns: repeat(2, 1fr); }
  .stack > div + div { border-left: 0; }
  .stack > div { border-top: 1px solid var(--border); }
  .stack > div:nth-child(-n+2) { border-top: 0; }
  .stack > div:nth-child(even) { border-left: 1px solid var(--border); }
}
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__portrait { justify-self: start; max-width: 300px; order: -1; }
  .zx, .morph { grid-template-columns: 1fr; }
  .zx__lockup { position: static; }
  .flow { grid-template-columns: 1fr; gap: 0; }
  .flow__wire { width: 1px; height: 28px; justify-self: center; }
  .flow__wire span { width: 3px; height: 30%; left: -1px; top: -30%; background: linear-gradient(180deg, transparent, var(--blue), transparent); animation-name: wireV; }
  .contracts__list, .roles { grid-template-columns: 1fr; }
  .tx__row { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .tx__row--head { display: none; }
  .tx__hash { grid-column: 1; grid-row: 1; }
  .tx__type { grid-column: 2; grid-row: 1; justify-self: end; }
  .tx__event { grid-column: 1 / -1; }
  .tx__date { grid-column: 1 / -1; }
}
@keyframes wireV { to { top: 100%; } }
@media (max-width: 560px) {
  .ledger-pill .mono:not(.strong) { display: none; }
  .nav__id .dim { display: none; }
  .work, .stack { grid-template-columns: 1fr; }
  .stack > div, .stack > div:nth-child(-n+2) { border-top: 1px solid var(--border); border-left: 0 !important; }
  .stack > div:first-child { border-top: 0; }
  .svc { grid-template-columns: 32px 1fr; }
  .svc .badge { grid-column: 2; justify-self: start; }
  .contract { grid-template-columns: 76px 1fr 40px; }
  .btn { height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ─────────── Hero portrait: full-bleed cutout anchored bottom-right (desktop) ─────────── */
@media (min-width: 1200px) {
  .hero__copy { position: relative; z-index: 2; }
  .hero__portrait {
    position: absolute; bottom: 0; z-index: 1;
    width: min(50vw, 860px); height: 74%; max-width: none; right: 2vw;
    pointer-events: none;
  }
  .portrait__frame {
    position: absolute; inset: 0; aspect-ratio: auto;
    border: 0; border-radius: 0; background: none; overflow: visible;
    -webkit-mask-image: linear-gradient(to top, transparent 0, #000 22%), linear-gradient(to right, transparent 0, #000 30%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to top, transparent 0, #000 22%), linear-gradient(to right, transparent 0, #000 30%);
    mask-composite: intersect;
  }
  .portrait__frame::before {
    content: ""; position: absolute; right: 8%; bottom: 10%; width: 70%; aspect-ratio: 1; z-index: -1;
    background: radial-gradient(closest-side, rgba(124,58,237,.22), rgba(59,130,246,.08) 55%, transparent);
  }
  .portrait__frame img {
    left: auto; right: 0; bottom: 0;
    width: auto; height: 100%; max-height: 100%; object-fit: contain; object-position: right bottom;
  }
  .hero__portrait .corner, .hero__portrait figcaption { display: none; }
  .hero:hover .portrait__frame img { filter: grayscale(.15) contrast(1.05); }
}

/* ─────────── ASCII preloader ─────────── */
.loader { display: none; }
.js .loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--bg); color: var(--text);
  /* fail-safe: never trap the page if the script dies */
  animation: loaderFailsafe 0s 6s forwards;
}
@keyframes loaderFailsafe { to { visibility: hidden; opacity: 0; pointer-events: none; } }
.js.is-loading { overflow: hidden; }
.loader__inner { display: grid; justify-items: center; gap: 18px; padding: 16px; }
.loader__art {
  margin: 0; font-size: clamp(7px, 1.5vw, 13px); line-height: 1.05; letter-spacing: 0;
  color: var(--text); text-shadow: 0 0 18px rgba(124,58,237,.35);
  user-select: none;
}
.loader__art .s { color: var(--muted); }
.loader__art .a { color: #a78bfa; }
.loader__bar { font-size: 12px; color: var(--text-2); white-space: nowrap; }
.loader__bar #loaderPct { color: var(--text); font-variant-numeric: tabular-nums; }
.loader__log { margin: 0; min-height: 6.6em; width: min(360px, 86vw); font-size: 11px; line-height: 1.6; color: var(--muted); white-space: pre-wrap; }
.loader__log .ok { color: var(--success); }
.loader__corner { position: absolute; margin: 0; font-size: 10px; letter-spacing: .14em; color: var(--muted); }
.loader__corner--tl { top: 20px; left: 20px; }
.loader__corner--tr { top: 20px; right: 20px; }
.loader__corner--bl { bottom: 20px; left: 20px; }
.loader__corner--br { bottom: 20px; right: 20px; font-variant-numeric: tabular-nums; }
.loader.is-done { display: none !important; }

/* ─────────── GSAP hooks ─────────── */
.has-gsap .marquee__track { animation: none; }
.has-gsap .h2 .char-mask, .has-gsap .display .char-mask { padding-bottom: .06em; }
@media (prefers-reduced-motion: reduce) { .js .loader { display: none; } }
.has-gsap .btn--primary { transition: background .2s, color .2s; }
.has-gsap .btn--primary:hover { transform: none; }
