:root {
    --bg: #f6f1e8;
    --surface: rgba(255, 250, 244, 0.82);
    --surface-strong: rgba(255, 251, 246, 0.94);
    --text: #15211d;
    --muted: #5c6762;
    --line: rgba(21, 33, 29, 0.1);
    --accent: #0b8771;
    --accent-dark: #0d5d50;
    --accent-soft: rgba(11, 135, 113, 0.1);
    --warm: #d88759;
    --shadow: 0 18px 48px rgba(20, 35, 31, 0.1);
    --radius-lg: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --shell: min(1180px, calc(100vw - 24px));
    --scroll-offset: 104px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--scroll-offset);
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(216, 135, 89, 0.16), transparent 32%),
        radial-gradient(circle at top right, rgba(11, 135, 113, 0.14), transparent 28%),
        linear-gradient(180deg, #fcf8f3 0%, var(--bg) 100%);
}

[id] {
    scroll-margin-top: var(--scroll-offset);
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Fraunces", serif;
    font-weight: 700;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(2.5rem, 10vw, 5rem);
    line-height: 0.95;
}

h2 {
    font-size: clamp(1.75rem, 6vw, 2.9rem);
    line-height: 1;
}

h3 {
    font-size: 1.06rem;
    line-height: 1.18;
}

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

.page-chrome {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.page-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(48px);
    opacity: 0.72;
    animation: drift 16s ease-in-out infinite;
}

.orb-a {
    width: 220px;
    height: 220px;
    top: 24px;
    left: -56px;
    background: rgba(216, 135, 89, 0.24);
}

.orb-b {
    width: 240px;
    height: 240px;
    top: 180px;
    right: -80px;
    background: rgba(11, 135, 113, 0.18);
    animation-delay: -7s;
}

@keyframes drift {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, 16px, 0);
    }
}

.shell {
    width: var(--shell);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-shell {
    padding: 18px 0;
}

.eyebrow,
.case-meta-label,
.role-period,
.journey-pill-period {
    color: var(--accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    font-weight: 800;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 10px 0 0;
}

.header-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 248, 240, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 30px rgba(20, 35, 31, 0.08);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #15362f, #0b8771);
    color: #fff;
    font-weight: 800;
}

.brand-copy {
    display: grid;
    gap: 1px;
}

.brand-copy strong {
    font-size: 0.94rem;
}

.brand-copy span {
    font-size: 0.76rem;
    color: var(--muted);
}

.nav-toggle {
    display: inline-block;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    background: rgba(21, 33, 29, 0.06);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 5px auto;
    background: var(--text);
}

.site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    gap: 10px;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 249, 243, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.site-nav > a:not(.button) {
    font-size: 0.94rem;
    color: var(--muted);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button-primary {
    background: linear-gradient(135deg, var(--accent), #159c86);
    color: #fff;
    box-shadow: 0 14px 28px rgba(11, 135, 113, 0.22);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.64);
    border-color: var(--line);
}

.button-small {
    width: 100%;
}

.text-link {
    color: var(--accent-dark);
    font-weight: 800;
}

.hero-layout,
.service-grid,
.case-grid {
    display: grid;
    gap: 14px;
}

.hero-copy,
.service-card,
.narrative-card,
.contact-banner,
.case-card {
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: var(--surface);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
}

.hero-copy,
.service-card,
.narrative-card,
.contact-banner {
    padding: 20px;
}

.hero-layout {
    align-items: center;
}

.hero-main {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.hero-content {
    display: grid;
    align-content: start;
    max-width: 100%;
}

.hero-lead {
    margin-top: 14px;
    max-width: 43rem;
    font-size: 1rem;
    line-height: 1.55;
}

.hero-actions,
.hero-direct,
.contact-direct-list,
.highlight-list,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-direct a,
.hero-direct span {
    font-size: 0.92rem;
    color: var(--muted);
}

.hero-footer {
    display: grid;
    gap: 16px;
    margin-top: 12px;
}

.hero-portrait {
    margin: 0;
    width: 72px;
    height: 88px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--surface-strong);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 10px 24px rgba(20, 35, 31, 0.12);
}

.hero-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 14%;
}

@media (max-width: 759px) {
    :root {
        --scroll-offset: 92px;
    }

    .hero-layout {
        gap: 12px;
    }

    .hero-copy {
        padding: 18px 18px 16px;
    }

    .hero-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .hero-content h1 {
        max-width: none;
        font-size: clamp(2.45rem, 12.6vw, 4rem);
        line-height: 0.94;
    }

    .hero-lead {
        margin-top: 10px;
        font-size: 0.98rem;
    }

    .hero-portrait {
        display: none;
    }

    .hero-footer {
        margin-top: 12px;
        gap: 12px;
    }

    .hero-actions {
        gap: 10px;
    }

    .hero-actions .button {
        padding-inline: 18px;
    }
}

.section-heading {
    display: grid;
    gap: 10px;
    margin-bottom: 14px;
}

.service-hook {
    display: grid;
    gap: 16px;
    padding: 18px 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(255, 251, 246, 0.94), rgba(241, 250, 246, 0.86)),
        var(--surface);
    box-shadow: var(--shadow);
}

.service-hook-copy {
    display: grid;
    gap: 8px;
}

.service-hook-copy h3 {
    font-size: 1.22rem;
}

.service-hook-copy p:last-child {
    color: var(--text);
    max-width: 44rem;
}

.service-hook-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-hook-chip {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(11, 135, 113, 0.14);
    color: var(--accent-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.service-card {
    padding: 18px;
}

.service-card p,
.case-teaser {
    font-size: 0.95rem;
}

.case-grid {
    --case-grid-gap: 16px;
    display: grid;
    gap: var(--case-grid-gap);
    align-items: start;
}

.case-card {
    overflow: hidden;
    min-height: 0;
    height: auto;
    position: relative;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.case-card:hover {
    transform: translateY(-2px);
}

.case-card[open] {
    border-color: rgba(11, 135, 113, 0.26);
    box-shadow: 0 24px 54px rgba(20, 35, 31, 0.12);
}

.case-summary {
    display: grid;
    gap: 12px;
    padding: 18px;
    cursor: pointer;
    list-style: none;
    height: auto;
    align-content: start;
}

.case-summary::-webkit-details-marker {
    display: none;
}

.case-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.case-badge {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.case-badge-vertical {
    background: rgba(11, 135, 113, 0.1);
    color: var(--accent-dark);
}

.case-badge-discipline {
    border: 1px solid transparent;
}

.case-badge-ai {
    background: rgba(216, 135, 89, 0.14);
    color: #8a4d2f;
    border-color: rgba(216, 135, 89, 0.2);
}

.case-badge-analytics {
    background: rgba(23, 71, 120, 0.12);
    color: #1d4e7a;
    border-color: rgba(23, 71, 120, 0.16);
}

.case-badge-hybrid {
    background: rgba(90, 79, 180, 0.12);
    color: #5147a2;
    border-color: rgba(90, 79, 180, 0.16);
}

.case-title {
    font-family: "Fraunces", serif;
    font-size: 1.18rem;
    line-height: 1.15;
    color: var(--text);
}

.case-teaser {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.case-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: 2px;
    color: var(--accent-dark);
    font-size: 0.82rem;
    font-weight: 800;
}

.case-toggle::after {
    content: "→";
    font-size: 0.9rem;
}

.case-card[open] .case-toggle::after {
    content: "↑";
}

.case-summary-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.case-summary-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(11, 135, 113, 0.22), rgba(11, 135, 113, 0));
}

.toggle-close {
    display: none;
}

.case-card[open] .toggle-open {
    display: none;
}

.case-card[open] .toggle-close {
    display: inline;
}

.case-details {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-top: 1px solid var(--line);
    animation: reveal-panel 220ms ease;
    align-content: start;
    background: rgba(255, 255, 255, 0.36);
}

@media (max-width: 1079px) {
    .case-card[open] {
        height: auto;
        max-height: none;
    }

    .case-card[open] .case-summary,
    .case-card[open] .case-details {
        min-height: 0;
        overflow: visible;
    }
}

@keyframes case-float {
    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -4px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .case-card {
        animation: case-float 10s ease-in-out infinite;
    }

    .case-card:nth-child(2n) {
        animation-delay: -2.6s;
    }

    .case-card:nth-child(3n) {
        animation-delay: -5.1s;
    }

    .case-card:hover,
    .case-card[open] {
        animation-play-state: paused;
    }
}

@keyframes reveal-panel {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.case-detail-grid,
.case-meta {
    display: grid;
    gap: 10px;
}

.case-detail,
.case-meta-box {
    padding: 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.58);
    border: 1px solid var(--line);
}

.case-detail p,
.case-meta-box strong,
.case-details .text-link {
    font-size: 0.9rem;
}

.case-meta-box strong,
.role-card strong {
    display: block;
    margin-top: 8px;
    color: var(--text);
    line-height: 1.45;
}

.tag {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.narrative-card {
    display: grid;
    gap: 18px;
}

.narrative-lead {
    max-width: none;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.7;
}

.highlight-pill {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--accent-dark);
}

.journey-map {
    position: relative;
    display: grid;
    gap: 14px;
    padding-left: 28px;
}

.journey-map::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 11px;
    width: 2px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(11, 135, 113, 0.52), rgba(216, 135, 89, 0.36));
}

.journey-direction {
    width: fit-content;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.journey-road {
    display: none;
}

.journey-step {
    position: relative;
    z-index: 2;
}

.journey-step::before {
    content: "";
    position: absolute;
    top: 26px;
    left: -23px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--warm));
    box-shadow: 0 0 0 8px rgba(255, 248, 240, 0.92);
}

.journey-pill {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 16px 48px 16px 18px;
    list-style: none;
    cursor: pointer;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 250, 244, 0.92);
    box-shadow: 0 14px 34px rgba(20, 35, 31, 0.08);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.journey-pill::-webkit-details-marker {
    display: none;
}

.journey-step[open] .journey-pill {
    transform: translateY(-2px);
    border-color: rgba(11, 135, 113, 0.26);
    background: linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(237, 247, 244, 0.92));
    box-shadow: 0 22px 48px rgba(20, 35, 31, 0.12);
}

.journey-step[open] {
    z-index: 14;
}

.journey-pill-role {
    font-family: "Fraunces", serif;
    font-size: 1.05rem;
    line-height: 1.12;
    color: var(--text);
}

.journey-pill-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    color: var(--accent-dark);
    font-size: 0.78rem;
    font-weight: 800;
    transform: translateY(-50%);
}

.journey-panel-wrap {
    display: grid;
    grid-template-rows: 0fr;
    margin-top: 0;
    opacity: 0;
    transition: grid-template-rows 280ms ease, margin-top 280ms ease, opacity 220ms ease;
}

.journey-step[open] .journey-panel-wrap {
    grid-template-rows: 1fr;
    margin-top: 12px;
    opacity: 1;
    position: relative;
    z-index: 16;
}

.journey-panel {
    overflow: hidden;
    padding: 16px 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(249, 253, 251, 0.96));
    border: 1px solid rgba(215, 224, 219, 0.9);
    box-shadow: 0 18px 38px rgba(20, 35, 31, 0.12);
    position: relative;
    z-index: 16;
}

.journey-company {
    color: var(--muted);
}

.journey-panel strong {
    display: block;
    margin-top: 8px;
    color: var(--text);
    line-height: 1.5;
}

.contact-banner {
    display: grid;
    gap: 16px;
    align-items: center;
}

.contact-direct-list {
    align-items: center;
}

.site-footer {
    padding: 24px 0 20px;
}

.footer-shell,
.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-shell {
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-bottom {
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.88rem;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 420ms ease, transform 420ms ease;
}

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

@media (min-width: 760px) {
    :root {
        --shell: min(1180px, calc(100vw - 40px));
    }

    .section-shell {
        padding: 28px 0;
    }

    .nav-toggle {
        display: none;
    }

    .site-nav {
        position: static;
        display: flex;
        align-items: center;
        gap: 18px;
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .button-small {
        width: auto;
    }

    .hero-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .hero-main {
        grid-template-columns: 292px minmax(0, 1fr);
        gap: 28px;
        align-items: start;
    }

    .hero-portrait {
        width: 252px;
        height: 317px;
        border-radius: 28px;
    }

    .hero-content {
        padding-top: 0;
    }

    .hero-content h1 {
        font-size: clamp(3.35rem, 5.8vw, 4.9rem);
        line-height: 0.92;
        max-width: 14ch;
    }

    .hero-footer {
        grid-template-columns: 292px minmax(0, 1fr) auto;
        align-items: end;
        gap: 20px;
    }

    .hero-direct {
        grid-column: 1 / span 2;
    }

    .hero-actions {
        grid-column: 3;
        justify-content: flex-end;
        align-self: end;
    }

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

    .service-hook {
        grid-template-columns: minmax(0, 1.2fr) auto;
        align-items: center;
    }

    .service-hook-chips {
        justify-content: flex-end;
    }

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

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

    .narrative-card {
        grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
        align-items: start;
        gap: 22px;
    }

    .narrative-card > .narrative-lead {
        align-self: center;
    }

    .highlight-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        align-content: start;
    }

    .highlight-pill {
        display: flex;
        align-items: center;
        min-height: 100%;
        border-radius: 18px;
        padding: 12px 14px;
        line-height: 1.35;
    }

    .contact-banner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .footer-shell,
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .footer-links {
        justify-items: end;
    }
}

@media (min-width: 920px) {
    .journey-map {
        display: block;
        min-height: 760px;
        padding-left: 0;
        overflow: visible;
    }

    .journey-map::before {
        display: none;
    }

    .journey-road {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        pointer-events: none;
        overflow: visible;
    }

    .journey-road-shadow {
        fill: none;
        stroke: rgba(21, 33, 29, 0.09);
        stroke-width: 42;
        stroke-linecap: round;
        filter: drop-shadow(0 20px 30px rgba(20, 35, 31, 0.08));
    }

    .journey-road-base {
        fill: none;
        stroke: rgba(255, 250, 244, 0.92);
        stroke-width: 34;
        stroke-linecap: round;
    }

    .journey-road-center {
        fill: none;
        stroke: rgba(11, 135, 113, 0.48);
        stroke-width: 3;
        stroke-linecap: round;
        stroke-dasharray: 12 16;
    }

    .journey-road marker path {
        fill: none;
        stroke: rgba(11, 135, 113, 0.48);
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .journey-step {
        position: absolute;
        width: min(260px, 24vw);
        z-index: 2;
    }

    .journey-step::before {
        display: none;
    }

    .journey-step-1 {
        top: 10px;
        left: 0;
    }

    .journey-step-2 {
        top: 112px;
        left: 17%;
    }

    .journey-step-3 {
        top: 198px;
        left: 36%;
    }

    .journey-step-4 {
        top: 286px;
        left: 56%;
    }

    .journey-step-5 {
        top: 398px;
        left: 66%;
    }

    .journey-step-6 {
        top: 500px;
        right: 0;
        width: min(250px, 22vw);
    }

    .journey-direction {
        position: absolute;
        z-index: 3;
        backdrop-filter: blur(8px);
    }

    .journey-direction-start {
        top: 8px;
        left: 18px;
    }

    .journey-direction-end {
        right: 12px;
        bottom: 12px;
    }

    .journey-pill {
        min-height: 86px;
        padding: 18px 50px 18px 20px;
    }

    .journey-pill::before {
        content: "";
        position: absolute;
        left: 14px;
        top: 50%;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--accent), var(--warm));
        box-shadow: 0 0 0 8px rgba(255, 248, 240, 0.96);
        transform: translateY(-50%);
    }

    .journey-pill-period,
    .journey-pill-role {
        padding-left: 18px;
    }

    .journey-panel-wrap {
        position: absolute;
        top: calc(100% + 14px);
        left: 0;
        width: min(360px, 32vw);
        margin-top: 0;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transform: translateY(10px) scale(0.98);
        transition: max-height 320ms ease, opacity 220ms ease, transform 220ms ease;
        display: block;
        z-index: 16;
    }

    .journey-step[open] .journey-panel-wrap {
        max-height: 340px;
        opacity: 1;
        pointer-events: auto;
        position: absolute;
        margin-top: 0;
        transform: translateY(0) scale(1);
    }

    .journey-step-4 .journey-panel-wrap,
    .journey-step-5 .journey-panel-wrap,
    .journey-step-6 .journey-panel-wrap {
        left: auto;
        right: 0;
    }

    .journey-step-5 .journey-panel-wrap,
    .journey-step-6 .journey-panel-wrap {
        top: auto;
        bottom: calc(100% + 14px);
        transform: translateY(-10px) scale(0.98);
    }

    .journey-step-5[open] .journey-panel-wrap,
    .journey-step-6[open] .journey-panel-wrap {
        transform: translateY(0) scale(1);
    }

    .journey-step-6 .journey-panel-wrap {
        top: 50%;
        right: calc(100% + 18px);
        bottom: auto;
        width: min(380px, 34vw);
        transform: translateY(-50%) scale(0.98);
    }

    .journey-step-6[open] .journey-panel-wrap {
        transform: translateY(-50%) scale(1);
    }

    .journey-panel {
        overflow: auto;
        max-height: 340px;
        scrollbar-width: thin;
    }
}

@media (min-width: 1080px) {
    .case-grid {
        --case-row-size: 212px;
        --case-overlay-space: 0px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-auto-rows: var(--case-row-size);
        grid-auto-flow: dense;
    }

    .case-grid.has-overlay-open {
        padding-bottom: var(--case-overlay-space);
    }

    .case-card,
    .case-summary {
        height: 100%;
    }

    .case-grid.has-open .case-card:not([open]) {
        transform: scale(0.992);
        opacity: 0.93;
    }

    .case-grid.has-open .case-card:not([open]) .case-summary {
        padding: 16px;
        gap: 10px;
    }

    .case-grid.has-open .case-card:not([open]) .case-teaser {
        -webkit-line-clamp: 3;
    }

    .case-card[open].case-card--wide-open {
        display: grid;
        grid-column: span 2;
        grid-row: span 2;
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
        align-items: stretch;
        height: calc((var(--case-row-size) * 2) + var(--case-grid-gap));
        max-height: calc((var(--case-row-size) * 2) + var(--case-grid-gap));
    }

    .case-card[open].case-card--overlay-open {
        overflow: visible;
        z-index: 12;
        box-shadow: 0 18px 36px rgba(20, 35, 31, 0.12);
    }

    .case-card[open] .case-summary {
        padding: 20px;
        border-right: 1px solid var(--line);
        border-bottom: 0;
        background: linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(246, 252, 249, 0.94));
        min-height: 100%;
    }

    .case-card[open].case-card--overlay-open .case-summary {
        padding: 18px;
        border-right: 0;
        border-bottom: 0;
        min-height: var(--case-row-size);
    }

    .case-card[open] .case-teaser {
        -webkit-line-clamp: 4;
    }

    .case-card[open] .case-details {
        padding: 18px;
        border-top: 0;
        min-height: 100%;
        overflow: auto;
        align-content: start;
        scrollbar-width: thin;
    }

    .case-card[open].case-card--overlay-open .case-details {
        position: absolute;
        top: calc(100% + 12px);
        right: 0;
        width: calc(200% + var(--case-grid-gap));
        max-height: 380px;
        padding: 18px;
        border: 1px solid rgba(11, 135, 113, 0.2);
        border-top: 1px solid rgba(11, 135, 113, 0.2);
        border-radius: var(--radius-lg);
        background: linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(246, 252, 249, 0.96));
        box-shadow: 0 24px 54px rgba(20, 35, 31, 0.16);
        overflow: auto;
        z-index: 15;
    }

    .case-card[open] .case-detail,
    .case-card[open] .case-meta-box {
        padding: 12px;
    }

    .case-card[open].case-card--overlay-open .case-detail-grid,
    .case-card[open].case-card--overlay-open .case-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .case-card[open] .case-badge {
        padding: 7px 11px;
    }

    .case-card[open] .tag-list {
        gap: 8px;
    }

    .case-card[open] .tag {
        padding: 7px 10px;
        font-size: 0.78rem;
    }
}

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 16px;
    transform: translateY(0);
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 1;
    pointer-events: auto;
}

.cookie-consent.is-hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.cookie-consent-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 20px 28px;
    box-shadow: 0 -4px 32px rgba(20, 35, 31, 0.12);
    backdrop-filter: blur(12px);
}

.cookie-consent-copy {
    flex: 1;
    min-width: 0;
}

.cookie-consent-copy strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text);
}

.cookie-consent-copy p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--muted);
}

.cookie-consent-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
    align-items: center;
}

.cookie-decline-btn {
    background: none;
    border: none;
    font: inherit;
    font-size: 0.82rem;
    color: var(--muted);
    cursor: pointer;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

.cookie-decline-btn:hover {
    color: var(--text);
    background: var(--accent-soft);
}

@media (max-width: 600px) {
    .cookie-consent-inner {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 20px;
    }

    .cookie-consent-actions {
        width: 100%;
        justify-content: center;
    }
}
