:root {
    --backdrop: #c5ced8;
    --ink: #15171b;
    --ink-soft: #3c424b;
    --bone: #ff6b35;
    --bone-dark: #e2541f;
    --hazard-yellow: #f2c200;
    --hazard-black: #1e1e1e;
    --display: "Space Grotesk", system-ui, sans-serif;
    --body: "Inter", system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

/* One screen: the live scene fills the window and nothing scrolls, so the mouse wheel zooms the camera. */
html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    background: var(--backdrop);
    color: var(--ink);
    font: 400 17px/1.6 var(--body);
    -webkit-font-smoothing: antialiased;
}

/* The live scene behind the text; drag to rotate, right-drag to pan, wheel to zoom. */
canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: block;
    cursor: grab;
}

canvas:active {
    cursor: grabbing;
}

main {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

/* Pointer input reaches the camera through the hero; the button remains clickable. */
.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    display: flex;
    align-items: center;
    padding: 48px clamp(16px, 6vw, 96px);
    pointer-events: none;
}

/* Fades the scene behind the text so it stays readable without hiding the dogs. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(197, 206, 216, 0.92) 0%, rgba(197, 206, 216, 0.7) 38%, rgba(197, 206, 216, 0) 68%);
    pointer-events: none;
}

.hero-text {
    position: relative;
    max-width: 560px;
    pointer-events: none;
}

.hazard {
    width: 96px;
    height: 10px;
    margin-bottom: 20px;
    background: repeating-linear-gradient(-45deg, var(--hazard-yellow) 0 10px, var(--hazard-black) 10px 20px);
    border-radius: 2px;
}

.kicker {
    margin: 0 0 12px;
    font: 700 14px/1 var(--display);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

h1 {
    margin: 0 0 20px;
    font: 700 clamp(44px, 7vw, 88px)/0.98 var(--display);
    letter-spacing: -0.03em;
}

.lede {
    margin: 0 0 16px;
    font-size: clamp(17px, 1.6vw, 20px);
    color: var(--ink-soft);
}

.facts {
    margin: 0 0 32px;
    font: 500 14px/1.4 var(--display);
    letter-spacing: 0.02em;
    color: var(--ink-soft);
}

.cta {
    display: inline-flex;
    pointer-events: auto;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 10px;
    background: var(--bone);
    color: #fff;
    font: 700 17px/1 var(--display);
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(226, 84, 31, 0.32);
    transition: background 0.15s ease, transform 0.15s ease;
}

.cta:hover {
    background: var(--bone-dark);
    transform: translateY(-1px);
}

.cta:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 3px;
}

/* On phones the text sits at the top over a vertical fade, leaving the dogs visible below it. */
@media (max-width: 600px) {
    .hero {
        align-items: flex-start;
        padding-top: 40px;
    }

    .hero::before {
        background: linear-gradient(180deg, rgba(197, 206, 216, 0.95) 0%, rgba(197, 206, 216, 0.75) 52%, rgba(197, 206, 216, 0) 78%);
    }

    .cta {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cta {
        transition: none;
    }
}
