:root {
    /* Compliance trace: (400 (Google IntersectionObserver` threshold callbacks. detect which active. Apply differential speeds left/right panels using `transform: translateY( */
    --abyss: #070D1A;
    --left: #0B1628;
    --right: #142238;
    --brass: #C9A84C;
    --champagne: #D4B86A;
    --mist: #D1D9E6;
    --pewter: #8A9BB5;
    --amber: #E8B84D;
    --gunmetal: #2A3A52;
    --display: "Nunito", system-ui, -apple-system, sans-serif;
    --body: "Quicksand", system-ui, -apple-system, sans-serif;
    --mono: "Fira Code", ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { background: var(--abyss); scroll-behavior: smooth; }

body {
    min-height: 100%;
    overflow-x: hidden;
    color: var(--pewter);
    font-family: var(--body);
    background: var(--abyss);
}

.svg-patterns { position: absolute; pointer-events: none; }

.split-shell {
    display: grid;
    grid-template-columns: 48vw 4vw 48vw;
    min-height: 600vh;
    background: var(--abyss);
    isolation: isolate;
}

.panel { position: relative; overflow: hidden; }

.left-panel {
    background:
        radial-gradient(ellipse 68vw 42vh at 5% 8%, rgba(201,168,76,.07), transparent 68%),
        radial-gradient(ellipse 52vw 46vh at 98% 56%, rgba(42,58,82,.45), transparent 70%),
        var(--left);
    animation: openLeft 1.8s cubic-bezier(.16,1,.3,1) both;
}

.right-panel {
    background-color: var(--right);
    background-image:
        repeating-linear-gradient(45deg, transparent 0 40px, rgba(201,168,76,.06) 40px 41px),
        radial-gradient(ellipse at center, rgba(201,168,76,.04), transparent 70%);
    animation: openRight 1.8s cubic-bezier(.16,1,.3,1) both;
}

.panel-track { will-change: transform; }

.zone {
    min-height: 120vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(3rem, 7vw, 7rem);
}

.left-panel .zone::before,
.left-panel .zone::after {
    content: "";
    position: absolute;
    left: clamp(2rem, 4vw, 5rem);
    right: clamp(2rem, 4vw, 5rem);
    height: 12px;
    background-image: linear-gradient(90deg, transparent, rgba(201,168,76,.22), transparent);
    opacity: .75;
}

.left-panel .zone::before { top: 8vh; }
.left-panel .zone::after { bottom: 8vh; }

h1, h2 {
    font-family: var(--display);
    letter-spacing: .08em;
    line-height: .98;
    text-shadow: 0 0 20px rgba(201,168,76,.15), 0 0 40px rgba(201,168,76,.08), 0 0 80px rgba(201,168,76,.04);
}

h1 {
    max-width: 9ch;
    color: var(--mist);
    font-size: clamp(2.4rem, 6vw, 5.6rem);
    font-weight: 800;
}

h2 {
    color: var(--champagne);
    font-size: clamp(2.4rem, 5vw, 4.8rem);
    font-weight: 300;
    margin-bottom: 2rem;
}

p {
    max-width: 34rem;
    color: var(--pewter);
    font-size: clamp(.95rem, 1.4vw, 1.15rem);
    font-weight: 500;
    line-height: 1.75;
    margin-top: 1.2rem;
}

.lead {
    color: var(--mist);
    font-family: var(--display);
    font-size: clamp(1.25rem, 2vw, 1.9rem);
    font-weight: 300;
    letter-spacing: .035em;
}

.plaque,
.floating-label {
    font-family: var(--mono);
    font-size: .75rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--brass);
}

.plaque {
    width: max-content;
    border: 1px solid rgba(201,168,76,.45);
    padding: .55rem .8rem;
    margin-bottom: 2rem;
    background: rgba(7,13,26,.34);
    box-shadow: inset 0 0 0 4px rgba(201,168,76,.035);
}

.ornamental-spine {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(90deg, #070D1A 0%, #0B1628 28%, #C9A84C 49%, #0B1628 72%, #070D1A 100%);
    transform-origin: center;
    animation: openSpine 1.8s cubic-bezier(.16,1,.3,1) .6s both;
    z-index: 4;
}

.spine-layer {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .8s ease;
    mix-blend-mode: screen;
}

.spine-diamond { opacity: .72; background-image: linear-gradient(45deg, transparent 42%, rgba(201,168,76,.55) 43% 45%, transparent 46% 54%, rgba(201,168,76,.55) 55% 57%, transparent 58%), linear-gradient(-45deg, transparent 42%, rgba(201,168,76,.38) 43% 45%, transparent 46% 54%, rgba(201,168,76,.38) 55% 57%, transparent 58%); background-size: 42px 42px; }
.spine-chevron { background: repeating-linear-gradient(135deg, transparent 0 20px, rgba(212,184,106,.6) 21px 23px, transparent 24px 42px); }
.spine-fan { background-image: radial-gradient(circle at 50% 100%, transparent 0 18px, rgba(201,168,76,.52) 19px 20px, transparent 21px 39px, rgba(201,168,76,.36) 40px 41px, transparent 42px); background-size: 60px 60px; }
body.zone-archive .spine-diamond, body.zone-salon .spine-diamond { opacity: 0; }
body.zone-archive .spine-chevron { opacity: .7; }
body.zone-salon .spine-fan { opacity: .62; }
body.zone-exit .spine-diamond { opacity: .85; }

.visual-zone { align-items: center; overflow: hidden; }
.visual-zone::before { content: ""; position: absolute; inset: 9%; border: 1px solid rgba(201,168,76,.18); pointer-events: none; }

.spotlight { position: absolute; width: 46vw; height: 46vw; border-radius: 50%; background: radial-gradient(circle, rgba(232,184,77,.13), transparent 62%); filter: blur(2px); }

.morphing-keystone {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--champagne), var(--brass) 48%, #8f7024 100%);
    box-shadow: 0 0 80px rgba(201,168,76,.15), inset 0 0 40px rgba(255,255,255,.08);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: keystoneMorph 12s ease-in-out infinite, brassPulse 8s ease-in-out infinite;
    z-index: 2;
}

.hero-keystone::after,
.salon-keystone::after {
    content: "";
    position: absolute;
    inset: 12%;
    border: 1px solid rgba(7,13,26,.35);
    clip-path: inherit;
}

.deco-orbit { position: absolute; border: 1px solid rgba(201,168,76,.34); transform: rotate(45deg); animation: orbitTurn 38s linear infinite; }
.orbit-one { width: 420px; height: 420px; }
.orbit-two { width: 520px; height: 520px; animation-duration: 55s; animation-direction: reverse; opacity: .45; }

.gallery.visual-zone { gap: clamp(1rem, 3vw, 2rem); }
.deco-frame { position: absolute; width: 18vw; min-width: 160px; max-width: 270px; aspect-ratio: 1; display: grid; place-items: center; border: 2px solid rgba(201,168,76,.65); box-shadow: inset 0 0 0 10px rgba(201,168,76,.05), 0 0 40px rgba(201,168,76,.06); }
.deco-frame::before, .deco-frame::after { content: ""; position: absolute; inset: 8%; border: 1px solid rgba(212,184,106,.35); }
.deco-frame::after { inset: 16%; border-style: dashed; opacity: .55; }
.frame-a { transform: translate(-7vw, -15vh); }
.frame-b { transform: translate(8vw, 4vh); }
.frame-c { transform: translate(-2vw, 24vh); }

.chevron-stack { width: 45%; height: 65%; background: repeating-linear-gradient(135deg, transparent 0 16px, var(--brass) 17px 28px, transparent 29px 45px), repeating-linear-gradient(45deg, transparent 0 16px, rgba(212,184,106,.85) 17px 28px, transparent 29px 45px); clip-path: polygon(50% 0, 100% 35%, 72% 35%, 72% 100%, 28% 100%, 28% 35%, 0 35%); animation: chevronBreathe 8s ease-in-out infinite; }
.stepped-pyramid { width: 62%; height: 62%; border: 2px solid var(--brass); box-shadow: inset 0 0 0 18px var(--right), inset 0 0 0 20px rgba(201,168,76,.8), inset 0 0 0 38px var(--right), inset 0 0 0 40px rgba(201,168,76,.6); animation: frameRotate 18s linear infinite; }
.sunburst-fan { width: 70%; height: 70%; border-radius: 50%; background: conic-gradient(from 0deg, rgba(201,168,76,.9) 0 3deg, transparent 3deg 15deg); animation: sunburstSpin 60s linear infinite; }

.archive.visual-zone { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M0 0 15 30 30 0M30 0l15 30 15-30M0 30l15 30 15-30M30 30l15 30 15-30' fill='none' stroke='%23C9A84C' stroke-opacity='.16' stroke-width='1.4'/%3E%3C/svg%3E"); }
.archive-wall { position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath d='M0 80a40 40 0 0 1 80 0M-40 40a40 40 0 0 1 80 0M40 40a40 40 0 0 1 80 0' fill='none' stroke='%23C9A84C' stroke-opacity='.13'/%3E%3C/svg%3E"); background-size: 80px 80px; opacity: .75; animation: wallpaperDrift 36s linear infinite; }
.floating-label { position: absolute; padding: 1rem 1.25rem; border: 1px solid rgba(201,168,76,.58); background: rgba(11,22,40,.72); box-shadow: inset 0 0 0 5px rgba(201,168,76,.04); animation: labelFloat 7s ease-in-out infinite; }
.label-one { left: 12%; top: 22%; }
.label-two { right: 12%; bottom: 25%; animation-delay: -2s; }
.label-three { right: 24%; top: 42%; animation-delay: -4s; }

.salon.visual-zone { background: radial-gradient(ellipse at center, rgba(201,168,76,.06), transparent 58%); }
.bridge-form { position: absolute; left: -8vw; width: 24vw; height: 24vw; border: 1px solid rgba(212,184,106,.4); transform: rotate(45deg); box-shadow: 0 0 80px rgba(201,168,76,.09); }
.salon-keystone { width: min(36vw, 390px); height: min(36vw, 390px); }

.exit.visual-zone { background: radial-gradient(ellipse at left center, rgba(201,168,76,.08), transparent 60%), linear-gradient(180deg, transparent, var(--abyss)); }
.exit-sunburst { width: min(58vw, 620px); height: min(58vw, 620px); overflow: visible; opacity: .72; }
.exit-sunburst g { transform-origin: 250px 250px; animation: sunburstSpin 60s linear infinite; }
.exit-sunburst line { stroke: var(--brass); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 250; stroke-dashoffset: calc(250 - (250 * var(--draw, 0))); filter: drop-shadow(0 0 8px rgba(201,168,76,.35)); }

.archive, .salon, .exit { background-blend-mode: screen; }
.left-panel .archive { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cpath d='M24 2 46 24 24 46 2 24Z' fill='none' stroke='%23C9A84C' stroke-opacity='.12'/%3E%3C/svg%3E"); }
.left-panel .salon { background: linear-gradient(180deg, transparent, rgba(42,58,82,.5), transparent); }
.left-panel .exit { background: linear-gradient(180deg, transparent, rgba(7,13,26,.86)); }

@keyframes keystoneMorph { 0% { clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); } 25% { clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); } 50% { clip-path: polygon(0% 100%, 15% 20%, 50% 0%, 85% 20%, 100% 100%); } 75% { clip-path: polygon(50% 0%, 100% 60%, 85% 100%, 15% 100%, 0% 60%); } 100% { clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); } }
@keyframes brassPulse { 0%,100% { filter: brightness(.95); transform: scaleY(.98); } 50% { filter: brightness(1.12); transform: scaleY(1.04); } }
@keyframes chevronBreathe { 0%,100% { transform: scaleY(.95); } 50% { transform: scaleY(1.05); } }
@keyframes sunburstSpin { to { transform: rotate(360deg); } }
@keyframes orbitTurn { to { transform: rotate(405deg); } }
@keyframes frameRotate { to { transform: rotate(360deg); } }
@keyframes wallpaperDrift { to { background-position: 80px 80px; } }
@keyframes labelFloat { 0%,100% { transform: translate3d(0,0,0); opacity: .68; } 50% { transform: translate3d(14px,-22px,0); opacity: 1; } }
@keyframes openLeft { from { transform: translateX(-100vw); } to { transform: translateX(0); } }
@keyframes openRight { from { transform: translateX(100vw); } to { transform: translateX(0); } }
@keyframes openSpine { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (max-width: 767px) {
    .split-shell { display: block; min-height: auto; }
    .ornamental-spine { position: relative; height: 16px; width: 100%; animation: none; transform: none; }
    .panel { overflow: visible; animation: none; }
    .zone { min-height: 92vh; padding: 4rem 1.4rem; }
    .right-panel { background-image: repeating-linear-gradient(45deg, transparent 0 30px, rgba(201,168,76,.06) 30px 31px); }
    .morphing-keystone { width: 220px; height: 220px; }
    .deco-frame { width: 50vw; }
    .frame-a { transform: translate(-12vw,-18vh); }
    .frame-b { transform: translate(13vw,2vh); }
    .frame-c { transform: translate(-4vw,22vh); }
    .bridge-form { left: 4vw; width: 48vw; height: 48vw; opacity: .5; }
    .exit-sunburst { width: 92vw; height: 92vw; }
}
