/* Daemon Life: a field guide to cyber at 3 AM. One dark world, condensed Archivo headlines, VT323 for anything a
   terminal would print, IBM Plex Mono for labels. Each character page takes on that character's color through --c. */
:root {
  --bg: #050708;
  --surface: #0b1012;
  --surface-2: #0e1517;
  --line: #182326;
  --line-2: #22302f;
  --text: #e4eeee;
  --soft: #b8cacb;
  --dim: #839a9c;
  --faint: #5f7577;
  --cyan: #5ef2f0; --cy-rgb: 94, 242, 240;
  --ok: #4bf07a;
  --err: #ff7a7a;
  --c: var(--cyan);
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --brand: "VT323", "Courier New", monospace;
  --wrap: 1240px;
  --gut: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-stretch: 66%; font-variation-settings: "wdth" 66; font-weight: 850; text-transform: uppercase; line-height: .92; letter-spacing: .005em; margin: 0; text-wrap: balance; }
h4 { margin: 0; }
p { margin: 0; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.label { font: 500 12.5px/1.3 var(--mono); letter-spacing: .06em; color: var(--c); display: inline-flex; gap: .5em; align-items: center; flex-wrap: wrap; }
.label .p { color: var(--dim); }
:focus-visible { outline: 2px solid var(--c); outline-offset: 3px; border-radius: 3px; }
.sr, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cyan); color: #031314; padding: 10px 14px; border-radius: 8px; font: 600 14px/1 var(--body); text-decoration: none; }
.skip:focus { top: 12px; }
.caret { display: inline-block; width: .6em; height: 1.05em; background: var(--c); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.btn { display: inline-flex; align-items: center; gap: .6em; height: 50px; padding: 0 24px; border-radius: 999px; font: 600 15px/1 var(--body); letter-spacing: .02em; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s, border-color .2s, color .2s, box-shadow .2s; background: none; white-space: nowrap; }
.btn-primary { background: var(--c); color: #031314; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 30px -6px color-mix(in srgb, var(--c) 60%, transparent); }
.btn-ghost { border-color: #2a3a3d; color: var(--text); background: rgba(255,255,255,.02); }
.btn-ghost:hover { border-color: var(--c); color: var(--c); }
.btn svg { width: 16px; height: 16px; }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- bar ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: #050708; }
.bar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(5,7,8,.78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid rgba(24,35,38,.8); }
.bar .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cyan); font: 400 30px/1 var(--brand); text-shadow: 0 0 14px rgba(var(--cy-rgb),.45); white-space: nowrap; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--dim); font: 500 14.5px/1 var(--body); padding: 10px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav a[aria-current="page"] { color: var(--cyan); }
.bar .btn { height: 40px; padding: 0 18px; font-size: 14px; --c: var(--cyan); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; margin: auto; }
@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gut) 18px; background: rgba(5,7,8,.97); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .menu-btn { display: grid; }
  .bar .btn { height: 36px; padding: 0 14px; font-size: 13px; }
}

/* ---------- page head ---------- */
.phead { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 55% 90% at 85% 0%, color-mix(in srgb, var(--c) 11%, transparent), transparent 70%), var(--bg); }
.phead::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45; background-image: linear-gradient(color-mix(in srgb, var(--c) 6%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--c) 6%, transparent) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 60% 100% at 85% 0%, #000 15%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 100% at 85% 0%, #000 15%, transparent 70%); }
.phead .wrap { padding-block: clamp(48px, 7vw, 92px) clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 24px 60px; align-items: end; }
.phead h1 { font-size: clamp(52px, 8vw, 112px); margin-top: 18px; }
.phead h1 .c { color: var(--c); text-shadow: 0 0 40px color-mix(in srgb, var(--c) 35%, transparent); }
.phead .lede { color: var(--soft); max-width: 34em; font-size: clamp(17px, 1.5vw, 19px); justify-self: end; }
@media (max-width: 1240px) { .phead .wrap { grid-template-columns: 1fr; } .phead .lede { justify-self: start; } }
.crumbs { font: 400 12.5px/1.4 var(--mono); color: var(--faint); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--dim); text-decoration: none; }
.crumbs a:hover { color: var(--c); }

section.s { padding-block: clamp(56px, 8vw, 112px); }
section.s + section.s { padding-top: 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 60px; align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head h2 { font-size: clamp(40px, 5.6vw, 76px); margin-top: 14px; }
.sec-head > p { color: #a9bcbd; max-width: 36em; justify-self: end; }
@media (max-width: 760px) { .sec-head { grid-template-columns: 1fr; } .sec-head > p { justify-self: start; } }
.band { background: #070b0c; border-block: 1px solid var(--line); }

/* ---------- home hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse 55% 70% at 78% 50%, rgba(var(--cy-rgb),.09), transparent 70%), var(--bg); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: linear-gradient(rgba(var(--cy-rgb),.05) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--cy-rgb),.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 60% 80% at 75% 50%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 60% 80% at 75% 50%, #000 20%, transparent 75%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 7vw, 100px); }
.hero h1 { font-size: clamp(52px, 7.4vw, 108px); margin-top: 22px; }
.hero h1 .c { color: var(--cyan); text-shadow: 0 0 40px rgba(var(--cy-rgb),.35); }
.lede { margin-top: 24px; max-width: 33em; font-size: clamp(17px, 1.5vw, 19px); color: var(--soft); }
.lede strong { color: var(--text); font-weight: 600; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.proof { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 8px 22px; font: 400 13px/1.4 var(--mono); color: var(--dim); }
.proof b { color: var(--text); font-weight: 500; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

.roster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 14px); }
.tile { --c: var(--cyan); position: relative; border-radius: 10px; overflow: hidden; background: #0a0d0e; aspect-ratio: 12 / 11; box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 22%, transparent); transition: box-shadow .35s, transform .35s cubic-bezier(.2,.7,.2,1); text-decoration: none; display: block; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile .tag { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; background: linear-gradient(0deg, rgba(5,7,8,.92), transparent); display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.tile .tag b { font: 850 clamp(15px, 1.5vw, 20px)/1 var(--display); font-stretch: 66%; font-variation-settings: "wdth" 66; text-transform: uppercase; color: var(--c); }
.tile .tag span { font: 400 11px/1 var(--mono); color: #b3c5c6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--c), 0 18px 40px -16px color-mix(in srgb, var(--c) 55%, transparent); }
.tile:hover img { transform: scale(1.06); }
@media (max-width: 420px) { .tile .tag span { display: none; } }

.ticker { border-bottom: 1px solid var(--line); background: #070a0b; overflow: hidden; }
.ticker .track { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker .u { font: 400 13px/1 var(--mono); color: var(--dim); padding: 17px 0; white-space: nowrap; }
.ticker .u b { font-weight: 400; }
.ticker .u i { font-style: normal; color: #2b3b3d; padding: 0 22px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- quiz ---------- */
.quiz { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.quiz-intro h2 { font-size: clamp(44px, 6.2vw, 84px); margin-top: 16px; }
.quiz-intro p { margin-top: 20px; color: #a9bcbd; max-width: 30em; }
.qbox { border: 1px solid var(--line); border-radius: 12px; background: var(--bg); padding: clamp(20px, 3vw, 32px); min-height: 420px; display: grid; align-content: start; gap: 20px; }
.qtop { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 500 12.5px/1 var(--mono); color: var(--dim); }
.dots { display: flex; gap: 6px; }
.dots i { width: 22px; height: 4px; border-radius: 2px; background: #1d2a2c; }
.dots i.on { background: var(--cyan); }
.q { font: 700 clamp(24px, 2.6vw, 32px)/1.15 var(--body); text-wrap: balance; }
.opts { display: grid; gap: 10px; }
.opt { text-align: left; padding: 16px 18px; border-radius: 10px; border: 1px solid var(--line-2); background: #0a0f10; cursor: pointer; font-size: 16.5px; line-height: 1.4; display: flex; gap: 14px; align-items: baseline; transition: border-color .2s, background .2s, transform .2s; }
.opt kbd { font: 500 12px/1 var(--mono); color: var(--dim); border: 1px solid #2a3a3d; border-radius: 4px; padding: 4px 6px; flex: none; }
.opt:hover { border-color: var(--cyan); background: rgba(var(--cy-rgb),.05); transform: translateX(3px); }
.qback { justify-self: start; background: none; border: 0; color: var(--dim); font: 400 13px/1 var(--mono); cursor: pointer; padding: 6px 0; }
.qback:hover { color: var(--text); }
.res { display: grid; gap: 18px; }
.res-top { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 18px; align-items: center; }
.res-top img { border-radius: 10px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent), 0 0 40px -10px var(--c); }
.res-top h3 { font-size: clamp(40px, 4.4vw, 56px); color: var(--c); }
.res-top .dom { font: 500 13px/1.4 var(--mono); color: var(--dim); margin-top: 6px; }
.res-job { color: #c5d5d6; }
.chips-s { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-s span { font: 400 13px/1 var(--mono); padding: 8px 10px; border-radius: 6px; border: 1px solid color-mix(in srgb, var(--c) 30%, #1d2a2c); color: #cfdede; }
.res-next { padding: 14px 16px; border-radius: 10px; background: color-mix(in srgb, var(--c) 7%, #0a0f10); border: 1px solid color-mix(in srgb, var(--c) 25%, transparent); font-size: 15.5px; color: #c5d5d6; }
.res-next b { color: var(--c); font-weight: 600; }
.res-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .quiz { grid-template-columns: 1fr; } .qbox { min-height: 0; } }

/* ---------- link cards (learn hub, home teasers) ---------- */
.xs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 18px); }
.xs.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.x { --c: var(--cyan); position: relative; display: grid; gap: 14px; align-content: start; padding: 26px 24px 24px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .25s, transform .25s, background .25s; min-height: 210px; }
.x:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); transform: translateY(-3px); background: color-mix(in srgb, var(--c) 4%, var(--surface)); }
.x .cmd { font: 400 13px/1 var(--mono); color: var(--c); }
.x .cmd .p { color: var(--dim); }
.x h3 { font-size: 32px; padding-right: 40px; }
.x p { color: #a3b6b7; font-size: 15.5px; }
.x .go { position: absolute; top: 22px; right: 22px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #263537; display: grid; place-items: center; color: var(--dim); transition: color .25s, border-color .25s, transform .25s; }
.x:hover .go { color: var(--c); border-color: var(--c); transform: rotate(-45deg); }
.x .go svg { width: 14px; height: 14px; }
@media (max-width: 1000px) { .xs.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .xs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .xs, .xs.four { grid-template-columns: 1fr; } .x { min-height: 0; } }

/* ---------- crew page ---------- */
.aq { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.aq p { color: var(--soft); }
.aq .facts { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.aq .facts span, .facts span { font: 400 12.5px/1 var(--mono); padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 6px; color: #c5d5d6; }
.aq figure { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
@media (max-width: 860px) { .aq { grid-template-columns: 1fr; } }
.cast { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 18px); }
.card { --c: var(--cyan); position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .3s, transform .3s, box-shadow .3s; }
.card:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); transform: translateY(-4px); box-shadow: 0 24px 50px -28px color-mix(in srgb, var(--c) 70%, transparent); }
.card .room { position: relative; aspect-ratio: 1376 / 768; overflow: hidden; }
.card .room img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s; filter: saturate(.9) brightness(.9); }
.card:hover .room img { transform: scale(1.05); filter: none; }
.card .room::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--surface), transparent 55%); }
.card .face { position: absolute; left: 18px; bottom: 12px; z-index: 1; width: 74px; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px color-mix(in srgb, var(--c) 50%, transparent); }
.card .body { padding: 36px 20px 20px; display: grid; gap: 8px; align-content: start; }
.card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card h3 { font-size: 34px; color: var(--c); }
.card .sym { font: 400 24px/1 var(--brand); color: var(--c); }
.card .dom { font: 500 12px/1.45 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.card .bl { color: #c2d2d3; font-size: 15px; line-height: 1.55; }
.card .st { font: 400 12.5px/1.4 var(--mono); color: var(--dim); padding-top: 10px; margin-top: 4px; border-top: 1px dashed var(--line); }
.card .st b { color: var(--c); font-weight: 400; }
@media (max-width: 960px) { .cast { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cast { grid-template-columns: 1fr; } }

/* ---------- character page ---------- */
.ch-hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); background: #000; }
.ch-room { position: relative; height: min(78vh, 760px); min-height: 440px; overflow: hidden; }
.ch-room img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 45%; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.04); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.ch-room::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); opacity: .5; }
.ch-room::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, var(--bg) 2%, rgba(5,7,8,.55) 38%, rgba(5,7,8,.05) 70%), radial-gradient(ellipse 80% 70% at 50% 40%, transparent 55%, rgba(0,0,0,.6)); }
.ch-id { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }
.ch-id .wrap { padding-bottom: clamp(28px, 4vw, 48px); display: grid; gap: 14px; }
.ch-id h1 { font-size: clamp(72px, 13vw, 180px); color: var(--c); text-shadow: 0 0 50px color-mix(in srgb, var(--c) 45%, transparent); line-height: .82; display: flex; align-items: baseline; gap: .18em; flex-wrap: wrap; }
.ch-id h1 .sym { font: 400 .42em/1 var(--brand); text-transform: none; }
.ch-id .status { font: 400 clamp(14px, 1.4vw, 16px)/1.5 var(--mono); color: #d8e6e6; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ch-id .status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.ch-id .q { font: 500 clamp(18px, 2vw, 24px)/1.3 var(--body); color: var(--text); font-style: italic; max-width: 30em; }
.ch-room .crumbs { position: absolute; z-index: 2; top: 18px; left: 0; right: 0; }

/* the jack-in: a terminal over the room that clears to reveal it */
.jack { position: absolute; inset: 0; z-index: 5; background: #000; display: grid; align-content: center; padding: 0 max(var(--gut), 8vw); font: 400 clamp(18px, 2.4vw, 30px)/1.25 var(--brand); color: var(--c); text-shadow: 0 0 12px color-mix(in srgb, var(--c) 50%, transparent); transition: opacity .5s ease, clip-path .6s cubic-bezier(.7,0,.2,1); clip-path: inset(0 0 0 0); }
.jack .d { color: var(--dim); text-shadow: none; }
.jack.out { opacity: 0; clip-path: inset(50% 0 50% 0); pointer-events: none; }
.jack[hidden] { display: none; }
.jack .skipj { position: absolute; right: 18px; bottom: 16px; font: 400 12.5px/1 var(--mono); color: var(--dim); background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 12px; cursor: pointer; }

.ch-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.ch-main { display: grid; gap: clamp(36px, 5vw, 56px); }
.blk h2 { font-size: clamp(34px, 4vw, 52px); margin: 12px 0 18px; }
.blk p + p { margin-top: 14px; }
.blk > p { color: var(--soft); font-size: 18px; max-width: 38em; }
.techs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.techs li { list-style: none; padding: 14px 16px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--c) 18%, var(--line)); background: color-mix(in srgb, var(--c) 3%, var(--surface)); }
.techs b { display: block; font: 600 15.5px/1.3 var(--body); color: var(--text); }
.techs span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--dim); line-height: 1.45; }
.techs a { color: inherit; text-decoration: none; }
.techs a:hover b { color: var(--c); }
ul.techs { margin: 22px 0 0; padding: 0; }
@media (max-width: 560px) { .techs { grid-template-columns: 1fr; } }
.tools { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #070b0c; }
.tools li { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(0, 1.6fr); gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); align-items: baseline; }
.tools li:first-child { border-top: 0; }
.tools b { font: 500 14.5px/1.3 var(--mono); color: var(--c); }
.tools span { color: var(--soft); font-size: 15px; line-height: 1.45; }
@media (max-width: 560px) { .tools li { grid-template-columns: 1fr; gap: 4px; } }

.spec { position: sticky; top: 92px; border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line)); border-radius: 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 6%, var(--surface)), var(--surface) 40%); overflow: hidden; }
.spec .top { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 16px; align-items: center; padding: 20px; border-bottom: 1px solid var(--line); }
.spec .top img { border-radius: 10px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 0 30px -8px var(--c); }
.spec .top b { font: 850 34px/.9 var(--display); font-stretch: 66%; font-variation-settings: "wdth" 66; text-transform: uppercase; color: var(--c); }
.spec .top span { display: block; margin-top: 6px; font: 400 12.5px/1.4 var(--mono); color: var(--dim); }
.spec dl { margin: 0; padding: 6px 20px 14px; display: grid; }
.spec dt { font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-top: 14px; }
.spec dd { margin: 6px 0 0; color: #cfdede; font-size: 15px; line-height: 1.5; }
.spec dd.m { font: 400 26px/1 var(--brand); color: var(--c); }
.spec .jump { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 20px; }
.spec .jump a { font: 400 12.5px/1 var(--mono); color: var(--dim); text-decoration: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 12px; }
.spec .jump a:hover { color: var(--c); border-color: var(--c); }
@media (max-width: 960px) { .ch-grid { grid-template-columns: 1fr; } .spec { position: static; } }

.no1 { padding: 18px 20px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--c) 40%, var(--line)); background: #070b0c; display: grid; gap: 10px; }
.no1 .label { color: var(--c); }
.no1 p { color: #d3e2e2; font-size: 16.5px; }
.no1 a { color: var(--c); font: 500 13px/1 var(--mono); text-decoration: none; }

.chnav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chnav a { --c: var(--cyan); display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; background: var(--surface); transition: border-color .25s; }
.chnav a:last-child { grid-template-columns: minmax(0, 1fr) 64px; text-align: right; }
.chnav a:last-child img { order: 2; }
.chnav a:hover { border-color: var(--c); }
.chnav img { border-radius: 8px; }
.chnav span { font: 400 12px/1 var(--mono); color: var(--dim); }
.chnav b { display: block; margin-top: 6px; font: 850 28px/.9 var(--display); font-stretch: 66%; font-variation-settings: "wdth" 66; text-transform: uppercase; color: var(--c); }

/* ---------- debrief cards ---------- */
.debriefs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 18px); }
.debriefs.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.db { --c: var(--cyan); border-radius: 12px; border: 1px solid var(--line); background: var(--surface); padding: 24px; display: grid; gap: 14px; align-content: start; position: relative; overflow: hidden; }
.db::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); box-shadow: 0 0 18px var(--c); }
.db[hidden] { display: none; }
.db-who { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.db-who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
.db-who span { font: 500 12.5px/1.4 var(--mono); color: var(--dim); }
.db-who b { color: var(--c); font-weight: 500; }
a.db-who:hover span { color: var(--text); }
.db h3 { font-size: 32px; }
.db .yr { font: 400 13px/1.3 var(--mono); color: var(--dim); display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.db .yr .cat { color: var(--c); }
.db .new { position: absolute; top: 18px; right: 18px; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #031314; background: var(--c); border-radius: 4px; padding: 5px 7px; }
.db p { color: #b9cbcc; font-size: 15.5px; }
.db .take { font: 400 14.5px/1.55 var(--mono); color: #d8e6e6; padding: 12px 14px; border-radius: 8px; background: color-mix(in srgb, var(--c) 7%, #090d0e); border: 1px solid color-mix(in srgb, var(--c) 20%, transparent); }
.db .take::before { content: "> "; color: var(--c); }
.db .lesson { font-size: 14.5px; color: var(--dim); }
.db .lesson b { color: var(--text); font-weight: 600; }
.db .srcs { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.db .src { font: 400 12.5px/1 var(--mono); color: var(--dim); text-decoration: none; border-bottom: 1px solid #2a3a3d; padding-bottom: 3px; }
.db .src:hover { color: var(--c); border-color: var(--c); }
@media (max-width: 1000px) { .debriefs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .debriefs, .debriefs.two { grid-template-columns: 1fr; } }

/* debrief page: the month */
.month { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-bottom: clamp(28px, 4vw, 44px); }
.month .theme { color: var(--soft); font-size: 18px; }
.month .theme b { color: var(--text); font-weight: 600; }
.tl { list-style: none; margin: 0; padding: 0; display: grid; border-left: 1px solid var(--line-2); }
.tl li { position: relative; padding: 0 0 14px 22px; }
.tl li::before { content: ""; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.tl a { text-decoration: none; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.tl time { font: 400 12.5px/1.4 var(--mono); color: var(--dim); }
.tl b { font-weight: 600; font-size: 15.5px; color: var(--text); }
.tl a:hover b { color: var(--c); }
.tl em { font-style: normal; font: 400 12px/1 var(--mono); color: var(--c); margin-left: 8px; }
@media (max-width: 820px) { .month { grid-template-columns: 1fr; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; align-items: center; }
.filters .lab { font: 400 12.5px/1 var(--mono); color: var(--faint); margin-right: 4px; }
.chip { --c: var(--cyan); display: inline-flex; align-items: center; gap: 8px; font: 400 13px/1 var(--mono); color: var(--dim); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 12px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.chip .sw { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.chip[aria-pressed="true"] { color: var(--text); border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.none { font: 400 14px/1.5 var(--mono); color: var(--dim); padding: 18px 0; }

/* ---------- wallpapers ---------- */
.walls { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.walls.desk { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.wall { display: grid; gap: 8px; text-decoration: none; }
.wall .im { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #070b0c; transition: border-color .25s, transform .25s; }
.wall:hover .im { border-color: var(--c); transform: translateY(-3px); }
.wall img { width: 100%; }
.wall span { font: 400 12.5px/1.3 var(--mono); color: var(--dim); display: flex; justify-content: space-between; gap: 8px; }
.wall span b { color: var(--text); font-weight: 400; }
.wall:hover span b { color: var(--c); }
.wgroup { padding-block: 32px; border-top: 1px solid var(--line); }
.wgroup:first-of-type { border-top: 0; padding-top: 0; }
.wgroup-h { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.wgroup-h img { width: 48px; border-radius: 8px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
.wgroup-h h3 { font-size: 36px; color: var(--c); }
.wgroup-h a { margin-left: auto; font: 400 12.5px/1 var(--mono); color: var(--dim); text-decoration: none; }
.wgroup-h a:hover { color: var(--c); }
.wsub { font: 500 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin: 18px 0 10px; }

/* ---------- glossary ---------- */
.gbar { display: grid; gap: 14px; margin-bottom: 26px; }
.gsearch { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-2); border-radius: 12px; background: #070b0c; padding: 0 16px; height: 56px; font: 400 15px/1 var(--mono); color: var(--dim); }
.gsearch:focus-within { border-color: var(--cyan); }
.gsearch b { color: var(--cyan); font-weight: 400; }
.gsearch input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; color: var(--text); font: 400 16px/1 var(--mono); }
.gcount { font: 400 12.5px/1 var(--mono); color: var(--faint); }
.glist { columns: 2 380px; column-gap: 40px; margin: 0; padding: 0; list-style: none; }
.gterm { break-inside: avoid; padding: 16px 0; border-top: 1px solid var(--line); }
.gterm[hidden] { display: none; }
.gterm h3 { font: 600 19px/1.3 var(--body); text-transform: none; letter-spacing: 0; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.gterm .k { font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line-2); border-radius: 4px; padding: 3px 5px; }
.gterm .aka { font: 400 12.5px/1.4 var(--mono); color: var(--dim); margin-top: 4px; }
.gterm p { color: var(--soft); font-size: 15.5px; margin-top: 6px; }
.gterm .who { display: inline-flex; margin-top: 8px; font: 400 12.5px/1 var(--mono); color: var(--c); text-decoration: none; }
.gterm:target { background: color-mix(in srgb, var(--cyan) 6%, transparent); }

/* ---------- comic page ---------- */
.shelf { display: grid; gap: 18px; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }
.issue { position: relative; display: grid; grid-template-columns: minmax(170px, 260px) minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: clamp(16px, 2.6vw, 28px); align-items: start; }
.iss-open { position: relative; display: block; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: #000; cursor: pointer; line-height: 0; overflow: hidden; }
.iss-open img { width: 100%; aspect-ratio: 1600 / 2443; object-fit: cover; transition: transform .4s ease; }
.iss-open .go { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 14px; font: 400 26px/1 var(--brand); letter-spacing: .12em; color: var(--cyan); background: linear-gradient(transparent, rgba(0,0,0,.92) 45%); text-shadow: 0 0 12px rgba(var(--cy-rgb),.5); text-align: left; }
.iss-open:hover img { transform: scale(1.03); }
.iss-open:hover { border-color: var(--cyan); box-shadow: 0 0 30px rgba(var(--cy-rgb),.18); }
.iss-info { display: grid; gap: 12px; align-content: start; }
.iss-info h2 { font-size: clamp(40px, 5vw, 64px); }
.iss-info h2 span { color: var(--c); }
.iss-info > p { color: var(--soft); }
.iss-st { font: 400 13.5px/1.5 var(--mono); color: #d8e6e6 !important; }
.iss-st b { color: var(--cyan); font-weight: 500; }
.iss-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.issue.locked { --c: #ffd640; grid-template-columns: 1fr; }
.iss-blank { display: grid; place-items: center; aspect-ratio: 1600 / 2443; max-width: 170px; border: 1px dashed var(--line-2); border-radius: 6px; background: repeating-linear-gradient(0deg, #050809 0 2px, #030505 2px 4px); font: 400 64px/1 var(--brand); color: color-mix(in srgb, var(--c) 75%, transparent); text-shadow: 0 0 18px color-mix(in srgb, var(--c) 40%, transparent); }
@media (max-width: 900px) { .shelf { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .issue { grid-template-columns: 1fr; } .iss-open { max-width: 300px; } }

/* ---------- signup + footer ---------- */
.ping-sec { background: radial-gradient(ellipse 60% 120% at 50% 120%, rgba(var(--cy-rgb),.12), transparent 70%), var(--bg); padding-block: clamp(64px, 9vw, 120px); }
.ping-box { max-width: 760px; margin-inline: auto; text-align: center; display: grid; justify-items: center; gap: 20px; }
.ping-box h2 { font-size: clamp(44px, 6.5vw, 84px); }
.ping-box > p { color: #a9bcbd; max-width: 34em; }
.form { margin-top: 10px; display: flex; gap: 10px; width: min(100%, 520px); }
.form input[type="email"] { flex: 1; min-width: 0; height: 54px; border-radius: 999px; border: 1px solid #2a3a3d; background: #0a0f10; color: var(--text); font: 400 16px/1 var(--body); padding: 0 22px; }
.form input[type="email"]::placeholder { color: var(--faint); }
.form input[type="email"]:focus { outline: none; border-color: var(--cyan); }
.form .btn { height: 54px; --c: var(--cyan); }
.form-note { font: 400 12.5px/1.5 var(--mono); color: var(--dim); min-height: 1.5em; }
.form-note.ok { color: var(--ok); } .form-note.err { color: var(--err); }
.hp { display: none; }
@media (max-width: 520px) { .form { flex-direction: column; } .form .btn { justify-content: center; } }
footer { border-top: 1px solid var(--line); padding-block: 56px 40px; }
.foot { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot .mark { font-size: 36px; }
.foot .tag { margin-top: 14px; color: var(--dim); font: 400 14px/1.6 var(--mono); max-width: 26em; }
.foot h4 { margin: 0 0 14px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { text-decoration: none; color: #c5d5d6; font-size: 15px; }
.foot a:hover { color: var(--cyan); }
.legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font: 400 12.5px/1.5 var(--mono); color: var(--faint); }
.legal .on { color: var(--ok); }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }

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

/* names the reader stylesheet expects */
:root { --white: #F2F4F5; --fg: var(--text); --panel: var(--surface); }

/* ---------- terminal (learn) ---------- */
.termwrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
@media (max-width: 960px) { .termwrap { grid-template-columns: 1fr; } }
.term { position: sticky; top: 92px; height: min(640px, calc(100vh - 120px)); overflow-y: auto; border-radius: 14px; border: 1px solid #1f3236; background: #020405; box-shadow: 0 0 0 1px rgba(var(--cy-rgb),.06), 0 30px 80px -40px rgba(var(--cy-rgb),.35), inset 0 0 80px rgba(var(--cy-rgb),.04); font: 400 14.5px/1.55 var(--mono); color: #cfe9e9; cursor: text; }
@media (max-width: 960px) { .term { position: relative; top: 0; height: 460px; } }
.term-top { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #071012; border-bottom: 1px solid #14262a; font-size: 12.5px; color: var(--dim); }
.term-top i { width: 11px; height: 11px; border-radius: 50%; background: #233537; }
.term-top i:first-child { background: #ff5f57; } .term-top i:nth-child(2) { background: #febc2e; } .term-top i:nth-child(3) { background: #28c840; }
.term-top span { margin-left: 8px; }
.t-body { padding: 14px 16px 18px; }
.t-out > div { white-space: pre-wrap; word-break: break-word; }
.t-out .c { color: #e9f6f6; margin-top: 6px; }
.t-out .e { color: #ff8a8a; }
.t-out .m { color: var(--dim); }
.t-out b.d, .t-ps b.d { color: #6fb7ff; font-weight: 500; }
.t-ps b.u { color: var(--ok); font-weight: 500; }
.t-out mark { background: rgba(var(--cy-rgb),.25); color: #fff; border-radius: 2px; }
.t-line { display: flex; gap: 8px; align-items: baseline; margin-top: 6px; }
.t-line input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #fff; font: inherit; caret-color: var(--cyan); padding: 0; }
.cmds { display: grid; gap: 22px; }
.cgroup h3 { font-size: 26px; display: flex; align-items: baseline; gap: 10px; }
.cgroup h3 span { font: 400 12.5px/1 var(--mono); color: var(--dim); text-transform: none; }
.cgroup ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.cgroup li { display: grid; grid-template-columns: minmax(130px, auto) minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.cgroup button { justify-self: start; font: 500 14px/1.2 var(--mono); color: var(--cyan); background: rgba(var(--cy-rgb),.06); border: 1px solid rgba(var(--cy-rgb),.25); border-radius: 6px; padding: 6px 9px; cursor: pointer; text-align: left; }
.cgroup button:hover { background: rgba(var(--cy-rgb),.14); border-color: var(--cyan); }
.cgroup li span { color: var(--soft); font-size: 14.5px; line-height: 1.45; }
.cgroup li em { font-style: normal; display: block; margin-top: 3px; font: 400 12px/1.3 var(--mono); color: var(--faint); }
@media (max-width: 480px) { .cgroup li { grid-template-columns: 1fr; gap: 6px; } }
.tip { padding: 16px 18px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line)); background: color-mix(in srgb, var(--c) 5%, var(--surface)); display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; }
.tip img { border-radius: 50%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
.tip b { color: var(--c); font: 500 12.5px/1 var(--mono); display: block; margin-bottom: 6px; }
.tip p { color: #d3e2e2; font-size: 15.5px; }

/* ---------- cert paths: BLUE's SOC ---------- */
.blue-theme { --c: #4a9bff; }
.blue-theme .phead { background: radial-gradient(ellipse 60% 100% at 85% 0%, rgba(74,155,255,.16), transparent 70%), #04070b; }
.soc { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 22px; align-items: center; padding: 22px; border-radius: 14px; border: 1px solid rgba(74,155,255,.35); background: linear-gradient(135deg, rgba(74,155,255,.10), rgba(74,155,255,.02) 60%), #060b11; }
.soc img { border-radius: 12px; box-shadow: 0 0 0 1px rgba(74,155,255,.5), 0 0 40px -6px rgba(74,155,255,.6); }
.soc .who { font: 500 12.5px/1 var(--mono); color: var(--c); }
.soc p { margin-top: 8px; color: #dbe7f5; font-size: 17px; }
.soc .stat { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 16px; font: 400 12.5px/1.4 var(--mono); color: #8fb3dd; }
.soc .stat b { color: #fff; font-weight: 500; }
@media (max-width: 560px) { .soc { grid-template-columns: 1fr; } .soc img { width: 96px; } }
.path { position: relative; display: grid; gap: clamp(36px, 5vw, 56px); }
.step { position: relative; display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 20px; }
.step .num { font: 400 64px/.9 var(--brand); color: var(--c); text-shadow: 0 0 22px rgba(74,155,255,.5); }
.step .num::after { content: ""; display: block; width: 2px; height: calc(100% - 50px); margin: 12px 0 0 20px; background: linear-gradient(var(--c), transparent); opacity: .35; }
.step:last-child .num::after { display: none; }
.step h2 { font-size: clamp(38px, 4.8vw, 62px); }
.step .sub { font: 500 12.5px/1 var(--mono); color: #8fb3dd; margin-top: 10px; letter-spacing: .04em; }
.step .bsay { margin-top: 14px; color: #c9d8ea; max-width: 44em; padding-left: 14px; border-left: 2px solid rgba(74,155,255,.5); }
.step .bsay::before { content: "BLUE: "; font: 500 12.5px/1 var(--mono); color: var(--c); }
@media (max-width: 640px) { .step { grid-template-columns: 1fr; } .step .num { font-size: 48px; } .step .num::after { display: none; } }
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 20px; }
.cert { --cc: var(--c); position: relative; display: grid; gap: 10px; align-content: start; padding: 18px 18px 16px; border-radius: 12px; border: 1px solid #172433; background: #070c12; text-decoration: none; transition: border-color .25s, transform .25s, background .25s; }
.cert:hover { border-color: color-mix(in srgb, var(--cc) 60%, transparent); transform: translateY(-2px); background: #08101a; }
.cert .top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.cert .is { font: 400 12px/1.3 var(--mono); color: #7f9bbd; }
.cert .lv { flex: none; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 7px; border-radius: 4px; border: 1px solid rgba(74,155,255,.4); color: #a9c9f2; }
.cert .lv.Advanced { border-color: rgba(255,154,60,.5); color: #ffc58e; }
.cert h4 { font: 700 19px/1.2 var(--body); color: #fff; }
.cert .code { font: 400 12.5px/1 var(--mono); color: var(--cc); }
.cert p { color: #b7c8dc; font-size: 14.5px; line-height: 1.5; }
.cert .fmt { font: 400 12.5px/1.4 var(--mono); color: #7f9bbd; }
.cert .note { font-size: 13.5px; color: #e6d39a; background: rgba(255,214,64,.06); border: 1px solid rgba(255,214,64,.18); border-radius: 8px; padding: 8px 10px; }
.cert .ext { font: 400 12px/1 var(--mono); color: #7f9bbd; }
.cert:hover .ext { color: var(--cc); }
.corners { display: grid; gap: 14px; margin-top: 22px; }
.corner { --cc: #4a9bff; border-radius: 14px; border: 1px solid #172433; background: #05090e; overflow: hidden; }
.corner > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; }
.corner > summary::-webkit-details-marker { display: none; }
.corner > summary img { border-radius: 10px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--cc) 50%, transparent); }
.corner > summary b { font: 850 28px/.95 var(--display); font-stretch: 66%; font-variation-settings: "wdth" 66; text-transform: uppercase; color: var(--cc); }
.corner > summary span { display: block; font: 400 12.5px/1.3 var(--mono); color: #7f9bbd; margin-top: 4px; }
.corner > summary .n { font: 400 12.5px/1 var(--mono); color: #7f9bbd; white-space: nowrap; }
.corner > summary .n::after { content: " +"; color: var(--cc); }
.corner[open] > summary .n::after { content: " \2212"; }        /* a real minus sign */
.corner:hover { border-color: color-mix(in srgb, var(--cc) 40%, #172433); }
.corner .in { padding: 0 18px 18px; }
.corner .in > p { color: #c9d8ea; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--cc) 6%, transparent); border: 1px solid color-mix(in srgb, var(--cc) 20%, transparent); }
.corner .certs { margin-top: 14px; }
.corner .cert { --cc: var(--cc); }
.fine { font: 400 12.5px/1.6 var(--mono); color: #6f86a3; }
.fine a { color: #9cc3f5; }

/* ---------- lab ---------- */
.tools-grid { display: grid; gap: clamp(16px, 2vw, 22px); }
.tool { --c: var(--cyan); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: clamp(18px, 3vw, 28px); display: grid; gap: 16px; }
.tool-h { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.tool-h img { width: 52px; border-radius: 50%; box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent); }
.tool-h h2 { font-size: clamp(30px, 3.4vw, 44px); }
.tool-h .cmd { font: 400 13px/1 var(--mono); color: var(--c); display: block; margin-bottom: 6px; }
.tool > p { color: var(--soft); max-width: 46em; }
.field { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.field label { font: 400 12.5px/1 var(--mono); color: var(--dim); }
.field input[type="text"], .field input[type="password"] { height: 46px; min-width: 0; flex: 1 1 220px; border-radius: 10px; border: 1px solid var(--line-2); background: #070b0c; color: var(--text); padding: 0 14px; font: 400 15.5px/1 var(--mono); }
.field input:focus { outline: none; border-color: var(--c); }
.field input[type="range"] { flex: 1 1 200px; accent-color: var(--c); }
.field output { font: 400 26px/1 var(--brand); color: var(--c); min-width: 2.4em; }
.out { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.out li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #070b0c; display: grid; gap: 4px; }
.out li b { font: 500 11.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.out li span { font: 400 15px/1.35 var(--mono); color: var(--text); word-break: break-word; }
.out li small { font-size: 13px; color: var(--dim); line-height: 1.4; }
.bits { font: 400 clamp(11px, 3.4vw, 15px)/1.5 var(--mono); letter-spacing: .04em; overflow-x: auto; white-space: nowrap; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #070b0c; }
.bits .n { color: var(--c); } .bits .h { color: var(--dim); }
.drop { display: grid; place-items: center; gap: 8px; padding: 26px; border: 1px dashed var(--line-2); border-radius: 12px; text-align: center; color: var(--dim); cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--c); color: var(--text); }
.meter { height: 10px; border-radius: 5px; background: #142023; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--c); transition: width .25s, background .25s; }

/* wallpapers page: one drawer per character */
.wpicks { display: grid; gap: 10px; }
.wpick { --c: var(--cyan); border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; transition: border-color .25s; }
.wpick:hover, .wpick[open] { border-color: color-mix(in srgb, var(--c) 55%, var(--line)); }
.wpick > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 18px; }
.wpick > summary::-webkit-details-marker { display: none; }
.wpick > summary img, .wpick > summary .bm { width: 56px; height: 52px; border-radius: 10px; object-fit: cover; box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent); }
.wpick > summary .bm { display: grid; place-items: center; font: 400 24px/1 var(--brand); color: var(--c); background: #070b0c; }
.wn b { display: block; font: 850 clamp(28px, 3.4vw, 38px)/.95 var(--display); font-stretch: 66%; font-variation-settings: "wdth" 66; text-transform: uppercase; color: var(--c); }
.wn span { display: block; margin-top: 5px; font: 400 12.5px/1.3 var(--mono); color: var(--dim); }
.wc { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font: 400 22px/1 var(--mono); color: var(--dim); transition: transform .25s, color .25s, border-color .25s; }
.wpick:hover .wc { color: var(--c); border-color: var(--c); }
.wpick[open] .wc { transform: rotate(45deg); color: var(--c); border-color: var(--c); }
.wpick > summary:focus-visible { outline: 2px solid var(--c); outline-offset: -2px; }
.wbody { padding: 4px 18px 22px; border-top: 1px solid var(--line); }
.wbody .wsub:first-child { margin-top: 16px; }
.wlink { margin-top: 18px; }
.wlink a { font: 400 13px/1 var(--mono); color: var(--c); text-decoration: none; }

/* breach cards: the CVE line */
.db .cve { font: 400 13px/1.5 var(--mono); color: #cfe0e0; padding: 8px 10px; border-radius: 6px; border: 1px dashed color-mix(in srgb, var(--c) 30%, var(--line-2)); }
.db .cve b { color: var(--c); font-weight: 500; margin-right: 8px; letter-spacing: .06em; }
.db.bc h3 { font-size: clamp(26px, 2.4vw, 32px); }

/* ---------- terminal layer: shell-path nav, scanlines, stdout lines, the jump shell ---------- */
.nav a { font: 500 13.5px/1 var(--mono); letter-spacing: .01em; }
.nav a .np { color: var(--faint); transition: color .2s; }
.nav a:hover .np { color: var(--dim); }
.nav a[aria-current="page"] .np { color: color-mix(in srgb, var(--cyan) 55%, var(--faint)); }
.nav a[aria-current="page"]::after { content: "_"; color: var(--cyan); animation: blink 1.1s steps(1) infinite; }
.sh-btn { width: 40px; height: 40px; flex: none; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255,255,255,.02); color: var(--cyan); font: 500 14px/1 var(--mono); cursor: pointer; display: grid; place-items: center; transition: border-color .2s, background .2s, box-shadow .2s; }
.sh-btn:hover, .sh-btn[aria-expanded="true"] { border-color: var(--cyan); background: rgba(var(--cy-rgb),.07); box-shadow: 0 0 18px -4px rgba(var(--cy-rgb),.5); }
@media (max-width: 960px) { .sh-btn { margin-left: auto; } .sh-btn + .btn + .menu-btn, .sh-btn ~ .menu-btn { margin-left: 0; } }
.crt { position: fixed; inset: 0; z-index: 55; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.022) 0 1px, transparent 1px 3px), radial-gradient(ellipse 120% 90% at 50% 45%, transparent 62%, rgba(0,0,0,.32) 100%); }
.label .ok, .pout .ok, .sh .ok { color: var(--ok); }
.pout { margin-top: 20px; font: 400 13px/1.5 var(--mono); color: var(--dim); }
.phead .label.ty { min-height: 1.3em; }
.phead .label .caret { width: .55em; height: 1.1em; margin-left: .15em; }
.legal #upt { color: var(--dim); font-variant-numeric: tabular-nums; }

/* terminal window chrome, shared by the debrief index and the jump shell */
.tw { border: 1px solid var(--line-2); border-radius: 14px; background: #060a0b; overflow: hidden; box-shadow: 0 30px 80px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(var(--cy-rgb),.03); }
.tw-bar { display: flex; align-items: center; gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: #0a1011; font: 400 12.5px/1.2 var(--mono); color: var(--dim); }
.tw-dots { display: flex; gap: 6px; } .tw-dots i { width: 9px; height: 9px; border-radius: 50%; background: #1f2c2e; }
.tw-dots i:first-child { background: color-mix(in srgb, var(--cyan) 70%, #1f2c2e); }
.tw-ti { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tw-st { margin-left: auto; color: var(--ok); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tw-ctl { padding: 18px 20px 6px; display: grid; gap: 12px; border-bottom: 1px solid var(--line); }
.tw-ln { font: 400 14px/1.5 var(--mono); color: var(--soft); display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.tw-ln .p, .tw-ln label .p { color: var(--ok); }
.tw-ln .cm { color: var(--faint); }
.tw-grep label { white-space: nowrap; color: var(--soft); }
.tw-grep input { flex: 1 1 220px; min-width: 0; height: 40px; background: #0a0f10; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 12px; color: var(--text); font: 400 15px/1 var(--mono); caret-color: var(--cyan); }
.tw-grep input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(var(--cy-rgb),.12); }
.tw-grep input::placeholder { color: var(--faint); }
.tw-opts { padding-bottom: 12px; }
.tw-opts .chip { padding: 7px 11px; font-size: 12.5px; }
.tw-sp { flex: 1; }
.tw-act { background: none; border: 0; padding: 6px 2px; color: var(--dim); font: 400 12.5px/1 var(--mono); cursor: pointer; text-decoration: underline; text-decoration-color: #2a3a3d; text-underline-offset: 4px; }
.tw-act:hover { color: var(--cyan); text-decoration-color: var(--cyan); }
.tw-none { padding: 22px 20px; }

/* ---------- debrief index: domains open into entries, entries open into the card ---------- */
.doms { display: grid; }
.dom { border-bottom: 1px solid var(--line); }
.dom:last-child { border-bottom: 0; }
.dom[hidden], .ent[hidden] { display: none; }
.dom > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 92px 64px minmax(0, 1fr) auto 28px; gap: 18px; align-items: center; padding: 18px 20px; transition: background .2s; }
.dom > summary::-webkit-details-marker, .ent > summary::-webkit-details-marker { display: none; }
.dom > summary:hover { background: rgba(var(--cy-rgb),.025); }
.dom > summary:focus-visible, .ent > summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.d-perm { font: 400 12px/1 var(--mono); color: var(--faint); }
.d-n { display: grid; justify-items: start; font-family: var(--mono); line-height: 1; }
.d-n b { font: 400 40px/.9 var(--brand); color: var(--cyan); text-shadow: 0 0 14px rgba(var(--cy-rgb),.35); font-variant-numeric: tabular-nums; }
.d-n small { font-size: 10.5px; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.d-main { display: grid; gap: 4px; min-width: 0; }
.d-path { font: 400 12.5px/1.2 var(--mono); color: color-mix(in srgb, var(--cyan) 70%, var(--dim)); }
.d-h { font-family: var(--display); font-stretch: 66%; font-variation-settings: "wdth" 66; font-weight: 850; text-transform: uppercase; font-size: clamp(24px, 2.6vw, 34px); line-height: .95; color: var(--text); }
.d-blurb { color: var(--dim); font-size: 15px; line-height: 1.45; }
.d-crew { display: flex; gap: 5px; flex-wrap: wrap; max-width: 120px; justify-content: flex-end; }
.d-crew i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px color-mix(in srgb, var(--c) 60%, transparent); }
.d-x, .e-x { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); position: relative; transition: transform .25s, border-color .2s; }
.d-x::before, .d-x::after, .e-x::before, .e-x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; background: var(--dim); transform: translate(-50%, -50%); }
.d-x::after, .e-x::after { transform: translate(-50%, -50%) rotate(90deg); }
.dom[open] > summary .d-x { transform: rotate(45deg); border-color: var(--cyan); }
.dom[open] > summary .d-x::before, .dom[open] > summary .d-x::after { background: var(--cyan); }
.dom[open] > summary { background: rgba(var(--cy-rgb),.03); }
.ents { padding: 4px 20px 18px 20px; display: grid; gap: 2px; }
.ent { --c: var(--cyan); border-radius: 10px; border: 1px solid transparent; transition: border-color .2s, background .2s; }
.ent > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 70px minmax(0, 1fr) 88px 96px 24px; gap: 14px; align-items: center; padding: 11px 12px; border-radius: 10px; position: relative; }
.ent > summary::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--c); opacity: .55; }
.ent > summary:hover { background: rgba(255,255,255,.025); }
.e-yr { font: 400 13px/1.2 var(--mono); color: var(--faint); font-variant-numeric: tabular-nums; }
.e-t { font-weight: 600; font-size: 16px; line-height: 1.3; color: var(--text); }
.e-who { font: 500 12.5px/1 var(--mono); color: var(--c); letter-spacing: .04em; }
.e-tag { font: 400 11.5px/1 var(--mono); color: var(--dim); letter-spacing: .04em; text-transform: lowercase; }
.e-x { width: 24px; height: 24px; border-radius: 6px; }
.e-x::before, .e-x::after { width: 9px; }
.ent[open] { border-color: color-mix(in srgb, var(--c) 35%, var(--line)); background: var(--surface); }
.ent[open] > summary .e-x { transform: rotate(45deg); border-color: var(--c); }
.ent[open] > summary .e-x::before, .ent[open] > summary .e-x::after { background: var(--c); }
.ent[open] > summary::before { opacity: 1; box-shadow: 0 0 12px var(--c); }
.ent-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px 28px; padding: 4px 16px 20px 96px; }
.ent-a, .ent-b { display: grid; gap: 12px; align-content: start; }
.ent-in p { color: #b9cbcc; font-size: 15.5px; line-height: 1.6; }
.ent-in .take { font: 400 14.5px/1.55 var(--mono); color: #d8e6e6; padding: 12px 14px; border-radius: 8px; background: color-mix(in srgb, var(--c) 7%, #090d0e); border: 1px solid color-mix(in srgb, var(--c) 20%, transparent); }
.ent-in .take::before { content: "> "; color: var(--c); }
.ent-in .cve { font: 400 13px/1.5 var(--mono); color: #cfe0e0; padding: 8px 10px; border-radius: 6px; border: 1px dashed color-mix(in srgb, var(--c) 30%, var(--line-2)); }
.ent-in .cve b { color: var(--c); font-weight: 500; margin-right: 8px; letter-spacing: .06em; }
.ent-in .lesson { font-size: 14.5px; color: var(--dim); }
.ent-in .lesson b { color: var(--text); font-weight: 600; }
.ent-in .srcs { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.ent-in .src { font: 400 12.5px/1 var(--mono); color: var(--dim); text-decoration: none; border-bottom: 1px solid #2a3a3d; padding-bottom: 3px; }
.ent-in .src:hover { color: var(--c); border-color: var(--c); }
.ent-who { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-top: 4px; }
.ent-who img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
.ent-who span { font: 400 12.5px/1.4 var(--mono); color: var(--dim); }
.ent-who b { color: var(--c); font-weight: 500; }
.ent-who:hover span { color: var(--text); }
@media (max-width: 1000px) {
  .dom > summary { grid-template-columns: 56px minmax(0, 1fr) 28px; gap: 14px; }
  .d-perm, .d-crew { display: none; }
  .ent-in { grid-template-columns: 1fr; padding-left: 16px; }
}
@media (max-width: 640px) {
  .tw-ctl { padding: 14px 14px 4px; } .tw-bar { padding: 10px 12px; } .tw-ti { font-size: 11.5px; }
  .tw-ln .cm { display: none; }
  .dom > summary { padding: 16px 14px; gap: 12px; grid-template-columns: 44px minmax(0, 1fr) 28px; }
  .d-n b { font-size: 34px; } .d-blurb { font-size: 14px; }
  .ents { padding: 2px 8px 14px; }
  .ent > summary { grid-template-columns: minmax(0, 1fr) 24px; grid-template-areas: "t x" "m x"; gap: 6px 12px; padding: 12px 12px 12px 14px; }
  .e-t { grid-area: t; font-size: 15.5px; }
  .e-yr, .e-who, .e-tag { grid-row: 2; }
  .ent > summary { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 6px; padding-right: 46px; }
  .e-t { flex: 1 1 100%; order: 0; }
  .e-yr { order: 1; } .e-who { order: 2; } .e-tag { order: 3; }
  .e-x { position: absolute; right: 12px; top: 12px; }
  .ent-in { padding: 2px 12px 16px 14px; }
}

/* the jump shell */
.sh { position: fixed; inset: 0; z-index: 80; display: grid; place-items: start center; padding: max(10vh, 72px) var(--gut) 24px; background: rgba(2,4,5,.62); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sh[hidden] { display: none; }
.sh-win { width: min(100%, 720px); border: 1px solid color-mix(in srgb, var(--cyan) 35%, var(--line-2)); border-radius: 14px; background: #040708; overflow: hidden; box-shadow: 0 40px 120px -30px #000, 0 0 50px -20px rgba(var(--cy-rgb),.4); animation: shIn .18s ease-out; }
@keyframes shIn { from { opacity: 0; transform: translateY(-8px) scale(.99); } }
.sh-x { margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 6px; color: var(--dim); font: 400 11.5px/1 var(--mono); padding: 5px 8px; cursor: pointer; }
.sh-x:hover { color: var(--cyan); border-color: var(--cyan); }
.sh-out { max-height: min(46vh, 380px); overflow-y: auto; padding: 16px 18px 4px; font: 400 14px/1.6 var(--mono); color: var(--soft); white-space: pre-wrap; word-break: break-word; text-shadow: 0 0 6px rgba(var(--cy-rgb),.18); }
.sh-l + .sh-l { margin-top: 4px; }
.sh-l.in { color: var(--text); margin-top: 10px; }
.sh-l.err { color: var(--err); }
.sh .pr { color: var(--ok); }
.sh .c { color: var(--cyan); } .sh .d { color: var(--faint); } .sh b { color: var(--text); font-weight: 500; } .sh i { font-style: normal; color: var(--cyan); }
.sh .dir { color: var(--cyan); } .sh .f { color: var(--soft); } .sh .who { color: var(--c); }
.sh-in { display: flex; align-items: center; gap: 10px; padding: 12px 18px 16px; font: 400 14px/1 var(--mono); }
.sh-in .pr { white-space: nowrap; }
.sh-in input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: var(--text); font: inherit; caret-color: var(--cyan); padding: 6px 0; }
@media (max-width: 640px) { .sh { padding-top: 64px; } .sh-in .pr { max-width: 46%; overflow: hidden; text-overflow: ellipsis; } .sh-out { font-size: 13px; } }
html.sh-on { overflow: hidden; }
@media (max-width: 480px) { .bar .wrap { gap: 10px; } .bar .mark { font-size: 26px; gap: 8px; } .bar .sh-btn { display: none; } .bar .btn { margin-left: auto; } }

/* ---------- flip cards: front has who, CVE and the short version; back has the full story ---------- */
.fcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 6px 20px 22px; }
@media (max-width: 1100px) { .fcs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .fcs { grid-template-columns: 1fr; padding: 4px 12px 16px; } }
.fc { --c: var(--cyan); perspective: 1800px; min-width: 0; }
.fc[hidden] { display: none; }
.fc-in { display: grid; height: 100%; transform-style: preserve-3d; transition: transform .65s cubic-bezier(.2,.75,.2,1); }
.fc.flip .fc-in { transform: rotateY(180deg); }
.fc-f, .fc-b { grid-area: 1 / 1; min-width: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--c) 26%, var(--line)); padding: 20px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; cursor: pointer; }
.fc-f { background: radial-gradient(ellipse 90% 55% at 100% 0%, color-mix(in srgb, var(--c) 13%, transparent), transparent 70%), var(--surface); transition: border-color .25s, box-shadow .25s; }
.fc-f::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c); box-shadow: 0 0 18px var(--c); }
.fc-b { transform: rotateY(180deg); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 6%, #070b0c), #070b0c 40%); }
.fc-b::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; background-image: linear-gradient(color-mix(in srgb, var(--c) 5%, transparent) 1px, transparent 1px); background-size: 100% 26px; }
.fc:hover .fc-f, .fc.hit .fc-f { border-color: color-mix(in srgb, var(--c) 60%, var(--line)); box-shadow: 0 20px 50px -30px color-mix(in srgb, var(--c) 70%, transparent); }
.fc.hit .fc-f { box-shadow: 0 0 0 2px var(--c), 0 20px 50px -24px var(--c); }
.fc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fc-who { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.fc-who img { width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent), 0 0 16px -4px var(--c); }
.fc-who span { font: 400 12.5px/1.35 var(--mono); color: var(--dim); }
.fc-who b { color: var(--c); font-weight: 500; }
.fc-who:hover span { color: var(--text); }
.fc-tag { font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); border-radius: 4px; padding: 5px 7px; white-space: nowrap; }
.fc h3 { font-size: clamp(25px, 2.3vw, 31px); }
.fc-yr { display: block; margin-top: 7px; font: 400 13px/1.3 var(--mono); color: var(--dim); }
.fc .cve { font: 400 13px/1.5 var(--mono); color: #cfe0e0; padding: 8px 10px; border-radius: 6px; border: 1px dashed color-mix(in srgb, var(--c) 34%, var(--line-2)); overflow-wrap: anywhere; }
.fc .cve b { color: var(--c); font-weight: 500; margin-right: 8px; letter-spacing: .06em; }
.fc .take { font: 400 14.5px/1.55 var(--mono); color: #d8e6e6; padding: 12px 14px; border-radius: 8px; background: color-mix(in srgb, var(--c) 7%, #090d0e); border: 1px solid color-mix(in srgb, var(--c) 20%, transparent); }
.fc .take::before { content: "> "; color: var(--c); }
.fc-flip { position: relative; margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c) 45%, var(--line-2)); background: transparent; color: var(--c); font: 500 12.5px/1 var(--mono); cursor: pointer; transition: background .2s, color .2s; }
.fc-flip svg { width: 14px; height: 14px; }
.fc-flip:hover { background: var(--c); color: #031314; }
.fc-bt { position: relative; display: grid; gap: 10px; justify-items: start; }
.fc-b h4 { font-family: var(--display); font-stretch: 66%; font-variation-settings: "wdth" 66; font-weight: 850; text-transform: uppercase; font-size: 24px; line-height: .95; }
.fc-h { position: relative; font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.fc-b p { position: relative; color: #b9cbcc; font-size: 14.5px; line-height: 1.6; }
.fc-b .lesson { color: var(--dim); }
.fc-b .lesson b { color: var(--text); font-weight: 600; }
.fc .srcs { position: relative; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.fc .src { font: 400 12.5px/1 var(--mono); color: var(--dim); text-decoration: none; border-bottom: 1px solid #2a3a3d; padding-bottom: 3px; }
.fc .src:hover { color: var(--c); border-color: var(--c); }
.fc-art { position: absolute; right: -6%; bottom: -4%; width: 62%; max-width: 230px; height: auto; opacity: .2; pointer-events: none; filter: saturate(1.2); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 60% 60%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 60% 60%, #000 30%, transparent 75%); }
.fc-foot { position: relative; margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fc-foot .fc-flip { margin-top: 0; }
.fc-num { font: 400 12px/1 var(--mono); color: var(--faint); letter-spacing: .04em; }
.fc-f > :not(.fc-art) { position: relative; }
@media (max-width: 680px) {
  .fc-in { display: block; transform: none !important; transition: none; }
  .fc-b { transform: none; display: none; }
  .fc.flip .fc-f { display: none; }
  .fc.flip .fc-b { display: flex; animation: fcIn .28s ease-out; }
  .fc-art { width: 40%; opacity: .16; }
}
@keyframes fcIn { from { opacity: 0; transform: translateY(6px); } }
.fc-b .fc-h { color: var(--c); font-size: 11px; line-height: 1; }
/* debrief sorted by color: one group per character */
.dom.col > summary .d-face { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 55%, transparent), 0 0 22px -6px var(--c); justify-self: start; }
.dom.col .d-n b { color: var(--c); text-shadow: 0 0 14px color-mix(in srgb, var(--c) 40%, transparent); }
.dom.col .d-path { color: color-mix(in srgb, var(--c) 75%, var(--dim)); }
.dom.col .d-h { color: var(--c); }
.dom.col > summary { border-left: 3px solid color-mix(in srgb, var(--c) 70%, transparent); }
.dom.col > summary:hover, .dom.col[open] > summary { background: color-mix(in srgb, var(--c) 5%, transparent); }
.dom.col[open] > summary .d-x { border-color: var(--c); }
.dom.col[open] > summary .d-x::before, .dom.col[open] > summary .d-x::after { background: var(--c); }
.sw-rb { background: conic-gradient(#ff4a4a, #ff9a3c, #f2f4f5, #4bf07a, #5ef2f0, #4a9bff, #9b6bff, #ee5cee, #ff4a4a) !important; }
.tw-sort { padding-bottom: 0; }
@media (max-width: 1000px) { .dom.col > summary .d-face { display: none; } }
.doms[hidden] { display: none; }

/* ---------- the comic page: RED is in. The whole page is his monitor (body.pwn) ---------- */
body.pwn { --cy-rgb: 255, 74, 74; --cyan: #ff4a4a; --c: #ff4a4a; --ok: #4bf07a; --bg: #050303; --surface: #0d0808; --surface-2: #110a0a; --line: #2a1717; --line-2: #3a2121;
  --text: #f3e6e6; --soft: #d8bfbf; --dim: #a88383; --faint: #7d5c5c; background: #050303; }
body.pwn::before { background: #050303; }
.pwn .bar { background: rgba(9, 3, 3, .82); border-bottom-color: rgba(70, 22, 22, .8); }
.pwn .mark { color: #ff4a4a; text-shadow: 0 0 14px rgba(255, 74, 74, .55); animation: pwnGlitch 6s steps(1) infinite; }
@keyframes pwnGlitch { 0%, 93%, 100% { transform: none; opacity: 1; } 94% { transform: translateX(2px); opacity: .7; } 95% { transform: translateX(-2px); } 96% { transform: none; opacity: .85; } }
.pwn .btn-primary { color: #1c0303; }
.pwn .btn-primary:hover { box-shadow: 0 8px 30px -6px rgba(255, 74, 74, .6); }
.pwn .sh-btn { color: #ff4a4a; }
.pwn .sh-btn:hover, .pwn .sh-btn[aria-expanded="true"] { background: rgba(255, 74, 74, .08); box-shadow: 0 0 18px -4px rgba(255, 74, 74, .5); }
.pwn .phead h1 .c { text-shadow: 0 0 40px rgba(255, 74, 74, .45); }
.pwn .crt { background: repeating-linear-gradient(to bottom, rgba(255, 90, 90, .03) 0 1px, transparent 1px 3px), radial-gradient(ellipse 120% 90% at 50% 45%, transparent 58%, rgba(30, 0, 0, .45) 100%); }
.pwn footer .legal .on { color: #ff4a4a; }
.pwn-bar { background: repeating-linear-gradient(-45deg, rgba(255, 74, 74, .1) 0 12px, rgba(255, 74, 74, .04) 12px 24px), #0a0303; border-bottom: 1px solid rgba(255, 74, 74, .3); font: 400 12.5px/1.4 var(--mono); color: #ffbcbc; }
.pwn-bar .wrap { padding-block: 9px; }
.pwn-bar b { color: #ff4a4a; font-weight: 500; }
.pwn-i { color: #ff4a4a; animation: blink 1.1s steps(1) infinite; }

/* ghostview: RED's session list */
.gv { border-color: #3a1c1c; background: #070303; box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .9), 0 0 60px -30px rgba(255, 74, 74, .35); }
.gv .tw-bar { background: #0e0606; border-bottom-color: #2a1414; }
.gv-live { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #4bf07a; box-shadow: 0 0 8px #4bf07a; animation: blink 1.6s steps(1) infinite; vertical-align: 0; }
.gv-ls { padding: 18px 20px 4px; font: 400 13.5px/1.6 var(--mono); color: var(--soft); border-bottom: 1px solid #241212; }
.gv-ls .p { color: #ff4a4a; }
.gv-ls pre { margin: 8px 0 14px; font: inherit; color: var(--dim); overflow-x: auto; white-space: pre; }
.gv-ls .ok { color: var(--ok); } .gv-ls .err { color: #ff6b6b; }
.sess { display: grid; grid-template-columns: min(270px, 34%) minmax(0, 1fr); gap: clamp(18px, 3vw, 34px); padding: clamp(18px, 2.6vw, 28px) 20px; border-bottom: 1px solid #241212; align-items: start; }
.sess:last-child { border-bottom: 0; }
.sess-scr { position: relative; display: block; padding: 0; border: 1px solid #3a1c1c; border-radius: 8px; background: #000; cursor: pointer; line-height: 0; overflow: hidden; box-shadow: inset 0 0 0 1px #000; }
.sess-scr img { width: 100%; aspect-ratio: 1600 / 2443; object-fit: cover; filter: saturate(.8) brightness(.8) sepia(.25) hue-rotate(-20deg); transition: filter .4s, transform .4s; }
.sess-scr::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px), radial-gradient(ellipse 90% 80% at 50% 50%, transparent 55%, rgba(0, 0, 0, .6) 100%); }
.sess-scr:hover img, .sess-scr:focus-visible img { filter: none; transform: scale(1.02); }
.sess-scr:hover, .sess-scr:focus-visible { border-color: #ff4a4a; box-shadow: 0 0 34px -6px rgba(255, 74, 74, .45); }
.sess-tag { position: absolute; z-index: 1; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 4px; background: rgba(12, 0, 0, .78); border: 1px solid rgba(255, 74, 74, .45); font: 400 15px/1 var(--brand); letter-spacing: .08em; color: #ffbcbc; }
.sess-tag i { width: 7px; height: 7px; border-radius: 50%; background: #ff4a4a; box-shadow: 0 0 8px #ff4a4a; animation: blink 1.6s steps(1) infinite; }
.sess-scr .go { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: 14px; font: 400 26px/1 var(--brand); letter-spacing: .12em; color: #ff4a4a; background: linear-gradient(transparent, rgba(0, 0, 0, .94) 45%); text-shadow: 0 0 12px rgba(255, 74, 74, .55); text-align: left; }
.sess-scr.off { display: grid; place-items: center; aspect-ratio: 1600 / 2443; max-width: 170px; cursor: default; background: repeating-linear-gradient(0deg, #090404 0 2px, #050202 2px 4px); font: 400 64px/1 var(--brand); color: #5a2a2a; }
.sess-scr.off:hover { border-color: #3a1c1c; box-shadow: none; }
.sess-scr.off .sess-tag i { background: #6a2a2a; box-shadow: none; animation: none; }
.sess.locked .iss-info h2 span { color: #ffd640; }
.pwn .iss-st b { color: #ff4a4a; }
@media (max-width: 640px) { .sess { grid-template-columns: 1fr; padding-inline: 14px; } .sess-scr { max-width: 300px; } .gv-ls { padding-inline: 14px; font-size: 12px; } }
.sess-tag { white-space: nowrap; } .sess-scr.off .sess-tag { font-size: 12px; left: 8px; top: 8px; padding: 5px 6px; }

/* arriving on RED's monitor: his terminal, then the screen powers on */
.pwn-boot { position: fixed; inset: 0; z-index: 200; background: #000; display: grid; place-items: center; cursor: pointer; }
.pb-t { width: min(100% - 2 * var(--gut), 760px); font: 400 clamp(18px, 2.4vw, 26px)/1.35 var(--brand); color: #ffcfcf; text-shadow: 0 0 8px rgba(255, 74, 74, .35); white-space: pre-wrap; }
.pb-t .pr { color: #ff4a4a; text-shadow: 0 0 10px rgba(255, 74, 74, .6); }
.pb-t .in { color: #ff9a9a; } .pb-t .d { color: #6e4a4a; text-shadow: none; } .pb-t .ok { color: #4bf07a; text-shadow: 0 0 10px rgba(75, 240, 122, .45); }
.pb-t .cur { animation: blink 1s steps(1) infinite; }
.pb-skip { position: absolute; bottom: 5%; left: 0; right: 0; margin: 0; text-align: center; font: 400 12px/1 var(--mono); letter-spacing: .08em; color: rgba(255, 207, 207, .3); }
.pb-line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: #ffdede; box-shadow: 0 0 24px 6px rgba(255, 74, 74, .75), 0 0 80px 20px rgba(255, 74, 74, .35); transform: scaleX(0); opacity: 0; }
.pwn-boot.pb-on .pb-t, .pwn-boot.pb-on .pb-skip { opacity: 0; transition: opacity .12s; }
.pwn-boot.pb-on .pb-line { opacity: 1; transform: scaleX(1); transition: transform .24s cubic-bezier(.2, .8, .2, 1), opacity .05s; }
.pwn-boot.pb-out { background: transparent; transition: background .2s; }
.pwn-boot.pb-out .pb-line { opacity: 0; transform: scaleX(1) scaleY(60); transition: opacity .26s ease-out, transform .26s ease-out; }
#site.pwn-crt { animation: pwnOn .55s cubic-bezier(.2, .7, .2, 1) both; transform-origin: 50% 50vh; }
@keyframes pwnOn { 0% { transform: scale(1, .004); filter: brightness(5) saturate(0); } 40% { transform: scale(1, .02); filter: brightness(3.5); } 100% { transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { .pwn-boot { display: none; } }
/* the boot log runs full screen, bottom-anchored like a real console */
.pb-t.log { position: absolute; inset: 0; width: auto; padding: 3vh 3.5vw; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; font: 400 clamp(12px, 1.25vw, 16px)/1.32 var(--mono); color: #d9b3b3; text-shadow: 0 0 6px rgba(255, 74, 74, .18); }
.pb-t.log > div { white-space: pre; overflow: hidden; min-height: 1.32em; }
.pb-t.log .bl.k, .pb-t.log .bl.st { color: #8f6a6a; }
.pb-t.log .ts { color: #5e4040; }
.pb-t.log .okk { color: #4bf07a; }
.pb-t.log .u { color: #d9b3b3; }
.pb-t.log .u.me { color: #ff4a4a; text-shadow: 0 0 10px rgba(255, 74, 74, .7); }
.pb-t.log.pb-cmd > div:not(.bl) { font: 400 clamp(17px, 2vw, 24px)/1.35 var(--brand); white-space: pre-wrap; color: #ffcfcf; }
.pb-t.log .bl.ok { color: #d9b3b3; text-shadow: none; }
.pb-t.log > div { flex: none; }
.pwn-boot .pb-skip { bottom: auto; top: 14px; right: 18px; left: auto; text-align: right; }
.pwn-boot .pb-skip { z-index: 1; background: #000; padding: 4px 8px; border-radius: 4px; }

/* ---------- the enter screen (home, once a visit): logo, ENTER, socials; ENTER boots DAEMON's machine ---------- */
.gate { display: none; }
html.dl-gate { overflow: hidden; }
html.dl-gate .gate { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 24px var(--gut); --cell: 4px;
  background: radial-gradient(ellipse 60% 45% at 50% 44%, rgba(var(--cy-rgb), .08), transparent 70%), #050708; }
@media (min-width: 360px) { html.dl-gate .gate { --cell: 5px; } }
.gate::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px); }
.gate-in { position: relative; z-index: 1; display: grid; justify-items: center; gap: calc(var(--cell) * 7); transition: opacity .2s; }
.gate h1 { margin: 0; line-height: 0; }
.gate-logo { display: block; width: calc(var(--cell) * 62); height: calc(var(--cell) * 16); color: var(--cyan); filter: drop-shadow(0 0 10px rgba(var(--cy-rgb), .55)) drop-shadow(0 0 28px rgba(var(--cy-rgb), .3)); }
.gate-logo .cur { animation: blink 1.1s steps(1) infinite; }
.gate-word { font: 400 64px/1 var(--brand); color: var(--cyan); }
.enter { font-family: var(--brand); font-size: max(26px, calc(var(--cell) * 4.2)); line-height: 1; letter-spacing: .32em; padding: .32em .5em .32em .82em; color: var(--cyan); background: transparent;
  border: 1px solid rgba(var(--cy-rgb), .38); cursor: pointer; text-shadow: 0 0 12px rgba(var(--cy-rgb), .45); transition: background .2s, box-shadow .2s, border-color .2s, opacity .2s; }
.enter:hover, .enter:focus-visible { background: rgba(var(--cy-rgb), .08); border-color: var(--cyan); box-shadow: 0 0 22px rgba(var(--cy-rgb), .25); outline: none; }
.gate-soc { position: absolute; z-index: 1; left: 0; right: 0; bottom: max(28px, env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; gap: 18px; transition: opacity .2s; }
.g-soc { display: grid; place-items: center; width: 48px; height: 48px; color: var(--dim); border: 1px solid var(--line); background: rgba(5, 7, 8, .6); transition: color .2s, border-color .2s, box-shadow .2s; }
.g-soc svg { width: 22px; height: 22px; }
.g-soc:hover, .g-soc:focus-visible { color: var(--cyan); border-color: rgba(var(--cy-rgb), .6); box-shadow: 0 0 18px rgba(var(--cy-rgb), .2); }
.gate.boot .enter, .gate.boot .gate-soc { opacity: 0; pointer-events: none; }
.gate.boot .gate-logo { animation: gateFlicker .42s steps(1, end) forwards; }
@keyframes gateFlicker { 0% { opacity: 1; } 12% { opacity: .1; } 22% { opacity: 1; } 34% { opacity: .3; } 46% { opacity: .95; } 60% { opacity: .08; } 72% { opacity: 1; filter: drop-shadow(0 0 16px rgba(var(--cy-rgb), .85)) brightness(1.3); } 100% { opacity: 1; filter: drop-shadow(0 0 24px rgba(var(--cy-rgb), .95)) brightness(1.5); } }
.gate.g-term .gate-in, .gate.g-term .gate-soc { opacity: 0; }
.gate-t { position: absolute; inset: 0; z-index: 2; padding: 3vh 3.5vw; display: none; flex-direction: column; justify-content: flex-end; overflow: hidden; background: #000;
  font: 400 clamp(12px, 1.25vw, 16px)/1.32 var(--mono); color: #b8d2d3; text-shadow: 0 0 6px rgba(var(--cy-rgb), .15); }
.gate-t.on { display: flex; }
.gate-t > div { flex: none; white-space: pre; overflow: hidden; min-height: 1.32em; }
.gate-t .bl.k, .gate-t .bl.st { color: #6f8e90; }
.gate-t .ts { color: #3f5c5e; }
.gate-t .okk { color: #4bf07a; }
.gate-t .u.me { color: var(--cyan); text-shadow: 0 0 10px rgba(var(--cy-rgb), .7); }
.gate-t .tc { font: 400 clamp(17px, 2vw, 24px)/1.35 var(--brand); white-space: pre-wrap; color: #dff6f6; }
.gate-t .pr { color: var(--cyan); text-shadow: 0 0 10px rgba(var(--cy-rgb), .6); }
.gate-t .d { color: #5b7577; } .gate-t .cur { animation: blink 1s steps(1) infinite; }
.gate.flash .gate-t { opacity: 0; transition: opacity .12s; }
.gate.flash::before { content: ""; position: absolute; z-index: 3; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: #e6ffff; box-shadow: 0 0 24px 6px rgba(var(--cy-rgb), .75), 0 0 80px 20px rgba(var(--cy-rgb), .35); animation: txLine .2s cubic-bezier(.2, .8, .2, 1) both; }
.gate.out { background: transparent; transition: background .3s; }
.gate.out::before, .gate.out .gate-t, .gate.out .gate-in { opacity: 0; transition: opacity .3s; }

/* ---------- page to page: type the cd, then the next page opens out of a bright line ---------- */
html.dl-tx #site { opacity: 0; }
.tx { position: fixed; inset: 0; z-index: 205; background: #000; pointer-events: none; }
.tx.out { opacity: 0; transition: opacity .1s; } .tx.out.on { opacity: 1; }
.tx-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 4vh 4vw; display: grid; gap: 4px; font: 400 clamp(18px, 2.2vw, 26px)/1.3 var(--brand); color: #dff6f6; text-shadow: 0 0 8px rgba(var(--cy-rgb), .2); }
.tx .pr { color: var(--cyan); text-shadow: 0 0 10px color-mix(in srgb, var(--cyan) 60%, transparent); }
.tx .ok { color: var(--ok); } .tx .cur { animation: blink 1s steps(1) infinite; }
.tx-line { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: #fff; opacity: 0; box-shadow: 0 0 24px 6px color-mix(in srgb, var(--cyan) 75%, transparent), 0 0 80px 20px color-mix(in srgb, var(--cyan) 35%, transparent); }
.tx.flash { background: transparent; transition: background .25s; }
.tx.flash .tx-t { opacity: 0; transition: opacity .1s; }
.tx.flash .tx-line { animation: txLine .3s ease-out both; }
@keyframes txLine { 0% { opacity: 1; transform: scaleX(0); } 40% { opacity: 1; transform: scaleX(1); } 100% { opacity: 0; transform: scaleX(1) scaleY(40); } }
#site.tx-crt { animation: pwnOn .52s cubic-bezier(.2, .7, .2, 1) both; transform-origin: 50% 50vh; }
.pwn .tx-t { color: #ffd9d9; text-shadow: 0 0 8px rgba(255, 74, 74, .2); }
@media (prefers-reduced-motion: reduce) { .gate.boot .gate-logo { animation: none; } html.dl-tx #site { opacity: 1; } .tx { display: none; } }
/* page to page on DAEMON's machine: the new page prints top to bottom in terminal-sized steps */
#site.tx-draw { animation: txDraw .36s steps(18, end) both; }
@keyframes txDraw { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { #site.tx-draw { animation: none; } }

/* ---------- pages themed after a character: their color takes over the cyan, their mark takes over the logo ---------- */
body.th-ada { --cyan: #ee5cee; --c: #ee5cee; --cy-rgb: 238, 92, 238; }
body.th-white { --cyan: #f2f4f5; --c: #f2f4f5; --cy-rgb: 242, 244, 245; }
body.th-green { --cyan: #4bf07a; --c: #4bf07a; --cy-rgb: 75, 240, 122; }
body.th-purple { --cyan: #9b6bff; --c: #9b6bff; --cy-rgb: 155, 107, 255; }
body.th-orange { --cyan: #ff9a3c; --c: #ff9a3c; --cy-rgb: 255, 154, 60; }
body.th-blue { --cyan: #4a9bff; --c: #4a9bff; --cy-rgb: 74, 155, 255; }
body.th-red { --cyan: #ff4a4a; --c: #ff4a4a; --cy-rgb: 255, 74, 74; }
body[class*="th-"] .mark { color: var(--cyan); text-shadow: 0 0 14px rgba(var(--cy-rgb), .5); }
body[class*="th-"] .phead { background: radial-gradient(ellipse 60% 100% at 85% 0%, rgba(var(--cy-rgb), .14), transparent 70%), var(--bg); }
body[class*="th-"] .btn-primary { color: #0a0a0a; }
body.th-white .phead h1 .c { text-shadow: 0 0 40px rgba(242, 244, 245, .28); }

/* ---------- sign-up: ORANGE's database ---------- */
.ping-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(22px, 3vw, 40px); align-items: start; }
@media (max-width: 900px) { .ping-grid { grid-template-columns: 1fr; } }
.pg-in { padding: 20px; display: grid; gap: 14px; }
.pg-d { margin: 0; font: 400 13.5px/1.6 var(--mono); color: var(--dim); overflow-x: auto; white-space: pre; }
.pg-d .p, .pg-q .p { color: var(--cyan); }
.pg-d .d, .pg-corner .d { color: var(--faint); }
.pg-form { display: grid; gap: 12px; max-width: none; }
.pg-q { margin: 0; font: 400 14px/1.5 var(--mono); color: var(--soft); }
.pg-row { display: flex; align-items: center; gap: 8px; }
.pg-row input { flex: 1; min-width: 0; height: 46px; background: #0a0f10; border: 1px solid var(--line-2); border-radius: 8px; padding: 0 14px; color: var(--text); font: 400 16px/1 var(--mono); caret-color: var(--cyan); }
.pg-row input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(var(--cy-rgb), .14); }
.pg-corner { margin: 0; font: 400 13.5px/1.4 var(--mono); color: var(--cyan); }
.pg-form .btn { justify-self: start; }
.pg-side { display: grid; gap: 18px; padding: 6px 0; }
.pg-side .tool-h img { width: 64px; height: 64px; }
.pg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pg-list li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--dim); font-size: 15.5px; }
.pg-list li::before { content: "> "; color: var(--cyan); font-family: var(--mono); }
.pg-list b { color: var(--text); font-weight: 600; }
.osint .tools-grid { margin-top: 26px; }
/* cert paths: the whole CompTIA catalog, folded */
.cmp { margin-top: 18px; border: 1px solid #1d2c3d; border-radius: 12px; background: #060a10; }
.cmp > summary { list-style: none; cursor: pointer; padding: 16px 18px; font: 400 14px/1 var(--mono); color: var(--c); display: flex; align-items: center; gap: 10px; }
.cmp > summary::-webkit-details-marker { display: none; }
.cmp > summary::before { content: "+"; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #2a3d55; border-radius: 6px; transition: transform .25s; }
.cmp[open] > summary::before { transform: rotate(45deg); border-color: var(--c); }
.cmp > summary:hover { background: rgba(74, 155, 255, .05); }
.cmp-g { padding: 6px 18px 18px; }
.cmp-h { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 12px; font: 400 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.cmp-h span { color: #5d7898; letter-spacing: 0; }
.cert .lv { max-width: 100%; overflow-wrap: anywhere; }

/* ---------- character poses around the site ---------- */
.pose { display: block; height: auto; max-width: 100%; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); }
/* page heads: the character stands on the bottom edge, to the right of the lede */
.phead.has-art .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) auto; padding-bottom: 0; }
.phead.has-art .lede { padding-bottom: clamp(40px, 5vw, 64px); }
.ph-art { align-self: end; justify-self: end; width: clamp(150px, 15vw, 230px); margin-bottom: -1px; }
.ph-art .pose { width: 100%; max-height: clamp(260px, 30vw, 400px); object-fit: contain; object-position: bottom; }
@media (max-width: 900px) {
  .phead.has-art .wrap { grid-template-columns: minmax(0, 1fr) auto; }
  .phead.has-art .lede { grid-column: 1 / -1; grid-row: 2; padding-bottom: 0; }
  .ph-art { grid-column: 2; grid-row: 1; width: clamp(96px, 26vw, 150px); }
  .phead.has-art .wrap { padding-bottom: clamp(32px, 5vw, 48px); }
  .ph-art { margin-bottom: 0; }
}
/* a title with one very long word (WALLPAPERS.) gets the whole row; the lede drops under it */
.phead.has-art.long .wrap { grid-template-columns: minmax(0, 1fr) auto; }
.phead.has-art.long .wrap > div:first-child { grid-column: 1; grid-row: 1; }
.phead.has-art.long .lede { grid-column: 1; grid-row: 2; justify-self: start; max-width: 60ch; }
.phead.has-art.long .ph-art { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 900px) {
  .phead.has-art.long .wrap > div:first-child { grid-column: 1 / -1; }
  .phead.has-art.long .lede { padding-bottom: 0; align-self: center; }
  .phead.has-art.long .ph-art { grid-row: 2; }
  .phead.long h1 { font-size: clamp(40px, 11.5vw, 112px); }
}
/* character page: signature pose stands beside the name, over the room's bottom edge */
.ch-id .wrap { position: relative; }
.ch-pose { position: absolute; right: var(--gut); bottom: 0; width: clamp(130px, 17vw, 250px); pointer-events: none; }
.ch-pose .pose { width: 100%; max-height: clamp(240px, 30vw, 440px); object-fit: contain; object-position: bottom; }
.ch-id h1, .ch-id .status, .ch-id .q { max-width: 100%; }   /* the hero no longer has a standing pose beside the name */
@media (max-width: 640px) { .ch-pose { display: none; } }   /* phones: the name needs the width; the poses are in "Spotted around" */
.spotted { padding: 14px 18px 4px; border-top: 1px solid var(--line); }
.spotted .lab { font: 400 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.spotted > div { display: flex; align-items: flex-end; justify-content: space-around; gap: 8px; margin-top: 10px; }
.spotted .pose { height: auto; max-height: 120px; width: auto; max-width: calc((100% - 16px) / 3); min-width: 0; object-fit: contain; filter: none; }
/* quiz result and the debrief's empty search */
.res-top:has(.res-pose) { grid-template-columns: auto minmax(0, 1fr); }
.res-top .res-pose { width: auto !important; height: 150px !important; border-radius: 0 !important; box-shadow: none !important; object-fit: contain; background: none !important; }
.tw-none { display: flex; align-items: center; gap: 18px; }
.tw-none[hidden] { display: none; }
.tw-none .pose { height: 120px; width: auto; flex: none; }
.pg-fig { display: flex; justify-content: center; }
.pg-fig .pose { height: clamp(220px, 26vw, 320px); width: auto; }

/* SKITTY's page: she lounges at the bottom right of DAEMON's desk, so the fade comes from the left and she stays in frame */
.ch-hero.sk .ch-room img { object-position: 100% 100%; }
.ch-hero.sk .ch-room::after { background: linear-gradient(0deg, var(--bg) 0%, transparent 14%), linear-gradient(90deg, rgba(5,7,8,.82) 0%, rgba(5,7,8,.5) 40%, rgba(5,7,8,0) 66%), radial-gradient(ellipse 80% 70% at 50% 40%, transparent 55%, rgba(0,0,0,.5)); }
@media (max-width: 640px) { .ch-hero.sk .ch-room::after { background: linear-gradient(0deg, var(--bg) 0%, transparent 10%), linear-gradient(180deg, rgba(5,7,8,.1) 30%, rgba(5,7,8,.75) 62%, rgba(5,7,8,.2) 84%); } }

/* glossary: where each term shows up (Debrief cards, rooms, comic pages) */
.gterm .seen { font: 400 12px/1.6 var(--mono); color: var(--dim); margin-top: 8px; }
.gterm .seen span { color: var(--faint); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; margin-right: 4px; }
.gterm .seen a { color: var(--dim); text-decoration: underline; text-decoration-color: rgba(255,255,255,.2); text-underline-offset: 3px; }
.gterm .seen a:hover { color: var(--text); text-decoration-color: currentColor; }

/* footer links: a full-size tap target even for a one-letter link like X */
.foot ul a { display: inline-block; min-width: 44px; padding-block: 4px; }

/* home: the ticker sits right under the hero, with no gap of empty space above it */
.hero .wrap { padding-block: clamp(40px, 5vw, 72px) clamp(28px, 3vw, 44px); }

/* comic: the end card inside RED's screen (js/follow.js) */
.rd-end { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); z-index: 6; width: min(92%, 440px); padding: 16px 18px 14px; background: rgba(6, 3, 3, .94); border: 1px solid rgba(255, 74, 74, .55); border-radius: 10px; box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 0 40px -6px rgba(255, 74, 74, .45); font: 400 14px/1.5 var(--mono); color: #f1dede; animation: rdEnd .35s ease-out; }
.rd-end[hidden] { display: none; }
@keyframes rdEnd { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.rd-end-c { margin: 0 0 8px; font-size: 12px; color: #b98b8b; } .rd-end-c span { color: #ff4a4a; }
.rd-end-h { margin: 0; font: 700 20px/1.2 var(--sans, inherit); color: #fff; letter-spacing: -.01em; }
.rd-end-p { margin: 6px 0 12px; } .rd-end-p b { color: #ffd23f; font-weight: 500; }
.rd-end-a { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.rd-end-a a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255, 74, 74, .5); color: #ffd6d6; text-decoration: none; font-size: 13px; }
.rd-end-a a:hover { border-color: #ff4a4a; color: #fff; }
.rd-end-a .rd-end-b { background: #ff4a4a; border-color: #ff4a4a; color: #140404; font-weight: 500; }
.rd-end-x { position: absolute; top: 6px; right: 8px; width: 32px; height: 32px; border: 0; background: none; color: #c99; font-size: 22px; line-height: 1; cursor: pointer; }
.rd-end-x:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) { .rd-end { animation: none; } }

/* boot lines: "active" in green (a class, not a style attribute: the CSP allows none) */
.jl .up { color: #4bf07a; }

/* contact form */
.pout .err { color: var(--err); }
.ct-form { gap: 8px; }
.ct-l { font: 400 12.5px/1.4 var(--mono); color: var(--cyan); margin-top: 6px; }
.ct-l span { color: var(--faint); }
.ct-form select, .ct-form textarea, .ct-form input[type=text], .ct-form input[type=email] { width: 100%; background: #0a0f10; border: 1px solid var(--line-2); border-radius: 8px; padding: 11px 14px; color: var(--text); font: 400 15px/1.5 var(--mono); }
.ct-form select { height: 46px; padding-block: 0; }
.ct-form textarea { resize: vertical; min-height: 140px; }
.ct-form select:focus, .ct-form textarea:focus, .ct-form input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(var(--cy-rgb), .14); }
.ct-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .ct-two { grid-template-columns: 1fr; } }
.ct-form .btn { margin-top: 10px; }
.pg-list a { color: var(--cyan); }
.nf-tip { margin-top: 22px; }
.nf-tip a { color: var(--cyan); }

/* ---------- audit fixes (Nov 2026) ---------- */
.facts { display: flex; flex-wrap: wrap; gap: 8px; }                  /* chips are boxes everywhere, never split across lines */
.facts span { white-space: nowrap; }
.sess-tag { top: auto; bottom: 52px; }                                  /* the LIVE tag sits above "> CONNECT_", off the cover's logo */
.sess-scr.off { max-width: 300px; width: 100%; }                        /* the locked No. 2 screen is as wide as No. 1 */
.sess-scr.off .sess-tag { bottom: auto; }
.phead .pout { margin-bottom: 6px; }
.ct-form input[type=text], .ct-form input[type=email] { height: 48px; }
#sn-out { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
@media (min-width: 1000px) { #sn-out { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .term { height: 380px; } }
.ch-hero.sk .ch-room img { object-position: 100% 22%; }                /* SKITTY: show the room's top (logo, posters) */
/* a phone held sideways: smaller header and shorter heroes, so the page starts on the first screen */
@media (orientation: landscape) and (max-height: 540px) {
  .bar { position: relative; }
  .ch-room { height: auto; min-height: 0; aspect-ratio: auto; height: 92vh; }
  .ch-id h1 { font-size: clamp(48px, 11vh, 96px); }
  .ch-id .wrap { padding-bottom: 14px; gap: 8px; }
  .phead .wrap { padding-block: 18px 22px; }
  .phead h1 { font-size: clamp(36px, 12vh, 72px); }
}
.phead .label.ty { display: block; }                                    /* prompt text flows normally, so the cursor follows the last word */
.ct-form { width: 100%; }                                               /* the contact form fills its window (.form caps the signup at 520px) */
.ct-form input[type=email] { border-radius: 8px; font: 400 15px/1.5 var(--mono); padding: 0 14px; flex: none; }
.wall > span:last-child { flex-wrap: wrap; row-gap: 2px; }               /* wallpaper captions: the size drops under the name instead of squeezing it */
.wall > span:last-child b { flex: 1 1 auto; }
@media (max-width: 640px) {                                                /* SKITTY on a phone: the room (and the cat) sit above the name, not under it */
  .ch-hero.sk .ch-room img { height: 66%; object-position: 86% 100%; -webkit-mask-image: linear-gradient(180deg, #000 78%, transparent); mask-image: linear-gradient(180deg, #000 78%, transparent); }
}
.sess-scr { justify-self: center; margin-inline: auto; }                   /* session screens centered in their cards on phones */
@media (min-width: 641px) { .sess-scr { justify-self: stretch; } }

/* ---------- audit 2 fixes ---------- */
.ch-room .crumbs { left: var(--gut); right: auto; width: max-content; max-width: calc(100% - 2 * var(--gut)); padding: 5px 10px; border-radius: 6px; background: rgba(4, 6, 7, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ch-room .crumbs a { color: #c9d6d7; } .ch-room .crumbs span { color: #8fa3a5; }
#walls { padding-top: clamp(56px, 7vw, 96px); }                          /* the crew wallpaper section gets the same breathing room as the rest */
.wall > span:last-child { flex-direction: column; align-items: flex-start; gap: 2px; }   /* name above size, same height on every tile */
.wall > span:last-child b { flex: none; }
.nw { white-space: nowrap; }
/* wrap pass 3 */
i.nw { font-style: normal; }
.spec .top span i.nw { display: inline; margin: 0; }
.fc-who span b { display: block; margin-bottom: 2px; }
.cgroup ul { grid-template-columns: fit-content(260px) minmax(0, 1fr); }
.cgroup li { grid-column: 1 / -1; grid-template-columns: subgrid; }
@supports not (grid-template-columns: subgrid) { .cgroup li { grid-template-columns: 170px minmax(0, 1fr); } }
@media (max-width: 480px) { .cgroup ul { grid-template-columns: minmax(0, 1fr); } .cgroup li { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .phead.has-art.long .lede { grid-column: 1 / -1; grid-row: 2; max-width: none; margin-top: 6px; }
  .phead.has-art.long .ph-art { grid-column: 1 / -1; grid-row: 3; justify-self: end; width: clamp(84px, 24vw, 120px); margin-top: -8px; }
  .phead.has-art.long .wrap { padding-bottom: 0; row-gap: 14px; }
}
/* contrast: names and marks over busy room art */
.ch-id h1 { text-shadow: 0 2px 0 rgba(0,0,0,.55), 0 0 18px rgba(0,0,0,.75), 0 0 50px color-mix(in srgb, var(--c) 45%, transparent); }
.ch-id h1 .sym { text-shadow: 0 0 2px #000, 0 0 10px rgba(0,0,0,.9), 0 0 22px rgba(0,0,0,.7); }
/* breach card number gets its own plate so the watermark art never runs under it */
.fc-num { position: relative; padding: 5px 8px; border-radius: 5px; background: color-mix(in srgb, var(--c) 6%, #080b0c); border: 1px solid var(--line); color: var(--dim); }
/* PURPLE's long name ran into his mug: a smaller name on wide screens */
@media (min-width: 901px) { .ch-hero.ch-purple .ch-id h1 { font-size: clamp(72px, 10.5vw, 150px); } }
/* welcome page: the signup downloads */
.dl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 18px; }
.dl-card { display: grid; gap: 8px; padding: 20px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); text-decoration: none; color: var(--dim); transition: border-color .15s, transform .15s; }
.dl-card:hover, .dl-card:focus-visible { border-color: var(--c); transform: translateY(-2px); }
.dl-card .cmd { font: 400 14px/1 var(--mono); color: var(--c); }
.dl-card b { color: var(--text); font-size: 19px; }
.dl-card span:last-child { font-size: 15px; line-height: 1.5; }

/* sprint tweaks (Nov 2026): follow block on the welcome page */
.fol { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: center; margin-top: 34px; padding: 24px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); }
.fol .cmd { font: 400 14px/1 var(--mono); color: var(--c); }
.fol h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 10px 0 8px; }
.fol p { color: var(--dim); font-size: 15.5px; margin: 0; }
.fol-row { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .fol { grid-template-columns: 1fr; } .fol-row .btn { flex: 1 1 220px; justify-content: center; } }
@media (max-width: 520px) { .res-row .btn { flex: 1 1 100%; justify-content: center; } }
