/* musical.quest - evolved minimalism as lucid dreaming */

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

body {
    background: #1B1B3A;
    color: #C5C1D6;
    margin: 0;
    overflow-x: hidden;
    font-family: "Cormorant Garamond", serif;
    font-weight: 300;
    font-size: clamp(17px, 1.8vw, 21px);
    line-height: 1.75;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === MOVEMENTS === */

.movement {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s cubic-bezier(0.25, 0.1, 0.25, 1.0), transform 1.2s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.movement.visible {
    opacity: 1;
    transform: translateY(0);
}

.movement > .column,
.movement > .dual-column,
.movement > .centered-statement {
    position: relative;
    z-index: 3;
}

/* === WAVEFORMS === */

.waveform {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

/* === OVERTURE (Movement I) === */

.movement--overture {
    background: #1B1B3A;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding-bottom: 25vh;
    padding-left: 15vw;
}

.title {
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-size: clamp(56px, 10vw, 140px);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    line-height: 1.0;
    color: #E8E4F0;
    position: relative;
    z-index: 3;
}

.staff-rule--overture {
    border: none;
    height: 1px;
    background: #3D3D6B;
    width: calc(100% + 15vw);
    margin-left: -15vw;
    position: relative;
    z-index: 2;
    margin-top: 16px;
    margin-bottom: 16px;
}

.tagline {
    font-family: "Cormorant Garamond", serif;
    font-weight: 300;
    font-style: italic;
    color: #6B6B9E;
    font-size: clamp(17px, 1.8vw, 21px);
    position: relative;
    z-index: 3;
}

/* === STAFF RULES === */

.staff-rule {
    border: none;
    height: 0.5px;
    background: rgba(61, 61, 107, 0.6);
    width: 100%;
    margin: 32px 0;
}

/* === STAFF DIVIDERS === */

.staff-divider {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 0;
}

.staff-line {
    height: 0.5px;
    width: 100%;
    background: rgba(61, 61, 107, 0.4);
}

/* === COLUMNS === */

.column {
    max-width: 580px;
    padding: 0 24px;
}

.column--right {
    margin-left: auto;
    margin-right: 15vw;
    text-align: right;
}

.column--left {
    margin-left: 15vw;
}

/* === ADAGIO (Movement II) === */

.movement--adagio {
    background: #1B1B3A;
}

/* === MOVEMENT LABELS === */

.movement-label {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6B6B9E;
    display: block;
    margin-bottom: 24px;
}

.movement-label--center {
    text-align: center;
}

/* === INITIAL LETTER === */

.initial-letter {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.6em;
    line-height: 1;
    color: #D4A053;
    float: left;
    margin-right: 4px;
    margin-top: 4px;
}

/* === TEXT EMPHASIS === */

.text-emphasis {
    font-weight: 600;
    color: #E8E4F0;
}

/* === SCHERZO (Movement III) === */

.movement--scherzo {
    background: #2A2A52;
    justify-content: center;
}

.dual-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 3;
}

.pair {
    display: flex;
    gap: 40px;
    width: 520px;
    max-width: 90vw;
    margin-bottom: 80px;
}

.pair:last-child {
    margin-bottom: 0;
}

.column-left,
.column-right {
    width: 240px;
}

.column-left {
    text-align: right;
}

.column-right {
    text-align: left;
}

.pair-word {
    font-family: "Cormorant Garamond", serif;
    font-weight: 300;
    font-size: clamp(20px, 2.5vw, 28px);
    color: #C5C1D6;
    letter-spacing: 0.05em;
}

/* === NOCTURNE (Movement IV) === */

.movement--nocturne {
    background: #1B1B3A;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.watermark-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-size: 25vw;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1F1F3E;
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
    line-height: 1;
}

.waveform-horizon {
    width: 100%;
    height: 40vh;
    position: relative;
    z-index: 2;
}

.waveform-horizon svg {
    width: 100%;
    height: 100%;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.centered-statement {
    font-family: "Bebas Neue", sans-serif;
    font-weight: 400;
    font-size: clamp(20px, 2.5vw, 30px);
    letter-spacing: 0.08em;
    color: #E8E4F0;
    text-align: center;
    margin-top: 40px;
    position: relative;
    z-index: 3;
    padding: 0 24px;
}

.centered-statement .movement-label {
    display: inline;
    margin-right: 16px;
    font-size: 13px;
}

/* === CODA (Movement V) === */

.movement--coda {
    background: #1B1B3A;
}

.closing-mark {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6B6B9E;
    margin-top: 80px;
}

.amber-dash {
    color: #D4A053;
}

/* === NOTE MARKERS === */

.note-marker {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(155, 143, 190, 0.25);
    background: transparent;
    z-index: 2;
    transition: background 600ms cubic-bezier(0.25, 0.1, 0.25, 1.0);
}

.note-marker:hover {
    background: rgba(212, 160, 83, 0.5);
}

/* === SILENCE (final space) === */

.silence {
    height: 40vh;
    background: #1B1B3A;
}

/* === PARAGRAPH SPACING === */

.column p {
    margin-bottom: 0;
}

.column p + p {
    margin-top: 24px;
}
/* === ADDITIONAL PALETTE USAGE === */

.movement--overture::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: #0F0F24;
    z-index: 0;
}

.waveform path {
    stroke: #9B8FBE;
}