/* ============================================================
   SIGNAL — Thota Sai Sanjay portfolio
   Design system: dark "void" canvas, multi-hue signature gradient
   (violet -> fuchsia -> cyan), Bricolage Grotesque display +
   Space Grotesk body + JetBrains Mono data.
   ============================================================ */

:root {
    /* core palette */
    --void: #05070F;
    --void-2: #080B16;
    --panel: #0B1120;
    --panel-2: #0E1525;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --paper: #EAF0FF;
    --mist: #8A93AB;
    --mist-2: #5C657C;

    /* signature accents */
    --violet: #7A5CFF;
    --fuchsia: #FF3D8B;
    --cyan: #22D3EE;
    --amber: #FFB547;
    --green: #34E5A0;

    --grad: linear-gradient(110deg, var(--violet) 0%, var(--fuchsia) 52%, var(--cyan) 100%);
    --grad-soft: linear-gradient(110deg, rgba(122, 92, 255, .18), rgba(255, 61, 139, .14), rgba(34, 211, 238, .16));

    --radius: 18px;
    --radius-lg: 26px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --maxw: 1240px;

    --font-display: "Bricolage Grotesque", "Space Grotesk", system-ui, sans-serif;
    --font-body: "Space Grotesk", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, monospace;

    /* glass / surface literals (themeable) */
    --glass: rgba(8, 11, 22, 0.55);
    --glass-strong: rgba(8, 11, 22, 0.82);
    --glass-menu: rgba(8, 11, 22, 0.96);
    --tint: rgba(255, 255, 255, 0.03);
    --tint-2: rgba(255, 255, 255, 0.06);
    --shadow-card: rgba(0, 0, 0, 0.9);
    --shadow-soft: rgba(0, 0, 0, 0.8);
    --media-veil: rgba(5, 7, 15, 0.55);
    --grain-opacity: 0.035;
    color-scheme: dark;
}

/* ---------- LIGHT THEME ---------- */
:root[data-theme="light"] {
    --void: #F2F4FD;
    --void-2: #E6EAF6;
    --panel: #FFFFFF;
    --panel-2: #EEF1FB;
    --line: rgba(20, 22, 60, 0.12);
    --line-2: rgba(20, 22, 60, 0.20);
    --paper: #0D1326;
    --mist: #3F485F;
    --mist-2: #5F6884;

    --violet: #7C3AED;
    --fuchsia: #E11D74;
    --cyan: #0E7490;
    --amber: #D97706;
    --green: #059669;

    --grad: linear-gradient(110deg, #7C3AED 0%, #E11D74 50%, #0E7490 100%);
    --grad-soft: linear-gradient(110deg, rgba(124, 58, 237, .20), rgba(225, 29, 116, .16), rgba(14, 116, 144, .18));

    --glass: rgba(255, 255, 255, 0.72);
    --glass-strong: rgba(255, 255, 255, 0.88);
    --glass-menu: rgba(255, 255, 255, 0.97);
    --tint: rgba(124, 58, 237, 0.06);
    --tint-2: rgba(124, 58, 237, 0.11);
    --shadow-card: rgba(36, 23, 90, 0.20);
    --shadow-soft: rgba(36, 23, 90, 0.18);
    --media-veil: rgba(13, 19, 38, 0.10);
    --grain-opacity: 0.018;
    color-scheme: light;
}

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

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

body {
    font-family: var(--font-body);
    background: var(--void);
    color: var(--paper);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    -webkit-tap-highlight-color: transparent;
    transition: background .4s var(--ease), color .4s var(--ease);
}
html, body { max-width: 100%; }

body.no-scroll { overflow: hidden; }

::selection { background: var(--fuchsia); color: #fff; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.mono { font-family: var(--font-mono); letter-spacing: 0.04em; }
.grad {
    background: var(--grad);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- custom cursor ---------- */
.cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0; z-index: 9999;
    pointer-events: none; border-radius: 50%;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}
.cursor-dot { width: 7px; height: 7px; background: #fff; }
.cursor-ring {
    width: 38px; height: 38px; border: 1.5px solid rgba(255,255,255,.6);
    transition: width .25s var(--ease), height .25s var(--ease),
        background .25s var(--ease), border-color .25s var(--ease), opacity .25s;
}
.cursor-ring.hover { width: 62px; height: 62px; background: rgba(255,255,255,.12); border-color: transparent; }
.cursor-ring.down { width: 28px; height: 28px; }
body.cursor-active { cursor: none; }
body.cursor-active a, body.cursor-active button { cursor: none; }

/* ---------- scroll progress ---------- */
.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 0%;
    background: var(--grad); z-index: 9000;
    box-shadow: 0 0 14px rgba(122, 92, 255, .6);
}

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

/* ---------- loader ---------- */
.loader {
    position: fixed; inset: 0; z-index: 10000; background: var(--void);
    display: grid; place-items: center;
    transition: opacity .6s var(--ease), visibility .6s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { width: min(320px, 70vw); display: flex; flex-direction: column; gap: 14px; }
.loader-mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: .35em; color: var(--mist); }
.loader-bar { height: 2px; background: var(--line); overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 0%; background: var(--grad); transition: width .1s linear; }
.loader-count { font-family: var(--font-mono); font-size: 11px; color: var(--paper); align-self: flex-end; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
    width: min(var(--maxw), calc(100% - 32px)); z-index: 8000;
    display: flex; align-items: center; gap: 18px;
    padding: 10px 12px 10px 18px;
    border: 1px solid var(--line);
    border-radius: 60px;
    background: var(--glass);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    transition: transform .5s var(--ease), background .4s, border-color .4s, top .4s var(--ease);
}
.nav.shrink { top: 8px; background: var(--glass-strong); }
.nav.hide { transform: translateX(-50%) translateY(-140%); }

.nav-logo { display: inline-flex; align-items: center; gap: 8px; position: relative; }
.logo-mark {
    font-family: var(--font-display); font-weight: 800; font-size: 18px;
    letter-spacing: -.02em;
}
.logo-pulse {
    width: 8px; height: 8px; border-radius: 50%; background: var(--green);
    box-shadow: 0 0 0 0 rgba(52, 229, 160, .7); animation: pulse 2.4s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 229, 160, .55); }
    70% { box-shadow: 0 0 0 8px rgba(52, 229, 160, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 229, 160, 0); }
}

.nav-menu { list-style: none; display: flex; gap: 4px; margin-left: auto; }
.nav-link {
    position: relative; display: inline-block; padding: 8px 14px;
    font-size: 14px; font-weight: 500; color: var(--mist);
    border-radius: 30px; transition: color .25s, background .25s;
}
.nav-link:hover { color: var(--paper); }
.nav-link.active { color: var(--paper); background: var(--tint-2); }

.nav-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 40px; font-weight: 600; font-size: 14px;
    color: #fff; background: var(--grad);
    box-shadow: 0 6px 24px -8px rgba(122, 92, 255, .8);
    transition: transform .3s var(--ease), box-shadow .3s;
}
.nav-cta svg { transition: transform .3s var(--ease); }
.nav-cta:hover svg { transform: translateX(3px); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 40px; height: 40px;
    align-items: center; justify-content: center; background: none; border: none; }
.nav-toggle span { width: 20px; height: 2px; background: var(--paper); border-radius: 2px; transition: .3s var(--ease); }
.nav-toggle.open span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* theme toggle */
.theme-toggle {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line-2); background: var(--tint); color: var(--paper);
    transition: background .3s, border-color .3s, transform .4s var(--ease); position: relative; overflow: hidden;
}
.theme-toggle:hover { background: var(--tint-2); }
.theme-toggle svg { position: absolute; width: 18px; height: 18px; transition: transform .45s var(--ease), opacity .35s; }
.theme-toggle .ic-moon { transform: translateY(0) rotate(0); opacity: 1; }
.theme-toggle .ic-sun { transform: translateY(140%) rotate(-90deg); opacity: 0; }
:root[data-theme="light"] .theme-toggle .ic-moon { transform: translateY(-140%) rotate(90deg); opacity: 0; }
:root[data-theme="light"] .theme-toggle .ic-sun { transform: translateY(0) rotate(0); opacity: 1; }

/* light-mode atmospheric tuning */
:root[data-theme="light"] .hero-aura {
    background:
        radial-gradient(58% 50% at 16% 20%, rgba(124, 58, 237, .30), transparent 68%),
        radial-gradient(54% 46% at 86% 28%, rgba(225, 29, 116, .24), transparent 68%),
        radial-gradient(52% 52% at 62% 102%, rgba(14, 165, 200, .22), transparent 68%);
}
:root[data-theme="light"] .portrait-frame::after {
    background: linear-gradient(160deg, transparent 55%, rgba(109, 40, 217, .14), rgba(219, 39, 119, .12));
    mix-blend-mode: multiply;
}
:root[data-theme="light"] .contact-aura {
    background: radial-gradient(52% 62% at 50% 50%, rgba(124, 58, 237, .22), transparent 70%),
        radial-gradient(42% 52% at 70% 62%, rgba(225, 29, 116, .18), transparent 70%);
}
:root[data-theme="light"] .cursor-dot,
:root[data-theme="light"] .cursor-ring { mix-blend-mode: normal; }
:root[data-theme="light"] .cursor-dot { background: #101725; }
:root[data-theme="light"] .cursor-ring { border-color: rgba(16, 23, 37, .5); }
:root[data-theme="light"] .cursor-ring.hover { background: rgba(16, 23, 37, .1); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative; min-height: 100svh; display: flex; align-items: center;
    padding: 120px 24px 90px; overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-aura {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(60% 50% at 18% 22%, rgba(122, 92, 255, .22), transparent 70%),
        radial-gradient(55% 45% at 85% 30%, rgba(255, 61, 139, .16), transparent 70%),
        radial-gradient(50% 50% at 60% 100%, rgba(34, 211, 238, .14), transparent 70%);
    animation: auraDrift 16s ease-in-out infinite alternate;
}
@keyframes auraDrift { to { transform: translate3d(0, -26px, 0) scale(1.06); } }

.hero-inner {
    position: relative; z-index: 3; width: 100%; max-width: var(--maxw); margin: 0 auto;
    display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px, 5vw, 70px); align-items: center;
}
.hero-main { min-width: 0; }

/* hero circular photo */
.hero-aside { display: flex; flex-direction: column; align-items: center; gap: 30px; }
.hero-photo {
    position: relative; width: clamp(230px, 26vw, 340px); aspect-ratio: 1; display: grid; place-items: center;
    animation: photoFloat 6s ease-in-out infinite;
}
@keyframes photoFloat { 50% { transform: translateY(-16px); } }

.photo-core {
    position: relative; z-index: 3; width: 80%; height: 80%; border-radius: 50%; overflow: hidden;
    border: 7px solid var(--void);
    box-shadow: 0 28px 64px -24px var(--shadow-card), 0 0 0 1px var(--line);
}
.photo-core img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }

/* soft ambient glow behind the photo */
.ph-glow {
    position: absolute; inset: 9%; z-index: 0; border-radius: 50%; filter: blur(40px); opacity: .42;
    background: radial-gradient(circle, var(--violet) 0%, transparent 70%);
    animation: glowPulse 7s ease-in-out infinite;
}
@keyframes glowPulse { 50% { opacity: .62; transform: scale(1.05); } }

/* single refined gradient ring, slow rotation */
.ph-ring {
    position: absolute; inset: 0; z-index: 1; border-radius: 50%;
    background: conic-gradient(from 130deg, var(--violet), var(--fuchsia) 42%, var(--cyan) 72%, var(--violet));
    -webkit-mask: radial-gradient(circle farthest-side, transparent 84%, #000 86%);
    mask: radial-gradient(circle farthest-side, transparent 84%, #000 86%);
    animation: spin 16s linear infinite;
}

/* subtle technical dashed orbit */
.ph-dash {
    position: absolute; inset: -5.5%; z-index: 2; border-radius: 50%;
    border: 1.5px dashed var(--line-2); animation: spin 60s linear infinite reverse;
}

/* one accent node travelling the orbit */
.ph-orbit { position: absolute; inset: -5.5%; z-index: 2; animation: spin 20s linear infinite; }
.ph-orbit i {
    position: absolute; top: -5px; left: 50%; transform: translateX(-50%);
    width: 11px; height: 11px; border-radius: 50%; background: var(--fuchsia);
    box-shadow: 0 0 14px var(--fuchsia);
}
@keyframes spin { to { transform: rotate(360deg); } }

.photo-badge {
    position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%); z-index: 4;
    display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
    padding: 8px 15px; border-radius: 40px; font-size: 11px; color: var(--paper);
    background: var(--glass-strong); border: 1px solid var(--line-2);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 26px -12px var(--shadow-card);
}

/* hero social buttons */
.hero-socials { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; width: 100%; max-width: 100%; }
.social-btn {
    display: inline-flex; align-items: center; gap: 9px; padding: 12px 18px;
    border: 1px solid var(--line-2); border-radius: 40px; background: var(--tint);
    font-size: 14px; font-weight: 500; color: var(--paper);
    transition: transform .3s var(--ease), background .3s, border-color .3s, box-shadow .3s; will-change: transform;
}
.social-btn svg { transition: transform .3s var(--ease); }
.social-btn:hover { background: var(--tint-2); border-color: transparent; box-shadow: 0 12px 28px -14px var(--shadow-card); }
.social-btn:hover svg { transform: scale(1.12); }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px; border: 1px solid var(--line); border-radius: 40px;
    background: var(--tint); font-size: 12px; color: var(--mist);
    margin-bottom: 30px;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green);
    box-shadow: 0 0 12px var(--green); animation: pulse 2.4s infinite; }

.hero-name {
    font-family: var(--font-display); font-weight: 800;
    font-size: clamp(2.8rem, 7.2vw, 6.6rem); line-height: 0.92;
    letter-spacing: -0.04em; margin-bottom: 26px;
}
.hero-name .line { display: block; overflow: hidden; }
.hero-name .word { display: inline-block; will-change: transform; }

.hero-role {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-family: var(--font-mono); font-size: clamp(1rem, 2.6vw, 1.6rem);
    margin-bottom: 28px; min-height: 1.6em;
}
.hero-role .dim { color: var(--mist-2); }
.typed { color: var(--paper); font-weight: 500; }
.caret { color: var(--fuchsia); animation: blink 1s step-end infinite; font-weight: 700; }
@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
    max-width: 620px; font-size: clamp(1rem, 1.4vw, 1.18rem);
    color: var(--mist); margin-bottom: 38px;
}
.hero-desc strong { color: var(--paper); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 64px; }

.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 15px 26px; border-radius: 44px; font-weight: 600; font-size: 15px;
    transition: transform .3s var(--ease), box-shadow .3s, background .3s, border-color .3s, color .3s;
    will-change: transform;
}
.btn svg { transition: transform .3s var(--ease); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 34px -10px rgba(122, 92, 255, .85); }
.btn-primary:hover { box-shadow: 0 16px 44px -10px rgba(255, 61, 139, .8); }
.btn-primary:hover svg { transform: translate(3px, -3px); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--paper); background: var(--tint); }
.btn-ghost:hover { background: var(--tint-2); border-color: transparent; }
.live-pip { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }

.hero-stats {
    display: grid; grid-template-columns: repeat(4, auto); gap: clamp(22px, 5vw, 60px);
    justify-content: start; align-items: end;
}
.hero-stats .stat dt {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(1.8rem, 4.5vw, 3rem); line-height: 1; letter-spacing: -.03em;
}
.hero-stats .rank { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stats .ord { font-size: .5em; color: var(--fuchsia); vertical-align: super; }
.hero-stats .stat dd { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em;
    text-transform: uppercase; color: var(--mist-2); margin-top: 8px; }

/* social rail */
.social-rail {
    position: absolute; right: 30px; bottom: 40px; z-index: 4;
    display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.social-rail a { color: var(--mist); transition: color .25s, transform .25s var(--ease); }
.social-rail a:hover { color: var(--paper); transform: translateY(-3px); }
.rail-line { width: 1px; height: 60px; background: linear-gradient(var(--line-2), transparent); }

/* scroll cue */
.scroll-cue {
    position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 4;
    display: flex; align-items: center; gap: 12px; color: var(--mist);
    font-size: 10px; letter-spacing: .3em;
}
.scroll-track { width: 22px; height: 36px; border: 1.5px solid var(--line-2); border-radius: 20px; position: relative; }
.scroll-thumb { position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 8px; border-radius: 4px; background: var(--paper); animation: scrollAnim 1.8s var(--ease) infinite; }
@keyframes scrollAnim { 0% { opacity: 0; top: 6px; } 30% { opacity: 1; } 100% { opacity: 0; top: 20px; } }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    padding: 20px 0; overflow: hidden; background: var(--void-2);
}
.marquee-track { display: inline-flex; align-items: center; gap: 28px; white-space: nowrap;
    animation: marquee 28s linear infinite; will-change: transform; }
.marquee-track span { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.1rem, 2.4vw, 1.7rem); color: var(--paper); }
.marquee-track i { color: var(--fuchsia); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECTION SHELL
   ============================================================ */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 12vw, 150px) 24px; }
.section-head { margin-bottom: 64px; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500;
    text-transform: uppercase; letter-spacing: .12em; color: var(--mist);
    margin-bottom: 18px;
}
.eyebrow.center { justify-content: center; }
.eyebrow .mono { color: var(--fuchsia); }
.section-title {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(2rem, 6vw, 4rem); line-height: 1.02; letter-spacing: -.03em; max-width: 18ch;
}
.section-title em { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.section-subtitle { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 3.5vw, 2.2rem); letter-spacing: -.02em; }
.section-note { margin-top: 18px; color: var(--mist); max-width: 50ch; font-size: 1.05rem; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start; }

.about-portrait { position: sticky; top: 110px; }
.portrait-frame {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--line-2); aspect-ratio: 4/5;
    transform-style: preserve-3d; will-change: transform;
    box-shadow: 0 40px 80px -40px var(--shadow-soft);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 28%; filter: saturate(1.05) contrast(1.04); }
.portrait-frame::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(160deg, transparent 50%, rgba(122,92,255,.25), rgba(255,61,139,.2));
    mix-blend-mode: screen;
}
.portrait-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 38px 38px; opacity: .35;
}
.portrait-tag {
    display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
    padding: 9px 16px; border: 1px solid var(--line); border-radius: 40px;
    font-size: 12px; color: var(--mist); background: var(--panel);
}

.about-lead { font-family: var(--font-display); font-weight: 500;
    font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.45; letter-spacing: -.01em; margin-bottom: 26px; }
.about-lead strong, .about-body p strong { color: var(--paper); font-weight: 600; }
.about-body > p { color: var(--mist); margin-bottom: 22px; max-width: 56ch; }

.about-edu { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.edu-row {
    display: grid; grid-template-columns: 130px 1fr auto; gap: 20px; align-items: center;
    padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--panel); transition: border-color .35s, background .35s, transform .35s var(--ease);
    will-change: transform;
}
.edu-row:hover { border-color: var(--line-2); background: var(--panel-2); }
.edu-meta .mono { font-size: 11px; color: var(--fuchsia); }
.edu-main h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; }
.edu-main p { color: var(--mist); font-size: .9rem; margin-top: 2px; }
.edu-score { text-align: right; }
.edu-score .num { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.edu-score .lbl { display: block; font-size: 10px; color: var(--mist-2); }

/* skills */
.skills { margin-top: clamp(70px, 10vw, 120px); }
.skills-head { margin-bottom: 40px; }
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skill-card {
    position: relative; padding: 28px 26px; border: 1px solid var(--line);
    border-radius: var(--radius); background: var(--panel); overflow: hidden;
    transition: border-color .35s, background .35s, transform .35s var(--ease); will-change: transform;
}
.skill-card::before {
    content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
    background: var(--grad-soft);
}
.skill-card:hover { border-color: var(--line-2); }
.skill-card:hover::before { opacity: 1; }
.skill-no { position: absolute; top: 18px; right: 20px; font-size: 12px; color: var(--mist-2); }
.skill-card h4 { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; margin-bottom: 18px; position: relative; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.chips span {
    font-family: var(--font-mono); font-size: 12px; padding: 6px 12px;
    border: 1px solid var(--line-2); border-radius: 30px; color: var(--paper);
    background: var(--tint); transition: background .25s, border-color .25s, color .25s;
}
.skill-card:hover .chips span { border-color: var(--line-2); }

/* ============================================================
   WORK
   ============================================================ */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.work-card {
    position: relative; display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel);
    transition: border-color .4s, transform .4s var(--ease), box-shadow .4s; will-change: transform;
    transform-style: preserve-3d;
}
.work-card:hover { border-color: var(--line-2); box-shadow: 0 50px 90px -50px var(--shadow-card); }
.work-card.feature { grid-row: span 2; }
.work-card.wide { grid-column: 1 / -1; flex-direction: row; }

/* spotlight that follows cursor */
.work-spot {
    position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
    transition: opacity .4s;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(122,92,255,.16), transparent 60%);
}
.work-card:hover .work-spot { opacity: 1; }
.work-card[data-accent="cyan"] .work-spot { background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%), rgba(34,211,238,.16), transparent 60%); }
.work-card[data-accent="fuchsia"] .work-spot { background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%), rgba(255,61,139,.16), transparent 60%); }
.work-card[data-accent="amber"] .work-spot { background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%), rgba(255,181,71,.14), transparent 60%); }
.work-card[data-accent="green"] .work-spot { background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%), rgba(52,229,160,.14), transparent 60%); }

.work-media { position: relative; overflow: hidden; aspect-ratio: 16/10; background: var(--void-2); }
.work-card.wide .work-media { aspect-ratio: auto; flex: 1 1 46%; min-height: 320px; }
.work-card.feature .work-media { aspect-ratio: 16/11; }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.work-card:hover .work-media img { transform: scale(1.05); }
.work-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, var(--media-veil)); }

/* generated visuals (no screenshot) */
.work-media.gen { display: grid; place-items: center; }
.work-media.gen::after { display: none; }
.gen-pose { color: var(--cyan); background: radial-gradient(circle at 50% 40%, rgba(34,211,238,.1), transparent 70%), var(--void-2); }
.pose-svg { width: 56%; max-width: 220px; filter: drop-shadow(0 0 14px rgba(34,211,238,.5)); animation: floaty 5s ease-in-out infinite; }
.gen-grid { color: var(--amber); background: radial-gradient(circle at 50% 50%, rgba(255,181,71,.08), transparent 70%), var(--void-2); }
.qr { display: grid; grid-template-columns: repeat(4, 18px); grid-auto-rows: 18px; gap: 5px; }
.qr span { background: currentColor; border-radius: 3px; opacity: .85; animation: qrpop 3s ease-in-out infinite; }
.qr span:nth-child(odd) { opacity: .35; }
.qr span:nth-child(3n) { animation-delay: .4s; }
.qr span:nth-child(2n) { animation-delay: .8s; }
@keyframes qrpop { 50% { opacity: .15; } }
.gen-chart { color: var(--green); background: radial-gradient(circle at 50% 80%, rgba(52,229,160,.1), transparent 70%), var(--void-2); }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; }
.bars i { width: 16px; height: var(--h); background: linear-gradient(var(--green), rgba(52,229,160,.2)); border-radius: 4px 4px 0 0;
    transform-origin: bottom; animation: grow 2.6s var(--ease) infinite alternate; }
.bars i:nth-child(2) { animation-delay: .2s; } .bars i:nth-child(3) { animation-delay: .4s; }
.bars i:nth-child(4) { animation-delay: .6s; } .bars i:nth-child(5) { animation-delay: .8s; } .bars i:nth-child(6) { animation-delay: 1s; }
@keyframes grow { from { transform: scaleY(.55); } to { transform: scaleY(1); } }
@keyframes floaty { 50% { transform: translateY(-10px); } }

.work-content { position: relative; z-index: 3; padding: 28px; display: flex; flex-direction: column; flex: 1; }
.work-card.wide .work-content { justify-content: center; flex: 1 1 54%; }
.work-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.work-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .1em; color: var(--mist); }
.work-index { font-size: 12px; color: var(--mist-2); }
.work-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3.5vw, 2.4rem); letter-spacing: -.03em; line-height: 1; }
.work-sub { color: var(--paper); font-weight: 500; margin-top: 8px; font-size: 1.02rem; }
.work-desc { color: var(--mist); margin: 14px 0 20px; font-size: .96rem; }
.work-desc strong { color: var(--paper); font-weight: 600; }
.work-tech { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }
.work-tech span { font-size: 11px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 24px; color: var(--mist); }
.work-link {
    margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--paper);
    padding-bottom: 3px; border-bottom: 1.5px solid var(--line-2); transition: border-color .3s, gap .3s var(--ease);
}
.work-link:hover { border-color: var(--fuchsia); gap: 12px; }
.work-link svg { transition: transform .3s var(--ease); }
.work-link:hover svg { transform: translate(2px, -2px); }

/* ============================================================
   PROJECT SHOWCASE (alternating)
   ============================================================ */
.proj-list { display: flex; flex-direction: column; gap: clamp(72px, 11vw, 150px); }
.proj {
    display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(34px, 6vw, 78px); align-items: center;
}
.proj:nth-child(even) .proj-visual { order: 2; }

.proj-visual { position: relative; perspective: 1200px; will-change: transform; }
.proj-glow {
    position: absolute; inset: -10% -8%; z-index: 0; border-radius: 50%; filter: blur(55px); opacity: .55;
    background: radial-gradient(circle at 50% 50%, var(--violet), transparent 62%);
}
.proj[data-accent="cyan"] .proj-glow { background: radial-gradient(circle at 50% 50%, var(--cyan), transparent 62%); }
.proj[data-accent="amber"] .proj-glow { background: radial-gradient(circle at 50% 50%, var(--amber), transparent 62%); }
.proj[data-accent="green"] .proj-glow { background: radial-gradient(circle at 50% 50%, var(--green), transparent 62%); }
.proj[data-accent="fuchsia"] .proj-glow { background: radial-gradient(circle at 50% 50%, var(--fuchsia), transparent 62%); }

.proj-frame {
    position: relative; z-index: 1; border-radius: 16px; overflow: hidden;
    border: 1px solid var(--line-2); background: var(--panel-2);
    box-shadow: 0 44px 90px -40px var(--shadow-card); transform-style: preserve-3d;
}
.proj-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: var(--void-2); border-bottom: 1px solid var(--line); }
.proj-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.proj-bar i:nth-child(1) { background: #FF5F57; } .proj-bar i:nth-child(2) { background: #FEBC2E; } .proj-bar i:nth-child(3) { background: #28C840; }
.proj-url { margin-left: 12px; font-size: 12px; color: var(--mist); }
.proj-shot { overflow: hidden; background: var(--void-2); }
.proj-shot img { width: 100%; height: auto; display: block; object-fit: contain; transition: transform 1s var(--ease); }
.proj-visual:hover .proj-shot img { transform: scale(1.04); }

.proj-index { display: block; font-size: 12px; color: var(--mist-2); letter-spacing: .18em; margin-bottom: 16px; }
.proj-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .08em; color: var(--mist); margin-bottom: 16px; }
.proj-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.03em; line-height: 1; }
.proj-sub { color: var(--paper); font-weight: 500; font-size: clamp(1.05rem, 2vw, 1.25rem); margin-top: 12px; }
.proj-desc { color: var(--mist); margin: 16px 0 22px; max-width: 46ch; font-size: 1rem; }
.proj-desc strong { color: var(--paper); font-weight: 600; }
.proj-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.proj-tech span { font-size: 11px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 24px; color: var(--mist); background: var(--tint); }
.proj-cta {
    display: inline-flex; align-items: center; gap: 9px; padding: 13px 24px; border-radius: 40px;
    font-weight: 600; font-size: 14px; color: #fff; background: var(--grad);
    box-shadow: 0 14px 32px -12px rgba(122, 92, 255, .7);
    transition: transform .3s var(--ease), box-shadow .3s; will-change: transform;
}
.proj-cta svg { transition: transform .3s var(--ease); }
.proj-cta:hover { box-shadow: 0 18px 40px -12px rgba(255, 61, 139, .65); }
.proj-cta:hover svg { transform: translate(3px, -3px); }

/* ============================================================
   AWARDS
   ============================================================ */
.honor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: clamp(60px, 9vw, 110px); }
.honor-card {
    position: relative; display: flex; align-items: center; gap: 22px;
    padding: 28px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--panel); overflow: hidden;
    transition: border-color .35s, background .35s, transform .35s var(--ease); will-change: transform;
}
.honor-card:hover { border-color: var(--line-2); background: var(--panel-2); }
.honor-card.hl { border-color: rgba(255, 181, 71, .35); background: linear-gradient(120deg, rgba(255,181,71,.08), var(--panel)); }
.honor-rank { font-size: 13px; color: var(--mist-2); width: 26px; flex-shrink: 0; }
.honor-body { flex: 1; }
.honor-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; letter-spacing: -.01em; }
.honor-body p { color: var(--mist); font-size: .9rem; margin-top: 4px; }
.honor-pill { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
    padding: 6px 12px; border-radius: 30px; border: 1px solid var(--line-2); color: var(--mist); flex-shrink: 0; }
.honor-pill.gold { color: #1a1205; background: var(--amber); border-color: transparent; font-weight: 700; }

.cert-head { margin-bottom: 32px; }
.cert-list { list-style: none; border-top: 1px solid var(--line); }
.cert-item {
    display: flex; align-items: baseline; gap: 28px; padding: 24px 8px;
    border-bottom: 1px solid var(--line); transition: padding .35s var(--ease), background .35s;
}
.cert-item:hover { padding-left: 22px; background: linear-gradient(90deg, var(--tint), transparent); }
.cert-issuer { flex: 0 0 200px; font-size: 12px; color: var(--fuchsia); }
.cert-name { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.05rem, 2.2vw, 1.35rem); letter-spacing: -.01em; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { position: relative; text-align: center; overflow: hidden; }
.contact-aura {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(50% 60% at 50% 50%, rgba(122,92,255,.18), transparent 70%),
        radial-gradient(40% 50% at 70% 60%, rgba(255,61,139,.14), transparent 70%);
}
.contact-inner { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }
.contact-title { font-family: var(--font-display); font-weight: 700;
    font-size: clamp(2.4rem, 8vw, 5.5rem); line-height: 1; letter-spacing: -.04em; margin: 8px 0 22px; }
.contact-lead { color: var(--mist); font-size: 1.15rem; max-width: 48ch; margin: 0 auto 44px; }
.contact-mail {
    display: inline-flex; align-items: center; gap: 14px;
    font-family: var(--font-display); font-weight: 600;
    font-size: clamp(1.3rem, 4.5vw, 2.6rem); letter-spacing: -.02em; color: var(--paper);
    padding-bottom: 8px; border-bottom: 2px solid var(--line-2);
    transition: border-color .35s, gap .35s var(--ease);
}
.contact-mail:hover { border-color: var(--fuchsia); gap: 20px; }
.contact-mail svg { color: var(--fuchsia); transition: transform .35s var(--ease); }
.contact-mail:hover svg { transform: translate(4px, -4px); }

.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 48px; }
.contact-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px;
    border: 1px solid var(--line); border-radius: 40px; font-size: 14px; color: var(--paper);
    background: var(--tint); transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.contact-chip .mono { font-size: 11px; color: var(--fuchsia); }
.contact-chip:hover { border-color: var(--line-2); background: var(--tint-2); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    max-width: var(--maxw); margin: 0 auto; padding: 36px 24px;
    border-top: 1px solid var(--line);
    display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
    font-size: 12px; color: var(--mist-2);
}
.footer-mid { flex: 1; text-align: center; min-width: 200px; }
.footer-top { display: inline-flex; align-items: center; gap: 8px; color: var(--mist); transition: color .3s; }
.footer-top:hover { color: var(--paper); }
.footer-top svg { transition: transform .3s var(--ease); }
.footer-top:hover svg { transform: translateY(-3px); }

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
    .hero { padding-top: 130px; }
    .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: left; }
    .hero-aside { align-items: center; min-width: 0; width: 100%; }
    .hero-socials { justify-content: center; max-width: 300px; margin-inline: auto; }
    .about-grid { grid-template-columns: 1fr; }
    .about-portrait { position: static; max-width: 340px; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .proj { grid-template-columns: 1fr; gap: 30px; }
    .proj:nth-child(even) .proj-visual { order: 0; }
    .proj-desc { max-width: 60ch; }
    .honor-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .nav-menu {
        position: absolute; top: calc(100% + 12px); left: 0; right: 0;
        flex-direction: column; gap: 4px; padding: 14px;
        background: var(--glass-menu); backdrop-filter: blur(20px) saturate(140%);
        -webkit-backdrop-filter: blur(20px) saturate(140%);
        border: 1px solid var(--line); border-radius: 22px;
        box-shadow: 0 30px 60px -30px var(--shadow-card);
        transform: translateY(-12px) scale(.98); opacity: 0; pointer-events: none;
        transition: .35s var(--ease);
    }
    .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
    .nav-link { padding: 13px 16px; }
    .nav-cta { display: none; }
    .theme-toggle { margin-left: auto; }
    .nav-toggle { display: flex; }
}

@media (max-width: 720px) {
    .nav { padding: 8px 8px 8px 16px; gap: 8px; }
    .hero { padding: 110px 20px 80px; }
    .hero-actions { margin-bottom: 48px; }
    .social-rail { display: none; }
    .scroll-cue { display: none; }
    .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 26px 20px; }
    .section { padding: 72px 20px; }
    .section-head { margin-bottom: 44px; }
    .cert-issuer { flex-basis: auto; }
    .cert-item { gap: 6px; flex-direction: column; align-items: flex-start; }
    .cert-item:hover { padding-left: 8px; }
    .edu-row { grid-template-columns: 1fr auto; gap: 8px 16px; padding: 18px; }
    .edu-meta { grid-column: 1 / -1; }
    .skills-grid { grid-template-columns: 1fr; }
    .honor-card { padding: 22px; gap: 16px; }
    .work-content { padding: 24px 22px; }
    .footer { justify-content: center; text-align: center; }
    .footer-mid { order: 3; }
}

@media (max-width: 480px) {
    .hero { padding: 100px 18px 70px; }
    .hero-name { font-size: clamp(2.7rem, 16vw, 4rem); }
    .hero-eyebrow { font-size: 11px; padding: 7px 13px; }
    .marquee-track span { font-size: 1.15rem; }
    .section { padding: 64px 18px; }
    .hero-stats { gap: 22px 16px; }
    .hero-stats .stat dt { font-size: 1.7rem; }
    .btn { width: 100%; justify-content: center; }
    .work-title { font-size: 1.7rem; }
    .honor-card { flex-wrap: wrap; }
    .honor-pill { order: 3; }
    .hero-socials { gap: 9px; }
    .social-btn { padding: 11px 15px; font-size: 13px; }
}

@media (max-width: 360px) {
    .hero-stats { grid-template-columns: 1fr; }
}

/* ============================================================
   REDUCED MOTION + TOUCH
   ============================================================ */
@media (hover: none) {
    .cursor-dot, .cursor-ring { display: none; }
    body.cursor-active { cursor: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
        transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
    .hero-canvas { display: none; }
    .cursor-dot, .cursor-ring { display: none; }
}
