/* polytical.club - Scandinavian Terracotta Field Studio */
/* Colors: #2A1810 deep terracotta, #5A3828 warm terracotta, #8A5A38 mid, #B08060 circuit, #F8F2EA cream, #FFF8F0 card, #607848 green */

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

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

body {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    color: #5A3828;
    background-color: #F8F2EA;
    line-height: 1.85;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    overflow-x: hidden;
    position: relative;
}

/* Grid Lines Background */
.grid-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(to right, rgba(90,56,40,0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(90,56,40,0.04) 1px, transparent 1px);
    background-size: calc(100% / 12) 80px;
}

/* Connection SVG Overlay */
.connection-svg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.connection-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    opacity: 0.25;
    transition: stroke-dashoffset 600ms ease-out;
}

.connection-path.visible {
    stroke-dashoffset: 0;
}

/* Typography */
h1, h2, h3 {
    font-family: 'DM Sans', sans-serif;
    color: #2A1810;
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.06em;
}

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1.2rem;
    max-width: 60ch;
}

.connection-label {
    font-family: 'Space Mono', monospace;
    font-weight: 400;
    font-size: 0.72rem;
    color: #8A5A38;
    letter-spacing: 0.08em;
    text-transform: lowercase;
}

/* Circuit Underlines */
.circuit-underline {
    width: 100%;
    max-width: 400px;
    height: 12px;
    margin-top: 0.5rem;
    opacity: 0.12;
}

.circuit-underline svg {
    width: 100%;
    height: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 80px 6% 40px;
}

.hero-content {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 24px;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.hero-primary {
    padding-right: 40px;
}

.hero-title {
    margin-bottom: 0.3rem;
}

.title-dot {
    color: #607848;
}

.hero-tagline {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 300;
    color: #5A3828;
    margin-top: 1.8rem;
    max-width: 50ch;
    line-height: 1.9;
}

.hero-secondary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-left: 20px;
}

.hero-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nature-element {
    opacity: 0;
    transition: opacity 1.2s ease;
}

.nature-element.visible {
    opacity: 1;
}

.nature-leaf {
    width: 100px;
    height: 100px;
}

.nature-stones {
    width: 120px;
    height: 160px;
}

.nature-seed {
    width: 80px;
    height: 120px;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 6%;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0.6;
    animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.6; transform: translateY(0); }
    50% { opacity: 0.3; transform: translateY(4px); }
}

/* Nature Breaks */
.nature-break {
    padding: 20px 6%;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.nature-break.visible {
    opacity: 1;
}

.nature-divider {
    width: 100%;
    height: auto;
}

/* F-Pattern Sections */
.section {
    position: relative;
    z-index: 1;
    padding: 80px 6%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-inner {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.f-primary {
    padding-right: 40px;
}

.f-secondary {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-left: 20px;
    align-items: flex-start;
}

/* Info Cards */
.info-card {
    background: #FFF8F0;
    padding: 24px 28px;
    border-left: 2px solid #B08060;
    max-width: 320px;
}

.info-card .connection-label {
    display: block;
    margin-bottom: 12px;
}

.info-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.info-card p {
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 0;
}

/* Thread Items */
.thread-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 1.5rem;
}

.thread-item {
    padding: 24px 0;
    border-bottom: 1px solid rgba(90,56,40,0.08);
    position: relative;
}

.thread-item .connection-label {
    display: block;
    margin-bottom: 8px;
}

.thread-item h3 {
    color: #2A1810;
}

.thread-item p {
    font-weight: 300;
    margin-bottom: 0;
}

/* Principles Grid */
.principles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 1.5rem;
}

.principle-item {
    padding: 20px 0;
}

.principle-number {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: #B08060;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 8px;
}

.principle-item h3 {
    font-size: 1.1rem;
}

.principle-item p {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    padding: 60px 6% 40px;
    margin-top: 40px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 20px;
}

.footer-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: #2A1810;
    letter-spacing: 0.06em;
    display: block;
    margin-bottom: 6px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-circuit {
    max-width: 100%;
    opacity: 0.08;
    margin-top: 20px;
}

.footer-circuit svg {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-primary {
        padding-right: 0;
    }

    .hero-secondary {
        padding-left: 0;
    }

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

    .f-primary {
        padding-right: 0;
    }

    .f-secondary {
        padding-left: 0;
    }

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

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .hero {
        padding: 60px 5% 40px;
    }

    .section {
        padding: 60px 5%;
    }

    .nature-break {
        padding: 16px 5%;
    }

    .footer {
        padding: 40px 5% 30px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    .info-card {
        max-width: 100%;
    }
}

/* Section heading wrapper for circuit underline */
.section-heading {
    display: inline-block;
}

.section-heading .circuit-underline {
    margin-top: 0.3rem;
}
