/* ============================================================
   XIBALBNK — main.css
   Obsidian / Jade / Gold — cinematic fintech
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../assets/fonts/fraunces-var-italic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('../assets/fonts/space-grotesk-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('../assets/fonts/space-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Mono';
  src: url('../assets/fonts/space-mono-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --void: #050807;
  --pit: #030504;
  --obsidian: #0A100E;
  --obsidian-2: #0D1512;
  --bone: #EDE8DC;
  --muted: #94a79e;
  --faint: rgba(237, 232, 220, .45);
  --jade: #3FE0B0;
  --jade-deep: #0B5C45;
  --gold: #E4B04A;
  --line: rgba(237, 232, 220, .09);
  --line-soft: rgba(237, 232, 220, .05);

  --f-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --f-sans: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'Space Mono', 'Cascadia Mono', Consolas, monospace;

  --e-out: cubic-bezier(.16, 1, .3, 1);
  --e-expo: cubic-bezier(.19, 1, .22, 1);
  --e-inout: cubic-bezier(.65, 0, .35, 1);

  --nav-h: 76px;
  --pad-x: clamp(20px, 4.5vw, 64px);
  --sect: clamp(110px, 16vh, 200px);
  --radius: 20px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
html.is-loading, html.menu-open { overflow: hidden; }

body {
  background: var(--void);
  color: var(--bone);
  font-family: var(--f-sans);
  font-size: clamp(1rem, .95rem + .25vw, 1.125rem);
  line-height: 1.6;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  min-height: 100vh;
}

::selection { background: var(--jade); color: var(--void); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--pit); }
::-webkit-scrollbar-thumb { background: #1c2823; border-radius: 8px; border: 2px solid var(--pit); }
::-webkit-scrollbar-thumb:hover { background: var(--jade-deep); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg, canvas { display: block; max-width: 100%; }
ul { list-style: none; }
i { font-style: normal; }

:focus-visible { outline: 2px solid var(--jade); outline-offset: 4px; border-radius: 4px; }

.container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.container--narrow { max-width: 900px; }

section { position: relative; }

/* ---------- Film grain + vignette ---------- */
.noise {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 90;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  animation: grain 900ms steps(2) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1.4%); }
  50% { transform: translate(1.2%, -1.8%); }
  75% { transform: translate(-1.6%, -.8%); }
  100% { transform: translate(1%, 1.6%); }
}
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 89;
  background: radial-gradient(120% 90% at 50% 32%, transparent 55%, rgba(2, 4, 3, .55) 100%);
}

/* ---------- Typography helpers ---------- */
.label {
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .28em;
  color: var(--muted);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(20px, 3vw, 34px);
  white-space: nowrap;
}
.label::before {
  content: '';
  width: 34px; height: 1px;
  background: var(--jade);
  flex: none;
}

.title {
  font-family: var(--f-display);
  font-weight: 430;
  font-variation-settings: 'opsz' 120;
  font-size: clamp(2.4rem, 1.4rem + 4.6vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -.015em;
  text-wrap: balance;
  margin-bottom: clamp(18px, 2.6vw, 30px);
}
.title em {
  font-style: italic;
  font-weight: 380;
  color: var(--jade);
}

.sub {
  color: var(--muted);
  max-width: 54ch;
  font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem);
  line-height: 1.65;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .02em;
  padding: 1.02em 1.9em;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform .5s var(--e-out), background-color .35s ease, color .35s ease,
              border-color .35s ease, box-shadow .5s ease;
  will-change: transform;
}
.btn__arrow { transition: transform .45s var(--e-out); }
.btn:hover .btn__arrow { transform: translateX(6px); }

.btn--solid {
  background: var(--jade);
  color: #04231a;
  box-shadow: 0 0 0 rgba(63, 224, 176, 0);
}
.btn--solid:hover {
  background: #5ff0c4;
  box-shadow: 0 12px 44px -8px rgba(63, 224, 176, .45);
}
.btn--ghost {
  border: 1px solid rgba(237, 232, 220, .22);
  color: var(--bone);
  background: rgba(237, 232, 220, .015);
}
.btn--ghost:hover { border-color: var(--jade); color: var(--jade); }
.btn--sm { padding: .72em 1.5em; font-size: .86rem; }

/* ============================================================
   LOADER
   ============================================================ */
.loader {
  position: fixed; inset: 0;
  z-index: 100;
  background: var(--pit);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1s var(--e-expo);
}
html.is-ready .loader { transform: translateY(-101%); }
html.is-ready .loader { pointer-events: none; }

.loader__brand {
  position: absolute;
  top: 28px; left: var(--pad-x);
  font-family: var(--f-mono);
  font-size: .78rem;
  letter-spacing: .34em;
  color: var(--faint);
}
.loader__glyph { width: clamp(72px, 10vw, 110px); }
.loader__glyph .lg {
  stroke: var(--bone);
  stroke-width: 1.6;
  fill: none;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw 1.5s var(--e-inout) forwards;
}
.loader__glyph .lg--2 { stroke: var(--jade); animation-delay: .18s; }
.loader__glyph .lg--3 { animation-delay: .36s; }
.loader__glyph .lg--tick { stroke: var(--gold); animation-delay: .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.loader__row {
  position: absolute;
  bottom: 28px;
  left: var(--pad-x); right: var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--f-mono);
}
.loader__label { font-size: .7rem; letter-spacing: .3em; color: var(--muted); }
.loader__count { font-size: clamp(2.4rem, 6vw, 4.4rem); color: var(--bone); line-height: 1; }

/* ============================================================
   CURSOR
   ============================================================ */
.cursor, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 110;
  border-radius: 50%;
  opacity: 0;
}
.cursor {
  width: 6px; height: 6px;
  background: var(--jade);
  transform: translate(-50%, -50%);
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid rgba(237, 232, 220, .35);
  transform: translate(-50%, -50%);
  transition: width .35s var(--e-out), height .35s var(--e-out),
              border-color .35s ease, background-color .35s ease;
}
body.cursor-on .cursor, body.cursor-on .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring {
  width: 58px; height: 58px;
  border-color: rgba(63, 224, 176, .65);
  background: rgba(63, 224, 176, .07);
}
@media (pointer: fine) {
  body.cursor-on, body.cursor-on a, body.cursor-on button { cursor: none; }
  body.cursor-on input, body.cursor-on textarea { cursor: text; }
}

/* ============================================================
   DEPTH METER
   ============================================================ */
.depth {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .22em;
  color: var(--faint);
  opacity: 0;
  transition: opacity .8s ease 1.2s;
}
html.is-ready .depth { opacity: 1; }
.depth__label, .depth__level { writing-mode: vertical-rl; }
.depth__level { color: var(--jade); }
.depth__track {
  width: 1px; height: 110px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.depth__fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--jade);
  transform-origin: top;
  transform: scaleY(0);
}
.depth__value { color: var(--bone); writing-mode: vertical-rl; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: var(--pad-x);
  transition: transform .6s var(--e-out), background-color .4s ease, border-color .4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(4, 7, 6, .72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line-soft);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}
.nav__glyph { width: 26px; height: 26px; color: var(--bone); }
.nav__wordmark {
  font-weight: 700;
  letter-spacing: .16em;
  font-size: .95rem;
}

.nav__links {
  display: flex;
  gap: clamp(18px, 2.6vw, 40px);
  font-size: .88rem;
  color: var(--muted);
}
.nav__links a {
  position: relative;
  padding: 6px 0;
  transition: color .3s ease;
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--jade);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--e-out);
}
.nav__links a:hover { color: var(--bone); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav__right { display: flex; align-items: center; gap: 18px; }

.lang {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--f-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  padding: 6px 4px;
}
.lang__opt { color: var(--faint); transition: color .3s ease; }
.lang__opt.is-active { color: var(--jade); }
.lang__sep { color: var(--line); }
.lang:hover .lang__opt:not(.is-active) { color: var(--bone); }

.burger {
  display: none;
  width: 40px; height: 40px;
  position: relative;
  flex: none;
}
.burger span {
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: var(--bone);
  transition: transform .5s var(--e-out), top .5s var(--e-out);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 24px; }
html.menu-open .burger span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
html.menu-open .burger span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0;
  z-index: 75;
  background: rgba(3, 5, 4, .96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 16px) var(--pad-x) 32px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--e-expo);
  visibility: hidden;
}
html.menu-open .menu { clip-path: inset(0 0 0% 0); visibility: visible; }

.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--f-display);
  font-size: clamp(2rem, 8.5vw, 3.2rem);
  font-weight: 420;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .7s var(--e-out);
}
.menu__links a i {
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  color: var(--jade);
}
.menu__links a.menu__cta span { color: var(--jade); font-style: italic; }
html.menu-open .menu__links a { opacity: 1; transform: none; }
html.menu-open .menu__links a:nth-child(1) { transition-delay: .18s; }
html.menu-open .menu__links a:nth-child(2) { transition-delay: .24s; }
html.menu-open .menu__links a:nth-child(3) { transition-delay: .3s; }
html.menu-open .menu__links a:nth-child(4) { transition-delay: .36s; }
html.menu-open .menu__links a:nth-child(5) { transition-delay: .42s; }
html.menu-open .menu__links a:nth-child(6) { transition-delay: .48s; }

.menu__meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: .6rem;
  letter-spacing: .18em;
  color: var(--faint);
  padding-top: 24px;
  white-space: nowrap;
}
.menu__meta span:last-child { color: var(--jade); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
  padding: calc(var(--nav-h) + 4vh) var(--pad-x) 12vh;
}

.hero__canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

.hero__rays {
  position: absolute;
  left: 50%; top: 58%;
  width: 160vmax; height: 160vmax;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg,
    transparent 0deg, rgba(63, 224, 176, .04) 14deg, transparent 26deg,
    transparent 80deg, rgba(237, 232, 220, .025) 96deg, transparent 110deg,
    transparent 170deg, rgba(63, 224, 176, .035) 186deg, transparent 200deg,
    transparent 260deg, rgba(228, 176, 74, .02) 274deg, transparent 290deg,
    transparent 360deg);
  animation: rays 90s linear infinite;
  z-index: 0;
}
@keyframes rays { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero__portal {
  position: absolute;
  left: 50%; top: 58%;
  width: min(94vmin, 1020px);
  aspect-ratio: 1;
  transform: translate(-50%, calc(-50% + var(--sy, 0px)));
  z-index: 1;
}
.hero__portal g, .cta__portal g, .vault__rings g {
  transform-box: fill-box;
  transform-origin: center;
}
.hero__portal svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero__portal .p-breathe { animation: breathe 9s ease-in-out infinite alternate; transform-origin: center; }
.hero__portal .p-breathe--2 { animation-duration: 12s; animation-delay: -3s; }
.hero__portal .p-breathe--3 { animation-duration: 15s; animation-delay: -6s; }
@keyframes breathe {
  from { transform: scale(.985); }
  to { transform: scale(1.03); }
}
.hero__portal .p-spin { animation: spin 70s linear infinite; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__glow {
  position: absolute;
  left: 50%; top: 60%;
  width: min(72vmin, 760px);
  aspect-ratio: 1;
  transform: translate(-50%, calc(-50% + var(--sy, 0px)));
  background: radial-gradient(circle,
    rgba(63, 224, 176, .13) 0%,
    rgba(63, 224, 176, .05) 34%,
    transparent 68%);
  filter: blur(6px);
  z-index: 1;
  animation: glowpulse 7s ease-in-out infinite alternate;
}
@keyframes glowpulse {
  from { opacity: .75; }
  to { opacity: 1.1; }
}

.hero__corner {
  position: absolute;
  z-index: 3;
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .2em;
  line-height: 1.9;
  color: var(--faint);
  opacity: 0;
  transition: opacity 1.2s ease 1.5s;
}
html.is-ready .hero__corner { opacity: 1; }
.hero__corner--tl { top: calc(var(--nav-h) + 26px); left: var(--pad-x); }
.hero__corner--tr { top: calc(var(--nav-h) + 26px); right: var(--pad-x); text-align: right; }
.hero__corner--bl { bottom: 34px; left: var(--pad-x); }
.hero__corner--br { bottom: 34px; right: var(--pad-x); text-align: right; }

.hero__content {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 1100px;
}

.hero__eyebrow {
  font-family: var(--f-mono);
  font-size: clamp(.62rem, .6rem + .2vw, .76rem);
  letter-spacing: .34em;
  color: var(--jade);
  margin-bottom: clamp(22px, 3.4vh, 40px);
  opacity: 0;
  transition: opacity 1s ease .35s;
}
html.is-ready .hero__eyebrow { opacity: 1; }

.hero__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(3.1rem, 1.2rem + 10.2vw, 9.4rem);
  line-height: .98;
  letter-spacing: -.02em;
  margin-bottom: clamp(26px, 4vh, 44px);
}
.hero__title em {
  font-style: italic;
  font-weight: 340;
  color: var(--jade);
  letter-spacing: -.01em;
}
.h-line { display: block; overflow: hidden; padding-block: .04em; }
.h-line > span {
  display: block;
  transform: translateY(115%);
  transition: transform 1.25s var(--e-expo);
}
html.is-ready .h-line > span { transform: translateY(0); }
.h-line:nth-child(1) > span { transition-delay: .12s; }
.h-line:nth-child(2) > span { transition-delay: .22s; }
.h-line:nth-child(3) > span { transition-delay: .32s; }

.hero__sub {
  color: var(--muted);
  max-width: 46ch;
  margin-inline: auto;
  margin-bottom: clamp(30px, 4.6vh, 48px);
  font-size: clamp(1rem, .92rem + .35vw, 1.22rem);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s ease .75s, transform 1s var(--e-out) .75s;
}
html.is-ready .hero__sub { opacity: 1; transform: none; }

.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s ease .95s, transform 1s var(--e-out) .95s;
}
html.is-ready .hero__ctas { opacity: 1; transform: none; }

.hero__scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: .6rem;
  letter-spacing: .3em;
  color: var(--faint);
  opacity: 0;
  transition: opacity 1s ease 1.7s;
}
html.is-ready .hero__scroll { opacity: 1; }
.hero__scroll-line {
  width: 1px; height: 42px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--jade);
  animation: scrolldrop 2.2s var(--e-inout) infinite;
}
@keyframes scrolldrop {
  0% { top: -100%; }
  55% { top: 0; }
  100% { top: 100%; }
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  overflow: clip;
  background: rgba(3, 5, 4, .5);
  position: relative;
  z-index: 5;
}
.ticker__track {
  display: flex;
  width: max-content;
  gap: 0;
  padding-block: 17px;
  animation: ticker 46s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 2.6rem;
  padding-inline: 1.3rem;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .22em;
  color: var(--muted);
  white-space: nowrap;
}
.ticker__item b { color: var(--gold); font-weight: 400; font-size: .5rem; }

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto { padding-block: var(--sect); }
.manifesto__text {
  font-family: var(--f-display);
  font-weight: 400;
  font-variation-settings: 'opsz' 80;
  font-size: clamp(1.7rem, 1rem + 3.4vw, 3.6rem);
  line-height: 1.22;
  letter-spacing: -.01em;
  max-width: 21em;
}
.manifesto__text .w { opacity: .12; transition: opacity 60ms linear; }
.manifesto__sign {
  margin-top: clamp(30px, 4vw, 50px);
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .3em;
  color: var(--gold);
}

/* ============================================================
   BENTO
   ============================================================ */
.bento { padding-block: var(--sect); }
.bento .sub { margin-bottom: clamp(44px, 6vw, 72px); }

.bento__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.bcard {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(600px 340px at var(--mx, 50%) var(--my, 0%), rgba(63, 224, 176, .07), transparent 62%),
    linear-gradient(170deg, var(--obsidian-2), var(--obsidian) 55%);
  overflow: clip;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  transition: border-color .5s ease, transform .7s var(--e-out);
}
.bcard:hover { border-color: rgba(63, 224, 176, .28); transform: translateY(-4px); }
.bcard--a, .bcard--d { grid-column: span 7; }
.bcard--b, .bcard--c { grid-column: span 5; }

.bcard__visual {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 3vw, 40px);
  min-height: 210px;
}
.bcard__body { padding: 0 clamp(22px, 3vw, 40px) clamp(22px, 3vw, 36px); }
.bcard__body h3 {
  font-family: var(--f-display);
  font-weight: 450;
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem);
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.bcard__body p { color: var(--muted); font-size: .96rem; max-width: 46ch; }

/* mini balance UI */
.ui-panel {
  width: min(100%, 360px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(13, 21, 18, .9), rgba(5, 8, 7, .9));
  padding: 22px 24px 20px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
  overflow: clip;
  transition: transform .7s var(--e-out);
}
.bcard--a:hover .ui-panel { transform: translateY(-6px); }
.ui-row { display: flex; justify-content: space-between; align-items: center; }
.ui-label { font-family: var(--f-mono); font-size: .58rem; letter-spacing: .26em; color: var(--faint); }
.ui-badge {
  font-family: var(--f-mono);
  font-size: .64rem;
  color: var(--jade);
  border: 1px solid rgba(63, 224, 176, .3);
  border-radius: 999px;
  padding: 3px 9px;
}
.ui-from {
  display: block;
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  color: var(--muted);
  margin-top: 16px;
}
.ui-balance {
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 100;
  font-size: 2.6rem;
  font-weight: 430;
  margin: 2px 0 14px;
}
.ui-balance small { font-size: .55em; color: var(--muted); }
.ui-chips { display: flex; gap: 8px; margin-bottom: 18px; }
.ui-chips span {
  font-family: var(--f-mono);
  font-size: .6rem;
  letter-spacing: .14em;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.ui-chips .is-on { background: rgba(63, 224, 176, .12); border-color: rgba(63, 224, 176, .4); color: var(--jade); }
.ui-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}
.ui-status i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--jade);
  flex: none;
}
.ui-status i.is-live {
  box-shadow: 0 0 12px rgba(63, 224, 176, .9);
  animation: sparkpulse 2s ease-in-out infinite;
}
.ui-status b {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, var(--jade), rgba(63, 224, 176, .4));
}
.ui-stages {
  display: flex;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: .5rem;
  letter-spacing: .14em;
  color: var(--faint);
}
@keyframes sparkpulse { 50% { opacity: .3; } }

/* coin */
.coin { width: min(200px, 60%); }
.coin svg { overflow: visible; }
.coin__ratio {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 44px;
  fill: var(--bone);
}
.coin__orbit { transform-origin: 100px 100px; animation: orbit 7s linear infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }

/* network */
.net { width: min(320px, 90%); overflow: visible; }
.net__tag { font-family: var(--f-mono); font-size: 9px; letter-spacing: .18em; fill: var(--faint); }
.net__arc { animation: dashmove 3.2s linear infinite; }
.net__arc--2 { animation-duration: 2.6s; }
.net__arc--3 { animation-duration: 4.5s; animation-direction: reverse; }
@keyframes dashmove { to { stroke-dashoffset: -48; } }

/* order chat */
.chat {
  width: min(100%, 360px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: .7rem;
  letter-spacing: .02em;
  line-height: 1.55;
}
.chat__b {
  max-width: 88%;
  padding: 11px 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(13, 21, 18, .9), rgba(5, 8, 7, .9));
  color: var(--bone);
}
.chat__b--in { align-self: flex-start; border-bottom-left-radius: 4px; }
.chat__b--out {
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  background: rgba(63, 224, 176, .09);
  border-color: rgba(63, 224, 176, .28);
}
.chat__file {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 7px 11px;
  border: 1px dashed rgba(228, 176, 74, .45);
  border-radius: 8px;
  color: var(--gold);
  font-size: .62rem;
  letter-spacing: .06em;
  width: fit-content;
}
.chat__file i {
  width: 13px; height: 11px;
  border: 1px solid currentColor;
  border-radius: 2.5px;
  position: relative;
  flex: none;
}
.chat__file i::after {
  content: '';
  position: absolute;
  left: 2.5px; top: 2.5px;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: currentColor;
}

/* ============================================================
   CARD SECTION (pinned 3D)
   ============================================================ */
.cardsec { height: 200vh; }
.cardsec__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: clip;
  background:
    radial-gradient(70% 60% at 74% 50%, rgba(63, 224, 176, .05), transparent 70%),
    var(--pit);
}
.cardsec__layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(30px, 5vw, 80px);
  width: 100%;
}
.cardsec__feats { margin: clamp(20px, 2.6vw, 34px) 0; }
.cardsec__feats li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: .95rem;
}
.cardsec__feats li::before {
  content: '◆';
  color: var(--gold);
  font-size: .5rem;
  flex: none;
}

.cardsec__stage {
  position: relative;
  perspective: 1400px;
  display: flex;
  justify-content: center;
}
.card3d {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1.586;
  border-radius: 26px;
  background:
    linear-gradient(115deg, rgba(63, 224, 176, .05), transparent 34%),
    linear-gradient(300deg, rgba(228, 176, 74, .04), transparent 40%),
    linear-gradient(165deg, #131b17, #070b0a 60%, #0b110e);
  border: 1px solid rgba(237, 232, 220, .16);
  box-shadow:
    inset 0 1px 0 rgba(237, 232, 220, .12),
    0 60px 120px -40px rgba(0, 0, 0, .9);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transform-style: preserve-3d;
  will-change: transform;
  padding: clamp(20px, 4.4vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card3d__pattern {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg width='48' height='48' viewBox='0 0 48 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 36 H12 V24 H24 V12 H36 V0' fill='none' stroke='%23E4B04A' stroke-width='1'/%3E%3Cpath d='M12 48 H24 V36 H36 V24 H48 V12' fill='none' stroke='%23E4B04A' stroke-width='.6'/%3E%3C/svg%3E");
  background-size: 48px 48px;
  opacity: .07;
  -webkit-mask-image: linear-gradient(115deg, transparent 30%, #000 75%);
  mask-image: linear-gradient(115deg, transparent 30%, #000 75%);
}
.card3d__glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg,
    transparent 42%,
    rgba(237, 232, 220, .12) 50%,
    rgba(63, 224, 176, .06) 54%,
    transparent 62%);
  background-size: 260% 100%;
  background-position: calc(var(--gx, 50%) * 1%) 0;
  mix-blend-mode: screen;
  pointer-events: none;
}
.card3d__top { display: flex; justify-content: space-between; align-items: flex-start; }
.card3d__brand { font-weight: 700; letter-spacing: .26em; font-size: clamp(.8rem, 1.6vw, 1rem); }
.card3d__ordnum {
  font-family: var(--f-mono);
  font-size: clamp(.58rem, 1.3vw, .7rem);
  letter-spacing: .22em;
  color: var(--faint);
  padding-top: 4px;
}
.card3d__mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: .05;
  pointer-events: none;
}
.card3d__mark svg { width: clamp(150px, 22vw, 220px); }
.card3d__stamp {
  position: absolute;
  top: 50%;
  right: clamp(18px, 5%, 38px);
  width: clamp(72px, 9.6vw, 102px);
  aspect-ratio: 1;
  border: 1.5px dashed rgba(63, 224, 176, .6);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: clamp(.5rem, 1vw, .62rem);
  letter-spacing: .16em;
  color: var(--jade);
  background: rgba(63, 224, 176, .05);
  transform: translateY(-58%) rotate(-12deg);
}
.card3d__amounts {
  display: flex;
  align-items: flex-end;
  gap: clamp(14px, 2.4vw, 26px);
  flex-wrap: wrap;
  padding-right: clamp(70px, 11vw, 118px);
}
.card3d__amounts i {
  display: block;
  font-family: var(--f-mono);
  font-size: .52rem;
  letter-spacing: .26em;
  color: var(--faint);
  margin-bottom: 7px;
}
.card3d__amounts b {
  font-family: var(--f-display);
  font-variation-settings: 'opsz' 100;
  font-weight: 460;
  font-size: clamp(1.15rem, 2.7vw, 1.7rem);
  letter-spacing: -.01em;
  line-height: 1;
  white-space: nowrap;
}
.card3d__amounts b.is-jade { color: var(--jade); }
.card3d__amounts b em {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: .46em;
  letter-spacing: .14em;
  color: var(--gold);
}
.card3d__arrow {
  font-size: clamp(1rem, 2.1vw, 1.35rem);
  color: var(--faint);
  padding-bottom: 3px;
}
.card3d__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(14px, 2.6vw, 30px);
}
.card3d__bottom i {
  display: block;
  font-family: var(--f-mono);
  font-size: .52rem;
  letter-spacing: .26em;
  color: var(--faint);
  margin-bottom: 5px;
}
.card3d__bottom b {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: clamp(.68rem, 1.5vw, .82rem);
  letter-spacing: .16em;
}
.card3d__bottom b.is-jade { color: var(--jade); }

.cardsec__shadow {
  position: absolute;
  bottom: -12%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 60px;
  background: radial-gradient(50% 100% at 50% 50%, rgba(0, 0, 0, .75), transparent 70%);
  filter: blur(10px);
  z-index: -1;
}

/* ============================================================
   DIAGONAL MARQUEE
   ============================================================ */
.diag {
  position: relative;
  transform: rotate(-2.4deg);
  margin-block: clamp(-30px, -2vw, -14px);
  width: 110vw;
  margin-left: -5vw;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--void);
  overflow: clip;
  z-index: 6;
}
.diag__track {
  display: flex;
  width: max-content;
  padding-block: clamp(14px, 1.8vw, 22px);
  animation: ticker 34s linear infinite reverse;
}
.diag__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
  padding-inline: clamp(14px, 1.8vw, 24px);
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 380;
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.8rem);
  color: var(--jade);
  white-space: nowrap;
}
.diag__item b { color: var(--gold); font-size: .45em; font-weight: 400; }
.diag__item i { font-style: inherit; }

/* ============================================================
   STEPS (horizontal pinned)
   ============================================================ */
.steps { height: 430vh; background: var(--pit); }
.steps__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: clip;
  display: flex;
  align-items: center;
}
.steps__track {
  display: flex;
  align-items: center;
  width: max-content;
  padding-inline: var(--pad-x);
  gap: clamp(40px, 7vw, 120px);
  transform: translateX(var(--tx, 0px));
  will-change: transform;
}
.steps__panel {
  width: min(78vw, 640px);
  flex: none;
}
.steps__panel--intro { width: min(70vw, 520px); }
.steps__hint {
  margin-top: 26px;
  font-family: var(--f-mono);
  font-size: .66rem;
  letter-spacing: .3em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
}
.steps__num {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(5rem, 4rem + 9vw, 12rem);
  line-height: 1;
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 232, 220, .22);
  margin-bottom: 8px;
}
.steps__title {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 1.6rem + 3vw, 4rem);
  color: var(--jade);
  margin-bottom: 16px;
  letter-spacing: -.01em;
}
.steps__text { color: var(--muted); max-width: 42ch; margin-bottom: 26px; }

.receipt {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--bone);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 18px;
  background: linear-gradient(160deg, rgba(13, 21, 18, .8), rgba(5, 8, 7, .8));
}
.receipt__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 12px rgba(63, 224, 176, .9);
  animation: sparkpulse 2s ease-in-out infinite;
  flex: none;
}
.receipt b { color: var(--jade); }

.steps__progress {
  position: absolute;
  bottom: 40px;
  left: var(--pad-x); right: var(--pad-x);
  height: 1px;
  background: var(--line-soft);
}
.steps__progress span {
  display: block;
  height: 100%;
  background: var(--jade);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

/* ============================================================
   VAULT / SECURITY
   ============================================================ */
.vault { padding-block: var(--sect); overflow: clip; }
.vault__layout {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.vault__list { margin-top: clamp(30px, 4vw, 50px); }
.vault__list li {
  display: flex;
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
}
.vault__list li:last-child { border-bottom: 1px solid var(--line-soft); }
.vault__list i {
  font-family: var(--f-mono);
  font-size: .68rem;
  color: var(--gold);
  padding-top: 5px;
  flex: none;
}
.vault__list h3 {
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 1.06rem;
  margin-bottom: 6px;
  transition: color .3s ease;
}
.vault__list li:hover h3 { color: var(--jade); }
.vault__list p { color: var(--muted); font-size: .93rem; max-width: 48ch; }

.vault__stage { display: flex; justify-content: center; }
.vault__rings { width: min(100%, 480px); aspect-ratio: 1; position: relative; }
.vault__rings svg { width: 100%; height: 100%; overflow: visible; }
.vault__rings .v-spin { animation: spin 80s linear infinite; transform-origin: center; }
.vault__rings .v-spin--rev { animation: spin 55s linear infinite reverse; }
.vault__rings .v-spin--slow { animation: spin 130s linear infinite; }

/* ============================================================
   STATS
   ============================================================ */
.stats {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(3, 5, 4, .55);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: clamp(36px, 4.6vw, 64px) clamp(16px, 2.4vw, 40px);
  text-align: center;
}
.stat + .stat { border-left: 1px solid var(--line-soft); }
.stat__num {
  display: block;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 4rem);
  letter-spacing: -.02em;
  color: var(--bone);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat__label {
  display: block;
  margin-top: 10px;
  font-family: var(--f-mono);
  font-size: .64rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding-block: var(--sect); }
.faq .title { margin-bottom: clamp(40px, 5vw, 64px); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__item button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(20px, 2.6vw, 30px) 4px;
  text-align: left;
  font-family: var(--f-display);
  font-weight: 440;
  font-size: clamp(1.15rem, 1rem + 1vw, 1.6rem);
  letter-spacing: -.01em;
  transition: color .3s ease;
}
.faq__item button:hover { color: var(--jade); }
.faq__icon {
  position: relative;
  width: 34px; height: 34px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform .6s var(--e-out), border-color .3s ease, background-color .3s ease;
}
.faq__icon::before, .faq__icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.faq__icon::before { width: 12px; height: 1.4px; }
.faq__icon::after { width: 1.4px; height: 12px; transition: transform .5s var(--e-out); }
.faq__item.is-open .faq__icon { transform: rotate(180deg); border-color: var(--jade); background: rgba(63, 224, 176, .08); color: var(--jade); }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .7s var(--e-out);
}
.faq__body > div { overflow: hidden; }
.faq__body p {
  color: var(--muted);
  max-width: 62ch;
  padding: 0 4px clamp(22px, 2.6vw, 30px);
  font-size: .98rem;
}
.faq__item.is-open .faq__body { grid-template-rows: 1fr; }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  padding-block: calc(var(--sect) * 1.15);
  overflow: clip;
  text-align: center;
  background: var(--pit);
}
.cta__portal {
  position: absolute;
  left: 50%; top: 50%;
  width: min(120vmin, 1100px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  opacity: .8;
}
.cta__portal svg { width: 100%; height: 100%; overflow: visible; }
.cta__portal .p-spin { animation: spin 90s linear infinite; transform-origin: center; }
.cta__portal .p-breathe { animation: breathe 11s ease-in-out infinite alternate; transform-origin: center; }
.cta__portal .p-breathe--2 { animation-duration: 14s; animation-delay: -4s; }
.cta__glow {
  position: absolute;
  left: 50%; top: 50%;
  width: min(70vmin, 680px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(63, 224, 176, .14) 0%, rgba(63, 224, 176, .04) 40%, transparent 70%);
  animation: glowpulse 6s ease-in-out infinite alternate;
}
.cta__content { position: relative; z-index: 2; }
.cta .label { justify-content: center; }
.cta .label::after { content: ''; width: 34px; height: 1px; background: var(--jade); }
.cta__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(3rem, 1.6rem + 7.4vw, 8rem);
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.cta__title em { font-style: italic; color: var(--jade); font-weight: 340; }
.cta .sub { margin-inline: auto; margin-bottom: clamp(34px, 4.6vw, 54px); }

.cta__form {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin-inline: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(5, 8, 7, .72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color .4s ease, box-shadow .4s ease, opacity .5s ease, transform .5s ease;
}
.cta__form:focus-within {
  border-color: rgba(63, 224, 176, .45);
  box-shadow: 0 0 60px -18px rgba(63, 224, 176, .35);
}
.cta__form input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  color: var(--bone);
  font-family: var(--f-mono);
  font-size: .9rem;
  padding-left: 22px;
  letter-spacing: .04em;
}
.cta__form input::placeholder { color: var(--faint); }
.cta__form input:focus { outline: none; }
.cta__form .btn { flex: none; }
.cta__form.is-sent { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.cta__form.is-error { animation: shake .5s var(--e-out); border-color: rgba(224, 106, 74, .55); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-10px); }
  40% { transform: translateX(9px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(4px); }
}

.cta__success {
  font-family: var(--f-mono);
  font-size: .85rem;
  letter-spacing: .14em;
  color: var(--jade);
  margin-top: -38px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease .25s, transform .6s var(--e-out) .25s;
  pointer-events: none;
}
.cta.is-sent .cta__success { opacity: 1; transform: none; }

.cta__legal {
  margin-top: 26px;
  font-family: var(--f-mono);
  font-size: .62rem;
  letter-spacing: .18em;
  color: var(--faint);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line-soft);
  background: var(--pit);
  overflow: clip;
}
.footer__mark {
  padding: clamp(40px, 6vw, 90px) 0 0;
  display: flex;
  justify-content: center;
  user-select: none;
}
.footer__mark span {
  font-family: var(--f-sans);
  font-weight: 700;
  font-size: clamp(3.4rem, 12.5vw, 12.5rem);
  line-height: .9;
  letter-spacing: .06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 232, 220, .18);
  white-space: nowrap;
  transition: -webkit-text-stroke-color .6s ease, color .6s ease;
}
.footer__mark:hover span { -webkit-text-stroke-color: rgba(63, 224, 176, .5); }

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.4fr));
  gap: clamp(30px, 4vw, 60px);
  padding-block: clamp(50px, 6vw, 90px);
}
.footer__brand p { color: var(--muted); font-size: .95rem; max-width: 30ch; margin-top: 18px; }
.footer__glyph { width: 34px; }
.footer__col { display: flex; flex-direction: column; gap: 13px; }
.footer__col h4 {
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: .64rem;
  letter-spacing: .3em;
  color: var(--gold);
  margin-bottom: 10px;
}
.footer__col a {
  color: var(--muted);
  font-size: .92rem;
  width: fit-content;
  position: relative;
  transition: color .3s ease, transform .4s var(--e-out);
}
.footer__col a:hover { color: var(--jade); transform: translateX(6px); }

.footer__legal {
  border-top: 1px solid var(--line-soft);
  padding-block: 30px 40px;
}
.footer__legal > p {
  color: var(--faint);
  font-size: .74rem;
  line-height: 1.7;
  max-width: 90ch;
  margin-bottom: 24px;
}
.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  font-family: var(--f-mono);
  font-size: .6rem;
  letter-spacing: .22em;
  color: var(--faint);
}
.footer__base span:nth-child(2) { color: var(--jade); }

/* ============================================================
   REVEAL UTILITY
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 1s ease var(--d, 0s), transform 1.1s var(--e-out) var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .bcard--a, .bcard--b, .bcard--c, .bcard--d { grid-column: span 6; }
  .cardsec__layout { grid-template-columns: 1fr; gap: 50px; }
  .cardsec { height: auto; padding-block: var(--sect); }
  .cardsec__sticky { position: static; height: auto; padding-block: 0; background: none; }
  .cardsec__stage { margin-top: 10px; }
  .card3d { transform: none; animation: cardfloat 7s ease-in-out infinite alternate; }
  @keyframes cardfloat {
    from { transform: rotateX(6deg) rotateY(-8deg); }
    to { transform: rotateX(2deg) rotateY(5deg); }
  }
  .vault__layout { grid-template-columns: 1fr; }
  .vault__stage { order: -1; }
  .vault__rings { width: min(70vw, 380px); }
}

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .burger { display: block; }
  .depth { display: none; }
  .steps { height: auto; background: var(--pit); padding-block: var(--sect); }
  .steps__sticky { position: static; height: auto; display: block; overflow: visible; }
  .steps__track {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    transform: none !important;
    gap: clamp(50px, 9vw, 80px);
  }
  .steps__panel, .steps__panel--intro { width: 100%; max-width: 640px; }
  .steps__hint { display: none; }
  .steps__progress { display: none; }
}

@media (max-width: 640px) {
  :root { --sect: clamp(90px, 18vw, 130px); }
  .bcard--a, .bcard--b, .bcard--c, .bcard--d { grid-column: span 12; }
  .bcard { min-height: 330px; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stat { border-left: 0 !important; }
  .stat:nth-child(even) { border-left: 1px solid var(--line-soft) !important; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .hero__corner { display: none; }
  .hero__scroll { white-space: nowrap; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
  .cta__form { flex-direction: column; border-radius: 24px; padding: 10px; }
  .cta__form input { padding: 14px 16px; }
  .cta__form .btn { width: 100%; }
  .cta__success { margin-top: -30px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
  .ticker__item { font-size: .64rem; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .ticker__track, .diag__track { animation: none; transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .h-line > span { transform: none; }
  .hero__sub, .hero__ctas, .hero__eyebrow, .hero__corner, .hero__scroll { opacity: 1; transform: none; }
  .manifesto__text .w { opacity: 1 !important; }
  .hero__canvas { display: none; }
  .cardsec { height: auto; padding-block: var(--sect); }
  .cardsec__sticky { position: static; height: auto; }
  .steps { height: auto; padding-block: var(--sect); }
  .steps__sticky { position: static; height: auto; display: block; }
  .steps__track { flex-direction: column; align-items: flex-start; width: 100%; transform: none !important; gap: 60px; }
  .steps__progress { display: none; }
}
