/* The television is an introduction to the existing site, with its original red palette. */
@supports (overflow: clip) {
    html, body { overflow-x: clip; }
}

.ec-tv-intro[hidden] { display: none; }
.ec-tv-intro {
    --ec-tv-height: 100svh;
    --ec-tv-copy-opacity: 1;
    --ec-tv-room-opacity: 0;
    --ec-tv-zoom: 1;
    --ec-tv-transition-height: clamp(200px, 28svh, 264px);
    --ec-tv-transition-tail: 88px;
    --ec-tv-cue-inset: 30px;
    position: relative;
    width: 100%;
    height: 240svh;
    min-height: 100vh;
    flex: none;
    isolation: isolate;
    background: #090708;
}
.ec-tv-intro::after {
    content: '';
    position: absolute;
    z-index: 2;
    top: calc(100% + var(--ec-tv-transition-tail) - var(--ec-tv-transition-height));
    left: 0;
    right: 0;
    height: var(--ec-tv-transition-height);
    background: url('tv-marker-transition.webp') center bottom / max(100%, 1120px) 100% no-repeat;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28%, #000);
    mask-image: linear-gradient(to bottom, transparent, #000 28%, #000);
    pointer-events: none;
}
.ec-tv-stage {
    position: sticky;
    z-index: 1;
    top: 0;
    height: var(--ec-tv-height);
    overflow: hidden;
    background: #090708;
}
.ec-tv-room {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 44%, rgba(73, 12, 16, .18), rgba(5, 5, 6, .82)), url('sitebg.jpg') center / cover;
    opacity: var(--ec-tv-room-opacity);
}
.ec-tv-room::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(5, 4, 5, .75), transparent 24%, transparent 80%, rgba(5, 4, 5, .6));
}
.ec-tv-set {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(1100px, 132vw, calc(var(--ec-tv-height) * 1.2));
    aspect-ratio: 1535 / 1024;
    transform-origin: 50% 50%;
    transform: translate(-50%, -50%);
    will-change: transform;
}
.ec-tv-glass {
    position: absolute;
    left: 21.6%;
    top: 13.9%;
    width: 56.9%;
    height: 61.3%;
    overflow: hidden;
    border-radius: 3.4% / 5%;
    background: #080808;
    box-shadow: 0 0 28px rgba(137, 14, 24, .18);
}
.ec-tv-picture {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.62);
}
.ec-tv-glass::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 40px 5px rgba(0, 0, 0, .72);
}
.ec-tv-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .8));
}
.ec-tv-copy {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 82px clamp(24px, 5vw, 96px) 100px;
    text-align: left;
    opacity: var(--ec-tv-copy-opacity);
}
.ec-tv-headline {
    max-width: min(780px, 90%);
    margin: 0;
    color: #e5dfe1;
    font-size: clamp(44px, 5.5vw, 88px);
    line-height: 1.04;
    letter-spacing: -.025em;
    text-shadow: -1px 0 rgba(218, 42, 71, .2), 1px 0 rgba(154, 117, 139, .18);
}
.ec-tv-year {
    display: block;
    margin-bottom: 10px;
    font-size: 1.32em;
    line-height: 1;
}
.ec-tv-headline em { color: #8c2028; font-style: normal; }
.ec-tv-quote {
    max-width: 460px;
    margin: 26px 0 0;
    padding-left: 16px;
    border-left: 2px solid #64151d;
    color: #c4b7bd;
    font: 16px / 1.75 var(--font-ui);
    overflow-wrap: anywhere;
}
.ec-tv-quote p { margin: 0; white-space: pre-line; }
.ec-tv-quote cite {
    display: block;
    margin-top: 8px;
    color: #e6c44a;
    font-size: 12px;
    font-style: normal;
}
.ec-tv-quote[hidden], .ec-tv-quote cite[hidden] { display: none; }
.ec-tv-countdown[hidden] { display: none; }
.ec-tv-countdown {
    position: relative;
    flex: none;
    width: min(1080px, calc(100% - 48px));
    margin: 72px auto 48px;
    padding: 36px 18px 32px;
    scroll-margin-top: 52px;
}
.ec-tv-countdown #countdown-title {
    color: #d7d0d0;
    font: 16px / 1.5 var(--font-ui);
    letter-spacing: .05em;
    margin-bottom: 18px;
}
.ec-tv-countdown #countdown {
    font-size: clamp(38px, 6.4vw, 78px);
    line-height: 1.1;
    gap: clamp(8px, 2vw, 24px);
    text-shadow: 0 0 18px rgba(211, 47, 47, .22);
}
.ec-tv-countdown #countdown [id^='label-'] {
    color: #e14b4b;
    font: 12px / 1.5 var(--font-ui);
    letter-spacing: .06em;
    margin-top: 10px;
}
.ec-tv-scroll {
    position: absolute;
    z-index: 4;
    left: clamp(24px, 5vw, 96px);
    bottom: calc(var(--ec-tv-cue-inset) + (var(--ec-tv-transition-height) - var(--ec-tv-transition-tail) + 16px - var(--ec-tv-cue-inset)) * var(--ec-tv-room-opacity));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    color: #d1babb;
    font: 12px / 1.5 var(--font-ui);
    letter-spacing: .08em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}
.ec-tv-scroll::after {
    content: '';
    width: 7px;
    height: 7px;
    border-right: 1px solid #d32f2f;
    border-bottom: 1px solid #d32f2f;
    transform: rotate(45deg);
}
.ec-tv-scroll:hover { color: #fff; }
.ec-tv-intro a:focus-visible, .ec-tv-intro button:focus-visible { outline: 1px solid #d32f2f; outline-offset: 6px; }
.ec-tv-countdown #fireworks-container { z-index: 1; }

/* Analog effects remain inside the glass, so the frame and site stay clean. */
.ec-tv-raster, .ec-tv-grain, .ec-tv-scanline, .ec-tv-phosphor {
    position: absolute;
    z-index: 2;
    pointer-events: none;
}
.ec-tv-raster {
    inset: 0;
    background-image: linear-gradient(0deg, transparent 50%, rgba(0, 0, 0, .65) 50%);
    background-size: 100% calc(3px / var(--ec-tv-zoom));
    opacity: .4;
}
.ec-tv-grain {
    inset: -6%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
    background-size: 120px 120px;
    mix-blend-mode: screen;
    opacity: .05;
    animation: ec-tv-grain .4s steps(2, end) infinite;
}
.ec-tv-scanline {
    left: 0;
    right: 0;
    top: -20%;
    height: 18%;
    background: linear-gradient(transparent, rgba(255, 255, 255, .045), transparent);
    animation: ec-tv-scan 13s linear infinite;
}
.ec-tv-phosphor {
    inset: 0;
    background: #fff;
    mix-blend-mode: overlay;
    opacity: .018;
    animation: ec-tv-phosphor 7s steps(1, end) infinite;
}
@keyframes ec-tv-scan { from { top: -20%; } to { top: 120%; } }
@keyframes ec-tv-grain {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-2%, 1%); }
    50% { transform: translate(1%, -2%); }
    75% { transform: translate(-1%, 2%); }
}
@keyframes ec-tv-phosphor {
    0%, 100% { opacity: .014; }
    13% { opacity: .025; }
    42% { opacity: .008; }
    67% { opacity: .018; }
}
.ec-tv-effects-off .ec-tv-raster,
.ec-tv-effects-off .ec-tv-grain,
.ec-tv-effects-off .ec-tv-scanline,
.ec-tv-effects-off .ec-tv-phosphor { display: none; animation: none; }

/* The warning tape reaches the viewport naturally, then stays at the top. */
.police-tape-container { position: sticky; top: 0; flex: none; z-index: 60; }
#site-header { scroll-margin-top: 36px; background: #080808; }
#news-article { scroll-margin-top: 52px; }

@media (max-width: 640px) {
    .ec-tv-intro { height: 220svh; }
    .ec-tv-copy { padding: 75px 24px 104px; }
    .ec-tv-headline { max-width: 100%; font-size: clamp(35px, 8.8vw, 54px); }
    .ec-tv-quote { max-width: 330px; font-size: 14px; margin-top: 24px; }
    .ec-tv-countdown { width: calc(100% - 24px); margin: 64px auto 32px; padding: 28px 10px 26px; }
    .ec-tv-countdown #countdown-title { font-size: 14px; }
    .ec-tv-countdown #countdown { font-size: clamp(32px, 9.5vw, 52px); gap: 8px; }
    .ec-tv-countdown #countdown [id^='label-'] { font-size: 10px; }
    .ec-tv-scroll { left: 24px; font-size: 11px; }
}
@media (max-height: 500px) and (orientation: landscape) {
    .ec-tv-intro { --ec-tv-transition-height: 144px; --ec-tv-transition-tail: 92px; --ec-tv-cue-inset: 18px; }
    .ec-tv-copy { padding: 48px 30px 44px; }
    .ec-tv-headline { font-size: 32px; line-height: 1; }
    .ec-tv-year { margin-bottom: 6px; }
    .ec-tv-quote { margin-top: 12px; font-size: 12px; max-width: 440px; }
    .ec-tv-countdown #countdown-title { font-size: 12px; margin-bottom: 8px; }
    .ec-tv-countdown #countdown { font-size: 34px; }
    .ec-tv-countdown #countdown [id^='label-'] { margin-top: 4px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .ec-tv-intro { height: 100svh; }
    .ec-tv-intro::after { z-index: 0; }
    .ec-tv-set { will-change: auto; }
    .ec-tv-scroll { bottom: 56px; }
    .ec-tv-grain, .ec-tv-scanline, .ec-tv-phosphor { animation: none; }
    .ec-tv-grain { opacity: .025; }
    .police-tape-container .marquee-track { animation: none; }
}
