:root {
    color-scheme: light;
    --bg: #f2f0eb;
    --surface: #fffdfa;
    --surface-strong: #171512;
    --ink: #171512;
    --muted: #6f6a62;
    --line: #ddd6cc;
    --accent: #d63b2f;
    --accent-2: #008891;
    --gold: #b88727;
    --shadow: 0 24px 70px rgba(23, 21, 18, 0.12);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #111417;
    --surface: #191e22;
    --surface-strong: #f7f2ea;
    --ink: #f7f2ea;
    --muted: #b2aa9f;
    --line: #313940;
    --accent: #ff5b4d;
    --accent-2: #34c6d3;
    --gold: #d9a642;
    --shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        linear-gradient(90deg, rgba(23, 21, 18, 0.045) 1px, transparent 1px),
        linear-gradient(0deg, rgba(23, 21, 18, 0.035) 1px, transparent 1px),
        var(--bg);
    background-size: 42px 42px;
    color: var(--ink);
    font-family: Inter, Arial, sans-serif;
}

body::selection {
    background: var(--accent);
    color: #fff;
}

a {
    color: inherit;
    text-decoration-color: color-mix(in srgb, var(--accent) 72%, transparent);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.progress {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    transform: scaleX(0);
    transform-origin: left;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--gold));
}

.topbar {
    position: sticky;
    z-index: 10;
    top: 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    padding: 14px clamp(18px, 4vw, 44px);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(18px);
}

.brand,
.nav a,
.icon-button {
    min-height: 42px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: var(--ink);
    font-weight: 900;
    text-decoration: none;
    letter-spacing: 0;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--surface-strong);
    color: var(--bg);
    font-family: "JetBrains Mono", monospace;
    font-size: 16px;
}

.nav {
    display: inline-flex;
    justify-content: center;
    gap: 8px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface) 76%, transparent);
}

.nav a {
    display: inline-flex;
    align-items: center;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.nav a[aria-current="page"] {
    background: var(--ink);
    color: var(--bg);
}

.icon-button {
    justify-self: end;
    display: inline-grid;
    place-items: center;
    width: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: color-mix(in srgb, var(--surface) 76%, transparent);
    color: var(--ink);
    cursor: pointer;
}

.icon-button svg {
    width: 18px;
    height: 18px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.8fr);
    gap: clamp(26px, 5vw, 70px);
    align-items: end;
    min-height: min(620px, calc(100vh - 74px));
    padding: clamp(32px, 5vw, 76px) clamp(18px, 5vw, 72px) 24px;
}

.hero-plain {
    min-height: auto;
    padding-bottom: 8px;
}

.hero-copy {
    max-width: 820px;
}

.kicker,
.eyebrow,
.card-tag,
.rail-label {
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.kicker,
.eyebrow {
    color: var(--accent);
}

.hero h1 {
    max-width: 780px;
    margin: 12px 0 0;
    font-size: clamp(52px, 8vw, 112px);
    line-height: 0.88;
    letter-spacing: 0;
}

.tagline {
    display: inline-flex;
    margin: 24px 0 0;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-weight: 800;
}

.hero-summary {
    max-width: 670px;
    margin: 22px 0 0;
    color: var(--muted);
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.5;
}

.hero-media {
    position: relative;
    margin: 0;
    min-height: 420px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: var(--surface-strong);
}

.hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.56));
    pointer-events: none;
}

.hero-media::after {
    content: "profil";
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    color: #fff;
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    font-weight: 700;
}

.hero-media img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
    filter: saturate(1.02) contrast(1.04);
}

.page-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 22px clamp(18px, 4vw, 40px) 88px;
}

.page-shell-single {
    display: block;
}

.site-footer {
    width: 100%;
    margin: 0;
    padding: 18px clamp(16px, 4vw, 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface) 72%, transparent);
    color: var(--muted);
}

.site-footer strong {
    color: var(--ink);
}

.footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    min-height: 28px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.footer-contact svg {
    width: 16px;
    height: 16px;
}

.article-body {
    min-width: 0;
}

.intro-panel {
    padding: clamp(26px, 4vw, 42px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.intro-panel h2,
.section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(30px, 4vw, 56px);
    line-height: 1;
}

.lead {
    max-width: 850px;
    margin: 24px 0 0;
    color: var(--ink);
    font-size: clamp(19px, 2.4vw, 28px);
    line-height: 1.35;
    font-weight: 700;
}

.section-block {
    margin-top: 54px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
    margin-bottom: 22px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 18px 48px rgba(23, 21, 18, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
    box-shadow: 0 28px 70px rgba(23, 21, 18, 0.16);
}

.card img {
    width: 100%;
    aspect-ratio: 1.35;
    object-fit: cover;
    background: color-mix(in srgb, var(--surface-strong) 12%, var(--surface));
}

.card-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.card-tag {
    width: fit-content;
    padding: 6px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent-2) 13%, transparent);
    color: var(--accent-2);
}

.card h3 {
    margin: 18px 0 10px;
    font-size: 24px;
    line-height: 1.08;
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.feature-card {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr);
}

.feature-card img {
    height: 100%;
    aspect-ratio: auto;
}

.dossier-intro {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(260px, 0.7fr);
    gap: clamp(22px, 5vw, 58px);
    align-items: end;
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--accent-2) 10%, var(--surface))),
        var(--surface);
    box-shadow: var(--shadow);
}

.dossier-intro h2 {
    margin: 8px 0 0;
    font-size: clamp(38px, 6vw, 84px);
    line-height: 0.95;
}

.dossier-intro p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.5;
}

.dossier-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.dossier-card {
    grid-column: span 6;
    display: grid;
    grid-template-columns: minmax(190px, 0.62fr) minmax(0, 1fr);
    min-height: 310px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 18px 48px rgba(23, 21, 18, 0.09);
}

.dossier-card:nth-child(1),
.dossier-card:nth-child(7) {
    grid-column: span 12;
    grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr);
}

.dossier-image {
    display: block;
    min-height: 100%;
    background: var(--surface-strong);
    overflow: hidden;
}

.dossier-image img {
    width: 100%;
    height: 100%;
    min-height: 310px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.dossier-card:hover .dossier-image img {
    transform: scale(1.04);
}

.dossier-copy {
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 3vw, 32px);
}

.case-number {
    width: fit-content;
    padding: 7px 9px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--bg);
    font-family: "JetBrains Mono", monospace;
    font-size: 12px;
    font-weight: 700;
}

.dossier-copy h3 {
    margin: 18px 0 12px;
    font-size: clamp(25px, 3.4vw, 44px);
    line-height: 1;
}

.dossier-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-height: 42px;
    margin-top: auto;
    padding-top: 22px;
    color: var(--accent);
    font-weight: 900;
    text-decoration: none;
}

.read-more svg {
    width: 18px;
    height: 18px;
}

.home-intro {
    display: grid;
    gap: 18px;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 42%),
        var(--surface);
    box-shadow: var(--shadow);
}

.home-intro h2 {
    max-width: 900px;
    margin: 8px 0 0;
    font-size: clamp(42px, 7vw, 96px);
    line-height: 0.92;
}

.home-intro p:last-child {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.55;
}

.home-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    padding: clamp(26px, 5vw, 52px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 40%),
        linear-gradient(315deg, color-mix(in srgb, var(--accent-2) 12%, transparent), transparent 34%),
        var(--surface);
    box-shadow: var(--shadow);
}

.home-stage-copy {
    max-width: 800px;
}

.home-stage h2 {
    max-width: 760px;
    margin: 8px 0 0;
    font-size: clamp(38px, 6vw, 86px);
    line-height: 0.94;
}

.home-stage-copy p:last-child {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.5;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 22px;
}

.profile-tile {
    position: relative;
    display: grid;
    min-height: 520px;
    align-items: end;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface-strong);
    color: #fff;
    text-decoration: none;
    box-shadow: var(--shadow);
}

.profile-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.74));
}

.profile-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.profile-tile:hover img {
    transform: scale(1.05);
}

.profile-tile > div,
.profile-index {
    position: relative;
    z-index: 1;
}

.profile-index {
    position: absolute;
    top: 18px;
    left: 18px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.22);
    font-family: "JetBrains Mono", monospace;
    font-size: 13px;
    font-weight: 700;
}

.profile-tile .eyebrow {
    color: color-mix(in srgb, #fff 82%, var(--accent));
}

.profile-tile h3 {
    margin: 10px 0 18px;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 0.95;
}

.profile-action {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: #fff;
    color: #171512;
    font-weight: 900;
}

.brief-intro {
    display: grid;
    gap: 18px;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--gold) 14%, transparent), transparent 38%),
        linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--surface-strong) 8%, var(--surface)));
    box-shadow: var(--shadow);
}

.brief-intro h2 {
    max-width: 900px;
    margin: 8px 0 0;
    font-size: clamp(42px, 7vw, 96px);
    line-height: 0.92;
}

.brief-intro p:last-child {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.55;
}

.brief-grid {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.brief-card {
    display: grid;
    grid-template-columns: 74px minmax(210px, 0.46fr) minmax(0, 1fr);
    min-height: 250px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    box-shadow: 0 12px 34px rgba(23, 21, 18, 0.08);
}

.brief-card:nth-child(even) {
    background: color-mix(in srgb, var(--surface) 86%, var(--accent-2) 8%);
}

.brief-number {
    display: grid;
    place-items: center;
    border-right: 1px solid var(--line);
    background: var(--ink);
    color: var(--bg);
    font-family: "JetBrains Mono", monospace;
    font-size: 18px;
    font-weight: 700;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.brief-card img {
    width: 100%;
    height: 100%;
    min-height: 250px;
    object-fit: cover;
    border-right: 1px solid var(--line);
}

.brief-copy {
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 3vw, 34px);
}

.brief-copy h3 {
    margin: 0 0 14px;
    font-size: clamp(26px, 3.6vw, 48px);
    line-height: 0.98;
}

.brief-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.65;
}

.brief-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-height: 42px;
    margin-top: auto;
    padding-top: 18px;
    color: var(--accent);
    font-weight: 900;
    text-decoration: none;
}

.brief-link-muted {
    color: var(--muted);
}

.brief-link svg {
    width: 18px;
    height: 18px;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .card,
    .reveal {
        transition: none;
    }

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

@media (max-width: 980px) {
    .topbar {
        grid-template-columns: 1fr auto;
    }

    .nav {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-media {
        min-height: 360px;
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .home-stage {
        grid-template-columns: 1fr;
    }

    .profile-tile {
        min-height: 360px;
    }

    .dossier-intro,
    .dossier-card,
    .dossier-card:nth-child(1),
    .dossier-card:nth-child(7) {
        grid-template-columns: 1fr;
    }

    .dossier-card {
        grid-column: span 12;
    }

    .brief-card {
        grid-template-columns: 58px minmax(180px, 0.5fr) minmax(0, 1fr);
    }
}

@media (max-width: 680px) {
    body {
        background-size: 34px 34px;
    }

    .topbar {
        grid-template-columns: 1fr auto;
        padding: 12px 14px;
    }

    .brand span:last-child {
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hero {
        padding: 28px 16px 18px;
    }

    .hero h1 {
        font-size: 46px;
    }

    .cards,
    .profile-grid,
    .dossier-grid,
    .feature-card {
        grid-template-columns: 1fr;
    }

    .home-stage {
        padding: 24px;
    }

    .home-stage h2 {
        font-size: 39px;
    }

    .dossier-card,
    .dossier-card:nth-child(1),
    .dossier-card:nth-child(7) {
        grid-column: auto;
    }

    .dossier-image img {
        min-height: 230px;
    }

    .brief-card {
        grid-template-columns: 1fr;
    }

    .brief-number {
        min-height: 44px;
        writing-mode: horizontal-tb;
    }

    .brief-card img {
        min-height: 230px;
        border-right: 0;
    }

    .hero-media,
    .hero-media img {
        min-height: 310px;
    }

    .page-shell {
        padding: 14px 16px 64px;
    }

    .footer-contact {
        justify-content: center;
        font-size: 12px;
    }
}
