/* ═══════════════════════════════════════════════════════════════
   WE NETWORK — Stylesheet
   Base: Espresso / Warmth
   Structure: Tight Grid, Sharper Cards

   Breakpoints:
     - Desktop:  >= 900px  (2-column section grid, sticky headers)
     - Tablet:   600–899px (single-column, reduced spacing)
     - Mobile:   < 600px   (compact layout)
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* ─── KLEUREN ─── */
    --bg-core: #12100e;
    --bg-card: #1c1917;

    --border-subtle: rgba(255, 240, 220, 0.08);
    --border-strong: rgba(255, 240, 220, 0.15);

    --text-main: #f0eadd;
    --text-muted: #9c948e;

    --accent: #e66a4c;

    /* ─── VORMEN ─── */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-pill: 100px;

    /* ─── LAYOUT ─── */
    --container-width: 1280px;
    --container-pad: 2rem;
    --nav-height: 80px;
    --section-pad: 120px;
    --section-grid-left: 320px;
    --sticky-offset: 120px;

    /* ─── TYPOGRAFIE ─── */
    --font-sans: 'Instrument Sans', sans-serif;
    --font-serif: 'Instrument Serif', serif;

    /* ─── Z-INDEX SCHAAL ─── */
    --z-showcase-glow: 0;
    --z-showcase-frame: 1;
    --z-showcase-frame-hover: 2;
    --z-header: 100;
    --z-lightbox: 1000;
    --z-noise: 9999;
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-core);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }

/* ═══════════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════════ */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.text-serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }

/* Noise texture overlay */
.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: var(--z-noise);
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.hand-highlight {
    position: relative;
    display: inline-block;
}
.hand-highlight::after {
    content: '';
    position: absolute;
    left: -5%;
    bottom: -5px;
    width: 110%;
    height: 100%;
    border-bottom: 2px solid var(--accent);
    border-radius: 60% 40% 30% 70% / 10% 20% 10% 20%;
    opacity: 0.8;
    transform: rotate(-1deg);
    pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-header);
    background: linear-gradient(to bottom, var(--bg-core) 0%, rgba(18,16,14,0) 100%);
}

.header__inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
}

.brand {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Nav Menu (Desktop) */
.nav-menu {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
    letter-spacing: 0.02em;
}

.nav-link:hover {
    color: var(--text-main);
}

/* Header Actions (CTA + Hamburger) */
.header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-self: end;
}

/* Hamburger (hidden on desktop) */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.hamburger__line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */

.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    border-bottom: 1px solid var(--border-subtle);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    height: 100%;
    width: 100%;
}

.hero__content {
    padding-right: 4rem;
}

.hero__title {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.hero__title span {
    display: block;
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

.hero__subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 500px;
    line-height: 1.6;
}

.hero__visual {
    position: relative;
    height: 100%;
    min-height: 500px;
    border-left: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.video-placeholder {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 4/5;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
    position: relative;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.2rem;
    background: linear-gradient(to bottom, #faf4eb, #e0d6c8);
    color: var(--bg-core);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid var(--border-strong);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-primary--nav {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    background: var(--accent);
    color: #fff;
    border: none;
    box-shadow: none;
}

.btn-primary--nav:hover {
    background: #d55a3c;
    transform: none;
    box-shadow: none;
}

/* ═══════════════════════════════════════════════════════════════
   SECTIONS (Common)
   ═══════════════════════════════════════════════════════════════ */

.section {
    padding-top: var(--section-pad);
    padding-bottom: var(--section-pad);
    border-bottom: 1px solid var(--border-subtle);
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.sticky-header {
    height: fit-content;
}

.label {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 600;
}

.headline {
    font-size: 2.5rem;
    line-height: 1.15;
    letter-spacing: -0.01em;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   PROCESS
   ═══════════════════════════════════════════════════════════════ */

.process-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    border-left: 2px solid var(--border-subtle);
    padding-left: 3rem;
    position: relative;
}

.process-item { position: relative; }

.process-item::before {
    content: '';
    position: absolute;
    left: -3.6rem;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    background: var(--bg-core);
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    transition: border-color 0.3s;
}

.process-item:hover::before {
    border-color: var(--accent);
    background: var(--accent);
}

.process-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════════════════════ */

.scroll-reveal-section {
    position: relative;
    height: 250vh;
    background: var(--bg-core);
    border-bottom: 1px solid var(--border-subtle);
}

.reveal-sticky-container {
    position: sticky;
    top: var(--nav-height);
    height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
}

.reveal-content {
    max-width: 680px;
    width: 100%;
    padding: 2rem;
    text-align: left;
}

.reveal-content p {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.2);
}

.reveal-content p:last-child {
    margin-top: 3rem;
    font-size: 1.8rem;
}

.reveal-word {
    opacity: 0.3;
    transition: opacity 0.2s ease, color 0.2s ease;
    display: inline;
}

.reveal-word.active {
    opacity: 1;
    color: var(--text-main);
}

.reveal-content p:last-child .reveal-word.active {
    color: var(--accent);
}

.reveal-word.accent {
    color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════════
   VIDEO SHOWCASE
   ═══════════════════════════════════════════════════════════════ */

.showcase {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    padding: 2rem 0;
}

/* Radial glow behind the composition */
.showcase::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(230, 106, 76, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: var(--z-showcase-glow);
}

.showcase-frame {
    position: relative;
    z-index: var(--z-showcase-frame);
    width: 200px;
    aspect-ratio: 9/16;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transform: rotate(calc(var(--frame-rotation, 0deg) * var(--rotation-scale, 1))) translateY(var(--frame-offset, 0px));
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.6s ease, translate 0.6s ease;
    /* Start hidden for scroll reveal */
    opacity: 0;
    translate: 0 40px;
}

.showcase-frame.revealed {
    opacity: 1;
    translate: 0 0;
}

.showcase-frame--featured {
    width: 240px;
}

.showcase-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.showcase-frame video[poster] {
    background-size: cover;
    background-position: center;
}

.showcase-frame__label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    pointer-events: none;
}

/* Hover: glow + scale, siblings dim (desktop only) */
@media (hover: hover) and (pointer: fine) {
    .showcase-frame:hover {
        transform: rotate(calc(var(--frame-rotation, 0deg) * var(--rotation-scale, 1))) translateY(var(--frame-offset, 0px)) scale(1.03);
        box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.4),
            0 0 40px rgba(230, 106, 76, 0.15);
        z-index: var(--z-showcase-frame-hover);
    }

    .showcase:hover .showcase-frame.revealed:not(:hover) {
        opacity: 0.6;
    }

    .showcase-frame:focus-visible {
        transform: rotate(calc(var(--frame-rotation, 0deg) * var(--rotation-scale, 1))) translateY(var(--frame-offset, 0px)) scale(1.03);
        box-shadow:
            0 20px 60px rgba(0, 0, 0, 0.4),
            0 0 40px rgba(230, 106, 76, 0.15);
        z-index: var(--z-showcase-frame-hover);
    }
}

/* ═══════════════════════════════════════════════════════════════
   SHOWCASE LIGHTBOX
   ═══════════════════════════════════════════════════════════════ */

.showcase-lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--z-lightbox);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.showcase-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.showcase-lightbox__video {
    max-height: 85vh;
    aspect-ratio: 9/16;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.showcase-lightbox.active .showcase-lightbox__video {
    transform: scale(1);
}

.showcase-lightbox__video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.showcase-lightbox__close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s, background 0.3s;
}

.showcase-lightbox__close:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════════════════════
   OFFER CARD
   ═══════════════════════════════════════════════════════════════ */

.offer-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-top: 2px solid var(--accent);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.offer-card__title {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.offer-card__desc {
    line-height: 1.6;
    max-width: 480px;
}

.offer-benefits {
    color: var(--text-main);
    margin: 0.5rem 0;
    background: rgba(255, 240, 220, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
}

.offer-benefits--grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.offer-benefits li {
    display: flex;
    gap: 0.75rem;
    padding: 0;
    line-height: 1.6;
}

.offer-footer {
    margin-top: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.offer-price-compact {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
    color: var(--text-main);
    display: flex;
    align-items: baseline;
    margin-left: auto;
}

.offer-price-compact .currency {
    font-size: 1.25rem;
    margin-right: 0.15rem;
    color: var(--accent);
    font-weight: 400;
}

.offer-price-compact .period {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 0.35rem;
}

.offer-actions {
    display: flex;
    align-items: center;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.footer {
    padding-top: 5rem;
    padding-bottom: 5rem;
    text-align: center;
    margin-top: 5rem;
}

.footer-link {
    font-size: 2rem;
    font-family: var(--font-serif);
    display: inline-block;
    margin-bottom: 2rem;
}
.footer-link:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════
   MOBILE MENU OVERLAY
   ═══════════════════════════════════════════════════════════════ */

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg-core);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.mobile-menu__link {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.mobile-menu__link:hover,
.mobile-menu__link:focus {
    color: var(--text-main);
}

/* Hamburger animation (open state) */
.hamburger.active .hamburger__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger__line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Body scroll lock */
.scroll-locked {
    overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE: DESKTOP (>= 900px)
   2-column section grid, sticky headers, hero split layout
   ═══════════════════════════════════════════════════════════════ */

@media (min-width: 900px) {
    .hero__grid {
        grid-template-columns: 1.2fr 0.8fr;
        gap: 0;
    }

    .section-grid {
        grid-template-columns: var(--section-grid-left) 1fr;
    }

    .sticky-header {
        position: sticky;
        top: var(--sticky-offset);
    }

    .offer-benefits--grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem 2rem;
    }

    .offer-footer {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE: TABLET & BELOW (< 900px)
   Single-column layout, reduced spacing
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 899px) {
    .section-grid {
        gap: 2.5rem;
    }

    .hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 80px;
    }

    .hero__content {
        padding-right: 0;
    }

    .hero__visual {
        border-left: none;
        border-top: 1px solid var(--border-subtle);
        min-height: 300px;
        padding: 1.5rem 0;
    }

    .section {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .headline {
        font-size: 2rem;
    }

    .offer-card {
        padding: 2rem;
    }

    .offer-card__title {
        font-size: 1.6rem;
    }

    /* Showcase: smaller frames */
    .showcase {
        gap: 1rem;
    }

    .showcase-frame {
        width: 160px;
        --rotation-scale: 0.5;
    }

    .showcase-frame--featured {
        width: 190px;
    }

    /* Navigation: hide desktop menu, show hamburger */
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .btn-primary--nav {
        padding: 0.35rem 0.9rem;
        font-size: 0.75rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE: MOBILE (< 600px)
   Compact layout, stacked showcase, tighter spacing
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 599px) {
    .container {
        padding: 0 1.25rem;
    }

    .section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .section-grid {
        gap: 2rem;
    }

    /* Hero */
    .hero {
        padding-top: var(--nav-height);
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .hero__subtitle {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .hero__visual {
        min-height: 250px;
    }

    .video-placeholder {
        max-width: 280px;
    }

    /* Typography */
    .headline {
        font-size: 1.75rem;
    }

    .label {
        font-size: 0.7rem;
        margin-bottom: 1rem;
    }

    /* Scroll reveal */
    .reveal-sticky-container {
        height: auto;
        align-items: flex-start;
        padding: 28px 0; /* 28px + 32px content padding = 60px totaal */
    }

    .reveal-content p {
        font-size: 1.2rem;
    }

    .reveal-content p:last-child {
        font-size: 1.4rem;
    }

    /* Process list */
    .process-list {
        padding-left: 1.5rem;
        border-left-width: 1px;
    }

    .process-item::before {
        left: -1.85rem;
        width: 0.7rem;
        height: 0.7rem;
    }

    .process-item h3 {
        font-size: 1.25rem;
    }

    /* Showcase: stack vertically */
    .showcase {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .showcase-frame {
        width: 80%;
        max-width: 280px;
        transform: none !important;
    }

    .showcase-frame--featured {
        width: 85%;
        max-width: 300px;
    }

    /* Lightbox */
    .showcase-lightbox__video {
        max-height: 95vh;
        width: 95vw;
        border-radius: var(--radius-md);
    }

    .showcase-lightbox__close {
        top: 1rem;
        right: 1rem;
    }

    /* Offer card */
    .offer-card {
        padding: 1.5rem;
    }

    .offer-card__title {
        font-size: 1.4rem;
    }

    .offer-card__desc {
        font-size: 0.95rem;
    }

    .offer-benefits {
        padding: 1rem;
    }

    .offer-price-compact {
        font-size: 1.6rem;
        margin-left: 0;
    }

    /* Footer */
    .footer {
        padding-top: 3rem;
        padding-bottom: 3rem;
        margin-top: 3rem;
    }

    .footer .headline {
        font-size: 1.5rem;
    }

    .footer-link {
        font-size: 1.4rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SPOTLIGHT / FLASHLIGHT EFFECT
   ═══════════════════════════════════════════════════════════════ */

.spotlight {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    background: radial-gradient(
        85px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
        rgba(255, 255, 255, 0.12) 0%,
        transparent 100%
    );
    mix-blend-mode: screen;
    will-change: background;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spotlight.active {
    opacity: 1;
}

/* Hide spotlight on touch devices */
@media (hover: none) {
    .spotlight {
        display: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATED FILM GRAIN
   ═══════════════════════════════════════════════════════════════ */

@keyframes grainShift {
    0% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -5%); }
    20% { transform: translate(-10%, 5%); }
    30% { transform: translate(5%, -10%); }
    40% { transform: translate(-5%, 15%); }
    50% { transform: translate(-10%, 5%); }
    60% { transform: translate(15%, 0); }
    70% { transform: translate(0, 10%); }
    80% { transform: translate(-15%, 0); }
    90% { transform: translate(10%, 5%); }
    100% { transform: translate(5%, 0); }
}

.noise--animated {
    opacity: 0.08;
    animation: grainShift 0.2s steps(4) infinite;
}

/* ═══════════════════════════════════════════════════════════════
   CINEMATIC HERO (with video background)
   ═══════════════════════════════════════════════════════════════ */

.hero--cinematic {
    position: relative;
    min-height: 90vh;
    min-height: 90svh; /* Safari mobile fix */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-bottom: 1px solid var(--border-subtle);
}

.hero--cinematic .hero__video-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero--cinematic .hero__video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

@keyframes heroZoom {
    from { transform: scale(1.0); }
    to { transform: scale(1.08); }
}

.hero--cinematic .hero__video-bg video {
    animation: heroZoom 20s ease-in-out infinite alternate;
}

.hero--cinematic .hero__video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        rgba(18, 16, 14, 0.5) 0%,
        rgba(18, 16, 14, 0.9) 100%
    );
}

.hero--cinematic .hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: calc(var(--nav-height) + 2rem) 2rem 4rem;
    max-width: 700px;
}

@media (max-width: 599px) {
    .hero--cinematic .hero__content {
        padding: calc(var(--nav-height) + 1rem) 1.25rem 3rem;
    }
}

.hero--cinematic .hero__title {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
}

.hero--cinematic .hero__subtitle {
    max-width: 580px;
    margin: 0 auto 2.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.hero--cinematic .label {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* ═══════════════════════════════════════════════════════════════
   CAMERA UI OVERLAY
   ═══════════════════════════════════════════════════════════════ */

.camera-ui {
    position: absolute;
    inset: 0;
    top: var(--nav-height); /* Account for fixed header */
    pointer-events: none;
    z-index: 10;
    padding: 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Corner brackets */
.camera-ui__corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: rgba(255, 255, 255, 0.7);
    border-style: solid;
}

.camera-ui__corner--tl {
    top: 1rem;
    left: 1rem;
    border-width: 2px 0 0 2px;
}

.camera-ui__corner--tr {
    top: 1rem;
    right: 1rem;
    border-width: 2px 2px 0 0;
}

.camera-ui__corner--bl {
    bottom: 1rem;
    left: 1rem;
    border-width: 0 0 2px 2px;
}

.camera-ui__corner--br {
    bottom: 1rem;
    right: 1rem;
    border-width: 0 2px 2px 0;
}

/* Top row: REC + Battery */
.camera-ui__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 0.5rem;
}

/* Bottom row: Settings + Timecode */
.camera-ui__bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 0.5rem;
    font-weight: bold;
}

/* REC Indicator */
.camera-ui__rec {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ff3b30;
    font-weight: bold;
    letter-spacing: 1px;
}

.camera-ui__rec-dot {
    width: 10px;
    height: 10px;
    background: #ff3b30;
    border-radius: 50%;
    animation: recBlink 1s infinite;
}

@keyframes recBlink {
    50% { opacity: 0; }
}

/* Camera settings (ISO, F-stop, Shutter) */
.camera-ui__settings {
    line-height: 1.6;
}

/* Timecode */
.camera-ui__timecode {
    font-feature-settings: "tnum";
    letter-spacing: 0.05em;
}

/* Battery indicator */
.camera-ui__battery {
    font-size: 11px;
}

/* Hide on mobile by default, show mobile-specific version */
@media (max-width: 899px) {
    .camera-ui {
        padding: 1rem;
        font-size: 10px;
    }

    .camera-ui__corner {
        width: 15px;
        height: 15px;
    }

    .camera-ui__corner--tl { top: 10px; left: 10px; }
    .camera-ui__corner--tr { top: 10px; right: 10px; }
    .camera-ui__corner--bl { bottom: 10px; left: 10px; }
    .camera-ui__corner--br { bottom: 10px; right: 10px; }
}

/* ═══════════════════════════════════════════════════════════════
   FLOATING EMOJI PARTICLES (TikTok-style)
   ═══════════════════════════════════════════════════════════════ */

/* Only showcase container overflows - frames keep overflow:hidden for border-radius */
.showcase {
    overflow: visible;
}

.emoji-particle {
    position: absolute;
    font-size: 24px;
    pointer-events: none;
    z-index: 50;
    will-change: transform, opacity;
    animation: emojiFloat 2.5s ease-out forwards;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    line-height: 1;
}

@keyframes emojiFloat {
    0% {
        transform: translateY(0) scale(0.5) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translateY(-30px) scale(1) rotate(0deg);
    }
    20% {
        transform: translateY(-60px) scale(1.1) rotate(var(--emoji-rotate, 5deg));
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-280px) scale(1.2) rotate(var(--emoji-rotate, 5deg));
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    .showcase-frame {
        opacity: 1;
        translate: 0 0;
        transition: none;
    }
    .showcase-lightbox,
    .showcase-lightbox__video {
        transition: none;
    }
    .noise--animated {
        animation: none;
    }
    .hero--cinematic .hero__video-bg video {
        animation: none;
    }
    .emoji-particle {
        display: none;
    }
    .camera-ui__rec-dot {
        animation: none;
    }
}
