/* HOME only. The original fixed gradient continues underneath later sections. */
.page-home #top.bm-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  --bm-hero-inset: max(88px, calc((100vw - 1200px) / 2));
  padding: 132px var(--bm-hero-inset) 112px;
  color: #fff;
  background: #050607;
}
.bm-hero-scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.bm-hero-canvas { display: block; width: 100%; height: 100%; }
.bm-hero-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 55% 50%, transparent 28%, #0004 76%, #0009 100%); opacity: .2; pointer-events: none; }
.bm-hero-copy { position: relative; z-index: 2; width: 51%; max-width: 650px; text-align: left; }
.bm-hero-eyebrow { display: flex; align-items: center; gap: 17px; margin-bottom: 34px; color: var(--color-gold); font: 400 11px/1.6 var(--sans-en); letter-spacing: .3em; text-transform: uppercase; }
.bm-hero-eyebrow::before { content: ''; display: block; width: 38px; height: 1px; flex-shrink: 0; background: currentColor; }
.bm-hero-title { margin: 0; font: 500 clamp(36px, 3.6vw, 58px)/1.55 var(--serif-jp); letter-spacing: .035em; }
html[lang="en"] .bm-hero-title { font: 400 clamp(39px, 4.1vw, 64px)/1.2 var(--serif-en); letter-spacing: .01em; }
.bm-hero-lead { margin-top: 27px; color: #d2d9df; font: 300 clamp(15px, 1.35vw, 19px)/2 var(--sans-jp); letter-spacing: .06em; }
html[lang="en"] .bm-hero-lead { font-family: var(--sans-en); letter-spacing: .02em; }
.bm-hero-actions { display: flex; justify-content: flex-start; gap: 16px; margin-top: 39px; flex-wrap: wrap; }
.bm-hero-scroll { position: absolute; z-index: 2; bottom: 30px; left: var(--bm-hero-inset); display: flex; align-items: center; gap: 17px; color: #8c9baa; font: 10px/1.5 var(--sans-en); letter-spacing: .27em; }
.bm-hero-scroll .scroll-hint-line { display: inline-block; width: 28px; height: 1px; background: currentColor; animation: none; }
.bm-hero-annotations { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; visibility: hidden; }
.bm-hero-knowledge { font-family: monospace; font-weight: 400; fill: #546b84; }
.bm-hero-caption { font-family: "SFMono-Regular", Consolas, monospace; font-weight: 400; fill: #839bb5; }
.bm-hero-loader { position: fixed; inset: 0; z-index: 1002; display: flex; align-items: center; justify-content: center; background: #050607; opacity: 0; visibility: hidden; transition: opacity .55s ease, visibility .55s; pointer-events: none; }
.bm-hero-loader-inner { position: absolute; left: 50%; top: 50%; width: min(248px, 65vw); transform: translate(-50%, -50%); }
.bm-hero-loader img { display: block; width: 143px; height: auto; margin: 0 auto 35px; }
.bm-hero-progress { height: 1px; background: #263444; overflow: hidden; }
.bm-hero-progress span { display: block; height: 100%; background: #a9cbe9; transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.bm-hero-loader-meta { display: flex; justify-content: space-between; margin-top: 13px; color: #8196ad; font: 9px/1.6 "SFMono-Regular", Consolas, monospace; letter-spacing: 2.1px; }
.bm-hero-controls { position: absolute; right: max(var(--bm-hero-inset), env(safe-area-inset-right)); bottom: max(25px, env(safe-area-inset-bottom)); z-index: 6; }
.bm-hero-control { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 8px 13px; border: 1px solid #62798f66; border-radius: 2px; background: #05090e55; color: #a8bbcd; font: 10px/1.6 var(--sans-jp); letter-spacing: .08em; cursor: pointer; transition: border-color .2s, color .2s; }
.bm-hero-control:hover, .bm-hero-control:focus-visible { color: #e0edf8; border-color: #a3c7e7; }
.bm-hero-control[hidden] { display: none; }
/* Keep the scrollbar and page width unchanged across the entire opening. */
html.bm-hero-loading .hero-gradient, html.bm-hero-loading .hg-blob,
html.bm-hero-covering .hero-gradient, html.bm-hero-covering .hg-blob { animation-play-state: paused; }
/* The fixed lower-page blur surfaces are unnecessary behind the opaque HERO. */
html.bm-hero-loading .hero-gradient, html.bm-hero-covering .hero-gradient { display: none; }
html.bm-hero-loading .bm-hero-loader { opacity: 1; visibility: visible; pointer-events: auto; touch-action: none; }
/* Once ready, header and copy are present from the first frame of the motion. */
@media (max-width: 1100px) and (min-width: 901px) { .bm-hero-title { font-size: 36px; } .bm-hero-eyebrow { font-size: 9px; letter-spacing: .23em; } }
@media (max-width: 900px) {
  .page-home #top.bm-hero { min-height: max(740px, 100svh); --bm-hero-inset: clamp(32px, 12vw, 52px); align-items: flex-start; padding: 132px var(--bm-hero-inset) 390px; }
  .bm-hero-copy { width: 100%; max-width: 610px; }
  .bm-hero-title { font-size: clamp(32px, 6.5vw, 46px); line-height: 1.5; }
  html[lang="en"] .bm-hero-title { font-size: clamp(35px, 7vw, 51px); }
  .bm-hero-eyebrow { margin-bottom: 24px; font-size: 9px; letter-spacing: .23em; }
  .bm-hero-lead { margin-top: 20px; font-size: 14px; line-height: 1.9; }
  .bm-hero-actions { margin-top: 25px; }
  .bm-hero-scroll { left: var(--bm-hero-inset); bottom: 29px; font-size: 9px; }
  .bm-hero-controls { right: max(var(--bm-hero-inset), env(safe-area-inset-right)); bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .bm-hero-loader, .bm-hero-progress span { transition: none; }
}
@media print { .bm-hero-scene, .bm-hero-loader, .bm-hero-controls, .bm-hero-annotations { display: none; } .page-home #top.bm-hero { min-height: auto; background: #050607; } .bm-hero-copy { width: 100%; opacity: 1 !important; } }

/* Native text remains in the document; offscreen layout/paint can be skipped. */
@supports (content-visibility: auto) {
  .page-home section[data-bm-section] { content-visibility: auto; contain-intrinsic-size: auto 900px; }
}
/* Shared grid rows reserve the tallest slide without measuring every slide. */
.page-home .cs-slider-track { display: grid; }
.page-home .cs-slide { position: relative; inset: auto; grid-area: 1 / 1; min-width: 0; }
@media print { .page-home section[data-bm-section] { content-visibility: visible; contain-intrinsic-size: none; } }
