/* === Custom Properties === */
:root {
    --color-cyan: #00d4c8;
    --color-magenta: #c840e9;
    --color-gold: #e8b830;
    --bg-primary: #0d0e18;
    --bg-secondary: #1a1b2e;
    --text-primary: #e8e4df;
    --text-secondary: #9b9689;
    --surface: #14152a;
    --border: #2a2b40;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 300;
    line-height: 1.72;
    overflow-x: hidden;
}

/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 8px 0;
}

.header-bar {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.header-bar .lane-line {
    height: 1px;
    width: 100%;
    opacity: 0;
    animation: headerFadeIn 800ms ease-out 200ms forwards;
}

/* === Lane Lines === */
.lane-line {
    height: 1px;
    mix-blend-mode: screen;
}

.lane-cyan { background-color: var(--color-cyan); }
.lane-magenta { background-color: var(--color-magenta); }
.lane-gold { background-color: var(--color-gold); }

/* === Lane Dividers === */
.lane-divider {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px 0;
}

.lane-divider .lane-line {
    height: 1px;
    width: 0%;
    mix-blend-mode: screen;
}

.lane-divider.visible .lane-line {
    animation: laneSweep 800ms ease-out forwards;
}

/* === Hero === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 40px 80px;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 60px;
    width: 100%;
}

.hero-col {
    opacity: 0;
    transform: translateY(30px);
}

.hero-col-left { animation: heroColIn 700ms ease-out 400ms forwards; }
.hero-col-center { animation: heroColIn 700ms ease-out 600ms forwards; }
.hero-col-right { animation: heroColIn 700ms ease-out 800ms forwards; }

.column-capital {
    width: 120px;
    height: 40px;
    display: block;
    margin-bottom: 24px;
    opacity: 0.4;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(4rem, 12vw, 10rem);
    line-height: 0.92;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    /* Marble veining effect */
    background:
        radial-gradient(ellipse at 30% 40%, rgba(255,255,255,0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(200,195,185,0.12) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 20%, rgba(232,228,223,0.1) 0%, transparent 45%),
        linear-gradient(to bottom, var(--text-primary), var(--text-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    color: var(--color-cyan);
    margin-top: 24px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.hero-description {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 65ch;
    line-height: 1.72;
    margin-top: 16px;
}

.hero-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    color: var(--color-magenta);
    display: block;
    margin-top: 32px;
}

/* === Thread Visualization (Pure CSS) === */
.thread-viz {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px 0;
}

.thread {
    height: 2px;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 1px;
    opacity: 0.7;
}

.thread::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    animation: threadMove linear infinite;
    animation-duration: inherit;
    animation-delay: inherit;
    border-radius: 1px;
}

.thread-cyan::after { background: linear-gradient(90deg, transparent, var(--color-cyan), transparent); }
.thread-magenta::after { background: linear-gradient(90deg, transparent, var(--color-magenta), transparent); }
.thread-gold::after { background: linear-gradient(90deg, transparent, var(--color-gold), transparent); }

/* === Editorial Sections === */
.editorial-section {
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-plinth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    box-shadow: 0 -1px 0 var(--border), 0 1px 0 var(--border);
    padding: 60px 40px;
    background-color: var(--surface);
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 600ms ease-out, transform 600ms ease-out;
}

.section-plinth.visible {
    opacity: 1;
    transform: translateY(0);
}

.editorial-section[data-align="right"] .section-plinth {
    direction: rtl;
}

.editorial-section[data-align="right"] .section-plinth > * {
    direction: ltr;
}

.section-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    color: var(--color-gold);
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 0.92;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.section-text {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 65ch;
    line-height: 1.72;
    font-weight: 300;
}

/* === Icon Clusters === */
.icon-cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    align-items: center;
}

.icon {
    width: 48px;
    height: 48px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
}

/* === Footer === */
.footer {
    background-color: #0a0a14;
    padding: 120px 40px 60px;
    text-align: center;
}

.footer-wordmark {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: clamp(5rem, 15vw, 12rem);
    line-height: 0.92;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, var(--color-cyan), var(--color-magenta), var(--color-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 60px;
}

.footer-specs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto 60px;
}

.spec-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}

.spec-label {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.65rem, 0.8vw, 0.75rem);
    letter-spacing: 0.1em;
    opacity: 0.6;
}

.spec-value {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    letter-spacing: 0.05em;
}

.spec-cyan .spec-label,
.spec-cyan .spec-value { color: var(--color-cyan); }
.spec-magenta .spec-label,
.spec-magenta .spec-value { color: var(--color-magenta); }
.spec-gold .spec-label,
.spec-gold .spec-value { color: var(--color-gold); }

.footer-copy {
    font-family: 'Share Tech Mono', monospace;
    font-size: clamp(0.65rem, 0.8vw, 0.75rem);
    color: var(--text-secondary);
    opacity: 0.5;
}

/* === Keyframes === */
@keyframes headerFadeIn {
    to { opacity: 1; }
}

@keyframes heroColIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes threadMove {
    0% { transform: translateX(-100%); opacity: 0.3; }
    10% { opacity: 1; }
    80% { opacity: 1; }
    90% { opacity: 0.3; }
    100% { transform: translateX(250%); opacity: 0.3; }
}

@keyframes laneSweep {
    from { width: 0%; }
    to { width: 100%; }
}

/* === Reduced Motion === */
@media (prefers-reduced-motion: reduce) {
    .thread::after {
        animation: none;
        width: 100%;
        opacity: 0.4;
    }
    .hero-col {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .header-bar .lane-line {
        animation: none;
        opacity: 1;
    }
    .section-plinth {
        transition: none;
        opacity: 1;
        transform: none;
    }
    .lane-divider .lane-line {
        width: 100%;
    }
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero { padding: 100px 20px 60px; }
    .editorial-section { padding: 40px 20px; }
    .section-plinth {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 24px;
    }
    .editorial-section[data-align="right"] .section-plinth {
        direction: ltr;
    }
    .footer-specs {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
