/* ==========================================================
   BASE RESET
   ========================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #000;
    color: #fff;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

/* ==========================================================
   BEFORE SECTION
   ========================================================== */
#section-before {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
}

#section-before::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, #000);
    pointer-events: none;
}

/* ==========================================================
   SHARED SECTION INNER LAYOUT
   ========================================================== */
.section-inner {
    text-align: center;
    padding: 60px 24px;
    max-width: 720px;
    width: 100%;
}

.eyebrow {
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 28px;
}

h1, h2 {
    font-size: clamp(2.4rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    margin-bottom: 28px;
}

.body-copy {
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.5);
}

/* scroll hint arrow */
.scroll-hint {
    margin-top: 56px;
    animation: bounce 2s ease-in-out infinite;
}

.arrow {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.3);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(8px); }
}

/* ==========================================================
   FLYING CARDS — SCROLL CONTAINER
   height controls total scroll distance = animation length.
   ========================================================== */
#scroll-container {
    height: 600vh;
    position: relative;
}

/* ==========================================================
   STICKY CANVAS WRAPPER
   Pins the WebGL canvas while the page scrolls through
   #scroll-container, then releases automatically.
   ========================================================== */
#sticky-wrapper {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#gl-canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* ==========================================================
   CENTER CIRCLE
   Marks the area the flying cards must always clear. Sized to
   match the exclusion radius used in flyingcards.js (CFG.exclusionRadius).
   ========================================================== */
#center-circle {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26vw;
    height: 26vh;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.08);
    pointer-events: none;
    z-index: 1;
}

/* ==========================================================
   FLIGHT TITLE OVERLAYS
   Both titles sit centred over the canvas.
   GSAP controls opacity — they start hidden (opacity:0)
   so nothing bleeds in before the section locks.
   ========================================================== */
.flight-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 0 24px;
    text-align: center;
    pointer-events: none;
    z-index: 5;
    opacity: 0;           /* GSAP reveals these — never touch this in CSS */
}

.flight-eyebrow {
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 18px;
}

.flight-title h2 {
    font-size: clamp(2.2rem, 5.5vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 2px 48px rgba(0, 0, 0, 0.6);
}

/* ==========================================================
   HUD OVERLAY
   ========================================================== */
#hud {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.35);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 10;
}

/* ==========================================================
   AFTER SECTION
   ========================================================== */
#section-after {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
}

#section-after::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, transparent, #000);
    pointer-events: none;
}

/* CTA button */
.cta {
    display: inline-block;
    margin-top: 48px;
    padding: 14px 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: border-color 0.25s, color 0.25s;
}

.cta:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}
