@font-face {
  font-family: "Anybody";
  src: url("../fuentes/anybody.woff2") format("woff2");
  font-weight: 500 900;
  font-stretch: 100% 150%;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fuentes/hanken.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fuentes/hanken-cursiva.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --verde: #2e6b50;
  --verde-hondo: #275d45;
  --tinta-zona: #173a2a;
  --blanco: #f7f7f2;
  --amarillo: #f2c22e;
  --asfalto: #242422;
  --asfalto-texto: rgba(247, 247, 242, .7);
  --asfalto-filete: rgba(247, 247, 242, .16);

  --pintada: "Anybody", "Arial Black", sans-serif;
  --texto: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --m: clamp(14px, 3vw, 56px);
  --hueco: clamp(6px, .7vw, 13px);
  --raya: clamp(2.5px, .26vw, 5px);
  --dentro: calc(var(--m) + var(--hueco) + var(--raya) * 2 + clamp(16px, 2.8vw, 56px));
  --g: clamp(20px, 2.4vw, 44px);
  --barra: clamp(60px, 1.6vw + 46px, 82px);
  --aire: clamp(112px, 11vw + 36px, 248px);

  --nota: clamp(13px, .15vw + 12px, 15px);
  --menu: clamp(14px, .2vw + 12px, 16px);
  --cuerpo: clamp(17px, .25vw + 14.5px, 20px);
  --entrada: clamp(21px, 1.2vw + 12px, 33px);
  --grande: clamp(24px, 1.9vw + 13px, 46px);
  --titulo: clamp(40px, 5vw + 6px, 104px);

  --sinuosa: cubic-bezier(.65, .05, .36, 1);
  --cortina: cubic-bezier(.77, 0, .18, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--asfalto);
  scrollbar-color: rgba(247, 247, 242, .45) var(--verde-hondo);
  scroll-padding-top: var(--barra);
}
html.js { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--verde);
  color: var(--blanco);
  font-family: var(--texto);
  font-size: var(--cuerpo);
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
::selection { background: var(--amarillo); color: var(--tinta-zona); }
p, h1, h2, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
b { font-weight: 700; }
:focus-visible { outline: 2px solid var(--amarillo); outline-offset: 4px; border-radius: 2px; }

.titulo {
  font-family: var(--pintada);
  font-stretch: 100%;
  font-weight: 780;
  font-size: var(--titulo);
  line-height: .96;
  letter-spacing: -.012em;
  text-wrap: balance;
  max-width: 14em;
}
.entrada {
  font-size: var(--entrada);
  line-height: 1.34;
  text-wrap: pretty;
}
p { text-wrap: pretty; }

.raya {
  fill: none;
  stroke-width: var(--raya);
  stroke-linecap: butt;
  vector-effect: non-scaling-stroke;
}
.raya.blanca { stroke: var(--blanco); }
.raya.amarilla { stroke: var(--amarillo); }

.bandas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 30;
  pointer-events: none;
  overflow: visible;
}
html:not(.js) .bandas { display: none; }
html:not(.js) main {
  border-left: var(--raya) solid var(--blanco);
  border-right: var(--raya) solid var(--blanco);
  margin: 0 var(--m);
  border-bottom: var(--raya) solid var(--blanco);
}
html:not(.js) .barra { position: absolute; }

.barra {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  height: var(--barra);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 var(--dentro);
  transition: background-color .7s var(--sinuosa);
}
.barra.con-fondo { background: var(--verde); }
.barra.en-asfalto { background: var(--asfalto); }
.marca {
  font-family: var(--pintada);
  font-stretch: 140%;
  font-weight: 850;
  font-size: clamp(19px, .6vw + 15px, 26px);
  letter-spacing: .01em;
  text-decoration: none;
  line-height: 1;
}
.menu {
  display: flex;
  gap: clamp(14px, 2.2vw, 40px);
  font-size: var(--menu);
  font-weight: 500;
}
.menu a {
  position: relative;
  text-decoration: none;
  padding: 10px 0;
  white-space: nowrap;
}
.menu a::after,
.escribe::after,
.correo a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 3px;
  background: var(--amarillo);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .7s var(--sinuosa);
}
.menu a:hover::after,
.menu a.activo::after { transform: scaleX(1); }
.menu a:hover:not(.activo)::after { opacity: .55; }

.portada {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--barra) + clamp(28px, 5svh, 56px)) var(--dentro) clamp(36px, 6svh, 64px);
  --r: min(calc(50vw - var(--dentro) - var(--hueco) * 2 - 26px), 27svh, 280px);
  --ancho-nombre: min(calc(100vw - var(--dentro) * 2), calc(var(--r) * 2.9));
}
.pista-portada {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.pista-portada svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.centro {
  position: relative;
  align-self: center;
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  margin: calc(var(--r) * .12) 0 clamp(30px, 4svh, 52px);
}
html:not(.js) .centro { border: var(--raya) solid var(--blanco); border-radius: 50%; }
.nombre {
  position: absolute;
  left: 50%;
  bottom: calc(50% + var(--hueco) * 1.6);
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--pintada);
  font-stretch: 140%;
  font-weight: 860;
  font-size: calc(var(--ancho-nombre) / 4.92);
  line-height: .74;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.siglas {
  position: absolute;
  top: calc(50% + var(--r) * .16 + 4px);
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  text-align: center;
  text-wrap: balance;
  font-size: var(--nota);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.22;
}
.con-anillo .siglas {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.anillo { display: none; }
.con-anillo .anillo { display: inline; }
.anillo {
  font-family: var(--pintada);
  font-stretch: 112%;
  font-weight: 700;
  letter-spacing: .09em;
  fill: var(--blanco);
}
.presenta {
  margin-top: auto;
  max-width: 34em;
  font-size: var(--cuerpo);
  line-height: 1.5;
}
.lado { margin-top: clamp(22px, 3svh, 34px); }
.lema {
  font-style: italic;
  font-size: var(--entrada);
  line-height: 1.3;
  text-wrap: balance;
}
.escribe {
  position: relative;
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  font-size: var(--cuerpo);
  text-decoration: none;
  padding: 6px 0 10px;
}
.escribe::after { transform: scaleX(1); bottom: 2px; }
.escribe:hover::after { transform: scaleX(.35); }

@media (min-width: 1160px) and (min-height: 600px) {
  .portada {
    display: block;
    height: 100svh;
    padding: 0;
    --cy: calc(var(--barra) + (100svh - var(--barra)) * .44);
    --r: min(31svh, calc((100vw - 760px) / 2), 27vw);
    --ancho-nombre: min(58vw, calc(var(--r) * 2.9));
    --lado-ancho: min(34ch, calc(50vw - var(--dentro) - var(--r) * .9));
  }
  .centro {
    position: absolute;
    left: 50%;
    top: var(--cy);
    margin: 0;
    transform: translate(-50%, -50%);
  }
  .presenta,
  .lado {
    position: absolute;
    bottom: clamp(34px, 6svh, 72px);
    width: var(--lado-ancho);
    margin: 0;
  }
  .presenta { left: var(--dentro); }
  .lado { right: var(--dentro); text-align: right; }
}

.imaginamos,
.trabajo,
.con-quien {
  position: relative;
  padding: var(--aire) var(--dentro) 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
}
.imaginamos .titulo,
.trabajo .titulo,
.con-quien .titulo { grid-column: 1 / -1; margin-bottom: clamp(30px, 3.4vw, 64px); }
.imaginamos .entrada {
  grid-column: 1 / -1;
  font-size: var(--grande);
  line-height: 1.3;
  max-width: 24em;
}

.trabajo { padding-top: calc(var(--aire) * .55 + var(--arco, 0px)); }
.arcos {
  position: absolute;
  left: 0;
  top: calc(var(--aire) * .3);
  width: 100%;
  height: var(--arco, 0px);
  pointer-events: none;
}
.arcos svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trabajo .entrada { grid-column: 1 / -1; max-width: 32em; margin-bottom: clamp(36px, 4vw, 72px); }
.columnas {
  grid-column: 1 / -1;
  display: grid;
  gap: clamp(24px, 2.6vw, 44px) var(--g);
}
.columnas p { max-width: 36em; }

.logros {
  position: relative;
  padding: calc(var(--aire) * .45 + var(--libre, 0px)) var(--dentro) 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--g);
}
.zona {
  position: relative;
  grid-column: 1 / -1;
  background: var(--amarillo);
  color: var(--tinta-zona);
  border: var(--raya) solid var(--blanco);
  padding: clamp(32px, 4.4vw, 84px) clamp(22px, 3.4vw, 64px) clamp(40px, 5vw, 96px);
}
.zona { container-type: inline-size; }
.zona .titulo { margin-bottom: clamp(26px, 3vw, 52px); font-size: min(var(--titulo), calc(100cqi / var(--k-zona, 8.5))); }
.zona .entrada { max-width: 30em; }
.zona ::selection { background: var(--tinta-zona); color: var(--amarillo); }
.libre {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: var(--libre, 0px);
  pointer-events: none;
}
.libre svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.marcas {
  grid-column: 1 / -1;
  margin-top: clamp(36px, 4vw, 64px);
  display: grid;
  gap: clamp(18px, 2vw, 30px);
}
.marcas li {
  position: relative;
  padding-left: calc(clamp(30px, 3vw, 52px) + 14px);
  max-width: 30em;
  line-height: 1.4;
}
.marcas li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: clamp(30px, 3vw, 52px);
  height: var(--raya);
  background: var(--blanco);
  transform-origin: left center;
}
.ano {
  display: block;
  font-family: var(--pintada);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(26px, 1.6vw + 16px, 44px);
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.con-quien { padding-bottom: calc(var(--aire) * 1.05); }
.entidades {
  grid-column: 1 / -1;
  display: grid;
  gap: clamp(22px, 2.4vw, 40px);
  font-size: var(--entrada);
  line-height: 1.3;
}
.entidades li { position: relative; padding-left: calc(clamp(30px, 3vw, 52px) + 14px); max-width: 30em; }
.entidades li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .64em;
  width: clamp(30px, 3vw, 52px);
  height: var(--raya);
  background: var(--amarillo);
  transform-origin: left center;
}
.fondo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--aire) * .3);
  height: 0;
  pointer-events: none;
}
.fondo svg { position: absolute; left: 0; top: -40px; width: 100%; height: 80px; overflow: visible; }

.fuera {
  background: var(--asfalto);
  color: var(--blanco);
  padding: var(--aire) var(--dentro) clamp(28px, 4vw, 48px);
}
.datos dl {
  display: grid;
  column-gap: var(--g);
  margin-top: clamp(30px, 3.4vw, 64px);
  border-top: 1px solid var(--asfalto-filete);
}
.datos dl > div {
  padding: clamp(16px, 1.4vw, 24px) 0;
  border-bottom: 1px solid var(--asfalto-filete);
}
.datos dt {
  font-size: var(--nota);
  font-weight: 700;
  color: var(--amarillo);
  margin-bottom: 6px;
  line-height: 1.35;
}
.datos dd { font-size: var(--cuerpo); line-height: 1.45; font-variant-numeric: tabular-nums; }
.contacto { margin-top: var(--aire); }
.contacto .titulo { margin-bottom: clamp(26px, 3vw, 52px); }
.contacto-texto { font-size: var(--entrada); color: var(--asfalto-texto); margin-bottom: 8px; }
.correo {
  font-family: var(--pintada);
  font-stretch: 112%;
  font-weight: 720;
  font-size: min(clamp(24px, 4.6vw, 84px), calc((100vw - var(--dentro) * 2) / 13.9));
  line-height: 1.25;
  letter-spacing: -.01em;
}
.correo a {
  text-decoration: underline;
  text-decoration-color: var(--amarillo);
  text-decoration-thickness: max(3px, .06em);
  text-underline-offset: .14em;
  text-decoration-skip-ink: none;
  transition: text-decoration-color .7s var(--sinuosa);
}
.correo a::after { content: none; }
.correo a:hover { text-decoration-color: rgba(242, 194, 46, .35); }
@media (min-width: 1024px) {
  .correo { font-size: min(clamp(24px, 4.6vw, 84px), calc((100vw - var(--dentro) * 2) / 21.5)); }
}
.final {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: var(--aire);
  padding-top: 18px;
  border-top: 1px solid var(--asfalto-filete);
  font-size: var(--nota);
  color: var(--asfalto-texto);
}

@media (max-width: 599px) {
  .largo { display: none; }
  .titulo { font-size: min(var(--titulo), calc((100vw - var(--dentro) * 2) / 9.7)); }
  .barra { padding: 0 calc(var(--m) + var(--hueco) + var(--raya) * 2 + 8px); gap: 12px; }
  .marca { font-size: 17px; }
  .menu { gap: 11px; font-size: 13.5px; }
}
@media (min-width: 600px) {
  .titulo { font-stretch: 110%; }
  .zona { --k-zona: 9.4; }
}

@media (min-width: 760px) {
  .columnas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .datos dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .datos dl > .ancha { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .titulo { font-stretch: 118%; }
  .zona { --k-zona: 10.1; }
  .imaginamos .entrada { grid-column: 4 / -1; }
  .trabajo .entrada { grid-column: 1 / span 10; }
  .zona { grid-column: 1 / span 8; }
  .marcas {
    grid-column: 9 / -1;
    margin-top: 0;
    margin-left: calc(var(--g) * -1);
    align-content: center;
  }
  .marcas li { padding-left: calc(var(--g) + 18px); }
  .marcas li::before { width: calc(var(--g) * .8); }
  .entidades { grid-column: 4 / -1; }
  .con-quien .titulo { grid-column: 1 / -1; }
}

.escena .anima { opacity: 0; }
.escena:not(.lista) .anima,
.escena:not(.lista) .titulo,
.escena:not(.lista) .zona { animation: seguro .01s 4s both; }
@keyframes seguro { to { opacity: 1; clip-path: none; -webkit-mask-position: 0 0; mask-position: 0 0; } }

.escena .raya { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.5s var(--sinuosa); }
.escena .raya.pintada { stroke-dashoffset: 0; }
.escena .anillo tspan { fill-opacity: 0; transition: fill-opacity .6s var(--sinuosa); }
.escena .anillo.pintada tspan { fill-opacity: 1; }
.escena .siglas { opacity: 0; transition: opacity 1.2s var(--sinuosa) 1.5s; }
.escena .portada.arranca .siglas { opacity: 1; }

.escena .titulo {
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
  mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
  -webkit-mask-size: 260% 100%;
  mask-size: 260% 100%;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  transition: -webkit-mask-position 1.5s var(--sinuosa), mask-position 1.5s var(--sinuosa);
}
.escena .titulo.visto { -webkit-mask-position: 0 0; mask-position: 0 0; }

.escena .anima { transform: translateY(26px); transition: opacity 1.2s var(--sinuosa), transform 1.4s var(--sinuosa); transition-delay: var(--d, 0s); }
.escena .anima.visto { opacity: 1; transform: none; }

.escena .zona { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--cortina); }
.escena .zona.visto { clip-path: inset(0 0 0 0); }

.escena .marcas li::before,
.escena .entidades li::before { transform: scaleX(0); transition: transform .9s var(--sinuosa); transition-delay: var(--d, 0s); }
.escena .marcas li.visto::before,
.escena .entidades li.visto::before { transform: scaleX(1); }

.escena .nombre {
  -webkit-mask-image: linear-gradient(90deg, #000 42%, transparent 58%);
  mask-image: linear-gradient(90deg, #000 42%, transparent 58%);
  -webkit-mask-size: 280% 100%;
  mask-size: 280% 100%;
  -webkit-mask-position: 100% 0;
  mask-position: 100% 0;
  transition: -webkit-mask-position 1.7s var(--sinuosa) .95s, mask-position 1.7s var(--sinuosa) .95s;
}
.escena .portada.arranca .nombre { -webkit-mask-position: 0 0; mask-position: 0 0; }
.escena .barra,
.escena .presenta,
.escena .lado {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1.3s var(--sinuosa), transform 1.5s var(--sinuosa), background-color .7s var(--sinuosa);
}
.escena .barra { transform: translateY(-10px); }
.escena.arrancada .barra,
.escena .portada.arranca .presenta,
.escena .portada.arranca .lado { opacity: 1; transform: none; }
.escena .portada.arranca .presenta { transition-delay: 1.75s; }
.escena .portada.arranca .lado { transition-delay: 1.95s; }
.escena.arrancada .barra { transition-delay: 1.6s, 1.6s, 0s; }
.escena.asentada .barra { transition-delay: 0s; }

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