/* telomere.digital - Watercolor Degradation */
/* Colors: #F0F4F8, #2D1B0E, #3B5998, #7BA7C9, #B8C4D0, #C9A96E, #9B7E8A, #FAF6F0, #4A5568, #1A0F06 */

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

:root {
    --frost-white: #F0F4F8;
    --deep-vellum: #2D1B0E;
    --watercolor-indigo: #3B5998;
    --diluted-cerulean: #7BA7C9;
    --frost-edge: #B8C4D0;
    --telomere-gold: #C9A96E;
    --senescence-rose: #9B7E8A;
    --substrate-cream: #FAF6F0;
    --ink-wash: #4A5568;
    --dark-vellum: #1A0F06;
}

html, body {
    width: 100%;
    min-height: 100vh;
    background: var(--frost-white);
    color: var(--ink-wash);
    font-family: 'EB Garamond', serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.75;
    overflow-x: hidden;
}

/* Navigation Line */
.nav-line {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: rgba(184, 196, 208, 0.4);
    z-index: 100;
    width: 100%;
    transition: width 0.5s ease;
}

/* TTAGGG Sequence Band */
.sequence-band {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 24px;
    overflow: hidden;
    z-index: 90;
    background: rgba(240, 244, 248, 0.6);
    backdrop-filter: blur(4px);
}

.sequence-text {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: rgba(123, 167, 201, 0.6);
    white-space: nowrap;
    display: inline-block;
    animation: sequenceScroll 60s linear infinite;
}

@keyframes sequenceScroll {
    from { transform: translateX(100%); }
    to { transform: translateX(-100%); }
}

/* Leather Header */
.leather-header {
    width: 100%;
    height: 120px;
    background: var(--deep-vellum);
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.1), inset 0 -1px 2px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.leather-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    letter-spacing: 0.12em;
    color: var(--telomere-gold);
    text-transform: uppercase;
}

/* Content Sections */
.content-section {
    position: relative;
    min-height: 100vh;
    padding: 89px 0;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    overflow: hidden;
}

/* Watercolor Washes */
.watercolor-wash {
    position: absolute;
    width: 140%;
    height: 140%;
    left: -20%;
    top: -20%;
    pointer-events: none;
    mix-blend-mode: multiply;
    z-index: 0;
}

.wash-1 {
    background:
        radial-gradient(ellipse at 30% 40%, rgba(59, 89, 152, 0.1) 0%, transparent 70%),
        radial-gradient(ellipse at 70% 60%, rgba(123, 167, 201, 0.08) 0%, transparent 65%);
    filter: blur(30px) contrast(1.1);
    animation: watercolorBreathe 12s ease-in-out infinite alternate;
}

.wash-2 {
    background:
        radial-gradient(ellipse at 50% 30%, rgba(59, 89, 152, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 20% 70%, rgba(155, 126, 138, 0.1) 0%, transparent 55%);
    filter: blur(32px) contrast(1.1);
    animation: watercolorBreathe 12s ease-in-out infinite alternate;
}

.wash-3 {
    background:
        radial-gradient(ellipse at 60% 50%, rgba(155, 126, 138, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse at 30% 30%, rgba(59, 89, 152, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(123, 167, 201, 0.12) 0%, transparent 50%);
    filter: blur(28px) contrast(1.1);
    animation: watercolorBreathe 12s ease-in-out infinite alternate;
}

.wash-4 {
    background:
        radial-gradient(ellipse at 40% 40%, rgba(155, 126, 138, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(59, 89, 152, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse at 20% 80%, rgba(184, 196, 208, 0.15) 0%, transparent 60%);
    filter: blur(35px) contrast(1.1);
    animation: watercolorBreathe 12s ease-in-out infinite alternate;
}

@keyframes watercolorBreathe {
    0% { filter: blur(28px) contrast(1.1); transform: scale(1); }
    100% { filter: blur(35px) contrast(1.1); transform: scale(1.04); }
}

/* Frost Edges */
.frost-edge {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.frost-edge-2 {
    box-shadow: inset 10px 10px 30px rgba(184, 196, 208, 0.15), inset -10px -10px 30px rgba(184, 196, 208, 0.15);
}

.frost-edge-3 {
    box-shadow: inset 25px 25px 50px rgba(184, 196, 208, 0.25), inset -25px -25px 50px rgba(184, 196, 208, 0.25);
}

.frost-edge-4 {
    box-shadow: inset 50px 50px 80px rgba(184, 196, 208, 0.4), inset -50px -50px 80px rgba(184, 196, 208, 0.4);
    backdrop-filter: blur(1px) saturate(0.8);
}

/* Circuit Chromosome */
.circuit-chromosome {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.circuit-1 {
    right: 10%;
    top: 10%;
    width: 200px;
    opacity: 0.3;
}

/* Content Blocks */
.content-block {
    position: relative;
    z-index: 5;
    padding: 34px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.content-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.block-1-1 { grid-column: 1 / 5; }
.block-1-2 { grid-column: 4 / 8; margin-top: 55px; }
.block-2-1 { grid-column: 2 / 6; }
.block-2-2 { grid-column: 4 / 8; margin-top: 55px; }
.block-3-1 { grid-column: 1 / 5; }
.block-3-2 { grid-column: 3 / 7; margin-top: 55px; }
.block-4-1 { grid-column: 2 / 7; }

/* Typography */
.section-heading {
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.heading-full {
    font-weight: 600;
    font-size: clamp(2.8rem, 6vw, 5rem);
    color: var(--ink-wash);
}

.heading-short {
    font-weight: 600;
    font-size: clamp(2.2rem, 5vw, 4rem);
    letter-spacing: 0.15em;
    color: rgba(74, 85, 104, 0.85);
}

.heading-critical {
    font-weight: 300;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    letter-spacing: 0.2em;
    color: rgba(74, 85, 104, 0.6);
}

.heading-faded {
    font-weight: 300;
    font-size: clamp(1.5rem, 3.5vw, 2.8rem);
    letter-spacing: 0.25em;
    color: rgba(74, 85, 104, 0.35);
}

.body-text {
    max-width: 55ch;
    margin-bottom: 16px;
    color: var(--ink-wash);
}

.body-faded {
    color: rgba(74, 85, 104, 0.4);
    filter: blur(0.5px);
}

/* Closing Sequence */
.closing-sequence {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 89px;
    z-index: 5;
}

.sequence-fragment {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--frost-edge);
    opacity: 0.5;
}

/* Cursor Trace */
.cursor-trace {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 200;
    background: radial-gradient(circle, rgba(59, 89, 152, 0.2), transparent);
    animation: traceFade 3s ease-out forwards;
}

@keyframes traceFade {
    to { opacity: 0; transform: scale(0.5); }
}

/* Responsive */
@media (max-width: 768px) {
    .content-section {
        grid-template-columns: 1fr;
        padding: 55px 20px;
    }

    .content-block {
        grid-column: 1 / -1 !important;
    }

    .leather-header {
        height: 80px;
    }

    .circuit-chromosome {
        display: none;
    }
}
