:root {
    color-scheme: dark;
    --ink: #0b0c0e;
    --ink-soft: #121316;
    --ink-warm: #19140f;
    --paper: #f0e7d1;
    --paper-muted: #b8ad97;
    --brass: #cfaa54;
    --brass-bright: #e6c979;
    --brass-deep: #7c6228;
    --rust: #8a433d;
    --line: rgba(230, 201, 121, 0.2);
    --line-soft: rgba(240, 231, 209, 0.1);
    --display: "Iowan Old Style", "Baskerville", "Times New Roman", serif;
    --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --page: min(1180px, calc(100vw - 48px));
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--ink);
    overflow-x: clip;
}

body {
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 85% 8%, rgba(128, 91, 29, 0.15), transparent 24rem),
        var(--ink);
    color: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button,
select {
    font: inherit;
}

[hidden] {
    display: none !important;
}

:focus-visible {
    outline: 2px solid var(--brass-bright);
    outline-offset: 4px;
}

.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;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2000;
    padding: 10px 16px;
    transform: translateY(-160%);
    background: var(--paper);
    color: var(--ink);
    font-weight: 700;
    transition: transform 180ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    padding: 18px 0;
    border-bottom: 1px solid transparent;
    transition: padding 220ms ease, background 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
    padding: 10px 0;
    border-color: var(--line-soft);
    background: rgba(11, 12, 14, 0.84);
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.header-inner {
    width: var(--page);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand img {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.42);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-nav a,
.legal-back {
    color: var(--paper-muted);
    font-size: 0.83rem;
    font-weight: 650;
    letter-spacing: 0.045em;
    transition: color 180ms ease;
}

.site-nav a:hover,
.legal-back:hover {
    color: var(--paper);
}

.site-nav .nav-status {
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--brass-bright);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 12px 9px;
    border: 0;
    background: transparent;
    color: var(--paper);
}

.nav-toggle > span:not(.sr-only) {
    display: block;
    width: 25px;
    height: 1px;
    margin: 7px auto;
    background: currentColor;
    transition: transform 180ms ease;
}

.nav-toggle[aria-expanded="true"] > span:nth-child(2) {
    transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}

.hero {
    position: relative;
    min-height: 900px;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(500px, 1.08fr);
    align-items: center;
    gap: clamp(32px, 6vw, 92px);
    width: var(--page);
    margin: 0 auto;
    padding: 138px 0 92px;
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 8% -45vw -8% 46%;
    background:
        radial-gradient(circle at 30% 35%, rgba(219, 180, 93, 0.16), transparent 33%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.025), transparent 45%);
}

.hero-grain {
    position: fixed;
    z-index: 1500;
    inset: 0;
    pointer-events: none;
    opacity: 0.11;
    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='.86' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.26'/%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
}

.eyebrow,
.section-kicker {
    margin: 0 0 20px;
    color: var(--brass-bright);
    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
}

.eyebrow span {
    width: 34px;
    height: 1px;
    background: var(--brass);
}

.hero h1 {
    max-width: 720px;
    margin: 0;
    font-family: var(--display);
    font-size: clamp(4.4rem, 8vw, 7.8rem);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 0.83;
}

.hero-lede {
    max-width: 610px;
    margin: 38px 0 0;
    color: var(--paper-muted);
    font-family: var(--display);
    font-size: clamp(1.18rem, 1.8vw, 1.5rem);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 26px;
    margin-top: 38px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 22px;
    border: 1px solid transparent;
    border-radius: 3px;
    font-size: 0.82rem;
    font-weight: 760;
    letter-spacing: 0.055em;
    text-transform: uppercase;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button-primary {
    background: var(--brass-bright);
    color: #1a150b;
    box-shadow: 0 16px 42px rgba(152, 111, 34, 0.2);
}

.button-primary:hover {
    transform: translateY(-2px);
    background: #f0d88e;
    box-shadow: 0 20px 48px rgba(152, 111, 34, 0.3);
}

.text-link {
    color: var(--paper-muted);
    font-size: 0.88rem;
    font-weight: 680;
    transition: color 180ms ease;
}

.text-link:hover {
    color: var(--paper);
}

.text-link span {
    display: inline-block;
    margin-left: 6px;
    color: var(--brass);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    margin-top: 42px;
    color: #7f7769;
    font-family: var(--mono);
    font-size: 0.67rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-meta span:not(:first-child)::before {
    content: "•";
    margin-right: 22px;
    color: var(--brass-deep);
}

.hero-visual {
    position: relative;
    min-height: 690px;
}

.phone {
    position: relative;
    overflow: hidden;
    border: 8px solid #202124;
    border-radius: 46px;
    background: #050506;
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.56), inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.phone img {
    width: 100%;
    height: auto;
}

.phone-hardware {
    position: absolute;
    z-index: 3;
    top: 11px;
    left: 50%;
    width: 31%;
    aspect-ratio: 3.1 / 1;
    transform: translateX(-50%);
    border-radius: 999px;
    background: #020203;
}

.phone-hero {
    z-index: 4;
    width: min(360px, 54vw);
    margin: 46px 1% 0 auto;
    transform: rotate(2.2deg);
}

.manor-card {
    position: absolute;
    z-index: 1;
    top: 34px;
    left: -10%;
    width: 76%;
    height: 510px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #111;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
    transform: rotate(-5deg);
}

.manor-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 46%, rgba(6, 7, 9, 0.9));
}

.manor-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 38%;
    filter: saturate(0.76) contrast(1.06);
}

.manor-card > span {
    position: absolute;
    z-index: 2;
    left: 18px;
    bottom: 16px;
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.manor-card small {
    color: var(--brass-bright);
    font: inherit;
    font-size: 0.58rem;
}

.suspect-card {
    position: absolute;
    z-index: 5;
    right: -3%;
    bottom: 2px;
    width: 34%;
    min-width: 188px;
    height: 340px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(#30261c, #0d0e10);
    box-shadow: 0 24px 62px rgba(0, 0, 0, 0.5);
    transform: rotate(5deg);
}

.suspect-card img {
    position: absolute;
    inset: 26px 0 30px;
    width: 100%;
    height: calc(100% - 56px);
    max-width: none;
    object-fit: contain;
    object-position: center bottom;
}

.suspect-file,
.suspect-name {
    position: absolute;
    z-index: 2;
    left: 12px;
    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.suspect-file {
    top: 12px;
    color: var(--brass-bright);
}

.suspect-name {
    right: 10px;
    bottom: 10px;
    padding: 6px 8px;
    background: rgba(7, 8, 10, 0.78);
}

.case-note {
    position: absolute;
    z-index: 6;
    right: 1%;
    top: 20%;
    margin: 0;
    padding: 8px 14px;
    transform: rotate(7deg);
    background: #d8c9a7;
    color: #251f17;
    font-family: var(--display);
    font-style: italic;
    font-size: 0.88rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.case-intro,
.play-section,
.mini-case-section,
.screens-section,
.manifesto,
.availability {
    width: var(--page);
    margin: 0 auto;
}

.case-intro {
    position: relative;
    display: grid;
    grid-template-columns: 0.9fr 0.58fr;
    gap: 10%;
    padding: 132px 0;
    border-top: 1px solid var(--line-soft);
}

.section-number {
    position: absolute;
    top: 124px;
    right: 0;
    color: rgba(230, 201, 121, 0.1);
    font-family: var(--display);
    font-size: 10rem;
    line-height: 0.7;
}

.case-intro h2,
.section-heading h2,
.mini-case-heading h2,
.screens-heading h2,
.manifesto h2,
.availability h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(3rem, 6vw, 5.6rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 0.98;
}

.case-intro-body {
    align-self: end;
    padding-bottom: 4px;
}

.case-intro-body p,
.screens-heading > p:last-child,
.manifesto-copy > p,
.availability-copy > p {
    color: var(--paper-muted);
    font-family: var(--display);
    font-size: 1.25rem;
    line-height: 1.55;
}

.case-intro-body p + p {
    margin-top: 22px;
}

.play-section {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: 10%;
    padding: 132px 0;
    border-top: 1px solid var(--line-soft);
}

.section-heading {
    position: sticky;
    top: 140px;
    align-self: start;
}

.steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.step {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 28px;
    padding: 36px 0;
    border-top: 1px solid var(--line-soft);
}

.step:last-child {
    border-bottom: 1px solid var(--line-soft);
}

.step-number {
    padding-top: 7px;
    color: var(--brass);
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.step h3 {
    margin: 0 0 8px;
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 500;
}

.step p {
    max-width: 610px;
    margin: 0;
    color: var(--paper-muted);
}

/* Playable browser case */
.mini-case-section {
    padding: 132px 0;
    border-top: 1px solid var(--line-soft);
}

.mini-case-heading {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 0.58fr);
    align-items: end;
    gap: 9%;
    margin-bottom: 62px;
}

.mini-case-heading > p {
    margin: 0 0 8px;
    color: var(--paper-muted);
    font-family: var(--display);
    font-size: 1.24rem;
    line-height: 1.55;
}

.case-console {
    position: relative;
    overflow: hidden;
    min-height: 650px;
    border: 1px solid var(--line);
    background:
        linear-gradient(rgba(230, 201, 121, 0.035) 1px, transparent 1px) 0 0 / 100% 44px,
        radial-gradient(circle at 84% 8%, rgba(139, 84, 25, 0.2), transparent 34rem),
        #0f1012;
    box-shadow: 0 42px 110px rgba(0, 0, 0, 0.28);
}

.case-console::before {
    content: "Blackwood Constabulary · Private file";
    position: absolute;
    right: -54px;
    bottom: 72px;
    z-index: 0;
    color: rgba(230, 201, 121, 0.06);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    transform: rotate(-90deg);
}

.case-start {
    position: relative;
    z-index: 1;
    min-height: 650px;
    display: grid;
    grid-template-columns: 180px minmax(0, 690px);
    justify-content: center;
    align-items: center;
    gap: clamp(42px, 8vw, 100px);
    padding: 72px;
}

.case-seal {
    width: 180px;
    aspect-ratio: 1;
    display: grid;
    place-content: center;
    border: 1px solid var(--brass-deep);
    border-radius: 50%;
    color: var(--brass);
    text-align: center;
    box-shadow: inset 0 0 0 8px #0f1012, inset 0 0 0 9px var(--brass-deep);
}

.case-seal span,
.case-label {
    color: var(--brass);
    font-family: var(--mono);
    font-size: 0.65rem;
    font-weight: 750;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.case-seal strong {
    font-family: var(--display);
    font-size: 4.8rem;
    font-weight: 500;
    line-height: 0.9;
}

.case-start-copy h3 {
    max-width: 720px;
    margin: 16px 0 20px;
    font-family: var(--display);
    font-size: clamp(2.8rem, 5vw, 4.7rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 0.98;
}

.case-start-copy > p:not(.case-label) {
    max-width: 680px;
    margin: 0;
    color: var(--paper-muted);
    font-family: var(--display);
    font-size: 1.22rem;
}

.case-how {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0 18px;
    padding: 0;
    list-style: none;
}

.case-how li {
    min-height: 132px;
    padding: 15px;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.018);
}

.case-how li > span {
    display: block;
    margin-bottom: 7px;
    color: var(--brass);
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
}

.case-how strong {
    display: block;
    color: var(--paper);
    font-family: var(--display);
    font-size: 1.12rem;
    font-weight: 500;
}

.case-how p {
    margin: 5px 0 0;
    color: #918777;
    font-size: 0.72rem;
    line-height: 1.45;
}

.case-start-copy > p.case-start-tip {
    margin: 0 0 24px;
    color: #8e8576;
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.case-begin {
    width: auto;
}

.case-game {
    position: relative;
    z-index: 1;
}

.case-statusbar {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 28px;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(6, 7, 8, 0.58);
}

.case-statusbar > div:first-child {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.case-statusbar strong {
    font-family: var(--display);
    font-size: 1.28rem;
    font-weight: 500;
}

.case-clock {
    display: flex;
    align-items: baseline;
    gap: 12px;
    color: #827a6d;
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.case-clock strong {
    color: var(--brass-bright);
    font-family: var(--mono);
    font-size: 0.85rem;
    font-weight: 750;
}

.case-clock.is-urgent strong {
    color: #e58d77;
}

.case-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid var(--line-soft);
}

.case-tabs button {
    min-height: 56px;
    padding: 12px 16px;
    border: 0;
    border-right: 1px solid var(--line-soft);
    border-bottom: 2px solid transparent;
    background: rgba(15, 16, 18, 0.78);
    color: #837b6c;
    cursor: pointer;
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 720;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.case-tabs button:last-child {
    border-right: 0;
}

.case-tabs button:hover,
.case-tabs button[aria-selected="true"] {
    background: rgba(230, 201, 121, 0.045);
    color: var(--paper);
}

.case-tabs button[aria-selected="true"] {
    border-bottom-color: var(--brass);
}

.case-tabs button span {
    display: inline-grid;
    min-width: 18px;
    height: 18px;
    place-content: center;
    margin-left: 5px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--brass);
    font-size: 0.56rem;
}

.case-guidance {
    display: flex;
    align-items: baseline;
    gap: 18px;
    padding: 14px 42px;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(203, 170, 84, 0.045);
}

.case-guidance span {
    flex: none;
    color: var(--brass-bright);
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 720;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.case-guidance p {
    margin: 0;
    color: #a09788;
    font-size: 0.78rem;
}

.case-workspace {
    min-height: 540px;
}

.case-panel {
    padding: 42px;
}

.panel-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 42px;
    margin-bottom: 34px;
}

.panel-heading h3 {
    margin: 8px 0 0;
    font-family: var(--display);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1;
}

.panel-heading > p {
    max-width: 340px;
    margin: 0;
    color: #887f70;
    font-size: 0.8rem;
    text-align: right;
}

.room-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.room-file {
    position: relative;
    min-height: 330px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    overflow: hidden;
    padding: 24px;
    border: 1px solid var(--line-soft);
    background: #151619;
    color: var(--paper);
    text-align: left;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.room-file > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    filter: saturate(0.72) contrast(1.06) brightness(0.72);
    transition: filter 180ms ease, opacity 180ms ease, transform 300ms ease;
}

.room-file::before,
.room-file::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.room-file::before {
    z-index: 1;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(9, 10, 11, 0.12) 25%, rgba(9, 10, 11, 0.94) 100%),
        linear-gradient(120deg, transparent 58%, rgba(203, 170, 84, 0.08));
}

.room-file::after {
    z-index: 2;
    top: 28px;
    right: 26px;
    width: 86px;
    height: 86px;
    border: 1px solid rgba(230, 201, 121, 0.11);
    transform: rotate(45deg);
}

.room-library {
    background: linear-gradient(155deg, #17191d, #0f1012);
}

.room-study {
    background: linear-gradient(155deg, #181c18, #0f1110);
}

.room-file:hover:not(:disabled) {
    transform: translateY(-4px);
    border-color: var(--brass-deep);
}

.room-file:hover:not(:disabled) > img {
    filter: saturate(0.86) contrast(1.04) brightness(0.82);
    transform: scale(1.025);
}

.room-file:disabled {
    cursor: default;
}

.room-file.is-complete {
    border-color: rgba(230, 201, 121, 0.28);
    background: #111214;
}

.room-file.is-complete > img {
    opacity: 0.34;
    filter: grayscale(0.8) brightness(0.55);
}

.room-file.is-complete::after {
    content: "✓";
    display: grid;
    place-content: center;
    border-radius: 50%;
    color: var(--brass-bright);
    font-family: var(--display);
    font-size: 2.1rem;
    transform: none;
}

.room-number,
.room-action {
    position: relative;
    z-index: 3;
    color: var(--brass);
    font-family: var(--mono);
    font-size: 0.63rem;
    font-weight: 720;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.room-number {
    position: absolute;
    top: 20px;
    left: 22px;
}

.room-name {
    position: relative;
    z-index: 3;
    margin-bottom: 12px;
    font-family: var(--display);
    font-size: clamp(1.85rem, 3vw, 2.6rem);
}

.room-file.is-complete .room-action {
    color: #7e7668;
}

.suspect-grid {
    display: grid;
    gap: 12px;
}

.suspect-file-card {
    display: grid;
    grid-template-columns: 68px 1fr auto;
    align-items: center;
    gap: 22px;
    padding: 20px 22px;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.018);
}

.suspect-portrait {
    width: 68px;
    height: 68px;
    border: 1px solid var(--line);
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.82) contrast(1.04);
}

.suspect-file-card h4 {
    margin: 3px 0 1px;
    font-family: var(--display);
    font-size: 1.65rem;
    font-weight: 500;
}

.suspect-file-card p {
    margin: 0;
    color: #81796b;
    font-size: 0.76rem;
}

.suspect-file-card > button {
    min-height: 42px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--paper);
    cursor: pointer;
    font-family: var(--mono);
    font-size: 0.64rem;
    font-weight: 720;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.suspect-file-card > button span {
    margin-left: 8px;
    color: var(--brass);
}

.suspect-file-card > button:hover:not(:disabled) {
    background: var(--brass-bright);
    color: #181309;
}

.suspect-file-card > button:hover:not(:disabled) span {
    color: #181309;
}

.suspect-file-card > button:disabled {
    color: #6f685c;
    cursor: default;
}

.case-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.notes-empty {
    grid-column: 1 / -1;
    min-height: 230px;
    display: grid;
    place-content: center;
    color: #756d60;
    text-align: center;
}

.notes-empty span {
    color: var(--brass-deep);
    font-family: var(--display);
    font-size: 4rem;
    line-height: 1;
}

.notes-empty p {
    margin: 10px 0 0;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.evidence-note {
    min-height: 180px;
    padding: 22px;
    border: 1px solid var(--line-soft);
    background: rgba(240, 231, 209, 0.025);
}

.evidence-note h4 {
    margin: 9px 0 10px;
    font-family: var(--display);
    font-size: 1.45rem;
    font-weight: 500;
}

.evidence-note p,
.evidence-note li {
    color: #9e9483;
    font-size: 0.82rem;
    line-height: 1.55;
}

.evidence-note p {
    margin: 0;
}

.evidence-note ol {
    margin: 0;
    padding-left: 20px;
}

.evidence-note li + li {
    margin-top: 7px;
}

.theory-builder {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: end;
    gap: 12px;
}

.theory-builder label {
    display: grid;
    gap: 8px;
    color: var(--brass);
    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 720;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.theory-builder select {
    width: 100%;
    min-height: 50px;
    padding: 10px 38px 10px 13px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #161719;
    color: var(--paper);
    font-family: var(--sans);
    font-size: 0.82rem;
    text-transform: none;
}

.theory-join {
    padding-bottom: 13px;
    color: #6f675b;
    font-family: var(--display);
    font-size: 1.05rem;
    font-style: italic;
}

.theory-card {
    min-height: 118px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 28px;
    padding: 22px 26px;
    border: 1px dashed rgba(230, 201, 121, 0.25);
    background:
        linear-gradient(90deg, transparent, rgba(230, 201, 121, 0.035), transparent),
        rgba(255, 255, 255, 0.016);
}

.theory-card p {
    margin: 8px 0 0;
    color: #8e8576;
    font-family: var(--display);
    font-size: 1.2rem;
}

.theory-card.is-pinned p {
    color: var(--paper);
    font-size: 1.38rem;
}

.board-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.case-pin {
    border-color: var(--line);
    background: transparent;
    color: var(--paper);
}

.case-pin:hover:not(:disabled) {
    border-color: var(--brass);
    background: rgba(230, 201, 121, 0.06);
}

.board-actions button:disabled {
    opacity: 0.34;
    cursor: not-allowed;
}

.accusation-warning {
    margin: 12px 0 0;
    color: #8f645c;
    font-family: var(--mono);
    font-size: 0.61rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.case-noscript {
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 18px 24px;
    border-top: 1px solid var(--line);
    color: var(--paper-muted);
}

.case-dialog {
    width: min(650px, calc(100vw - 32px));
    max-height: min(760px, calc(100vh - 32px));
    overflow: auto;
    padding: 44px;
    border: 1px solid var(--brass-deep);
    border-radius: 0;
    background:
        linear-gradient(rgba(230, 201, 121, 0.025) 1px, transparent 1px) 0 0 / 100% 38px,
        #111214;
    color: var(--paper);
    box-shadow: 0 42px 120px rgba(0, 0, 0, 0.72);
}

.case-dialog::backdrop {
    background: rgba(4, 5, 6, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.case-dialog h3 {
    margin: 9px 40px 26px 0;
    font-family: var(--display);
    font-size: clamp(2.3rem, 7vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1;
}

.dialog-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--paper-muted);
    cursor: pointer;
    font-size: 1.4rem;
}

.statement-list {
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
    counter-reset: statement;
}

.statement-list li {
    position: relative;
    padding: 18px 0 18px 46px;
    border-top: 1px solid var(--line-soft);
    color: #c2b7a3;
    font-family: var(--display);
    font-size: 1.13rem;
    line-height: 1.5;
    counter-increment: statement;
}

.statement-list li::before {
    content: "0" counter(statement);
    position: absolute;
    top: 22px;
    left: 0;
    color: var(--brass);
    font-family: var(--mono);
    font-size: 0.62rem;
}

.statement-list li:last-child {
    border-bottom: 1px solid var(--line-soft);
}

.case-result > p {
    margin: 0 0 30px;
    color: var(--paper-muted);
    font-family: var(--display);
    font-size: 1.18rem;
    line-height: 1.55;
}

.result-reasoning {
    margin: -8px 0 30px;
    padding: 0;
    list-style: none;
    counter-reset: result-clue;
}

.result-reasoning li {
    position: relative;
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 16px;
    padding: 15px 0 15px 38px;
    border-top: 1px solid var(--line-soft);
    counter-increment: result-clue;
}

.result-reasoning li:last-child {
    border-bottom: 1px solid var(--line-soft);
}

.result-reasoning li::before {
    content: "0" counter(result-clue);
    position: absolute;
    top: 18px;
    left: 0;
    color: var(--brass);
    font-family: var(--mono);
    font-size: 0.6rem;
}

.result-reasoning strong {
    color: var(--paper);
    font-family: var(--mono);
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.result-reasoning span {
    color: var(--paper-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}

.case-result.is-solved {
    border-color: var(--brass);
}

.case-result.is-failed {
    border-color: var(--rust);
}

.result-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.screens-section {
    padding: 132px 0;
    border-top: 1px solid var(--line-soft);
}

.screens-heading {
    max-width: 790px;
    margin-bottom: 76px;
}

.screens-heading > p:last-child {
    max-width: 650px;
    margin: 32px 0 0;
}

.screen-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: start;
}

.screen-card {
    position: relative;
    min-height: 920px;
    overflow: hidden;
    padding: 28px 26px 0;
    border: 1px solid var(--line-soft);
    background:
        radial-gradient(circle at 50% 70%, rgba(174, 126, 46, 0.2), transparent 45%),
        #111216;
}

.screen-card-map {
    margin-top: 76px;
    background:
        radial-gradient(circle at 50% 72%, rgba(151, 97, 31, 0.24), transparent 45%),
        #17120e;
}

.screen-card-evidence {
    margin-top: 152px;
}

.screen-caption {
    position: relative;
    z-index: 3;
    min-height: 190px;
}

.screen-caption > span {
    color: var(--brass);
    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.screen-caption h3 {
    margin: 14px 0 10px;
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.1;
}

.screen-caption p {
    margin: 0;
    color: var(--paper-muted);
    font-size: 0.92rem;
}

.phone-gallery {
    width: min(92%, 320px);
    margin: 8px auto -190px;
    border-width: 7px;
    border-radius: 42px;
    transition: transform 420ms cubic-bezier(.2,.75,.2,1);
}

.screen-card:hover .phone-gallery {
    transform: translateY(-10px);
}

.manifesto {
    min-height: 760px;
    display: grid;
    grid-template-columns: minmax(250px, 0.84fr) minmax(0, 1.16fr);
    align-items: center;
    gap: 9%;
    padding: 108px 7%;
    border: 1px solid var(--line-soft);
    background:
        linear-gradient(90deg, rgba(17, 13, 10, 0.8), rgba(12, 13, 15, 0.94)),
        var(--ink-warm);
}

.manifesto-copy {
    min-width: 0;
}

.manifesto-copy h2 {
    font-size: clamp(2.8rem, 4.7vw, 5rem);
}

.manifesto-portrait {
    position: relative;
    align-self: stretch;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.manifesto-portrait::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(transparent, #110e0c);
}

.manifesto-portrait img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: contain;
    object-position: center bottom;
    filter: saturate(0.85) contrast(1.04);
}

.portrait-index {
    position: absolute;
    z-index: 2;
    top: 18px;
    left: 18px;
    color: var(--brass);
    font-family: var(--mono);
    font-size: 0.7rem;
}

.manifesto-copy > p {
    max-width: 650px;
    margin: 30px 0;
}

.manifesto blockquote {
    margin: 44px 0 0;
    padding: 22px 0 22px 28px;
    border-left: 2px solid var(--brass);
    color: var(--brass-bright);
    font-family: var(--display);
    font-size: 1.35rem;
    font-style: italic;
}

.availability {
    position: relative;
    display: grid;
    grid-template-columns: 180px 1fr auto;
    align-items: center;
    gap: 52px;
    padding: 150px 0;
}

.availability-icon {
    width: 180px;
    height: 180px;
    border-radius: 38px;
    box-shadow: 0 34px 74px rgba(0, 0, 0, 0.5);
}

.availability-copy > p {
    margin: 24px 0 0;
}

.coming-soon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--brass-bright);
    font-family: var(--mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.coming-soon span {
    font-size: 0.56rem;
    animation: pulse 2.2s ease-in-out infinite;
}

.availability-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.availability-links a {
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line);
    color: var(--paper-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.availability-links a:hover {
    color: var(--paper);
    border-color: var(--brass);
}

.site-footer {
    width: var(--page);
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 32px;
    padding: 34px 0 46px;
    border-top: 1px solid var(--line-soft);
    color: #7f7769;
    font-size: 0.74rem;
}

.site-footer p {
    margin: 0;
}

.footer-brand {
    color: var(--paper);
    font-family: var(--mono);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.site-footer div {
    display: flex;
    gap: 20px;
}

.site-footer a:hover {
    color: var(--paper);
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 700ms ease, transform 700ms cubic-bezier(.2,.75,.2,1);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.step:nth-child(2),
.screen-card:nth-child(2) {
    transition-delay: 80ms;
}

.step:nth-child(3),
.screen-card:nth-child(3) {
    transition-delay: 160ms;
}

.step:nth-child(4) {
    transition-delay: 240ms;
}

@keyframes pulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
}

/* Privacy policy */
.legal-page {
    background:
        linear-gradient(90deg, rgba(203, 170, 84, 0.05) 1px, transparent 1px) 0 0 / 88px 88px,
        var(--ink);
}

.legal-main {
    width: var(--page);
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 72px;
    padding: 166px 0 110px;
}

.legal-aside {
    position: sticky;
    top: 138px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    border: 1px solid var(--line);
    color: var(--brass);
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.legal-aside strong {
    color: var(--paper);
    font-size: 1.1rem;
}

.legal-content {
    max-width: 690px;
}

.legal-content h1 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(3.8rem, 8vw, 6.6rem);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 0.95;
}

.legal-date {
    margin: 24px 0 52px;
    color: #7f7769;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.legal-lede {
    padding: 24px 0 24px 28px;
    border-left: 2px solid var(--brass);
    color: var(--paper) !important;
    font-family: var(--display);
    font-size: 1.42rem;
}

.legal-content h2 {
    margin: 54px 0 14px;
    font-family: var(--display);
    font-size: 1.9rem;
    font-weight: 500;
}

.legal-content p,
.legal-content li {
    color: var(--paper-muted);
}

.legal-content ul {
    margin: 0;
    padding-left: 22px;
}

.legal-content li + li {
    margin-top: 8px;
}

.legal-content a {
    color: var(--brass-bright);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-footer {
    max-width: 1000px;
}

@media (max-width: 1050px) {
    .hero {
        min-height: auto;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .hero h1 {
        font-size: clamp(4rem, 8.8vw, 6.5rem);
    }

    .hero-visual {
        min-height: 620px;
    }

    .suspect-card {
        right: -1%;
    }

    .case-note {
        right: -4%;
    }

    .case-start {
        padding: 58px 44px;
    }

    .case-how {
        grid-template-columns: 1fr;
    }

    .case-panel {
        padding: 36px 30px;
    }

    .room-file {
        min-height: 250px;
    }

    .screen-gallery {
        gap: 14px;
    }

    .screen-card {
        min-height: 820px;
        padding-inline: 20px;
    }

    .screen-caption {
        min-height: 220px;
    }

    .availability {
        grid-template-columns: 150px 1fr;
    }

    .availability-icon {
        width: 150px;
        height: 150px;
        border-radius: 32px;
    }

    .availability-links {
        grid-column: 2;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 820px) {
    :root {
        --page: min(100% - 32px, 680px);
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        inset: 0;
        z-index: -1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 28px;
        padding: 96px max(24px, calc((100vw - var(--page)) / 2));
        transform: translateY(-105%);
        background: rgba(11, 12, 14, 0.97);
        transition: transform 260ms cubic-bezier(.2,.75,.2,1);
    }

    .site-nav.is-open {
        transform: translateY(0);
    }

    .site-nav a {
        font-family: var(--display);
        font-size: 2rem;
        font-weight: 500;
    }

    .site-nav .nav-status {
        font-family: var(--sans);
        font-size: 0.82rem;
    }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 150px;
    }

    .hero-visual {
        width: min(100%, 590px);
        margin: 16px auto 0;
    }

    .phone-hero {
        width: min(350px, 62vw);
    }

    .manor-card {
        left: -5%;
        width: 72%;
    }

    .case-intro,
    .play-section,
    .mini-case-heading,
    .manifesto {
        grid-template-columns: 1fr;
    }

    .case-intro,
    .play-section,
    .mini-case-section,
    .screens-section {
        padding: 100px 0;
    }

    .case-intro {
        gap: 36px;
    }

    .section-heading {
        position: static;
    }

    .play-section {
        gap: 64px;
    }

    .mini-case-heading {
        gap: 24px;
        margin-bottom: 42px;
    }

    .case-guidance {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        padding-inline: 30px;
    }

    .case-start {
        grid-template-columns: 120px minmax(0, 1fr);
        gap: 36px;
    }

    .case-seal {
        width: 120px;
    }

    .case-seal strong {
        font-size: 3.3rem;
    }

    .room-grid {
        grid-template-columns: 1fr;
    }

    .room-file {
        min-height: 180px;
    }

    .room-file::after {
        width: 64px;
        height: 64px;
    }

    .theory-builder {
        grid-template-columns: 1fr;
    }

    .theory-join {
        display: none;
    }

    .screen-gallery {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .screen-card,
    .screen-card-map,
    .screen-card-evidence {
        min-height: 900px;
        margin-top: 0;
    }

    .screen-caption {
        min-height: 170px;
    }

    .manifesto {
        gap: 58px;
        padding: 64px 8%;
    }

    .manifesto-portrait {
        min-height: 480px;
    }

    .manifesto-portrait img {
        width: min(100%, 520px);
        margin: 0 auto;
    }

    .availability {
        padding: 110px 0;
    }

    .site-footer {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .site-footer > *:nth-child(even) {
        justify-self: end;
        text-align: right;
    }

    .legal-main {
        grid-template-columns: 1fr;
        gap: 44px;
        padding-top: 142px;
    }

    .legal-aside {
        position: static;
        width: min(230px, 100%);
    }
}

@media (max-width: 560px) {
    :root {
        --page: calc(100% - 28px);
    }

    .brand span {
        font-size: 0.72rem;
    }

    .legal-back {
        font-size: 0.74rem;
    }

    .hero {
        padding-top: 132px;
        padding-bottom: 74px;
    }

    .hero h1 {
        font-size: clamp(3.8rem, 20vw, 5.7rem);
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .button {
        width: 100%;
    }

    .hero-meta {
        display: grid;
        gap: 8px;
    }

    .hero-meta span:not(:first-child)::before {
        display: none;
    }

    .hero-visual {
        min-height: 570px;
    }

    .hero::before {
        inset: 8% -14px -8% 42%;
    }

    .phone-hero {
        width: min(310px, 70vw);
        margin-top: 58px;
    }

    .manor-card {
        left: -4%;
        width: 74%;
        height: 430px;
    }

    .suspect-card {
        right: 0;
        bottom: 5px;
        width: 36%;
        min-width: 142px;
        height: 240px;
    }

    .case-note {
        top: 24%;
        right: -3%;
        font-size: 0.72rem;
    }

    .case-intro h2,
    .section-heading h2,
    .mini-case-heading h2,
    .screens-heading h2,
    .manifesto h2,
    .availability h2 {
        font-size: clamp(2.9rem, 14vw, 4.2rem);
    }

    .section-number {
        top: 96px;
        font-size: 7rem;
    }

    .step {
        grid-template-columns: 38px 1fr;
        gap: 16px;
    }

    .step h3 {
        font-size: 1.65rem;
    }

    .case-console,
    .case-start {
        min-height: 620px;
    }

    .case-start {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 20px;
        padding: 32px 20px;
    }

    .case-seal {
        width: 74px;
    }

    .case-seal span {
        font-size: 0.5rem;
    }

    .case-seal strong {
        font-size: 2.15rem;
    }

    .case-start-copy h3 {
        font-size: 2.5rem;
    }

    .case-how {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-block: 20px 14px;
    }

    .case-how li {
        min-height: 0;
        padding: 12px;
    }

    .case-statusbar {
        align-items: flex-start;
        padding: 16px;
    }

    .case-statusbar > div:first-child {
        display: grid;
        gap: 0;
    }

    .case-clock {
        display: grid;
        gap: 0;
        text-align: right;
    }

    .case-tabs {
        grid-template-columns: repeat(2, 1fr);
    }

    .case-tabs button:nth-child(2) {
        border-right: 0;
    }

    .case-tabs button:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line-soft);
    }

    .case-tabs button[aria-selected="true"] {
        border-bottom-color: var(--brass);
    }

    .case-panel {
        padding: 30px 18px;
    }

    .case-guidance {
        padding: 13px 18px;
    }

    .panel-heading {
        display: grid;
        gap: 14px;
    }

    .panel-heading > p {
        text-align: left;
    }

    .room-file {
        min-height: 160px;
    }

    .suspect-file-card {
        grid-template-columns: 52px 1fr;
        gap: 14px;
        padding: 18px 14px;
    }

    .suspect-portrait {
        width: 52px;
        height: 52px;
    }

    .suspect-file-card > button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .case-notes {
        grid-template-columns: 1fr;
    }

    .board-actions,
    .result-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .case-dialog {
        padding: 38px 22px 24px;
    }

    .result-reasoning li {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .screen-card,
    .screen-card-map,
    .screen-card-evidence {
        min-height: 810px;
        padding: 24px 18px 0;
    }

    .screen-caption {
        min-height: 205px;
    }

    .manifesto {
        padding-inline: 24px;
    }

    .manifesto-portrait {
        min-height: 390px;
    }

    .manifesto blockquote {
        font-size: 1.15rem;
    }

    .availability {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .availability-icon {
        width: 112px;
        height: 112px;
        border-radius: 25px;
    }

    .availability-links {
        grid-column: auto;
        flex-direction: column;
    }

    .site-footer {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer > *:nth-child(even) {
        align-self: flex-start;
        text-align: left;
    }

    .legal-content h1 {
        font-size: clamp(3.4rem, 18vw, 5rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
