/* Top page specific styles */

.top-page .hero {
  position: relative;
  min-height: 100svh;
  padding: clamp(2rem, 5vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}

/* Top page migration: scoped to the new design shell. */
body.is-top-page .top-page {
  min-height: 100svh;
  overflow-x: clip;
  color: var(--top-text);
  background: transparent;
}

body.is-top-page .top-page::before {
  display: none;
}

body.is-top-page .section {
  position: relative;
  min-height: 100vh;
  padding: 120px 6vw;
}

body.is-top-page .hero {
  width: 100%;
  height: 100svh;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
}

body.is-top-page .hero-media,
body.is-top-page .hero-slide {
  position: absolute;
  inset: 0;
}

body.is-top-page .hero-media {
  z-index: 0;
  overflow: hidden;
}

body.is-top-page .hero-slide {
  opacity: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  will-change: opacity;
}

body.is-top-page .hero-slide:first-child {
  opacity: 1;
}

body.is-top-page .hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
}

body.is-top-page .hero-vignette {
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(242, 238, 231, 0.04), rgba(242, 238, 231, 0.2)),
    radial-gradient(circle at 50% 52%, transparent 0 46%, rgba(242, 238, 231, 0.55) 100%);
}

body.is-top-page .weight-loader {
  position: absolute;
  right: 6vw;
  bottom: 38px;
  left: 6vw;
  z-index: 3;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: center;
  width: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(16, 16, 20, 0.54);
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
}

body.is-top-page .weight-loader span {
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
}

body.is-top-page .weight-line {
  height: 2px;
  overflow: hidden;
  background: rgba(16, 16, 20, 0.16);
}

body.is-top-page .weight-line i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(16, 16, 20, 0.18), rgba(186, 22, 143, 0.38), rgba(16, 16, 20, 0.18));
  animation: topLoadWeight 5s ease-in-out infinite;
}

@keyframes topLoadWeight {
  50% {
    width: 100%;
  }

  100% {
    width: 0;
    transform: translateX(100%);
  }
}

body.is-top-page h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 76px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: 0;
}

body.is-top-page .about-sequence {
  position: relative;
  height: 320svh;
  min-height: 1500px;
}

body.is-top-page .about-sticky {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  height: 100svh;
  min-height: 540px;
  padding: clamp(42px, 5vw, 72px) 6vw clamp(36px, 4vw, 56px);
  overflow: hidden;
  isolation: isolate;
}

body.is-top-page .about-heading {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  width: fit-content;
}

body.is-top-page .about-description {
  width: 25ch;
  max-width: 100%;
  margin: clamp(14px, 1.8vw, 20px) 0 0;
  color: var(--top-muted);
  font-family: var(--font-body-en);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

body.is-top-page .about-particles {
  position: absolute;
  top: 53%;
  left: 50%;
  width: min(68vmin, 640px);
  height: min(68vmin, 640px);
  transform: translate(-50%, -50%);
  contain: layout paint style;
}

body.is-top-page .about-particle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(8px, 1.18vmin, 12px);
  height: clamp(8px, 1.18vmin, 12px);
  overflow: visible;
  color: var(--top-text);
  opacity: 0;
  will-change: transform, opacity;
}

body.is-top-page .about-particle path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

body.is-top-page .about-counter {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  color: rgba(16, 16, 20, 0.34);
  font-family: var(--font-display);
  font-size: clamp(14px, 1.4vw, 18px);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
  transition: color 180ms ease;
}

body.is-top-page .about-counter.is-arriving {
  color: rgba(16, 16, 20, 0.76);
}

body.is-top-page .about-actions {
  position: relative;
  z-index: 2;
  display: flex;
  grid-column: 1 / -1;
  grid-row: 3;
  gap: 10px;
  justify-self: center;
}

body.is-top-page .about-actions .button {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.32);
  font-size: 0.9rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

body.is-top-page .about-actions .button:hover,
body.is-top-page .about-actions .button:focus-visible {
  background: rgba(255, 255, 255, 0.72);
  transform: translateY(-2px);
}

body.is-top-page .about-actions .button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

body.is-top-page .contact-section {
  display: block;
  min-height: 100svh;
  padding: clamp(88px, 13svh, 140px) 6vw clamp(150px, 24svh, 240px);
}

body.is-top-page .contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(38px, 5vw, 64px);
  width: min(100%, 720px);
}

body.is-top-page .contact-content {
  min-width: 0;
}

body.is-top-page .contact-description {
  max-width: 38ch;
  margin: 0;
  color: var(--top-muted);
  font-family: var(--font-body-en);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.6;
}

body.is-top-page .contact-email {
  display: inline-block;
  max-width: 100%;
  margin-top: clamp(40px, 5vw, 56px);
  color: var(--top-text);
  font-family: var(--font-value-en);
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.35;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
  transition: opacity 0.2s ease, text-decoration-color 0.2s ease;
}

body.is-top-page .contact-email:hover,
body.is-top-page .contact-email:focus-visible {
  text-decoration-color: currentColor;
}

body.is-top-page .contact-email:hover {
  opacity: 0.72;
}

body.is-top-page .contact-email:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

@media (max-width: 900px) {
  body.is-top-page .section {
    padding: 100px 20px;
  }

  body.is-top-page .hero {
    height: 100svh;
    min-height: 100svh;
    padding: 0;
  }

  body.is-top-page .contact-section {
    min-height: 100svh;
    padding: 80px 20px 140px;
  }

}

@media (max-width: 620px) {
  body.is-top-page .weight-loader {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 768px) {
  body.is-top-page .hero {
    height: calc(100svh - var(--mobile-header-block-size));
    min-height: calc(100svh - var(--mobile-header-block-size));
  }

  body.is-top-page .about-sequence {
    height: 285svh;
    min-height: 1200px;
  }

  body.is-top-page .about-sticky {
    top: 0;
    height: 100svh;
    min-height: 500px;
    padding: 42px 20px 32px;
  }

  body.is-top-page .about-particles {
    top: 51%;
    width: min(82vw, 480px);
    height: min(82vw, 480px);
  }

  body.is-top-page .about-particle {
    width: clamp(7px, 2.25vw, 10px);
    height: clamp(7px, 2.25vw, 10px);
  }

  body.is-top-page .about-actions {
    width: 100%;
  }

  body.is-top-page .about-actions .button {
    flex: 1;
    min-width: 0;
    padding-inline: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-top-page .hero-slide {
    animation: none;
    opacity: 0;
    will-change: auto;
  }

  body.is-top-page .hero-slide:first-child {
    opacity: 1;
  }

  body.is-top-page .about-sequence {
    height: 200svh;
    min-height: 1000px;
  }

  body.is-top-page .about-particle {
    will-change: auto;
  }

  body.is-top-page .about-counter,
  body.is-top-page .about-actions .button {
    transition: none;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  body.is-top-page .about-sequence {
    height: 190svh;
    min-height: 950px;
  }
}
