/* ============================================
   archetype.moe - Coastal Retro-Futuristic Exhibition
   Horizontal Scroll Narrative
   ============================================ */

/* CSS Custom Properties */
:root {
    --bg-cream: #F2EDE4;
    --bg-deep: #1E2D3A;
    --accent-warm: #D4956A;
    --accent-cool: #7A9BAE;
    --text-primary: #2C2C2E;
    --text-light: #B8C5D0;
    --divider: #D1D8DC;
    --highlight: #E8B84B;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow: hidden;
    height: 100%;
}

body {
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    background-color: var(--bg-cream);
    color: var(--text-primary);
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.72;
    font-weight: 400;
    letter-spacing: 0.005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Scroll Container - Horizontal Layout
   ============================================ */

.scroll-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    height: 100vh;
    will-change: transform;
}

/* ============================================
   Progress Bar
   ============================================ */

.progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-warm), var(--highlight));
    z-index: 1000;
    transition: width 0.1s linear;
}

/* ============================================
   Scroll Hint
   ============================================ */

.scroll-hint {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-hint.visible {
    opacity: 1;
}

.scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

.scroll-hint-text {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-cool);
}

.scroll-hint-chevron {
    color: var(--accent-cool);
    animation: pulseChevron 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

@keyframes pulseChevron {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(4px); opacity: 1; }
}

/* ============================================
   Plates - Common Styles
   ============================================ */

.plate {
    min-width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* ============================================
   Plate Dividers
   ============================================ */

.plate-divider {
    min-width: 2px;
    height: 100vh;
    background-color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-shrink: 0;
    animation: dividerPulse 4s ease-in-out infinite;
}

@keyframes dividerPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.9; }
}

.flame-divider {
    animation: flicker 3s ease-in-out infinite;
    transform-origin: bottom center;
}

.flame-divider:nth-child(2) {
    animation-delay: 0.8s;
}

.flame-divider:nth-child(3) {
    animation-delay: 1.6s;
}

@keyframes flicker {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.92); }
}

/* ============================================
   Typography
   ============================================ */

.plate-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.4rem, 5.5vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 1.2rem;
}

.plate-body {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.72;
    font-weight: 400;
    letter-spacing: 0.005em;
    color: var(--text-primary);
    margin-bottom: 1rem;
    max-width: 640px;
}

.plate-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(0.7rem, 1vw, 0.85rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-cool);
    display: inline-block;
    margin-top: 1.5rem;
}

.title-subtitle {
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1rem, 1.6vw, 1.3rem);
    color: var(--accent-cool);
    margin-top: 1.2rem;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.8s;
}

.title-subtitle.visible {
    opacity: 1;
}

/* Typographic Watermarks */
.typographic-watermark {
    position: absolute;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: clamp(160px, 20vw, 400px);
    color: var(--divider);
    opacity: 0.15;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    z-index: 0;
}

/* Star markers for lists */
.star-marker {
    display: inline-block;
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    margin-top: 0.5em;
    margin-right: 12px;
    position: relative;
}

.star-marker::before,
.star-marker::after {
    content: '';
    position: absolute;
    background: var(--highlight);
}

.star-marker::before {
    width: 6px;
    height: 2px;
    top: 2px;
    left: 0;
}

.star-marker::after {
    width: 2px;
    height: 6px;
    top: 0;
    left: 2px;
}

/* ============================================
   SIGNAL PLATE (Plates 1 & 8)
   ============================================ */

.plate-signal {
    background-color: var(--bg-cream);
    display: flex;
    flex-direction: column;
}

/* Frieze strip at top */
.frieze-strip {
    width: 100%;
    height: 20vh;
    position: relative;
    overflow: hidden;
}

.frieze-collage {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(30, 45, 58, 0.6) 100%);
}

/* Collage fragments */
.collage-fragment {
    position: absolute;
    border-radius: 2px;
}

.frag-circle {
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-cool) 0%, var(--bg-deep) 100%);
    opacity: 0.4;
    filter: saturate(0.8);
}

.frag-rect {
    background: linear-gradient(45deg, var(--accent-warm) 0%, var(--accent-cool) 100%);
    opacity: 0.3;
    filter: saturate(0.8);
}

.geometric-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.signal-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;
    height: 100%;
    pointer-events: none;
    animation: waveSlide 60s linear infinite;
}

@keyframes waveSlide {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Signal content area */
.signal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    padding: 2rem;
}

/* Candlelight glow */
.candlelight-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(232, 184, 75, 0.08) 0%, transparent 70%);
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
}

/* Title Reveal */
.title-reveal {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.title-reveal .letter {
    display: inline-block;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.title-reveal .letter.visible {
    opacity: 1;
}

/* Title line */
.title-line {
    width: 0%;
    height: 1px;
    background-color: var(--accent-warm);
    margin: 1rem auto;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 1;
}

.title-line.expanded {
    width: min(80%, 600px);
}

/* Opening flame */
.opening-flame {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.8s ease, transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1;
}

.opening-flame.visible {
    opacity: 1;
}

.opening-flame.settled {
    transform: translate(-50%, -300%) scale(0.5);
    opacity: 0.6;
}

.opening-flame svg {
    animation: flicker 3s ease-in-out infinite;
    transform-origin: bottom center;
}

/* Signal contact */
.signal-contact {
    margin: 1.5rem 0;
    position: relative;
    z-index: 1;
}

.signal-link {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-warm);
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-image: linear-gradient(var(--accent-warm), var(--accent-warm));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
    padding-bottom: 4px;
}

.signal-link:hover {
    transform: scale(1.02);
    background-size: 100% 2px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-size 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.signal-headline {
    color: var(--text-primary);
}

.signal-body {
    max-width: 640px;
    position: relative;
    z-index: 1;
}

/* Closing flame */
.closing-flame {
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.closing-flame svg {
    animation: flicker 3s ease-in-out infinite;
    transform-origin: bottom center;
    animation-delay: 0.5s;
}

/* ============================================
   OBSERVATORY PLATE (Plates 2 & 5)
   ============================================ */

.plate-observatory {
    background-color: var(--bg-cream);
    display: flex;
    flex-direction: row;
}

.observatory-collage {
    width: 65%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.collage-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Collage imagery - CSS-generated abstract compositions */
.collage-base .frag-coastal {
    background: linear-gradient(180deg,
        var(--bg-deep) 0%,
        #2a4255 30%,
        var(--accent-cool) 50%,
        #8aadbe 70%,
        var(--bg-cream) 100%
    );
    filter: saturate(0.8) contrast(0.9);
}

.collage-overlay .frag-retro-lg {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(212, 149, 106, 0.4) 0%, transparent 60%),
        radial-gradient(circle at 70% 60%, rgba(122, 155, 174, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, rgba(30, 45, 58, 0.5) 0%, rgba(232, 184, 75, 0.2) 50%, rgba(30, 45, 58, 0.4) 100%);
    mix-blend-mode: multiply;
    border: 1px solid rgba(209, 216, 220, 0.3);
}

.collage-overlay .frag-coastal-sm {
    background:
        linear-gradient(180deg, var(--bg-deep) 0%, var(--accent-cool) 100%);
    mix-blend-mode: screen;
    opacity: 0.5;
}

/* Deep ocean base */
.collage-base .frag-deep-ocean {
    background: linear-gradient(200deg,
        #0e1c26 0%,
        var(--bg-deep) 30%,
        #2a4a5e 60%,
        var(--accent-cool) 100%
    );
    filter: saturate(0.7);
}

.collage-overlay .frag-retro-station {
    background:
        radial-gradient(ellipse at 40% 50%, rgba(232, 184, 75, 0.3) 0%, transparent 60%),
        linear-gradient(160deg, rgba(212, 149, 106, 0.5) 0%, rgba(30, 45, 58, 0.6) 100%);
    mix-blend-mode: multiply;
    border: 1px solid rgba(209, 216, 220, 0.2);
}

.collage-overlay .frag-coastal-rocks {
    background:
        linear-gradient(135deg, var(--accent-cool) 0%, var(--bg-deep) 100%);
    mix-blend-mode: screen;
    opacity: 0.4;
}

/* Compass roses */
.compass-rose {
    position: absolute;
    z-index: 5;
    opacity: 0.6;
}

.compass-tl {
    top: 20px;
    left: 20px;
}

.compass-br {
    bottom: 20px;
    right: 20px;
}

/* Observatory text column */
.observatory-text {
    width: 35%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3rem 4rem 2.5rem;
    border-left: 1px solid var(--accent-cool);
    position: relative;
    z-index: 2;
}

.observatory-text .plate-headline {
    color: var(--text-primary);
}

/* Observatory collage hover */
.observatory-collage .collage-overlay {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
}

.observatory-collage:hover .collage-overlay {
    transform: scale(1.04);
    filter: brightness(1.06);
}

/* ============================================
   BROADCAST PLATE (Plates 3 & 6)
   ============================================ */

.plate-broadcast {
    position: relative;
}

.broadcast-collage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Broadcast base imagery */
.collage-base .frag-retro-wide {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(232, 184, 75, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(212, 149, 106, 0.25) 0%, transparent 60%),
        linear-gradient(135deg,
            var(--bg-deep) 0%,
            #2a4a5e 25%,
            var(--accent-cool) 45%,
            #6d8a9b 65%,
            var(--bg-deep) 100%
        );
    filter: saturate(0.8) contrast(0.95);
}

.collage-overlay .frag-coastal-wide {
    background:
        linear-gradient(180deg, rgba(30, 45, 58, 0.3) 0%, rgba(122, 155, 174, 0.4) 50%, rgba(30, 45, 58, 0.2) 100%);
    mix-blend-mode: overlay;
    border: 1px solid rgba(209, 216, 220, 0.15);
}

/* Sunset harbor for plate 6 */
.collage-base .frag-sunset-harbor {
    background:
        radial-gradient(ellipse at 50% 80%, rgba(212, 149, 106, 0.5) 0%, transparent 60%),
        linear-gradient(180deg,
            #1a2838 0%,
            var(--bg-deep) 20%,
            #3a5a6e 45%,
            var(--accent-warm) 70%,
            #c4784e 85%,
            var(--bg-deep) 100%
        );
    filter: saturate(0.75);
}

.collage-overlay .frag-retro-habitat {
    background:
        radial-gradient(ellipse at 50% 50%, rgba(232, 184, 75, 0.25) 0%, transparent 60%),
        linear-gradient(100deg, rgba(30, 45, 58, 0.6) 0%, rgba(212, 149, 106, 0.3) 100%);
    mix-blend-mode: multiply;
    border: 1px solid rgba(209, 216, 220, 0.2);
}

.collage-overlay .frag-compass-chart {
    background:
        radial-gradient(circle at center, rgba(184, 197, 208, 0.2) 0%, transparent 70%),
        linear-gradient(45deg, rgba(122, 155, 174, 0.3) 0%, rgba(30, 45, 58, 0.4) 100%);
    mix-blend-mode: screen;
    opacity: 0.5;
}

/* Broadcast gradient overlay for text legibility */
.broadcast-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(30, 45, 58, 0.9) 0%, rgba(30, 45, 58, 0.0) 60%);
    pointer-events: none;
    z-index: 1;
}

/* Broadcast text panel */
.broadcast-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    min-height: 35%;
    padding: 3rem;
    background: rgba(30, 45, 58, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(184, 197, 208, 0.3);
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.broadcast-panel-right {
    left: auto;
    right: 0;
}

.broadcast-panel .plate-headline {
    color: var(--bg-cream);
}

.broadcast-panel .plate-body {
    color: var(--text-light);
}

.broadcast-panel .plate-label {
    color: var(--accent-warm);
}

/* Broadcast collage hover */
.broadcast-collage .collage-overlay {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
}

.broadcast-collage:hover .collage-overlay {
    transform: scale(1.04);
    filter: brightness(1.06);
}

/* ============================================
   ARCHIVE PLATE (Plates 4 & 7)
   ============================================ */

.plate-archive {
    background-color: var(--bg-cream);
    display: flex;
    flex-direction: column;
}

.archive-collage-strip {
    width: 100%;
    height: 55%;
    position: relative;
    overflow: hidden;
}

/* Archive collage imagery */
.collage-base .frag-retro-panorama {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(232, 184, 75, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(212, 149, 106, 0.2) 0%, transparent 50%),
        linear-gradient(90deg,
            var(--bg-deep) 0%,
            #2a4a5e 20%,
            var(--accent-cool) 40%,
            #7a8e9e 60%,
            var(--bg-deep) 80%,
            #2a4a5e 100%
        );
    filter: saturate(0.8);
}

.collage-overlay .frag-coastal-strip {
    background: linear-gradient(180deg, var(--accent-cool) 0%, var(--bg-deep) 100%);
    mix-blend-mode: multiply;
    opacity: 0.5;
    border: 1px solid rgba(209, 216, 220, 0.2);
}

.collage-overlay .frag-retro-strip {
    background:
        radial-gradient(circle at center, rgba(232, 184, 75, 0.3) 0%, transparent 70%),
        linear-gradient(135deg, rgba(212, 149, 106, 0.4) 0%, rgba(30, 45, 58, 0.5) 100%);
    mix-blend-mode: screen;
    opacity: 0.5;
}

.collage-overlay .frag-coastal-accent {
    background: linear-gradient(200deg, var(--accent-cool) 0%, rgba(30, 45, 58, 0.7) 100%);
    mix-blend-mode: overlay;
    opacity: 0.6;
}

/* Deep space for plate 7 */
.collage-base .frag-deep-space {
    background:
        radial-gradient(circle at 30% 40%, rgba(232, 184, 75, 0.12) 0%, transparent 30%),
        radial-gradient(circle at 70% 60%, rgba(184, 197, 208, 0.1) 0%, transparent 25%),
        radial-gradient(circle at 50% 20%, rgba(212, 149, 106, 0.08) 0%, transparent 20%),
        linear-gradient(180deg, #0a141d 0%, var(--bg-deep) 50%, #1a2c3a 100%);
    filter: saturate(0.6);
}

.collage-overlay .frag-lighthouse-silhouette {
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(30, 45, 58, 0.8) 40%,
        var(--bg-deep) 60%,
        rgba(30, 45, 58, 0.9) 100%
    );
    clip-path: polygon(40% 100%, 45% 20%, 48% 5%, 52% 5%, 55% 20%, 60% 100%);
    mix-blend-mode: normal;
    opacity: 0.7;
}

.collage-overlay .frag-orbital-diagram {
    background:
        radial-gradient(circle at center, transparent 30%, rgba(122, 155, 174, 0.15) 31%, rgba(122, 155, 174, 0.15) 32%, transparent 33%),
        radial-gradient(circle at center, transparent 50%, rgba(122, 155, 174, 0.1) 51%, rgba(122, 155, 174, 0.1) 52%, transparent 53%),
        radial-gradient(circle at center, transparent 70%, rgba(122, 155, 174, 0.08) 71%, rgba(122, 155, 174, 0.08) 72%, transparent 73%);
    mix-blend-mode: screen;
}

.collage-overlay .frag-tidal-texture {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 4px,
        rgba(122, 155, 174, 0.12) 4px,
        rgba(122, 155, 174, 0.12) 5px
    );
    mix-blend-mode: screen;
}

/* Archive flame divider row */
.archive-flame-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 8px 0;
    background: var(--bg-cream);
    position: relative;
    z-index: 2;
}

.flame-divider-inline {
    animation: flicker 3s ease-in-out infinite;
    transform-origin: bottom center;
}

.flame-divider-inline:nth-child(2n) {
    animation-delay: 0.5s;
}

.flame-divider-inline:nth-child(3n) {
    animation-delay: 1.2s;
}

.flame-divider-inline:nth-child(5n) {
    animation-delay: 0.3s;
}

.flame-divider-inline:nth-child(7n) {
    animation-delay: 1.8s;
}

/* Archive text zone */
.archive-text-zone {
    width: 100%;
    flex: 1;
    background-color: var(--bg-cream);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 5rem;
    position: relative;
    overflow: hidden;
}

.archive-text-zone .plate-headline {
    margin-bottom: 1.5rem;
}

.archive-entries {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.archive-entry {
    display: flex;
    align-items: flex-start;
}

.archive-entry-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.archive-entry-desc {
    font-family: 'Lora', Georgia, serif;
    font-size: clamp(0.85rem, 1.1vw, 0.95rem);
    line-height: 1.6;
    color: var(--accent-cool);
}

/* Archive collage hover */
.archive-collage-strip .collage-overlay {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
}

.archive-collage-strip:hover .collage-overlay {
    transform: scale(1.04);
    filter: brightness(1.06);
}

/* ============================================
   Plate Entrance Animations
   ============================================ */

.anim-headline {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s,
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
}

.anim-body {
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.5s;
}

.anim-decor {
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s;
}

.plate.in-view .anim-headline {
    opacity: 1;
    transform: translateY(0);
}

.plate.in-view .anim-body {
    opacity: 1;
}

.plate.in-view .anim-decor {
    opacity: 1;
}

/* Collage fade-in */
.plate .collage-layer {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.plate.in-view .collage-layer {
    opacity: 1;
}

/* First plate always visible (handled by JS, but also ensure it here) */
.plate-1.in-view .anim-headline,
.plate-1.in-view .anim-body,
.plate-1.in-view .anim-decor {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Hover Interactions
   ============================================ */

/* Text links */
a {
    color: var(--accent-warm);
    text-decoration: none;
    position: relative;
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-image: linear-gradient(var(--accent-warm), var(--accent-warm));
    background-position: 0% 100%;
    background-repeat: no-repeat;
    background-size: 0% 2px;
}

a:hover {
    transform: scale(1.02);
    background-size: 100% 2px;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-size 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Navigation labels hover */
.plate-label {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                letter-spacing 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s;
    cursor: default;
}

.plate-label:hover {
    transform: scale(1.08);
    letter-spacing: 0.2em;
}

/* Collage image hover - golden border glow */
.observatory-collage:hover,
.archive-collage-strip:hover {
    box-shadow: inset 0 0 0 1px var(--highlight);
}

/* ============================================
   Wax-drip borders on certain panels
   ============================================ */

.plate-2 .observatory-collage::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    background: var(--highlight);
    opacity: 0.3;
    clip-path: polygon(
        0% 0%, 100% 0%, 100% 8%, 60% 10%,
        80% 15%, 40% 18%, 100% 22%, 70% 28%,
        100% 32%, 50% 38%, 90% 42%, 30% 48%,
        100% 52%, 60% 58%, 80% 62%, 40% 68%,
        100% 72%, 70% 78%, 100% 82%, 50% 88%,
        90% 92%, 30% 96%, 100% 100%, 0% 100%
    );
    z-index: 10;
}

.plate-5 .observatory-collage::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 100%;
    background: var(--highlight);
    opacity: 0.3;
    clip-path: polygon(
        0% 0%, 100% 0%, 100% 5%, 50% 8%,
        100% 12%, 70% 16%, 100% 20%, 40% 25%,
        80% 30%, 100% 35%, 60% 40%, 100% 45%,
        30% 50%, 90% 55%, 100% 60%, 50% 65%,
        100% 70%, 70% 75%, 100% 80%, 40% 85%,
        80% 90%, 100% 95%, 60% 100%, 0% 100%
    );
    z-index: 10;
}

/* ============================================
   Responsive adjustments for smaller screens
   ============================================ */

@media (max-width: 768px) {
    .observatory-text {
        padding: 2rem 1.5rem;
    }

    .archive-text-zone {
        padding: 1.5rem 2rem;
    }

    .broadcast-panel {
        width: 70%;
        min-height: 40%;
        padding: 2rem;
    }

    .broadcast-panel-right {
        width: 70%;
    }

    .typographic-watermark {
        font-size: clamp(100px, 15vw, 200px);
    }
}

@media (max-width: 480px) {
    .observatory-text {
        padding: 1.5rem 1rem;
    }

    .archive-text-zone {
        padding: 1rem 1.5rem;
    }

    .broadcast-panel {
        width: 85%;
        padding: 1.5rem;
    }

    .broadcast-panel-right {
        width: 85%;
    }
}
