/* Nember website — brand colours from CLAUDE.md */
/* Space Grotesk (SIL OFL 1.1, assets/fonts/SpaceGrotesk-OFL.txt), served from this site */
@font-face { font-family: "Space Grotesk"; src: url(assets/fonts/SpaceGrotesk-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(assets/fonts/SpaceGrotesk-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(assets/fonts/SpaceGrotesk-Bold.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }
:root {
  --coal: #14161A;
  --slate: #2A2E35;
  --slate-2: #1C1F24;
  --glow: #FF6A2B;
  --amber: #F5A524;
  --snow: #F2EFEA;
  --snow-dim: #B9B5AE;
  --frost: #8FB8D8;

  --font-head: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;

  --radius: 14px;      /* boxes and panels */
  --radius-btn: 10px;  /* buttons */
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--coal);
  color: var(--snow);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--frost); text-underline-offset: 3px; }
a:hover { color: var(--snow); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 1rem; }
h3 { font-size: 1.1rem; margin: 0 0 .4rem; }
code, .num { font-family: var(--font-mono); font-size: .95em; }
code { color: var(--amber); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--snow-dim); }
.lead { font-size: 1.15rem; max-width: 62ch; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(20, 22, 26, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 16px; }
.brand img { display: block; height: 74px; width: auto; }
@media (max-width: 640px) { .header-inner { height: 72px; } .brand img { height: 60px; } }
.site-header nav { display: flex; gap: 22px; }
.menu-btn { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--slate); background: transparent; color: var(--snow); font: inherit; font-size: .95rem; cursor: pointer; }
.menu-btn:hover, .site-header.menu-open .menu-btn { border-color: var(--amber); }
.menu-btn:focus-visible { outline: 2px solid var(--frost); outline-offset: 2px; }
.menu-icon { display: grid; gap: 4px; width: 18px; }
.menu-icon i { display: block; height: 2px; border-radius: 1px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.site-header.menu-open .menu-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.menu-open .menu-icon i:nth-child(2) { opacity: 0; }
.site-header.menu-open .menu-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .menu-icon i { transition: none; } }
.site-header nav a { color: var(--snow-dim); text-decoration: none; font-size: .95rem; }
.site-header nav a:hover { color: var(--snow); }

/* Hero */
.hero {
  padding: 88px 0 72px;
  background:
    radial-gradient(600px 380px at 78% 45%, rgba(255, 106, 43, .13), transparent 70%),
    var(--coal);
}
.hero-inner { display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 40px; }
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); margin: .3em 0 .45em; }
.glow { color: var(--amber); background: linear-gradient(90deg, var(--amber), var(--glow)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero h1 .h1-tail { display: block; font-size: .5em; letter-spacing: .02em; color: var(--snow-dim); margin-top: .35em; }
.hero-mark { display: flex; justify-content: center; }
.hero-mark img { width: min(260px, 60vw); height: auto; filter: drop-shadow(0 0 36px rgba(255, 106, 43, .28)); }

.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0; padding: 5px 12px;
  border: 1px solid var(--slate); border-radius: 999px;
  font-size: .85rem; color: var(--snow-dim);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 8px var(--amber); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-block; padding: 12px 20px; border-radius: var(--radius-btn);
  font-weight: 600; text-decoration: none; font-size: .98rem;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--glow); color: var(--coal); }
.btn-primary:hover { background: var(--amber); color: var(--coal); }
.btn-ghost { border: 1px solid var(--slate); color: var(--snow); }
.btn-ghost:hover { border-color: var(--snow-dim); color: var(--snow); }

/* Warning */
.warning { background: var(--slate-2); border-top: 1px solid var(--slate); border-bottom: 1px solid var(--slate); scroll-margin-top: 96px; }
.warning-inner { padding: 18px 24px; border-left: 3px solid var(--amber); }
.warning strong { color: var(--amber); }

/* Sections */
.section { padding: 80px 0; scroll-margin-top: 76px; }
.section.alt { background: var(--slate-2); }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 28px 0 36px; }
.card { background: var(--slate-2); border: 1px solid var(--slate); border-radius: var(--radius); padding: 22px 22px 18px; }
.card p { margin: 0; color: var(--snow-dim); }

.table-scroll { overflow-x: auto; }
table.fit { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.fit th, .fit td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--slate); vertical-align: top; }
.fit th { font-family: var(--font-head); font-weight: 500; color: var(--snow); }
.fit th:first-child { color: var(--amber); }
.fit td { color: var(--snow-dim); }

/* Fin divider: nine cooling fins, amber to glow.
   When it scrolls into view (app.js adds .in) a heat wave runs once through the
   fins, left to right, then they rest; hovering runs it again. */
.fins { display: flex; justify-content: center; align-items: flex-end; gap: 7px; height: 40px; opacity: .8; }
.fins span { width: 4px; border-radius: 2px; height: 18px; transform-origin: 50% 100%; }
.fins span:nth-child(1) { background: #F5A524; translate: 0 -20px; --i: 0; }
.fins span:nth-child(2) { background: #F79F25; translate: 0 -17.5px; --i: 1; }
.fins span:nth-child(3) { background: #F99826; translate: 0 -15px; --i: 2; }
.fins span:nth-child(4) { background: #FA9027; translate: 0 -12.5px; --i: 3; }
.fins span:nth-child(5) { background: #FB8828; translate: 0 -10px; --i: 4; }
.fins span:nth-child(6) { background: #FC7F29; translate: 0 -7.5px; --i: 5; }
.fins span:nth-child(7) { background: #FD762A; translate: 0 -5px; --i: 6; }
.fins span:nth-child(8) { background: #FE6D29; translate: 0 -2.5px; --i: 7; }
.fins span:nth-child(9) { background: #FF5A1F; --i: 8; }
.fins.in span { animation: fin-heat 1.5s cubic-bezier(.3, .6, .3, 1) calc(var(--i) * 90ms + .2s) both; }
@media (hover: hover) { .fins.in:hover span { animation-name: fin-heat-again; } }
@keyframes fin-heat {
  0%, 100% { scale: 1 1; box-shadow: none; filter: none; }
  35% { scale: 1 1.45; box-shadow: 0 0 12px rgba(255, 106, 43, .55); filter: brightness(1.25); }
}
@keyframes fin-heat-again {
  0%, 100% { scale: 1 1; box-shadow: none; filter: none; }
  35% { scale: 1 1.45; box-shadow: 0 0 12px rgba(255, 106, 43, .55); filter: brightness(1.25); }
}
@media (prefers-reduced-motion: reduce) { .fins.in span, .fins.in:hover span { animation: none; } }

/* Specs */

/* Principles */
.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 75ch; }
.principles li { padding-left: 18px; border-left: 2px solid var(--glow); color: var(--snow-dim); }
.principles strong { color: var(--snow); }

/* Roadmap */
.roadmap { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.roadmap li { display: flex; gap: 18px; align-items: flex-start; padding: 16px 18px; border: 1px solid transparent; border-radius: var(--radius); } /* only the current stage gets a frame */
.roadmap li p { margin: 0; color: var(--snow-dim); }
.roadmap .stage {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono); color: var(--snow-dim); border: 1px solid var(--slate);
}
.roadmap li.active { border-color: rgba(245, 165, 36, .5); background: rgba(245, 165, 36, .05); }
.roadmap li.active .stage { color: var(--coal); background: var(--amber); border-color: var(--amber); }

/* Footer */
.site-footer { border-top: 1px solid var(--slate); padding: 48px 0 40px; font-size: .92rem; background: linear-gradient(180deg, rgba(28, 31, 36, .5), transparent 70%); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--slate); }
.footer-brand img { display: block; height: 58px; width: auto; margin-bottom: 14px; }
.footer-brand p { margin: 0; max-width: 34ch; color: var(--snow-dim); }
.footer-col { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.footer-col h2 { margin: 0 0 4px; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--snow-dim); }
.footer-col a { color: var(--snow); text-decoration: none; }
.footer-col a:hover { color: var(--amber); }
.footer-col .soon { font-size: .85rem; color: var(--snow-dim); opacity: .75; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px; padding-top: 22px; font-size: .85rem; color: var(--snow-dim); }
.footer-base p { margin: 0; max-width: 78ch; text-wrap: balance; }
.footer-base a { color: inherit; text-decoration: underline; text-decoration-color: rgba(242, 239, 234, .3); text-underline-offset: 3px; }
.footer-base a:hover { color: var(--snow); text-decoration-color: var(--amber); }
.footer-base .footer-copy { white-space: nowrap; }
.footer-base #risks { flex-basis: 100%; scroll-margin-top: 96px; }
.footer-base #risks strong { color: var(--amber); font-weight: 600; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; } }

/* Mobile */
@media (max-width: 760px) {
  /* the header links move into a panel opened by the Menu button (menu.js) */
  .site-header nav { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header.menu-open nav {
    display: grid; position: absolute; left: 0; right: 0; top: 100%; gap: 0;
    padding: 6px 16px 14px; background: var(--coal); border-bottom: 1px solid var(--slate); box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .8);
  }
  .site-header.menu-open nav a { padding: 13px 4px; font-size: 1.05rem; color: var(--snow); border-bottom: 1px solid var(--slate); }
  .site-header.menu-open nav a:last-child { border-bottom: 0; }
  .hero { padding: 56px 0 48px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-mark { order: -1; justify-content: flex-start; }
  .hero-mark img { width: 120px; }
  .cards { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

/* Network stats */
.stats { padding: 36px 0 40px; border-top: 1px solid var(--slate); background: linear-gradient(180deg, rgba(42,46,53,.35), transparent); }
.stats-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.stats-title { font-size: 1rem; text-transform: uppercase; letter-spacing: .14em; color: var(--snow-dim); margin: 0; }
.net-state { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--snow-dim); }
.dot-off { background: var(--snow-dim); box-shadow: none; }
.dot-on { background: #5BD08A; box-shadow: 0 0 8px #5BD08A; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0; background: var(--slate); border: 1px solid var(--slate); border-radius: var(--radius); overflow: hidden; }
.stat {
  position: relative; background: var(--coal); padding: 20px 20px 18px;
  display: flex; flex-direction: column; gap: 10px;
}
/* thin heat line along the top edge: dim until the network is live */
.stat::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--glow));
  opacity: 0; transition: opacity .6s ease;
}
.stats.live .stat::before { opacity: .22; }
.stats.live .stat-key::before { opacity: .9; box-shadow: 0 0 14px rgba(255, 106, 43, .55); }
.stat dt { font-size: .74rem; color: var(--snow-dim); text-transform: uppercase; letter-spacing: .12em; }
.stat dd { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sv { display: flex; align-items: baseline; gap: 7px; min-height: 2.6rem; }
.sv b {
  font-family: var(--font-head); font-weight: 500; font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  line-height: 1.1; letter-spacing: -.02em; color: var(--snow);
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum";
}
.sv i { font-style: normal; font-family: var(--font-head); font-size: .82rem; font-weight: 500; letter-spacing: .04em; color: var(--snow-dim); }
.stat-key .sv b {
  background: linear-gradient(90deg, var(--amber), var(--glow));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.ss { font-size: .8rem; line-height: 1.35; color: var(--snow-dim); opacity: .75; }
/* before the network is live: quiet placeholders, units hidden */
.stats:not(.live) .sv b[data-empty] { color: #4A4F57; -webkit-text-fill-color: #4A4F57; background: none; }
.stats:not(.live) .sv b[data-empty] + i { visibility: hidden; }
.bar { display: block; height: 4px; border-radius: 4px; background: var(--slate); overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--amber), var(--glow)); box-shadow: 0 0 10px rgba(255, 106, 43, .5); transition: width 1.4s cubic-bezier(.2, .7, .2, 1); }
.sv b.tick { animation: statTick .9s ease; }
@keyframes statTick { from { text-shadow: 0 0 18px rgba(255, 106, 43, .8); } to { text-shadow: none; } }
@media (prefers-reduced-motion: reduce) { .bar > span, .stat::before { transition: none; } .sv b.tick { animation: none; } }
.stats-note { margin: 12px 0 0; font-size: .88rem; }

/* Heat calculator */
.heat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.calc { background: var(--coal); border: 1px solid var(--slate); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; }
.calc label { display: block; font-size: .85rem; color: var(--snow-dim); margin-bottom: 6px; }
.calc select, .calc input {
  width: 100%; padding: 10px 12px; border-radius: 8px;
  background: var(--slate-2); color: var(--snow); border: 1px solid var(--slate);
  font: inherit; font-size: .98rem;
}
.calc select:focus, .calc input:focus { outline: none; border-color: var(--amber); }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-out { display: grid; gap: 4px; padding: 16px; border-radius: 8px; background: rgba(255,106,43,.08); border: 1px solid rgba(255,106,43,.3); }
.calc-out .big { font-size: 2rem; color: var(--amber); }

/* GPU table tags */
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.tag-ok { background: rgba(91,208,138,.12); color: #7FDCA4; }
.tag-maybe { background: rgba(245,165,36,.12); color: var(--amber); }
.tag-no { background: rgba(185,181,174,.12); color: var(--snow-dim); }
.gpu td:nth-child(2) { white-space: nowrap; }

/* Emission chart */
.chart { margin: 44px 0 0; padding: 24px; border: 1px solid var(--slate); border-radius: var(--radius); background: var(--slate-2); }
.chart figcaption p { margin: 0 0 12px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .grid line { stroke: var(--slate); stroke-width: 1; }
.chart .callout { stroke: var(--amber); stroke-dasharray: 3 3; }
.chart text { fill: var(--snow-dim); font-family: var(--font-mono); font-size: 11px; }
.chart .label { font-family: var(--font-body); font-size: 12px; }
.chart .label.strong { fill: var(--snow); font-weight: 600; }
.chart .axis-title { font-family: var(--font-body); font-size: 11px; }

/* Hero glow breathing */
@media (prefers-reduced-motion: no-preference) {
  .hero-mark img { animation: ember 5s ease-in-out 2; }
  @keyframes ember {
    0%, 100% { filter: drop-shadow(0 0 28px rgba(255,106,43,.22)); }
    50% { filter: drop-shadow(0 0 44px rgba(255,106,43,.38)); }
  }
}

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .heat-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 420px) {
  .calc-row { grid-template-columns: 1fr; }
  .stat dd { font-size: 1.15rem; }
}

/* ---------- 3D chain of cooling blocks ---------- */
@property --heat { syntax: '<number>'; inherits: true; initial-value: 0; }

.hero { position: relative; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.scene { position: relative; height: 380px; perspective: 1100px; perspective-origin: 50% 35%; }
.chain {
  position: absolute; left: 58%; top: 46%; width: 0; height: 0;
  transform-style: preserve-3d;
  transform: rotateX(-24deg) rotateY(-34deg);
}
.block {
  --s: 88px;
  position: absolute; width: var(--s); height: var(--s);
  margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  transform-style: preserve-3d;
  animation: flow 18s linear infinite, cool 18s linear infinite;
  animation-delay: calc(var(--i) * -3s);
}
.f {
  position: absolute; inset: 0;
  border: 1px solid color-mix(in srgb, var(--amber) calc(25% + var(--heat) * 75%), transparent);
  background: color-mix(in srgb, #FF6A2B calc(var(--heat) * 42%), #191C21);
  box-shadow:
    0 0 calc(var(--heat) * 46px) rgba(255, 106, 43, calc(var(--heat) * .55)),
    inset 0 0 calc(10px + var(--heat) * 24px) rgba(245, 165, 36, calc(.05 + var(--heat) * .35));
  backface-visibility: hidden;
}
.front  { transform: translateZ(calc(var(--s) / 2)); background-image: url(assets/nember-mark.svg); background-repeat: no-repeat; background-position: center; background-size: 58%; }
.back   { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.right  { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.left   { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.top    { transform: rotateX(90deg) translateZ(calc(var(--s) / 2));
          background-image: repeating-linear-gradient(90deg, transparent 0 9px, rgba(245,165,36, calc(.08 + var(--heat) * .5)) 9px 12px); }
.bottom { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }

.rail {
  position: absolute; left: -620px; top: 44px; width: 860px; height: 2px;
  transform: translateZ(0);
  background: repeating-linear-gradient(90deg, rgba(245,165,36,.55) 0 14px, transparent 14px 26px);
  background-size: 26px 2px;
  animation: rail 1.2s linear infinite;
  opacity: .5;
}

@keyframes flow {
  0%   { transform: translate3d(230px, -150px, 0) rotateY(90deg) scale(.5); opacity: 0; }
  8%   { transform: translate3d(230px, 0, 0) rotateY(0deg) scale(1); opacity: 1; }
  82%  { opacity: 1; }
  100% { transform: translate3d(-500px, 0, 0); opacity: 0; }
}
@keyframes cool {
  0%, 9% { --heat: 1; }
  40%    { --heat: .18; }
  100%   { --heat: 0; }
}
@keyframes rail { to { background-position: -26px 0; } }

.scene-caption {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0;
  text-align: center; font-size: .82rem; color: var(--snow-dim); letter-spacing: .02em;
}

@media (prefers-reduced-motion: reduce) {
  .block { animation: none; transform: translate3d(calc(var(--i) * -130px + 230px), 0, 0); --heat: calc(1 - var(--i) * .3); }
  .rail { animation: none; }
}

@media (max-width: 760px) {
  .scene { order: -1; height: 230px; margin: -10px 0 8px; }
  .chain { left: 62%; transform: rotateX(-24deg) rotateY(-34deg) scale(.62); }
  .scene-caption { display: none; }
}

/* Face shading so blocks read as solid cubes */
.chain { transform: rotateX(-26deg) rotateY(-42deg); }
.right, .left { filter: brightness(.62); }
.top { filter: brightness(1.25); }
.bottom { filter: brightness(.45); }
@media (max-width: 760px) { .chain { transform: rotateX(-26deg) rotateY(-42deg) scale(.62); } }

/* Opacity on a preserve-3d element flattens it, so fade the faces instead. */
@property --fade { syntax: '<number>'; inherits: true; initial-value: 1; }
.block { animation: flow3d 18s linear infinite, cool 18s linear infinite, fade 18s linear infinite; animation-delay: calc(var(--i) * -3s); }
.f { opacity: var(--fade); }
@keyframes flow3d {
  0%   { transform: translate3d(230px, -150px, 0) rotateY(90deg) scale(.5); }
  8%   { transform: translate3d(230px, 0, 0) rotateY(0deg) scale(1); }
  100% { transform: translate3d(-500px, 0, 0); }
}
@keyframes fade {
  0% { --fade: 0; }
  8%, 80% { --fade: 1; }
  100% { --fade: 0; }
}
@media (prefers-reduced-motion: reduce) { .block { animation: none; } }

/* Pools & exchanges */
.integrate { position: relative; }
.eyebrow { margin: 0 0 .4rem; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--frost); }
.int-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 28px 0 24px; }
.int {
  position: relative; padding: 22px 20px 20px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(42,46,53,.55), rgba(28,31,36,.55));
  border: 1px solid var(--slate);
  transition: transform .2s ease, border-color .2s ease;
}
.int:hover { transform: translateY(-3px); border-color: rgba(143,184,216,.45); }
.int-k { font-family: var(--font-mono); font-size: .8rem; color: var(--frost); }
.int h3 { margin: .5rem 0 .4rem; }
.int p { margin: 0; color: var(--snow-dim); font-size: .95rem; }
.int-foot { border-top: 1px solid var(--slate); padding-top: 16px; }
.int-foot p { margin: 0 0 .4rem; }
@media (max-width: 900px) { .int-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .int-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .int { transition: none; } .int:hover { transform: none; } }
.site-header nav a { white-space: nowrap; }
@media (max-width: 1120px) {
  .site-header nav { gap: 16px; }
}
@media (max-width: 1000px) { .site-header nav a { font-size: .88rem; } .site-header nav { gap: 13px; } }
