/* =============================================================
   LogoMonkey — Page Wrapper & Hero
   Main content column, hero composition and load-in choreography.
   ============================================================= */

/* ------------------------------------------------------------- Main Page Wrapper */
.page {
    position: relative;
    z-index: 10;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 72px);
    /* The footer bar is `position: fixed`, so it never pushes layout. Reserve its
       full height (plus the iOS home-indicator inset) or the last block — the
       oversized colophon wordmark — renders underneath it on every viewport. */
    padding-bottom: calc(var(--footer-h) + env(safe-area-inset-bottom, 0px));
}

/* ------------------------------------------------------------- HERO */
.hero {
    /* `svh` keeps the hero inside the visible area while mobile toolbars are shown;
       the `vh` line is the fallback for WebKit older than 15.4. */
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding-top: calc(var(--header-h) + 20px);
    padding-bottom: calc(var(--footer-h) + 40px);
}

.hero-grid {
    width: 100%;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.24em;
    color: var(--text-dim);
    margin-bottom: clamp(20px, 3vh, 36px);
}

.kicker-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    animation: dotPulse 2.4s ease-in-out infinite;
}

.hero-title {
    font-family: var(--font-disp);
    font-stretch: 122%;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 0.86;
    letter-spacing: -0.015em;
    font-size: clamp(3.4rem, 12.6vw, 11.4rem);
    margin: 0 0 clamp(28px, 4.5vh, 52px) 0;
    user-select: none;
}

.line {
    display: block;
}

.line-outline {
    margin-left: clamp(8px, 5vw, 80px);
    white-space: nowrap;
}

@supports (-webkit-text-stroke: 2px white) {
    .line-outline {
        color: transparent;
        -webkit-text-stroke: 2px rgba(233, 229, 217, 0.85);
        transition: -webkit-text-stroke-color var(--duration-base);
    }

    .hero-title:hover .line-outline {
        -webkit-text-stroke-color: var(--accent);
    }
}

.title-dot {
    color: var(--accent);
    -webkit-text-stroke: 0;
    font-style: normal;
    font-size: 0.5em;
}

.hero-subtitle {
    font-family: var(--font-disp);
    font-size: clamp(15px, 1.6vw, 20px);
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--accent);
    margin: -14px 0 clamp(32px, 5vh, 56px) clamp(8px, 5vw, 80px);
}

.hero-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
    flex-wrap: wrap;
}

.hero-lead {
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.85;
    color: var(--text-lead);
    max-width: 560px;
    font-weight: 300;
}

.lead-strong {
    color: var(--text);
    font-weight: 500;
    border-bottom: 1px solid rgba(200, 168, 112, 0.45);
    padding-bottom: 1px;
}

.hero-cue {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: clamp(40px, 7vh, 72px);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.26em;
    color: var(--text-dim);
}

.cue-arrow {
    display: inline-block;
    animation: cueBounce 2.4s ease-in-out infinite;
    color: var(--accent);
}

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

/* Hero load-in choreography */
.anim {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    animation: riseIn var(--duration-slow) var(--ease-out) forwards;
    will-change: opacity, transform;
}

.d1 { animation-delay: 0.12s; }
.d2 { animation-delay: 0.24s; }
.d3 { animation-delay: 0.36s; }
.d4 { animation-delay: 0.50s; }
.d5 { animation-delay: 0.68s; }

@keyframes riseIn {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

