/* Homepage sequential video reel */
.homepage-video-section {
    padding: 62px 0;
    background: #f4f0e8;
    position: relative;
}

.homepage-video-card {
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(0, 1.35fr);
    height: 800px;
    min-height: 0;
    overflow: hidden;
    background: #102522;
    border: 1px solid rgba(214, 181, 108, .35);
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(18, 36, 33, .16);
}

.homepage-video-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px clamp(24px, 2.8vw, 42px);
    min-height: 0;
    overflow: hidden;
    color: #fff;
}

.homepage-video-copy .premium-eyebrow {
    color: #d6b56c;
    margin-bottom: 10px;
}

.homepage-video-copy h2 {
    margin: 0 0 20px;
    color: #fff;
    font: 500 clamp(1.9rem, 2.8vw, 3rem)/.98 'Cormorant Garamond', serif;
    letter-spacing: -.02em;
}

.homepage-video-copy h2 em {
    color: #d6b56c;
    font-style: italic;
}

.homepage-video-copy p {
    max-width: 430px;
    margin: 0 0 14px;
    color: rgba(255, 255, 255, .72);
    font: 400 .82rem/1.55 'Montserrat', sans-serif;
}

.homepage-video-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    color: #d6b56c;
    font: 700 .72rem/1 'Montserrat', sans-serif;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
}

.homepage-video-link i { transition: transform .25s ease; }
.homepage-video-link:hover { color: #fff; }
.homepage-video-link:hover i { transform: translateX(5px); }

.homepage-video-frame {
    position: relative;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    background: #0b1716;
}

.homepage-video-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(8, 25, 22, .26), transparent 34%), linear-gradient(0deg, rgba(4, 14, 13, .48), transparent 30%);
}

.homepage-video-player {
    display: block;
    width: 100%;
    height: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    object-position: center;
    background: #eef0ed;
}

.homepage-video-empty {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px;
    color: rgba(255, 255, 255, .85);
    text-align: center;
    background: linear-gradient(135deg, rgba(16, 37, 34, .92), rgba(104, 67, 39, .72));
}

.homepage-video-empty i {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 6px;
    place-items: center;
    color: #102522;
    background: #d6b56c;
    border-radius: 50%;
}

.homepage-video-empty span {
    font: 600 1rem/1.4 'Montserrat', sans-serif;
}

.homepage-video-empty small {
    max-width: 280px;
    color: rgba(255, 255, 255, .65);
    font: 400 .72rem/1.5 'Montserrat', sans-serif;
}

.homepage-video-empty code {
    color: #f0d795;
    font-size: .68rem;
}

.homepage-video-reel-ready .homepage-video-empty { display: none; }

.homepage-video-label {
    position: absolute;
    right: 24px;
    bottom: 20px;
    left: 24px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: rgba(255, 255, 255, .82);
    font: 600 .65rem/1.2 'Montserrat', sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.homepage-video-label span:last-child { color: #d6b56c; }

@media (max-width: 768px) {
    .homepage-video-section { padding: 48px 0; }
    .homepage-video-card { grid-template-columns: 1fr; height: auto; border-radius: 20px; }
    .homepage-video-frame { order: -1; height: 220px; min-height: 0; }
    .homepage-video-player { height: 220px; min-height: 0; }
    .homepage-video-copy { padding: 34px 24px 38px; }
    .homepage-video-copy h2 { font-size: clamp(2.35rem, 12vw, 3.8rem); }
    .homepage-video-copy p { font-size: .88rem; line-height: 1.7; }
    .homepage-video-label { right: 16px; bottom: 14px; left: 16px; font-size: .56rem; }
}

@media (max-width: 380px) {
    .homepage-video-frame, .homepage-video-player { height: 190px; }
    .homepage-video-label { display: none; }
}

/* Four-window staggered reel */
.homepage-video-card {
    grid-template-columns: minmax(300px, .76fr) minmax(0, 1.24fr);
    height: 700px;
    min-height: 0;
}

.homepage-video-copy {
    min-height: 0;
    overflow: hidden;
}

.homepage-video-frame {
    height: 100%;
    min-height: 0;
    background: #102522;
}

.homepage-video-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    height: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.homepage-video-tile {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 10px;
    background: #edf0ed;
    cursor: pointer;
    isolation: isolate;
}

.homepage-video-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(4, 15, 14, .64));
    opacity: .8;
    transition: opacity .25s ease;
}

.homepage-video-tile:hover::after,
.homepage-video-tile:focus-visible::after { opacity: 1; }

.homepage-video-tile:focus-visible {
    outline: 2px solid #d6b56c;
    outline-offset: -3px;
}

.homepage-video-tile-player {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #edf0ed;
    pointer-events: none;
}

.homepage-video-number,
.homepage-video-open-hint {
    position: absolute;
    z-index: 2;
    color: #fff;
    font: 700 .6rem/1 'Montserrat', sans-serif;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.homepage-video-number { top: 10px; left: 11px; color: #d6b56c; }
.homepage-video-open-hint { right: 10px; bottom: 10px; opacity: .9; }
.homepage-video-open-hint i { margin-right: 4px; }

.homepage-video-frame::after {
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(8, 25, 22, .08), transparent 34%), linear-gradient(0deg, rgba(4, 14, 13, .08), transparent 30%);
}

.homepage-video-frame .homepage-video-label { z-index: 4; }

.homepage-video-empty {
    z-index: 5;
}

.homepage-video-reel-ready .homepage-video-empty { display: none; }

.homepage-video-modal[hidden] { display: none !important; }

.homepage-video-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(4, 15, 14, .84);
    backdrop-filter: blur(8px);
}

.homepage-video-modal-dialog {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 1100px);
    height: min(88vh, 720px);
    padding: 18px;
    border: 1px solid rgba(214, 181, 108, .5);
    border-radius: 18px;
    background: #071615;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .45);
}

.homepage-video-modal-player {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #071615;
}

.homepage-video-modal-close {
    position: absolute;
    top: -16px;
    right: -16px;
    z-index: 2;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #d6b56c;
    color: #102522;
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}

body.homepage-video-modal-open { overflow: hidden; }

@media (max-width: 768px) {
    .homepage-video-card { grid-template-columns: 1fr; height: auto; }
    .homepage-video-frame { height: 300px; }
    .homepage-video-copy { padding: 30px 24px 34px; }
    .homepage-video-modal { padding: 14px; }
    .homepage-video-modal-dialog { height: min(82vh, 620px); padding: 10px; }
    .homepage-video-modal-close { top: -10px; right: -6px; }
}

@media (max-width: 380px) {
    .homepage-video-frame { height: 240px; }
}
