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

:root {
  --bg:      #0c0c0c;
  --bg2:     #111111;
  --surface: #161616;
  --border:  #222222;
  --border2: #2e2e2e;
  --text:    #f0f0f0;
  --muted:   #7a8a6a;
  --accent:  #a8ff3e;
  --r: 0px;
}

/* ── SCROLL PROGRESS BAR ── */
#scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 200;
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 60%, transparent);
}
@supports (animation-timeline: scroll()) {
  #scroll-progress {
    animation: sc-progress linear;
    animation-timeline: scroll();
  }
  @keyframes sc-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

html { scroll-behavior: smooth; }

h1, h2, h3, h4 { text-wrap: balance; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

.mono { font-family: 'JetBrains Mono', monospace; }

/* ── CURSOR ── */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--accent);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.08s, width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
}

/* ── BUTTONS ── */
.btn-sharp {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: #0c0c0c;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: none;
  transition: background 0.15s, transform 0.15s;
}
.btn-sharp:hover { background: #c4ff6a; transform: translateY(-2px); }

.btn-line {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: var(--text);
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--border2);
  cursor: none;
  transition: border-color 0.15s, color 0.15s;
}
.btn-line:hover { border-color: var(--accent); color: var(--accent); }

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid var(--border);
  background: rgba(12,12,12,0.85);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.nav-links { display: flex; gap: 40px; }
.nav-links a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.nav-active {
  color: var(--accent);
  position: relative;
}
.nav-links a.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--accent);
  box-shadow: 0 0 6px color-mix(in srgb, var(--accent) 50%, transparent);
}

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--border2);
  color: var(--muted);
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  cursor: none;
  z-index: 90;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, border-color 0.15s, color 0.15s;
  pointer-events: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 20%, transparent);
}
@media (max-width: 600px) {
  .back-to-top { cursor: pointer; bottom: 20px; right: 16px; }
}

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.hero {
  min-height: 100vh;
  padding: 120px 40px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 48px;
}

.divider-h {
  display: inline-block;
  width: 40px; height: 1px;
  background: var(--border2);
}

.hero-title {
  font-size: clamp(4rem, 12vw, 10rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 60px;
}

.block-left  { display: block; color: var(--text); }
.block-right { display: block; color: var(--text); padding-left: clamp(2rem, 8vw, 8rem); }
.block-accent { display: block; color: var(--accent); }
.block-outline {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--border2);
  padding-left: clamp(4rem, 16vw, 16rem);
  transition: -webkit-text-stroke-color 0.3s;
}
.hero:hover .block-outline { -webkit-text-stroke-color: var(--muted); }

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding-bottom: 80px;
  flex-wrap: wrap;
}

.hero-desc {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 280px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-ticker {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  overflow: hidden;
  position: absolute;
  bottom: 0; left: 0; right: 0;
}

.ticker-inner {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: ticker 18s linear infinite;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ticker-inner span:nth-child(even) { color: var(--border2); }

/* ══════════════════════════════
   STATS BAR
══════════════════════════════ */
.stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: #0e0f0c;
}

.stat-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 48px;
  border-right: 1px solid var(--border);
  flex: 1;
  gap: 4px;
}
.stat-unit:last-child { border-right: none; }

.stat-n {
  font-family: 'Syne', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-l {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-sep {
  font-size: 1.5rem;
  color: var(--border);
  flex-shrink: 0;
}

/* ══════════════════════════════
   SHOWCASE
══════════════════════════════ */
.showcase {
  padding: 80px 40px 100px;
}

.section-head {
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-label {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.section-head h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.section-head h2 em {
  font-style: normal;
  color: var(--accent);
}

/* GRID */
.grid-main {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.cell {
  background: var(--bg);
  padding: 32px;
  transition: background 0.2s;
}
.cell:hover { background: var(--surface); }

.cell-skills   { grid-column: span 2; }
.cell-projects { grid-column: span 3; }
.cell-testimonials { grid-column: span 2; }

.cell-tag {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cell-tag::before {
  content: '';
  display: inline-block;
  width: 16px; height: 1px;
  background: var(--accent);
}

/* ── SKILLS ── */
.skills { display: flex; flex-direction: column; gap: 16px; }

.sk-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 6px;
  font-weight: 600;
}
.sk-head .mono { font-size: 0.75rem; color: var(--muted); }

.sk-track {
  height: 2px;
  background: var(--border2);
  overflow: hidden;
}

.sk-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── TIMELINE ── */
.tl { display: flex; flex-direction: column; gap: 0; }

.tl-row {
  display: grid;
  grid-template-columns: 52px 24px 1fr;
  align-items: start;
  gap: 0;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.tl-row:last-child { border-bottom: none; }

.tl-yr {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  padding-top: 3px;
}

.tl-line {
  width: 1px;
  align-self: stretch;
  background: var(--border2);
  margin: 0 auto;
}

.tl-info { padding-left: 16px; }
.tl-info strong { display: block; font-size: 0.92rem; font-weight: 600; }
.tl-info span { font-size: 0.78rem; color: var(--muted); font-family: 'JetBrains Mono', monospace; }

/* ── PROJECTS ── */
.proj-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin: -32px;
  margin-top: 0;
}

.proj-item {
  background: var(--bg);
  padding: 28px 32px;
  cursor: none;
  transition: background 0.2s;
}
.proj-item:hover { background: var(--surface); }
.proj-item:hover .proj-arrow { transform: translate(3px, -3px); color: var(--accent); }

.proj-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.proj-num { font-size: 0.7rem; color: var(--muted); }
.proj-arrow { font-size: 1.1rem; transition: transform 0.2s, color 0.2s; color: var(--muted); }

.proj-item h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.proj-item p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; margin-bottom: 16px; }

.proj-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.proj-tags .mono {
  font-size: 0.65rem;
  color: var(--muted);
  border: 1px solid var(--border2);
  padding: 3px 8px;
  letter-spacing: 0.05em;
}

/* ── PROFILE CARD ── */
.profile-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 240px;
}

.profile-card {
  border: 1px solid var(--border2);
  padding: 28px 24px;
  width: 220px;
  cursor: none;
  transition: transform 0.1s, border-color 0.2s;
  position: relative;
  background: var(--surface);
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.profile-card:hover::before { transform: scaleX(1); }

.pc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.pc-init {
  width: 44px; height: 44px;
  background: var(--accent);
  color: #0c0c0c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.pc-badge {
  font-size: 0.6rem;
  padding: 3px 8px;
  border: 1px solid var(--accent);
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.profile-card .mono { font-size: 0.72rem; color: var(--muted); display: block; margin-bottom: 20px; }

.pc-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pc-row span {
  font-size: 0.65rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--muted);
  border: 1px solid var(--border2);
  padding: 3px 8px;
  letter-spacing: 0.05em;
}

/* ── TECH TAGS ── */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  padding: 6px 14px;
  border: 1px solid var(--border2);
  color: var(--muted);
  letter-spacing: 0.04em;
  cursor: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.tag-cloud span:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(168, 255, 62, 0.05);
}

/* ── KEY GRADES ── */
.grades-block { border-top: 1px solid var(--border); padding-top: 4px; }

.grades-list { display: flex; flex-direction: column; }

.grade-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.grade-row:last-child { border-bottom: none; }

.grade-subject { font-size: 0.78rem; color: var(--text); }
.grade-score {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 36px;
  text-align: right;
}
.grade-placeholder { color: var(--muted); font-size: 0.72rem; }

/* ── FYP SUMMARY ── */
.fyp-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 180px;
  justify-content: center;
}
.fyp-summary h4 { font-size: 1rem; font-weight: 700; line-height: 1.4; }
.fyp-summary p { font-size: 0.8rem; line-height: 1.7; color: var(--muted); }
.fyp-meta { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.fyp-meta span { font-size: 0.7rem; color: var(--muted); }
.fyp-meta strong { color: var(--accent); }
.fyp-placeholder { color: var(--muted) !important; font-size: 0.72rem !important; }

/* ── RADAR ── */
.radar-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
}
.radar-svg { width: 200px; height: 200px; overflow: visible; }
.r-data { animation: radarPulse 4s ease-in-out infinite; }

/* ── TESTIMONIALS ── */
.test-track {
  position: relative;
  overflow: hidden;
  min-height: 120px;
  margin-bottom: 24px;
}

.test-item {
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s, transform 0.4s;
  pointer-events: none;
}
.test-item.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.test-item p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(240,240,240,0.85);
  margin-bottom: 20px;
  font-style: italic;
}

.test-author { display: flex; align-items: center; gap: 14px; }

.test-av {
  width: 36px; height: 36px;
  background: var(--surface);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  flex-shrink: 0;
  color: var(--accent);
}

.test-author strong { display: block; font-size: 0.88rem; font-weight: 600; }
.test-author .mono { font-size: 0.7rem; color: var(--muted); }

.test-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.test-prev, .test-next {
  background: none;
  border: 1px solid var(--border2);
  color: var(--muted);
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  font-size: 1rem;
  transition: border-color 0.15s, color 0.15s;
}
.test-prev:hover, .test-next:hover { border-color: var(--accent); color: var(--accent); }

.test-count { font-size: 0.7rem; color: var(--muted); }

/* ── GITHUB ── */
.gh-link { display: block; }

.gh-chart-img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.95) contrast(1.05);
  margin-bottom: 12px;
}

.gh-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.65rem;
  color: var(--muted);
}

/* ══════════════════════════════
   CONTACT
══════════════════════════════ */
.contact {
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
  background: #0b0e0b;
}

.contact-left {
  padding: 80px 40px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-left h2 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-top: 24px;
}
.contact-left h2 em { font-style: normal; color: var(--accent); }

.contact-right {
  padding: 80px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: color 0.15s;
  cursor: none;
}
.contact-row:first-child { border-top: 1px solid var(--border); }
.contact-row:hover { color: var(--accent); }
.contact-row:hover .cr-arrow { transform: translate(4px, -4px); color: var(--accent); }

.contact-row .mono { font-size: 0.68rem; color: var(--muted); width: 24px; flex-shrink: 0; }
.contact-row span:nth-child(2) { flex: 1; font-size: 0.9rem; }
.cr-arrow { font-size: 1rem; color: var(--muted); transition: transform 0.2s, color 0.2s; }

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 24px 40px;
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #080a08;
}

/* ══════════════════════════════
   ANIMATIONS
══════════════════════════════ */
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes radarPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HERO ENTRANCE ── */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Eyebrow + bottom: simple fade-up */
.hero-eyebrow { animation: hero-rise 0.6s 0.05s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
.hero-bottom  { animation: hero-rise 0.6s 0.72s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }
.hero-ticker  { animation: hero-rise 0.6s 0.88s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; }

/* Title blocks: curtain reveal — overflow clips, .hw slides up */
.hero-title .block-left,
.hero-title .block-right,
.hero-title .block-accent,
.hero-title .block-outline {
  overflow: hidden;
  padding-bottom: 0.05em; /* prevent descender clip */
}

.hw {
  display: block;
  animation: curtain-rise 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.block-left   .hw { animation-delay: 0.12s; }
.block-right  .hw { animation-delay: 0.26s; }
.block-accent .hw { animation-delay: 0.40s; }
.block-outline .hw { animation-delay: 0.54s; }

@keyframes curtain-rise {
  from { transform: translateY(108%); }
  to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero-bottom, .hero-ticker { animation: none; opacity: 1; }
  .hw { animation: none; transform: none; }
}

/* ══════════════════════════════
   RESPONSIVE — TABLET
══════════════════════════════ */
@media (max-width: 900px) {
  .nav { padding: 16px 20px; }
  .hero { padding: 100px 20px 0; }
  .stats-bar { flex-wrap: wrap; }
  .stat-unit { flex: 1 1 45%; border-right: none; border-bottom: 1px solid var(--border); }
  .stat-sep { display: none; }
  .grid-main { grid-template-columns: 1fr; }
  .cell-skills, .cell-projects, .cell-testimonials { grid-column: span 1; }
  .proj-list { grid-template-columns: 1fr; margin: -32px; margin-top: 0; }
  .contact { grid-template-columns: 1fr; }
  .contact-left { border-right: none; border-bottom: 1px solid var(--border); padding: 48px 20px; }
  .contact-right { padding: 48px 20px; }
  .showcase { padding: 60px 20px 80px; }
  .footer { padding: 20px; flex-direction: column; gap: 8px; }
}

/* ══════════════════════════════
   RESPONSIVE — MOBILE
══════════════════════════════ */
@media (max-width: 600px) {
  /* Touch devices don't need custom cursor */
  .cursor { display: none; }
  body { cursor: auto; }
  a, button, .proj-item, .tag-cloud span,
  .test-prev, .test-next, .contact-row,
  .btn-sharp, .btn-line { cursor: pointer; }

  /* Nav */
  .nav { padding: 12px 16px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 0.6rem; letter-spacing: 0.05em; }

  /* Hero — remove stagger offsets, scale title */
  .hero {
    padding: 90px 16px 70px;
    min-height: 100svh;
  }
  .hero-eyebrow { margin-bottom: 28px; font-size: 0.62rem; gap: 10px; }
  .hero-title { font-size: clamp(2.8rem, 15vw, 4rem); margin-bottom: 32px; line-height: 0.92; }
  .block-right  { padding-left: 0; }
  .block-outline { padding-left: 0; }
  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-bottom: 48px;
  }
  .hero-desc { max-width: 100%; font-size: 0.82rem; }
  .hero-cta { width: 100%; }
  .btn-sharp, .btn-line { padding: 12px 24px; font-size: 0.82rem; }

  /* Stats — 2×2 grid */
  .stats-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-wrap: unset;
  }
  .stat-unit {
    flex: unset;
    padding: 20px 12px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  .stat-unit:nth-child(2n) { border-right: none; }
  .stat-unit:nth-last-child(-n+2) { border-bottom: none; }
  .stat-n { font-size: 2rem; }
  .stat-l { font-size: 0.58rem; }

  /* Showcase section */
  .showcase { padding: 40px 16px 56px; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: clamp(2rem, 10vw, 2.8rem); }

  /* Grid cells */
  .cell { padding: 20px 16px; }
  .cell-tag { margin-bottom: 16px; }

  /* Skills */
  .sk-head { font-size: 0.78rem; }
  .sk-head span:first-child { font-size: 0.78rem; }

  /* Projects */
  .proj-list { margin: -20px; margin-top: 0; }
  .proj-item { padding: 20px 16px; }
  .proj-item h4 { font-size: 0.95rem; }
  .proj-item p { font-size: 0.78rem; }

  /* Profile card */
  .profile-wrap { min-height: 180px; }
  .profile-card { width: 100%; max-width: 260px; }

  /* FYP */
  .fyp-summary p { font-size: 0.78rem; line-height: 1.65; }

  /* Testimonials */
  .test-item p { font-size: 0.85rem; }
  .test-track { min-height: 160px; }

  /* GitHub chart — horizontal scroll instead of squish */
  .cell-github .gh-link {
    overflow-x: auto;
    overflow-y: hidden;
    display: block;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--border2) transparent;
  }
  .gh-chart-img {
    width: auto;
    min-width: 600px;
    height: auto;
  }

  /* Contact */
  .contact-left { padding: 40px 16px; }
  .contact-right { padding: 32px 16px; }
  .contact-row { gap: 12px; padding: 16px 0; }
  .contact-row span:nth-child(2) { font-size: 0.78rem; word-break: break-all; }

  /* Footer */
  .footer { padding: 16px; }
}
