:root {
    --ink: #10231f;
    --paper: #e7e1d2;
    --lime: #c7db73;
    --coral: #e77a61;
    --line: rgba(231, 225, 210, .28);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    background: var(--ink);
    color: var(--paper);
    font-family: 'DM Mono', monospace;
}

.stage {
    min-height: 100svh;
    position: relative;
    overflow: hidden;
    padding: 28px 5vw 25px;
    display: grid;
    grid-template-columns: minmax(280px, .8fr) minmax(320px, 1.2fr);
    grid-template-rows: auto 1fr auto;
    gap: 22px 8vw;
    background:
        radial-gradient(circle at 90% 15%, rgba(231, 122, 97, .18), transparent 28%),
        linear-gradient(115deg, #10231f 0%, #19342d 60%, #21463b 100%);
}

.grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .08;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.topbar,
.footer {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.eyebrow,
.live-indicator,
.camera-label,
.kicker {
    font-size: 11px;
    letter-spacing: .16em;
}

.eyebrow {
    color: var(--lime);
}

.live-indicator {
    display: flex;
    gap: 9px;
    align-items: center;
}

.live-indicator i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--coral);
    box-shadow: 0 0 0 5px rgba(231, 122, 97, .15);
    animation: pulse 1.8s infinite;
}

.message {
    grid-column: 1;
    align-self: center;
    position: relative;
    z-index: 1;
    animation: rise .8s both ease-out;
}

.kicker {
    color: var(--coral);
    margin: 0 0 25px;
}

h1 {
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-size: clamp(42px, 5vw, 78px);
    line-height: .98;
    font-weight: 600;
    letter-spacing: 0;
}

h1 em {
    color: var(--lime);
    font-style: normal;
}

.signature {
    max-width: 300px;
    margin: 34px 0 0;
    color: rgba(231, 225, 210, .7);
    font-size: 12px;
    line-height: 1.7;
}

.camera-frame {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
    justify-self: stretch;
    position: relative;
    aspect-ratio: 4 / 5;
    max-height: 68svh;
    background: #071311;
    overflow: hidden;
    animation: reveal 1s .12s both ease-out;
}

video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
    opacity: 0;
    transition: opacity .6s ease;
}

video.active {
    opacity: 1;
}

.camera-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(16, 35, 31, .08), transparent 45%, rgba(16, 35, 31, .45));
}

.camera-placeholder {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-content: center;
    justify-items: center;
    text-align: center;
    background: linear-gradient(145deg, #1e4339, #0d201c);
}

.camera-placeholder.hidden {
    opacity: 0;
    pointer-events: none;
}

.camera-icon {
    color: var(--lime);
    font-size: 27px;
    margin-bottom: 17px;
}

.camera-placeholder p {
    color: var(--paper);
    font-size: 12px;
    line-height: 1.7;
    margin: 0 0 23px;
}

button {
    border: 1px solid var(--lime);
    color: var(--ink);
    background: var(--lime);
    padding: 13px 17px;
    cursor: pointer;
    font: 500 10px 'DM Mono', monospace;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: background .2s, color .2s, transform .2s;
}

button:hover {
    background: transparent;
    color: var(--lime);
    transform: translateY(-2px);
}

button:focus-visible {
    outline: 2px solid var(--paper);
    outline-offset: 4px;
}

.frame-corner {
    position: absolute;
    width: 25px;
    height: 25px;
    z-index: 3;
    border-color: var(--lime);
    border-style: solid;
}

.corner-tl {
    top: 17px;
    left: 17px;
    border-width: 2px 0 0 2px;
}

.corner-tr {
    top: 17px;
    right: 17px;
    border-width: 2px 2px 0 0;
}

.corner-bl {
    bottom: 17px;
    left: 17px;
    border-width: 0 0 2px 2px;
}

.corner-br {
    bottom: 17px;
    right: 17px;
    border-width: 0 2px 2px 0;
}

.camera-label {
    z-index: 4;
    position: absolute;
    bottom: 21px;
    left: 22px;
    right: 22px;
    display: flex;
    justify-content: space-between;
    color: var(--paper);
    font-size: 9px;
}

.footer {
    font-size: 10px;
    color: rgba(231, 225, 210, .55);
}

.scroll-mark {
    color: var(--lime);
    letter-spacing: .18em;
}

@keyframes pulse {
    50% {
        opacity: .35;
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(25px) rotate(1deg);
    }

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

@media (max-width: 720px) {
    .stage {
        padding: 21px 24px 20px;
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .topbar {
        flex: 0 0 auto;
    }

    .message {
        margin-top: 4vh;
    }

    .kicker {
        margin-bottom: 16px;
    }

    h1 {
        font-size: clamp(39px, 11vw, 58px);
    }

    .signature {
        margin-top: 20px;
    }

    .camera-frame {
        width: min(100%, 430px);
        align-self: center;
        max-height: none;
        aspect-ratio: 4 / 5;
    }

    .footer {
        margin-top: auto;
    }
}