/* ── Dark mode (default) ── */
:root {
    --primary-dark: #0a192f;
    --primary-darker: #020c1b;
    --accent-teal: #64ffda;
    --accent-purple: #7b68ee;
    --text-light: #ccd6f6;
    --text-dim: #8892b0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.3);

    /* Nav backgrounds */
    --nav-bg: rgba(10, 25, 47, 0.8);
    --nav-bg-scrolled: rgba(10, 25, 47, 0.95);
    --nav-mobile-bg: rgba(10, 25, 47, 0.98);

    /* Teal tints (for backgrounds/borders using the accent) */
    --teal-05: rgba(100, 255, 218, 0.05);
    --teal-10: rgba(100, 255, 218, 0.1);
    --teal-12: rgba(100, 255, 218, 0.12);
    --teal-20: rgba(100, 255, 218, 0.2);
    --teal-30: rgba(100, 255, 218, 0.3);
}

/* ── Light mode ── */
[data-theme="light"] {
    --primary-dark: #f5f7fb;
    --primary-darker: #e8ecf5;
    --accent-teal: #0d9488;
    --accent-purple: #6366f1;
    --text-light: #0f2240;
    --text-dim: #4a5e7a;
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(15, 34, 64, 0.1);
    --glass-shadow: rgba(15, 34, 64, 0.1);

    --nav-bg: rgba(245, 247, 251, 0.85);
    --nav-bg-scrolled: rgba(245, 247, 251, 0.97);
    --nav-mobile-bg: rgba(245, 247, 251, 0.98);

    --teal-05: rgba(13, 148, 136, 0.05);
    --teal-10: rgba(13, 148, 136, 0.1);
    --teal-12: rgba(13, 148, 136, 0.12);
    --teal-20: rgba(13, 148, 136, 0.2);
    --teal-30: rgba(13, 148, 136, 0.3);
}

/* Smooth transition when switching themes */
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
    transition: background-color 0.35s ease, color 0.35s ease,
                border-color 0.35s ease, box-shadow 0.35s ease !important;
}

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

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Film Grain Texture Overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9997;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

[data-theme="light"] body::after {
    mix-blend-mode: multiply;
    opacity: 0.025;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 5%;
    padding: 0.5rem 1rem;
    background: var(--accent-teal);
    color: var(--primary-dark);
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
    z-index: 1100;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-darker);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-teal);
    border-radius: 4px;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(20px);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s ease, border-color 0.3s ease;
}

nav.scrolled {
    background: var(--nav-bg-scrolled);
}

.logo {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-teal);
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-teal);
    transition: width 0.3s ease;
}

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

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

/* Hero Section */
#hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 4rem;
    box-shadow: 0 25px 50px -12px var(--glass-shadow);
    animation: fadeInUp 1s ease-out;
}

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

.hero-subtitle {
    font-family: 'Space Mono', monospace;
    color: var(--accent-teal);
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text-light) 0%, var(--accent-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-tagline .highlight {
    color: var(--accent-teal);
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 1s ease-out 1s both;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-teal);
    color: var(--primary-dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--teal-30);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-teal);
    border: 2px solid var(--accent-teal);
}

.btn-secondary:hover {
    background: var(--teal-10);
    transform: translateY(-3px);
}

/* Partner Logos */
.partner-logos {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    animation: fadeInUp 1s ease-out 1.2s both;
}

.partner-logos p {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Ecosystem Marquee */
.marquee-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: marquee 25s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-track span {
    font-family: 'Space Mono', monospace;
    font-size: 0.9rem;
    color: var(--text-dim);
    padding: 0.5rem 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    white-space: nowrap;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.marquee-track span:hover {
    color: var(--accent-teal);
    border-color: var(--accent-teal);
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

/* Section Styles */
section {
    padding: 100px 5%;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-family: 'Space Mono', monospace;
    color: var(--accent-teal);
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
#about {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--accent-purple) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    border: 2px solid rgba(100, 255, 218, 0.4);
    pointer-events: none;
}

.about-image-placeholder img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.about-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.about-content p {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.about-content .highlight-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--accent-teal);
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
    margin: 2rem 0;
}

.about-content .highlight-box p {
    color: var(--text-light);
    font-style: italic;
    margin: 0;
}

/* Work Section */
#work {
    background: var(--primary-darker);
}

.work-grid {
    display: grid;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.work-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.work-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-teal), var(--accent-purple));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.work-card:hover {
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-teal);
}

.work-card:hover::before {
    transform: scaleX(1);
}

.work-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.work-card-company {
    font-family: 'Space Mono', monospace;
    color: var(--accent-teal);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.work-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.work-card-role {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.work-card-impact {
    text-align: right;
}

.impact-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-teal);
    line-height: 1;
}

.impact-label {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.work-card-description {
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

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

.tag {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    background: var(--teal-10);
    color: var(--accent-teal);
    border-radius: 4px;
    border: 1px solid var(--teal-20);
}

/* How I Can Help Section */
#services {
    background: linear-gradient(180deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-teal);
    box-shadow: 0 20px 40px var(--teal-10);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.service-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-card .best-for {
    font-size: 0.85rem;
    color: var(--accent-teal);
    font-style: italic;
}

/* Proof Points */
.proof-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 4rem auto 0;
    padding-top: 3rem;
    border-top: 1px solid var(--glass-border);
}

.proof-point {
    text-align: center;
}

.proof-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.proof-label {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Blog Section */
#blog {
    background: var(--primary-dark);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-teal);
}

.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-teal) 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-card-image span {
    font-size: 3rem;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-category {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-teal);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.blog-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.blog-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.blog-card-link {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.blog-card-link:hover {
    gap: 1rem;
}

/* Contact Section */
#contact {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
}

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

.contact-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
}

.contact-quote {
    font-size: 1.3rem;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--teal-05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.contact-method:hover {
    border-color: var(--accent-teal);
    transform: translateY(-3px);
}

.contact-method-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-method-text {
    text-align: left;
}

.contact-method-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-method-value {
    font-weight: 600;
    color: var(--text-light);
}

/* Footer */
footer {
    padding: 2rem 5%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-size: 0.9rem;
}

footer a {
    color: var(--accent-teal);
    text-decoration: none;
}

/* Page Loader */
.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--primary-darker);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.loader-logo {
    font-family: 'Space Mono', monospace;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-teal);
    opacity: 0;
    transform: translateY(20px);
}

.loader-bar {
    width: 120px;
    height: 2px;
    background: var(--glass-border);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar-fill {
    width: 100%;
    height: 100%;
    background: var(--accent-teal);
    transform-origin: left;
    transform: scaleX(0);
}

/* Custom Cursor */
.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--accent-teal);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transform: translate(-50%, -50%);
}

.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--accent-teal);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

.cursor-ring.hovering {
    width: 54px;
    height: 54px;
    background: var(--teal-10);
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-teal);
    z-index: 1001;
    transform-origin: left;
    transform: scaleX(0);
}

/* Card Glow Overlay */
.work-card .card-glow {
    position: absolute;
    inset: 0;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.work-card:hover .card-glow {
    opacity: 1;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Case Study Details */
.case-study-detail {
    display: none;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.case-study-detail.open {
    display: block;
}

.case-study-detail h4 {
    font-family: 'Space Mono', monospace;
    color: var(--accent-teal);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    margin-top: 1.25rem;
}

.case-study-detail h4:first-child {
    margin-top: 0;
}

.case-study-detail p {
    color: var(--text-dim);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.case-study-detail .cs-lesson {
    background: var(--glass-bg);
    border-left: 3px solid var(--accent-teal);
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-light);
}

.case-study-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background: transparent;
    color: var(--accent-teal);
    border: 1px solid var(--teal-30);
    border-radius: 6px;
    font-family: 'Space Mono', monospace;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.case-study-toggle:hover {
    background: var(--teal-10);
    border-color: var(--accent-teal);
}

/* Philosophy Section */
#philosophy {
    background: var(--primary-dark);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.philosophy-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.philosophy-card:hover {
    border-color: var(--teal-30);
    transform: translateY(-4px);
}

.philosophy-card h3 {
    color: var(--accent-teal);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

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

/* Career Timeline */
.career-timeline {
    display: flex;
    align-items: flex-start;
    gap: 0;
    max-width: 1000px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    overflow-x: auto;
}

.timeline-item {
    flex: 1;
    min-width: 120px;
    text-align: center;
    position: relative;
    padding-top: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--accent-teal);
    border-radius: 50%;
    transform: translateX(-50%);
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--glass-border);
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-year {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-teal);
    margin-bottom: 0.25rem;
}

.timeline-company {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

.timeline-role {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* Responsive */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-glass {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 5%;
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
        background: var(--nav-mobile-bg);
        border: 1px solid var(--glass-border);
        border-radius: 12px;
    }

    nav.nav-open .nav-links {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .work-card-header {
        flex-direction: column;
        gap: 1rem;
    }

    .work-card-impact {
        text-align: left;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }
}

/* ── Theme Toggle Button ── */
.theme-toggle {
    background: none;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dim);
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--accent-teal);
    color: var(--accent-teal);
    background: var(--teal-05);
}

.theme-toggle svg {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Show sun (→ light) in dark mode; moon (→ dark) in light mode */
.icon-moon { display: none; }
.icon-sun  { display: block; }

[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ── Light mode surface enhancements ── */
[data-theme="light"] .work-card,
[data-theme="light"] .service-card,
[data-theme="light"] .blog-card,
[data-theme="light"] .philosophy-card {
    box-shadow: 0 2px 12px rgba(15, 34, 64, 0.06);
}

[data-theme="light"] .work-card:hover {
    box-shadow: 0 20px 48px rgba(15, 34, 64, 0.14);
}

[data-theme="light"] .hero-glass,
[data-theme="light"] .contact-glass {
    box-shadow: 0 16px 48px rgba(15, 34, 64, 0.1);
}

/* ── Nav scroll-spy active state ── */
.nav-links a.active {
    color: var(--accent-teal);
}

.nav-links a.active::after {
    width: 100%;
}

/* ── Back to Top ── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 900;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-teal);
    color: var(--primary-dark);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    box-shadow: 0 8px 24px var(--teal-30);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── Availability Status Pill ── */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--teal-10);
    border: 1px solid var(--teal-20);
    border-radius: 999px;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-teal);
    margin-bottom: 1.25rem;
    animation: fadeInUp 1s ease-out 0s both;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: var(--accent-teal);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.75); }
}

/* ── Hero Typing Animation ── */
.hero-typed-wrap {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
    min-height: 1.6em;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.typed-text {
    color: var(--accent-teal);
    font-family: 'Space Mono', monospace;
}

.typed-cursor {
    display: inline-block;
    width: 2px;
    height: 1em;
    background: var(--accent-teal);
    margin-left: 2px;
    vertical-align: text-bottom;
    animation: blink 0.9s step-end infinite;
}

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

/* ── Testimonials Section ── */
#testimonials {
    background: var(--primary-darker);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--teal-30);
    transform: translateY(-4px);
}

.testimonial-quote-mark {
    font-family: 'Space Mono', monospace;
    font-size: 4rem;
    line-height: 1;
    color: var(--accent-teal);
    opacity: 0.25;
    position: absolute;
    top: 1.25rem;
    left: 1.75rem;
    pointer-events: none;
}

.testimonial-text {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.75rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.95rem;
}

.testimonial-title {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 0.15rem;
}

[data-theme="light"] .testimonial-card {
    box-shadow: 0 2px 12px rgba(15, 34, 64, 0.06);
}
