/* Tailwind utilities (replacing CDN dependency) */
.grid { display: grid; }
.items-center { align-items: center; }
.relative { position: relative; }
.min-h-screen { min-height: 100vh; }

/* ─── Featured project card ─────────────────────────────────────────────── */
.project-featured {
  border-color: rgba(66, 138, 250, .35);
  background: linear-gradient(160deg, rgba(28, 60, 110, .18), rgba(15, 25, 41, .0));
}
.project-featured .project-art { height: 240px; }
[data-theme="light"] .project-featured {
  background: linear-gradient(160deg, rgba(220, 234, 255, .55), rgba(255,255,255,0));
}
/* On wide screens the featured card spans the full width */
@media (min-width: 821px) {
  .project-featured { grid-column: span 2; }
  .project-featured .project-art { height: 260px; }
  .project-featured .project-content { display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
  .project-featured .project-content > p { flex: 1 1 220px; }
}

:root {
  color-scheme: dark;
  --bg: #080d18;
  --bg-elevated: #0c1422;
  --surface: rgba(15, 25, 41, .72);
  --surface-solid: #101a2a;
  --surface-hover: #132238;
  --text: #f2f6ff;
  --text-soft: #d3dceb;
  --muted: #8d9bb1;
  --line: rgba(148, 171, 207, .14);
  --line-strong: rgba(148, 171, 207, .24);
  --blue: #4384ff;
  --cyan: #45d6e8;
  --green: #67e8a5;
  --shadow: 0 24px 80px rgba(0, 0, 0, .22);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f7fc;
  --bg-elevated: #fff;
  --surface: rgba(255, 255, 255, .76);
  --surface-solid: #fff;
  --surface-hover: #f4f8ff;
  --text: #101827;
  --text-soft: #34445c;
  --muted: #697991;
  --line: rgba(49, 73, 110, .13);
  --line-strong: rgba(49, 73, 110, .22);
  --shadow: 0 24px 80px rgba(28, 52, 94, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
body::before {
  position: fixed;
  z-index: -2;
  inset: 0;
  background-image: linear-gradient(rgba(111, 151, 213, .024) 1px, transparent 1px), linear-gradient(90deg, rgba(111, 151, 213, .024) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
button { color: inherit; }
svg { width: 18px; height: 18px; stroke-width: 1.8; }
::selection { color: #fff; background: #2867e9; }
.skip-link { position: fixed; z-index: 99; top: 10px; left: 10px; padding: 10px 16px; border-radius: 8px; background: var(--text); color: var(--bg); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.section-wrap { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 72%, transparent); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.nav-shell { width: min(1240px, calc(100% - 64px)); height: 74px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { display: grid; width: 37px; height: 37px; place-content: center; border: 1px solid rgba(89, 145, 255, .36); border-radius: 12px; background: linear-gradient(145deg, rgba(48, 113, 243, .2), rgba(20, 198, 218, .08)); color: var(--text); font-family: "Space Grotesk", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: -.08em; }
.brand-mark span { color: var(--cyan); }
.brand-mark.nav-profile { overflow: hidden; border: 2px solid rgba(69, 214, 232, .75); border-radius: 50%; background: transparent; box-shadow: 0 0 0 2px rgba(37, 99, 235, .16), 0 0 18px rgba(37, 99, 235, .22); }
.brand-mark.nav-profile img { width: 100%; height: 100%; display: block; border-radius: 50%; object-fit: cover; object-position: center 35%; }
.brand-name { font-family: "Space Grotesk", sans-serif; font-size: 13px; font-weight: 600; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 33px; margin-left: auto; }
.nav-link { position: relative; padding-block: 27px; color: var(--muted); font-size: 12px; font-weight: 600; transition: color .2s ease; }
.nav-link::after { position: absolute; right: 0; bottom: 17px; left: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); content: ""; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 13px; }
.icon-button { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .2s, color .2s, transform .2s; }
.icon-button:hover { border-color: var(--line-strong); color: var(--cyan); transform: translateY(-2px); }
.icon-button svg { width: 17px; height: 17px; }
.theme-sun, [data-theme="light"] .theme-moon { display: none; }
[data-theme="light"] .theme-sun { display: block; }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border: 1px solid rgba(94, 146, 252, .32); border-radius: 11px; background: rgba(42, 100, 220, .12); font-size: 12px; font-weight: 600; transition: background .2s, border-color .2s; }
.nav-cta:hover { border-color: var(--blue); background: rgba(42, 100, 220, .22); }
.nav-cta svg { width: 14px; height: 14px; }
.menu-toggle { display: none; }

.hero { position: relative; overflow: clip; min-height: 680px; display: flex; flex-direction: column; justify-content: center; padding-top: 54px; padding-bottom: 74px; }
.hero::before, .hero::after { position: absolute; z-index: -1; inset: 0; background-size: 140% 140%; content: ""; pointer-events: none; animation: mesh-shift 12s ease-in-out infinite alternate; }
.hero::before { background-image: radial-gradient(ellipse at 12% 22%, rgba(23, 84, 208, .2), transparent 54%); }
.hero::after { background-image: radial-gradient(ellipse at 90% 15%, rgba(7, 150, 173, .18), transparent 46%); animation-duration: 15s; animation-direction: alternate-reverse; }
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 36px; }
.hero-copy { position: relative; z-index: 2; padding-block: 36px; }
.availability { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 29px; padding: 8px 13px; border: 1px solid rgba(91, 220, 160, .2); border-radius: 100px; background: rgba(53, 182, 125, .07); color: #b7f4d0; font-size: 10px; font-weight: 600; letter-spacing: .01em; }
[data-theme="light"] .availability { color: #20734a; background: rgba(53, 182, 125, .09); }
.pulse-dot, .live-indicator, .timezone-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(103, 232, 165, .11), 0 0 14px rgba(103, 232, 165, .62); }
.pulse-dot { animation: pulse 2s infinite; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 17px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .2em; }
.eyebrow-line { width: 23px; height: 1px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; }
.hero h1 { width: 100%; margin-bottom: 18px; font-size: clamp(50px, 5.35vw, 76px) !important; font-weight: 700; letter-spacing: -.085em; line-height: .92; text-transform: uppercase; }
.hero h1 .hero-name-first { display: inline-block; font-size: 1.21em; line-height: .88; }
.hero h1 .hero-name-last { display: inline-block; font-size: 1.027em; line-height: .88; white-space: nowrap; }
.text-gradient { background: linear-gradient(105deg, #6ea2ff 6%, #53b3f6 48%, #67e5e5 100%); background-clip: text; -webkit-text-fill-color: transparent; }
.hero-role { min-height: 28px; margin-bottom: 17px; color: var(--text-soft); font-family: "Space Grotesk", sans-serif; font-size: clamp(14px, 1.35vw, 17px); font-weight: 500; letter-spacing: -.025em; }
.typing-caret { display: inline-block; width: 1px; height: 17px; margin-left: 4px; background: var(--cyan); vertical-align: -3px; animation: blink .85s step-end infinite; }
.hero-description { max-width: 520px; margin-bottom: 29px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 17px; border: 1px solid transparent; border-radius: 11px; font-size: 12px; font-weight: 600; transition: transform .2s ease, box-shadow .2s ease, border-color .2s, background .2s; }
.button svg { width: 15px; height: 15px; transition: transform .2s ease; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: linear-gradient(105deg, #2869ed, #358df5 70%, #21b7d1); box-shadow: 0 8px 28px rgba(41, 106, 235, .26); color: white; }
.button-primary:hover { box-shadow: 0 10px 34px rgba(41, 133, 255, .43); }
.button-primary:hover svg { transform: translateX(4px); }
.button-glass { border-color: var(--line-strong); background: var(--surface); color: var(--text-soft); backdrop-filter: blur(12px); }
.button-glass:hover { border-color: rgba(67, 132, 255, .48); background: var(--surface-hover); }
.social-row { display: flex; align-items: center; gap: 10px; margin-top: 33px; }
.social-label { margin-right: 4px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.social-icon { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: rgba(136, 157, 189, .05); color: var(--muted); transition: color .2s, border-color .2s, transform .2s, background .2s; }
.social-icon svg { width: 15px; height: 15px; }
.social-icon:hover { transform: translateY(-3px); border-color: rgba(68, 139, 255, .5); background: rgba(57, 123, 236, .11); color: var(--cyan); }
.social-text-icon { font-family: "Space Grotesk", sans-serif; font-size: 14px; font-weight: 700; }
.hero-visual { position: relative; min-height: 475px; display: grid; place-items: center; isolation: isolate; }
.portrait-glow { position: absolute; z-index: -1; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(23, 100, 215, .34), rgba(5, 147, 177, .12) 48%, transparent 72%); filter: blur(25px); }
.portrait-ring { position: relative; width: min(390px, 72vw); aspect-ratio: 1; padding: 6px; border-radius: 50%; background: conic-gradient(from 25deg, #2563eb, #06b6d4 26%, rgba(68, 144, 255, .18) 49%, #06b6d4 75%, #2563eb); box-shadow: 0 0 35px rgba(37, 99, 235, .23), 0 0 95px rgba(6, 182, 212, .1); animation: ring-glow 4s ease-in-out infinite alternate; }
.portrait-inner { width: 100%; height: 100%; overflow: hidden; border: 6px solid var(--bg); border-radius: 50%; background: #102242; }
.portrait-inner img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 34%; }
.visual-orbit { position: absolute; width: 410px; height: 410px; border: 1px solid rgba(75, 139, 242, .1); border-radius: 50%; }
.orbit-two { width: 465px; height: 465px; border-style: dashed; border-color: rgba(75, 195, 220, .1); animation: orbit-pulse 4.5s ease-in-out infinite alternate; }
.orbit-one::before, .orbit-one::after { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); content: ""; }
.orbit-one::before { top: 17%; right: 13%; }
.orbit-one::after { bottom: 12%; left: 17%; width: 4px; height: 4px; background: var(--blue); box-shadow: 0 0 14px var(--blue); }
.floating-badge { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: 12px; background: color-mix(in srgb, var(--surface-solid) 83%, transparent); box-shadow: 0 12px 30px rgba(0, 0, 0, .18); color: var(--text-soft); font-size: 10px; font-weight: 600; backdrop-filter: blur(14px); animation: float 5s ease-in-out infinite; }
.badge-python { top: 19%; left: 0; }
.badge-stack { top: 29%; right: 0; animation-delay: -1.8s; }
.badge-build { right: 0; bottom: 19%; animation-delay: -3.2s; }
.badge-symbol { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 6px; background: rgba(74, 143, 251, .18); color: #80aeff; font-family: "Space Grotesk", sans-serif; font-size: 10px; font-weight: 700; }
.badge-spark { color: #5bd7df; font-size: 17px; line-height: 1; }
.badge-check { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: rgba(83, 218, 163, .14); color: #65e9ad; }
.badge-check svg { width: 12px; height: 12px; }
.visual-caption { position: absolute; bottom: 0; display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; }
.caption-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.scroll-cue { position: absolute; bottom: 17px; left: 0; display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.scroll-cue span { position: relative; width: 17px; height: 26px; border: 1px solid var(--line-strong); border-radius: 99px; }
.scroll-cue span::after { position: absolute; top: 5px; left: 7px; width: 2px; height: 5px; border-radius: 2px; background: var(--cyan); content: ""; animation: scroll-tick 1.5s ease-in-out infinite; }

.section-block { padding-top: 108px; }
.section-heading { max-width: 620px; margin-bottom: 40px; }
.section-heading h2 { margin: 0 0 15px; font-size: clamp(34px, 4.5vw, 49px); font-weight: 600; letter-spacing: -.065em; line-height: 1.1; }
.section-intro { max-width: 470px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.section-heading-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 34px; }
.section-heading-row .section-intro { max-width: 340px; padding-bottom: 5px; }
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr .85fr; grid-template-rows: 245px 225px; gap: 14px; }
.bento-card, .skill-card, .project-card, .contact-form { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow); }
.bento-card { padding: 22px; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.bento-card:hover, .skill-card:hover { transform: translateY(-5px); border-color: rgba(65, 139, 247, .33); background: var(--surface-hover); }
.education-card { grid-column: span 1; }
.strength-card { grid-column: span 2; }
.metric-card { grid-column: span 1; background: linear-gradient(145deg, rgba(22, 52, 106, .48), rgba(16, 29, 49, .85)); }
.stack-card { grid-column: span 1; }
.deployed-card { grid-column: span 1; background: linear-gradient(145deg, rgba(9, 47, 64, .5), rgba(15, 25, 41, .82)); }
.card-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 21px; border: 1px solid rgba(72, 140, 255, .2); border-radius: 11px; background: rgba(53, 113, 232, .1); color: #72a8ff; }
.card-icon svg { width: 18px; height: 18px; }
.card-kicker { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .15em; }
.bento-card h3 { margin: 5px 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -.04em; }
.bento-card p { margin-bottom: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.card-foot { position: absolute; right: 22px; bottom: 18px; left: 22px; display: flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: 9px; }
.mini-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }
.card-watermark { position: absolute; right: 16px; bottom: 7px; color: rgba(123, 160, 212, .08); font-family: "Space Grotesk", sans-serif; font-size: 58px; font-weight: 700; letter-spacing: -.1em; }
.strength-card .card-icon { float: left; margin: 0 13px 15px 0; }
.strength-card > .card-kicker { display: block; padding-top: 5px; }
.strength-card h3 { clear: both; margin-top: 17px; }
.strength-list { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 16px; }
.strength-list div { min-height: 54px; display: flex; align-items: flex-start; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(140, 163, 197, .035); color: var(--text-soft); font-size: 9px; line-height: 1.5; }
.strength-list svg { width: 14px; height: 14px; flex: 0 0 14px; color: var(--cyan); }
.metric-icon { position: absolute; top: 20px; right: 20px; color: #8eb6ff; }
.metric-icon svg { width: 17px; height: 17px; }
.metric-card > strong { display: block; margin-top: 13px; font-family: "Space Grotesk", sans-serif; font-size: 63px; font-weight: 600; letter-spacing: -.09em; line-height: 1; }
.metric-card > strong span { color: var(--cyan); }
.metric-card p { margin-top: 8px; color: var(--text-soft); font-size: 11px; line-height: 1.6; }
.metric-rule { display: block; width: 27px; height: 2px; margin: 16px 0 10px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.stack-card .card-icon { margin-bottom: 11px; }
.stack-visual { position: absolute; right: 20px; bottom: 21px; left: 20px; display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.stack-visual span { padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--text-soft); font-size: 7px; font-weight: 700; letter-spacing: .12em; }
.stack-visual svg { width: 12px; height: 12px; color: var(--cyan); }
.deployed-top { display: flex; align-items: center; gap: 10px; }
.deployed-card h3 { position: relative; z-index: 1; margin-top: 17px; font-size: 24px; line-height: 1.08; }
.deployed-card p { position: relative; z-index: 1; max-width: 155px; }
.text-link { position: absolute; z-index: 1; bottom: 20px; left: 22px; display: inline-flex; align-items: center; gap: 7px; color: #84d9e8; font-size: 9px; font-weight: 600; }
.text-link svg { width: 13px; height: 13px; }
.deployed-watermark { position: absolute; right: -13px; bottom: -19px; width: 130px; height: 130px; color: rgba(70, 181, 206, .1); stroke-width: .8; }

.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.skill-card { min-height: 218px; display: flex; flex-direction: column; padding: 22px; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.skill-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 23px; }
.skill-icon { width: 40px; height: 40px; display: grid; flex: 0 0 40px; place-items: center; border: 1px solid; border-radius: 12px; }
.skill-icon svg { width: 19px; height: 19px; }
.icon-blue { border-color: rgba(73, 137, 255, .21); background: rgba(73, 137, 255, .1); color: #82acff; }
.icon-cyan { border-color: rgba(47, 197, 216, .2); background: rgba(47, 197, 216, .08); color: #5ddbe7; }
.icon-violet { border-color: rgba(159, 123, 255, .2); background: rgba(159, 123, 255, .09); color: #b7a2ff; }
.skill-heading .card-kicker { display: block; margin-bottom: 3px; }
.skill-heading h3 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: -.025em; }
.skill-tags, .project-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.skill-tags span, .project-tags span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 7px; background: rgba(130, 154, 189, .045); color: var(--text-soft); font-size: 9px; font-weight: 500; }
.skill-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.skill-bottom svg { width: 13px; height: 13px; color: var(--cyan); }

.projects-section { padding-bottom: 4px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; margin: -4px 0 23px; }
.filter-button { min-height: 34px; display: inline-flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 600; transition: color .2s, border-color .2s, background .2s; }
.filter-button:hover, .filter-button.active { border-color: rgba(67, 132, 255, .37); background: rgba(55, 112, 227, .11); color: var(--text); }
.filter-button span:not(.filter-live) { color: #80aaff; font-size: 8px; }
.filter-live { width: 5px; height: 5px; border-radius: 50%; background: #e8ad55; box-shadow: 0 0 9px #e8ad55; }
.projects-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; align-items: stretch; }
.project-card { display: flex; min-width: 0; flex-direction: column; border-radius: 16px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.project-card:hover { transform: translateY(-4px) scale(1.008); border-color: rgba(66, 138, 250, .4); box-shadow: 0 26px 65px rgba(0, 0, 0, .25), 0 0 28px rgba(45, 114, 228, .07); }
.project-card[hidden] { display: none; }
.project-art { position: relative; height: 210px; overflow: hidden; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.project-art::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(179, 207, 240, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(179, 207, 240, .035) 1px, transparent 1px); background-size: 24px 24px; content: ""; }
.art-marketing { background: radial-gradient(ellipse at 50% 30%, #193f81, #10213e 55%, #111a2b); }
.art-pdf { background: radial-gradient(ellipse at 50% 35%, #254e7b, #142d4b 52%, #111a2b); }
.art-cloth { background: radial-gradient(ellipse at 50% 30%, #214353, #142b39 54%, #111a2b); }
.art-testprep { background: radial-gradient(ellipse at 50% 30%, #423877, #251f48 55%, #171a2d); }
.art-video { background: radial-gradient(ellipse at 50% 35%, #553c24, #26303a 45%, #101a27); }
.art-window, .pdf-window, .cloth-window, .quiz-window, .recording-window { position: relative; z-index: 1; width: min(76%, 390px); border: 1px solid rgba(178, 210, 248, .2); border-radius: 11px; background: rgba(11, 20, 34, .83); box-shadow: 0 15px 50px rgba(0, 0, 0, .26); backdrop-filter: blur(12px); transition: transform .35s ease; }
.project-card:hover .art-window, .project-card:hover .pdf-window, .project-card:hover .cloth-window, .project-card:hover .quiz-window, .project-card:hover .recording-window { transform: scale(1.035); }
.art-window { padding: 13px 17px 15px; }
.window-dots { display: flex; gap: 4px; }
.window-dots span { width: 5px; height: 5px; border-radius: 50%; background: #ff6d6d; }
.window-dots span:nth-child(2) { background: #f6bd4b; }
.window-dots span:nth-child(3) { background: #57d393; }
.mockup-title { margin-top: 12px; color: #f2f7ff; font-family: "Space Grotesk", sans-serif; font-size: 18px; font-weight: 600; letter-spacing: -.04em; }
.mockup-subtitle { margin-top: 1px; color: #99aecb; font-size: 8px; }
.channel-row { display: flex; gap: 6px; margin-top: 12px; }
.channel-row span { display: flex; align-items: center; gap: 4px; padding: 5px 6px; border: 1px solid rgba(109, 151, 214, .18); border-radius: 6px; color: #c9d7ea; font-size: 7px; }
.channel-row svg { width: 10px; height: 10px; color: #64d5d9; }
.mockup-chart { height: 37px; display: flex; align-items: end; gap: 4px; margin-top: 9px; padding: 0 6px; border-bottom: 1px solid rgba(109, 151, 214, .16); }
.mockup-chart span { flex: 1; height: 42%; border-radius: 3px 3px 0 0; background: linear-gradient(#46bee0, rgba(39, 114, 203, .26)); }
.mockup-chart span:nth-child(3n) { height: 72%; }.mockup-chart span:nth-child(4n) { height: 56%; }.mockup-chart span:nth-child(5n) { height: 87%; }
.art-label { position: absolute; right: 15px; bottom: 11px; color: rgba(198, 216, 241, .48); font-size: 7px; font-weight: 700; letter-spacing: .16em; }
.pdf-window { padding: 10px 13px 13px; }
.pdf-toolbar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 8px; border-bottom: 1px solid rgba(154, 185, 218, .13); color: #bdcfe5; }
.pdf-logo { display: flex; align-items: center; gap: 4px; font-family: "Space Grotesk", sans-serif; font-size: 8px; font-weight: 700; }
.pdf-logo svg { width: 13px; height: 13px; color: #63c8de; }
.pdf-logo span { color: #67c8de; }
.pdf-menu { color: #8299b6; font-size: 6px; }
.pdf-center { display: flex; align-items: center; flex-direction: column; padding: 11px 0 0; }
.pdf-orbit { width: 35px; height: 35px; display: grid; place-items: center; margin-bottom: 6px; border: 1px solid rgba(93, 196, 226, .35); border-radius: 11px; background: rgba(37, 155, 194, .14); color: #65d8e5; }
.pdf-orbit svg { width: 16px; height: 16px; }
.pdf-center strong { color: #eff5ff; font-family: "Space Grotesk", sans-serif; font-size: 13px; }
.pdf-center small { margin-top: 2px; color: #8da3c0; font-size: 7px; }
.pdf-tools { display: flex; gap: 7px; margin-top: 9px; }
.pdf-tools svg { width: 19px; height: 19px; padding: 4px; border: 1px solid rgba(147, 181, 215, .15); border-radius: 5px; color: #7bcde1; }
.cloth-window { display: flex; width: min(77%, 390px); min-height: 125px; overflow: hidden; }
.cloth-sidebar { width: 33px; display: flex; align-items: center; flex-direction: column; gap: 11px; padding: 9px 5px; border-right: 1px solid rgba(157, 193, 212, .12); color: #89a9b5; }
.cloth-sidebar span { color: #6cd4c9; font-family: "Space Grotesk", sans-serif; font-size: 8px; font-weight: 700; }
.cloth-sidebar svg { width: 11px; height: 11px; }
.cloth-main { flex: 1; padding: 10px 11px; }
.cloth-main > small { display: block; color: #7e9aa4; font-size: 5px; letter-spacing: .13em; }
.cloth-main > strong { display: block; margin-top: 3px; color: #e5f1f3; font-family: "Space Grotesk", sans-serif; font-size: 10px; }
.cloth-stats { display: flex; gap: 6px; margin-top: 8px; }
.cloth-stats span { flex: 1; padding: 6px; border: 1px solid rgba(119, 170, 179, .13); border-radius: 5px; color: #8ca5ab; font-size: 5px; }
.cloth-stats b { display: block; margin-top: 3px; color: #d6efeb; font-size: 7px; }
.cloth-table { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.cloth-table i { height: 2px; background: linear-gradient(90deg, rgba(101, 193, 176, .48), rgba(102, 143, 157, .08) 80%, transparent); }
.cloth-table i:nth-child(2n) { width: 83%; }
.quiz-window { width: min(72%, 370px); padding: 12px 16px; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; color: #d7d1ff; font-family: "Space Grotesk", sans-serif; font-size: 8px; font-weight: 700; letter-spacing: .06em; }
.quiz-top b { color: #b8a4ff; }
.quiz-count { color: #9c92c7; font-family: "Inter", sans-serif; font-size: 6px; font-weight: 500; }
.quiz-progress { height: 3px; margin-top: 8px; overflow: hidden; border-radius: 4px; background: rgba(177, 154, 255, .13); }
.quiz-progress span { display: block; width: 28%; height: 100%; background: linear-gradient(90deg, #9f82ff, #d289e8); }
.quiz-question { margin-top: 12px; color: #f4f0ff; font-family: "Space Grotesk", sans-serif; font-size: 11px; font-weight: 600; line-height: 1.35; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 9px; }
.quiz-options > span { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border: 1px solid rgba(178, 163, 232, .13); border-radius: 5px; color: #c0b9da; font-size: 7px; }
.quiz-options b { color: #9d8bd2; font-size: 6px; }
.quiz-options .quiz-selected { border-color: rgba(172, 142, 255, .42); background: rgba(139, 109, 235, .16); color: #eee5ff; }
.quiz-selected svg { width: 9px; height: 9px; margin-left: auto; color: #b8a2ff; }
.recording-window { padding: 10px 13px; }
.record-top { display: flex; justify-content: space-between; align-items: center; color: #dce7f1; font-family: "Space Grotesk", sans-serif; font-size: 7px; font-weight: 700; letter-spacing: .08em; }
.record-brand { display: flex; align-items: center; gap: 5px; }.record-brand svg { width: 13px; height: 13px; color: #6fcbd9; }
.record-pill { display: flex; align-items: center; gap: 4px; padding: 3px 6px; border: 1px solid rgba(243, 164, 68, .25); border-radius: 99px; color: #f0bf7a; font-family: "Inter", sans-serif; font-size: 6px; }
.record-pill span { width: 4px; height: 4px; border-radius: 50%; background: #f2a854; box-shadow: 0 0 7px #f2a854; }
.record-screen { min-height: 69px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; margin-top: 8px; border: 1px solid rgba(119, 171, 203, .12); border-radius: 6px; background: radial-gradient(ellipse at 50% 120%, rgba(39, 151, 168, .17), transparent 70%); color: #b7c8db; font-family: "Space Grotesk", sans-serif; font-size: 8px; }
.record-screen svg { width: 19px; height: 19px; color: #77d0d5; }
.record-timeline { display: flex; align-items: center; gap: 6px; margin-top: 7px; color: #8599a9; }
.record-timeline > svg { width: 10px; height: 10px; color: #75d1d8; }
.record-timeline div { height: 7px; flex: 1; overflow: hidden; border: 1px solid rgba(149, 175, 199, .16); border-radius: 3px; background: repeating-linear-gradient(90deg, rgba(83, 188, 195, .17) 0 8px, transparent 8px 11px); }
.record-timeline div span { display: block; width: 44%; height: 100%; border-right: 1px solid #e8af64; background: rgba(232, 175, 100, .14); }
.record-timeline small { font-size: 6px; }
.project-content { flex: 1; padding: 19px 20px 17px; }
.project-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.project-type, .project-status { color: var(--muted); font-size: 7px; font-weight: 700; letter-spacing: .13em; }
.project-status { display: flex; align-items: center; gap: 6px; white-space: nowrap; letter-spacing: .08em; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green); box-shadow: 0 0 7px rgba(103, 232, 165, .6); }
.project-content h3 { margin: 0 0 7px; font-size: 17px; font-weight: 600; letter-spacing: -.045em; line-height: 1.3; }
.project-content > p { min-height: 45px; margin-bottom: 13px; color: var(--muted); font-size: 10px; line-height: 1.75; }
.project-tags { gap: 5px; }
.project-tags span { padding: 4px 7px; font-size: 8px; }
.project-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); }
.project-link { display: inline-flex; align-items: center; gap: 7px; color: var(--text-soft); font-size: 9px; font-weight: 600; }
.project-live-link { color: #84c7ff; transition: color .2s; }
.project-live-link:hover { color: var(--cyan); }
.project-live-link svg { width: 13px; height: 13px; transition: transform .2s; }
.project-live-link:hover svg { transform: translate(2px, -2px); }
.project-note { color: var(--muted); font-size: 8px; font-weight: 500; }
.project-index { color: var(--muted); font-size: 8px; font-weight: 600; letter-spacing: .08em; }
.project-ongoing { border-color: rgba(231, 171, 92, .21); }
.project-ongoing:hover { border-color: rgba(231, 171, 92, .4); }
.status-progress { color: #f0bc73; }
.progress-pulse { width: 6px; height: 6px; border-radius: 50%; background: #f4b65d; box-shadow: 0 0 0 0 rgba(244, 182, 93, .48); animation: pulse-amber 1.8s infinite; }

.contact-section { padding-bottom: 106px; }
.contact-section .section-heading { margin-bottom: 36px; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: 22px; }
.contact-info { padding: 9px 0; }
.contact-overline { margin: 0 0 12px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.contact-card { min-height: 68px; display: flex; align-items: center; gap: 12px; margin-bottom: 9px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: transform .2s, border-color .2s, background .2s; }
.contact-card:hover { transform: translateX(4px); border-color: rgba(64, 139, 246, .4); background: var(--surface-hover); }
.contact-icon { width: 36px; height: 36px; display: grid; flex: 0 0 36px; place-items: center; border: 1px solid rgba(73, 137, 255, .18); border-radius: 10px; background: rgba(67, 132, 255, .09); color: #82aeff; }
.contact-icon svg { width: 16px; height: 16px; }
.contact-card > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; }
.contact-card small { color: var(--muted); font-size: 7px; font-weight: 700; letter-spacing: .13em; }
.contact-card strong { overflow: hidden; color: var(--text-soft); font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.contact-arrow { width: 14px; height: 14px; flex: 0 0 14px; margin-left: auto; color: var(--muted); transition: transform .2s, color .2s; }
.contact-card:hover .contact-arrow { transform: translate(2px, -2px); color: var(--cyan); }
.profiles-block { margin-top: 25px; }
.profile-links { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.profile-links > a { display: flex; align-items: center; gap: 8px; min-height: 37px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--text-soft); font-size: 9px; font-weight: 600; transition: border-color .2s, background .2s, color .2s; }
.profile-links > a:hover { border-color: rgba(62, 139, 246, .35); background: rgba(58, 117, 222, .08); color: var(--cyan); }
.profile-links > a > svg:first-child { width: 14px; height: 14px; color: var(--muted); }
.profile-arrow { width: 11px; height: 11px; margin-left: auto; color: var(--muted); }
.kaggle-mark { display: grid; width: 14px; height: 14px; place-items: center; color: #51c7ed; font-family: "Space Grotesk", sans-serif; font-size: 11px; font-weight: 700; }
.timezone-note { display: flex; align-items: center; gap: 9px; margin-top: 22px; color: var(--muted); font-size: 9px; }
.timezone-dot { width: 5px; height: 5px; flex-basis: 5px; }
.timezone-divider { color: var(--line-strong); }
.contact-form { padding: 23px; border-radius: 16px; }
.form-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 21px; }
.form-heading .contact-overline { margin-bottom: 5px; }
.form-heading h3 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.04em; }
.form-spark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(75, 148, 252, .2); border-radius: 12px; background: rgba(52, 113, 224, .1); color: #82aeff; }
.form-spark svg { width: 17px; height: 17px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { min-width: 0; display: flex; flex-direction: column; margin-bottom: 13px; }
.form-field label { margin-bottom: 6px; color: var(--text-soft); font-size: 9px; font-weight: 600; }
.form-field input, .form-field textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; outline: none; background: rgba(7, 13, 23, .3); color: var(--text); font-size: 10px; transition: border-color .2s, box-shadow .2s, background .2s; }
[data-theme="light"] .form-field input, [data-theme="light"] .form-field textarea { background: rgba(236, 242, 250, .6); }
.form-field input { height: 39px; padding: 0 11px; }
.form-field textarea { min-height: 89px; padding: 10px 11px; resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: color-mix(in srgb, var(--muted) 68%, transparent); }
.form-field input:focus, .form-field textarea:focus { border-color: rgba(66, 143, 255, .62); background: var(--surface-hover); box-shadow: 0 0 0 3px rgba(55, 125, 244, .1); }
.form-field [aria-invalid="true"] { border-color: #ef7373; }
.field-error { min-height: 0; color: #ff8c8c; font-size: 8px; }
.field-error:not(:empty) { min-height: 13px; padding-top: 3px; }
.form-submit-row { display: flex; align-items: center; gap: 15px; margin-top: 2px; }
.submit-button { min-height: 40px; padding-inline: 14px; border: 0; cursor: pointer; font-size: 10px; }
.submit-button svg { width: 14px; height: 14px; }
.form-privacy { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 8px; }
.form-privacy svg { width: 12px; height: 12px; }
.form-feedback { min-height: 0; color: #8fe6b4; font-size: 10px; line-height: 1.6; }
.form-feedback:not(:empty) { margin-top: 13px; padding: 10px 12px; border: 1px solid rgba(91, 220, 160, .19); border-radius: 8px; background: rgba(53, 182, 125, .07); }
.form-feedback.error-feedback { color: #ff9a9a; border-color: rgba(239, 115, 115, .23); background: rgba(220, 72, 72, .07); }
.site-footer { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px max(32px, calc((100% - 1120px) / 2)); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg-elevated) 64%, transparent); }
.footer-brand { gap: 10px; color: var(--muted); font-size: 9px; }
.footer-brand .brand-mark { width: 30px; height: 30px; border-radius: 50%; background: transparent; }
.footer-copy { color: var(--muted); font-size: 8px; }
.footer-separator { padding-inline: 4px; color: var(--line-strong); }
.footer-heart { color: #60cfe0; }
.back-to-top { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .12em; transition: color .2s; }
.back-to-top:hover { color: var(--cyan); }
.back-to-top svg { width: 13px; height: 13px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.projects-grid .reveal:nth-child(2), .skills-grid .reveal:nth-child(2) { transition-delay: .08s; }
.projects-grid .reveal:nth-child(3), .skills-grid .reveal:nth-child(3) { transition-delay: .15s; }
.about-grid .reveal:nth-child(2) { transition-delay: .06s; }.about-grid .reveal:nth-child(3) { transition-delay: .12s; }.about-grid .reveal:nth-child(4) { transition-delay: .08s; }.about-grid .reveal:nth-child(5) { transition-delay: .14s; }

@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(103, 232, 165, .11), 0 0 14px rgba(103, 232, 165, .62); } 50% { box-shadow: 0 0 0 7px rgba(103, 232, 165, .02), 0 0 20px rgba(103, 232, 165, .75); } }
@keyframes pulse-amber { 0%, 100% { box-shadow: 0 0 0 0 rgba(244, 182, 93, .38); } 50% { box-shadow: 0 0 0 5px rgba(244, 182, 93, 0); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes ring-glow { from { box-shadow: 0 0 24px rgba(37, 99, 235, .17), 0 0 65px rgba(6, 182, 212, .07); } to { box-shadow: 0 0 42px rgba(37, 99, 235, .31), 0 0 105px rgba(6, 182, 212, .15); } }
@keyframes orbit-pulse { from { opacity: .5; } to { opacity: 1; } }
@keyframes mesh-shift { from { background-position: 0 0; } to { background-position: 100% 100%; } }
@keyframes scroll-tick { 0% { opacity: 0; transform: translateY(0); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(8px); } }

/* Fix: darken text-gradient in light mode for better contrast */
[data-theme="light"] .text-gradient {
  background: linear-gradient(105deg, #1a5cd8 6%, #1972c2 48%, #0f8fa0 100%);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
[data-theme="light"] .hero::before, [data-theme="light"] .hero::after { opacity: .65; }
[data-theme="light"] .portrait-ring { box-shadow: 0 0 35px rgba(37, 99, 235, .15), 0 0 95px rgba(6, 182, 212, .08); }
[data-theme="light"] .metric-card { background: linear-gradient(145deg, rgba(221, 235, 255, .9), rgba(255, 255, 255, .86)); }
[data-theme="light"] .deployed-card { background: linear-gradient(145deg, rgba(218, 244, 246, .9), rgba(255, 255, 255, .86)); }
[data-theme="light"] .project-card:hover { box-shadow: 0 24px 55px rgba(28, 52, 94, .13), 0 0 28px rgba(45, 114, 228, .06); }

@media (max-width: 900px) {
  .section-wrap { width: min(100% - 48px, 760px); }
  .nav-shell { width: calc(100% - 48px); gap: 18px; }
  .nav-links { gap: 20px; }
  .brand-name { font-size: 11px; }
  .hero { min-height: 640px; }
  .hero-grid { grid-template-columns: 1.06fr .94fr; gap: 15px; }
  .hero h1 { width: 100%; font-size: clamp(40px, 6.3vw, 50px) !important; line-height: .94; }
  .hero-visual { min-height: 400px; }
  .portrait-ring { width: min(330px, 39vw); }
  .visual-orbit { width: 355px; height: 355px; }
  .orbit-two { width: 360px; height: 360px; animation: orbit-pulse 4.5s ease-in-out infinite alternate; }
  .badge-python { left: -2%; }.badge-stack { right: -1%; }.badge-build { right: -2%; }
  .about-grid { grid-template-columns: 1fr 1.12fr .85fr; grid-template-rows: 235px 220px; gap: 11px; }
  .bento-card { padding: 18px; }
  .strength-list { gap: 6px; }
  .strength-list div { padding: 8px 6px; font-size: 8px; }
  .skills-grid { gap: 10px; }
  .skill-card { padding: 18px 15px; }
  .skill-heading { gap: 9px; }.skill-heading h3 { font-size: 11px; }.skill-icon { width: 35px; height: 35px; flex-basis: 35px; }
  .project-art { height: 190px; }
}
@media (min-width: 821px) and (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1.18fr .82fr; gap: 24px; }
  .hero h1 { width: 100%; }
  .portrait-ring { width: min(350px, 36vw); }
  .visual-orbit { width: min(405px, 39vw); height: min(405px, 39vw); }
  .orbit-two { width: min(450px, 43vw); height: min(450px, 43vw); }
  /* Fix: prevent badge clip at mid-range tablet widths */
  .badge-python { left: 1%; }
  .badge-stack { right: 0%; }
  .badge-build { right: 0%; }
}
@media (max-width: 820px) {
  html { scroll-padding-top: 74px; }
  .section-wrap { width: calc(100% - 40px); }
  .nav-shell { width: calc(100% - 34px); height: 66px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-name { max-width: 145px; font-size: 10px; }
  .nav-actions { gap: 8px; }
  .nav-cta { display: none; }
  .menu-toggle { display: grid; }
  .menu-close { display: none; }.menu-toggle[aria-expanded="true"] .menu-open { display: none; }.menu-toggle[aria-expanded="true"] .menu-close { display: block; }
  .nav-links { position: absolute; top: 65px; right: 0; left: 0; display: flex; align-items: stretch; flex-direction: column; gap: 0; padding: 6px 20px 15px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(18px); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .nav-links.is-open { visibility: visible; opacity: 1; transform: translateY(0); }
  .nav-link { padding: 13px 5px; border-bottom: 1px solid var(--line); font-size: 12px; }
  .nav-link:last-child { border-bottom: 0; }
  .nav-link::after { right: auto; bottom: 12px; left: 5px; width: 26px; }
  .hero { min-height: auto; padding-top: 48px; padding-bottom: 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { padding-block: 0; }
  .availability { margin-bottom: 24px; font-size: 9px; }
  .hero-eyebrow { font-size: 8px; }
  .hero h1 { font-size: clamp(34px, 9.5vw, 44px) !important; line-height: .95; }
  .hero h1 .hero-name-first { font-size: 1.12em; }
  .hero h1 .hero-name-last { font-size: .95em; }
  .hero-role { min-height: 43px; max-width: 420px; font-size: 14px; line-height: 1.55; }
  .hero-description { max-width: 520px; font-size: 12px; }
  .social-row { margin-top: 25px; }
  .hero-visual { min-height: 405px; margin-top: 3px; }
  .portrait-ring { width: min(315px, 75vw); }
  .visual-orbit { width: min(360px, 88vw); height: min(360px, 88vw); }
  .orbit-two { width: min(405px, 96vw); height: min(405px, 96vw); }
  .portrait-glow { width: 260px; height: 260px; }
  .badge-python { top: 17%; left: 2%; }.badge-stack { top: 27%; right: 1%; }.badge-build { right: 1%; bottom: 18%; }
  .visual-caption { bottom: 3px; }
  .scroll-cue { bottom: 12px; font-size: 7px; }
  .section-block { padding-top: 79px; }
  .section-heading { margin-bottom: 27px; }
  .section-heading h2 { font-size: clamp(34px, 9vw, 45px); }
  .section-intro { font-size: 12px; }
  .section-heading-row { align-items: flex-start; flex-direction: column; gap: 12px; }
  .section-heading-row .section-intro { max-width: 430px; }
  .about-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; gap: 10px; }
  .bento-card { min-height: 205px; padding: 17px; }
  .education-card { grid-column: span 1; }.strength-card { grid-column: span 2; min-height: 196px; }.metric-card { grid-column: span 1; min-height: 205px; }.stack-card { grid-column: span 1; min-height: 205px; }.deployed-card { grid-column: span 2; min-height: 185px; }
  .strength-list { grid-template-columns: 1fr; gap: 5px; margin-top: 12px; }
  .strength-list div { min-height: 33px; align-items: center; padding: 7px; font-size: 9px; }
  .strength-list svg { width: 13px; height: 13px; }
  .metric-card > strong { font-size: 58px; }
  .deployed-card h3 { font-size: 23px; }
  .deployed-card p { max-width: 235px; }
  .deployed-watermark { right: 2px; bottom: -25px; width: 145px; height: 145px; }
  .skills-grid { grid-template-columns: 1fr; gap: 10px; }
  .skill-card { min-height: 195px; padding: 19px; }
  .skill-heading { margin-bottom: 19px; }.skill-heading h3 { font-size: 13px; }
  .project-art { height: 195px; }
  .projects-grid { grid-template-columns: 1fr; gap: 12px; }
  .project-content { padding: 17px 17px 15px; }
  .project-content > p { min-height: 0; }
  .contact-section { padding-bottom: 75px; }
  .contact-grid { grid-template-columns: 1fr; gap: 23px; }
  .contact-form { padding: 19px; }
  .site-footer { min-height: auto; flex-wrap: wrap; justify-content: space-between; gap: 11px 20px; padding: 15px 20px; }
  .footer-copy { order: 3; width: 100%; }
}
@media (max-width: 390px) {
  .section-wrap { width: calc(100% - 32px); }
  .about-grid { grid-template-columns: 1fr; }
  .education-card,
  .strength-card,
  .metric-card,
  .stack-card,
  .deployed-card { grid-column: span 1; }
  .brand-name { max-width: 128px; font-size: 9px; }
  .nav-shell { width: calc(100% - 26px); }
  .hero-actions { gap: 8px; }
  .button { min-height: 43px; padding-inline: 12px; font-size: 10px; }
  .hero-visual { min-height: 360px; }
  .portrait-ring { width: min(260px, 68vw); }
  .visual-orbit { width: min(300px, 82vw); height: min(300px, 82vw); }
  .orbit-two { width: min(335px, 90vw); height: min(335px, 90vw); }
  .floating-badge { padding: 8px 10px; font-size: 9px; }
  .badge-python { left: 0; }.badge-stack { right: 0; }.badge-build { right: 0; }
  .bento-card { padding: 14px; }
  .stack-visual { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
  .stack-visual span { padding: 5px 2px; font-size: 5px; letter-spacing: .04em; text-align: center; }
  .stack-visual svg { display: none; }
  .card-foot { right: 14px; left: 14px; font-size: 8px; }
  .strength-list div { font-size: 8px; }
  .profile-links { gap: 6px; }
  .contact-form { padding: 15px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-submit-row { align-items: flex-start; flex-direction: column; gap: 9px; }
  .project-art { height: 180px; }
}
@media (max-width: 360px) {
  /* Removed duplicate about-grid single-col rules (already set at ≤390px) */
  .metric-card { min-height: 190px; }
  .stack-card { min-height: 190px; }
  .deployed-card { min-height: 175px; }
  .deployed-watermark { width: 105px; height: 105px; right: -8px; bottom: -18px; opacity: .8; }
  .profile-links { grid-template-columns: 1fr; }
  .timezone-note { align-items: flex-start; flex-wrap: wrap; }
  .project-art { height: 170px; }
  .project-content h3 { font-size: 15px; }
  .project-tags { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
