/* =====================================================
   SCVD PORTFOLIO — STYLE.CSS
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Syne:wght@400;500;600;700;800&display=swap');

/* ─── CSS VARIABLES ─────────────────────────────── */
:root {
  --orange:      #8B3A1F;
  --orange-dim:  rgba(139, 58, 31, 0.55);
  --cream:       #87CEEB;
  --stone:       #161616;
  --stone-dim:   rgba(22, 22, 22, 0.7);
  --stone-faint: rgba(22, 22, 22, 0.15);
  --warm-white:  #FEF8E8;
  --dark-bg:     #0a0a0a;
  --dark-card:   #111111;
  --dark-border: rgba(255,255,255,0.08);
  --glass-bg:    rgba(255,255,255,0.18);
  --radius-pill: 9999px;
  --radius-card: 20px;
  --transition:  cubic-bezier(0.175, 0.885, 0.32, 2.2);
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── RESET ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: #87CEEB !important; background-color: #87CEEB !important; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #87CEEB !important;
  background-color: #87CEEB !important;
  color: var(--stone);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { border: none; background: none; cursor: none; font-family: inherit; }

/* ─── CUSTOM CURSOR (GPU 60FPS) ─────────────────── */
#cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  will-change: transform;
  transition: width 0.25s ease-out, height 0.25s ease-out, background 0.25s ease-out;
  mix-blend-mode: normal;
}
#cursor-ring {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  will-change: transform;
  transition: width 0.3s ease-out, height 0.3s ease-out, border-color 0.25s ease-out, opacity 0.25s ease-out;
  opacity: 0.7;
}

/* ─── PAGE TRANSITION (GPU 60FPS) ───────────────── */
#page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  display: flex;
}
.pt-panel {
  flex: 1;
  background: var(--orange);
  transform: translateY(0%);
  position: relative;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: preserve-3d;
}
.pt-panel .pt-curve-top, .pt-panel .pt-curve-bot {
  position: absolute; left: 0; width: 100%; height: 15vh;
  fill: var(--orange); pointer-events: none;
  will-change: transform;
}
.pt-panel .pt-curve-top { bottom: 100%; }
.pt-panel .pt-curve-bot { top: 100%; }

/* ─── GLASSMORPHISM NAV ──────────────────────────── */
#main-nav {
  position: fixed;
  top: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  border-radius: var(--radius-pill);
  padding: 6px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.22), 0 0 0 1px rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(228, 226, 227, 0.4);
  transition: background 0.4s, box-shadow 0.4s;
}
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--stone);
  transition: all 0.3s var(--transition);
  white-space: nowrap;
}
.nav-link svg { width: 17px; height: 17px; flex-shrink: 0; }
.nav-link:hover, .nav-link.active { background: var(--orange); color: #fff !important; transform: scale(1.06); }

/* ─── HERO ───────────────────────────────────────── */
#hero {
  position: relative; width: 100%; height: 100vh;
  background: var(--cream); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  user-select: none;
}
#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: auto; z-index: 0;
}
.hero-top {
  position: absolute; top: 24px; left: 32px; right: 32px;
  z-index: 40; display: flex; justify-content: space-between;
  align-items: flex-start; pointer-events: none;
}
.hero-logo { display: flex; align-items: center; gap: 10px; pointer-events: auto; }
.hero-logo svg {
  width: 36px; height: 36px; color: var(--orange);
  filter: drop-shadow(0 0 10px rgba(139,58,31,0.45));
  animation: pulse 2.2s ease-in-out infinite;
}
.hero-logo-text {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(18px, 2.2vw, 26px); font-weight: 700;
  letter-spacing: 0.28em; color: var(--orange); text-transform: uppercase;
}
.hero-info {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 10px; max-width: 280px; padding-top: 4px; pointer-events: auto;
}
.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(26px, 3.2vw, 40px); font-weight: 800;
  color: var(--stone); transform: rotate(-5deg);
  transition: all 0.35s; letter-spacing: 0.02em; white-space: nowrap;
}
.hero-name:hover { color: var(--orange); transform: rotate(-5deg) scale(1.05); }
.hero-desc {
  font-size: 11px; color: rgba(22,22,22,0.8);
  font-weight: 500; line-height: 1.65; text-align: right;
}
.btn-contact {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 20px; border: 1.5px solid rgba(22,22,22,0.3);
  border-radius: var(--radius-pill); color: var(--stone);
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px); transition: all 0.3s; cursor: none;
}
.btn-contact:hover { border-color: var(--orange); color: var(--orange); }
.btn-contact svg { width: 13px; height: 13px; transition: transform 0.3s; }
.btn-contact:hover svg { transform: translate(2px, -2px); }

/* Center hero text */
.hero-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  pointer-events: none; z-index: 10; margin-top: -40px;
}
/* ─── 3D WEBGL SCVD WRAP ─────────────────────────── */
.scvd-3d-webgl-wrap {
  width: 92vw;
  max-width: 1400px;
  height: 52vh;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: transform;
  user-select: none;
  cursor: grab;
}
.scvd-3d-webgl-wrap canvas {
  display: block;
  border-radius: 12px;
}
.scvd-fallback-title {
  font-family: 'Oswald', sans-serif;
  font-weight: 900;
  font-size: clamp(100px, 22vw, 300px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin: 0;
  text-align: center;
}

.hero-build-tag {
  font-family: 'Oswald', sans-serif;
  font-weight: 900;
  font-size: clamp(24px, 4vw, 54px);
  letter-spacing: 0.28em;
  color: var(--orange);
  margin-top: 14px;
  opacity: 1;
  text-shadow: 0 4px 15px rgba(139, 58, 31, 0.25);
}

.hero-typewriter {
  font-family: 'Oswald', sans-serif; font-weight: 900;
  font-size: clamp(28px, 5vw, 64px); text-transform: uppercase;
  line-height: 0.82; letter-spacing: -0.02em;
  color: transparent; -webkit-text-stroke: 2px var(--orange);
  text-align: center; min-height: 1.1em; margin-top: 12px; padding: 0 16px;
}
.cursor-blink {
  -webkit-text-stroke: 0; color: var(--orange);
  animation: blink 0.85s step-end infinite; font-size: 0.9em; opacity: 0.85;
}

@keyframes liquidShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes jellyFloat {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  33%      { transform: translateY(-8px) scale(1.03, 0.97); }
  66%      { transform: translateY(4px) scale(0.98, 1.02); }
}

@keyframes jellyWobble {
  0%   { transform: scale(1, 1); }
  25%  { transform: scale(1.15, 0.88) rotate(-2deg); }
  50%  { transform: scale(0.92, 1.12) rotate(2deg); }
  75%  { transform: scale(1.05, 0.96) rotate(-1deg); }
  100% { transform: scale(1, 1) rotate(0deg); }
}

/* Person image / placeholder */
.hero-person {
  position: absolute; bottom: 60px; left: 50%;
  transform: translateX(-50%); z-index: 20;
  width: 90%; max-width: 460px; height: 80%;
  display: flex; align-items: flex-end; justify-content: center;
  pointer-events: none;
}
.hero-person img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,0.22));
}
.hero-person-placeholder {
  width: 220px; height: 320px;
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
  background: linear-gradient(160deg, rgba(139,58,31,0.12) 0%, rgba(22,22,22,0.06) 100%);
  border: 2px dashed rgba(139,58,31,0.25);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; color: rgba(139,58,31,0.45);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.hero-person-placeholder svg { width: 44px; height: 44px; opacity: 0.35; }

/* Stats */
.hero-stats {
  position: absolute; bottom: 96px; left: 32px;
  z-index: 30; display: flex; flex-direction: column; gap: 20px;
}
.stat-item { border-top: 1px solid var(--stone-faint); padding-top: 12px; width: 160px; }
.stat-num {
  font-family: 'Oswald', sans-serif; font-size: 32px;
  font-weight: 800; color: var(--orange); line-height: 1;
}
.stat-label {
  font-size: 10px; font-weight: 600; color: var(--stone-dim);
  text-transform: uppercase; letter-spacing: 0.12em; margin-top: 4px;
}

/* Marquee */
.marquee-wrap {
  position: absolute; bottom: 28px; left: -5%;
  width: 110%; background: var(--orange);
  padding: 14px 0;
  border-top: 1.5px solid rgba(22,22,22,0.18);
  border-bottom: 1.5px solid rgba(22,22,22,0.18);
  overflow: hidden; z-index: 40;
  transform: rotate(-2deg); transform-origin: center;
  box-shadow: 0 8px 30px rgba(139,58,31,0.35);
}
.marquee-track {
  display: flex; gap: 48px; white-space: nowrap;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(13px, 1.4vw, 17px); font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--warm-white); flex-shrink: 0;
  display: flex; align-items: center; gap: 48px;
}
.marquee-dot { color: rgba(254,248,232,0.5); }

/* ─── INNER PAGES ───────────────────────────────── */
.dark-page-wrapper { background: var(--cream); min-height: 100vh; padding-top: 100px; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 12px;
}
.section-heading {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(34px, 5vw, 70px); font-weight: 800;
  text-transform: uppercase; letter-spacing: -0.01em;
  line-height: 0.9; color: var(--stone);
}
.section-heading span { color: var(--orange); }

/* ─── ABOUT ──────────────────────────────────────── */
.about-hero {
  padding: 60px 80px; display: grid;
  grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: center; max-width: 1400px; margin: 0 auto;
}
.about-bio {
  font-size: 15px; line-height: 1.85;
  color: var(--stone-dim); margin-top: 24px;
}
.about-bio strong { color: var(--stone); }
.about-skills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.skill-tag {
  padding: 8px 18px; border: 1px solid rgba(139,58,31,0.35);
  border-radius: var(--radius-pill); font-size: 12px; font-weight: 600;
  color: var(--orange); letter-spacing: 0.08em;
  background: rgba(139,58,31,0.08); transition: all 0.3s;
}
.skill-tag:hover { background: var(--orange); color: #fff; transform: translateY(-2px); }
.about-image-wrap { position: relative; }
.about-image-frame {
  width: 100%; aspect-ratio: 3/4; max-height: 520px;
  border-radius: var(--radius-card);
  background: linear-gradient(145deg, rgba(139,58,31,0.15), rgba(22,22,22,0.1));
  border: 1.5px dashed rgba(139,58,31,0.3);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; color: rgba(139,58,31,0.45);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  overflow: hidden;
}
.about-image-frame svg { width: 52px; height: 52px; opacity: 0.45; }

/* Founder photo frame — overrides dashed placeholder */
.founder-photo-frame {
  border: none;
  background: none;
  padding: 0;
  border-radius: 24px;
  box-shadow:
    0 0 0 4px rgba(139,58,31,0.18),
    0 0 0 8px rgba(139,58,31,0.08),
    0 24px 64px rgba(22,22,22,0.18);
  overflow: hidden;
}
.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 24px;
  transition: transform 0.5s var(--ease-out);
}
.founder-photo-frame:hover .founder-photo {
  transform: scale(1.03);
}
.about-badge {
  position: absolute; bottom: -20px; right: -20px;
  width: 100px; height: 100px; border-radius: 50%;
  background: var(--orange);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(139,58,31,0.4);
  animation: float 3s ease-in-out infinite;
}
.about-badge-num {
  font-family: 'Oswald', sans-serif; font-size: 26px;
  font-weight: 800; color: #fff; line-height: 1;
}
.about-badge-text { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.8); }
.about-timeline {
  max-width: 1400px; margin: 0 auto;
  padding: 40px 80px 80px; border-top: 1px solid var(--stone-faint);
}
.timeline-items { margin-top: 48px; display: flex; flex-direction: column; gap: 0; }
.tl-item {
  display: grid; grid-template-columns: 160px 1px 1fr;
  gap: 0 32px; padding: 32px 0; border-bottom: 1px solid var(--stone-faint);
}
.tl-year { font-family: 'Oswald', sans-serif; font-size: 13px; font-weight: 600; color: var(--orange); letter-spacing: 0.1em; padding-top: 4px; }
.tl-line { width: 1px; background: var(--stone-faint); position: relative; }
.tl-line::before {
  content: ''; position: absolute; top: 8px; left: 50%;
  transform: translateX(-50%); width: 9px; height: 9px;
  background: var(--orange); border-radius: 50%;
  box-shadow: 0 0 10px rgba(139,58,31,0.4);
}
.tl-content { padding-left: 8px; }
.tl-title { font-size: 20px; font-weight: 700; color: var(--stone); margin-bottom: 6px; }
.tl-company { font-size: 13px; font-weight: 600; color: var(--orange); letter-spacing: 0.06em; margin-bottom: 10px; }
.tl-desc { font-size: 14px; color: var(--stone-dim); line-height: 1.7; }

/* ─── PROJECTS ───────────────────────────────────── */
.projects-header { max-width: 1400px; margin: 0 auto; padding: 60px 80px 0; }
.projects-grid {
  max-width: 1400px; margin: 0 auto; padding: 48px 80px 80px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 24px;
}
.project-card {
  background: #fff; border-radius: var(--radius-card);
  overflow: hidden; border: 1px solid var(--stone-faint);
  will-change: transform;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
  cursor: none;
  box-shadow: 0 2px 12px rgba(22,22,22,0.06);
}
.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139,58,31,0.35);
  box-shadow: 0 20px 50px rgba(139,58,31,0.18);
}
.project-img {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(139,58,31,0.15), rgba(22,22,22,0.08));
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.project-img-inner {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; color: rgba(139,58,31,0.5);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.project-img-inner svg { width: 38px; height: 38px; opacity: 0.5; }
.project-body { padding: 24px 28px 28px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.project-tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(139,58,31,0.1); color: var(--orange);
  border: 1px solid rgba(139,58,31,0.22);
}
.project-title {
  font-family: 'Oswald', sans-serif; font-size: 21px;
  font-weight: 700; color: var(--stone); margin-bottom: 8px; letter-spacing: 0.02em;
}
.project-desc { font-size: 13px; color: var(--stone-dim); line-height: 1.7; margin-bottom: 20px; }
.project-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--orange); transition: gap 0.25s;
}
.project-link:hover { gap: 13px; }
.project-link svg { width: 14px; height: 14px; }

/* ─── CONTACT ────────────────────────────────────── */
.contact-wrap {
  max-width: 1400px; margin: 0 auto; padding: 60px 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.contact-email-big {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(22px, 3vw, 44px); font-weight: 800;
  color: var(--orange); letter-spacing: -0.01em; margin-top: 24px;
  word-break: break-all; transition: opacity 0.3s;
}
.contact-email-big:hover { opacity: 0.7; }
.contact-socials { display: flex; flex-direction: column; gap: 12px; margin-top: 40px; }
.social-item {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border: 1px solid var(--stone-faint);
  border-radius: 14px; color: var(--stone-dim);
  font-size: 14px; font-weight: 500; transition: all 0.25s;
}
.social-item:hover {
  border-color: var(--orange); color: var(--stone);
  background: rgba(139,58,31,0.08); transform: translateX(6px);
}
.social-item svg { width: 20px; height: 20px; flex-shrink: 0; }
.social-item span { flex: 1; }
.social-arrow { width: 14px; height: 14px; opacity: 0.35; transition: opacity 0.25s; }
.social-item:hover .social-arrow { opacity: 1; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone-dim); }
.form-input, .form-textarea {
  background: rgba(255,255,255,0.6); border: 1.5px solid rgba(139,58,31,0.2);
  border-radius: 12px; padding: 14px 18px; color: var(--stone);
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px;
  font-weight: 500; outline: none; transition: border-color 0.25s, background 0.25s; cursor: none;
}
.form-textarea { resize: vertical; min-height: 140px; }
.form-input:focus, .form-textarea:focus { border-color: var(--orange); background: rgba(255,255,255,0.9); }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(22,22,22,0.4); }
.btn-send {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px; background: var(--orange); color: #fff;
  border-radius: var(--radius-pill); font-size: 13px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; transition: all 0.3s;
  cursor: none; box-shadow: 0 8px 24px rgba(139,58,31,0.35); width: 100%;
}
.btn-send:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(139,58,31,0.5); }
.btn-send svg { width: 16px; height: 16px; transition: transform 0.3s; }
.btn-send:hover svg { transform: translate(2px,-2px); }
.form-success {
  display: none; padding: 14px 20px; border-radius: 12px;
  background: rgba(139,58,31,0.12); border: 1px solid rgba(139,58,31,0.3);
  color: var(--orange); font-size: 14px; font-weight: 600; text-align: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--stone-faint); padding: 28px 80px;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--stone-dim); font-size: 12px; font-weight: 500;
}
.footer-logo { font-family: 'Oswald', sans-serif; font-size: 18px; font-weight: 700; letter-spacing: 0.22em; color: var(--orange); }

/* ─── ANIMATIONS ─────────────────────────────────── */
@keyframes marquee  { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse    { 0%,100% { opacity:1; } 50% { opacity:0.55; } }
@keyframes blink    { 0%,100% { opacity:1; } 50% { opacity:0; } }
@keyframes float    { 0%,100% { transform:translateY(0); } 50% { transform:translateY(-10px); } }
@keyframes fadeInUp { from { opacity:0; transform:translateY(32px); } to { opacity:1; transform:translateY(0); } }
.fade-in    { animation: fadeInUp 0.4s var(--ease-out) both; }
.fade-in-d1 { animation-delay: 0.06s; }
.fade-in-d2 { animation-delay: 0.12s; }
.fade-in-d3 { animation-delay: 0.18s; }

/* ─── SCROLL REVEAL ──────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE (1:1 UNIFIED MOBILE & DESKTOP) ─── */

/* ── Tablet (≤1024px) ─────────────────────────────── */
@media (max-width: 1024px) {
  .about-hero    { grid-template-columns: 1fr; gap: 40px; padding: 40px; }
  .contact-wrap  { grid-template-columns: 1fr; gap: 48px; padding: 40px; }
  
  /* Retain stats on tablet in a neat compact layout */
  .hero-stats { 
    display: flex; 
    flex-direction: row; 
    gap: 16px; 
    bottom: 76px; 
    left: 24px; 
  }
  .stat-item { width: auto; min-width: 100px; padding-top: 6px; }
  .stat-num  { font-size: 24px; }
  .stat-label{ font-size: 9px; }

  /* Retain top-right info */
  .hero-info  { max-width: 220px; }
  .hero-desc  { font-size: 10px; line-height: 1.5; }
  
  .projects-grid, .projects-header, .about-timeline { padding: 40px; }
  .tl-item       { grid-template-columns: 100px 1px 1fr; gap: 0 20px; }
  .site-footer   { padding: 24px 40px; }
}

/* ── Mobile (≤768px) ──────────────────────────────── */
@media (max-width: 768px) {

  /* Custom cursor adjustments for touch */
  #cursor-dot, #cursor-ring { display: none !important; }
  body, button, .btn-contact, .project-card,
  .form-input, .form-textarea, .btn-send { cursor: auto !important; }

  /* Nav — Keep text labels AND icons matching desktop */
  #main-nav { top: 12px; padding: 4px 6px; width: auto; max-width: 92vw; }
  .nav-list { gap: 2px; }
  .nav-link  { padding: 7px 10px; font-size: 11px; gap: 5px; }
  .nav-link svg { width: 14px; height: 14px; }
  .nav-link span { display: inline-block; font-size: 11px; }

  /* Hero top bar — retain logo + info on mobile */
  .hero-top { top: 14px; left: 14px; right: 14px; }
  .hero-logo-text { font-size: 15px; letter-spacing: 0.18em; }
  .hero-logo svg  { width: 26px; height: 26px; }

  /* Hero top-right info — visible and matching desktop */
  .hero-info  { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-end; 
    gap: 6px; 
    max-width: 170px; 
  }
  .hero-name { font-size: 22px; }
  .hero-desc { font-size: 9px; line-height: 1.4; display: none; } /* keep CTA button clean */
  .btn-contact { padding: 6px 12px; font-size: 9px; }

  /* Hero center */
  .hero-center { margin-top: 0; padding-top: 50px; }

  /* 3D WebGL wrap — responsive scaling */
  .scvd-3d-webgl-wrap {
    width: 96vw;
    height: 40vh;
  }

  /* Hero Stats — horizontal pill row on mobile matching desktop data */
  .hero-stats {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: calc(100% - 32px);
    left: 16px;
    bottom: 74px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(22, 22, 22, 0.15);
    border-radius: var(--radius-pill);
    padding: 8px 16px;
    gap: 12px;
  }
  .stat-item {
    border-top: none;
    padding-top: 0;
    width: auto;
    text-align: center;
  }
  .stat-num   { font-size: 20px; }
  .stat-label { font-size: 8px; margin-top: 2px; }

  /* BUILD tag + typewriter */
  .hero-build-tag  { font-size: clamp(16px, 5vw, 28px); letter-spacing: 0.18em; margin-top: 8px; }
  .hero-typewriter { font-size: clamp(18px, 6.5vw, 38px); margin-top: 6px; }

  /* Marquee */
  .marquee-wrap { bottom: 14px; padding: 10px 0; }
  .marquee-item { font-size: 11px; gap: 24px; }
  .marquee-track { gap: 24px; }

  /* Inner pages */
  .dark-page-wrapper { padding-top: 76px; }
  .about-hero   { padding: 24px 18px; gap: 28px; }
  .contact-wrap { padding: 24px 18px; gap: 28px; }
  .about-timeline     { padding: 24px 18px 48px; }
  .projects-header    { padding: 24px 18px 0; }
  .projects-grid      { padding: 24px 18px 48px; grid-template-columns: 1fr; gap: 16px; }

  /* Timeline */
  .tl-item { grid-template-columns: 72px 1px 1fr; gap: 0 14px; padding: 20px 0; }
  .tl-year  { font-size: 11px; }
  .tl-title { font-size: 17px; }
  .tl-desc  { font-size: 13px; }

  /* About badge */
  .about-badge { bottom: -14px; right: -10px; width: 80px; height: 80px; }
  .about-badge-num { font-size: 20px; }

  /* Contact email */
  .contact-email-big { font-size: clamp(18px, 5vw, 32px); word-break: break-word; }

  /* Form inputs */
  .form-input, .form-textarea { font-size: 16px; }

  /* Footer */
  .site-footer { flex-direction: column; gap: 8px; text-align: center; padding: 20px; }

  /* Section headings */
  .section-heading { font-size: clamp(28px, 8vw, 50px); }
}

/* ── Small Mobile (≤480px) ────────────────────────── */
@media (max-width: 480px) {
  #main-nav  { top: 10px; padding: 3px 5px; }
  .nav-link  { padding: 6px 8px; font-size: 10px; }
  .nav-link svg { width: 13px; height: 13px; }
  .nav-link span { font-size: 10px; }

  .scvd-3d-webgl-wrap { height: 36vh; }
  .hero-build-tag     { font-size: 4.5vw; letter-spacing: 0.14em; }
  .hero-typewriter    { font-size: 6vw; -webkit-text-stroke: 1.5px var(--orange); }

  .hero-stats { padding: 6px 12px; }
  .stat-num   { font-size: 17px; }
  .stat-label { font-size: 7.5px; }

  .project-body   { padding: 18px 18px 20px; }
  .project-title  { font-size: 18px; }
  .project-desc   { font-size: 12px; }

  .tl-item  { grid-template-columns: 1fr; gap: 8px; }
  .tl-line  { display: none; }
  .tl-year  { padding-top: 0; }

  .contact-wrap { padding: 16px; }
  .section-heading { font-size: clamp(26px, 9vw, 42px); }
}


