@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Press+Start+2P&display=swap');

:root {
  --bg: #0a0a0c;
  --bg-warm: #0e0d10;
  --surface: #141318;
  --surface-2: #1a1920;
  --accent: #c9a456;
  --accent-dim: #8b7234;
  --accent-glow: rgba(201, 164, 86, 0.15);
  --blue: #5b7bb5;
  --text: #ddd9d0;
  --text-dim: #7a756c;
  --text-faint: #4a4640;
  --border: rgba(201, 164, 86, 0.08);
  --sans: 'Lora', Georgia, serif;
  --serif: 'Lora', Georgia, serif;
  --pixel: 'Press Start 2P', monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* Canvas */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* Background Pattern */
.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Primary dot grid — fine, constellation-like */
.bg-pattern::before {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: radial-gradient(circle, rgba(201, 164, 86, 0.25) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  -webkit-mask-image:
    radial-gradient(ellipse at center, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 80%);
  mask-image:
    radial-gradient(ellipse at center, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 80%);
  animation: patternDrift 90s linear infinite;
}

/* Secondary structural grid — larger, fainter */
.bg-pattern::after {
  content: '';
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(to right, rgba(201, 164, 86, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(201, 164, 86, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image:
    radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.25) 50%, transparent 80%);
  mask-image:
    radial-gradient(ellipse at center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.25) 50%, transparent 80%);
}

@keyframes patternDrift {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-16px, -8px); }
  50%  { transform: translate(0, -16px); }
  75%  { transform: translate(16px, -8px); }
  100% { transform: translate(0, 0); }
}

/* Nav */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.2rem 3rem;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 0.8rem 3rem;
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.nav-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-logo-text {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  padding: 0.55rem 1.6rem;
  border-radius: 6px;
  border: 1px solid rgba(201, 164, 86, 0.3);
  background: transparent;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.82rem;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.3s;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: 0.3s;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 3rem;
}

.hero-inner {
  max-width: 1140px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-text {}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent-dim);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  line-height: 1.05;
  color: #f0ece4;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-dim);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-fill {
  padding: 0.75rem 2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: all 0.3s;
  text-decoration: none;
}

.btn-fill:hover {
  background: #ddb85e;
  transform: translateY(-1px);
}

.btn-ghost {
  padding: 0.75rem 2rem;
  border-radius: 6px;
  border: 1px solid var(--text-faint);
  background: transparent;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-ghost:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}

/* Hero planet */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
}

/* Atmospheric glow behind moon */
.planet-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(200, 210, 230, 0.14) 0%,
    rgba(180, 195, 220, 0.07) 30%,
    rgba(160, 175, 200, 0.03) 50%,
    transparent 70%
  );
  filter: blur(20px);
  animation: glowPulse 6s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* Moon body */
.planet {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at 38% 32%, #b8b4aa 0%, #9e9a90 20%, #7a766c 45%, #52504a 70%, #2a2926 100%);
  box-shadow:
    inset -35px -20px 60px rgba(0, 0, 0, 0.7),
    inset 25px 20px 50px rgba(220, 218, 210, 0.08),
    0 0 50px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(180, 195, 220, 0.06);
  overflow: hidden;
  z-index: 2;
}

/* Lunar surface — craters and maria via layered radial gradients */
.planet-surface {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    /* Large maria (dark patches) */
    radial-gradient(ellipse at 35% 30%, rgba(60, 58, 52, 0.5) 0%, transparent 28%),
    radial-gradient(ellipse at 55% 45%, rgba(55, 53, 48, 0.4) 0%, transparent 22%),
    radial-gradient(ellipse at 40% 55%, rgba(65, 62, 55, 0.35) 0%, transparent 18%),
    radial-gradient(ellipse at 28% 48%, rgba(58, 55, 50, 0.3) 0%, transparent 15%),
    /* Medium craters */
    radial-gradient(circle at 60% 28%, rgba(80, 78, 70, 0.5) 0%, rgba(110, 106, 96, 0.15) 5%, transparent 8%),
    radial-gradient(circle at 30% 65%, rgba(75, 72, 65, 0.5) 0%, rgba(115, 110, 100, 0.15) 4%, transparent 7%),
    radial-gradient(circle at 50% 70%, rgba(70, 68, 62, 0.4) 0%, rgba(120, 116, 106, 0.1) 3%, transparent 6%),
    radial-gradient(circle at 72% 50%, rgba(85, 82, 74, 0.45) 0%, rgba(105, 102, 92, 0.12) 4%, transparent 7%),
    radial-gradient(circle at 45% 22%, rgba(78, 75, 68, 0.4) 0%, rgba(118, 114, 104, 0.1) 3%, transparent 5%),
    /* Small craters */
    radial-gradient(circle at 25% 35%, rgba(90, 86, 78, 0.35) 0%, transparent 3%),
    radial-gradient(circle at 65% 60%, rgba(85, 82, 74, 0.3) 0%, transparent 2.5%),
    radial-gradient(circle at 42% 40%, rgba(88, 84, 76, 0.3) 0%, transparent 2%),
    radial-gradient(circle at 55% 32%, rgba(82, 78, 70, 0.25) 0%, transparent 2%),
    radial-gradient(circle at 38% 72%, rgba(92, 88, 80, 0.3) 0%, transparent 2.5%),
    radial-gradient(circle at 68% 38%, rgba(80, 76, 68, 0.25) 0%, transparent 2%),
    radial-gradient(circle at 48% 58%, rgba(86, 82, 74, 0.2) 0%, transparent 1.8%),
    /* Crater rims (bright rings) */
    radial-gradient(circle at 60% 28%, transparent 5%, rgba(180, 175, 165, 0.08) 6%, transparent 8%),
    radial-gradient(circle at 30% 65%, transparent 4%, rgba(175, 170, 160, 0.06) 5%, transparent 7%),
    radial-gradient(circle at 72% 50%, transparent 4%, rgba(170, 165, 155, 0.07) 5%, transparent 7%);
}

/* Specular highlight — cool light source from upper-left */
.planet-highlight {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(240, 238, 230, 0.18) 0%, transparent 30%),
    radial-gradient(circle at 35% 30%, rgba(210, 208, 200, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 72% 74%, rgba(0, 0, 0, 0.35) 0%, transparent 45%);
  z-index: 1;
}

/* Terminator — day/night boundary */
.planet::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    130deg,
    transparent 35%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.75) 65%,
    rgba(0, 0, 0, 0.9) 80%
  );
  z-index: 2;
}

/* Rim light — subtle silver edge catch */
.planet::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: transparent;
  box-shadow:
    inset -2px -1px 0 rgba(200, 210, 225, 0.1),
    inset 3px 2px 0 rgba(230, 228, 220, 0.08);
  z-index: 3;
}

/* Orbit rings */
.orbit-line {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(201, 164, 86, 0.08);
  top: 50%;
  left: 50%;
  animation: orbSpin linear infinite;
}

.orbit-line:nth-child(1) {
  width: 400px;
  height: 400px;
  margin: -200px 0 0 -200px;
  animation-duration: 28s;
  border-color: rgba(201, 164, 86, 0.1);
}

.orbit-line:nth-child(2) {
  width: 500px;
  height: 500px;
  margin: -250px 0 0 -250px;
  animation-duration: 45s;
  animation-direction: reverse;
  border-color: rgba(91, 123, 181, 0.08);
}

.orbit-line:nth-child(3) {
  width: 600px;
  height: 600px;
  margin: -300px 0 0 -300px;
  animation-duration: 70s;
  border-color: rgba(201, 164, 86, 0.04);
}

/* Moons */
.orbit-moon {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 8px rgba(201, 164, 86, 0.5),
    0 0 20px rgba(201, 164, 86, 0.2);
  top: -4px;
  left: 50%;
  margin-left: -4px;
  animation: moonGlow 3s ease-in-out infinite;
}

.orbit-moon.blue {
  background: var(--blue);
  box-shadow:
    0 0 8px rgba(91, 123, 181, 0.5),
    0 0 20px rgba(91, 123, 181, 0.2);
  animation-delay: -1.5s;
}

.orbit-moon.small {
  width: 5px;
  height: 5px;
  top: -2px;
  margin-left: -2px;
  background: rgba(201, 164, 86, 0.6);
  box-shadow:
    0 0 6px rgba(201, 164, 86, 0.3),
    0 0 16px rgba(201, 164, 86, 0.1);
  animation-delay: -0.7s;
}

@keyframes moonGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.4); }
}

@keyframes orbSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Sections */
section {
  position: relative;
  z-index: 1;
  padding: 7rem 3rem;
}

.section-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent-dim);
}

.section-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  color: #f0ece4;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 480px;
  line-height: 1.75;
}

/* About grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  margin-top: 4rem;
  padding: 1px;
}

.about-cell {
  background: var(--bg);
  padding: 3rem;
  position: relative;
  transition: background 0.4s;
}

.about-cell:hover {
  background: var(--surface);
}

.about-num {
  font-family: var(--serif);
  font-size: 3rem;
  font-style: italic;
  color: var(--accent-dim);
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.4;
}

.about-cell h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #f0ece4;
}

.about-cell p {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.75;
}

/* Projects */
.project-card {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s, box-shadow 0.4s;
  will-change: transform;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 164, 86, 0.4);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5), 0 0 50px rgba(201, 164, 86, 0.15);
}

.project-visual {
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--surface), var(--bg));
  position: relative;
  min-height: 380px;
}

.phone-mockup {
  width: 180px;
  height: 370px;
  border-radius: 28px;
  background: var(--bg);
  border: 2px solid rgba(201, 164, 86, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  position: relative;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
}

.phone-notch {
  width: 70px;
  height: 20px;
  background: #000;
  border-radius: 0 0 14px 14px;
  flex-shrink: 0;
}

.phone-screen {
  flex: 1;
  width: 100%;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.phone-screen .app-title {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
}

.phone-screen .app-subtitle {
  font-size: 0.6rem;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}

.phone-screen .app-card-mini {
  background: var(--surface);
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  margin-top: 0.25rem;
}

.phone-screen .app-card-mini .label {
  font-size: 0.5rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.phone-screen .app-card-mini .value {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 2px;
}

.project-info {
  padding: 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dim);
  margin-bottom: 1rem;
}

.project-info h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.8rem;
  font-weight: 400;
  color: #f0ece4;
  margin-bottom: 1rem;
}

.project-info p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.project-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.project-techs span {
  padding: 0.3rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-dim);
  border: 1px solid var(--border);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-link {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: gap 0.3s;
}

.project-link:hover {
  gap: 0.9rem;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  margin-top: 3.5rem;
  padding: 1px;
}

.team-card {
  background: var(--bg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: background 0.4s;
}

.team-card:hover {
  background: var(--surface);
}

.team-avatar-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 1.2rem;
}

.team-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(0.4);
  transition: filter 0.4s;
}

.team-card:hover .team-avatar {
  filter: grayscale(0);
}

.team-card h3 {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  font-weight: 400;
  color: #f0ece4;
}

.team-role {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dim);
  margin: 0.3rem 0 0.8rem;
}

.team-bio {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.65;
  margin-bottom: 1.2rem;
}

.team-socials {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.team-socials a {
  color: var(--text-faint);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.3s;
}

.team-socials a:hover {
  color: var(--accent);
}

/* CTA */
.cta-section {
  text-align: center;
  padding: 8rem 3rem;
  position: relative;
  z-index: 1;
}

.cta-section .section-eyebrow {
  justify-content: center;
}

.cta-section .section-heading {
  margin-bottom: 1rem;
}

.cta-section .section-desc {
  margin: 0 auto 2.5rem;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2.5rem 3rem;
  text-align: center;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--text-faint);
  text-decoration: none;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  color: var(--text-faint);
  font-size: 0.75rem;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

/* Interactive cursor */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
  mix-blend-mode: screen;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-eyebrow {
    justify-content: center;
  }

  .hero-eyebrow::before {
    display: none;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  /* Nav */
  .navbar {
    padding: 0.9rem 1.25rem;
  }

  .navbar.scrolled {
    padding: 0.7rem 1.25rem;
  }

  .nav-logo-img {
    width: 28px;
    height: 28px;
  }

  .nav-logo-text {
    font-size: 0.85rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 12, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .nav-cta-wrap {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 7rem 1.25rem 3.5rem;
  }

  .hero h1 {
    font-size: 2.6rem;
    line-height: 1.1;
    margin-bottom: 1.2rem;
  }

  .hero-eyebrow {
    font-size: 0.65rem;
    margin-bottom: 1rem;
  }

  .hero-desc {
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.7;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }

  .btn-fill,
  .btn-ghost {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Sections */
  section {
    padding: 3.5rem 1.25rem;
  }

  .section-eyebrow {
    font-size: 0.65rem;
  }

  .section-eyebrow::before {
    width: 16px;
  }

  .section-heading {
    font-size: 1.75rem;
    line-height: 1.2;
  }

  .section-desc {
    font-size: 0.88rem;
  }

  /* About */
  .about-grid {
    margin-top: 2.5rem;
  }

  .about-cell {
    padding: 2rem 1.5rem;
  }

  .about-num {
    font-size: 2.2rem;
  }

  .about-cell h3 {
    font-size: 0.95rem;
  }

  .about-cell p {
    font-size: 0.82rem;
  }

  /* Projects */
  .project-visual {
    padding: 2rem;
    min-height: 300px;
  }

  .phone-mockup {
    width: 160px;
    height: 340px;
    border-radius: 24px;
  }

  .project-info {
    padding: 2rem 1.5rem;
  }

  .project-info h3 {
    font-size: 1.4rem;
  }

  .project-info p {
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 1rem;
  }

  .project-techs {
    gap: 0.35rem;
  }

  .project-techs span {
    font-size: 0.65rem;
    padding: 0.25rem 0.6rem;
  }

  /* Team */
  .team-grid {
    margin-top: 2.5rem;
  }

  .team-card {
    padding: 2rem 1.5rem;
  }

  .team-avatar-wrap {
    width: 76px;
    height: 76px;
  }

  .team-card h3 {
    font-size: 1.15rem;
  }

  .team-bio {
    font-size: 0.8rem;
  }

  /* CTA */
  .cta-section {
    padding: 4rem 1.25rem;
  }

  .cta-section .section-desc {
    font-size: 0.88rem;
  }

  .cta-section .btn-fill {
    width: auto;
  }

  /* Footer */
  .footer {
    padding: 2rem 1.25rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.5rem;
  }

  .footer-links a {
    font-size: 0.72rem;
  }

  .footer-copy {
    font-size: 0.7rem;
  }
}

@media (max-width: 400px) {
  .hero h1 {
    font-size: 2.1rem;
  }

  .section-heading {
    font-size: 1.5rem;
  }

  .about-cell {
    padding: 1.5rem 1.25rem;
  }

  .project-info {
    padding: 1.5rem 1.25rem;
  }

  .project-info h3 {
    font-size: 1.2rem;
  }

  .team-card {
    padding: 1.75rem 1.25rem;
  }
}