/* ============================================
   NUEVO DESIGN SYSTEM — Unai Azkunaga
   Emil Kowalski × Impeccable
   Dark · Typographic · Minimal · Bold
   ============================================ */

/* --- Tokens --- */
:root {
  --bg:          #0a0a0a;
  --surface:     #111111;
  --surface-2:   #161616;
  --border:      #1e1e1e;
  --text:        #f0f0f0;
  --text-2:      #888888;
  --text-3:      #444444;
  --accent:      #f0f0f0;
  --max-w:       1280px;
  --pad:         clamp(20px, 4vw, 64px);
  --radius:      12px;
  --radius-lg:   24px;
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:     cubic-bezier(0.7, 0, 1, 1);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Mona Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }

/* --- Typography --- */
.n-display {
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(52px, 8vw, 120px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.03em;
}
.n-heading-xl {
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(28px, 4vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.n-heading-lg {
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(22px, 3vw, 40px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.n-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}
.n-body { font-size: 16px; line-height: 1.7; color: var(--text-2); }
.n-body-lg { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.7; color: var(--text-2); }

/* --- Layout --- */
.n-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.n-section { padding: clamp(80px, 10vw, 140px) 0; }
.n-divider {
  width: 100%;
  height: 1px;
  background: var(--border);
}

/* --- Loader (AI style) --- */
.n-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #1a3379, #0f172a, #000000);
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.n-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.n-loader__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 180px;
  user-select: none;
}

.n-loader__letters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  position: relative;
  z-index: 1;
}
.n-loader__letters span {
  display: inline-block;
  font-family: 'Funnel Display', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  opacity: 0.4;
  animation: loaderLetter 3s infinite;
}

.n-loader__circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  animation: loaderCircle 5s linear infinite;
}

@keyframes loaderCircle {
  0% {
    transform: rotate(90deg);
    box-shadow:
      0 6px 12px 0 #38bdf8 inset,
      0 12px 18px 0 #005dff inset,
      0 36px 36px 0 #1e40af inset,
      0 0 3px 1.2px rgba(56, 189, 248, 0.3),
      0 0 6px 1.8px rgba(0, 93, 255, 0.2);
  }
  50% {
    transform: rotate(270deg);
    box-shadow:
      0 6px 12px 0 #60a5fa inset,
      0 12px 6px 0 #0284c7 inset,
      0 24px 36px 0 #005dff inset,
      0 0 3px 1.2px rgba(56, 189, 248, 0.3),
      0 0 6px 1.8px rgba(0, 93, 255, 0.2);
  }
  100% {
    transform: rotate(450deg);
    box-shadow:
      0 6px 12px 0 #4dc8fd inset,
      0 12px 18px 0 #005dff inset,
      0 36px 36px 0 #1e40af inset,
      0 0 3px 1.2px rgba(56, 189, 248, 0.3),
      0 0 6px 1.8px rgba(0, 93, 255, 0.2);
  }
}

@keyframes loaderLetter {
  0%, 100% { opacity: 0.4; transform: translateY(0) scale(1); }
  20%       { opacity: 1;   transform: scale(1.15); }
  40%       { opacity: 0.7; transform: translateY(0) scale(1); }
}

.n-loader__text span:nth-child(4) { animation-delay: 0.18s; }
.n-loader__text span:nth-child(5) { animation-delay: 0.24s; }
@keyframes loaderChar {
  to { opacity: 1; transform: translateY(0); }
}

/* --- Cursor --- */
.n-cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--text);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s var(--ease), height 0.3s var(--ease), opacity 0.3s;
  mix-blend-mode: difference;
}
.n-cursor.expand { width: 48px; height: 48px; }
@media (hover: none) { .n-cursor { display: none; } }

/* --- Progress bar --- */
.n-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 9990;
  background: transparent;
}
.n-progress__bar {
  height: 100%;
  width: 0%;
  background: var(--text);
  transition: width 0.1s linear;
}

/* ============================================
   NAVBAR — Liquid Glass
   ============================================ */
.n-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 20px 0;
  overflow: hidden;
  transition: padding 0.4s var(--ease), background 0.5s, border-color 0.5s, box-shadow 0.5s;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.09),
    0 2px 20px rgba(0, 0, 0, 0.10);
}
/* Blur + glass distortion layer behind nav content */
.n-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  filter: url(#n-glass);
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
}
.n-nav.scrolled {
  background: rgba(255, 255, 255, 0.07);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 8px 32px rgba(0, 0, 0, 0.18);
}
.n-nav__inner {
  display: flex;
  align-items: center;
  gap: 40px;
}
.n-nav__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.n-nav__logo-img {
  height: 28px;
  width: auto;
  display: block;
}
.n-nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin: 0 auto;
}
.n-nav__links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-2);
  transition: color 0.2s;
  position: relative;
}
.n-nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text);
  transition: width 0.3s var(--ease);
}
.n-nav__links a:hover { color: var(--text); }
.n-nav__links a:hover::after { width: 100%; }
/* Language toggle — glass pill */
.n-nav__lang {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-2);
  padding: 6px 14px;
  border-radius: 999px;
  transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 2.2);
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 1px 1px 1px rgba(255, 255, 255, 0.22),
    inset -1px -1px 1px rgba(255, 255, 255, 0.06),
    0 3px 8px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.n-nav__lang:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  transform: scale(1.05);
  box-shadow:
    inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.35),
    inset -1px -1px 1px rgba(255, 255, 255, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.2);
}
.n-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  position: relative;
  z-index: 920;
}
.n-nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.n-nav__toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.n-nav__toggle.open span:nth-child(2) { opacity: 0; }
.n-nav__toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --- Mobile Menu --- */
.n-menu {
  position: fixed;
  inset: 0;
  z-index: 910;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 120px var(--pad) var(--pad);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
  overflow-y: auto;
}
.n-menu.open { opacity: 1; visibility: visible; }
.n-menu__links { display: flex; flex-direction: column; gap: 8px; }
.n-menu__links a {
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-3);
  transition: color 0.2s;
  overflow: hidden;
  display: block;
}
.n-menu__links a:hover { color: var(--text); }
.n-menu__bottom {
  margin-top: auto;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 24px;
}
.n-menu__bottom a { font-size: 13px; color: var(--text-2); }

/* ============================================
   WAVE BACKGROUND
   ============================================ */
.n-waves {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.n-waves svg {
  position: absolute;
  inset: 0;
  display: block;
}
.n-waves__dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transform: translate(-50%, -50%);
  pointer-events: none;
  will-change: left, top;
}

/* ============================================
   SPOTLIGHT (ibelick)
   ============================================ */
.n-spotlight {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(255,255,255,0.07) 0%,
    rgba(255,255,255,0.03) 40%,
    transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 1;
  transform: translate(-50%, -50%);
  will-change: left, top;
}
.n-spotlight.visible { opacity: 1; }

/* ============================================
   GOOEY TEXT MORPHING
   ============================================ */
.n-gooey-filter-svg {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.n-gooey-wrap {
  position: relative;
  height: 32px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.8s 0.7s var(--ease) forwards;
}
.n-gooey-container {
  position: relative;
  height: 100%;
  filter: url('#n-gooey-filter');
}
.n-gooey-t1,
.n-gooey-t2 {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  white-space: nowrap;
  line-height: 32px;
}

/* ============================================
   HERO (split layout con Spline)
   ============================================ */
.n-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: clamp(48px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}
.n-hero .n-container {
  display: flex;
  align-items: center;
  gap: clamp(32px, 4vw, 80px);
  width: 100%;
}
.n-hero__left {
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
}
.n-hero__portrait-wrap {
  flex: 0 0 38%;
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  opacity: 0;
  animation: fadeUp 1s 1.2s var(--ease) forwards;
}
.n-hero__portrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.8s var(--ease);
}
.n-hero__portrait-wrap:hover .n-hero__portrait { transform: scale(1.04); }
.n-hero__label {
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s var(--ease) forwards;
}
.n-hero__title {
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(32px, 3.8vw, 60px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  opacity: 0;
  animation: fadeUp 1s 0.9s var(--ease) forwards;
}
.n-hero__title em {
  font-style: italic;
  color: var(--text-2);
}
.n-hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 48px;
  opacity: 0;
  animation: fadeUp 0.8s 1.1s var(--ease) forwards;
}
.n-hero__sub {
  max-width: 380px;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}
.n-hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.n-hero__scroll {
  position: absolute;
  bottom: clamp(24px, 4vw, 48px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeUp 0.6s 1.4s var(--ease) forwards;
}
.n-hero__scroll span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.n-hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-3), transparent);
  animation: scrollLine 1.5s 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* --- Buttons — Liquid Glass --- */
.n-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 2.2);
}
/* Primary — glass con tint más pronunciado */
.n-btn--primary {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.26);
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.22),
    0 0 20px rgba(0, 0, 0, 0.08),
    inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.45),
    inset -1px -1px 1px rgba(255, 255, 255, 0.12);
}
.n-btn--primary:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 30px rgba(0, 0, 0, 0.1),
    inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.55),
    inset -1px -1px 1px rgba(255, 255, 255, 0.18);
}
/* Ghost — glass muy sutil */
.n-btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.14),
    inset 1px 1px 1px rgba(255, 255, 255, 0.18),
    inset -1px -1px 1px rgba(255, 255, 255, 0.05);
}
.n-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.20);
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.20),
    inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.28),
    inset -1px -1px 1px rgba(255, 255, 255, 0.08);
}

/* ============================================
   WORKS LIST (Emil Kowalski style)
   ============================================ */
.n-works { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.n-works__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.n-works__list { position: relative; }

.n-work-item {
  display: grid;
  grid-template-columns: 48px 1fr auto auto 24px;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: padding-left 0.3s var(--ease);
  text-decoration: none;
  color: var(--text);
}
.n-work-item:hover { padding-left: 8px; }
.n-work-item:hover .n-work-item__title { color: var(--text); }
.n-work-item:hover .n-work-item__arrow { transform: translate(2px, -2px); color: var(--text); }

.n-work-item__num {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.05em;
}
.n-work-item__title {
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-2);
  transition: color 0.25s;
}
.n-work-item__tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--surface);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.n-work-item__year {
  font-size: 13px;
  color: var(--text-3);
  min-width: 40px;
  text-align: right;
}
.n-work-item__arrow {
  font-size: 18px;
  color: var(--text-3);
  transition: transform 0.25s var(--ease), color 0.25s;
}

/* Hover preview image */
.n-works__preview {
  position: fixed;
  width: 280px;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  pointer-events: none;
  z-index: 500;
  opacity: 0;
  transform: scale(0.92) rotate(-2deg);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
.n-works__preview.visible {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
.n-works__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.n-works__more {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}

/* ============================================
   ABOUT
   ============================================ */
.n-about {
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--border);
}
.n-about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 100px);
  align-items: center;
}
.n-about__img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.n-about__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.n-about__img-wrap:hover .n-about__img { transform: scale(1.03); }
.n-about__content { display: flex; flex-direction: column; gap: 24px; }
.n-about__content .n-label { margin-bottom: 4px; }
.n-about__stats {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.n-stat__number {
  display: block;
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.n-stat__label {
  display: block;
  font-size: 12px;
  color: var(--text-2);
  margin-top: 6px;
}

/* ============================================
   SERVICES
   ============================================ */
.n-services {
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--border);
}
.n-services__header {
  display: flex;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 48px;
}
.n-service-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.n-service-item:first-of-type { border-top: 1px solid var(--border); }
.n-service-item__num {
  font-size: 12px;
  color: var(--text-3);
  padding-top: 6px;
  font-weight: 500;
}
.n-service-item__body { display: flex; flex-direction: column; gap: 0; }
.n-service-item__title {
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-2);
  transition: color 0.25s;
}
.n-service-item:hover .n-service-item__title { color: var(--text); }
.n-service-item__desc {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), margin 0.4s var(--ease);
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}
.n-service-item.open .n-service-item__desc { max-height: 300px; margin-top: 16px; }
.n-service-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), margin 0.4s var(--ease);
}
.n-service-item.open .n-service-item__tags { max-height: 80px; margin-top: 14px; }
.n-service-item__tags span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 999px;
}

/* ============================================
   EDUCATION / EXPERIENCE (keep reveal style)
   ============================================ */
.n-timeline {
  padding: clamp(80px, 10vw, 140px) 0;
  border-top: 1px solid var(--border);
}
.n-timeline__header {
  margin-bottom: 48px;
}
.n-timeline-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: padding-left 0.3s var(--ease);
  cursor: default;
}
.n-timeline-item:first-child { border-top: 1px solid var(--border); }
.n-timeline-item:hover { padding-left: 8px; }
.n-timeline-item__year {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.n-timeline-item__title {
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.25s;
}
.n-timeline-item:hover .n-timeline-item__title { color: var(--text); }
.n-timeline-item__place {
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  align-self: center;
}
.n-timeline-item__img {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  width: 60px;
  height: 60px;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s var(--ease);
  pointer-events: none;
}
.n-timeline-item:hover .n-timeline-item__img {
  opacity: 0.7;
  transform: translateY(-50%) scale(1);
}

/* ============================================
   FOOTER
   ============================================ */
.n-footer {
  padding: clamp(80px, 10vw, 140px) 0 clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--border);
}
.n-footer__cta { margin-bottom: clamp(60px, 8vw, 100px); }
.n-footer__cta .n-label { margin-bottom: 24px; display: block; }
.n-footer__cta-title {
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(40px, 7vw, 100px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  display: inline-block;
  transition: color 0.25s;
}
.n-footer__cta-title:hover { color: var(--text-2); }
.n-footer__bottom {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 40px;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.n-footer__logo-img {
  height: 22px;
  width: auto;
  display: block;
  opacity: 0.7;
}
.n-footer__nav {
  display: flex;
  gap: 24px;
}
.n-footer__nav a, .n-footer__social a {
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.2s;
}
.n-footer__nav a:hover, .n-footer__social a:hover { color: var(--text); }
.n-footer__social { display: flex; gap: 24px; }
.n-footer__copy {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--text-3);
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ============================================
   LINK MÁS
   ============================================ */
.n-link-more {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s, gap 0.2s var(--ease);
}
.n-link-more:hover { color: var(--text); gap: 10px; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.n-fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.n-fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   PAGE HEADER (portfolio, sobre-mi, etc.)
   ============================================ */
.n-page-header {
  padding: clamp(120px, 15vw, 180px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--border);
}
.n-page-header .n-label { display: block; margin-bottom: 20px; }
.n-page-header__title {
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(52px, 9vw, 130px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.n-page-header__title em { font-style: italic; color: var(--text-2); }
.n-page-header__sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--text-2);
  line-height: 1.6;
  max-width: 480px;
  margin-top: 32px;
}

/* ============================================
   FILTERS
   ============================================ */
.n-filters {
  position: sticky;
  top: 58px;
  z-index: 80;
  padding: 16px 0;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.n-filters .n-container {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.n-filter {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  /* Glass base */
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    inset 1px 1px 1px rgba(255, 255, 255, 0.14),
    inset -1px -1px 1px rgba(255, 255, 255, 0.04),
    0 2px 8px rgba(0, 0, 0, 0.12);
  transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 2.2);
}
.n-filter:hover {
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: scale(1.04);
  box-shadow:
    inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.24),
    inset -1px -1px 1px rgba(255, 255, 255, 0.07),
    0 4px 12px rgba(0, 0, 0, 0.16);
}
.n-filter.active {
  background: rgba(255, 255, 255, 0.18);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.30);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.20),
    inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.45),
    inset -1px -1px 1px rgba(255, 255, 255, 0.14);
}

/* ============================================
   PORTFOLIO GRID
   ============================================ */
.n-portfolio { padding: clamp(48px, 6vw, 72px) 0 clamp(80px, 10vw, 140px); }
.n-portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.n-portfolio-card {
  display: block;
  color: var(--text);
  cursor: pointer;
}

/* Featured (spans full width) */
.n-portfolio-card--featured { grid-column: 1 / -1; }
.n-portfolio-card--featured .n-portfolio-card__img-wrap { aspect-ratio: 21/9; }

.n-portfolio-card__img-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  background: var(--surface);
}
.n-portfolio-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
  display: block;
}
.n-portfolio-card:hover .n-portfolio-card__img-wrap img { transform: scale(1.04); }

.n-portfolio-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.55) 100%);
  opacity: 0;
  transition: opacity 0.35s;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 20px 24px;
}
.n-portfolio-card:hover .n-portfolio-card__overlay { opacity: 1; }
.n-portfolio-card__arrow {
  font-size: 22px;
  color: #fff;
  line-height: 1;
}
.n-portfolio-card__info {
  padding: 16px 0 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  transition: border-color 0.25s;
}
.n-portfolio-card:hover .n-portfolio-card__info { border-color: var(--text-3); }
.n-portfolio-card__title {
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.n-portfolio-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}
.n-portfolio-card__cat {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.n-portfolio-card__year {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}

@media (max-width: 640px) {
  .n-portfolio__grid { grid-template-columns: 1fr; }
  .n-portfolio-card--featured .n-portfolio-card__img-wrap { aspect-ratio: 4/3; }
}

/* ============================================
   MAGIC TEXT STATEMENT + PIXEL TRAIL
   ============================================ */
.n-statement {
  padding: clamp(100px, 12vw, 160px) 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.n-pixel-trail {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.n-pixel-grid {
  position: absolute;
  inset: 0;
}
.n-statement .n-container {
  position: relative;
  z-index: 2;
}
.n-statement__text {
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(26px, 4.5vw, 68px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.n-statement__word {
  display: inline-block;
  opacity: 0.12;
  transition: opacity 0.6s var(--ease);
  margin-right: 0.22em;
}
.n-statement__word.lit { opacity: 1; }

/* ============================================
   SERVICES — FEATURED SPLIT LAYOUT (sobre-mi)
   ============================================ */
.n-services__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
.n-services__preview {
  position: sticky;
  top: 100px;
}
.n-services__preview-inner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--surface);
}
.n-services__preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s var(--ease);
}
.n-services__preview-img.switching { opacity: 0; }

/* Chevron inside service item */
.n-service-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.n-service-item__chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-3);
  transition: transform 0.35s var(--ease), color 0.25s, border-color 0.25s, background 0.25s;
}
.n-service-item.open .n-service-item__chevron {
  transform: rotate(180deg);
  color: var(--text-2);
  border-color: var(--text-3);
}
.n-service-item.open .n-service-item__title { color: var(--text); }

/* Mobile image inside accordion (hidden on desktop) */
.n-service-item__mobile-img { display: none; }

/* ============================================
   SKILLS STRIP (sobre-mi)
   ============================================ */
.n-skills {
  padding: clamp(40px, 5vw, 60px) 0;
  border-top: 1px solid var(--border);
}
.n-skills__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.n-skills__wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.n-skill-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--border);
  padding: 7px 16px;
  border-radius: 999px;
  transition: color 0.25s, border-color 0.25s;
}
.n-skill-tag:hover { color: var(--text-2); border-color: var(--text-3); }

/* ============================================
   CONTACT PAGE
   ============================================ */
.n-contact {
  padding: clamp(80px, 10vw, 120px) 0 clamp(80px, 10vw, 140px);
  border-top: 1px solid var(--border);
}
.n-contact__grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(48px, 6vw, 100px);
  align-items: start;
}
.n-contact__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 40px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.n-contact__status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.25; }
}
.n-contact__email-link {
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  display: block;
  line-height: 1.2;
  margin-bottom: 48px;
  transition: color 0.25s;
}
.n-contact__email-link:hover { color: var(--text-2); }
.n-contact__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
.n-contact__detail-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  display: block;
  margin-bottom: 4px;
}
.n-contact__detail-value {
  font-size: 15px;
  color: var(--text-2);
  transition: color 0.2s;
}
a.n-contact__detail-value:hover { color: var(--text); }
.n-contact__social { display: flex; flex-direction: column; }
.n-contact__social a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.25s var(--ease);
}
.n-contact__social a:last-child { border-bottom: none; }
.n-contact__social a:hover { color: var(--text); padding-left: 6px; }
.n-contact__social a span:last-child { font-size: 16px; line-height: 1; }

/* Form */
.n-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.n-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 clamp(24px, 3vw, 48px);
}
.n-form__group {
  display: flex;
  flex-direction: column;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 2px;
}
.n-form__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.n-form__input,
.n-form__textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-family: 'Mona Sans', sans-serif;
  font-size: 16px;
  padding: 0 0 20px;
  outline: none;
  width: 100%;
  transition: border-color 0.3s;
}
.n-form__input:focus,
.n-form__textarea:focus { border-bottom-color: var(--text-2); }
.n-form__input::placeholder,
.n-form__textarea::placeholder { color: var(--text-3); font-family: inherit; }
.n-form__textarea { resize: none; min-height: 130px; line-height: 1.6; }
.n-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 36px;
  flex-wrap: wrap;
}
.n-form__note { font-size: 13px; color: var(--text-3); }
.n-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  /* Glass */
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px) saturate(150%);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  box-shadow:
    0 6px 14px rgba(0, 0, 0, 0.22),
    inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.42),
    inset -1px -1px 1px rgba(255, 255, 255, 0.12);
  transition: all 0.7s cubic-bezier(0.175, 0.885, 0.32, 2.2);
}
.n-form__submit:hover {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.38);
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    inset 1.5px 1.5px 1px rgba(255, 255, 255, 0.55),
    inset -1px -1px 1px rgba(255, 255, 255, 0.18);
}
.n-form__submit:disabled { opacity: 0.45; pointer-events: none; }
.n-form__submit svg { transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 2.2); }
.n-form__submit:hover svg { transform: translate(4px, 0); }
.n-form__messages { margin-bottom: 4px; }
.n-form__success,
.n-form__error {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 20px;
}
.n-form__success {
  border: 1px solid rgba(74, 222, 128, 0.25);
  background: rgba(74, 222, 128, 0.06);
  color: #4ade80;
}
.n-form__error {
  border: 1px solid rgba(248, 113, 113, 0.25);
  background: rgba(248, 113, 113, 0.06);
  color: #f87171;
}
.n-form__success.visible,
.n-form__error.visible { display: block; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .n-about__grid { grid-template-columns: 1fr; gap: 48px; }
  .n-about__img-wrap { aspect-ratio: 16/9; max-height: 420px; }
  .n-footer__bottom { grid-template-columns: 1fr 1fr; }
  .n-footer__copy { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .n-hero .n-container { flex-direction: column; align-items: flex-start; }
  .n-hero__left { flex: none; width: 100%; }
  .n-hero__portrait-wrap { width: 100%; flex: none; aspect-ratio: 3/2; }

  .n-services__split { grid-template-columns: 1fr; }
  .n-services__preview { display: none; }
  .n-service-item__mobile-img {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s var(--ease), margin 0.45s var(--ease);
  }
  .n-service-item.open .n-service-item__mobile-img { max-height: 300px; margin-top: 16px; }
  .n-service-item__mobile-img img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
  }
}

@media (max-width: 768px) {
  .n-nav__links { display: none; }
  .n-nav__lang { display: none; }
  .n-nav__toggle { display: flex; }
  .n-works__preview { display: none; }
  .n-work-item {
    grid-template-columns: 36px 1fr 20px;
    gap: 12px;
  }
  .n-work-item__tag { display: none; }
  .n-work-item__year { display: none; }
  .n-hero__bottom { flex-direction: column; align-items: flex-start; }
  .n-hero__portrait-wrap { display: none; }
  .n-footer__bottom { grid-template-columns: 1fr; gap: 20px; }
  .n-footer__nav, .n-footer__social { flex-wrap: wrap; gap: 16px; }
  .n-timeline-item { grid-template-columns: 1fr; }
  .n-timeline-item__place { font-size: 12px; }
}

@media (max-width: 900px) {
  .n-contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .n-form__row { grid-template-columns: 1fr; }
  .n-form__footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .n-hero__actions { flex-direction: column; align-items: flex-start; }
  .n-hero__title { font-size: clamp(28px, 7vw, 40px); }
  .n-work-item { gap: 8px; }
  .n-about__stats { flex-direction: column; gap: 24px; }
  .n-page-header__title { font-size: clamp(36px, 10vw, 52px); }
  .n-footer__cta-title { font-size: clamp(24px, 7vw, 40px); overflow-wrap: break-word; }
  .n-statement__text { font-size: clamp(22px, 6vw, 32px); }
  .n-service-item__title { font-size: 22px; }
  .n-timeline-item__title { font-size: 18px; }
  .n-menu__links a { font-size: clamp(32px, 9vw, 48px); }
}

/* ============================================
   PROJECT PAGE
   ============================================ */

/* Hero imagen principal */
.n-project-hero {
  padding-top: 68px; /* altura del nav */
  position: relative;
}
.n-project-hero__img-wrap {
  position: relative;
  width: 100%;
  height: 88vh;
  min-height: 480px;
  overflow: hidden;
}
.n-project-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 1s var(--ease);
}
.n-project-hero__img-wrap:hover .n-project-hero__img { transform: scale(1.03); }

/* Overlay con gradiente + contenido anclado al fondo */
.n-project-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0) 40%,
    rgba(0,0,0,0.65) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(32px, 4vw, 56px);
}
.n-project-hero__top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.n-project-hero__top .n-label { color: rgba(255,255,255,0.5); }
.n-project-hero__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
}
.n-project-hero__title {
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(64px, 11vw, 160px);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: #fff;
}

/* Meta strip */
.n-project-meta {
  padding: clamp(40px, 5vw, 56px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.n-project-meta__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.n-project-meta__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  display: block;
  margin-bottom: 12px;
}
.n-project-meta__value {
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.2;
}
.n-project-meta__value a {
  color: var(--text-2);
  transition: color 0.2s;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--border);
}
.n-project-meta__value a:hover { color: var(--text); }

/* Intro / resumen */
.n-project-intro {
  padding: clamp(80px, 10vw, 120px) 0;
  border-bottom: 1px solid var(--border);
}
.n-project-intro__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.n-project-intro__text {
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.n-project-intro__text .n-statement__word {
  margin-right: 0.18em;
}

/* Gallery grid */
.n-project-gallery {
  padding: clamp(48px, 6vw, 72px) 0;
}
.n-project-gallery--dark {
  background: var(--surface);
  padding: clamp(60px, 7vw, 100px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.n-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(12px, 2vw, 20px);
}
.n-gallery-item {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}
.n-gallery-item--sq { aspect-ratio: 1/1; }
.n-gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 16/7;
}
.n-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--ease);
}
.n-gallery-item:hover img { transform: scale(1.03); }

/* Text content block */
.n-project-content {
  padding: clamp(80px, 10vw, 120px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.n-project-content__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.n-project-content__num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-top: 6px;
  display: block;
}
.n-project-content__body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.n-project-content__body p {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.8;
  color: var(--text-2);
}
.n-project-content__body h4 {
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-top: 8px;
  color: var(--text);
}
.n-project-content__body ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.n-project-content__body ul li {
  font-size: clamp(14px, 1.3vw, 16px);
  color: var(--text-2);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}
.n-project-content__body ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-3);
}

/* Stats row */
.n-project-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 48px;
}
.n-project-stat {
  background: var(--bg);
  padding: 32px 24px;
  text-align: center;
}
.n-project-stat__number {
  display: block;
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 10px;
}
.n-project-stat__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  line-height: 1.4;
}

/* Next project */
.n-project-next {
  display: block;
  border-top: 1px solid var(--border);
  padding: clamp(64px, 8vw, 100px) 0;
  transition: background 0.4s;
}
.n-project-next:hover { background: var(--surface); }
.n-project-next__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.n-project-next__left { display: flex; flex-direction: column; gap: 16px; }
.n-project-next__title {
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(40px, 7vw, 100px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  transition: color 0.25s;
}
.n-project-next:hover .n-project-next__title { color: var(--text-2); }
.n-project-next__arrow {
  font-size: clamp(40px, 5vw, 72px);
  color: var(--text-3);
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease), color 0.25s;
}
.n-project-next:hover .n-project-next__arrow {
  transform: translate(10px, -10px);
  color: var(--text);
}

/* Project page responsive */
@media (max-width: 768px) {
  .n-project-hero__img-wrap { height: 70vh; min-height: 400px; }
  .n-project-hero__title { font-size: clamp(40px, 10vw, 80px); }
  .n-project-meta__grid { grid-template-columns: repeat(2, 1fr); }
  .n-project-intro__grid,
  .n-project-content__grid { grid-template-columns: 1fr; }
  .n-project-stats { grid-template-columns: repeat(2, 1fr); }
  .n-project-next__arrow { display: none; }
  .n-gallery-item--wide { aspect-ratio: 16/9; }
}
@media (max-width: 480px) {
  .n-project-hero__img-wrap { height: auto; min-height: 0; aspect-ratio: 3/4; }
  .n-project-hero__title { font-size: clamp(32px, 9vw, 48px); }
  .n-project-hero__overlay { padding-bottom: 24px; }
  .n-project-hero__top .n-label { font-size: 10px; }
  .n-project-meta__grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .n-project-meta__value { font-size: 15px; }
  .n-gallery-grid { grid-template-columns: 1fr; }
  .n-gallery-item--wide { grid-column: span 1; aspect-ratio: 4/3; }
  .n-gallery-item--sq { aspect-ratio: 4/3; }
  .n-project-intro__text { font-size: 20px; line-height: 1.4; }
  .n-project-intro__text .n-statement__word { margin-right: 0.15em; }
  .n-project-stats { grid-template-columns: 1fr 1fr; }
  .n-project-stat { padding: 24px 16px; }
  .n-project-stat__number { font-size: 28px; }
  .n-project-next__title { font-size: 36px; }
}
