:root {
  --black: #0d050d;
  --dark: #3c183c;
  --purple: #7b4788;
  --violet: #6f1f7c;
  --lavender: #dfc6ef;
  --white: #fff;
  --surface: #f8f5f9;
  --muted: #625763;
  --line: #e8e0e8;
  --nav-height: 70px;
  --ease: cubic-bezier(.22, .68, .15, 1);
  --font: "Inter", "Glow Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--black);
  background: var(--white);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 600; }
img { display: block; max-width: 100%; object-fit: contain; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--nav-height) + 20px); }
:focus-visible { outline: 2px solid #a66db5; outline-offset: 5px; }
::selection { background: var(--lavender); color: var(--black); }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { position: fixed; z-index: 20; top: 10px; left: 10px; padding: 8px 14px; background: white; }
.shell { width: min(100% - 128px, 1200px); margin-inline: auto; }
.section-pad { padding-block: clamp(88px, 10.6vw, 156px); }

.header {
  position: fixed; z-index: 10; inset: 0 0 auto;
  background: rgba(250, 247, 250, .70);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(61, 21, 61, .08);
  transition: background .3s ease;
}
.header.scrolled { background: rgba(255,255,255,.91); }
.nav {
  min-height: var(--nav-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
}
.brand { display: inline-flex; align-items: center; justify-self: start; padding-block: 12px; }
.brand img { width: 108px; height: auto; }
.nav-links { display: flex; align-items: stretch; align-self: stretch; gap: clamp(25px, 3.1vw, 48px); }
.nav-links a { position: relative; display: flex; align-items: center; color: #514653; font-size: 13px; font-weight: 550; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--black); }
.nav-links a[aria-current]::after {
  content: ""; position: absolute; bottom: 0; height: 1px; inset-inline: 0;
  background: var(--purple);
}
.menu-button, .nav-links .mobile-contact { display: none; }
.page-progress { position: absolute; bottom: -1px; left: 0; right: 0; height: 1px; background: var(--purple); transform: scaleX(0); transform-origin: left; opacity: .55; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  width: fit-content; min-height: 49px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 100px;
  font-size: 13px; font-weight: 600;
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .3s var(--ease);
}
.arrow {
  --angle: -45deg;
  display: inline-block; width: 12px; height: 12px; position: relative; flex: none;
  transform: rotate(var(--angle));
}
.arrow::before, .arrow::after { content: ""; position: absolute; }
.arrow::before { width: 9px; height: 1px; top: 5.5px; left: 1px; background: currentColor; }
.arrow::after { top: 3px; right: 2px; width: 6px; height: 6px; border: solid currentColor; border-width: 1px 1px 0 0; transform: rotate(45deg); }
.arrow-down { --angle: 90deg; }
.arrow-up { --angle: -90deg; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.nav-cta { justify-self: end; min-height: 36px; padding-inline: 15px; border-color: #0d050d29; font-size: 12px; }
.nav-cta:hover { background: var(--black); border-color: var(--black); color: white; }
.button-dark { color: var(--white); background: var(--black); }
.button-dark:hover { background: var(--dark); }
.button-light { background: var(--white); color: var(--black); }
.button-light:hover { background: var(--lavender); }
.button-outline { border-color: #fffeff75; color: white; }
.button-outline:hover { background: #ffffff19; border-color: white; }

.hero {
  --pose-x: 0px; --pose-y: 0px;
  position: relative; isolation: isolate; overflow: clip;
  min-height: 738px; height: min(900px, max(790px, 96svh));
  background: #d9c6de;
  text-align: center;
}
.hero-atmosphere, .hero-wash { position: absolute; z-index: -2; pointer-events: none; }
.hero-atmosphere {
  inset: -8%;
  background: url("./assets/atmosphere.webp") center 58%/cover no-repeat;
  transform: translate3d(var(--pose-x), var(--pose-y), 0);
  transition: transform 1.7s var(--ease);
}
.hero-wash {
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 5%, #f7effa 0%, #f4eaf8da 24%, #f2e4f5a0 42%, transparent 71%),
    linear-gradient(112deg, #e4c8e51a 20%, #f0d6fd2d 69%, #ece0ef8c);
}
.hero-wash::after {
  content: ""; position: absolute; inset: -18%;
  background: radial-gradient(ellipse at 68% 59%, #d9b3ed8a, transparent 45%), radial-gradient(ellipse at 24% 79%, #783d817d, transparent 55%);
  animation: atmosphere 17s ease-in-out infinite alternate;
  mix-blend-mode: soft-light;
}
@keyframes atmosphere {
  from { transform: translate3d(-4%, 2%, 0) rotate(-9deg) scale(1.04); }
  to { transform: translate3d(6%, -3%, 0) rotate(10deg) scale(1.16); }
}
.hero-copy {
  position: relative; z-index: 2; width: min(100% - 52px, 1120px); margin-inline: auto;
  padding-top: clamp(137px, 17.1vh, 176px);
  animation: hero-enter 1.1s var(--ease) both;
}
@keyframes hero-enter { from { opacity:0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero h1 {
  font-size: clamp(63px, 7.1vw, 116px);
  font-weight: 600; letter-spacing: -.079em; line-height: .98;
  text-wrap: balance;
}
.phone-break { display: none; }
.hero-copy p { text-wrap: balance; margin: 25px 0 27px; color: #4f3c53; font-size: clamp(16px, 1.45vw, 21px); letter-spacing: -.022em; }
.hero-art {
  position: absolute; inset: 48% 0 0; pointer-events: none;
  display: grid; place-items: center;
  animation: hero-enter 1.4s .14s var(--ease) both;
}
.hero-art canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fallback {
  position: absolute; width: clamp(200px, 31vw, 460px); height: auto;
  opacity: .75; filter: drop-shadow(0 25px 24px #3c183c5c);
}
.hero-art.is-drawn .hero-fallback { visibility: hidden; }
.hero-index { position: absolute; z-index: 2; inset: auto 0 31px; display: flex; align-items: center; justify-content: space-between; text-align: left; }
.hero-index > span { color: #271528; font: 10px/1 var(--mono); letter-spacing: .13em; }
.index-arrow { padding-inline: 5px; opacity: .65; }
.round-arrow {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid #0d050d40; border-radius: 50%;
  transition: background .25s, color .25s;
}
.round-arrow:hover { background: var(--black); color: white; }

.section-intro {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .46fr);
  align-items: end; gap: 30px;
  margin-bottom: clamp(36px, 5.5vw, 72px);
}
.section-intro h2, .contact h2 { font-size: clamp(49px, 6.45vw, 95px); letter-spacing: -.076em; line-height: .99; }
.section-intro p { max-width: 330px; padding-bottom: 3px; color: var(--muted); font-size: clamp(16px, 1.6vw, 21px); line-height: 1.48; letter-spacing: -.027em; }

.product-stage {
  border-radius: 22px; overflow: hidden; isolation: isolate;
  background: #e4d4e9;
  background-image: linear-gradient(120deg, #eee0f2f0 3%, #eaddf0c7 38%, #c49fd45c 96%), url("./assets/atmosphere.webp");
  background-size: cover;
  background-position: center;
}
.product-layout { min-height: 482px; display: grid; align-items: center; grid-template-columns: .80fr 1.20fr; gap: clamp(20px, 4vw, 65px); padding: clamp(24px, 5vw, 76px); }
.product-aside { min-width: 0; align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.product-tabs {
  display: inline-flex; gap: 2px; padding: 4px;
  border: 1px solid #43234b17; background: #ffffff3d; border-radius: 100px;
}
.product-tabs button {
  padding: 6px 15px; color: #5c3e63; background: transparent;
  border: 0; border-radius: 100px; font-size: 13px; font-weight: 600;
  transition: background .22s, color .22s;
}
.product-tabs button:hover { color: var(--black); background: #ffffff61; }
.product-tabs button[aria-selected="true"] { background: var(--white); color: var(--black); box-shadow: 0 2px 6px #43234b10; }
.product-story { margin-top: 30px; min-height: 155px; }
.product-story h3 { margin-bottom: 12px; font-size: clamp(35px, 3.9vw, 57px); line-height: .99; letter-spacing: -.065em; }
.product-story p { color: #533b58; max-width: 270px; font-size: 15px; line-height: 1.48; }

.terminal {
  color: #f5eaf6; background: #150d17; border: 1px solid #ffffff35;
  border-radius: 17px; box-shadow: 0 25px 65px #3c183c31, 0 1px 0 #ffffff45 inset; overflow: hidden;
  min-width: 0;
}
.terminal-chrome {
  min-height: 52px; padding: 0 21px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #fff1; font: 10px var(--mono); color: #c9b5cb; white-space: nowrap;
}
.terminal-chrome img { width: 75px; height: auto; filter: invert(1); }
.terminal-dot { display: inline-block; width: 6px; height: 6px; margin-right: 3px; border-radius: 50%; background: #c5a2d7; }
.terminal-panel { padding: 20px; min-height: 278px; }
.terminal-panel:not([hidden]) { animation: swap .32s var(--ease) both; }
@keyframes swap { from { opacity: .45; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.terminal-head { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.asset-icon { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; background: #37203c; color: #f4dfff; font-size: 16px; flex: none; }
.terminal-title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.terminal-muted { color: #b7a6bd; font-size: 10px; line-height: 1.3; margin-top: 3px; }
.trade-price { margin-left: auto; text-align: right; font: 14px var(--mono); }
.trade-price small { color: #c2b0c6; font: 9px var(--mono); }
.chart-wrap { height: 145px; position: relative; margin-bottom: 13px; border-bottom: 1px solid #fff1; }
.chart-wrap canvas { width: calc(100% - 48px); height: 100%; display: block; }
.chart-axis { position: absolute; top: 0; right: 0; bottom: 7px; display: flex; flex-direction: column; justify-content: space-between; color: #a893af; font: 9px var(--mono); }
.trade-controls { display: flex; align-items: center; gap: 5px; }
.trade-controls button {
  padding: 3px 10px; color: #cdbdd2; background: transparent;
  border: 1px solid transparent; border-radius: 5px; font-size: 11px;
  transition: background .2s, border-color .2s;
}
.trade-controls button:hover { border-color: #fff3; }
.trade-controls button[aria-pressed="true"] { background: #492a51; color: white; }
.trade-controls > span { font: 9px var(--mono); margin-left: auto; color: #bda9c3; text-align: right; }
.record-list > div {
  display: flex; justify-content: space-between; gap: 10px; align-items: center;
  color: #c4b0ca; font-size: 11px;
}
.record-list dd { color: #f3e4f5; font: 11px var(--mono); }
.record-list > div { padding: 9px 0; border-bottom: 1px solid #fff2; transition: color .22s, background .22s; }
.record-list > div.active { color: white; background: #7b478883; }
.replay-button {
  width: 100%; margin-top: 14px; padding: 7px 12px;
  border: 1px solid #bd95cb55; border-radius: 7px; color: #fff1ff; background: #5327615e;
  font-size: 11px; text-align: left;
}
.replay-button span { float: right; }
.replay-button:hover { background: #76488a99; }
.replay-button:disabled { cursor: wait; }

.protocol { background: var(--black); color: #fbf4fd; overflow: hidden; isolation: isolate; }
.protocol .section-intro p { color: #bfaac4; }
.architecture {
  display: grid; grid-template-columns: 1.36fr 1fr;
  border: 1px solid #eac9ff28; border-radius: 22px;
  min-height: 420px; background: #180c1b;
  overflow: hidden;
}
.architecture-visual {
  overflow: hidden; min-height: 378px; position: relative; display: grid; align-items: center;
  border-right: 1px solid #eac9ff21;
  background: radial-gradient(ellipse at 50% 53%, #321439 11%, #190a1d 58%, #130716);
}
.architecture-visual::before {
  content: ""; position: absolute; inset: 0; opacity: .21;
  background: radial-gradient(#9d6ba9 0.75px, transparent 0.9px) 0 0/16px 16px;
  mask-image: radial-gradient(ellipse, black 18%, transparent 76%);
}
.architecture-glow {
  position: absolute; inset: 7%;
  background: radial-gradient(ellipse at center, #7b47888c, transparent 63%);
  transform: translateY(15%);
  transition: transform .9s var(--ease);
}
[data-layer="0"] .architecture-glow { transform: translateY(-10%); }
[data-layer="2"] .architecture-glow { transform: translateY(30%); }
.iso-stack { position: relative; height: 320px; width: 100%; pointer-events: none; }
.iso-layer {
  position: absolute; top: 51%; left: 50%; width: 40%; aspect-ratio: 1;
  transform: translate(-50%, -50%) translateY(var(--y)) rotateX(56deg) rotateZ(-42deg);
  border: 1px solid #c78add67; border-radius: 14px; background: #6f1f7c32;
  box-shadow: 0 7px 0 #61356973, 0 8px 0 #b273c082, 0 18px 31px #0d050d75;
  transition: transform .7s var(--ease), background .5s, box-shadow .5s, border-color .5s;
  overflow: hidden;
}
.iso-layer .iso-grid {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 17px, #dfc6ef3b 17px 18px),
    repeating-linear-gradient(0deg, transparent 0 17px, #dfc6ef3b 17px 18px);
  mask-image: linear-gradient(-15deg, black, transparent 92%);
}
.layer-0 { --y: -72px; z-index: 3; }
.layer-1 { --y: 0px; z-index: 2; }
.layer-2 { --y: 72px; z-index: 1; }
[data-layer="0"] .layer-0, [data-layer="1"] .layer-1, [data-layer="2"] .layer-2 {
  border-color: #f3ddffcd; background: linear-gradient(135deg, #d9a8f3af, #9f60b4b5 60%, #7b4788c9);
  box-shadow: 0 8px 0 #a96abea1, 0 9px 0 #f1c7fab5, 0 10px 36px #b081d186, inset 0 0 36px #ffdbff3b;
  transform: translate(-50%, -50%) translateY(calc(var(--y) - 9px)) rotateX(56deg) rotateZ(-42deg) scale(1.045);
}
.iso-ray {
  position: absolute; left: 50%; top: 7%; bottom: 0; width: 1px; z-index: 4;
  background: linear-gradient(transparent, #e0a9ff78 30%, #fcecff 53%, transparent 87%);
  box-shadow: 0 0 14px 1px #d089e968;
  animation: pulse 5s ease-in-out infinite alternate;
}
@keyframes pulse { from { opacity: .5; } to { opacity: .95; } }
.architecture-info { padding: clamp(28px, 4vw, 58px); align-self: center; }
/* Protocol layers as an accordion (design review 2026-11-20): each layer's text opens under its own row instead of
   replacing a shared paragraph below the list. One layer is always open; it drives the iso stack highlight. */
.architecture-tabs { display: flex; flex-direction: column; }
.layer-item { position: relative; border-bottom: 1px solid #dfc6ef29; transition: border-color .25s; }
.layer-item.is-open { border-color: #dfc6efa3; }
.architecture-tabs h3 { font: inherit; }
.architecture-tabs button {
  display: grid; grid-template-columns: 1fr 68px 18px; align-items: center; gap: 9px; min-height: 56px; width: 100%;
  text-align: left; background: none; border: 0; border-radius: 0;
  color: #c4adc9; font-size: clamp(16px, 1.65vw, 22px); letter-spacing: -.028em; padding: 0;
  transition: color .25s;
}
.architecture-tabs button:hover, .architecture-tabs button[aria-expanded="true"] { color: white; }
.architecture-tabs button small { font: 10px var(--mono); color: #bca4c0; }
.architecture-tabs button .arrow { margin-left: auto; opacity: .45; transition: transform .45s var(--ease), opacity .25s; }
.architecture-tabs button[aria-expanded="true"] .arrow { color: var(--lavender); opacity: 1; transform: rotate(90deg); }
.layer-panel { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .55s var(--ease), visibility 0s .55s; }
.layer-item.is-open .layer-panel { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .55s var(--ease), visibility 0s; }
.layer-panel > div { overflow: hidden; min-height: 0; }
.layer-panel p { max-width: 400px; padding: 2px 0 20px; font-size: 14px; line-height: 1.55; color: #cbb8d0; }
.protocol-note { display: grid; grid-template-columns: 1fr minmax(0, .62fr); align-items: end; gap: 30px; padding-top: 48px; }
.protocol-note h3 { font-size: clamp(32px, 4.25vw, 60px); line-height: 1.03; letter-spacing: -.065em; }
.protocol-note p { color: #cbb8d0; max-width: 350px; font-size: 16px; line-height: 1.52; }

.partner-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.partner-art {
  min-height: 305px; height: 28vw; max-height: 410px; display: grid; place-items: center;
  border-radius: 20px; background: var(--lavender); overflow: hidden; isolation: isolate; position: relative;
}
.partner-atmosphere {
  position: absolute; z-index: -1; inset: -12%;
  background: linear-gradient(130deg, #fff0ffad, transparent 89%), url("./assets/atmosphere.webp") center 85%/cover;
  animation: atmosphere 14s ease-in-out infinite alternate-reverse;
}
.partner-mark { width: 44%; max-width: 240px; aspect-ratio: 157/110; display: grid; background: none; filter: drop-shadow(0 15px 20px #3c183c4d); }
.partner-mark i { grid-area: 1 / 1; background: linear-gradient(140deg, #f9e9ff 4%, #e7c3f6 44%, #603168 91%); transition: transform .85s var(--ease); }
.partner-mark i:first-child { clip-path: polygon(0 100%, 17.4% 56%, 44.7% 56%, 38.1% 100%); }
.partner-mark i:last-child { clip-path: polygon(40% 100%, 80% 0, 100% 0, 84.6% 100%); }
.partner-art:hover .partner-mark i:first-child { transform: translate(-6%, 4%); }
.partner-art:hover .partner-mark i:last-child { transform: translate(6%, -4%); }
.partner-list { border-top: 1px solid var(--line); }
.partner-list details { border-bottom: 1px solid var(--line); }
.partner-list summary {
  cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  list-style: none; padding: 22px 0; font-weight: 550; font-size: clamp(20px, 2.3vw, 31px); letter-spacing: -.045em; line-height: 1.15;
}
.partner-list summary::-webkit-details-marker { display: none; }
.partner-list summary:hover { color: var(--purple); }
.partner-list summary span { width: 28px; height: 28px; border: 1px solid #e0d5e2; border-radius: 50%; flex: none; display: grid; place-items: center; }
.partner-list summary span::before, .partner-list summary span::after { content: ""; grid-area: 1/1; width: 10px; height: 1px; background: currentColor; transition: transform .25s; }
.partner-list summary span::after { transform: rotate(90deg); }
.partner-list [open] summary span::after { transform: none; }
.partner-list p { padding-bottom: 24px; color: var(--muted); max-width: 340px; font-size: 15px; animation: swap .32s var(--ease) both; }

.roadmap { background: var(--surface); }

.contact { position: relative; isolation: isolate; overflow: hidden; background: var(--dark); color: #fff8ff; }
.contact-atmosphere {
  position: absolute; inset: -6%; z-index: -1;
  background: linear-gradient(125deg, #100813f0 3%, #3c183cb9 54%, #582a61b7 100%), url("./assets/atmosphere.webp") center 62%/cover;
  animation: atmosphere 23s ease-in-out infinite alternate;
}
.contact-copy { text-align: center; padding: clamp(92px, 12.2vw, 168px) 22px clamp(76px, 9vw, 135px); }
.contact-copy img { width: 49px; height: auto; margin: 0 auto 26px; filter: invert(1); }
.contact h2 { font-size: clamp(52px, 7.6vw, 110px); }
.footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; min-height: 71px; border-top: 1px solid #fff3; color: #e3d3e6; font-size: 12px; }
.footer .brand img { width: 91px; filter: invert(1); }
.footer a:last-child { justify-self: end; }
.footer a:last-child:hover { color: white; }
.footer a span { margin-left: 4px; vertical-align: middle; }

.motion-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s var(--ease), transform .8s var(--ease); }
.motion-ready .reveal.in-view, .motion-ready .reveal:focus-within { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .shell { width: calc(100% - 88px); }
  .hero { min-height: 710px; height: min(830px, max(750px, 92svh)); }
  .section-intro { grid-template-columns: minmax(0, 1fr) minmax(0, .57fr); }
  .product-layout { grid-template-columns: .75fr 1.25fr; gap: 25px; min-height: 426px; }
}
@media (max-width: 760px) {
  :root { --nav-height: 60px; }
  .shell { width: calc(100% - 46px); }
  .nav { grid-template-columns: 1fr auto; gap: 10px; }
  .brand img { width: 101px; }
  .menu-button {
    display: grid; place-content: center; gap: 5px; width: 42px; height: 42px; border: 1px solid #0d050d2b;
    border-radius: 50%; background: transparent; padding: 8px;
  }
  .menu-button span { width: 14px; height: 1px; background: currentColor; transition: transform .2s; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3px) rotate(-45deg); }
  .nav-cta { display: none; }
  .nav-links { display: none; grid-column: 1 / -1; padding: 0 0 15px; gap: 0; }
  .nav-links.open { display: flex; flex-direction: column; }
  .nav-links a { min-height: 40px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
  .nav-links a[aria-current]::after { display: none; }
  .nav-links .mobile-contact { display: flex; }
  .hero { height: min(820px, max(640px, 93svh)); min-height: 640px; }
  .hero-copy { padding-top: clamp(126px, 17vh, 159px); width: calc(100% - 30px); }
  .hero h1 { font-size: clamp(49px, 9.8vw, 74px); }
  .hero-copy p { margin: 20px 0 24px; }
  .hero-art { inset-block-start: 49%; }
  .hero-index { bottom: 22px; }
  .section-intro { grid-template-columns: 1fr; gap: 19px; }
  .section-intro h2 { font-size: clamp(49px, 9vw, 69px); }
  .section-intro p { padding-bottom: 0; }
  .product-layout { grid-template-columns: 1fr; gap: 25px; padding: clamp(18px, 5vw, 34px); }
  .product-story { margin-top: 24px; min-height: 102px; }
  .product-story p { max-width: 380px; }
  .product-story h3 { font-size: clamp(35px, 7.5vw, 48px); }
  .architecture { grid-template-columns: 1fr; }
  .architecture-visual { min-height: 263px; border-right: 0; border-bottom: 1px solid #eac9ff21; }
  .iso-stack { height: 263px; }
  .iso-layer { width: min(40%, 165px); }
  .layer-0 { --y: -54px; }
  .layer-2 { --y: 54px; }
  .architecture-info { padding: 21px 23px 25px; }
  .protocol-note { grid-template-columns: 1fr; gap: 18px; }
  .partner-layout { grid-template-columns: 1fr; gap: 28px; }
  .partner-art { min-height: 235px; height: 52vw; max-height: 330px; }
  .footer { gap: 8px; font-size: 10px; }
  .footer .brand img { width: 70px; }
}
@media (max-width: 480px) {
  .phone-break { display: initial; }
  .hero h1 { font-size: clamp(46px, 11.3vw, 58px); }
}
@media (max-width: 385px) {
  .hero-copy p { font-size: 15px; }
  .terminal-panel { padding: 16px 12px; }
  .trade-price { font-size: 11px; }
  .trade-controls > span { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .motion-ready .reveal { opacity: 1; transform: none; }
}

/* VPERP v1.1 — conversion, micrograin, and organic fields */
@font-face {
  font-family: Inter;
  src: url('./assets/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root { --mono: Inter, "Glow Sans SC", sans-serif; }
button, input { font-family: var(--font); }
input, select, textarea { font-size: 16px; } /* never below 16px: iOS Safari zooms the page on focus otherwise */
body { font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11'; }
h1, h2, h3 { font-weight: 550; }
.nav-actions { display: flex; justify-self: end; align-items: center; gap: 22px; }
.nav-cta { border-color: transparent; min-height: 38px; padding-inline: 19px; }
.social-icon { display: grid; place-items: center; width: 25px; height: 34px; }
.social-icon svg { width: 15px; fill: currentColor; }
.social-icon:hover { color: var(--purple); }
.social-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.hero { min-height: 760px; height: max(760px, 100svh); max-height: 1080px; background: linear-gradient(to bottom, #faf5fc 45%, #7b4788 75%, #3c183c 100%); }
.hero-ascii { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-ascii .gradient-ascii-container { background: transparent; }
.hero-ascii > .gradient-ascii-container, .hero-ascii > canvas {
  mask-image: linear-gradient(to bottom, #000 calc(100% - 100px), transparent 100%);
}
.hero-ascii::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,.78) 0%, rgba(250,245,252,.86) 38%, rgba(223,198,239,.15) 62%, rgba(60,24,60,.25) 100%);
}
.hero-noise, .texture::after, .iso-layer::after, .partner-mark i::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: url('./assets/grain.png') repeat;
  /* Micrograin 0.8 CSS px (256px tile × 0.8), black 15% — design review 2026-11-20. Was 1.1px / 25%. */
  background-size: 204.8px 204.8px;
  opacity: .15;
}
.hero-noise { z-index: 1; mask-image: linear-gradient(to bottom, #000 45%, transparent 100%); }
.hero-copy { z-index: 3; padding-top: clamp(155px, 22vh, 220px); width: min(100% - 48px, 1050px); }
.hero h1 { font-size: clamp(65px, 7.4vw, 108px); letter-spacing: -.068em; font-weight: 550; line-height: 1.025; }
.hero-copy p { margin: 27px 0 30px; color: #533e57; font-size: clamp(16px, 1.45vw, 20px); }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hero-actions .button { min-height: 48px; padding-inline: 23px; }
.button-quiet { border-color: #3c183c35; background: #fff6; backdrop-filter: blur(10px); }
.button-quiet:hover { border-color: #3c183c90; background: #fffa; }
.hero-index { z-index: 3; bottom: 30px; }
.hero-social { font-size: 12px; display: flex; gap: 14px; align-items: center; color: #fff; text-shadow: 0 1px 12px #3c183c40; }
.hero-index .round-arrow { color: #fff; border-color: #ffffff65; }
.texture { position: relative; isolation: isolate; }
.texture::after { z-index: 0; }
.organic-clouds { position: absolute; inset: -22%; z-index: -1; overflow: hidden; pointer-events: none; background: #e7d2f1; }
.organic-clouds i {
  position: absolute; width: 90%; height: 80%;
  border-radius: 36% 64% 72% 28% / 48% 31% 69% 52%;
  filter: blur(52px); will-change: transform;
  animation: cloud-drift 27s cubic-bezier(.45,0,.55,1) infinite alternate;
}
.organic-clouds i:nth-child(1) { left: -18%; top: -28%; background: #fff; transform: rotate(-24deg); }
.organic-clouds i:nth-child(2) { right: -22%; bottom: -19%; background: var(--purple); animation-duration: 31s; animation-delay: -14s; }
.organic-clouds i:nth-child(3) { width: 53%; height: 115%; left: 22%; top: 5%; background: #dfc6ef; animation-duration: 23s; animation-delay: -9s; }
@keyframes cloud-drift {
  0% { transform: translate(-9%, -7%) rotate(-28deg) scale(.9, 1.12); border-radius: 36% 64% 72% 28% / 48% 31% 69% 52%; }
  55% { transform: translate(9%, 6%) rotate(14deg) scale(1.13, .9); border-radius: 74% 26% 37% 63% / 41% 74% 26% 59%; }
  100% { transform: translate(-3%, 12%) rotate(38deg) scale(.97, 1.15); border-radius: 28% 72% 55% 45% / 73% 29% 71% 27%; }
}
.product-stage { background: #e8d8ef; position: relative; }
.product-stage .organic-clouds { z-index: -1; opacity: .6; }
.product-layout { position: relative; z-index: 1; }
.product-story { min-height: 170px; }
.text-link { display: inline-flex; width: fit-content; align-items: center; gap: 13px; font-size: 14px; font-weight: 550; }
.text-link:hover .arrow { translate: 2px -2px; }
.text-link .arrow { transition: translate .25s var(--ease); }
.product-cta { margin-top: 9px; border-bottom: 1px solid #3c183c55; padding-bottom: 7px; }
.architecture-visual { background: #200d24; }
.architecture-glow {
  inset: -40%; border-radius: 37% 63% 71% 29% / 53% 31% 69% 47%;
  background: radial-gradient(ellipse at 32% 59%, #7b4788a0, #dfc6ef14 35%, transparent 65%);
  filter: blur(28px); animation: cloud-drift 28s ease-in-out infinite alternate;
}
.iso-stack { z-index: 1; }
.iso-layer::after { z-index: 2; }
.partner-art { background: #dfc6ef; }
.partner-mark { position: relative; z-index: 1; }
.partner-mark i { position: relative; }
.partner-mark i::after { z-index: 1; }
.contact { background: #29102e; }
.contact .organic-clouds { background: #3c183c; }
.contact .organic-clouds i { filter: blur(65px); }
.contact .organic-clouds i:nth-child(1) { background: #0d050d; left: -10%; top: -33%; width: 120%; }
.contact .organic-clouds i:nth-child(2) { background: var(--purple); right: -38%; bottom: -38%; }
.contact .organic-clouds i:nth-child(3) { background: #dfc6ef; opacity: .16; left: 5%; top: 52%; }
.contact-copy, .footer { position: relative; z-index: 1; }
.contact-copy { padding-block: clamp(90px, 11vw, 150px) 76px; }
.contact h2 { letter-spacing: -.067em; font-size: clamp(56px, 7.3vw, 104px); }
/* Bottom CTAs mirror the hero (design review 2026-11-21: the email form moved into the Join waitlist dialog). */
.contact-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.contact-actions .button { min-height: 48px; padding-inline: 23px; }
.waitlist-form { position: relative; display: flex; align-items: center; width: 100%; gap: 6px; padding: 6px; background: #fff; color: #1b0e1d; border: 1px solid #ffffff30; border-radius: 12px; text-align: left; }
.waitlist-form:focus-within { outline: 2px solid #a66db5; outline-offset: 5px; }
.waitlist-form:has(button:focus-visible) { outline: 0; } /* keyboard on the submit button: only the button's own ring */
.waitlist-form input { min-width: 0; flex: 1; width: 100%; background: transparent; border: 0; color: inherit; padding: 10px 12px; font-size: 16px; outline: 0; border-radius: 6px; }
.waitlist-form input::placeholder { color: #7f7282; }
.waitlist-form button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; flex: none; min-height: 43px; padding: 10px 17px; background: #3c183c; color: white; border: 0; border-radius: 7px; font-size: 12px; font-weight: 550; transition: background .2s; }
.waitlist-form button:hover { background: var(--purple); }
.waitlist-form button:disabled { opacity: .6; cursor: wait; }
.waitlist-form[data-complete] { border-color: #dfc6ef; }
.form-note { font-size: 11px; color: #d6bfdc; margin: 12px 0 0; }
.form-status { font-size: 13px; min-height: 22px; margin-top: 8px; color: #fff; }
.form-status[data-error] { color: #ffd5dd; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.launch-dialog { width: min(520px, calc(100% - 36px)); padding: 0; border: 1px solid #ffffff48; border-radius: 23px; background: #fcf9fd; color: #160c19; box-shadow: 0 32px 120px #16092040; max-height: calc(100svh - 40px); overflow: auto; }
.launch-dialog[open] { animation: dialog-in .35s var(--ease); }
.launch-dialog::backdrop { background: #18091c70; backdrop-filter: blur(16px); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.dialog-close { position: absolute; z-index: 3; top: 15px; right: 15px; border: 1px solid #3c183c20; background: #fff8; border-radius: 50%; color: #3c183c; width: 35px; height: 35px; font-size: 24px; line-height: 1; }
.dialog-close:hover { background: #fff; }
.dialog-art { height: 150px; overflow: hidden; display: grid; place-items: center; }
.dialog-art img { z-index: 1; opacity: .8; }
.dialog-content { padding: 32px 35px 35px; }
.dialog-content h2 { font-size: 43px; letter-spacing: -.06em; line-height: 1.08; }
.dialog-content > p { font-size: 14px; color: #6b576f; margin: 17px 0 23px; line-height: 1.5; }
.dialog-content .waitlist-form { border: 1px solid #d9c3df; }
.dialog-content .form-note { color: #79647e; }
.dialog-content .form-status { color: #4c2253; }
.dialog-content .form-status[data-error] { color: #8d2441; }
.dialog-content .social-links { margin-top: 17px; }
.dialog-content .text-link { font-size: 12px; }
body.dialog-open { overflow: hidden; }
@media (max-width: 1000px) {
 .nav { gap: 20px; }
 .nav-links { gap: 25px; }
 .nav-actions, .social-links { gap: 15px; }
 .hero { height: max(760px, 95svh); }
}
@media (max-width: 760px) {
 .nav { grid-template-columns: 1fr auto auto; column-gap: 14px; }
 .brand { grid-column: 1; grid-row: 1; }
 .nav-actions { grid-column: 2; grid-row: 1; }
 .nav-actions .social-icon { display: none; }
 .nav-actions .nav-cta { display: inline-flex; min-height: 34px; padding: 8px 14px; font-size: 11px; gap: 8px; }
 .menu-button { grid-column: 3; grid-row: 1; width: 34px; height: 34px; }
 .nav-links { grid-column: 1 / -1; grid-row: 2; }
 .hero { min-height: 730px; height: max(730px, 95svh); max-height: 920px; }
 .hero-copy { padding-top: clamp(145px, 23svh, 190px); width: calc(100% - 30px); }
 .hero h1 { font-size: clamp(52px, 9.8vw, 74px); letter-spacing: -.065em; }
 .hero-copy p { font-size: 16px; margin: 23px 24px 27px; }
 .hero-actions { gap: 9px; }
 .hero-actions .button { min-height: 44px; font-size: 12px; padding-inline: 17px; }
 .hero-index { bottom: 25px; }
 .hero-social { font-size: 11px; }
 .product-story { min-height: 105px; }
 .product-cta { margin-top: 16px; margin-bottom: 5px; font-size: 13px; }
 .contact h2 { font-size: clamp(54px, 10vw, 76px); }
 .contact-actions { gap: 9px; }
 .contact-actions .button { min-height: 44px; font-size: 12px; padding-inline: 17px; }
 .organic-clouds i { filter: blur(37px); }
}
@media (max-width: 480px) {
 .hero h1 { font-size: clamp(48px, 11.2vw, 58px); }
 .waitlist-form button { padding-inline: 12px; gap: 7px; font-size: 11px; }
 .waitlist-form input { padding-inline: 7px; }
 .dialog-content { padding: 28px 24px; }
 .dialog-content h2 { font-size: 37px; }
 .dialog-art { height: 126px; }
}
@media (prefers-reduced-motion: reduce) {
 .organic-clouds i, .architecture-glow { animation: none; will-change: auto; }
}
/* Clip decorative overflow without creating a focus-scroll container. */
.contact, .partner-art, .product-stage, .architecture-visual, .dialog-art { overflow: clip; }

/* VPERP v1.2 — hero intro (2026-11-20)
   The purple base fades in with the ASCII field instead of sitting there first.
   html.hero-intro is set by the inline <head> script only when motion is allowed;
   hero.jsx clears it once the field mounts. Copy enters after the field starts rising.
   (Design review 2026-11-20: back to this full-height hero with its bottom gradient, after trying a shorter hero
   and a hero without the gradient.) */
.hero { background: #faf5fc; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, #faf5fc 45%, #7b4788 75%, #3c183c 100%);
  transition: opacity 1.8s cubic-bezier(.22, 1, .36, 1) .45s;
}
.hero-intro .hero::before { opacity: 0; transition: none; }
.hero-copy { animation: none; }
.hero-copy h1, .hero-copy > p, .hero-actions { animation: hero-enter 1.2s var(--ease) both; }
.hero-copy h1 { animation-delay: .45s; }
.hero-copy > p { animation-delay: .7s; }
.hero-actions { animation-delay: .85s; }
.hero-index { animation: hero-fade 1.2s 1.7s var(--ease) both; }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
/* Canvas fallback (no WebGL2): a simple rise-and-fade instead of the shader sweep. */
.hero-ascii [data-renderer="canvas2d-fallback"] { animation: hero-field-in 1.6s .2s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes hero-field-in { from { opacity: 0; transform: translateY(6%); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .hero-copy h1, .hero-copy > p, .hero-actions, .hero-index, .hero-ascii [data-renderer="canvas2d-fallback"] { animation: none !important; }
  .hero::before { transition: none; }
}

/* VPERP v1.3 — transparent liquid-glass header (design review 2026-11-20)
   Fully clear over the top of the hero; once scrolled, a light glass (blur + saturation,
   faint top-down sheen, specular edge). Over data-tone="dark" sections the text flips light. */
.header {
  background: transparent; border-bottom-color: transparent;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: background .45s var(--ease), border-color .45s var(--ease), box-shadow .45s var(--ease), -webkit-backdrop-filter .45s var(--ease), backdrop-filter .45s var(--ease);
}
.header.scrolled {
  background: linear-gradient(180deg, rgba(255, 255, 255, .44), rgba(255, 255, 255, .2));
  -webkit-backdrop-filter: blur(18px) saturate(1.25) brightness(1.05);
  backdrop-filter: blur(18px) saturate(1.25) brightness(1.05);
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -1px 0 rgba(60, 24, 60, .06), 0 12px 32px -22px rgba(60, 24, 60, .35);
}
.header.on-dark.scrolled {
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(14, 5, 16, .42));
  -webkit-backdrop-filter: blur(24px) saturate(1.3) brightness(.6);
  backdrop-filter: blur(24px) saturate(1.3) brightness(.6);
  border-bottom-color: rgba(255, 255, 255, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 12px 32px -22px rgba(0, 0, 0, .6);
}
.header .brand img, .header .nav-links a, .header .lang-toggle, .header .social-icon, .header .nav-cta, .header .menu-button { transition: color .3s, background-color .3s, border-color .3s, filter .3s; }
.header.scrolled:not(.on-dark) .nav-links a { color: #33273a; } /* stays ≥ 4.5:1 over the purple part of the hero */
.header.on-dark .brand img { filter: invert(1); }
.header.on-dark .nav-links a { color: rgba(255, 255, 255, .86); }
/* Over the hero's purple half: same light glass, more frost, so dark text holds 4.5:1. */
.header.on-mid.scrolled { background: linear-gradient(180deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, .5)); }
.header.on-dark .nav-links a:hover, .header.on-dark .nav-links a[aria-current] { color: #fff; }
.header.on-dark .nav-links a[aria-current]::after { background: var(--lavender, #dfc6ef); }
.header.on-dark .social-icon, .header.on-dark .menu-button { color: #fff; }
.header.on-dark .menu-button { border-color: rgba(255, 255, 255, .35); }
.header.on-dark .nav-cta { background: #fff; color: var(--black); }
/* Mobile menu open: the list needs a readable surface. */
.header:has(.nav-links.open) { background: rgba(250, 247, 250, .9); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); }
.header.on-dark:has(.nav-links.open) { background: rgba(22, 9, 26, .9); }
/* Trading CTAs stay visible but do nothing until TRADING_URL is set. */
[data-open-trading][aria-disabled="true"] { cursor: default; }

/* VPERP v1.5 — two advantages (design review 2026-11-20)
   Dark band continues the hero's dark foot. Two equal cards; each diagram explains itself.
   Loops run only while .edge.is-live (in view); reduced motion shows the finished state. */
.edge { position: relative; background: linear-gradient(to bottom, #3c183c, #160a19 42%, #120814); color: #fbf4fd; padding-block: clamp(56px, 6vw, 96px) clamp(64px, 7vw, 110px); }
.edge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
.edge-card {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: clamp(26px, 3vw, 44px); border-radius: 26px;
  background: linear-gradient(160deg, rgba(123, 71, 136, .22), rgba(60, 24, 60, .12) 45%, rgba(255, 255, 255, .02));
  border: 1px solid rgba(223, 198, 239, .14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.edge-card h3 { font-size: clamp(30px, 3.3vw, 48px); line-height: 1.04; letter-spacing: -.05em; margin-top: 12px; }
.edge-card p { color: #cdb8d6; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.5; letter-spacing: -.02em; max-width: 440px; }
.edge-card .text-link { margin-top: auto; padding-top: 10px; color: #f6e5ff; }
.status-chip {
  display: inline-flex; align-items: center; vertical-align: .32em; margin-left: 6px;
  padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(223, 198, 239, .4);
  color: #dfc6ef; font-size: 12px; font-weight: 550; letter-spacing: .02em; line-height: 1;
}
.edge-visual { position: relative; height: clamp(180px, 17vw, 230px); border-radius: 18px; background: rgba(10, 4, 12, .45); border: 1px solid rgba(223, 198, 239, .08); overflow: hidden; }

/* Diagram 1: one rail, four stops lighting in turn. */
.edge-rail { display: grid; align-content: center; padding: 0 9% 18px; }
.rail-line { position: relative; height: 2px; margin-inline: 4px; background: linear-gradient(90deg, rgba(223, 198, 239, .18), rgba(223, 198, 239, .45), rgba(223, 198, 239, .18)); }
.rail-pulse { position: absolute; top: 50%; left: 0; width: 64px; height: 2px; translate: -50% -50%; background: linear-gradient(90deg, transparent, #dfc6ef, transparent); box-shadow: 0 0 18px 3px rgba(223, 198, 239, .5); opacity: 0; }
.rail-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: -7px; list-style: none; padding: 0; }
.rail-steps li { position: relative; padding-top: 26px; color: rgba(251, 244, 253, .55); font-size: 13px; font-weight: 550; letter-spacing: -.01em; }
.rail-steps li:nth-child(2) { text-align: center; translate: -16% 0; }
.rail-steps li:nth-child(3) { text-align: center; translate: 16% 0; }
.rail-steps li:last-child { text-align: right; }
.rail-steps li::before {
  content: ''; position: absolute; top: 0; width: 12px; height: 12px; border-radius: 50%;
  background: #241028; border: 1px solid rgba(223, 198, 239, .55);
}
.rail-steps li:first-child::before { left: 0; }
.rail-steps li:nth-child(2)::before, .rail-steps li:nth-child(3)::before { left: 50%; translate: -50% 0; }
.rail-steps li:last-child::before { right: 0; }
.edge.is-live .rail-pulse { animation: rail-run 4.8s cubic-bezier(.45, 0, .2, 1) infinite; }
.edge.is-live .rail-steps li { animation: rail-text 4.8s infinite; }
.edge.is-live .rail-steps li::before { animation: rail-node 4.8s infinite; }
.rail-steps li:nth-child(2), .rail-steps li:nth-child(2)::before { animation-delay: .75s !important; }
.rail-steps li:nth-child(3), .rail-steps li:nth-child(3)::before { animation-delay: 1.5s !important; }
.rail-steps li:nth-child(4), .rail-steps li:nth-child(4)::before { animation-delay: 2.25s !important; }
@keyframes rail-run { 0% { left: 0; opacity: 0; } 6% { opacity: 1; } 56% { left: 100%; opacity: 1; } 64%, 100% { left: 100%; opacity: 0; } }
@keyframes rail-node { 0%, 4% { background: #241028; box-shadow: none; } 10%, 70% { background: #dfc6ef; box-shadow: 0 0 0 5px rgba(223, 198, 239, .14), 0 0 22px rgba(223, 198, 239, .55); } 86%, 100% { background: #241028; box-shadow: none; } }
@keyframes rail-text { 0%, 4% { color: rgba(251, 244, 253, .55); } 10%, 70% { color: #fff; } 86%, 100% { color: rgba(251, 244, 253, .55); } }

/* Diagram 2: a new market slot locks onto shared execution in three steps. */
.edge-markets { display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto; column-gap: 8%; padding: 9% 9% 9%; align-items: end; }
.market-row { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; }
.market-tile { height: clamp(46px, 4.6vw, 64px); border-radius: 10px; background: linear-gradient(170deg, rgba(223, 198, 239, .5), rgba(123, 71, 136, .55)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.market-tile:nth-child(2) { height: clamp(58px, 5.8vw, 80px); }
.market-new { background: transparent; border: 1px dashed rgba(223, 198, 239, .55); box-shadow: none; height: clamp(52px, 5.2vw, 72px); }
.market-base { grid-column: 1; grid-row: 2; height: 10px; margin-top: 10px; border-radius: 5px; background: linear-gradient(90deg, rgba(223, 198, 239, .35), rgba(123, 71, 136, .7)); }
.market-steps { grid-column: 2; grid-row: 1 / 3; align-self: center; list-style: none; padding: 0; display: grid; gap: 14px; }
.market-steps li { display: flex; align-items: center; gap: 10px; color: rgba(251, 244, 253, .5); font-size: 13px; font-weight: 550; white-space: nowrap; }
.market-steps li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(223, 198, 239, .6); flex: none; }
.edge.is-live .market-steps li { animation: step-text 6s infinite; }
.edge.is-live .market-steps li::before { animation: step-dot 6s infinite; }
.market-steps li:nth-child(2), .market-steps li:nth-child(2)::before { animation-delay: 1s !important; }
.market-steps li:nth-child(3), .market-steps li:nth-child(3)::before { animation-delay: 2s !important; }
.edge.is-live .market-new { animation: tile-lock 6s infinite; }
@keyframes step-text { 0%, 6% { color: rgba(251, 244, 253, .5); } 12%, 72% { color: #fff; } 86%, 100% { color: rgba(251, 244, 253, .5); } }
@keyframes step-dot { 0%, 6% { background: transparent; } 12%, 72% { background: #dfc6ef; box-shadow: 0 0 12px rgba(223, 198, 239, .6); } 86%, 100% { background: transparent; box-shadow: none; } }
@keyframes tile-lock {
  0%, 44% { background: transparent; border-color: rgba(223, 198, 239, .55); transform: translateY(-14px); opacity: .7; box-shadow: none; }
  54%, 78% { background: linear-gradient(170deg, #dfc6ef, #7b4788); border-color: transparent; transform: none; opacity: 1; box-shadow: 0 0 28px rgba(223, 198, 239, .35), inset 0 1px 0 rgba(255, 255, 255, .35); }
  92%, 100% { background: transparent; border-color: rgba(223, 198, 239, .55); transform: translateY(-14px); opacity: .7; box-shadow: none; }
}
@media (max-width: 760px) {
  .edge-grid { grid-template-columns: 1fr; }
  .edge-card { border-radius: 22px; }
  .rail-steps li { font-size: 12px; }
  .edge-markets { column-gap: 6%; padding: 8%; }
  .market-steps li { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .edge .rail-pulse, .edge .rail-steps li, .edge .rail-steps li::before, .edge .market-steps li, .edge .market-steps li::before, .edge .market-new { animation: none !important; }
  .edge .rail-steps li { color: #fff; }
  .edge .rail-steps li::before { background: #dfc6ef; }
  .edge .market-steps li { color: #fff; }
  .edge .market-steps li::before { background: #dfc6ef; }
  .edge .market-new { background: linear-gradient(170deg, #dfc6ef, #7b4788); border-color: transparent; }
}

/* VPERP v1.6 — product demo (design review 2026-11-20)
   Light glass terminal; Trade shows the order lifecycle instead of a full candlestick chart. */
.terminal {
  color: #1b0e1d; background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .7));
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 30px 70px -32px rgba(60, 24, 60, .45), inset 0 1px 0 #fff;
}
.terminal-chrome { border-bottom-color: rgba(60, 24, 60, .08); color: #6b5870; }
.terminal-chrome img { filter: none; }
.terminal-dot { background: #7b4788; }
.asset-icon { background: #efe3f4; color: #3c183c; }
.terminal-muted, .trade-price small, .trade-controls > span { color: #75627b; }
.trade-head { gap: 12px; }
.spark { width: clamp(80px, 22%, 150px); height: 34px; margin-left: auto; display: block; }
.trade-head .trade-price { margin-left: 0; }
.order-ticket {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 6px; border-radius: 9px;
  background: rgba(123, 71, 136, .08); font-size: 12px; color: #4a3a4f;
}
.order-ticket b { color: var(--purple); font-weight: 600; }
.order-ticket > span:last-child { font: 12px var(--mono); color: #1b0e1d; }
.lifecycle { list-style: none; padding: 0; margin: 0 0 12px; }
.lifecycle li {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 8px 0 8px 22px; border-bottom: 1px solid rgba(60, 24, 60, .08);
  color: #9b8aa1; font-size: 12px; transition: color .35s var(--ease);
}
.lifecycle li::before {
  content: ''; position: absolute; left: 3px; top: 50%; width: 8px; height: 8px; translate: 0 -50%;
  border-radius: 50%; border: 1px solid #c9b3d3; background: #fff;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.lifecycle li:not(:last-child)::after { content: ''; position: absolute; left: 7px; top: calc(50% + 6px); height: calc(100% - 12px); width: 1px; background: rgba(60, 24, 60, .12); }
.lifecycle .lc-meta { font: 10px var(--mono); color: #a898ad; transition: color .35s var(--ease); }
.lifecycle li.done { color: #1b0e1d; }
.lifecycle li.done::before { background: #7b4788; border-color: #7b4788; box-shadow: 0 0 0 4px rgba(123, 71, 136, .14); }
.lifecycle li.done .lc-meta { color: var(--purple); }
.trade-controls button { color: #5c4a61; }
.trade-controls button:hover { border-color: rgba(60, 24, 60, .2); }
.trade-controls button[aria-pressed="true"] { background: #3c183c; color: #fff; }
.record-list > div { color: #6b5870; }
.record-list dd { color: #1b0e1d; }
.record-list > div { border-bottom-color: rgba(60, 24, 60, .1); }
.record-list > div.active { color: #1b0e1d; background: rgba(123, 71, 136, .14); }
.replay-button { border-color: rgba(123, 71, 136, .35); color: #3c183c; background: rgba(123, 71, 136, .08); }
.replay-button:hover { background: rgba(123, 71, 136, .16); }
@media (max-width: 480px) {
  .spark { display: none; }
  .order-ticket { font-size: 11px; }
}

/* VPERP v1.10 — roadmap as one timeline (design review 2026-11-20: the tabbed layout read as messy)
   All five milestones are visible on one five-column grid, so quarter, title and text share the same
   left edges; rows are a subgrid, so a two-line title does not push its text out of line. The first milestone (the default tab before) carries the purple node.
   On reveal the line draws across and the steps follow it; reduced motion shows the finished state.
   Below 1000px the track turns vertical. */
.roadmap-track {
  position: relative; list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: clamp(20px, 2.6vw, 40px);
}
.roadmap-track::before {
  content: ''; position: absolute; left: 0; right: 0; top: 5px; height: 1px;
  background: linear-gradient(to right, var(--purple), #d9c9dc 22%, #e3d8e4);
  transform-origin: left;
}
.roadmap-track li { position: relative; padding-top: 38px; display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
.roadmap-track li::before {
  content: ''; position: absolute; top: 0; left: 0; width: 11px; height: 11px; box-sizing: border-box;
  border-radius: 50%; border: 1px solid #c4b0c8; background: var(--surface);
}
.roadmap-track li.is-next::before { border-color: var(--purple); background: var(--purple); box-shadow: 0 0 0 5px rgba(123, 71, 136, .13); }
.roadmap-when { display: block; margin-bottom: 14px; color: var(--muted); font: 12px/1 var(--mono); letter-spacing: .06em; }
.roadmap-track .is-next .roadmap-when { color: var(--purple); font-weight: 600; }
.roadmap-track h3 { margin-bottom: 12px; font-size: clamp(20px, 1.75vw, 25px); line-height: 1.12; letter-spacing: -.045em; }
.roadmap-track p { max-width: 240px; color: var(--muted); font-size: 15px; line-height: 1.5; }

.motion-ready .roadmap-track.reveal { opacity: 1; transform: none; }
.motion-ready .roadmap-track::before { transform: scaleX(0); transition: transform 1.5s var(--ease) .1s; }
.motion-ready .roadmap-track li { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.motion-ready .roadmap-track.in-view::before { transform: none; }
.motion-ready .roadmap-track.in-view li { opacity: 1; transform: none; }
.roadmap-track li:nth-child(1) { transition-delay: .15s; }
.roadmap-track li:nth-child(2) { transition-delay: .3s; }
.roadmap-track li:nth-child(3) { transition-delay: .45s; }
.roadmap-track li:nth-child(4) { transition-delay: .6s; }
.roadmap-track li:nth-child(5) { transition-delay: .75s; }

@media (max-width: 1000px) {
  /* Vertical track. Each step uses the section intro's columns (1fr / .57fr, 30px gap), so descriptions
     line up with the intro text; the line is drawn per step and ends at the last node. */
  .roadmap-track { grid-template-columns: 1fr; }
  .roadmap-track::before { display: none; }
  .roadmap-track li {
    padding: 0 0 clamp(30px, 4vw, 40px); grid-row: auto; grid-template-rows: none;
    grid-template-columns: minmax(0, 1fr) minmax(0, .57fr); column-gap: 30px; align-items: start;
  }
  .roadmap-track li:last-child { padding-bottom: 0; }
  .roadmap-track li:not(:last-child)::after {
    content: ''; position: absolute; left: 5px; top: 11px; bottom: 0; width: 1px;
    background: #ddd0e0; transform-origin: top;
  }
  .roadmap-track li:first-child::after { background: linear-gradient(to bottom, var(--purple), #ddd0e0); }
  .roadmap-when, .roadmap-track h3 { grid-column: 1; padding-left: 38px; }
  .roadmap-track p { grid-column: 2; grid-row: 2; max-width: 380px; }
  .roadmap-when { margin-bottom: 12px; }
  .roadmap-track h3 { margin-bottom: 0; }
  .motion-ready .roadmap-track li::after { transform: scaleY(0); transition: transform .7s var(--ease); }
  .motion-ready .roadmap-track.in-view li::after { transform: none; }
  .roadmap-track li:nth-child(1)::after { transition-delay: .35s; }
  .roadmap-track li:nth-child(2)::after { transition-delay: .5s; }
  .roadmap-track li:nth-child(3)::after { transition-delay: .65s; }
  .roadmap-track li:nth-child(4)::after { transition-delay: .8s; }
}
@media (max-width: 760px) {
  .roadmap-track li { grid-template-columns: 1fr; padding-bottom: 30px; }
  .roadmap-track p { grid-column: 1; grid-row: auto; padding-left: 38px; }
  .roadmap-when { margin-bottom: 10px; }
  .roadmap-track h3 { margin-bottom: 8px; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .motion-ready .roadmap-track::before, .motion-ready .roadmap-track li, .motion-ready .roadmap-track li::after { opacity: 1; transform: none; }
}

/* VPERP v1.11 — tab autoplay progress (design review 2026-11-20)
   site.js adds .is-auto to the Platform and Protocol tab lists. The selected tab's line fills over
   --auto-ms; its animationend advances to the next tab. .is-paused holds it (offscreen, hover, focus).
   Once the visitor takes over, .is-auto is removed and the line disappears. */
.product-tabs button { position: relative; }
.is-auto [role="tab"][aria-selected="true"]::after {
  content: ''; position: absolute; pointer-events: none; transform-origin: left; transform: scaleX(0);
  animation: tab-progress var(--auto-ms, 5000ms) linear forwards;
}
.is-auto.is-paused [role="tab"][aria-selected="true"]::after { animation-play-state: paused; }
.product-tabs.is-auto [aria-selected="true"]::after { left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--purple); opacity: .55; }
.architecture-tabs.is-auto .layer-item.is-open::after {
  content: ''; position: absolute; pointer-events: none; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--lavender);
  transform-origin: left; transform: scaleX(0); animation: tab-progress var(--auto-ms, 5000ms) linear forwards;
}
.architecture-tabs.is-auto.is-paused .layer-item.is-open::after { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .layer-panel, .layer-item.is-open .layer-panel { transition: none; } }
@keyframes tab-progress { to { transform: scaleX(1); } }

/* VPERP v1.12 — Partners (design review 2026-11-20)
   The symbol in the art is solid dark purple (brand guide: dark symbol on light purple), with no grain or
   gradient, so it reads clearly. Partner with us sits under the three rows, right-aligned. */
.partner-mark { filter: none; }
.partner-mark i { background: var(--dark); }
.partner-mark i::after { display: none; }
.partner-side { display: flex; flex-direction: column; min-width: 0; }
.partner-cta { align-self: flex-end; margin-top: 18px; }


/* VPERP v1.13 — Fund bridge, demo panels (design review 2026-11-20)
   Fund is a bridge route: the chosen network's line carries one pulse into VPERP Spot, and the deposit steps
   reuse the Trade lifecycle. Only the two networks in VPERP's docs (Base, Arbitrum One); more rows can be
   added once VPERP confirms them.
   Official network marks (Base "The Square", github.com/base/brand-kit; Arbitrum logomark, arbitrum.io/brand-kit),
   used unaltered at 24px, Arbitrum's minimum; no dimming or effects on them, so selection shows on the row only. */
.bridge { display: grid; grid-template-columns: auto minmax(24px, 1fr) auto; margin-bottom: 10px; }
.bridge-sources, .bridge-routes { display: grid; grid-template-rows: repeat(2, 44px); gap: 8px; }
.bridge-chain {
  display: flex; align-items: center; gap: 11px; padding: 0 14px 0 11px; border-radius: 10px;
  border: 1px solid rgba(60, 24, 60, .12); background: rgba(255, 255, 255, .45);
  color: #75627b; font-size: 13px; white-space: nowrap; text-align: left;
  transition: border-color .25s, background .25s, color .25s;
}
.bridge-chain:hover { border-color: rgba(60, 24, 60, .3); }
.bridge-chain[aria-pressed="true"] { border-color: #7b4788; background: #fff; color: #1b0e1d; }
.chain-logo { width: auto; height: 24px; flex: none; }
.bridge-routes i { position: relative; overflow: hidden; }
.bridge-routes i::before {
  content: ''; position: absolute; left: 0; right: 4px; top: 50%; height: 1px; translate: 0 -50%;
  background: repeating-linear-gradient(90deg, rgba(60, 24, 60, .28) 0 3px, transparent 3px 7px);
}
.bridge-routes i::after {
  content: ''; position: absolute; right: 3px; top: 50%; width: 6px; height: 6px; translate: 0 -50%; rotate: 45deg;
  border: solid rgba(60, 24, 60, .3); border-width: 1px 1px 0 0;
}
.bridge-routes i.is-on::before { height: 2px; background: linear-gradient(90deg, rgba(123, 71, 136, .25), #7b4788); }
.bridge-routes i.is-on::after { border-color: #7b4788; border-width: 2px 2px 0 0; }
.bridge-routes b { position: absolute; inset: 0 6px 0 0; transform: translateX(-100%); opacity: 0; }
.bridge-routes b::before { content: ''; position: absolute; right: 3px; top: 50%; width: 46px; height: 2px; translate: 0 -50%; background: linear-gradient(90deg, transparent, #c9a2da); }
.bridge-routes b::after {
  content: ''; position: absolute; right: 0; top: 50%; width: 7px; height: 7px; translate: 0 -50%; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 2px #7b4788, 0 0 12px 2px rgba(123, 71, 136, .5);
}
.bridge.is-sending .bridge-routes i.is-on b { animation: bridge-flow .95s cubic-bezier(.5, 0, .25, 1) forwards; }
@keyframes bridge-flow {
  0% { transform: translateX(-100%); opacity: 0; }
  10% { opacity: 1; }
  86% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(0); opacity: 0; }
}
.bridge-dest {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 7px; padding: 0 16px; border-radius: 12px;
  border: 1px solid rgba(60, 24, 60, .12); background: rgba(255, 255, 255, .45);
  color: #1b0e1d; font-size: 13px; font-weight: 600; line-height: 1.3;
  transition: border-color .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease);
}
.bridge-dest img { width: auto; height: 14px; }
.bridge-dest span { font: 400 11px var(--mono); color: #75627b; }
.bridge.is-credited .bridge-dest { border-color: #7b4788; background: #fff; box-shadow: 0 0 0 4px rgba(123, 71, 136, .12); }
@media (max-width: 480px) {
  .bridge-chain { gap: 9px; padding: 0 10px 0 9px; font-size: 12px; }
  .bridge-dest { gap: 6px; padding: 0 11px; }
  .bridge-dest img { height: 12px; }
  .bridge-dest span { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { .bridge .bridge-routes b { animation: none !important; opacity: 0; } }

/* Protocol layers each carry their own drawing: Platform = app rows and a price line, Core = bids and asks
   meeting at the spread, L1 = four validators with three lit (matches the L1 copy). The open layer's drawing
   is bright and moves; the others dim. A signal runs down the ray (order → match → block) and back up
   (confirmation). Motion runs only while the diagram is on screen (.architecture.is-live), never under
   reduced motion; the still state is the finished one. */
.iso-art { position: absolute; inset: 11%; width: 78%; height: 78%; z-index: 1; overflow: visible; opacity: .22; transition: opacity .5s var(--ease); }
[data-layer="0"] .layer-0 .iso-art, [data-layer="1"] .layer-1 .iso-art, [data-layer="2"] .layer-2 .iso-art { opacity: 1; }
.iso-art * { transform-box: fill-box; }
.art-platform .ui-row { fill: rgba(255, 255, 255, .6); }
.art-platform .ui-pick { fill: none; stroke: #fff; stroke-width: 1.3; }
.art-platform .ui-card { fill: rgba(60, 24, 60, .28); stroke: rgba(255, 255, 255, .55); stroke-width: .8; }
.art-platform .ui-price { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; }
.art-platform .ui-tip { fill: #fff; transform-origin: center; }
.art-core .bids rect { fill: rgba(255, 255, 255, .82); transform-origin: 0 50%; }
.art-core .asks rect { fill: rgba(255, 255, 255, .14); stroke: rgba(255, 255, 255, .9); stroke-width: 1.1; transform-origin: 100% 50%; }
.art-core .match { fill: #fff; opacity: 0; }
.art-l1 .ring { fill: none; stroke: rgba(60, 24, 60, .45); stroke-width: 1.6; }
.art-l1 .ring-arc { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 16 84; transform-origin: center; opacity: .9; }
.art-l1 .node { fill: #fff; stroke: #fff; stroke-width: 1.4; }
.art-l1 .node-idle { fill: rgba(60, 24, 60, .35); stroke: rgba(255, 255, 255, .7); stroke-dasharray: 3 2.4; }
.art-l1 .core-dot { fill: rgba(60, 24, 60, .55); }

.architecture.is-live[data-layer="0"] .layer-0 .ui-pick { animation: ui-pick 3s var(--ease) infinite; }
.architecture.is-live[data-layer="0"] .layer-0 .ui-price { animation: ui-draw 3s cubic-bezier(.3, 0, .2, 1) infinite; }
.architecture.is-live[data-layer="0"] .layer-0 .ui-tip { animation: ui-tip 3s ease-out infinite; }
@keyframes ui-pick { 0%, 22% { transform: translateY(0); } 33%, 55% { transform: translateY(12px); } 66%, 88% { transform: translateY(24px); } 100% { transform: translateY(0); } }
@keyframes ui-draw { 0% { stroke-dashoffset: 100; } 55%, 100% { stroke-dashoffset: 0; } }
@keyframes ui-tip { 0%, 50% { transform: scale(0); } 60% { transform: scale(1.6); } 72%, 100% { transform: scale(1); } }

.architecture.is-live[data-layer="1"] .layer-1 :is(.bids, .asks) rect { animation: book-breathe 3s cubic-bezier(.45, 0, .2, 1) infinite; }
.architecture.is-live[data-layer="1"] .layer-1 .match { animation: book-match 3s ease-out infinite; }
.art-core g rect:nth-child(2) { animation-delay: -.25s !important; }
.art-core g rect:nth-child(3) { animation-delay: -.5s !important; }
.art-core g rect:nth-child(4) { animation-delay: -.75s !important; }
.art-core g rect:nth-child(5) { animation-delay: -1s !important; }
@keyframes book-breathe { 0%, 100% { transform: scaleX(.62); } 45%, 60% { transform: scaleX(1); } }
@keyframes book-match { 0%, 42% { opacity: 0; } 48% { opacity: 1; } 70%, 100% { opacity: 0; } }

.architecture.is-live[data-layer="2"] .layer-2 .ring-arc { animation: ring-turn 3s linear infinite; }
.architecture.is-live[data-layer="2"] .layer-2 .node:not(.node-idle) { animation: node-sign 3s infinite; }
.art-l1 .node:nth-of-type(4) { animation-delay: .35s !important; }
.art-l1 .node:nth-of-type(5) { animation-delay: .7s !important; }
.architecture.is-live[data-layer="2"] .layer-2 .core-dot { animation: block-seal 3s infinite; }
@keyframes ring-turn { to { transform: rotate(360deg); } }
@keyframes node-sign { 0%, 8% { fill: rgba(60, 24, 60, .45); } 16%, 86% { fill: #fff; } 96%, 100% { fill: rgba(60, 24, 60, .45); } }
@keyframes block-seal { 0%, 38% { fill: rgba(60, 24, 60, .55); } 46%, 86% { fill: #fff; } 96%, 100% { fill: rgba(60, 24, 60, .55); } }

.iso-signal { position: absolute; left: 50%; top: 28%; bottom: 26.5%; width: 0; z-index: 5; pointer-events: none; opacity: 0; transition: opacity .4s; }
.iso-signal b { position: absolute; left: 0; top: 0; width: 0; height: 100%; }
.iso-signal b::before {
  content: ''; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 3px rgba(223, 198, 239, .22), 0 0 16px 3px rgba(223, 198, 239, .7);
}
.architecture.is-live .iso-signal { opacity: 1; }
.architecture.is-live .iso-signal b { animation: iso-signal 3.6s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes iso-signal {
  0%, 6% { transform: translateY(0); }
  22%, 30% { transform: translateY(50%); }
  46%, 54% { transform: translateY(100%); }
  82%, 100% { transform: translateY(0); }
}
@media (max-width: 1000px) { .iso-signal { top: 30.4%; bottom: 28.6%; } }
@media (prefers-reduced-motion: reduce) {
  .architecture .iso-art *, .architecture .iso-signal b { animation: none !important; }
  .architecture .iso-signal { display: none; }
}

/* Advantage diagrams sit in the middle of their boxes (the rail used to sit high, the market tiles low). */
.edge-rail { padding: 0 9%; }
.rail-steps { margin-bottom: 0; }
.edge-markets { grid-template-rows: auto auto; align-content: center; }
.market-row { align-self: end; }
.market-base { align-self: start; }

/* Terminal keeps one height across Fund / Trade / Verify: all panels share one grid cell and hidden ones
   only become invisible (still out of the accessibility tree and not focusable). */
.terminal { display: grid; grid-template-rows: auto 1fr; }
.terminal-panel { grid-area: 2 / 1; }
.terminal-panel[hidden] { display: block !important; visibility: hidden; }


/* VPERP v1.14 — Simplified Chinese (design review 2026-11-20).
   Chinese uses Glow Sans SC (未来荧黑, SIL OFL 1.1, licence in assets/OFL-GlowSansSC.txt), subset to the page's
   characters by scripts/subset-zh-font.py. Inter stays first in every stack, so Latin text and figures keep Inter
   and the CJK ranges below pull in Glow Sans. The Medium face is split: the language button's 中/文 live in a
   tiny file, so English visitors do not download the Chinese subset for two characters. */
@font-face {
  font-family: "Glow Sans SC"; src: url("./assets/glow-sans-sc-regular.woff2") format("woff2");
  font-weight: 100 499; font-display: swap; unicode-range: U+3000-303F, U+4E00-9FFF, U+FF00-FFEF;
}
@font-face {
  font-family: "Glow Sans SC"; src: url("./assets/glow-sans-sc-medium.woff2") format("woff2");
  font-weight: 500 900; font-display: swap; unicode-range: U+3000-303F, U+4E00-4E2C, U+4E2E-6586, U+6588-9FFF, U+FF00-FFEF;
}
@font-face {
  font-family: "Glow Sans SC"; src: url("./assets/glow-sans-sc-medium-toggle.woff2") format("woff2");
  font-weight: 500 900; font-display: swap; unicode-range: U+4E2D, U+6587;
}
.i18n-pending body { visibility: hidden; }

.lang-toggle {
  display: grid; place-items: center; min-width: 30px; height: 34px; padding: 0 2px; border: 0; background: none;
  color: #514653; font-size: 13px; font-weight: 550; cursor: pointer; transition: color .2s;
}
.lang-toggle:hover { color: var(--purple); }
.header.on-dark .lang-toggle { color: #fff; }

/* Chinese setting: the Latin display tracking (down to -.079em) would crush CJK, and the tight Latin leading
   clips it, so tracking goes to zero and headings get CJK leading. Punctuation never starts a line. */
html:lang(zh-Hans) :is(h1, h2, h3, p, li, summary, dt, .architecture-tabs button) { letter-spacing: 0; }
html:lang(zh-Hans) :is(h1, h2, h3) { line-height: 1.16; text-wrap: balance; }
html:lang(zh-Hans) :is(p, li, summary, h3) { line-break: strict; text-wrap: pretty; }
