/* ==========================================================
   Global Tone Care — Pixel Observatory
   Bento-box pixel-art soundscape
   ==========================================================
   Design tokens reference:
     Deep Space Black | `#0a0a12` | Main background
     Neon Magenta     | #ff00ff / #ff2d95 | accent breathing pulse
     Neon Cyan        | #00f0ff | waveform, link highlight
     Neon Violet      | #b44dff | tertiary accent, mountain highlight
   Reveal pattern uses an `IntersectionObserver` adding a `.visible`
   class to trigger skeleton-to-content transitions.
   ========================================================== */

:root {
    --bg-primary: #0a0a12;
    --bg-alt: #12122a;
    --neon-magenta: #ff2d95;
    --neon-cyan: #00f0ff;
    --neon-violet: #b44dff;
    --pixel-white: #e8e0f0;
    --grid-line: #1a1a3a;
    --skel-base: #2a2a4a;
    --skel-hi: #3a3a5a;
    --mountain-shadow: #1a0a2e;

    --aurora: linear-gradient(135deg, #ff2d95 0%, #b44dff 40%, #00f0ff 100%);
    --mountain-sky: linear-gradient(180deg, #0a0a12 0%, #1a0a2e 50%, #12122a 100%);
    --skel-grad: linear-gradient(90deg, #2a2a4a 0%, #3a3a5a 50%, #2a2a4a 100%);

    --pixel: 4px;
    --gap: 4px;

    --font-display: "Poiret One", "Playfair Display", serif;
    --font-body: "Rajdhani", "Inter", "Space Grotesk", sans-serif;
    --font-pixel: "Silkscreen", "Space Mono", monospace;
}

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

html, body {
    background: var(--bg-primary);
    color: var(--pixel-white);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    letter-spacing: 0.02em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    background-image:
        radial-gradient(ellipse at 20% 0%, rgba(180, 77, 255, 0.08), transparent 60%),
        radial-gradient(ellipse at 80% 100%, rgba(255, 45, 149, 0.06), transparent 60%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.site { display: block; }
.silkscreen { font-family: var(--font-pixel); letter-spacing: 0.05em; }

/* ==========================================================
   VIEWPORT 1 — Bento Grid
   ========================================================== */
.viewport {
    position: relative;
    width: 100%;
}

.viewport-one {
    min-height: 100vh;
    padding: 12px;
    background: var(--bg-primary);
}

.bento-grid {
    width: 100%;
    height: calc(100vh - 24px);
    min-height: 720px;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(8, 1fr);
    gap: var(--gap);
    background: var(--grid-line);
    border: 4px solid var(--grid-line);
    image-rendering: pixelated;
}

.cell {
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
    transition: box-shadow 300ms ease, transform 300ms ease;
}

.cell:hover {
    box-shadow: inset 0 0 0 2px var(--neon-cyan), 0 0 24px rgba(0, 240, 255, 0.25);
}

.cell-hero      { grid-column: 1 / span 7;  grid-row: 1 / span 5; background: var(--bg-alt); }
.cell-waveform  { grid-column: 8 / span 5;  grid-row: 1 / span 3; background: var(--bg-primary); }
.cell-nav       { grid-column: 8 / span 3;  grid-row: 4 / span 5; background: var(--bg-alt); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.cell-accent    { grid-column: 11 / span 2; grid-row: 4 / span 5; background: var(--neon-violet); overflow: hidden; }

.cell-label {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 10px;
    color: var(--neon-cyan);
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 3;
    text-transform: uppercase;
}

.label-dot {
    width: 6px; height: 6px;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
    animation: breathe 2s ease-in-out infinite;
}

/* ---------- HERO CELL ---------- */
.mountain-scene {
    position: absolute; inset: 0;
    background: var(--mountain-sky);
    overflow: hidden;
}

.stars {
    position: absolute; inset: 0;
    pointer-events: none;
}

.stars .star {
    position: absolute;
    width: 2px; height: 2px;
    background: var(--pixel-white);
    border-radius: 0;
    opacity: 0.6;
    animation: twinkle var(--d, 3s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}
.stars .star.cyan { background: var(--neon-cyan); box-shadow: 0 0 4px var(--neon-cyan); }
.stars .star.magenta { background: var(--neon-magenta); box-shadow: 0 0 4px var(--neon-magenta); }
.stars .star.large { width: 3px; height: 3px; }

.mountain {
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    height: 62%;
}

.mountain-back {
    height: 58%;
    background: var(--mountain-shadow);
    clip-path: polygon(
        0% 100%, 0% 64%,
        4% 64%, 4% 52%, 8% 52%, 8% 44%, 12% 44%, 12% 36%, 16% 36%, 16% 28%, 20% 28%, 20% 44%, 24% 44%,
        24% 36%, 28% 36%, 28% 48%, 32% 48%, 32% 40%, 36% 40%, 36% 32%, 40% 32%, 40% 24%, 44% 24%, 44% 16%,
        48% 16%, 48% 28%, 52% 28%, 52% 20%, 56% 20%, 56% 32%, 60% 32%, 60% 40%, 64% 40%, 64% 28%, 68% 28%,
        68% 36%, 72% 36%, 72% 44%, 76% 44%, 76% 32%, 80% 32%, 80% 40%, 84% 40%, 84% 52%, 88% 52%, 88% 44%,
        92% 44%, 92% 56%, 96% 56%, 96% 60%, 100% 60%, 100% 100%
    );
    opacity: 0.95;
}

.mountain-mid {
    height: 44%;
    background: #2a2a4a;
    clip-path: polygon(
        0% 100%, 0% 72%,
        6% 72%, 6% 58%, 12% 58%, 12% 48%, 18% 48%, 18% 36%, 24% 36%, 24% 50%, 30% 50%, 30% 42%, 36% 42%,
        36% 56%, 42% 56%, 42% 44%, 48% 44%, 48% 34%, 54% 34%, 54% 46%, 60% 46%, 60% 38%, 66% 38%, 66% 52%,
        72% 52%, 72% 42%, 78% 42%, 78% 56%, 84% 56%, 84% 48%, 90% 48%, 90% 62%, 100% 62%, 100% 100%
    );
}

.mountain-front {
    height: 30%;
    background: var(--bg-alt);
    clip-path: polygon(
        0% 100%, 0% 76%,
        8% 76%, 8% 64%, 16% 64%, 16% 56%, 24% 56%, 24% 68%, 32% 68%, 32% 60%, 40% 60%, 40% 72%, 48% 72%,
        48% 60%, 56% 60%, 56% 68%, 64% 68%, 64% 56%, 72% 56%, 72% 64%, 80% 64%, 80% 72%, 88% 72%, 88% 60%,
        96% 60%, 96% 72%, 100% 72%, 100% 100%
    );
    box-shadow: 0 -4px 0 0 rgba(180, 77, 255, 0.2);
}

.aurora-glow {
    position: absolute;
    top: 10%; left: 0; right: 0;
    height: 40%;
    background: var(--aurora);
    filter: blur(40px);
    opacity: 0.18;
    pointer-events: none;
    mix-blend-mode: screen;
}

.hero-content {
    position: relative;
    z-index: 4;
    padding: 44px 40px 36px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.deco-ornament {
    display: flex;
    gap: 8px;
    align-items: center;
}
.deco-ornament.deco-top .chevron {
    width: 16px; height: 8px;
    background: var(--neon-magenta);
    opacity: 0.5;
    clip-path: polygon(0 0, 50% 100%, 100% 0, 75% 0, 50% 50%, 25% 0);
}
.deco-ornament.deco-top .chevron:nth-child(2) { opacity: 0.7; background: var(--neon-violet); }
.deco-ornament.deco-top .chevron:nth-child(3) { opacity: 0.9; background: var(--neon-cyan); }

.hero-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.5rem, 7vw, 6rem);
    line-height: 1.04;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--pixel-white);
    text-shadow:
        0 0 30px rgba(255, 45, 149, 0.4),
        0 0 60px rgba(0, 240, 255, 0.2),
        4px 4px 0 rgba(180, 77, 255, 0.18);
    margin: 18px 0 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-title .title-word {
    display: block;
    background: var(--aurora);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: glow-shift 8s ease-in-out infinite;
}
.hero-title .title-word:nth-child(2) { animation-delay: -2s; }
.hero-title .title-word:nth-child(3) { animation-delay: -4s; }

.hero-sub {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    color: var(--pixel-white);
    opacity: 0.75;
    max-width: 46ch;
    letter-spacing: 0.04em;
    margin-top: 18px;
}

.silkscreen-readout {
    font-family: var(--font-pixel);
    font-size: 12px;
    color: var(--neon-cyan);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 8px 12px;
    border: 2px solid rgba(0, 240, 255, 0.3);
    background: rgba(10, 10, 18, 0.6);
    width: fit-content;
    letter-spacing: 0.06em;
}

.readout-dot {
    width: 6px; height: 6px;
    background: var(--neon-magenta);
    box-shadow: 0 0 6px var(--neon-magenta);
    animation: breathe 1.5s ease-in-out infinite;
}

.readout-label { color: var(--pixel-white); opacity: 0.7; }
.readout-value { color: var(--neon-cyan); font-weight: 700; }

/* ---------- WAVEFORM CELL ---------- */
.cell-waveform {
    padding: 36px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.waveform {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    padding: 10px 0;
    min-height: 120px;
}

.waveform .bar {
    flex: 1;
    min-width: 4px;
    max-width: 6px;
    background: var(--neon-cyan);
    height: 8px;
    animation: pulse-bar var(--d, 1.2s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    --max-height: 60px;
}

.waveform .bar:nth-child(odd) { background: var(--neon-violet); }
.waveform .bar:nth-child(3n) { background: var(--neon-magenta); }

.waveform-meta {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--pixel-white);
    opacity: 0.6;
    padding-top: 10px;
    border-top: 2px solid var(--grid-line);
}
.meta-a { color: var(--neon-cyan); }
.meta-b { color: var(--neon-violet); }
.meta-c { color: var(--neon-magenta); }

/* ---------- NAV CELL ---------- */
.cell-nav .cell-label { position: static; margin-bottom: 8px; }

.nav-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 6px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pixel-white);
    border-bottom: 2px solid var(--grid-line);
    transition: color 220ms ease, transform 220ms ease, border-color 220ms ease;
    position: relative;
}

.nav-link:hover {
    color: var(--neon-cyan);
    transform: translateX(4px);
    border-bottom-color: var(--neon-cyan);
}

.pixel-icon {
    width: 16px; height: 16px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

.pixel-icon-square {
    background:
        linear-gradient(var(--neon-magenta), var(--neon-magenta)) 0 0 / 8px 8px no-repeat,
        linear-gradient(var(--neon-magenta), var(--neon-magenta)) 8px 8px / 8px 8px no-repeat,
        linear-gradient(var(--neon-violet), var(--neon-violet)) 8px 0 / 8px 8px no-repeat,
        linear-gradient(var(--neon-violet), var(--neon-violet)) 0 8px / 8px 8px no-repeat;
}
.pixel-icon-triangle {
    background:
        linear-gradient(var(--neon-cyan), var(--neon-cyan)) 6px 0 / 4px 4px no-repeat,
        linear-gradient(var(--neon-cyan), var(--neon-cyan)) 4px 4px / 8px 4px no-repeat,
        linear-gradient(var(--neon-cyan), var(--neon-cyan)) 2px 8px / 12px 4px no-repeat,
        linear-gradient(var(--neon-cyan), var(--neon-cyan)) 0 12px / 16px 4px no-repeat;
}
.pixel-icon-waves {
    background:
        linear-gradient(var(--neon-violet), var(--neon-violet)) 0 2px / 4px 4px no-repeat,
        linear-gradient(var(--neon-magenta), var(--neon-magenta)) 4px 6px / 4px 4px no-repeat,
        linear-gradient(var(--neon-cyan), var(--neon-cyan)) 8px 2px / 4px 4px no-repeat,
        linear-gradient(var(--neon-magenta), var(--neon-magenta)) 12px 6px / 4px 4px no-repeat,
        linear-gradient(var(--neon-cyan), var(--neon-cyan)) 0 10px / 4px 4px no-repeat,
        linear-gradient(var(--neon-violet), var(--neon-violet)) 8px 10px / 4px 4px no-repeat;
}

/* ---------- ACCENT CELL ---------- */
.cell-accent { padding: 0; }
.pulse-block {
    width: 100%; height: 100%;
    background: var(--neon-magenta);
    animation: breathe 4s ease-in-out infinite;
    position: relative;
}
.pulse-block::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 4px solid rgba(10, 10, 18, 0.4);
}
.pulse-block::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 48px; height: 48px;
    background:
        linear-gradient(var(--bg-primary), var(--bg-primary)) 16px 0 / 16px 48px no-repeat,
        linear-gradient(var(--bg-primary), var(--bg-primary)) 0 16px / 48px 16px no-repeat;
    opacity: 0.6;
    animation: breathe 4s ease-in-out infinite reverse;
}

/* ==========================================================
   VIEWPORT 2 — Three Tones
   ========================================================== */
.viewport-two {
    padding: 96px 12px 0;
    background: var(--bg-primary);
    position: relative;
}

.tones-header {
    text-align: center;
    padding: 0 20px 48px;
    max-width: 960px;
    margin: 0 auto;
}

.deco-divider {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 22px;
}
.deco-divider .step {
    width: 8px; height: 8px;
    background: var(--neon-magenta);
    opacity: 0.4;
}
.deco-divider .step:nth-child(1) { opacity: 0.3; transform: translateY(8px); }
.deco-divider .step:nth-child(2) { opacity: 0.5; transform: translateY(4px); }
.deco-divider .step:nth-child(3) { opacity: 1; background: var(--neon-cyan); transform: translateY(0); box-shadow: 0 0 12px var(--neon-cyan); }
.deco-divider .step:nth-child(4) { opacity: 0.5; transform: translateY(4px); background: var(--neon-violet); }
.deco-divider .step:nth-child(5) { opacity: 0.3; transform: translateY(8px); background: var(--neon-violet); }

.section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 5vw, 4rem);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--pixel-white);
    text-shadow: 0 0 24px rgba(0, 240, 255, 0.25);
    margin-bottom: 14px;
}

.section-sub {
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    opacity: 0.72;
    letter-spacing: 0.04em;
}

.tones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    background: var(--grid-line);
    border: 4px solid var(--grid-line);
    max-width: 1400px;
    margin: 0 auto;
}

.tone {
    position: relative;
    padding: 28px 28px 0;
    background: var(--bg-alt);
    min-height: 640px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 320ms ease;
}

.tone-frequency { --tone-color: var(--neon-magenta); }
.tone-harmony   { --tone-color: var(--neon-cyan); }
.tone-resonance { --tone-color: var(--neon-violet); }

.tone:hover {
    box-shadow: inset 0 0 0 2px var(--tone-color), 0 0 30px rgba(0, 240, 255, 0.12);
}

.tone-header {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--pixel-white);
    opacity: 0.8;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--grid-line);
    margin-bottom: 24px;
}
.tone-number { color: var(--tone-color); font-weight: 700; }
.tone-hz { color: var(--pixel-white); opacity: 0.55; }

.tone-accent {
    width: 32px; height: 32px;
    background: var(--tone-color);
    margin-bottom: 22px;
    animation: breathe 4s ease-in-out infinite;
    box-shadow: 0 0 20px var(--tone-color);
}

.tone-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 3.6vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
    color: var(--pixel-white);
    text-shadow: 0 0 18px rgba(180, 77, 255, 0.3);
}

.skeleton-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
    transition: opacity 400ms ease, max-height 400ms ease;
    max-height: 200px;
    overflow: hidden;
}
.tone.visible .skeleton-group { opacity: 0; max-height: 0; margin-bottom: 0; pointer-events: none; }

.skeleton {
    background: var(--skel-grad);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 0;
}
.skel-heading { height: 22px; width: 60%; }
.skel-line    { height: 14px; width: 100%; }
.skel-line.skel-short { width: 70%; }

.tone-body {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 600ms ease 300ms, transform 600ms ease 300ms;
}
.tone.visible .tone-body { opacity: 1; transform: translateY(0); }

.tone-subhead {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--tone-color);
    margin-bottom: 14px;
}

.tone-body p {
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 14px;
    opacity: 0.88;
    max-width: 38ch;
}

.tone-waveform {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 52px;
    padding: 10px 0 16px;
}
.tone-waveform .bar {
    flex: 1;
    min-width: 4px;
    background: var(--tone-color);
    height: 8px;
    animation: pulse-bar var(--d, 1.4s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    --max-height: 40px;
}

.tone-mountain {
    position: relative;
    margin: 0 -28px -4px;
    height: 90px;
    background: var(--mountain-shadow);
    clip-path: polygon(
        0% 100%, 0% 70%,
        8% 70%, 8% 54%, 16% 54%, 16% 40%, 24% 40%, 24% 58%, 32% 58%, 32% 46%, 40% 46%,
        40% 62%, 48% 62%, 48% 48%, 56% 48%, 56% 36%, 64% 36%, 64% 50%, 72% 50%, 72% 42%,
        80% 42%, 80% 60%, 88% 60%, 88% 52%, 96% 52%, 96% 66%, 100% 66%, 100% 100%
    );
}
.tone-mountain::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--tone-color) 0%, transparent 40%);
    opacity: 0.22;
    mix-blend-mode: screen;
}

/* ---------- Panoramic Ridge ---------- */
.tones-footer {
    margin: 48px auto 0;
    max-width: 1400px;
    padding: 0 0 0;
    position: relative;
}

.panoramic-ridge {
    width: 100%;
    height: 140px;
    background: var(--mountain-shadow);
    position: relative;
    overflow: hidden;
}
.panoramic-ridge::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(180, 77, 255, 0.18));
    mix-blend-mode: screen;
    pointer-events: none;
}

/* ==========================================================
   VIEWPORT 3 — Observatory
   ========================================================== */
.viewport-three {
    min-height: 100vh;
    position: relative;
    background: var(--bg-primary);
    margin-top: 48px;
    padding: 12px;
}

.observatory-scene {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 24px);
    background: var(--mountain-sky);
    overflow: hidden;
    border: 4px solid var(--grid-line);
    display: flex;
    flex-direction: column;
}

.obs-sky {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.aurora-band {
    position: absolute;
    top: 10%;
    left: -20%;
    right: -20%;
    height: 30%;
    background: var(--aurora);
    opacity: 0.12;
    filter: blur(48px);
    mix-blend-mode: screen;
    animation: aurora-drift 14s ease-in-out infinite;
}

.stars-dense .star { opacity: 0.7; }

.obs-text {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 96px 24px 48px;
    margin-top: auto;
}

.deco-ornament.deco-center {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-bottom: 28px;
}
.deco-ornament.deco-center .ray {
    width: 4px;
    background: var(--neon-cyan);
    opacity: 0.6;
}
.deco-ornament.deco-center .ray:nth-child(1) { height: 16px; opacity: 0.3; }
.deco-ornament.deco-center .ray:nth-child(2) { height: 28px; opacity: 0.55; }
.deco-ornament.deco-center .ray:nth-child(3) { height: 40px; opacity: 1; background: var(--pixel-white); box-shadow: 0 0 12px var(--neon-cyan); }
.deco-ornament.deco-center .ray:nth-child(4) { height: 28px; opacity: 0.55; }
.deco-ornament.deco-center .ray:nth-child(5) { height: 16px; opacity: 0.3; }

.obs-statement {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(1.8rem, 5vw, 4.2rem);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    line-height: 1.2;
    background: var(--aurora);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 40px rgba(255, 45, 149, 0.3);
    margin-bottom: 36px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 900ms ease 200ms, transform 900ms ease 200ms;
}
.obs-text.visible .obs-statement { opacity: 1; transform: translateY(0); }

.obs-readouts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
    letter-spacing: 0.1em;
}
.obs-readouts .readout {
    color: var(--neon-cyan);
    padding: 6px 12px;
    border: 2px solid rgba(0, 240, 255, 0.25);
    background: rgba(10, 10, 18, 0.65);
    min-width: 120px;
    text-align: center;
    font-size: 12px;
}
.obs-readouts .readout::before {
    content: attr(data-text);
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    border-right: 4px solid var(--neon-cyan);
    width: 0;
    animation: typewriter 2.4s steps(14, end) forwards, caret 0.8s steps(2) infinite;
    vertical-align: bottom;
}
.obs-text.visible .obs-readouts .readout:nth-child(1)::before { animation-delay: 600ms, 600ms; }
.obs-text.visible .obs-readouts .readout:nth-child(2)::before { animation-delay: 1200ms, 1200ms; }
.obs-text.visible .obs-readouts .readout:nth-child(3)::before { animation-delay: 1800ms, 1800ms; }
.obs-text.visible .obs-readouts .readout:nth-child(4)::before { animation-delay: 2400ms, 2400ms; }

/* Observatory panorama */
.obs-panorama {
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    height: 46%;
    z-index: 1;
}
.pano-layer {
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
}
.pano-far {
    height: 70%;
    background: var(--mountain-shadow);
    clip-path: polygon(
        0% 100%, 0% 60%,
        3% 60%, 3% 50%, 6% 50%, 6% 42%, 9% 42%, 9% 32%, 12% 32%, 12% 44%, 15% 44%,
        15% 36%, 18% 36%, 18% 26%, 21% 26%, 21% 38%, 24% 38%, 24% 30%, 27% 30%, 27% 22%,
        30% 22%, 30% 16%, 33% 16%, 33% 28%, 36% 28%, 36% 22%, 39% 22%, 39% 34%, 42% 34%,
        42% 24%, 45% 24%, 45% 16%, 48% 16%, 48% 10%, 51% 10%, 51% 22%, 54% 22%, 54% 14%,
        57% 14%, 57% 26%, 60% 26%, 60% 20%, 63% 20%, 63% 32%, 66% 32%, 66% 24%, 69% 24%,
        69% 36%, 72% 36%, 72% 28%, 75% 28%, 75% 40%, 78% 40%, 78% 34%, 81% 34%, 81% 44%,
        84% 44%, 84% 38%, 87% 38%, 87% 50%, 90% 50%, 90% 44%, 93% 44%, 93% 54%, 96% 54%,
        96% 48%, 100% 48%, 100% 100%
    );
    opacity: 0.9;
}
.pano-mid {
    height: 50%;
    background: #2a2a4a;
    clip-path: polygon(
        0% 100%, 0% 70%,
        5% 70%, 5% 58%, 10% 58%, 10% 48%, 15% 48%, 15% 62%, 20% 62%, 20% 52%, 25% 52%,
        25% 40%, 30% 40%, 30% 52%, 35% 52%, 35% 44%, 40% 44%, 40% 56%, 45% 56%, 45% 46%,
        50% 46%, 50% 36%, 55% 36%, 55% 48%, 60% 48%, 60% 40%, 65% 40%, 65% 54%, 70% 54%,
        70% 44%, 75% 44%, 75% 58%, 80% 58%, 80% 48%, 85% 48%, 85% 62%, 90% 62%, 90% 52%,
        95% 52%, 95% 64%, 100% 64%, 100% 100%
    );
}
.pano-near {
    height: 32%;
    background: var(--bg-alt);
    clip-path: polygon(
        0% 100%, 0% 72%,
        8% 72%, 8% 60%, 14% 60%, 14% 68%, 20% 68%, 20% 56%, 26% 56%, 26% 68%, 32% 68%,
        32% 62%, 38% 62%, 38% 70%, 44% 70%, 44% 58%, 50% 58%, 50% 66%, 56% 66%, 56% 56%,
        62% 56%, 62% 68%, 68% 68%, 68% 60%, 74% 60%, 74% 70%, 80% 70%, 80% 62%, 86% 62%,
        86% 72%, 92% 72%, 92% 64%, 100% 64%, 100% 100%
    );
}
.pano-near::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, var(--neon-violet) 0%, transparent 26%);
    opacity: 0.3;
    mix-blend-mode: screen;
}
.pano-ground {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 8%;
    background: var(--bg-primary);
    border-top: 4px solid var(--grid-line);
}

.obs-footer {
    position: relative;
    z-index: 4;
    margin-top: auto;
    padding: 24px 32px;
    border-top: 2px solid var(--grid-line);
    background: rgba(10, 10, 18, 0.7);
    backdrop-filter: blur(4px);
}

.obs-meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 11px;
    color: var(--pixel-white);
    opacity: 0.6;
    letter-spacing: 0.1em;
}

/* ==========================================================
   ANIMATIONS
   ========================================================== */
@keyframes breathe {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 1; }
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50%      { opacity: 1; }
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse-bar {
    0%, 100% { height: 4px; }
    50%      { height: var(--max-height, 40px); }
}

@keyframes fade-up {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes glow-shift {
    0%, 100% { filter: hue-rotate(0deg) brightness(1); }
    50%      { filter: hue-rotate(15deg) brightness(1.1); }
}

@keyframes aurora-drift {
    0%, 100% { transform: translateX(-4%); }
    50%      { transform: translateX(4%); }
}

@keyframes typewriter {
    from { width: 0; }
    to   { width: 100%; }
}
@keyframes caret {
    0%, 100% { border-color: transparent; }
    50%      { border-color: var(--neon-cyan); }
}

/* Reveal (IntersectionObserver) */
.reveal {
    transition: opacity 600ms ease, transform 600ms ease;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 960px) {
    .bento-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-template-rows: repeat(10, 80px);
        min-height: auto;
        height: auto;
    }
    .cell-hero     { grid-column: 1 / span 6; grid-row: 1 / span 4; }
    .cell-waveform { grid-column: 1 / span 4; grid-row: 5 / span 2; }
    .cell-nav      { grid-column: 5 / span 2; grid-row: 5 / span 3; }
    .cell-accent   { grid-column: 1 / span 4; grid-row: 7 / span 1; }

    .tones-grid { grid-template-columns: 1fr; }
    .tone { min-height: 540px; }

    .hero-content { padding: 28px 24px; }
}

@media (max-width: 560px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(12, 72px);
    }
    .cell-hero     { grid-column: 1 / span 4; grid-row: 1 / span 5; }
    .cell-waveform { grid-column: 1 / span 4; grid-row: 6 / span 2; }
    .cell-nav      { grid-column: 1 / span 4; grid-row: 8 / span 3; }
    .cell-accent   { grid-column: 1 / span 4; grid-row: 11 / span 1; }

    .hero-title { font-size: clamp(2.2rem, 9vw, 3.4rem); }
    .section-title { font-size: clamp(1.8rem, 8vw, 2.6rem); }
    .obs-statement { font-size: clamp(1.5rem, 7vw, 2.4rem); }
    .obs-meta { justify-content: flex-start; }
}
