:root {
  --ink: #0b0b0a;
  --ink-2: #151413;
  --ink-3: #1f1d1b;
  --paper: #ece7df;
  --dim: #8d8780;
  --line: rgba(236, 231, 223, .14);
  --ember: #e8a35a;          /* tungsteno 3200K */
  --display: "Anton", "Impact", sans-serif;
  --body: "Inter Tight", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --gut: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.77, 0, .175, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading, body.is-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.sr-only { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.wordmark { font-family: var(--display); letter-spacing: .02em; line-height: .85; }
:focus-visible { outline: 1px solid var(--ember); outline-offset: 4px; }

/* ---------- grano ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- preloader (capas como Bucle) ---------- */
.preloader { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.preloader .layer {
  position: absolute; top: 0; height: 100%; width: 25.2%;
  background: var(--ink); transition: transform 1s var(--ease);
}
.preloader .layer:nth-child(1) { left: 0; }
.preloader .layer:nth-child(2) { left: 25%; transition-delay: .08s; }
.preloader .layer:nth-child(3) { left: 50%; transition-delay: .16s; }
.preloader .layer:nth-child(4) { left: 75%; transition-delay: .24s; }
.preloader-mark {
  position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 18px;
  transition: opacity .6s ease, filter .9s ease;
}
.preloader-mark .wordmark { font-size: clamp(88px, 22vw, 300px); filter: url(#smoke); }
.preloader-count { color: var(--dim); }
body.await-enter .preloader { pointer-events: auto; cursor: pointer; }
body.await-enter .preloader-count { color: var(--paper); animation: breathe 2.2s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
body.is-ready .preloader-mark { opacity: 0; filter: blur(18px); }
body.is-ready .preloader .layer { transform: translateY(-101%); }
body.is-ready .preloader { visibility: hidden; transition: visibility 0s 1.6s; }

/* ---------- topbar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; justify-content: space-between; align-items: center;
  padding: calc(22px + env(safe-area-inset-top, 0px)) var(--gut) 22px; mix-blend-mode: difference;
}
.logo { font-size: 30px; }
.burger { display: flex; align-items: center; gap: 14px; }
.burger i { display: grid; gap: 5px; width: 28px; }
.burger b { display: block; height: 1.5px; background: var(--paper); transition: transform .5s var(--ease), opacity .3s, width .4s var(--ease); }
.burger b:nth-child(2) { width: 70%; justify-self: end; }
.burger:hover b:nth-child(2) { width: 100%; }
body.menu-open .burger b:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.menu-open .burger b:nth-child(2) { opacity: 0; }
body.menu-open .burger b:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- menú overlay ---------- */
.menu { position: fixed; inset: 0; z-index: 70; visibility: hidden; transition: visibility 0s 1s; }
.menu-layers span {
  position: absolute; top: 0; height: 100%; width: 25.2%; background: var(--ink-2);
  transform: translateY(101%); transition: transform .8s var(--ease);
}
.menu-layers span:nth-child(1) { left: 0; }
.menu-layers span:nth-child(2) { left: 25%; transition-delay: .06s; }
.menu-layers span:nth-child(3) { left: 50%; transition-delay: .12s; }
.menu-layers span:nth-child(4) { left: 75%; transition-delay: .18s; }
.menu-inner {
  position: relative; height: 100%; display: flex; flex-direction: column;
  justify-content: center; padding: 0 var(--gut); gap: 1vh;
}
.menu-inner a {
  font-family: var(--display); font-size: clamp(56px, 13vw, 170px); line-height: .95;
  text-transform: uppercase; display: flex; align-items: flex-start; gap: 16px;
  opacity: 0; transform: translateY(40px); filter: blur(10px);
  transition: opacity .5s, transform .7s var(--ease-out), filter .7s, color .3s;
  width: max-content; max-width: 100%;
}
.menu-inner a::before { content: attr(data-n); font: 500 12px/1 var(--mono); color: var(--dim); padding-top: 1.2em; }
.menu-inner a:hover { color: var(--ember); }
.menu-foot { position: absolute; left: var(--gut); bottom: 28px; color: var(--dim); opacity: 0; transition: opacity .5s; }
body.menu-open .menu { visibility: visible; transition: none; }
body.menu-open .menu-layers span { transform: translateY(0); }
body.menu-open .menu-inner a { opacity: 1; transform: none; filter: none; }
body.menu-open .menu-inner a:nth-child(1) { transition-delay: .35s; }
body.menu-open .menu-inner a:nth-child(2) { transition-delay: .43s; }
body.menu-open .menu-inner a:nth-child(3) { transition-delay: .51s; }
body.menu-open .menu-inner a:nth-child(4) { transition-delay: .59s; }
body.menu-open .menu-inner a:nth-child(5) { transition-delay: .67s; }
body.menu-open .menu-foot { opacity: 1; transition-delay: .6s; }

/* ---------- social vertical ---------- */
.social {
  position: fixed; left: var(--gut); top: 50%; z-index: 60;
  transform: translate(-50%, -50%) rotate(-90deg) translateY(-50%);
  transform-origin: center; display: flex; gap: 28px; mix-blend-mode: difference;
  left: calc(var(--gut) + 6px);
}
.social a { position: relative; }
.social a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.social a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: #000; }
.hero-stage, .hero-stage video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-stage video {
  object-fit: cover; opacity: 0; transform: scale(1.06); filter: blur(14px) brightness(.6);
  transition: opacity 1.2s ease, transform 2.4s var(--ease-out), filter 1.2s ease;
}
.hero-stage video.is-active { opacity: .5; transform: scale(1); filter: none; }  /* bajo para no competir con las letras */
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(11,11,10,.85) 0%, rgba(11,11,10,0) 45%),
    linear-gradient(to bottom, rgba(11,11,10,.5) 0%, rgba(11,11,10,0) 22%);
}
.hero-intro { position: absolute; left: var(--gut); bottom: 9vh; padding-left: clamp(0px, 3vw, 40px); max-width: 60vw; }
.kicker { color: var(--ember); margin-bottom: 14px; }
.hero-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(54px, 9.5vw, 156px); line-height: .86; }
.hero-title span { display: block; padding-top: .12em; margin-top: -.12em; }
.hero-title span:nth-child(2) { color: transparent; -webkit-text-stroke: 1px var(--paper); }
body.is-ready .hero-title span { animation: rise 1.2s var(--ease-out) both; }
body.is-ready .hero-title span:nth-child(2) { animation-delay: .1s; }
body.is-ready .hero-title span:nth-child(3) { animation-delay: .2s; }
@keyframes rise { from { transform: translateY(60%); opacity: 0; filter: blur(12px); } }

.hero-info { position: absolute; right: var(--gut); bottom: 9vh; text-align: right; display: grid; justify-items: end; gap: 8px; max-width: 42vw; }
.hero-controls { display: flex; gap: 6px; margin-bottom: 14px; }
.ctl { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: border-color .3s, background .3s; }
.ctl:hover { border-color: var(--paper); background: rgba(236,231,223,.08); }
.ctl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ctl .ic-on, .hero.sound .ctl .ic-off { display: none; }
.hero.sound .ctl .ic-on { display: block; }
.hero.sound .ctl[data-act="mute"] { border-color: var(--ember); color: var(--ember); }
.hero-work { font-family: var(--display); font-size: clamp(30px, 4vw, 56px); line-height: 1; text-transform: uppercase; }
.hero-client { color: var(--dim); }
.hero-work, .hero-client { transition: opacity .4s, transform .6s var(--ease-out), filter .5s; }
.hero-info.swap .hero-work, .hero-info.swap .hero-client { opacity: 0; transform: translateY(10px); filter: blur(6px); }
.hero-meta { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.hero-bar { width: 120px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.hero-bar i { position: absolute; inset: 0; background: var(--paper); transform-origin: left; transform: scaleX(0); }
.hero-full { color: var(--ember); }
.hero-full:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- secciones ---------- */
section:not(.hero) { padding: clamp(80px, 14vh, 160px) var(--gut); padding-left: calc(var(--gut) + clamp(0px, 3vw, 40px)); }
.sec-head { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 0 18px; margin-bottom: clamp(36px, 6vh, 72px); border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.sec-n { color: var(--ember); padding-bottom: .9em; }
.sec-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(56px, 10vw, 150px); line-height: .85; }
.sec-sub { grid-column: 1 / -1; color: var(--dim); margin-top: 14px; max-width: 46ch; }

/* ---------- qué hacemos ---------- */
.quehacemos { background: var(--ink-2); }
.quehacemos .big { margin-bottom: 0; }
.ejes { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(20px, 3vw, 48px); margin-top: clamp(40px, 7vh, 80px); border-top: 1px solid var(--line); padding-top: 24px; max-width: 1100px; }
.ejes span { color: var(--ember); display: block; margin-bottom: 10px; }
.ejes p { color: #c9c3ba; max-width: 34ch; }
.sellos { margin-top: clamp(48px, 8vh, 96px); display: grid; gap: 22px; justify-items: center; text-align: center; }
.sellos-label { color: var(--dim); }
.sellos-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 5vw, 72px); }
.sellos-logos img { display: block; max-width: 100%; height: auto; }
.sello-sia { width: clamp(110px, 12vw, 160px); }
.sello-indxs { width: clamp(220px, 28vw, 380px); }
@media (max-width: 760px) { .ejes { grid-template-columns: 1fr; } }

/* ---------- mosaico de obras ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(14px, 1.6vw, 24px); }
.card { cursor: pointer; display: grid; gap: 6px; align-content: start; min-width: 0; }
.card-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; background: var(--ink-3); margin-bottom: 8px; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease-out); }
.card:hover .card-media img, .card:focus-visible .card-media img { transform: scale(1.05); }
.card-play {
  position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; border-radius: 50%;
  translate: -50% -50%; scale: .7; opacity: 0; display: grid; place-items: center;
  background: var(--paper); color: var(--ink); transition: scale .4s var(--ease-out), opacity .3s; pointer-events: none;
}
.card-play svg { width: 20px; height: 20px; fill: currentColor; margin-left: 3px; }
.card:hover .card-play, .card:focus-visible .card-play { scale: 1; opacity: 1; }
.card-title { font-family: var(--display); font-weight: 400; font-size: clamp(20px, 1.7vw, 26px); text-transform: uppercase; line-height: 1.05; text-wrap: balance; transition: color .3s; }
.card:hover .card-title { color: var(--ember); }
.card-client { color: var(--dim); display: flex; align-items: center; gap: 8px; }
.card-client img { height: 18px; width: auto; display: block; }
.card-client img.round { height: 22px; }

/* ---------- manifiesto ---------- */
.manifiesto { background: var(--ink-2); }
.manifiesto-body { max-width: 1200px; }
.big { font-size: clamp(30px, 4.6vw, 68px); line-height: 1.05; letter-spacing: -.02em; font-weight: 500; max-width: 20ch; }
.big em { font-style: normal; color: var(--ember); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 64px); margin-top: clamp(40px, 7vh, 80px); max-width: 900px; color: #c9c3ba; font-size: 18px; }
.marquee { margin: clamp(60px, 10vh, 120px) calc(-1 * var(--gut)) 0; margin-left: calc(-1 * (var(--gut) + clamp(0px, 3vw, 40px))); border-block: 1px solid var(--line); overflow: hidden; padding: 22px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-size: clamp(14px, 1.5vw, 20px); padding: 0 32px; display: flex; align-items: center; gap: 64px; white-space: nowrap; }
.marquee span::after { content: "✦"; color: var(--ember); margin-left: 32px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- equipo ---------- */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(20px, 4vw, 64px); margin-top: clamp(48px, 8vh, 96px); border-top: 1px solid var(--line); padding-top: 24px; max-width: 1100px; }
.team-label { color: var(--ember); margin-bottom: 12px; }
.team-name { font-family: var(--display); font-size: clamp(28px, 3.2vw, 48px); line-height: 1; text-transform: uppercase; }
.team-name + .team-name { margin-top: 6px; }
@media (max-width: 700px) { .team { grid-template-columns: 1fr; } }

/* ---------- redes ---------- */
.redes { background: var(--ink-2); }
.redes-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 96px); max-width: 1100px; }
.red { display: grid; justify-items: start; gap: 14px; align-content: start; min-width: 0; }
.red-logo { display: block; height: auto; max-width: 100%; margin-bottom: 14px; }
.red-logo-sia { width: 96px; }
.red-logo-indxs { width: min(300px, 100%); margin-block: 22px 36px; }
.red-link { display: grid; gap: 4px; font-family: var(--display); font-size: clamp(26px, 3vw, 44px); line-height: 1.05; overflow-wrap: anywhere; transition: color .3s; }
.red-link span { font-size: 11px; color: var(--dim); }
.red-link:hover { color: var(--ember); }
@media (max-width: 760px) { .redes-grid { grid-template-columns: 1fr; } }

/* ---------- contacto ---------- */
.mail { display: inline-block; max-width: 100%; font-family: var(--display); font-size: clamp(22px, 4.6vw, 80px); line-height: 1.05; position: relative; overflow-wrap: anywhere; transition: color .3s; }
.mail:hover { color: var(--ember); }
.copy { margin-top: 18px; border: 1px solid var(--line); border-radius: 99px; padding: 10px 18px; color: var(--dim); transition: color .3s, border-color .3s; }
.copy:hover { color: var(--paper); border-color: var(--paper); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(40px, 8vh, 90px); border-top: 1px solid var(--line); padding-top: 24px; }
.contact-grid dt { color: var(--dim); margin-bottom: 6px; }
.contact-grid dd { text-transform: none; font-size: 14px; letter-spacing: .02em; }
.contact-grid a:hover { color: var(--ember); }
.foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: clamp(80px, 16vh, 180px); color: var(--dim); flex-wrap: wrap; }
.foot-mark { font-size: clamp(90px, 24vw, 380px); color: var(--paper); opacity: .95; filter: url(#smoke-soft); }

/* ---------- reveal (parte visible; solo se desliza un poco) ---------- */
.reveal { transition: transform 1.1s var(--ease-out); }
.js .reveal:not(.in) { transform: translateY(24px); }

/* ---------- reproductor ---------- */
.player {
  position: fixed; inset: 0; z-index: 150; background: rgba(5,5,5,.96);
  display: grid; grid-template-rows: auto 1fr auto; padding: 18px var(--gut) 24px; gap: 14px;
  opacity: 0; transition: opacity .4s;
}
.player[hidden] { display: none; }
.player.open { opacity: 1; }
.player-close { justify-self: end; color: var(--dim); padding: 8px 0; }
.player-close:hover { color: var(--paper); }
.player-video { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #000; outline: none; }
.player-info { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.player-title { font-family: var(--display); font-size: clamp(26px, 3vw, 44px); text-transform: uppercase; line-height: 1; }
.player-meta { color: var(--dim); }
.player-nav { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); font-size: 20px; background: rgba(11,11,10,.6); transition: border-color .3s; }
.player-nav:hover { border-color: var(--paper); }
.player-nav.prev { left: 12px; }
.player-nav.next { right: 12px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .hero-intro { max-width: none; right: var(--gut); bottom: auto; top: 18vh; padding-left: 0; }
  .hero-info { left: var(--gut); max-width: none; bottom: 6vh; }
  .cols { grid-template-columns: 1fr; font-size: 16px; }
  .contact-grid { grid-template-columns: 1fr; }
  .social { display: none; }
  section:not(.hero) { padding-left: var(--gut); }
  .marquee { margin-left: calc(-1 * var(--gut)); }
  .player-nav { top: auto; bottom: 18px; translate: none; }
  .player-nav.prev { left: auto; right: 76px; }
  .player-info { padding-right: 130px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
