/* MuDex — mudex.in, second direction: editorial black and paper, one gold thread. */

@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-latin-standard-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0a0a0b;
  --ink-2: #16161a;
  --paper: #f2efe8;
  --paper-2: #e6e2d8;
  --paper-line: #cfcabd;
  --muted-d: #8d8a83;
  --muted-p: #6f6b62;
  --gold: #e2b33c;
  --gold-deep: #b98a14;
  --up: #2fbf71;
  --down: #f6465d;
  --display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--paper); color: var(--ink); padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---- Type ---- */
.display {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 0.86;
  margin: 0;
}
.mono { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em; }
.label { text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; margin: 0; }
.muted { opacity: 0.6; }
.small { font-size: 11.5px; }
.kicker { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; margin: 0; }
.giant { font-size: clamp(76px, 19vw, 330px); }
.big { font-size: clamp(46px, 8.6vw, 140px); }

/* ---- Sections ---- */
section { position: relative; padding: clamp(80px, 12vh, 140px) var(--gutter); }
.dark { background: var(--ink); color: var(--paper); }
.paper { background: var(--paper); color: var(--ink); }
.paper .muted, .paper .mono.muted { color: var(--muted-p); opacity: 1; }
.dark .muted { color: var(--muted-d); opacity: 1; }
/* Grain, so the flat colour doesn't look like a screen. */
.dark::before, .paper::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(1120px, calc(100% - 24px));
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.9);
  border: 1px solid rgba(242, 239, 232, 0.12);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: var(--paper);
}
.nav-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.nav-brand b { color: var(--gold); font-weight: 800; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; padding: 8px 12px; border-radius: 999px; color: rgba(242, 239, 232, 0.75); }
.nav-links a:hover { color: var(--paper); background: rgba(242, 239, 232, 0.08); }
.nav-cta { display: flex; align-items: center; gap: 6px; }
.nav-login { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; padding: 8px 12px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #ecc35a; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ghost { border-color: rgba(242, 239, 232, 0.35); color: var(--paper); }
.btn.small { height: 32px; padding: 0 14px; font-size: 11.5px; }
.btn.big { height: 54px; padding: 0 28px; font-size: 14px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ---- The thread ---- */
.thread-clip { position: absolute; top: 0; left: 0; width: 100%; z-index: 2; pointer-events: none; }
.thread { position: absolute; top: 0; left: 0; width: 100%; pointer-events: none; overflow: visible; }
.thread-path { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.thread-head { fill: var(--gold); }
.thread-dot { display: none; position: absolute; top: -5px; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px var(--gold); z-index: 2; pointer-events: none; }
/* Scroll-linked (see main.js): the scroll moves the clip and the dot, in step with the page. */
.thread-linked .thread-clip { overflow: hidden; animation: thread-clip linear both; animation-timeline: scroll(root); }
.thread-linked .thread { animation: thread-unclip linear both; animation-timeline: scroll(root); }
.thread-linked .thread-head { display: none; }
.thread-linked .thread-dot { display: block; animation: thread-dot linear both; animation-timeline: scroll(root); }
/* Points the thread passes through. Edges keep it in the margin, beside the content. */
.edge { position: absolute; right: calc(var(--gutter) / 2); width: 1px; height: 1px; }
.edge.top { top: 64px; }
.edge.bottom { bottom: 64px; }
.edge.l { left: calc(var(--gutter) / 2); right: auto; }
.mark { display: inline-block; width: 0; height: 0.8em; vertical-align: baseline; }
.fit-in { display: inline; white-space: nowrap; }
/* Section headings rise into place the first time they're seen. */
.js .fit:not(.hero-title) .fit-in { display: inline-block; transform: translateY(0.3em); opacity: 0; transition: transform 1.2s cubic-bezier(0.16, 0.8, 0.2, 1), opacity 0.9s ease-out; }
.js .fit.in .fit-in { transform: none; opacity: 1; }
.giant, .big, .hero-title { will-change: transform; }
/* While the thread measures the page: everything at rest. */
.measuring .fit-in, .measuring .giant, .measuring .big, .measuring .hero-title { transform: none !important; transition: none !important; }

/* ---- Hero ---- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 120px; overflow: hidden; }
.hero-tick { position: absolute; top: 96px; left: var(--gutter); display: flex; align-items: center; gap: 10px; }
.hero-tick .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); }
.hero-tick b { font-weight: 600; }
.hero-title { font-size: clamp(48px, 10.6vw, 200px); position: relative; z-index: 1; }
.hero-title .line { display: block; overflow: hidden; white-space: nowrap; }
.hero-title .line > span { display: inline-block; }
.chart-from, .chart-to { position: absolute; width: 1px; height: 1px; }
.chart-from { left: var(--gutter); top: 68%; }
.chart-to { right: var(--gutter); top: 30%; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: clamp(40px, 8vh, 90px); }
.hero-sub { max-width: 520px; font-size: 14px; line-height: 1.6; margin: 0; letter-spacing: 0.01em; }
.scroll-cue { text-transform: uppercase; letter-spacing: 0.14em; font-size: 11.5px; text-decoration: none; white-space: nowrap; }
.scroll-cue span { color: var(--gold); }

/* Hero words rise in once. */
.js .hero-title .line > span { transform: translateY(105%); transition: transform 1s cubic-bezier(0.2, 0.7, 0.1, 1); }
.js.ready .hero-title .line > span { transform: none; }
.js .hero-title .line:nth-child(2) > span { transition-delay: 0.08s; }
.js .hero-title .line:nth-child(3) > span { transition-delay: 0.16s; }

/* ---- Statement ---- */
.statement { padding-top: clamp(110px, 18vh, 200px); padding-bottom: clamp(110px, 18vh, 200px); }
.statement-text { font-family: var(--display); font-stretch: 100%; font-weight: 600; font-size: clamp(30px, 4.6vw, 72px); line-height: 1.08; letter-spacing: -0.02em; max-width: 1180px; margin: 0; }
.statement-text em { font-style: normal; text-decoration: underline; text-decoration-color: var(--gold-deep); text-decoration-thickness: 0.08em; text-underline-offset: 0.12em; }
.statement-text .w { color: rgba(10, 10, 11, 0.16); transition: color 0.25s; }
.statement-text .w.on { color: var(--ink); }
.statement-text em.w { text-decoration-color: transparent; transition: color 0.25s, text-decoration-color 0.4s 0.1s; }
.statement-text em.w.on { text-decoration-color: var(--gold-deep); }
.statement-keys { display: flex; align-items: center; gap: 14px; margin-top: 48px; text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; color: var(--muted-p); }
.statement-keys .sep { flex: 1 1 48px; height: 1px; background: var(--paper-line); }

/* ---- Showcases ---- */
.show-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; margin-bottom: clamp(28px, 5vh, 56px); position: relative; z-index: 3; }
.show-lede { max-width: 440px; margin: 0; font-family: var(--mono); font-size: 13.5px; line-height: 1.6; text-align: right; letter-spacing: 0.01em; }
.giant.ghost { position: absolute; left: var(--gutter); right: var(--gutter); top: 50%; transform: translateY(-50%); text-align: center; z-index: 0; pointer-events: none; }
.paper .giant.ghost { color: rgba(10, 10, 11, 0.07); }
.dark .giant.ghost { color: rgba(242, 239, 232, 0.07); }

/* Cards: paper on black, ink lines on paper. */
.panel-card {
  position: relative;
  z-index: 3;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 20px 22px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.55);
}
.paper .panel-card { box-shadow: 10px 10px 0 -1px var(--paper-2), 10px 10px 0 0 var(--ink); }
.pc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--ink); }
.pc-brand { font-family: var(--display); font-weight: 800; font-stretch: 112%; text-transform: uppercase; font-size: 18px; letter-spacing: -0.01em; }
.panel-card .muted { color: var(--muted-p); opacity: 1; }

.seg { display: inline-flex; border: 1px solid var(--ink); border-radius: 999px; padding: 2px; gap: 2px; }
.seg button { border: none; background: none; padding: 6px 12px; border-radius: 999px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--ink); }
.seg button[aria-checked='true'] { background: var(--ink); color: var(--paper); }
.seg.small button { padding: 4px 10px; font-size: 11.5px; }

/* ---- 01 Trading ---- */
.show#trading { padding-bottom: clamp(100px, 14vh, 160px); }
.show#trading .giant { margin-bottom: -0.32em; position: relative; z-index: 1; }
.trade-stage { position: relative; min-height: 620px; display: grid; place-items: center; }
.orbit { position: absolute; inset: 4% 0; width: 100%; height: 92%; overflow: visible; }
.orbit ellipse { fill: none; stroke: rgba(242, 239, 232, 0.22); stroke-dasharray: 6 9; stroke-width: 1; vector-effect: non-scaling-stroke; }
.panel-card.trade { width: min(560px, 100%); }
.trade-row { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.qty { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; margin: 18px 0 6px; }
.qty input { accent-color: var(--ink); width: 100%; }
.qty-val { min-width: 70px; text-align: right; font-weight: 600; }
.trade-nums, .ledger-foot, .team-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 14px 0; border-top: 1px solid var(--paper-line); }
.trade-nums div, .ledger-foot div, .team-nums div { padding: 12px 12px 0 0; }
.trade-nums div + div, .ledger-foot div + div, .team-nums div + div { padding-left: 12px; border-left: 1px solid var(--paper-line); }
.trade-nums dt, .ledger-foot dt, .team-nums dt { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-p); }
.trade-nums dd, .ledger-foot dd, .team-nums dd { margin: 4px 0 0; font-size: 17px; font-weight: 600; letter-spacing: 0; }
.trade-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.positions { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.positions li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 9px 12px; border: 1px solid var(--paper-line); border-radius: 4px; font-family: var(--mono); font-size: 12.5px; animation: slip 0.35s ease-out; }
.positions .pnl { font-weight: 600; min-width: 92px; text-align: right; }
.positions button { border: 1px solid var(--ink); background: none; border-radius: 999px; padding: 3px 10px; font-family: var(--mono); font-size: 11px; color: var(--ink); }
.positions li.closed { opacity: 0.6; }
.up { color: var(--up); }
.down { color: var(--down); }
.panel-card .up { color: #16884b; }
.panel-card .down { color: #c9283e; }
@keyframes slip { from { opacity: 0; transform: translateY(-6px); } }

.float-card {
  position: absolute;
  z-index: 3;
  width: 210px;
  padding: 14px 16px;
  border: 1px solid rgba(242, 239, 232, 0.5);
  border-radius: 4px;
  background: rgba(10, 10, 11, 0.86);
  backdrop-filter: blur(4px);
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.1, 1), opacity 0.9s;
}
.float-card p { margin: 0; }
.float-card .label { color: var(--muted-d); margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(242, 239, 232, 0.18); }
.fc-title { font-size: 14px; font-weight: 600; margin-bottom: 6px !important; }
.fc-num { font-size: 22px; font-weight: 600; letter-spacing: 0; }
.float-card.c1 { left: 0; top: 4%; transform: rotate(-4deg); }
.float-card.c2 { right: 0; top: 8%; transform: rotate(3deg); }
.float-card.c3 { right: 2%; bottom: 4%; transform: rotate(-2deg); }
.float-card.c4 { left: 2%; bottom: 2%; transform: rotate(2deg); }
.js .float-card:not(.in) { opacity: 0; transform: translateY(30px) rotate(0deg); }
.mini-rates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mini-rates li { display: flex; justify-content: space-between; gap: 8px; }
.mini-rates b { font-weight: 600; }
.c3.hit { border-color: var(--gold); }
.c3.hit [data-alert-state] { color: var(--gold); }

/* ---- Scroll scenes (pinned) ---- */
.scene { padding: 0; height: var(--len); }
.scene .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; padding: 100px var(--gutter) 40px; display: flex; flex-direction: column; }

/* ---- 02 Stock ---- */
.invoices { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.invoice {
  position: absolute;
  left: 0;
  top: 0;
  width: 250px;
  padding: 14px 16px;
  background: #fbf9f4;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 3px;
  box-shadow: 0 18px 40px -18px rgba(10, 10, 11, 0.45);
  font-family: var(--mono);
  font-size: 11.5px;
  will-change: transform, opacity;
}
.invoice .inv-kind { display: flex; justify-content: space-between; text-transform: uppercase; letter-spacing: 0.12em; font-size: 10.5px; color: var(--muted-p); }
.invoice .inv-party { font-family: var(--display); font-weight: 800; font-stretch: 105%; text-transform: uppercase; font-size: 17px; margin: 8px 0 10px; letter-spacing: -0.01em; }
.invoice table { width: 100%; border-collapse: collapse; }
.invoice td { padding: 3px 0; border-top: 1px solid var(--paper-line); }
.invoice td:last-child { text-align: right; }
.invoice.sale .inv-party::before { content: '→ '; color: var(--gold-deep); }
.panel-card.ledger { margin-left: auto; width: min(620px, 100%); margin-top: auto; margin-bottom: auto; }
.ledger table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ledger th { text-align: left; font-weight: 500; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-p); padding: 0 6px 8px 0; }
.ledger td { padding: 8px 6px 8px 0; border-top: 1px solid var(--paper-line); white-space: nowrap; }
.ledger .r { text-align: right; }
.ledger tr.new td { animation: rowIn 0.6s ease-out; }
.ledger tr.sale td:first-child { color: var(--gold-deep); }
.ledger tbody:empty::after { content: 'Invoices land here as you scroll'; display: block; padding: 18px 0; color: var(--muted-p); }
@keyframes rowIn { from { background: rgba(226, 179, 60, 0.28); } }
.ledger-actions { display: flex; align-items: center; gap: 12px; }

/* ---- 03 KYC ---- */
.docs { position: absolute; left: var(--gutter); top: 0; bottom: 0; width: 46%; z-index: 3; }
.doc {
  position: absolute;
  margin: 0;
  width: 290px;
  padding: 16px 18px;
  background: #f7f4ed;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 3px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.6);
  font-size: 12px;
  transform-origin: 50% 100%;
  will-change: transform;
}
.doc p { margin: 0 0 4px; }
.doc .label { color: var(--muted-p); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--paper-line); }
.doc-title { font-family: var(--display); font-weight: 800; font-stretch: 108%; text-transform: uppercase; font-size: 20px; letter-spacing: -0.01em; margin-bottom: 8px !important; }
.doc-lines { height: 46px; margin-top: 10px; background: repeating-linear-gradient(to bottom, var(--paper-line) 0 1px, transparent 1px 9px); }
.doc .cancel { position: absolute; right: 14px; top: 12px; font-size: 13px; font-family: var(--display); font-weight: 800; text-transform: uppercase; color: var(--gold-deep); border: 2px solid var(--gold-deep); padding: 2px 8px; transform: rotate(-12deg); }
.doc.checked { outline: 2px solid var(--gold); outline-offset: 3px; }
.panel-card.verify { margin-left: auto; width: min(520px, 100%); margin-top: auto; margin-bottom: auto; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; }
.checks li { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--paper-line); color: var(--muted-p); transition: color 0.3s; }
.checks .tick { flex: none; width: 18px; height: 18px; border: 1px solid var(--muted-p); border-radius: 50%; position: relative; transition: background 0.3s, border-color 0.3s; }
.checks li.done { color: var(--ink); }
.checks li.done .tick { background: var(--ink); border-color: var(--ink); }
.checks li.done .tick::after { content: ''; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid var(--gold); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.stamp {
  margin: 16px 0 6px;
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--gold-deep);
  border: 2px solid var(--gold-deep);
  padding: 4px 12px;
  transform: rotate(-3deg) scale(1.6);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.2, 1.6, 0.4, 1), opacity 0.2s;
}
.stamp.on { opacity: 1; transform: rotate(-3deg) scale(1); }
.gst-try { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ink); }
.gst-row { display: flex; gap: 10px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.gst-row input { flex: 1 1 200px; min-width: 0; height: 38px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 4px; background: #fff; color: var(--ink); text-transform: uppercase; font-size: 13px; letter-spacing: 0.08em; }
.gst-out { font-size: 12px; }
.gst-out.ok { color: #16884b; }
.gst-out.bad { color: #c9283e; }

/* ---- 04 Team ---- */
.show#team .big { margin-bottom: clamp(30px, 6vh, 60px); }
.team-stage { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(18px, 3vw, 40px); align-items: start; }
.team-nums dd { transition: opacity 0.2s; }
.team-nums dd.hidden-for { opacity: 0.25; }
.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.people button { width: 100%; display: flex; justify-content: space-between; gap: 12px; align-items: center; text-align: left; padding: 11px 14px; border: 1px solid var(--paper-line); border-radius: 4px; background: none; color: var(--ink); }
.people button b { font-family: var(--display); font-weight: 800; font-stretch: 105%; text-transform: uppercase; }
.people button[aria-pressed='true'] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.people-note { margin: 12px 0 0; color: var(--muted-p); min-height: 2.6em; }
.team-card .hidden-mark { display: block; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); margin-top: 4px; }

/* ---- Security ---- */
.security .giant { margin: 18px 0 clamp(40px, 7vh, 80px); }
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(242, 239, 232, 0.25); }
.sec-item { padding: 26px 26px 0 0; }
.sec-item + .sec-item { padding-left: 26px; border-left: 1px solid rgba(242, 239, 232, 0.25); }
.sec-item h3 { font-family: var(--display); font-weight: 800; font-stretch: 108%; text-transform: uppercase; font-size: clamp(20px, 2vw, 28px); letter-spacing: -0.01em; line-height: 1; margin: 14px 0 12px; }
.sec-item p:last-child { color: rgba(242, 239, 232, 0.7); margin: 0; max-width: 34ch; }
.js [data-reveal]:not(.in) { opacity: 0; transform: translateY(24px); }
[data-reveal] { transition: opacity 0.8s, transform 0.8s cubic-bezier(0.2, 0.7, 0.1, 1); }

/* ---- Pricing & FAQ ---- */
.pricing .big { margin: 18px 0 clamp(36px, 6vh, 64px); }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.price-card { border: 1px solid var(--ink); border-radius: 4px; padding: 24px 26px; background: #f7f4ed; }
.price { font-family: var(--display); font-weight: 800; font-stretch: 110%; font-size: clamp(48px, 6vw, 84px); line-height: 1; margin: 14px 0 18px; letter-spacing: -0.03em; }
.price .mono { font-size: 0.42em; vertical-align: 0.6em; margin-right: 4px; letter-spacing: 0; }
.price .per { font-size: 14px; vertical-align: baseline; margin-left: 8px; color: var(--muted-p); }
.price-text { font-size: clamp(34px, 4vw, 54px); }
.price-card ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--paper-line); }
.price-card li { padding: 10px 0; border-bottom: 1px solid var(--paper-line); font-size: 12.5px; }
.price-note { margin: 22px 0 0; color: var(--muted-p); }
.faq { margin-top: clamp(50px, 9vh, 90px); border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--paper-line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; gap: 18px; font-family: var(--display); font-weight: 700; font-stretch: 105%; font-size: clamp(18px, 2vw, 24px); text-transform: uppercase; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); font-weight: 400; color: var(--gold-deep); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; max-width: 70ch; color: #3a3832; }

/* ---- Close ---- */
.close { padding-top: clamp(120px, 20vh, 220px); }
.close-title { font-size: clamp(56px, 11vw, 190px); }
.close-cta { display: flex; gap: 12px; margin-top: 44px; flex-wrap: wrap; }
.foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(80px, 14vh, 160px); padding-top: 20px; border-top: 1px solid rgba(242, 239, 232, 0.2); color: var(--muted-d); text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; }

/* ---- Small screens ---- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .show-head { flex-direction: column; gap: 14px; }
  .show-lede { text-align: left; }
  .trade-stage { min-height: 0; display: flex; flex-direction: column; gap: 14px; }
  .orbit { display: none; }
  .float-card { position: relative; inset: auto !important; width: 100%; transform: none !important; }
  .trade-stage .float-card.c1, .trade-stage .float-card.c2 { order: 2; }
  .trade-stage .float-card.c3, .trade-stage .float-card.c4 { order: 3; }
  .panel-card.trade { order: 1; }
  .team-stage, .price-grid, .sec-grid { grid-template-columns: minmax(0, 1fr); }
  .sec-item + .sec-item { padding-left: 0; border-left: none; border-top: 1px solid rgba(242, 239, 232, 0.25); margin-top: 26px; }
  .docs { width: auto; right: var(--gutter); }
  .doc { width: 210px; font-size: 11px; }
  .panel-card.verify, .panel-card.ledger { margin-bottom: 0; }
}
/* Narrower than a laptop (phones, tablets): the moving parts get their own space, never behind a panel. */
@media (max-width: 960px) {
  /* Trading: the word above the panel, the panel above the line, the small cards in two columns. */
  .show#trading .giant { margin-bottom: 18px; }
  .trade-stage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; position: relative; z-index: 3; }
  .trade-stage .panel-card.trade { grid-column: 1 / -1; }
  .trade-stage .float-card { padding: 12px; }
  .trade-stage .float-card .fc-num { font-size: 18px; }
  .trade-stage .float-card .fc-title { font-size: 12.5px; }
  .trade-stage .float-card.c3, .trade-stage .float-card.c4 { grid-column: 1 / -1; }
  /* Stock: invoices wait across the top and drop into the ledger, in front of it. */
  #stock .giant.ghost { display: none; }
  #stock .invoices { z-index: 4; }
  #stock .panel-card.ledger { margin-top: auto; margin-bottom: 0; }
  #stock .ledger td, #stock .ledger th { padding-right: 4px; }
  /* KYC: the documents get their own strip; the checklist starts below it. */
  #kyc .giant.ghost { display: none; }
  #kyc .stage { justify-content: flex-start; }
  #kyc .panel-card.verify { margin: 6px 0 0; padding: 14px 16px; }
  #kyc .pc-head { padding-bottom: 10px; margin-bottom: 8px; }
  #kyc .stamp { margin: 8px 0 2px; }
  #kyc .gst-try { margin-top: 8px; padding-top: 8px; }
  .scene .stage { padding-bottom: 16px; }
  .scene .show-lede { display: none; }
  .docs { position: relative; inset: auto; width: 100%; height: 196px; flex: none; margin: 4px 0 0; }
  .doc { width: 150px; padding: 9px 11px; font-size: 9.5px; }
  .doc-title { font-size: 13px; margin-bottom: 4px !important; }
  .doc-lines, .doc .label + .doc-title + .mono + .mono.muted { display: none; }
  .doc .label { margin-bottom: 6px; padding-bottom: 5px; }
  .checks li { padding: 6px 0; font-size: 11.5px; }
  .stamp { font-size: 17px; margin: 10px 0 4px; }
  .ledger th:nth-child(5), .ledger td:nth-child(5) { display: none; }
  .invoice { width: 190px; font-size: 10.5px; }
  .scene .stage { padding-top: 84px; }
}
@media (max-width: 600px) {
  .nav-login { display: none; }
  .hero-title { font-size: 20vw; }
  .hero-title .line { white-space: normal; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .hero-tick { top: 84px; }
  .trade-nums dd, .ledger-foot dd, .team-nums dd { font-size: 14px; }
  .panel-card { padding: 16px; }
  .show-lede { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero-title .line > span, .js .float-card:not(.in), .js [data-reveal]:not(.in), .js .fit .fit-in { transform: none !important; opacity: 1 !important; }
}

/* ---- Legal pages: privacy policy and terms ---- */
.legal-page { background: var(--paper); }
.legal { padding: 140px var(--gutter) 90px; min-height: 100vh; }
.legal h1 { font-size: clamp(44px, 8vw, 104px); margin: 16px 0 14px; }
.legal-meta { color: var(--muted-p); margin: 0 0 44px; }
.legal-body { max-width: 760px; font-size: 15.5px; line-height: 1.7; color: #22211d; }
.legal-body .lead { font-size: 18px; line-height: 1.6; color: var(--ink); margin: 0 0 32px; }
.legal-body h2 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 108%;
  text-transform: uppercase;
  font-size: 19px;
  letter-spacing: -0.005em;
  margin: 44px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--paper-line);
}
.legal-body h3 { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-p); margin: 22px 0 6px; font-weight: 500; }
.legal-body p { margin: 0 0 12px; }
.legal-body ul { margin: 0 0 12px; padding-left: 20px; }
.legal-body li { margin: 6px 0; }
.legal-body li::marker { color: var(--gold-deep); }
.legal-body a { color: var(--ink); text-decoration-color: var(--gold-deep); text-underline-offset: 3px; }
.legal-body address { font-style: normal; font-size: 13px; line-height: 1.8; padding: 14px 16px; border: 1px solid var(--ink); border-radius: 4px; background: #f7f4ed; margin: 8px 0 14px; }
/* Details still to be filled in before the page goes public. */
.todo { background: rgba(226, 179, 60, 0.35); padding: 0 4px; border-radius: 2px; }
.legal-page .nav-links a[aria-current='page'] { color: var(--paper); background: rgba(242, 239, 232, 0.1); }
.legal-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px var(--gutter); background: var(--ink); color: var(--muted-d); text-transform: uppercase; letter-spacing: 0.12em; font-size: 11px; }
.legal-foot a, .foot a { color: inherit; text-decoration: none; }
.legal-foot a:hover, .foot a:hover { color: var(--paper); }
@media (max-width: 960px) { .legal-page .nav-links { display: flex; } .legal-page .nav-links a { padding: 8px 8px; } }
@media (max-width: 600px) { .legal { padding-top: 110px; } .legal-page .nav-links { display: none; } }
