/*
 * The Gentleman Scientist — Tim
 * Drake's meets Kapital. Scholar meets artisan.
 * Soft tailoring, scholarly knitwear, artisan craft.
 *
 * Color DNA: Navy hopsack, tobacco moleskin, Scottish cream,
 *            burgundy wine, walnut leather
 *
 * h(x) >= 0 always
 */

/* ═══════════════════════════════════════════════════════════════
   FOUNDATIONS — The Scholar's Palette
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Parchment & Linen — the study */
    --linen: #F7F4EF;
    --linen-warm: #F0EBE1;
    --linen-shadow: #E5DFD3;
    --porcelain: #FDFBF7;
    --bisque: #EBE3D5;

    /* Ink — deep, rich, never harsh */
    --ink: #1C2233;
    --ink-soft: rgba(28, 34, 51, 0.75);
    --ink-faint: rgba(28, 34, 51, 0.48);
    --ink-ghost: rgba(28, 34, 51, 0.12);
    --ink-whisper: rgba(28, 34, 51, 0.06);

    /* Heritage Core — navy, tobacco, burgundy */
    --navy: #1E2D47;
    --navy-soft: #3D5068;
    --navy-light: #5B7A8A;
    --tobacco: #8B6914;
    --tobacco-soft: #A68332;
    --tobacco-muted: #C4A265;
    --burgundy: #6B2D3A;
    --burgundy-soft: #7D3A47;

    /* Scholar Accents */
    --olive: #4A5D23;
    --olive-muted: #5C6B3A;
    --walnut: #4A3728;
    --saddle: #7A5230;
    --slate: #5A6475;
    --tweed: #8B7D6B;
    --moleskin: #7A6A52;

    /* Warm Neutrals */
    --cream: #F5EFE0;
    --oatmeal: #D4CAB8;
    --stone: #B8AD9E;
    --rust: #B45A3C;

    /* Fair Isle / Shetland */
    --shetland-cream: #F0E8D5;
    --shetland-blue: #5B7A8A;
    --shetland-rust: #A65D45;
    --shetland-moss: #6B7B4A;

    /* Phase colors */
    --phase-1: #1E2D47;
    --phase-2: #6B2D3A;
    --phase-3: #4A5D23;
    --phase-4: #8B6914;

    /* Heart */
    --heart: #6B2D3A;
    --heart-glow: rgba(107, 45, 58, 0.25);

    /* Typography Scale — Perfect Fourth (1.333) */
    --text-xs: 0.563rem;
    --text-sm: 0.75rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.333rem;
    --text-2xl: 1.777rem;
    --text-3xl: 2.369rem;
    --text-4xl: 3.157rem;
    --text-5xl: 4.209rem;

    /* Font Families — Newsreader for scholarly display */
    --font-display: 'Newsreader', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing — 8px grid */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-8: 3rem;
    --space-10: 4rem;
    --space-12: 6rem;
    --space-16: 8rem;
    --space-20: 10rem;

    /* Timing — Fibonacci */
    --dur-instant: 89ms;
    --dur-quick: 144ms;
    --dur-normal: 233ms;
    --dur-slow: 377ms;
    --dur-glacial: 610ms;
    --dur-epic: 987ms;

    /* Easing */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(28, 37, 65, 0.03);
    --shadow-sm: 0 1px 3px rgba(28, 37, 65, 0.04), 0 1px 2px rgba(28, 37, 65, 0.03);
    --shadow-md: 0 4px 6px rgba(28, 37, 65, 0.04), 0 2px 4px rgba(28, 37, 65, 0.03);
    --shadow-lg: 0 10px 15px rgba(28, 37, 65, 0.05), 0 4px 6px rgba(28, 37, 65, 0.03);
    --shadow-xl: 0 20px 25px rgba(28, 37, 65, 0.06), 0 10px 10px rgba(28, 37, 65, 0.03);
    --shadow-2xl: 0 25px 50px rgba(28, 37, 65, 0.12);

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════════════════════════ */

.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--navy);
    color: var(--cream);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: var(--text-sm);
    z-index: 1000;
    transition: top var(--dur-quick) var(--ease-out);
}

.skip-link:focus { top: var(--space-4); outline: 2px solid var(--navy); outline-offset: 2px; }

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

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

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    background: var(--linen);
    color: var(--ink);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Linen texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.012;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.breathing-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 80% 50% at 5% 0%, var(--navy-soft) 0%, transparent 40%),
        radial-gradient(ellipse 60% 70% at 100% 30%, var(--tobacco-muted) 0%, transparent 30%),
        radial-gradient(ellipse 90% 40% at 50% 100%, var(--burgundy) 0%, transparent 25%),
        var(--linen);
    opacity: 0.12;
    animation: scholar-breathe 45s ease-in-out infinite;
}

@keyframes scholar-breathe {
    0%, 100% { opacity: 0.12; transform: scale(1); }
    33% { opacity: 0.16; transform: scale(1.01); }
    66% { opacity: 0.14; transform: scale(1.02); }
}

::selection { background: var(--navy); color: var(--cream); }
img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--navy);
    text-decoration: none;
    text-underline-offset: 3px;
    transition: color var(--dur-quick) var(--ease-out);
}
a:hover { color: var(--burgundy); }
a:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 2px; }

/* ═══════════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0;
}

h1 {
    font-size: clamp(var(--text-4xl), 8vw, var(--text-5xl));
    font-weight: 300;
    letter-spacing: -0.02em;
}

h1 em { font-style: italic; color: var(--burgundy); }
h2 { font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl)); }
h3 { font-size: var(--text-xl); font-weight: 500; }
p { max-width: 60ch; }

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION — Floating pill
   ═══════════════════════════════════════════════════════════════ */

.nav {
    position: fixed;
    top: var(--space-5);
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: var(--space-5);
    padding: var(--space-3) var(--space-5);
    background: rgba(30, 45, 71, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.08);
    transition: all var(--dur-normal) var(--ease-out);
    max-width: 95vw;
}

.nav:hover { box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255,255,255,0.12); }

.nav-logo {
    font-family: var(--font-display);
    font-size: var(--text-base);
    font-weight: 400;
    font-style: italic;
    color: var(--cream);
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: var(--space-3);
}

.nav-links a {
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    padding: var(--space-2) var(--space-2);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    position: relative;
    white-space: nowrap;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--tobacco-muted);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--dur-normal) var(--ease-out);
}

.nav-links a:hover { color: white; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-controls {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* Phase Filter Pills */
.phase-filter {
    display: flex;
    gap: 2px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-full);
    padding: 2px;
}

.phase-btn {
    font-size: 0.563rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    background: none;
    border: none;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--dur-quick) var(--ease-out);
    white-space: nowrap;
}

.phase-btn:hover { color: rgba(255,255,255,0.9); }

.phase-btn.active {
    background: rgba(255,255,255,0.15);
    color: white;
}

/* Hearts */
.nav-hearts {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    padding: var(--space-2);
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    transition: color var(--dur-quick) var(--ease-out);
}

.nav-hearts:hover { color: #e88; }
.nav-hearts svg { width: 18px; height: 18px; }

.nav-hearts-count {
    font-size: var(--text-xs);
    font-weight: 600;
    font-family: var(--font-mono);
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--space-20) var(--space-4);
    position: relative;
    overflow: hidden;
}

/* Scholar's grid — subtle crosshatch */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(85vw, 700px);
    height: min(85vw, 700px);
    border: 1px solid var(--slate);
    border-radius: var(--radius-lg);
    opacity: 0.12;
    background:
        repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(28, 37, 65, 0.015) 20px, rgba(28, 37, 65, 0.015) 21px),
        repeating-linear-gradient(-45deg, transparent, transparent 20px, rgba(28, 37, 65, 0.015) 20px, rgba(28, 37, 65, 0.015) 21px);
}

.hero-content { position: relative; z-index: 1; max-width: 700px; }

.hero-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--tobacco);
    margin-bottom: var(--space-5);
}

.hero-title { margin-bottom: var(--space-5); }

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--ink-soft);
    line-height: 1.8;
    margin: 0 auto var(--space-6);
}

.hero-quote {
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--text-lg);
    color: var(--ink-faint);
    border: none;
    padding: 0;
    margin: 0 auto var(--space-8);
    max-width: 500px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-10);
    margin-top: var(--space-6);
}

.stat { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); }

.stat-value {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 300;
    color: var(--ink);
    line-height: 1;
}

.stat-label {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

/* ═══════════════════════════════════════════════════════════════
   PHILOSOPHY
   ═══════════════════════════════════════════════════════════════ */

.philosophy {
    padding: var(--space-16) var(--space-4);
    background: var(--linen-warm);
}

.philosophy-content { max-width: 1200px; margin: 0 auto; }
.philosophy h2 { text-align: center; margin-bottom: var(--space-10); }

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-8);
}

.philosophy-item { padding: var(--space-5); }

.philosophy-number {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--tobacco);
    font-weight: 500;
    display: block;
    margin-bottom: var(--space-3);
}

.philosophy-item h3 {
    font-family: var(--font-display);
    margin-bottom: var(--space-3);
    font-style: italic;
}

.philosophy-item p {
    font-size: var(--text-sm);
    color: var(--ink-soft);
    line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   OUTFIT FORMULAS
   ═══════════════════════════════════════════════════════════════ */

.outfit-section {
    padding: var(--space-12) var(--space-4);
    max-width: 1200px;
    margin: 0 auto;
}

.outfit-title { text-align: center; margin-bottom: var(--space-6); }

.outfit-presets {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

.outfit-preset {
    background: white;
    border: 1px solid var(--ink-ghost);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    cursor: pointer;
    text-align: left;
    transition: all var(--dur-normal) var(--ease-out);
    min-width: 180px;
}

.outfit-preset:hover { border-color: var(--navy); box-shadow: var(--shadow-md); }

.outfit-preset.active {
    background: var(--navy);
    border-color: var(--navy);
    color: white;
}

.outfit-preset-name {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-style: italic;
    margin-bottom: var(--space-1);
}

.outfit-preset.active .outfit-preset-name { color: white; }

.outfit-preset-vibe {
    display: block;
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.outfit-preset.active .outfit-preset-vibe { color: rgba(255,255,255,0.7); }

.outfit-display {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--ink-whisper);
}

.outfit-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-5);
    transition: all var(--dur-slow) var(--ease-out);
}

.outfit-item {
    text-align: center;
    transition: all var(--dur-slow) var(--ease-spring);
}

.outfit-item-image-wrap {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-3);
    background: var(--linen);
}

.outfit-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.outfit-item-category {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    font-size: 1.2rem;
}

.outfit-item-details { padding: 0 var(--space-2); }

.outfit-item-name {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-style: italic;
    margin-bottom: var(--space-1);
}

.outfit-item-price {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--ink-faint);
}

.outfit-total {
    text-align: right;
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--ink-whisper);
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    color: var(--ink-soft);
}

/* ═══════════════════════════════════════════════════════════════
   COLLECTIONS — Product Sections
   ═══════════════════════════════════════════════════════════════ */

.collection {
    padding: var(--space-12) var(--space-4);
    max-width: 1400px;
    margin: 0 auto;
}

.collection-alt { background: var(--linen-warm); max-width: 100%; }
.collection-alt > * { max-width: 1400px; margin: 0 auto; }

.collection-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.collection-eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--tobacco);
    margin-bottom: var(--space-3);
}

.collection-title { margin-bottom: var(--space-3); }

.collection-subtitle {
    font-size: var(--text-lg);
    color: var(--ink-faint);
    font-style: italic;
    font-family: var(--font-display);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
}

/* Product Card */
.product-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--ink-whisper);
    transition: all var(--dur-normal) var(--ease-out);
    cursor: pointer;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--ink-ghost);
}

.product-card--featured { grid-column: span 2; }

.product-card.hidden-by-phase {
    display: none;
}

/* Phase indicator */
.product-phase {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    font-family: var(--font-mono);
    font-size: 0.563rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    z-index: 2;
    backdrop-filter: blur(8px);
}

.product-phase--1 { background: rgba(30, 45, 71, 0.85); color: white; }
.product-phase--2 { background: rgba(107, 45, 58, 0.85); color: white; }
.product-phase--3 { background: rgba(74, 93, 35, 0.85); color: white; }
.product-phase--4 { background: rgba(139, 105, 20, 0.85); color: white; }

/* Image Container */
.product-image-container {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--linen);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease-out);
}

.product-card:hover .product-image { transform: scale(1.04); }

.product-badge {
    position: absolute;
    bottom: var(--space-3);
    left: var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    background: rgba(30, 45, 71, 0.88);
    color: white;
    backdrop-filter: blur(8px);
}

.product-badge--japanese { background: rgba(74, 93, 35, 0.88); }
.product-badge--heritage { background: rgba(90, 100, 117, 0.88); }
.product-badge--artisan { background: rgba(122, 82, 48, 0.88); }
.product-badge--scottish { background: rgba(107, 45, 58, 0.88); }
.product-badge--centerpiece { background: rgba(139, 105, 20, 0.88); }

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--linen-warm);
    color: var(--ink-faint);
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--text-xl);
}

/* Heart button on cards */
.product-heart {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all var(--dur-quick) var(--ease-spring);
}

.product-heart svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--ink-faint);
    stroke-width: 2;
    transition: all var(--dur-quick) var(--ease-spring);
}

.product-heart:hover svg { stroke: var(--heart); }
.product-heart.hearted svg { fill: var(--heart); stroke: var(--heart); }
.product-heart.hearted { background: rgba(255,255,255,0.95); }

/* Product Info */
.product-info { padding: var(--space-5); }

.product-brand {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tobacco);
    display: block;
    margin-bottom: var(--space-1);
}

.product-name {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 400;
    font-style: italic;
    margin-bottom: var(--space-2);
    line-height: 1.3;
}

.product-description {
    font-size: var(--text-sm);
    color: var(--ink-soft);
    line-height: 1.6;
    margin-bottom: var(--space-3);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-details {
    font-size: var(--text-xs);
    color: var(--ink-faint);
    margin-bottom: var(--space-3);
    font-family: var(--font-mono);
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-family: var(--font-mono);
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--ink);
}

.product-cta {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--navy);
    border-radius: var(--radius-full);
    transition: all var(--dur-quick) var(--ease-out);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.product-cta:hover {
    background: var(--navy);
    color: white;
}

/* ═══════════════════════════════════════════════════════════════
   BUDGET SECTION
   ═══════════════════════════════════════════════════════════════ */

.budget-section {
    padding: var(--space-16) var(--space-4);
    background: var(--navy);
    color: var(--cream);
}

.budget-content { max-width: 900px; margin: 0 auto; text-align: center; }
.budget-content h2 { color: var(--cream); margin-bottom: var(--space-8); }

.budget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

.budget-phase {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
}

.budget-phase-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    display: block;
    margin-bottom: var(--space-2);
}

.budget-phase-time {
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.7);
    display: block;
    margin-bottom: var(--space-3);
}

.budget-phase-amount {
    font-family: var(--font-mono);
    font-size: var(--text-2xl);
    font-weight: 500;
    color: white;
}

.budget-phase-items {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.4);
    margin-top: var(--space-2);
}

.budget-note {
    color: rgba(255,255,255,0.5);
    font-style: italic;
    font-family: var(--font-display);
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */

.footer {
    padding: var(--space-12) var(--space-4);
    text-align: center;
    background: var(--linen-warm);
    border-top: 1px solid var(--ink-whisper);
}

.footer-message {
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--text-lg);
    color: var(--ink-soft);
    margin: 0 auto var(--space-2);
}

.footer-tagline {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════════════════════ */

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--dur-glacial) var(--ease-out), transform var(--dur-glacial) var(--ease-out);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .nav-links { display: none; }
    .phase-filter { display: none; }
    .product-card--featured { grid-column: span 1; }
}

@media (max-width: 768px) {
    .hero { min-height: 80vh; padding: var(--space-16) var(--space-4); }
    .hero-stats { gap: var(--space-6); }
    .outfit-presets { flex-direction: column; align-items: center; }
    .outfit-preset { min-width: 280px; text-align: center; }
    .product-grid { grid-template-columns: 1fr; }
    .philosophy-grid { grid-template-columns: 1fr; }
    .budget-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .nav { padding: var(--space-2) var(--space-4); }
    .nav-logo { font-size: var(--text-sm); }
    .hero-subtitle br { display: none; }
    .hero-quote br { display: none; }
    .budget-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════════
   PRINT
   ═══════════════════════════════════════════════════════════════ */

@media print {
    .nav, .breathing-bg, .outfit-section, .phase-filter { display: none; }
    body { background: white; }
    .product-card { break-inside: avoid; box-shadow: none; border: 1px solid #ddd; }
}
