/* The 3D hero's stage on the home page: the frames on canvases, the words over them, the camera
   alone drawn over the words, the cards, the loading line and the scroll cue. Carried over from the
   hero project's web/index.html; hero.css (also in this folder) styles the words and the cards.
   Loaded on the home page only, after styles.css and hero.css. */
html,body{overscroll-behavior:none}
.stage{position:relative;height:100vh;overflow:hidden;background:#EDEAE4}
.stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
#plate{z-index:1}
#rest{z-index:1;visibility:hidden}        /* the first and last frames, moving with the mouse */
.stage .shade{z-index:2}
.stage .hero{position:absolute;inset:0;z-index:3;min-height:0}
.stage .hero .copy{will-change:transform,opacity}
#subject{z-index:4;pointer-events:none}
.stage .packages{position:absolute;opacity:0;pointer-events:none}
.stage .packages.in{opacity:1;pointer-events:auto}
.stage .packages.leaving{opacity:0;transition:opacity .32s ease;pointer-events:none}
.stage .packages.leaving .pkg,.stage .packages.leaving .fine{animation:none}
#load{position:absolute;left:0;bottom:0;height:2px;width:100%;z-index:70;background:var(--accent);
  transform-origin:0 50%;transform:scaleX(0);transition:opacity .4s ease}
#load.done{opacity:0}
.cue{position:absolute;left:50%;bottom:22px;z-index:6;transform:translateX(-50%);font-family:var(--m);
  font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:var(--muted);transition:opacity .4s ease}
.cue span{display:block;width:1px;height:26px;margin:8px auto 0;background:currentColor;
  animation:cue 1.8s ease-in-out infinite}
@keyframes cue{0%,100%{transform:scaleY(.35);transform-origin:top}50%{transform:scaleY(1);transform-origin:top}}
.playing .cue,.ended .cue{opacity:0}
/* a scroll before the frames are in waits once (player.js canPlay): the hint stays up and reads
   "Loading", and the loading line along the bottom thickens */
.waiting .cue{opacity:1}
.waiting #load{height:3px}

/* the site's header over the stage is the hero's header; the section under the stage starts
   flush with it */
.home main{padding-top:0}

/* The side rail stays clear of the page: on a laptop narrower than this it would sit on top of
   the right-hand column of the sections under the hero, so it's left out there. */
@media (max-width:1360px){
  .rail{display:none}
}

/* Phones and narrow windows: the cards sit over the room only on a wide screen. Below that the
   stage keeps the words and the 3D, and the full pricing table is a short scroll down. */
@media (max-width:1040px){
  .stage .packages{display:none}
}

/* ── The still version of the hero (Nov 9): phones and narrow windows ──────────────────────────
   build.py decides as the page loads (STILL_GATE adds .still-hero to <html> under 1040 px) and
   then never loads the 3D hero's frames or scripts. In its place: the same words first, then his
   camera with the lens off (images/hero-camera-apart.webp, the hero's camera-alone layer, no
   background), then the three package cards, each coming up as it scrolls into view (site.js). The rules
   below hold at any width, so turning an iPad sideways after it loads keeps the cards in place. */
.mhero{display:none}
.still-hero .stage{display:none}
.still-hero .mhero{display:block;padding-top:var(--navh,72px);background:var(--page)}
.mhero-copy{padding-top:clamp(44px,10vw,80px)}
/* his camera with the lens off, floating on the page; lit from the upper right like everything
   else, so its shadow falls down and to the left */
.mhero-cam{margin:clamp(34px,9vw,60px) auto 0;padding:0 12px;max-width:680px}
.mhero-cam img{display:block;width:100%;height:auto;
  filter:drop-shadow(-12px 22px 18px rgba(34,22,12,.17)) drop-shadow(-3px 6px 5px rgba(34,22,12,.13));
  animation:cam-in 1.4s cubic-bezier(.16,1,.3,1) .15s both, cam-float 6s ease-in-out 1.6s infinite}
@keyframes cam-in{from{opacity:0;transform:translate3d(0,24px,0)}to{opacity:1;transform:none}}
@keyframes cam-float{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(0,-7px,0)}}
.mhero .eyebrow{white-space:normal}
.mhero h1{font-size:clamp(44px,12.4vw,84px)}
.mhero .sub{font-size:17px;line-height:1.55;max-width:46ch}
.mhero .cta{flex-wrap:wrap}

/* the cards, stacked: hero.css draws them for the room on a wide screen in vw; these are phone sizes */
.mhero .mcards{position:static;left:auto;top:auto;z-index:auto;display:flex;flex-direction:column;
  align-items:stretch;gap:30px;padding:40px 0 64px;max-width:600px;margin:0 auto}
.mcards .pkg,.mcards .pkg.featured{width:auto;margin:0}
.mcards .pkg .face,.mcards .pkg.featured .face,.mcards .pkg:nth-child(1) .face,.mcards .pkg:nth-child(3) .face{
  height:auto;min-height:0;padding:28px 24px 22px;border-radius:14px}
.mcards .pkg.featured .face{padding:34px 26px 24px}
.mcards .pkg .tier{font-size:11.5px}
.mcards .pkg .tab{padding:6px 13px 5px;font-size:10px}
.mcards .pkg .price{gap:8px;margin-top:12px}
.mcards .pkg .what{margin-top:12px;min-height:0;font-size:16px}
.mcards .pkg.featured .what{font-size:17px}
.mcards .pkg .rule{margin:16px 0 18px;width:34px}
.mcards .pkg ul{gap:10px}
.mcards .pkg li,.mcards .pkg.featured li{padding-left:18px;font-size:15px}
.mcards .pkg li::before{width:6px;height:6px}
.mcards .pkg .foot{margin-top:22px;padding-top:18px}
.mcards .pkg .pick{font-size:11.5px;padding-bottom:4px}
.mcards .pkg.featured .pick{padding:14px 20px;border-radius:6px;font-size:12px}
.mcards .fine{position:static;transform:none;white-space:normal;text-align:center;align-self:center;
  margin:4px 0 0;padding:10px 16px;font-size:10.5px;line-height:1.6;border-radius:12px}
/* each card comes up as it scrolls into view (site.js adds .in), the way they come up in the room */
.still-hero .mcards .pkg{opacity:0}
.still-hero .mcards .pkg.in{animation:pkg-in 1.05s cubic-bezier(.16,1,.3,1) both}
@media (prefers-reduced-motion:reduce){.still-hero .mcards .pkg.in,.mhero-cam img{animation:none;opacity:1}}
