/* === gabs.report Styles === */
/* Palette:
   Sepia Base:     #F0E6D4
   Nostalgic Brown:#5C4A35
   Report Gold:    #C4944A
   Ink Black:      #1E1E24
   Marble Cream:   #E8E0D5
   Patina Green:   #5E7A62
   Copper Warm:    #B87D5A
*/

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: #F0E6D4;
    color: #5C4A35;
    font-family: 'Spectral', Georgia, serif;
    font-weight: 400;
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.85;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Grain Overlay === */
#grain-svg {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

#grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 500ms ease;
}

#grain-overlay::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    opacity: 0.03;
}

#grain-overlay.visible {
    opacity: 1;
}

/* === Hero Section === */
#hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F0E6D4;
    overflow: hidden;
}

#moire-pattern {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150vmax;
    height: 150vmax;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 700ms ease;
    pointer-events: none;
    background:
        conic-gradient(from 0deg at 50% 50%,
            transparent 0deg,
            #5C4A35 1deg,
            transparent 2deg,
            transparent 10deg,
            #5C4A35 11deg,
            transparent 12deg,
            transparent 20deg
        ),
        conic-gradient(from 5deg at 48% 52%,
            transparent 0deg,
            #C4944A 1deg,
            transparent 2deg,
            transparent 10deg,
            #C4944A 11deg,
            transparent 12deg,
            transparent 20deg
        ),
        conic-gradient(from 10deg at 52% 48%,
            transparent 0deg,
            #5E7A62 1deg,
            transparent 2deg,
            transparent 10deg,
            #5E7A62 11deg,
            transparent 12deg,
            transparent 20deg
        );
    background-size: 100% 100%;
    animation: moireRotate 30s linear infinite;
}

#moire-pattern.visible {
    opacity: 0.06;
}

@keyframes moireRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

#hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
}

#hero-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(60px, 12vw, 160px);
    color: #1E1E24;
    letter-spacing: 0.05em;
    line-height: 1;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 600ms ease, transform 600ms ease;
}

#hero-title.visible {
    opacity: 1;
    transform: translateY(0);
}

#hero-subtitle {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(28px, 5vw, 64px);
    color: #5C4A35;
    letter-spacing: 0.15em;
    margin-top: -0.1em;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 600ms ease, transform 600ms ease;
}

#hero-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

#hero-tagline {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: clamp(11px, 1.2vw, 15px);
    color: #C4944A;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 1.5em;
    opacity: 0;
    transition: opacity 600ms ease;
}

#hero-tagline.visible {
    opacity: 1;
}

/* === Data Ribbons === */
.data-ribbon {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 18px 0;
    background-color: #1E1E24;
    z-index: 5;
}

.ribbon-track {
    display: flex;
    gap: 24px;
    white-space: nowrap;
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 500;
    font-size: 13px;
    color: #C4944A;
    letter-spacing: 0.08em;
    animation: ribbonScroll 40s linear infinite;
    width: max-content;
    opacity: 0;
    transition: opacity 600ms ease;
}

.ribbon-track.visible {
    opacity: 1;
}

.ribbon-track span {
    flex-shrink: 0;
}

.ribbon-track-reverse {
    animation: ribbonScrollReverse 45s linear infinite;
    color: #5E7A62;
}

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

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

/* === Editorial Sections === */
.editorial-section {
    position: relative;
    padding: 100px 24px;
    background-color: #F0E6D4;
}

.editorial-section:nth-child(even) {
    background-color: #E8E0D5;
}

.editorial-column {
    max-width: 680px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.editorial-column.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-body {
    margin-bottom: 1.8em;
    color: #5C4A35;
}

.section-body:last-child {
    margin-bottom: 0;
}

/* === Drop Caps === */
.drop-cap {
    float: left;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 80px;
    line-height: 0.8;
    padding-right: 12px;
    padding-top: 6px;
    color: transparent;
    background:
        linear-gradient(135deg, #E8E0D5 0%, #F0E6D4 20%, #B87D5A 40%, #E8E0D5 50%, #5C4A35 60%, #F0E6D4 75%, #C4944A 90%, #E8E0D5 100%),
        linear-gradient(45deg, #F0E6D4 0%, #5C4A35 30%, #E8E0D5 50%, #B87D5A 70%, #F0E6D4 100%);
    background-size: 200% 200%, 150% 150%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: marbleShift 8s ease-in-out infinite alternate;
    transform: scale(0.95);
    transition: transform 400ms ease;
}

.drop-cap.visible {
    transform: scale(1);
}

@keyframes marbleShift {
    0% { background-position: 0% 0%, 100% 0%; }
    50% { background-position: 100% 100%, 0% 100%; }
    100% { background-position: 50% 50%, 50% 50%; }
}

/* === Pull Quotes === */
.pull-quote {
    margin: 3em 0;
    text-align: center;
    padding: 0 1em;
}

.pull-quote-rule {
    width: 0;
    height: 1px;
    background-color: #C4944A;
    margin: 0 auto;
    transition: width 400ms ease;
}

.pull-quote-rule.visible {
    width: 60%;
}

.pull-quote blockquote {
    font-family: 'Spectral', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.8em;
    line-height: 1.5;
    color: #C4944A;
    padding: 0.8em 0;
    border: none;
    quotes: none;
}

/* === Generative Breaks === */
.generative-break {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #E8E0D5;
}

.moire-secondary {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    transform: translate(-50%, -50%);
    opacity: 0.04;
    background:
        repeating-conic-gradient(from 0deg at 50% 50%,
            #5C4A35 0deg 1deg,
            transparent 1deg 8deg
        ),
        repeating-conic-gradient(from 3deg at 45% 55%,
            #C4944A 0deg 1deg,
            transparent 1deg 8deg
        );
    animation: moireRotate 60s linear infinite reverse;
}

#gen-break-1 {
    background-color: #F0E6D4;
}

#gen-break-2 {
    background-color: #E8E0D5;
}

/* === Closing Section === */
#closing {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1E1E24;
    overflow: hidden;
}

#closing-pattern {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150vmax;
    height: 150vmax;
    transform: translate(-50%, -50%);
    opacity: 0.04;
    background:
        conic-gradient(from 0deg at 50% 50%,
            transparent 0deg,
            #C4944A 1deg,
            transparent 2deg,
            transparent 15deg,
            #C4944A 16deg,
            transparent 17deg,
            transparent 30deg
        ),
        conic-gradient(from 7deg at 48% 52%,
            transparent 0deg,
            #5E7A62 1deg,
            transparent 2deg,
            transparent 15deg,
            #5E7A62 16deg,
            transparent 17deg,
            transparent 30deg
        );
    animation: moireRotate 45s linear infinite;
}

#closing-content {
    position: relative;
    z-index: 10;
    text-align: center;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 600ms ease, transform 600ms ease;
}

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

#closing-mark {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(48px, 8vw, 100px);
    color: #F0E6D4;
    letter-spacing: 0.05em;
    line-height: 1;
}

#closing-label {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(20px, 3vw, 40px);
    color: #C4944A;
    letter-spacing: 0.15em;
    margin-top: -0.1em;
}

#closing-korean {
    font-family: 'DM Sans', sans-serif;
    font-weight: 300;
    font-size: clamp(32px, 5vw, 60px);
    color: #5E7A62;
    margin-top: 0.5em;
    opacity: 0.6;
}

#closing-desc {
    font-family: 'IBM Plex Mono', monospace;
    font-weight: 400;
    font-size: clamp(11px, 1.2vw, 15px);
    color: #B87D5A;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-top: 1.5em;
}

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

    .drop-cap {
        font-size: 56px;
        padding-right: 8px;
    }

    .pull-quote blockquote {
        font-size: 1.4em;
    }

    .generative-break {
        height: 120px;
    }

    .data-ribbon {
        padding: 14px 0;
    }

    .ribbon-track {
        font-size: 11px;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .editorial-section {
        padding: 40px 16px;
    }

    .drop-cap {
        font-size: 44px;
    }

    .pull-quote blockquote {
        font-size: 1.2em;
    }

    .generative-break {
        height: 80px;
    }
}
