@media (max-width: 740px), (max-width: 1366px) and (pointer: coarse) {
  .hero .lead {
    color: #fff;
    text-shadow: 0 1px 5px rgb(0 0 0 / 85%), 0 0 12px rgb(0 0 0 / 70%);
  }
}

.hero-art {
  --orbit-x: 72%;
  --orbit-y: 48%;
  --photo-width: 118%;
  --photo-height: 120%;
}

.hero-art .hero-backdrop {
  inset: 0;
  block-size: auto;
  overflow: hidden;
}

/* The main pyramid's centroid in the 1672 × 941 photograph is at 62% / 42%. */
.hero-art .hero-backdrop img {
  position: absolute;
  left: var(--orbit-x);
  top: var(--orbit-y);
  width: var(--photo-width);
  height: var(--photo-height);
  max-width: none;
  object-fit: cover;
  object-position: 62% 42%;
  transform: translate(-62%, -42%);
}

.hero-art .brand-orbit {
  position: absolute;
  inset: auto;
  left: var(--orbit-x);
  top: var(--orbit-y);
  width: clamp(180px, 31vw, 390px);
  margin: 0;
  transform: translate(-50%, -50%);
  mask-image: none;
}

@media (min-width: 741px) and (pointer: fine), (min-width: 1367px) {
  .hero-art .brand-orbit { width: min(43vw, 660px); }
}

@media (min-width: 741px) and (max-width: 1366px) and (orientation: portrait) and (pointer: coarse) {
  .hero .actions .secondary { background-color: rgb(10 10 10 / 72%); }
}

@media (max-width: 740px), (max-width: 960px) and (max-height: 500px) and (pointer: coarse) {
  .hero .actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
    align-items: stretch;
    max-inline-size: 24rem;
    gap: 10px;
  }

  .hero .actions .arrow {
    display: none;
  }

  .hero .actions .button {
    --glass-tint: rgb(107 40 15 / 62%);
    --glass-solid: #692e19;
    --glass-edge: rgb(255 181 143 / 72%);
    inline-size: 100%;
    min-block-size: 50px;
    padding: 11px 12px;
    color: #fff;
    background: var(--glass-solid);
    border: 1px solid var(--glass-edge);
    border-radius: 999px;
    text-align: center;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 14%), 0 3px 12px rgb(0 0 0 / 15%);
  }

  .hero .actions .secondary {
    --glass-tint: rgb(23 21 21 / 58%);
    --glass-solid: #302c2a;
    --glass-edge: rgb(255 255 255 / 44%);
  }

  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .hero .actions .button {
      background: linear-gradient(150deg, rgb(255 255 255 / 13%), transparent 65%), var(--glass-tint);
      -webkit-backdrop-filter: blur(12px) saturate(135%);
      backdrop-filter: blur(12px) saturate(135%);
    }
  }

  .hero .actions .button:active {
    background: var(--glass-solid);
  }

  @media (prefers-reduced-transparency: reduce), (forced-colors: active) {
    .hero .actions .button {
      background: var(--glass-solid);
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
      box-shadow: none;
    }
  }
}

@media (max-width: 740px) and (orientation: portrait), (max-width: 1366px) and (orientation: portrait) and (pointer: coarse) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "label" "headline" "intro" "stage" "actions";
    gap: 0;
    padding-block: clamp(32px, 8vw, 52px) max(20px, env(safe-area-inset-bottom));
  }

  .hero-copy { display: contents; }
  .hero .section-label {
    grid-area: label;
    margin-block-end: 18px;
    font-size: .75rem;
    letter-spacing: .1em;
  }
  .hero h1 { grid-area: headline; }
  .hero .lead { grid-area: intro; margin-block-start: 16px; }
  .hero .actions { grid-area: actions; margin-block-start: 0; z-index: 1; }
  .hero-art {
    --orbit-x: 50%;
    --orbit-y: 50%;
    --photo-width: 134%;
    --photo-height: 122%;
    grid-area: stage;
    position: relative;
    inset: auto;
    height: clamp(184px, min(63vw, 34svh), 310px);
    min-height: 0;
    margin-inline: calc(-1 * var(--pad));
  }

  .hero-art .brand-orbit {
    width: clamp(155px, min(48vw, 27svh), 245px);
  }

  .hero-art .hero-backdrop {
    inset-block: -96px;
  }

  .hero-art .hero-backdrop::after {
    background: linear-gradient(180deg, #0a0a0a, #0a0a0a96 15%, transparent 37%, transparent 71%, #0a0a0a6b 88%, #0a0a0a);
  }
}

@media (max-width: 960px) and (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: clamp(12px, 3vw, 24px);
    min-height: calc(100svh - 73px);
    padding-block: clamp(12px, 4svh, 20px);
  }

  .hero-art { position: absolute; inset: 0; min-height: 0; }
  .hero .section-label { font-size: .7rem; margin-block-end: 9px; }
  .hero h1 { font-size: clamp(2.5rem, 12svh, 3.5rem); }
  .hero .lead { font-size: 1rem; line-height: 1.4; margin-block-start: 10px; }
  .hero .actions { margin-block-start: 15px; }

  .hero-art .hero-backdrop::after {
    background: linear-gradient(90deg, #0a0a0af2, #0a0a0aba 34%, #0a0a0a14 68%),
                linear-gradient(0deg, #0a0a0a96, transparent 25%);
  }
}

@media (max-width: 359px) {
  .hero .actions .button { padding-inline: 6px; }
}
