/*
================================================
TABLE OF CONTENTS
================================================
1.  :root Variables & General Styles
2.  Custom Cursor & Magnetic Links
3.  Header & Navigation
4.  Hero Section & Video Background
5.  General Section Styling
6.  Horizontal Scroll Section (Disciplines)
7.  Timeline, Work Grid, Stats
8.  Testimonial, Perspective & FAQ
9.  Final CTA Section
10. Footer
11. Sub-Page Styles (Contact, Legal)
12. Animations & Keyframes
13. Responsive Media Queries
================================================
*/

/* 1. :root Variables & General Styles */
:root {
    --color-dark: #0A0A0A;
    --color-light: #EAE8E1;
    /* Off-white */
    --color-accent: #C0A062;
    /* Muted Gold */
    --color-border: rgba(234, 232, 225, 0.2);

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --header-height: 100px;
    --transition-speed: 0.4s;
    --section-padding: 140px 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-dark);
    color: var(--color-light);
    font-family: var(--font-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    cursor: none;
}

body.nav-open {
    overflow: hidden;
}

a {
    color: var(--color-light);
    text-decoration: none;
    cursor: none;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--color-light);
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(3.5rem, 7vw, 6rem);
}

h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h3 {
    font-size: 1.5rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: var(--section-padding);
}

.highlight {
    color: var(--color-accent);
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background-color: transparent;
    color: var(--color-light);
    border: 1px solid var(--color-light);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
}

.cta-button span {
    position: relative;
    z-index: 2;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-light);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) ease;
}

.cta-button:hover {
    color: var(--color-dark);
}

.cta-button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* 2. Custom Cursor & Magnetic Links */
.cursor,
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.3s, transform 0.2s;
}

.cursor {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-accent);
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--color-accent);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.cursor-follower.active {
    width: 50px;
    height: 50px;
}

.magnetic-link {
    display: inline-block;
}

/* 3. Header & Navigation */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all var(--transition-speed) ease;
}

#main-header.scrolled {
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo-link img {
    height: 80px;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-weight: 600;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-accent);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover::after {
    width: 100%;
}

#hamburger-btn {
    display: none;
    background: none;
    border: none;
    z-index: 1001;
    cursor: none;
    width: 30px;
    height: 30px;
    position: relative;
}

#hamburger-btn .bar {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-light);
    transition: all 0.3s ease-in-out;
    position: absolute;
    left: 2.5px;
}

#hamburger-btn .bar:nth-child(1) {
    top: 8px;
}

#hamburger-btn .bar:nth-child(2) {
    bottom: 8px;
}

#hamburger-btn.is-active .bar:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

#hamburger-btn.is-active .bar:nth-child(2) {
    transform: translateY(-5px) rotate(-45deg);
}

/* 4. Hero Section & Video Background */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.7);
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

#hero h1 {
    margin-bottom: 1.5rem;
}

#hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* 5. General Section Styling */
.section-title {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--color-accent);
    margin: 1rem auto 0;
}

#manifesto {
    background-color: #101010;
}

.manifesto-text {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-family: var(--font-heading);
    line-height: 1.4;
    color: var(--color-light);
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* 6. Horizontal Scroll Section (Disciplines) */
.horizontal-scroll-section {
    min-height: 100vh;
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

.sticky-wrapper .section-title {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    z-index: 2;
}

.horizontal-scroll-inner {
    display: flex;
    height: 100%;
    width: max-content;
    align-items: center;
    padding: 0 10vw;
    gap: 3rem;
    will-change: transform;
}

/* FIX: Reduced the width to make the cards smaller */
.discipline-card {
    min-width: 340px;
    max-width: 360px;
    background-color: #121212;
    border: 1px solid var(--color-border);
    padding: 2.5rem;
}

.discipline-card span {
    display: block;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

/* 7. Timeline, Work Grid, Stats */
#process {
    background-color: #101010;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto 0;
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--color-border);
}

.timeline-item:last-child {
    border-bottom: none;
}

.timeline-item h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.timeline-item span {
    color: var(--color-accent);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.work-item {
    border: 1px solid var(--color-border);
    padding: 2rem;
}

#results {
    background-color: #101010;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.stat-item .stat-number {
    font-size: clamp(4rem, 10vw, 6rem);
    font-family: var(--font-heading);
    color: var(--color-accent);
    display: block;
    line-height: 1;
}

.stat-item h3 {
    font-size: 1.2rem;
    margin-top: 1rem;
    color: var(--color-light);
}

/* 8. Testimonial, Perspective & FAQ */
#testimonial {
    border-bottom: 1px solid var(--color-border);
}

.testimonial-content {
    text-align: center;
}

.quote {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.author {
    font-size: 1rem;
    font-weight: 600;
}

.perspective-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.perspective-item {
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-border);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 1.5rem 0;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.2rem;
    cursor: none;
    color: var(--color-light);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed) ease-in-out;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* 9. Final CTA Section */
#final-cta {
    background-color: #101010;
}

#final-cta h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
}

#final-cta p {
    max-width: 600px;
    margin: 1rem auto 2.5rem;
}

/* 10. Footer */
#main-footer {
    padding: 80px 0 0;
    border-top: 1px solid var(--color-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2rem;
    padding-bottom: 40px;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

/* 11. Sub-Page Styles */
.page-header {
    padding: 180px 0 100px;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-light);
}

.legal-content .container {
    max-width: 800px;
}

/* 12. Animations & Keyframes */
.animate-on-load {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s, transform 0.8s;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 13. Responsive Media Queries */
@media (max-width: 992px) {
    body {
        cursor: auto;
    }

    .cursor,
    .cursor-follower {
        display: none;
    }

    #main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 350px;
        height: 100vh;
        background-color: var(--color-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease-in-out;
    }

    #main-nav.is-active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 30px;
    }

    .header-cta {
        display: none;
    }

    #hamburger-btn {
        display: block;
        z-index: 1001;
    }

    .horizontal-scroll-section {
        min-height: auto;
        padding: var(--section-padding) 0;
    }

    .sticky-wrapper {
        position: relative;
        height: auto;
        width: 100%;
        overflow: visible;
    }

    .sticky-wrapper .section-title {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        padding: 0 1.5rem;
        text-align: center;
    }

    .horizontal-scroll-inner {
        display: grid;
        grid-template-columns: 1fr;
        height: auto;
        width: 100%;
        align-items: stretch;
        padding: 0 1.5rem;
        gap: 1.5rem;
        will-change: auto;
        transform: none !important;
    }

    .discipline-card {
        min-width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    #footer-brand {
        grid-column: 1 / -1;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .perspective-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .manifesto-text {
        font-size: 1.5rem;
    }

    .quote {
        font-size: 1.8rem;
    }
}