/* =====================================================
   FATIMA RAI — PORTFOLIO STYLES
   Editorial medical atelier aesthetic
   Light / dark theme with CSS custom properties
   ===================================================== */

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

:root {
    /* Dark theme (default) */
    --bg: #0c0a09;
    --bg-elevated: #141211;
    --bg-card: #1c1917;
    --text: #f5f5f0;
    --text-secondary: #a8a29e;
    --text-muted: #78716c;
    --accent: #c8f04f;
    --accent-rgb: 200, 240, 79;
    --accent-light: #d8f66f;
    --accent-dark: #a5c93f;
    --accent-readable: #c8f04f;
    --accent-text: #0c0a09;
    --sage: #7c8f7e;
    --sage-light: #9bafa0;
    --border: #292524;
    --border-subtle: rgba(245, 245, 240, 0.08);
    --focus: #c8f04f;
    --shadow: rgba(0, 0, 0, 0.45);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-quint: cubic-bezier(0.86, 0, 0.07, 1);
}

[data-theme="light"] {
    --bg: #faf8f5;
    --bg-elevated: #f5f2ed;
    --bg-card: #ffffff;
    --text: #1c1917;
    --text-secondary: #57534e;
    --text-muted: #a8a29e;
    --accent: #c8f04f;
    --accent-rgb: 200, 240, 79;
    --accent-light: #d8f66f;
    --accent-dark: #a5c93f;
    --accent-readable: #7a9125;
    --accent-text: #0c0a09;
    --sage: #5f7361;
    --sage-light: #7c8f7e;
    --border: #e7e5e4;
    --border-subtle: rgba(28, 25, 23, 0.08);
    --focus: #7a9125;
    --shadow: rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
        --bg: #faf8f5;
        --bg-elevated: #f5f2ed;
        --bg-card: #ffffff;
        --text: #1c1917;
        --text-secondary: #57534e;
        --text-muted: #a8a29e;
        --accent: #c8f04f;
        --accent-rgb: 200, 240, 79;
        --accent-light: #d8f66f;
        --accent-dark: #a5c93f;
        --accent-readable: #7a9125;
        --accent-text: #0c0a09;
        --sage: #5f7361;
        --sage-light: #7c8f7e;
        --border: #e7e5e4;
        --border-subtle: rgba(28, 25, 23, 0.08);
        --focus: #7a9125;
        --shadow: rgba(0, 0, 0, 0.08);
    }
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color 0.6s var(--ease-out-expo), color 0.6s var(--ease-out-expo);
}

::selection {
    background: var(--accent);
    color: var(--accent-text);
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ----------------- UTILITIES ----------------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.container-narrow {
    max-width: 800px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.label-mono {
    font-family: 'JetBrains Mono', 'SF Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-readable);
    font-weight: 500;
}

/* ----------------- SKIP LINK ----------------- */
.skip-link {
    position: fixed;
    top: -100%;
    left: 1.5rem;
    background: var(--accent);
    color: var(--accent-text);
    padding: 0.875rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.875rem;
    z-index: 10000;
    transition: top 0.3s var(--ease-out-expo);
}

.skip-link:focus {
    top: 1.5rem;
}

/* ----------------- GRAIN OVERLAY ----------------- */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

@media (prefers-reduced-motion: no-preference) {
    .grain {
        animation: grainShift 8s steps(10) infinite;
    }
}

@keyframes grainShift {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-2%, -2%); }
    20% { transform: translate(2%, 2%); }
    30% { transform: translate(-1%, 1%); }
    40% { transform: translate(1%, -1%); }
    50% { transform: translate(-2%, 2%); }
    60% { transform: translate(2%, -2%); }
    70% { transform: translate(-1%, -1%); }
    80% { transform: translate(1%, 1%); }
    90% { transform: translate(2%, -1%); }
}

/* ----------------- PRELOADER ----------------- */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-text {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text);
    overflow: hidden;
}

.preloader-text span {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
}

.preloader.active .preloader-text span {
    animation: preloaderReveal 0.8s var(--ease-out-expo) forwards;
}

.preloader.active .preloader-text span:nth-child(2) {
    animation-delay: 0.1s;
}

@keyframes preloaderReveal {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ----------------- CUSTOM CURSOR ----------------- */
.cursor-ring {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10002;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), background 0.3s;
    mix-blend-mode: difference;
    opacity: 0;
}

.cursor-ring.hover {
    width: 64px;
    height: 64px;
    background: rgba(var(--accent-rgb), 0.12);
    border-color: transparent;
}

@media (pointer: coarse) {
    .cursor-ring {
        display: none;
    }
}

/* ----------------- NAVIGATION ----------------- */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translate(-50%, -120%);
    z-index: 9999;
    width: calc(100% - clamp(1.5rem, 5vw, 4rem));
    max-width: 1200px;
    transition: transform 0.9s var(--ease-out-expo);
}

.navbar.loaded {
    transform: translate(-50%, 0);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    background: rgba(12, 10, 9, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    transition: background-color 0.6s var(--ease-out-expo), border-color 0.6s var(--ease-out-expo);
}

[data-theme="light"] .navbar-inner {
    background: rgba(250, 248, 245, 0.72);
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text);
}

.logo span {
    color: var(--accent-readable);
}

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

.nav-links a {
    position: relative;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    transition: color 0.3s;
    padding: 0.25rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.4s var(--ease-out-expo);
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    width: 100%;
}

.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease-out-expo);
}

.theme-toggle:hover {
    background: var(--bg-card);
    border-color: var(--accent);
    transform: rotate(15deg);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    transition: transform 0.5s var(--ease-out-expo);
}

.theme-toggle .sun-rays,
.theme-toggle .moon {
    transition: opacity 0.3s, transform 0.5s var(--ease-out-expo);
}

[data-theme="light"] .theme-toggle .moon {
    opacity: 1;
    transform: rotate(0deg);
}

[data-theme="light"] .theme-toggle .sun-rays {
    opacity: 0;
    transform: rotate(-90deg);
}

.theme-toggle .moon {
    opacity: 0;
    transform: rotate(90deg);
}

.theme-toggle .sun-rays {
    opacity: 1;
    transform: rotate(0deg);
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
}

/* ----------------- HERO ----------------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 7rem 0 3.5rem;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.55;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--accent-rgb), 0.18) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    filter: blur(60px);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1000px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    margin-bottom: clamp(1rem, 3vh, 2rem);
    color: var(--text-secondary);
    font-size: clamp(0.65rem, 1.2vw, 0.75rem);
    font-weight: 500;
    letter-spacing: 0.05em;
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--sage);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, min(12vw, 18vh), 10rem);
    font-weight: 600;
    line-height: 0.9;
    letter-spacing: -0.05em;
    margin-bottom: clamp(1rem, 2.5vh, 1.5rem);
}

.hero h1 .line {
    display: block;
    overflow: hidden;
}

.hero h1 .line span {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
}

.hero h1 .italic {
    font-style: italic;
    color: var(--accent-readable);
    font-weight: 500;
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.6vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto clamp(1.25rem, 3vh, 2.5rem);
    line-height: 1.7;
}

.hero-meta {
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 3rem);
    margin-bottom: clamp(1.5rem, 4vh, 3rem);
}

.hero-meta-item {
    text-align: left;
}

.hero-meta-value {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--text);
    line-height: 1;
}

.hero-meta-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--accent);
    color: var(--accent-text);
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
    box-shadow: 0 10px 40px rgba(var(--accent-rgb), 0.25);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 50px rgba(var(--accent-rgb), 0.35);
}

.hero-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s var(--ease-out-expo);
}

.hero-cta:hover svg {
    transform: translateX(4px);
}

.scroll-hint {
    position: absolute;
    bottom: clamp(1.25rem, 3vh, 2.5rem);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.scroll-hint svg {
    width: 20px;
    height: 20px;
    animation: bounce 2s infinite;
}

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

/* ----------------- SECTIONS COMMON ----------------- */
.section {
    padding: clamp(5rem, 12vw, 9rem) 0;
    position: relative;
}

.section-header {
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.section-header.center {
    text-align: center;
}

.section-header .label-mono {
    margin-bottom: 1rem;
    display: inline-block;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.05;
    max-width: 800px;
}

.section-title .italic {
    font-style: italic;
    color: var(--accent-readable);
    font-weight: 500;
}

.section-intro {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 560px;
    margin-top: 1.25rem;
    line-height: 1.8;
}

.section-header.center .section-intro {
    margin-left: auto;
    margin-right: auto;
}

/* ----------------- CASE STUDY ----------------- */
.case-study {
    background: var(--bg-elevated);
    transition: background-color 0.6s var(--ease-out-expo);
}

.case-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: center;
}

.case-stats {
    display: flex;
    gap: 2.5rem;
    margin: 2.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.case-stat-value {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent-readable);
}

.case-stat-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}

.case-description p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.85;
}

.case-images {
    position: relative;
}

.case-image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: transform 0.6s var(--ease-out-expo), box-shadow 0.6s;
}

.case-image-frame.main {
    aspect-ratio: 4/3;
    box-shadow: 0 40px 80px var(--shadow);
}

.case-image-frame.secondary {
    position: absolute;
    bottom: -2.5rem;
    left: -2.5rem;
    width: 45%;
    aspect-ratio: 1;
    border-radius: 16px;
    box-shadow: 0 30px 60px var(--shadow);
}

.case-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

.case-image-frame:hover img {
    transform: scale(1.05);
}

.case-image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.25), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
}

.case-image-frame:hover::after {
    opacity: 1;
}

.case-image-caption {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    color: #fff;
    font-size: 0.75rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s, transform 0.4s var(--ease-out-expo);
    z-index: 2;
}

.case-image-frame:hover .case-image-caption {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------- EXPERTISE ----------------- */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.expertise-card {
    position: relative;
    padding: 2.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: transform 0.4s var(--ease-out-expo), border-color 0.4s, box-shadow 0.4s;
    transform-style: preserve-3d;
    perspective: 1000px;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(var(--accent-rgb), 0.1), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s;
}

.expertise-card:hover::before {
    opacity: 1;
}

.expertise-card:hover {
    border-color: rgba(var(--accent-rgb), 0.3);
    box-shadow: 0 20px 50px var(--shadow);
}

.expertise-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: block;
}

.expertise-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.expertise-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ----------------- EDUCATION ----------------- */
.education {
    background: var(--bg-elevated);
    transition: background-color 0.6s var(--ease-out-expo);
}

.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
}

.timeline-line {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 0;
    background: var(--accent);
    transition: height 1.2s var(--ease-in-out-quint);
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -3.35rem;
    top: 0.25rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    z-index: 2;
    transition: background-color 0.6s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
}

.timeline-item.revealed .timeline-dot {
    transform: scale(1.2);
    background: var(--accent);
}

.timeline-year {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-readable);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.timeline-desc {
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.75;
}

/* ----------------- BLOG TEASER ----------------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.blog-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.blog-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.blog-card {
    display: flex;
    flex-direction: column;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: transform 0.4s var(--ease-out-expo), border-color 0.4s, box-shadow 0.4s;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--accent-rgb), 0.3);
    box-shadow: 0 20px 50px var(--shadow);
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.blog-card-category {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--sage);
}

.blog-card-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, border-color 0.3s, transform 0.3s var(--ease-out-expo);
}

.blog-card:hover .blog-card-arrow {
    background: var(--accent);
    border-color: var(--accent);
    transform: rotate(-45deg);
}

.blog-card:hover .blog-card-arrow svg {
    stroke: var(--accent-text);
}

.blog-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.blog-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ----------------- CONTACT ----------------- */
.contact {
    text-align: center;
}

.contact-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 1.5rem;
}

.contact-title .italic {
    font-style: italic;
    color: var(--accent-readable);
    font-weight: 500;
}

.contact p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 480px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}

.contact-email:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-text);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(var(--accent-rgb), 0.25);
}

.contact-email svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s var(--ease-out-expo);
}

.contact-email:hover svg {
    transform: translateX(4px);
}

/* ----------------- FOOTER ----------------- */
.footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-links a {
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

/* ----------------- LIGHTBOX ----------------- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(12, 10, 9, 0.96);
    z-index: 10003;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s var(--ease-out-expo);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    transform: scale(0.95);
    transition: transform 0.5s var(--ease-out-expo);
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(245, 245, 240, 0.2);
    border-radius: 50%;
    color: #f5f5f0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, transform 0.3s;
}

.lightbox-close:hover {
    background: var(--accent);
    color: var(--accent-text);
    transform: rotate(90deg);
}

/* ----------------- REVEAL ANIMATIONS ----------------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .hero h1 .line span,
    .preloader-text span {
        transform: none;
        opacity: 1;
        animation: none;
    }
    
    .scroll-hint svg,
    .hero-badge::before {
        animation: none;
    }
}

/* ----------------- RESPONSIVE ----------------- */
@media (max-width: 1024px) {
    .expertise-grid,
    .blog-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .case-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .case-image-frame.secondary {
        left: 1rem;
        bottom: -1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-card);
        border: 1px solid var(--border-subtle);
        border-radius: 20px;
        padding: 1.5rem;
        gap: 0.5rem;
        box-shadow: 0 20px 50px var(--shadow);
        z-index: 9998;
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .nav-links a {
        padding: 0.75rem 0;
        font-size: 1rem;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-meta {
        gap: 1.5rem;
    }
    
    .hero-meta-value {
        font-size: 1.5rem;
    }
    
    .expertise-grid,
    .blog-grid,
    .blog-grid-3,
    .blog-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .case-stats {
        gap: 1.5rem;
        justify-content: space-between;
    }
    
    .case-stat-value {
        font-size: 1.5rem;
    }
    
    .timeline {
        padding-left: 2rem;
    }
    
    .timeline-dot {
        left: -2.35rem;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-height: 700px) {
    .hero {
        padding: 6rem 0 2rem;
    }
    
    .hero h1 {
        font-size: clamp(2.75rem, min(11vw, 15vh), 7rem);
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }
    
    .hero-meta {
        margin-bottom: 1rem;
    }
    
    .hero-cta {
        padding: 0.875rem 1.75rem;
        font-size: 0.85rem;
    }
    
    .scroll-hint {
        bottom: 1rem;
        transform: translateX(-50%) scale(0.85);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: clamp(3rem, 15vw, 4rem);
    }
    
    .hero-meta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-meta-item {
        text-align: center;
    }
    
    .case-image-frame.secondary {
        width: 50%;
        left: 0.5rem;
        bottom: -1rem;
    }
}
