:root {
    --black: #060609;
    --black-soft: #0b0b12;
    --paper: #f4f2ee;
    --muted: #aaa4b3;
    --faint: rgba(244, 242, 238, 0.12);
    --magenta: #ff0a78;
    --pink: #ff4da6;
    --cyan: #00eaff;
    --blue: #006dff;
    --violet: #7d2cff;
    --rouge: #e21b3c;
    --gold: #d8a64a;
    --sun: #ffb000;
    --panel: rgba(8, 8, 14, 0.72);
    --panel-strong: rgba(8, 8, 14, 0.88);
    --border: rgba(244, 242, 238, 0.14);
    --head: "Bebas Neue", Impact, sans-serif;
    --mono:
        "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--black);
    color: var(--paper);
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scroll-padding: 0;
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(
            circle at 18% 18%,
            rgba(255, 10, 120, 0.11),
            transparent 28rem
        ),
        radial-gradient(
            circle at 80% 26%,
            rgba(0, 234, 255, 0.08),
            transparent 24rem
        ),
        linear-gradient(180deg, #050506 0%, #0a0710 48%, #050506 100%);
    color: var(--paper);
    font-family: var(--mono);
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    transition: color 900ms ease;
}

body[data-scene="garden"] {
    --paper: #1a0e05;
    --muted: rgba(26, 14, 5, 0.82);
    --border: rgba(26, 14, 5, 0.26);
}

body[data-scene="indoor"] {
    --paper: #f4f2ee;
    --muted: #aaa4b3;
    --border: rgba(244, 242, 238, 0.14);
}

.scene-light {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(
            circle at 18% 18%,
            rgba(255, 189, 65, 0.88),
            transparent 18rem
        ),
        radial-gradient(
            circle at 74% 20%,
            rgba(255, 246, 177, 0.62),
            transparent 24rem
        ),
        radial-gradient(
            circle at 66% 80%,
            rgba(255, 77, 166, 0.18),
            transparent 24rem
        ),
        linear-gradient(160deg, #ffe8a3 0%, #ffc36b 42%, #f9a85b 100%);
    opacity: 0;
    transition: opacity 1800ms cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-scene="garden"] .scene-light {
    opacity: 1;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(circle at center, black, transparent 74%);
    opacity: 0.22;
    transition: opacity 1200ms ease;
}

body[data-scene="garden"]::before {
    opacity: 0.12;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: radial-gradient(
        circle at center,
        transparent 42%,
        rgba(0, 0, 0, 0.64) 100%
    );
    opacity: 1;
    mix-blend-mode: multiply;
    transition: opacity 1600ms cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-scene="garden"]::after {
    opacity: 0.08;
}

::selection {
    background: var(--magenta);
    color: white;
}
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #050506;
}
::-webkit-scrollbar-thumb {
    background: #2a2630;
    border: 2px solid #050506;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4b4056;
}

#stage {
    position: fixed;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.78;
    transition:
        opacity 700ms ease,
        filter 700ms ease;
}

body[data-scene="garden"] #stage {
    opacity: 0.72;
    filter: saturate(1.35) contrast(1.18) brightness(0.9) sepia(0.2);
}

.noise {
    position: fixed;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    opacity: 0.08;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)' opacity='0.65'/%3E%3C/svg%3E");
}

main {
    position: relative;
    z-index: 2;
}

.section {
    min-height: 100svh;
    height: 100svh;
    display: grid;
    place-items: center;
    padding: clamp(2rem, 5vw, 5rem);
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
}

.wrap {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.hero .wrap {
    display: grid;
    gap: clamp(2rem, 4vw, 4rem);
    align-items: end;
}

.kicker {
    color: var(--muted);
    font-size: clamp(0.72rem, 1vw, 0.88rem);
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin: 0 0 1.25rem;
}

.hero-title,
.act-name,
.closing-title {
    font-family: var(--head);
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 0.86;
    margin: 0;
    color: var(--paper);
    text-wrap: balance;
}

.hero-title {
    font-size: clamp(5.25rem, 16vw, 16.5rem);
    max-width: 11ch;
    text-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.85);
}

.hero-meta,
.closing-meta {
    width: min(520px, 100%);
    padding: 1rem 0 0;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    color: var(--paper);
    font-size: clamp(0.82rem, 1vw, 0.95rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-meta span,
.closing-meta span {
    color: var(--muted);
}

.hero-tag {
    max-width: 46rem;
    color: color-mix(in srgb, var(--paper) 72%, transparent);
    font-size: clamp(0.92rem, 1.2vw, 1.08rem);
    line-height: 1.8;
    margin: 0;
}

.hero-lower {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: end;
}

.scroll-note {
    position: absolute;
    right: clamp(1rem, 3vw, 3rem);
    bottom: 2rem;
    writing-mode: vertical-rl;
    color: rgba(244, 242, 238, 0.44);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.68rem;
}

.act {
    min-height: 100svh;
    height: 100svh;
}

.act-card {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    justify-items: center;
    text-align: center;
    padding: clamp(1rem, 2vw, 1.5rem);
    transform-origin: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(
        90deg,
        color-mix(in srgb, var(--paper) 6%, transparent),
        color-mix(in srgb, var(--paper) 1.5%, transparent)
    );
    backdrop-filter: blur(14px);
    will-change: transform, opacity;
}

.garden .act-card {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.06)
    );
    box-shadow: 0 1.6rem 5rem rgba(132, 65, 0, 0.1);
}

.indoor .act-card {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.024),
        rgba(255, 255, 255, 0.006)
    );
}

.act-copy {
    position: relative;
    width: min(100%, 1050px);
    padding: clamp(1rem, 3vw, 2.5rem) 0;
    display: grid;
    justify-items: center;
}

.act-no {
    font-family: var(--mono);
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin-bottom: clamp(1.2rem, 3vw, 2rem);
    display: inline-flex;
    gap: 0.9rem;
    align-items: center;
    justify-content: center;
}

.act-no::before,
.act-no::after {
    content: "";
    display: block;
    width: 4rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.68;
}

.garden .act-no {
    color: #2a1406;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
}

.garden .act-no::before,
.garden .act-no::after {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(42, 20, 6, 0.72),
        transparent
    );
    opacity: 1;
}

.garden .act-line {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(42, 20, 6, 0.72),
        rgba(42, 20, 6, 0.42),
        rgba(42, 20, 6, 0.72),
        transparent
    );
}

body[data-scene="garden"] .kicker,
body[data-scene="garden"] .hero-meta,
body[data-scene="garden"] .hero-meta span {
    color: #1a0e05;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.act-name {
    font-size: clamp(4.2rem, 10vw, 10.5rem);
    max-width: 100%;
    overflow-wrap: normal;
    hyphens: manual;
    text-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.85);
    transition:
        color 220ms ease,
        text-shadow 220ms ease;
}

.act-name:hover {
    color: #fff;
    text-shadow:
        0 0 1.2rem color-mix(in srgb, var(--accent) 55%, transparent),
        0 1rem 3rem rgba(0, 0, 0, 0.85);
}

.act-type {
    display: block;
    max-width: 48rem;
    margin-top: clamp(1rem, 2vw, 1.5rem);
    color: var(--muted);
    text-align: center;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    font-size: clamp(0.78rem, 1vw, 0.95rem);
}

.act-line {
    width: min(420px, 100%);
    height: 1px;
    margin: clamp(1.6rem, 3vw, 2.4rem) auto 0;
    background: linear-gradient(
        90deg,
        transparent,
        var(--accent),
        rgba(255, 255, 255, 0.08),
        var(--accent),
        transparent
    );
}

.closing .wrap {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: clamp(2rem, 6vw, 6rem);
    align-items: center;
}

.closing-title {
    font-size: clamp(4.4rem, 11vw, 12rem);
    max-width: 9ch;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
    margin-top: 2rem;
}

.links a {
    color: var(--paper);
    text-decoration: none;
    border-bottom: 1px solid rgba(244, 242, 238, 0.32);
    padding-bottom: 0.25rem;
    transition:
        color 180ms ease,
        border-color 180ms ease;
}

.links a:hover {
    color: var(--cyan);
    border-color: var(--cyan);
}

.scene-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.4rem;
    color: var(--paper);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.scene-switch span {
    width: 2.9rem;
    height: 1.45rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    position: relative;
    box-shadow: inset 0 0 1.2rem rgba(0, 0, 0, 0.6);
}

.scene-switch span::before {
    content: "";
    position: absolute;
    width: 1.05rem;
    height: 1.05rem;
    border-radius: 50%;
    top: 50%;
    right: 0.18rem;
    transform: translateY(-50%);
    background: var(--accent);
    box-shadow: 0 0 1.2rem var(--accent);
}

@media (max-width: 820px) {
    .section {
        padding: 4rem 1.1rem;
    }
    .hero-lower,
    .closing .wrap {
        display: grid;
        grid-template-columns: 1fr;
    }
    .act-card {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .act-name {
        font-size: clamp(3.8rem, 16vw, 7.5rem);
    }
    .scroll-note {
        display: none;
    }
}

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