/* Homepage opening and navigation. Other pages retain their existing styles. */
body[data-page="/"] .site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  height: 6.5rem;
  padding-inline: clamp(1.5rem, 4.2vw, 5rem);
  border: 0;
  background: transparent;
  color: #fff;
}

body[data-page="/"] .site-header .brand :is(img,svg) {
  width: clamp(11rem, 16vw, 14rem);
}
body[data-page="/"] .site-header .brand img {
  filter: brightness(0) invert(1);
}

body[data-page="/"] .site-header .menu-toggle {
  min-width: 44px;
  gap: .8rem;
}

body[data-page="/"] .site-header .menu-word,
body[data-page="/"] .site-header .header-contact {
  font-size: .8125rem;
  letter-spacing: .04em;
}

body[data-page="/"] .site-header .language-switcher a {
  color: #fff;
  opacity: .72;
}

body[data-page="/"] .site-header .language-switcher a[aria-current="true"],
body[data-page="/"] .site-header .language-switcher a:hover {
  opacity: 1;
}

body[data-page="/"] .site-header .language-switcher > span {
  color: #ffffff70;
}

body[data-page="/"] .fallback-nav {
  padding-top: 7rem;
  color: #fff;
  background: #080a0c;
}

body[data-page="/"] .hero {
  display: flex;
  align-items: flex-end;
  height: auto;
  min-height: max(42rem, 100svh);
  max-height: none;
  padding-top: 12rem;
  padding-bottom: clamp(6rem, 12svh, 9rem);
  background: #080a0c;
}

body[data-page="/"] .hero[data-photo="sculptural"] .hero-media img {
  object-position: 50% 40%;
  filter: none;
}

body[data-page="/"] .hero[data-photo="sculptural"] .hero-shade {
  background:
    linear-gradient(180deg, #080a0c70 0%, #080a0c00 27%),
    linear-gradient(0deg, #080a0cf2 0%, #080a0ccc 30%, #080a0ca1 52%, #080a0c14 70%, #080a0c00 80%);
}

body[data-page="/"] .hero[data-photo="sculptural"] .hero-copy {
  position: relative;
  inset: auto;
  transform: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: none;
  text-align: center;
}

body[data-page="/"] .hero .eyebrow {
  margin-bottom: 1.25rem;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .2em;
  line-height: 1.6;
}

body[data-page="/"] .hero[data-photo="sculptural"] .hero-title {
  max-width: 13ch;
  font-size: clamp(4.5rem, 8vw, 8.5rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1.02;
  text-wrap: balance;
}

html[lang="es"] body[data-page="/"] .hero[data-photo="sculptural"] .hero-title {
  max-width: 17ch;
  font-size: clamp(3.8rem, 6.4vw, 7rem);
}

body[data-page="/"] .hero-statement {
  max-width: min(100%, 46rem);
  margin-top: clamp(1.5rem, 2.5vw, 2.25rem);
  color: #fff;
  font-family: 'Instrument Sans', Arial, sans-serif;
  font-size: clamp(1.375rem, 2.05vw, 1.875rem);
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0;
  line-height: 1.28;
  text-transform: none;
  text-wrap: balance;
}

body[data-page="/"] .hero-statement-lead {
  display: block;
  margin-bottom: .22em;
}

body[data-page="/"] .hero-statement-purpose {
  display: block;
}

body[data-page="/"] .hero-link {
  justify-content: center;
  gap: 1.5rem;
  min-height: 3.5rem;
  max-width: 100%;
  margin-top: 2rem;
  padding: .875rem 1.5rem;
  border: 1px solid #f6f8f9;
  border-radius: 2px;
  background: #f6f8f9;
  color: #111518;
  font-family: 'Instrument Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.4;
  transition: background .2s ease, border-color .2s ease;
}

body[data-page="/"] .hero-link:focus-visible {
  outline-color: #fff;
}

body[data-page="/"] .scroll-hint {
  inset: auto auto 1.5rem 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid #ffffff45;
  border-radius: 50%;
}

body[data-page="/"] .scroll-hint svg {
  transition: transform .2s ease;
}

@media (hover: hover) {
  body[data-page="/"] .hero-link:hover {
    border-color: #dde8ed;
    background: #dde8ed;
  }

  body[data-page="/"] .scroll-hint:hover svg {
    transform: translateY(3px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  body[data-page="/"] .hero .eyebrow { animation-delay: .1s; }
  body[data-page="/"] .hero-title { animation-delay: .2s; }
  body[data-page="/"] .hero-statement {
    animation: text-enter .85s cubic-bezier(.2,.65,.3,1) .3s both;
  }
  body[data-page="/"] .hero-link { animation-delay: .4s; }
}

@media (max-width: 700px) {
  body[data-page="/"] .site-header {
    height: 5rem;
    padding-inline: 1.25rem;
  }

  body[data-page="/"] .site-header .brand :is(img,svg) {
    width: clamp(8rem, 39vw, 10rem);
  }

  body[data-page="/"] .site-header .language-switcher a {
    min-width: 44px;
    opacity: 1;
  }

  body[data-page="/"] .site-header .language-switcher a[aria-current="true"],
  body[data-page="/"] .site-header .language-switcher > span {
    display: none;
  }

  body[data-page="/"] .fallback-nav { padding-top: 5.5rem; }

  body[data-page="/"] .hero {
    min-height: max(40rem, 100svh);
    padding-top: 12rem;
    padding-bottom: 6.5rem;
  }

  body[data-page="/"] .hero[data-photo="sculptural"] .hero-media img {
    object-position: 56% 50%;
  }

  body[data-page="/"] .hero[data-photo="sculptural"] .hero-shade {
    background:
      linear-gradient(180deg, #080a0c70 0%, #080a0c00 24%),
      linear-gradient(0deg, #080a0cf5 0%, #080a0cd6 32%, #080a0ca8 52%, #080a0c28 68%, #080a0c00 78%);
  }

  body[data-page="/"] .hero .eyebrow {
    margin-bottom: 1rem;
    font-size: .75rem;
    letter-spacing: .16em;
  }

  body[data-page="/"] .hero[data-photo="sculptural"] .hero-title {
    max-width: 7ch;
    font-size: clamp(3.6rem, 15vw, 5rem);
    line-height: 1.02;
  }

  html[lang="es"] body[data-page="/"] .hero[data-photo="sculptural"] .hero-title {
    max-width: 11ch;
    font-size: clamp(2.8rem, 11.5vw, 4rem);
    line-height: 1.06;
  }

  body[data-page="/"] .hero-link {
    margin-top: 1.75rem;
    padding-inline: 1.25rem;
    gap: 1.25rem;
  }

  body[data-page="/"] .hero-statement {
    max-width: min(100%, 26rem);
    margin-top: 1.5rem;
    font-size: clamp(1.25rem, 5.3vw, 1.5rem);
    letter-spacing: 0;
    line-height: 1.32;
  }

  body[data-page="/"] .scroll-hint { bottom: 1.5rem; }
}

/* A short landscape viewport still has room for navigation and the full CTA.
   Content remains in normal flow, including when text is enlarged. */
@media (min-width: 701px) and (max-height: 600px) {
  body[data-page="/"] .hero {
    min-height: max(34rem, 100svh);
    padding-top: 10rem;
    padding-bottom: 6rem;
  }

  body[data-page="/"] .hero[data-photo="sculptural"] .hero-title {
    font-size: clamp(3.8rem, 7vw, 5rem);
  }

  html[lang="es"] body[data-page="/"] .hero[data-photo="sculptural"] .hero-title {
    font-size: clamp(3rem, 5.8vw, 4.5rem);
  }
}
