:root {
    color-scheme: dark;
    --paper: #101015;
    --ink: #f7f6f3;
    --muted: #bbb9c4;
    --line: #45434f;
    --yellow: #f4ed26;
    --blue: #938aff;
    --orange: #ff8248;
    --panel: #18171f;
}
body { overflow-x: clip; isolation: isolate; }
main, footer { position: relative; }
.masthead { position: relative; z-index: 1; background: #101015; }
.brand-mark { background: var(--yellow); box-shadow: .24rem .24rem 0 var(--blue); }
.hero-copy { z-index: 1; }
.hero h1 { color: white; }
.hero h1 span { color: var(--yellow); }
.tag { color: white; border-color: var(--yellow); }
.hero .intro { color: #e8e6ee; }
.button { color: #101015; border-color: var(--yellow); box-shadow: 3px 3px 0 #101015; }
.button:hover { color: #101015; background: white; }
.monitor { background: #101015; border-color: #9c97bb; box-shadow: .45rem .45rem 0 #4d39e3; }
.opening-visual {
    position: fixed;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    background: #1d182d;
}
.opening-layer, .opening-shade { position: absolute; inset: 0; }
.opening-layer {
    opacity: 0;
    transform: translate3d(0, var(--scene-y, 0px), 0) scale(1.13);
}
.opening-layer:first-child { opacity: 1; }
.opening-layer img { display: block; width: 100%; height: 100%; object-fit: cover; }
.opening-layer img[src$=".png"], .opening-layer img[src$="sqj-synesthesia.jpg"] { image-rendering: pixelated; }
.opening-layer[data-section="title"] img { opacity: .48; }
.opening-shade {
    background:
        linear-gradient(0deg, #101015d9, transparent 48%),
        linear-gradient(90deg, #121019f5 1%, #121019bd 38%, #1210192e 75%, #12101959);
}
main > section:not(.hero), footer {
    background: #101015e8;
    padding-inline: clamp(1rem, 3vw, 2.5rem);
}
main > section:not(.hero) { margin-bottom: clamp(1.25rem, 4vw, 3.5rem); }
.stage-feature { background: var(--panel); }
.tech p, .tech h3 { color: #101015; }
.photo-slot--stage figcaption, .photo-slot--installation figcaption {
    background: var(--panel);
    color: var(--muted);
    padding-inline: .85rem;
}
.archive { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.archive img { border: 1px solid var(--line); }
.photo-slot--gear img { object-position: center bottom; }
.gear-gallery figure:last-child img { background: #000; }

@media (max-width: 700px) {
    .opening-shade {
        background:
            linear-gradient(0deg, #101015d9, transparent 48%),
            linear-gradient(90deg, #13101eea, #13101e70);
    }
    .opening-layer img { object-position: 57% center; }
    .archive { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
    .opening-layer { transform: none; }
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2.5rem);
    margin-top: 1.65rem;
}
.video-grid iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    background: #000;
    border: 1px solid var(--line);
}
.video-grid h3 { margin-top: .8rem; }
.video-grid a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: .25em; }
@media (max-width: 700px) {
    .video-grid { grid-template-columns: minmax(0, 1fr); }
}

.hero {
    position: relative;
    isolation: isolate;
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    gap: clamp(1.2rem, 3vw, 2.8rem) clamp(1.6rem, 5vw, 5rem);
    padding-block: clamp(2.4rem, 5.5vw, 5.5rem) clamp(2.4rem, 5vw, 4.5rem);
}
.hero-copy h1 { font-size: clamp(2.15rem, 14cqw, 6.7rem); overflow-wrap: anywhere; }
.hero-tagline { color: var(--yellow); font-size: clamp(1.55rem, 3.2vw, 2.65rem); font-weight: 720; line-height: 1.15; margin-top: .65rem; }
.hero .intro { margin-top: 1rem; }
.hero-formats {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}
.hero-format {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .55rem;
    padding: clamp(1rem, 2.3vw, 1.65rem);
    border: 1px solid #6c6878;
    background: #18171ff2;
}
.hero-format .format-label { color: var(--muted); font-size: .875rem; font-weight: 700; }
.hero-format h2 { font: 700 clamp(1.2rem, 2vw, 1.65rem)/1.2 system-ui, sans-serif; }
.hero-format .button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: auto;
    border-color: #9c97bb;
    background: transparent;
    color: var(--ink);
    box-shadow: none;
}
.hero-format .button:hover { background: var(--yellow); color: #101015; border-color: var(--yellow); }
.hero-availability { grid-column: 1 / -1; color: var(--muted); }
@media (max-width: 700px) {
    .hero, .hero-formats { grid-template-columns: minmax(0, 1fr); }
    .hero { gap: 1.35rem; padding-block: 2rem 2.6rem; }
    .hero-copy h1 { font-size: clamp(2.1rem, 12.5cqw, 4.8rem); }
    .hero .monitor { margin-top: .65rem; }
}

.heritage-heading .tag { margin-bottom: .65rem; }
.heritage > .heritage-stats { gap: .75rem; margin-block: 1.15rem 1.3rem; }
.heritage > .heritage-stats div {
    gap: .18rem;
    padding: .58rem .7rem .65rem;
    background: var(--panel);
}
.heritage > .heritage-stats dt { line-height: 1.3; }
.heritage-copy {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem clamp(1.25rem, 3vw, 2.5rem);
    color: var(--muted);
    margin-bottom: 1.35rem;
}
.heritage-copy p { max-width: 62ch; }
.heritage-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem 1.25rem;
    margin: 1.7rem 0 1.8rem;
}
.heritage-stats div { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: .55rem; }
.heritage-stats dt { color: var(--muted); font-size: .9rem; }
.heritage-stats dd { order: -1; margin: 0; color: var(--yellow); font: clamp(2rem, 4vw, 3.3rem)/1.15 var(--display); }
.heritage-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.75rem; padding: 0; margin: .65rem 0; }
.heritage-list li { display: grid; border-top: 1px solid var(--line); padding: .62rem 0; }
.heritage-list li span { color: var(--muted); font-size: .9rem; }
.heritage-list [data-context="solo"] .performance-context,
.shows [data-context="solo"] .performance-context { color: var(--yellow); }
.archive-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.2rem; }
.archive-filters button { min-height: 44px; padding: .5rem .85rem; background: var(--panel); color: var(--ink); border: 1px solid #6c6878; }
.archive-filters button[aria-pressed="true"] { border-color: var(--yellow); color: var(--yellow); }
.archive-status { color: var(--muted); font-size: .9rem; margin-top: .4rem; }
.archive-status:empty { margin-top: 0; }
.archive-filters[hidden], .shows [hidden] { display: none; }
@media (max-width: 700px) {
    .heritage-list { grid-template-columns: minmax(0, 1fr); }
    .heritage-stats { gap: .6rem; }
    .heritage-copy { grid-template-columns: minmax(0, 1fr); }
    .heritage > .heritage-stats { gap: .5rem; }
    .heritage > .heritage-stats div { padding-inline: .5rem; }
}

/* Phase 03: shared rhythm and archive reading order. */
.top { gap: clamp(.85rem, 2vw, 1.65rem); }
.top nav { gap: 0 clamp(.8rem, 2.3vw, 1.75rem); }
main > section:not(.hero) {
    padding-block: clamp(2.15rem, 4.4vw, 4.1rem);
    margin-bottom: clamp(1.05rem, 2.9vw, 2.6rem);
    background: #101015ed;
}
main > section.heritage { padding-block: clamp(1.9rem, 4.2vw, 4rem); }
.section-head { align-items: start; }
.section-head p { max-width: 62ch; }
.section-head h2 + p { margin-top: .75rem; }
.heritage-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-block: 1.3rem 1.5rem; }
.heritage-list { margin-bottom: .85rem; }
.heritage-list .debut-note, .shows .debut-note { color: var(--yellow); }
.shows li { grid-template-columns: minmax(9.5rem, .22fr) minmax(0, 1fr) minmax(9rem, .34fr); }
.shows .archive-note { color: var(--muted); max-width: 62ch; margin-top: .45rem; }
.shows .nome-label { color: var(--blue); }
.early-archive { border-block: 1px solid var(--line); padding-block: .45rem; }
.early-archive summary { cursor: pointer; font-weight: 700; padding-block: .65rem; }
.early-archive summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.early-archive > p { color: var(--muted); margin-top: .55rem; }
.video-grid { margin-top: 1.15rem; }
.video-grid article { min-width: 0; }
.video-grid iframe { aspect-ratio: 4 / 3; }
.archive { gap: clamp(.5rem, 1.5vw, 1.15rem); }
.archive img { aspect-ratio: 3 / 2; object-fit: contain; background: #000; }
footer { flex-wrap: wrap; }
footer .text-link { margin-left: auto; }
.footer-credit { color: var(--muted); }
@media (max-width: 700px) {
    .top nav { column-gap: .85rem; }
    .heritage-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shows li { grid-template-columns: minmax(0, 1fr); gap: .22rem; }
    .shows .archive-note { margin: .35rem 0; }
    footer .text-link { margin-left: 0; }
}

.archive-toggle {
    min-height: 44px;
    margin-top: 1rem;
    padding: .5rem .85rem;
    background: var(--panel);
    color: var(--ink);
    border: 1px solid #6c6878;
}
.archive-toggle:hover { border-color: var(--yellow); }
.video-grid .video-preview {
    display: grid;
    place-items: center;
    position: relative;
    aspect-ratio: 4 / 3;
    background: #000;
    border: 1px solid var(--line);
    text-decoration: none;
}
.video-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-preview span {
    position: relative;
    padding: .55rem .85rem;
    background: var(--yellow);
    color: #101015;
    font-weight: 720;
}
.video-preview:hover span { background: white; }

.top nav { flex-wrap: wrap; }
.hero-credit { margin-top: .65rem; color: var(--muted); font-size: .9rem; }
.festival-list { padding-inline-start: 1.25rem; margin-block: .75rem; }
.festival-list li + li { margin-top: .25rem; }
.installation-feature .section-head > div { color: var(--muted); }
.installation-feature .section-head p:last-child { margin-top: .75rem; }
.press-intro { padding-block: clamp(2.4rem, 6vw, 5rem); }
.press-intro h1 { font-size: clamp(2.25rem, 6vw, 5.6rem); max-width: 20ch; overflow-wrap: anywhere; }
.press-intro .intro { max-width: 60ch; }
.press-intro .intro + p { margin-top: 1rem; }
.press-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.15rem; }
.press-columns article { padding: clamp(1rem, 2.5vw, 1.75rem); background: var(--panel); border: 1px solid var(--line); }
.press-columns article > * + * { margin-top: .7rem; }
.press-columns article h4 { margin-bottom: .35rem; }
.press-columns .format-label { color: var(--muted); font-size: .875rem; }
#kontakt a { overflow-wrap: anywhere; }
@media (max-width: 700px) {
    .press-columns { grid-template-columns: minmax(0, 1fr); }
}

/* LIVE / PLAY / COLLECT */
.pillar-nav { gap: 0 clamp(.65rem, 1.7vw, 1.5rem); flex-wrap: wrap; }
.pillar-nav [aria-current="page"] { color: var(--blue); text-decoration: underline; text-underline-offset: .3em; }
.pillar-heading { grid-column: 1 / -1; }
.pillar-identity { font: 400 clamp(1.45rem, 3vw, 2.25rem)/1.15 var(--display); }
.pillar-heading > p + p { color: var(--muted); margin-top: .25rem; }
.hero-formats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: -.5rem; }
.pillar-live { --pillar-accent: var(--yellow); }
.pillar-play { --pillar-accent: #45d9ca; }
.pillar-collect { --pillar-accent: var(--blue); }
.hero-format { border-top: 3px solid var(--pillar-accent); }
.hero-format .format-label { color: var(--pillar-accent); font: 400 1.6rem/1 var(--display); }
.pillar-context { color: var(--muted); font-size: .92rem; }
.pillar-context span { display: block; }
.hero-format .button { border-color: var(--pillar-accent); margin-block-start: auto; }
.hero-format .button:hover { background: var(--pillar-accent); border-color: var(--pillar-accent); }
.press-intro > p { max-width: 62ch; }
.press-intro > p + p:not(.hero-tagline) { margin-top: 1rem; }
@media (max-width: 700px) {
    .hero-formats { grid-template-columns: minmax(0, 1fr); }
}

/* Enhanced only after the shared script has measured the header. */
html.smart-header { scroll-padding-top: calc(var(--masthead-height) + 1.5rem); }
.smart-header .masthead {
    position: sticky;
    top: 0;
    transition: transform 220ms ease-in-out;
}
.smart-header .masthead-hidden { transform: translateY(-100%); pointer-events: none; }
.smart-header .masthead:focus-within:has(:focus-visible) {
    transform: none;
    transition: none;
    pointer-events: auto;
}
@media (prefers-reduced-motion: reduce) {
    .smart-header .masthead { transition: none; }
}
