/* 
 * STORYMAKER - FPP Inspired "Hairline Agency" aesthetic
 */

:root {
    /* Color Palette - Steel & Smoke */
    --color-bg-light: #FFFFFF;
    --color-bg-smoke: #F2F2F2;
    --color-bg-dark: #454545;
    --color-text-dark: #000000;
    --color-text-light: #FFFFFF;
    --color-text-muted: rgba(69, 69, 69, 0.6);
    --color-accent: #B3755C;
    /* Keeping the terracotta for specific calls */

    /* Typography - Hairline Precision */
    --font-primary: 'Outfit', 'Inter', -apple-system, blinkmacsystemfont, sans-serif;
    --font-secondary: 'Playfair Display', serif;
    /* For editorial italics */

    /* Spacing & Layout */
    --container-width: 1400px;
    --section-spacing: 150px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Hairline Typography */
h1,
h2,
h3 {
    font-weight: 200;
    /* Hairline weight */
    letter-spacing: -0.03em;
    line-height: 1.1;
}

h1 {
    font-size: clamp(3.5rem, 10vw, 7rem);
}

h2 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h3 {
    font-size: clamp(1.2rem, 3vw, 2.5rem);
    font-weight: 300;
}

.italic-serif {
    font-family: var(--font-secondary);
    font-style: italic;
    font-weight: 400;
}

.label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
}

/* Layout Modules */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.section-padding {
    padding: var(--section-spacing) 0;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

/* Modular Color Blocks */
.bg-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
}

.bg-smoke {
    background-color: var(--color-bg-smoke);
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 40px 0;
    transition: all 0.5s ease;
}

header.scrolled {
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.logo img {
    height: 50px;
}

.menu-toggle {
    cursor: pointer;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-toggle .burger {
    width: 30px;
    height: 1px;
    background: currentColor;
    position: relative;
}

.menu-toggle .burger::before {
    content: '';
    position: absolute;
    top: -8px;
    width: 100%;
    height: 1px;
    background: currentColor;
}

/* Navigation Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg-dark);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-overlay.active {
    transform: translateX(0);
}

.nav-links {
    list-style: none;
    text-align: center;
}

.nav-links li {
    margin: 40px 0;
    overflow: hidden;
}

.nav-links a {
    font-size: clamp(2rem, 8vw, 5rem);
    color: white;
    text-decoration: none;
    font-weight: 200;
    transition: all 0.4s ease;
    opacity: 0.4;
}

.nav-links a:hover {
    opacity: 1;
    transform: skewX(-5deg);
}

/* Buttons & CTAs */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 12px 25px;
    border: 1px solid currentColor;
    border-radius: 0;
    text-decoration: none;
    color: inherit;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: all 0.4s ease;
}

.btn::after {
    content: '→';
    font-size: 1.2rem;
    transition: transform 0.4s ease;
}

.btn:hover::after {
    transform: translateX(10px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('Hermes 2025 Q4/Big Window.png') center/cover no-repeat;
    z-index: -1;
    filter: brightness(0.7);
}

/* Project Grids - Asymmetrical */
.grid-masonry {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
}

.project-item {
    grid-column: span 6;
    margin-bottom: 100px;
}

.project-item.wide {
    grid-column: span 8;
}

.project-item.narrow {
    grid-column: span 4;
}

.project-item.shifted {
    margin-top: 150px;
}

.work-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 125%;
    /* 4:5 aspect ratio */
    overflow: hidden;
    background: var(--color-bg-smoke);
}

.work-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-item:hover .work-image {
    transform: scale(1.05);
}

.project-meta {
    margin-top: 30px;
}

.project-meta .label {
    opacity: 0.5;
    margin-bottom: 10px;
    display: block;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Lightbox */
.lightbox {
    background: rgba(0, 0, 0, 0.95);
}

/* Footer */
footer {
    padding: 120px 0 60px;
    background: #fdfdfd;
    border-top: 1px solid #eee;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 30px;
    display: block;
}

.footer-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 25px;
    opacity: 0.4;
    font-weight: 600;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--color-text-dark);
    font-size: 1rem;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.6;
}

/* Social Grid (Legacy) */
.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.social-item {
    display: block;
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
}

.social-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.social-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

.social-item:hover .social-overlay {
    opacity: 1;
}

.social-item:hover img {
    transform: scale(1.1);
}

/* Featured Latest IG Post */
.ig-featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.ig-featured-image-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--color-bg-smoke);
}

.ig-featured-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ig-featured-image-wrap:hover .ig-featured-img {
    transform: scale(1.05);
}

.ig-featured-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    font-size: 1.3rem;
    letter-spacing: 0.08em;
}

.ig-featured-image-wrap:hover .ig-featured-overlay {
    opacity: 1;
}

.ig-featured-meta {
    display: flex;
    flex-direction: column;
    gap: 40px;
    min-height: 400px;
}

.ig-featured-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.ig-logo-sm {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
}

.ig-featured-caption {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    font-weight: 200;
    line-height: 1.7;
    letter-spacing: -0.01em;
}

.ig-featured-tags {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    opacity: 0.85;
    line-height: 2;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid #f0f0f0;
}

/* Mobile */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .ig-featured-post {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .ig-featured-meta {
        min-height: auto;
    }

    .grid-masonry {
        grid-template-columns: 1fr;
    }

    .project-item {
        grid-column: span 1 !important;
        margin-top: 0 !important;
    }

    header {
        padding: 20px 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}