/* Eneko Andrés — photo-led dark editorial */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0B0B0C;
  --surface: #141416;
  --text: #F4F2EE;
  --muted: #8E8B85;
  --accent: #FF5A1F;
  --hairline: rgba(244, 242, 238, .12);
  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pad: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--text); text-decoration-color: var(--hairline); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.muted { color: var(--muted); }
.ac { color: var(--accent); }
p { max-width: 62ch; text-wrap: pretty; }

/* Type */
.display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 6.5rem);
  line-height: .96;
  letter-spacing: -.03em;
  text-wrap: balance;
  max-width: 14ch;
}
.display-sm {
  font-family: var(--display);
  font-weight: 750;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  text-wrap: balance;
  max-width: 20ch;
}
.sec-num {
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: clamp(24px, 4vw, 48px);
}

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  transition: background .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav.solid { background: var(--bg); border-bottom-color: var(--hairline); }
.nav-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 18px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-brand {
  font-family: var(--display); font-weight: 750; letter-spacing: -.02em;
  font-size: 1.15rem; text-decoration: none;
}
.nav-cta { font-weight: 600; text-decoration: none; font-size: .95rem; }
.nav-cta:hover { color: var(--accent); }

/* Photo sections share treatment: slight desat + bottom gradient */
.hero, .break, .cierre { position: relative; overflow: hidden; }
.hero img, .break img, .cierre img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: saturate(.85);
}
.hero::after, .break::after, .cierre::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(11,11,12,.95) 0%, rgba(11,11,12,.55) 38%, rgba(11,11,12,.2) 70%);
}

/* Hero */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; }
.hero-copy { position: relative; z-index: 2; padding-bottom: clamp(48px, 8vh, 96px); padding-top: 40vh; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: 8px 16px; font-size: .85rem; letter-spacing: .02em;
  color: var(--text); background: rgba(11,11,12,.35);
  margin-bottom: 24px;
}
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.hero-sub { margin-top: 22px; font-size: 1.15rem; color: var(--text); }
.hero .btn { margin-top: 34px; }

/* Button */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #0B0B0C;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: -.01em; text-decoration: none;
  padding: 16px 36px; border-radius: 999px;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { background: #ff6f3d; color: #0B0B0C; transform: translateY(-2px); }

/* Sections */
.section { padding: clamp(72px, 12vw, 140px) 0; border-top: 1px solid var(--hairline); }

/* Cifras */
.cifras-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.cifra { padding: 8px 28px; border-left: 1px solid var(--hairline); }
.cifra:first-child { padding-left: 0; border-left: 0; }
.cifra-num {
  font-family: var(--display); font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  line-height: 1; letter-spacing: -.03em;
}
.cifra-label { margin-top: 10px; font-size: .92rem; color: var(--muted); }
.cifras-nota { margin-top: clamp(40px, 6vw, 64px); }

/* Quién soy */
.quien { padding: 0; border-top: 1px solid var(--hairline); }
.quien-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.quien-photo { position: relative; }
.quien-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: saturate(.8) contrast(1.02);
}
.quien-text {
  padding: clamp(72px, 10vw, 130px) var(--pad);
  display: flex; flex-direction: column; justify-content: center;
}
.quien-text .display-sm { margin-bottom: 32px; }
.quien-text p + p { margin-top: 20px; }

/* Construido */
.exhibits { margin-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--hairline); }
.exhibit {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px 40px;
  padding: 30px 0; border-bottom: 1px solid var(--hairline);
}
.exhibit-name {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.15rem, 2vw, 1.5rem); letter-spacing: -.02em; line-height: 1.15;
}

/* Break */
.break { min-height: 72vh; display: flex; align-items: flex-end; }
.break::after {
  background: linear-gradient(to top, rgba(11,11,12,.95) 0%, rgba(11,11,12,.45) 45%, rgba(11,11,12,.25) 100%);
}
.break-copy { position: relative; z-index: 2; padding-bottom: clamp(48px, 8vh, 88px); padding-top: 30vh; }
.break-line {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.25; letter-spacing: -.02em; max-width: 26ch;
}

/* Cómo pienso */
.pienso-grid {
  margin-top: clamp(32px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 80px) clamp(40px, 6vw, 96px);
}
.tesis-h {
  font-family: var(--display); font-weight: 750;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: -.02em; line-height: 1.1;
  margin-bottom: 16px;
}
.tesis-q { font-size: 1.1rem; line-height: 1.55; }
.tesis-q + .muted, .tesis-h + .muted { margin-top: 14px; }
.tesis .muted { font-size: .98rem; }

/* Manifiesto */
.manifiesto { padding: clamp(110px, 16vw, 200px) 0; }
.manifiesto-no { max-width: 12ch; }
.manifiesto-si { margin-top: clamp(36px, 5vw, 56px); max-width: 26ch; font-weight: 700; }

/* Cierre */
.cierre { min-height: 92vh; display: flex; align-items: flex-end; }
.cierre::after {
  background: linear-gradient(to top, rgba(11,11,12,.97) 0%, rgba(11,11,12,.65) 45%, rgba(11,11,12,.35) 100%);
}
.cierre-copy { position: relative; z-index: 2; padding-bottom: clamp(64px, 10vh, 110px); padding-top: 34vh; }
.cierre .btn { margin-top: 38px; }
.cierre-nota { margin-top: 18px; font-size: .95rem; }

/* Footer */
.footer { border-top: 1px solid var(--hairline); padding: 40px 0 110px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: baseline; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-links a { text-decoration: none; font-size: .95rem; }
.footer-credit { font-size: .88rem; }
.footer-credit a { color: var(--muted); }
.footer-credit a:hover { color: var(--accent); }

/* Sticky WhatsApp */
.wa-sticky {
  position: fixed; right: 18px; bottom: 18px; z-index: 30;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: #0B0B0C;
  font-family: var(--display); font-weight: 700; font-size: .98rem;
  padding: 13px 22px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 8px 28px rgba(0,0,0,.45);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.wa-sticky.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-sticky:hover { color: #0B0B0C; background: #ff6f3d; }

/* Reveal on enter (only when JS is present) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .4s ease, transform .4s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .wa-sticky { transition: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .cifras-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .cifra:nth-child(odd) { padding-left: 0; border-left: 0; }
  .cifra:nth-child(even) { padding-right: 0; }
  .quien-grid { grid-template-columns: 1fr; min-height: 0; }
  .quien-photo { position: relative; aspect-ratio: 4 / 3; }
  .exhibit { grid-template-columns: 1fr; gap: 8px; }
  .pienso-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  /* Keep his head in frame when the tall photo is cropped to a phone column. */
  .cierre img { object-position: 68% 22%; }
}
@media (max-width: 480px) {
  .cifra { padding: 8px 16px; }
  .footer { padding-bottom: 130px; }
  .wa-sticky { right: 14px; bottom: 14px; padding: 12px 19px; }
}
