/* =====================================================================
   QUANTUM EX — styles
   Luxury campaign × quantum laboratory × the ex you shouldn't text.
   No frameworks. Tokens first, then sections in page order.
   ===================================================================== */

@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/bodoni-moda-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/bodoni-moda-italic-latin.woff2") format("woff2");
}

:root {
  --bg: #050507;
  --bg-2: #09090e;
  --ink: #eef0f5;
  --silver: #b4b9c6;
  --dim: #80869a;
  --line: rgba(220, 225, 240, 0.13);
  --line-strong: rgba(220, 225, 240, 0.28);
  --violet: #8f6bff;
  --cyan: #6fe9ff;
  --magenta: #ff4fa3;

  --serif: "Bodoni Moda", "Bodoni 72", Didot, "Didot LT STD", "Playfair Display", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, Menlo, monospace;

  --gutter: clamp(16px, 5vw, 72px);
  --section-y: clamp(96px, 16vh, 200px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* `hidden` must always win — nothing gated by config may leak through a display rule */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* film grain — static, very faint */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  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%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
em { font-style: italic; }
::selection { background: var(--violet); color: #fff; }

:focus { outline: none; }
:focus-visible { outline: 1px solid var(--cyan); outline-offset: 4px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.skip-link:focus { top: 16px; }

/* ---------- Type primitives ---------- */
.kicker {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--silver);
  display: flex;
  align-items: center;
  gap: 14px;
}
.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  flex: none;
}
.kicker.center, .center .kicker { justify-content: center; }

.section-head h2,
.observe-title,
.token-ticker {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.02;
}
.section-head h2 {
  margin-top: 28px;
  font-size: clamp(2.3rem, 6.2vw, 5.6rem);
  text-transform: uppercase;
}
.section-head h2 em {
  text-transform: none;
  color: var(--silver);
}
.section-head.center { text-align: center; }

.fineprint {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--dim);
}
.fineprint.center { text-align: center; }

.section {
  position: relative;
  padding: var(--section-y) var(--gutter);
}

/* ---------- Buttons & links ---------- */
.btn {
  --glow: rgba(143, 107, 255, 0);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 2.1em;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-indent: 0.34em; /* optically centre tracked caps */
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 0 40px -6px var(--glow);
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease), box-shadow .6s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn::after { /* a single passing line of light */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { --glow: rgba(143, 107, 255, 0.55); }
.btn-ghost:hover { border-color: var(--ink); --glow: rgba(111, 233, 255, 0.25); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: progress; }
.btn-small { min-height: 44px; padding: 0 1.4em; font-size: 0.68rem; }

.text-link {
  display: inline-flex;
  gap: .5em;
  align-items: center;
  min-height: 44px;
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color .4s var(--ease), color .4s var(--ease);
}
.text-link:hover { border-color: var(--cyan); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px var(--gutter);
  padding-top: max(20px, env(safe-area-inset-top));
  transition: background-color .6s var(--ease), padding .6s var(--ease), border-color .6s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(5, 5, 7, 0.94);
  border-bottom-color: var(--line);
  padding-top: max(14px, env(safe-area-inset-top));
  padding-bottom: 14px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.34em;
  text-decoration: none;
  padding: 8px 0;
}
.site-nav { display: none; gap: clamp(18px, 2.4vw, 40px); }
.site-nav a {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--silver);
  padding: 12px 0;
  transition: color .3s var(--ease);
}
.site-nav a:hover { color: var(--ink); }
@media (min-width: 900px) { .site-nav { display: flex; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}
.hero-poster { animation: hero-breathe 1.8s var(--ease) both; }
.hero-video {
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.hero-video.is-playing { opacity: 1; }
@keyframes hero-breathe {
  from { opacity: 0; transform: scale(1.06); filter: blur(10px); }
  to   { opacity: 1; transform: scale(1);    filter: blur(0); }
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(5,5,7,.55) 0%, rgba(5,5,7,0) 22%, rgba(5,5,7,0) 45%, rgba(5,5,7,.78) 78%, var(--bg) 100%),
    radial-gradient(ellipse at 50% 40%, rgba(5,5,7,0) 30%, rgba(5,5,7,.55) 100%);
}

@media (max-width: 899px) {
  .hero-veil {
    background:
      linear-gradient(180deg, rgba(5,5,7,.5) 0%, rgba(5,5,7,0) 16%, rgba(5,5,7,0) 30%, rgba(5,5,7,.72) 56%, rgba(5,5,7,.9) 80%, var(--bg) 100%);
  }
  .hero-lede, .hero-title { text-shadow: 0 2px 30px rgba(0,0,0,.6); }
}
.hero-content {
  width: 100%;
  padding: 0 var(--gutter) clamp(40px, 8vh, 88px);
  display: grid;
  gap: 18px;
  text-align: center;
  justify-items: center;
}
.hero-lede {
  display: grid;
  gap: 2px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.15;
  color: var(--ink);
  animation: rise 1.4s .5s var(--ease) both;
}
.hero-lede-b { color: var(--silver); }
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 12.2vw, 13rem); /* text is ~6.8em wide: always fits the gutters */
  line-height: .86;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-shadow: -1px 0 rgba(111, 233, 255, .35), 1px 0 rgba(255, 79, 163, .25), 0 0 60px rgba(143, 107, 255, .25);
  animation: rise 1.6s .2s var(--ease) both;
}
.hero-title span { display: inline-block; }
.hero-foot {
  display: grid;
  gap: 18px;
  justify-items: center;
  animation: rise 1.4s .8s var(--ease) both;
}
.hero-sub {
  max-width: 34ch;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  color: var(--silver);
}
.hero-meta {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--dim);
}
.hero-state {
  position: absolute;
  right: var(--gutter);
  top: 104px;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--dim);
  display: none;
}
.hero-state span { color: var(--silver); }
@media (min-width: 900px) {
  .hero-state { display: block; }
  .hero-content {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "lede foot" "title title";
    align-items: end;
    text-align: left;
    justify-items: start;
    gap: 28px 40px;
  }
  .hero-lede { grid-area: lede; }
  .hero-foot { grid-area: foot; justify-self: end; justify-items: end; text-align: right; }
  .hero-title {
    grid-area: title;
    justify-self: stretch;
    display: flex;
    justify-content: space-between;
    gap: .32em;
  }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Observe ---------- */
.observe { background: var(--bg); }
.observe-grid {
  display: grid;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .observe-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}
.chamber { position: relative; }
.chamber-stack {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #000;
  isolation: isolate;
  outline: 1px solid var(--line);
  outline-offset: 10px;
}
.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 22%;
  transform: scale(1.18);
  transform-origin: 55% 30%;
}
.layer-r, .layer-gb, .layer-ghost { opacity: 0; mix-blend-mode: screen; will-change: transform, opacity; }
.layer-r { filter: url(#qx-r); }
.layer-gb { filter: url(#qx-gb); }
.layer-ghost { filter: blur(4px); }
.chamber.is-observed .layer-base { filter: saturate(1.08) contrast(1.04); }

.pulse {
  position: absolute;
  left: 50%; top: 42%;
  width: 46%;
  aspect-ratio: 1;
  margin-left: -23%;
  border-radius: 50%;
  border: 1px solid rgba(111, 233, 255, .8);
  box-shadow: 0 0 40px rgba(143, 107, 255, .6), inset 0 0 30px rgba(111, 233, 255, .35);
  opacity: 0;
  transform: translateY(-50%) scale(.2);
  pointer-events: none;
}
.flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 40%, rgba(214, 200, 255, .55), rgba(143, 107, 255, .15) 40%, transparent 70%);
  opacity: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}

.chamber.is-collapsing .chamber-stack { filter: url(#qx-warp); }
.chamber.is-collapsing .layer-base  { animation: c-base 1s var(--ease) both; }
.chamber.is-collapsing .layer-r     { animation: c-r 1s var(--ease) both; }
.chamber.is-collapsing .layer-gb    { animation: c-gb 1s var(--ease) both; }
.chamber.is-collapsing .layer-ghost { animation: c-ghost 1s var(--ease) both; }
.chamber.is-collapsing .pulse       { animation: c-pulse .9s .35s cubic-bezier(.1,.6,.2,1) both; }
.chamber.is-collapsing .flash       { animation: c-flash 1s var(--ease) both; }

@keyframes c-base  { 0% { opacity: 1; } 18%, 78% { opacity: 0; } 100% { opacity: 1; } }
@keyframes c-r {
  0%   { opacity: 0; transform: scale(1.18); }
  18%  { opacity: 1; transform: scale(1.18) translate3d(-6px, 0, 0); }
  45%  { transform: scale(1.185) translate3d(7px, -1px, 0); }
  66%  { transform: scale(1.18) translate3d(-2px, 0, 0); }
  80%  { opacity: 1; transform: scale(1.18); }
  100% { opacity: 0; transform: scale(1.18); }
}
@keyframes c-gb {
  0%   { opacity: 0; transform: scale(1.18); }
  18%  { opacity: 1; transform: scale(1.18) translate3d(2px, 0, 0); }
  45%  { transform: scale(1.19) translate3d(-8px, 1px, 0); }
  66%  { transform: scale(1.18) translate3d(2px, 0, 0); }
  80%  { opacity: 1; transform: scale(1.18); }
  100% { opacity: 0; transform: scale(1.18); }
}
@keyframes c-ghost {
  0%   { opacity: 0; transform: scale(1.18); }
  25%  { opacity: .22; transform: scale(1.24) translate3d(-10px, 0, 0); }
  55%  { opacity: .16; transform: scale(1.14) translate3d(12px, 0, 0); }
  100% { opacity: 0; transform: scale(1.18); }
}
@keyframes c-pulse {
  0%   { opacity: 0; transform: translateY(-50%) scale(.2); }
  25%  { opacity: .9; }
  100% { opacity: 0; transform: translateY(-50%) scale(2.6); }
}
@keyframes c-flash { 0%, 30% { opacity: 0; } 55% { opacity: 1; } 100% { opacity: 0; } }

.chamber-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dim);
}

.observe-copy { display: grid; gap: 26px; align-content: center; }
.observe-title { font-size: clamp(2.4rem, 6.4vw, 5.4rem); min-height: 2.1em; display: flex; align-items: flex-end; }
.result-title { display: block; }
.result-title.is-echoing {
  color: var(--silver);
  opacity: .45;
  filter: blur(1.5px);
  text-shadow: -3px 0 rgba(111, 233, 255, .6), 3px 0 rgba(255, 79, 163, .45);
}
.result-title.is-revealed { animation: result-in 1.1s var(--ease) both; }
@keyframes result-in {
  from { opacity: 0; filter: blur(10px); letter-spacing: .12em; }
  to   { opacity: 1; filter: blur(0);    letter-spacing: -0.01em; }
}
.result-sub {
  max-width: 34ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.35;
  color: var(--silver);
}
.result-sub.is-revealed { animation: rise 1s .25s var(--ease) both; }
.observe-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Principle ---------- */
.principle { max-width: 1320px; margin: 0 auto; }
.laws { margin-top: clamp(64px, 10vw, 140px); border-top: 1px solid var(--line); }
.law {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: clamp(40px, 7vw, 96px) 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.law-num {
  font-family: var(--serif);
  font-size: clamp(5rem, 16vw, 13rem);
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(180, 185, 198, .4);
  will-change: transform;
}
.law-body h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 20px;
}
.law-body h3::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  margin-right: 14px;
  vertical-align: middle;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 12px var(--violet);
}
.law:nth-child(2) .law-body h3::before { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.law:nth-child(3) .law-body h3::before { background: var(--magenta); box-shadow: 0 0 12px var(--magenta); }
.law-body p {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  line-height: 1.14;
}
.law-body p em { color: var(--silver); }
@media (min-width: 900px) {
  .law { grid-template-columns: 5fr 7fr; align-items: end; gap: 48px; }
  .law:nth-child(2) { grid-template-columns: 7fr 5fr; }
  .law:nth-child(2) .law-num { order: 2; text-align: right; }
  .law:nth-child(2) .law-body { order: 1; }
}

/* ---------- Markets ---------- */
.markets { max-width: 1200px; margin: 0 auto; }
.markets .section-head { text-align: center; }
.markets .section-head .kicker { justify-content: center; }
.state-map { margin: clamp(64px, 9vw, 120px) auto 48px; max-width: 980px; }
.state-root { position: relative; width: max-content; margin: 0 auto; padding: 22px 30px; }
.state-root-label {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  letter-spacing: .04em;
}
.state-orbit {
  position: absolute;
  inset: -6px -10px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  border-top-color: rgba(143, 107, 255, .9);
  border-bottom-color: rgba(111, 233, 255, .7);
  animation: orbit 14s linear infinite;
}
@keyframes orbit { to { transform: rotate(360deg); } }
.state-lines {
  width: 100%;
  height: clamp(80px, 12vw, 150px);
  overflow: visible;
}
.state-line {
  fill: none;
  stroke-width: 1.2;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
.js .state-map .state-line { stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s .2s var(--ease); }
.js .state-map.is-in .state-line { stroke-dashoffset: 0; }
.state-branches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 4vw, 48px);
}
.market {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding-top: 26px;
}
.market-node {
  position: absolute;
  top: -5px; left: 50%;
  width: 10px; height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 5px rgba(143,107,255,.15), 0 0 24px var(--violet);
}
.market-b .market-node { background: var(--cyan); box-shadow: 0 0 0 5px rgba(111,233,255,.12), 0 0 24px var(--cyan); }
.market-asset {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4.4vw, 3.4rem);
  line-height: 1;
}
.market-state {
  font-size: 0.66rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--silver);
}
.market-status {
  margin-top: 26px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
}
.market-status.is-live { border-color: rgba(111, 233, 255, .6); color: var(--cyan); }
.market-pair {
  margin-top: 16px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  letter-spacing: 0.24em;
}
.market-timeline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  color: var(--silver);
}
.market-copy {
  max-width: 30ch;
  font-size: 0.9rem;
  color: var(--dim);
}
@media (max-width: 520px) {
  .market-copy { font-size: 0.82rem; }
  .market-pair { letter-spacing: .14em; }
  .market-state { letter-spacing: .24em; }
}

/* ---------- Messages ---------- */
.messages {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 55%, rgba(143, 107, 255, .09), transparent 70%),
    var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.feed {
  display: grid;
  justify-items: center;
  gap: 22px;
  min-height: clamp(220px, 30vw, 300px);
  align-content: center;
  margin: clamp(48px, 7vw, 80px) auto 36px;
  max-width: 1000px;
}
.feed-timeline {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--violet);
}
.feed-message {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(2.2rem, 6.4vw, 5rem);
  line-height: 1.08;
}
.feed-message.is-system {
  font-family: var(--sans);
  font-style: normal;
  font-size: clamp(0.9rem, 1.8vw, 1.15rem);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--silver);
}
.feed-timeline, .feed-message { transition: opacity .8s var(--ease), filter .8s var(--ease), transform .8s var(--ease); }
.feed.is-leaving .feed-timeline,
.feed.is-leaving .feed-message { opacity: 0; filter: blur(8px); transform: translateY(-6px); }
.feed.is-entering .feed-timeline,
.feed.is-entering .feed-message { opacity: 0; filter: blur(8px); transform: translateY(6px); transition: none; }
.feed-progress {
  display: block;
  width: 120px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.feed-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transform-origin: left;
  transform: scaleX(0);
}
.feed-progress span.is-running { animation: feed-bar var(--feed-ms, 5600ms) linear both; }
.feed.is-paused .feed-progress span { animation-play-state: paused; }
@keyframes feed-bar { to { transform: scaleX(1); } }
.feed-toggle {
  min-height: 44px;
  padding: 0 14px;
  background: none;
  border: 0;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--dim);
  cursor: pointer;
  transition: color .3s var(--ease);
}
.feed-toggle:hover { color: var(--ink); }

/* ---------- Compatibility ---------- */
.compat { max-width: 1100px; margin: 0 auto; }
.compat-form {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: end;
}
.field { display: grid; gap: 10px; }
.field label {
  font-size: 0.68rem;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--silver);
}
.field input {
  width: 100%;
  min-height: 56px;
  padding: 8px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--ink);
  transition: border-color .4s var(--ease);
}
.field input::placeholder { color: rgba(180, 185, 198, .38); font-style: italic; }
.field input:focus { outline: none; border-bottom-color: var(--cyan); }
.field input:focus-visible { outline: none; box-shadow: 0 1px 0 0 var(--cyan); }
.compat-x {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--violet);
  text-align: center;
  line-height: 1;
}
.compat-submit { justify-self: start; }
.compat-local { grid-column: 1 / -1; }
.compat-error { grid-column: 1 / -1; min-height: 1.4em; font-size: .85rem; color: var(--magenta); }
.compat-error:empty { min-height: 0; }
@media (min-width: 900px) {
  .compat-form { grid-template-columns: 1fr auto 1fr; column-gap: 36px; }
  .compat-x { padding-bottom: 10px; }
  .compat-submit { grid-column: 1 / -1; justify-self: start; margin-top: 18px; }
}
.compat-result {
  margin-top: clamp(56px, 8vw, 96px);
  padding-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
  justify-items: start;
}
.compat-result:focus { outline: none; }
.compat-result.is-revealed > * { animation: rise 1s var(--ease) both; }
.compat-result.is-revealed > *:nth-child(2) { animation-delay: .06s; }
.compat-result.is-revealed > *:nth-child(3) { animation-delay: .12s; }
.compat-result.is-revealed > *:nth-child(4) { animation-delay: .3s; }
.compat-result.is-revealed > *:nth-child(5) { animation-delay: .45s; }
.compat-result.is-revealed > *:nth-child(6) { animation-delay: .6s; }
.compat-names {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dim);
  overflow-wrap: anywhere;
}
.compat-label {
  font-size: 0.7rem;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--silver);
}
.compat-pct {
  font-family: var(--serif);
  font-size: clamp(4.4rem, 15vw, 11rem);
  line-height: .9;
  background: linear-gradient(100deg, var(--ink) 40%, #cdbfff 70%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.compat-universes {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.2;
}
.compat-verdict {
  white-space: pre-line;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.35;
  color: var(--silver);
  margin-bottom: 14px;
}

/* ---------- Token ---------- */
.token { max-width: 1000px; margin: 0 auto; }
.token-panel {
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(40px, 7vw, 88px) clamp(20px, 6vw, 80px);
  border: 1px solid var(--line);
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(143, 107, 255, .08), transparent 70%),
    var(--bg-2);
}
.token-panel::before,
.token-panel::after { /* lab-frame corner ticks */
  content: "";
  position: absolute;
  width: 18px; height: 18px;
  border: 1px solid var(--silver);
}
.token-panel::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.token-panel::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.token-ticker { font-size: clamp(3.6rem, 12vw, 8rem); line-height: 1; }
.token-state { display: grid; gap: 34px; justify-items: center; margin-top: 26px; }
.token-status {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: clamp(0.68rem, 1.6vw, 0.82rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 14px var(--magenta);
  animation: blink 2.8s ease-in-out infinite;
  flex: none;
}
.token-status.is-live .status-dot { background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
@keyframes blink { 50% { opacity: .25; } }
.token-facts {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  text-align: left;
}
.token-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.token-facts dt {
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 3px;
}
.token-facts dd {
  font-family: var(--serif);
  font-size: 1.1rem;
  text-align: right;
}
.token-facts dd a { text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.token-facts dd a:hover { text-decoration-color: var(--cyan); }
@media (min-width: 700px) {
  .token-facts { grid-template-columns: 1fr 1fr; column-gap: 48px; }
}
.contract { display: grid; gap: 12px; justify-items: center; width: 100%; }
.contract-label {
  font-size: 0.66rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--dim);
}
.contract-address {
  max-width: 100%;
  font-family: var(--mono);
  font-size: clamp(0.78rem, 2.4vw, 1.05rem);
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, .35);
  user-select: all;
}
.token-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; }
.token-links:empty { display: none; }
.verify-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--silver);
}

/* ---------- Contact & footer ---------- */
.contact { text-align: center; padding-bottom: calc(var(--section-y) * .6); }
.contact-list {
  margin-top: 40px;
  display: grid;
  gap: 8px;
  justify-items: center;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4.6vw, 3.4rem);
  line-height: 1.2;
}
.contact-list a {
  text-decoration: none;
  background: linear-gradient(90deg, var(--violet), var(--cyan)) no-repeat 0 100% / 0 1px;
  transition: background-size .7s var(--ease);
  overflow-wrap: anywhere;
}
.contact-list a:hover, .contact-list a:focus-visible { background-size: 100% 1px; }
.contact-muted { color: var(--dim); font-style: italic; }

.site-footer {
  padding: 56px var(--gutter) max(48px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}
.footer-mark {
  font-family: var(--serif);
  letter-spacing: 0.34em;
  font-size: 0.9rem;
}
.footer-line {
  font-family: var(--serif);
  font-style: italic;
  color: var(--silver);
  font-size: 1.05rem;
  line-height: 1.4;
}
.risk { max-width: 60ch; font-size: 0.8rem; color: var(--dim); }
.risk summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  list-style: none;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 5px;
}
.risk summary::-webkit-details-marker { display: none; }
.risk p { margin-top: 12px; line-height: 1.7; }
/* 404 page */
.not-found-copy { margin-top: 28px; }
.not-found-action { margin-top: 40px; }
main.section.center { min-height: 100vh; min-height: 100svh; display: grid; align-content: center; justify-items: center; }

.noscript { padding: 16px; text-align: center; font-size: .8rem; color: var(--dim); }

/* ---------- Scroll reveal (only when JS is running) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
  }
  .hero-video { display: none; }
  .state-orbit, .status-dot { animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .law-num { transform: none !important; }
  .feed-progress { visibility: hidden; }
}
