/* ============================================================
   CDante Modding — RobCo Terminal design system
   One stylesheet powers every page.
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ---------- Tokens ---------- */
:root {
  --bg:        #070b09;
  --bg-2:      #0a100d;
  --bg-3:      #0e1612;
  --panel:     rgba(18, 28, 22, 0.55);
  --panel-2:   rgba(22, 34, 27, 0.9);

  --phosphor:    #3ee07b;
  --phosphor-2:  #2bd167;
  --phosphor-dim:#1c9a4f;
  --amber:       #ffb43f;
  --amber-dim:   #c97f1e;
  --rust:        #d4623a;
  --danger:      #ff5d52;

  --ink:    #d3ecd9;
  --ink-2:  #aecdb8;
  --muted:  #6f8c79;
  --faint:  #4a6354;

  --line:      rgba(62, 224, 123, 0.16);
  --line-2:    rgba(62, 224, 123, 0.32);
  --glow:      0 0 14px rgba(62, 224, 123, 0.35);
  --glow-amber:0 0 14px rgba(255, 180, 63, 0.35);

  --font-ui:   'Share Tech Mono', monospace;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --maxw: 1180px;
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: var(--phosphor); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--amber); }

/* Keyboard focus visibility (WCAG 2.4.7) */
:focus-visible { outline: 2px solid var(--phosphor); outline-offset: 3px; border-radius: 3px; }
.btn:focus-visible { outline-offset: 4px; }
input[type=range]:focus-visible { outline: none; }
input[type=range]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--amber); outline-offset: 2px; }
input[type=range]:focus-visible::-moz-range-thumb { outline: 2px solid var(--amber); outline-offset: 2px; }
.search:focus-within { border-color: var(--phosphor); box-shadow: var(--glow); }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Ambient background: grid + vignette + scanlines ---------- */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 700px at 78% -8%, rgba(62,224,123,0.10), transparent 60%),
    radial-gradient(900px 600px at 8% 12%, rgba(255,180,63,0.05), transparent 55%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 40%, #05080699 100%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  background: repeating-linear-gradient(
    to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,0.13) 3px, rgba(0,0,0,0) 4px);
  mix-blend-mode: multiply;
  opacity: .55;
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black, transparent 85%);
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 85%);
  opacity: .5;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(18px, 4vw, 40px); }
.section { padding-block: clamp(56px, 9vw, 110px); position: relative; }
.section--tight { padding-block: clamp(40px, 6vw, 70px); }
.center { text-align: center; }
.stack { display: grid; gap: 1rem; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-ui); font-weight: 400; line-height: 1.08; color: #eafff0; letter-spacing: 0.01em; }
.display { font-size: clamp(2.6rem, 7vw, 5.2rem); line-height: .98; text-transform: uppercase; }
.h-sec  { font-size: clamp(1.8rem, 4vw, 2.9rem); text-transform: uppercase; }
.lead   { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--ink-2); font-weight: 300; }
.kicker {
  font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .28em;
  font-size: .8rem; color: var(--phosphor); display: inline-flex; align-items: center; gap: .6em;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--phosphor); box-shadow: var(--glow); }
.amber { color: var(--amber); }
.txt-muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

.section-head { display: grid; gap: .8rem; margin-bottom: clamp(2rem, 4vw, 3.2rem); max-width: 760px; }
.section-head.center { margin-inline: auto; justify-items: center; }

/* glitch/flicker for the brand */
.glow-text { text-shadow: 0 0 10px rgba(62,224,123,.45), 0 0 30px rgba(62,224,123,.2); }

/* ---------- Terminal panel framing ---------- */
.panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(62,224,123,.04), transparent 30%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(3px);
}
.panel-head {
  display: flex; align-items: center; gap: .7rem;
  padding: .55rem .9rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-ui); font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--phosphor);
  background: rgba(62,224,123,.04);
}
.panel-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--phosphor); box-shadow: var(--glow); }
.panel-head .dot.amber { background: var(--amber); box-shadow: var(--glow-amber); }
.panel-head .dot.dim { background: var(--faint); box-shadow: none; }
.panel-body { padding: clamp(1rem, 2.4vw, 1.6rem); }

/* corner brackets decoration */
.bracket { position: relative; }
.bracket::before, .bracket::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border: 2px solid var(--line-2);
}
.bracket::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.bracket::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* ---------- Buttons ---------- */
.btn {
  --c: var(--phosphor);
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .1em;
  font-size: .92rem;
  padding: .8em 1.5em;
  color: var(--c);
  border: 1px solid var(--c);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(62,224,123,.10), rgba(62,224,123,.02));
  position: relative; overflow: hidden;
  transition: all .25s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: var(--c); opacity: 0; transition: opacity .25s var(--ease);
  mix-blend-mode: overlay;
}
.btn:hover { color: #05140b; background: var(--c); box-shadow: 0 0 22px -2px var(--c); transform: translateY(-2px); }
.btn:hover::after { opacity: .15; }
.btn--amber { --c: var(--amber); background: linear-gradient(180deg, rgba(255,180,63,.12), rgba(255,180,63,.02)); }
.btn--ghost { background: transparent; --c: var(--ink-2); border-color: var(--line-2); }
.btn--ghost:hover { color: var(--phosphor); background: transparent; box-shadow: none; border-color: var(--phosphor); transform: translateY(-2px); }
.btn--lg { padding: 1em 1.9em; font-size: 1rem; }
.btn--sm { padding: .5em 1em; font-size: .82rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Chips / tags ---------- */
.chip {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 500;
  padding: .26em .7em; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-2);
  background: rgba(62,224,123,.05); white-space: nowrap;
}
.chip--amber { color: var(--amber); border-color: rgba(255,180,63,.4); background: rgba(255,180,63,.06); }
.tag-row { display: flex; flex-wrap: wrap; gap: .45rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 11, 9, 0.78);
  backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 1.4rem; height: 64px; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: var(--font-ui); }
.brand__logo {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--phosphor); border-radius: 5px; color: var(--phosphor);
  box-shadow: inset 0 0 12px rgba(62,224,123,.25), var(--glow); font-size: 1.05rem; font-weight: 700;
}
.brand__name { font-size: 1.18rem; letter-spacing: .04em; color: #eafff0; }
.brand__name b { color: var(--phosphor); font-weight: 400; }
.brand__sub { font-size: .62rem; letter-spacing: .3em; color: var(--muted); text-transform: uppercase; }
.nav__links { display: flex; gap: .3rem; margin-left: auto; align-items: center; }
.nav__links a {
  font-family: var(--font-ui); font-size: .86rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); padding: .5em .8em; border-radius: var(--radius); position: relative;
}
.nav__links a:hover, .nav__links a.active { color: var(--phosphor); background: rgba(62,224,123,.07); }
.nav__links a.active::after {
  content: ""; position: absolute; left: .8em; right: .8em; bottom: .25em; height: 1px;
  background: var(--phosphor); box-shadow: var(--glow);
}
.nav__cta { margin-left: .4rem; }
.nav__burger { display: none; background: none; border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--phosphor); width: 42px; height: 38px; font-size: 1.1rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-block: clamp(60px, 12vw, 130px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__status {
  font-family: var(--font-mono); font-size: .76rem; color: var(--muted);
  display: flex; align-items: center; gap: .6rem; margin-bottom: 1.4rem;
}
.hero__status .live { width: 8px; height: 8px; border-radius: 50%; background: var(--phosphor); box-shadow: var(--glow); animation: pulse 2s infinite; }
.hero h1 { margin-bottom: 1.2rem; }
.hero p.lead { max-width: 46ch; margin-bottom: 2rem; }
.hero__metrics { display: flex; gap: 2.2rem; flex-wrap: wrap; margin-top: 2.4rem; }
.metric { display: grid; gap: .15rem; }
.metric__num { font-family: var(--font-ui); font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--phosphor); line-height: 1; }
.metric__lbl { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* hero terminal card */
.term {
  font-family: var(--font-mono); font-size: .85rem; color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 6px;
  background: linear-gradient(180deg, rgba(10,18,13,.96), rgba(6,11,8,.96));
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), inset 0 0 60px rgba(62,224,123,.04);
  overflow: hidden;
}
.term__bar { display: flex; align-items: center; gap: .5rem; padding: .6rem .9rem; border-bottom: 1px solid var(--line); background: rgba(62,224,123,.04); }
.term__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--faint); display: inline-block; }
.term__bar i:nth-child(1){ background:#d4623a; } .term__bar i:nth-child(2){ background: var(--amber); } .term__bar i:nth-child(3){ background: var(--phosphor); }
.term__bar span { margin-left: auto; font-size: .72rem; color: var(--muted); letter-spacing: .12em; }
.term__body { padding: 1.1rem 1.2rem; line-height: 1.9; }
.term__body .l { display: block; white-space: pre-wrap; }
.term__body .p { color: var(--phosphor); }
.term__body .c { color: var(--muted); }
.term__body .a { color: var(--amber); }
.cursor { display: inline-block; width: 9px; height: 1.05em; background: var(--phosphor); vertical-align: -2px; box-shadow: var(--glow); animation: blink 1.1s steps(1) infinite; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 0%,100%{ opacity:1 } 50%{ opacity:.35 } }

/* ============================================================
   CARDS / GRID
   ============================================================ */
.grid { display: grid; gap: 1.3rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 24px 60px -34px rgba(62,224,123,.5); }
.card__media { aspect-ratio: 16/9; background: linear-gradient(135deg, #0c1410, #060a08); position: relative; overflow: hidden; }
.card__media::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 50%, rgba(5,8,6,.85)); }
.card__media img { width:100%; height:100%; object-fit: cover; opacity: .9; transition: transform .5s var(--ease), opacity .3s; }
.card:hover .card__media img { transform: scale(1.06); opacity: 1; }
.card__badge { position: absolute; top: .7rem; left: .7rem; z-index: 2; }
.card__body { padding: 1.15rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.card__game { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); }
.card__title { font-family: var(--font-ui); font-size: 1.32rem; color: #eafff0; line-height: 1.1; }
.card__desc { font-size: .92rem; color: var(--ink-2); flex: 1; }
.card__foot { display: flex; align-items: center; gap: .8rem; margin-top: .3rem; flex-wrap: wrap; }
.card__links { display:flex; gap:.6rem; margin-left:auto; }
.icon-link { display:grid; place-items:center; width:34px; height:34px; border:1px solid var(--line-2); border-radius:var(--radius); color:var(--ink-2); transition: all .2s var(--ease); }
.icon-link:hover { color: var(--phosphor); border-color: var(--phosphor); box-shadow: var(--glow); }
.card--feature { grid-column: span 2; }

/* generated mod art fills card media */
.card__media .mod-art { width: 100%; height: 100%; display: block; }
/* real cover photo sits above the generated art; removed via onerror if it 404s */
.mod-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; opacity: .92; transition: transform .5s var(--ease), opacity .3s; }
.card:hover .mod-cover { transform: scale(1.05); opacity: 1; }
.card__media::after { z-index: 2; }
.card__badge { z-index: 3 !important; }

/* big-icon feature art for deep-dive / about links */
.feature-link { cursor: pointer; }
.feature-art { position: absolute; inset: 0; display: grid; place-items: center; color: var(--phosphor); }
.feature-art svg { filter: drop-shadow(0 0 16px rgba(62,224,123,.35)); opacity: .85; }
.feature-art--amber { color: var(--amber); background: radial-gradient(120% 120% at 50% 0%, rgba(255,180,63,.12), transparent 60%); }
.feature-art--amber svg { filter: drop-shadow(0 0 16px rgba(255,180,63,.4)); }
.feature-art--green { background: radial-gradient(120% 120% at 50% 0%, rgba(62,224,123,.12), transparent 60%); }

.stat-inline { display:flex; gap:1rem; font-family: var(--font-mono); font-size:.74rem; color: var(--muted); }
.stat-inline b { color: var(--phosphor); font-weight: 500; }

/* ============================================================
   FUNNEL / PLATFORM strip
   ============================================================ */
.platforms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.platform {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.2rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  transition: all .25s var(--ease);
}
.platform:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--glow); }
.platform__icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 8px; background: rgba(62,224,123,.08); color: var(--phosphor); border: 1px solid var(--line-2); }
.platform__t { font-family: var(--font-ui); color: #eafff0; font-size: 1.05rem; }
.platform__s { font-size: .8rem; color: var(--muted); font-family: var(--font-mono); }

/* ============================================================
   PRESS
   ============================================================ */
.press-list { display: grid; gap: 1rem; }
.press {
  display: grid; grid-template-columns: 130px 1fr auto; gap: 1.2rem; align-items: center;
  padding: 1.1rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); transition: all .25s var(--ease);
}
.press:hover { border-color: var(--line-2); transform: translateX(4px); }
.press__outlet { font-family: var(--font-ui); text-transform: uppercase; letter-spacing: .1em; color: var(--amber); font-size: .92rem; }
.press__title { color: var(--ink); font-size: 1.02rem; }
.press__title b { color: #eafff0; font-weight: 600; }
.press__date { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); }
.quote {
  border-left: 2px solid var(--phosphor); padding: .3rem 0 .3rem 1.1rem; margin: 1rem 0;
  font-style: italic; color: var(--ink); font-size: 1.05rem;
}
.quote cite { display:block; font-style: normal; font-family: var(--font-mono); font-size:.78rem; color: var(--muted); margin-top:.5rem; }

/* ============================================================
   SUB-PAGE HERO (codex / hair)
   ============================================================ */
.subhero { padding-block: clamp(40px, 7vw, 80px) clamp(28px, 4vw, 44px); }
.subhero .lead { max-width: 64ch; }
.breadcrumb { font-family: var(--font-mono); font-size: .76rem; color: var(--muted); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--muted); } .breadcrumb a:hover { color: var(--phosphor); }
.subhero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); text-transform: uppercase; margin: .4rem 0 1rem; }

/* ============================================================
   TOOLBAR (filters)
   ============================================================ */
.toolbar { display: grid; gap: 1rem; margin-bottom: 1.8rem; position: sticky; top: 64px; z-index: 40;
  background: linear-gradient(180deg, var(--bg) 70%, transparent); padding-block: 1rem; }
.search { display: flex; align-items: center; gap: .7rem; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--panel); padding: .1rem .9rem; max-width: 460px; }
.search svg { color: var(--muted); flex: none; }
.search input { flex: 1; background: none; border: 0; color: var(--ink); font-family: var(--font-mono); font-size: .95rem; padding: .75rem 0; outline: none; }
.search input::placeholder { color: var(--faint); }
.pillbar { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.pillbar .lbl { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: .3rem; }
.pill {
  font-family: var(--font-ui); font-size: .82rem; letter-spacing: .04em;
  padding: .42em .9em; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(62,224,123,.04); color: var(--ink-2); display: inline-flex; align-items: center; gap: .45em;
  transition: all .18s var(--ease); white-space: nowrap;
}
.pill:hover { color: var(--phosphor); border-color: var(--phosphor); }
.pill.active { background: var(--phosphor); color: #05140b; border-color: var(--phosphor); box-shadow: 0 0 16px -3px var(--phosphor); }
.pill svg { width: 15px; height: 15px; }
.pill .n { font-family: var(--font-mono); font-size: .72rem; opacity: .7; }
.result-count { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }
.result-count b { color: var(--phosphor); }

/* ---- trigger legend ---- */
.legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; margin-bottom: 2rem; }
.legend__item { display: flex; align-items: center; gap: .7rem; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.legend__ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--line-2); color: var(--phosphor); background: rgba(62,224,123,.06); }
.legend__t { font-family: var(--font-ui); color: #eafff0; font-size: .95rem; }
.legend__s { font-size: .76rem; color: var(--muted); }

/* ---- codex article cards ---- */
.codex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1rem; align-items: start; }
.cx {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  overflow: hidden; transition: border-color .2s var(--ease);
}
.cx.open, .cx:hover { border-color: var(--line-2); }
.cx__head { display: grid; grid-template-columns: 1fr auto; gap: .3rem .8rem; align-items: center; padding: .95rem 1.1rem; cursor: pointer; }
.cx__cat { grid-column: 1 / -1; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--amber); }
.cx__name { font-family: var(--font-ui); font-size: 1.12rem; color: #eafff0; line-height: 1.15; }
.cx__icons { display: flex; gap: .3rem; align-items: center; }
.cx__icons .ti { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 5px; color: var(--phosphor); background: rgba(62,224,123,.08); border: 1px solid var(--line-2); }
.cx__icons .ti svg { width: 15px; height: 15px; }
.cx__toggle { grid-column: 1 / -1; display: flex; align-items: center; gap: .4rem; margin-top: .35rem; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.cx__toggle .caret { transition: transform .2s var(--ease); }
.cx.open .cx__toggle .caret { transform: rotate(90deg); }
.cx__body { display: none; padding: 0 1.1rem 1.1rem; }
.cx.open .cx__body { display: block; }
.trig { display: grid; grid-template-columns: 30px 1fr; gap: .7rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.trig__ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 5px; color: var(--phosphor); background: rgba(62,224,123,.07); border: 1px solid var(--line-2); align-self: start; }
.trig__ic svg { width: 17px; height: 17px; }
.trig__l { font-family: var(--font-ui); font-size: .82rem; color: var(--phosphor); letter-spacing: .04em; }
.trig__t { font-size: .9rem; color: var(--ink); }
.cx__notes { margin-top: .8rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.fn-chip { font-family: var(--font-mono); font-size: .7rem; color: var(--amber); border: 1px solid rgba(255,180,63,.35); background: rgba(255,180,63,.06); border-radius: 999px; padding: .2em .6em; cursor: help; }
.no-results { text-align: center; padding: 3rem 1rem; color: var(--muted); font-family: var(--font-mono); }

/* footnote legend */
.footnotes { margin-top: 2.6rem; }
.footnotes ol { padding-left: 1.3rem; display: grid; gap: .5rem; }
.footnotes li { color: var(--ink-2); font-size: .9rem; }
.footnotes li::marker { color: var(--amber); font-family: var(--font-mono); }

/* ============================================================
   H.A.I.R. LAB (interactive chart)
   ============================================================ */
/* ---- real growth-graph (tier columns of FO4 hairstyles) ---- */
.hair-tabs { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.4rem; }
.hair-tabs button { background: transparent; color: var(--ink-2); border: 0; padding: .6em 1.3em; font-family: var(--font-ui); font-size: .9rem; letter-spacing: .05em; text-transform: uppercase; transition: all .18s var(--ease); border-right: 1px solid var(--line); }
.hair-tabs button:last-child { border-right: 0; }
.hair-tabs button.active { background: var(--phosphor); color: #05140b; }
.hair-tabs button:not(.active):hover { background: rgba(62,224,123,.08); color: var(--phosphor); }
.hair-meta { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); margin-bottom: 1rem; }
.hair-meta b { color: var(--phosphor); }

.hgraph { display: flex; gap: 12px; overflow-x: auto; padding: 4px 4px 18px; scrollbar-color: var(--line-2) transparent; }
.hgraph::-webkit-scrollbar { height: 10px; }
.hgraph::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 5px; }
.tier-col { flex: 0 0 230px; display: flex; flex-direction: column; gap: 10px; }
.tier-head { position: sticky; top: 0; z-index: 3; background: linear-gradient(180deg, var(--bg-3), rgba(14,22,18,.92)); border: 1px solid var(--line-2); border-radius: var(--radius); padding: .55rem .7rem; text-align: center; }
.tier-head .t { font-family: var(--font-ui); color: var(--amber); font-size: .92rem; letter-spacing: .12em; }
.tier-head .s { font-family: var(--font-mono); font-size: .66rem; color: var(--muted); }

.hcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .18s var(--ease), transform .18s var(--ease); }
.hcard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.hcard.active { border-color: var(--phosphor); box-shadow: 0 0 0 1px var(--phosphor), var(--glow); }
.hcard.dim { opacity: .32; }
.hcard.nextlit { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.hcard__img { position: relative; aspect-ratio: 4 / 3; background: #0a0f0c; overflow: hidden; }
.hcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hcard__img .noimg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); }
.hcard__b { padding: .55rem .65rem .7rem; }
.hcard__n { font-family: var(--font-ui); color: #eafff0; font-size: .92rem; line-height: 1.1; }
.hcard__tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.fam { font-family: var(--font-mono); font-size: .62rem; padding: .12em .5em; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); text-transform: lowercase; }
.hcard__desc { font-size: .76rem; color: var(--muted); margin-top: .45rem; line-height: 1.35; }
.hcard__next { margin-top: .5rem; border-top: 1px dashed var(--line); padding-top: .4rem; font-family: var(--font-mono); font-size: .68rem; color: var(--phosphor-2); display: grid; gap: .2rem; }
.hcard__next .nx { color: var(--ink-2); } .hcard__next .nx b { color: var(--phosphor); font-weight: 500; } .hcard__next .pf { color: var(--faint); }
.hcard.terminal { border-color: rgba(212,98,58,.5); }
.hcard.terminal .hcard__n::after { content: " · terminal"; color: var(--rust); font-size: .7rem; }

.lab { display: grid; grid-template-columns: 300px 1fr; gap: 1.4rem; align-items: start; }
.lab__panel { position: sticky; top: 86px; }
.control { display: grid; gap: .5rem; margin-bottom: 1.4rem; }
.control__label { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-ui); font-size: .82rem; letter-spacing: .06em; color: var(--ink-2); text-transform: uppercase; }
.control__val { font-family: var(--font-mono); color: var(--phosphor); font-size: .82rem; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--phosphor-dim), var(--line-2)); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--phosphor); box-shadow: var(--glow); cursor: pointer; border: 2px solid #05140b; }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--phosphor); box-shadow: var(--glow); cursor: pointer; border: 2px solid #05140b; }
.seg { display: flex; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.seg button { flex: 1; background: transparent; color: var(--ink-2); border: 0; padding: .55em .4em; font-family: var(--font-ui); font-size: .82rem; letter-spacing: .04em; transition: all .18s var(--ease); }
.seg button.active { background: var(--phosphor); color: #05140b; }
.seg button:not(.active):hover { background: rgba(62,224,123,.08); color: var(--phosphor); }
.toggles { display: grid; gap: .55rem; }
.toggle { display: flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .9rem; color: var(--ink-2); }
.toggle input { accent-color: var(--phosphor); width: 16px; height: 16px; }
.toggle .sw { width: 14px; height: 14px; border-radius: 3px; flex: none; }

.chart-wrap { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.chart-wrap .panel-head { justify-content: space-between; }
.chart-svg { width: 100%; height: auto; display: block; touch-action: none; }
.chart-readout { display: flex; flex-wrap: wrap; gap: 1.2rem; padding: .9rem 1.1rem; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: .8rem; }
.chart-readout .ro { color: var(--muted); } .chart-readout .ro b { color: var(--phosphor); font-weight: 500; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 1rem; padding: .2rem 1.1rem 1rem; }
.chart-legend .li { display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--ink-2); font-family: var(--font-mono); }
.chart-legend .sw { width: 16px; height: 3px; border-radius: 2px; }

.stage-table { width: 100%; border-collapse: collapse; margin-top: 1.4rem; font-size: .9rem; }
.stage-table th, .stage-table td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.stage-table th { font-family: var(--font-ui); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.stage-table td { color: var(--ink-2); font-family: var(--font-mono); font-size: .84rem; }
.stage-table td.s-name { color: #eafff0; font-family: var(--font-body); }
.stage-table tr:hover td { background: rgba(62,224,123,.03); }

.note-card { border: 1px solid rgba(255,180,63,.3); background: rgba(255,180,63,.05); border-radius: var(--radius); padding: 1rem 1.2rem; display: flex; gap: .8rem; }
.note-card .ic { color: var(--amber); flex: none; }
.note-card p { font-size: .9rem; color: var(--ink-2); }

@media (max-width: 820px) {
  .lab { grid-template-columns: 1fr; }
  .lab__panel { position: static; }
}

/* ============================================================
   ABOUT — timeline + bio
   ============================================================ */
.timeline { position: relative; margin-left: 8px; padding-left: 26px; border-left: 1px solid var(--line-2); display: grid; gap: 1.8rem; }
.tl { position: relative; }
.tl::before { content: ""; position: absolute; left: -33px; top: 4px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--phosphor); box-shadow: var(--glow); }
.tl.amber::before { border-color: var(--amber); box-shadow: var(--glow-amber); }
.tl__year { font-family: var(--font-ui); color: var(--phosphor); font-size: .92rem; letter-spacing: .08em; }
.tl.amber .tl__year { color: var(--amber); }
.tl__t { font-family: var(--font-ui); color: #eafff0; font-size: 1.12rem; margin: .15rem 0 .25rem; }
.tl__d { color: var(--ink-2); font-size: .92rem; }

.bio-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.factsheet { display: grid; gap: .9rem; }
.fact { display: grid; grid-template-columns: 92px 1fr; gap: .6rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.fact dt { font-family: var(--font-ui); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fact dd { color: var(--ink); font-size: .94rem; }
.hobbies { display: flex; flex-wrap: wrap; gap: .5rem; }
@media (max-width: 820px) { .bio-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding-block: 3rem 2rem; margin-top: 2rem; }
.footer__grid { display:flex; flex-wrap:wrap; gap:2rem; justify-content: space-between; align-items:flex-start; }
.footer__links { display:flex; gap:2.2rem; flex-wrap:wrap; }
.footer__col { display:grid; gap:.5rem; }
.footer__col h4 { font-size:.82rem; letter-spacing:.16em; color: var(--muted); text-transform:uppercase; margin-bottom:.3rem; }
.footer__col a { font-size:.9rem; color: var(--ink-2); }
.footer__col a:hover { color: var(--phosphor); }
.footer__bottom { margin-top:2.4rem; padding-top:1.4rem; border-top:1px solid var(--line); display:flex; justify-content:space-between; flex-wrap:wrap; gap:1rem; font-family: var(--font-mono); font-size:.74rem; color: var(--muted); }

/* ============================================================
   UTIL / reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .card--feature { grid-column: span 1; }
  .press { grid-template-columns: 1fr; gap: .5rem; }
  .press__date { order: 3; }
}
@media (max-width: 640px) {
  .nav__links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 1rem; gap: .2rem; transform: translateY(-130%); visibility: hidden; transition: transform .3s var(--ease), visibility .3s; margin-left: 0; }
  .nav__links.open { transform: translateY(0); visibility: visible; }
  .nav__links a { width: 100%; }
  .nav__cta { display: none; }
  .nav__burger { display: grid; place-items: center; margin-left: auto; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .hero__metrics { gap: 1.4rem; }
}

/* ============================================================
   NAV real logo mark + brand image
   ============================================================ */
img.brand__logo { padding: 0; border: 0; box-shadow: none; object-fit: contain; background: transparent; height: 36px; width: auto; }
.brand__wordmark { height: 30px; width: auto; display: block; filter: drop-shadow(0 0 9px rgba(255,180,63,.28)); transition: filter .25s var(--ease); }
.brand:hover .brand__wordmark { filter: drop-shadow(0 0 14px rgba(255,180,63,.5)); }
@media (max-width: 400px) { .brand__wordmark { height: 24px; } }

/* ============================================================
   WIP / unpublished mods
   ============================================================ */
.card--wip { border-style: dashed; }
.card--wip .mod-cover, .card--wip .card__media { filter: saturate(.7) brightness(.85); }
.chip--wip { color: var(--rust); border-color: rgba(212,98,58,.5); background: rgba(212,98,58,.08); }
.wip-toggle { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; font-family: var(--font-mono); font-size: .82rem; color: var(--ink-2); user-select: none; }
.wip-toggle input { accent-color: var(--rust); width: 15px; height: 15px; }

/* ============================================================
   GALLERY button + LIGHTBOX
   ============================================================ */
.gallery-btn { display: inline-flex; align-items: center; gap: .35em; }
.card__media .gallery-cue { position: absolute; bottom: .6rem; right: .6rem; z-index: 3; display: inline-flex; align-items: center; gap: .35em;
  font-family: var(--font-mono); font-size: .68rem; color: var(--ink); background: rgba(7,11,9,.7); border: 1px solid var(--line-2);
  border-radius: 999px; padding: .25em .65em; backdrop-filter: blur(4px); transition: all .2s var(--ease); cursor: pointer; }
.gallery-cue:hover { color: var(--phosphor); border-color: var(--phosphor); }
.gallery-cue svg { width: 13px; height: 13px; }

.lightbox { position: fixed; inset: 0; z-index: 1000; display: none; background: rgba(4,7,5,.93); backdrop-filter: blur(6px); }
.lightbox.open { display: grid; grid-template-rows: 1fr auto; }
.lb-stage { display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem); min-height: 0; position: relative; }
.lb-stage img { max-width: 100%; max-height: 78vh; object-fit: contain; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: 0 0 60px rgba(0,0,0,.7); }
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem clamp(1rem,4vw,2.4rem) 1.6rem; }
.lb-cap { font-family: var(--font-mono); font-size: .82rem; color: var(--ink-2); }
.lb-cap b { color: var(--phosphor); }
.lb-count { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.lb-btn { background: rgba(62,224,123,.06); border: 1px solid var(--line-2); color: var(--ink); width: 46px; height: 46px; border-radius: var(--radius); display: grid; place-items: center; transition: all .18s var(--ease); }
.lb-btn:hover { color: var(--phosphor); border-color: var(--phosphor); box-shadow: var(--glow); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 72px; }
.lb-prev { left: 1vw; } .lb-next { right: 1vw; }
.lb-close { position: absolute; top: 1.2rem; right: 1.2rem; z-index: 2; }
.lb-thumbs { display: flex; gap: .4rem; overflow-x: auto; padding: 0 clamp(1rem,4vw,2.4rem) 1.4rem; }
.lb-thumbs img { height: 52px; width: 92px; object-fit: cover; border-radius: 3px; border: 1px solid transparent; opacity: .5; cursor: pointer; transition: all .15s var(--ease); flex: none; }
.lb-thumbs img:hover { opacity: .85; }
.lb-thumbs img.cur { opacity: 1; border-color: var(--phosphor); box-shadow: var(--glow); }

/* ============================================================
   HERO background image (subtle)
   ============================================================ */
/* hero background lives on the .hero element itself (image + legibility scrim) */

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