/* ── Fuentes Seim Seim (solo se usan en la sección Seim Seim) ─────── */
@font-face {
  font-family: "PicNic";
  src: url("../assets/fonts/PicNic-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ostia Antica";
  src: url("../assets/fonts/OstiaAntica-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ostia Antica";
  src: url("../assets/fonts/OstiaAntica-LightItalic.woff2") format("woff2");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Pend Oreille";
  src: url("../assets/fonts/PendOreille-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ── Reset y tokens ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  /* Cuts horizontal overflow without affecting vertical scroll —
     prevents rotated polaroids y otros elementos rotated/transformed
     de generar scrollbar horizontal */
  overflow-x: hidden;
}
ol, ul { list-style: none; padding: 0; margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

:root {
  --bg: #ffffff;
  --ink: #0e0e0e;
  --ink-soft: #1f1f1f;
  --mute: #6f6a63;
  --line: #ececea;
  --line-soft: #f5f4f1;

  /* Acento bold / atrevido. Alternativas si quieren probar:
       - Cobalto eléctrico:  --accent: #1d3aff;  --accent-ink: #1024c7;
       - Magenta:            --accent: #e21f8a;  --accent-ink: #b30f6c;
       - Verde profundo:     --accent: #0a6b3a;  --accent-ink: #074e2a;
       - Naranja brutal:     --accent: #ff5a1f;  --accent-ink: #d83f0a;
  */
  --accent: #ef2424;
  --accent-ink: #cc1414;

  --display: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Tokens del sub-sistema visual de Seim Seim — se usan solo dentro
     de .seim-section para darle al bloque su propia identidad. */
  --seim-cream: #f5e6c8;
  --seim-red: #c41e1e;
  --seim-red-bright: #f03030;
  --seim-dark: #1a0a0a;
  --seim-picnic: 'PicNic', Georgia, serif;
  --seim-ostia: 'Ostia Antica', Georgia, serif;
  --seim-pendoreille: 'Pend Oreille', Georgia, serif;

  --max: 1320px;
  --gutter: clamp(20px, 4.5vw, 64px);
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  color: var(--ink);
}

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

/* ── Layout helpers ───────────────────────────────────────────────── */
section, footer, nav {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ── Story header — wordmark gigante en UNA línea, edge-to-edge ───── */
.story__giant-wrap {
  width: 100%;
  text-align: center;
  padding: clamp(48px, 6vw, 88px) clamp(16px, 2vw, 32px) clamp(56px, 8vw, 120px);
  margin: 0;
}
.story__giant {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(80px, 24vw, 320px);
  line-height: 0.74;
  letter-spacing: -0.055em;
  text-align: center;
  margin: 0;
  /* padding-bottom para que la descender de la "g" tenga aire y no
     se corte cuando se aplica background-clip: text */
  padding: 0.04em 0 0.16em;
  font-variation-settings: "opsz" 96;

  background-image: url('../assets/img/hero/bg-wide.webp');
  /* `fixed` ancla la imagen al viewport — al scrollear, las letras se
     mueven y van revelando distintas zonas de la misma imagen quieta.
     Sólo desktop; mobile ignora `fixed` por performance. */
  background-size: cover;
  background-attachment: fixed;
  background-position: 50% 40%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  user-select: none;
}
.story__giant span { display: block; }

/* ── Story · narrativa unificada ──────────────────────────────────── */
.story {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(96px, 14vw, 200px);
}

/* Body paragraphs — columna centrada en la página */
.story__p {
  font-family: var(--body);
  font-size: clamp(21px, 2vw, 29px);
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: -0.01em;
  max-width: 58ch;
  margin: 0 auto clamp(28px, 3.2vw, 44px);
  text-align: left;
}
.story__p:last-child { margin-bottom: 0; }
.story__p strong {
  font-weight: 600;
  color: var(--ink);
}
.story__p em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent-ink);
}

.seim-mention {
  cursor: default;
  background-image: linear-gradient(to right, var(--accent), var(--accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: background-size 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s ease;
  padding-bottom: 2px;
}
.seim-mention:hover {
  color: var(--accent-ink);
  background-size: 100% 2px;
}

/* Minor title — divisor narrativo entre el CTA y las polaroids */
.story__minor-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 clamp(48px, 6vw, 80px);
  color: var(--ink);
  text-align: center;
  font-variation-settings: "opsz" 72;
}

/* ── Sección Seim Seim — sub-sistema visual propio ───────────────── */
/* Full-bleed con bg rojo vibrante de la marca, rompe el max-width
   de .story usando el truco left:50% + margin-left:-50vw. */
.seim-section {
  background: var(--seim-red);
  color: var(--seim-cream);
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  padding: clamp(80px, 11vw, 160px) var(--gutter);
  margin-top: clamp(72px, 10vw, 140px);
  margin-bottom: clamp(72px, 10vw, 140px);
  overflow: hidden;
}
.seim-section__inner {
  max-width: var(--max);
  margin: 0 auto;
}

/* Logo SVG en lugar de texto */
.seim-section__title {
  margin: 0;
  text-align: center;
  line-height: 0;
}
.seim-section__title img {
  display: inline-block;
  width: clamp(180px, 28vw, 380px);
  height: auto;
  filter: drop-shadow(0 4px 32px rgba(0, 0, 0, 0.18));
}

.seim-section__tagline {
  font-family: var(--seim-pendoreille);
  font-size: clamp(13px, 1.3vw, 18px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--seim-cream);
  text-align: center;
  margin: clamp(20px, 2.4vw, 32px) 0 clamp(48px, 6vw, 80px);
  font-weight: 400;
  opacity: 0.85;
}

.seim-section__meta {
  font-family: var(--seim-ostia);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.55;
  color: var(--seim-cream);
  max-width: 60ch;
  margin: 0 auto clamp(48px, 6vw, 80px);
  text-align: center;
  letter-spacing: 0.01em;
}
.seim-section__meta em {
  font-style: italic;
  font-weight: 400;
  color: #FFDE32;
}

.seim-section__photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 1.8vw, 28px);
  margin-bottom: clamp(48px, 6vw, 80px);
}
.seim-section__photos .story__photo--wide {
  grid-column: span 3;
}
@media (max-width: 600px) {
  .seim-section__photos { grid-template-columns: 1fr; }
  .seim-section__photos .story__photo--wide { grid-column: span 1; aspect-ratio: 16 / 10; }
}

.seim-section__cta-wrap {
  margin: 0;
  text-align: center;
}
.seim-section__cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 18px 32px;
  border: 2px solid var(--seim-cream);
  border-radius: 999px;
  font-family: var(--seim-ostia);
  font-style: italic;
  font-weight: 300;
  font-size: 17px;
  color: var(--seim-cream);
  letter-spacing: 0.04em;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.seim-section__cta:hover {
  background: var(--seim-cream);
  border-color: var(--seim-cream);
  color: var(--seim-dark);
  transform: translateY(-2px);
}
.seim-section__cta-arrow {
  font-size: 18px;
  transition: transform 0.25s ease;
}
.seim-section__cta:hover .seim-section__cta-arrow { transform: translateX(4px); }

/* Foto card — usada por el parallax JS via .story__photo img */
.story__photo {
  margin: 0;
  aspect-ratio: 3 / 4;
  background: var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.story__photo--wide {
  aspect-ratio: 16 / 9;
}
.story__photo img {
  /* Imagen oversized + absolute positioning para que JS pueda hacer
     parallax con translateY sin mostrar bordes vacíos. max-width:
     none para anular el reset global que limita a 100%. */
  position: absolute;
  inset: -8%;
  width: 116%;
  max-width: none;
  height: 116%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}
@media (max-width: 600px) {
  .story__photo--wide { aspect-ratio: 16 / 10; }
}

/* Coda — cierre centrado */
.story__coda {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: clamp(80px, 10vw, 140px) 0 0;
  color: var(--accent-ink);
  text-align: center;
}
.story__coda em { font-style: italic; }

/* ── Hover logo (Seim Seim) ───────────────────────────────────────── */
.hover-logo {
  position: fixed;
  top: 0;
  left: 0;
  width: clamp(220px, 24vw, 360px);
  aspect-ratio: 175 / 138;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transition: opacity 0.35s ease;
  transform: translate(-50%, -50%) rotate(0deg);
}
.hover-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 32px rgba(196, 30, 30, 0.18));
}
.hover-logo.is-active {
  opacity: 1;
  transition: opacity 0.25s ease;
}

/* ── Founders (dentro del story flow, sin header) ─────────────────── */
.founders__grid {
  margin: clamp(64px, 9vw, 120px) 0 0;
}
.story__minor-title {
  margin-bottom: clamp(40px, 6vw, 72px);
}
.founders__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--ink);
}

.founders__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 3vw, 48px) clamp(20px, 2.4vw, 32px);
}

/* Card simple — foto, nombre, rol, proyectos */
.founder {
  display: flex;
  flex-direction: column;
}


@media (max-width: 980px) {
  .founders__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Mobile: carrusel horizontal con scroll-snap.
   Cada card mide ~70% del viewport para que se vea la siguiente
   parcial (hint visual de que hay más). */
@media (max-width: 720px) {
  .founders__grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 24px;
    gap: 16px;
    /* Sangrar el carrusel hasta el borde del viewport para que la
       primera y última card respiren bien sin que el .story padding
       las recorte. */
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .founders__grid::-webkit-scrollbar { display: none; }
  .founder {
    flex: 0 0 70%;
    scroll-snap-align: start;
  }
}

.founder__photo {
  aspect-ratio: 3 / 4;
  background: var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}
.founder__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.founder__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(18px, 1.5vw, 22px);
  letter-spacing: -0.03em;
  margin: 0 0 4px;
  color: var(--ink);
  line-height: 1.1;
}
.founder__role {
  font-family: var(--body);
  font-size: 13px;
  margin: 0 0 6px;
  color: var(--mute);
  font-weight: 500;
}
.founder__role em {
  font-style: normal;
  font-weight: 600;
  color: var(--accent-ink);
}
.founder__projects {
  font-family: var(--body);
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0;
  font-weight: 400;
}

/* ── Footer ───────────────────────────────────────────────────────── */
.footer {
  padding-top: 56px;
  padding-bottom: 56px;
  text-align: center;
}
.footer__brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 6px;
}
.footer__meta {
  font-family: var(--body);
  font-size: 12px;
  color: var(--mute);
  margin: 0;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ── Reduce motion ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
