/* gamelicensor.info - Mid-Century Government Records Office */

:root {
    --burnt-orange: #C75000;
    --deep-blue: #1B4D6E;
    --forest-green: #5B8C3E;
    --charcoal: #2C2C2C;
    --medium-gray: #4A4A4A;
    --cream: #FFF8F0;
    --parchment: #D4CCBC;
    --white: #FFFFFF;
    --warmcream: #F5F0E8;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cream);
    color: var(--charcoal);
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* ==============================
   HEADER BAND
   ============================== */

#header-band {
    width: 100%;
    height: 120px;
    background: var(--burnt-orange);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 0 48px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.header-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 40px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1;
}

/* Geometric Logomark */
.logomark {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.logo-square {
    position: absolute;
    width: 24px;
    height: 24px;
    border: 2px solid var(--white);
}

.sq-1 {
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.15);
}

.sq-2 {
    top: 8px;
    left: 12px;
    background: rgba(255, 255, 255, 0.25);
}

.sq-3 {
    top: 16px;
    left: 24px;
    background: rgba(255, 255, 255, 0.35);
}

/* ==============================
   HERO SECTION
   ============================== */

.section-hero {
    min-height: 100vh;
    background: var(--warmcream);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px 48px;
    position: relative;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hero-text {
    max-width: 680px;
}

.hero-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 72px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--charcoal);
    line-height: 1.05;
    margin-bottom: 24px;
}

.hero-sub {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--medium-gray);
    max-width: 52ch;
}

/* Stamp */
.hero-stamp {
    flex-shrink: 0;
    opacity: 0;
    transform: rotate(-15deg) scale(0.6);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-stamp.visible {
    opacity: 1;
    transform: rotate(-12deg) scale(1);
}

.stamp-ring {
    width: 140px;
    height: 140px;
    border: 4px solid var(--burnt-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.stamp-ring::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 2px solid var(--burnt-orange);
    border-radius: 50%;
}

.stamp-text {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 24px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--burnt-orange);
}

.hero-rule {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: repeating-linear-gradient(
        to right,
        var(--burnt-orange) 0px,
        var(--burnt-orange) 12px,
        transparent 12px,
        transparent 18px
    );
}

/* ==============================
   SECTION BASE STYLES
   ============================== */

.section {
    padding: 80px 48px;
    position: relative;
}

.section-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 40px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 40px;
    line-height: 1.1;
}

.section-heading-light {
    color: var(--warmcream);
}

/* ==============================
   SECTION 2: RECORDS (F-PATTERN)
   ============================== */

.section-records {
    background: var(--cream);
    max-width: 1200px;
    margin: 0 auto;
}

.f-pattern {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

.f-primary {
    flex: 1;
    min-width: 0;
}

.f-sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.body-text {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--charcoal);
    margin-bottom: 20px;
}

.body-centered {
    max-width: 72ch;
    margin-left: auto;
    margin-right: auto;
}

.first-letter {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    font-weight: 400;
    color: var(--burnt-orange);
    line-height: 1;
    float: left;
    margin-right: 4px;
    margin-top: 4px;
}

/* Reference Panels */
.ref-panel {
    background: var(--white);
    padding: 16px;
    border-radius: 0;
    position: relative;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ref-panel.visible {
    opacity: 1;
    transform: translateX(0);
}

.ref-orange {
    border-left: 4px solid var(--burnt-orange);
}

.ref-blue {
    border-left: 4px solid var(--deep-blue);
}

.ref-green {
    border-left: 4px solid var(--forest-green);
}

.ref-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 18px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.ref-data {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ref-code {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    color: var(--medium-gray);
    letter-spacing: 0.02em;
}

.ref-label {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 14px;
    color: var(--charcoal);
}

.ref-date {
    font-family: 'Space Mono', monospace;
    font-size: 12px;
    color: var(--medium-gray);
    opacity: 0.7;
}

/* ==============================
   PATTERN BAND (CHEVRON)
   ============================== */

.pattern-band {
    height: 48px;
    background: var(--charcoal);
    background-image: repeating-linear-gradient(
        120deg,
        transparent 0px,
        transparent 20px,
        rgba(199, 80, 0, 0.15) 20px,
        rgba(199, 80, 0, 0.15) 22px
    );
}

/* ==============================
   SECTION 3: CLASSIFICATION
   ============================== */

.section-classification {
    background: var(--charcoal);
    clip-path: polygon(0 0, 100% 4%, 100% 96%, 0 100%);
    padding: 120px 48px;
}

.classification-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.class-card {
    background: var(--white);
    padding: 28px;
    position: relative;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.class-card.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.class-card-orange {
    border-top: 4px solid var(--burnt-orange);
}

.class-card-blue {
    border-top: 4px solid var(--deep-blue);
}

.class-card-green {
    border-top: 4px solid var(--forest-green);
}

.class-card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    font-size: 24px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.class-card-desc {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--medium-gray);
}

/* ==============================
   SECTION 4: REFERENCE DESK
   ============================== */

.section-reference {
    background: var(--cream);
    max-width: 1200px;
    margin: 0 auto;
}

.pull-quote {
    font-family: 'Source Serif 4', Georgia, serif;
    font-style: italic;
    font-size: 22px;
    line-height: 1.6;
    color: var(--deep-blue);
    border-left: 4px solid var(--deep-blue);
    padding: 20px 32px;
    margin: 32px 0;
    max-width: 64ch;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pull-quote.visible {
    opacity: 1;
    transform: translateX(0);
}

.inline-ref {
    font-family: 'Space Mono', monospace;
    font-size: 16px;
    color: var(--burnt-orange);
    background: rgba(199, 80, 0, 0.08);
    padding: 2px 6px;
}

/* ==============================
   SECTION 5: ARCHIVE SEAL
   ============================== */

.section-seal {
    background: var(--charcoal);
    padding: 120px 48px;
    text-align: center;
}

.seal-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

/* Large Logomark */
.logomark-large {
    position: relative;
    width: 96px;
    height: 96px;
}

.logo-square-lg {
    position: absolute;
    width: 48px;
    height: 48px;
    border: 3px solid var(--white);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sq-lg-1 {
    top: 0;
    left: 0;
    background: rgba(199, 80, 0, 0.3);
}

.sq-lg-2 {
    top: 16px;
    left: 24px;
    background: rgba(27, 77, 110, 0.3);
}

.sq-lg-3 {
    top: 32px;
    left: 48px;
    background: rgba(91, 140, 62, 0.3);
}

.logomark-large.animated .sq-lg-1 {
    transform: rotate(5deg);
}

.logomark-large.animated .sq-lg-2 {
    transform: rotate(-3deg);
}

.logomark-large.animated .sq-lg-3 {
    transform: rotate(8deg);
}

.seal-stamp {
    opacity: 0;
    transform: rotate(-20deg) scale(0.5);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.seal-stamp.visible {
    opacity: 1;
    transform: rotate(-8deg) scale(1);
}

.stamp-ring-large {
    width: 180px;
    height: 180px;
    border: 5px solid var(--burnt-orange);
}

.stamp-ring-large::before {
    border: 3px solid var(--burnt-orange);
}

.stamp-ring-large .stamp-text {
    font-size: 28px;
    letter-spacing: 0.15em;
}

.seal-closing {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 18px;
    color: var(--parchment);
    line-height: 1.5;
}

.seal-year {
    font-family: 'Space Mono', monospace;
    font-size: 14px;
    color: var(--medium-gray);
    letter-spacing: 0.04em;
}

/* ==============================
   ANIMATIONS
   ============================== */

@keyframes stampSlam {
    0% {
        opacity: 0;
        transform: rotate(-20deg) scale(1.4);
    }
    60% {
        opacity: 1;
        transform: rotate(-10deg) scale(0.92);
    }
    80% {
        transform: rotate(-13deg) scale(1.04);
    }
    100% {
        opacity: 1;
        transform: rotate(-12deg) scale(1);
    }
}

/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width: 900px) {
    .hero-heading {
        font-size: 52px;
    }

    .hero-inner {
        flex-direction: column;
        gap: 40px;
    }

    .f-pattern {
        flex-direction: column;
    }

    .f-sidebar {
        width: 100%;
    }

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

    .section-classification {
        clip-path: polygon(0 0, 100% 2%, 100% 98%, 0 100%);
    }
}

@media (max-width: 600px) {
    #header-band {
        height: 80px;
    }

    .header-inner {
        padding: 0 20px;
    }

    .header-title {
        font-size: 28px;
    }

    .section {
        padding: 60px 20px;
    }

    .section-hero {
        padding: 60px 20px;
    }

    .hero-heading {
        font-size: 40px;
    }

    .section-heading {
        font-size: 32px;
    }

    .class-grid {
        grid-template-columns: 1fr;
    }

    .stamp-ring {
        width: 100px;
        height: 100px;
    }

    .stamp-text {
        font-size: 18px;
    }

    .section-classification {
        clip-path: none;
        padding: 80px 20px;
    }

    .pull-quote {
        font-size: 18px;
        padding: 16px 20px;
    }

    .stamp-ring-large {
        width: 140px;
        height: 140px;
    }

    .stamp-ring-large .stamp-text {
        font-size: 22px;
    }
}
