:root {
    color-scheme: dark;
    --ink: #101820;
    --night: #111c27;
    --surface: #192733;
    --surface-raised: #20303c;
    --rule: #30404a;
    --paper: #f4ecde;
    --muted: #aebbc4;
    --brass: #e7ba84;
    --brass-light: #f4cfa1;
    --danger: #ffb5a4;
    --success: #b3dfc0;
    --display: Georgia, "Times New Roman", serif;
    --body: "Segoe UI", system-ui, sans-serif;
    --utility: ui-monospace, "Cascadia Mono", monospace;
    --gutter: max(clamp(1rem, 4vw, 3.75rem), env(safe-area-inset-left), env(safe-area-inset-right));
    --shell: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 280px; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--paper);
    background: var(--ink);
    font: 16px/1.6 var(--body);
}
button, input, select, textarea { font: inherit; }
img { display: block; max-inline-size: 100%; }
a { color: var(--brass); text-underline-offset: .2em; }
a:hover { color: var(--brass-light); }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brass-light); outline-offset: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin-block: 0; }
.site-main { flex: 1; min-width: 0; }
.site-main:focus { outline: none; }
.shell { width: min(var(--shell), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.skip-link {
    position: fixed;
    z-index: 20;
    inset: .75rem auto auto .75rem;
    padding: .55rem .9rem;
    color: var(--ink);
    background: var(--brass);
    transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: relative;
    z-index: 4;
    border-bottom: 1px solid #ad96752b;
    background: #101820;
}
.site-header-inner { display: flex; min-height: 73px; align-items: center; justify-content: space-between; gap: 2rem; }
.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .65rem;
    color: var(--paper);
    text-decoration: none;
}
.brand:hover { color: var(--paper); }
.brand-mark { position: relative; display: block; flex: 0 0 39px; height: 41px; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-type { display: grid; line-height: 1; }
.brand-type strong { font: 600 1.5rem/1 var(--display); letter-spacing: .105em; }
.brand-type small { margin-top: .26rem; color: var(--brass); font-size: .52rem; font-weight: 700; letter-spacing: .22em; }
.site-nav, .header-actions { display: flex; align-items: center; }
.site-nav { height: 73px; gap: clamp(1rem, 2.5vw, 2.25rem); }
.site-nav a, .header-account { color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.site-nav a { position: relative; display: grid; height: 100%; align-items: center; }
.site-nav a[aria-current="page"]::after {
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: var(--brass);
    content: "";
}
.site-nav a:hover, .site-nav a[aria-current="page"], .header-account:hover { color: var(--paper); }
.header-actions { gap: 1rem; margin-inline-start: auto; }
.header-actions .header-play { min-height: 38px; min-width: 90px; }
.mobile-menu { display: none; }

.btn {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    gap: .62rem;
    padding: .57rem .99rem;
    border: 1px solid var(--rule);
    border-radius: 5px;
    color: var(--paper);
    background: var(--surface);
    font: 650 .9rem/1.3 var(--body);
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}
.btn:hover { border-color: var(--brass); color: var(--paper); background: var(--surface-raised); }
.btn-primary { border-color: var(--brass); color: #1d1813; background: var(--brass); }
.btn-primary:hover { border-color: var(--brass-light); color: #1d1813; background: var(--brass-light); }
.btn-secondary { border-color: #796d60; background: #17222ac9; }
.btn-danger { border-color: #aa5d53; color: #ffe1da; background: #4d2f2d; }
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; opacity: .55; }
.btn-large { min-height: 48px; padding-inline: 1.15rem; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.play-glyph {
    display: inline-block;
    width: 0;
    height: 0;
    border-block: 5px solid transparent;
    border-inline-start: 8px solid currentColor;
}
.text-link { display: inline-flex; min-height: 36px; width: fit-content; gap: .65rem; align-items: center; font-size: .88rem; font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.eyebrow { display: flex; align-items: center; gap: .52rem; color: var(--brass); font: 650 .7rem/1.4 var(--utility); letter-spacing: .115em; text-transform: uppercase; }
.eyebrow > span { width: 6px; height: 6px; flex: 0 0 6px; border: 1px solid var(--brass); transform: rotate(45deg); }
.eyebrow i { width: 16px; height: 1px; background: #b39b7d94; }

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-bottom: 1px solid #b3997555;
    background: #111b29;
}
.hero-scene, .hero-light { position: absolute; inset: 0; }
.hero-scene { left: 19%; z-index: -2; }
.hero-scene img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 49%; }
.hero-light {
    z-index: -1;
    background:
        linear-gradient(0deg, #111a25f0 0, #111a2500 26%),
        linear-gradient(90deg, #111b29 0, #111b29f7 20%, #111b29ef 32%, #111b2994 48%, #111b2922 65%, #111b2900 88%);
}
.hero-inner { position: relative; display: flex; min-height: clamp(490px, 44vw, 607px); align-items: center; padding-block: 62px 95px; }
.hero-copy { width: min(560px, 54%); }
.hero-kicker { margin-bottom: 1.4rem; }
.hero h1 { margin-left: -.045em; font-size: clamp(3.75rem, 6.65vw, 7rem); line-height: .98; letter-spacing: -.065em; }
.hero h1 em { color: var(--brass); font-weight: 400; }
.hero-deck { max-width: 365px; margin-block: 1.45rem 1.65rem; color: #d5dde1; font-size: 1.03rem; line-height: 1.65; }
.scene-caption {
    position: absolute;
    right: 0;
    bottom: 1.3rem;
    display: inline-grid;
    grid-template-columns: 10px 1fr auto;
    align-items: center;
    gap: .72rem;
    max-width: 100%;
    padding: .48rem .72rem;
    border: 1px solid #c6a37a50;
    border-radius: 4px;
    color: var(--paper);
    background: #111a24e8;
    text-decoration: none;
}
.scene-caption:hover { border-color: var(--brass); color: var(--paper); }
.scene-caption strong, .scene-caption small { display: block; line-height: 1.35; }
.scene-caption strong { font-size: .79rem; font-weight: 650; }
.scene-caption small { margin-top: .13rem; color: var(--muted); font-size: .69rem; }
.scene-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--brass); box-shadow: 0 0 12px #ffd7a174; }
.scene-arrow { color: var(--brass); }

.shelf { padding-block: 2.5rem 1.2rem; }
.shelf-header { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.shelf-header h2, .investigation-strip h2 { margin-top: .3rem; font-size: clamp(2rem, 3.6vw, 3.2rem); letter-spacing: -.05em; }
.shelf-header .text-link { flex-shrink: 0; }
.featured-cases, .case-library { display: grid; gap: 1.1rem; }
.featured-cases { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.case-library { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.case-tile { min-width: 0; overflow: clip; border: 1px solid var(--rule); border-radius: 7px; background: #17232d; transition: border-color 180ms ease; }
.case-tile:hover, .case-tile:focus-within { border-color: var(--brass); }
.case-tile-link { display: block; height: 100%; color: var(--paper); text-decoration: none; }
.case-tile-link:hover { color: var(--paper); }
.case-tile-link:focus-visible { outline-offset: -3px; }
.case-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #101821; border-bottom: 1px solid var(--rule); }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 350ms ease; }
.case-tile:hover img { transform: scale(1.035); }
.case-media-original img { object-fit: cover; }
.poster-title {
    position: absolute;
    inset: auto 0 0;
    display: grid;
    justify-items: start;
    min-height: 64%;
    align-content: end;
    padding: .75rem clamp(.75rem, 3vw, 1.65rem);
    background: linear-gradient(transparent, #0d1421f5);
    pointer-events: none;
}
.poster-title small { color: var(--brass); font: 650 clamp(.46rem, .8vw, .6rem)/1.4 var(--utility); letter-spacing: .12em; }
.poster-title strong { max-width: 18ch; margin-top: .25rem; color: #fae9cd; font: 500 clamp(1.05rem, 2.4vw, 1.9rem)/1.1 var(--display); letter-spacing: -.02em; }
.case-tile-body { position: relative; min-height: 92px; padding: .85rem 2.1rem .95rem 1rem; }
.case-tile-location { color: var(--brass); font: 650 .66rem/1.45 var(--utility); letter-spacing: .075em; text-transform: uppercase; }
.case-tile-location span { margin-inline: .1rem; color: #a28f74; }
.case-tile h3 { margin-top: .32rem; font-size: clamp(1.2rem, 2.05vw, 1.75rem); letter-spacing: -.035em; }
.case-tile-arrow { position: absolute; top: .85rem; right: .8rem; color: var(--brass); font-size: .87rem; }
.case-summary { margin-top: .54rem; color: var(--muted); font-size: .88rem; line-height: 1.55; }
.investigation-strip {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1.3rem;
    margin-block: 2.6rem 4rem;
    padding: 1.5rem 1.65rem;
    border: 1px solid #74624e84;
    background: #192733;
}
.investigation-strip p:not(.eyebrow) { margin-top: .45rem; color: var(--muted); }
.investigation-strip .btn { flex-shrink: 0; }
.install-band { padding-block-start: 2.3rem; }
.install-deck { margin-top: .4rem; color: var(--muted); }
.install-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; }
.install-card {
    position: relative;
    display: grid;
    min-width: 0;
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
    gap: .55rem .65rem;
    padding: .85rem;
    border: 1px solid var(--rule);
    border-radius: 6px;
    color: var(--paper);
    background: #18252f;
    text-decoration: none;
}
.install-card:is(a):hover, .install-card:focus-within { border-color: var(--brass); color: var(--paper); }
.install-mark {
    display: block;
    width: 36px;
    height: 36px;
    object-fit: contain;
}
.install-card-body { display: grid; gap: .24rem; min-width: 0; }
.install-card-body strong, .install-card h3 { font: 650 .94rem/1.35 var(--body); }
.install-card-body > span:not(.install-status) { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.install-status { display: block; color: var(--muted); font-size: .76rem; line-height: 1.35; }
.install-card:is(a) .install-status { color: var(--brass); }
.install-card-arrow { position: absolute; right: .48rem; bottom: .33rem; color: var(--brass); font-size: .7rem; }
.install-card > .text-link, .install-card > .btn { grid-column: 1 / -1; }
.page-shell > section + p:has(> .btn) { margin-top: 1rem; }
.apk-hash { overflow-wrap: anywhere; }
.android-install { border-color: #a88b5d9e; background: linear-gradient(112deg, #243441, #18252f 65%); }
.android-install-header { display: flex; align-items: start; gap: clamp(.75rem, 2.4vw, 1.3rem); }
.android-install-header img { width: clamp(42px, 12vw, 68px); height: auto; flex: none; }
.android-install-header p { color: var(--muted); }
.android-install-header .btn { margin-top: .75rem; }
.android-release { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-top: .9rem; font-size: .85rem; }
.android-install > h3 { margin-top: 1.2rem; }
.android-install-steps { margin: .48rem 0 0; padding-inline-start: 1.35rem; }
.android-install-steps li + li { margin-top: .5rem; }
.android-install-steps li::marker { color: var(--brass); }
.download-options { margin-top: 1.45rem; }
.download-options h2 { margin-bottom: .65rem; }
.wallet-resume { margin-bottom: .9rem; }

.page-shell { padding-block: clamp(2rem, 6vw, 4.6rem) clamp(3rem, 6.5vw, 5.2rem); }
.page-header { max-width: 780px; margin-bottom: 2rem; }
.page-header h1 { margin-top: .52rem; font-size: clamp(2.7rem, 6vw, 5.3rem); letter-spacing: -.055em; overflow-wrap: anywhere; }
.page-copy, .page-header > p:not(.eyebrow) { max-width: 63ch; margin-top: .75rem; color: var(--muted); font-size: clamp(1rem, 1.8vw, 1.15rem); line-height: 1.65; }
.page-header > .btn { margin-top: 1rem; }
.panel {
    min-width: 0;
    padding: clamp(1rem, 2.5vw, 1.55rem);
    border: 1px solid var(--rule);
    border-radius: 7px;
    background: var(--surface);
}
.panel h2 { font-size: clamp(1.25rem, 2.3vw, 1.75rem); letter-spacing: -.025em; }
.panel h3 { font-size: clamp(1.13rem, 1.8vw, 1.45rem); }
.panel h2 + p, .panel h3 + p { margin-top: .6rem; }
.panel > p:not(.eyebrow, .badge, .notice) { color: var(--muted); }
.panel .text-link, .panel > .button-row { margin-top: .8rem; }
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: .95rem; }
.case-back { margin-bottom: 1rem; }
.case-dossier .page-header { margin-bottom: 1.35rem; }
.dossier-body { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 1.35rem; align-items: start; }
.dossier-art { position: relative; overflow: hidden; border: 1px solid var(--rule); border-radius: 7px; }
.dossier-art img { width: 100%; height: auto; min-height: 220px; object-fit: cover; }
.dossier-art .poster-title { justify-items: start; padding: 1.3rem 1.75rem; }
.dossier-art .poster-title strong { font-size: clamp(1.55rem, 4.7vw, 3.25rem); }
.dossier-notes { padding: clamp(1rem, 3vw, 1.75rem); }
.case-facts { margin-block: 1.4rem; }
.case-facts div { display: flex; justify-content: space-between; gap: .6rem; padding-block: .54rem; border-top: 1px solid var(--rule); }
.case-facts div:last-child { border-bottom: 1px solid var(--rule); }
.case-facts dt { color: var(--muted); font-size: .84rem; }
.case-facts dd { margin: 0; color: var(--paper); font-size: .86rem; text-align: end; }
.guide-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .95rem; list-style: none; padding: 0; counter-reset: guide; }
.guide-steps li { position: relative; padding-left: 4.4rem; counter-increment: guide; }
.guide-steps li::before { position: absolute; top: 1.2rem; left: 1.2rem; padding: .22rem .3rem; border-bottom: 1px solid var(--brass); color: var(--brass); content: counter(guide, decimal-leading-zero); font: 600 .9rem/1.2 var(--utility); }
.guide-tip { margin-top: 1.2rem; max-width: 740px; }
.prose-page { max-width: 860px; }
.prose-sections { display: grid; gap: .95rem; }
.prose-sections p { max-width: 72ch; }
.prose-sections .panel > p + p { margin-top: .7rem; }
.publisher-contact { margin-top: .8rem; font-style: normal; line-height: 1.6; }
.policy-link-note { margin-block: .85rem; color: var(--muted); font-size: .9rem; }
.dispatch .panel p { white-space: pre-line; overflow-wrap: anywhere; }

.form-stack, form.stack { display: grid; gap: .85rem; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); gap: .85rem; }
.form-stack label, .form-grid label, label.field { display: grid; gap: .28rem; color: var(--paper); font-size: .88rem; font-weight: 600; }
.form-stack label.check-label { display: flex; align-items: center; }
.form-stack .btn, .form-grid .btn { justify-self: start; }
input:not([type="hidden"], [type="checkbox"], [type="radio"], [type="submit"]), select, textarea {
    width: 100%;
    min-height: 44px;
    padding: .56rem .65rem;
    border: 1px solid #53616a;
    border-radius: 4px;
    color: var(--paper);
    background: #111c26;
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--brass); }
textarea { min-height: 110px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #a3afb8; }
fieldset { min-width: 0; border: 1px solid var(--rule); border-radius: 4px; }
legend { color: var(--paper); }
dialog { max-width: calc(100% - 2rem); border: 1px solid var(--rule); border-radius: 7px; color: var(--paper); background: var(--surface); }
dialog::backdrop { background: #08111bd1; }
.muted, .hint { color: var(--muted); }
.hint { font-size: .85rem; }
.empty-state { padding: 1.1rem; border: 1px dashed var(--rule); border-radius: 4px; color: var(--muted); }
.notice {
    margin-block: .7rem;
    padding: .73rem .85rem;
    border: 1px solid #8d765d;
    border-inline-start-width: 3px;
    border-radius: 3px;
    color: var(--brass-light);
    background: #3d332b;
}
.notice-success { border-color: #5b8971; color: var(--success); background: #1c342e; }
.notice-error { border-color: #a15b50; color: var(--danger); background: #412b2d; }
.badge { display: inline-flex; width: fit-content; align-items: center; padding: .18rem .45rem; border: 1px solid #806f5c; border-radius: 3px; color: var(--brass); background: #352b26; font-size: .76rem; line-height: 1.45; }
.table-wrap { overflow: auto; max-width: 100%; }
.data-table, .panel table { width: 100%; border-collapse: collapse; color: var(--paper); font-size: .9rem; }
.data-table th, .data-table td, .panel table th, .panel table td { padding: .7rem .65rem; border-bottom: 1px solid var(--rule); text-align: start; vertical-align: top; }
.data-table th, .panel table th { color: var(--brass); font-size: .74rem; letter-spacing: .055em; text-transform: uppercase; }
.staff-nav { display: flex; flex-wrap: wrap; gap: .45rem; margin-block: 1rem 1.35rem; border-bottom: 1px solid var(--rule); padding-bottom: .75rem; }
.staff-nav a { display: inline-flex; min-height: 38px; align-items: center; padding: .3rem .65rem; border-radius: 4px; color: var(--muted); font-size: .88rem; font-weight: 650; text-decoration: none; }
.staff-nav a:hover, .staff-nav [aria-current="page"] { color: var(--brass); background: var(--surface); }
.metric-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr)); gap: .7rem; }
.page-shell > section + section, .page-shell > .panel + .panel { margin-top: 1.2rem; }
.page-shell > section:not(.panel) > h2 { margin-bottom: .7rem; color: var(--paper); font-size: clamp(1.5rem, 2.65vw, 2rem); }
.page-shell > .table-wrap, .page-shell > .panel-grid + form { margin-top: 1rem; }
.panel > h2 + form, .panel > h2 + .table-wrap, .panel > h2 + details, .panel > p + form, .panel-grid .panel > .btn { margin-top: .85rem; }
.portal-auth { display: grid; align-items: stretch; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 1.15rem; }
.portal-auth .page-header {
    display: grid;
    min-height: 22rem;
    align-content: end;
    margin: 0;
    padding: clamp(1rem, 4vw, 2.5rem);
    border: 1px solid var(--rule);
    border-radius: 7px;
    background: linear-gradient(0deg, #111923 0%, #111923df 26%, #11192300 83%),
        #192733 url("../index.php?page=media&asset=gallery.jpg") center 43% / cover;
}
.portal-auth h1 { font-size: clamp(2.35rem, 4.7vw, 4.55rem); }
.portal-auth .page-copy { color: #d8dfe1; }
.auth-card { display: grid; align-content: center; gap: 1.2rem; padding: clamp(1rem, 4vw, 2.7rem); }
.auth-card form > .btn { min-width: 118px; }
.auth-card > p { font-size: .9rem; }
.wallet-balance { display: grid; gap: .45rem; border-color: #826b518a; background: linear-gradient(115deg, #21313d, #1b2733 78%); }
.wallet-balance h2 { color: var(--brass-light); font-size: clamp(2.1rem, 5vw, 3.65rem); }
.coin-packs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 155px), 1fr)); }
.record-list { display: grid; gap: .1rem; margin-top: .65rem; padding: 0; list-style: none; }
.record-list > li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .36rem .65rem; padding: .61rem 0; border-bottom: 1px solid var(--rule); font-size: .87rem; }
.record-list a { overflow-wrap: anywhere; }
.record-list .muted { margin-inline-start: auto; }
.report-thread { display: grid; gap: .65rem; margin-bottom: .8rem; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.thread-reply { padding: .75rem .75rem .8rem; border-inline-start: 2px solid #786750; background: #212f3b; }
.thread-reply p { margin-top: .25rem; }
.thread-reply .muted { margin-inline-start: .3rem; font-size: .78rem; }
.panel details { margin-top: .55rem; border: 1px solid var(--rule); border-radius: 5px; background: #141f2a; }
.panel details summary { padding: .6rem .75rem; color: var(--paper); font-weight: 650; cursor: pointer; }
.panel details > p, .panel details > form { margin: 0 .75rem .8rem; }
.panel details summary:hover { color: var(--brass-light); }
.staff-shell .page-header { margin-bottom: .25rem; }
.staff-shell .panel form:not(.staff-search) { max-width: 560px; }
.staff-shell .staff-search { display: flex; flex-wrap: wrap; align-items: end; gap: .5rem; margin-top: .8rem; }
.staff-search label { flex: 1 1 210px; max-width: 440px; }
.staff-record summary .badge { margin-inline-start: .3rem; }
.stats-dashboard { display: grid; gap: 1.05rem; }
.stats-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: start;
    justify-content: space-between;
    gap: .75rem;
}
.stats-heading h2 { font-size: clamp(1.65rem, 3.25vw, 2.45rem); }
.stats-heading p { margin-top: .32rem; color: var(--muted); font-size: .89rem; }
.stats-heading .stats-clock { font: .74rem/1.5 var(--utility); }
.stats-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 125px), 1fr));
    gap: 1px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--rule);
    border-top-color: #806f5c;
    border-radius: 7px;
    background: var(--rule);
}
.stats-metric { min-width: 0; padding: clamp(.75rem, 2vw, 1.23rem); background: var(--surface); }
.stats-metric dt { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.stats-metric dd { display: grid; gap: .4rem; margin: .4rem 0 0; }
.stats-metric strong { color: var(--brass-light); font: 500 clamp(1.75rem, 3vw, 2.65rem)/1.06 var(--display); overflow-wrap: anywhere; }
.stats-metric span { color: var(--muted); font-size: .74rem; }
.stats-period { display: flex; flex-wrap: wrap; gap: .32rem; }
.stats-period .btn { min-height: 38px; padding-inline: .65rem; }
.stats-period [aria-current] { border-color: #806f5c; color: var(--brass-light); background: #352b26; }
.stats-dashboard .empty-state, .stats-dashboard .table-wrap { margin-top: .8rem; }
.stats-dashboard .stats-table :is(th, td):not(:first-child) { text-align: end; }
.stats-table td { font-variant-numeric: tabular-nums; }
.stats-dashboard .stats-table tbody th { color: var(--paper); font-size: .86rem; letter-spacing: normal; text-transform: none; }
.stats-table tbody th small { display: block; margin-top: .18rem; color: var(--muted); font-size: .75rem; font-weight: 400; }
.stats-dashboard .stats-table tbody tr:last-child > * { border-bottom: 0; }
.site-footer { border-top: 1px solid var(--rule); background: #101820; }
.footer-main { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 1.35rem; padding-block: 2.1rem 1.5rem; }
.footer-identity p { margin-top: .52rem; color: var(--muted); font-size: .85rem; }
.footer-identity p a { color: var(--brass); text-underline-offset: .2em; }
.footer-main nav { display: grid; align-content: start; gap: .35rem; }
.footer-main nav h2 { margin-bottom: .15rem; color: var(--paper); font: inherit; font-weight: 700; }
.footer-main nav a, .footer-bottom a { width: fit-content; color: var(--muted); font-size: .85rem; text-decoration: none; }
.footer-main nav a:hover, .footer-bottom a:hover { color: var(--brass-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; padding-block: .75rem 1rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: .82rem; }

@media (max-width: 1060px) {
    .site-header-inner { min-height: 63px; gap: .65rem; }
    .site-nav, .header-account { display: none; }
    .mobile-menu { display: block; }
    .mobile-menu summary {
        display: grid;
        width: 44px;
        height: 44px;
        place-items: center;
        border: 1px solid var(--rule);
        border-radius: 5px;
        list-style: none;
        cursor: pointer;
    }
    .mobile-menu summary::-webkit-details-marker { display: none; }
    .menu-glyph { width: 16px; height: 10px; border-block: 1px solid var(--brass-light); }
    .mobile-menu nav {
        position: absolute;
        display: grid;
        inset: 100% var(--gutter) auto auto;
        width: min(260px, calc(100vw - 2 * var(--gutter)));
        max-height: calc(100dvh - 64px - env(safe-area-inset-bottom));
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: .4rem;
        border: 1px solid var(--rule);
        border-radius: 0 0 6px 6px;
        background: #15222e;
        box-shadow: 0 .8rem 2rem #0007;
    }
    .mobile-menu nav a { padding: .62rem .75rem; color: var(--paper); text-decoration: none; }
    .mobile-menu nav a:hover, .mobile-menu nav a[aria-current="page"] { color: var(--brass); background: var(--surface-raised); }
    .install-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
    .hero-copy { width: min(450px, 65%); }
    .hero h1 { font-size: clamp(3.2rem, 9vw, 5.35rem); }
    .hero-scene { left: 16%; }
    .hero-light { background: linear-gradient(0deg, #111a25eb 1%, #111a2500 28%), linear-gradient(90deg, #111b29 0, #111b29ec 19%, #111b29ce 42%, #111b2922 76%); }
    .featured-cases, .case-library { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dossier-body { grid-template-columns: 1fr; }
    .portal-auth { max-width: 620px; grid-template-columns: 1fr; }
    .portal-auth .page-header { min-height: 15rem; }
}

@media (min-width: 541px) and (max-width: 860px) {
    .stats-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
    .brand { gap: .4rem; }
    .brand-type strong { font-size: 1.23rem; }
    .brand-type small { font-size: .46rem; }
    .header-actions .header-play { min-width: 66px; padding-inline: .6rem; }
    .hero-inner { display: block; min-height: 0; padding-block: clamp(170px, 54vw, 330px) 5.6rem; }
    .hero-copy { width: 100%; }
    .hero-scene { inset: 0 0 auto; height: min(85vw, 410px); }
    .hero-scene img { object-position: 52% 28%; }
    .hero-light { background: linear-gradient(0deg, #111b29 0%, #111b29 44%, #111b29ec 50%, #111b2925 78%, #111b2900 100%); }
    .hero-kicker { margin-bottom: .58rem; }
    .hero h1 { font-size: clamp(3.05rem, 12vw, 4.6rem); }
    .hero h1 br { display: none; }
    .hero-deck { max-width: 34ch; margin-block: .9rem 1.1rem; font-size: .95rem; }
    .hero-actions { gap: .45rem; }
    .hero-actions .btn { min-height: 42px; padding-inline: .65rem; }
    .scene-caption { right: auto; left: 0; bottom: .95rem; }
    .shelf { padding-block: 1.65rem .65rem; }
    .shelf-header, .investigation-strip { align-items: start; flex-direction: column; gap: .4rem; }
    .shelf-header { margin-bottom: .65rem; }
    .featured-cases, .case-library { gap: .65rem; }
    .case-tile-body { padding: .65rem 1.22rem .7rem .65rem; }
    .case-tile-arrow { right: .32rem; top: .58rem; font-size: .75rem; }
    .case-tile h3 { font-size: clamp(.97rem, 4.1vw, 1.35rem); }
    .case-tile-location { font-size: .54rem; }
    .case-library .case-tile-body { min-height: 124px; }
    .case-summary { font-size: .8rem; }
    .investigation-strip { margin-block: 1.6rem 2.5rem; padding: 1rem; }
    .investigation-strip .btn { margin-top: .45rem; }
    .guide-steps { grid-template-columns: 1fr; }
    .install-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .install-card { grid-template-columns: 30px minmax(0, 1fr); gap: .4rem; padding: .55rem; }
    .install-mark { width: 30px; height: 30px; }
    .stats-dashboard .stats-table :is(th, td) { padding-inline: .28rem; }
    .stats-dashboard .stats-table thead th { font-size: .64rem; letter-spacing: normal; }
    .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-identity { grid-column: 1 / -1; }
}

@media (max-width: 360px) {
    .install-grid { grid-template-columns: 1fr; }
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 1060px) {
    .hero-inner { min-height: max(290px, calc(100svh - 64px)); padding-block: 1.3rem; }
    .hero-copy { width: min(57%, 30rem); }
    .hero-kicker { margin-bottom: .6rem; }
    .hero h1 { font-size: clamp(2.35rem, 10svh, 3.1rem); }
    .hero-deck { margin-block: .65rem .85rem; font-size: .92rem; line-height: 1.45; }
    .hero-actions .btn { min-height: 44px; padding-inline: .75rem; }
}

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