/* ============================================================
   DDAZZL.com — Monochrome Stark Landing
   ============================================================ */

/* ---- CSS Custom Properties ---- */
:root {
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-mid-gray: #808080;
    --color-light-gray: #E0E0E0;
    --color-dark-gray: #404040;
    --color-near-black: #0A0A0A;
    --color-near-white: #F5F5F5;

    --font-heading: 'Space Grotesk', 'SF Mono', 'Courier New', monospace;
    --font-secondary: 'Bebas Neue', 'Impact', sans-serif;
    --font-body: 'IBM Plex Mono', 'SF Mono', 'Courier New', monospace;
    --font-accent: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    scroll-behavior: auto;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.8;
    color: var(--color-white);
    background-color: var(--color-black);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---- Typography Classes ---- */
.heading-secondary {
    font-family: var(--font-secondary);
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.body-text {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.8;
    font-size: 14px;
}

/* ---- Flash Overlay ---- */
#flash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-white);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

#flash-overlay.flash-active {
    opacity: 1;
    visibility: visible;
}

/* ---- Navigation ---- */
#nav {
    position: fixed;
    top: 30px;
    right: 30px;
    z-index: 1000;
}

#nav-circle {
    width: 12px;
    height: 12px;
    background-color: var(--color-white);
    border-radius: 0;
    cursor: pointer;
    transition: none;
    position: relative;
}

#nav.nav--open #nav-circle {
    background-color: var(--color-white);
}

#nav-list {
    list-style: none;
    position: absolute;
    top: 24px;
    right: 0;
    opacity: 0;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
    min-width: 160px;
}

#nav.nav--open #nav-list {
    opacity: 1;
    visibility: visible;
}

#nav-list li a {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--color-white);
    white-space: nowrap;
    display: block;
    padding: 4px 0;
}

#nav-list li a:hover {
    color: var(--color-black);
    background-color: var(--color-white);
}

/* ---- Section Base ---- */
.section {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* ============================================================
   SECTION 1: THE VOID
   ============================================================ */
.section--void {
    background-color: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
}

.void__watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 80vw;
    color: var(--color-white);
    opacity: 0.03;
    line-height: 1;
    user-select: none;
    pointer-events: none;
}

.void__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.void__logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15vw;
    color: var(--color-white);
    letter-spacing: -0.04em;
    opacity: 0;
}

.void__logo.void__logo--revealed {
    opacity: 1;
}

/* ============================================================
   SECTION 2: THE SPLIT
   ============================================================ */
.section--split {
    display: flex;
    position: relative;
    background-color: var(--color-black);
}

.split__left {
    width: 50%;
    min-height: 100vh;
    background-color: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15vw;
    position: relative;
    z-index: 2;
}

.split__left-content {
    opacity: 0;
}

.split__left-content.split--visible {
    opacity: 1;
}

.split__left .split__label {
    color: var(--color-white);
    font-size: 14px;
    margin-bottom: 24px;
}

.split__left .body-text {
    color: var(--color-light-gray);
}

.split__right {
    width: 50%;
    min-height: 100vh;
    background-color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15vw;
    position: relative;
    z-index: 2;
}

.split__right-content {
    opacity: 0;
}

.split__right-content.split--visible {
    opacity: 1;
}

.split__right .split__label {
    color: var(--color-black);
    font-size: 14px;
    margin-bottom: 24px;
}

.split__right .body-text {
    color: var(--color-dark-gray);
}

.split__divider {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: var(--color-mid-gray);
    transform-origin: center center;
    transform: rotate(0deg);
    z-index: 3;
    opacity: 0;
}

.split__divider.split__divider--tilted {
    transform: rotate(12deg);
    opacity: 1;
}

/* ============================================================
   SECTION 3: THE GRID OF LIGHT
   ============================================================ */
.section--grid {
    background-color: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
}

.grid__dazzle-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.04;
    background:
        linear-gradient(135deg, var(--color-white) 25%, transparent 25%) -50px 0,
        linear-gradient(225deg, var(--color-white) 25%, transparent 25%) -50px 0,
        linear-gradient(315deg, var(--color-white) 25%, transparent 25%),
        linear-gradient(45deg, var(--color-white) 25%, transparent 25%);
    background-size: 100px 100px;
}

.grid__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 2px;
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 1;
}

.grid__cell {
    padding: 40px 30px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    border-radius: 0;
}

.grid__cell--black {
    background-color: var(--color-black);
    border: 1px solid var(--color-dark-gray);
}

.grid__cell--black .grid__cell-label {
    color: var(--color-white);
    font-size: 13px;
    margin-bottom: 12px;
}

.grid__cell--black .body-text {
    color: var(--color-light-gray);
    font-size: 12px;
}

.grid__cell--white {
    background-color: var(--color-white);
}

.grid__cell--white .grid__cell-label {
    color: var(--color-black);
    font-size: 13px;
    margin-bottom: 12px;
}

.grid__cell--white .body-text {
    color: var(--color-dark-gray);
    font-size: 12px;
}

/* Inverted states */
.grid__cell--black.grid__cell--inverted {
    background-color: var(--color-white);
    border-color: var(--color-light-gray);
}

.grid__cell--black.grid__cell--inverted .grid__cell-label {
    color: var(--color-black);
}

.grid__cell--black.grid__cell--inverted .body-text {
    color: var(--color-dark-gray);
}

.grid__cell--white.grid__cell--inverted {
    background-color: var(--color-black);
    border: 1px solid var(--color-dark-gray);
}

.grid__cell--white.grid__cell--inverted .grid__cell-label {
    color: var(--color-white);
}

.grid__cell--white.grid__cell--inverted .body-text {
    color: var(--color-light-gray);
}

/* ============================================================
   SECTION 4: THE STATEMENT
   ============================================================ */
.section--statement {
    background-color: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.statement__vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, var(--color-black) 100%);
    pointer-events: none;
    z-index: 1;
}

.statement__dot-grid {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, var(--color-mid-gray) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.statement__content {
    position: relative;
    z-index: 2;
    padding: 0 15vw;
    text-align: center;
}

.statement__heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 10vw;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--color-mid-gray);
}

/* ============================================================
   SECTION 5: THE HORIZON
   ============================================================ */
.section--horizon {
    background-color: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
}

.horizon__content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.horizon__above {
    margin-bottom: 40px;
    text-align: center;
}

.horizon__logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 6vw;
    color: var(--color-white);
    letter-spacing: -0.04em;
}

.horizon__line {
    width: 100%;
    height: 1px;
    background-color: var(--color-white);
    animation: horizon-pulse 3s ease-in-out infinite;
}

@keyframes horizon-pulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 1;
    }
}

.horizon__below {
    margin-top: 40px;
    text-align: center;
}

.horizon__tagline {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    color: var(--color-light-gray);
    letter-spacing: 0.05em;
}

/* ============================================================
   LINE DRAWING ANIMATIONS
   ============================================================ */
.line-draw {
    display: block;
    width: 100%;
    height: 1px;
    background-color: var(--color-white);
    transform: scaleX(0);
    transform-origin: left center;
}

.line-draw.line-draw--active {
    transform: scaleX(1);
}

/* ============================================================
   SCROLL-TRIGGERED VISIBILITY
   ============================================================ */
.scroll-reveal {
    opacity: 0;
}

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

/* ============================================================
   PREFERS REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    #flash-overlay {
        display: none !important;
    }

    .void__logo {
        opacity: 1 !important;
    }

    .split__left-content,
    .split__right-content {
        opacity: 1 !important;
    }

    .split__divider {
        opacity: 1 !important;
        transform: rotate(12deg) !important;
    }

    .line-draw {
        transform: scaleX(1) !important;
    }

    .scroll-reveal {
        opacity: 1 !important;
    }

    .horizon__line {
        animation: none !important;
        opacity: 1 !important;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .section--split {
        flex-direction: column;
    }

    .split__left,
    .split__right {
        width: 100%;
        min-height: 50vh;
        padding: 10vw;
    }

    .split__divider {
        display: none;
    }

    .grid__container {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    .statement__heading {
        font-size: 14vw;
    }

    .void__logo {
        font-size: 20vw;
    }
}

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

    .statement__content {
        padding: 0 8vw;
    }

    .statement__heading {
        font-size: 16vw;
    }

    .horizon__logo {
        font-size: 10vw;
    }
}
