/* =====================================================
   ELIAS FELDER — PORTFOLIO v3
   ===================================================== */

:root {
    /* Core palette (kept) */
    --primary: #0A0E27;
    --secondary: #11162F;
    --accent: #6366F1;
    --accent-light: #8B5CF6;
    --accent-lighter: #EC4899;
    --accent-gradient: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);
    --accent-gradient-soft: linear-gradient(135deg, rgba(99,102,241,.15), rgba(236,72,153,.15));

    --text-primary: #F5F7FF;
    --text-secondary: #8E96B8;
    --text-muted: #5A6188;

    --surface: #0F1430;
    --surface-light: #161C3B;
    --surface-elev: #1A2147;

    --border: rgba(99, 102, 241, 0.14);
    --border-strong: rgba(139, 92, 246, 0.35);

    --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
    --shadow-sm: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.35);

    --transition: all 0.4s cubic-bezier(0.65, 0, 0.05, 1);
    --ease: cubic-bezier(0.65, 0, 0.05, 1);

    --radius: 14px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

[data-theme="light"] {
    --primary: #FBFBFD;
    --secondary: #F2F3F8;
    --text-primary: #0A0E27;
    --text-secondary: #5A6188;
    --text-muted: #8E96B8;
    --surface: #F2F3F8;
    --surface-light: #E7E9F2;
    --surface-elev: #FFFFFF;
    --border: rgba(99, 102, 241, 0.18);
    --border-strong: rgba(99, 102, 241, 0.4);
    --shadow: 0 30px 80px -20px rgba(31, 28, 79, 0.25);
    --shadow-sm: 0 10px 30px -10px rgba(31, 28, 79, 0.15);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background: var(--primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.5s ease, color 0.5s ease;
    position: relative;
}

/* Subtle background mesh */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(99,102,241,.12), transparent 50%),
        radial-gradient(circle at 80% 100%, rgba(236,72,153,.08), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4, h5, h6, p, li { overflow-wrap: break-word; }

/* === SPOTLIGHT === */
.spotlight {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(
        500px circle at var(--spot-x, 50%) var(--spot-y, 50%),
        rgba(139, 92, 246, 0.18),
        transparent 45%
    );
    transition: opacity 0.3s ease;
}
[data-theme="light"] .spotlight {
    background: radial-gradient(
        500px circle at var(--spot-x, 50%) var(--spot-y, 50%),
        rgba(99, 102, 241, 0.12),
        transparent 45%
    );
}

/* === RAVE MODE (easter egg) === */
body.rave .gradient-sphere,
body.rave .spotlight,
body.rave .bento-media,
body.rave .hero-grid {
    animation: raveHue 3s linear infinite;
}
body.rave .cursor-dot,
body.rave .cursor-trail,
body.rave .scroll-progress-bar {
    animation: raveHue 2s linear infinite;
}
@keyframes raveHue {
    0%   { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* === GRAIN === */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.06;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* === SCROLL PROGRESS === */
.scroll-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: transparent;
    z-index: 9999;
}
.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent-gradient);
    box-shadow: 0 0 12px rgba(139,92,246,.6);
    transform-origin: left;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 { font-size: clamp(3rem, 9vw, 7rem); }
h2 { font-size: clamp(2.25rem, 5vw, 4rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }

p { color: var(--text-secondary); margin-bottom: 1rem; }
p.lead { font-size: 1.2rem; color: var(--text-primary); font-weight: 500; line-height: 1.55; }

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

/* === LAYOUT UTILS === */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.section {
    padding: 9rem 0;
    position: relative;
}

.section-header {
    margin-bottom: 4.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
}
.section-num {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}
.section-num::before {
    content: '';
    width: 28px; height: 1px;
    background: var(--accent);
}
.section-title {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    margin: 0;
}
.section-tag {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 1.05rem 2rem;
    border-radius: 100px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    will-change: transform;
    font-family: var(--font-sans);
    letter-spacing: 0.01em;
}
.btn span { position: relative; z-index: 2; }
.btn i { position: relative; z-index: 2; transition: transform 0.4s var(--ease); }

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 10px 40px -10px rgba(99,102,241,.6);
}
.btn-primary::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, #EC4899 0%, #8B5CF6 50%, #6366F1 100%);
    opacity: 0; transition: opacity 0.5s var(--ease);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 50px -10px rgba(236,72,153,.5); }
.btn-primary:hover i { transform: translateX(4px); }

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-strong);
}
.btn-ghost:hover {
    background: var(--surface-elev);
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* === LOADER === */
.loader {
    position: fixed;
    inset: 0;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.hide { opacity: 0; visibility: hidden; }

.loader-content {
    width: min(400px, 80vw);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.loader-mark {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}
.loader-text {
    font-family: var(--font-display);
    font-size: 4.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.loader-meta {
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 0.9rem;
}
.loader-bar {
    height: 1px;
    background: var(--border);
    overflow: hidden;
    width: 100%;
}
.loader-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--accent-gradient);
    animation: loaderFill 1.8s ease-out forwards;
    box-shadow: 0 0 12px rgba(139,92,246,.6);
}
.loader-status {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
@keyframes loaderFill {
    0%   { width: 0; }
    100% { width: 100%; }
}

/* === CURSOR === */
@media (hover: hover) and (pointer: fine) {
    * { cursor: none !important; }

    .cursor {
        position: fixed;
        top: 0; left: 0;
        pointer-events: none;
        z-index: 9998;
    }
    .cursor-dot {
        position: fixed;
        top: 0; left: 0;
        width: 10px; height: 10px;
        background: var(--accent-gradient);
        border-radius: 50%;
        will-change: transform;
        box-shadow: 0 0 12px rgba(139, 92, 246, 0.6),
                    0 0 24px rgba(99, 102, 241, 0.25);
        transition: width 0.3s var(--ease), height 0.3s var(--ease),
                    box-shadow 0.3s ease, opacity 0.2s ease;
    }
    .cursor-trail {
        position: fixed;
        top: 0; left: 0;
        border-radius: 50%;
        background: var(--accent-gradient);
        will-change: transform;
        pointer-events: none;
    }
    .cursor-trail[data-i="0"] { width: 7px; height: 7px; opacity: 0.45; }
    .cursor-trail[data-i="1"] { width: 5px; height: 5px; opacity: 0.30; }
    .cursor-trail[data-i="2"] { width: 4px; height: 4px; opacity: 0.18; }
    .cursor-trail[data-i="3"] { width: 3px; height: 3px; opacity: 0.10; }

    /* Hover: dot grows, glow intensifies */
    .cursor.hover .cursor-dot {
        width: 16px; height: 16px;
        box-shadow: 0 0 20px rgba(236, 72, 153, 0.7),
                    0 0 40px rgba(139, 92, 246, 0.4);
    }
    /* Hover: trail fades out for clean look */
    .cursor.hover .cursor-trail { opacity: 0; }
}
@media not all and (hover: hover) {
    .cursor { display: none; }
}

/* === NAVIGATION === */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    padding: 1.4rem 0;
    background: rgba(10, 14, 39, 0.65);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    transition: padding 0.4s var(--ease), background 0.4s ease, transform 0.4s var(--ease);
    border-bottom: 1px solid transparent;
}
[data-theme="light"] nav { background: rgba(251,251,253,.7); }
nav.scrolled {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    transition: transform 0.4s var(--ease);
}
.logo .logo-mark {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo .logo-dot {
    width: 7px; height: 7px;
    background: var(--accent-lighter);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-lighter);
    animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.2rem;
}
.nav-link {
    display: inline-flex;
    align-items: baseline;
    gap: 0.4rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}
.nav-link .nav-num {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -6px;
    width: 0; height: 1px;
    background: var(--accent-gradient);
    transition: width 0.4s var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link:hover .nav-num, .nav-link.active .nav-num { color: var(--accent); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    background: var(--surface-elev);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}
.status-dot {
    width: 6px; height: 6px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10B981;
    animation: blink 2s ease-in-out infinite;
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 38px; height: 38px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.theme-toggle:hover {
    background: var(--surface-elev);
    border-color: var(--accent);
    transform: rotate(180deg);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.menu-toggle span {
    width: 24px; height: 1.5px;
    background: var(--text-primary);
    transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === MOBILE MENU === */
.mobile-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 100%; height: 100vh; height: 100dvh;
    background: var(--primary);
    padding: 7rem 2rem 2rem;
    transition: right 0.6s var(--ease);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-menu.active { right: 0; }
.mobile-menu ul { list-style: none; }
.mobile-menu a {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    transition: color 0.3s ease;
}
.mobile-menu a span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
}
.mobile-menu a:hover { color: var(--accent); }
.mobile-foot {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* === SECTION RAIL (left dots) === */
.section-rail {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 800;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}
.section-rail a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}
.section-rail a span { opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease; transform: translateX(-6px); }
.section-rail a i {
    width: 10px; height: 10px;
    border: 1px solid var(--text-muted);
    border-radius: 50%;
    transition: var(--transition);
    display: block;
}
.section-rail a:hover, .section-rail a.active { color: var(--text-primary); }
.section-rail a:hover span, .section-rail a.active span { opacity: 1; transform: translateX(0); }
.section-rail a.active i {
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: 0 0 14px rgba(139,92,246,.6);
    transform: scale(1.2);
}
@media (max-width: 1100px) { .section-rail { display: none; } }

/* =========================================================
   HERO
   ========================================================= */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 8rem;
    padding-bottom: 2rem;
}
.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99,102,241,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,.07) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    will-change: transform;
    transform: translate3d(0,0,0);
}
.sphere-1 { width: 600px; height: 600px; background: var(--accent); top: -200px; right: -150px; animation: float 22s ease-in-out infinite; }
.sphere-2 { width: 520px; height: 520px; background: var(--accent-light); bottom: -200px; left: -150px; animation: float 26s ease-in-out infinite reverse; }
.sphere-3 { width: 440px; height: 440px; background: var(--accent-lighter); top: 40%; left: 40%; animation: float 30s ease-in-out infinite; opacity: 0.3; }
@keyframes float {
    0%, 100% { transform: translate(0,0) scale(1); }
    33%      { transform: translate(40px,-40px) scale(1.1); }
    66%      { transform: translate(-30px,30px) scale(0.95); }
}

.hero-inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}
.hero-eyebrow .dash {
    width: 36px; height: 1px;
    background: var(--accent);
}

/* Kinetic title */
.hero-title.kinetic {
    margin: 0;
    font-size: clamp(3.5rem, 13vw, 11rem);
    line-height: 0.92;
    font-weight: 800;
    letter-spacing: -0.04em;
}
.kinetic-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.05em;
}
.kinetic-line.stroke { margin-top: -0.05em; }
.kinetic-word {
    display: inline-block;
}
.kinetic-word > span {
    display: inline-block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    opacity: 0;
    transform: translateY(110%);
    animation: kineticUp 1s var(--ease) forwards;
    will-change: transform, opacity;
    transition: transform 0.5s var(--ease);
}
.kinetic-word.outline > span {
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
    -webkit-text-fill-color: transparent;
    color: transparent;
    -webkit-text-stroke: 2px var(--text-primary);
}
.kinetic-word > span:nth-child(1) { animation-delay: 0.30s; }
.kinetic-word > span:nth-child(2) { animation-delay: 0.36s; }
.kinetic-word > span:nth-child(3) { animation-delay: 0.42s; }
.kinetic-word > span:nth-child(4) { animation-delay: 0.48s; }
.kinetic-word > span:nth-child(5) { animation-delay: 0.54s; }
.kinetic-word > span:nth-child(6) { animation-delay: 0.60s; }

@keyframes kineticUp {
    0%   { opacity: 0; transform: translateY(110%); }
    100% { opacity: 1; transform: translateY(0); }
}

.kinetic-word:hover > span {
    transform: translateY(-8px) rotate(-2deg);
}

/* Hero meta grid */
.hero-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 1.75rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: 1rem;
}
.meta-block { display: flex; flex-direction: column; gap: 0.35rem; }
.meta-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}
.meta-value {
    font-size: 0.95rem;
    color: var(--text-primary);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.live-dot {
    display: inline-block;
    width: 7px; height: 7px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10B981;
    animation: blink 2s ease-in-out infinite;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.hero-scroll {
    position: absolute;
    right: 2rem;
    bottom: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}
.hero-scroll i {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    position: relative;
    overflow: hidden;
}
.hero-scroll i::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: var(--text-primary);
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0%   { transform: translateY(-100%); }
    100% { transform: translateY(400%); }
}
@media (max-width: 900px) { .hero-scroll { display: none; } }

/* Marquee (shared keyframe for tech-marquee) */
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
    gap: 2rem 3rem;
    margin-bottom: 5rem;
}
.about-quote {
    grid-column: 1 / -1;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 500;
    line-height: 1.25;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    max-width: 1000px;
}
.about-quote .quote-mark {
    color: var(--accent);
    font-size: 1.2em;
    line-height: 0;
    vertical-align: -0.1em;
    margin-right: 0.1em;
}
.about-quote .quote-mark.closing { margin-left: 0.1em; margin-right: 0; }
.about-quote p {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    margin: 0;
}

.about-text { display: flex; flex-direction: column; gap: 1rem; }
.about-text p { font-size: 1.05rem; line-height: 1.75; }
.about-text b { color: var(--text-primary); }

.about-sidebar {
    border-left: 1px solid var(--border);
    padding-left: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    align-self: start;
}
.side-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed var(--border);
}
.side-row:last-child { border-bottom: none; padding-bottom: 0; }
.side-row span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}
.side-row b {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.stat-card {
    padding: 2rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient-soft);
    opacity: 0;
    transition: opacity 0.4s ease;
}
.stat-card > * { position: relative; }
.stat-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}
.stat-card:hover::before { opacity: 1; }
.stat-num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}
.stat-num small { font-size: 0.5em; }
.stat-line {
    width: 100%;
    height: 1px;
    background: var(--border);
    margin: 1.2rem 0 1rem;
}
.stat-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.stat-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
    margin: 0;
}

/* =========================================================
   SKILLS
   ========================================================= */
.skills { background: var(--secondary); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 4rem;
}
.stack-card {
    padding: 1.75rem;
    background: var(--surface-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.stack-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s var(--ease);
}
.stack-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}
.stack-card:hover::after { transform: translateX(100%); }
.stack-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}
.stack-card header i {
    font-size: 1.6rem;
    color: var(--accent);
}
.stack-card header span {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    padding: 0.25rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 100px;
}
.stack-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.stack-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.55;
}
.dots {
    display: flex;
    gap: 0.4rem;
}
.dots i {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.stack-card[data-level="1"] .dots i:nth-child(-n+1),
.stack-card[data-level="2"] .dots i:nth-child(-n+2),
.stack-card[data-level="3"] .dots i:nth-child(-n+3),
.stack-card[data-level="4"] .dots i:nth-child(-n+4),
.stack-card[data-level="5"] .dots i:nth-child(-n+5) {
    background: var(--accent-gradient);
    border-color: transparent;
    box-shadow: 0 0 8px rgba(139,92,246,.5);
}

/* Tech marquee */
.tech-marquee {
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    display: flex;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.tech-track {
    display: flex;
    flex-shrink: 0;
    gap: 1.5rem;
    padding-right: 1.5rem;
    white-space: nowrap;
    animation: marquee 50s linear infinite;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-primary);
}
.tech-track span:nth-child(even) { color: var(--accent); }

/* =========================================================
   PROJECTS — BENTO
   ========================================================= */
.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 1.5rem;
}
.bento-card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    isolation: isolate;
}
.bento-card.feature { grid-column: span 2; grid-row: span 1; }
.bento-card.wide    { grid-column: span 2; }

.bento-link {
    position: absolute;
    inset: 0;
    z-index: 5;
}
.bento-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow), 0 0 0 1px rgba(139,92,246,.3);
    transform: translateY(-4px);
}

.bento-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--surface-elev);
}
.bento-card.feature .bento-media { aspect-ratio: 16/9; }
.bento-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease), filter 0.6s ease;
    filter: saturate(0.9);
}
.bento-card:hover .bento-media img {
    transform: scale(1.08);
    filter: saturate(1.15);
}
.bento-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.8s var(--ease);
    pointer-events: none;
}
.bento-card:hover .bento-shine { transform: translateX(100%); }

.bento-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
}
.bento-top {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}
.bento-body h3 {
    font-size: 1.4rem;
    margin: 0;
    transition: color 0.3s ease;
}
.bento-card.feature .bento-body h3 { font-size: 1.85rem; }
.bento-card:hover .bento-body h3 {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bento-body p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}
.project-tags {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}
.project-tags span {
    padding: 0.3rem 0.75rem;
    background: var(--surface-elev);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    transition: var(--transition);
}
.bento-card:hover .project-tags span {
    border-color: var(--border-strong);
    color: var(--text-primary);
}
.bento-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    padding-top: 0.5rem;
}
.bento-cta i { font-size: 0.7rem; transition: transform 0.4s var(--ease); }
.bento-card:hover .bento-cta i { transform: translate(3px, -3px); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: var(--secondary); border-top: 1px solid var(--border); }

.contact-hero {
    margin-bottom: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: end;
    flex-wrap: wrap;
    gap: 2rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}
.contact-mega {
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 1;
    margin: 0;
    max-width: 800px;
}
.contact-mega .gradient-text { display: block; }
.mail-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--text-primary);
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--accent);
    transition: var(--transition);
}
.mail-cta:hover { color: var(--accent); transform: translateX(4px); }

.contact-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.form-group { position: relative; }
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.1rem 1.2rem 1.1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.4s var(--ease);
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group label {
    position: absolute;
    top: 1.1rem;
    left: 0;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    pointer-events: none;
    transition: var(--transition);
}
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -0.5rem;
    font-size: 0.65rem;
    color: var(--accent);
}
.btn-submit { align-self: flex-start; margin-top: 1rem; }

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.info-card {
    padding: 1.5rem;
    background: var(--surface-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}
.info-card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.info-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    display: block;
    margin-bottom: 0.6rem;
}
.info-card p {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0 0 0.3rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.info-meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.social-links {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    background: var(--surface-elev);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 1.05rem;
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -5px rgba(99,102,241,.5);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    background: var(--primary);
}
.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.footer-left .logo-mark {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
}
.footer p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-mono);
}
.footer-right {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.footer-right a { color: var(--text-primary); transition: color 0.3s ease; }
.footer-right a:hover { color: var(--accent); }

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

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* ---------- TABLET (≤1024px) ---------- */
@media (max-width: 1024px) {
    .section { padding: 7rem 0; }

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

    .bento { grid-template-columns: repeat(2, 1fr); }
    .bento-card.feature, .bento-card.wide { grid-column: span 2; }
    .bento-card.feature .bento-body h3 { font-size: 1.5rem; }

    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-grid .about-text { order: 1; }
    .about-grid .about-sidebar { order: 2; }
    .about-sidebar {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border);
        padding-top: 1.5rem;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1.25rem;
    }
    .side-row { border-bottom: none; padding-bottom: 0; }
    .about-grid { margin-bottom: 3.5rem; }

    .about-stats { grid-template-columns: repeat(2, 1fr); }
    .hero-meta { grid-template-columns: repeat(2, 1fr); }
    .contact-content { grid-template-columns: 1fr; gap: 3rem; }
}

/* ---------- MOBILE (≤768px) ---------- */
@media (max-width: 768px) {
    /* Nav */
    .menu-toggle { display: flex; }
    .nav-menu { display: none; }
    nav { padding: 0.9rem 0; }
    nav.scrolled { padding: 0.7rem 0; }
    .nav-container { padding: 0 1.25rem; }

    /* Layout */
    .section { padding: 4.5rem 0; }
    .section-header { margin-bottom: 2.5rem; }
    .section-title { font-size: clamp(1.8rem, 7vw, 3rem); }
    .container { padding: 0 1.25rem; }

    /* Hero */
    .hero {
        padding-top: 5.5rem;
        padding-bottom: 2rem;
        min-height: calc(100vh - 2rem);
        min-height: calc(100svh - 2rem);
    }
    .hero-inner { gap: 1.25rem; }
    .hero-title.kinetic { font-size: clamp(2.8rem, 15vw, 5.5rem); }
    .kinetic-word.outline > span { -webkit-text-stroke-width: 1.5px; }
    .hero-eyebrow { font-size: 0.7rem; }
    .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 1rem; padding: 1.25rem 0; }
    .meta-value { font-size: 0.88rem; }

    /* About */
    .about-quote { font-size: clamp(1.2rem, 4.5vw, 1.8rem); padding: 1.25rem 0; }
    .about-text p { font-size: 0.95rem; line-height: 1.7; }
    .about-text p.lead { font-size: 1.05rem; }
    .about-grid { margin-bottom: 2.5rem; }
    .about-sidebar { grid-template-columns: repeat(2, 1fr); }

    /* Stats */
    .about-stats { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stat-card { padding: 1.25rem 1rem; }
    .stat-num { font-size: 2.2rem; }
    .stat-line { margin: 0.75rem 0 0.6rem; }
    .stat-card h3 { font-size: 0.9rem; margin-bottom: 0.15rem; }
    .stat-card p { font-size: 0.75rem; }

    /* Stack */
    .stack-grid { grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
    .stack-card { padding: 1.25rem; }
    .stack-card header { margin-bottom: 1rem; }
    .stack-card header i { font-size: 1.3rem; }
    .stack-card h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
    .stack-card p { font-size: 0.8rem; margin-bottom: 1rem; line-height: 1.5; }
    .tech-track { font-size: 1rem; gap: 1rem; }

    /* Bento */
    .bento { grid-template-columns: 1fr; gap: 1.25rem; }
    .bento-card.feature, .bento-card.wide { grid-column: span 1; }
    .bento-body { padding: 1.25rem; gap: 0.6rem; }
    .bento-body h3 { font-size: 1.15rem; }
    .bento-card.feature .bento-body h3 { font-size: 1.25rem; }
    .bento-body p { font-size: 0.85rem; }
    .bento-media { aspect-ratio: 16/10; }
    .bento-card.feature .bento-media { aspect-ratio: 16/10; }

    /* Contact */
    .contact-hero { flex-direction: column; align-items: flex-start; gap: 1.25rem; padding-bottom: 2rem; }
    .contact-mega { font-size: clamp(1.6rem, 6.5vw, 2.8rem); line-height: 1.15; }
    .mail-cta { font-size: 0.82rem; word-break: break-all; }
    .form-row { grid-template-columns: 1fr; }
    .form-group input, .form-group textarea { font-size: 0.95rem; padding: 1rem 0; }
    .info-card { padding: 1.25rem; }
    .info-card p { font-size: 1rem; }
    .social-links a { width: 44px; height: 44px; }

    /* Footer */
    .footer { padding: 2rem 0; }
    .footer-grid { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .footer-left { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
    .footer p { font-size: 0.75rem; }
}

/* ---------- SMALL MOBILE (≤480px) ---------- */
@media (max-width: 480px) {
    .section { padding: 3.5rem 0; }
    .section-header { margin-bottom: 2rem; }
    .container { padding: 0 1rem; }
    .nav-container { padding: 0 1rem; }

    .hero { padding-top: 5rem; }
    .hero-title.kinetic { font-size: clamp(2.4rem, 17vw, 4rem); }
    .kinetic-word.outline > span { -webkit-text-stroke-width: 1px; }
    .hero-meta { grid-template-columns: 1fr; gap: 0.85rem; padding: 1rem 0; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; justify-content: center; }

    .about-sidebar { grid-template-columns: 1fr; }
    .about-quote { font-size: clamp(1.1rem, 5vw, 1.5rem); }

    .stack-grid { grid-template-columns: 1fr; }
    .stack-card p { font-size: 0.82rem; }

    .bento-body { padding: 1rem; }
    .project-tags span { font-size: 0.68rem; padding: 0.2rem 0.6rem; }

    .btn { padding: 0.85rem 1.4rem; font-size: 0.85rem; }
    .btn-submit { width: 100%; justify-content: center; }

    .contact-mega { font-size: clamp(1.4rem, 7.5vw, 2.2rem); }

    .mobile-menu a { font-size: 1.5rem; padding: 0.9rem 0; }
    .mobile-menu { padding: 6rem 1.5rem 2rem; }

    .loader-text { font-size: 3rem; }
    .loader-content { width: min(280px, 85vw); }
    .loader-status { font-size: 0.65rem; }
}

/* ---------- ULTRA SMALL (≤360px) ---------- */
@media (max-width: 360px) {
    .section { padding: 3rem 0; }
    .hero-title.kinetic { font-size: clamp(2rem, 18vw, 3.5rem); }
    .hero-meta .meta-value { font-size: 0.82rem; }
    .hero-meta .meta-label { font-size: 0.6rem; }
    .section-title { font-size: clamp(1.6rem, 7.5vw, 2.5rem); }
    .about-stats { grid-template-columns: 1fr; }
    .stat-card { padding: 1rem; }
    .stat-num { font-size: 1.8rem; }
    .bento-body h3 { font-size: 1.05rem; }
    .contact-mega { font-size: 1.3rem; }
}

/* ---------- LANDSCAPE PHONES ---------- */
@media (max-height: 500px) and (orientation: landscape) {
    .hero { min-height: auto; padding: 4.5rem 0 2rem; }
    .hero-title.kinetic { font-size: clamp(2rem, 10vw, 4rem); }
    .hero-meta { grid-template-columns: repeat(4, 1fr); gap: 0.75rem; padding: 0.75rem 0; }
    .section { padding: 2.5rem 0; }
}

/* ---------- SAFE AREAS (Notch / Dynamic Island) ---------- */
@supports (padding: env(safe-area-inset-top)) {
    nav { padding-top: max(0.9rem, env(safe-area-inset-top)); }
    nav.scrolled { padding-top: max(0.7rem, env(safe-area-inset-top)); }
    .mobile-menu { padding-top: calc(4.5rem + env(safe-area-inset-top)); }
    .footer { padding-bottom: max(2rem, env(safe-area-inset-bottom)); }
}

/* ---------- HOVER FALLBACK (touch) ---------- */
@media (hover: none) {
    .bento-card:hover { transform: none; box-shadow: none; }
    .bento-card:hover .bento-media img { transform: none; }
    .bento-card:hover .bento-shine { transform: translateX(-100%); }
    .stat-card:hover { transform: none; box-shadow: none; }
    .stack-card:hover { transform: none; box-shadow: none; }
    .social-links a:hover { transform: none; }
    .info-card:hover { transform: none; }
    .btn-primary:hover { transform: none; }
    .btn-ghost:hover { transform: none; }

    .bento-card:active { border-color: var(--border-strong); }
    .btn-primary:active { transform: scale(0.97); }
    .btn-ghost:active { background: var(--surface-elev); transform: scale(0.97); }
    .social-links a:active { background: var(--accent); color: white; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .kinetic-word > span { opacity: 1; transform: none; }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- PRINT ---------- */
@media print {
    .grain, .spotlight, .cursor, .scroll-progress,
    .section-rail, nav, .mobile-menu, .loader,
    .hero-background, .hero-scroll, .tech-marquee { display: none !important; }
    .section { padding: 2rem 0; }
    .bento { display: block; }
    .bento-card { break-inside: avoid; margin-bottom: 1rem; border: 1px solid #ccc; }
    body, body::before { background: white; }
    * { color: #111 !important; -webkit-text-fill-color: #111 !important; -webkit-text-stroke: none !important; }
}
