/* INTEMPO — página de inicio */
/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  padding: calc(var(--header-h) + 2rem) 0 8.5rem;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(0, 45, 74, 0.72) 0%,
    rgba(0, 45, 74, 0.45) 45%,
    rgba(0, 45, 74, 0.28) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  width: min(100% - var(--gutter) * 2, 720px);
  margin-left: max(var(--gutter), calc((100% - var(--container)) / 2));
  margin-right: auto;
}

.hero__eyebrow {
  margin-bottom: 1.25rem;
  opacity: 0;
}

.hero__title {
  font-size: clamp(2.85rem, 6.2vw, 5.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.hero__line {
  display: block;
  overflow: hidden;
}

.hero__line > span,
.hero__title .line-inner {
  display: block;
}

.hero__sub {
  font-size: clamp(1.0625rem, 1.95vw, 1.375rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36rem;
  margin-bottom: 1.5rem;
  opacity: 0;
  text-align: justify;
}

.hero__concepts {
  margin-bottom: 2rem;
  opacity: 0;
}

.hero__concepts-mask {
  position: relative;
  height: 2rem;
  overflow: hidden;
}

.hero__concept {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  opacity: 0;
  transform: translateY(100%);
}

.hero__concept.is-active {
  opacity: 1;
  transform: translateY(0);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
}

.hero--right .hero__overlay {
  background: linear-gradient(
    255deg,
    rgba(0, 45, 74, 0.72) 0%,
    rgba(0, 45, 74, 0.45) 45%,
    rgba(0, 45, 74, 0.28) 100%
  );
}

.hero--right .hero__content {
  margin-left: auto;
  margin-right: max(var(--gutter), calc((100% - var(--container)) / 2));
  text-align: right;
}

.hero--right .hero__sub {
  text-align: right;
  margin-left: auto;
  margin-right: 0;
}

.hero--right .hero__concept {
  left: auto;
  right: 0;
  text-align: right;
}

.hero--right .hero__actions {
  justify-content: flex-end;
}

/* Qué hacemos */
.section.what {
  background: var(--surface-alt);
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}

.what__pin {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: calc(var(--header-h) + 1.15rem) 0 1.75rem;
  box-sizing: border-box;
  overflow: hidden;
}

.what__pin > .container {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  width: min(100% - var(--gutter) * 2, var(--container));
}

.what .section-header {
  flex-shrink: 0;
  margin-bottom: clamp(0.85rem, 2.2vh, 1.75rem);
}

.what .section-title {
  margin-bottom: 1.15rem;
}

.what .section-title .line-mask {
  display: inline-block;
  max-width: 100%;
  padding: 0;
  vertical-align: top;
}

.what .section-title .line-inner {
  background: var(--orange);
  color: #fff;
  padding: 0.22em 0.72em 0.3em;
}

.what__rule {
  display: block;
  width: min(100%, 36rem);
  height: 1.5px;
  margin-top: 1.1rem;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.what__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "steps visual";
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
}

.what__steps {
  grid-area: steps;
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.what__visual {
  grid-area: visual;
  justify-self: end;
  align-self: center;
  width: min(100%, 52vh, 28rem);
  min-width: 0;
  min-height: 0;
}

.what__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.what__svgs {
  position: absolute;
  inset: 18%;
}

.what__svg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  color: var(--blue);
  will-change: transform, opacity;
}

.what__svg.is-active {
  opacity: 1;
}

.what__svg svg,
.what__svg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.what-svg__accent {
  color: var(--orange);
}

.what__svg [data-what-part] {
  transform-box: fill-box;
}

.what-step {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  max-width: 32rem;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: none;
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}

.what-step.is-active {
  position: relative;
  top: auto;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.what-step__index {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}

.what-step h3 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: var(--ink);
}

.what-step p {
  font-size: 1.1875rem;
  color: var(--muted);
  max-width: 28rem;
}

.what.is-static .what__pin {
  height: auto;
  max-height: none;
  min-height: 0;
  overflow: visible;
  padding-bottom: clamp(3.5rem, 8vw, 6rem);
}

.what.is-static .what__pin > .container {
  height: auto;
}

.what.is-static .what__stage {
  flex: 0 0 auto;
  align-items: start;
}

.what.is-static .what-step {
  position: relative;
  top: auto;
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  padding: 1.25rem 0;
}

@media (min-width: 901px) and (max-height: 820px) {
  .what .section-header {
    margin-bottom: 0.65rem;
  }

  .what .section-lead {
    font-size: 0.9375rem;
    line-height: 1.45;
  }

  .what__rule {
    margin-top: 0.7rem;
  }

  .what-step h3 {
    font-size: clamp(1.7rem, 3.2vw, 2.45rem);
    margin-bottom: 0.6rem;
  }

  .what-step p {
    font-size: 0.9875rem;
  }

  .what-step__index {
    margin-bottom: 0.65rem;
  }

  .projects__pin {
    padding: calc(var(--header-h) + 0.7rem) 0 1.15rem;
  }

  .projects__copy .section-header {
    margin-bottom: 0.75rem;
  }

  .projects-item {
    padding: 0.62rem 0;
  }

  .projects-item h3 {
    font-size: 1.12rem;
  }

  .projects__frame {
    max-height: min(58vh, 28rem);
  }

  .benefits__pin {
    padding: calc(var(--header-h) + 0.7rem) 0 1.25rem;
  }

  .benefits__header {
    margin-bottom: 1.35rem;
  }

  .benefits__title {
    font-size: clamp(2.75rem, 8vw, 5.25rem);
  }
}

/* Systems — full-bleed interactive rows */
.systems {
  background: var(--surface);
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
  padding-bottom: 0;
  position: relative;
  z-index: 2;
}

.systems .section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.systems-stage {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.systems-item {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: clamp(7.5rem, 16vw, 11rem);
  margin: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem) 0;
  overflow: hidden;
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  opacity: 1;
  transition:
    min-height 0.55s var(--ease-out),
    background-color 0.45s var(--ease),
    opacity 0.45s var(--ease);
}

.systems-item:last-child {
  border-bottom: 1px solid var(--line);
}

.systems-item__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transform: scale(1.04);
  transition:
    opacity 0.65s var(--ease-out),
    transform 1s var(--ease-out);
  pointer-events: none;
}

.systems-item__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.systems-item__bg--focus-bottom {
  transform-origin: center bottom;
}

.systems-item__bg--focus-bottom img {
  object-position: center bottom;
}

.systems-item__bg--focus-up img {
  object-position: center 38%;
}

.systems-item__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0, 45, 74, 0.72) 0%,
    rgba(0, 45, 74, 0.48) 48%,
    rgba(0, 45, 74, 0.28) 100%
  );
}

.systems-item.is-active .systems-item__bg,
.systems-item:hover .systems-item__bg {
  opacity: 1;
  transform: scale(1);
}

.systems-item__inner {
  position: relative;
  z-index: 1;
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
  transition: transform 0.45s var(--ease);
}

.systems-item.is-active .systems-item__inner,
.systems-item:hover .systems-item__inner {
  transform: translateX(6px);
}

.systems-stage.is-interacting .systems-item:not(.is-active):not(:hover),
.systems-stage:hover .systems-item:not(:hover):not(.is-active) {
  opacity: 0.72;
}

.systems-item__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 0.85rem 1.25rem;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.systems-item__index {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  transition: color 0.35s var(--ease);
}

.systems-item.is-active .systems-item__index,
.systems-item:hover .systems-item__index {
  color: var(--orange);
}

.systems-item__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--blue-deep);
  transition: color 0.35s var(--ease);
}

.systems-item.is-active .systems-item__title,
.systems-item:hover .systems-item__title {
  color: #fff;
}

.systems-item__chevron {
  display: none;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.35s var(--ease);
  color: var(--muted);
  align-self: center;
}

.systems-item__panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows 0.55s var(--ease-out),
    opacity 0.4s var(--ease),
    margin 0.45s var(--ease);
  margin-top: 0;
}

.systems-item__panel-inner {
  overflow: hidden;
  min-height: 0;
}

.systems-item.is-active .systems-item__panel,
.systems-item:hover .systems-item__panel {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 0.9rem;
}

.systems-item.is-active,
.systems-item:hover {
  min-height: clamp(13rem, 26vw, 20rem);
  overflow: visible;
}

.systems-item__copy {
  font-size: clamp(1rem, 1.55vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 36rem;
  padding-bottom: 0.2rem;
}

.systems-item__copy strong {
  font-weight: 800;
  color: #fff;
  -webkit-font-smoothing: auto;
}

.systems-item:has(.systems-item__head:focus-visible) {
  outline: 2px solid var(--orange);
  outline-offset: -2px;
}

.systems-item__head:focus-visible {
  outline: none;
}

/* Benefits — image → text blend (FIND-style scrub) */
.benefits {
  --benefits-img: url("../assets/img/hero/hero-intempo.png");
  --benefits-pos: center 42%;
  padding: 0;
  background: #111;
  color: var(--ink);
  isolation: isolate;
  position: relative;
  z-index: 1;
}

.benefits__pin {
  position: relative;
  isolation: isolate;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 1.15rem) 0 2rem;
  box-sizing: border-box;
  overflow: hidden;
}

.benefits__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.benefits__sharp,
.benefits__soft-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--benefits-pos);
}

.benefits__sharp {
  position: absolute;
  inset: 0;
  transform: scale(1.04);
  will-change: transform;
}

.benefits__soft {
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity;
}

.benefits__soft-img {
  transform: scale(1.14);
  filter: blur(36px) saturate(1.05) brightness(1.12);
}

.benefits__wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(245, 246, 248, 0.9) 0%,
      rgba(245, 246, 248, 0.82) 42%,
      rgba(245, 246, 248, 0.92) 100%
    ),
    linear-gradient(
      115deg,
      rgba(0, 45, 74, 0.18) 0%,
      transparent 58%
    );
}

.benefits__content {
  position: relative;
  z-index: 1;
}

.benefits__header {
  margin-bottom: clamp(2.75rem, 6vw, 4.5rem);
}

.benefits__header .section-num {
  color: var(--blue);
}

.benefits__title {
  margin: 0;
  max-width: 100%;
  font-size: clamp(3.5rem, 12vw, 8.5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.benefits__title-fill {
  display: inline-grid;
  justify-items: start;
  color: transparent;
  opacity: 0;
  will-change: opacity, transform;
}

.benefits__title-outline,
.benefits__title-photo {
  grid-area: 1 / 1;
}

.benefits__title-outline {
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px #000;
  user-select: none;
  pointer-events: none;
}

.benefits__title-photo {
  background-image: var(--benefits-img);
  background-size: cover;
  background-position: var(--benefits-pos);
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .benefits__title-photo {
    color: var(--blue-deep);
    -webkit-text-fill-color: var(--blue-deep);
    background: none;
  }
}

.benefits.is-static .benefits__soft,
.benefits.is-static .benefits__title-fill {
  opacity: 1;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
}

.benefit {
  padding: 0;
}

.benefit__icon {
  width: 40px;
  height: 40px;
  color: var(--blue);
  margin-bottom: 1rem;
  transition: color 0.25s ease, transform 0.35s var(--ease);
}

.benefit:hover .benefit__icon {
  color: var(--orange);
  transform: translateY(-2px);
}

.benefit__icon svg {
  width: 100%;
  height: 100%;
}

.benefit__name {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
  line-height: 1.2;
  color: var(--blue-deep);
}

.benefit p {
  font-size: 0.9375rem;
  color: rgba(26, 26, 26, 0.72);
  max-width: 22rem;
}

.benefit__note {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(26, 26, 26, 0.55);
}

@media (max-width: 900px) {
  .benefits__soft,
  .benefits__title-fill {
    opacity: 1;
  }

  .benefits__sharp {
    transform: none;
  }
}

@media (max-width: 560px) {
  .benefits__title {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }
}

/* Projects — pinned list + swapping image */
.projects {
  background: var(--surface-alt);
  padding-top: 0;
  padding-bottom: 0;
  isolation: isolate;
  position: relative;
  z-index: 2;
}

.projects__pin {
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 1.25rem) 0 2.5rem;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--surface-alt);
}

.projects__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.projects__copy .section-header {
  margin-bottom: clamp(1.25rem, 3vh, 2.25rem);
}

.projects__list {
  display: flex;
  flex-direction: column;
}

.projects-item {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.35rem 1rem;
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  opacity: 0.28;
  cursor: pointer;
  transition: opacity 0.45s var(--ease);
}

.projects-item:last-child {
  border-bottom: 1px solid var(--line);
}

.projects-item.is-active {
  opacity: 1;
}

.projects-item__index {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.7;
  color: var(--muted);
  transition: color 0.45s var(--ease);
}

.projects-item.is-active .projects-item__index {
  color: var(--orange);
}

.projects-item h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.28rem;
}

.projects-item p {
  font-size: 0.9375rem;
  color: var(--muted);
  text-align: justify;
}

.projects-item span {
  margin-left: 0.35rem;
  color: var(--orange);
  font-weight: 600;
}

.projects__visual {
  width: 100%;
}

.projects__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: min(72vh, 680px);
  overflow: hidden;
  border-radius: 18px;
  background: var(--blue-deep);
  box-shadow: 0 18px 40px rgba(0, 45, 74, 0.12);
}

.projects__gallery {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.projects__gallery.is-active {
  opacity: 1;
  visibility: visible;
}

.projects__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.projects__gallery.is-active img.is-active {
  opacity: 1;
}

.projects__controls {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.7rem;
  pointer-events: none;
}

.projects__frame.has-carousel .projects__controls {
  display: flex;
}

.projects__arrow {
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--blue-deep);
  display: grid;
  place-items: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 8px 20px rgba(0, 45, 74, 0.16);
  touch-action: manipulation;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.projects__arrow svg {
  width: 0.82rem;
  height: 0.82rem;
  display: block;
}

.projects__arrow:hover,
.projects__arrow:focus-visible {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  transform: scale(1.06);
}

.projects__arrow:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* Why */
.why {
  background: var(--surface);
  position: relative;
  z-index: 3;
}

.why__header {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.why__intro .section-lead {
  max-width: 36rem;
}

.why-map {
  position: relative;
  width: 100%;
}

.why-map__frame {
  position: relative;
  aspect-ratio: 1768 / 889;
  border-radius: var(--radius);
  background: var(--blue-deep);
  overflow: visible;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.why-map__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius);
  mix-blend-mode: lighten;
}

.why-map__hotspots {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.why-map__hotspot {
  position: absolute;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 1;
}

.why-map__hotspot span {
  display: block;
  width: 10px;
  height: 10px;
  margin: 6px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--orange);
  box-shadow: 0 0 0 0 rgba(255, 119, 43, 0.45);
  transition:
    transform 0.35s var(--ease),
    background-color 0.3s ease,
    box-shadow 0.35s var(--ease);
}

.why-map__hotspot:hover span,
.why-map__hotspot:focus-visible span,
.why-map__hotspot.is-active span {
  background: var(--orange);
  transform: scale(1.45);
  box-shadow: 0 0 0 8px rgba(255, 119, 43, 0.22);
}

.why-map__hotspot:hover,
.why-map__hotspot:focus-visible,
.why-map__hotspot.is-active {
  z-index: 2;
}

.why-map__hotspot.is-active span {
  animation: why-map-pulse 2.2s var(--ease) infinite;
}

.why-map__label {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  margin: 0;
  padding: 0.42rem 0.7rem 0.48rem;
  min-width: max-content;
  white-space: nowrap;
  text-align: left;
  pointer-events: none;
  color: var(--blue-deep);
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 22px rgba(0, 45, 74, 0.18);
  transform: translate(14px, -50%);
  transform-origin: left center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s var(--ease),
    visibility 0.25s,
    transform 0.25s var(--ease);
}

.why-map__label.is-visible {
  opacity: 1;
  visibility: visible;
}

.why-map__label.is-end {
  transform: translate(calc(-100% - 14px), -50%);
  transform-origin: right center;
}

.why-map__label.is-top {
  transform: translate(-50%, calc(-100% - 12px));
  transform-origin: center bottom;
}

.why-map__label.is-end.is-top {
  transform: translate(calc(-100% - 10px), calc(-100% - 8px));
  transform-origin: right bottom;
}

.why-map__label::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -5px;
  width: 10px;
  height: 10px;
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
  box-shadow: -2px 2px 4px rgba(0, 45, 74, 0.06);
}

.why-map__label.is-end::before {
  left: auto;
  right: -5px;
  box-shadow: 2px -2px 4px rgba(0, 45, 74, 0.06);
}

.why-map__label.is-top::before {
  top: auto;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: 2px 2px 4px rgba(0, 45, 74, 0.06);
}

.why-map__label.is-end.is-top::before {
  left: auto;
  right: 14px;
  transform: rotate(45deg);
}

.why-map__label-kicker {
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.why-map__label-name {
  font-family: var(--font-display);
  font-size: clamp(0.92rem, 1.4vw, 1.08rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--blue-deep);
}

@keyframes why-map-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(255, 119, 43, 0.22);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(255, 119, 43, 0.08);
  }
}

@media (max-width: 900px) {
  .systems {
    isolation: isolate;
    background: var(--surface);
  }

  .why__header {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .why-map {
    max-width: 36rem;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3rem);
  margin-top: 0.25rem;
}

.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Clients */
.clients {
  background: var(--surface-alt);
  padding-bottom: calc(var(--section-y) * 0.75);
}

.marquee {
  overflow: hidden;
  margin-top: 1rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
  will-change: transform;
}

.marquee__group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 5.5rem;
  padding-right: 5.5rem;
}

.logo-mark {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.1vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity 0.3s ease, color 0.3s ease, filter 0.3s ease;
  white-space: nowrap;
}

.marquee__item:hover .logo-mark {
  opacity: 1;
  color: var(--blue);
  filter: grayscale(0);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.clients__note {
  margin-top: 2rem;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
  opacity: 0.7;
}

/* CTA */
.cta {
  background: var(--orange);
  color: #fff;
  padding: clamp(4.5rem, 10vw, 7rem) 0;
  overflow: hidden;
}

.cta__inner {
  max-width: 40rem;
  text-align: center;
  margin-inline: auto;
}

.cta__title {
  font-size: clamp(1.85rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
}

.cta__text {
  font-size: 1.0625rem;
  opacity: 0.95;
  margin-bottom: 2rem;
}

/* Reduced motion */
/* Responsive */
@media (max-width: 1100px) {
  .benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .section.what {
    overflow: visible;
  }

  .what .section-header {
    margin-bottom: 0.7rem;
  }

  .what .section-lead {
    font-size: 0.9375rem;
    line-height: 1.4;
    max-width: none;
  }

  .what__rule {
    margin-top: 0.7rem;
  }

  .what__pin {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding: calc(var(--header-h) + 0.85rem) 0 2.25rem;
  }

  .what__pin > .container {
    height: auto;
    flex: 0 0 auto;
  }

  .what__stage {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    grid-template-areas: none;
    gap: 0.65rem;
    align-items: stretch;
    width: 100%;
  }

  .what__steps {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    order: 1;
    flex: 0 0 auto;
    min-height: 0;
    width: 100%;
    overflow: visible;
  }

  .what-step {
    text-align: center;
    max-width: none;
  }

  .what-step__index {
    margin-bottom: 0.4rem;
  }

  .what-step h3 {
    font-size: clamp(1.45rem, 6.4vw, 1.95rem);
    margin-bottom: 0.35rem;
  }

  .what-step p {
    margin-inline: auto;
    margin-bottom: 0;
    text-align: justify;
    font-size: 0.9375rem;
    line-height: 1.45;
  }

  .what__visual {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    order: 2;
    flex: 0 0 auto;
    min-height: 0;
    width: 100%;
  }

  .what__frame {
    flex-shrink: 0;
    width: min(12rem, 68vw, 32vh);
    height: min(12rem, 32vh);
    max-width: 100%;
    aspect-ratio: 1;
    margin-inline: auto;
  }

  .what.is-static .what-step {
    text-align: center;
    padding: 1.05rem 0 0.35rem;
    width: 100%;
    max-width: none;
  }

  .what.is-static .what__visual,
  .what.is-static .what__frame,
  .what.is-static .what__svgs,
  .what.is-static .what__steps {
    display: contents;
  }

  .what.is-static .what__svg {
    position: relative;
    inset: auto;
    opacity: 1;
    width: min(11.5rem, 62vw);
    aspect-ratio: 1;
    margin: 0.45rem auto 1.45rem;
    padding: 0.7rem;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .what.is-static .what__svg svg,
  .what.is-static .what__svg img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
  }

  .what.is-static .what-step[data-what-step="0"] { order: 1; }
  .what.is-static .what__svg[data-what-svg="0"] { order: 2; }
  .what.is-static .what-step[data-what-step="1"] { order: 3; }
  .what.is-static .what__svg[data-what-svg="1"] { order: 4; }
  .what.is-static .what-step[data-what-step="2"] { order: 5; }
  .what.is-static .what__svg[data-what-svg="2"] { order: 6; }
  .what.is-static .what-step[data-what-step="3"] { order: 7; }
  .what.is-static .what__svg[data-what-svg="3"] { order: 8; }

  .benefits__pin {
    overflow: visible;
    min-height: 0;
    height: auto;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }

  .systems-item {
    min-height: 0;
    padding: 1.15rem var(--gutter);
    align-items: stretch;
  }

  .systems-item.is-active {
    min-height: 0;
  }

  .systems-item:hover:not(.is-active) {
    min-height: 0;
    overflow: hidden;
  }

  .systems-item:hover:not(.is-active) .systems-item__bg {
    opacity: 0;
    transform: scale(1.04);
  }

  .systems-item:hover:not(.is-active) .systems-item__inner {
    transform: none;
  }

  .systems-item:hover:not(.is-active) .systems-item__index {
    color: var(--muted);
  }

  .systems-item:hover:not(.is-active) .systems-item__title {
    color: var(--blue-deep);
  }

  .systems-item:hover:not(.is-active) .systems-item__panel {
    grid-template-rows: 0fr;
    opacity: 0;
    margin-top: 0;
  }

  .systems-item.is-active .systems-item__bg::after {
    background: linear-gradient(
      105deg,
      rgba(0, 45, 74, 0.82) 0%,
      rgba(0, 45, 74, 0.74) 48%,
      rgba(0, 45, 74, 0.68) 100%
    );
  }

  .systems-item__inner {
    width: 100%;
    margin: 0;
  }

  .systems-item.is-active .systems-item__inner {
    transform: none;
  }

  .systems-stage.is-interacting .systems-item:not(.is-active) {
    opacity: 1;
  }

  .systems-item__title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .systems-item__chevron {
    display: block;
  }

  .systems-item.is-active .systems-item__chevron {
    transform: rotate(225deg);
    color: var(--orange);
  }

  .systems-item__copy {
    font-size: 0.9375rem;
  }

  .systems-item.is-active .systems-item__panel {
    margin-top: 0.85rem;
  }

  .projects__pin {
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    justify-content: center;
    overflow: hidden;
    padding: calc(var(--header-h) + 1.15rem) 0 1.5rem;
  }

  .projects__layout {
    flex: 0 1 auto;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .projects__copy .section-header {
    margin-bottom: 2rem;
  }

  .projects__visual {
    margin-top: 0;
    flex: 0 0 auto;
  }

  .projects__frame {
    aspect-ratio: 16 / 10;
    max-height: min(30vh, 220px);
    border-radius: 14px;
  }

  .projects__controls {
    padding: 0 0.45rem;
  }

  .projects__arrow {
    width: 1.85rem;
    height: 1.85rem;
  }

  .projects-item {
    padding: 0.5rem 0;
  }

  .projects-item h3 {
    font-size: 1.05rem;
  }

  .projects-item p {
    font-size: 0.8125rem;
  }
}

@media (max-width: 900px) and (max-height: 720px) {
  .what__pin {
    padding: calc(var(--header-h) + 0.6rem) 0 0.7rem;
  }

  .what .section-header {
    margin-bottom: 0.5rem;
  }

  .what .section-lead {
    font-size: 0.8125rem;
    line-height: 1.32;
  }

  .what__rule {
    margin-top: 0.55rem;
  }

  .what__visual {
    min-height: min(9.5rem, 24vh);
  }

  .what__frame {
    width: min(9.5rem, 54vw, 24vh);
    height: min(9.5rem, 24vh);
  }

  .what-step h3 {
    font-size: clamp(1.3rem, 6vw, 1.7rem);
  }

  .what-step p {
    font-size: 0.875rem;
    line-height: 1.38;
  }

  .projects__pin {
    padding: calc(var(--header-h) + 0.7rem) 0 1rem;
  }

  .projects__copy .section-header {
    margin-bottom: 1rem;
  }

  .projects__frame {
    max-height: min(24vh, 160px);
  }

  .projects-item {
    padding: 0.35rem 0;
  }
}

@media (max-width: 768px) {
  .hero {
    align-items: flex-end;
    text-align: center;
    padding-bottom: 5.75rem;
  }

  .hero__title {
    font-size: clamp(2.2rem, 11vw, 3.1rem);
    margin-bottom: 0.9rem;
  }

  .hero__sub {
    font-size: 1.0125rem;
    margin-bottom: 1.15rem;
  }

  .hero__concepts {
    margin-bottom: 1.25rem;
  }

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

  .hero__concepts-mask {
    margin-inline: auto;
  }

  .hero__concept {
    left: 0;
    right: 0;
    width: 100%;
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__sub {
    margin-inline: auto;
  }

  .hero.hero--right,
  .hero--right .hero__content {
    text-align: right;
  }

  .hero--right .hero__content {
    margin-inline: 0;
    margin-left: auto;
    margin-right: max(var(--gutter), calc((100% - var(--container)) / 2));
  }

  .hero--right .hero__concept {
    left: auto;
    right: 0;
    width: auto;
    text-align: right;
  }

  .hero--right .hero__actions {
    justify-content: flex-end;
  }

  .hero--right .hero__sub {
    margin-inline: 0;
    margin-left: auto;
  }

  .benefits__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-bottom: 9.25rem;
  }

  .hero .scroll-indicator {
    bottom: 0.55rem;
  }

  .hero .scroll-indicator__label {
    display: none;
  }

  .benefits__grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero--right .hero__actions {
    align-items: flex-end;
  }
}

@media (min-width: 1101px) {
  .benefit p,
  .projects-item p,
  .stat__label {
    font-size: 1.0625rem;
  }

  .cta__text {
    font-size: 1.1875rem;
  }
}
