/* ==========================================================================
   Apertura: portada → aro → cifras → nubes → marca → Nosotros
   Sin movimiento: las secciones aparecen en el flujo normal.
   Con movimiento (.ap-on): escena fija con un tramo adicional para el símbolo.
   ========================================================================== */

.apertura { position: relative; color: var(--ink); overflow: clip; }
.ap-stage { overflow: clip; }
.ap-stage { position: relative; }

/* ---------- Fondo y trazado ---------- */
.ap-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 48% 60% at 74% 52%, #d8f6ee 0%, transparent 68%),
    radial-gradient(ellipse 50% 50% at 18% 100%, #dcdcf6 0%, transparent 70%),
    linear-gradient(118deg, #f7f7fb 10%, #eef0f8 58%, #e6f2ef);
}
.ap-hero-clouds {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: min(100svh, 980px);
  pointer-events: none;
  background: url("./assets/editorial/cifras-nubes.webp") center bottom -3% / max(104%, 850px) auto no-repeat;
  mask-image: linear-gradient(180deg, transparent 5%, #000 25%, #000 79%, transparent 100%);
  opacity: .38;
}
.ap-hero-clouds::before {
  content: "";
  position: absolute;
  top: 8%;
  right: -8vw;
  width: clamp(470px, 75vw, 1500px);
  aspect-ratio: 3 / 2;
  background: url("./assets/editorial/cifras-nubes-capas.webp") center / contain no-repeat;
  mask-image: linear-gradient(90deg, transparent, #000 28% 89%, transparent), linear-gradient(transparent, #000 18%);
  mask-composite: intersect;
}
.ap-on .ap-hero-clouds {
  height: 100%;
  opacity: calc(.38 * var(--hero-clouds, 1));
  transform: translateY(var(--hero-cloud-shift, 0px));
}
.ap-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: var(--dark, 0);
  background:
    radial-gradient(ellipse 42% 52% at 50% 52%, #24296a 0%, transparent 72%),
    radial-gradient(ellipse 40% 40% at 88% 10%, #0f4e4a 0%, transparent 70%),
    radial-gradient(ellipse 45% 45% at 6% 96%, #2a2470 0%, transparent 70%),
    var(--night);
}
.ap-gridlines {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: calc(var(--draft, 1) * .9);
  background:
    linear-gradient(#4343a314 1px, transparent 1px) 0 0 / 100% 120px,
    linear-gradient(90deg, #4343a314 1px, transparent 1px) 0 0 / 120px 100%;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 55%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 55%, #000 20%, transparent 75%);
}
.ap-draft {
  position: absolute;
  z-index: 1;
  left: calc(var(--gx, 71vw) - var(--gs, 66vh) / 2);
  top: calc(var(--gy, 56vh) - var(--gs, 66vh) / 2);
  width: var(--gs, 66vh);
  height: var(--gs, 66vh);
  overflow: visible;
  opacity: var(--draft, 1);
  pointer-events: none;
  fill: none;
}
.ap-draft-labels text { fill: #4343a3; stroke: none; font: 700 11px Montserrat, sans-serif; letter-spacing: .12em; }
.ap-draft-guides :is(circle, path) {
  stroke: #4343a3;
  stroke-width: 1;
  stroke-dasharray: 4 6;
  vector-effect: non-scaling-stroke;
  opacity: .55;
}
.ap-draft-handles { stroke-dasharray: none !important; stroke: #3cd2ad !important; stroke-width: 2 !important; opacity: .9 !important; }

/* ---------- Portada ---------- */
.hero {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(100svh, 980px);
  padding: calc(var(--header-h) + 3vh) 0 8vh;
}
.hero-message {
  width: min(46%, 820px);
  margin-left: max(var(--gutter), calc((100% - 1640px) / 2 + var(--gutter)));
}
.hero-label { color: #3a4170; margin-bottom: clamp(18px, 2.4vw, 40px); }
.hero h1 {
  font-size: clamp(50px, 5.6vw, 118px);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.066em;
  color: #11132a;
}
.hero h1 > span { display: block; }
.hero h1 em { color: var(--indigo); }
.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(26px, 3vw, 48px);
}
.hero-primary { background: var(--ink); color: #fff; }
.hero-primary::after { content: "→"; margin-left: .7em; font-family: Arial, sans-serif; }
.hero-primary:hover { background: var(--indigo); }
.hero-secondary { background: #ffffffb8; color: var(--ink); box-shadow: inset 0 0 0 1px #11132a26; backdrop-filter: blur(8px); }
.hero-secondary:hover { background: #fff; }
.ap-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  display: grid;
  justify-items: center;
  gap: 10px;
  translate: -50% 0;
  color: #4a5079;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}
.ap-scroll { text-decoration: none; }
.ap-scroll span {
  width: 1px;
  height: 46px;
  background: linear-gradient(#4343a3, transparent);
  transform-origin: top;
}

/* ---------- Objeto: aro de vidrio + personas ---------- */
.ap-object {
  position: absolute;
  inset: 0 0 auto 0;
  height: min(100svh, 980px);
  z-index: 2;
  pointer-events: none;
}
.ap-ring {
  position: absolute;
  top: 50%;
  right: max(2vw, calc((100% - 1700px) / 2));
  width: min(46vw, 80vh);
  aspect-ratio: 1;
  translate: 0 -46%;
  transform-origin: 50% 50%;
  will-change: transform;
}
.ap-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 48%, #ffffff 0, #e0f7f1b3 32%, #c9c8f500 66%);
  filter: blur(22px);
  opacity: calc(1 - var(--dark, 0) * .75);
}
.ap-prism {
  position: absolute;
  inset: 0;
  background: url("./assets/editorial/portada-prisma.webp") center / contain no-repeat;
  filter: drop-shadow(0 40px 60px #2a2c7a33);
}
.ap-prism-front {
  clip-path: polygon(0 26%, 35% 40%, 55% 47%, 80% 23%, 100% 20%, 100% 100%, 0 100%);
  -webkit-mask-image: linear-gradient(transparent 30%, #000 36%);
  mask-image: linear-gradient(transparent 30%, #000 36%);
  filter: none;
}
.hero-picture {
  position: absolute;
  inset: 0;
  opacity: var(--people, 1);
  clip-path: polygon(0 0, 100% 0, 100% 49%, 88% 68%, 76% 82%, 60% 90%, 40% 95%, 24% 90%, 10% 75%, 0 60%);
}
.hero-picture img {
  position: absolute;
  left: 10%;
  bottom: 7%;
  width: 79%;
  height: auto;
  translate: 0 calc((1 - var(--people, 1)) * 8%);
  scale: calc(1 - (1 - var(--people, 1)) * .06);
}
.ap-prism-front { opacity: var(--people, 1); }

/* ---------- Cifras entre las nubes ---------- */
.ap-numbers {
  position: relative;
  isolation: isolate;
  z-index: 4;
  overflow: clip;
  color: var(--on-dark);
  background:
    radial-gradient(ellipse at 85% 92%, #177d81 0%, transparent 57%),
    radial-gradient(ellipse at 19% 56%, #3a6aaf 0%, transparent 69%),
    linear-gradient(155deg, #242160, #343687 58%, #21387a);
  scroll-margin-top: var(--header-h);
}

.ap-numbers-clouds {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: clip;
  pointer-events: none;
}

.ap-numbers-clouds::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(#262367d9, #27276c22 29%, #24205b0a 76%, #24215f55);
}

.ap-on .ap-numbers-clouds::before {
  content: "";
  position: absolute;
  left: var(--numbers-x, 50%);
  top: var(--numbers-y, 50%);
  width: clamp(355px, max(57vw, 72svh), 1060px);
  aspect-ratio: 3 / 2;
  background: url("./assets/editorial/cifras-nubes-capas.webp") center / contain no-repeat;
  mask-image: radial-gradient(ellipse 55% 58%, #000 32%, transparent 100%);
  transform: translate3d(-50%, calc(-50% + var(--portal-cloud-shift, 0px)), 0);
  opacity: var(--portal-clouds, 0);
}

.ap-cloud {
  position: absolute;
  left: 50%;
  width: max(142%, 172svh);
  height: auto;
  max-width: none;
  bottom: -8%;
  transform: translateX(-50%);
  mask-image: linear-gradient(#000 48%, transparent 100%);
}

.ap-cloud-far { opacity: .8; }

.ap-numbers-content {
  width: 100%;
  padding-block: clamp(65px, 8vw, 135px);
}

.ap-numbers-head {
  margin-bottom: clamp(20px, 3vw, 45px);
  text-shadow: 0 2px 16px #151637ab;
}

.ap-numbers-head .eyebrow { color: var(--mint-soft); }

.ap-numbers-head h2 {
  margin-top: clamp(13px, 1.65vw, 24px);
  font-size: clamp(2.6rem, 6.3vw, 7.2rem);
  font-weight: 800;
  line-height: .94;
  letter-spacing: -.071em;
  text-wrap: balance;
}

.ap-numbers-head em { color: var(--mint-soft); }

.ap-numbers .institutional-numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: clip;
  border: 1px solid #dce3ff5c;
  border-radius: clamp(14px, 2vw, 26px);
  background: #151842bf;
  box-shadow: 0 20px 75px -47px #0c1439;
}

.ap-numbers .institutional-numbers-grid > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: clamp(6px, .9vw, 12px);
  min-width: 0;
  padding: clamp(13px, 2.05vw, 32px);
}

.ap-numbers .institutional-numbers-grid > div:nth-child(n + 4) { border-top: 1px solid #e6eaff3b; }
.ap-numbers .institutional-numbers-grid > div:not(:nth-child(3n + 1)) { border-left: 1px solid #e6eaff3b; }

.ap-numbers .institutional-numbers-grid dd {
  color: var(--mint-soft);
  font-size: clamp(2.65rem, 6.2vw, 7.45rem);
  font-weight: 800;
  letter-spacing: -.073em;
  line-height: .94;
  font-variant-numeric: tabular-nums;
}

.ap-numbers .institutional-numbers-grid dt {
  max-width: 28ch;
  color: #f2f4ff;
  font-size: clamp(.78rem, 1.24vw, 1.14rem);
  line-height: 1.4;
}

.ap-brand-mark { display: none; }

.ap-on .ap-numbers {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: var(--numbers-scene, 0);
  clip-path: circle(var(--numbers-radius, 0px) at var(--numbers-x, 50%) var(--numbers-y, 50%));
  pointer-events: none;
}

.ap-on .ap-numbers-content {
  padding-block: calc(var(--header-h) + 12px) 30px;
  opacity: var(--numbers-copy, 0);
  transform: translateY(calc((1 - var(--numbers-copy, 0)) * 24px));
}

.ap-on .ap-cloud-far {
  top: 0;
  bottom: auto;
  transform: translate3d(calc(-50% + var(--cloud-far-x, 0px)), var(--cloud-far-y, 100svh), 0) scaleY(1.28);
}

.ap-cloud-passage { display: none; }

.ap-on .ap-cloud-passage {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: block;
  isolation: isolate;
  overflow: clip;
  pointer-events: none;
  opacity: var(--cloud-passage, 0);
}

.ap-cloud-passage::before,
.ap-cloud-passage::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.ap-cloud-passage::before {
  inset: 0;
  background:
    radial-gradient(ellipse at 65% 36%, #f4f7ff, transparent 74%),
    linear-gradient(150deg, #7d8cb9, #c6d6e7 55%, #b6dbd8);
  opacity: var(--cloud-air, 0);
}

.ap-cloud-passage::after {
  z-index: 3;
  inset: 0 0 auto;
  height: calc(var(--header-h) + 34px);
  background: linear-gradient(#172043a6 0%, #1d254866 48%, transparent);
  opacity: var(--cloud-nav-shade, 0);
}

.ap-cloud-passage img {
  position: absolute;
  left: 50%;
  top: 0;
  display: block;
  width: auto;
  max-width: none;
  pointer-events: none;
}

.ap-passage-billows {
  z-index: 1;
  height: var(--cloud-billows-height, 155svh);
  transform: translate3d(calc(-50% + var(--cloud-billows-x, 0px)), var(--cloud-billows-y, 100svh), 0);
  opacity: .93;
}

.ap-passage-front {
  z-index: 2;
  height: var(--cloud-front-height, 215svh);
  transform: translate3d(calc(-50% + var(--cloud-front-x, 0px)), var(--cloud-front-y, 100svh), 0);
  mask-image: linear-gradient(#000 77%, transparent 100%);
}

.ap-on .ap-brand-mark {
  position: absolute;
  display: block;
  z-index: 5;
  left: 50%;
  top: 50%;
  width: var(--mark-width, 0px);
  height: var(--mark-height, 0px);
  translate: -50% -50%;
  isolation: isolate;
  opacity: var(--mark-glow, 0);
  pointer-events: none;
}

.ap-brand-mark::before {
  content: "";
  position: absolute;
  inset: -25% -44%;
  background:
    url("./assets/editorial/cifras-nubes-capas.webp") center / 118% auto no-repeat,
    radial-gradient(ellipse at 50% 52%, #b5d6f160, transparent 70%);
  mask-image: radial-gradient(ellipse, #000 18%, transparent 71%);
  opacity: var(--mark-mist, 0);
  transform: scale(calc(1.25 - var(--mark-mist, 0) * .3));
}

.ap-brand-cloud-piece {
  position: absolute;
  inset: 0;
  mask: url("./assets/brand/itps-one.png") left center / auto 100% no-repeat;
  background:
    url("./assets/editorial/cifras-nubes-capas.webp")
      var(--cloud-detail-x) calc(var(--cloud-detail-y) + (1 - var(--piece-progress)) * 16%) / 177% auto no-repeat,
    url("./assets/editorial/cifras-nubes-frente.webp") var(--cloud-body-x) 72% / 215% auto no-repeat,
    linear-gradient(140deg, #e9f3ff 16%, #c9daea 64%, #9db2cb);
  opacity: clamp(0, calc(var(--piece-progress) * 2.25), 1);
  transform:
    translate3d(
      calc((1 - var(--piece-progress)) * var(--piece-x)),
      calc((1 - var(--piece-progress)) * var(--piece-y)),
      0
    )
    rotate(calc((1 - var(--piece-progress)) * var(--piece-turn)))
    scale(calc(.83 + var(--piece-progress) * .17));
}

.ap-brand-cloud-piece:first-child {
  --piece-progress: var(--mark-top, 0);
  --piece-x: 57%;
  --piece-y: -43%;
  --piece-turn: 11deg;
  --cloud-detail-x: 92%;
  --cloud-detail-y: 20%;
  --cloud-body-x: 67%;
  clip-path: polygon(14% 0%, 100% 0%, 100% 45%);
}

.ap-brand-cloud-piece:nth-child(2) {
  --piece-progress: var(--mark-middle, 0);
  --piece-x: -59%;
  --piece-y: 10%;
  --piece-turn: -8deg;
  --cloud-detail-x: 10%;
  --cloud-detail-y: 48%;
  --cloud-body-x: 24%;
  clip-path: polygon(0 7%, 67% 39%, 74% 48%, 70% 57%, 0 94%);
}

.ap-brand-cloud-piece:nth-child(3) {
  --piece-progress: var(--mark-bottom, 0);
  --piece-x: 54%;
  --piece-y: 46%;
  --piece-turn: -11deg;
  --cloud-detail-x: 72%;
  --cloud-detail-y: 78%;
  --cloud-body-x: 58%;
  clip-path: polygon(14% 100%, 100% 54%, 100% 100%);
}

@media (max-width: 700px) {
  .ap-numbers-head { margin-bottom: clamp(16px, 4.6vw, 27px); }
  .ap-numbers-head h2 { font-size: clamp(2.3rem, 9.6vw, 4.2rem); }
  .ap-numbers-head h2 em { display: block; }
  .ap-numbers .institutional-numbers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-numbers .institutional-numbers-grid > div:not(:nth-child(3n + 1)) { border-left: 0; }
  .ap-numbers .institutional-numbers-grid > div:nth-child(even) { border-left: 1px solid #e6eaff3b; }
  .ap-numbers .institutional-numbers-grid > div:nth-child(n + 3) { border-top: 1px solid #e6eaff3b; }
  .ap-numbers .institutional-numbers-grid dd { font-size: clamp(1.98rem, 9vw, 3.7rem); }
  .ap-numbers .institutional-numbers-grid dt { font-size: clamp(.65rem, 2.95vw, .92rem); }
  .ap-on .ap-numbers-content { padding-bottom: 20px; }
}

/* ---------- Frase central ---------- */
.ap-statement {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 1.2rem;
  padding: clamp(64px, 9vw, 140px) var(--gutter);
  background: var(--night);
  color: var(--on-dark);
}
.ap-statement-big {
  font-size: clamp(30px, 3.3vw, 64px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.035em;
  text-transform: uppercase;
}
.ap-statement-big > span { display: block; }
.ap-statement-copy {
  max-width: 30ch;
  color: var(--on-dark-2);
  font-size: clamp(1.05rem, 1.35vw, 1.4rem);
  line-height: 1.42;
  letter-spacing: -.02em;
}

/* ---------- Nosotros (sin movimiento: bloque normal) ---------- */
.about {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  min-height: min(100svh, 900px);
  background: var(--carbon);
  color: #f4f6f5;
  overflow: hidden;
}
.about-iris { position: relative; overflow: hidden; background: #6f7271; }
.about-studio, .about-light, .about-shade { position: absolute; inset: 0; }
.about-studio {
  inset: -4%;
  background: #8e8f8e url("./assets/editorial/nosotros-estudio.webp") 22% center / cover no-repeat;
  filter: brightness(.82) contrast(1.06);
}
.about-light {
  background:
    radial-gradient(ellipse 46% 62% at 14% 30%, rgb(214 255 240 / 34%), transparent 70%);
  mix-blend-mode: soft-light;
}
.about-people {
  position: absolute;
  left: 42%;
  bottom: -4%;
  width: 82%;
  height: auto;
  max-width: none;
  translate: -50% 0;
  filter: brightness(1.08) contrast(1.04) drop-shadow(18px 26px 34px rgb(10 14 16 / 40%));
  -webkit-mask-image: linear-gradient(#000 86%, transparent 99%);
  mask-image: linear-gradient(#000 86%, transparent 99%);
}
.about-shade {
  background:
    linear-gradient(90deg, transparent 48%, rgb(22 28 32 / 55%) 72%, var(--carbon) 100%),
    linear-gradient(0deg, rgb(22 28 32 / 60%), transparent 18%);
}
.about-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  padding: clamp(56px, 7vw, 120px) var(--gutter) clamp(56px, 7vw, 120px) clamp(20px, 3vw, 56px);
}
.about-label { color: var(--mint-soft); }
.about h2 {
  margin: clamp(16px, 1.8vw, 30px) 0 clamp(22px, 2.4vw, 42px);
  font-size: clamp(46px, 5.6vw, 108px);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.064em;
}
.about h2 > span { display: block; }
.about h2 em { color: var(--mint-soft); white-space: nowrap; }
.about-text { max-width: 34rem; }
.about-lead {
  font-size: clamp(1.15rem, 1.6vw, 1.7rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.035em;
  max-width: 24ch;
}
.about-detail {
  margin-top: 1rem;
  color: #c3cacd;
  font-size: clamp(.96rem, 1.08vw, 1.12rem);
  line-height: 1.62;
  max-width: 46ch;
}
.about-next {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  min-height: 44px;
  margin-top: 1.2rem;
  color: var(--mint-soft);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgb(162 235 205 / 45%);
}
.about-next:hover { border-bottom-color: currentColor; }

/* ==========================================================================
   Con movimiento: escena fija
   ========================================================================== */
.ap-on .apertura { height: calc(465svh + var(--ap-extra-height, 0svh)); }
.ap-on .ap-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.ap-on .hero {
  position: absolute;
  inset: 0;
  min-height: 0;
  padding-bottom: 4vh;
}
.ap-on .hero-label,
.ap-on .hero-links,
.ap-on .ap-scroll {
  opacity: calc(1 - var(--hero-out, 0));
  translate: 0 calc(var(--hero-out, 0) * -40px);
  filter: blur(calc(var(--hero-out, 0) * 8px));
}
.ap-on .hero-links { pointer-events: auto; }
.ap-on .ap-object { inset: 0; height: auto; }
.ap-on .ap-ring {
  top: 0;
  left: 0;
  right: auto;
  translate: none;
  opacity: var(--ring-fade, 1);
  filter: blur(var(--ring-blur, 0));
}
.ap-on .ap-statement {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  background: none;
  pointer-events: none;
}
.ap-on .ap-statement-big {
  position: absolute;
  left: max(var(--gutter), calc((100% - 1640px) / 2 + var(--gutter)));
  top: 50%;
  translate: 0 -50%;
  max-width: 28vw;
}
.ap-on .ap-statement-big > span:first-child::after { content: ""; }
.ap-on .ap-statement-copy {
  position: absolute;
  right: max(var(--gutter), calc((100% - 1640px) / 2 + var(--gutter)));
  top: 50%;
  translate: 0 -50%;
  width: min(26vw, 400px);
  font-size: clamp(1.1rem, 1.55vw, 1.6rem);
  color: var(--on-dark);
}
.ap-on .about {
  z-index: 6;
  position: absolute;
  inset: 0;
  display: block;
  min-height: 0;
  background: none;
  pointer-events: none;
}
.ap-on .about.is-open { pointer-events: auto; }
.ap-on .about-iris {
  position: absolute;
  inset: 0;
  opacity: var(--mark-fill, 0);
  mask-repeat: no-repeat;
}
@supports (mask-composite: intersect) {
  .ap-on .about-iris {
    opacity: var(--mark-opacity, 0);
    mask-image:
      linear-gradient(rgb(0 0 0 / var(--mark-fill, 0)) 0 0),
      url("./assets/brand/itps-one.png"),
      linear-gradient(#000 0 0);
    mask-size: 100% 100%, var(--mark-image-width, 0px) var(--mark-height, 0px), var(--mark-width, 0px) 100%;
    mask-position: center, calc(50% + var(--mark-shift, 0px)) center, center;
    mask-composite: add, intersect;
  }
}
.ap-on .about-iris {
  background: var(--carbon);
}
.ap-on .about-studio { scale: var(--iris-zoom, 1); }
.ap-on .about-people {
  left: 34%;
  width: auto;
  height: 86%;
  bottom: -2%;
  scale: var(--iris-zoom, 1);
  translate: -50% var(--iris-shift, 0);
  transform-origin: 50% 100%;
}
.ap-on .about-shade {
  background:
    linear-gradient(90deg, transparent 36%, rgb(22 28 32 / 62%) 58%, rgb(22 28 32 / 94%) 80%),
    linear-gradient(0deg, rgb(22 28 32 / 70%), transparent 22%);
}
.ap-on .about-copy {
  position: absolute;
  top: 50%;
  right: max(var(--gutter), calc((100% - 1640px) / 2 + var(--gutter)));
  width: min(44vw, 720px);
  padding: 0;
  translate: 0 -46%;
}
.ap-on .about-label,
.ap-on .about-text {
  opacity: var(--about-copy, 0);
  translate: 0 calc((1 - var(--about-copy, 0)) * 26px);
  filter: blur(calc((1 - var(--about-copy, 0)) * 6px));
}

/* Letras: salida de la portada, frase y título de Nosotros */
.ap-on #hero-title .c {
  --cx: clamp(0, calc((var(--x, 0) * (var(--n) + 8) - var(--i)) / 8), 1);
  opacity: calc(1 - var(--cx));
  filter: blur(calc(var(--cx) * 18px));
  translate: 0 calc(var(--cx) * -.45em);
}
.ap-on .ap-statement-big .c {
  --ci: clamp(0, calc((var(--t, 0) * (var(--n) + 10) - var(--i)) / 10), 1);
  --co: clamp(0, calc((var(--x, 0) * (var(--n) + 10) - var(--i)) / 10), 1);
  opacity: calc(var(--ci) - var(--co));
  filter: blur(calc((1 - var(--ci) + var(--co)) * 16px));
  translate: 0 calc((1 - var(--ci)) * .35em - var(--co) * .35em);
  color: color-mix(in srgb, var(--on-dark) calc(var(--ci) * 100%), var(--indigo-soft));
}
.ap-on .ap-statement-copy .wd {
  --ci: clamp(0, calc((var(--t, 0) * (var(--n) + 4) - var(--i)) / 4), 1);
  --co: var(--x, 0);
  display: inline-block;
  opacity: calc(var(--ci) * (1 - var(--co)) * .92 + .0);
  filter: blur(calc((1 - var(--ci) + var(--co)) * 8px));
}
.ap-on #about-title .c {
  --ci: clamp(0, calc((var(--t, 0) * (var(--n) + 8) - var(--i)) / 8), 1);
  opacity: var(--ci);
  filter: blur(calc((1 - var(--ci)) * 16px));
  translate: 0 calc((1 - var(--ci)) * .4em);
}

/* Entrada de la portada tras el spinner */
.itps-intro #hero-title .c { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .entry-done #hero-title .c { animation: char-in 1s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(120ms + var(--i) * 26ms); }
  .entry-done .ap-draft-guides :is(circle, path) { animation: draft-draw 1.6s cubic-bezier(.6, 0, .2, 1) backwards; }
  .entry-done .ap-draft-guides circle:nth-child(2) { animation-delay: .2s; }
  .entry-done .ap-draft-guides path { animation-delay: .35s; }
  .entry-done .ap-ring { animation: ring-arrive 1.5s cubic-bezier(.16, .8, .2, 1) .25s backwards; }
  .entry-done .hero-label, .entry-done .hero-links { animation: rise-in .9s cubic-bezier(.2, .7, .2, 1) backwards; }
  .entry-done .hero-label { animation-delay: .1s; }
  .entry-done .hero-links { animation-delay: .7s; }
  .ap-scroll span { animation: scroll-line 2.2s ease-in-out infinite; }
  .itps-intro :is(.ap-ring, .hero-label, .hero-links) { opacity: 0; }
}
@keyframes char-in { from { opacity: 0; filter: blur(14px); transform: translateY(.42em); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
@keyframes ring-arrive { from { opacity: 0; filter: blur(18px); } }
@keyframes draft-draw { from { stroke-dashoffset: 1200; opacity: 0; } }
@keyframes scroll-line { 0% { scale: 1 0; } 50% { scale: 1 1; } 100% { scale: 1 1; opacity: 0; } }

/* ---------- Intermedio y móvil ---------- */
@media (max-width: 800px), (max-width: 1024px) and (orientation: portrait) {
  .ap-hero-clouds {
    background-size: max(147%, 500px) auto;
    mask-image: linear-gradient(180deg, transparent 18%, #000 48%, #000 81%, transparent);
  }
  .ap-hero-clouds::before {
    top: 37%;
    right: -23%;
    width: 153%;
  }
  .hero { justify-content: flex-start; min-height: 0; padding-top: calc(var(--header-h) + 34px); }
  .hero-message { width: auto; margin-inline: var(--gutter); }
  .hero h1 { font-size: clamp(44px, 11.6vw, 84px); }
  .ap-object { position: relative; height: auto; padding: 0 0 40px; }
  .ap-ring { position: relative; top: auto; right: auto; translate: none; width: min(86vw, 52vh); margin-inline: auto; }
  .ap-scroll { display: none; }
  .about { grid-template-columns: 1fr; }
  .about-iris { height: clamp(320px, 100vw, 520px); }
  .about-people { left: 50%; width: auto; height: 82%; bottom: 2%; }
  .about-shade { background: linear-gradient(0deg, var(--carbon), transparent 22%); }

  .ap-on .hero { padding-top: calc(var(--header-h) + 5vh); }
  .ap-on .ap-object { padding: 0; }
  .ap-on .ap-ring { position: absolute; margin: 0; }
  .ap-on .ap-statement-big { left: var(--gutter); right: var(--gutter); top: calc(var(--header-h) + 4vh); translate: none; max-width: none; font-size: clamp(30px, 8.4vw, 54px); }
  .ap-on .ap-statement-big > span { display: inline; }
  .ap-on .ap-statement-copy { left: var(--gutter); right: var(--gutter); top: auto; bottom: 7vh; translate: none; width: auto; }
  .ap-on .about-iris { height: auto; }
  .ap-on .about-people { left: 50%; height: 56%; bottom: auto; top: 9%; transform-origin: 50% 50%; }
  .ap-on .about-studio { inset: -4% -60% 30% -4%; background-position: 18% 40%; }
  .ap-on .about-shade { background: linear-gradient(0deg, var(--carbon) 30%, rgb(22 28 32 / 70%) 52%, transparent 72%); }
  .ap-on .about-copy { left: var(--gutter); right: var(--gutter); top: auto; bottom: 5vh; width: auto; translate: none; }
  .ap-on .about h2 { font-size: clamp(38px, 10.6vw, 66px); margin: 12px 0 16px; }
  .ap-on .about-detail { font-size: .95rem; line-height: 1.5; }
  .ap-on .about-lead { font-size: 1.12rem; }
}
@media (max-width: 800px) and (max-height: 720px) {
  .ap-on .about-detail { display: none; }
}
.apertura .hero .hero-label { color: #3a4170; }
.apertura .about-label { color: var(--mint-soft); }
