/* Global Tone Check - styles.css */
/* 1972 International Telecommunications Monitoring Station Aesthetic */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: #e8e2d6;
    color: #3d4a44;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.72;
    text-rendering: optimizeLegibility;
    font-feature-settings: 'onum' 1;
    overflow-x: hidden;
}

/* ===== RULED GRID BACKGROUND ===== */
.section__grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 47px,
            #d4cfc4 47px,
            #d4cfc4 48px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 47px,
            #d4cfc4 47px,
            #d4cfc4 48px
        );
    opacity: 0.4;
    z-index: 0;
}

.section__grid-overlay--dark {
    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 47px,
            #2c3e3a 47px,
            #2c3e3a 48px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 47px,
            #2c3e3a 47px,
            #2c3e3a 48px
        );
    opacity: 0.4;
}

/* ===== DOT NAVIGATION ===== */
.dot-nav {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dot-nav__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7a8b6d;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, transform 0.3s ease, width 0.3s ease, height 0.3s ease;
    opacity: 0.5;
}

.dot-nav__dot.active {
    background: #c4a35a;
    opacity: 1;
    width: 8px;
    height: 8px;
}

.dot-nav__dot:hover {
    opacity: 1;
    transform: scale(1.4);
}

/* ===== SECTION BASE ===== */
.section {
    position: relative;
    min-height: 80vh;
    padding: 80px 48px;
    overflow: hidden;
}

/* ===== SECTION LABELS ===== */
.section__label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7a8b6d;
    margin-bottom: 40px;
}

.section__label--light {
    color: #7a8b6d;
}

.section__annotation {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #7a8b6d;
    margin-top: 32px;
    opacity: 0.7;
}

/* ===== SECTION 1: HERO ===== */
.section--hero {
    height: 100vh;
    min-height: 100vh;
    background-color: #e8e2d6;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 5vw), 0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.section--hero .section__content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 900px;
    width: 100%;
}

.section__title {
    font-family: 'Jost', sans-serif;
    font-size: 80px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.0;
    color: #2c3e3a;
    text-shadow: 0 1px 0 rgba(0,0,0,0.05);
    margin-bottom: 24px;
}

.section__subtitle {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 20px;
    color: #3d4a44;
    line-height: 1.5;
    max-width: 560px;
    margin-bottom: 48px;
}

.hero-curve {
    width: 100%;
    height: 120px;
    margin-bottom: 24px;
}

.hero-curve:hover path {
    stroke-width: 3;
    stroke: #c4a35a;
    transition: stroke 0.6s ease, stroke-width 0.4s ease;
}

/* Hero fish */
.fish--hero-1 {
    position: absolute;
    right: 12%;
    top: 18%;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.fish--hero-1:hover {
    transform: scale(1.12);
    opacity: 0.6;
}

.fish--hero-2 {
    position: absolute;
    right: 8%;
    bottom: 25%;
    z-index: 1;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.fish--hero-2:hover {
    transform: scale(1.12);
    opacity: 0.6;
}

/* ===== SECTION 2: SPECTRUM ANALYSIS ===== */
.section--spectrum {
    background-color: #1e2b28;
    clip-path: polygon(0 5vw, 100% 0, 100% calc(100% - 5vw), 0 100%);
    margin-top: -5vw;
    padding-top: 120px;
    padding-bottom: 120px;
    z-index: 4;
}

.section--spectrum .section__content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
}

.spectrum-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.spectrum-col--1 { margin-top: 0; }
.spectrum-col--2 { margin-top: 60px; }
.spectrum-col--3 { margin-top: 30px; }

.report-card {
    background: rgba(44, 62, 58, 0.6);
    border: 1px solid rgba(122, 139, 109, 0.2);
    padding: 32px 28px;
}

.report-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(122, 139, 109, 0.3);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.report-card__freq,
.report-card__id {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7a8b6d;
}

.report-card__title {
    font-family: 'Jost', sans-serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.1;
    color: #e8e2d6;
    margin-bottom: 16px;
}

.report-card__body {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 16px;
    line-height: 1.65;
    color: #d4cfc4;
    margin-bottom: 20px;
}

.report-card__meta {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7a8b6d;
    opacity: 0.7;
}

/* ===== SECTION 3: HARMONIC CONTENT ===== */
.section--harmonic {
    background-color: #e8e2d6;
    clip-path: polygon(0 0, 100% 5vw, 100% 100%, 0 calc(100% - 5vw));
    margin-top: -5vw;
    padding-top: 120px;
    padding-bottom: 120px;
    z-index: 3;
}

.section--harmonic .section__content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
}

.harmonic-strip {
    position: relative;
    height: 120px;
    overflow: hidden;
    margin: 40px 0;
    border-top: 2px solid #7a8b6d;
    border-bottom: 2px solid #7a8b6d;
    background: linear-gradient(90deg, #e8e2d6, #d4cfc4, #e8e2d6);
}

.harmonic-strip__fish-swim {
    display: flex;
    align-items: center;
    gap: 80px;
    height: 100%;
    padding: 0 40px;
    animation: swimRight 30s linear infinite;
}

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

.fish--swim {
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
}

.fish--swim:hover {
    transform: scale(1.12);
}

.harmonic-quotes {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.harmonic-quote {
    border-left: 3px solid #c4a35a;
    padding-left: 28px;
}

.harmonic-quote p {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 18px;
    font-style: italic;
    line-height: 1.7;
    color: #2c3e3a;
    margin-bottom: 12px;
}

.harmonic-quote__cite {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-style: normal;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7a8b6d;
}

.oscilloscope-curve {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1;
    pointer-events: none;
}

.oscilloscope-curve__path {
    stroke-dasharray: 2400;
    stroke-dashoffset: 2400;
    animation: drawCurve 6s ease-in-out infinite alternate;
}

@keyframes drawCurve {
    0% { stroke-dashoffset: 2400; }
    100% { stroke-dashoffset: 0; }
}

/* ===== SECTION 4: GLOBAL CALIBRATION ===== */
.section--calibration {
    background-color: #1e2b28;
    clip-path: polygon(0 5vw, 100% 0, 100% calc(100% - 5vw), 0 100%);
    margin-top: -5vw;
    padding-top: 120px;
    padding-bottom: 120px;
    z-index: 2;
}

.section--calibration .section__content {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: 0 auto;
}

.section__heading {
    font-family: 'Jost', sans-serif;
    font-size: 48px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.0;
    color: #2c3e3a;
    margin-bottom: 48px;
}

.section__heading--light {
    color: #e8e2d6;
    text-shadow: 0 1px 0 rgba(0,0,0,0.1);
}

.station-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.station-card {
    background: rgba(44, 62, 58, 0.5);
    border: 1px solid rgba(122, 139, 109, 0.2);
    padding: 28px 24px;
    transform: rotate(var(--rotation, 0deg));
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    position: relative;
    clip-path: polygon(0 4px, 100% 0, 100% calc(100% - 4px), 0 100%);
}

.station-card:hover {
    transform: rotate(0deg) scale(1.06);
    box-shadow: 0 4px 24px rgba(44, 62, 58, 0.15);
    z-index: 5;
}

.station-card__indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7a8b6d;
    margin-bottom: 16px;
}

.station-card:hover .station-card__indicator {
    background: #c4a35a;
    box-shadow: 0 0 8px rgba(196, 163, 90, 0.5);
}

.station-card__name {
    font-family: 'Jost', sans-serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e8e2d6;
    margin-bottom: 4px;
}

.station-card__freq {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7a8b6d;
    display: block;
    margin-bottom: 12px;
}

.station-card__desc {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 15px;
    line-height: 1.6;
    color: #d4cfc4;
    margin-bottom: 16px;
}

.station-card__status {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    display: inline-block;
}

.station-card__status--active {
    color: #7a8b6d;
    border: 1px solid rgba(122, 139, 109, 0.4);
}

.station-card__status--monitoring {
    color: #c4a35a;
    border: 1px solid rgba(196, 163, 90, 0.4);
}

.station-card__status--standby {
    color: #5b8a8e;
    border: 1px solid rgba(91, 138, 142, 0.4);
}

/* ===== SECTION 5: SIGNAL FADE ===== */
.section--fade {
    background-color: #e8e2d6;
    clip-path: polygon(0 0, 100% 5vw, 100% 100%, 0 100%);
    margin-top: -5vw;
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 50vh;
    z-index: 1;
}

.section--fade .section__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.fade-content {
    margin-top: 40px;
}

.fade-curve {
    width: 100%;
    height: 40px;
    margin-bottom: 40px;
    opacity: 0.5;
}

.fade-content__text {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 18px;
    line-height: 1.72;
    color: #3d4a44;
    margin-bottom: 32px;
}

.fade-content__attribution {
    display: block;
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2c3e3a;
    margin-bottom: 8px;
}

.fade-content__date {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7a8b6d;
    margin-bottom: 32px;
}

.fish--fade {
    opacity: 0.3;
    margin: 0 auto;
    display: block;
}

/* ===== CALIBRATION MARKS (between sections) ===== */
.section--spectrum::before,
.section--calibration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 48px;
    right: 48px;
    height: 2px;
    background: #7a8b6d;
    opacity: 0.15;
    z-index: 10;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .section {
        padding: 60px 24px;
    }

    .section--hero {
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3vw), 0 100%);
    }

    .section--spectrum {
        clip-path: polygon(0 3vw, 100% 0, 100% calc(100% - 3vw), 0 100%);
        margin-top: -3vw;
    }

    .section--harmonic {
        clip-path: polygon(0 0, 100% 3vw, 100% 100%, 0 calc(100% - 3vw));
        margin-top: -3vw;
    }

    .section--calibration {
        clip-path: polygon(0 3vw, 100% 0, 100% calc(100% - 3vw), 0 100%);
        margin-top: -3vw;
    }

    .section--fade {
        clip-path: polygon(0 0, 100% 3vw, 100% 100%, 0 100%);
        margin-top: -3vw;
    }

    .section__title {
        font-size: 36px;
    }

    .section__heading {
        font-size: 32px;
    }

    .spectrum-columns {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .spectrum-col--1,
    .spectrum-col--2,
    .spectrum-col--3 {
        margin-top: 0;
    }

    .harmonic-quotes {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .station-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .fish--hero-1,
    .fish--hero-2 {
        display: none;
    }

    .fish--swim {
        display: none;
    }

    .harmonic-strip {
        display: none;
    }

    .section__grid-overlay,
    .section__grid-overlay--dark {
        background-size: 32px 32px;
    }

    .dot-nav {
        right: 12px;
    }

    .section__subtitle {
        font-size: 17px;
    }

    .report-card__body {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .station-grid {
        grid-template-columns: 1fr;
    }

    .section__title {
        font-size: 28px;
    }
}
