/* ==========================================================================
   HOME HERO (js/hero/orbit.js): mockup G from good-mischief-next, approved
   1 Nov 2026. A cel-shaded cinema camera turns on a dotted blue glow that
   follows the cursor; "Good Mischief" (eyes in the o's) and "Photo and film
   studio" sit bottom left. Scroll and the letters fly apart past you, the
   camera turns to face you and you dive through the lens onto the statement
   screen, which is the site's own (styles.css), untouched.
   Its colours and type are scoped here, so the rest of the site is unchanged.
   ========================================================================== */

.hero-g {
  --g-ink: #2a1d15; --g-paper: #ffffff; --g-mute: #7a716b; --title: #43291a;
  --g-gutter: clamp(16px, 3vw, 40px);
  position: relative; height: 312vh; background: var(--g-paper); color: var(--g-ink);
}
.lens-on .hero.hero-g { height: 312vh; }   /* ends as the lens covers the screen (orbit.js END) */
.g-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.g-stage > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* the stage fades in once the camera is ready, so nothing jumps while it loads */
.hero-g .g-stage > :not(.statement) { transition: opacity 600ms var(--ease-out); }
html:not(.hero-ready):not(.hero-static) .hero-g .g-stage > :not(.statement) { opacity: 0; }

/* the hero's own top bar: just the site's ninja and Start a project, in the same
   spots as the site bar (styles.css .nav); no links over the hero (Casey, 1 Nov) */
.hero-nav {
  position: absolute; inset: 0 0 auto 0; z-index: 6;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--pad);
  transition: opacity 0.45s ease;
}
.hero-nav.is-gone { opacity: 0; pointer-events: none; }
@media (max-width: 760px) { .hero-nav { align-items: flex-start; padding-top: 14px; } }

/* the subheading (placed by orbit.js) and the scroll cue */
.hero-g .hero-sub {
  position: absolute; left: 0; right: 0; z-index: 3; margin: 0; text-align: center; pointer-events: none;
  font-family: var(--display); font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; color: var(--g-mute);
}
.hero-g .hero-sub span { display: inline-block; white-space: pre; will-change: transform, opacity; }
.hero-g .hero-meta {
  position: absolute; left: var(--g-gutter); right: var(--g-gutter); bottom: 26px; z-index: 3;
  display: flex; justify-content: flex-end; align-items: end;
  font: 12.5px var(--ui); color: var(--g-mute); pointer-events: none;
}
.hero-g .cue { display: inline-flex; align-items: center; gap: 10px; }
.hero-g .cue i { width: 1px; height: 26px; background: currentColor; transform-origin: top; animation: cue 1.8s ease-in-out infinite; }

/* the letters that fly apart */
.burst { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.burst-letter { position: absolute; will-change: transform, opacity; }
.burst-letter canvas { display: block; width: 100%; height: 100%; }
.burst-letter i { position: absolute; left: 0; top: 0; border-radius: 50%; background: radial-gradient(ellipse 12% 10% at 34% 30%, #fff 88%, transparent 100%), var(--title); }

/* the statement, lifted into the stage: it shows through the iris */
.hero-g .statement { z-index: 4; visibility: hidden; }

/* no WebGL: the title in plain type, and the statement as its own screen below */
.g-fallback { display: none; }
.hero-static .hero-g { height: 100svh; }
.hero-static .g-fallback {
  display: block; position: absolute; left: var(--g-gutter); bottom: 90px; margin: 0;
  font: 700 clamp(64px, 12vw, 180px)/0.92 var(--display); letter-spacing: -0.02em; color: var(--title);
}
.hero-static .g-fallback span { display: block; margin-top: 0.25em; font-size: 0.17em; font-weight: 600; letter-spacing: -0.015em; color: var(--g-mute); }
.hero-static .hero-g .hero-sub { display: none; }   /* the fallback carries its own */

/* 22 Nov (Casey): ribbed-glass hero. The title's darker-brown block edge is drawn into the
   letter canvases (drawGlyphs in js/hero/wordmark.js), not a CSS filter: the filter lagged the scroll */
.hero-g .hero-sub { text-shadow: 1px 1px 0 #c9c2bc, 2px 2px 0 #c9c2bc; }
