:root {
    --bg: #f4f0eb;
    --bg-soft: #fbf8f4;
    --surface: rgba(255, 255, 255, 0.8);
    --surface-strong: #ffffff;
    --surface-dark: #111111;
    --border: rgba(20, 20, 20, 0.1);
    --border-strong: rgba(20, 20, 20, 0.18);
    --text: #141414;
    --muted: #65605a;
    --shadow: 0 26px 80px rgba(30, 22, 13, 0.12);
    --radius: 30px;
    --container: 1240px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Syne", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 209, 120, 0.24), transparent 26%),
        radial-gradient(circle at 84% 16%, rgba(86, 202, 182, 0.16), transparent 24%),
        linear-gradient(180deg, #faf6f0 0%, #f4efe8 42%, #f8f5f0 100%);
    min-height: 100vh;
    line-height: 1.7;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(20, 20, 20, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 20, 20, 0.03) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at center, black 38%, transparent 88%);
    pointer-events: none;
    z-index: 0;
}

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

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

button {
    font: inherit;
}

#cursor-ring,
#cursor-dot {
    display: none;
}

.orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 340px;
    height: 340px;
    top: 120px;
    left: -80px;
    background: rgba(86, 202, 182, 0.24);
}

.orb-2 {
    width: 360px;
    height: 360px;
    right: -120px;
    bottom: 12%;
    background: rgba(235, 116, 84, 0.18);
}

.case-header,
.case-page,
.case-footer,
.wa-float {
    position: relative;
    z-index: 2;
}

.case-header {
    position: sticky;
    top: 0;
    width: min(var(--container), calc(100% - 36px));
    margin: 16px auto 0;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    border-radius: 999px;
    border: 1px solid rgba(20, 20, 20, 0.08);
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 40px rgba(30, 22, 13, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.case-header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 54px rgba(30, 22, 13, 0.14);
}

.back-link,
.quote-link,
.btn-primary-p,
.btn-secondary-p {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 20px;
    border-radius: 999px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.back-link,
.btn-secondary-p {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.7);
    color: var(--muted);
}

.quote-link,
.btn-primary-p {
    background: var(--surface-dark);
    color: #f8f4ef;
    box-shadow: 0 16px 34px rgba(17, 17, 17, 0.14);
    font-weight: 700;
}

.back-link:hover,
.quote-link:hover,
.btn-primary-p:hover,
.btn-secondary-p:hover {
    transform: translateY(-2px);
}

.back-link:hover,
.btn-secondary-p:hover {
    color: var(--text);
    border-color: var(--border-strong);
}

.logo-wrap {
    justify-self: center;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.header-logo {
    height: 40px;
    padding: 8px;
    border-radius: 999px;
    background: #111111;
    box-shadow: 0 10px 20px rgba(17, 17, 17, 0.16);
}

.logo-badge {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.65);
    color: var(--text);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-shell,
.case-footer {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

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

.section-heading {
    max-width: 760px;
    margin-bottom: 38px;
}

.section-heading.centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-label::before,
.section-label::after {
    content: "";
    width: 30px;
    height: 1px;
    background: rgba(20, 20, 20, 0.18);
}

.section-title,
.case-title,
.summary-card h2,
.breakdown-card h3,
.cta-panel h2 {
    font-family: "Marcellus", serif;
    font-weight: 400;
    letter-spacing: -0.045em;
}

.section-title,
.case-title {
    line-height: 0.98;
}

.section-title {
    margin-bottom: 16px;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-subtitle,
.case-lead,
.summary-text,
.breakdown-card p,
.tagline-text {
    color: var(--muted);
    font-size: 1rem;
}

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

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

.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 34px;
    align-items: start;
}

.gallery-panel,
.summary-card,
.breakdown-card {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.64));
    box-shadow: var(--shadow);
}

.gallery-panel,
.summary-column,
.summary-card,
.breakdown-card,
.cta-panel {
    border-radius: var(--radius);
}

.gallery-panel {
    padding: 22px;
}

.gallery-toolbar,
.summary-top,
.cta-row,
.tag-row {
    display: flex;
    flex-wrap: wrap;
}

.gallery-toolbar,
.summary-top {
    justify-content: space-between;
    gap: 12px;
}

.gallery-toolbar {
    margin-bottom: 18px;
}

.eyebrow-pill,
.count-pill,
.meta-pill,
.tag-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(20, 20, 20, 0.1);
    background: rgba(255, 255, 255, 0.74);
    color: var(--text);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.count-pill,
.meta-pill.is-muted {
    background: rgba(20, 20, 20, 0.04);
    color: var(--muted);
}

.gallery-layout {
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 16px;
    align-items: start;
}

.gallery-thumbs {
    display: grid;
    gap: 12px;
    max-height: 620px;
    overflow: auto;
    padding-right: 4px;
}

.gallery-thumbs::-webkit-scrollbar {
    width: 6px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: rgba(20, 20, 20, 0.12);
    border-radius: 999px;
}

.gallery-thumb {
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.76);
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.gallery-thumb img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.gallery-thumb:hover,
.gallery-thumb.is-active {
    border-color: var(--border-strong);
    box-shadow: 0 14px 28px rgba(30, 22, 13, 0.12);
    transform: translateY(-2px);
}

.gallery-stage {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at center, rgba(255, 209, 120, 0.12), transparent 42%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.56));
}

.gallery-stage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.18s ease, opacity 0.18s ease;
    transform: scale(var(--zoom, 1)) translate(var(--tx, 0), var(--ty, 0));
}

.stage-label,
.zoom-label {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    backdrop-filter: blur(16px);
}

.stage-label {
    top: 18px;
    left: 18px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid rgba(20, 20, 20, 0.08);
    background: rgba(17, 17, 17, 0.82);
    color: #f8f4ef;
    font-size: 0.82rem;
    font-weight: 700;
}

.zoom-label {
    right: 18px;
    bottom: 18px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid rgba(20, 20, 20, 0.08);
    background: rgba(255, 255, 255, 0.8);
    color: var(--muted);
    font-size: 0.76rem;
}

.summary-column {
    display: grid;
    gap: 18px;
}

.case-kicker {
    margin-top: 14px;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.case-title {
    margin: 14px 0 18px;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

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

.mini-stat,
.summary-card {
    border-radius: 24px;
}

.mini-stat {
    padding: 20px 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.72);
}

.mini-stat strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 1.65rem;
}

.mini-stat span {
    color: var(--muted);
    font-size: 0.92rem;
}

.summary-card {
    padding: 24px;
}

.summary-card h2 {
    margin-bottom: 14px;
    font-size: 1.5rem;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.feature-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--text);
}

.feature-list li::before {
    content: "";
    width: 9px;
    height: 9px;
    margin-top: 9px;
    border-radius: 999px;
    background: #111111;
    flex: 0 0 auto;
}

.tag-row {
    gap: 10px;
    margin-top: 18px;
}

.cta-row {
    gap: 12px;
}

.ebc-stack {
    display: grid;
    gap: 0;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: var(--shadow);
}

.ebc-frame img {
    width: 100%;
    height: auto;
}

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

.breakdown-card {
    padding: 26px;
}

.breakdown-card strong {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--text);
    font-size: 0.84rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.breakdown-card h3 {
    margin-bottom: 12px;
    font-size: 1.45rem;
    line-height: 1.04;
}

.cta-panel {
    position: relative;
    overflow: hidden;
    padding: 36px;
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 84px rgba(17, 17, 17, 0.18);
}

.cta-panel::before {
    content: "";
    position: absolute;
    inset: -20% 35% auto auto;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(255, 209, 120, 0.16);
    filter: blur(70px);
}

.cta-panel h2 {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin-bottom: 14px;
    color: #f8f4ef;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.02;
}

.tagline-text,
.cta-panel .cta-row {
    position: relative;
    z-index: 1;
}

.tagline-text {
    color: rgba(248, 244, 239, 0.72);
}

.cta-panel .cta-row {
    margin-top: 24px;
}

.case-footer {
    margin-bottom: 30px;
    padding-top: 20px;
    padding-bottom: 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid rgba(20, 20, 20, 0.1);
    color: var(--muted);
}

.case-footer nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.wa-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 60px;
    height: 60px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #31dc74, #14a34f);
    box-shadow: 0 18px 36px rgba(20, 163, 79, 0.35);
}

.wa-float img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

@media (max-width: 1080px) {
    .hero-grid,
    .breakdown-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 24px;
    }

    .gallery-layout {
        grid-template-columns: 1fr;
    }

    .gallery-thumbs {
        grid-auto-flow: column;
        grid-auto-columns: 86px;
        overflow-x: auto;
        overflow-y: hidden;
        max-height: none;
        padding-bottom: 6px;
        padding-right: 0;
    }

    .gallery-stage {
        min-height: 0;
        aspect-ratio: 4 / 5;
    }
}

@media (max-width: 720px) {
    .case-header {
        width: min(var(--container), calc(100% - 20px));
        margin-top: 10px;
        grid-template-columns: 1fr;
        padding: 12px 14px;
        gap: 12px;
        border-radius: 30px;
    }

    .logo-wrap {
        justify-self: start;
    }

    .back-link,
    .quote-link {
        width: 100%;
    }

    .section-shell,
    .case-footer {
        width: min(var(--container), calc(100% - 24px));
    }

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

    .case-title {
        font-size: clamp(2rem, 10vw, 3.2rem);
    }

    .section-title {
        font-size: clamp(1.8rem, 8.5vw, 2.7rem);
    }

    .section-label::before,
    .section-label::after {
        width: 18px;
    }

    .stat-row {
        grid-template-columns: 1fr;
    }

    .gallery-panel {
        padding: 16px;
    }

    .gallery-toolbar {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 14px;
    }

    .gallery-thumbs {
        grid-auto-columns: 74px;
        gap: 10px;
    }

    .gallery-stage {
        min-height: 0;
        aspect-ratio: 1 / 1;
        border-radius: 20px;
    }

    .stage-label,
    .zoom-label {
        font-size: 0.72rem;
    }

    .stage-label {
        top: 12px;
        left: 12px;
        padding: 0 10px;
        min-height: 36px;
    }

    .zoom-label {
        right: 12px;
        bottom: 12px;
        padding: 0 10px;
        min-height: 36px;
    }

    .summary-card,
    .breakdown-card,
    .cta-panel {
        padding: 20px;
        border-radius: 24px;
    }

    .mini-stat {
        padding: 18px 16px;
        text-align: center;
    }

    .tag-row {
        gap: 8px;
    }

    .eyebrow-pill,
    .count-pill,
    .meta-pill,
    .tag-row span {
        min-height: 34px;
        padding: 0 10px;
        font-size: 0.68rem;
        letter-spacing: 0.08em;
    }

    .cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-row > * {
        width: 100%;
    }

    .case-footer {
        flex-direction: column;
        gap: 10px;
        padding-bottom: 82px;
    }

    .case-footer nav {
        gap: 12px;
    }

    .wa-float {
        width: 56px;
        height: 56px;
        right: 16px;
        bottom: 16px;
    }
}
