:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f4f5f7;
  background: #07080a;
  --ink: #f4f5f7;
  --muted: #9a9ea7;
  --quiet: #6d727d;
  --line: rgba(244, 245, 247, .12);
  --panel: rgba(16, 18, 22, .84);
  --accent: #22d3ee;
  --accent-soft: #a5f3fc;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #07080a; }
a { color: inherit; }
button { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.topbar { display: flex; align-items: center; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.brand { font-size: 16px; font-weight: 760; letter-spacing: .03em; text-decoration: none; }
.eyebrow, .label, .kicker { color: var(--quiet); font-size: 10px; font-weight: 760; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow { color: var(--accent-soft); }
.manifest-link { margin-left: auto; color: var(--muted); font-size: 12px; text-underline-offset: 4px; }
.intro { max-width: 760px; padding: 92px 0 52px; }
.kicker { margin: 0 0 18px; color: var(--accent-soft); }
h1 { max-width: 720px; margin: 0 0 20px; font-size: clamp(45px, 7vw, 82px); line-height: .96; letter-spacing: -.07em; }
.lede { max-width: 620px; margin: 0 0 28px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.controls { display: flex; flex-wrap: wrap; gap: 8px; }
.control { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .035); color: var(--muted); cursor: pointer; font-size: 12px; }
.control.is-selected { border-color: rgba(34, 211, 238, .44); background: rgba(34, 211, 238, .12); color: var(--accent-soft); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-bottom: 86px; }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); }
.selected-card { border-color: rgba(34, 211, 238, .42); }
.preview { display: grid; min-height: 300px; place-items: center; background: #090d0f; }
.variant-mark { width: min(72%, 220px); filter: drop-shadow(0 18px 34px rgba(34, 211, 238, .14)); }
.reference-card .variant-mark { width: min(58%, 178px); opacity: .82; filter: grayscale(1) brightness(1.3) drop-shadow(0 18px 34px rgba(255, 255, 255, .1)); }
.meta { display: flex; flex-direction: column; gap: 10px; padding: 20px 20px 0; }
.label { color: var(--accent-soft); }
.meta a { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
.card p { margin: 12px 20px 22px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.gallery[data-motion="orbit"] .variant-mark { animation: orbit 8s linear infinite; }
.gallery[data-motion="breathe"] .variant-mark { animation: breathe 2.8s ease-in-out infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(.94); opacity: .72; } 50% { transform: scale(1.05); opacity: 1; } }
.footer { display: flex; flex-wrap: wrap; gap: 18px; padding: 22px 0 38px; border-top: 1px solid var(--line); color: var(--quiet); font-size: 12px; }
.footer a { color: var(--muted); text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .gallery .variant-mark { animation: none !important; } }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .shell { width: min(100% - 28px, 540px); } .topbar { gap: 12px; } .eyebrow { display: none; } .intro { padding: 66px 0 42px; } .gallery { grid-template-columns: 1fr; } .preview { min-height: 280px; } }
