@font-face {
    font-family: 'Karla';
    src: url('fonts/Karla-Variable.woff2') format('woff2-variations');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

/* ============================================
   NINETY2SEVEN - VISUAL IDENTITY SYSTEM
   Design System: Editorial, Minimal, Professional
   Typography: Karla (Local Variable Font)
   Grid: 8px base
   Whitespace: ~40% generous margins
   ============================================ */

/* ============================================
   CSS VARIABLES - DESIGN SYSTEM
   ============================================ */
:root {
    /* Foundation Colors */
    --color-canvas: #EFEBE6;
    --color-fog: #E9E7E4;
    --color-slate: #757575;
    --color-ink: #1A1A1A;
    --color-text-secondary: #5A5A5A;  /* WCAG AA compliant secondary text */

    /* Spacing System - 8px base grid */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 64px;
    --space-xxxl: 96px;
    --space-huge: 128px;

    /* Editorial Spacing - Standardized System */
    --section-padding-vertical: 160px;         /* Primary section padding */
    --section-padding-cta-top: 160px;          /* CTA section top - matches standard sections */
    --section-padding-cta-bottom: 300px;       /* CTA section bottom - generous space before footer */
    --eyebrow-margin: 24px;                    /* Eyebrow to content - reduced from 32px */
    --divider-color: #C8C6C4;                  /* Mist - for future section dividers */
    --section-spacing-internal: 80px;
    --spacing-element-major: 64px;
    --spacing-element-standard: 48px;
    --spacing-element-comfortable: 40px;
    --spacing-element-tight: 32px;

    /* Typography Scale */
    --font-family: 'Karla', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 14px;
    --font-size-sm: 16px;
    --font-size-base: 18px;
    --font-size-lg: 20px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 40px;
    --font-size-4xl: 56px;
    --font-size-5xl: 72px;

    /* Layout - Wide responsive system */
    --container-max: 1800px;
    --container-wide: 1800px;
    --container-reading: 900px;
    --horizontal-padding: clamp(24px, 4vw, 64px);
    --nav-height: 80px;

    /* Transitions - Refined motion */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-ink);
    background-color: var(--color-canvas);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY - Karla System
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--font-size-5xl);
    font-weight: 700;
}

h2 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
}

h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
}

p {
    margin-bottom: var(--space-md);
}

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

/* ============================================
   LAYOUT CONTAINERS - Wide responsive system
   ============================================ */
.container {
    width: 100%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--horizontal-padding);
    box-sizing: border-box;
}

.container-wide {
    width: 100%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--horizontal-padding);
    box-sizing: border-box;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background-color: rgba(239, 235, 230, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-base), background-color var(--transition-base);
}

.nav.scrolled {
    border-bottom-color: var(--color-fog);
    background-color: rgba(239, 235, 230, 0.98);
}

.nav-container {
    width: 100%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 var(--horizontal-padding);
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.logo {
    font-size: var(--font-size-lg);
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: opacity var(--transition-base);
}

.logo:hover {
    opacity: 0.7;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-sm);
    align-items: center;
}

.nav-link {
    font-size: 15px;
    font-weight: 400;
    color: #1A1A1A;
    padding: 8px 20px;
    border: 1px solid transparent;
    border-radius: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #1A1A1A;
    color: #FFFFFF;
}

.nav-link-cta {
    font-size: 15px;
    padding: 8px 24px;
    border: 1px solid #1A1A1A;
    background-color: transparent;
    color: #1A1A1A;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.nav-link-cta:hover {
    background-color: #1A1A1A;
    color: #FFFFFF;
}

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #1A1A1A;
    transition:
        transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        background 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hamburger transforms to X when active - with dots on sides */
.hamburger.is-active .hamburger-line:nth-child(1) {
    width: 18px;
    transform: translateX(3px) translateY(7px) rotate(45deg);
}

.hamburger.is-active .hamburger-line:nth-child(2) {
    width: 24px;
    background: linear-gradient(to right, #1A1A1A 15%, transparent 15%, transparent 85%, #1A1A1A 85%);
}

.hamburger.is-active .hamburger-line:nth-child(3) {
    width: 18px;
    transform: translateX(3px) translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: max(100vh, 600px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-height);
    position: relative;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content {
    width: 100%;
    text-align: center;
}

.hero-title {
    font-size: clamp(3.375rem, 1.5rem + 6vw, 10rem); /* 54-160px, confident size at mobile */
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.03em;
    text-align: center;
    max-width: 100%;
}

.hero-title-line {
    display: block;
    white-space: nowrap;
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title-line:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-title-line:nth-child(2) {
    animation-delay: 0.4s;
}

/* At smaller viewports, switch to stacked words - kicks in before text would overflow */
@media (max-width: 1100px) {
    .hero-title-line {
        white-space: normal;
        word-spacing: 100vw;
        line-height: 1.15;
    }
}

/* ============================================
   HERO UNDERLINE ANIMATION
   ============================================ */

.underline-animate {
    position: relative;
    display: inline-block;
}

.underline-animate::after {
    content: '';
    position: absolute;
    bottom: 0.05em;
    left: 0.02em;    /* Trim left sidebearing for precise alignment */
    right: 0.02em;   /* Trim right sidebearing for precise alignment */
    height: 0.06em;
    background-color: var(--color-ink);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.underline-animate.is-visible::after {
    transform: scaleX(1);
}

/* Stagger timing for entry - Strategic first, then Action */
.underline-animate[data-delay="0"].is-visible::after {
    transition-delay: 0.4s;  /* Strategic: starts at 0.4s, finishes at ~1.5s */
}

.underline-animate[data-delay="1"].is-visible::after {
    transition-delay: 1.7s;  /* Action: brief pause after Strategic finishes */
}

/* Faster exit animation, no delay */
.underline-animate:not(.is-visible)::after {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0s;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .underline-animate::after {
        transition: none;
        transform: scaleX(1);
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.375rem); /* 16-22px, scales with headline */
    line-height: 1.6;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto var(--space-xl);
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.6s;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 0.8s;
}

/* ============================================
   BUTTONS - Strategic Color Punctuation
   ============================================ */
.btn {
    display: inline-block;
    width: auto;
    min-width: 220px;
    max-width: 280px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #1A1A1A;
    color: #FFFFFF;
    border: 1px solid #1A1A1A;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: #1A1A1A;
    border: 1px solid #1A1A1A;
}

.btn-secondary:hover {
    background-color: #1A1A1A;
    color: #FFFFFF;
    transform: scale(1.02);
}

/* ============================================
   SECTIONS - Generous Whitespace (Editorial Luxury)
   ============================================ */
.section {
    padding: var(--section-padding-vertical) 0;
    overflow-x: hidden;
}

.section-header {
    margin-bottom: var(--section-spacing-internal);
    max-width: var(--container-reading);
}

.section-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-slate);
    margin-bottom: var(--eyebrow-margin);
}

/* Section label scroll reveal support */
.section-label.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-label.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-ink);
}

.section-title-alt {
    font-size: var(--font-size-2xl);
    font-weight: 500;
    line-height: 1.4;
    color: var(--color-ink);
}

/* Section Dividers - Visual Rhythm (HTML elements added separately) */
.section-divider {
    width: 100%;
    height: 1px;
    background-color: var(--divider-color, #C8C6C4);
    border: none;
    margin: 0;
}

/* ============================================
   SERVICES SECTION - Alternating Large Titles
   Reference: inette.co layout pattern
   ============================================ */

.section-services {
    padding: var(--section-padding-vertical) 0;
    overflow: hidden;
}

/* ============================================
   SERVICES - Static Content (No Animation)
   What I Do section: only lines animate
   ============================================ */

/* Section Intro - What I Do */
.section-intro {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-ink);
    max-width: 700px;
    margin-bottom: 96px;
}

/* Section intro scroll reveal support */
.section-intro.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-intro.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Services List Container */
.services-list {
    display: flex;
    flex-direction: column;
}

/* Domain Divider - Full Width */
.domain-divider {
    width: 100%;
    height: 1px;
    background: #C8C6C4;
    border: none;
    margin: 0;
}

/* ============================================
   SERVICES - Scroll-Driven Line Animation
   Lines animate based on scroll position (bidirectional)
   ============================================ */

/* Base line styling */
.section-line {
    width: 100%;
    height: 1px;
    background-color: #A0A0A0;
    border: none;
    margin: 0;
}

/* Animated line - initial state (controlled by JS) */
.section-line-animated {
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
    /* Subtle smoothing for fast scroll - animation catches up gracefully */
    transition: transform 0.12s ease-out;
}

/* Spacing for top line (above first domain block) */
.services-list > .section-line-animated:first-child {
    margin-bottom: 72px;
}

/* Spacing for bottom line (below last domain block) */
.services-list > .section-line-animated:last-child {
    margin-top: 72px;
}

/* Individual Domain Block */
.domain-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 72px 0;
    gap: 80px;
}

/* Use first-of-type/last-of-type since hr elements are now first/last children */
.domain-block:first-of-type {
    padding-top: 0;
}

.domain-block:last-of-type {
    padding-bottom: 0;
}

/* Domain Title - Large UPPERCASE */
.domain-title {
    font-size: clamp(56px, 8vw + 1rem, 120px);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: var(--color-ink);
    margin: 0;
    flex-shrink: 1;
    min-width: 0;
    /* Word wrapping handled via breakpoint transitions, not mid-word breaks */
}

/* Domain Content (Description only - services removed) */
.domain-content {
    max-width: 420px;
    display: flex;
    flex-direction: column;
    padding-top: 0.3em;
    flex-shrink: 0;
}

.domain-description {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin: 0;
}

/* ============================================
   ALTERNATING LAYOUT PATTERN
   ============================================ */

.domain-left {
    flex-direction: row;
}

.domain-left .domain-title {
    text-align: left;
}

.domain-left .domain-content {
    text-align: left;
}

.domain-right {
    flex-direction: row-reverse;
}

.domain-right .domain-title {
    text-align: right;
}

.domain-right .domain-content {
    text-align: left;
}

/* ============================================
   SERVICES - Scroll-Driven Text Reveal
   Clip-path curtain effect: reveals top-to-bottom
   JS controls values, CSS transition adds smoothing
   ============================================ */

.domain-block {
    /* Clip from bottom - fully hidden initially */
    /* Reveals top-to-bottom as clip-path bottom value decreases */
    clip-path: inset(0 0 100% 0);
    /* GPU acceleration hint */
    will-change: clip-path;
    /* Subtle smoothing for fast scroll - animation catches up gracefully */
    transition: clip-path 0.12s ease-out;
}

/* Static state for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .section-services .domain-block {
        clip-path: inset(0 0 0 0);
    }
}

/* ============================================
   SERVICES - Responsive (First Reduction: 1600px)
   Gentle initial scaling to prevent overflow
   ============================================ */

@media (max-width: 1600px) {
    .domain-title {
        font-size: clamp(56px, 6.5vw + 8px, 105px);
    }

    .domain-content {
        max-width: 400px;
    }

    .domain-block {
        gap: 64px;
    }
}

/* ============================================
   SERVICES - Responsive (Second Reduction: 1400px)
   Further scaling to preserve side-by-side layout
   ============================================ */

@media (max-width: 1400px) {
    .domain-title {
        font-size: clamp(56px, 5.5vw + 8px, 88px);
    }

    .domain-content {
        max-width: 360px;
        padding-top: 0.2em;
    }

    .domain-block {
        gap: 48px;
    }
}

/* ============================================
   SERVICES - Responsive (Early Stack: 1100px)
   Prevents mid-word breaking of long titles
   ============================================ */

@media (max-width: 1100px) {
    /* Force stacked layout before words would break */
    .domain-block,
    .domain-block.domain-left,
    .domain-block.domain-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    /* Title takes full width, keeps two-line structure via <br> */
    .domain-title {
        font-size: clamp(48px, 9vw, 76px);
        line-height: 0.95;
        width: 100%;
    }

    /* Right-aligned titles become left-aligned in stacked mode */
    .domain-right .domain-title {
        text-align: left;
    }

    /* Description takes full width */
    .domain-content {
        max-width: 600px;
        width: 100%;
        padding-top: 0;
    }
}

/* ============================================
   SERVICES - Responsive (Tablet: 1024px)
   ============================================ */

@media (max-width: 1024px) {
    .section-intro {
        font-size: 19px;
        margin-bottom: 80px;
    }

    /* Already stacked from 1100px - refine sizing only */
    .domain-title {
        font-size: clamp(44px, 8vw, 64px);
    }

    .domain-description {
        font-size: 17px;
    }

    .domain-block {
        gap: 24px;
        padding: 56px 0;
    }
}

/* ============================================
   SERVICES - Responsive (Tablet Small: 768px)
   ============================================ */

@media (max-width: 768px) {
    .section-services {
        padding: var(--section-padding-vertical) 0;
    }

    .section-intro {
        font-size: 18px;
        max-width: 100%;
        margin-bottom: 64px;
    }

    /* Layout already stacked from 1050px, just adjust sizing */
    .domain-block {
        gap: 20px;
        padding: 40px 0;
    }

    .domain-title {
        font-size: clamp(36px, 10vw, 56px);
        line-height: 0.95;
        letter-spacing: -0.02em;
    }

    .domain-content {
        max-width: 100%;
    }

    .domain-description {
        font-size: 16px;
    }
}

/* ============================================
   SERVICES - Responsive (Mobile Small: 480px)
   ============================================ */

@media (max-width: 480px) {
    .section-intro {
        font-size: 17px;
        margin-bottom: 48px;
    }

    .domain-title {
        font-size: clamp(28px, 9vw, 40px);
        line-height: 1.0;
    }

    /* br already hidden from 1050px breakpoint */

    .domain-block {
        gap: 16px;
        padding: 32px 0;
    }

    .domain-description {
        font-size: 15px;
    }
}

/* ============================================
   SECTION LINES - Responsive
   ============================================ */

@media (max-width: 1024px) {
    .services-list > .section-line-animated:first-child {
        margin-bottom: 56px;
    }

    .services-list > .section-line-animated:last-child {
        margin-top: 56px;
    }
}

@media (max-width: 768px) {
    .services-list > .section-line-animated:first-child {
        margin-bottom: 40px;
    }

    .services-list > .section-line-animated:last-child {
        margin-top: 40px;
    }
}

@media (max-width: 480px) {
    .services-list > .section-line-animated:first-child {
        margin-bottom: 32px;
    }

    .services-list > .section-line-animated:last-child {
        margin-top: 32px;
    }
}

/* Respect reduced motion preference - show elements immediately */
@media (prefers-reduced-motion: reduce) {
    .section-line-animated {
        transform: scaleX(1) !important;
    }

    .section-label.scroll-reveal,
    .section-intro.scroll-reveal {
        opacity: 1;
        transform: translateY(0);
        transition: none;
    }
}

/* ============================================
   WHO I AM - Bio Section
   ============================================ */
.section-who {
    padding: var(--section-padding-vertical) 0;
}

.who-content {
    display: grid;
    grid-template-columns: minmax(auto, 800px) minmax(320px, 415px);
    gap: 96px;
    align-items: stretch;
    justify-content: start;
}

.who-text {
    max-width: 800px;
}

.who-paragraph {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: #1A1A1A;
    margin-bottom: 24px;
}

.who-paragraph:last-child {
    margin-bottom: 0;
}

.who-image-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: 45px;  /* Offset past eyebrow to align with first paragraph */
}

.who-image {
    position: relative;
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Image caption - name below photo */
.who-image-caption {
    font-size: 15px;
    font-weight: 400;
    color: var(--color-text-secondary);
    margin-top: 16px;
    text-align: center;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(0,0,0,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder::after {
    content: 'Your Photo Here';
    font-size: var(--font-size-sm);
    color: rgba(33, 33, 33, 0.5);
}

/* ============================================
   HOW I WORK - Typography-Driven Layout
   Reference: Adopt agency style
   ============================================ */

.section-how {
    padding: var(--section-padding-vertical) 0;
}

/* Large display statement - the section's visual anchor */
.how-statement {
    font-size: clamp(32px, 4vw + 1rem, 56px);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--color-ink);
    max-width: 1200px;
    margin: 0 0 96px 0;
    /* Animation initial state - consistent with all scroll-reveal */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.how-statement.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Principles grid - 2x2 on desktop */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 64px 80px;
}

/* Individual principle block */
.principle-block {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.principle-block.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays are set dynamically by JavaScript */

/* Principle title - bold, primary focus */
.principle-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-ink);
    margin: 0 0 16px 0;
}

/* Principle description - supporting text */
.principle-description {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin: 0;
}

/* ============================================
   HOW I WORK - Responsive (Tablet: 1024px)
   ============================================ */

@media (max-width: 1024px) {
    .section-how {
        padding: var(--section-padding-vertical) 0;
    }

    .how-statement {
        font-size: clamp(28px, 4vw + 0.5rem, 44px);
        margin-bottom: 72px;
    }

    .principles-grid {
        gap: 48px 56px;
    }

    .principle-title {
        font-size: 20px;
    }

    .principle-description {
        font-size: 16px;
    }
}

/* ============================================
   HOW I WORK - Responsive (Tablet Small: 768px)
   ============================================ */

@media (max-width: 768px) {
    .section-how {
        padding: var(--section-padding-vertical) 0;
    }

    .how-statement {
        font-size: clamp(26px, 5vw, 36px);
        line-height: 1.3;
        margin-bottom: 56px;
    }

    /* Switch to single column */
    .principles-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .principle-title {
        font-size: 19px;
        margin-bottom: 12px;
    }

    .principle-description {
        font-size: 16px;
    }
}

/* ============================================
   HOW I WORK - Responsive (Mobile Small: 480px)
   ============================================ */

@media (max-width: 480px) {
    .section-how {
        padding: var(--section-padding-vertical) 0;
    }

    .how-statement {
        font-size: 24px;
        line-height: 1.35;
        margin-bottom: 48px;
    }

    .principles-grid {
        gap: 32px;
    }

    .principle-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .principle-description {
        font-size: 15px;
    }
}

/* ============================================
   HOW I WORK - Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .how-statement,
    .principle-block {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================
   CTA SECTION - Editorial Luxury
   ============================================ */
section.section-cta {
    padding-top: var(--section-padding-cta-top);
    padding-bottom: var(--section-padding-cta-bottom);
    background-color: var(--color-canvas);
}

.cta-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.cta-content .section-label {
    margin-bottom: 48px;
}

.cta-title {
    font-size: clamp(30px, 0.83rem + 3.33vw, 89px);
    font-weight: 700;
    line-height: 1.08;
    color: var(--color-ink);
    margin-bottom: 64px;
}

.cta-subtitle {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 52px;
}

.cta-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 24px 0;
    border-top: 1px solid var(--color-fog);
    background-color: var(--color-canvas);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-copy {
    font-size: var(--font-size-sm);
    color: var(--color-slate);
    margin: 0;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-link {
    font-size: var(--font-size-sm);
    color: var(--color-slate);
    transition: color var(--transition-base);
}

.footer-link:hover {
    color: var(--color-ink);
}

/* ============================================
   ANIMATIONS - Scroll-triggered
   ============================================ */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

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

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

/* Initial hidden state for elements that will animate on scroll */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Visible state when element enters viewport */
.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* For staggered animations (multiple elements in same section) */
.scroll-reveal-stagger {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stagger delays are set dynamically by JavaScript */

.scroll-reveal-stagger.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   SCROLL-REVEAL - Exit Animation Refinements
   Ensures smooth fade-out when leaving viewport
   ============================================ */

/* Faster exit for cleaner feel when scrolling quickly */
.scroll-reveal:not(.is-visible) {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-stagger:not(.is-visible) {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Reset delay on exit for immediate response */
    transition-delay: 0s !important;
}

/* How I Work statement - faster exit */
.how-statement:not(.is-visible) {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Principle blocks - faster exit, no stagger delay */
.principle-block:not(.is-visible) {
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0s !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   COOKIE CONSENT BANNER
   GDPR-compliant consent for analytics
   ============================================ */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background-color: var(--color-canvas);
    border-top: 1px solid var(--divider-color);
    padding: var(--space-md) var(--horizontal-padding);
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0.4s;
}

.cookie-consent.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.cookie-consent-container {
    max-width: var(--container-wide);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 280px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-ink);
    margin: 0;
}

.cookie-consent-text a {
    color: var(--color-ink);
    text-decoration: underline;
}

.cookie-consent-text a:hover {
    color: var(--color-slate);
}

.cookie-consent-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.cookie-consent-btn {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 10px 24px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.cookie-consent-btn:focus-visible {
    outline: 2px solid var(--color-ink);
    outline-offset: 2px;
}

.cookie-consent-btn--accept {
    background-color: var(--color-ink);
    color: #FFFFFF;
    border: 1px solid var(--color-ink);
}

.cookie-consent-btn--accept:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(26, 26, 26, 0.15); /* Ink color at 15% opacity */
}

.cookie-consent-btn--decline {
    background-color: transparent;
    color: var(--color-ink);
    border: 1px solid var(--color-ink);
}

.cookie-consent-btn--decline:hover {
    background-color: var(--color-ink);
    color: #FFFFFF;
    transform: scale(1.02);
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Cookie consent responsive adjustments */
@media (max-width: 768px) {
    .cookie-consent {
        padding: var(--space-sm) var(--horizontal-padding);
    }

    .cookie-consent-container {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-md);
    }

    .cookie-consent-text {
        font-size: 14px;
        text-align: center;
    }

    .cookie-consent-buttons {
        justify-content: center;
    }

    .cookie-consent-btn {
        font-size: 12px;
        padding: 8px 20px;
        border-radius: 15px;
    }
}

@media (max-width: 480px) {
    .cookie-consent-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cookie-consent-btn {
        width: 100%;
        text-align: center;
        padding: 7px 16px;
        font-size: 10px;
        letter-spacing: 0.03em;
        border-radius: 15px;
    }
}

/* Cookie consent reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cookie-consent {
        transition: none;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --font-size-5xl: 56px;
        --font-size-4xl: 48px;
        --font-size-3xl: 36px;
        --section-padding-vertical: 120px;
        --section-padding-cta-top: 160px;
        --section-padding-cta-bottom: 280px;
        --eyebrow-margin: 20px;
    }

    .container,
    .container-wide,
    .nav-container {
        padding: 0 clamp(24px, 4vw, 48px);
    }

    .who-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-element-major);
        align-items: start;
    }

    .who-text {
        max-width: 100%;
    }

    .who-paragraph {
        font-size: 18px;
    }

    .who-image-wrapper {
        order: 1;
        justify-self: center;
        width: 100%;
        max-width: 400px;
        margin-top: 0;  /* Reset margin on mobile - image stacks below text */
    }

    .who-image-caption {
        text-align: center;
    }

    .who-image {
        flex: none;
        aspect-ratio: 3 / 4;
    }

    .cta-content .section-label {
        margin-bottom: 40px;
    }

    .cta-title {
        max-width: clamp(280px, 50% + 10vw, 700px);
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 56px;
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-5xl: 40px;
        --font-size-3xl: 28px;
        --font-size-2xl: 24px;
        --space-huge: 80px;
        --space-xxxl: 64px;

        /* Proportional luxury spacing for mobile */
        --section-padding-vertical: 96px;
        --section-padding-cta-top: 120px;
        --section-padding-cta-bottom: 300px;
        --eyebrow-margin: 20px;
        --section-spacing-internal: 56px;
        --spacing-element-standard: 32px;
        --spacing-element-comfortable: 28px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 16px;
        left: auto;
        right: 8px;
        bottom: auto;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-end;
        gap: 16px;
        padding: 56px 24px 24px 24px;
        background-color: rgba(239, 235, 230, 0.98);
        backdrop-filter: blur(10px);
        border: 1px solid #1A1A1A;
        border-radius: 8px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition:
            opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
            visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1),
            transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-menu.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu .nav-link {
        font-size: 16px;
        padding: 8px 16px;
        text-align: right;
    }

    .nav-menu .nav-link-cta {
        font-size: 16px;
        padding: 8px 20px;
        margin-top: 8px;
    }

    .hero {
        min-height: max(100vh, 500px);
    }

    .section {
        padding: 104px 0;
    }

    .hero-cta,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .container,
    .container-wide,
    .nav-container {
        padding: 0 24px;
    }

    section.section-cta {
        padding-top: var(--section-padding-cta-top);
        padding-bottom: var(--section-padding-cta-bottom);
    }

    .footer {
        padding: 18px 0;
    }

    .footer-content {
        gap: var(--space-sm);
    }

    .footer-copy,
    .footer-link {
        font-size: var(--font-size-xs);
    }

    .footer-links {
        gap: 20px;
    }

    .cta-content .section-label {
        margin-bottom: 32px;
    }

    .cta-title {
        margin-bottom: 48px;
    }

    .cta-subtitle {
        font-size: 18px;
        margin-bottom: 40px;
    }

    .cta-buttons {
        gap: 16px;
    }

    /* Scale buttons proportionally with content */
    .btn {
        width: auto;
        min-width: 180px;
        max-width: 230px;
        padding: 8px 20px;
        font-size: 12px;
    }

    /* Hero subtitle - natural text flow with controlled width on mobile/tablet */
    .hero-subtitle {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        text-wrap: balance;
        word-spacing: normal;
    }

    .hero-subtitle br {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    /* Who section image - proportional sizing for tablet */
    .who-image-wrapper {
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding-vertical: 80px;
        --section-padding-cta-top: 100px;
        --section-padding-cta-bottom: 240px;
        --eyebrow-margin: 16px;
    }

    .container,
    .container-wide,
    .nav-container {
        padding: 0 20px;
    }

    .logo {
        font-size: var(--font-size-base);
    }

    .cta-content {
        max-width: 100%;
    }

    .cta-content .section-label {
        margin-bottom: 24px;
    }

    .cta-title {
        margin-bottom: 40px;
    }

    .footer {
        padding: 16px 0;
    }

    .footer-content {
        gap: 12px;
        flex-direction: column;
        align-items: center;
    }

    .footer-copy,
    .footer-link {
        font-size: 13px;
    }

    .footer-links {
        gap: 16px;
    }

    /* Scale buttons proportionally for small mobile */
    .btn {
        width: auto;
        min-width: 140px;
        max-width: 180px;
        padding: 7px 16px;
        font-size: 10px;
        letter-spacing: 0.03em;
    }

    /* Who section image - proportional sizing for small mobile */
    .who-image-wrapper {
        max-width: 220px;
    }
}

/* ============================================
   PERFORMANCE - GPU Acceleration
   ============================================ */
.btn,
.principle-card,
.nav-link {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

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

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid var(--color-ink);
    outline-offset: 4px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .nav {
        display: none;
    }

    body {
        background: white;
    }
}
