/* AEvent Project / Case detail (extends homepage.css) */
.ae-case-page {
    --case-space: 96px;
    --case-space-sm: 64px;
    background: var(--ae-paper);
    color: var(--ae-ink);
}

.ae-case-page .ae-about-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 36px 0 0;
    padding: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
}
.ae-case-page .ae-about-breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 180ms ease;
}
.ae-case-page .ae-about-breadcrumb a:hover {
    color: #fff;
}
.ae-case-page .ae-about-breadcrumb [aria-current="page"] {
    color: rgba(255, 255, 255, 0.92);
    max-width: min(48ch, 70vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ae-case-page .ae-about-breadcrumb-sep {
    opacity: 0.55;
}

.ae-case-shell {
    width: calc(100% - 64px);
    max-width: var(--ae-container-max);
    margin-inline: auto;
}

/* ——— Hero ——— */
.ae-case-hero {
    position: relative;
    isolation: isolate;
    min-height: calc(640px + var(--ae-header-height));
    padding-top: var(--ae-header-height);
    overflow: hidden;
    background: #0b0b0b;
    color: #fff;
}
.ae-case-hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #0b0b0b;
}
.ae-case-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}
.ae-case-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 72% 28%, rgba(255, 102, 0, 0.18), transparent 52%),
        linear-gradient(
            115deg,
            #090909 0%,
            rgba(9, 9, 9, 0.94) 28%,
            rgba(9, 9, 9, 0.55) 55%,
            rgba(9, 9, 9, 0.2) 78%,
            transparent 100%
        );
}
.ae-case-hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: calc(100% - 64px);
    max-width: var(--ae-container-max);
    min-height: 640px;
    margin-inline: auto;
}
.ae-case-hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex: 1;
    max-width: 820px;
    padding-block: 48px 88px;
}
.ae-case-hero-label {
    margin: 0 0 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}
.ae-case-hero-heading {
    margin: 0;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.035em;
    line-height: 1.05;
}
.ae-case-hero-highlight {
    margin: 18px 0 0;
    max-width: 36ch;
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 600;
    line-height: 1.35;
    color: var(--ae-orange);
}
.ae-case-hero-description {
    margin: 18px 0 0;
    max-width: 52ch;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
}
.ae-case-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    align-items: center;
    margin-top: 32px;
}
.ae-case-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 4px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    transition: color 180ms ease, border-color 180ms ease;
}
.ae-case-ghost:hover {
    color: var(--ae-orange);
    border-color: var(--ae-orange);
}
.ae-case-ghost--on-dark {
    color: #fff;
}

/* ——— Meta ——— */
.ae-case-meta {
    padding: 36px 0;
    border-bottom: 1px solid var(--ae-divider);
    background: #fff;
}
.ae-case-meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px 28px;
    margin: 0;
}
.ae-case-meta-grid dt {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ae-text-secondary);
}
.ae-case-meta-grid dd {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
}
.ae-case-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}
.ae-case-tags li {
    padding: 6px 12px;
    border: 1px solid var(--ae-divider);
    border-radius: 2px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--ae-text-secondary);
}

/* ——— Sections ——— */
.ae-case-section {
    padding: var(--case-space) 0;
}
.ae-case-section--muted {
    background: #f3f1ec;
}
.ae-case-section--dark {
    background: #0f0f0f;
    color: #fff;
}
.ae-case-section--dark .ae-case-eyebrow {
    color: rgba(255, 255, 255, 0.55);
}
.ae-case-section-head {
    max-width: 640px;
    margin-bottom: 40px;
}
.ae-case-section-head--row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px 24px;
    max-width: none;
}
.ae-case-eyebrow {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ae-text-secondary);
}
.ae-case-heading {
    margin: 0;
    font-size: clamp(32px, 4.2vw, 52px);
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.ae-case-lead,
.ae-case-copy {
    margin: 18px 0 0;
    max-width: 46ch;
    font-size: 17px;
    line-height: 1.75;
    color: var(--ae-text-secondary);
}
.ae-case-section--dark .ae-case-lead,
.ae-case-section--dark .ae-case-copy {
    color: rgba(255, 255, 255, 0.72);
}

.ae-case-split {
    display: grid;
    gap: 40px;
    align-items: start;
}
@media (min-width: 900px) {
    .ae-case-split {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 64px;
    }
}

.ae-case-challenge-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 16px;
    counter-reset: challenge;
}
.ae-case-challenge-list li {
    position: relative;
    padding: 18px 18px 18px 64px;
    border: 1px solid var(--ae-divider);
    border-radius: 4px;
    background: #fff;
    font-size: 16px;
    line-height: 1.6;
    counter-increment: challenge;
}
.ae-case-challenge-list li::before {
    content: counter(challenge, decimal-leading-zero);
    position: absolute;
    left: 18px;
    top: 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ae-orange);
}

.ae-case-concept {
    display: grid;
    gap: 36px;
    align-items: center;
}
@media (min-width: 960px) {
    .ae-case-concept {
        grid-template-columns: 0.95fr 1.05fr;
        gap: 56px;
    }
}
.ae-case-figure {
    margin: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #e8e4dc;
    aspect-ratio: 4 / 3;
}
.ae-case-figure img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ae-case-journey {
    display: grid;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 800px) {
    .ae-case-journey {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }
}
.ae-case-journey li {
    padding: 24px;
    border: 1px solid var(--ae-divider);
    border-radius: 4px;
    background: #fff;
}
.ae-case-journey-n {
    display: block;
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--ae-orange);
}
.ae-case-journey h3 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -0.02em;
}
.ae-case-journey p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--ae-text-secondary);
}

.ae-case-dna {
    display: grid;
    gap: 18px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}
@media (min-width: 800px) {
    .ae-case-dna {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.ae-case-dna-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 14px;
}
.ae-case-dna-top strong {
    color: var(--ae-orange);
    font-variant-numeric: tabular-nums;
}
.ae-case-dna-bar {
    height: 4px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.12);
}
.ae-case-dna-bar span {
    display: block;
    height: 100%;
    background: var(--ae-orange);
}

.ae-case-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
@media (min-width: 800px) {
    .ae-case-results {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
.ae-case-results article {
    padding: 22px;
    border: 1px solid var(--ae-divider);
    border-radius: 4px;
    background: #fff;
}
.ae-case-results strong {
    display: block;
    margin-bottom: 8px;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.03em;
    color: var(--ae-orange);
}
.ae-case-results span {
    font-size: 14px;
    line-height: 1.45;
    color: var(--ae-text-secondary);
}

/* ——— Gallery ——— */
.ae-case-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 700px) {
    .ae-case-gallery {
        grid-template-columns: 1.35fr 1fr 1fr;
        gap: 14px;
    }
    .ae-case-gallery-item.is-wide {
        grid-column: 1 / -1;
    }
    .ae-case-gallery-item.is-tall {
        grid-row: span 2;
    }
}
.ae-case-gallery-item {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #e8e4dc;
    cursor: zoom-in;
    aspect-ratio: 4 / 3;
}
.ae-case-gallery-item.is-wide {
    aspect-ratio: 21 / 9;
}
.ae-case-gallery-item.is-tall {
    aspect-ratio: auto;
    min-height: 100%;
}
.ae-case-gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease;
}
.ae-case-gallery-item:hover img,
.ae-case-gallery-item:focus-visible img {
    transform: scale(1.04);
}

/* ——— Related ——— */
.ae-case-related {
    display: grid;
    gap: 24px;
}
@media (min-width: 800px) {
    .ae-case-related {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }
}
.ae-case-related-card {
    color: inherit;
    text-decoration: none;
}
.ae-case-related-media {
    overflow: hidden;
    border-radius: 4px;
    background: #e8e4dc;
    aspect-ratio: 4 / 3;
}
.ae-case-related-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 420ms ease;
}
.ae-case-related-card:hover img {
    transform: scale(1.04);
}
.ae-case-related-cat {
    margin: 14px 0 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ae-text-secondary);
}
.ae-case-related-card h3 {
    margin: 0;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 700;
    font-style: italic;
    letter-spacing: -0.02em;
    transition: color 180ms ease;
}
.ae-case-related-card:hover h3 {
    color: var(--ae-orange);
}
.ae-case-text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ae-ink);
    text-decoration: none;
    border-bottom: 1px solid rgba(17, 17, 17, 0.28);
    padding-bottom: 2px;
}
.ae-case-text-link:hover {
    color: var(--ae-orange);
    border-color: var(--ae-orange);
}
.ae-case-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--ae-divider);
}
.ae-case-pager a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ae-ink);
    text-decoration: none;
}
.ae-case-pager a:hover {
    color: var(--ae-orange);
}

/* ——— CTA band ——— */
.ae-case-band {
    padding: var(--case-space) 0;
    background: #0f0f0f;
    color: #fff;
}
.ae-case-band-box {
    display: grid;
    gap: 28px;
    align-items: end;
}
@media (min-width: 900px) {
    .ae-case-band-box {
        grid-template-columns: 1.2fr auto;
        gap: 48px;
    }
}
.ae-case-band-label {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}
.ae-case-band-heading {
    margin: 0;
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.ae-case-band-copy {
    margin: 16px 0 0;
    max-width: 46ch;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.72);
}
.ae-case-band-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

/* ——— Lightbox ——— */
.ae-case-lightbox {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(9, 9, 9, 0.96);
    color: #fff;
}
.ae-case-lightbox::backdrop {
    background: rgba(9, 9, 9, 0.96);
}
.ae-case-lightbox-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.ae-case-lightbox-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
}
.ae-case-lightbox-count {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.7);
}
.ae-case-lightbox-stage {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 0 16px;
}
.ae-case-lightbox-stage img {
    max-width: min(1200px, 86vw);
    max-height: 76vh;
    width: auto;
    height: auto;
    object-fit: contain;
}
.ae-case-lightbox-btn {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}
.ae-case-lightbox-cap {
    margin: 0;
    padding: 16px 24px 28px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 767px) {
    .ae-case-shell,
    .ae-case-hero-container {
        width: calc(100% - 32px);
    }
    .ae-case-hero {
        min-height: calc(520px + var(--ae-header-height));
    }
    .ae-case-hero-container {
        min-height: 520px;
    }
    .ae-case-meta-grid {
        grid-template-columns: 1fr 1fr;
    }
    .ae-case-section {
        padding: var(--case-space-sm) 0;
    }
    .ae-case-results {
        grid-template-columns: 1fr 1fr;
    }
    .ae-case-lightbox-stage .ae-case-lightbox-btn {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ae-case-gallery-item img,
    .ae-case-related-media img {
        transition: none;
    }
}
