/* ============================================
   BRANDON CLAPS — 2026 Dark Minimal
   ============================================ */

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

:root {
    --bg: #0a0a0b;
    --bg-elevated: #111113;
    --bg-card: #16161a;
    --bg-card-hover: #1c1c21;
    --surface: #1e1e23;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    --text-primary: #f0f0f2;
    --text-secondary: #8a8a96;
    --text-tertiary: #7a7a88;

    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --accent-glow-strong: rgba(99, 102, 241, 0.3);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-x: clip;
}

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

ul {
    list-style: none;
}

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

/* --- Skip Link (accessibility) --- */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    background: var(--accent);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xs);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: top 0.2s;
}

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

/* --- Progress Bar --- */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9998;
    width: 100%;
    height: 3px;
    transform-origin: left;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    box-shadow: 0 0 14px var(--accent-glow-strong);
    pointer-events: none;
}

/* --- Container --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
}

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.4s var(--ease-out);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.nav.scrolled {
    padding: 0.75rem 0;
    background: rgba(10, 10, 11, 0.95);
    border-bottom: 1px solid var(--border);
}

@supports (backdrop-filter: blur(1px)) {
    .nav.scrolled {
        background: rgba(10, 10, 11, 0.8);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    transition: opacity 0.3s;
}

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

.accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
    position: relative;
}

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

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

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

/* --- Theme Toggle --- */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    cursor: pointer;
    padding: 8px;
    min-width: 38px;
    min-height: 38px;
    color: var(--text-secondary);
    transition: color 0.3s, border-color 0.3s, background 0.3s;
    margin-left: 1rem;
}

.theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-card);
}

.theme-icon {
    display: none;
}

/* Default (dark): show sun icon to switch to light */
.theme-icon--sun {
    display: block;
}

/* Light theme: show moon icon to switch back to dark */
[data-theme="light"] .theme-icon--sun {
    display: none;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s, transform 0.3s;
    padding: 0.5rem 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.mobile-menu a:hover {
    color: var(--text-primary);
    transform: translateX(8px);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 6rem 0 4rem;
}

.hero-bg {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    z-index: 0;
}

.grid-overlay {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 70%);
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 70%);
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: var(--accent);
    top: -200px;
    right: -100px;
    opacity: 0.08;
    animation: glowFloat 12s ease-in-out infinite alternate;
}

.glow-2 {
    width: 400px;
    height: 400px;
    background: #8b5cf6;
    bottom: -100px;
    left: -100px;
    opacity: 0.06;
    animation: glowFloat 10s ease-in-out infinite alternate-reverse;
}

@keyframes glowFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -30px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.25rem;
}

.hero-name {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.hero-tagline {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 2.5rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: all 0.3s var(--ease-out);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 24px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-light);
    box-shadow: 0 0 40px var(--accent-glow-strong);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    transform: translateY(-2px);
}

/* Featured In */
.featured-in {
    margin-bottom: 2.5rem;
}

.featured-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.75rem;
}

.featured-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    row-gap: 0.75rem;
}

.featured-logo {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
}

.featured-logo:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-tertiary);
    opacity: 0.4;
}

.featured-logo:hover {
    color: var(--text-secondary);
}

/* Hero Quote */
.hero-quote {
    border-left: 2px solid var(--accent);
    padding-left: 1.25rem;
    margin: 1.5rem 0 2rem;
    max-width: 540px;
}

.hero-quote p {
    font-size: 1rem;
    font-style: italic;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.7;
    letter-spacing: 0.01em;
}

/* Hero Image */
.hero-image {
    display: flex;
    justify-content: center;
}

.image-frame {
    position: relative;
    width: 380px;
    height: 460px;
    border-radius: var(--radius);
    overflow: visible;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: var(--radius);
}

.image-border {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    pointer-events: none;
    overflow: hidden;
}

.image-frame::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    border-radius: var(--radius);
    background: linear-gradient(180deg, transparent 50%, rgba(10, 10, 11, 0.6) 100%);
    z-index: 1;
    pointer-events: none;
}

.image-frame::after {
    content: '';
    position: absolute;
    top: -2px; right: -2px; bottom: -2px; left: -2px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--accent-glow), transparent 50%);
    z-index: -1;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   Sections
   ============================================ */
.section {
    padding: clamp(5rem, 10vw, 8rem) 0;
}

.section-alt {
    background: var(--bg-elevated);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 500;
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.section-line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* ============================================
   About
   ============================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-lead {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.about-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    transition: all 0.4s var(--ease-out);
}

.detail-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.detail-icon {
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.detail-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.detail-card p {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    line-height: 1.6;
}

/* ============================================
   Timeline / Experience
   ============================================ */
.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: linear-gradient(to bottom, var(--accent), var(--border));
}

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

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

.timeline-marker {
    position: absolute;
    left: -3rem;
    top: 6px;
}

.timeline-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--text-tertiary);
    transition: all 0.3s;
}

.timeline-dot.active {
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-item:hover .timeline-dot {
    border-color: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-light);
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.timeline-content h4 {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.timeline-summary {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    line-height: 1.7;
}

.timeline-content ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.timeline-content li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.6;
}

.timeline-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
}

/* ============================================
   Accomplishments
   ============================================ */
.accomplishments-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.accomplishment-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    overflow: hidden;
    transition: all 0.4s var(--ease-out);
    display: flex;
    flex-direction: column;
}

.accomplishment-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

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

.card-icon {
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.accomplishment-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.accomplishment-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    flex: 1;
}

.card-year {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* ============================================
   Marquee
   ============================================ */
.marquee {
    overflow: hidden;
    padding: 0.85rem 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.marquee-track {
    display: flex;
    gap: 2.5rem;
    width: max-content;
    padding-left: 2rem;
    animation: marqueeScroll 28s linear infinite;
}

.marquee-track span {
    position: relative;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--text-tertiary);
}

.marquee-track span::after {
    content: '';
    display: inline-block;
    width: 0.35rem;
    height: 0.35rem;
    margin-left: 2.5rem;
    border-radius: 50%;
    background: var(--accent);
    vertical-align: middle;
    opacity: 0.6;
}

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

/* ============================================
   Impact Cards (Selected Results)
   ============================================ */
.results-intro {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
}

.impact-stack {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
}

.impact-card {
    position: sticky;
    top: var(--card-top, 5.5rem);
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.impact-card::after {
    content: attr(data-word);
    position: absolute;
    right: 1.5rem;
    bottom: 0.5rem;
    font-size: clamp(4rem, 14vw, 9rem);
    font-weight: 800;
    line-height: 0.82;
    letter-spacing: -0.06em;
    z-index: 0;
    pointer-events: none;
    opacity: 0.04;
    color: var(--text-primary);
}

.impact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

.impact-card-accent {
    background: linear-gradient(135deg, #151530, #111125);
    border-color: rgba(99, 102, 241, 0.25);
}

.impact-card-dark {
    background: linear-gradient(135deg, #16161a, #1a1a22);
    border-color: var(--border-hover);
}

.impact-card-muted {
    background: linear-gradient(135deg, #131316, #0f0f12);
    border-color: var(--border);
}

.impact-index {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    color: var(--accent);
    opacity: 0.6;
    position: relative;
    z-index: 1;
}

.impact-body {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 1.5rem;
}

.impact-kicker {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 0.75rem;
}

.impact-main h3 {
    font-size: clamp(1.15rem, 2vw, 1.4rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

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

.impact-list {
    display: grid;
    gap: 0.6rem;
}

.impact-list li {
    position: relative;
    padding-left: 1.1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.5;
}

.impact-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
}

.impact-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.impact-meta span {
    display: inline-flex;
    padding: 0.4rem 0.7rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

/* ============================================
   Innovation
   ============================================ */
.innovation-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.innovation-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.innovation-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.4s var(--ease-out);
    overflow: hidden;
}

.innovation-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.inno-number {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.1;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
}

.innovation-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

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

/* ============================================
   Projects
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.project-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.4s var(--ease-out);
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #8b5cf6);
    opacity: 0;
    transition: opacity 0.4s;
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

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

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.project-icon {
    color: var(--accent);
}

.project-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 50px;
    background: var(--accent-glow);
    color: var(--accent-light);
    white-space: nowrap;
}

.project-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.project-subtitle {
    font-size: 0.85rem;
    color: var(--accent-light);
    font-weight: 500;
    margin-bottom: 1rem;
}

.project-card > p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.project-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-features li {
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.6;
}

.project-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.6;
}

/* ============================================
   Speaking & Community
   ============================================ */
.speaking-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.speaking-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.speaking-item {
    display: flex;
    gap: 2rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s var(--ease-out);
}

.speaking-item:first-child {
    padding-top: 0;
}

.speaking-item:hover {
    padding-left: 1rem;
}

.speaking-year {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-light);
    min-width: 8rem;
    white-space: nowrap;
    padding-top: 0.15rem;
}

.speaking-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.speaking-info p {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* Education Sidebar */
.education-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 6rem;
}

.sidebar-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.edu-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.edu-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.edu-year {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
}

.edu-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.edu-school {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* ============================================
   Contact
   ============================================ */
.contact-layout {
    max-width: 600px;
}

.contact-text {
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all 0.3s var(--ease-out);
}

.contact-link:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateX(8px);
    box-shadow: 0 4px 16px var(--accent-glow);
}

.contact-link svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* Contact Form */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ef4444;
}

.contact-submit {
    align-self: flex-start;
    min-width: 160px;
    min-height: 44px;
    justify-content: center;
}

.contact-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.form-status {
    font-size: 0.85rem;
    min-height: 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-xs);
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.form-status.success,
.form-status.error {
    display: flex;
}

.form-status.success {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.form-status.error {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-submit {
        width: 100%;
    }
}

/* ============================================
   Philosophy
   ============================================ */
.philosophy-layout {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.philosophy-quote blockquote {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    position: relative;
    padding-left: 2rem;
    border-left: 3px solid var(--accent);
    max-width: 1000px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.value-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

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

.value-number {
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.08;
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    line-height: 1;
}

.value-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

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

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

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

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

    .hero-tagline {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-quote {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .featured-logos {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .image-frame {
        width: 280px;
        height: 340px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .accomplishments-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .impact-card {
        position: static;
        grid-template-columns: 1fr;
    }

    .impact-index {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .speaking-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .education-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav > .nav-inner > .theme-toggle {
        display: none;
    }

    .mobile-menu .theme-toggle {
        display: flex;
        margin-left: 0;
        margin-top: 1rem;
        border-color: var(--border-hover);
    }

    .hero-name {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .featured-logos {
        gap: 1.25rem;
    }

    .featured-logo {
        font-size: 0.7rem;
    }

    .featured-logo:not(:last-child)::after {
        right: -0.65rem;
    }

    .section-line {
        display: none;
    }

    .about-details {
        grid-template-columns: 1fr;
    }

    .accomplishments-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .innovation-cards {
        grid-template-columns: 1fr;
    }

    .speaking-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .speaking-year {
        min-width: auto;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .accomplishments-grid {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

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

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   Subtle grain texture
   ============================================ */
body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ============================================
   Selection styling
   ============================================ */
::selection {
    background: var(--accent);
    color: white;
}

/* ============================================
   Focus styles — keyboard navigation accessibility
   ============================================ */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.btn:focus-visible {
    outline-offset: 4px;
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.nav-links a:focus-visible,
.mobile-menu a:focus-visible {
    outline-offset: 4px;
    border-radius: var(--radius-xs);
}

.contact-link:focus-visible {
    outline-offset: 4px;
}

/* ============================================
   Reduced motion — disable animations/transitions
   ============================================ */
@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;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Print stylesheet
   ============================================ */
@media print {
    body::before,
    .glow,
    .grid-overlay,
    .progress-bar,
    .scroll-indicator,
    .card-glow,
    .image-border,
    .image-frame::before,
    .image-frame::after {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .nav, .mobile-menu, .marquee {
        display: none !important;
    }

    .hero {
        min-height: auto;
        padding: 1rem 0;
    }

    .section {
        padding: 1.5rem 0;
    }

    a {
        color: #000;
        text-decoration: underline;
    }
}
