:root {
    --ink: #090807;
    --cream: #fff8e9;
    --porcelain: #eaf7f2;
    --velvet: #7a102c;
    --flame: #f05a42;
    --chartreuse: #d7ff72;
    --blue: #2458d3;
    --moss: #0f7b68;
    --muted: rgba(9, 8, 7, 0.66);
    --line: rgba(9, 8, 7, 0.18);
    --stage: rgba(255, 248, 233, 0.78);
    --shadow: 0 28px 90px rgba(9, 8, 7, 0.22);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgba(9,8,7,0.04) 1px, transparent 1px) 0 0 / 36px 36px,
        linear-gradient(0deg, rgba(9,8,7,0.04) 1px, transparent 1px) 0 0 / 36px 36px,
        linear-gradient(135deg, #fff8e9 0%, #eaf7f2 38%, #f7d9cd 64%, #12100f 100%);
    font-family: Optima, Avenir Next, Verdana, sans-serif;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.theatre-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    opacity: .72;
    mix-blend-mode: multiply;
}
.stage-toggle {
    position: fixed;
    right: 14px;
    top: 14px;
    z-index: 50;
    width: 58px;
    height: 58px;
    border: 1px solid var(--ink);
    background: var(--chartreuse);
    color: var(--ink);
    cursor: pointer;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
}
.balcony-nav {
    position: fixed;
    left: 50%;
    bottom: calc(14px + env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 45;
    width: min(720px, calc(100vw - 24px));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border: 1px solid var(--ink);
    background: rgba(255,248,233,.88);
    box-shadow: 0 18px 60px rgba(9,8,7,.18);
    backdrop-filter: blur(16px);
}
.balcony-nav a {
    min-height: 44px;
    display: grid;
    place-items: center;
    border-right: 1px solid var(--line);
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.balcony-nav a:last-child { border-right: 0; }
.balcony-nav a.is-active,
.balcony-nav a:hover { color: var(--cream); background: var(--ink); }
.opera-shell {
    position: relative;
    z-index: 2;
    width: min(1420px, calc(100vw - 28px));
    margin: 0 auto;
    padding: 14px 0 calc(92px + env(safe-area-inset-bottom));
}
.opening-scene {
    min-height: calc(100vh - 28px);
    position: relative;
    display: grid;
    grid-template-columns: minmax(300px, .74fr) minmax(460px, 1.26fr);
    grid-template-rows: 1fr auto;
    gap: 12px;
    overflow: hidden;
    border: 1px solid var(--ink);
    background: rgba(255,248,233,.5);
}
.curtain {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28%;
    z-index: 4;
    background:
        repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 12px, transparent 12px 26px),
        linear-gradient(90deg, #3a0715, var(--velvet), var(--flame));
    transition: transform .75s cubic-bezier(.2,.8,.2,1);
}
.curtain-left { left: 0; transform-origin: left center; }
.curtain-right { right: 0; transform-origin: right center; }
.opera-shell:not(.is-curtained) .curtain-left { transform: translateX(-86%) skewX(-5deg); }
.opera-shell:not(.is-curtained) .curtain-right { transform: translateX(86%) skewX(5deg); }
.stage-copy {
    position: relative;
    z-index: 6;
    align-self: center;
    padding: clamp(18px, 4vw, 58px);
}
.stage-label {
    margin: 0 0 14px;
    color: var(--velvet);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .18em;
    text-transform: uppercase;
}
h1, h2, h3 { margin: 0; font-family: Didot, Bodoni 72, Georgia, serif; font-weight: 520; letter-spacing: 0; }
.stage-copy h1 {
    max-width: 8.6ch;
    font-size: clamp(54px, 9vw, 132px);
    line-height: .86;
}
.stage-lead,
.section-title p,
.editorial-heading p,
.loge-copy p,
.opera-footer p,
.act-card p,
.score-card p,
.dress-box p,
.loge-meta span {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.62;
}
.stage-lead { max-width: 620px; margin: 22px 0 0; }
.spotlight-frame {
    position: relative;
    z-index: 3;
    min-height: 760px;
    overflow: hidden;
    background: var(--ink);
    perspective: 1200px;
}
.stage-image {
    position: absolute;
    inset: 0;
    background: center / cover no-repeat;
    transform: scale(1.03);
}
.stage-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 48% 34%, transparent 0 23%, rgba(9,8,7,.24) 44%, rgba(9,8,7,.82) 100%),
        linear-gradient(180deg, rgba(255,248,233,.16), rgba(9,8,7,.5));
}
.name-light {
    position: absolute;
    left: 34px;
    bottom: 34px;
    z-index: 3;
    color: var(--cream);
    display: grid;
    gap: 2px;
}
.name-light span { font: 520 clamp(52px, 7vw, 104px)/.86 Didot, Bodoni 72, Georgia, serif; }
.name-light i {
    width: fit-content;
    margin: 8px 0;
    padding: 8px 14px;
    background: var(--chartreuse);
    color: var(--ink);
    font-style: normal;
    font-weight: 950;
}
.performance-ticket,
.countdown-badge,
.dress-box,
.act-card,
.score-card,
.rsvp-form,
.loge-copy,
.lightbox-panel {
    border: 1px solid var(--ink);
    background: var(--stage);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}
.performance-ticket {
    position: absolute;
    right: 24px;
    top: 24px;
    z-index: 5;
    width: 230px;
    padding: 16px;
}
.performance-ticket small,
.performance-ticket em,
.score-time,
.act-number,
.gallery-card span,
.dress-box span,
.countdown-badge span,
.countdown-badge small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-style: normal;
}
.performance-ticket strong { display: block; margin: 10px 0; color: var(--flame); font-size: 42px; line-height: 1; }
.countdown-badge {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 5;
    width: 150px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    text-align: center;
    background: var(--chartreuse);
}
.countdown-badge strong { font-size: 48px; line-height: .8; }
.scene-actions {
    z-index: 6;
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 12px 12px;
}
.opera-button {
    min-height: 48px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--ink);
    background: var(--cream);
    color: var(--ink);
    padding: 0 18px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.opera-button.primary { background: var(--ink); color: var(--cream); }
.act-section,
.score-section,
.editorial-section,
.loge-section,
.opera-footer {
    margin-top: 12px;
    border: 1px solid var(--ink);
    background: rgba(255,248,233,.64);
}
.act-section,
.editorial-section { padding: clamp(18px, 4vw, 54px); }
.section-title,
.editorial-heading {
    display: grid;
    grid-template-columns: .66fr 1fr;
    gap: 28px;
    align-items: end;
    margin-bottom: 30px;
}
.section-title h2,
.score-heading h2,
.editorial-heading h2,
.loge-copy h2 { font-size: clamp(42px, 7vw, 92px); line-height: .92; }
.act-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--ink);
}
.act-card {
    min-height: 360px;
    padding: 22px;
    border: 0;
    border-right: 1px solid var(--ink);
    box-shadow: none;
    background: rgba(255,248,233,.82);
}
.act-card:last-child { border-right: 0; }
.act-card:nth-child(2) { background: rgba(234,247,242,.86); transform: translateY(32px); }
.act-card:nth-child(3) { background: rgba(215,255,114,.58); }
.act-number { color: var(--blue); }
.act-card h3,
.score-card h3 { margin-top: 46px; font-size: 34px; line-height: .98; }
.score-section {
    display: grid;
    grid-template-columns: minmax(280px, .62fr) minmax(340px, 1fr) minmax(240px, .46fr);
    gap: 12px;
    padding: 12px;
}
.score-heading,
.dress-box { padding: 24px; }
.score-lines { display: grid; gap: 8px; }
.score-card {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 18px;
    min-height: 132px;
    padding: 18px;
    box-shadow: none;
}
.score-time { color: var(--flame); }
.dress-box { border-left: 12px solid var(--moss); }
.editorial-grid {
    display: grid;
    grid-template-columns: 1.25fr .9fr 1fr;
    grid-auto-rows: 260px;
    gap: 12px;
}
.gallery-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--ink);
    background: center / cover no-repeat;
    cursor: pointer;
}
.gallery-card:nth-child(1) { grid-row: span 2; }
.gallery-card:nth-child(3) { grid-column: span 2; }
.gallery-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(9,8,7,.76));
}
.gallery-card span {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1;
    color: var(--cream);
}
.loge-section {
    display: grid;
    grid-template-columns: minmax(300px, .88fr) minmax(340px, 1.12fr);
    gap: 12px;
    padding: 12px;
}
.loge-copy { padding: 28px; background: var(--ink); color: var(--cream); }
.loge-copy .stage-label,
.loge-copy p,
.loge-meta span { color: rgba(255,248,233,.72); }
.loge-meta { display: grid; gap: 12px; margin-top: 28px; }
.loge-meta strong { color: var(--chartreuse); letter-spacing: .08em; }
.rsvp-form { display: grid; gap: 12px; padding: 18px; box-shadow: none; }
.rsvp-form label {
    display: grid;
    gap: 7px;
    color: var(--velvet);
    font-size: 11px;
    font-weight: 950;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    border: 1px solid var(--ink);
    background: rgba(255,248,233,.86);
    color: var(--ink);
    outline: none;
    padding: 12px;
    text-transform: none;
    letter-spacing: 0;
}
.opera-footer { text-align: center; padding: 26px; }
.opera-footer strong { color: var(--velvet); letter-spacing: .08em; }
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    place-items: center;
    padding: 18px;
    background: rgba(9,8,7,.82);
}
.lightbox.is-open { display: grid; }
.lightbox-panel { width: min(920px, 94vw); background: var(--cream); }
#lightboxImage { min-height: min(70vh, 720px); background: center / cover no-repeat; }
#lightboxCaption { margin: 0; padding: 16px; color: var(--muted); }
.lightbox-close {
    position: fixed;
    right: 18px;
    top: 18px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--ink);
    background: var(--chartreuse);
    cursor: pointer;
    font-weight: 950;
}
.toast {
    position: fixed;
    left: 50%;
    bottom: 20px;
    z-index: 100;
    transform: translate(-50%, 16px);
    opacity: 0;
    pointer-events: none;
    background: var(--ink);
    color: var(--cream);
    padding: 12px 14px;
    transition: .22s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .58s ease, transform .58s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (max-width: 1040px) {
    .opening-scene,
    .score-section,
    .loge-section,
    .section-title,
    .editorial-heading { grid-template-columns: 1fr; }
    .spotlight-frame { min-height: 560px; }
    .act-stack { grid-template-columns: 1fr; }
    .act-card { min-height: auto; border-right: 0; border-bottom: 1px solid var(--ink); }
    .act-card:nth-child(2) { transform: none; }
    .editorial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .opera-shell { width: calc(100vw - 10px); padding-top: 5px; }
    .stage-toggle { width: 48px; height: 48px; font-size: 9px; }
    .balcony-nav { width: calc(100vw - 10px); bottom: calc(8px + env(safe-area-inset-bottom)); }
    .balcony-nav a { min-height: 40px; font-size: 8px; }
    .opening-scene { min-height: auto; }
    .stage-copy { padding: 16px; }
    .stage-copy h1 { font-size: 46px; }
    .stage-lead { font-size: 14px; }
    .spotlight-frame { min-height: 500px; }
    .curtain { width: 34%; }
    .name-light { left: 16px; bottom: 96px; }
    .name-light span { font-size: 42px; }
    .performance-ticket { top: 10px; right: 10px; width: 168px; padding: 12px; }
    .performance-ticket strong { font-size: 30px; }
    .countdown-badge { width: 112px; right: 10px; bottom: 10px; }
    .countdown-badge strong { font-size: 36px; }
    .scene-actions { flex-direction: column; padding: 0 10px 10px; }
    .act-section,
    .editorial-section { padding: 16px; }
    .section-title h2,
    .score-heading h2,
    .editorial-heading h2,
    .loge-copy h2 { font-size: 38px; }
    .score-card { grid-template-columns: 1fr; gap: 6px; }
    .editorial-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
    .gallery-card:nth-child(1),
    .gallery-card:nth-child(3) { grid-row: auto; grid-column: auto; }
}
