/* ============================================================
   adhoc.quest
   mid-century modern minimalism
   navy-metallic palette, elegant serif, minimal navigation
   Interaction Pattern* Pattern:** Interactive elements respond to hover with a subtle
   scale transform — `transform: scale(1.03. IntersectionObserver (scroll
   reveals) uses IntersectionObserver` with threshold 0.15. Elements translate
   upward 24px during their reveal (not 60px — subtlety is key.
   Space Grotesk" (Google Fonts powers incidental type.
   ============================================================ */

:root {
    --navy:       #0B1628;
    --deep-steel: #162236;
    --champagne:  #D4C5A9;
    --steel:      #8A9BAE;
    --gunmetal:   #4A6074;
    --nickel:     #6B7B8D;
    --ivory:      #FFF8F0;
    --mist:       #C8D0DA;

    --font-display: 'Cormorant Garamond', 'Cormorant', Georgia, serif;
    --font-body:    'Libre Baskerville', Georgia, 'Times New Roman', serif;
    --font-ui:      'Space Grotesk', 'Space', 'Inter', system-ui, sans-serif;

    --ease-quiet:    cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-measured: cubic-bezier(0.4, 0, 0.2, 1);

    --gutter: clamp(1.5rem, 5vw, 5rem);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--navy);
    color: var(--mist);
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.15vw, 1.25rem);
    line-height: 1.75;
    letter-spacing: 0.015em;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Deep navy gradient wash over the whole page --- downward-falling light */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(172deg,
            rgba(22, 34, 54, 0.55) 0%,
            rgba(11, 22, 40, 0) 40%,
            rgba(11, 22, 40, 0.65) 100%);
    pointer-events: none;
    z-index: 0;
}

/* a faint vignette at the edges */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center,
        transparent 40%,
        rgba(11, 22, 40, 0.4) 100%);
    pointer-events: none;
    z-index: 0;
}

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

::selection {
    background: rgba(212, 197, 169, 0.35);
    color: var(--ivory);
}

/* ============================================================
   Masthead --- thin top rule, domain small caps, time readout
   ============================================================ */

.masthead {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(11, 22, 40, 0.88) 0%, rgba(11, 22, 40, 0) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.masthead-inner {
    width: 60%;
    min-width: 280px;
    max-width: 1280px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    pointer-events: auto;
}

.wordmark {
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 500;
    color: var(--steel);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    white-space: nowrap;
    flex-shrink: 0;
    transition: color 600ms var(--ease-quiet), letter-spacing 600ms var(--ease-quiet);
}

.wordmark:hover {
    color: var(--champagne);
    letter-spacing: 0.22em;
}

.masthead-rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right,
        transparent 0%,
        var(--steel) 8%,
        var(--steel) 92%,
        transparent 100%);
    opacity: 0.7;
}

/* ============================================================
   Scroll progress indicator --- right margin
   ============================================================ */

.scroll-indicator {
    position: fixed;
    right: clamp(1rem, 2.5vw, 2.5rem);
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 160px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    pointer-events: none;
}

.scroll-room-label,
.scroll-room-total {
    font-family: var(--font-ui);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--steel);
    opacity: 0.7;
    font-variant-numeric: tabular-nums;
}

.scroll-room-label {
    color: var(--champagne);
    opacity: 0.95;
    transition: color 400ms var(--ease-quiet);
}

.scroll-track {
    position: relative;
    width: 1px;
    height: 80px;
    background: var(--steel);
    opacity: 0.5;
    flex-shrink: 0;
}

.scroll-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--champagne);
    transform: translate(-50%, -50%);
    box-shadow:
        0 0 0 1px rgba(212, 197, 169, 0.3),
        0 0 14px rgba(212, 197, 169, 0.35);
    transition: top 400ms var(--ease-quiet);
    pointer-events: none;
}

/* ============================================================
   Cursor-following blob
   ============================================================ */

.cursor-blob {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 45;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 600ms var(--ease-quiet);
    mix-blend-mode: screen;
}

.cursor-blob.visible {
    opacity: 0.75;
}

.cursor-blob path {
    fill: none;
    stroke: var(--champagne);
    stroke-width: 0.75;
    animation: cursorBlobMorph 6s ease-in-out infinite alternate;
}

@keyframes cursorBlobMorph {
    0%   { d: path("M50,15 C70,20 85,35 82,55 C79,75 60,88 42,82 C24,76 12,60 18,42 C24,24 35,12 50,15 Z"); }
    50%  { d: path("M50,12 C74,18 88,38 85,58 C82,78 58,90 40,86 C22,82 10,62 15,40 C20,18 34,10 50,12 Z"); }
    100% { d: path("M48,18 C68,15 86,32 84,52 C82,74 62,86 44,84 C26,82 14,66 16,46 C18,26 32,16 48,18 Z"); }
}

/* ============================================================
   Room base
   ============================================================ */

.room {
    min-height: 100vh;
    padding: clamp(7rem, 14vh, 11rem) var(--gutter);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.room-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.room-numeral {
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--steel);
    letter-spacing: 0.28em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    opacity: 0.85;
    font-weight: 400;
}

/* ============================================================
   Reveal animation (triggered by IntersectionObserver)
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1200ms var(--ease-quiet), transform 1200ms var(--ease-quiet);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal[data-stagger="1"] { transition-delay: 0ms; }
.reveal[data-stagger="2"] { transition-delay: 120ms; }
.reveal[data-stagger="3"] { transition-delay: 240ms; }
.reveal[data-stagger="4"] { transition-delay: 360ms; }
.reveal[data-stagger="5"] { transition-delay: 480ms; }

/* ============================================================
   ROOM 1 --- The Vestibule
   ============================================================ */

.room-vestibule {
    text-align: center;
    min-height: 100vh;
}

.vestibule-inner {
    text-align: center;
    position: relative;
    z-index: 3;
    max-width: 880px;
    margin: 0 auto;
}

.display {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: var(--champagne);
    text-shadow:
        0 0 0.5px rgba(200, 208, 218, 0.6),
        0 0 24px rgba(11, 22, 40, 0.8);
    margin-bottom: 2.5rem;
}

.display-line {
    display: block;
}

.display-line-emph {
    font-style: italic;
    font-weight: 300;
    color: var(--mist);
}

.vestibule-sub {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--mist);
    opacity: 0.78;
    max-width: 56ch;
    margin: 0 auto 3.5rem;
    font-size: clamp(0.95rem, 1.1vw, 1.1rem);
    line-height: 1.85;
}

.vestibule-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 5rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.meta-cell {
    font-family: var(--font-ui);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--steel);
    white-space: nowrap;
}

.meta-cell em {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--champagne);
    margin-right: 0.5rem;
    opacity: 0.85;
}

.meta-dot {
    width: 6px;
    height: 6px;
    background: var(--steel);
    transform: rotate(45deg);
    opacity: 0.55;
    flex-shrink: 0;
}

.vestibule-cue {
    font-family: var(--font-ui);
    font-size: 11px;
    color: var(--steel);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    opacity: 0.6;
    animation: cueFloat 3.5s ease-in-out infinite alternate;
}

@keyframes cueFloat {
    from { transform: translateY(0);   opacity: 0.45; }
    to   { transform: translateY(6px); opacity: 0.9;  }
}

/* Ambient blob --- Vestibule */
.ambient-blob.vestibule-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(80vmin, 720px);
    height: min(80vmin, 720px);
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
}

.ambient-blob.vestibule-blob-outer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(105vmin, 960px);
    height: min(105vmin, 960px);
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
    animation: outerBlobSpin 90s linear infinite;
}

@keyframes outerBlobSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.ambient-blob.vestibule-blob path {
    animation: vestibuleMorph 20s ease-in-out infinite alternate;
    transform-origin: center;
    filter: drop-shadow(0 0 36px rgba(74, 96, 116, 0.28));
}

@keyframes vestibuleMorph {
    0% {
        d: path("M300,80 C410,100 520,180 510,300 C500,420 400,520 290,510 C180,500 90,410 100,290 C110,170 190,60 300,80 Z");
    }
    50% {
        d: path("M310,60 C440,90 540,200 520,320 C500,440 380,540 270,520 C160,500 70,390 90,260 C110,130 210,40 310,60 Z");
    }
    100% {
        d: path("M290,100 C420,80 530,200 520,310 C510,430 410,530 300,520 C170,510 80,400 90,280 C100,160 180,110 290,100 Z");
    }
}

/* Hexagonal bokeh field */
.bokeh-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hex-bokeh {
    position: absolute;
    display: block;
    background: var(--champagne);
    clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
    opacity: 0.04;
    animation: hexPulse 8s ease-in-out infinite alternate;
}

@keyframes hexPulse {
    from { transform: scale(0.95); opacity: 0.025; }
    to   { transform: scale(1.05); opacity: 0.06;  }
}

.bokeh-field .hex-1 { top: 12%;   left: 8%;   width: 26px; height: 26px; animation-delay: -1s; }
.bokeh-field .hex-2 { top: 28%;   right: 14%; width: 38px; height: 38px; animation-delay: -3s; opacity: 0.035; }
.bokeh-field .hex-3 { bottom: 18%; left: 22%; width: 18px; height: 18px; animation-delay: -5s; }
.bokeh-field .hex-4 { bottom: 32%; right: 8%;  width: 44px; height: 44px; animation-delay: -7s; opacity: 0.03; }
.bokeh-field .hex-5 { top: 60%;   left: 48%;  width: 14px; height: 14px; animation-delay: -2s; }
.bokeh-field .hex-6 { top: 18%;   left: 46%;  width: 22px; height: 22px; animation-delay: -4s; opacity: 0.025; }
.bokeh-field .hex-7 { bottom: 8%;  right: 36%; width: 30px; height: 30px; animation-delay: -6s; opacity: 0.04; }

/* ============================================================
   ROOM 2 --- The Gallery
   Asymmetric grid: 38.2% / 11.8% gutter / 50%
   ============================================================ */

.room-gallery {
    align-items: stretch;
    padding-top: clamp(9rem, 16vh, 13rem);
    padding-bottom: clamp(9rem, 16vh, 13rem);
}

.gallery-grid {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 38.2fr 11.8fr 50fr;
    align-items: stretch;
    min-height: 70vh;
}

.metallic-panel-wrap {
    grid-column: 1 / 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.panel-caption,
.panel-caption-top {
    font-family: var(--font-ui);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--steel);
    opacity: 0.72;
    text-align: left;
    font-weight: 400;
}

.panel-caption-top {
    margin-bottom: 0.25rem;
}

.metallic-panel {
    position: relative;
    flex: 1;
    min-height: 540px;
    background:
        linear-gradient(170deg,
            #6B7B8D 0%,
            #8A9BAE 42%,
            #9AA9BA 50%,
            #8A9BAE 58%,
            #6B7B8D 100%);
    overflow: hidden;
    cursor: default;
    transform: scale(1);
    transition:
        transform 600ms var(--ease-quiet),
        box-shadow 600ms var(--ease-quiet);
    box-shadow:
        inset 0 0 0 1px rgba(200, 208, 218, 0.18),
        0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

.metallic-panel::before {
    /* vertical brushed grain */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(170deg,
            rgba(255, 248, 240, 0.03) 0px,
            rgba(255, 248, 240, 0.03) 1px,
            transparent 1px,
            transparent 3px);
    pointer-events: none;
}

.metallic-panel::after {
    /* thin tapering highlight line */
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(255, 248, 240, 0.45) 20%,
        rgba(255, 248, 240, 0.45) 80%,
        transparent 100%);
    transform: translateX(-50%);
    pointer-events: none;
}

.metallic-panel:hover {
    transform: scale(1.03);
    box-shadow:
        inset 0 0 0 1px rgba(200, 208, 218, 0.3),
        0 30px 90px -20px rgba(0, 0, 0, 0.8);
}

.metallic-sheen {
    position: absolute;
    top: 0;
    left: -100%;
    width: 85%;
    height: 100%;
    background: linear-gradient(105deg,
        transparent 0%,
        rgba(255, 248, 240, 0.15) 50%,
        transparent 100%);
    pointer-events: none;
    transition: left 1800ms var(--ease-quiet);
}

.metallic-panel:hover .metallic-sheen {
    left: 140%;
}

.metallic-serial {
    position: absolute;
    top: 1.25rem;
    left: 1.5rem;
    font-family: var(--font-ui);
    font-size: 9px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--navy);
    opacity: 0.55;
    mix-blend-mode: multiply;
    font-weight: 500;
}

.metallic-label {
    position: absolute;
    bottom: 1.25rem;
    left: 1.5rem;
    font-family: var(--font-ui);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--navy);
    opacity: 0.72;
    mix-blend-mode: multiply;
    font-weight: 500;
}

/* corner ticks on the metallic panel */
.metallic-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: rgba(11, 22, 40, 0.55);
    border-style: solid;
    border-width: 0;
    pointer-events: none;
    mix-blend-mode: multiply;
}
.metallic-corner.tl { top: 8px;    left: 8px;    border-top-width: 1px;    border-left-width: 1px; }
.metallic-corner.tr { top: 8px;    right: 8px;   border-top-width: 1px;    border-right-width: 1px; }
.metallic-corner.bl { bottom: 8px; left: 8px;    border-bottom-width: 1px; border-left-width: 1px; }
.metallic-corner.br { bottom: 8px; right: 8px;   border-bottom-width: 1px; border-right-width: 1px; }

.gallery-text-column {
    grid-column: 3 / 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4rem;
    padding-left: clamp(1.5rem, 3vw, 3rem);
    position: relative;
    z-index: 2;
}

.gallery-numeral {
    margin-bottom: 0;
}

.text-block {
    max-width: 60ch;
    position: relative;
}

.block-kicker {
    font-family: var(--font-ui);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 400;
}

.block-kicker::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    background: var(--champagne);
    transform: rotate(45deg);
    opacity: 0.85;
    flex-shrink: 0;
}

.block-heading {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(1.75rem, 2.6vw, 2.6rem);
    line-height: 1.15;
    letter-spacing: 0.01em;
    color: var(--champagne);
    margin-bottom: 1.25rem;
}

.block-body {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.05vw, 1.125rem);
    line-height: 1.8;
    color: var(--mist);
    max-width: 60ch;
}

.block-body em {
    color: var(--champagne);
    font-style: italic;
}

/* ============================================================
   ROOM 3 --- The Atelier
   ============================================================ */

.room-atelier {
    align-items: center;
    justify-content: center;
    min-height: 110vh;
}

.atelier-stage {
    position: relative;
    width: min(90vmin, 800px);
    height: min(90vmin, 800px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atelier-blob,
.atelier-dial {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: center;
    pointer-events: none;
}

.atelier-blob-outer {
    animation: atelierSpin 70s linear infinite;
}

.atelier-blob-mid {
    animation: atelierSpinReverse 55s linear infinite;
}

.atelier-blob-inner {
    animation: atelierSpin 40s linear infinite;
}

.atelier-blob-outer .atelier-blob-path { animation: atelierOuterMorph 24s ease-in-out infinite alternate; }
.atelier-blob-mid   .atelier-blob-path { animation: atelierMidMorph   18s ease-in-out infinite alternate; }
.atelier-blob-inner .atelier-blob-path { animation: atelierInnerMorph 14s ease-in-out infinite alternate; }

@keyframes atelierSpin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes atelierSpinReverse {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
}

@keyframes atelierOuterMorph {
    0%   { d: path("M400,80 C560,110 720,220 720,400 C720,560 600,720 420,720 C240,720 80,580 90,400 C100,240 230,70 400,80 Z"); }
    100% { d: path("M400,100 C570,90 710,240 720,410 C730,580 590,710 410,720 C230,730 70,600 90,390 C110,220 230,110 400,100 Z"); }
}

@keyframes atelierMidMorph {
    0%   { d: path("M400,140 C540,150 660,260 660,400 C660,540 540,660 400,660 C260,660 140,540 140,400 C140,260 260,130 400,140 Z"); }
    100% { d: path("M400,150 C550,140 670,270 660,410 C650,550 530,670 400,660 C270,650 150,530 150,400 C150,270 260,150 400,150 Z"); }
}

@keyframes atelierInnerMorph {
    0%   { d: path("M400,200 C500,200 600,300 600,400 C600,500 500,600 400,600 C300,600 200,500 200,400 C200,300 300,200 400,200 Z"); }
    100% { d: path("M400,210 C510,210 600,310 595,400 C590,495 500,590 400,590 C305,590 210,495 205,400 C200,305 295,210 400,210 Z"); }
}

.atelier-center {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 380px;
}

.atelier-numeral {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(6rem, 14vw, 14rem);
    line-height: 1;
    color: var(--champagne);
    letter-spacing: -0.02em;
    text-shadow: 0 0 30px rgba(11, 22, 40, 0.95);
    margin-bottom: 0.5rem;
}

.atelier-word {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.5rem, 2.2vw, 2.25rem);
    color: var(--mist);
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
}

.atelier-aside {
    font-family: var(--font-body);
    font-size: clamp(0.9rem, 1vw, 1rem);
    color: var(--steel);
    max-width: 30ch;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
}

.atelier-divider {
    width: 40px;
    height: 1px;
    background: var(--steel);
    opacity: 0.55;
    margin: 0 auto 1rem;
}

.atelier-coords {
    font-family: var(--font-ui);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--steel);
    opacity: 0.7;
    font-weight: 400;
}

.atelier-center .room-numeral {
    margin-bottom: 1.5rem;
}

/* ============================================================
   ROOM 4 --- The Archive
   Three cards, 280px each, 48px gaps, centered
   ============================================================ */

.room-archive {
    flex-direction: column;
    align-items: center;
    padding-top: clamp(9rem, 16vh, 13rem);
    padding-bottom: clamp(9rem, 16vh, 13rem);
    gap: 4rem;
}

.archive-intro {
    max-width: 640px;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.archive-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.25rem, 4.5vw, 4rem);
    line-height: 1.1;
    letter-spacing: 0.02em;
    color: var(--champagne);
    margin-bottom: 1.25rem;
}

.archive-lede {
    font-family: var(--font-body);
    font-style: italic;
    color: var(--mist);
    opacity: 0.82;
    max-width: 48ch;
    margin: 0 auto 2rem;
}

.archive-rule {
    width: 80px;
    height: 1px;
    background: linear-gradient(to right,
        transparent 0%,
        var(--steel) 50%,
        transparent 100%);
    margin: 0 auto;
    opacity: 0.6;
}

.archive-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 48px;
    width: 100%;
    max-width: calc(280px * 3 + 48px * 2 + 4rem);
}

.card {
    position: relative;
    width: 280px;
    padding: 2.25rem 1.75rem 2rem;
    background: var(--deep-steel);
    border: 1px solid var(--gunmetal);
    border-radius: 0; /* sharp mid-century edges */
    cursor: default;
    overflow: hidden;
    transform: scale(1) translateY(0);
    transition:
        transform 600ms var(--ease-quiet),
        border-color 600ms var(--ease-quiet),
        box-shadow 600ms var(--ease-quiet);
    --flare-x: 50%;
    --flare-y: 50%;
}

.card::before {
    /* faint scanline texture */
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent 0px,
        transparent 3px,
        rgba(200, 208, 218, 0.015) 3px,
        rgba(200, 208, 218, 0.015) 4px);
    pointer-events: none;
}

.card:hover {
    transform: scale(1.04) translateY(-8px);
    border-color: var(--steel);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75);
}

.card-mark {
    display: block;
    width: 8px;
    height: 8px;
    background: var(--champagne);
    transform: rotate(45deg);
    margin-bottom: 1.25rem;
    opacity: 0.9;
}

.card-index {
    font-family: var(--font-ui);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: 1rem;
    font-weight: 400;
}

.card-heading {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.5rem;
    line-height: 1.2;
    letter-spacing: 0.015em;
    color: var(--champagne);
    margin-bottom: 1rem;
}

.card-body {
    font-family: var(--font-body);
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--mist);
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 2;
}

.card-rule {
    width: 36px;
    height: 1px;
    background: var(--steel);
    opacity: 0.5;
    margin-bottom: 1rem;
}

.card-footnote {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 0.8125rem;
    color: var(--steel);
    opacity: 0.78;
    line-height: 1.6;
}

.card-flare {
    /* lens-flare bloom that follows cursor inside card */
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(
        circle 120px at var(--flare-x) var(--flare-y),
        rgba(255, 248, 240, 0.16) 0%,
        rgba(255, 248, 240, 0.08) 25%,
        transparent 70%);
    opacity: 0;
    transition: opacity 200ms var(--ease-measured);
    z-index: 1;
}

.card:hover .card-flare {
    opacity: 1;
}

.card-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 14px;
    height: 14px;
    border-top: 1px solid var(--steel);
    border-right: 1px solid var(--steel);
    opacity: 0.4;
    transition: opacity 600ms var(--ease-quiet);
}

.card:hover .card-corner {
    opacity: 0.8;
}

/* ============================================================
   ROOM 5 --- The Observatory
   ============================================================ */

.room-observatory {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding-top: clamp(9rem, 16vh, 13rem);
    padding-bottom: clamp(4rem, 8vh, 6rem);
    gap: 5rem;
}

.bokeh-field-observatory .hex-1 { top: 18%;    left: 12%;  width: 30px; height: 30px; }
.bokeh-field-observatory .hex-2 { top: 32%;    right: 10%; width: 20px; height: 20px; animation-delay: -3s; }
.bokeh-field-observatory .hex-3 { bottom: 26%; left: 18%;  width: 22px; height: 22px; animation-delay: -5s; }
.bokeh-field-observatory .hex-4 { bottom: 16%; right: 22%; width: 36px; height: 36px; animation-delay: -7s; opacity: 0.03; }
.bokeh-field-observatory .hex-5 { top: 48%;    right: 40%; width: 14px; height: 14px; animation-delay: -2s; }

.anamorphic-streak {
    position: absolute;
    top: 50%;
    left: -40vw;
    width: 40vw;
    min-width: 360px;
    height: 2px;
    background: linear-gradient(to right,
        transparent 0%,
        rgba(255, 248, 240, 0.08) 35%,
        rgba(212, 197, 169, 0.22) 50%,
        rgba(255, 248, 240, 0.08) 65%,
        transparent 100%);
    filter: blur(1.5px);
    transform: translateY(-50%);
    animation: anamorphicDrift 30s linear infinite;
    z-index: 1;
    pointer-events: none;
}

.anamorphic-streak-secondary {
    top: 66%;
    animation-duration: 45s;
    animation-delay: -14s;
    width: 30vw;
    min-width: 260px;
    opacity: 0.7;
    filter: blur(2px);
}

@keyframes anamorphicDrift {
    0%   { left: 110vw; opacity: 0; }
    15%  { opacity: 1; }
    85%  { opacity: 1; }
    100% { left: -40vw; opacity: 0; }
}

.observatory-inner {
    position: relative;
    z-index: 3;
    max-width: 560px;
    margin: 0 auto;
}

.observatory-eyebrow {
    font-family: var(--font-ui);
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.observatory-paragraph {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 1.25vw, 1.25rem);
    line-height: 1.85;
    color: var(--mist);
    margin-bottom: 2.5rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.observatory-paragraph em {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 300;
    color: var(--champagne);
    font-size: 1.18em;
    display: inline;
    letter-spacing: 0.015em;
}

.observatory-signoff {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 0.95rem;
    color: var(--steel);
    opacity: 0.82;
}

.closing-rule-wrap {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: 60%;
    min-width: 280px;
    max-width: 820px;
}

.closing-rule {
    display: block;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right,
        transparent 0%,
        var(--steel) 20%,
        var(--steel) 80%,
        transparent 100%);
    opacity: 0.7;
}

.closing-rule-thin {
    width: 40%;
    opacity: 0.35;
    height: 1px;
    background: linear-gradient(to right,
        transparent 0%,
        var(--steel) 50%,
        transparent 100%);
    margin-top: 0.25rem;
}

.closing-mark {
    font-family: var(--font-display);
    color: var(--champagne);
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.colophon {
    font-family: var(--font-ui);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--steel);
    opacity: 0.6;
    max-width: 52ch;
    text-align: center;
    line-height: 1.8;
    font-weight: 400;
}

/* ============================================================
   Responsive adjustments
   ============================================================ */

@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .metallic-panel-wrap,
    .gallery-text-column {
        grid-column: 1 / -1;
        padding-left: 0;
    }
    .metallic-panel {
        min-height: 380px;
    }
    .scroll-indicator {
        display: none;
    }
    .vestibule-meta {
        gap: 0.75rem;
    }
    .meta-cell {
        font-size: 9px;
    }
}

@media (max-width: 640px) {
    :root {
        --gutter: 1.25rem;
    }
    .masthead-inner {
        width: 82%;
    }
    .archive-cards {
        gap: 32px;
    }
    .card {
        width: 100%;
        max-width: 320px;
    }
    .atelier-stage {
        width: 95vmin;
        height: 95vmin;
    }
    .anamorphic-streak {
        width: 80vw;
        min-width: 240px;
    }
    .vestibule-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    .meta-dot {
        display: none;
    }
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}
