/* Global non-destructive fixes loaded by script.js across TEL pages. */

.skip-link {
  position: fixed;
  left: 14px;
  top: max(12px, env(safe-area-inset-top));
  transform: translateY(calc(-100% - 18px));
  padding: 12px 16px;
  background: #ffffff;
  color: #09090c;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  z-index: 2500;
  transition: transform .18s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
}

body.nav-open .skip-link {
  opacity: 0;
  pointer-events: none;
}

/* Product hero refinement inspired by the proposal styling. */
[data-page="product"] .page-hero,
[data-page="product"] .product-hero {
  overflow: visible;
  padding-top: 108px;
  padding-bottom: 88px;
}

[data-page="product"] .page-hero-grid {
  align-items: center;
  gap: clamp(36px, 6vw, 92px);
}

[data-page="product"] .page-hero-copy {
  max-width: 46rem;
}

[data-page="product"] .page-hero-copy h1 {
  max-width: 7.5ch;
  font-size: clamp(4.2rem, 7vw, 7.2rem);
  line-height: .92;
  letter-spacing: -0.05em;
  margin-bottom: 26px;
}

[data-page="product"] .page-hero-copy > p:not(.eyebrow) {
  max-width: 34rem;
  font-size: 1.04rem;
  line-height: 1.74;
}

[data-page="product"] .hero-art,
[data-page="product"] .product-page-art {
  min-height: 540px;
  width: min(100%, 780px);
  margin-inline: auto;
  isolation: isolate;
}

[data-page="product"] .product-page-art > img:first-child {
  width: 100%;
  max-width: 780px;
  display: block;
  object-fit: contain;
  border-radius: 28px;
}

[data-page="product"] .product-main-image.product-composition {
  position: relative;
  width: min(100%, 790px);
  margin-inline: auto;
  min-height: 520px;
}

[data-page="product"] .product-main-image.product-composition .composition-box {
  width: 80%;
  left: 5%;
  top: 7%;
  filter: drop-shadow(0 30px 80px rgba(0,0,0,.36));
}

[data-page="product"] .product-main-image.product-composition .composition-rocket {
  width: 104%;
  right: -7%;
  bottom: 0;
  filter: drop-shadow(0 26px 66px rgba(0,0,0,.26));
}

@media (max-width: 820px) {
  .skip-link {
    display: none !important;
  }

  .site-header,
  .site-header.scrolled {
    top: max(10px, env(safe-area-inset-top));
    margin-top: 0;
  }

  .home-hero,
  .page-hero {
    padding-top: calc(var(--header-h) + 48px);
  }

  [data-page="home"] .home-hero {
    padding-top: calc(var(--header-h) + 56px);
  }

  [data-page="home"] .hero-stage {
    min-height: 360px;
  }

  [data-page="home"] .hero-product {
    width: min(92vw, 560px);
    max-width: none;
  }

  [data-page="home"] .hero-product-frame {
    width: 82%;
    left: 3%;
    top: 9%;
  }

  [data-page="home"] .hero-product-rocket {
    width: 108%;
    right: -14%;
    bottom: 1%;
  }

  [data-page="home"] .hero-product-label {
    left: 2%;
    bottom: 2%;
    max-width: 220px;
  }

  [data-page="product"] .page-hero,
  [data-page="product"] .product-hero {
    padding-top: calc(var(--header-h) + 74px + env(safe-area-inset-top));
    padding-bottom: 38px;
  }

  [data-page="product"] .page-hero-grid {
    gap: 20px;
  }

  [data-page="product"] .page-hero-copy {
    order: 1;
    max-width: 100%;
    text-align: left;
  }

  [data-page="product"] .page-hero-copy h1 {
    max-width: 8ch;
    font-size: clamp(3.4rem, 14vw, 5.4rem);
    margin-bottom: 18px;
  }

  [data-page="product"] .page-hero-copy > p:not(.eyebrow) {
    max-width: none;
    font-size: .98rem;
    line-height: 1.72;
  }

  [data-page="product"] .page-hero-copy .button-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }

  [data-page="product"] .page-hero-copy .button-row .button {
    width: 100%;
  }

  [data-page="product"] .hero-art,
  [data-page="product"] .product-page-art {
    order: 2;
    min-height: 0;
    width: 100%;
  }

  [data-page="product"] .product-page-art > img:first-child {
    width: 118%;
    max-width: none;
  }

  [data-page="product"] .product-main-image.product-composition {
    width: 100%;
    min-height: 320px;
  }

  [data-page="product"] .product-main-image.product-composition .composition-box {
    width: 86%;
    left: 3%;
    top: 8%;
  }

  [data-page="product"] .product-main-image.product-composition .composition-rocket {
    width: 112%;
    right: -15%;
    bottom: 0;
  }
}

@media (max-width: 600px) {
  .home-hero,
  .page-hero {
    padding-top: calc(var(--header-h) + 38px);
  }

  [data-page="home"] .hero-stage {
    min-height: 320px;
  }

  [data-page="home"] .hero-product-frame {
    width: 84%;
    left: 2%;
    top: 10%;
  }

  [data-page="home"] .hero-product-rocket {
    width: 112%;
    right: -18%;
    bottom: 0;
  }

  [data-page="home"] .hero-product-label {
    left: 2%;
    bottom: 1%;
    max-width: 190px;
  }

  [data-page="product"] .page-hero,
  [data-page="product"] .product-hero {
    padding-top: calc(var(--header-h) + 86px + env(safe-area-inset-top));
    padding-bottom: 28px;
  }

  [data-page="product"] .product-main-image.product-composition {
    min-height: 280px;
  }

  [data-page="product"] .product-main-image.product-composition .composition-box {
    width: 88%;
    left: 2%;
    top: 8%;
  }

  [data-page="product"] .product-main-image.product-composition .composition-rocket {
    width: 116%;
    right: -19%;
    bottom: -1%;
  }
}
