/* Product-page shell (staging/approved, 2026-11-08): what every approved product experience shares with the site.
   1. The persistent brand header: the Hormuz logo (the experience's own header logo) and the Made in Oman mark,
      fixed, at exactly the homepage's size, place and spacing, above every scene and above the page-change fade.
   2. The site's existing way back (as on the site's product pages): one quiet link, centred at the top on wider
      screens, under the logo on phones.
   3. The page-change fade through navy, so moving between the homepage and a product is one continuous shot.
   Nothing here touches the experiences' animation. */
:root { --logo-h: 34px; --moo-h: 38px; --moo-gap: 24px; --logo-aspect: 2.684; }
@media (max-width: 700px) { :root { --logo-h: 28px; --moo-h: 27px; --moo-gap: 16px; } }

/* 1. brand header: the experience's header row sits above the fade; its logo at the site's sizes */
.top { z-index: 41 !important; }
.top__logo { height: var(--logo-h) !important; }
.moo {
  position: fixed; z-index: 41; margin: 0; pointer-events: none;
  top: calc(env(safe-area-inset-top) + 20px + (var(--logo-h) - var(--moo-h)) / 2);
  left: calc(var(--gutter) + var(--logo-h) * var(--logo-aspect) + var(--moo-gap));
  height: var(--moo-h);
}
.moo img { display: block; height: 100%; width: auto; }
@media (min-width: 701px) and (max-width: 960px) {
  .moo { --moo-h: 30px; top: calc(env(safe-area-inset-top) + 20px + var(--logo-h) + 12px); left: var(--gutter); }
}

/* 2. the way back, styled exactly as the site's product pages (.product-mode .product-back) */
.shell-back {
  position: fixed; z-index: 41; left: 50%; transform: translateX(-50%);
  top: calc(env(safe-area-inset-top) + 26px); padding: 6px 0;
  font-family: var(--font-ui); font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;   /* the site's approved readability size */
  text-decoration: none; white-space: nowrap; color: var(--beige); opacity: 0.85; touch-action: manipulation;
  transition: opacity 200ms ease;
}
.shell-back > span[aria-hidden] { display: inline-block; margin-inline-end: 6px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .shell-back:hover { opacity: 1; } .shell-back:hover > span[aria-hidden] { transform: translateX(-4px); } }
.shell-back:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; opacity: 1; }
html[lang="ar"] .shell-back { direction: rtl; font-size: 13.9px; letter-spacing: 0; text-transform: none; }
html[lang="ar"] .shell-back > span[aria-hidden] { scale: -1 1; }
@media (max-width: 700px) {
  .shell-back { left: var(--gutter); transform: none; top: calc(env(safe-area-inset-top) + 58px); padding-block: 13px; margin-block: -7px; }
}

/* 3. the page-change fade (as on the site), beneath the brand header */
html::after {
  content: ""; position: fixed; inset: 0; z-index: 40; background: var(--navy, #0C0E16);
  opacity: 0; pointer-events: none; transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
html.page-veiled::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { html::after { transition-duration: 0.01s; } }
