/* ==========================================================
   NONINARQ · Studio de arquitectura
   Hoja de estilos principal
   -----------------------------------------------------------
   · Mobile-first
   · Tokens en :root (cambias aquí, cambia todo)
   · Accesible (contraste AA, prefers-reduced-motion)
   ========================================================== */

/* ============ FONTS ============ */
@font-face {
  font-family: 'Noninarq';
  src: url('../assets/fonts/NONINARQ_UltraLight.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noninarq';
  src: url('../assets/fonts/NONINARQ_Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noninarq';
  src: url('../assets/fonts/NONINARQ_Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'RobotoLocal';
  src: url('../assets/fonts/Roboto-Thin.ttf') format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'RobotoLocal';
  src: url('../assets/fonts/Roboto-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ============ TOKENS ============ */
:root {
  /* Paleta · Cal + sol + noche + terracota */
  --cream: #F3ECDC;
  --cream-soft: #FAF5E9;
  --cream-deep: #E8DFC8;
  --sol: #F4CE2A;
  --sol-soft: #F7DD5F;
  --noche: #0B1026;
  --noche-soft: #1A2040;
  --terracota: #B85A33;
  --terracota-soft: #D9855D;
  --piedra: #8C8478;
  --piedra-soft: #B5AFA2;
  --carbon: #1A1A1E;

  /* Tipografía */
  --f-display: 'Noninarq', 'Raleway', system-ui, sans-serif;
  --f-serif: 'Fraunces', 'Times New Roman', serif;
  --f-body: 'RobotoLocal', 'Roboto', system-ui, sans-serif;

  /* Escala */
  --maxw: 1400px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body); font-weight: 300;
  background: var(--cream); color: var(--carbon);
  line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; cursor: pointer; background: none; color: inherit; }
::selection { background: var(--sol); color: var(--noche); }

/* Grano tipo muro de cal */
body::before {
  content: ''; position: fixed; inset: 0;
  pointer-events: none; z-index: 999;
  opacity: 0.3; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.5rem var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  background: rgba(243, 236, 220, 0.75);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: rgba(11, 16, 38, 0.08); }
.nav--dark { background: rgba(11, 16, 38, 0.75); border-bottom-color: rgba(243, 236, 220, 0.1); }
.nav--dark .nav__logo, .nav--dark .nav__link { color: var(--cream); }
.nav--dark .nav__burger span { background: var(--cream); }

.nav__logo {
  font-family: var(--f-display); font-weight: 100; font-size: 1.5rem;
  letter-spacing: 0.18em; color: var(--noche);
  display: flex; align-items: baseline; gap: 0.6rem;
}
.nav__logo .word {
  font-size: 0.7rem; letter-spacing: 0.32em;
  font-weight: 300; color: var(--piedra); display: none;
}
@media (min-width: 720px) { .nav__logo .word { display: inline; } }

.nav__menu { display: none; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .nav__menu { display: flex; } }

.nav__link {
  font-family: var(--f-display); font-weight: 300;
  font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--noche); position: relative; padding: 0.5rem 0;
  transition: color 0.3s var(--ease);
}
.nav__link[aria-current="page"] { color: var(--terracota); }
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--sol);
  transition: right 0.4s var(--ease);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { right: 0; }

.nav__cta {
  font-family: var(--f-display); font-weight: 300;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--noche); padding: 0.85rem 1.5rem; background: var(--sol);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(244,206,42,0.6); }

.nav__burger {
  width: 32px; height: 22px; display: flex;
  flex-direction: column; justify-content: space-between; background: none;
}
@media (min-width: 900px) { .nav__burger { display: none; } }
.nav__burger span {
  display: block; width: 100%; height: 1.5px; background: var(--noche);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.nav__burger.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; background: var(--cream); z-index: 90;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter); transform: translateY(-100%);
  transition: transform 0.6s var(--ease);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu__item {
  font-family: var(--f-display); font-weight: 100;
  font-size: clamp(2.5rem, 10vw, 4rem); color: var(--noche);
  letter-spacing: 0.02em; padding: 0.4rem 0;
}
.mobile-menu__item .num {
  font-family: var(--f-serif); font-style: italic;
  font-size: 0.85rem; font-weight: 300; color: var(--piedra);
  margin-right: 0.8rem; vertical-align: super;
}

/* ============ SECTION LABEL ============ */
.section-label {
  font-family: var(--f-display); font-size: 0.72rem;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--piedra); margin-bottom: 1.5rem;
  display: inline-flex; align-items: center; gap: 0.8rem;
}
.section-label::before {
  content: ''; width: 1.8rem; height: 1px; background: var(--piedra);
}
.section-label--light { color: var(--sol); }
.section-label--light::before { background: var(--sol); }

/* ============ HERO HOME ============ */
.hero {
  min-height: 100vh;
  padding: calc(8rem + 2vw) var(--gutter) 4rem;
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 3rem;
  align-items: center; position: relative;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; padding-top: 10rem; }
}
.hero__meta {
  font-family: var(--f-display); font-size: 0.72rem;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--piedra); margin-bottom: 2rem;
  display: flex; align-items: center; gap: 0.9rem;
}
.hero__meta::before { content: ''; width: 2rem; height: 1px; background: var(--piedra); }

.hero__title {
  font-family: var(--f-display); font-weight: 100;
  font-size: clamp(2.8rem, 9vw, 7.5rem);
  line-height: 0.96; letter-spacing: -0.02em;
  color: var(--noche); margin-bottom: 2rem;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__title .line span {
  display: inline-block; transform: translateY(100%);
  animation: reveal 1.1s var(--ease) forwards;
}
.hero__title .line:nth-child(1) span { animation-delay: 0.1s; }
.hero__title .line:nth-child(2) span { animation-delay: 0.25s; }
.hero__title .line:nth-child(3) span { animation-delay: 0.4s; }
@keyframes reveal { to { transform: translateY(0); } }
.hero__title em {
  font-family: var(--f-serif); font-style: italic;
  font-weight: 300; color: var(--terracota);
}
.hero__sub {
  max-width: 32rem; font-size: 1.05rem; font-weight: 300;
  line-height: 1.7; color: var(--noche);
  opacity: 0; animation: fadeIn 1s var(--ease) 0.9s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
.hero__tag {
  margin-top: 2.5rem;
  display: inline-flex; align-items: center; gap: 1rem;
  font-family: var(--f-display); font-size: 0.72rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--noche);
  opacity: 0; animation: fadeIn 1s var(--ease) 1.2s forwards;
}
.hero__tag::before { content: ''; width: 2rem; height: 1px; background: var(--sol); }

.hero__media {
  position: relative; overflow: hidden; background: var(--cream-deep);
  aspect-ratio: 4 / 5; opacity: 0;
  animation: fadeIn 1.4s var(--ease) 0.5s forwards;
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: zoomSlow 14s ease-out infinite alternate;
}
@keyframes zoomSlow { from { transform: scale(1); } to { transform: scale(1.06); } }
.hero__media__caption {
  position: absolute; bottom: 1.25rem; left: 1.25rem;
  color: var(--cream); font-family: var(--f-display);
  font-size: 0.68rem; letter-spacing: 0.3em; text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(11, 16, 38, 0.5);
  mix-blend-mode: difference;
}
.hero__scroll {
  position: absolute; bottom: 2rem; left: var(--gutter);
  font-family: var(--f-display); font-size: 0.7rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--piedra);
  display: none; align-items: center; gap: 0.8rem;
}
@media (min-width: 900px) { .hero__scroll { display: flex; } }
.hero__scroll::after {
  content: ''; width: 3rem; height: 1px; background: var(--piedra);
  animation: lineGrow 2s var(--ease) infinite;
}
@keyframes lineGrow {
  0%, 100% { transform: scaleX(1); transform-origin: left; }
  50% { transform: scaleX(1.5); transform-origin: left; }
}

/* ============ PAGE HEADER (for inner pages) ============ */
.page-header {
  padding: calc(8rem + 2vw) var(--gutter) 3rem;
  max-width: var(--maxw); margin: 0 auto;
}
@media (min-width: 720px) { .page-header { padding-top: 12rem; padding-bottom: 5rem; } }

.page-header__meta {
  font-family: var(--f-display); font-size: 0.72rem;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--piedra); margin-bottom: 1.5rem;
  display: inline-flex; align-items: center; gap: 0.9rem;
}
.page-header__meta::before { content: ''; width: 2rem; height: 1px; background: var(--piedra); }

.page-header__title {
  font-family: var(--f-display); font-weight: 100;
  font-size: clamp(2.8rem, 8vw, 6rem); line-height: 0.98;
  letter-spacing: -0.02em; color: var(--noche);
  margin-bottom: 2rem;
}
.page-header__title em {
  font-family: var(--f-serif); font-style: italic;
  font-weight: 300; color: var(--terracota);
}
.page-header__sub {
  max-width: 56ch; font-size: 1.1rem; line-height: 1.7;
  font-weight: 300; color: var(--noche);
}

/* ============ MANIFESTO ============ */
.manifesto {
  padding: clamp(5rem, 12vw, 10rem) var(--gutter);
  max-width: var(--maxw); margin: 0 auto;
  display: grid; gap: 4rem;
}
@media (min-width: 900px) { .manifesto { grid-template-columns: 1fr 1.2fr; gap: 6rem; } }

.manifesto__quote {
  font-family: var(--f-serif); font-weight: 300; font-style: italic;
  font-size: clamp(1.7rem, 3.3vw, 2.6rem); line-height: 1.25;
  color: var(--noche); letter-spacing: -0.01em;
}
.manifesto__quote em {
  font-style: normal; font-family: var(--f-display);
  font-weight: 100; color: var(--terracota); padding: 0 0.2rem;
  background: linear-gradient(to bottom, transparent 62%, rgba(244,206,42,0.45) 62%);
}

.manifesto__body p {
  font-size: 1.02rem; font-weight: 300; line-height: 1.85;
  color: var(--noche); margin-bottom: 1.3rem;
}
.manifesto__body p:last-child { margin-bottom: 0; }
.manifesto__signature {
  margin-top: 2rem; font-family: var(--f-serif);
  font-style: italic; font-weight: 400;
  color: var(--terracota); font-size: 1.1rem;
}

/* ============ NO NI NÁ ============ */
.nonina {
  background: var(--noche); color: var(--cream);
  padding: clamp(5rem, 12vw, 10rem) var(--gutter);
  position: relative; overflow: hidden;
}
.nonina__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; gap: 5rem;
}
@media (min-width: 900px) {
  .nonina__inner { grid-template-columns: 0.85fr 1.15fr; gap: 7rem; align-items: start; }
}

.glosario__entry {
  border-top: 1px solid rgba(243, 236, 220, 0.22);
  border-bottom: 1px solid rgba(243, 236, 220, 0.22);
  padding: 3rem 0; margin-top: 2rem;
}
.glosario__word {
  font-family: var(--f-display); font-weight: 100;
  font-size: clamp(3.5rem, 9vw, 6.5rem); line-height: 0.95;
  letter-spacing: -0.02em; color: var(--cream);
  margin-bottom: 1rem;
}
.glosario__phon {
  font-family: var(--f-serif); font-style: italic; font-weight: 300;
  font-size: 1.1rem; color: var(--sol); margin-bottom: 2rem;
  letter-spacing: 0.02em;
}
.glosario__phon .tag {
  font-family: var(--f-display); font-style: normal;
  font-size: 0.65rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: rgba(243, 236, 220, 0.55);
  margin-left: 1rem; border: 1px solid rgba(243, 236, 220, 0.25);
  padding: 0.3rem 0.7rem; border-radius: 2px;
  vertical-align: middle;
}
.glosario__def {
  font-family: var(--f-body); font-weight: 300;
  font-size: 1.05rem; line-height: 1.8;
  color: rgba(243, 236, 220, 0.88); max-width: 34ch;
}
.glosario__def strong { font-weight: 400; color: var(--cream); }
.glosario__def em {
  font-family: var(--f-serif); font-style: italic;
  color: var(--sol); font-weight: 400;
}

.afirmaciones { display: grid; gap: 2.5rem; }
.afirmaciones__intro {
  font-family: var(--f-display); font-weight: 200;
  font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.25;
  color: var(--cream); max-width: 26ch; margin-bottom: 1rem;
}
.afirmaciones__intro em {
  font-family: var(--f-serif); font-style: italic;
  font-weight: 300; color: var(--sol);
}

.afirmacion {
  display: grid; grid-template-columns: 1fr; gap: 0.8rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(243, 236, 220, 0.15);
}
.afirmacion:last-child { border-bottom: none; }

.afirmacion__q {
  font-family: var(--f-display); font-weight: 300;
  font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.35;
  color: rgba(243, 236, 220, 0.9); letter-spacing: -0.005em;
}
.afirmacion__a {
  font-family: var(--f-serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1; color: var(--sol);
  letter-spacing: -0.01em;
  display: inline-block; position: relative;
}
.afirmacion__a .dash {
  font-family: var(--f-display); font-style: normal; font-weight: 200;
  color: rgba(243, 236, 220, 0.5); margin-right: 0.6rem;
}
.afirmacion__a .dot { color: var(--sol); }
.afirmacion__a::after {
  content: '';
  position: absolute;
  left: 1.5rem; right: -0.3rem; bottom: -0.25rem;
  height: 0.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 Q 50 1, 100 5 T 198 4' fill='none' stroke='%23F4CE2A' stroke-width='1.5' stroke-linecap='round' opacity='0.6'/%3E%3C/svg%3E");
  background-size: 100% 100%; background-repeat: no-repeat;
  opacity: 0; transform: scaleX(0); transform-origin: left;
  transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
}
.afirmacion.visible .afirmacion__a::after { opacity: 1; transform: scaleX(1); }

/* ============ FEATURED PROJECTS ============ */
.featured {
  padding: clamp(4rem, 10vw, 8rem) 0;
  background: var(--cream-soft);
  position: relative; overflow: hidden;
}
.featured::before {
  content: 'OBRA SELECTA';
  position: absolute; top: 2rem; right: -1rem;
  font-family: var(--f-display); font-weight: 100;
  font-size: clamp(4rem, 14vw, 11rem);
  letter-spacing: -0.02em; color: var(--cream-deep);
  line-height: 1; pointer-events: none; user-select: none;
}
.featured__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter); position: relative;
}
.featured__header {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 4rem;
  border-bottom: 1px solid rgba(11, 16, 38, 0.15);
  padding-bottom: 1.5rem;
}
.featured__title {
  font-family: var(--f-display); font-weight: 100;
  font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.01em;
  color: var(--noche);
}
.featured__title em {
  font-family: var(--f-serif); font-style: italic;
  font-weight: 300; color: var(--terracota);
}
.featured__count {
  font-family: var(--f-serif); font-style: italic; color: var(--piedra);
}

.projects { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.project {
  display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start;
}
@media (min-width: 720px) {
  .project { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
  .project:nth-child(even) .project__media { order: 2; }
  .project:nth-child(even) .project__info { order: 1; }
}
.project__media {
  position: relative; aspect-ratio: 4 / 3;
  overflow: hidden; background: var(--cream-deep);
}
.project__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.project:hover .project__media img { transform: scale(1.04); }

.project__num {
  font-family: var(--f-serif); font-style: italic;
  font-weight: 400; font-size: 1rem; color: var(--piedra);
  margin-bottom: 1rem;
}
.project__name {
  font-family: var(--f-display); font-weight: 100;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1;
  color: var(--noche); margin-bottom: 1.3rem; letter-spacing: -0.01em;
}
.project__name em {
  font-family: var(--f-serif); font-style: italic;
  font-weight: 300; color: var(--terracota); display: block;
}
.project__meta {
  display: grid; grid-template-columns: auto 1fr;
  gap: 0.5rem 1.2rem;
  font-family: var(--f-display); font-size: 0.72rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.project__meta dt { color: var(--piedra); font-weight: 300; }
.project__meta dd { color: var(--noche); font-weight: 400; }
.project__desc {
  max-width: 36ch; font-weight: 300; line-height: 1.7;
  color: var(--noche); margin-bottom: 1.5rem;
}
.project__link {
  font-family: var(--f-display); font-size: 0.75rem;
  letter-spacing: 0.28em; text-transform: uppercase; font-weight: 400;
  color: var(--noche); display: inline-flex; align-items: center; gap: 0.8rem;
  padding-bottom: 0.4rem; border-bottom: 1px solid var(--noche);
  transition: gap 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.project__link:hover { gap: 1.3rem; color: var(--terracota); border-bottom-color: var(--terracota); }
.project__link::after { content: '→'; font-family: var(--f-serif); }

/* ============ PHILOSOPHY ============ */
.philosophy {
  padding: clamp(5rem, 12vw, 10rem) var(--gutter);
  background: var(--cream); position: relative;
}
.philosophy__inner { max-width: var(--maxw); margin: 0 auto; position: relative; }

.philosophy__title {
  font-family: var(--f-display); font-weight: 100;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem); line-height: 1.05;
  letter-spacing: -0.015em; max-width: 22ch;
  margin-bottom: 5rem; color: var(--noche);
}
.philosophy__title em {
  font-family: var(--f-serif); font-style: italic;
  font-weight: 300; color: var(--terracota);
}
.pillars { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; } }
.pillar { border-top: 1px solid rgba(11, 16, 38, 0.2); padding-top: 2rem; }
.pillar__num {
  font-family: var(--f-serif); font-style: italic; font-weight: 300;
  color: var(--terracota); font-size: 1.2rem; margin-bottom: 1.5rem;
}
.pillar__name {
  font-family: var(--f-display); font-weight: 300;
  font-size: 1.5rem; letter-spacing: 0.02em;
  margin-bottom: 1rem; color: var(--noche);
}
.pillar__body {
  font-weight: 300; line-height: 1.75;
  color: var(--noche); font-size: 0.98rem;
}

/* ============ PROJECT LIST (table style) ============ */
.list {
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  max-width: var(--maxw); margin: 0 auto;
  background: var(--cream-soft);
}
.list__header {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem;
}
.list__title {
  font-family: var(--f-display); font-weight: 100;
  font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -0.01em;
  color: var(--noche);
}
.list__title em {
  font-family: var(--f-serif); font-style: italic;
  font-weight: 300; color: var(--terracota);
}
.list__sub {
  font-family: var(--f-serif); font-style: italic; color: var(--piedra);
}
.list__head {
  display: grid;
  grid-template-columns: 40px 1.8fr 1fr 1fr 0.6fr 1fr;
  gap: 1rem; padding: 1rem 0;
  border-bottom: 1px solid var(--noche);
  font-family: var(--f-display); font-size: 0.7rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--piedra);
}
.list__head span:nth-child(3),
.list__head span:nth-child(4),
.list__head span:nth-child(5),
.list__head span:nth-child(6) { display: none; }
@media (min-width: 760px) {
  .list__head span:nth-child(3),
  .list__head span:nth-child(4),
  .list__head span:nth-child(5),
  .list__head span:nth-child(6) { display: block; }
}
.list__row {
  display: grid;
  grid-template-columns: 40px 1.8fr 1fr 1fr 0.6fr 1fr;
  gap: 1rem; padding: 1.4rem 0;
  border-bottom: 1px solid rgba(11, 16, 38, 0.12);
  align-items: baseline;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease);
  position: relative;
}
.list__row:hover {
  background: linear-gradient(to right, rgba(244, 206, 42, 0.12), transparent 80%);
  padding-left: 1rem;
}
.list__row > *:nth-child(3),
.list__row > *:nth-child(4),
.list__row > *:nth-child(5),
.list__row > *:nth-child(6) {
  display: none; font-family: var(--f-display); font-weight: 300;
  font-size: 0.85rem; color: var(--noche);
}
@media (min-width: 760px) {
  .list__row > *:nth-child(3),
  .list__row > *:nth-child(4),
  .list__row > *:nth-child(5),
  .list__row > *:nth-child(6) { display: block; }
}
.list__num {
  font-family: var(--f-serif); font-style: italic;
  color: var(--piedra); font-size: 0.9rem;
}
.list__name {
  font-family: var(--f-display); font-weight: 300;
  font-size: 1.15rem; color: var(--noche); letter-spacing: 0.01em;
}
.list__name small { display: none; }
@media (max-width: 759px) {
  .list__name small {
    display: block; margin-top: 0.4rem;
    font-family: var(--f-display); font-size: 0.7rem;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--piedra); font-weight: 300;
  }
}
.state-dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  margin-right: 0.5rem; vertical-align: middle;
}
.state-dot--done { background: var(--terracota); }
.state-dot--wip { background: var(--sol); }
.state-dot--award { background: var(--noche); }

/* ============ PROJECTS GRID PAGE ============ */
.filters {
  padding: 0 var(--gutter) 4rem;
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  border-bottom: 1px solid rgba(11, 16, 38, 0.12);
}
.filter-btn {
  font-family: var(--f-display); font-size: 0.72rem;
  letter-spacing: 0.24em; text-transform: uppercase; font-weight: 300;
  padding: 0.7rem 1.2rem;
  background: transparent; color: var(--noche);
  border: 1px solid rgba(11, 16, 38, 0.2);
  border-radius: 50px; cursor: pointer;
  transition: all 0.3s var(--ease);
}
.filter-btn:hover { border-color: var(--noche); }
.filter-btn.active {
  background: var(--noche); color: var(--sol); border-color: var(--noche);
}

.grid {
  padding: 4rem var(--gutter) 6rem;
  max-width: var(--maxw); margin: 0 auto;
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; } }

.grid-card {
  display: block; position: relative; overflow: hidden;
  background: var(--cream-deep);
  transition: opacity 0.4s var(--ease);
}
.grid-card.hidden { display: none; }
.grid-card__media {
  aspect-ratio: 4 / 5;
  overflow: hidden; background: var(--cream-deep);
  position: relative;
}
.grid-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.grid-card:hover .grid-card__media img { transform: scale(1.05); }

.grid-card__media--empty {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(
    45deg, var(--cream-deep), var(--cream-deep) 12px,
    var(--cream-soft) 12px, var(--cream-soft) 24px
  );
  color: var(--piedra);
  font-family: var(--f-serif); font-style: italic;
}

.grid-card__info {
  padding: 1.25rem 0.2rem 0;
}
.grid-card__type {
  font-family: var(--f-display); font-size: 0.68rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--piedra); margin-bottom: 0.5rem;
  display: flex; justify-content: space-between;
}
.grid-card__name {
  font-family: var(--f-display); font-weight: 100;
  font-size: 1.6rem; color: var(--noche); letter-spacing: -0.005em;
  line-height: 1.1; margin-bottom: 0.3rem;
}
.grid-card__where {
  font-family: var(--f-serif); font-style: italic; font-size: 0.95rem;
  color: var(--piedra); font-weight: 300;
}

/* ============ STUDIO / FOUNDERS ============ */
.studio {
  padding: clamp(5rem, 12vw, 10rem) var(--gutter);
  background: var(--cream);
}
.studio__inner { max-width: var(--maxw); margin: 0 auto; }
.studio__title {
  font-family: var(--f-display); font-weight: 100;
  font-size: clamp(2.2rem, 5.5vw, 4.5rem); line-height: 1.05;
  letter-spacing: -0.015em; color: var(--noche);
  margin-bottom: 2rem; max-width: 22ch;
}
.studio__title em {
  font-family: var(--f-serif); font-style: italic;
  font-weight: 300; color: var(--terracota);
}
.studio__intro {
  max-width: 58ch; font-weight: 300; line-height: 1.8;
  font-size: 1.02rem; color: var(--noche); margin-bottom: 5rem;
}
.founders { display: grid; gap: 3rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .founders { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.founder { border-top: 1px solid rgba(11, 16, 38, 0.2); padding-top: 2rem; }
.founder__role {
  font-family: var(--f-serif); font-style: italic;
  color: var(--terracota); margin-bottom: 0.8rem; font-size: 0.95rem;
}
.founder__name {
  font-family: var(--f-display); font-weight: 100;
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  letter-spacing: -0.005em; line-height: 1.1;
  color: var(--noche); margin-bottom: 1.5rem;
}
.founder__bio {
  font-weight: 300; line-height: 1.8;
  color: var(--noche); font-size: 0.98rem;
}
.founder__bio p { margin-bottom: 1rem; }
.founder__tag {
  display: inline-block; margin-top: 1.5rem;
  font-family: var(--f-display); font-size: 0.7rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--piedra);
}
.founder__tag::before { content: '—'; margin-right: 0.6rem; }

/* Studio detail: timeline */
.timeline {
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  background: var(--cream-soft);
}
.timeline__inner { max-width: var(--maxw); margin: 0 auto; }
.timeline__title {
  font-family: var(--f-display); font-weight: 100;
  font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: 3rem;
  color: var(--noche); letter-spacing: -0.01em;
}
.timeline__title em {
  font-family: var(--f-serif); font-style: italic;
  font-weight: 300; color: var(--terracota);
}
.timeline__items { display: grid; gap: 2.5rem; }
.timeline__item {
  display: grid; grid-template-columns: 100px 1fr; gap: 1.5rem;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(11, 16, 38, 0.15);
  align-items: start;
}
.timeline__year {
  font-family: var(--f-serif); font-style: italic;
  color: var(--terracota); font-weight: 400; font-size: 1.3rem;
}
.timeline__label {
  font-family: var(--f-display); font-weight: 300;
  font-size: 1.3rem; color: var(--noche); margin-bottom: 0.5rem;
  letter-spacing: -0.005em;
}
.timeline__body {
  font-weight: 300; line-height: 1.75;
  color: var(--noche); font-size: 0.98rem;
}

/* ============ CONTACT ============ */
.contact {
  background: var(--sol);
  padding: clamp(5rem, 12vw, 10rem) var(--gutter);
  position: relative; overflow: hidden;
}
.contact__inner {
  max-width: var(--maxw); margin: 0 auto; position: relative;
  display: grid; gap: 3rem;
}
@media (min-width: 900px) {
  .contact__inner { grid-template-columns: 1.3fr 1fr; gap: 5rem; align-items: end; }
}
.contact__title {
  font-family: var(--f-display); font-weight: 100;
  font-size: clamp(2.3rem, 6.5vw, 5rem);
  line-height: 1; letter-spacing: -0.02em;
  color: var(--noche); margin-bottom: 2rem;
}
.contact__title em {
  font-family: var(--f-serif); font-style: italic; font-weight: 300;
}
.contact__lead {
  font-family: var(--f-serif); font-weight: 300; font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.5; color: var(--noche); max-width: 40ch;
}
.contact__yes {
  display: inline-block; margin-top: 2rem;
  font-family: var(--f-serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.4rem, 2.3vw, 1.9rem); color: var(--noche);
  padding: 0.4rem 0;
  border-top: 1px solid rgba(11, 16, 38, 0.3);
  border-bottom: 1px solid rgba(11, 16, 38, 0.3);
}
.contact__yes::before { content: '— '; font-style: normal; font-weight: 200; }
.contact__info { display: grid; gap: 1.5rem; }
.contact__info-block dt {
  font-family: var(--f-display); font-size: 0.7rem;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--noche); opacity: 0.55; margin-bottom: 0.5rem;
}
.contact__info-block dd {
  font-family: var(--f-display); font-weight: 300;
  font-size: 1.1rem; color: var(--noche);
}
.contact__info-block dd a { transition: color 0.3s var(--ease); }
.contact__info-block dd a:hover { color: var(--terracota); }
.contact__cta {
  margin-top: 2rem; display: inline-flex; align-items: center; gap: 1rem;
  font-family: var(--f-display); font-size: 0.8rem;
  letter-spacing: 0.28em; text-transform: uppercase; font-weight: 400;
  color: var(--sol); background: var(--noche);
  padding: 1.2rem 2rem; border-radius: 2px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.contact__cta::after { content: '→'; font-family: var(--f-serif); font-size: 1.2rem; }
.contact__cta:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -10px rgba(11,16,38,0.4); }

/* ============ CONTACT FORM ============ */
.form {
  display: grid; gap: 1.5rem; max-width: 640px;
}
.form__row {
  display: grid; grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__field { display: grid; gap: 0.4rem; }
.form__label {
  font-family: var(--f-display); font-size: 0.7rem;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--noche); opacity: 0.6;
}
.form__input, .form__textarea {
  font-family: var(--f-body); font-weight: 300; font-size: 1rem;
  padding: 0.9rem 0 0.7rem;
  background: transparent;
  border: none; border-bottom: 1px solid rgba(11,16,38,0.3);
  color: var(--noche);
  transition: border-color 0.3s var(--ease);
}
.form__input:focus, .form__textarea:focus {
  outline: none; border-bottom-color: var(--noche);
}
.form__textarea { resize: vertical; min-height: 120px; }
.form__submit {
  justify-self: start;
  font-family: var(--f-display); font-size: 0.8rem;
  letter-spacing: 0.28em; text-transform: uppercase; font-weight: 400;
  color: var(--sol); background: var(--noche);
  padding: 1.2rem 2.2rem; border-radius: 2px; cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: inline-flex; align-items: center; gap: 1rem;
}
.form__submit::after { content: '→'; font-family: var(--f-serif); font-size: 1.2rem; }
.form__submit:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -10px rgba(11,16,38,0.4); }

/* ============ PROJECT DETAIL PAGE ============ */
.proj-hero {
  position: relative;
  padding-top: 5rem;
}
.proj-hero__media {
  width: 100%; aspect-ratio: 16/9; overflow: hidden;
  background: var(--cream-deep);
  max-height: 90vh;
}
.proj-hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: zoomSlow 18s ease-out infinite alternate;
}

.proj-intro {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  display: grid; gap: 3rem; grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .proj-intro { grid-template-columns: 1.2fr 0.8fr; gap: 5rem; align-items: start; }
}

.proj-intro__num {
  font-family: var(--f-serif); font-style: italic;
  font-size: 1rem; color: var(--piedra); margin-bottom: 1rem;
}
.proj-intro__title {
  font-family: var(--f-display); font-weight: 100;
  font-size: clamp(2.8rem, 8vw, 6rem); line-height: 0.95;
  color: var(--noche); letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.proj-intro__title em {
  font-family: var(--f-serif); font-style: italic;
  font-weight: 300; color: var(--terracota);
}
.proj-intro__lead {
  font-family: var(--f-serif); font-weight: 300; font-style: italic;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem); line-height: 1.5;
  color: var(--noche); max-width: 42ch;
}

.proj-facts {
  display: grid; grid-template-columns: auto 1fr;
  gap: 1.2rem 1.8rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--noche);
  border-bottom: 1px solid var(--noche);
  align-content: start;
}
.proj-facts dt {
  font-family: var(--f-display); font-size: 0.7rem;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--piedra); font-weight: 300;
}
.proj-facts dd {
  font-family: var(--f-display); font-weight: 300;
  color: var(--noche); font-size: 0.95rem;
}

.proj-body {
  max-width: 800px; margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) var(--gutter) clamp(4rem, 8vw, 6rem);
}
.proj-body p {
  font-size: 1.1rem; font-weight: 300; line-height: 1.85;
  color: var(--noche); margin-bottom: 1.5rem;
}
.proj-body p:last-child { margin-bottom: 0; }
.proj-body p:first-of-type::first-letter {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: 4rem; line-height: 0.85; float: left;
  color: var(--terracota); padding: 0.3rem 0.6rem 0 0;
}

/* Galería editorial con diferentes anchos */
.gallery {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter) clamp(4rem, 10vw, 8rem);
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .gallery { grid-template-columns: 1fr 1fr; gap: 2rem; } }

.gallery__item {
  overflow: hidden; background: var(--cream-deep);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__item--wide { grid-column: 1 / -1; aspect-ratio: 16/9; }
.gallery__item--tall { aspect-ratio: 3/4; }
.gallery__item--square { aspect-ratio: 1/1; }

.gallery__caption {
  grid-column: 1 / -1;
  font-family: var(--f-serif); font-style: italic; font-weight: 300;
  font-size: 0.95rem; color: var(--piedra);
  max-width: 60ch;
}

/* Next project */
.next-proj {
  background: var(--noche); color: var(--cream);
  padding: clamp(4rem, 10vw, 8rem) var(--gutter);
  text-align: center;
}
.next-proj__label {
  font-family: var(--f-display); font-size: 0.72rem;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--sol); margin-bottom: 1.5rem;
}
.next-proj__name {
  font-family: var(--f-display); font-weight: 100;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1; letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  transition: color 0.3s var(--ease);
}
.next-proj__name em {
  font-family: var(--f-serif); font-style: italic; font-weight: 300;
  color: var(--sol);
}
.next-proj__link:hover .next-proj__name { color: var(--sol); }
.next-proj__arrow {
  font-family: var(--f-serif); font-size: 1.3rem;
  color: var(--sol);
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.next-proj__link:hover .next-proj__arrow { transform: translateX(0.5rem); }

/* Empty project (coming soon) */
.proj-empty {
  min-height: 60vh;
  display: flex; align-items: center; justify-content: center;
  padding: 8rem var(--gutter) 4rem;
}
.proj-empty__inner {
  text-align: center; max-width: 36rem;
}
.proj-empty__title {
  font-family: var(--f-display); font-weight: 100;
  font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.5rem;
  color: var(--noche); letter-spacing: -0.01em;
}
.proj-empty__title em {
  font-family: var(--f-serif); font-style: italic;
  font-weight: 300; color: var(--terracota);
}
.proj-empty__text {
  font-family: var(--f-serif); font-style: italic;
  color: var(--piedra); font-size: 1.15rem; line-height: 1.6;
  margin-bottom: 2.5rem;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--noche); color: var(--cream);
  padding: 4rem var(--gutter) 2rem;
}
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; gap: 3rem;
}
@media (min-width: 760px) { .footer__inner { grid-template-columns: 1.5fr 1fr 1fr; } }
.footer__brand {
  font-family: var(--f-display); font-weight: 100;
  font-size: 3rem; letter-spacing: 0.02em;
  color: var(--sol); line-height: 1;
}
.footer__tagline {
  margin-top: 1rem; font-family: var(--f-serif);
  font-style: italic; font-weight: 300;
  color: rgba(243, 236, 220, 0.7); max-width: 28ch;
}
.footer h4 {
  font-family: var(--f-display); font-weight: 400;
  font-size: 0.72rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--sol); margin-bottom: 1.2rem;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 0.5rem; }
.footer a {
  font-family: var(--f-display); font-weight: 300;
  font-size: 0.95rem; color: rgba(243, 236, 220, 0.8);
  transition: color 0.3s var(--ease);
}
.footer a:hover { color: var(--sol); }
.footer__bottom {
  max-width: var(--maxw); margin: 3rem auto 0;
  padding-top: 2rem; border-top: 1px solid rgba(243, 236, 220, 0.15);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  font-family: var(--f-display); font-size: 0.72rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(243, 236, 220, 0.45);
}

/* ============ REVEAL & MOTION ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__title .line span { transform: translateY(0); }
  .hero__sub, .hero__tag, .hero__media { opacity: 1; }
}

/* Utility: hide visually but keep for screen readers */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   FONT FIX · Forzar Roboto en elementos con datos
   -----------------------------------------------------------
   La fuente NONINARQ es de marca: no tiene números, + ni @
   reales (los mapea a un glifo decorativo). Aquí forzamos
   Roboto (fuente de cuerpo) en todo lo que contiene datos.
   ============================================================ */
.hero__meta,
.hero__tag,
.contact__info-block dd,
.contact__info-block dt,
.list__head,
.list__row > *:nth-child(3),
.list__row > *:nth-child(4),
.list__row > *:nth-child(5),
.list__row > *:nth-child(6),
.list__name small,
.project__meta,
.project__meta dt,
.project__meta dd,
.founder__tag,
.proj-facts,
.proj-facts dt,
.proj-facts dd,
.grid-card__type,
.footer a,
.footer__bottom,
.form__label,
.form__input,
.form__textarea,
[data-fix-font] {
  font-family: var(--f-body), 'RobotoLocal', 'Roboto', system-ui, sans-serif !important;
}

/* Números inline dentro de títulos con fuente de marca
   (ej. "Casa Cantera 5" → el 5 en Roboto para que se vea) */
.num-fix {
  font-family: var(--f-body), 'RobotoLocal', 'Roboto', system-ui, sans-serif;
  font-weight: inherit;
}
