/* ========================================
   Design System: High-Agency Portfolio
   ======================================== */

:root {
    /* Color Palette - Warm Neutral with Deep Rose Accent */
    /* Banned: AI Blue/Purple (#4a7c9b), Pure Black (#000000), Neon Glows */
    
    --color-canvas: #faf9f7;
    --color-surface: #ffffff;
    --color-surface-elevated: #f5f4f2;
    --color-charcoal: #1a1a1a;
    --color-steel: #6b6b6b;
    --color-stone: #9a9a9a;
    --color-whisper: rgba(0, 0, 0, 0.06);
    
    /* Single Accent: Deep Rose (not AI Blue/Purple) */
    --color-accent: #c45c5c;
    --color-accent-light: #d97a7a;
    --color-accent-dark: #a34444;
    --color-accent-subtle: rgba(196, 92, 92, 0.08);
    
    /* Typography - Geist (Inter is BANNED) */
    --font-primary: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    --space-4xl: 8rem;
    
    /* Container */
    --container-max: 1400px;
    --container-padding: 1.5rem;
    
    /* Transitions - Spring Physics */
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    
    --duration-fast: 0.2s;
    --duration-base: 0.4s;
    --duration-slow: 0.6s;
    
    /* Shadows - Diffused, Not Glow */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1);
    
    /* Radii */
    --radius-sm: 0.75rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-2xl: 2.5rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--color-canvas);
    color: var(--color-charcoal);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Container
   ======================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: all var(--duration-base) var(--ease-smooth);
}

.nav.scrolled {
    background: rgba(250, 249, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-whisper);
    padding: 0.875rem 0;
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-charcoal);
    letter-spacing: -0.03em;
    transition: transform var(--duration-fast) var(--ease-spring);
}

.nav-logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-steel);
    position: relative;
    transition: color var(--duration-fast) var(--ease-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-accent);
    transition: width var(--duration-base) var(--ease-spring);
}

.nav-link:hover {
    color: var(--color-charcoal);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-charcoal);
    transition: all var(--duration-fast) var(--ease-smooth);
}

/* ========================================
   Hero Section - Asymmetric Split Layout
   ======================================== */
.hero {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-tagline-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.tagline-divider {
    color: var(--color-stone);
    font-weight: 300;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--color-charcoal);
    margin-bottom: 0.5rem;
}

.hero-role {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 400;
    color: var(--color-steel);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-steel);
    max-width: 480px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* Hero Visual - Carousel */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel {
    position: relative;
    width: 380px;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--color-surface-elevated);
    box-shadow: var(--shadow-xl);
    animation: carousel-float 6s ease-in-out infinite;
}

@keyframes carousel-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s var(--ease-smooth), transform 0.5s var(--ease-smooth);
    transform: scale(1.04);
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-slide:first-child img {
    object-position: center 25%;
}

/* Carousel slide placeholders */
.slide-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-surface-elevated) 0%, var(--color-surface) 100%);
    border: 1px solid rgba(74, 124, 155, 0.2);
}

.slide-placeholder svg {
    width: 64px;
    height: 64px;
    color: var(--color-accent);
    opacity: 0.7;
}

.slide-headshot {
    background: linear-gradient(135deg, rgba(74, 124, 155, 0.15) 0%, rgba(45, 90, 114, 0.1) 100%);
}

.slide-india {
    background: linear-gradient(135deg, rgba(139, 180, 199, 0.15) 0%, rgba(74, 124, 155, 0.1) 100%);
}

.slide-rural {
    background: linear-gradient(135deg, rgba(61, 107, 130, 0.15) 0%, rgba(139, 180, 199, 0.1) 100%);
}

.slide-lyft {
    background: linear-gradient(135deg, rgba(74, 124, 155, 0.15) 0%, rgba(61, 107, 130, 0.1) 100%);
}

.slide-fieldwork {
    background: linear-gradient(135deg, rgba(45, 90, 114, 0.15) 0%, rgba(139, 180, 199, 0.1) 100%);
}

.slide-brazil {
    background: linear-gradient(135deg, rgba(139, 180, 199, 0.15) 0%, rgba(45, 90, 114, 0.1) 100%);
}

.slide-street {
    background: linear-gradient(135deg, rgba(61, 107, 130, 0.15) 0%, rgba(74, 124, 155, 0.1) 100%);
}

/* Prev / Next Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 8px rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-charcoal);
    opacity: 0;
    transition: opacity var(--duration-fast) var(--ease-smooth),
                transform var(--duration-fast) var(--ease-spring);
}

.carousel-btn svg {
    width: 18px;
    height: 18px;
}

.carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--color-surface);
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-md);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 0.75rem;
}

.carousel-next {
    right: 0.75rem;
}

/* Dot Indicators */
.carousel-dots {
    position: absolute;
    bottom: 0.875rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 0.5rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0;
    transition: all var(--duration-fast) var(--ease-spring);
}

.carousel-dot.active {
    background: var(--color-surface);
    width: 20px;
    border-radius: 4px;
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
}


/* Noise Overlay */
.hero-noise {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: 100px;
    transition: all var(--duration-base) var(--ease-spring);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: translateY(1px) scale(0.98);
}

.btn-primary {
    background: var(--color-accent);
    color: var(--color-surface);
    box-shadow: 0 4px 14px rgba(196, 92, 92, 0.25);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    animation: btn-shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes btn-shimmer {
    0%, 70%, 100% { left: -100%; }
    40% { left: 150%; }
}

.btn-primary:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 92, 92, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--color-charcoal);
    border: 1px solid var(--color-whisper);
}

.btn-secondary:hover {
    border-color: var(--color-steel);
    background: var(--color-surface);
}

.btn-large {
    padding: 1rem 2.25rem;
    font-size: 0.9375rem;
}

/* ========================================
   Section Styles
   ======================================== */
.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-accent);
    margin-bottom: 0.875rem;
    animation: label-breathe 4s ease-in-out infinite;
}

@keyframes label-breathe {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--color-charcoal);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--color-steel);
    max-width: 480px;
    line-height: 1.6;
}

.section-header-left {
    margin-bottom: 3rem;
}

.section-header-left .section-title {
    margin-bottom: 0.5rem;
}

/* ========================================
   Work Section - 2 Per Row Grid
   ======================================== */
.work {
    padding: var(--space-4xl) 0;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.work-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-whisper);
    overflow: hidden;
    transition: all var(--duration-base) var(--ease-spring);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.work-card:hover {
    transform: translateY(-6px);
    border-color: rgba(196, 92, 92, 0.15);
    box-shadow: var(--shadow-xl);
}

.work-card:active {
    transform: translateY(-2px) scale(0.99);
}

.work-card-thumb {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-surface-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--duration-slow) var(--ease-smooth);
}

.work-card-thumb svg {
    width: 48px;
    height: 48px;
    color: var(--color-accent);
    opacity: 0.8;
    transition: transform var(--duration-slow) var(--ease-smooth);
}

.work-card:hover .work-card-thumb svg {
    transform: scale(1.1);
}

/* Work card thumbnail variations */
.thumb-survey {
    background: linear-gradient(135deg, rgba(74, 124, 155, 0.2) 0%, rgba(45, 90, 114, 0.1) 100%);
}

.thumb-futures {
    background: linear-gradient(135deg, rgba(74, 124, 155, 0.15) 0%, rgba(139, 180, 199, 0.1) 100%);
}

.thumb-mobile {
    background: linear-gradient(135deg, rgba(45, 90, 114, 0.2) 0%, rgba(74, 124, 155, 0.1) 100%);
}

.thumb-usability {
    background: linear-gradient(135deg, rgba(139, 180, 199, 0.15) 0%, rgba(74, 124, 155, 0.1) 100%);
}

.thumb-headlines {
    background: linear-gradient(135deg, rgba(74, 124, 155, 0.2) 0%, rgba(61, 107, 130, 0.1) 100%);
}

.thumb-accessibility {
    background: linear-gradient(135deg, rgba(61, 107, 130, 0.2) 0%, rgba(139, 180, 199, 0.1) 100%);
}

.work-card-body {
    padding: 1.5rem 1.75rem 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.work-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}

.tag {
    font-size: 0.6875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.375rem 0.75rem;
    background: var(--color-accent-subtle);
    color: var(--color-accent);
    border-radius: 100px;
}

.work-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.work-card-desc {
    font-size: 0.9375rem;
    color: var(--color-steel);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

.work-card-action {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-accent);
    transition: all var(--duration-fast) var(--ease-smooth);
    margin-top: auto;
}

.work-card-action svg {
    width: 16px;
    height: 16px;
    transition: transform var(--duration-fast) var(--ease-spring);
}

.work-card:hover .work-card-action {
    color: var(--color-accent-dark);
}

.work-card:hover .work-card-action svg {
    transform: translate(3px, -3px);
}

/* ========================================
   Articles Section
   ======================================== */
.articles {
    padding: var(--space-4xl) 0;
    background: var(--color-canvas);
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Skeleton Loading */
.articles-skeleton {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skeleton-item {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-whisper);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skeleton-line {
    height: 12px;
    background: linear-gradient(
        90deg,
        var(--color-surface-elevated) 0%,
        var(--color-canvas) 50%,
        var(--color-surface-elevated) 100%
    );
    background-size: 200% 100%;
    border-radius: 4px;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-line.short { width: 80px; height: 10px; }
.skeleton-line.medium { width: 60%; height: 14px; }
.skeleton-line.long { width: 100%; height: 12px; }

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.text-link {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--duration-fast) var(--ease-smooth);
}

.text-link:hover {
    color: var(--color-accent-dark);
}

/* ========================================
   Speaking Section
   ======================================== */
.speaking {
    padding: var(--space-4xl) 0;
    background: var(--color-surface);
}

.speaking-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.talk-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: var(--color-canvas);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-whisper);
    transition: all var(--duration-base) var(--ease-spring);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.talk-item:hover {
    background: var(--color-surface);
    border-color: rgba(196, 92, 92, 0.15);
    transform: translateX(8px);
}

.talk-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 100px;
}

.talk-type {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
}

.talk-duration {
    font-size: 0.8125rem;
    color: var(--color-stone);
}

.talk-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.talk-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-charcoal);
    line-height: 1.3;
}

.talk-event {
    font-size: 0.875rem;
    color: var(--color-steel);
}

.talk-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-stone);
    transition: all var(--duration-fast) var(--ease-spring);
}

.talk-arrow svg {
    width: 20px;
    height: 20px;
}

.talk-item:hover .talk-arrow {
    color: var(--color-accent);
    transform: translate(4px, -4px);
}

/* ========================================
   Personal Section - Cooking Gallery Grid
   ======================================== */
.personal {
    padding: var(--space-4xl) 0;
    background: var(--color-canvas);
}

.personal-header {
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.personal-header .section-subtitle {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* Masonry-style cooking grid with varied aspect ratios */
.cooking-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
    gap: 0.875rem;
    max-width: 900px;
    margin: 0 auto;
}

.cooking-photo {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--color-surface-elevated);
    transition: transform var(--duration-base) var(--ease-spring);
}

/* Varied spans for asymmetry */
.cooking-photo:nth-child(1) { grid-row: span 2; }
.cooking-photo:nth-child(4) { grid-column: span 2; }
.cooking-photo:nth-child(7) { grid-row: span 2; }
.cooking-photo:nth-child(10) { grid-column: span 2; }

.cooking-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-smooth);
}

.cooking-photo:hover {
    transform: scale(1.02);
}

.cooking-photo:hover img {
    transform: scale(1.06);
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: var(--space-4xl) 0;
    background: var(--color-surface);
}

@media (min-width: 768px) {
    .cooking-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 200px;
    }
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.contact-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: var(--color-charcoal);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.contact-description {
    font-size: 1.125rem;
    color: var(--color-steel);
    line-height: 1.7;
    max-width: 440px;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
}

.contact-cta {
    /* no bottom margin needed in grid */
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-canvas);
    border-radius: 50%;
    color: var(--color-steel);
    transition: all var(--duration-base) var(--ease-spring);
    border: 1px solid var(--color-whisper);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: var(--color-accent);
    color: var(--color-surface);
    border-color: var(--color-accent);
    transform: translateY(-4px) scale(1.05);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 3rem 0;
    background: var(--color-charcoal);
    color: var(--color-surface);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-text {
    font-size: 0.9375rem;
    font-weight: 500;
}

.footer-copyright {
    font-size: 0.8125rem;
    color: var(--color-steel);
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    font-size: 0.8125rem;
    color: var(--color-stone);
    transition: color var(--duration-fast) var(--ease-smooth);
}

.footer-nav a:hover {
    color: var(--color-surface);
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.footer-social a {
    color: var(--color-stone);
    transition: color var(--duration-fast) var(--ease-smooth);
}

.footer-social a:hover {
    color: var(--color-surface);
}

.footer-social svg {
    width: 18px;
    height: 18px;
}

/* ========================================
   Contact Form Modal
   ======================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--duration-base) var(--ease-smooth),
                visibility var(--duration-base) var(--ease-smooth);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-panel {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-whisper);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    transform: translateY(20px) scale(0.97);
    transition: transform var(--duration-base) var(--ease-spring);
}

.modal-overlay.active .modal-panel {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-charcoal);
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-canvas);
    border: 1px solid var(--color-whisper);
    border-radius: 50%;
    cursor: pointer;
    color: var(--color-steel);
    transition: all var(--duration-fast) var(--ease-smooth);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-close:hover {
    background: var(--color-surface-elevated);
    color: var(--color-charcoal);
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-charcoal);
}

.form-input {
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    color: var(--color-charcoal);
    background: var(--color-canvas);
    border: 1px solid var(--color-whisper);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    transition: border-color var(--duration-fast) var(--ease-smooth),
                box-shadow var(--duration-fast) var(--ease-smooth);
    outline: none;
}

.form-input::placeholder {
    color: var(--color-stone);
}

.form-input:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(196, 92, 92, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    width: 100%;
}

.form-input-error {
    border-color: var(--color-accent) !important;
    box-shadow: 0 0 0 3px rgba(196, 92, 92, 0.12) !important;
}

.form-error {
    font-size: 0.8125rem;
    color: var(--color-accent);
    margin-top: 0.25rem;
}

/* Email trigger button (in social links) */
#email-trigger {
    cursor: pointer;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-visual {
        order: 2;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .carousel {
        width: 340px;
    }
    
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --space-4xl: 5rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface);
        padding: 1.5rem;
        flex-direction: column;
        gap: 1rem;
        border-bottom: 1px solid var(--color-whisper);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        padding-top: 6rem;
    }
    
    .carousel {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    
    .work-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .talk-item {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        text-align: center;
    }
    
    .talk-meta {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
    
    .talk-arrow {
        display: none;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .contact-description {
        max-width: 100%;
    }
    
    .contact-actions {
        align-items: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
}

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
}
