/* MJH skeleton loading states. Shared by every marketing page.
   The overlay (.sk) is aria-hidden, pointer-events:none and fixed, so it never
   changes layout or hides content from crawlers. It only shows while the head
   script has set html.sk-loading, and it fades out in 200ms when that clears.
   Style: Registered Hairline. Boxless blocks, fading top hairline, a corner
   bracket, and a slow gold shimmer (never gray). */

/* ---- Fallback faces sized to the web fonts, so the font swap does not move text.
   Widths measured against Inter, Playfair Display and Syne. Bold faces are declared on their own
   so the fallback keeps real bold glyphs instead of regular ones. ---- */
@font-face { font-family: "MJH Inter Fallback"; font-weight: 100 599;
  src: local("Arial"), local("ArialMT"), local("Helvetica Neue"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 107.4%; ascent-override: 90.2%; descent-override: 22.5%; line-gap-override: 0%; }
@font-face { font-family: "MJH Inter Fallback"; font-weight: 600 900;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Helvetica-Bold"), local("Liberation Sans Bold");
  size-adjust: 101.4%; ascent-override: 95.5%; descent-override: 23.8%; line-gap-override: 0%; }
@font-face { font-family: "MJH Playfair Fallback"; font-weight: 100 750;
  src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Times-Bold"), local("Liberation Serif Bold");
  size-adjust: 106.5%; ascent-override: 101.6%; descent-override: 23.6%; line-gap-override: 0%; }
@font-face { font-family: "MJH Playfair Fallback"; font-weight: 751 900;
  src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT"), local("Times-Bold"), local("Liberation Serif Bold");
  size-adjust: 107.6%; ascent-override: 100.6%; descent-override: 23.3%; line-gap-override: 0%; }
@font-face { font-family: "MJH Syne Fallback"; font-weight: 100 900;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Neue Bold"), local("Helvetica-Bold"), local("Liberation Sans Bold");
  size-adjust: 107.4%; }

/* ---- Overlay shell ---- */
.sk { --sk-g: 201, 168, 76; position: fixed; inset: 0; z-index: 90; background: #0A0A0A; overflow: hidden;
  pointer-events: none; opacity: 0; visibility: hidden; contain: layout paint style;
  transition: opacity .2s ease, visibility 0s linear .2s; }
html.sk-loading .sk { opacity: 1; visibility: visible; transition: none; }
html.sk-loading body { overflow-x: clip; }

/* ---- Building blocks ---- */
.sk-b { display: block; position: relative; overflow: hidden; border-radius: 3px; max-width: 100%;
  background: rgba(var(--sk-g), .07); border: 1px solid rgba(var(--sk-g), .12); }
.sk-b::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(232, 212, 139, .16), transparent);
  animation: sk-shimmer 2.6s ease-in-out infinite; }
@keyframes sk-shimmer { to { transform: translateX(100%); } }
.sk-b.is-gold { background: rgba(var(--sk-g), .16); border-color: rgba(var(--sk-g), .3); }
.sk-b.is-line { height: 1px; border: 0; background: linear-gradient(90deg, rgba(var(--sk-g), .45), transparent); }
.sk-b.is-line::after { display: none; }
.sk-center { margin-left: auto; margin-right: auto; }

/* Registered Hairline panel. Fading top rule plus a top-left corner bracket. */
.sk-card { position: relative; padding: 1.6rem 0 0; }
.sk-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgba(var(--sk-g), .5), rgba(var(--sk-g), 0)); }
.sk-card::after { content: ""; position: absolute; top: 0; left: 0; width: 14px; height: 14px;
  border-top: 1px solid rgba(var(--sk-g), .75); border-left: 1px solid rgba(var(--sk-g), .75); }
.sk-card .sk-b + .sk-b { margin-top: .7rem; }

/* Measured layout. Each page's markup places bars at the real first-screen positions,
   so the skeleton hands off to the content without a visible jump. */
.sk-p { position: absolute; }
.sk-d, .sk-m { position: absolute; inset: 0; }
.sk-m { display: none; }
@media (max-width: 768px) { .sk-d { display: none; } .sk-m { display: block; } }
.sk-card.sk-p { overflow: hidden; }
.sk-un { top: 86px; }
@media (max-width: 768px) { .sk-un { top: 76px; } }

/* Home. Star field, pulsing gold orb, centered scene text. Mirrors #stage::before below. */
@media (max-width: 860px) and (min-width: 769px) { .sk-home .sk-d { display: none; } .sk-home .sk-m { display: block; } }
.sk-stars { display: block; position: absolute; inset: 0; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 8% 14%, rgba(232,212,139,.55), transparent), radial-gradient(1px 1px at 17% 71%, rgba(232,212,139,.4), transparent),
    radial-gradient(1px 1px at 26% 38%, rgba(232,212,139,.5), transparent), radial-gradient(1.5px 1.5px at 34% 86%, rgba(232,212,139,.45), transparent),
    radial-gradient(1px 1px at 43% 9%, rgba(232,212,139,.5), transparent), radial-gradient(1px 1px at 52% 62%, rgba(232,212,139,.35), transparent),
    radial-gradient(1.5px 1.5px at 61% 27%, rgba(232,212,139,.5), transparent), radial-gradient(1px 1px at 69% 80%, rgba(232,212,139,.4), transparent),
    radial-gradient(1px 1px at 77% 18%, rgba(232,212,139,.5), transparent), radial-gradient(1px 1px at 84% 54%, rgba(232,212,139,.45), transparent),
    radial-gradient(1.5px 1.5px at 91% 90%, rgba(232,212,139,.4), transparent), radial-gradient(1px 1px at 96% 33%, rgba(232,212,139,.5), transparent),
    radial-gradient(1px 1px at 5% 52%, rgba(232,212,139,.35), transparent), radial-gradient(1px 1px at 47% 44%, rgba(232,212,139,.3), transparent); }
.sk-orb, #stage::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(620px, 92vw); aspect-ratio: 1; margin: calc(min(620px, 92vw) / -2) 0 0 calc(min(620px, 92vw) / -2);
  border-radius: 50%; background: radial-gradient(circle, rgba(201,168,76,.22) 0%, rgba(201,168,76,.09) 34%, rgba(201,168,76,0) 68%);
  animation: sk-orb 3.2s ease-in-out infinite; pointer-events: none; }
.sk-orb { display: block; }
@keyframes sk-orb { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.04); } }
/* The real stage carries the same orb until the 3D canvas mounts, so the handoff has no jump. */
#stage::before { z-index: 0; transition: opacity .6s ease; }
#stage:has(canvas)::before { opacity: 0; animation: none; }
body.no3d #stage::before { display: none; }

/* ---- Reduced motion. Static skeleton, no shimmer or pulse, quick fade. ---- */
@media (prefers-reduced-motion: reduce) {
  .sk-b::after, .sk-orb, #stage::before { animation: none; }
  .sk-b::after { display: none; }
  .sk { transition-duration: .01s; }
}
