/* ════════════════════════════════════════════════════════════════
   RESET Y VARIABLES GLOBALES
════════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:     #0a0a0a;
  --text:   #f5f0e8;
  --muted:  rgba(245,240,232,0.45);
  --accent: #f5f0e8;
  --border: rgba(245,240,232,0.12);

  color-scheme: dark; /* evita flash blanco en navegadores modernos */
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

img, video {
  display: block;
  max-width: 100%;
}

/* ════════════════════════════════════════════════════════════════
   ANIMACIÓN DE SCROLL: data-fade
   Los elementos con [data-fade] empiezan invisibles y
   aparecen al entrar al viewport (manejado desde script.js)
════════════════════════════════════════════════════════════════ */
[data-fade] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity  0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-fade].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-fade][data-fade-delay="0.15"] {
  transition-delay: 0.15s;
}

/* ════════════════════════════════════════════════════════════════
   HEADER
════════════════════════════════════════════════════════════════ */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 999;
  pointer-events: none;
}

.main-header > * {
  pointer-events: auto;
}

.site-signature {
  color: rgba(245,240,232,.82);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
  font-weight: 500;
  text-decoration: none;
  z-index: 1000;
}

.site-signature:hover {
  color: var(--text);
  letter-spacing: 0.18em;
}

.portfolio-label {
  color: rgba(245,240,232,.82);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  animation: fadeUp 1s ease both 0.2s;
  z-index: 1000;
}

/* ════════════════════════════════════════════════════════════════
   NAV — Liquid Glass
════════════════════════════════════════════════════════════════ */
.liquid-nav {
  position: relative;
  width: fit-content;
  min-width: 260px;
  max-width: 480px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 30px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.015);
  -webkit-backdrop-filter: blur(32px) saturate(180%) contrast(1.1);
  backdrop-filter: blur(32px) saturate(180%) contrast(1.1);
  border: 1px solid rgba(255,255,255,0.20);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.35),
    0 8px 32px rgba(0,0,0,0.28);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.liquid-nav:hover {
  background: rgba(255,255,255,0.025);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.40),
    0 12px 42px rgba(0,0,0,0.32);
}

.liquid-nav::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.10) 0%,
    rgba(255,255,255,0.02) 50%,
    transparent 100%
  );
  pointer-events: none;
}

.nav-links {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,240,232,.88);
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
  transition: color 0.25s ease, letter-spacing 0.25s ease, text-shadow 0.25s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: rgba(255,255,255,0.6); /* FIX: era 0.022, prácticamente invisible */
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: white;
  text-shadow: 0 0 18px rgba(255,255,255,0.48);
  letter-spacing: 0.15em;
}

.nav-links a:hover::after {
  width: 100%;
}

/* ════════════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════════════ */
#hero {
  position: relative;
  /* FIX: 100svh soporta la barra del navegador en mobile */
  min-height: 100svh;
  min-height: 100vh; /* fallback */
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

video.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.35;
  z-index: 1;
}

.hero-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 320px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0)    0%,
    rgba(10,10,10,0.15) 35%,
    rgba(10,10,10,0.45) 65%,
    rgba(10,10,10,0.80) 85%,
    var(--bg)           100%
  );
}

/* FIX: flex container para que margin-left:auto en hero-sub funcione en cualquier pantalla */
.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 56px;
  width: 100%;
  max-width: min(1180px, 100%);
  transform: translateY(2vh);
  display: flex;
  flex-direction: column;
}

.hero-title {
  font-family: "Crimson Text", Georgia, serif;
  font-weight: 400;
  font-size: clamp(6.4rem, 16vw, 16.5rem);
  line-height: 0.76;
  letter-spacing: -0.02em;
  color: var(--text);
  animation: fadeUp 1.1s ease both 0.4s;
}

.hero-title span {
  display: block;
  position: relative;
}

.hero-title-web {
  z-index: 1;
  opacity: 0.68;
  transform: translateX(-0.08em) scale(0.94);
}

.hero-title-designer {
  z-index: 2;
  transform: translateX(0.11em);
}

/* FIX: margin-left: auto funciona en todos los tamaños de pantalla */
.hero-sub {
  margin-top: clamp(160px, 22vh, 240px);
  margin-left: auto;
  font-size: clamp(1rem, 1vw, 1.1rem);
  color: var(--muted);
  width: 420px;
  max-width: calc(100vw - 112px);
  line-height: 1.7;
  animation: fadeUp 1s ease both 0.7s;
}

/* FIX: scroll indicator — clases corregidas para coincidir con HTML */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 56px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  animation: fadeUp 1s ease both 1s;
}

.hero-scroll-line {
  width: 48px;
  height: 1px;
  background: var(--muted);
  animation: expandLine 1.5s ease both 1.2s;
}

/* ════════════════════════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════════════════════════ */
#about {
  padding: 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 100vh;
}

.about-text-section {
  padding: 180px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}

.about-title {
  font-family: "Crimson Text", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 400;
  margin-bottom: 40px;
}

.about-text {
  font-size: 1.06rem;
  line-height: 1.9;
  color: var(--muted);
}

.about-text p + p {
  margin-top: 1.5em;
}

.about-video-wrapper {
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: stretch;
}

.about-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.6;
  display: block;
}

.about-video-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(10,10,10,0.25) 0%,
    rgba(10,10,10,0.08) 25%,
    rgba(10,10,10,0.02) 50%,
    transparent         100%
  );
  z-index: 1;
}

/* ════════════════════════════════════════════════════════════════
   SKILLS CAROUSEL
════════════════════════════════════════════════════════════════ */
#skills {
  padding: 120px 56px 148px;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(245,240,232,0.025) 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(245,240,232,0.015) 0%, transparent 50%);
}

#skills::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 900px 300px at 50% 50%, rgba(245,240,232,0.012) 0%, transparent 60%);
  z-index: 0;
}

#skills > * {
  position: relative;
  z-index: 1;
}

.skills-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.skills-header {
  margin-bottom: 60px;
  text-align: center;
}

.skills-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.skills-title {
  font-family: "Crimson Text", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--text);
}

.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.carousel-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  flex: 1;
  min-height: 160px;
  overflow: hidden;
}

.carousel-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  transition:
    all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    background 0.3s ease,
    border-color 0.3s ease;
  cursor: pointer;
  opacity: 0.6;
  transform: scale(0.95);
}

.carousel-item.active {
  opacity: 1;
  transform: scale(1);
  background: rgba(255,255,255,0.08);
  border-color: rgba(245,240,232,0.25);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.carousel-item:hover {
  border-color: rgba(245,240,232,0.18);
  background: rgba(255,255,255,0.06);
  transform: scale(0.98);
}

.carousel-item.active:hover {
  transform: scale(1.02);
}

.skill-icon {
  font-size: 3.2rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.carousel-item:hover .skill-icon {
  transform: translateY(-4px);
  text-shadow: 0 8px 24px rgba(245,240,232,0.15);
}

.skill-name {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.3s ease;
}

.carousel-item.active .skill-name {
  color: var(--text);
}

.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(245,240,232,0.15);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition:
    all 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(245,240,232,0.30);
  transform: scale(1.1);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(245,240,232,0.2);
  border: 1px solid rgba(245,240,232,0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.dot.active {
  background: var(--text);
  width: 24px;
  border-radius: 4px;
}

.dot:hover {
  background: rgba(245,240,232,0.35);
}

/* ════════════════════════════════════════════════════════════════
   PROJECTS
════════════════════════════════════════════════════════════════ */
#projects {
  padding: 120px 56px 148px;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 50%, rgba(245,240,232,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(245,240,232,0.02) 0%, transparent 40%);
}

#projects::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 80%, rgba(245,240,232,0.025) 0%, transparent 35%),
    radial-gradient(ellipse 600px 400px at 85% 20%, rgba(245,240,232,0.015) 0%, transparent 60%);
  z-index: 0;
}

#projects > * {
  position: relative;
  z-index: 1;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto 44px;
}

.section-title {
  font-family: "Crimson Text", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
}

.section-count {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

.project-card {
  position: relative;
  background: #111;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/2;
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transform-style: preserve-3d;
  transform: perspective(800px) rotateX(0deg) rotateY(0deg);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
  will-change: transform;
}

.project-card:hover {
  border-color: rgba(245,240,232,0.35);
  box-shadow:
    0 28px 72px rgba(0,0,0,0.55),
    0 10px 24px rgba(0,0,0,0.35),
    inset 0 1px 1px rgba(255,255,255,0.10);
}

.project-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0)    30%,
    rgba(10,10,10,0.55) 70%,
    rgba(10,10,10,0.85) 100%
  );
  transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
  opacity: 0.85;
}

.project-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: screen;
}

.project-card:hover .project-shine {
  opacity: 1;
}

.project-card .project-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity   0.4s ease;
  opacity: 0.82;
  z-index: 0;
}

.project-card:hover .project-image {
  transform: scale(1.05);
  opacity: 0.62;
}

.project-info {
  position: relative;
  z-index: 2;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

.project-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-name {
  font-family: "Crimson Text", Georgia, serif;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  font-weight: 400;
}

.project-desc {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 4px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  padding: 8px 16px;
  border: 1px solid rgba(245,240,232,0.25);
  border-radius: 999px;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,0.06);
}

.project-card:hover .project-link {
  opacity: 1;
  transform: translateY(0);
}

.arrow {
  transition: transform 0.3s;
  display: inline-block;
}

.project-link:hover .arrow {
  transform: translateX(4px);
}

/* ════════════════════════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════════════════════════ */
#contact {
  padding: 160px 56px 148px;
  border-top: 1px solid var(--border);
  text-align: center;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(245,240,232,0.035) 0%, transparent 50%),
    radial-gradient(circle at 30% 70%, rgba(245,240,232,0.025) 0%, transparent 45%),
    radial-gradient(circle at 75% 25%, rgba(245,240,232,0.020) 0%, transparent 40%);
}

#contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 800px 400px at 50% 0%, rgba(245,240,232,0.015) 0%, transparent 60%),
    radial-gradient(ellipse 600px 300px at 50% 100%, rgba(245,240,232,0.010) 0%, transparent 50%);
  z-index: 0;
}

#contact > * {
  position: relative;
  z-index: 1;
}

.contact-inner {
  width: 100%;
  max-width: 860px;
}

.contact-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.contact-title {
  font-family: "Crimson Text", Georgia, serif;
  font-size: clamp(3rem, 8vw, 6.2rem);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 42px;
  letter-spacing: -0.01em;
}

.contact-email {
  display: inline-block;
  font-family: "Crimson Text", Georgia, serif;
  font-size: clamp(1.15rem, 3vw, 2rem);
  color: var(--text);
  text-decoration: none;
  border-bottom: 1.5px solid var(--muted);
  padding-bottom: 10px;
  transition: opacity 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  overflow-wrap: anywhere;
}

.contact-email:hover {
  opacity: 0.8;
  border-color: var(--text);
  transform: translateY(-2px);
}

.social-links {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 36px;
}

.social-links a {
  font-size: 1.6rem;
  color: var(--muted);
  padding: 10px 14px;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  color: var(--text);
  transform: scale(1.25) translateY(-3px);
}

/* ════════════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════════════ */
footer {
  padding: 48px 56px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(245,240,232,0.008), transparent);
}

footer p {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ════════════════════════════════════════════════════════════════
   ANIMACIONES
════════════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@keyframes expandLine {
  from { width: 0;    }
  to   { width: 48px; }
}

/* ════════════════════════════════════════════════════════════════
   ACCESIBILIDAD: respeta la preferencia de movimiento reducido
════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-fade] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile < 768px
════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .hero-content,
  #skills,
  #projects,
  #contact,
  footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .carousel-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    min-height: 240px;
  }

  .carousel-item {
    padding: 16px 12px;
  }

  .skill-icon {
    font-size: 2.2rem;
  }

  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }

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

  .about-text-section {
    padding: 80px 24px;
    order: 2;
  }

  .about-video-wrapper {
    order: 1;
    min-height: 280px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 480px;
  }

  .liquid-nav {
    width: auto;
    min-width: 240px;
    max-width: 90%;
    height: 38px;
    padding: 0 20px;
  }

  .nav-links {
    gap: 22px;
  }

  .site-signature {
    left: 24px;
    top: 20px;
    font-size: 0.62rem;
  }

  .hero-title {
    font-size: clamp(3.5rem, 14vw, 5rem);
    line-height: 0.85;
  }

  .hero-title-web      { transform: translateX(-0.04em) scale(0.95); }
  .hero-title-designer { transform: translateX(0.04em); }

  .hero-sub {
    margin-top: clamp(100px, 14vh, 160px);
    margin-left: 0;
    width: auto;
    max-width: 100%;
    font-size: clamp(0.9rem, 2vw, 1rem);
  }

  .hero-scroll {
    left: 24px;
    right: auto;
  }

  .section-title  { font-size: 1.8rem; }
  .contact-title  { font-size: 2.2rem; }
  .contact-email  { font-size: clamp(1rem, 2vw, 1.5rem); }

  /* En mobile, el link del proyecto siempre visible */
  .project-link {
    opacity: 0.8;
    transform: none;
  }
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet 768px → 1024px
════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-sub {
    margin-top: clamp(100px, 12vh, 140px);
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  }

  .section-title { font-size: clamp(1.8rem, 4vw, 3rem); }
  .contact-title { font-size: clamp(2.2rem, 6vw, 5rem); }
  .projects-grid { gap: 18px; }
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE — Small mobile < 480px
════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .liquid-nav {
    width: calc(100% - 24px);
    min-width: 0;
    height: 36px;
    padding: 0 14px;
  }

  .site-signature { display: none; }

  .nav-links     { gap: 14px; }
  .nav-links a   { font-size: 0.58rem; letter-spacing: 0.1em; }

  .hero-content  { padding: 0 20px; }

  .hero-title {
    font-size: 3.2rem;
    line-height: 0.88;
  }

  .hero-title-web      { transform: translateX(-0.02em) scale(0.96); }
  .hero-title-designer { transform: translateX(0.02em); }

  .hero-sub {
    margin-top: clamp(60px, 10vh, 120px);
    margin-left: 0;
    max-width: 100%;
    font-size: 0.9rem;
  }

  .hero-scroll { bottom: 24px; left: 20px; }

  #about,
  #skills,
  #projects,
  #contact,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .carousel-track {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .skills-header {
    margin-bottom: 40px;
  }

  .skills-title {
    font-size: 1.8rem;
  }

  .carousel-container {
    gap: 12px;
    margin-bottom: 24px;
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
    font-size: 0.7rem;
  }

  .skill-icon {
    font-size: 1.8rem;
  }

  .project-card { aspect-ratio: 4/3; }
  .project-info { padding: 16px; }

  #contact {
    padding-top: 96px;
    padding-bottom: 104px;
  }
}