@font-face {
    font-family: 'Instrument Sans';
    src: url('fonts/instrument-sans-latin-600-normal.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Instrument Sans';
    src: url('fonts/instrument-sans-latin-700-normal.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --amber: #fbbf24;
    --amber-deep: #f59e0b;
    --orange: #f97316;
    --ink: #2a1c05;
    --street: #1c1e23;
    --cream: #fff6e4;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    height: 100%;
}

body {
    overflow: hidden;
    background: var(--street);
    color: #fff;
    font-family: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
    font-weight: 600;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

#scene {
    position: fixed;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
    touch-action: manipulation;
}

.is-ready #scene {
    opacity: 1;
}

.vignette {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse 75% 70% at 50% 42%, transparent 55%, rgb(0 0 0 / 0.42) 100%);
    transition: opacity 0.8s ease;
}

.is-inside .vignette {
    opacity: 0;
}

.flash {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    background: radial-gradient(circle at 50% 50%, #fffaf0 0%, #ffe2a3 40%, #fbbf24 75%, #f59e0b 100%);
}

.panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 3.5rem 1.5rem calc(1.75rem + env(safe-area-inset-bottom));
    text-align: center;
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s linear 0s;
}

.panel.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0.45s;
}

.street-panel {
    background: linear-gradient(to top, rgb(12 12 14 / 0.92), rgb(12 12 14 / 0.6) 55%, transparent);
}

.kicker {
    margin: 0;
    color: var(--amber);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

h1,
h2 {
    margin: 0.35rem auto 0.45rem;
    max-width: 22em;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.15;
    text-wrap: balance;
}

h1 {
    font-size: clamp(1.45rem, 3.2vw, 2.35rem);
}

.street-panel h1 {
    margin-bottom: 1.15rem;
}

h2 {
    font-size: clamp(1.5rem, 3.4vw, 2.6rem);
}

h2:focus {
    outline: none;
}

.btn {
    min-height: 48px;
    padding: 0.85rem 1.75rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffd34d, var(--amber-deep));
    box-shadow: 0 8px 28px rgb(251 191 36 / 0.35), inset 0 1px 0 rgb(255 255 255 / 0.45);
    color: #3a2300;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 34px rgb(251 191 36 / 0.5), inset 0 1px 0 rgb(255 255 255 / 0.45);
}

.btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.btn-secondary {
    background: transparent;
    box-shadow: inset 0 0 0 2px rgb(42 28 5 / 0.35);
    color: var(--ink);
}

.btn-secondary:hover {
    box-shadow: inset 0 0 0 2px rgb(42 28 5 / 0.6);
}

.btn-secondary:focus-visible {
    outline-color: var(--ink);
}

.reveal-panel {
    color: var(--ink);
    padding-top: 1rem;
}

.reveal-panel .lead {
    max-width: 38rem;
    margin: 0 auto 0.9rem;
    color: rgb(42 28 5 / 0.82);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    text-wrap: pretty;
}

.reveal-panel .when {
    display: inline-block;
    margin: 0 0 0.9rem;
    padding: 0.3rem 0.9rem;
    border-radius: 999px;
    background: rgb(245 158 11 / 0.16);
    color: #8a4b00;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.reveal-panel .contact {
    margin: 0 0 1.2rem;
    font-size: 1rem;
}

.reveal-panel a {
    color: #9a4a00;
    text-underline-offset: 3px;
}

.reveal-panel a:focus-visible {
    outline: 3px solid var(--ink);
    outline-offset: 2px;
    border-radius: 3px;
}

.legal {
    max-width: 40rem;
    margin: 1.4rem auto 0;
    color: rgb(42 28 5 / 0.6);
    font-size: 0.75rem;
}

.legal a {
    color: inherit;
}

.fallback-logo {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Without WebGL or JavaScript, show what's behind the wall straight away. */
.no-scene body {
    overflow: auto;
    background: radial-gradient(circle at 50% 30%, #fffaf0, #ffe7b8 70%, #ffd98a);
}

.no-scene #scene,
.no-scene .vignette,
.no-scene .street-panel,
.no-scene #back-button {
    display: none;
}

.no-scene .reveal-panel {
    position: static;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 1.5rem;
    opacity: 1;
    visibility: visible;
    transform: none;
}

.no-scene .reveal-panel .when {
    align-self: center;
}

.no-scene .fallback-logo {
    display: block;
    width: min(320px, 70vw);
    height: auto;
    margin: 0 auto 1.75rem;
    image-rendering: auto;
}

/* Wide screens: one compact caption row, so the crowd can stand tall above it. */
@media (min-width: 860px) and (min-aspect-ratio: 5/4) {
    .street-panel {
        display: grid;
        grid-template-areas:
            "kicker button"
            "title button";
        justify-content: center;
        align-items: center;
        column-gap: 2.75rem;
        padding-top: 3.25rem;
        padding-bottom: calc(1.6rem + env(safe-area-inset-bottom));
        text-align: left;
    }

    .street-panel .kicker {
        grid-area: kicker;
    }

    .street-panel h1 {
        grid-area: title;
        margin: 0.2rem 0 0;
        max-width: 24em;
    }

    .street-panel .btn {
        grid-area: button;
    }
}

@media (max-width: 640px) {
    .panel {
        padding-left: 1.15rem;
        padding-right: 1.15rem;
    }

    .reveal-panel .lead {
        font-size: 0.98rem;
    }

    .legal {
        margin-top: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .panel,
    .panel.is-hidden,
    #scene,
    .btn {
        transition-duration: 0.01s;
    }
}
