/* Only the hero gets the deeper ground; the rest of the site keeps its existing grey. */
.hero-section{--bg:#080a0e;--c-carbon:8 10 14;background:var(--bg)}
/* the glass always reaches past the top of the page, behind the bar (captain 2026-11-07, "the header has two different
   distinct ..."): in a short window 12vh fell short of the bar's height, and the flat ground behind the bar showed as a slab */
.hero-bg{top:min(-12vh,calc(-1 * var(--header-h,78px) - 2rem))}
/* The existing hero camera carries the image, glass and trail together. */
/* The ink reaches up behind the bar to the top of the page, exactly as far as the glass above (captain 2026-11-12: "a
   weird cutoff line ... in the header"). It was the section's own box, which starts one bar's height down the screen, so
   the colour its current carries upward stopped there in a straight line. hero-ink.js keeps the athletes in the
   section's frame and reads this reach from the layer's offsetTop. */
.hero-ink{display:none;position:absolute;inset:0;top:min(-12vh,calc(-1 * var(--header-h,78px) - 2rem));z-index:2;pointer-events:none;contain:strict}
.hero-ink.is-visible{display:block}
.hero-ink canvas{display:block;width:100%;height:100%}
/* Mask the colour pass to the original letters. The untouched white image stays underneath. */
#siteHeader .logo.hero-wordmark{position:relative}
#siteHeader .logo.hero-wordmark::after{content:"";position:absolute;inset:0;pointer-events:none;
  -webkit-mask:url(brand/tora-wordmark-mask.svg) left center/74% auto no-repeat;
  mask:url(brand/tora-wordmark-mask.svg) left center/74% auto no-repeat;
  background:linear-gradient(110deg,transparent 28%,rgb(var(--c-teal)) 42%,#D83995 52%,#DDA096 60%,transparent 74%);
  background-size:300% 100%;background-position:var(--wordmark-sweep-x,135%) 0;
  opacity:var(--wordmark-sweep,0)}
@media(prefers-reduced-motion:reduce){.hero-ink{display:none!important}}

/* The hero holds still from the first pixel of scroll (captain 2026-11-03: "I want to feel like a depth Z-axis style
   scrolling"): it sticks just under the bar it starts under, and its ground reaches up behind the bar, so no line shows. */
.depth-stage>.hero-section{top:var(--header-h);box-shadow:0 calc(-1 * var(--header-h)) 0 var(--bg)}

/* Give the moving photographs their own scroll distance before the system reveal.
   CSS sticky owns the hold; the existing depth camera starts when the section arrives.
   One pace for the whole opening (captain 2026-11-07: "the scrolling takes a little bit too long to go from train with
   precision to one cohesive training system ... the rate of scrolling is not the same"): each athlete, the statement,
   the sports photos and the phones' arrival each take about three quarters of a screen. Each athlete took a whole
   screen before, and the statement came a third of a screen after the last one. hero-ink.js runs the athletes over
   the same 2.25 screens. Then (captain 2026-11-10: "so slow on the train with precision, and suddenly so fast on the one
   cohesive training page"): the athletes take 1.8 screens (0.6 each) and the statement gets the other 0.45 to be read
   in. It enters that much sooner and leaves where it did, so Meet Tora starts where it did (the bottom padding below). */
@media(prefers-reduced-motion:no-preference){#system-intro{margin-top:151svh;padding-bottom:calc(var(--space-24) + 45svh)}}
@media(prefers-reduced-motion:no-preference) and (max-width:820px){#system-intro{padding-bottom:calc(var(--space-16) + 45svh)}}
