/* System fallbacks keep the game available without a remote font request. */

:root {
  color-scheme: dark;
  --ink: #0a0b0d;
  --panel: #0f1114;
  --panel-2: #14171b;
  --panel-3: #191c21;
  --paper: #d9d2c4;
  --paper-dim: #918d85;
  --muted: #73777e;
  --line: #282c32;
  --line-soft: #1d2025;
  --red: #b2483d;
  --red-bright: #d35f51;
  --red-deep: #51211e;
  --gold: #af9366;
  --green: #728f7b;
  --topbar: 72px;
  --sidebar: 258px;
  --intel: 318px;
  --mono: "DM Mono", "Courier New", monospace;
  --sans: "Inter", "Segoe UI", sans-serif;
  --display: "Libre Franklin", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--ink); color: var(--paper); font-family: var(--sans); font-size: 16px; }
button, textarea, select, input { color: inherit; font: inherit; }
button { border: 0; cursor: pointer; }
button:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--red); color: #fff; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #34383f; border: 2px solid var(--ink); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.noise { position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .028; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }

/* Landing page */
.landing-shell { min-height: 100vh; overflow: hidden; background: #08090b; }
.landing-header { position: absolute; z-index: 12; top: 0; left: 0; right: 0; height: 84px; padding: 0 clamp(22px, 4.5vw, 76px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid rgba(210,203,191,.14); }
.landing-brand { justify-self: start; display: inline-flex; align-items: center; gap: 14px; }
.landing-brand > span:last-child { display: grid; gap: 4px; }
.landing-brand strong { font-family: var(--display); font-size: 1.12rem; letter-spacing: .22em; }
.landing-brand small { color: #777b81; font-family: var(--mono); font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }
.landing-header nav { display: flex; align-items: center; gap: 34px; }
.landing-header nav button { position: relative; padding: 10px 0; background: transparent; color: #98958f; font-family: var(--mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; }
.landing-header nav button::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 3px; height: 1px; background: var(--red-bright); transition: right .2s ease; }
.landing-header nav button:hover { color: #ded7cc; }
.landing-header nav button:hover::after { right: 0; }
.landing-resume { justify-self: end; min-height: 40px; padding: 0 15px; border: 1px solid rgba(210,203,191,.25); background: rgba(8,9,11,.45); color: #b4afa7; font-family: var(--mono); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; backdrop-filter: blur(10px); }
.landing-resume span { margin-left: 12px; color: var(--red-bright); }
.landing-resume:hover { border-color: var(--red); color: #fff; }

.landing-hero { min-height: max(720px, 100vh); position: relative; display: flex; align-items: center; isolation: isolate; overflow: hidden; }
.landing-hero > img { position: absolute; z-index: -3; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; filter: saturate(.76) contrast(1.06) brightness(.83); transform: scale(1.015); animation: hero-breathe 16s ease-in-out infinite alternate; }
@keyframes hero-breathe { from { transform: scale(1.015); } to { transform: scale(1.045); } }
.landing-shade { position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg, rgba(5,6,8,.98) 0%, rgba(5,6,8,.91) 25%, rgba(5,6,8,.54) 49%, rgba(5,6,8,.08) 76%), linear-gradient(180deg, rgba(5,6,8,.3) 0%, transparent 30%, rgba(5,6,8,.25) 72%, #08090b 100%); }
.hero-frame { position: absolute; z-index: 1; inset: 112px clamp(18px,3vw,52px) 42px; pointer-events: none; border-left: 1px solid rgba(215,207,194,.1); border-right: 1px solid rgba(215,207,194,.1); }
.hero-frame::before, .hero-frame::after { content: ""; position: absolute; width: 16px; height: 16px; border-color: rgba(215,207,194,.32); }
.hero-frame::before { top: 0; left: 0; border-top: 1px solid; border-left: 1px solid; }
.hero-frame::after { right: 0; bottom: 0; border-right: 1px solid; border-bottom: 1px solid; }
.hero-frame span { position: absolute; color: rgba(215,207,194,.36); font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; }
.hero-frame span:first-child { left: 12px; bottom: 12px; }
.hero-frame span:last-child { top: 12px; right: 12px; writing-mode: vertical-rl; }
.landing-copy { width: min(690px, 48vw); margin-left: clamp(42px, 9vw, 168px); padding-top: 56px; position: relative; z-index: 3; }
.landing-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 26px; color: #8f8c86; font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.landing-kicker i { width: 24px; height: 1px; background: var(--red-bright); box-shadow: 0 0 9px rgba(211,95,81,.7); }
.landing-copy h1 { margin: 0; color: #e3ddd3; font-family: var(--display); font-size: clamp(5.4rem, 10.2vw, 10.4rem); font-weight: 600; line-height: .86; letter-spacing: .13em; text-indent: -.03em; text-shadow: 0 10px 40px rgba(0,0,0,.48); }
.landing-copy h1 span { position: relative; color: #d7cfc2; }
.landing-copy h1 span::after { content: ""; position: absolute; left: 47%; top: -12%; width: 1px; height: 125%; background: var(--red); transform: rotate(6deg); opacity: .82; }
.landing-motto { margin: 24px 0 22px; color: #b5b0a8; font-family: var(--mono); font-size: .78rem; letter-spacing: .32em; text-transform: uppercase; }
.landing-intro { max-width: 600px; margin: 0; color: #8c8983; font-size: 1rem; line-height: 1.8; }
.landing-actions { display: flex; gap: 12px; margin-top: 34px; }
.landing-primary, .case-open { min-height: 50px; padding: 0 21px; display: inline-flex; align-items: center; justify-content: center; gap: 34px; background: #e0d9cf; color: #111214; font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.landing-primary:hover, .case-open:hover { background: #fff; }
.landing-primary span, .case-open span { color: var(--red); }
.landing-secondary { min-height: 50px; padding: 0 19px; border: 1px solid rgba(224,217,207,.3); background: rgba(10,11,13,.36); color: #c1bbb1; font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; backdrop-filter: blur(10px); }
.landing-secondary:hover { border-color: var(--red); background: rgba(10,11,13,.68); }
.landing-signals { position: absolute; z-index: 3; left: clamp(42px,9vw,168px); bottom: 48px; display: flex; gap: 42px; }
.landing-signals > span { display: grid; gap: 6px; }
.landing-signals small { color: #64686e; font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; }
.landing-signals strong { color: #a4a098; font-family: var(--mono); font-size: .7rem; font-weight: 400; }
.scroll-cue { position: absolute; z-index: 3; right: clamp(42px,5vw,82px); bottom: 44px; display: flex; align-items: center; gap: 14px; padding: 0; background: transparent; color: #777b81; font-family: var(--mono); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.scroll-cue i { width: 42px; height: 1px; background: #676b71; }

.case-archive { padding: 112px clamp(22px,6vw,110px) 128px; background: radial-gradient(circle at 50% 0%, #17191d, transparent 34%), #0a0b0d; scroll-margin-top: 0; }
.archive-heading { max-width: 1320px; margin: 0 auto 42px; display: flex; align-items: end; justify-content: space-between; gap: 48px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
.archive-heading > div > p, .method-copy > p { margin: 0 0 10px; color: var(--red-bright); font-family: var(--mono); font-size: .69rem; letter-spacing: .1em; }
.archive-heading h2, .method-copy h2 { margin: 0; color: #ddd6cb; font-family: var(--display); font-size: clamp(2.1rem, 4vw, 4rem); letter-spacing: -.045em; }
.archive-heading > p { max-width: 440px; margin: 0; color: #73777d; font-size: .94rem; line-height: 1.7; }
.case-catalog { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 1.08fr .96fr .82fr; gap: 16px; }
.case-card { min-width: 0; border: 1px solid #2a2e34; background: #101215; transition: transform .28s ease, border-color .28s ease; }
.case-card:hover { transform: translateY(-6px); border-color: #494d54; }
.case-card.featured { border-color: #55423e; box-shadow: 0 24px 70px rgba(0,0,0,.3); }
.case-visual { height: 234px; position: relative; overflow: hidden; background: #14171b; }
.case-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 34%, rgba(7,8,10,.92) 100%); }
.case-visual img { width: 100%; height: 100%; object-fit: cover; object-position: 65% center; filter: saturate(.64) contrast(1.08) brightness(.68); }
.case-visual > span { position: absolute; z-index: 2; top: 16px; left: 16px; padding: 6px 8px; background: rgba(36,75,64,.88); color: #9acbb9; font-family: var(--mono); font-size: .64rem; letter-spacing: .05em; }
.case-visual > b { position: absolute; z-index: 2; right: 14px; bottom: -15px; color: rgba(226,219,208,.15); font-family: var(--display); font-size: 6.7rem; line-height: 1; letter-spacing: -.08em; }
.case-19 { background: radial-gradient(circle at 67% 42%, rgba(116,69,52,.25), transparent 23%), linear-gradient(132deg, #090b0d 0 50%, #18191b 50% 52%, #0e1114 52%); }
.case-19::before { content: ""; position: absolute; inset: 24px 27% 18px 42%; border: 1px solid #35393f; box-shadow: inset 0 0 60px rgba(0,0,0,.7); }
.case-19 > span { background: rgba(105,36,31,.84); color: #d38a80; }
.case-19 > i { position: absolute; z-index: 2; top: 50%; left: 55%; color: #c8b9a8; font-family: var(--mono); font-size: 2rem; font-style: normal; transform: translate(-50%,-50%) rotate(-4deg); }
.case-sealed { background: repeating-linear-gradient(135deg,#101215 0 18px,#0c0e10 18px 36px); }
.case-sealed > span { background: #25282d; color: #777b81; }
.case-sealed > i { position: absolute; z-index: 2; top: 50%; left: 50%; padding: 10px 15px; border: 1px solid #41454c; color: #6d7177; font-family: var(--mono); font-size: .68rem; font-style: normal; letter-spacing: .15em; transform: translate(-50%,-50%) rotate(-5deg); }
.case-card-body { padding: 24px; }
.case-card-meta { display: flex; justify-content: space-between; color: var(--red-bright); font-family: var(--mono); font-size: .67rem; letter-spacing: .05em; }
.case-card-meta small { color: #60646a; font-size: inherit; }
.case-card-body h3 { margin: 16px 0 11px; color: #dad3c8; font-family: var(--display); font-size: 1.7rem; }
.case-card-body blockquote { min-height: 68px; margin: 0; color: #a19d95; font-family: var(--display); font-size: .95rem; font-style: italic; line-height: 1.55; }
.case-card-body > p { min-height: 78px; margin: 15px 0 20px; color: #6f7379; font-size: .92rem; line-height: 1.65; }
.case-open { width: 100%; min-height: 46px; gap: 0; justify-content: space-between; }
.case-open.is-disabled { background: #17191d; color: #55595f; cursor: not-allowed; }
.sealed-card { opacity: .66; }

.method-section { padding: 115px clamp(22px,6vw,110px); display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(50px,9vw,140px); background: #0d0f11; border-top: 1px solid #202329; border-bottom: 1px solid #202329; scroll-margin-top: 30px; }
.method-copy { max-width: 500px; }
.method-copy h2 { font-size: clamp(2rem,3.6vw,3.8rem); line-height: 1.1; }
.method-section ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #2a2e34; border-left: 1px solid #2a2e34; }
.method-section li { min-height: 182px; padding: 23px; display: grid; align-content: start; gap: 9px; border-right: 1px solid #2a2e34; border-bottom: 1px solid #2a2e34; }
.method-section li span { color: var(--red-bright); font-family: var(--mono); font-size: .68rem; }
.method-section li strong { color: #b7b1a8; font-family: var(--display); font-size: 1.15rem; }
.method-section li p { margin: 0; color: #696d73; font-size: .9rem; line-height: 1.6; }
.landing-footer { min-height: 110px; padding: 25px clamp(22px,5vw,80px); display: grid; grid-template-columns: 1fr auto 1fr; gap: 30px; align-items: center; background: #08090b; }
.landing-brand.compact { display: grid; gap: 5px; }
.landing-footer > p { margin: 0; color: #62666c; font-family: var(--display); font-size: .9rem; font-style: italic; text-align: center; }
.landing-footer > span { justify-self: end; color: #4f5359; font-family: var(--mono); font-size: .65rem; }

.topbar { height: var(--topbar); position: fixed; inset: 0 0 auto 0; z-index: 30; display: grid; grid-template-columns: var(--sidebar) 1fr var(--intel); align-items: stretch; border-bottom: 1px solid var(--line); background: rgba(10,11,13,.97); backdrop-filter: blur(16px); }
.brand { display: flex; align-items: center; gap: 13px; padding: 0 24px; border-right: 1px solid var(--line); }
.brand-mark { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border: 0; padding: 0; transform: none; }
.brand-mark img, .brand-mark svg { width: 100%; height: 100%; display: block; object-fit: contain; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-family: var(--display); font-size: 1.06rem; letter-spacing: .18em; }
.brand-copy small, .system-state small { color: var(--muted); font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
.case-identity { display: flex; align-items: center; gap: 18px; padding: 0 28px; }
.case-identity span { padding: 6px 9px; border: 1px solid var(--red-deep); color: var(--red-bright); font-family: var(--mono); font-size: .67rem; letter-spacing: .07em; }
.case-identity strong { font-size: .78rem; letter-spacing: .16em; }
.system-state { display: flex; align-items: center; gap: 10px; padding: 0 22px; border-left: 1px solid var(--line); }
.system-state > span:not(.live-dot) { display: grid; gap: 2px; }
.system-state strong { font-family: var(--mono); font-size: .68rem; color: #9baa9e; }
.system-state time { margin-left: auto; color: var(--paper-dim); font-family: var(--mono); font-size: .74rem; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(114,143,123,.5); }
.mobile-menu { display: none; }

.terminal-grid { display: grid; grid-template-columns: var(--sidebar) minmax(0,1fr) var(--intel); min-height: 100vh; padding-top: var(--topbar); }
.sidebar { position: fixed; top: var(--topbar); bottom: 0; left: 0; width: var(--sidebar); z-index: 20; display: flex; flex-direction: column; background: #0c0e10; border-right: 1px solid var(--line); }
.case-progress { padding: 24px 23px 22px; border-bottom: 1px solid var(--line-soft); }
.eyebrow-row { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; color: var(--muted); }
.eyebrow-row strong { color: var(--paper-dim); font-weight: 500; }
.progress-track { height: 2px; background: #26292e; margin: 13px 0 10px; }
.progress-track i { display: block; height: 100%; background: var(--red); box-shadow: 0 0 12px rgba(178,72,61,.35); }
.case-progress > small { color: #60646b; font-family: var(--mono); font-size: .63rem; }
.primary-nav { padding: 18px 10px; overflow-y: auto; }
.primary-nav section + section { margin-top: 25px; }
.primary-nav h2 { margin: 0 12px 7px; color: #565a61; font-family: var(--mono); font-size: .61rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.phase-menu-state { color:#666b73; font-size:.52rem; letter-spacing:.06em; white-space:nowrap; }
.phase-menu-state.is-current { color:var(--gold); }
.phase-menu-state.is-complete { color:var(--green); }
.nav-item { width: 100%; min-height: 43px; padding: 0 11px; display: grid; grid-template-columns: 27px 1fr auto; gap: 7px; align-items: center; background: transparent; border-left: 2px solid transparent; color: #8d9096; text-align: left; font-size: .79rem; transition: color .18s, background .18s, border-color .18s; }
.nav-item:hover { color: var(--paper); background: #131519; }
.nav-item.is-active { color: var(--paper); border-color: var(--red); background: linear-gradient(90deg, rgba(178,72,61,.14), rgba(178,72,61,0)); }
.nav-item.is-locked { color: #494c51; }
.nav-item.is-locked:disabled { cursor:not-allowed; opacity:.58; }
.nav-code { font-family: var(--mono); font-size: .58rem; color: #555960; }
.nav-item.is-active .nav-code { color: var(--red-bright); }
.nav-item b { min-width: 20px; height: 20px; border: 1px solid #32363d; display: grid; place-items: center; color: var(--paper-dim); font-family: var(--mono); font-size: .58rem; font-weight: 400; }
.lock-mark { color: #3e4146; }
.operator { margin-top: auto; min-height: 70px; padding: 14px 16px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; }
.operator-avatar { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #3b3f45; background: #17191d; color: var(--paper-dim); font-family: var(--mono); font-size: .66rem; }
.operator span:nth-child(2) { display: grid; gap: 3px; }
.operator small { color: #5c6066; font-family: var(--mono); font-size: .55rem; }
.operator strong { font-size: .67rem; letter-spacing: .08em; }
.operator button { background: transparent; color: #666a70; }

.workspace { grid-column: 2; min-height: calc(100vh - var(--topbar)); padding: clamp(28px, 4vw, 58px); overflow: hidden; outline: 0; background: radial-gradient(circle at 40% 0%, rgba(34,36,41,.3), transparent 35%), var(--ink); }
.intel-panel { grid-column: 3; position: fixed; top: var(--topbar); bottom: 0; right: 0; width: var(--intel); background: #0d0f11; border-left: 1px solid var(--line); overflow-y: auto; }
.intel-section { padding: 24px 20px; border-bottom: 1px solid var(--line-soft); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 17px; color: #686c73; font-family: var(--mono); font-size: .62rem; letter-spacing: .09em; }
.panel-heading button { background: transparent; color: var(--paper-dim); font-family: var(--mono); font-size: .61rem; }
.panel-heading small { font-size: .59rem; }
.activity-list { display: grid; gap: 2px; }
.activity-item { width: 100%; padding: 10px 0; background: transparent; display: grid; grid-template-columns: 39px 1fr 8px; gap: 10px; align-items: start; color: inherit; text-align: left; }
.activity-item time { padding-top: 2px; color: #5e6268; font-family: var(--mono); font-size: .61rem; }
.activity-item > span { display: grid; gap: 5px; }
.activity-item strong { color: #aaa69e; font-size: .72rem; line-height: 1.4; font-weight: 500; }
.activity-item:hover strong { color: var(--paper); }
.activity-item small { color: #555960; font-size: .64rem; }
.activity-status { width: 6px; height: 6px; border-radius: 50%; margin-top: 5px; background: #474b51; }
.activity-status.new { background: var(--red-bright); box-shadow: 0 0 9px rgba(211,95,81,.5); }
.activity-status.pending { background: var(--gold); }
.activity-status.done { background: var(--green); }
.empty-mini { border: 1px dashed #2b2f34; padding: 15px; color: #5d6167; font-size: .7rem; line-height: 1.6; }
.pinned-card { width: 100%; display: grid; gap: 5px; padding: 11px; margin-bottom: 6px; background: #131519; border-left: 2px solid var(--red-deep); text-align: left; }
.pinned-card span { color: var(--red-bright); font-family: var(--mono); font-size: .57rem; }
.pinned-card strong { font-size: .7rem; font-weight: 500; color: #aaa69f; }
.notes-section textarea { width: 100%; min-height: 128px; resize: vertical; border: 1px solid #262a30; background: #101216; padding: 13px; color: #b6b0a6; font-family: var(--mono); font-size: .69rem; line-height: 1.65; }
.notes-section textarea::placeholder { color: #484c52; }
.notes-footer { display: flex; justify-content: space-between; padding-top: 9px; color: #555960; font-family: var(--mono); font-size: .56rem; }
.notes-footer i { display: inline-block; width: 5px; height: 5px; margin-right: 4px; border-radius: 50%; background: var(--green); }

.view { max-width: 1160px; margin: 0 auto; animation: view-in .35s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.view-overview { max-width: 1080px; display: grid; grid-template-columns: minmax(360px,.92fr) minmax(360px,1.08fr); gap: clamp(38px,5vw,78px); align-items: center; min-height: calc(100vh - var(--topbar) - 116px); }
.case-hero { position: relative; }
.case-stamp { display: flex; align-items: center; gap: 9px; margin-bottom: 32px; font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; }
.case-stamp span { padding: 6px 8px; border: 1px solid #34383d; color: var(--paper-dim); }
.case-stamp b { padding: 6px 8px; background: var(--red-deep); color: #d58c82; font-weight: 500; }
.hero-code { color: var(--red-bright); font-family: var(--mono); font-size: .65rem; letter-spacing: .12em; }
.case-hero h1 { margin: 12px 0 22px; color: #e2dbcf; font-family: var(--display); font-size: clamp(4.2rem, 8vw, 7.4rem); line-height: .78; letter-spacing: -.07em; font-weight: 700; }
.case-hero blockquote { max-width: 530px; margin: 0; padding-left: 19px; border-left: 2px solid var(--red); color: #aaa69f; font-family: var(--display); font-size: 1.06rem; font-style: italic; line-height: 1.65; }
.hero-actions { display: flex; gap: 10px; margin: 31px 0 38px; }
.btn { min-height: 43px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 1px solid #35383e; background: transparent; color: #aaa69f; font-size: .72rem; font-weight: 600; letter-spacing: .03em; transition: border .2s, color .2s, background .2s; }
.btn:hover { color: #fff; border-color: #555961; }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-bright); border-color: var(--red-bright); }
.btn-quiet { background: #121417; }
.btn.full { width: 100%; }
.case-metadata { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; margin: 0; padding-top: 23px; border-top: 1px solid var(--line); }
.case-metadata div { display: grid; gap: 5px; }
.case-metadata dt { color: #565a60; font-family: var(--mono); font-size: .57rem; letter-spacing: .1em; }
.case-metadata dd { margin: 0; color: #97938c; font-size: .71rem; }
.brief-panel { padding: clamp(23px,3vw,38px); border: 1px solid var(--line); background: linear-gradient(145deg, #14161a, #0f1114 70%); box-shadow: 0 25px 80px rgba(0,0,0,.32); }
.brief-title { display: flex; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .6rem; color: var(--paper-dim); }
.brief-title small { color: #52565c; font-size: inherit; }
.brief-panel > p { margin: 23px 0 25px; color: #9f9a92; font-size: .81rem; line-height: 1.8; }
.objective-box { display: grid; grid-template-columns: 43px 1fr 38px; align-items: center; gap: 13px; padding: 16px; background: #1a1718; border: 1px solid #402320; }
.objective-number { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--red-deep); color: var(--red-bright); font-family: var(--mono); font-size: .65rem; }
.objective-box div { display: grid; gap: 5px; }
.objective-box small { color: var(--red-bright); font-family: var(--mono); font-size: .56rem; }
.objective-box strong { color: #c2bbb0; font-size: .73rem; line-height: 1.45; font-weight: 500; }
.objective-box button { height: 34px; background: transparent; color: var(--red-bright); font-size: 1rem; }
.timeline-strip { margin-top: 28px; display: grid; grid-template-columns: repeat(4,1fr); position: relative; }
.timeline-strip::before { content: ""; position: absolute; left: 10px; right: 10px; top: 4px; height: 1px; background: #2b2e33; }
.timeline-strip div { position: relative; display: grid; gap: 8px; }
.timeline-strip i { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #34373c; box-shadow: 0 0 0 4px #111316; }
.timeline-strip span { color: #686c72; font-size: .63rem; }
.timeline-strip small { color: #44484e; font-family: var(--mono); font-size: .52rem; }
.timeline-strip .is-current i { background: var(--red-bright); }
.timeline-strip .is-current span { color: #b7b1a8; }
.timeline-strip .is-current small { color: var(--red-bright); }

.page-head { min-height: 126px; margin-bottom: 34px; display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; border-bottom: 1px solid var(--line); padding-bottom: 25px; }
.page-head > div { position: relative; padding-left: 52px; max-width: 760px; }
.section-index { position: absolute; left: 0; top: 5px; color: #4a4e54; font-family: var(--mono); font-size: .68rem; }
.page-head .kicker, .kicker { margin: 0 0 9px; color: var(--red-bright); font-family: var(--mono); font-size: .62rem; letter-spacing: .09em; }
.page-head h1 { margin: 0; color: #d8d1c5; font-family: var(--display); font-size: clamp(1.8rem,3vw,2.7rem); letter-spacing: -.035em; }
.page-head > div > p:last-child { max-width: 700px; margin: 10px 0 0; color: #73777d; font-size: .74rem; line-height: 1.6; }
.filter-button { min-height: 38px; padding: 0 13px; display: flex; align-items: center; gap: 10px; border: 1px solid #31353b; background: #111316; color: #8c8983; font-family: var(--mono); font-size: .62rem; }
.filter-button span { color: var(--red-bright); }

.scene-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 25px; }
.scene-ledger { min-height: 530px; padding: 25px; border: 1px solid #30343a; background: linear-gradient(rgba(17,19,22,.96),rgba(17,19,22,.96)), repeating-linear-gradient(0deg,transparent,transparent 39px,#23262b 40px); display: flex; flex-direction: column; }
.ledger-top, .subheading { display: flex; align-items: center; justify-content: space-between; color: #656970; font-family: var(--mono); font-size: .59rem; letter-spacing: .08em; }
.ledger-top small, .subheading small { color: #4d5157; font-size: inherit; }
.location-block { margin-top: 60px; padding: 28px; border: 1px solid #2b2f35; background: rgba(11,12,14,.68); }
.location-block p { color: var(--red-bright); font-family: var(--mono); font-size: .57rem; }
.location-block h2 { margin: 8px 0 24px; font-family: var(--display); font-size: 2rem; }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.location-grid span { padding: 10px; border: 1px solid #292d32; color: #696d73; font-family: var(--mono); font-size: .58rem; }
.scene-note { margin-top: auto; border-left: 2px solid var(--red-deep); padding: 0 0 0 15px; }
.scene-note span { color: #5c6066; font-family: var(--mono); font-size: .55rem; }
.scene-note p { margin: 8px 0 0; color: #88857f; font-size: .73rem; line-height: 1.65; }
.scale-row { display: flex; align-items: center; gap: 12px; margin-top: 24px; color: #4f5359; font-family: var(--mono); font-size: .53rem; }
.scale-row i { flex: 1; height: 1px; background: repeating-linear-gradient(90deg,#494d53 0 12px,transparent 12px 18px); }
.inspection-list { display: grid; align-content: start; gap: 10px; }
.inspection-list .subheading { margin-bottom: 4px; }
.inspection-card { min-height: 142px; padding: 17px; display: grid; grid-template-columns: 34px 1fr 22px; gap: 12px; background: #111316; border: 1px solid #292d32; color: inherit; text-align: left; transition: transform .2s, border-color .2s, background .2s; }
.inspection-card:hover { transform: translateX(-3px); border-color: #4a3432; background: #151619; }
.inspect-no { color: var(--red-bright); font-family: var(--mono); font-size: .61rem; }
.inspection-card div { display: grid; align-content: start; gap: 6px; }
.inspection-card small { color: #60646a; font-family: var(--mono); font-size: .55rem; text-transform: uppercase; }
.inspection-card strong { color: #bbb5ab; font-size: .8rem; font-weight: 500; }
.inspection-card p { margin: 3px 0 0; color: #686c72; font-size: .68rem; line-height: 1.55; }
.inspect-arrow { color: #565a60; }

.evidence-workbench { display: grid; grid-template-columns: minmax(0,1fr) 350px; gap: 24px; }
.evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.evidence-card { min-height: 204px; padding: 19px; border: 1px solid #292d32; background: #111316; color: inherit; text-align: left; display: flex; flex-direction: column; transition: border .2s, background .2s, transform .2s; }
.evidence-card:hover, .evidence-card.is-selected { border-color: #5b3733; background: #151619; transform: translateY(-2px); }
.evidence-card.is-selected { box-shadow: inset 2px 0 var(--red); }
.evidence-card-top, .evidence-card-bottom { display: flex; justify-content: space-between; color: #60646a; font-family: var(--mono); font-size: .56rem; }
.evidence-card-top span { color: var(--red-bright); }
.evidence-card > p { margin: 24px 0 6px; color: #5f6369; font-family: var(--mono); font-size: .56rem; text-transform: uppercase; }
.evidence-card h2 { margin: 0 0 12px; color: #b9b3aa; font-size: .87rem; font-weight: 500; }
.status-chip { align-self: flex-start; padding: 5px 7px; border: 1px solid #34383e; color: #807d77; font-family: var(--mono); font-size: .53rem; }
.evidence-card-bottom { margin-top: auto; padding-top: 15px; border-top: 1px solid #23262b; }
.evidence-card-bottom b { color: #837f78; font-weight: 400; }
.detail-drawer { min-height: 545px; position: sticky; top: calc(var(--topbar) + 20px); padding: 25px; border: 1px solid #3a3332; background: linear-gradient(145deg,#181719,#111316 65%); }
.drawer-rule { position: absolute; left: 0; top: 0; width: 60px; height: 3px; background: var(--red); }
.drawer-meta { display: flex; justify-content: space-between; margin-bottom: 42px; color: #656970; font-family: var(--mono); font-size: .59rem; }
.drawer-meta span { color: var(--red-bright); }
.detail-drawer h2 { margin: 7px 0 16px; font-family: var(--display); font-size: 1.55rem; }
.drawer-summary { color: #88847e; font-size: .76rem; line-height: 1.7; }
.detail-drawer dl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0; padding: 20px 0; border-top: 1px solid #2a2d32; border-bottom: 1px solid #2a2d32; }
.detail-drawer dl div { display: grid; gap: 6px; }
.detail-drawer dt { color: #55595f; font-family: var(--mono); font-size: .53rem; }
.detail-drawer dd { margin: 0; color: #9b978f; font-size: .68rem; }
.observation span { color: var(--red-bright); font-family: var(--mono); font-size: .55rem; }
.observation p { color: #777b81; font-size: .7rem; line-height: 1.65; }
.drawer-actions { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }

.people-layout { display: grid; grid-template-columns: minmax(300px,.8fr) minmax(380px,1.2fr); gap: 24px; }
.people-list { display: grid; align-content: start; gap: 8px; }
.person-row { min-height: 92px; padding: 14px; display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; border: 1px solid #292d32; background: #111316; color: inherit; text-align: left; }
.person-row:hover, .person-row.is-selected { border-color: #4e3431; background: #151619; }
.person-row.is-selected { box-shadow: inset 2px 0 var(--red); }
.person-avatar { width: 46px; height: 54px; display: grid; place-items: center; background: #1c1f23; border: 1px solid #363a40; color: #8f8b84; font-family: var(--mono); font-size: .67rem; }
.person-row > span:nth-child(2) { display: grid; gap: 5px; }
.person-row small { color: #5b5f65; font-family: var(--mono); font-size: .52rem; }
.person-row strong { color: #aaa59d; font-size: .79rem; font-weight: 500; }
.person-row em { color: var(--red-bright); font-size: .58rem; font-style: normal; }
.person-row b { color: #565a60; font-weight: 400; }
.person-file { min-height: 470px; padding: 30px; border: 1px solid #302f32; background: #121417; }
.file-tab { color: var(--red-bright); font-family: var(--mono); font-size: .57rem; letter-spacing: .09em; }
.person-header { display: flex; gap: 20px; align-items: center; margin: 45px 0 35px; }
.person-avatar.large { width: 76px; height: 90px; font-size: .82rem; background: #1a1c20; }
.person-header p { margin: 0 0 5px; color: #686c72; font-family: var(--mono); font-size: .59rem; }
.person-header h2 { margin: 0 0 7px; font-family: var(--display); font-size: 1.7rem; }
.person-header small { color: #696d73; font-size: .68rem; }
.person-file blockquote { margin: 0; padding: 19px; border-left: 2px solid var(--red); background: #171719; color: #a29d94; font-family: var(--display); font-size: .85rem; font-style: italic; line-height: 1.65; }
.person-facts { display: grid; grid-template-columns: 1fr 1fr; margin-top: 24px; border-top: 1px solid #292d32; border-bottom: 1px solid #292d32; }
.person-facts div { padding: 17px 0; display: grid; gap: 6px; }
.person-facts div + div { padding-left: 18px; border-left: 1px solid #292d32; }
.person-facts span { color: #54585e; font-family: var(--mono); font-size: .52rem; }
.person-facts strong { color: #85817b; font-size: .68rem; font-weight: 500; }

.records-panel { border: 1px solid #292d32; overflow-x: auto; }
.records-head, .record-row { min-width: 780px; display: grid; grid-template-columns: 80px 1fr 1.1fr 2fr 90px; gap: 12px; align-items: center; }
.records-head { padding: 12px 17px; background: #15171a; color: #5c6066; font-family: var(--mono); font-size: .55rem; }
.record-row { width: 100%; min-height: 63px; padding: 10px 17px; border-top: 1px solid #24272c; background: #101215; color: #85817b; text-align: left; font-size: .67rem; }
.record-row:hover { background: #15171a; }
.record-row time { color: var(--red-bright); font-family: var(--mono); }
.record-row strong { color: #aaa59d; font-weight: 500; }
.record-row em { color: #777b81; font-style: normal; font-family: var(--mono); font-size: .57rem; }
.analysis-prompt { margin-top: 20px; padding: 20px; display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; align-items: center; border-left: 2px solid var(--red-deep); background: #121417; }
.analysis-prompt > span { color: var(--red-bright); font-family: var(--mono); font-size: .56rem; }
.analysis-prompt p { margin: 0; color: #777b81; font-size: .7rem; line-height: 1.6; }
.analysis-prompt button { background: transparent; color: #9e9990; font-size: .65rem; }

.interview-room { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
.transcript { padding: 25px; border: 1px solid #292d32; background: #101215; }
.transcript-head { display: flex; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid #282b31; color: var(--red-bright); font-family: var(--mono); font-size: .56rem; }
.transcript-head small { color: #5e6268; font-size: inherit; }
.speech { display: grid; grid-template-columns: 68px 1fr; gap: 15px; padding: 19px 0; border-bottom: 1px solid #202328; }
.speech time { color: #4f5359; font-family: var(--mono); font-size: .56rem; }
.speech p { margin: 0; color: #949088; font-size: .77rem; line-height: 1.7; }
.speech.subject { padding-left: 25px; }
.speech.subject p { color: #b0aaa0; }
.transcript-end { margin-top: 25px; color: #50545a; text-align: center; font-family: var(--mono); font-size: .54rem; letter-spacing: .1em; }
.question-stack { display: grid; align-content: start; gap: 10px; }
.question-stack .subheading { margin-bottom: 4px; }
.question-card { min-height: 130px; padding: 18px; display: grid; gap: 7px; border: 1px solid #292d32; background: #111316; color: inherit; text-align: left; }
.question-card.available { border-color: #49302d; }
.question-card > span { color: var(--red-bright); font-family: var(--mono); font-size: .53rem; }
.question-card strong { color: #aea89f; font-size: .79rem; font-weight: 500; }
.question-card p { margin: 0; color: #666a70; font-size: .67rem; line-height: 1.55; }
.question-card b { color: #908c85; font-size: .64rem; font-weight: 400; }
.question-card.locked { opacity: .48; cursor: not-allowed; }

.request-list { display: grid; gap: 10px; }
.request-card { min-height: 100px; padding: 19px; display: grid; grid-template-columns: 78px 1fr 130px 30px; gap: 18px; align-items: center; border: 1px solid #292d32; background: #111316; }
.request-id { display: grid; gap: 10px; color: var(--red-bright); font-family: var(--mono); font-size: .59rem; }
.request-id i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.request-id i.pulse { background: var(--gold); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(175,147,102,0); } 0%,100% { box-shadow: 0 0 0 0 rgba(175,147,102,.25); } }
.request-card > div:nth-child(2) small { color: #5e6268; font-family: var(--mono); font-size: .53rem; }
.request-card h2 { margin: 7px 0; color: #aaa59d; font-size: .81rem; font-weight: 500; }
.request-card p { margin: 0; color: #5f6369; font-size: .62rem; }
.request-state { display: grid; gap: 6px; text-align: right; }
.request-state strong { color: #a49f96; font-size: .68rem; font-weight: 500; }
.request-state small { color: #595d63; font-family: var(--mono); font-size: .53rem; }
.request-card > button { background: transparent; color: #666a70; }
.request-guide { max-width: 590px; margin: 45px auto 0; text-align: center; }
.request-guide span { color: var(--red-bright); font-family: var(--mono); font-size: .56rem; }
.request-guide h2 { margin: 10px 0; font-family: var(--display); font-size: 1.35rem; }
.request-guide p { color: #686c72; font-size: .72rem; line-height: 1.7; }

.board-canvas { height: 580px; position: relative; overflow: hidden; border: 1px solid #292d32; background: #0d0f11; }
.board-grid { position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(#24272c 1px,transparent 1px),linear-gradient(90deg,#24272c 1px,transparent 1px); background-size: 32px 32px; mask-image: radial-gradient(circle at center,#000,transparent 82%); }
.board-node { position: absolute; z-index: 2; width: 180px; min-height: 96px; padding: 14px; display: grid; align-content: center; gap: 7px; border: 1px solid #34383e; background: #15171a; box-shadow: 0 12px 30px rgba(0,0,0,.28); }
.board-node small { color: var(--red-bright); font-family: var(--mono); font-size: .51rem; }
.board-node strong { color: #aaa59d; font-size: .72rem; font-weight: 500; }
.board-node span { color: #5f6369; font-size: .6rem; }
.person-node { left: 10%; top: 39%; border-color: #64413c; }
.evidence-node.one { left: 42%; top: 15%; }
.evidence-node.two { left: 44%; top: 62%; }
.call-node { right: 8%; top: 38%; }
.board-line { position: absolute; z-index: 1; height: 1px; transform-origin: left center; background: #5b423e; }
.line-a { left: 26%; top: 46%; width: 23%; transform: rotate(-22deg); }
.line-b { left: 26%; top: 52%; width: 24%; transform: rotate(25deg); }
.line-c { left: 58%; top: 69%; width: 27%; transform: rotate(-31deg); background: repeating-linear-gradient(90deg,#3f4247 0 6px,transparent 6px 11px); }
.board-add { position: absolute; left: 18px; bottom: 18px; padding: 10px 13px; border: 1px dashed #373b41; background: #111316; color: #777b81; font-family: var(--mono); font-size: .58rem; }
.board-legend { position: absolute; right: 20px; bottom: 20px; display: flex; gap: 15px; color: #55595f; font-family: var(--mono); font-size: .51rem; }
.board-legend span { display: flex; align-items: center; gap: 6px; }
.board-legend i { width: 18px; height: 1px; background: #5b423e; }
.board-legend span:last-child i { background: repeating-linear-gradient(90deg,#4a4e54 0 4px,transparent 4px 7px); }

.locked-report { max-width: 650px; margin: 70px auto; text-align: center; }
.report-seal { width: 72px; height: 72px; margin: 0 auto 25px; display: grid; place-items: center; border: 1px solid #4b302d; color: var(--red-bright); font-family: var(--mono); }
.locked-report h2 { font-family: var(--display); font-size: 1.6rem; }
.locked-report > p { color: #6f7379; font-size: .75rem; line-height: 1.75; }
.locked-report ul { max-width: 420px; margin: 28px auto; padding: 0; list-style: none; text-align: left; border-top: 1px solid #292d32; }
.locked-report li { padding: 13px 8px; border-bottom: 1px solid #292d32; color: #6a6e74; font-size: .69rem; }
.locked-report li::before { content: "○"; display: inline-block; width: 25px; color: #55595f; }
.locked-report li.done { color: #96928a; }
.locked-report li.done::before { content: "●"; color: var(--green); }

.toast-region { position: fixed; z-index: 200; right: 24px; bottom: 24px; display: grid; gap: 10px; pointer-events: none; }
.toast { width: min(360px,calc(100vw - 32px)); padding: 15px; display: grid; grid-template-columns: 3px 1fr; gap: 13px; border: 1px solid #35383e; background: #15171a; box-shadow: 0 20px 50px rgba(0,0,0,.5); opacity: 0; transform: translateY(8px); transition: .25s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast > span { background: var(--red); }
.toast div { display: grid; gap: 5px; }
.toast strong { font-size: .72rem; }
.toast p { margin: 0; color: #74787e; font-size: .65rem; line-height: 1.5; }

@media (max-width: 1260px) {
  :root { --intel: 280px; --sidebar: 230px; }
  .workspace { padding: 32px; }
  .view-overview { grid-template-columns: 1fr; align-items: start; padding-bottom: 40px; }
  .case-hero h1 { font-size: 5.4rem; }
  .scene-layout, .evidence-workbench, .people-layout, .interview-room { grid-template-columns: 1fr; }
  .detail-drawer { position: static; min-height: auto; }
}

@media (max-width: 980px) {
  .landing-header { grid-template-columns: 1fr auto; }
  .landing-header nav { display: none; }
  .landing-copy { width: min(680px, 72vw); margin-left: clamp(38px,8vw,86px); }
  .landing-shade { background: linear-gradient(90deg,rgba(5,6,8,.97),rgba(5,6,8,.79) 48%,rgba(5,6,8,.18)),linear-gradient(180deg,rgba(5,6,8,.35),transparent 30%,#08090b 100%); }
  .landing-signals { left: clamp(38px,8vw,86px); }
  .case-catalog { grid-template-columns: 1fr 1fr; }
  .sealed-card { grid-column: 1 / -1; }
  .sealed-card .case-visual { height: 180px; }
  .method-section { grid-template-columns: 1fr; }

  :root { --sidebar: 248px; }
  .topbar { grid-template-columns: 1fr auto; }
  .brand { border-right: 0; padding-left: 74px; }
  .case-identity { display: none; }
  .system-state { min-width: 220px; }
  .mobile-menu { display: block; position: absolute; left: 15px; top: 20px; height: 32px; padding: 0 10px; border: 1px solid #35383e; background: #111316; color: #8c8983; font-family: var(--mono); font-size: .58rem; z-index: 2; }
  .terminal-grid { grid-template-columns: minmax(0,1fr) var(--intel); }
  .workspace { grid-column: 1; }
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: 20px 0 60px rgba(0,0,0,.45); }
  .sidebar.is-open { transform: translateX(0); }
  .nav-scrim { position: fixed; z-index: 15; inset: var(--topbar) 0 0; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); }
}

@media (max-width: 720px) {
  .landing-header { height: 68px; padding: 0 16px; background: rgba(7,8,10,.58); backdrop-filter: blur(10px); }
  .landing-brand { gap: 9px; }
  .landing-brand .brand-mark { width: 28px; height: 28px; }
  .landing-brand strong { font-size: .92rem; }
  .landing-brand small { display: none; }
  .landing-resume { min-height: 36px; padding: 0 11px; font-size: .62rem; }
  .landing-resume span { margin-left: 6px; }
  .landing-hero { min-height: 760px; align-items: flex-start; }
  .landing-hero > img { object-position: 64% center; }
  .landing-shade { background: linear-gradient(90deg,rgba(5,6,8,.94),rgba(5,6,8,.57) 65%,rgba(5,6,8,.2)),linear-gradient(180deg,rgba(5,6,8,.4),rgba(5,6,8,.32) 34%,#08090b 89%); }
  .hero-frame { inset: 88px 12px 24px; }
  .landing-copy { width: auto; margin: 0; padding: 160px 25px 150px; }
  .landing-kicker { font-size: .65rem; margin-bottom: 22px; }
  .landing-copy h1 { font-size: clamp(3.8rem,21vw,6.6rem); letter-spacing: .06em; }
  .landing-motto { margin: 20px 0 17px; font-size: .67rem; line-height: 1.6; letter-spacing: .2em; }
  .landing-intro { max-width: 500px; font-size: .94rem; line-height: 1.7; }
  .landing-actions { align-items: stretch; flex-direction: column; }
  .landing-primary, .landing-secondary { width: 100%; }
  .landing-signals { left: 25px; right: 25px; bottom: 54px; gap: 24px; }
  .landing-signals > span:last-child { display: none; }
  .scroll-cue { display: none; }
  .case-archive { padding: 78px 16px 84px; }
  .archive-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .archive-heading > p { font-size: .9rem; }
  .case-catalog { grid-template-columns: 1fr; }
  .sealed-card { grid-column: auto; }
  .case-card-body blockquote, .case-card-body > p { min-height: 0; }
  .method-section { padding: 80px 16px; gap: 38px; }
  .method-section ol { grid-template-columns: 1fr; }
  .method-section li { min-height: 142px; }
  .landing-footer { grid-template-columns: 1fr auto; }
  .landing-footer > p { display: none; }

  :root { --topbar: 62px; }
  .topbar { height: var(--topbar); }
  .brand { padding-left: 68px; }
  .brand-mark { width: 29px; height: 29px; }
  .brand-copy small { display: none; }
  .mobile-menu { top: 15px; }
  .system-state { min-width: 0; border-left: 0; padding-right: 14px; }
  .system-state > span:not(.live-dot), .system-state time { display: none; }
  .terminal-grid { display: block; }
  .workspace { padding: 23px 16px 98px; }
  .intel-panel { position: static; width: auto; border: 0; border-top: 1px solid var(--line); }
  .intel-section:not(.notes-section) { display: none; }
  .view-overview { display: block; min-height: auto; }
  .brief-panel { margin-top: 36px; }
  .case-hero h1 { font-size: clamp(4rem,22vw,6rem); }
  .case-hero blockquote { font-size: .95rem; }
  .case-metadata { grid-template-columns: 1fr; }
  .page-head { min-height: 0; align-items: flex-start; flex-direction: column; margin-bottom: 24px; }
  .page-head > div { padding-left: 36px; }
  .evidence-grid { grid-template-columns: 1fr; }
  .scene-ledger { min-height: 440px; }
  .location-block { margin-top: 32px; padding: 18px; }
  .location-grid { grid-template-columns: 1fr; }
  .people-layout { grid-template-columns: 1fr; }
  .person-file { padding: 22px; }
  .records-panel { margin-right: -16px; }
  .analysis-prompt { grid-template-columns: 1fr; }
  .request-card { grid-template-columns: 55px 1fr 20px; }
  .request-state { grid-column: 2; text-align: left; }
  .request-card > button { grid-column: 3; grid-row: 1 / span 2; }
  .board-canvas { height: 610px; overflow: auto; }
  .board-node { width: 150px; }
  .person-node { left: 5%; top: 35%; }
  .evidence-node.one { left: 48%; top: 10%; }
  .evidence-node.two { left: 45%; top: 58%; }
  .call-node { right: 2%; top: 37%; }
  .board-line { display: none; }
  .board-legend { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
