/* ============================================================
   WALK-OFF 199X — landing page
   Faux VHS / CRT broadcast. Brand: teal / magenta / mint on a
   deep teal-black ground. Real logo SVGs + the game's own fonts.
   ============================================================ */

/* --- 1. FONTS (the game's own typefaces) --- */
@font-face { font-family: 'Display';     src: url('fonts/Engebrechtre Ex Bd.otf')    format('opentype'); font-weight: 800; }
@font-face { font-family: 'DisplayItal'; src: url('fonts/Engebrechtre Ex Bd It.otf') format('opentype'); font-weight: 800; font-style: italic; }
@font-face { font-family: 'DisplayCond'; src: url('fonts/Engebrechtre Bd.otf')       format('opentype'); font-weight: 700; }
@font-face { font-family: 'Script';      src: url('fonts/Strato-linked.otf')         format('opentype'); }
@font-face { font-family: 'UI';          src: url('fonts/Poppins-SemiBold.ttf')      format('truetype'); font-weight: 600; }
@font-face { font-family: 'Body';        src: url('fonts/Poppins-Regular.ttf')       format('truetype'); font-weight: 400; }
@font-face { font-family: 'Body';        src: url('fonts/Poppins-Medium.ttf')        format('truetype'); font-weight: 500; }
@font-face { font-family: 'Brandmark';   src: url('fonts/Lineal-Black.ttf')          format('truetype'); }  /* Volta Verve personal wordmark */

/* --- 2. TOKENS (Walk-Off 199X brand palette) --- */
:root {
    --porcelain: #FCFFFA;
    --ink:       #061F24;   /* deep teal-black (from keyline #08323A) */
    --panel:     #0A2C33;
    --panel-2:   #0E3A42;

    --teal:    #19B4BD;
    --mint:    #62E0A4;
    --magenta: #FF2EA6;
    --keyline: #08323A;

    --text:  var(--porcelain);
    --muted: rgba(252, 255, 250, 0.58);
    --line:  rgba(252, 255, 250, 0.14);

    --accent: var(--magenta);

    --font-mark:  'Display', 'Arial Black', sans-serif;
    --font-bcast: 'UI', sans-serif;
    --font-card:  'Script', cursive;
    --font-body:  'Body', sans-serif;

    --wrap: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--ink);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

/* --- 3. GLOBAL VHS OVERLAYS (scanlines + grain + vignette) --- */
.crt-overlay { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.crt-overlay::before {   /* scanlines */
    content: ''; position: absolute; inset: 0;
    background: repeating-linear-gradient(to bottom,
        rgba(0,0,0,0) 0px, rgba(0,0,0,0) 2px,
        rgba(0,0,0,0.16) 3px, rgba(0,0,0,0.16) 4px);
    mix-blend-mode: multiply; opacity: 0.5;
}
.crt-overlay::after {    /* vignette */
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,0.55) 100%);
}
.grain {
    position: fixed; inset: -8%; pointer-events: none; z-index: 91; opacity: 0.05;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    animation: grainshift 0.6s steps(3) infinite;
}
@keyframes grainshift {
    0% { transform: translate(0,0); } 33% { transform: translate(-3%, 2%); }
    66% { transform: translate(2%, -3%); } 100% { transform: translate(0,0); }
}

/* --- 4. HERO --- */
.hero {
    position: relative; min-height: 58vh;
    display: flex; flex-direction: column; justify-content: flex-start;
    overflow: hidden; padding: 9vh 0 40px;
}
.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%; object-fit: cover;
    filter: saturate(1.1) contrast(1.05) brightness(0.6);
}
.hero-bg-tint {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(to bottom, rgba(6,31,36,0.35) 0%, rgba(6,31,36,0.55) 55%, var(--ink) 100%),
        radial-gradient(80% 60% at 50% 40%, transparent, rgba(6,31,36,0.4));
}
.hero .wrap { position: relative; z-index: 3; text-align: center; }

.hero-logo { margin: 0 auto; line-height: 0; }
.hero-logo img {
    width: min(640px, 88%); height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 12px 34px rgba(0,0,0,0.5));
}
.hero-sub {
    color: var(--muted); font-size: 1.05rem;
    margin: -2rem auto 0; max-width: 48ch;   /* negative to close the emblem's bottom whitespace */
}

/* --- 5. WISHLIST CTA (in-hero button + floating copy) --- */
/* shared magenta button look */
.hero-cta, .wishlist-float {
    font-family: var(--font-bcast); font-size: 0.82rem;
    letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
    color: var(--porcelain); background: var(--magenta);
    padding: 15px 30px; border-radius: 4px;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.4), 0 10px 30px rgba(0,0,0,0.45);
}

/* in-hero button, centered under the description */
.hero-cta {
    display: inline-flex; align-items: center; gap: 9px;
    margin: 30px auto 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.45), 0 14px 34px rgba(0,0,0,0.5);
}

/* floating copy — appears once the hero button scrolls out of view */
.wishlist-float {
    position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
    z-index: 95;
    transition: transform 0.2s ease, box-shadow 0.15s ease, opacity 0.2s ease, visibility 0.2s ease;
}
.wishlist-float:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 6px 6px 0 rgba(0,0,0,0.45), 0 14px 34px rgba(0,0,0,0.5);
}
.wishlist-float.is-hidden {
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateX(-50%) translateY(14px);
}

/* --- 6. SECTION SHELL --- */
section.block { position: relative; z-index: 2; padding: 64px 0; }
/* tighten the gap between the clips section and Features */
#watch { padding-bottom: 24px; }
#cards { padding-top: 28px; }
.section-title {
    font-family: var(--font-mark);
    font-size: clamp(2rem, 5.2vw, 4rem);
    line-height: 0.98; letter-spacing: 0; text-transform: uppercase;
    text-align: center;
}
.section-lead { color: var(--muted); font-size: 1.15rem; max-width: 60ch; margin: 22px auto 0; text-align: center; }

/* feature bullet list — centered block, left-aligned items, diamond markers */
.feature-list {
    list-style: none; max-width: 760px; margin: 36px auto 0;
    display: grid; gap: 20px; text-align: left;
}
.feature-list li {
    position: relative; padding-left: 30px;
    color: var(--muted); font-size: 1.05rem; line-height: 1.65;
}
.feature-list li::before {
    content: ''; position: absolute; left: 2px; top: 0.5em;
    width: 12px; height: 12px; background: var(--magenta);
    transform: rotate(45deg);   /* baseball diamond */
}
.feature-list strong { color: var(--text); font-weight: 500; }

/* --- 7. WATCH / CLIP REEL --- */
.clips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.clip {
    position: relative; overflow: hidden; border-radius: 4px;
    background: var(--panel); border: 1px solid var(--line);
    aspect-ratio: 16 / 9; cursor: pointer;
}
.clip video, .clip img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter 0.45s ease; }
.clip.is-active video, .clip.is-active img { filter: none; }
.clip::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow 0.3s; pointer-events: none; }
.clip:hover::after { box-shadow: inset 0 0 0 2px var(--accent); }
.clip .play-hint { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.25s; pointer-events: none; }
.clip:hover .play-hint { opacity: 1; }
.clip .play-hint span {
    width: 54px; height: 54px; border-radius: 50%;
    border: 2px solid var(--porcelain); background: rgba(6,31,36,0.5);
    display: grid; place-items: center; color: var(--porcelain); font-size: 1.1rem;
}


/* --- 9. FOOTER --- */
.site-footer { padding: 60px 0 90px; }
.footer-grid {
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 26px;
    padding-top: 30px; border-top: 1px solid var(--line);
}
.brand-logo { width: 210px; height: auto; }
.footer-meta { color: var(--muted); font-size: 0.8rem; max-width: 42ch; line-height: 1.7; }
.footer-meta a { text-decoration: underline; text-underline-offset: 3px; }
.footer-meta a.brand-name {
    font-family: 'Brandmark', sans-serif;
    color: var(--text); text-decoration: none;
    font-size: 1.15em; letter-spacing: 0.2px;
    transition: color 0.2s ease;
}
.footer-meta a.brand-name:hover { color: var(--magenta); }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
    font-family: var(--font-bcast); font-size: 0.72rem; letter-spacing: 2px;
    text-transform: uppercase; color: var(--muted); text-decoration: none;
}
.footer-links a:hover { color: var(--text); }

/* --- 10. LIGHTBOX --- */
.lightbox {
    position: fixed; inset: 0; z-index: 100;
    display: flex; align-items: center; justify-content: center; padding: 4vh 4vw;
    background: rgba(6,15,17,0.94); backdrop-filter: blur(6px);
    opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-video {
    max-width: 92vw; max-height: 88vh; border-radius: 4px; background: #000;
    box-shadow: 0 0 0 2px var(--accent), 0 24px 70px rgba(0,0,0,0.6);
    transform: scale(0.96); transition: transform 0.25s;
}
.lightbox.open .lightbox-video { transform: scale(1); }
.lightbox-close {
    position: absolute; top: 16px; right: 24px; background: none; border: none;
    color: var(--porcelain); font-size: 2.4rem; line-height: 1; cursor: pointer; opacity: 0.7;
}
.lightbox-close:hover { opacity: 1; }

/* --- 11. REVEAL --- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --- 12. RESPONSIVE --- */
@media (max-width: 900px) {
    .clips { grid-template-columns: 1fr; }
    section.block { padding: 48px 0; }
}
@media (max-width: 520px) {
    .wrap { padding: 0 20px; }
    .wishlist-float { bottom: 16px; padding: 13px 22px; font-size: 0.74rem; }
    .site-footer { padding: 50px 0 90px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .grain { animation: none; }
}
