:root
{
    --bg: #fff2cc;
    --bg-deep: #f7c873;
    --ink: #263238;
    --leaf: #37a36b;
    --leaf-dark: #1e7d58;
    --orange: #ff9f43;
    --pink: #ff6f91;
    --blue: #5bc0eb;
    --purple: #a66cff;
    --cream: #fff8e7;
    --shadow: 0 24px 60px rgba(38, 50, 56, 0.18);
    --radius-large: 34px;
    --radius-medium: 22px;
}

*
{
    box-sizing: border-box;
}

html
{
    scroll-behavior: smooth;
}

body
{
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    background:
        radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.9), transparent 28%),
        radial-gradient(circle at 80% 0%, rgba(91, 192, 235, 0.26), transparent 32%),
        linear-gradient(180deg, var(--bg) 0%, #ffe0a8 45%, #d9f6c3 100%);
    overflow-x: hidden;
}

img
{
    display: block;
    max-width: 100%;
}

.site-noise
{
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        radial-gradient(circle, rgba(38, 50, 56, 0.16) 1px, transparent 1px);
    background-size: 18px 18px;
}

.top-bar
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0;
}

.brand,
.top-bar__button,
.button
{
    color: var(--ink);
    text-decoration: none;
}

.brand
{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.brand__egg
{
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 3px solid var(--ink);
    border-radius: 50%;
    background: var(--cream);
    box-shadow: 5px 5px 0 rgba(38, 50, 56, 0.18);
}

.top-bar__button,
.button
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--ink);
    border-radius: 999px;
    background: var(--cream);
    box-shadow: 6px 6px 0 rgba(38, 50, 56, 0.2);
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.top-bar__button
{
    padding: 11px 18px;
}

.button
{
    min-height: 52px;
    padding: 13px 22px;
    cursor: pointer;
}

.button--secondary
{
    background: #c7f9cc;
}

.top-bar__button:hover,
.button:hover
{
    transform: translateY(-3px) rotate(-1deg);
    box-shadow: 9px 9px 0 rgba(38, 50, 56, 0.16);
}

.hero
{
    position: relative;
    min-height: 100vh;
    padding-bottom: 64px;
    isolation: isolate;
}

.hero::before
{
    content: "";
    position: absolute;
    inset: auto -10vw 0;
    z-index: -1;
    height: 36vh;
    background:
        radial-gradient(70% 90% at 20% 100%, #80c96e 0 55%, transparent 56%),
        radial-gradient(70% 90% at 70% 100%, #6fbf63 0 58%, transparent 59%);
}

.hero__content
{
    width: min(940px, calc(100% - 32px));
    margin: 38px auto 0;
    text-align: center;
}

.eyebrow
{
    display: inline-flex;
    margin: 0 0 14px;
    padding: 8px 14px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    background: #fff;
    box-shadow: 4px 4px 0 rgba(38, 50, 56, 0.18);
    font-size: 0.86rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

h1,
h2
{
    margin: 0;
    line-height: 0.95;
    letter-spacing: -0.065em;
}

h1
{
    font-size: clamp(3.6rem, 9vw, 8.5rem);
    text-wrap: balance;
}

h2
{
    font-size: clamp(2.1rem, 5vw, 4.8rem);
}

.hero__intro
{
    width: min(720px, 100%);
    margin: 26px auto 0;
    font-size: clamp(1.06rem, 2vw, 1.35rem);
    line-height: 1.6;
}

.hero__actions
{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 30px;
}

.hero__stage
{
    position: relative;
    width: min(1120px, calc(100% - 32px));
    min-height: 360px;
    margin: 44px auto 0;
}

.hero-dino
{
    position: absolute;
    width: clamp(180px, 25vw, 310px);
    filter: drop-shadow(0 18px 15px rgba(38, 50, 56, 0.2));
}

.hero-dino--one
{
    left: 5%;
    bottom: 12px;
    animation: scoot 4s ease-in-out infinite;
}

.hero-dino--two
{
    left: 38%;
    bottom: 36px;
    animation: bob 3.3s ease-in-out infinite;
}

.hero-dino--three
{
    right: 3%;
    bottom: 8px;
    animation: hoverRocket 3.5s ease-in-out infinite;
}

.sun
{
    position: absolute;
    top: 14px;
    right: 17%;
    width: 106px;
    height: 106px;
    border: 4px solid var(--ink);
    border-radius: 50%;
    background: #ffd166;
    box-shadow: 8px 8px 0 rgba(38, 50, 56, 0.16);
    animation: sunPulse 4s ease-in-out infinite;
}

.volcano
{
    position: absolute;
    left: 28%;
    bottom: 0;
    width: 150px;
    height: 130px;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
    border-radius: 20px;
    background: #8d6e63;
    opacity: 0.92;
}

.volcano span
{
    position: absolute;
    left: 50%;
    top: -4px;
    width: 38px;
    height: 50px;
    border-radius: 50% 50% 44% 44%;
    background: #ff6b35;
    transform: translateX(-50%);
    animation: lavaBurp 1.6s ease-in-out infinite;
}

.scroll-nudge
{
    display: grid;
    gap: 8px;
    justify-items: center;
    margin-top: 24px;
    font-weight: 900;
}

.scroll-nudge__arrow
{
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 3px solid var(--ink);
    border-radius: 50%;
    background: var(--cream);
    animation: arrowBounce 1.1s ease-in-out infinite;
}

.intro-panel,
.final-panel
{
    width: min(1040px, calc(100% - 32px));
    margin: 70px auto;
    padding: clamp(26px, 5vw, 58px);
    border: 4px solid var(--ink);
    border-radius: var(--radius-large);
    background: rgba(255, 248, 231, 0.88);
    box-shadow: var(--shadow);
}

.intro-panel
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: end;
}

.intro-panel p,
.final-panel p
{
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.7;
}

.final-panel
{
    text-align: center;
}

.final-panel p
{
    width: min(680px, 100%);
    margin: 22px auto 28px;
}

.marquee
{
    margin: 50px 0;
    overflow: hidden;
    border-block: 4px solid var(--ink);
    background: #263238;
    color: #fff;
}

.marquee__track
{
    display: flex;
    width: max-content;
    gap: 38px;
    padding: 16px 0;
    font-size: 1.15rem;
    font-weight: 900;
    animation: marqueeMove 18s linear infinite;
}

.marquee__track span
{
    white-space: nowrap;
}

.dino-gallery
{
    display: grid;
    gap: clamp(32px, 5vw, 74px);
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.dino-card
{
    position: relative;
    display: grid;
    grid-template-columns: minmax(220px, 420px) 1fr;
    gap: clamp(20px, 5vw, 58px);
    align-items: center;
    min-height: 360px;
    padding: clamp(22px, 4vw, 52px);
    border: 4px solid var(--ink);
    border-radius: var(--radius-large);
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.78), transparent 26%),
        linear-gradient(135deg, #fff8e7, #b8f7d4);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dino-card:nth-child(2n)
{
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.76), transparent 26%),
        linear-gradient(135deg, #cce9ff, #fff1b8);
}

.dino-card:nth-child(3n)
{
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.76), transparent 25%),
        linear-gradient(135deg, #ffd6e0, #d9f6c3);
}

.dino-card::after
{
    content: "";
    position: absolute;
    inset: auto -40px -60px auto;
    width: 170px;
    height: 170px;
    border: 4px dashed rgba(38, 50, 56, 0.22);
    border-radius: 50%;
}

.dino-card--tilt-left
{
    transform: rotate(-1deg);
}

.dino-card--tilt-right
{
    transform: rotate(1deg);
}

.dino-card--wide
{
    grid-template-columns: 1fr minmax(220px, 430px);
}

.dino-card--wide .dino-card__image-wrap
{
    order: 2;
}

.dino-card__image-wrap
{
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    min-height: 250px;
}

.dino-card__image-wrap img
{
    width: min(330px, 82vw);
    filter: drop-shadow(0 18px 14px rgba(38, 50, 56, 0.2));
}

.dino-card__content
{
    position: relative;
    z-index: 1;
}

.dino-card__number
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 16px;
    border: 3px solid var(--ink);
    border-radius: 50%;
    background: #fff;
    box-shadow: 5px 5px 0 rgba(38, 50, 56, 0.18);
    font-weight: 900;
}

.dino-card p
{
    max-width: 560px;
    margin: 18px 0 22px;
    font-size: clamp(1rem, 2vw, 1.22rem);
    line-height: 1.65;
}

.badge
{
    display: inline-flex;
    padding: 10px 14px;
    border: 3px solid var(--ink);
    border-radius: 999px;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 900;
    box-shadow: 5px 5px 0 rgba(38, 50, 56, 0.16);
}

.roar-pop
{
    position: fixed;
    left: 50%;
    bottom: 30px;
    z-index: 20;
    min-width: 160px;
    padding: 14px 20px;
    border: 4px solid var(--ink);
    border-radius: 999px;
    background: #fff;
    box-shadow: 7px 7px 0 rgba(38, 50, 56, 0.22);
    font-size: 1.1rem;
    font-weight: 900;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 20px) scale(0.88);
    transition: opacity 220ms ease, transform 220ms ease;
}

.roar-pop.is-visible
{
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.bob-slow
{
    animation: bob 3.6s ease-in-out infinite;
}

.bounce-fast
{
    animation: bounceFast 1.5s ease-in-out infinite;
}

.rocket-wiggle
{
    animation: hoverRocket 2.3s ease-in-out infinite;
}

.type-dance
{
    animation: typeDance 1.8s steps(2, end) infinite;
}

.spin-lazy
{
    animation: spinLazy 5.8s ease-in-out infinite;
}

.pulse-party
{
    animation: pulseParty 1.1s ease-in-out infinite;
}

.swim
{
    animation: swim 2.6s ease-in-out infinite;
}

.fly
{
    animation: fly 2.8s ease-in-out infinite;
}

.golf-swing
{
    animation: golfSwing 2.3s ease-in-out infinite;
}

.sleepy
{
    animation: sleepy 3s ease-in-out infinite;
}

.dino-card.is-in-view
{
    animation: cardPop 600ms ease both;
}

@keyframes cardPop
{
    from
    {
        opacity: 0.3;
        transform: translateY(30px) scale(0.97);
    }

    to
    {
        opacity: 1;
    }
}

@keyframes scoot
{
    0%, 100%
    {
        transform: translateX(-6px) rotate(-4deg);
    }

    50%
    {
        transform: translateX(18px) rotate(3deg);
    }
}

@keyframes bob
{
    0%, 100%
    {
        transform: translateY(0) rotate(-1deg);
    }

    50%
    {
        transform: translateY(-18px) rotate(2deg);
    }
}

@keyframes hoverRocket
{
    0%, 100%
    {
        transform: translateY(0) rotate(5deg);
    }

    50%
    {
        transform: translateY(-24px) rotate(-2deg);
    }
}

@keyframes sunPulse
{
    0%, 100%
    {
        transform: scale(1);
    }

    50%
    {
        transform: scale(1.08);
    }
}

@keyframes lavaBurp
{
    0%, 100%
    {
        transform: translateX(-50%) translateY(0) scale(0.9);
    }

    50%
    {
        transform: translateX(-50%) translateY(-18px) scale(1.25);
    }
}

@keyframes arrowBounce
{
    0%, 100%
    {
        transform: translateY(0);
    }

    50%
    {
        transform: translateY(8px);
    }
}

@keyframes marqueeMove
{
    from
    {
        transform: translateX(0);
    }

    to
    {
        transform: translateX(-50%);
    }
}

@keyframes bounceFast
{
    0%, 100%
    {
        transform: translateY(0) rotate(2deg);
    }

    50%
    {
        transform: translateY(-14px) rotate(-3deg);
    }
}

@keyframes typeDance
{
    0%, 100%
    {
        transform: rotate(-2deg) translateX(0);
    }

    50%
    {
        transform: rotate(2deg) translateX(8px);
    }
}

@keyframes spinLazy
{
    0%, 100%
    {
        transform: rotate(-3deg);
    }

    50%
    {
        transform: rotate(5deg) scale(1.03);
    }
}

@keyframes pulseParty
{
    0%, 100%
    {
        transform: scale(1) rotate(-1deg);
    }

    50%
    {
        transform: scale(1.06) rotate(2deg);
    }
}

@keyframes swim
{
    0%, 100%
    {
        transform: translateX(-8px) rotate(-5deg);
    }

    50%
    {
        transform: translateX(10px) rotate(5deg);
    }
}

@keyframes fly
{
    0%, 100%
    {
        transform: translateY(10px) rotate(-8deg);
    }

    50%
    {
        transform: translateY(-18px) rotate(8deg);
    }
}

@keyframes golfSwing
{
    0%, 100%
    {
        transform: rotate(-4deg);
    }

    45%
    {
        transform: rotate(7deg) translateX(6px);
    }
}

@keyframes sleepy
{
    0%, 100%
    {
        transform: translateY(0) rotate(0deg);
    }

    50%
    {
        transform: translateY(10px) rotate(-2deg);
    }
}

@media (prefers-reduced-motion: reduce)
{
    *,
    *::before,
    *::after
    {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 820px)
{
    .top-bar
    {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero__stage
    {
        min-height: 560px;
    }

    .hero-dino--one
    {
        left: 2%;
        bottom: 40px;
    }

    .hero-dino--two
    {
        left: 24%;
        bottom: 210px;
    }

    .hero-dino--three
    {
        right: 2%;
        bottom: 12px;
    }

    .sun
    {
        right: 6%;
    }

    .volcano
    {
        left: 6%;
    }

    .intro-panel,
    .dino-card,
    .dino-card--wide
    {
        grid-template-columns: 1fr;
    }

    .dino-card,
    .dino-card--tilt-left,
    .dino-card--tilt-right
    {
        transform: none;
    }

    .dino-card--wide .dino-card__image-wrap
    {
        order: 0;
    }
}
