/* ===================================
   CSS Variables & Reset
   =================================== */
:root {
    /* Colors - Minimal palette */
    --white: #ffffff;
    --off-white: #f8f8f6;
    --black: #0a0a0a;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-400: #a3a3a3;
    --gray-500: #737373;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    
    /* Typography */
    --font-heading: 'Instrument Serif', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: clamp(4rem, 10vw, 8rem);
    --container-padding: clamp(1.5rem, 4vw, 4rem);
    
    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s var(--ease-out-expo);
    --transition-medium: 0.4s var(--ease-out-expo);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background: var(--off-white);
    overflow-x: hidden;
}

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

.italic {
    font-family: var(--font-body);
    font-style: italic;
    font-weight: 400;
}

/* ===================================
   Navigation
   =================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem var(--container-padding);
    background: var(--off-white);
    border-bottom: 1px solid var(--gray-200);
}

.nav-logo {
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition-fast);
}

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

.nav-cta {
    padding: 0.6rem 1.25rem;
    background: var(--black);
    color: var(--white) !important;
    border-radius: 100px;
}

.nav-cta:hover {
    opacity: 0.8;
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    padding: 8rem var(--container-padding) 2rem;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--gray-200);
}

.hero-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 3rem;
}

.meta-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.meta-year,
.meta-location {
    font-size: 0.8rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    position: relative;
    z-index: 3;
}

.hero-left {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 320px;
}

.hero-tagline {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.7;
    color: var(--gray-700);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    -webkit-text-stroke: 4px var(--off-white);
    paint-order: stroke fill;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cta-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    color: var(--white);
    border-radius: 50%;
    transition: transform var(--transition-fast);
}

.hero-cta:hover .cta-icon {
    transform: scale(1.1);
}

.hero-services {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-600);
}

.hero-image-wrapper {
    position: absolute;
    right: calc(50vw - clamp(80px, 15vw, 210px));
    top: 55%;
    transform: translateY(-50%);
    z-index: 2;
    overflow: hidden;
    clip-path: inset(0 round 0 24px 0 0);
}

.hero-image {
    width: clamp(160px, 30vw, 420px);
    aspect-ratio: 3/4;
}

.hero-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 24px 0 0;
}

.hero-title-section {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 9rem;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-body);
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 600;
    line-height: 0.85;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--black);
    text-align: right;
}

.hero-title-white {
    position: absolute;
    color: var(--white);
    pointer-events: none;
    white-space: nowrap;
}

.title-line {
    display: block;
}

.small-c {
    font-size: 0.5em;
    vertical-align: top;
    line-height: 1;
    position: relative;
    top: 0.15em;
}

.italic-letter {
    font-style: italic;
    margin-right: 0.02em;
}

.decorative-star {
    margin-bottom: 1rem;
    z-index: 4;
    line-height: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: var(--container-padding);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--gray-300);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--black);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        top: -100%;
    }
    50% {
        top: 0;
    }
    100% {
        top: 100%;
    }
}

.scroll-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray-500);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}


/* ===================================
   About Strip
   =================================== */
.about-strip {
    display: flex;
    justify-content: space-between;
    padding: 1rem var(--container-padding);
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
}

/* ===================================
   Section Headers - Editorial
   =================================== */
.section-header-editorial {
    padding: var(--section-padding) var(--container-padding);
    max-width: 900px;
}

.section-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    color: var(--gray-500);
}

.section-title-large {
    font-family: var(--font-body);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.section-title-large span {
    display: inline-block;
    margin-right: 0.3em;
}

.section-title-large .italic {
    font-size: 1.1em;
}

.section-description {
    font-size: 1rem;
    color: var(--gray-600);
    max-width: 500px;
    line-height: 1.7;
}

/* ===================================
   Projects Section
   =================================== */
.projects {
    border-bottom: 1px solid var(--gray-200);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 0 var(--container-padding) var(--section-padding);
}

.project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-medium);
}

.project-card:hover {
    border-color: var(--gray-300);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.project-card-image {
    aspect-ratio: 4/3;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 3rem;
    font-style: italic;
    font-weight: 300;
    color: var(--gray-300);
    transition: background 0.5s ease;
}

.project-card:hover .project-card-image:not(.project-card-showcase) {
    background: var(--gray-200);
}

/* ===================================
   Project Card Showcase Mockups
   =================================== */
.project-card-showcase {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(245, 245, 245, 0.9), rgba(230, 230, 235, 0.85));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: background 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
}

.project-card:hover .project-card-showcase {
    background: linear-gradient(135deg, rgba(235, 235, 240, 0.95), rgba(220, 220, 228, 0.9));
    border-color: rgba(255, 255, 255, 0.8);
}

.project-card-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.7) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(255, 255, 255, 0.4) 0%, transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, transparent 40%);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.project-card:hover .project-card-showcase::before {
    opacity: 0.6;
}

.project-card-showcase::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
    pointer-events: none;
    transition: box-shadow 0.5s ease;
}

.project-card:hover .project-card-showcase::after {
    box-shadow: inset 0 2px 2px rgba(255, 255, 255, 0.9);
}

/* =======================================
   Project Card Hero Images
   ======================================= */
.card-hero-img {
    display: block;
    max-width: 92%;
    max-height: 88%;
    width: auto;
    height: auto;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    transition: transform 0.5s ease;
}

/* Dashboard image fills wider */
.card-hero-img.hero-dashboard {
    max-width: 95%;
    max-height: 92%;
    border-radius: 6px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Phone mockup images */
.card-hero-img.hero-phone {
    max-width: 50%;
    max-height: 92%;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.project-card:hover .card-hero-img {
    transform: translate(-50%, -50%) scale(1.03);
}

/* Dual phone mockup side-by-side */
.card-hero-duo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: flex-end;
    gap: 16px;
    height: 94%;
    width: 92%;
    justify-content: center;
    transition: transform 0.4s ease;
}

.project-card:hover .card-hero-duo {
    transform: translate(-50%, -50%) scale(1.03);
}

.card-hero-duo-img {
    height: 100%;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 23px;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
}

.project-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-category {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.project-title {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.project-description {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tags span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--gray-500);
    padding: 0.35rem 0.6rem;
    background: var(--gray-100);
}

.project-arrow {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--gray-200);
    opacity: 0;
    transform: translate(-8px, 8px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.project-card:hover .project-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* ===================================
   Illustrations Section - Carousel
   =================================== */
.illustrations-section {
    padding-bottom: var(--section-padding);
    border-bottom: 1px solid var(--gray-200);
    overflow: hidden;
}

.illustrations-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: grab;
}

.illustrations-carousel:active {
    cursor: grabbing;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    padding: 2rem var(--container-padding);
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.illustration-card {
    flex-shrink: 0;
    width: clamp(280px, 25vw, 380px);
    perspective: 1000px;
    cursor: pointer;
}

.illustration-inner {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.15),
        0 1px 3px rgba(0, 0, 0, 0.08),
        /* Frame depth shadow */
        inset 0 0 0 3px var(--black),
        inset 4px 4px 8px rgba(0, 0, 0, 0.1),
        inset -2px -2px 6px rgba(255, 255, 255, 0.5);
    /* Frame effect: black border with white matting */
    background: linear-gradient(145deg, #ffffff 0%, #f5f5f5 50%, #ebebeb 100%);
    padding: 14px;
    border: 4px solid var(--black);
}

.illustration-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    /* Inner shadow on matting for depth */
    box-shadow: 
        inset 2px 2px 4px rgba(0, 0, 0, 0.08),
        inset -1px -1px 3px rgba(255, 255, 255, 0.9);
    z-index: 1;
}

.illustration-inner:hover {
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.18),
        0 10px 20px rgba(0, 0, 0, 0.1);
}

.illustration-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s var(--ease-out-expo);
    display: block;
    /* Inner depth where mat meets artwork */
    box-shadow: 
        inset 3px 3px 6px rgba(0, 0, 0, 0.25),
        inset 1px 1px 2px rgba(0, 0, 0, 0.15),
        inset -1px -1px 3px rgba(255, 255, 255, 0.1);
}

.illustration-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.05) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.illustration-card:hover .illustration-shine {
    opacity: 1;
}

.carousel-hint {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-400);
    margin-top: 1.5rem;
    padding-bottom: 1rem;
}

/* Show the correct hint based on input device */
.carousel-hint-touch {
    display: none;
}

@media (hover: none) and (pointer: coarse) {
    .carousel-hint-mouse {
        display: none;
    }
    .carousel-hint-touch {
        display: block;
    }
}

/* Legacy support for editorial grid if needed elsewhere */
.illustrations-editorial {
    padding-bottom: var(--section-padding);
    border-bottom: 1px solid var(--gray-200);
}

.illustrations-grid-editorial {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--gray-200);
    margin: 0 var(--container-padding);
}

.illustration-item {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
    background: var(--off-white);
}

.illustration-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

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

/* Carousel responsive */
@media (max-width: 768px) {
    .illustration-card {
        width: clamp(240px, 70vw, 300px);
    }

    .illustration-inner {
        padding: 8px;
    }

    /* iOS Safari: height:100% doesn't resolve reliably from aspect-ratio alone.
       Absolutely position the img so it always fills the content area. */
    .illustration-card img {
        position: absolute;
        top: 8px;
        left: 8px;
        right: 8px;
        bottom: 8px;
        width: calc(100% - 16px);
        height: calc(100% - 16px);
        object-fit: cover;
        object-position: center;
    }
    
    .carousel-track {
        gap: 1rem;
    }
}

/* ===================================
   About Section
   =================================== */
.about-editorial {
    padding: var(--section-padding) var(--container-padding);
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--gray-200);
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
}

.about-content {
    margin-top: 2rem;
}

.about-title {
    font-family: var(--font-body);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 2.5rem;
    max-width: 700px;
}

.about-body {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text {
    font-size: 1.05rem;
    color: var(--gray-600);
    line-height: 1.85;
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.about-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.about-skills span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
}

.about-stats-minimal {
    display: flex;
    gap: 4rem;
}

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

.stat-num {
    font-family: var(--font-body);
    font-size: 3rem;
    font-style: italic;
    font-weight: 300;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-500);
}

/* About Banner */
@keyframes scrollBanner {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-104vw); }
}

.about-banner {
    margin-top: 5rem;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow: hidden;
    line-height: 0;
}

/* Two copies with gap; animation moves exactly one image-width + one gap */
.banner-track {
    display: flex;
    width: 204vw;
    gap: 4vw;
    animation: scrollBanner 90s linear infinite;
}

.about-banner img {
    display: block;
    width: 100vw;
    height: auto;
    flex-shrink: 0;
    opacity: 0.1;
}

/* ===================================
   Contact Section
   =================================== */
.contact-editorial {
    padding: var(--section-padding) var(--container-padding);
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
}

.contact-logo {
    display: block;
    height: 100px;
    width: auto;
    margin: 0 auto 2rem;
}

.contact-title {
    font-family: var(--font-body);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.contact-title span {
    display: inline-block;
    margin: 0 0.2em;
}

.contact-text {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.contact-email {
    display: inline-block;
    font-family: var(--font-body);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-style: italic;
    font-weight: 400;
    border-bottom: 1px solid var(--black);
    padding-bottom: 0.25rem;
    margin-bottom: 3rem;
    transition: opacity var(--transition-fast);
}

.contact-email:hover {
    opacity: 0.6;
}

.social-links-minimal {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-links-minimal a {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    transition: color var(--transition-fast);
}

.social-links-minimal a:hover {
    color: var(--black);
}

/* ===================================
   Footer
   =================================== */
.footer-editorial {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem var(--container-padding);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
}

/* ===================================
   Lightbox
   =================================== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: background 0.4s ease, opacity 0.4s ease, visibility 0.4s ease;
    cursor: zoom-out;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.5s var(--ease-out-expo), opacity 0.4s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
    opacity: 1;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===================================
   Text Reveal Animation
   =================================== */
.text-reveal {
    overflow: hidden;
}

.text-reveal .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.text-reveal.revealed .word {
    opacity: 1;
    transform: translateY(0);
}

.text-reveal .word:nth-child(1) { transition-delay: 0.0s; }
.text-reveal .word:nth-child(2) { transition-delay: 0.04s; }
.text-reveal .word:nth-child(3) { transition-delay: 0.08s; }
.text-reveal .word:nth-child(4) { transition-delay: 0.12s; }
.text-reveal .word:nth-child(5) { transition-delay: 0.16s; }

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.fade-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 1024px) {
    .hero-title-section {
        padding-top: 8rem;
    }
    
    .hero-title {
        font-size: clamp(3rem, 10vw, 7rem);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links a:not(.nav-cta) {
        display: none;
    }
    
    .hero-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: clamp(3rem, 12.5vw, 4.5rem);
    }
    
    .hero-title-section {
        padding-top: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .illustrations-grid-editorial {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-stats-minimal {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-services {
        display: none;
    }

    .hero-tagline {
        font-size: 0.75rem;
    }

    .hero-left {
        max-width: 100%;
    }

    /* Pull image out of absolute flow so it sits below the tagline + CTA */
    .hero-image-wrapper {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        align-self: center;
        margin-top: 1.5rem;
    }

    .hero-image {
        width: min(280px, 80vw);
    }

    /* Pull HARRISON title up so it partially overlaps the image bottom */
    .hero-title-section {
        margin-top: -6rem;
        position: relative;
        z-index: 1;
    }

    /* Smaller star, flush with the bottom of McKENNEY */
    .decorative-star {
        margin-bottom: 0;
    }

    .decorative-star svg {
        width: 22px;
        height: 22px;
    }
}
