/* style.css */
:root {
    --bg-color: #f7f7f7;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --hover-bg: #f0f0f0;
    --font-primary: 'Inter', sans-serif;
    --transition: all 0.3s ease;
    --hero-image: url('hero-light.webp');
    --transparent-mask: rgba(255,255,255,0);
}

[data-theme="dark"] {
    --bg-color: #000000;
    --text-dark: #ffffff;
    --text-light: #777777;
    --white: #000000;
    --border-color: #1a1a1a;
    --hover-bg: #111111;
    --hero-image: url('hero-dark.webp');
    --transparent-mask: rgba(0,0,0,0);
}

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

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

body {
    -webkit-font-smoothing: antialiased;
    font-family: var(--font-primary);
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.5;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    letter-spacing: -0.5px;
}

/* Global Styles & Components */
.badge {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.link-underline {
    position: relative;
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-block;
}
.link-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-dark);
}

.btn-primary-outline {
    border: none;
    background: transparent;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
    font-family: var(--font-primary);
    cursor: pointer;
}
.btn-primary-outline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-dark);
}

.theme-btn {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}
.theme-btn:hover {
    background-color: var(--hover-bg);
}

.logo svg path {
    fill: var(--text-dark);
}

/* Navigation */
.navbar {
    padding: 24px 48px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-light);
}
.nav-links a:hover {
    color: var(--text-dark);
}

/* Hamburger — hidden on desktop, revealed on mobile */
.hamburger-btn {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    padding: 120px 48px 48px;
    background-color: var(--white);
    background-image: 
        linear-gradient(to right, var(--white) 45%, var(--transparent-mask) 65%),
        linear-gradient(to bottom, var(--white) 5%, var(--transparent-mask) 25%),
        var(--hero-image);
    background-size: 100% 100%, 100% 100%, auto 80%;
    background-position: center, center, 85% bottom;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease, background-image 0.3s ease;
}

.hero-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    z-index: 2;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 48px;
}
.v-text {
    transform: rotate(-90deg);
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--text-light);
    font-weight: 600;
}
.vertical-divider {
    width: 1px;
    height: 80px;
    background-color: var(--border-color);
}

.hero-title h1 {
    font-size: 8rem;
    font-weight: 400;
    line-height: 0.8;
    letter-spacing: -5px;
    margin-bottom: 24px;
}
.hero-title p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    line-height: 1.6;
}

.hero-scroll {
    font-size: 0.85rem;
    margin-top: 24px;
    color: var(--text-light);
    font-weight: 500;
}

/* Flex Stats Section */
.flex-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    padding: 120px 48px;
}
.flex-stat-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}
.flex-stat-card p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* Philosophy Section */
.philosophy-section {
    padding: 120px 48px;
    background-color: var(--white);
}
.philosophy-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: flex-start;
}
.philosophy-container h2 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 600;
    letter-spacing: -2px;
}
.philosophy-container blockquote {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-light);
    border-left: 2px solid var(--text-dark);
    padding-left: 32px;
    margin: 0;
    line-height: 1.8;
}

/* Showcase Section */
.showcase-section {
    padding: 120px 48px;
    background-color: var(--bg-color);
}
.section-title-center {
    text-align: center;
    margin-bottom: 80px;
}
.section-title-center h2 {
    font-size: 3rem;
    margin-top: 24px;
    font-weight: 600;
}
.showcase-grid {
    display: flex;
    flex-direction: column;
    gap: 120px;
    max-width: 1200px;
    margin: 0 auto;
}
.showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding-bottom: 80px;
    border-bottom: 1px solid var(--border-color);
}
.showcase-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.showcase-header h3 {
    color: var(--text-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
    font-weight: 600;
}
.showcase-header h2 {
    font-size: 3rem;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -1px;
}
.showcase-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
}
.showcase-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
}
.showcase-content strong {
    color: var(--text-dark);
    font-size: 0.95rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Footer Section */
footer {
    border-top: 1px solid var(--border-color);
    padding: 120px 48px;
    background-color: var(--bg-color);
}

/* Facets Grid Section */
.facets-section {
    padding: 120px 48px;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.facets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.facet-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.facet-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--text-dark);
}

[data-theme="dark"] .facet-card:hover {
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.03);
}

.facet-image-container {
    width: 100%;
    height: 380px;
    overflow: hidden;
    position: relative;
    background-color: #000;
}

.facet-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
}

.facet-card:hover .facet-image {
    transform: scale(1.05);
    filter: grayscale(0%) contrast(1.1) brightness(1.05);
}

.facet-content {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.facet-content h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
}

.facet-subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 8px;
}

.facet-content p:not(.facet-subtitle) {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* ── Responsive ────────────────────────────────── */
/* Tablet — stack grids, reduce type scale */
@media (max-width: 1024px) {
    .hero-title h1 {
        font-size: 5.5rem;
        letter-spacing: -3px;
    }

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

    .philosophy-container h2 {
        font-size: 3rem;
    }

    .showcase-item {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .showcase-header h2 {
        font-size: 2.2rem;
    }

    .flex-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* Mobile — single column, tight padding, hamburger-ready */
@media (max-width: 768px) {
    .navbar {
        padding: 20px 24px;
    }

    .nav-links {
        display: none;
    }

    .nav-links.nav-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 24px;
        right: 24px;
        background: var(--white);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 24px;
        gap: 16px;
        z-index: 99;
        box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    }

    .hamburger-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 8px;
        border-radius: 50%;
        color: var(--text-dark);
    }

    .hamburger-btn:hover {
        background: var(--hover-bg);
    }

    .hero {
        min-height: 70vh;
        padding: 100px 24px 48px;
        background-image:
            linear-gradient(to right, var(--white) 70%, var(--transparent-mask) 100%),
            linear-gradient(to bottom, var(--white) 5%, var(--transparent-mask) 30%),
            var(--hero-image);
        background-size: 100% 100%, 100% 100%, auto 60%;
        background-position: center, center, 90% bottom;
    }

    .hero-title h1 {
        font-size: 3.5rem;
        letter-spacing: -2px;
        line-height: 0.85;
    }

    .hero-title p {
        font-size: 1rem;
        max-width: 100%;
    }

    .hero-stats {
        gap: 24px;
    }

    .flex-stats {
        grid-template-columns: 1fr;
        padding: 64px 24px;
        gap: 32px;
    }

    .philosophy-section,
    .facets-section,
    .showcase-section,
    footer {
        padding: 64px 24px;
    }

    .philosophy-container h2 {
        font-size: 2.5rem;
    }

    .philosophy-container blockquote {
        font-size: 1.05rem;
        padding-left: 24px;
    }

    .section-title-center h2 {
        font-size: 2rem;
    }

    .facet-image-container {
        height: 240px;
    }

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

    .showcase-grid {
        gap: 64px;
    }

    .showcase-header h2 {
        font-size: 1.8rem;
    }

    .showcase-item {
        padding-bottom: 48px;
    }

    .footer-cta h2 {
        font-size: 2rem !important;
    }
}

/* Small phones — tighten everything */
@media (max-width: 480px) {
    .hero-title h1 {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }

    .hero {
        padding: 80px 20px 40px;
    }

    .philosophy-container h2 {
        font-size: 2rem;
    }

    .section-title-center h2 {
        font-size: 1.7rem;
    }

    .facet-content {
        padding: 24px;
    }
}
