/* SF Pro Variable Font */
@font-face {
    font-family: 'SF Pro';
    src: url('./SF-Pro.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-stretch: 50% 200%;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #ffffff;
    --text: #000000;
    --accent: #ff6c54;
    --secondary-bg: #f5f5f7;
    --muted: rgba(0, 0, 0, 0.5);
    --border: #e5e5e7;
    --font-family: 'SF Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    --grid-gap: 1px;
    /* Minimalist hairline grid */
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg);
}

body {
    font-family: var(--font-family);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Hairline Grid Helper */
.grid-container {
    display: grid;
    background-color: var(--border);
    gap: var(--grid-gap);
    border: var(--grid-gap) solid var(--border);
}

.grid-cell {
    background-color: var(--bg);
    padding: 40px;
}

/* Layout */
.container {
    max-width: 1600px;
    margin: 0 auto;
}

section {
    padding: 0;
    /* Let grid do the work */
}

/* Nav */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.logo img,
.footer-cell img {
    height: 32px;
    width: auto;
    display: block;
    padding-top: 6px;
}

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

.nav-toggle {
    display: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hero - Modular Grid */
.hero-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    min-height: 100vh;
    padding-top: 80px;
    background-color: var(--border);
    gap: var(--grid-gap);
}

.hero-main {
    grid-column: span 8;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 80px;
}

.hero-side {
    grid-column: span 4;
    background: var(--accent);
    color: white;
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    font-size: clamp(60px, 12vw, 160px);
    line-height: 0.85;
    font-weight: 800;
    letter-spacing: -0.06em;
    margin-bottom: 40px;
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    font-size: 24px;
    max-width: 500px;
    font-weight: 400;
    color: var(--muted);
}

/* Philosophy Section */
.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--border);
    gap: var(--grid-gap);
}

.phil-item {
    background: var(--bg);
    padding: 100px 80px;
}

.phil-item h2 {
    font-size: 80px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 20px;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(400px, auto);
    background-color: var(--border);
    gap: var(--grid-gap);
}

.grid-item {
    background: var(--bg);
    padding: 60px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.grid-cell,
.hero-main,
.hero-side,
.phil-item,
.grid-item,
.contact-left,
.contact-right,
.footer-cell {
    transition: background-color 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.grid-item:hover,
.phil-item:hover {
    background-color: var(--secondary-bg);
}

.hero-side:hover {
    background-color: #ff5a40;
    /* Slightly darker coral */
}

/* Custom Scrollbar for premium feel */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--muted);
}

.grid-item .num {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 20px;
}

.grid-item h3 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}

/* Artboard & Portfolio Grid */
.artboard-hero {
    background: var(--bg);
    padding: 120px 80px 60px;
    border-bottom: 1px solid var(--border);
}

.artboard-hero h1 {
    font-size: clamp(60px, 10vw, 120px);
    font-weight: 800;
    letter-spacing: -0.06em;
    margin-bottom: 20px;
}

.portfolio-section {
    background: var(--border);
}

.section-header {
    background: var(--bg);
    padding: 60px 80px 20px;
}

.section-header h2 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    background-color: var(--border);
    gap: var(--grid-gap);
    border-top: var(--grid-gap) solid var(--border);
}

.portfolio-item {
    background: var(--bg);
    aspect-ratio: 16 / 9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.span-8 {
    grid-column: span 8;
}

.span-4 {
    grid-column: span 4;
}

.span-12 {
    grid-column: span 12;
}

.span-6 {
    grid-column: span 6;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    background-color: var(--border);
    gap: var(--grid-gap);
}

.contact-left {
    grid-column: span 6;
    background: var(--accent);
    color: white;
    padding: 100px 80px;
}

.contact-right {
    grid-column: span 6;
    background: var(--bg);
    padding: 100px 80px;
}

.contact-left h2 {
    font-size: 80px;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border);
    padding: 20px 0;
    font-family: var(--font-family);
    font-size: 18px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.submit-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 25px 60px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    align-self: flex-start;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--text);
}

/* Footer Grid */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background-color: var(--border);
    gap: var(--grid-gap);
    border-top: var(--grid-gap) solid var(--border);
}

.footer-cell {
    background: var(--bg);
    padding: 60px 40px;
    color: var(--muted);
    font-size: 14px;
}

.footer-cell h4 {
    color: var(--text);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-cell a {
    color: inherit;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-cell a:hover {
    color: var(--accent);
}

/* Animation Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .nav-inner {
        padding: 0 24px;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        width: 30px;
        height: 30px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
    }

    .nav-toggle span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--text);
        transition: var(--transition);
    }

    .nav-toggle.open span:nth-child(1) {
        transform: translateY(4px) rotate(45deg);
    }

    .nav-toggle.open span:nth-child(2) {
        transform: translateY(-4px) rotate(-45deg);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        padding: 40px;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 32px;
        font-weight: 700;
    }

    .mobile-footer {
        display: block !important;
        margin-top: 40px;
        text-align: center;
        opacity: 0.6;
    }

    .hero-grid,
    .philosophy-grid,
    .contact-grid,
    .footer-grid,
    .bento-grid,
    .portfolio-grid {
        grid-template-columns: 1fr !important;
    }

    .hero-main,
    .hero-side,
    .phil-item,
    .contact-left,
    .contact-right,
    .grid-item {
        grid-column: span 1 !important;
        padding: 60px 24px !important;
    }

    .hero-main {
        min-height: 60vh;
        justify-content: center;
        padding-top: 120px !important;
    }

    .hero-title {
        font-size: 48px !important;
    }

    .hero-subtitle {
        font-size: 18px !important;
        max-width: 100%;
    }

    .phil-item h2,
    .grid-item h3 {
        font-size: 40px !important;
    }

    .contact-left h2 {
        font-size: 48px !important;
    }

    .footer-grid {
        text-align: center;
    }

    .footer-cell {
        padding: 40px 24px;
    }

    .footer-logo {
        margin: 0 auto 20px !important;
    }

    .artboard-hero {
        padding: 100px 24px 40px;
    }

    .artboard-hero h1 {
        font-size: 48px !important;
    }

    .section-header {
        padding: 40px 24px 20px;
    }
}