:root {
    --bg-page: #f4f5f7;
    --bg-hero: #f0d21a;
    --indigo: #4b4aa6;

    /* ✅ ARTBOX CONTROLS (edit these) */
    --art-x: 79%;
    /* left position of box (percentage of frame width) */
    --art-y: 10px;
    /* top position of box */
    --art-w: 520px;
    /* box width */
    --art-h: 680px;
    /* box height (can extend under footer) */
    --art-scale: 1.08;
    /* scale image inside the box */
    --art-ox: 60%;
    /* image anchor inside box (x) */
    --art-oy: 10%;
    /* image anchor inside box (y) */
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--bg-page);
}

.page {
    min-height: 100%;
    display: grid;
    place-items: start center;
    padding: 28px 16px;
}

/* Frame is the clipping boundary */
.frame {
    position: relative;
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
}

/* stage is the only area where yellow/blue/art live */
.stage {
    position: relative;
    overflow: hidden;
    /* ✅ clips artbox */
    background: transparent;
}

/* HERO */
.hero {
    background: var(--bg-hero);
    position: relative;
    z-index: 1;
}

.hero__content {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 52px 28px 28px;

    /* Reserve space so text doesn't collide with artbox */
    padding-right: clamp(320px, 42vw, 720px);
}

.hero__headline {
    margin: 0;
    color: var(--indigo);
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: clamp(34px, 4.4vw, 70px);
    line-height: 1.05;
}

.hero__headline span {
    display: block;
}

.hero__headline--em {
    font-size: 1.25em;
}

.hero__actions {
    margin-top: 22px;
    display: grid;
    gap: 14px;
    width: min(360px, 100%);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 800;
    padding: 14px 16px;
    min-height: 52px;
    border-radius: 14px;
}

.btn--primary {
    background: var(--indigo);
    color: #fff;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.14);
}

.btn--secondary {
    background: transparent;
    color: var(--indigo);
    border: 2px solid rgba(75, 74, 166, 0.65);
}

/* FOOTER sits above the art layer */
.footer {
    background: var(--indigo);
    /* padding: 18px 0; */
    position: relative;
    z-index: 3;
    /* ✅ above artbox */
}

.footer__inner {
    width: min(1280px, 100%);
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
}

.footer__badge {
    width: 100px;
    height: 100px;
    object-fit: contain;
    display: block;
}

.footer__text {
    text-align: right;
    color: var(--bg-hero);
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: clamp(22px, 3vw, 46px);
}

/* ✅ ARTBOX: the movable “window” */
.artbox {
    position: absolute;
    left: var(--art-x);
    top: var(--art-y);
    width: var(--art-w);
    height: var(--art-h);

    transform: translateX(-50%);
    /* so --art-x acts like an anchor point */

    z-index: 2;
    /* ✅ between hero and footer */
    pointer-events: none;
    overflow: hidden;
    /* ✅ image can be bigger but clipped to box */
    border-radius: 0;
}

.artbox__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* keep full head if possible */
    transform: scale(var(--art-scale));
    transform-origin: var(--art-ox) var(--art-oy);

    display: block;
    filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.18));
}

/* Mobile: simplify (stack) */
@media (max-width: 860px) {
    .hero__content {
        padding-right: 28px;
        padding-top: 32px;
    }

    /* Put the artbox below content and above footer */
    .artbox {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        height: 360px;
        z-index: 2;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 10px;
    }
}