:root {
  --bg: #07080c;
  --bg-2: #0c0e15;
  --panel: #12151f;
  --panel-2: #181c29;
  --line: #242a3d;
  --text: #e9ebf4;
  --muted: #9ba2ba;
  --dim: #69708a;
  --accent: #6ee7ff;
  --accent-2: #a78bfa;
  --accent-3: #34d399;
  --gold: #f5c451;
  --radius: 16px;
  --shadow: 0 20px 60px -24px rgba(0,0,0,.8);
  --maxw: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --glow-x: 50%; --glow-y: 50%;
}
[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-2: #eef0f7;
  --panel: #ffffff;
  --panel-2: #f4f6fb;
  --line: #dde1ee;
  --text: #141726;
  --muted: #4c5470;
  --dim: #7b839c;
  --accent: #0b7fa8;
  --accent-2: #6d4fd0;
  --accent-3: #0f9d6c;
  --gold: #b8860b;
  --shadow: 0 20px 50px -26px rgba(30,40,80,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; background: var(--accent); color: #04121a; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 16px; top: 16px; border-radius: 8px; }

/* ----------------------------------------------------------- cursor glow */
.cursor-glow {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: 0;
  transition: opacity .4s ease;
  background: radial-gradient(420px circle at var(--glow-x) var(--glow-y),
              color-mix(in srgb, var(--accent) 12%, transparent), transparent 65%);
}
@media (hover: hover) { .cursor-glow { opacity: 1; } }

/* ------------------------------------------------------------------ nav */
.nav {
  position: sticky; top: 0; z-index: 60; backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent; transition: border-color .25s, background .25s;
}
.nav.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--bg) 90%, transparent); }
.nav-inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.01em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #05121a;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 14.5px; color: var(--muted); }
.nav-links a { position: relative; transition: color .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--text); }
.theme-toggle {
  margin-left: 8px; width: 38px; height: 38px; border-radius: 11px; cursor: pointer;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  font-size: 16px; display: grid; place-items: center; transition: all .2s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--accent); }
@media (max-width: 820px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px; font-size: 14.5px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .15s, filter .2s, border-color .2s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04121a; }
.btn-primary:hover { filter: brightness(1.09); }
.btn-ghost { border-color: var(--line); color: var(--text); background: color-mix(in srgb, var(--text) 3%, transparent); }
.btn-ghost:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 72px; }
#particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .55; }
.hero-inner { position: relative; z-index: 2; }
.hero-glow {
  position: absolute; z-index: 1; inset: auto -10% 26% 38%; height: 520px; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%),
              radial-gradient(closest-side, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 70%);
  filter: blur(24px);
}
.eyebrow {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 18px;
}
.hero-title { font-size: clamp(2.3rem, 6vw, 4.05rem); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 20px; font-weight: 800; max-width: 17ch; }
.grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 55%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% auto; animation: shimmer 6s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }
.hero-sub { color: var(--muted); font-size: 1.08rem; max-width: 62ch; margin: 0 0 30px; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 42px; padding: 26px 0 0; margin: 44px 0 0; border-top: 1px solid var(--line); }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats .n { font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero-stats .l { font-size: 12.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; z-index: 2; transform: translateX(-50%); }
.scroll-hint span {
  display: block; width: 22px; height: 36px; border: 2px solid var(--line); border-radius: 12px; position: relative;
}
.scroll-hint span::after {
  content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px; border-radius: 2px;
  background: var(--accent); transform: translateX(-50%); animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0%,100% { transform: translate(-50%,0); opacity: 1; } 50% { transform: translate(-50%,10px); opacity: .3; } }
@media (max-width: 640px) { .scroll-hint { display: none; } }

/* -------------------------------------------------------------- section */
.section { padding: 84px 0; position: relative; z-index: 1; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 30px; }
.section-head h2, .about h2, .contact h2 { font-size: clamp(1.6rem, 3.4vw, 2.15rem); letter-spacing: -.02em; margin: 0 0 8px; }
.section-head p { color: var(--muted); margin: 0; }

/* -------------------------------------------------------------- controls */
.work-controls { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 26px; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  font-family: var(--mono); font-size: 12.5px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  cursor: pointer; transition: all .18s;
}
.chip:hover { color: var(--text); border-color: var(--accent); }
.chip[aria-selected="true"] { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04121a; border-color: transparent; font-weight: 600; }
.search { display: flex; align-items: center; gap: 8px; margin-left: auto; border: 1px solid var(--line); border-radius: 11px; padding: 8px 13px; background: color-mix(in srgb, var(--text) 2%, transparent); }
.search span { color: var(--dim); }
.search input { border: none; outline: none; background: transparent; color: var(--text); font-family: inherit; font-size: 14px; width: 190px; }
.search input::placeholder { color: var(--dim); }
@media (max-width: 640px) { .search { margin-left: 0; width: 100%; } .search input { width: 100%; } }

/* ------------------------------------------------------------------ grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(322px, 1fr)); gap: 20px; }
.card {
  position: relative; display: flex; flex-direction: column; cursor: pointer; text-align: left;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); overflow: hidden; color: inherit; font-family: inherit;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; opacity: 0; transition: opacity .22s;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.card::after {
  content: ""; position: absolute; inset: -40% -60% auto auto; width: 220px; height: 220px; opacity: 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  transition: opacity .3s; pointer-events: none;
}
.card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: color-mix(in srgb, var(--text) 5%, transparent); border: 1px solid var(--line); }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.card h3 { margin: 0 0 8px; font-size: 1.16rem; letter-spacing: -.01em; }
.card p { margin: 0 0 16px; color: var(--muted); font-size: 14.6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.chips span {
  font-family: var(--mono); font-size: 11px; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  padding: 3px 9px; border-radius: 6px;
}
.card-cta { margin-top: 15px; font-size: 13px; font-weight: 600; color: var(--accent); opacity: 0; transition: opacity .2s; }
.card:hover .card-cta { opacity: 1; }
.badge-featured { position: absolute; top: 14px; right: 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #1a1405; background: var(--gold); padding: 3px 8px; border-radius: 6px; font-weight: 700; }
.badge-assisted { position: absolute; top: 14px; right: 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: rgba(255,255,255,.07); border: 1px solid var(--line); padding: 3px 8px; border-radius: 6px; font-weight: 700; }
.card-assisted { border-color: rgba(255,255,255,.06); }
.empty { color: var(--muted); text-align: center; padding: 30px 0; }

/* --------------------------------------------------------------- timeline */
.timeline { position: relative; margin-top: 12px; }
.timeline::before {
  content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--accent), var(--accent-2)); opacity: .55;
}
.tl-item { position: relative; padding: 0 0 32px 48px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot {
  position: absolute; left: 3px; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 10%, transparent);
}
.tl-before .tl-dot { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 12%, transparent); }
.tl-middle .tl-dot { border-color: var(--accent-3); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-3) 12%, transparent); }
.tl-after .tl-dot { border-color: var(--accent-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 14%, transparent); }
.tl-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.tl-head h3 { margin: 0; font-size: 1.08rem; }
.tl-period { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.tl-body p { margin: 0 0 12px; color: var(--muted); max-width: 68ch; font-size: 14.8px; }
.tl-body .chips { margin-top: 0; }

/* -------------------------------------------------------------- interests */
.interests { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.interest {
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; background: linear-gradient(180deg, var(--panel), var(--panel-2));
  transition: transform .22s, border-color .22s;
}
.interest:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.interest .glyph { font-size: 30px; margin-bottom: 12px; display: block; }
.interest h3 { margin: 0 0 8px; font-size: 1.1rem; }
.interest p { margin: 0; color: var(--muted); font-size: 14.6px; }
.interest .rings { position: absolute; right: -30px; bottom: -30px; width: 130px; height: 130px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); opacity: .5; }
.interest .rings::after { content: ""; position: absolute; inset: 22px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent-2) 26%, transparent); }

/* ------------------------------------------------------------------ stack */
.stack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.stack-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: border-color .2s, transform .2s; }
.stack-card:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); transform: translateY(-3px); }
.stack-card h3 { margin: 0 0 12px; font-size: .98rem; }
.stack-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.stack-card li { font-family: var(--mono); font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 7px; padding: 4px 9px; }

/* ------------------------------------------------------------------ about */
.about { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; gap: 28px; } }
.about-copy p { color: var(--muted); }
.about-card { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.about-card h3 { margin: 0 0 14px; font-size: 1rem; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.facts li { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; }
.facts .k { color: var(--dim); }
.facts .v { font-weight: 600; text-align: right; }

/* ---------------------------------------------------------------- contact */
.contact { text-align: center; }
.contact-sub { color: var(--muted); margin: 0 auto 26px; max-width: 48ch; }
.contact-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.contact-note { color: var(--dim); font-size: 13.5px; margin: 16px 0 0; }

/* ----------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); padding: 26px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 14px; color: var(--dim); font-size: 13.5px; flex-wrap: wrap; }
.footer-dim { font-family: var(--mono); }
.footer-note { color: var(--dim); font-size: 12px; margin-top: 10px; }

/* --------------------------------------------------------------- to-top */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 70; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 92%, transparent); color: var(--text);
  cursor: pointer; font-size: 18px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .2s;
  backdrop-filter: blur(10px);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); border-color: var(--accent); }

/* ----------------------------------------------------------------- modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2,3,8,.72); backdrop-filter: blur(6px); animation: fadeIn .2s; }
.modal-card {
  position: relative; width: min(620px, 100%); max-height: 84vh; overflow-y: auto;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 18px; padding: 28px; box-shadow: 0 30px 90px -30px rgba(0,0,0,.9);
  animation: pop .25s cubic-bezier(.2,.9,.3,1.2);
}
.modal-close { position: absolute; top: 14px; right: 16px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--text); border-color: var(--accent); }
.modal-head { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; padding-right: 34px; }
.modal-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px; background: color-mix(in srgb, var(--text) 5%, transparent); border: 1px solid var(--line); flex: 0 0 auto; }
.modal-head h3 { margin: 0; font-size: 1.3rem; }
.modal-meta { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.modal-body { color: var(--muted); margin: 0 0 18px; }
.modal-highlights { display: grid; gap: 8px; margin-bottom: 18px; }
.modal-highlights div { display: flex; gap: 10px; font-size: 14.3px; color: var(--muted); }
.modal-highlights div::before { content: "▹"; color: var(--accent); }
/* -------------------------------------------------------- scratch archive */
.archive { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.arc-col { background: linear-gradient(180deg, var(--panel), var(--panel-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: transform .2s, border-color .2s; }
.arc-col:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.arc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.arc-year { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; background: linear-gradient(120deg, var(--gold), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.arc-count { font-family: var(--mono); font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.arc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.arc-list li { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.arc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: 0 0 auto; }
.arc-title { color: var(--text); }
.arc-date { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--dim); white-space: nowrap; }

/* --------------------------------------------------------------- shop */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.shop-card {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  transition: transform .22s, border-color .22s;
}
.shop-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.shop-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.shop-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.shop-badge { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #1a1405; background: var(--gold); padding: 3px 8px; border-radius: 6px; font-weight: 700; }
.shop-card h3 { margin: 0 0 8px; font-size: 1.18rem; }
.shop-card p { margin: 0 0 14px; color: var(--muted); font-size: 14.4px; }
.shop-list { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 7px; }
.shop-list li { font-size: 13.6px; color: var(--muted); display: flex; gap: 9px; }
.shop-list li::before { content: "✓"; color: var(--accent-3); font-weight: 700; }
.shop-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.shop-price { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; color: var(--gold); }
.shop-btn { padding: 9px 18px; }
.shop-note { color: var(--dim); font-size: 13px; margin-top: 24px; max-width: 70ch; }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.svc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .2s, border-color .2s; }
.svc:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.svc-icon { font-size: 26px; display: block; margin-bottom: 10px; }
.svc h3 { margin: 0 0 8px; font-size: 1.02rem; }
.svc p { margin: 0 0 12px; color: var(--muted); font-size: 14.2px; }
.svc-from { font-family: var(--mono); font-size: 12.5px; color: var(--gold); }

/* --------------------------------------------------------------- before-ai */
.before-band {
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 20px;
  padding: 40px 38px; background:
    linear-gradient(180deg, var(--panel), var(--panel-2));
}
.before-band::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--accent-2));
}
.before-tag {
  display: inline-block; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; color: #1a1405; background: var(--gold);
  padding: 4px 11px; border-radius: 7px; font-weight: 700; margin-bottom: 16px;
}
.before-band h2 { margin: 0 0 16px; font-size: clamp(1.5rem, 3.2vw, 2rem); letter-spacing: -.02em; max-width: 24ch; }
.before-band p { color: var(--muted); max-width: 74ch; margin: 0 0 14px; }
.before-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.before-points li { display: flex; gap: 11px; font-size: 14.7px; color: var(--muted); }
.before-points li::before { content: "▸"; color: var(--gold); flex: 0 0 auto; }
.before-points strong { color: var(--text); font-weight: 600; }
@media (max-width: 620px) { .before-band { padding: 30px 22px; } }

/* card accent for pre-AI era */
.card-before { border-color: color-mix(in srgb, var(--gold) 26%, var(--line)); }
.card-before::before { background: linear-gradient(90deg, var(--gold), var(--accent-2)); }
.badge-featured { background: var(--gold); }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
