/* A scroll-driven photograph study. The Oryx owns its separate controller. */
.hero-page {
  --hero-screen: 100vh;
  --hero-distance: 150vh;
  --hero-reveal-distance: 75vh;
  --hero-handover: .89;
  --hero-focal-x: 52.9427083333%;
  --hero-focal-y: 66.8518518519%;
}
@supports (height: 100svh) {
  .hero-page { --hero-screen: 100svh; --hero-distance: 150svh; --hero-reveal-distance: 75svh; }
}
.hero-track { position: relative; height: var(--hero-screen); color: #fbf2e9; }
.hero-scene { position: relative; height: var(--hero-screen); overflow: hidden; isolation: isolate; }
.hero-photo, .hero-detail, .hero-landscape, .hero-portal, .hero-shade { position: absolute; inset: 0; pointer-events: none; }
.hero-photo { display: block; z-index: 1; transform-origin: var(--hero-focal-x) var(--hero-focal-y); }
.hero-photo img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--hero-focal-x) var(--hero-focal-y); }
.hero-detail { z-index: 1; opacity: 0; transition: opacity 200ms ease; }
.hero-detail-camera { position: absolute; left: 0; top: 0; width: 400px; height: 300px; transform-origin: 0 0; }
.hero-detail-plane { position: absolute; left: 0; top: 0; display: block; width: 1586px; height: 992px; max-width: none; transform-origin: 0 0; transform: var(--detail-registration); clip-path: var(--detail-contour, inset(100%)); }
.hero-landscape, .hero-portal {
  z-index: 0;
  background-image: var(--landscape-shade, linear-gradient(rgba(23,23,33,.5), rgba(23,23,33,.8))), var(--landscape-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-portal { z-index: 2; opacity: 0; }
.hero-shade {
  z-index: 3;
  background: linear-gradient(90deg, rgba(14,20,22,.66), rgba(14,20,22,.62) 47%, rgba(14,20,22,.08) 80%), linear-gradient(180deg, rgba(14,20,22,.2), transparent 62%, rgba(14,20,22,.08));
}
.hero-copy {
  position: absolute; z-index: 4; top: 27%; left: var(--gutter, 4vw);
  width: min(640px, calc(100% - 2 * var(--gutter, 4vw))); max-width: 47%;
  font-family: Arial, Helvetica, sans-serif; color: #fbf2e9;
}
.hero-copy h1 { margin: 0 0 24px; font-family: inherit; font-size: clamp(44px, 4.6vw, 72px); font-weight: 400; line-height: 1.05; letter-spacing: -.035em; }
.hero-copy p { max-width: 570px; margin: 0 0 20px; font-size: clamp(16px, 1.35vw, 21px); line-height: 1.4; }
.hero-copy p:last-of-type { margin-top: clamp(30px, 4vh, 60px); font-size: clamp(14px, 1.1vw, 17px); }
.hero-copy .button { background: transparent; color: #d1b17a; border: 1px solid #d1b17a; border-radius: 999px; min-height: 44px; }
.hero-copy .button:hover { background: #d1b17a; color: #171721; }
.hero-scroll { position: absolute; z-index: 4; left: 50%; bottom: max(22px, env(safe-area-inset-bottom)); transform: translateX(-50%); min-height: 44px; display: flex; align-items: center; gap: 14px; padding: 8px 16px; color: #fbf2e9; font-size: 13px; white-space: nowrap; }
.hero-arrival { position: relative; z-index: 2; }
.hero-reveal-spacer { height: 0; pointer-events: none; }
/* Services already include the header space in their padding. Neutralize the
   global scroll-padding here, including native links and initial URL hashes. */
.hero-page .hero-arrival { scroll-margin-top: calc(-1 * (var(--header-occupied, 88px) + 16px)); }

/* Enhancement is opt-in after hero.js has measured the existing document. */
.hero-page.hero-ready .hero-track { height: calc(var(--hero-screen) + var(--hero-distance) * var(--hero-handover) + var(--hero-reveal-distance)); }
.hero-page.hero-ready .hero-scene { position: sticky; top: 0; }
.hero-page.hero-ready .hero-photo { transform: translate3d(var(--hero-shift-x, 0px), var(--hero-shift-y, 0px), 0) scale(var(--hero-scale, 1)); opacity: var(--hero-photo-opacity, 1); will-change: transform; }
.hero-page.hero-ready[data-hero-detail-state="ready"] .hero-detail { opacity: 1; }
.hero-page.hero-ready .hero-detail-camera { transform: var(--hero-detail-camera); opacity: var(--hero-detail-opacity, 0); }
.hero-page.hero-ready .hero-shade { opacity: var(--hero-copy-opacity, 1); }
.hero-page.hero-ready .hero-portal { opacity: var(--hero-portal-opacity, 0); clip-path: var(--hero-portal-clip, inset(50%)); }
.hero-page.hero-ready[data-hero-complete="true"] .hero-landscape,
.hero-page.hero-ready[data-hero-complete="true"] .hero-portal { visibility: hidden; }
.hero-page.hero-ready .hero-copy, .hero-page.hero-ready .hero-scroll { opacity: var(--hero-copy-opacity, 1); }
/* The browser pins the complete, naturally sized section. The following spacer
   supplies its hold distance, including when cards or mobile copy grow taller.
   Keep the fragment on the non-sticky parent and land it at the end of the fade. */
.hero-page.hero-ready .hero-arrival {
  margin-top: calc(-1 * (var(--hero-screen) + var(--hero-reveal-distance)));
  scroll-margin-top: calc(-1 * (var(--header-occupied, 88px) + 16px + var(--hero-reveal-distance)));
  opacity: var(--hero-arrival-opacity, 0);
  pointer-events: none;
}
.hero-page.hero-ready .hero-reveal-content { position: sticky; top: 0; }
.hero-page.hero-ready .hero-reveal-spacer { height: var(--hero-reveal-distance); }
.hero-page.hero-ready[data-hero-phase="content"] .hero-arrival { pointer-events: auto; }
.hero-page.hero-ready .site-header { background: transparent; border-bottom-color: transparent; }
.hero-page.hero-ready[data-hero-phase="content"] .site-header { background: rgba(23,23,33,.94); border-bottom-color: rgba(165,139,98,.24); }
.hero-page.hero-ready[data-hero-phase="content"] .hero-photo { visibility: hidden; will-change: auto; }
.hero-page.hero-ready[data-hero-phase="content"] .hero-detail { visibility: hidden; }
.hero-page.hero-ready[data-hero-copy-hidden="true"] .hero-copy,
.hero-page.hero-ready[data-hero-copy-hidden="true"] .hero-scroll { visibility: hidden; pointer-events: none; }

@media (min-width: 801px) and (min-height: 501px), (min-width: 1001px) {
  .hero-page .mobile-nav { left: auto; right: var(--gutter); width: min(320px, calc(100% - 2 * var(--gutter))); padding: 12px 24px 20px; border: 1px solid var(--line); }
}

@media (max-width: 800px), (max-width: 1000px) and (max-height: 500px) {
  .hero-copy { top: calc(var(--header-occupied, 76px) + 48px); max-width: none; width: calc(100% - 2 * var(--gutter, 22px)); }
  .hero-copy h1 { font-size: clamp(36px, 8vw, 56px); margin-bottom: 18px; }
  .hero-copy p { max-width: 460px; font-size: 16px; line-height: 1.45; }
  .hero-copy p:last-of-type { margin-top: 26px; font-size: 14px; }
  .hero-shade { background: linear-gradient(180deg, rgba(14,20,22,.64), rgba(14,20,22,.64) 64%, rgba(14,20,22,.12) 82%, rgba(14,20,22,.18)); }
  .hero-scroll { bottom: max(12px, env(safe-area-inset-bottom)); }
}
@media (max-height: 620px) {
  .hero-copy { top: calc(var(--header-occupied, 76px) + 15px); }
  .hero-copy h1 { font-size: clamp(30px, 5.2vw, 48px); margin-bottom: 14px; }
  .hero-copy p { font-size: 14px; margin-bottom: 12px; }
  .hero-copy p:last-of-type { margin-top: 16px; font-size: 13px; }
  .hero-scroll { left: auto; right: var(--gutter, 22px); transform: none; bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-page.hero-ready .hero-track { height: var(--hero-screen); }
  .hero-page.hero-ready .hero-scene { position: relative; }
  .hero-page.hero-ready .hero-photo { transform: none; opacity: 1; will-change: auto; }
  .hero-page.hero-ready[data-hero-phase="content"] .hero-photo { visibility: visible; }
  .hero-page.hero-ready .hero-portal { display: none; }
  .hero-page.hero-ready .hero-detail { display: none; transition: none; }
  .hero-page.hero-ready .hero-shade, .hero-page.hero-ready .hero-copy, .hero-page.hero-ready .hero-scroll { opacity: 1; }
  .hero-page.hero-ready .hero-arrival {
    margin-top: 0; opacity: 1; pointer-events: auto;
    scroll-margin-top: calc(-1 * (var(--header-occupied, 88px) + 16px));
  }
  .hero-page.hero-ready .hero-reveal-content { position: relative; }
  .hero-page.hero-ready .hero-reveal-spacer { height: 0; }
}
