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

:root {
    --deep-ink: #0e1c24;
    --midnight-navy: #1b2d3a;
    --cerulean: #2e7d9b;
    --driftwood: #c4a882;
    --signal-red: #d4654a;
    --slate: #6b7c85;
    --mist: #eef2f0;
}

html, body {
    height: 100%;
    overflow: hidden;
    background: var(--deep-ink);
    color: var(--mist);
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
}

/* Navigation */
.panel-nav {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.nav-indicator {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid var(--driftwood);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.nav-dot.active {
    background: var(--signal-red);
    transform: scale(1.4);
}

.nav-counter {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--slate);
    writing-mode: vertical-rl;
    letter-spacing: 0.1em;
}

/* Scroll Track */
.scroll-track {
    display: flex;
    width: 500vw;
    height: 100vh;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.panel {
    width: 100vw;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.panel-1 { background: var(--deep-ink); }
.panel-2 { background: var(--midnight-navy); }
.panel-3 { background: var(--deep-ink); }
.panel-4 { background: var(--midnight-navy); }
.panel-5 { background: var(--deep-ink); }

.panel-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 2rem;
}

/* Typography */
.panel-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mist);
    margin-bottom: 1rem;
    line-height: 1;
}

.panel-subtitle {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--driftwood);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.panel-number {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--slate);
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 1.5rem;
}

.panel-body {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--mist);
    opacity: 0.85;
    max-width: 500px;
    margin-top: 1rem;
}

/* Contour Lines */
.contour-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.15;
}

.contour-1::before,
.contour-2::before,
.contour-3::before,
.contour-4::before,
.contour-5::before {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--driftwood);
}

.contour-1::before {
    width: 60vw;
    height: 60vw;
    top: -10vw;
    right: -20vw;
    border-style: dashed;
}

.contour-2::before {
    width: 40vw;
    height: 40vw;
    bottom: -10vw;
    left: -10vw;
    border-style: dashed;
}

.contour-3::before {
    width: 50vw;
    height: 50vw;
    top: 20%;
    right: -15vw;
    border-style: dashed;
}

.contour-4::before {
    width: 35vw;
    height: 35vw;
    top: -5vw;
    left: 10vw;
    border-style: dashed;
}

.contour-5::before {
    width: 45vw;
    height: 45vw;
    bottom: -15vw;
    right: -10vw;
    border-style: dashed;
}

/* Compass Rose */
.compass-rose {
    margin-top: 3rem;
    animation: spin-slow 60s linear infinite;
}

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

/* Depth Gauge */
.depth-gauge {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gauge-line {
    width: 80px;
    height: 1px;
    background: var(--cerulean);
}

.gauge-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: var(--cerulean);
}

/* Grid Overlay */
.grid-overlay {
    margin-top: 2rem;
    opacity: 0.7;
}

/* Specimen Card */
.specimen-card {
    margin-top: 2.5rem;
    padding: 1.5rem;
    position: relative;
    display: inline-flex;
    flex-direction: column;
    gap: 0.5rem;
}

.specimen-border {
    position: absolute;
    inset: 0;
    border: 1px solid var(--driftwood);
    opacity: 0.4;
}

.specimen-id,
.specimen-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--slate);
    letter-spacing: 0.1em;
}

/* Contact */
.contact-block {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-line {
    font-family: 'Source Sans 3', sans-serif;
    font-size: 1rem;
    color: var(--driftwood);
}

.contact-line.mono {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: var(--slate);
}

/* Signal Wave */
.signal-wave {
    margin-top: 2rem;
    opacity: 0.7;
}

.wave-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: draw-wave 3s ease forwards;
}

@keyframes draw-wave {
    to { stroke-dashoffset: 0; }
}

/* Panel transitions */
.panel-content {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.panel.active .panel-content {
    opacity: 1;
    transform: translateY(0);
}
