/* ── Datto case study ── */

/* ── Hero: full-bleed explainer carousel ── */
.datto-hero {
    background: #000;
    padding: 0;
}

.datto-hero .explainer-carousel {
    gap: 0;
    position: relative;
}

.datto-hero .carousel-slide {
    background: #000;
}

.datto-hero .carousel-slide .explainer-media {
    aspect-ratio: unset;
    width: 100%;
    height: min(calc(100vw * 9 / 16), calc(100vh - 64px));
}

.datto-hero .carousel-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 48px 0 20px;
    margin: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
}

.datto-hero .carousel-arrow { color: rgba(255,255,255,0.7); }
.datto-hero .carousel-arrow:hover { color: #fff; }

.datto-hero .carousel-year { color: rgba(255,255,255,0.55); }
.datto-hero .carousel-year:hover { color: rgba(255,255,255,0.85); }

.datto-hero .carousel-year.is-active {
    color: #fff;
    border-bottom-color: #fff;
}

.datto-hero .carousel-slide .media-placeholder {
    background: #1a1a1a;
    border-color: #444;
}

.datto-hero .carousel-slide .media-placeholder p {
    color: #777;
}

@font-face {
    font-family: 'Datto DIN';
    src: url('fonts/DattoDIN-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Goldana';
    src: url('fonts/Goldana.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

/* ── Type specimens ── */
.type-row {
    display: flex;
    gap: 20px;
}

.type-box {
    flex: 1;
    background: #fff;
    padding: 40px;
}

.type-display-din {
    font-family: 'Datto DIN', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: #333;
}

.type-display-goldana {
    font-family: 'Goldana', Georgia, serif;
    font-size: 3rem;
    font-weight: 400;
    line-height: 1;
    color: #333;
}

.type-sample-body {
    margin-top: 16px;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #555;
    max-width: 320px;
}

/* ── Hero (full-bleed 16:9) ── */
.hero-media {
    background: #000;
}

.hero-media video,
.hero-media img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Sections list ── */
.sections-list {
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Section heading outside card ── */
.section-heading-outer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.section-heading-outer.section-gap {
    margin-top: 108px;
}

.section-label { margin-bottom: 4px; }
.section-head  { margin-bottom: 0; }

.section-intro {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #444;
    max-width: 70ch;
    margin-top: 4px;
}

/* ── White card ── */
.card {
    background: #fff;
    padding: 64px;
}

/* ── Explainer carousel ── */
.explainer-carousel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.carousel-viewport {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 0;
}

.carousel-slide .explainer-media {
    background: #ededed;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.carousel-slide .explainer-media video,
.carousel-slide .explainer-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.carousel-arrow {
    background: none;
    border: 0;
    font-size: 1.25rem;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 8px;
    transition: color 0.15s ease;
}

.carousel-arrow:hover { color: #000; }

.carousel-years {
    display: flex;
    gap: 8px;
}

.carousel-year {
    background: none;
    border: 0;
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #bbb;
    cursor: pointer;
    padding: 6px 14px;
    transition: color 0.15s ease;
}

.carousel-year:hover { color: #666; }

.carousel-year.is-active {
    color: #000;
    border-bottom: 2px solid #000;
}

/* ── Out-of-home media walls (native ultra-wide aspect) ── */
.wall-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wall-stack + .wall-stack {
    margin-top: 20px;
}

.wall-media {
    background: #000;
    overflow: hidden;
}

.wall-media video,
.wall-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.wall-media.wall-left  { aspect-ratio: 5120 / 1080; }
.wall-media.wall-right { aspect-ratio: 4480 / 1080; }

.wall-caption {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #666;
}

/* ── Placeholder slot ── */
.media-placeholder {
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: #fff;
    border: 1px dashed #c4c4c4;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.jumbotron-media .media-placeholder,
.wall-media .media-placeholder {
    background: #1a1a1a;
    border-color: #444;
}

.media-placeholder p {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #aaa;
}

.jumbotron-media .media-placeholder p,
.wall-media .media-placeholder p {
    color: #777;
}

/* ── Split layout (text + media) ── */
.section-split {
    display: flex;
    gap: 64px;
    align-items: center;
}

.split-media { flex: 1.72; }

.split-media video,
.split-media img {
    width: 100%;
    height: auto;
    display: block;
}

.split-text { flex: 1; }

.execution-head {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 12px;
}

.section-body {
    font-size: 1.05rem;
    line-height: 1.6;
    color: inherit;
    max-width: 75ch;
}

/* ── CTA ── */
.cta-outer {
    padding: 48px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* ── Lightbox (image + video, matches Beer Boom) ── */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.lightbox.active { display: flex; }

.lightbox img,
.lightbox video {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: #fff;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    background: none;
    border: none;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-trigger { cursor: zoom-in; }

/* ── Responsive ── */
@media (max-width: 1200px) {
    .explainer-carousel { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .card { padding: 32px 24px; }
    .section-heading-outer.section-gap { margin-top: 64px; }
    .section-split { flex-direction: column; gap: 24px; }
}
