/* ============================================================
   STORY: — Prototipo
   Design tokens derivados de tokens.css + screenshots de Figma.
   Tipografías reales: Caxton (serif) + Graphik (sans).
   Mientras se licencian, se usan fallbacks cercanos:
     Graphik -> Inter
     Caxton  -> Spectral
   Para sustituir por las reales: descomenta los @font-face de
   abajo, coloca los .woff2 en /assets/fonts/ y listo: las
   variables --font-sans / --font-serif ya las consumen.
   ============================================================ */

/* ------------------------------ Fuentes reales ------------------------------
   Graphik (sans) + Caxton Std (serif), hospedadas en el CDN de Shopify. */
@font-face {
  font-family: "Graphik";
  src: url("https://cdn.shopify.com/s/files/1/0795/6761/8270/files/Graphik-Regular.otf?v=1783095204")
    format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Graphik";
  src: url("https://cdn.shopify.com/s/files/1/0795/6761/8270/files/Graphik-Semibold.otf?v=1783095204")
    format("opentype");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Graphik";
  src: url("https://cdn.shopify.com/s/files/1/0795/6761/8270/files/Graphik-Bold.otf?v=1783095204")
    format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Graphik";
  src: url("https://cdn.shopify.com/s/files/1/0795/6761/8270/files/Graphik-Black.otf?v=1783095204")
    format("opentype");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caxton Std";
  src: url("https://cdn.shopify.com/s/files/1/0795/6761/8270/files/CaxtonStd-Light.otf?v=1783095250")
    format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caxton Std";
  src: url("https://cdn.shopify.com/s/files/1/0795/6761/8270/files/Caxton_Std_Light_Italic.otf?v=1783095250")
    format("opentype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Caxton Std";
  src: url("https://cdn.shopify.com/s/files/1/0795/6761/8270/files/Caxton_Std_Book.otf?v=1783095250")
    format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caxton Std";
  src: url("https://cdn.shopify.com/s/files/1/0795/6761/8270/files/Caxton_Std_Bold.otf?v=1783095250")
    format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caxton Std";
  src: url("https://cdn.shopify.com/s/files/1/0795/6761/8270/files/Caxton_Std_Bold_Italic.otf?v=1783095251")
    format("opentype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Paleta de marca */
  --c-black: #0a0a0a;
  --c-white: #ffffff;
  --c-coral: #f7acaa; /* nav / header */
  --c-peach: #fcd4c3; /* footer / team */
  --c-mint: #bfe6da; /* photography */
  --c-sky: #b9d6ef; /* film & tv */
  --c-lavender: #cdbdf6; /* contact */
  --c-butter: #f6e6a6; /* recognition */
  --c-grey-98: #fafafa;
  --c-grey-93: #eeeeee;
  --c-grey-light: #f1f1f1; /* fondo grid home */
  --c-grey-53: #888888;
  --c-grey-40: #666666;

  /* Tipografía de marca */
  --font-sans:
    "Graphik", "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Caxton Std", "Spectral", Georgia, "Times New Roman", serif;

  /* Escala tipográfica (de tokens.css + ajuste fluido) */
  --fs-nav: 15px;
  --fs-body: clamp(18px, 1.05vw, 17px);
  --fs-small: 13px;
  --fs-label: 12px;

  /* Layout */
  --maxw: 1440px;
  --gutter: clamp(20px, 4vw, 60px);
  --header-h: 64px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ------------------------------ Reset ------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-serif);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--c-black);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

/* Lenis */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

/* ------------------------------ Tipografía ------------------------------ */
.font-sans {
  font-family: var(--font-sans);
}
.font-serif {
  font-family: var(--font-serif);
}

h1,
h2,
h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.02em;
}
p {
  font-size: 18px;
}

.display {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.h-page {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.h-section {
  font-family: var(--font-sans); /* Graphik */
  font-weight: 700;
  /* spec: 73.4426px @ desktop, line-height 83px → ratio 1.13.
     clamp para que baje de forma responsiva en mobile. */
  font-size: clamp(38px, 6vw, 73.4426px);
  line-height: 1.13;
  letter-spacing: -0.02em;
}
/* Tier menor de heading (Inclusivity, Sustainability, etc.) */
.h-block {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.02em;
}
.lead {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3vw, 40px);
  line-height: 1.2;
}

/* ------------------------------ Layout helpers ------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: clamp(64px, 9vw, 130px);
}
.stack-sm > * + * {
  margin-top: 1rem;
}

/* ============================================================
   HEADER / NAV  (persistente entre transiciones Barba)
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: var(--c-coral);
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.5s var(--ease);
  will-change: transform;
}
/* peek-a-boo: se esconde al hacer scroll down */
.site-header.is-hidden {
  transform: translateY(-100%);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-group {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 34px);
}
.nav-link {
  font-family: var(--font-sans); /* Graphik */
  font-weight: 500; /* medium */
  font-size: 15px;
  position: relative;
  padding-block: 4px;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav-link:hover::after,
.nav-link.is-active::after,
.nav-link.mega-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.brand-logo {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.brand-logo img {
  height: 60px;
  width: auto;
  display: block;
}

.nav-right {
  justify-content: flex-end;
}
.nav-center {
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
}

/* Layout de las tres zonas (logo siempre centrado) */
.nav-left,
.nav-right {
  flex: 1;
  display: flex;
  align-items: center;
}
.nav-right {
  justify-content: flex-end;
}

/* Iconos mobile (search / usuario / cart) */
.nav-icons {
  display: none;
  align-items: center;
  gap: clamp(14px, 4vw, 20px);
}
.nav-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--c-black);
}
.nav-icon svg {
  width: 22px;
  height: 22px;
}
.nav-icon__count {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--c-black);
  color: var(--c-white, #fff);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 10px;
  display: grid;
  place-items: center;
  line-height: 1;
}

/* ============================================================
   MEGA MENU (cortina) — futura migración a Shopify
   ============================================================ */
.megamenu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 100%;
  z-index: 90;
  height: clamp(130px, 16vw, 190px);
  visibility: hidden;
  pointer-events: none;
}
.megamenu.is-open {
  visibility: visible;
  pointer-events: auto;
}
.megamenu__curtain {
  position: absolute;
  inset: 0;
  background: var(--c-coral, #f7acaa);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  transform: scaleY(0);
  transform-origin: top center;
  will-change: transform;
}
.megamenu__inner {
  position: relative;

  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(40px, 7vw, 120px);
}
.mm-reveal {
  opacity: 0;
}
.mm-logo {
  height: clamp(40px, 4.6vw, 68px);
  width: auto;
  object-fit: contain;
}
/* Links del mega (países en Production Service) */
.mm-link {
  position: relative;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 34px);
  letter-spacing: -0.01em;
  color: #111;
}
.mm-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.mm-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}
/* Panel apilado (search) */
.megamenu__inner--stack {
  flex-direction: column;
  gap: 12px;
}
.mm-search {
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(680px, 82vw);
  border-bottom: 2px solid rgba(0, 0, 0, 0.85);
  padding-bottom: 12px;
}
.mm-search svg {
  width: clamp(20px, 2vw, 26px);
  height: clamp(20px, 2vw, 26px);
  flex: none;
}
.mm-search__input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.4vw, 34px);
  color: #111;
}
.mm-search__input::placeholder {
  color: rgba(0, 0, 0, 0.45);
}
.mm-search__hint {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.5);
}

/* ============================================================
   FOOTER (persistente)
   ============================================================ */
.site-footer {
  background: var(--c-peach);
  padding-block: clamp(40px, 5vw, 64px);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.footer-logo {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(54px, 7vw, 104px);
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.footer-logo img {
  height: clamp(80px, 10vw, 150px);
  width: auto;
  display: block;
  margin-left: -12px;
}
.footer-address {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.6;
  margin-top: 18px;
}
.footer-social {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.9;
}
.footer-social a {
  display: block;
}
.footer-social a:hover {
  opacity: 0.55;
}
.footer-countries {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
.footer-countries a {
  display: block;
  transition: opacity 0.3s var(--ease);
}
.footer-countries a:hover {
  opacity: 0.55;
}

.footer-partners {
  margin-top: clamp(40px, 5vw, 64px);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(24px, 4vw, 56px);
  opacity: 0.85;
}
.footer-partners .partner {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #3a3a3a;
  white-space: nowrap;
}
.footer-partners .partner-logo {
  height: clamp(38px, 3.8vw, 58px);
  width: auto;
  object-fit: contain;
  display: block;
}

/* ============================================================
   PAGE SHELL — main swappable por Barba
   ============================================================ */
main#main {
  display: block;
  padding-top: var(--header-h);
}
.page {
  min-height: 50vh;
}

/* fondo por página */
.page[data-bg="grey"] {
  background: var(--c-grey-light);
}
.page[data-bg="mint"] {
  background: var(--c-mint);
}
.page[data-bg="sky"] {
  background: var(--c-sky);
}
.page[data-bg="peach"] {
  background: var(--c-peach);
}
.page[data-bg="white"] {
  background: var(--c-white);
}

/* ============================================================
   HERO (home / our story)
   ============================================================ */
.hero {
  position: relative;
  /* height: clamp(420px, 62vh, 640px); */
  height: 100vh;
  overflow: hidden;
  background: var(--c-black);
}
.hero__media {
  position: absolute;
  inset: 0;
}
.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35));
}
.hero__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--c-white);
}
.hero__title {
  color: #fff;
}
.hero__title .sub {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 56px);
  letter-spacing: -0.01em;
  margin-top: 0.1em;
}

/* ============================================================
   GRID DE PROYECTOS
   ============================================================ */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 3vw, 48px) clamp(24px, 2.5vw, 40px);
}
.work-item {
  grid-column: span 1;
}
.work-item--wide {
  grid-column: 1 / -1;
}

.work-item__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #ddd;
}
.work-item--wide .work-item__media {
  aspect-ratio: 16/8;
}
.work-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
  will-change: transform;
}
.work-item:hover .work-item__media img {
  transform: scale(1.05);
}
.work-item__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.5s var(--ease);
}
.work-item:hover .work-item__media::after {
  background: rgba(0, 0, 0, 0.08);
}

.work-item__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(28px, 1.8vw, 26px);
  margin-top: 2rem;
  letter-spacing: -0.01em;
}
.work-item__meta {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 18px;
  color: var(--c-grey-40);
  margin-top: 2px;
}

/* play button overlay */
.play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  z-index: 3;
  opacity: 0;
  scale: 0.8;
  transition:
    opacity 0.45s var(--ease),
    scale 0.45s var(--ease);
}
.play-badge svg {
  width: 20px;
  height: 20px;
  margin-left: 3px;
}
.work-item:hover .play-badge,
.media-cta:hover .play-badge {
  opacity: 1;
  scale: 1;
}

/* ============================================================
   PAGE INTRO (film&tv, photography, our team, etc.)
   ============================================================ */
.page-intro {
  padding-top: clamp(40px, 6vw, 90px);
  padding-bottom: clamp(28px, 4vw, 56px);
}
.page-intro .lead {
  max-width: 18ch;
  margin-top: 24px;
}

/* ============================================================
   OUR STORY — about
   ============================================================ */
.media-cta {
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/7;
  background: #222;
}
.media-cta img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.media-cta:hover img {
  transform: scale(1.04);
}
.media-cta__label {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding-left: clamp(24px, 5vw, 70px);
  color: #fff;
  font-family: "Caxton Std";
  font-style: normal;
  font-weight: 400;
  /* spec: 117.852px @ desktop, line-height 160px → ratio ~1.36 */
  font-size: clamp(44px, 8vw, 117.852px);
  line-height: 1.36;
}

.prose {
  max-width: 62ch;
  font-family: var(--font-serif);
  font-size: 18px;
}
.prose strong {
  font-weight: 700;
}
.prose-2col {
  columns: 2;
  column-gap: 40px;
  font-size: 18px;
  color: #444;
  line-height: 1.6;
}

.centered {
  text-align: center;
  margin-inline: auto;
}

/* Inclusivity stats */
.stats {
  position: relative;
  min-height: clamp(480px, 52vw, 700px);
}
.stat-bubble {
  position: absolute;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  aspect-ratio: 1;
  padding: 24px;
}
.stat-bubble .num {
  font-family: "Caxton Std", var(--font-serif);
  font-weight: 700;
  font-size: clamp(46px, 5.2vw, 82px);
  line-height: 1;
  letter-spacing: -0.01em;
}
.stat-bubble .cap {
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.1vw, 16px);
  margin-top: 10px;
  max-width: 16ch;
  color: #111;
}
/* pink grande arriba-derecha, peach chico abajo-izquierda encima */
.stat-bubble--lg {
  width: clamp(300px, 42vw, 480px);
  top: 0;
  right: 0;
  background: var(--c-coral);
}
.stat-bubble--sm {
  width: clamp(250px, 34vw, 400px);
  top: 45%;
  left: -10%;
  z-index: 2;
  background: var(--c-peach);
}

.recognition {
  background: var(--c-butter);
  text-align: center;
}
.recognition h2 {
  font-size: clamp(54px, 12vw, 180px);
  line-height: 0.9;
}

/* ============================================================
   TEAM
   ============================================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(16px, 1.8vw, 28px);
}
.team-card img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: grayscale(1);
}
.team-card .name {
  font-family: var(--font-serif);
  font-size: 17px;
  margin-top: 14px;
}
.team-card .role {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  margin-top: 2px;
}

/* Contact */
.contact {
  background: var(--c-lavender);
}
.contact__email {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -0.01em;
}
.contact__email a:hover {
  opacity: 0.6;
}
.contact-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 40px;
  margin-top: clamp(48px, 6vw, 90px);
}
.contact-region h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 28px;
}
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
  padding-block: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.14);
}
.contact-row .pos {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
}
.contact-row .who {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 15px;
}
.contact-row .who small {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: #555;
  text-decoration: underline;
}

/* ============================================================
   ANIMATION HOOKS — reveals deterministas por clase CSS
   El estado final no deja transform ni clip: nunca desaparece
   ni se vuelve a disparar. GSAP solo maneja efectos continuos.
   ============================================================ */
.reveal,
[data-stagger] .work-item,
[data-stagger] .team-card,
[data-stagger] [data-stagger-item],
[data-bubble] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
}
/* Imágenes: la máscara crece desde el centro hacia el tamaño final */
.reveal-img {
  clip-path: inset(50% 50% 50% 50%);
  transition: clip-path 1.1s var(--ease-inout);
}
.reveal-img.is-inview {
  clip-path: inset(0% 0% 0% 0%);
}
[data-bubble] {
  transform: scale(0.6);
  transform-origin: center;
}

.is-inview {
  opacity: 1 !important;
  transform: none !important;
}

/* Títulos por líneas (máscara) — animación por clase.
   El padding + margen negativo dan aire a ascendentes/descendentes
   (p. ej. la "g" o los ":") para que el overflow:hidden no los recorte;
   el margen negativo mantiene el layout intacto. */
[data-split] .line {
  display: block;
  overflow: hidden;
  padding: 0.12em 0.08em 0.24em;
  margin: -0.12em -0.08em -0.24em;
}
[data-split] .line > span {
  display: block;
  transform: translateY(120%);
  transition: transform 1s var(--ease);
}
[data-split].is-inview .line > span {
  transform: translateY(0);
}
/* Al terminar la animación quitamos la máscara: sin recortes en el estado final */
[data-split].split-open .line {
  overflow: visible;
}
.libs-failed [data-split] .line {
  overflow: visible;
}

/* Our Story — intro grande, alineado a la izquierda */
.story__title {
  text-align: left;
  margin-bottom: clamp(18px, 2.5vw, 36px);
}
.story__lead {
  font-family: var(--font-serif);
  font-size: clamp(23px, 3vw, 40px);
  line-height: 1.26;
  letter-spacing: -0.015em;
  font-weight: 200;
  /*   max-width: clamp(340px, 66vw, 980px);
 */
  margin: 0;
  text-align: left;
}
.story__lead strong {
  font-weight: 700;
}
.story__lead em {
  font-style: italic;
}
/* Variante centrada (Our Ikigai): mismo tamaño y reveal, alineado al centro */
.story__lead--center {
  text-align: center;
  max-width: clamp(340px, 50vw, 720px);
  margin: clamp(18px, 2.5vw, 36px) auto 0;
}
/* Variante compacta para leads dentro de columnas (Inclusivity, Sustainability) */
.story__lead--sm {
  font-size: clamp(19px, 2.2vw, 28px);
  line-height: 1.3;
  max-width: 34ch;
  margin: clamp(16px, 2vw, 22px) 0;
}
/* Variante full-width (intro de Film & TV) */
.story__lead--full {
  max-width: none;
  margin-top: clamp(20px, 3vw, 40px);
}
.story__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  max-width: 720px;
  margin: clamp(40px, 5vw, 72px) 0 0;
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.62;
  color: #5c534e;
  margin: auto;
  margin-top: 3rem;
}
@media (max-width: 700px) {
  .story__cols {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .story__lead {
    max-width: 100%;
  }
}

/* Parallax: capa sobredimensionada que se desplaza dentro del contenedor.
   El contenedor recorta (overflow hidden); la capa lleva el transform. */
.media-frame,
.recog-img {
  position: relative;
}
.parallax-media {
  position: absolute;
  left: 0;
  top: -12%;
  width: 100%;
  height: 124%;
  will-change: transform;
}
.parallax-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fallback si las librerías/JS no cargan: todo visible */
.libs-failed .reveal,
.libs-failed [data-stagger] .work-item,
.libs-failed [data-stagger] .team-card,
.libs-failed [data-bubble] {
  opacity: 1 !important;
  transform: none !important;
}
.libs-failed .reveal-img {
  clip-path: none !important;
}
.libs-failed [data-split] .line > span {
  transform: none;
}

/* Transición Barba — panel de color */
.transition-panel {
  position: fixed;
  inset: 0;
  z-index: 9999;
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
  background: var(--c-coral);
}

/* Cursor personalizado opcional */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-black);
  z-index: 9998;
  pointer-events: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition:
    width 0.3s var(--ease),
    height 0.3s var(--ease),
    background 0.3s var(--ease);
}
@media (hover: none) {
  .cursor-dot {
    display: none;
  }
}

/* Cursor-play para contenedores de video [data-video] */
[data-video] {
  cursor: none;
}
/* el play sigue al cursor → ocultamos cualquier play estático dentro */
[data-video] .play-badge {
  display: none;
}
.video-follow {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  pointer-events: none;
  width: clamp(74px, 7vw, 96px);
  height: clamp(74px, 7vw, 96px);
  border-radius: 50%;
  background: rgba(247, 172, 170, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  display: grid;
  place-items: center;
  opacity: 0;
  will-change: transform;
}
.video-follow svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}
body.cursor-hidden .cursor-dot {
  opacity: 0;
}
[data-zoom] {
  cursor: pointer;
}
@media (hover: none) {
  [data-video] {
    cursor: pointer;
  }
  [data-video] .play-badge {
    display: grid;
  }
}

/* ============================================================
   MODAL GLOBAL (visor de video / imagen)
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 64px);
  visibility: hidden;
  pointer-events: none;
}
.modal.is-open {
  visibility: visible;
  pointer-events: auto;
}
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
}
.modal__dialog {
  position: relative;
  z-index: 1;
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  background: #0a0a0a;
  border: 2px solid var(--c-coral);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  opacity: 0;
}
.modal__content {
  display: flex;
}
.modal__content img,
.modal__content video {
  display: block;
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  transition:
    transform 0.4s var(--ease),
    background 0.4s var(--ease);
}
.modal__close:hover {
  transform: rotate(90deg);
  background: #fff;
}
.modal__close svg {
  width: 18px;
  height: 18px;
}
html.modal-locked {
  overflow: hidden;
}

/* ============================================================
   HOME v3 — secciones, hero reel, stats, marquee, loader
   ============================================================ */
:root {
  --c-bone: #f2efe9;
}

.s-peach {
  background: var(--c-peach);
}
.s-bone {
  background: var(--c-bone);
}
.s-butter {
  background: var(--c-butter);
}
.s-dark {
  background: #0a0a0a;
}

/* Hero reel: el play siempre visible y grande */
.hero--home {
  /* full screen (menos el header fijo) */
  min-height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h));
}
/* Entrada del hero: la máscara crece del centro al terminar la cortina */
.hero--home .hero__media {
  clip-path: inset(50% 50% 50% 50%);
}
.libs-failed .hero--home .hero__media {
  clip-path: none;
}
.play-badge--xl {
  width: clamp(72px, 7vw, 104px);
  height: clamp(72px, 7vw, 104px);
  opacity: 1;
  scale: 1;
}
.play-badge--xl svg {
  width: 26px;
  height: 26px;
}
.play-badge--xl::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.25);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
.play-badge--inline {
  position: relative;
  inset: auto;
  translate: 0;
  opacity: 1;
  scale: 1;
  width: 54px;
  height: 54px;
  margin-left: 18px;
  vertical-align: middle;
}
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%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)'/%3E%3C/svg%3E");
}

/* Marco de imagen reutilizable */
.media-frame {
  overflow: hidden;
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.s-peach .media-frame {
  aspect-ratio: 16/8;
}
.recog-img {
  aspect-ratio: 16/8;
  max-width: 620px;
  margin: 40px auto 0;
  overflow: hidden;
}
.recog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Inclusivity / Sustainability grids */
.incl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}
.sustain-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.sustain-img {
  aspect-ratio: 4/3;
}

.btn-pill {
  margin-top: 26px;
  background: var(--c-coral);
  padding: 14px 30px;
  border-radius: 40px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition:
    transform 0.4s var(--ease),
    background 0.4s var(--ease);
}
.btn-pill:hover {
  transform: translateY(-2px);
  background: #f59b98;
}

/* Stats grandes (ref: número enorme animado) */
.stat-bubble[data-bubble] {
  opacity: 0;
}
.stat-bubble .num {
  font-variant-numeric: tabular-nums;
}

/* Marquee de logos (scroll horizontal, infinito) */
.marquee {
  overflow: hidden;
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  /* difuminado en las orillas horizontales */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 clamp(40px, 10vw, 140px),
    #000 calc(100% - clamp(40px, 10vw, 140px)),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 clamp(40px, 10vw, 140px),
    #000 calc(100% - clamp(40px, 10vw, 140px)),
    transparent 100%
  );
}
.marquee__track {
  display: flex;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
  padding-block: 26px;
  width: max-content;
  will-change: transform;
}
.award {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(15px, 1.5vw, 19px);
  letter-spacing: 0.02em;
  color: #2a2a2a;
  white-space: nowrap;
}

/* Loader / entrada */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--c-peach);
  display: grid;
  place-items: center;
}
.loader__logo {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(48px, 8vw, 96px);
  letter-spacing: -0.04em;
  color: var(--c-black);
  overflow: hidden;
  padding: 0.05em 0.06em 0.2em;
}
.loader__logo > span,
.loader__logo > img {
  display: block;
}
.loader__logo > img {
  height: clamp(52px, 9vw, 104px);
  width: auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .incl-grid,
  .sustain-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
@media (max-width: 880px) {
  :root {
    --header-h: 58px;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact-cols {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .prose-2col {
    columns: 1;
  }
  .nav-left .nav-group,
  .nav-right .nav-group {
    display: none;
  }
  .nav-toggle {
    display: block;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 14px;
  }
  .nav-icons {
    display: flex;
  }
  .work-grid {
    gap: 24px;
  }
}
@media (max-width: 560px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   MOBILE NAV — drawer full-screen multinivel (cortina sobre cortina)
   ============================================================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 10060;
  visibility: hidden;
  pointer-events: none;
}
.mobile-nav.is-open {
  visibility: visible;
  pointer-events: auto;
}
.mnav-stack {
  position: absolute;
  inset: 0;
}
.mnav-close {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 10100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
}
.mnav-close svg {
  width: 18px;
  height: 18px;
}
.mnav-curtain {
  position: absolute;
  inset: 0;
  background: var(--c-coral, #f7acaa);
  display: flex;
  flex-direction: column;
  padding: 74px clamp(22px, 6vw, 44px) 44px;
  overflow-y: auto;
  will-change: transform;
}
.mnav-head {
  min-height: 40px;
  display: flex;
  align-items: center;
  margin-bottom: clamp(20px, 5vh, 48px);
}
.mnav-logo {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.04em;
}
.mnav-back {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  color: #111;
}
.mnav-back__arrow {
  font-size: 22px;
  line-height: 1;
}
.mnav-list {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  margin-bottom: auto;
}
.mnav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(30px, 9vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: #111;
  text-align: left;
}
.mnav-caret {
  font-size: 0.55em;
  opacity: 0.55;
  margin-left: 16px;
}
.mnav-logo-item {
  height: clamp(10rem, 7vw, 46px);
  width: auto;
  object-fit: contain;
  align-self: flex-start;
}
.mnav-search {
  width: 100%;
  border-bottom: 2px solid rgba(0, 0, 0, 0.85);
  padding-bottom: 12px;
}
.mnav-search__input {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-family: var(--font-serif);
  font-size: clamp(24px, 7vw, 36px);
  color: #111;
}
body.mnav-open {
  overflow: hidden;
}

/* Logos dentro del marquee de Recognition */
.marquee__track .award-logo {
  height: clamp(82px, 5vw, 84px);
  width: auto;
  object-fit: contain;
}

/* ============================================================
   SLATE — módulo de prueba (grid de contenido de la API)
   ============================================================ */
.slate-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 2.5vw, 36px);
}
.slate-card__media {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
}
.slate-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slate-card__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(16px, 1.4vw, 20px);
  margin-top: 12px;
  letter-spacing: -0.01em;
}
.slate-card__meta {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 14px;
  color: var(--c-grey-40);
  margin-top: 2px;
}
.slate-status {
  grid-column: 1 / -1;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--c-grey-40);
}
.slate-status--error {
  color: #b03a3a;
}
@media (max-width: 880px) {
  .slate-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .slate-grid {
    grid-template-columns: 1fr;
  }
}
