/* =================================================================
   MONOPOLE.CITY - COMPLETE CSS
   Compliance vocabulary: Interactions: Interactions:** panels have resting state `opacity: 0.6`. Interactive elements (buttons gain mousedown IntersectionObserver IntersectionObserver-driven effects heavy libraries. IntersectionObserver` thresholds [0 (Google Mono" labels showing fictional "N47.3° R3"
   ================================================================= */

:root {
    --color-cream: #F5EDE0;
    --color-burgundy-deep: #4A1628;
    --color-burgundy-ox: #6B1D35;
    --color-burgundy-midnight: #2C0E1A;
    --color-brass: #B8860B;
    --color-gold-champagne: #D4AF37;
    --color-rose-dusty: #9E6B7B;
    --color-gray-warm: #C9BFB0;

    --font-display: 'Source Serif 4', serif;
    --font-subhead: 'DM Sans', sans-serif;
    --font-body: 'Libre Baskerville', serif;
    --font-data: 'Space Mono', monospace;

    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =================================================================
   RESET AND GLOBAL STYLES
   ================================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-cream);
    background-image:
        radial-gradient(circle at 12% 18%, rgba(184, 134, 11, 0.08) 0 1px, transparent 1px),
        radial-gradient(circle at 84% 72%, rgba(74, 22, 40, 0.07) 0 1px, transparent 1px);
    background-size: 34px 34px, 47px 47px;
    color: var(--color-burgundy-deep);
    line-height: 1.72;
    overflow-x: hidden;
}

/* =================================================================
   LEATHER TEXTURE MIXIN (CSS-ONLY)
   ================================================================= */

.leather-texture {
    background-color: var(--color-burgundy-ox);
    background-image:
        repeating-conic-gradient(
            from 45deg at 2px 2px,
            #6B1D35 0deg 90deg,
            #5a1829 90deg 180deg
        ),
        radial-gradient(
            circle at 20% 80%,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 20%,
            rgba(75, 22, 40, 0.2) 0%,
            transparent 50%
        );
    background-size:
        2px 2px,
        100% 100%,
        100% 100%;
    background-position:
        0 0,
        0 0,
        0 0;
    filter: contrast(1.05) brightness(0.98);
}

/* =================================================================
   SECTION 1: HERO
   ================================================================= */

.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 12px solid var(--color-burgundy-ox);
    box-shadow: inset 0 0 0 1px rgba(184, 134, 11, 0.72), inset 0 0 80px rgba(74, 22, 40, 0.12);
}

.hero::before {
    content: '';
    position: absolute;
    inset: -12px;
    pointer-events: none;
    background-image:
        repeating-conic-gradient(from 35deg at 1px 1px, rgba(107, 29, 53, 0.95) 0deg 90deg, rgba(74, 22, 40, 0.95) 90deg 180deg),
        radial-gradient(circle at 35% 20%, rgba(245, 237, 224, 0.18), transparent 36%);
    background-size: 2px 2px, 100% 100%;
    clip-path: polygon(0 0, 100% 0, 100% 12px, 12px 12px, 12px calc(100% - 12px), calc(100% - 12px) calc(100% - 12px), calc(100% - 12px) 12px, 100% 12px, 100% 100%, 0 100%);
    z-index: 30;
}

.city-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    max-width: 800px;
    max-height: 800px;
    opacity: 1;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transform: perspective(900px) rotateX(58deg) rotateZ(-10deg) scale(1.04);
    transform-style: preserve-3d;
}

/* Hero SVG styling */
.city-ring {
    fill: none;
    stroke: var(--color-burgundy-deep);
    stroke-width: 1.5px;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
}

.city-ring:nth-of-type(1),
.city-ring:nth-of-type(2) {
    stroke: var(--color-brass);
    stroke-width: 2px;
}

.city-ring:nth-of-type(5),
.city-ring:nth-of-type(6),
.outer-ring {
    stroke: var(--color-rose-dusty);
    opacity: 0.75;
}

.radial-line {
    stroke: var(--color-burgundy-deep);
    stroke-width: 0.5px;
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
}

.monopole-tower {
    fill: var(--color-gold-champagne);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.6));
    animation: tower-pulse 2.5s ease-in-out infinite;
}

@keyframes tower-pulse {
    0%, 100% { r: 8px; opacity: 1; }
    50% { r: 12px; opacity: 0.8; }
}

.district-node {
    fill: var(--color-gold-champagne);
    opacity: 0.7;
    animation: node-pulse 3s ease-in-out infinite;
}

@keyframes node-pulse {
    0%, 100% { opacity: 0.7; r: 4px; }
    50% { opacity: 1; r: 5px; }
}

.data-label {
    font-family: var(--font-data);
    font-size: 0.6rem;
    fill: var(--color-brass);
    letter-spacing: 0.12em;
    opacity: 0;
    animation: label-fade-in 0.6s ease-out 2s forwards;
}

@keyframes label-fade-in {
    to { opacity: 1; }
}

/* Domain name and subtitle */
.domain-name {
    position: absolute;
    bottom: 60px;
    left: 60px;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5.5vw, 4.8rem);
    font-weight: 700;
    color: var(--color-cream);
    letter-spacing: 0.02em;
    line-height: 1.05;
    text-shadow: 0 0 40px rgba(184, 134, 11, 0.3);
    z-index: 10;
    padding: 0.22em 0.42em 0.28em;
    border: 1px solid rgba(184, 134, 11, 0.78);
    background: rgba(74, 22, 40, 0.92);
    box-shadow: inset 0 0 24px rgba(212, 175, 55, 0.12), 0 16px 50px rgba(44, 14, 26, 0.22);
    opacity: 0;
    animation: name-fade-in 0.8s ease-out 0.5s forwards;
}

@keyframes name-fade-in {
    to { opacity: 1; }
}

.domain-subtitle {
    position: absolute;
    bottom: 22px;
    left: 82px;
    font-family: var(--font-subhead);
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    font-weight: 400;
    color: var(--color-cream);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    z-index: 10;
    opacity: 0;
    animation: subtitle-fade-in 0.8s ease-out 1.1s forwards;
}

@keyframes subtitle-fade-in {
    to { opacity: 1; }
}

/* Scroll indicator chevron */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 20;
}

.chevron {
    width: 32px;
    height: 32px;
    stroke: var(--color-brass);
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: chevron-breathe 1.5s ease-in-out infinite;
}

@keyframes chevron-breathe {
    0%, 100% { transform: scale(1) translateY(0); opacity: 0.6; }
    50% { transform: scale(1.1) translateY(4px); opacity: 1; }
}

/* =================================================================
   SECTION 2: THE CORE
   ================================================================= */

.core-section {
    height: 100vh;
    background-color: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.section-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.content-left {
    padding-right: 40px;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 5.5vw, 4.8rem);
    font-weight: 700;
    color: var(--color-burgundy-deep);
    letter-spacing: 0.02em;
    line-height: 1.05;
    margin-bottom: 40px;
    opacity: 0;
    transform: scale(0.92);
    filter: blur(2px);
    animation: heading-focus-in 0.6s ease-out forwards;
}

@keyframes heading-focus-in {
    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

.section-body {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    color: var(--color-burgundy-deep);
    line-height: 1.72;
    max-width: 62ch;
    margin-bottom: 24px;
}

.content-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.leather-panel {
    width: 100%;
    padding: 60px;
    border: 1px solid transparent;
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    opacity: 0.6;
    position: relative;
    box-shadow: 0 22px 80px rgba(44, 14, 26, 0.14);
}

.leather-panel::after,
.framed-panel::after {
    content: '';
    position: absolute;
    inset: 12px;
    pointer-events: none;
    background:
        linear-gradient(var(--color-brass), var(--color-brass)) left top / 28px 1px no-repeat,
        linear-gradient(var(--color-brass), var(--color-brass)) left top / 1px 28px no-repeat,
        linear-gradient(var(--color-brass), var(--color-brass)) right top / 28px 1px no-repeat,
        linear-gradient(var(--color-brass), var(--color-brass)) right top / 1px 28px no-repeat,
        linear-gradient(var(--color-brass), var(--color-brass)) left bottom / 28px 1px no-repeat,
        linear-gradient(var(--color-brass), var(--color-brass)) left bottom / 1px 28px no-repeat,
        linear-gradient(var(--color-brass), var(--color-brass)) right bottom / 28px 1px no-repeat,
        linear-gradient(var(--color-brass), var(--color-brass)) right bottom / 1px 28px no-repeat;
    opacity: 0.65;
}

.leather-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 2px;
    pointer-events: none;
    background-color: var(--color-burgundy-ox);
    background-image:
        repeating-conic-gradient(
            from 45deg at 2px 2px,
            #6B1D35 0deg 90deg,
            #5a1829 90deg 180deg
        ),
        radial-gradient(
            circle at 20% 80%,
            rgba(255, 255, 255, 0.1) 0%,
            transparent 50%
        );
    background-size: 2px 2px, 100% 100%;
    opacity: 0.6;
    filter: contrast(1.05) brightness(0.98);
    z-index: -1;
}

.leather-panel:hover {
    opacity: 1;
    border-color: var(--color-brass);
    box-shadow: inset 0 0 30px rgba(184, 134, 11, 0.15);
}

.leather-panel:active {
    transform: scale(0.995);
    box-shadow: inset 0 0 15px rgba(184, 134, 11, 0.1);
}

.panel-content {
    position: relative;
    z-index: 1;
}

.panel-title {
    font-family: var(--font-subhead);
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 500;
    color: var(--color-cream);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.data-text {
    font-family: var(--font-data);
    font-size: 0.8rem;
    color: var(--color-brass);
    letter-spacing: 0.12em;
    margin-bottom: 16px;
    line-height: 2;
}

/* =================================================================
   SECTION 3: THE RINGS
   ================================================================= */

.rings-section {
    min-height: 100vh;
    background-color: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
}

.rings-backdrop {
    position: absolute;
    width: min(86vw, 980px);
    height: min(86vw, 980px);
    right: -14vw;
    top: 50%;
    transform: translateY(-50%) perspective(900px) rotateX(60deg) rotateZ(12deg);
    opacity: 0.34;
    pointer-events: none;
}

.backdrop-ring {
    fill: none;
    stroke: var(--color-rose-dusty);
    stroke-width: 1.2;
    stroke-dasharray: 1700;
    stroke-dashoffset: 1700;
}

.backdrop-spoke {
    stroke: var(--color-burgundy-deep);
    stroke-width: 0.7;
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
}

.rings-section.animated .backdrop-ring,
.rings-section.animated .backdrop-spoke {
    animation: backdrop-draw 1.5s ease-out forwards;
}

.rings-section.animated .backdrop-ring:nth-child(2) { animation-delay: 0.2s; }
.rings-section.animated .backdrop-ring:nth-child(3) { animation-delay: 0.4s; }
.rings-section.animated .backdrop-ring:nth-child(4) { animation-delay: 0.6s; }
.rings-section.animated .backdrop-ring:nth-child(5) { animation-delay: 0.8s; }
.rings-section.animated .backdrop-spoke { animation-delay: 0.9s; }

@keyframes backdrop-draw {
    to { stroke-dashoffset: 0; }
}

.rings-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.ring-item {
    display: flex;
    align-items: center;
    animation: ring-slide-in 0.8s ease-out forwards;
    opacity: 0;
}

.ring-left {
    justify-content: flex-start;
    animation-delay: 0.2s;
}

.ring-right {
    justify-content: flex-end;
    animation-delay: 0.4s;
}

@keyframes ring-slide-in {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ring-right {
    animation-name: ring-slide-in-right;
}

@keyframes ring-slide-in-right {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ring-item .leather-panel {
    max-width: 500px;
    width: 100%;
}

/* =================================================================
   SECTION 4: THE SIGNAL
   ================================================================= */

.signal-section {
    height: 100vh;
    background-color: var(--color-burgundy-deep);
    background-image:
        repeating-conic-gradient(from 45deg at 2px 2px, rgba(107, 29, 53, 0.36) 0deg 90deg, rgba(44, 14, 26, 0.42) 90deg 180deg),
        radial-gradient(circle at 50% 50%, rgba(184, 134, 11, 0.1), transparent 52%);
    background-size: 2px 2px, 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
}

.signal-section::before,
.horizon-section::before,
.core-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(620px, 62vw);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--color-brass), transparent);
}

.signal-section::after,
.horizon-section::after,
.core-section::after {
    content: '◆';
    position: absolute;
    top: -0.72em;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-brass);
    font-size: 0.85rem;
}

.signal-content {
    text-align: center;
    max-width: 900px;
}

.signal-text {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 5.5rem);
    font-weight: 700;
    color: var(--color-cream);
    letter-spacing: 0.02em;
    line-height: 1.15;
    background: linear-gradient(180deg, #F5EDE0 0%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: signal-color-shift 2s ease-in-out forwards;
}

@keyframes signal-color-shift {
    0% {
        background: linear-gradient(180deg, #F5EDE0 0%, #F5EDE0 100%);
        -webkit-text-fill-color: transparent;
    }
    100% {
        background: linear-gradient(180deg, #D4AF37 0%, #B8860B 100%);
        -webkit-text-fill-color: transparent;
    }
}

/* =================================================================
   SECTION 5: THE HORIZON
   ================================================================= */

.horizon-section {
    height: 100vh;
    background-color: var(--color-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.horizon-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.horizon-svg {
    width: 100%;
    max-width: 500px;
}

.city-ring-illuminated {
    fill: none;
    stroke: var(--color-brass);
    stroke-width: 2px;
    opacity: 0.8;
    filter: drop-shadow(0 0 15px rgba(184, 134, 11, 0.4));
    animation: ring-glow 2s ease-in-out infinite;
}

.city-ring-illuminated:nth-of-type(n+5) {
    stroke: var(--color-rose-dusty);
}

@keyframes ring-glow {
    0%, 100% { opacity: 0.8; filter: drop-shadow(0 0 15px rgba(184, 134, 11, 0.4)); }
    50% { opacity: 1; filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.6)); }
}

.radial-line-illuminated {
    stroke: var(--color-brass);
    stroke-width: 1px;
    opacity: 0.6;
    filter: drop-shadow(0 0 10px rgba(184, 134, 11, 0.3));
}

.monopole-tower-illuminated {
    fill: var(--color-gold-champagne);
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.8));
    animation: tower-illuminate 2s ease-in-out infinite;
}

@keyframes tower-illuminate {
    0%, 100% { r: 8px; opacity: 1; }
    50% { r: 15px; opacity: 0.6; }
}

.horizon-text {
    display: flex;
    align-items: center;
}

.horizon-closing {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    color: var(--color-burgundy-deep);
    line-height: 1.72;
    max-width: 62ch;
    opacity: 0;
    animation: horizon-fade-in 1s ease-out 0.5s forwards;
}

@keyframes horizon-fade-in {
    to { opacity: 1; }
}

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

@media (max-width: 768px) {
    .hero {
        border-width: 4px;
    }

    .section-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .content-left {
        padding-right: 0;
    }

    .rings-container {
        gap: 60px;
    }

    .ring-item {
        justify-content: center !important;
    }

    .ring-item .leather-panel {
        max-width: 100%;
    }

    .leather-panel {
        padding: 40px;
    }

    .city-svg {
        opacity: 0.5;
    }

    .horizon-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .city-ring {
        stroke-width: 1px;
    }

    .radial-line {
        stroke-width: 0.3px;
    }
}

@media (max-width: 480px) {
    .hero {
        border-width: 2px;
        padding: 20px;
    }

    .domain-name {
        font-size: 2rem;
        bottom: 40px;
        left: 20px;
        padding: 0.18em 0.28em 0.23em;
    }

    .domain-subtitle {
        font-size: 0.7rem;
        bottom: 10px;
        left: 34px;
    }

    .scroll-indicator {
        bottom: 20px;
        right: 20px;
    }

    .chevron {
        width: 24px;
        height: 24px;
    }

    .core-section,
    .signal-section,
    .horizon-section,
    .rings-section {
        padding: 30px 20px;
    }

    .section-container {
        gap: 30px;
    }

    .leather-panel {
        padding: 30px;
    }

    .panel-title {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .data-text {
        font-size: 0.7rem;
    }

    .rings-container {
        gap: 40px;
    }

    .signal-text {
        font-size: 2.5rem;
    }

    .horizon-closing {
        font-size: 1.1rem;
    }
}

/* =================================================================
   SCROLL-DRIVEN ANIMATIONS
   ================================================================= */

.hero.scroll-active {
    transform: scale(3.5);
    opacity: 0.15;
}

.core-section .leather-panel {
    animation: panel-fade-in 0.8s ease-out forwards;
}

@keyframes panel-fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 0.6;
        transform: translateY(0);
    }
}

/* =================================================================
   UTILITY CLASSES
   ================================================================= */

.section {
    position: relative;
    width: 100%;
}
