/* Abhishek Singh portfolio. Original stylesheet. */
:root {
  --bg: #16100E;
  --bg-2: #1D1613;
  --card: rgba(30, 22, 19, 0.72);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #F6F1ED;
  --muted: #B9ADA5;
  --accent: #E8763A;
  --accent-2: #C55A11;
  --accent-soft: rgba(232, 118, 58, 0.12);
  --accent-line: rgba(232, 118, 58, 0.28);
  --live: #4ADE80;
  --font-head: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --wrap: 1120px;
  --header-h: 76px;
  --r-lg: 18px;
  --r-pill: 999px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
  position: relative;
  -webkit-font-smoothing: antialiased;
}
/* ambient glows */
body::before, body::after {
  content: ''; position: fixed; z-index: -1; pointer-events: none;
  width: 640px; height: 640px; max-width: 70vw; max-height: 70vw; border-radius: 50%;
}
body::before { top: -12%; left: -14%; background: radial-gradient(circle, rgba(232,118,58,.10) 0%, transparent 68%); }
body::after { bottom: -14%; right: -14%; background: radial-gradient(circle, rgba(139,0,0,.16) 0%, transparent 68%); }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
ul, ol { list-style: none; }
strong { color: var(--text); font-weight: 600; }
em { font-style: normal; color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 2000; background: var(--accent); color: #1a0d07; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; color: var(--text); }
.accent { color: var(--accent); background: linear-gradient(100deg, #F59A63, var(--accent) 45%, #D9481B); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1100; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--accent-2), var(--accent)); }

/* header */
.header {
  position: fixed; inset: 0 0 auto 0; height: var(--header-h); z-index: 1000;
  display: flex; align-items: center;
  background: rgba(22, 16, 14, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: height .3s var(--ease), background .3s var(--ease), box-shadow .3s var(--ease);
}
.header.scrolled { height: 64px; background: rgba(22,16,14,.9); box-shadow: 0 10px 30px -18px rgba(0,0,0,.8); }
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.logo { font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; letter-spacing: -.01em; }
.logo .dot { color: var(--accent); }
.nav-list { display: flex; align-items: center; gap: 30px; }
.nav-link { position: relative; color: var(--muted); font-weight: 500; font-size: .98rem; }
.nav-link:not(.btn-primary)::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff !important;
  padding: 10px 24px; border-radius: var(--r-pill); font-weight: 600;
  box-shadow: 0 6px 20px -4px rgba(232,118,58,.45);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -4px rgba(232,118,58,.6); }
.btn-primary svg { width: 18px; height: 18px; }
.menu-btn { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; border-radius: 10px; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
.menu-btn span:nth-child(1) { top: 15px; } .menu-btn span:nth-child(2) { top: 21px; } .menu-btn span:nth-child(3) { top: 27px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* glass */
.glass {
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--r-lg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 34px -16px rgba(0,0,0,.6);
  position: relative;
}
/* pointer spotlight on cards */
.glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(232,118,58,.10), transparent 60%);
  transition: opacity .3s var(--ease);
}
.glass:hover::before { opacity: 1; }

/* sections */
.section { padding: 64px 0; position: relative; }
.section-head { position: relative; margin-bottom: 40px; overflow: hidden; padding-top: 22px; }
.section-title { position: relative; z-index: 2; font-size: clamp(1.9rem, 4vw, 2.5rem); }
.section-title::after { content: ''; display: block; width: 56px; height: 4px; margin-top: 12px; border-radius: 4px; background: linear-gradient(90deg, var(--accent), transparent); }
.section-ghost {
  position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none; white-space: nowrap;
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(2.4rem, 7vw, 4.4rem); line-height: 1; color: rgba(255,255,255,.035);
}
.section-lede { color: var(--muted); font-size: 1.08rem; max-width: 820px; margin: -12px 0 36px; }
.section-lede a, .about-card a, .job-points a, .footer-note a { color: var(--accent); border-bottom: 1px solid var(--accent-line); }
.section-lede a:hover, .about-card a:hover, .job-points a:hover, .footer-note a:hover { border-color: var(--accent); }

/* hero */
.hero { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; position: relative; padding: calc(var(--header-h) + 40px) 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; width: 100%; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 15px; border-radius: var(--r-pill);
  background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); font-weight: 600; font-size: .88rem;
}
.tag svg { width: 15px; height: 15px; }
.hero-title { font-size: clamp(2.5rem, 5.6vw, 4rem); line-height: 1.1; letter-spacing: -.02em; margin-bottom: 18px; font-weight: 800; }
.hero-typed { font-family: var(--font-head); font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600; color: var(--text); min-height: 1.6em; margin-bottom: 18px; }
.typed-prefix { color: var(--muted); }
.typed { color: var(--accent); }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 3px; vertical-align: -0.18em; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-desc { color: var(--muted); font-size: 1.1rem; max-width: 540px; margin-bottom: 34px; }
.pills { display: flex; flex-wrap: wrap; gap: 14px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); font-weight: 500;
}
.pill svg { width: 18px; height: 18px; color: var(--accent); }
.pill:hover { background: rgba(255,255,255,.09); border-color: var(--accent); transform: translateY(-3px); }

.hero-visual { display: flex; justify-content: center; }
.hero-card {
  position: relative; width: 100%; max-width: 410px; aspect-ratio: 4 / 5; border-radius: 26px;
  background: radial-gradient(120% 90% at 50% 15%, #3a2219 0%, #20140f 55%, #170f0c 100%);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.06);
  display: grid; place-items: center; transform-style: preserve-3d; transition: transform .4s var(--ease);
}
.hero-glow { position: absolute; inset: 18% 12% auto; height: 60%; border-radius: 50%; background: radial-gradient(circle, rgba(232,118,58,.38), transparent 65%); filter: blur(20px); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 0%,100% { opacity: .65; transform: scale(.95); } 50% { opacity: 1; transform: scale(1.05); } }
.hero-card img { position: relative; width: 78%; height: auto; filter: drop-shadow(0 30px 30px rgba(0,0,0,.55)); animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.float-badge {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 7px 15px; border-radius: var(--r-pill); font-weight: 600; font-size: .86rem;
  background: rgba(22,16,14,.82); border: 1px solid var(--accent-line); color: var(--text);
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.7);
}
.float-badge svg { width: 15px; height: 15px; color: var(--accent); }
.fb-1 { top: 22px; left: -18px; animation: floaty 7s ease-in-out infinite .5s; }
.fb-2 { bottom: 26px; right: -18px; animation: floaty 7s ease-in-out infinite 1.6s; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.55); } 80%,100% { box-shadow: 0 0 0 9px rgba(74,222,128,0); } }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center; color: var(--muted); animation: bob 2.2s infinite; border-radius: 50%; }
.scroll-cue svg { width: 26px; height: 26px; }
.scroll-cue:hover { color: var(--accent); }
@keyframes bob { 0%,20%,55%,100% { transform: translateY(0); } 38% { transform: translateY(-9px); } }

/* about */
.about-card { padding: 34px 36px; border-left: 4px solid var(--accent); font-size: 1.12rem; color: var(--muted); line-height: 1.8; }
.about-card p + p { margin-top: 16px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 22px; }
.stat { padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; color: var(--accent); line-height: 1.1; }
.stat-label { color: var(--muted); font-size: .92rem; line-height: 1.45; }

/* timeline */
.timeline { position: relative; max-width: 920px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; top: 6px; bottom: 6px; left: 20px; width: 2px; background: rgba(255,255,255,.08); }
.timeline::after { content: ''; position: absolute; top: 6px; left: 20px; width: 2px; height: var(--tl-progress, 0%); background: linear-gradient(var(--accent), var(--accent-2)); transition: height .2s linear; }
.tl-item { position: relative; padding-left: 60px; margin-bottom: 36px; }
.tl-item:last-child { margin-bottom: 0; }
.tl-marker { position: absolute; left: 11px; top: 30px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); box-shadow: 0 0 0 5px rgba(232,118,58,.12); z-index: 2; transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.tl-item.visible .tl-marker { background: var(--accent); box-shadow: 0 0 0 6px rgba(232,118,58,.18), 0 0 18px rgba(232,118,58,.5); }
.tl-card { padding: 28px 30px; transition: transform .35s var(--ease), border-color .35s var(--ease); }
.tl-card:hover { transform: translateX(4px); border-color: var(--accent-line); }
.job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.job-title { font-size: 1.25rem; }
.job-meta { text-align: right; }
.company { display: block; color: var(--accent); font-weight: 600; }
.duration { display: block; color: var(--muted); font-size: .9rem; }
.job-loc { color: var(--muted); font-size: .9rem; font-style: italic; margin-bottom: 14px; }
.job-points { list-style: disc; padding-left: 20px; color: var(--muted); }
.job-points li { margin-bottom: 8px; }
.job-points li::marker { color: var(--accent); }

/* product cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.media-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease); }
.media-card:hover { transform: translateY(-8px); border-color: var(--accent-line); box-shadow: 0 24px 48px -18px rgba(232,118,58,.28); }
.media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--card-border); background: #241a16; }
.media img, .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .5s var(--ease); }
.media video { opacity: 0; }
.media.playing video { opacity: 1; }
.media-card:hover .media img, .media-card:hover .media video { transform: scale(1.05); }
.media-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--r-pill); font-size: .78rem; font-weight: 600;
  background: rgba(22,16,14,.85); border: 1px solid rgba(255,255,255,.12); color: var(--text);
}
.media-tag svg { width: 14px; height: 14px; color: var(--accent); }
.play-hint { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(22,16,14,.8); border: 1px solid rgba(255,255,255,.14); color: var(--text); transition: opacity .3s; }
.play-hint svg { width: 16px; height: 16px; margin-left: 2px; }
.media.playing .play-hint { opacity: 0; }
.media-art { display: grid; place-items: center; background: radial-gradient(90% 120% at 50% 0%, #3a1f14, #1b120f 70%); }
.art-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(232,118,58,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(232,118,58,.12) 1px, transparent 1px); background-size: 26px 26px; mask-image: radial-gradient(circle at 50% 55%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(circle at 50% 55%, #000 30%, transparent 75%); transition: transform 1.2s var(--ease); }
.media-card:hover .art-grid { transform: scale(1.08); }
.art-icon { position: relative; width: 72px; height: 72px; color: var(--accent); filter: drop-shadow(0 0 18px rgba(232,118,58,.5)); }
.media-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex-grow: 1; }
.media-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.media-title { font-size: 1.22rem; }
.status { font-size: .74rem; font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.status-live { color: var(--live); background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.25); }
.status-build { color: #F5B971; background: rgba(245,185,113,.1); border: 1px solid rgba(245,185,113,.28); }
.media-desc { color: var(--muted); font-size: .95rem; margin-bottom: 20px; flex-grow: 1; }
.media-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.media-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .94rem; color: var(--text); }
.media-link svg { width: 16px; height: 16px; color: var(--accent); transition: transform .3s var(--ease); }
.media-link:hover { color: var(--accent); }
.media-link:hover svg { transform: translateX(4px); }

/* projects */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proj-card { padding: 26px; display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .35s var(--ease); }
a.proj-card:hover { transform: translateY(-6px); border-color: var(--accent-line); }
.proj-icon, .edu-icon, .rec-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; flex-shrink: 0; transition: transform .35s var(--ease); }
.proj-icon svg, .edu-icon svg, .rec-icon svg { width: 26px; height: 26px; }
.proj-card:hover .proj-icon { transform: rotate(-6deg) scale(1.06); }
.proj-title { font-size: 1.12rem; margin-bottom: 8px; }
.proj-desc { color: var(--muted); font-size: .94rem; flex-grow: 1; margin-bottom: 18px; }
.proj-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.proj-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; }
.proj-go svg { width: 15px; height: 15px; color: var(--accent); transition: transform .3s var(--ease); }
a.proj-card:hover .proj-go { color: var(--accent); }
a.proj-card:hover .proj-go svg { transform: translateX(4px); }
.proj-go.muted { color: var(--muted); font-weight: 500; }
.chip { display: inline-block; padding: 4px 12px; border-radius: var(--r-pill); font-size: .8rem; font-weight: 500; color: var(--text); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-card .chip { transition: border-color .25s, color .25s; }
.skill-card .chip:hover { border-color: var(--accent); color: var(--accent); }

/* skills, education */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.skill-card { padding: 26px; }
.skill-card h3 { font-size: 1.1rem; margin-bottom: 14px; }
.edu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.edu-card { padding: 30px; }
.edu-degree { font-size: 1.18rem; margin-bottom: 4px; }
.edu-school { color: var(--accent); font-weight: 600; }
.edu-year { color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.edu-details { color: var(--muted); font-size: .95rem; }
.rec-list { display: grid; gap: 18px; max-width: 920px; }
.rec-item { display: flex; gap: 20px; align-items: flex-start; padding: 24px 26px; }
.rec-item .rec-icon { margin-bottom: 0; }
.rec-item h3 { font-size: 1.1rem; margin-bottom: 4px; }
.rec-item p { color: var(--muted); }

/* footer */
.footer { margin-top: 40px; padding: 90px 0 44px; text-align: center; background: linear-gradient(180deg, transparent, rgba(0,0,0,.35)); border-top: 1px solid rgba(255,255,255,.05); }
.footer-inner { display: flex; flex-direction: column; align-items: center; }
.footer-title { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 14px; }
.footer-text { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin-bottom: 30px; }
.btn-lg { padding: 14px 28px; font-size: 1.02rem; max-width: 100%; overflow-wrap: anywhere; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px 32px; margin: 34px 0 30px; }
.footer-link { display: inline-flex; align-items: center; gap: 10px; font-size: 1.05rem; font-weight: 500; padding: 6px 2px; }
.footer-link svg { width: 20px; height: 20px; color: var(--accent); }
.footer-link:hover { color: var(--accent); }
.siya-mark { width: 20px; height: auto; border-radius: 4px; }
.footer-note { color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.copyright { color: rgba(255,255,255,.35); font-size: .88rem; }

/* reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay { --d: .18s; }
.no-js .reveal { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1024px) {
  .card-grid, .proj-grid, .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .menu-btn { display: block; order: 3; margin-right: -8px; }
  .nav-list {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 6px; padding: 16px 24px 24px;
    background: #16100E; box-shadow: 0 24px 40px -12px rgba(0,0,0,.7); border-bottom: 1px solid rgba(255,255,255,.06);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav-list.open { opacity: 1; visibility: visible; transform: none; }
  .nav-list li { width: 100%; text-align: center; }
  .nav-link { display: block; padding: 10px; font-size: 1.05rem; }
  .nav-link:not(.btn-primary)::after { display: none; }
  .nav-list .btn-primary { display: inline-flex; justify-content: center; margin-top: 8px; }
  .hero { padding-top: calc(var(--header-h) + 28px); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-tags, .pills { justify-content: center; }
  .hero-card { max-width: 340px; }
  .fb-1 { left: -6px; } .fb-2 { right: -6px; }
  .scroll-cue { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
  .card-grid, .proj-grid, .skills-grid, .edu-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 18px 16px; }
  .stat-num { font-size: 1.7rem; }
  .about-card { padding: 24px 20px; font-size: 1.02rem; }
  .timeline::before, .timeline::after { left: 9px; }
  .tl-item { padding-left: 34px; }
  .tl-marker { left: 1px; width: 18px; height: 18px; top: 26px; }
  .tl-card { padding: 22px 20px; }
  .job-head { flex-direction: column; gap: 4px; }
  .job-meta { text-align: left; }
  .rec-item { padding: 20px; gap: 16px; }
  .hero-title { font-size: 2.35rem; }
  .logo { font-size: 1.22rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .caret { display: none; }
}
/* owner portrait fills the hero card */
.hero-card img.hero-portrait { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 26px; filter: none; animation: none; }
.hero-card .hero-glow { z-index: 0; }
.hero-card .float-badge { z-index: 2; }
/* About: AI-generated portrait variations of the owner's studio photo */
.portrait-strip { margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.portrait-strip img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; border: 1px solid rgba(255,255,255,.09); box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); transition: transform .4s var(--ease); }
.portrait-strip img:hover { transform: translateY(-6px); }
.portrait-strip figcaption { grid-column: 1 / -1; font-size: .85rem; color: var(--muted, #a8998f); text-align: center; }
@media (max-width: 640px) { .portrait-strip { grid-template-columns: repeat(3, 1fr); gap: 8px; } .portrait-strip img { border-radius: 12px; } }

/* v2: earlier projects box */
.side-projects { max-width: 920px; margin: 28px auto 0; padding: 22px 26px; }
.side-projects h3 { font-size: 1.05rem; margin-bottom: 10px; }
.side-projects ul { list-style: disc; padding-left: 20px; color: var(--muted); }
.side-projects li { margin-bottom: 6px; }
.side-projects li::marker { color: var(--accent); }

/* v2: video facades (YouTube loads only on click) */
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.yt-card { margin: 0; overflow: hidden; display: flex; flex-direction: column; transition: transform .35s var(--ease), border-color .35s var(--ease); }
.yt-card:hover { transform: translateY(-6px); border-color: var(--accent-line); }
.yt, .thumb-link { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: #000; cursor: pointer; overflow: hidden; }
.yt img, .thumb-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; opacity: .9; }
.yt:hover img, .thumb-link:hover img, .yt:focus-visible img { transform: scale(1.05); opacity: 1; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 10px 30px -6px rgba(232,118,58,.7); transition: transform .3s var(--ease); }
.yt-play svg { width: 24px; height: 24px; margin-left: 3px; }
.thumb-link .yt-play svg { margin-left: 0; width: 22px; height: 22px; }
.yt:hover .yt-play, .thumb-link:hover .yt-play { transform: scale(1.1); }
.yt-card figcaption { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.yt-card figcaption strong { font-family: var(--font-head); font-size: .98rem; line-height: 1.3; }
.yt-card figcaption span { color: var(--muted); font-size: .84rem; line-height: 1.45; }
.yt-card figcaption a { color: var(--accent); border-bottom: 1px solid var(--accent-line); }
.archive-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; color: var(--muted); font-size: .92rem; align-items: center; }
.archive-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font-weight: 500; }
.archive-links a:hover { color: var(--accent); }
.archive-links svg { width: 14px; height: 14px; color: var(--accent); }
.rec-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: start; }
.rec-grid .rec-list { max-width: none; }
.yt-feature { position: sticky; top: calc(var(--header-h) + 16px); }

/* v2: featured side project */
.feature-card { display: grid; grid-template-columns: .8fr 1.2fr; overflow: hidden; margin-bottom: 26px; }
.feature-art { position: relative; min-height: 300px; display: grid; place-items: center; background: radial-gradient(90% 100% at 50% 0%, #1f3a2c, #0f1a15 70%); }
.feature-body { padding: 28px 30px; }
.feature-body .media-desc { flex-grow: 0; margin-bottom: 14px; }
.sh-phone { width: 150px; height: 250px; border-radius: 26px; border: 2px solid rgba(255,255,255,.18); background: #0c1612; padding: 18px 14px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); animation: floaty 6s ease-in-out infinite; }
.sh-ring { width: 84px; height: 84px; margin: 0 auto 4px; border-radius: 50%; display: grid; place-items: center; align-content: center; border: 6px solid rgba(61,220,151,.25); animation: ring 4s ease-in-out infinite; }
.sh-ring span { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: #3ddc97; line-height: 1; }
.sh-ring small { font-size: .62rem; color: #9fbfb0; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } 50% { box-shadow: 0 0 0 8px rgba(61,220,151,.15); } }
.sh-bar { height: 8px; border-radius: 8px; background: rgba(255,255,255,.08); overflow: hidden; }
.sh-bar i { display: block; height: 100%; width: var(--w); border-radius: 8px; background: linear-gradient(90deg, #3ddc97, #E8763A); transform-origin: left; animation: grow 3.2s var(--ease) infinite alternate; }
.sh-bar:nth-child(3) i { animation-delay: .4s; }
.sh-bar:nth-child(4) i { animation-delay: .8s; }
@keyframes grow { from { transform: scaleX(.25); } to { transform: scaleX(1); } }
.sh-dots { display: flex; gap: 6px; justify-content: center; margin-top: auto; }
.sh-dots b { width: 12px; height: 12px; border-radius: 4px; background: #3ddc97; animation: pop 3s ease-in-out infinite; }
.sh-dots b:nth-child(2) { animation-delay: .2s; }
.sh-dots b:nth-child(3) { animation-delay: .4s; }
.sh-dots b:nth-child(4) { animation-delay: .6s; }
.sh-dots b:nth-child(5) { animation-delay: .8s; }
.sh-dots b.off { background: rgba(255,255,255,.12); animation: none; }
@keyframes pop { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.25); } }

@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rec-grid { grid-template-columns: 1fr; }
  .yt-feature { position: static; }
}
@media (max-width: 760px) {
  .feature-card { grid-template-columns: 1fr; }
  .feature-art { min-height: 260px; }
  .feature-body { padding: 22px 20px; }
}
@media (max-width: 640px) {
  .video-grid { grid-template-columns: 1fr; }
  .side-projects { padding: 18px; }
}
