:root {
    --bg: #090806;
    --surface: #15120e;
    --surface-soft: #1c1812;
    --gold: #c6a05c;
    --gold-light: #e0c17e;
    --text: #eee4d2;
    --text-muted: #aa9b84;
    --border: rgba(198, 160, 92, .52);
    --paper: #d4c19b;
    --ink: #2b2014;
    --container: 1380px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 18% 20%, rgba(116,75,26,.15), transparent 30%),
        radial-gradient(circle at 82% 68%, rgba(198,160,92,.08), transparent 32%),
        var(--bg);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}
body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    background: repeating-linear-gradient(117deg, rgba(255,255,255,.012) 0 1px, transparent 1px 7px);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; }
.container { width: min(100%, var(--container)); margin-inline: auto; padding-inline: clamp(20px, 4vw, 58px); }
.site-header { position: fixed; inset: 0 0 auto; z-index: 20; height: 100px; border-bottom: 1px solid transparent; background: rgba(8,7,5,.72); backdrop-filter: blur(10px); transition: height .25s ease, background .25s ease, border-color .25s ease; }
.site-header.is-scrolled { height: 78px; border-color: rgba(198,160,92,.18); background: rgba(8,7,5,.92); backdrop-filter: blur(14px); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 36px; }
.brand { min-width: 210px; display: inline-flex; flex-direction: column; font-family: Georgia, "Times New Roman", serif; line-height: 1; }
.brand-name { font-size: 1.15rem; letter-spacing: .08em; text-transform: uppercase; }
.brand-name span { color: var(--gold-light); }
.site-header .brand { flex-direction: row; align-items: center; gap: 12px; }
.brand-logo { width: 48px; height: 48px; flex: 0 0 auto; object-fit: contain; }
.desktop-nav { display: flex; flex: 1; align-items: center; justify-content: center; gap: clamp(18px, 2.1vw, 38px); }
.desktop-nav a { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--gold-light); }
.header-cta { min-height: 48px; padding-inline: 28px; }
.menu-toggle { display: none; width: 48px; height: 44px; padding: 10px; border: 1px solid var(--border); border-radius: 8px; background: rgba(10,8,5,.68); color: var(--gold-light); cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 1px; margin: 5px auto; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { display: none; }
.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 12px 27px;
    border: 1px solid var(--gold);
    border-radius: 9px;
    color: var(--gold-light);
    background: rgba(31,23,13,.86);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.button:hover { border-color: var(--gold-light); background: #5a3918; transform: translateY(-2px); }
.button.primary { width: min(100%, 340px); min-height: 0; aspect-ratio: 1936 / 288; padding: 8px 25px; color: #2b1807; background: transparent url('/res/img/case_action_button_bg.png') center / contain no-repeat; border: 0; box-shadow: none; font-family: Georgia, "Times New Roman", serif; font-size: .94rem; }
.button.primary:hover { background-color: transparent; box-shadow: none; }
.page-hero { position: relative; min-height: clamp(280px, 33vh, 360px); display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; padding: 112px 0 34px; border-bottom: 1px solid rgba(198,160,92,.22); }
.page-hero-picture, .page-hero-picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero-picture { z-index: 0; }
.page-hero-picture img { object-fit: cover; object-position: center; transform: translate3d(0, var(--page-hero-parallax, 0px), 0) scale(1.18); transform-origin: center top; will-change: transform; }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero-copy { position: relative; isolation: isolate; width: 100%; padding: 8px 0; }
.page-hero-copy::before { position: absolute; top: -16px; right: calc(0px - clamp(20px, 4vw, 58px) - max(0px, (100vw - var(--container)) / 2)); bottom: -16px; left: -24px; z-index: -1; content: ""; background: linear-gradient(90deg, rgba(7,6,4,.64) 0%, rgba(7,6,4,.4) 56%, rgba(7,6,4,.12) 100%); box-shadow: 0 14px 34px rgba(0,0,0,.18); backdrop-filter: blur(2px); }
.eyebrow { margin: 0 0 12px; color: var(--gold-light); font-family: Georgia, "Times New Roman", serif; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; }
.page-hero h1, .detail-title { margin: 0; color: #dec183; font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: .96; }
.page-hero h1 { font-size: clamp(2.8rem, 5vw, 4.8rem); text-shadow: 2px 3px 2px rgba(0,0,0,.48), 0 8px 22px rgba(0,0,0,.28); }
.detail-title { font-size: clamp(3rem, 7vw, 6rem); }
.page-hero p:last-child { max-width: 660px; margin: 10px 0 0; color: #eee4d2; font-size: 1rem; text-shadow: 1px 1px 0 rgba(0,0,0,.68), 0 5px 14px rgba(0,0,0,.34); }
.catalog-main { padding: 58px 0 90px; }
.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 34px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-button, .sort-select {
    min-height: 44px;
    padding: 9px 16px;
    border: 1px solid rgba(198,160,92,.42);
    border-radius: 999px;
    color: var(--text-muted);
    background: rgba(21,18,14,.88);
    cursor: pointer;
}
.filter-button { display: inline-flex; align-items: center; gap: 9px; }
.filter-button img { width: 27px; height: 27px; border-radius: 50%; object-fit: contain; }
.filter-button.is-active { color: var(--text); border-color: var(--gold-light); background: rgba(111,77,36,.58); }
.sort-select { border-radius: 8px; }
.catalog-count { width: 100%; margin: 0; color: var(--text-muted); font-size: .82rem; }
.case-list { display: grid; gap: 24px; }
.catalog-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    min-height: 230px;
    overflow: hidden;
    border: 1px solid rgba(198,160,92,.38);
    border-radius: 16px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(145deg, rgba(48,36,22,.9), rgba(20,16,11,.98) 58%, rgba(34,25,16,.92));
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.catalog-card:hover { border-color: var(--gold-light); transform: translateY(-4px); }
.catalog-card:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 4px; border-color: var(--gold-light); box-shadow: 0 16px 42px rgba(0,0,0,.34); }
.catalog-cover { position: relative; min-height: 0; display: grid; place-items: center; align-self: center; margin: 18px 0 18px 20px; overflow: visible; background: transparent; }
.catalog-cover img { width: 100%; height: auto; max-height: 210px; object-fit: contain; }
.catalog-cover::after { display: none; }
.catalog-card-body { display: flex; flex-direction: column; justify-content: center; padding: 24px 32px; }
.title-row { display: flex; align-items: center; gap: 13px; }
.title-row > img { width: 48px; height: 48px; flex: 0 0 auto; object-fit: contain; }
.title-row h2, .title-row h1 { margin: 0; color: var(--gold-light); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.55rem, 3vw, 2.3rem); font-weight: 400; line-height: 1.1; }
.catalog-description { margin: 14px 0 18px; color: var(--text-muted); }
.case-meta { display: flex; flex-wrap: wrap; gap: 7px 13px; margin-bottom: 14px; }
.meta-item { display: inline-flex; align-items: center; gap: 9px; color: #c7b99f; font-size: .82rem; }
.meta-item img { width: 25px; height: 25px; object-fit: contain; }
.rating { color: var(--gold-light); letter-spacing: .08em; }
.rating small { margin-left: 7px; color: var(--text-muted); letter-spacing: 0; }
.card-link { align-self: flex-start; color: var(--gold-light); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.card-link:hover { color: var(--text); }
.empty-state { padding: 48px; border: 1px solid var(--border); border-radius: 14px; color: var(--text-muted); background: var(--surface); text-align: center; }
.is-filtered-out { display: none; }

.detail-main { padding: 158px 0 90px; }
.back-link { display: inline-flex; margin-bottom: 26px; color: var(--gold-light); font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.detail-layout { display: grid; grid-template-columns: minmax(290px, .75fr) minmax(0, 1.25fr); align-items: start; gap: clamp(38px, 6vw, 84px); }
.detail-visual { position: sticky; top: 110px; }
.detail-cover { width: min(100%, 380px); margin-inline: auto; overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
.detail-cover img { width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.detail-copy { container-type: inline-size; padding-top: 10px; }
.detail-copy .title-row { align-items: flex-start; }
.detail-copy .title-row > img { width: 58px; height: 58px; }
.detail-title-copy { min-width: 0; }
.detail-title { font-size: clamp(2.6rem, 5vw, 4.8rem); text-transform: none; }
.detail-company-line { margin: 2px 0 0 4px; color: var(--text-muted); font-size: .82rem; letter-spacing: .04em; }
.detail-subtitle { margin: 10px 0 0; color: var(--gold-light); font-family: Georgia, "Times New Roman", serif; font-size: 1.25rem; }
.detail-lead { margin: 28px 0 13px; color: #d3c5ad; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.12rem, 2vw, 1.35rem); line-height: 1.7; }
.briefing {
    position: relative;
    width: min(100%, 700px);
    min-height: 0;
    aspect-ratio: 1010 / 1309;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 36px auto;
    padding: clamp(48px, 7vw, 84px) clamp(38px, 7vw, 80px);
    color: var(--ink);
    background: url('/res/img/case_briefing_empty.png') center / contain no-repeat;
}
.briefing h2 { margin: 0 0 14px; color: #743824; font-family: Georgia, "Times New Roman", serif; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; }
.briefing p { margin: 0; font-size: 1.04rem; line-height: 1.75; }
.audio-player { display: flex; align-items: center; gap: 14px; margin-top: 22px; padding-top: 19px; border-top: 1px solid rgba(67,44,20,.25); }
.audio-toggle { width: 64px; height: 64px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 50%; background: transparent url('/res/img/case_mailbox_play_button.png') center / contain no-repeat; cursor: pointer; }
.audio-toggle.is-playing { filter: brightness(1.18); transform: scale(.96); }
.audio-copy strong { display: block; font-family: Georgia, "Times New Roman", serif; }
.audio-copy span { font-size: .8rem; opacity: .7; }
.detail-actions { width: min(100%, 700px); display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 14px; margin: 20px auto 24px; }
.detail-actions .button { min-width: 0; white-space: nowrap; }
.detail-actions .primary { flex: 0 1 340px; }

@container (max-width: 680px) {
    .briefing {
        width: 100%;
        min-height: 128.7cqw;
        aspect-ratio: auto;
        margin-inline: auto;
        padding: 13% 12%;
        background-size: 100% 100%;
    }
    .briefing h2 { margin-bottom: 10px; font-size: clamp(.74rem, 3.2cqw, .9rem); }
    .briefing p { font-size: clamp(.72rem, 3.15cqw, .88rem); line-height: 1.48; }
    .audio-player { gap: 10px; margin-top: 14px; padding-top: 13px; }
    .audio-toggle { width: clamp(42px, 13cqw, 52px); height: clamp(42px, 13cqw, 52px); }
    .audio-copy strong { font-size: clamp(.76rem, 3.3cqw, .92rem); }
    .audio-copy span { font-size: clamp(.66rem, 2.8cqw, .78rem); }
    .detail-actions { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .92fr); gap: 8px; }
    .detail-actions .button { width: 100%; min-width: 0; min-height: 44px; padding-inline: 8px; font-size: clamp(.53rem, 2.45cqw, .68rem); letter-spacing: .045em; }
    .detail-actions .primary { aspect-ratio: auto; background-size: 100% 100%; }
}

.site-footer { padding: 58px clamp(20px,4vw,58px) 24px; }
.footer-panel { max-width: var(--container); margin: auto; padding: 45px; border: 1px solid var(--border); border-radius: 13px; background: linear-gradient(145deg, rgba(29,25,19,.98), rgba(14,12,9,.98)); }
.footer-grid { display: grid; grid-template-columns: 1.35fr .72fr .82fr 1.35fr; }
.footer-column { padding: 0 34px; }
.footer-column:first-child { padding-left: 0; }
.footer-column:last-child { padding-right: 0; }
.footer-column + .footer-column { border-left: 1px solid rgba(198,160,92,.23); }
.footer-brand { flex-direction: row; align-items: center; gap: 12px; margin-bottom: 26px; }
.footer-column h3 { margin: 0 0 20px; color: var(--gold-light); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-column p { margin: 0 0 16px; color: var(--text-muted); font-size: .84rem; }
.footer-links { margin: 0; padding: 0; list-style: none; }
.footer-links li { margin: 7px 0; }
.footer-links a { color: var(--text-muted); font-size: .82rem; }
.footer-links a:hover { color: var(--gold-light); }
.email-link { display: inline-block; margin-top: 8px; padding: 11px 14px; border: 1px solid rgba(198,160,92,.32); border-radius: 6px; color: var(--text); background: rgba(198,160,92,.07); font-size: .76rem; }
.instagram-link { color: var(--gold-light); }
.copyright { margin: 24px 0 0; color: #887d6d; font-size: .72rem; text-align: center; }

.legal-hero h1 { font-size: clamp(2.8rem, 6vw, 5.3rem); }
.legal-main { padding: 58px 0 90px; }
.legal-document { width: min(100%, 900px); margin-inline: auto; padding: clamp(28px, 5vw, 62px); border: 1px solid rgba(198,160,92,.34); border-radius: 16px; background: linear-gradient(145deg, rgba(35,28,19,.94), rgba(15,12,9,.98)); box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.legal-document > :first-child { margin-top: 0; }
.legal-document h2 { margin: 2.5em 0 .7em; color: var(--gold-light); font: 400 clamp(1.45rem, 3vw, 2rem)/1.2 Georgia, "Times New Roman", serif; }
.legal-document h3 { margin: 1.8em 0 .55em; color: #d8bf8a; font-size: 1rem; }
.legal-document p, .legal-document li, .legal-document dd { color: #c7b9a3; line-height: 1.75; }
.legal-document p { margin: 0 0 1em; }
.legal-document ul { margin: .65em 0 1.3em; padding-left: 1.25em; }
.legal-document li + li { margin-top: .4em; }
.legal-document a { color: var(--gold-light); text-decoration: underline; text-decoration-color: rgba(224,193,126,.38); text-underline-offset: 3px; }
.legal-document a:hover { color: var(--text); }
.legal-document address { margin: 1em 0; color: #d8ccb9; font-style: normal; line-height: 1.75; }
.legal-document dl { margin: 1em 0 1.4em; }
.legal-document dt { margin-top: .8em; color: var(--gold); font-size: .7rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.legal-document dd { margin: .15em 0 0; }
.legal-note { margin: 1.5em 0; padding: 16px 18px; border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; background: rgba(198,160,92,.08); }
.legal-updated { margin-top: 3em !important; padding-top: 1.2em; border-top: 1px solid rgba(198,160,92,.2); color: #8f826e !important; font-size: .78rem; }
.deletion-form { max-width: 680px; margin-top: 28px; padding: clamp(22px,4vw,34px); border: 1px solid rgba(198,160,92,.34); border-radius: 12px; background: linear-gradient(145deg, rgba(35,27,18,.86), rgba(16,13,9,.96)); }
.deletion-form label { display: block; margin-bottom: 9px; color: var(--gold-light); font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.deletion-form input[type="email"] { width: 100%; min-height: 50px; padding: 12px 15px; border: 1px solid rgba(198,160,92,.42); border-radius: 8px; color: var(--text); background: rgba(7,6,4,.72); font: inherit; }
.deletion-form input[type="email"]:focus { border-color: var(--gold-light); outline: 2px solid rgba(224,193,126,.18); outline-offset: 2px; }
.deletion-form .button { margin-top: 18px; }
.deletion-form-note { margin: 14px 0 0 !important; color: var(--text-muted) !important; font-size: .78rem !important; }
.deletion-message { max-width: 680px; margin: 24px 0; padding: 16px 18px; border: 1px solid rgba(198,160,92,.36); border-radius: 9px; }
.deletion-message.success { border-color: rgba(91,160,111,.55); color: #cce0d0; background: rgba(29,82,45,.22); }
.deletion-message.error { border-color: rgba(180,83,62,.58); color: #efc5ba; background: rgba(105,35,25,.22); }
.deletion-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (max-width: 1100px) {
    .site-header { height: 86px; }
    .desktop-nav, .header-cta { display: none; }
    .header-inner { justify-content: space-between; }
    .menu-toggle { display: block; }
    .mobile-nav { position: absolute; top: calc(100% - 1px); right: 0; left: 0; display: grid; padding: 13px clamp(20px,4vw,58px) 22px; border-bottom: 1px solid var(--border); background: rgba(10,8,6,.97); box-shadow: 0 18px 30px rgba(0,0,0,.35); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
    .mobile-nav.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
    .mobile-nav a { padding: 11px 0; border-bottom: 1px solid rgba(198,160,92,.12); font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; }
    .mobile-nav .button { margin-top: 14px; }
    .footer-grid { grid-template-columns: repeat(2,1fr); row-gap: 42px; }
    .footer-column { padding: 0 30px; }
    .footer-column:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 820px) {
    .page-hero { min-height: 300px; padding: 108px 0 30px; }
    .page-hero-picture img { object-position: center; }
    .catalog-card { grid-template-columns: 1fr; }
    .catalog-cover { width: min(58%, 230px); min-height: 0; margin: 22px auto 0; }
    .catalog-cover img { height: auto; max-height: 230px; object-fit: contain; }
    .detail-layout { grid-template-columns: 1fr; }
    .detail-visual { position: static; max-width: 470px; }
    .detail-main { padding-top: 130px; }
}
@media (max-width: 560px) {
    .container { padding-inline: 18px; }
    .header-inner { min-height: 0; }
    .brand-name { font-size: .9rem; }
    .brand { min-width: 0; }
    .brand-logo { width: 40px; height: 40px; }
    .page-hero { min-height: 270px; padding: 98px 0 24px; }
    .page-hero-copy { padding: 4px 0; }
    .page-hero-copy::before { top: -12px; right: -18px; bottom: -12px; left: -12px; }
    .page-hero h1 { font-size: 2.55rem; }
    .page-hero p:last-child { font-size: .92rem; line-height: 1.55; }
    .catalog-main { padding-top: 38px; }
    .detail-main { padding-top: 116px; }
    .catalog-toolbar { align-items: stretch; }
    .catalog-toolbar > label { display: grid; width: 100%; gap: 6px; }
    .sort-select { width: 100%; }
    .filter-button { min-height: 40px; padding: 7px 13px; font-size: .82rem; }
    .catalog-card-body { padding: 25px 22px; }
    .title-row > img { width: 40px; height: 40px; }
    .case-meta { display: grid; gap: 6px; }
    .detail-title { font-size: 2.15rem; }
    .detail-copy .title-row > img { width: 42px; height: 42px; }
    .detail-lead { margin: 20px 0 0; font-size: 1rem; }
    .footer-panel { padding: 34px 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; }
    .footer-column { padding: 0; }
    .footer-column + .footer-column { padding-top: 30px; border-top: 1px solid rgba(198,160,92,.23); border-left: 0; }
    .email-link { overflow-wrap: anywhere; }
    .legal-main { padding: 34px 0 62px; }
    .legal-document { padding: 25px 20px; border-radius: 12px; }
    .legal-document h2 { margin-top: 2em; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
    .page-hero-picture img { transform: scale(1.04); }
}
