/* PREVIEW v4 2026-09-16 · homepage intro: logo alone, then the hero builds as you scroll.
 * Without JS or with reduced motion: the logo screen sits above a normal, complete hero.
 */

/* ---------- the logo screen (base = static, stacked) ---------- */
.intro-logo {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(18px, 2.4vw, 28px); text-align: center; overflow: hidden;
}
.intro-glow {
  position: absolute; left: 50%; top: 50%; width: min(900px, 140vw); aspect-ratio: 1; pointer-events: none;
  transform: translate(-50%, -54%);
  background: radial-gradient(closest-side, rgba(214,95,53,0.26), rgba(242,210,170,0.35) 45%, rgba(247,242,233,0) 72%);
  animation: breathe 6s ease-in-out infinite alternate;
}
@keyframes breathe { from { opacity: 0.7; transform: translate(-50%, -54%) scale(0.94); } to { opacity: 1; transform: translate(-50%, -54%) scale(1.04); } }
.intro-mark { position: relative; width: clamp(120px, 16vw, 188px); aspect-ratio: 1; transform-origin: 50% 50%; will-change: transform; }
.intro-mark svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 18px 40px rgba(162,63,31,0.28)); }
.intro-word {
  position: relative; font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.1; letter-spacing: -0.01em; color: var(--ink);
}
.intro-word span { font-style: italic; font-weight: 400; color: var(--ember); }
.intro-scroll { position: absolute; left: 50%; bottom: clamp(22px, 4.5svh, 44px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; z-index: 2; }
.intro-scroll-label { font-size: 11px; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--muted); padding-left: 0.32em; animation: labelpulse 2.4s ease-in-out infinite; }
@keyframes labelpulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.intro-cue { position: relative; width: 1.5px; height: 42px; background: rgba(41,34,25,0.14); overflow: hidden; border-radius: 2px; }
.intro-cue span { position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--ember); animation: cue 2s cubic-bezier(0.65,0,0.35,1) infinite; }
@keyframes cue { to { top: 100%; } }
.intro-bloom { display: none; }
.intro-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.intro-mark, .intro-word { z-index: 2; }

/* load entrance, logo only */
html.intro .intro-mark { animation: markin 1.1s cubic-bezier(0.16,1,0.3,1) both; }
html.intro .intro-word { animation: wordin 1s cubic-bezier(0.16,1,0.3,1) 0.25s both; }
html.intro .intro-scroll { animation: cuein 0.8s ease 0.9s both; }
@keyframes cuein { from { opacity: 0; } }
@keyframes markin { from { opacity: 0; transform: scale(0.82) rotate(-8deg); } }
@keyframes wordin { from { opacity: 0; transform: translateY(14px); } }

/* ---------- the pinned stage (JS + motion allowed) ---------- */
html.intro.intro-on .intro-stage { position: relative; height: 217svh; }
html.intro.intro-on .intro-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
html.intro.intro-on .intro-logo { position: absolute; inset: 0; min-height: 0; z-index: 3; pointer-events: none; overflow: visible; }
html.intro.intro-on .intro-bloom {
  display: block; position: absolute; left: 50%; top: 42%; width: 150vmax; aspect-ratio: 1; pointer-events: none; z-index: 0;
  background: radial-gradient(closest-side, rgba(242,212,180,0.95), rgba(242,223,200,0.5) 40%, rgba(247,242,233,0) 70%);
  transform: translate(-50%, -50%) scale(0.2); opacity: 0;
}
html.intro.intro-on .intro-pin > .hero {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center;
}
html.intro.intro-on .intro-pin > .hero .wrap { padding-top: 64px; padding-bottom: 0; width: 100%; }
/* JS drives these; kill the CSS entrances that would fight it */
html.intro.intro-on .hero .eyebrow, html.intro.intro-on .hero .hero-sub, html.intro.intro-on .hero .hero-ctas, html.intro.intro-on .hero h1 {
  animation: none !important; transition: none !important;
}
html.intro.intro-on .hero h1 .iw { display: inline-block; overflow: clip; vertical-align: top; padding: 0.02em 0.08em 0.22em 0; margin: -0.02em -0.08em -0.22em 0; }
html.intro.intro-on .hero h1 .iw > span { display: inline-block; will-change: transform; }
html.intro.intro-on header.site { will-change: opacity; }
html.intro.intro-on .intro-mark, html.intro.intro-on .intro-word, html.intro.intro-on .intro-scroll { animation-fill-mode: backwards; }

/* sections after the stage slide up over it, so the page reads as one surface */
html.intro.intro-on .intro-stage + .band.overlap { margin-top: -6svh; }
html.scrub .band, html.scrub .showcase { transform: translate3d(0, calc((1 - var(--bp, 1)) * 60px), 0) scale(calc(0.965 + 0.035 * var(--bp, 1))); transform-origin: 50% 0; }

@media (max-width: 600px) {
  html.intro.intro-on .intro-stage { height: 201svh; }
  html.intro.intro-on .intro-stage + .band.overlap { margin-top: -4svh; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-glow, .intro-cue span, .intro-scroll-label { animation: none; }
  .intro-dust { display: none; }
}

/* while the intro runs, the menu logo holds one size so the docking target never moves */
html.intro.intro-on header.site .lockup svg { width: 28px; height: 28px; transition: none; }
html.intro.intro-on header.site .wordmark { font-size: 20px; transition: none; }
html.intro.intro-on header.site .nav { padding-top: 12px; padding-bottom: 12px; transition: none; }
