/* ── RESET & ROOT ──────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
:root {
  --bg: #060608;
  --bg2: #0d0d12;
  --surface: #111118;
  --border: rgba(255,255,255,0.07);
  --text: #e8e8f0;
  --muted: #666680;
  --accent: #7fffb2;
  --accent2: #ff6b6b;
  --accent3: #6b8cff;
  --font-display: 'Bebas Neue', sans-serif;
  --font-mono: 'Space Mono', monospace;
  --font-body: 'DM Sans', sans-serif;
}
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  cursor: none;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
body.menu-open { overflow: hidden; }
::selection { background: var(--accent); color: #000; }

/* ── GRAIN OVERLAY ──────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset:0; z-index:9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
}

/* ── CUSTOM CURSOR ──────────────────────────────────── */
#cursor {
  width: 12px; height: 12px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; top:0; left:0;
  pointer-events: none; z-index:10000;
  transform: translate(-50%,-50%);
  transition: transform 0.08s ease, width 0.2s ease, height 0.2s ease, background 0.2s;
  mix-blend-mode: difference;
}
#cursor-ring {
  width: 40px; height: 40px;
  border: 1px solid rgba(127,255,178,0.4);
  border-radius: 50%;
  position: fixed; top:0; left:0;
  pointer-events: none; z-index:9998;
  transform: translate(-50%,-50%);
  transition: all 0.18s ease;
}
body:has(a:hover) #cursor, body:has(button:hover) #cursor { width:20px; height:20px; }
body:has(a:hover) #cursor-ring, body:has(button:hover) #cursor-ring { width:60px; height:60px; border-color: var(--accent); }

/* ── NAVBAR ──────────────────────────────────── */
nav {
  position: fixed; top:0; left:0; right:0; z-index:1000;
  padding: 24px 60px;
  display: flex; align-items:center; justify-content:space-between;
  border-bottom: 1px solid transparent;
  transition: all 0.4s ease;
}
nav.scrolled {
  background: rgba(6,6,8,0.88);
  backdrop-filter: blur(20px);
  border-color: var(--border);
  padding: 16px 60px;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.nav-menu-toggle {
  display:none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--border);
  background: transparent;
  padding: 8px 12px;
  cursor: pointer;
}
.nav-links { display:flex; gap:40px; list-style:none; }
.nav-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content:''; position:absolute; bottom:-3px; left:0; right:0; height:1px;
  background: var(--accent); transform: scaleX(0);
  transition: transform 0.25s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000;
  background: var(--accent);
  border: none;
  padding: 10px 22px;
  cursor: none;
  transition: all 0.2s;
}
.nav-cta:hover { background: #fff; transform: translateY(-1px); }

/* ── HERO ──────────────────────────────────── */
#hero {
  min-height: 100dvh;
  height: 100dvh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding: 96px 60px 26px;
  position: relative;
  overflow: hidden;
}
.hero-layout {
  position:relative;
  z-index:1;
  width:100%;
  max-width: 1280px;
  margin: 0 auto;
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items:center;
  max-height:100%;
  gap:52px;
}
.hero-grid-bg {
  position: absolute; inset:0; pointer-events:none; z-index:0;
  background-image:
    linear-gradient(rgba(127,255,178,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,255,178,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-glow {
  position:absolute; width:600px; height:600px;
  background: radial-gradient(circle, rgba(127,255,178,0.07) 0%, transparent 70%);
  top: -100px; right: -100px; pointer-events:none;
  animation: glow-pulse 6s ease-in-out infinite;
}
@keyframes glow-pulse { 0%,100%{ opacity:0.6; transform:scale(1); } 50%{ opacity:1; transform:scale(1.1); } }
.hero-content {
  position:relative;
  z-index:1;
  max-width: 640px;
  align-self:center;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(78px, 11.8vw, 180px);
  line-height: 0.84;
  letter-spacing: -0.01em;
  color: var(--text);
  opacity:0; animation: fadeUp 0.9s 0.35s forwards;
}
.hero-name span { color: var(--accent); }
.hero-desc {
  margin-top: 24px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 300;
  opacity:0; animation: fadeUp 0.9s 0.5s forwards;
}
.hero-desc em { color: var(--text); font-style:normal; font-weight:500; }
.hero-actions {
  margin-top: 30px;
  display:flex; align-items:center; gap:30px;
  gap:24px;
  opacity:0; animation: fadeUp 0.9s 0.65s forwards;
}
.btn-primary {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000; background: var(--accent);
  border:none; padding: 16px 36px;
  cursor: none; text-decoration:none;
  display:inline-flex; align-items:center; gap:10px;
  transition: all 0.25s;
  position:relative; overflow:hidden;
}
.btn-primary::before {
  content:''; position:absolute; inset:0;
  background:#fff; transform:translateX(-101%);
  transition: transform 0.3s ease;
}
.btn-primary:hover::before { transform:translateX(0); }
.btn-primary span { position:relative; z-index:1; }
.btn-secondary {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration:none;
  display:inline-flex; align-items:center; gap:10px;
  transition: color 0.2s;
}
.btn-secondary:hover { color: var(--text); }
.btn-secondary svg { transition: transform 0.2s; }
.btn-secondary:hover svg { transform: translateX(4px); }

.hero-visual {
  position:relative;
  align-self:center;
  opacity:0;
  animation: fadeLeft 0.9s 0.75s forwards;
}
.hero-photo-frame {
  position:relative;
  border: 1px solid rgba(127,255,178,0.22);
  border-radius: 12px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(17,17,24,0.72), rgba(6,6,8,0.96));
  box-shadow: 0 25px 80px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(127,255,178,0.06);
}
.hero-photo {
  width:100%;
  display:block;
  border-radius:8px;
  aspect-ratio: 4 / 5;
  object-fit:cover;
  object-position:center 18%;
  filter: grayscale(100%) contrast(1.08) brightness(0.86);
}
.hero-photo-tint {
  position:absolute;
  left:14px;
  right:14px;
  top:14px;
  bottom:14px;
  border-radius:8px;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(13,20,18,0.18), rgba(127,255,178,0.18));
  mix-blend-mode: screen;
}
.hero-stats {
  position:absolute;
  right:-22px;
  bottom:20px;
  display:flex; flex-direction:column; gap:18px; align-items:flex-end;
  background: rgba(6,6,8,0.78);
  border: 1px solid rgba(127,255,178,0.16);
  border-radius:10px;
  backdrop-filter: blur(8px);
  padding: 14px 16px;
  opacity:0; animation: fadeLeft 0.9s 0.9s forwards;
}
.hero-stat-item {
  text-align:right;
  min-width:122px;
}
.hero-stat-item:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom:12px;
}
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 40px;
  line-height:1;
  color: var(--text);
}
.hero-stat-num span { color: var(--accent); }
.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 9px; letter-spacing:0.15em;
  text-transform:uppercase; color: var(--muted);
  margin-top:4px;
}

@keyframes fadeUp { from{ opacity:0; transform:translateY(30px); } to{ opacity:1; transform:translateY(0); } }
@keyframes fadeLeft { from{ opacity:0; transform:translateX(30px); } to{ opacity:1; transform:translateX(0); } }

@media (max-height:860px) and (min-width:901px) {
  #hero { padding:84px 48px 18px; }
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
    gap:40px;
  }
  .hero-name { font-size: clamp(68px, 10.5vw, 150px); }
  .hero-desc {
    margin-top:16px;
    font-size:15px;
    line-height:1.52;
  }
  .hero-actions { margin-top:22px; }
  .btn-primary { padding:14px 28px; }
  .hero-stat-num { font-size:36px; }
}

/* ── SECTION BASE ──────────────────────────────────── */
section { padding: 120px 60px; }
.section-label {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing:0.2em;
  text-transform:uppercase; color: var(--accent);
  display:inline-flex; align-items:center; gap:12px;
  margin-bottom: 60px;
}
.section-label::before { content:''; width:24px; height:1px; background:var(--accent); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(60px, 8vw, 110px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* ── ABOUT ──────────────────────────────────── */
#about {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items:center;
  max-width: 1200px;
}
.about-left .section-title { margin-bottom:0; }
.about-left .section-title em {
  font-style:normal; color:transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.2);
}
.about-right p {
  font-size:16px; line-height:1.85; color: var(--muted);
  margin-bottom:24px; font-weight:300;
}
.about-right p strong { color: var(--text); font-weight:500; }
.about-tags {
  display:flex; flex-wrap:wrap; gap:10px;
  margin-top:32px;
}
.tag {
  font-family: var(--font-mono);
  font-size:10px; letter-spacing:0.1em;
  text-transform:uppercase;
  border: 1px solid var(--border);
  padding: 8px 16px;
  color: var(--muted);
  transition: all 0.2s;
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* ── SKILLS ──────────────────────────────────── */
#skills { position:relative; overflow:hidden; }
.skills-marquee-wrap {
  overflow:hidden; margin: 60px -60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.skills-marquee {
  display:flex; width:max-content;
  animation: marquee 25s linear infinite;
}
.skills-marquee:hover { animation-play-state:paused; }
.marquee-item {
  font-family: var(--font-display);
  font-size: 52px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.12);
  padding: 0 40px;
  white-space:nowrap;
  transition: color 0.2s, -webkit-text-stroke 0.2s;
}
.marquee-item:hover { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.marquee-item.accent { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
@keyframes marquee { from{transform:translateX(0)} to{transform:translateX(-50%)} }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 80px;
  border: 1px solid var(--border);
  background: var(--border);
}
.skill-category {
  background: var(--bg);
  padding: 40px;
  transition: background 0.3s;
}
.skill-category:hover { background: var(--surface); }
.skill-cat-label {
  font-family: var(--font-mono);
  font-size:10px; letter-spacing:0.15em;
  text-transform:uppercase; color: var(--accent);
  margin-bottom:20px;
}
.skill-cat-items {
  display:flex; flex-wrap:wrap; gap:8px;
}
.skill-pill {
  font-family: var(--font-mono);
  font-size:11px; letter-spacing:0.05em;
  color: var(--muted);
  padding:6px 12px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.skill-pill:hover { color: var(--text); border-color: rgba(255,255,255,0.2); }

/* ── PROJECTS ──────────────────────────────────── */
#projects { background: var(--bg2); border-top:1px solid var(--border); }
.projects-header {
  display:flex; justify-content:space-between; align-items:flex-end;
  margin-bottom: 80px;
}
.project-card {
  border: 1px solid var(--border);
  margin-bottom: 1px;
  overflow:hidden;
  position:relative;
  transition: border-color 0.3s;
  background: var(--bg);
}
.project-card:hover { border-color: rgba(127,255,178,0.25); }
.project-card-inner {
  display:grid;
  grid-template-columns: 80px 1fr auto;
  align-items:start;
  gap:40px;
  padding: 40px 50px;
  cursor: none;
  transition: all 0.4s ease;
}
.project-card:hover .project-card-inner { background: var(--surface); }
.project-num {
  font-family: var(--font-mono);
  font-size:11px; color: var(--muted);
  padding-top: 8px;
}
.project-title-row {
  display:flex; align-items:center; gap:20px;
  margin-bottom:16px;
}
.project-title {
  font-family: var(--font-display);
  font-size: 42px;
  line-height:1;
  color: var(--text);
  transition: color 0.2s;
}
.project-card:hover .project-title { color: var(--accent); }
.project-badge {
  font-family: var(--font-mono);
  font-size:9px; letter-spacing:0.12em;
  text-transform:uppercase;
  padding: 5px 12px;
  border: 1px solid;
}
.badge-ai { color: var(--accent); border-color: var(--accent); }
.badge-fin { color: var(--accent3); border-color: var(--accent3); }
.badge-reg { color: var(--accent2); border-color: var(--accent2); }
.badge-col { color: #ffd166; border-color: #ffd166; }
.badge-sync { color: #38bdf8; border-color: #38bdf8; }
.project-desc {
  font-size:14px; line-height:1.75; color: var(--muted);
  max-width:680px; font-weight:300;
  margin-bottom:24px;
}
.project-tech {
  display:flex; flex-wrap:wrap; gap:8px;
}
.project-tech span {
  font-family: var(--font-mono);
  font-size:10px; letter-spacing:0.1em; text-transform:uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding:5px 10px;
}
.project-arrow {
  width: 48px; height: 48px;
  border: 1px solid var(--border);
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  color: var(--muted);
  margin-top:8px; align-self:flex-start;
  transition: all 0.25s;
  flex-shrink:0;
}
.project-card:hover .project-arrow {
  background: var(--accent); border-color:var(--accent);
  color:#000; transform:rotate(45deg);
}
.project-expanded {
  max-height:0; overflow:hidden;
  transition: max-height 0.5s ease;
  border-top: 0px solid var(--border);
}
.project-expanded.open {
  max-height: 400px;
  border-top-width: 1px;
}
.project-expanded-inner {
  padding: 32px 50px 32px calc(80px + 40px + 50px);
  display:grid; grid-template-columns:1fr 1fr; gap:40px;
}
.project-highlight {
  font-size:13px; line-height:1.8; color: var(--muted);
  font-weight:300;
}
.project-highlight strong { color: var(--text); font-weight:500; display:block; margin-bottom:8px; font-size:11px; letter-spacing:0.1em; text-transform:uppercase; font-family: var(--font-mono); }

/* ── ACHIEVEMENTS ──────────────────────────────────── */
#achievements {
  border-top: 1px solid var(--border);
  position:relative;
}
.achievements-grid {
  display:grid; grid-template-columns:repeat(2,1fr);
  gap:1px; background: var(--border);
  border: 1px solid var(--border);
  margin-top:80px;
}
.achievement-card {
  background: var(--bg);
  padding: 50px;
  position:relative; overflow:hidden;
  transition: background 0.3s;
}
.achievement-card:hover { background: var(--surface); }
.ach-bg-text {
  position:absolute; bottom:-10px; right:-10px;
  font-family: var(--font-display);
  font-size:140px; line-height:1;
  color: transparent; -webkit-text-stroke:1px rgba(255,255,255,0.04);
  pointer-events:none;
  transition: -webkit-text-stroke 0.3s;
}
.achievement-card:hover .ach-bg-text { -webkit-text-stroke-color: rgba(127,255,178,0.08); }
.ach-rank {
  font-family: var(--font-display); font-size:64px; line-height:1;
  color: var(--accent); margin-bottom:16px;
}
.ach-title {
  font-size:18px; font-weight:500; color: var(--text);
  margin-bottom:10px; line-height:1.4;
}
.ach-detail {
  font-family: var(--font-mono); font-size:11px;
  letter-spacing:0.1em; text-transform:uppercase;
  color: var(--muted);
}

/* ── CONTACT ──────────────────────────────────── */
#contact {
  background: var(--accent);
  padding: 120px 60px;
  position:relative; overflow:hidden;
}
.contact-bg-text {
  position:absolute; bottom:-40px; left:-20px;
  font-family: var(--font-display); font-size:280px; line-height:1;
  color:transparent; -webkit-text-stroke:1px rgba(0,0,0,0.08);
  pointer-events:none;
}
.contact-inner { position:relative; z-index:1; max-width:900px; }
.contact-label {
  font-family: var(--font-mono); font-size:10px;
  letter-spacing:0.2em; text-transform:uppercase;
  color: rgba(0,0,0,0.5); margin-bottom:30px;
  display:flex; align-items:center; gap:12px;
}
.contact-label::before { content:''; width:24px; height:1px; background:rgba(0,0,0,0.3); }
.contact-title {
  font-family: var(--font-display); font-size: clamp(70px, 9vw, 130px);
  line-height:0.9; color:#000; margin-bottom:50px;
}
.contact-links {
  display:flex; gap:30px; flex-wrap:wrap;
}
.contact-link {
  font-family: var(--font-mono); font-size:12px;
  letter-spacing:0.12em; text-transform:uppercase;
  color:#000; text-decoration:none;
  display:inline-flex; align-items:center; gap:10px;
  border-bottom:1px solid rgba(0,0,0,0.25);
  padding-bottom:6px;
  transition: all 0.2s;
}
.contact-link:hover { border-color:#000; gap:16px; }
.footer-bar {
  background: var(--bg);
  padding: 24px 60px;
  display:flex; justify-content:space-between; align-items:center;
  border-top:1px solid var(--border);
}
.footer-copy {
  font-family: var(--font-mono); font-size:10px;
  letter-spacing:0.1em; text-transform:uppercase; color: var(--muted);
}

/* ── REVEAL ANIMATIONS ──────────────────────────────────── */
.reveal { opacity:0; transform:translateY(40px); transition: all 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal-delay-1 { transition-delay:0.1s; }
.reveal-delay-2 { transition-delay:0.2s; }
.reveal-delay-3 { transition-delay:0.3s; }
.reveal-delay-4 { transition-delay:0.4s; }
.reveal-stagger > * { opacity:0; transform:translateY(30px); transition: all 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal-stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:0s; }
.reveal-stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:0.1s; }
.reveal-stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:0.2s; }
.reveal-stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:0.3s; }
.reveal-stagger.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay:0.4s; }
.reveal-stagger.visible > *:nth-child(6) { opacity:1; transform:none; transition-delay:0.5s; }

/* ── EDUCATION ──────────────────────────────────── */
#education { background: var(--bg2); border-top:1px solid var(--border); }
.edu-list { margin-top:80px; }
.edu-item {
  display:grid; grid-template-columns:200px 1fr auto;
  align-items:center; gap:40px;
  padding:32px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.edu-item:hover { padding-left:16px; }
.edu-year { font-family: var(--font-mono); font-size:11px; color: var(--muted); letter-spacing:0.1em; }
.edu-school { font-size:20px; font-weight:500; color: var(--text); margin-bottom:4px; }
.edu-degree { font-size:13px; color: var(--muted); }
.edu-score { font-family: var(--font-display); font-size:40px; color: var(--accent); }

/* ── RESPONSIVE ──────────────────────────────────── */
@media(max-width:900px){
  nav { padding:16px 24px; }
  nav.scrolled { padding:12px 24px; }
  .nav-menu-toggle { display:inline-flex; align-items:center; }
  .nav-links {
    display:none;
    position:absolute;
    top: calc(100% + 8px);
    left:24px;
    right:24px;
    flex-direction:column;
    gap:14px;
    padding:16px;
    background: rgba(6,6,8,0.97);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
  }
  .nav-links.open { display:flex; }
  .nav-cta { display:none; }
  section { padding:80px 24px; }
  #hero {
    min-height:100svh;
    height:auto;
    padding:96px 24px 24px;
  }
  .hero-layout { grid-template-columns:1fr; gap:20px; }
  .hero-content { max-width:100%; }
  .hero-name { font-size: clamp(62px, 18vw, 110px); }
  .hero-desc {
    margin-top:16px;
    font-size:14.5px;
    line-height:1.5;
  }
  .hero-actions { margin-top:22px; }
  .hero-visual { width:min(100%, 320px); margin:0 auto; }
  .hero-stats { right:8px; bottom:8px; gap:8px; padding:10px 12px; }
  .hero-stat-item { min-width:104px; }
  .hero-stat-item:not(:last-child) { padding-bottom:8px; }
  .hero-stat-num { font-size:30px; }
  .hero-stat-label { font-size:8px; }
  .about-grid { grid-template-columns:1fr; gap:40px; }
  .skills-grid { grid-template-columns:1fr; }
  .project-card-inner { grid-template-columns:50px 1fr; gap:20px; padding:28px 24px; }
  .project-arrow { display:none; }
  .project-title { font-size:30px; }
  .project-expanded-inner { grid-template-columns:1fr; padding:24px; }
  .achievements-grid { grid-template-columns:1fr; }
  .edu-item { grid-template-columns:1fr; gap:8px; }
  .contact-links { flex-direction:column; gap:16px; }
  .footer-bar { flex-direction:column; gap:12px; text-align:center; }
  #cursor, #cursor-ring { display:none; }
  body { cursor:auto; }
}

@media(max-width:640px){
  .hero-name { font-size: clamp(58px, 20vw, 96px); }
  .hero-desc { margin-top:12px; font-size:14px; line-height:1.45; }
  .hero-actions { 
    margin-top:24px; 
    gap:16px; 
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-primary { 
    width: 100%; 
    justify-content: center;
    padding: 14px 24px; 
  }
  .section-title { font-size: clamp(44px, 16vw, 84px); }
  .project-card-inner { padding:22px 18px; }
  .project-tech { gap:6px; }
  .project-tech span { font-size:9px; padding:4px 8px; }
  .contact-title { font-size: clamp(52px, 16vw, 90px); }
}

@media(max-width:420px){
  nav { padding:14px 16px; }
  nav.scrolled { padding:11px 16px; }
  .nav-links { left:16px; right:16px; }
  section { padding:72px 16px; }
  #hero { padding:92px 16px 18px; }
  .hero-stats {
    position:static;
    margin-top:12px;
    align-items:flex-start;
    width:100%;
    backdrop-filter:none;
    padding:10px 12px;
  }
  .hero-stat-item {
    width:100%;
    text-align:left;
    min-width:0;
  }
  .hero-stat-num { font-size:30px; }
  .hero-stat-label { font-size:8px; }
  .hero-photo-frame { padding:10px; }
  .hero-photo-tint {
    left:10px;
    right:10px;
    top:10px;
    bottom:10px;
  }
}

@media (hover:none), (pointer:coarse) {
  #cursor, #cursor-ring { display:none !important; }
  body, .btn-primary, .nav-cta, .project-card-inner { cursor:auto; }
  .achievement-card:hover,
  .project-card:hover .project-card-inner,
  .project-card:hover .project-title,
  .project-card:hover .project-arrow,
  .nav-cta:hover,
  .btn-primary:hover::before,
  .contact-link:hover {
    transform:none;
    background: unset;
    color: inherit;
    gap:10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after {
    animation-duration:0.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.01ms !important;
  }
}