/* All colours come from tokens.css. No colour literals here. */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; border-radius: 6px; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 40px; } }

/* progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 100; background: transparent; }
.progress i { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--n-primary), var(--n-light), var(--n-mist)); }

/* header */
.top {
  position: sticky; top: 12px; z-index: 60;
  margin: 12px 12px 0;
  border-radius: 22px;
  background: var(--c-glass);
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  box-shadow: inset 0 0 0 1px var(--c-line), 0 18px 40px -26px var(--c-shadow);
}
@media (min-width: 640px) { .top { margin: 20px 20px 0; top: 20px; } }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 8px 6px 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand-logo { width: 44px; height: auto; }
.brand-word { font-weight: 700; letter-spacing: 0.02em; font-size: 20px; }
.brand-chain { display: none; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--c-line); }
@media (min-width: 720px) { .brand-chain { display: inline-block; } }
.social { display: flex; gap: 6px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--c-surface);
  box-shadow: inset 0 0 0 1px var(--c-line);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
a.icon-btn:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--n-primary), 0 10px 22px -12px var(--c-shadow); }
.icon-btn.is-inert { opacity: 0.45; cursor: default; }

/* CA slot */
.ca { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label copy" "addr copy"; align-items: center; gap: 2px 10px; padding: 8px 8px 10px 12px; border-top: 1px solid var(--c-line); }
@media (min-width: 640px) { .ca { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "label addr copy"; gap: 10px; } }
.ca-label { grid-area: label; padding-top: 2px; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.ca-body { grid-area: addr; min-width: 0; min-height: 44px; width: 100%; text-align: left; display: flex; align-items: center; text-align: left; }
.ca-addr { font-family: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace; font-weight: 600; font-size: clamp(16px, 5vw, 26px); line-height: 1.25; overflow-wrap: anywhere; word-break: break-all; }
.ca-pending { font-size: clamp(16px, 3.7vw, 24px); font-weight: 600; letter-spacing: 0.04em; }
.ca-copy {
  grid-area: copy; justify-self: end; position: relative; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 14px;
  background: var(--n-primary); color: var(--n-paper); font-weight: 600; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
  transition: transform 0.3s var(--ease), filter 0.3s var(--ease);
}
.ca-copy:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ca-copy[disabled] { background: var(--n-wash-3); color: var(--c-ink); opacity: 0.6; cursor: default; filter: none; transform: none; }
.ca-copy.done { background: var(--n-ink); }
.ca.is-inert .ca-body { opacity: 0.75; }
button.ca-body { cursor: pointer; border-radius: 12px; }

/* hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 12px; border-radius: var(--r-frame);
  min-height: calc(100dvh - 24px - 140px);
  background: linear-gradient(180deg, var(--n-wash-2), var(--n-paper));
  box-shadow: inset 0 0 0 1px var(--c-line);
}
@media (min-width: 640px) { .hero { margin: 20px; min-height: calc(100dvh - 40px - 150px); } }
.hero-inner { position: relative; z-index: 2; display: grid; gap: 28px; padding: 48px 20px 56px; align-items: center; }
@media (min-width: 640px) { .hero-inner { padding: 64px 40px 72px; } }
@media (min-width: 1024px) { .hero-inner { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 24px; padding: 72px 56px 80px; } }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
h1 {
  font-size: clamp(38px, 5.4vw, 88px); line-height: 0.92; font-weight: 500; letter-spacing: -0.04em; text-wrap: balance;
  background: linear-gradient(180deg, var(--n-ink), var(--n-primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.08em;
}
.tag { font-size: 12px; font-weight: 600; line-height: 1.8; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.9; }
@media (min-width: 640px) { .tag { font-size: 14px; } }
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--c-glass); box-shadow: inset 0 0 0 1px var(--c-line); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--n-primary); }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 1.8s ease-in-out infinite; }
.pill[data-state="error"] .dot, .pill[data-state="stale"] .dot { background: var(--n-ink); }
.pill[data-state="loading"] .dot::after, .pill[data-state="error"] .dot::after { animation-duration: 1s; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(2.2); } }

.glass { background: var(--c-glass); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); box-shadow: inset 0 0 0 1px var(--c-line), 0 1px 2px color-mix(in srgb, var(--n-ink) 8%, transparent), 0 28px 60px -28px var(--c-shadow); }
.panel-where { width: 100%; max-width: 680px; border-radius: var(--r-panel); padding: 8px 20px; }
.panel-where dl { display: grid; }
.panel-where dl > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; border-bottom: 1px solid var(--c-line); }
.panel-where dl > div:last-child { border-bottom: 0; }
.panel-where dt { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.8; }
.panel-where dd { font-weight: 600; text-align: right; }
.state-chip { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--n-wash-3); }
.state-chip.is-on { background: var(--n-primary); color: var(--n-paper); }
a.state-chip:hover { filter: brightness(1.08); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .cta {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--c-glass); box-shadow: inset 0 0 0 1px var(--c-line); font-weight: 600; font-size: 14px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.chip:hover { transform: translateY(-1px); background: var(--n-paper); box-shadow: inset 0 0 0 1px var(--n-primary), 0 10px 22px -12px var(--c-shadow); }
.cta { background: var(--n-primary); color: var(--n-paper); box-shadow: none; padding: 0 22px; letter-spacing: 0.1em; text-transform: uppercase; font-size: 12px; clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer)); border-radius: 0; }
.cta:hover { filter: brightness(1.1); transform: none; }

/* hero art + parallax */
.hero-art { position: relative; min-height: 280px; display: grid; place-items: center; }
@media (min-width: 1024px) { .hero-art { min-height: 460px; } }
.layer { position: absolute; inset: 0; display: grid; place-items: center; will-change: transform; }
.l-logo img { width: min(100%, 520px); height: auto; filter: drop-shadow(0 40px 40px var(--c-shadow)); animation: float 7s ease-in-out infinite; }
.l-orb i { width: 72%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--n-glint), var(--n-mist) 45%, var(--n-sky) 100%); opacity: 0.55; filter: blur(2px); }
.l-ring i { width: 92%; aspect-ratio: 1; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--n-sky), 0 0 60px color-mix(in srgb, var(--n-light) 40%, transparent); opacity: 0.7; animation: spin 40s linear infinite; background: conic-gradient(from 0deg, transparent, color-mix(in srgb, var(--n-mist) 35%, transparent), transparent 40%); }
.l-spark i { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--n-glint); box-shadow: 0 0 24px 6px var(--n-sky); animation: twinkle 3.4s ease-in-out infinite; }
.l-spark i:nth-child(1) { top: 14%; left: 18%; }
.l-spark i:nth-child(2) { top: 70%; right: 12%; animation-delay: 1.1s; width: 10px; height: 10px; }
.l-spark i:nth-child(3) { top: 28%; right: 22%; animation-delay: 2.1s; width: 8px; height: 8px; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { 0%, 100% { opacity: 0.3; scale: 0.7; } 50% { opacity: 1; scale: 1.15; } }

/* mesh backgrounds */
.mesh { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.75; animation: drift 24s ease-in-out infinite alternate; }
.b1 { width: 55%; aspect-ratio: 1; left: -10%; top: -20%; background: radial-gradient(circle, var(--n-mist), transparent 70%); }
.b2 { width: 60%; aspect-ratio: 1; right: -15%; top: 5%; background: radial-gradient(circle, var(--n-light), transparent 68%); animation-duration: 30s; animation-delay: -8s; opacity: 0.55; }
.b3 { width: 50%; aspect-ratio: 1; left: 25%; bottom: -35%; background: radial-gradient(circle, var(--n-sky), transparent 70%); animation-duration: 36s; animation-delay: -15s; }
.mesh.soft .blob { opacity: 0.6; }
.grain { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, var(--n-paper)); }
@keyframes drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(8%, 6%, 0) scale(1.15); } }

/* ticker */
.ticker { padding: 8px 0 0; }
.ticker-mask { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, var(--n-ink) 12%, var(--n-ink) 88%, transparent); mask-image: linear-gradient(90deg, transparent, var(--n-ink) 12%, var(--n-ink) 88%, transparent); }
.ticker-track { display: flex; width: max-content; animation: marquee var(--dur-marquee) linear infinite; padding: 10px 0; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.tk { display: inline-flex; align-items: center; gap: 10px; margin-right: 12px; padding: 8px 16px 8px 8px; min-height: 52px; border-radius: 999px; background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); font-size: 14px; white-space: nowrap; }
.tk b { font-weight: 700; }
.tk .tk-chg { font-weight: 600; font-size: 12px; }
.tk.skel-tk { width: 190px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* sections */
.block { position: relative; padding: 64px 0 32px; }
@media (min-width: 640px) { .block { padding: 96px 0 48px; } }
.block.alt { background: linear-gradient(180deg, var(--n-wash-2), var(--n-wash-1)); margin-top: 32px; padding-bottom: 80px; }
.sec-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 36px; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--n-primary); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.08; font-weight: 300; letter-spacing: -0.03em; text-wrap: balance; }
.lede { font-size: 17px; max-width: 640px; }
.fine { margin-top: 16px; font-size: 13px; opacity: 0.85; }

/* stat tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.tile { display: grid; gap: 6px; padding: 18px; border-radius: var(--r-card); background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); }
.tile-k { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.tile-v { font-size: clamp(22px, 4.4vw, 34px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* board */
.board { border-radius: var(--r-panel); background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line), 0 28px 60px -34px var(--c-shadow); overflow: hidden; }
.board-head, .row { display: grid; align-items: center; column-gap: 12px; padding: 0 12px; }
.board-head { display: none; min-height: 44px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 1px solid var(--c-line); opacity: 0.85; }
.row { position: relative; min-height: 72px; grid-template-columns: minmax(0, 1fr) auto 44px; grid-template-areas: "asset price copy" "vol chg copy"; padding-top: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--c-line); transition: background-color 0.4s var(--ease); }
.row:last-child { border-bottom: 0; }
.row .c-asset { grid-area: asset; display: flex; align-items: center; gap: 12px; min-width: 0; }
.row .c-price { grid-area: price; text-align: right; font-weight: 600; }
.row .c-chg { grid-area: chg; justify-self: end; }
.row .c-vol { grid-area: vol; font-size: 13px; opacity: 0.85; }
.row .c-copy { grid-area: copy; justify-self: end; }
.num { font-variant-numeric: tabular-nums; }
@media (min-width: 760px) {
  .board-head, .row { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.2fr) 44px; padding: 0 20px; }
  .board-head { display: grid; }
  .board-head span:nth-child(2), .board-head span:nth-child(3) { text-align: right; }
  .board-head span:nth-child(3) { justify-self: end; }
  .row { grid-template-areas: "asset price chg vol copy"; min-height: 68px; }
  .row .c-vol { font-size: 15px; opacity: 1; }
}
.t-tile { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; font-weight: 700; font-size: 16px; color: var(--n-paper); background: linear-gradient(145deg, var(--n-light), var(--n-primary)); box-shadow: inset 0 0 0 1px var(--c-line); }
.t-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--n-paper); opacity: 0; transition: opacity 0.5s var(--ease); }
.t-tile img.ok { opacity: 1; }
.t-name { min-width: 0; display: grid; line-height: 1.25; }
.t-name b { font-weight: 700; }
.t-name span { font-size: 13px; opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chg { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chg.up { background: var(--n-primary); color: var(--n-paper); }
.chg.down { background: var(--n-paper); color: var(--n-ink); box-shadow: inset 0 0 0 1.5px var(--n-ink); }
.chg.flat { background: var(--n-wash-3); }
.copy-sym { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--c-line); background: var(--n-paper); transition: transform 0.3s var(--ease), background-color 0.3s var(--ease); }
.copy-sym svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.copy-sym:hover { transform: translateY(-1px); background: var(--n-glint); }
.copy-sym.done { background: var(--n-primary); color: var(--n-paper); }
.flash-up { animation: flashUp 0.9s var(--ease); }
.flash-down { animation: flashDown 0.9s var(--ease); }
@keyframes flashUp { 0% { background-color: color-mix(in srgb, var(--n-light) 55%, transparent); } 100% { background-color: transparent; } }
@keyframes flashDown { 0% { background-color: color-mix(in srgb, var(--n-shade) 85%, transparent); } 100% { background-color: transparent; } }
.row.enter { animation: rowIn 0.6s var(--ease) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.row.skel { pointer-events: none; }
.sk { display: block; height: 14px; border-radius: 8px; background: linear-gradient(90deg, var(--n-wash-3) 25%, var(--n-wash-1) 50%, var(--n-wash-3) 75%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.sk.round { width: 40px; height: 40px; border-radius: 50%; }
.sk.w1 { width: 70%; } .sk.w2 { width: 90px; justify-self: end; } .sk.w3 { width: 60px; justify-self: end; } .sk.w4 { width: 80px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.board-note { min-height: 0; padding: 0 20px; font-size: 14px; font-weight: 600; }
.board-note:not(:empty) { padding: 14px 20px; border-top: 1px solid var(--c-line); }

/* spotlight */
[data-spot] { position: relative; overflow: hidden; }
[data-spot]::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0; transition: opacity 0.35s var(--ease); background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--n-light) 38%, transparent), transparent 70%); }
[data-spot]:hover::before { opacity: 1; }
[data-spot] > * { position: relative; z-index: 1; }

/* tabs */
.tablist { position: relative; display: inline-flex; gap: 4px; padding: 6px; border-radius: 999px; background: var(--c-glass); box-shadow: inset 0 0 0 1px var(--c-line); margin-bottom: 16px; max-width: 100%; overflow-x: auto; }
.tablist button { position: relative; z-index: 1; min-height: 44px; min-width: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: color 0.3s var(--ease); }
.tablist button[aria-selected="true"] { color: var(--n-paper); }
.tab-ink { position: absolute; z-index: 0; top: 6px; bottom: 6px; left: 0; width: var(--ink-w, 0px); transform: translateX(var(--ink-x, 6px)); border-radius: 999px; background: var(--n-primary); transition: transform 0.5s var(--ease), width 0.5s var(--ease); }
.tabpanels { border-radius: var(--r-panel); padding: 20px; }
@media (min-width: 760px) { .tabpanels { padding: 36px; } }
.tabpanel { display: grid; gap: 28px; align-items: center; }
.tabpanel[hidden] { display: none; }
@media (min-width: 900px) { .tabpanel { grid-template-columns: 1.1fr 0.9fr; } }
.tabpanel.is-on { animation: rise var(--dur-rise) var(--ease) both; }
.tp-copy { display: grid; gap: 14px; }
.tp-copy h3 { font-size: clamp(22px, 3vw, 30px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.tp-copy li { position: relative; padding-left: 22px; min-height: 28px; font-weight: 600; }
.tp-copy li::before { content: ""; position: absolute; left: 0; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(145deg, var(--n-light), var(--n-primary)); }
.tp-art { display: grid; place-items: center; min-height: 200px; border-radius: var(--r-card); background: linear-gradient(160deg, var(--n-glint), var(--n-wash-3)); padding: 24px; }
.mock-chat, .mock-canvas, .mock-code { width: 100%; max-width: 360px; display: grid; gap: 10px; }
.mock-chat i { height: 34px; border-radius: 16px; background: var(--n-paper); box-shadow: inset 0 0 0 1px var(--c-line); width: 70%; }
.mock-chat .m-user { justify-self: end; background: var(--n-primary); width: 55%; }
.mock-chat .m-bot.short { width: 40%; }
.mock-canvas { grid-template-columns: 1fr 1fr; }
.mock-canvas i { aspect-ratio: 4/3; border-radius: 16px; background: linear-gradient(145deg, var(--n-mist), var(--n-primary)); }
.mock-canvas i:nth-child(2) { background: linear-gradient(145deg, var(--n-glint), var(--n-sky)); }
.mock-canvas i:nth-child(3) { background: linear-gradient(145deg, var(--n-sky), var(--n-ink)); }
.mock-code i { height: 14px; border-radius: 8px; background: color-mix(in srgb, var(--n-primary) 55%, var(--n-paper)); }
.mock-code i:nth-child(2) { width: 70%; margin-left: 24px; } .mock-code i:nth-child(3) { width: 50%; margin-left: 24px; background: var(--n-sky); } .mock-code i:nth-child(4) { width: 80%; } .mock-code i:nth-child(5) { width: 35%; background: var(--n-ink); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* cards + phases */
.cards, .phases { display: grid; gap: 14px; }
@media (min-width: 640px) { .cards, .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards, .phases { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.card, .phase { display: grid; align-content: start; gap: 10px; padding: 24px; border-radius: var(--r-card); background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.card:hover, .phase:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--n-sky), 0 24px 40px -26px var(--c-shadow); }
.card h3, .phase h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.card p, .phase p { font-size: 15px; }
.ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, var(--n-glint), var(--n-mist)); }
.ico svg { width: 22px; height: 22px; fill: none; stroke: var(--n-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.phase-n { font-size: 13px; font-weight: 700; letter-spacing: 0.18em; color: var(--n-primary); }

/* registry chips */
.chiprow { display: flex; flex-wrap: wrap; gap: 10px; }
.reg-chip { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px 0 18px; border-radius: 999px; background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); font-weight: 600; font-size: 14px; }
.reg-chip .state-chip { min-height: 32px; }
a.reg-chip { transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
a.reg-chip:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--n-primary), 0 12px 24px -14px var(--c-shadow); }
.reg-chip.is-inert { opacity: 0.8; }

/* closing + footer */
.closing { position: relative; isolation: isolate; overflow: hidden; margin: 64px 12px 12px; border-radius: var(--r-frame); background: linear-gradient(180deg, var(--n-wash-2), var(--n-mist)); }
@media (min-width: 640px) { .closing { margin: 96px 20px 20px; } }
.closing-in { position: relative; z-index: 1; display: grid; gap: 22px; justify-items: center; text-align: center; padding-top: 72px; padding-bottom: 80px; }
.closing h2 { font-size: clamp(2.5rem, 6vw, 5.25rem); line-height: 0.92; font-weight: 400; letter-spacing: -0.045em; max-width: 880px; }
.closing .chips { justify-content: center; }
.foot { padding: 28px 0 40px; font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot nav { display: flex; gap: 6px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; font-weight: 600; }
.foot nav a:hover { background: var(--n-glint); }

/* reveal */
.js [data-reveal]:not(.in), .js [data-reveal-group]:not(.in) > * { opacity: 0; transform: translateY(32px) scale(0.985); animation: failsafe 0.01s 4s forwards; }
@keyframes failsafe { to { opacity: 1; transform: none; } }

/* reduced motion: no movement anywhere, content shown immediately */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal]:not(.in), .js [data-reveal-group]:not(.in) > * { opacity: 1; transform: none; }
  .ticker-mask { -webkit-mask-image: none; mask-image: none; overflow: visible; }
  .ticker-track { width: auto; flex-wrap: wrap; padding: 10px 16px; }
  .ticker-track .dup { display: none; }
  .blob { opacity: 0.6; }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.panel-where dd a, .foot p a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-weight: 600; }
.panel-where dd a:hover, .foot p a:hover { text-decoration: underline; }
