/* politics.day - Isometric Civic Landscape */
/* Palette: Linen Cream #FAF0E6, Deep Umber #3D2B1F, Aged Terracotta #A0522D,
   Burnt Sienna #C4704A, Carrara #F5F0EB, Warm Gray #B8A99A,
   Olive Sage #7A8B6F, Palazzo Umber #5C3D2E, Warm Gold #D4A84B */

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

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

body {
    background-color: #FAF0E6;
    color: #3D2B1F;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    line-height: 1.72;
    overflow-x: hidden;
    position: relative;
}

.svg-filters {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ========================================
   ISOMETRIC GROUND PLANE
   ======================================== */

.ground-plane {
    position: fixed;
    top: 0;
    left: 0;
    width: 200vw;
    height: 200vh;
    z-index: 0;
    pointer-events: none;
    transform: rotateX(60deg) rotateZ(45deg);
    transform-origin: center center;
    background-image:
        linear-gradient(to right, #C4704A 0.5px, transparent 0.5px),
        linear-gradient(to bottom, #C4704A 0.5px, transparent 0.5px);
    background-size: 40px 40px;
    opacity: 0.12;
}

/* ========================================
   BOTANICAL IVY TRAIL
   ======================================== */

.ivy-trail {
    position: fixed;
    left: 10px;
    top: 0;
    width: 60px;
    height: 100vh;
    z-index: 5;
    pointer-events: none;
    opacity: 0.6;
}

.ivy-path {
    stroke-dasharray: var(--ivy-total-length, 3000);
    stroke-dashoffset: var(--ivy-total-length, 3000);
    transition: none;
}

.ivy-leaves path {
    opacity: 0.7;
}

/* ========================================
   FORUM PLAZA (HERO)
   ======================================== */

.forum-plaza {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.marble-floor {
    position: relative;
    width: 80vw;
    height: 80vh;
    max-width: 900px;
    max-height: 600px;
    background-color: #F5F0EB;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    clip-path: circle(0%);
    will-change: clip-path;
}

.marble-veins {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(184, 169, 154, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(184, 169, 154, 0.18) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(184, 169, 154, 0.15) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 20%, rgba(184, 169, 154, 0.12) 0%, transparent 35%);
    filter: url(#marble-hero);
    pointer-events: none;
}

.domain-title {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 7rem);
    letter-spacing: -0.02em;
    color: #3D2B1F;
    opacity: 0;
    transform: translateY(20px);
    will-change: opacity, transform;
    position: relative;
    z-index: 2;
}

.acanthus-leaf {
    margin-top: 24px;
    opacity: 0;
    position: relative;
    z-index: 2;
}

.acanthus-svg {
    width: 120px;
    height: 80px;
}

.acanthus-path {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
}

/* ========================================
   CORRIDOR SECTIONS
   ======================================== */

.corridor {
    position: relative;
    z-index: 1;
    height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.corridor-element {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 200ms ease, transform 400ms ease;
}

.corridor-element.revealed {
    opacity: 0.5;
    transform: scale(1);
}

.column-fragment,
.potted-plant,
.amphitheater,
.rotunda,
.olive-branch-footer {
    width: 60px;
    height: auto;
}

.amphitheater {
    width: 80px;
}

.olive-branch-footer {
    width: 100px;
}

/* ========================================
   DISTRICT BLOCKS
   ======================================== */

.district {
    position: relative;
    z-index: 2;
    width: 85%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    opacity: 0;
    transform: translateY(40px);
    will-change: opacity, transform;
    transition: opacity 400ms ease, transform 400ms ease;
}

.district.revealed {
    opacity: 1;
    transform: translateY(0);
}

.district-left {
    margin-left: 8%;
    transform-origin: left center;
}

.district-left.revealed {
    perspective: 1200px;
}

.district-left .district-inner {
    transform: rotateY(-2deg) rotateX(1deg);
}

.district-right {
    margin-right: 8%;
    margin-left: auto;
    transform-origin: right center;
}

.district-right.revealed {
    perspective: 1200px;
}

.district-right .district-inner {
    transform: rotateY(2deg) rotateX(1deg);
}

.district-inner {
    position: relative;
    background-color: #F5F0EB;
    padding: 48px;
    filter: drop-shadow(8px 12px 0 rgba(139, 90, 63, 0.15));
    transition: filter 300ms ease;
    will-change: transform;
}

.district:hover .district-inner {
    filter: drop-shadow(10px 16px 0 rgba(92, 61, 46, 0.25));
}

.meander-frame {
    position: absolute;
    inset: 0;
    border: 2px solid #C4704A;
    pointer-events: none;
    transition: border-color 300ms ease;
}

.district:hover .meander-frame {
    border-color: #D4A84B;
}

.marble-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 40%, rgba(184, 169, 154, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(184, 169, 154, 0.08) 0%, transparent 40%);
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 300ms ease;
}

.district:hover .marble-bg {
    opacity: 1;
}

.district-content {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 36px;
    position: relative;
    z-index: 1;
}

.content-main h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    letter-spacing: -0.02em;
    color: #3D2B1F;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 400ms ease, transform 400ms ease;
}

.district.revealed .content-main h2 {
    opacity: 1;
    transform: translateY(0);
}

.content-main p {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.72;
    color: #3D2B1F;
    max-width: 38em;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 400ms ease 150ms, transform 400ms ease 150ms;
}

.district.revealed .content-main p {
    opacity: 1;
    transform: translateY(0);
}

.content-accent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 400ms ease 300ms, transform 400ms ease 300ms;
}

.district.revealed .content-accent {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   PULL QUOTES
   ======================================== */

.pull-quote {
    padding: 20px;
    border-left: 2px solid #A0522D;
    background: linear-gradient(135deg, rgba(245, 240, 235, 0.8), rgba(250, 240, 230, 0.6));
}

.pull-quote p {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
    line-height: 1.4;
    color: #A0522D;
}

/* ========================================
   BOTANICAL ACCENTS
   ======================================== */

.botanical-accent svg,
.laurel-wreath svg {
    width: 80px;
    height: 80px;
    opacity: 0.7;
}

/* ========================================
   COMPASS ROSE NAVIGATION
   ======================================== */

.compass-rose {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100;
    cursor: pointer;
}

.compass-svg {
    width: 48px;
    height: 48px;
    transition: transform 300ms ease;
    will-change: transform;
}

.compass-menu {
    position: absolute;
    bottom: 56px;
    right: 0;
    background-color: #F5F0EB;
    border: 1px solid #C4704A;
    padding: 0;
    display: flex;
    flex-direction: column;
    clip-path: circle(0% at 100% 100%);
    transition: clip-path 400ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    min-width: 180px;
    filter: drop-shadow(4px 6px 0 rgba(92, 61, 46, 0.15));
}

.compass-menu.open {
    clip-path: circle(150% at 100% 100%);
    pointer-events: auto;
}

.compass-link {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: 1rem;
    color: #3D2B1F;
    text-decoration: none;
    padding: 10px 20px;
    transition: background-color 200ms ease, color 200ms ease;
    display: block;
    border-bottom: 1px solid rgba(196, 112, 74, 0.2);
}

.compass-link:last-child {
    border-bottom: none;
}

.compass-link:hover {
    background-color: rgba(160, 82, 45, 0.08);
    color: #A0522D;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    position: relative;
    z-index: 2;
    background-color: #5C3D2E;
    padding: 60px 24px;
    text-align: center;
}

.footer-domain {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.01em;
    color: #FAF0E6;
    margin-bottom: 8px;
}

.footer-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: 1.1rem;
    color: #B8A99A;
}

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

@media (max-width: 768px) {
    .district {
        width: 95%;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .district-left .district-inner,
    .district-right .district-inner {
        transform: none;
    }

    .district-inner {
        padding: 28px 20px;
    }

    .district-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ivy-trail {
        display: none;
    }

    .compass-rose {
        bottom: 16px;
        right: 16px;
    }

    .marble-floor {
        width: 90vw;
        height: 70vh;
    }

    .ground-plane {
        opacity: 0.06;
    }
}

@media (max-width: 480px) {
    .district-inner {
        padding: 20px 16px;
    }

    .pull-quote p {
        font-size: 1.2rem;
    }
}

/* ========================================
   REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .marble-floor {
        clip-path: circle(75%) !important;
    }

    .domain-title {
        opacity: 1 !important;
        transform: none !important;
    }

    .acanthus-leaf {
        opacity: 1 !important;
    }

    .acanthus-path {
        stroke-dashoffset: 0 !important;
    }

    .district {
        opacity: 1 !important;
        transform: none !important;
    }

    .district .content-main h2,
    .district .content-main p,
    .district .content-accent {
        opacity: 1 !important;
        transform: none !important;
    }

    .corridor-element {
        opacity: 0.5 !important;
        transform: none !important;
    }

    .ivy-path {
        stroke-dashoffset: 0 !important;
    }
}