/* Scoped art-direction-20260928 ensemble — unadopted stage only (.ensemble-stage / .ens-hero).
   Tokens and layout derived from poster.css; no global body/html takeover from proof styles.css. */
.ensemble-stage {
  --ink: #0b0616;
  --gold: #d6b45a;
  --gold-2: #ecd28a;
  --paper: #f3ecdc;
  --f-ui: "Rajdhani", "Zen Kaku Gothic New", system-ui, sans-serif;
  --f-jp: "Zen Kaku Gothic New", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --pad: clamp(18px, 4.4cqw, 64px);
  /* the site's content edge (study16 --content-edge: max(--page-pad, (100% − 1168px) / 2)), recomputed on the
     hero's own width because that token's 100% would resolve against the stage here. ensemble-stage.js replaces it
     with the measured left edge of the real LIVE section (--ens-edge) and keeps it current on resize. */
  --edge: var(--ens-edge, max(var(--page-pad, 40px), calc((100cqw - 1168px) / 2)));
  --sea: #170b41;
  container-type: inline-size;
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  color: var(--paper);
  isolation: isolate;
}

.ensemble-stage a {
  color: inherit;
  text-decoration: none;
}

/* The shell constrains ordinary sections. This composition owns the viewport,
   while its authored stage still caps the character scale at wide sizes. */
body.study16 #main > .ens-hero.ensemble-stage {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  font-family: var(--f-jp);
}

/* Handover may draw the brand mark, but navigation and the live status are
   functional controls. Keep them readable during the first arrival too. */
body.s55:has(.ensemble-stage) .s13-header[data-s55-head="reading"][data-s55-arrive] > :is(.hero-now, #s14-nav, .s14-menu-toggle) {
  animation: none;
  opacity: 1;
}

/* Pull poster canvas under the in-flow masthead (≈56px) without a second spacer block. */
.ensemble-stage .ens-poster {
  --u: min(calc(100cqw / 1440), 1px);
  --dy: 0px;
  --dt: 0px;
  position: relative;
  overflow: hidden;
  margin-top: -56px;
  height: calc(900 * var(--u));
  background: #1e0f4c;
}

.ensemble-stage .ens-stage-inner {
  position: absolute;
  top: 0;
  left: 50%;
  width: calc(1440 * var(--u));
  height: 100%;
  transform: translateX(-50%);
  isolation: isolate;
}

.ensemble-stage .haze {
  position: absolute;
  z-index: 1;
  top: var(--dy);
  left: calc(-600 * var(--u));
  width: calc(2640 * var(--u));
  height: calc(900 * var(--u));
  display: block;
  pointer-events: none;
}

.ensemble-stage .sg-fill,
.ensemble-stage .sg-ground,
.ensemble-stage .sg-sea {
  fill: var(--sea);
}

.ensemble-stage .sg-arc {
  fill: none;
  stroke: #36257a;
  stroke-width: 1.2;
}

.ensemble-stage .sg-arc--outer {
  stroke: #4a3499;
  stroke-width: 1.5;
}

.ensemble-stage .sg-fan.is-crest .sg-arc--outer {
  stroke: var(--gold);
  stroke-width: 2.2;
}

.ensemble-stage .sg-fan.is-edge .sg-arc--outer {
  stroke: #8a74d8;
  stroke-opacity: 0.7;
}

.ensemble-stage .wm.s55-mark {
  filter: none;
  --wy: 108;
  position: absolute;
  z-index: 7;
  margin: 0;
  /* stage-relative: the centred desktop stage starts (100cqw − 1440u) / 2 into the page (0 up to 1440) */
  left: calc(var(--edge) - (100cqw - 1440 * var(--u)) / 2);
  top: calc(var(--wy) * var(--u) + var(--dt));
  width: calc(460 * var(--u));
  aspect-ratio: 1933 / 503;
  overflow: hidden;
}

.ensemble-stage .wm img {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 110.04%;
  height: auto;
  max-width: none;
  transform: translate(-50%, -50%);
}

.ensemble-stage .wm-p {
  filter: url(#ens-wm-paper);
  clip-path: inset(0 0 0 23.6%);
}

.ensemble-stage .wm-g {
  filter: url(#ens-wm-gold);
  clip-path: inset(0 76.4% 0 0);
}

.ensemble-stage .pf {
  --s: 330;
  position: absolute;
  margin: 0;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u) + var(--dy));
  width: calc(var(--s) * var(--u));
}

.ensemble-stage .pf .fig {
  position: relative;
  z-index: var(--z);
  display: block;
  width: 100%;
  height: auto;
}

.ensemble-stage .p-ns {
  --x: 860;
  --y: 250;
  --z: 3;
  --lx: 140;
  --ly: -6;
  --la: -100%;
}

.ensemble-stage .p-hk {
  --x: 620;
  --y: 430;
  --z: 5;
  --lx: 150;
  --ly: -18;
  --la: -100%;
}

.ensemble-stage .p-rk {
  --x: 830;
  --y: 490;
  --z: 4;
  --lx: 316;
  --ly: 130;
  --la: 0;
}

.ensemble-stage .p-so {
  --x: 1080;
  --y: 150;
  --z: 5;
  --lx: 210;
  --ly: 288;
  --la: 0;
}

.ensemble-stage .tag {
  position: absolute;
  z-index: 8;
  left: calc(var(--lx) * var(--u));
  top: calc(var(--ly) * var(--u));
  transform: translateX(var(--la, 0));
  font: 700 max(13px, calc(15 * var(--u))) / 1 var(--f-jp);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.ensemble-stage .tag a {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 6px 8px 6px;
  background: #1e0f4c;
  border-bottom: 1px solid rgba(243, 236, 220, 0.8);
}

.ensemble-stage .tag .tag-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ensemble-stage .tag svg {
  flex: none;
  color: var(--gold);
}

.ensemble-stage .tag a:hover {
  color: var(--gold-2);
  border-bottom-color: var(--gold-2);
}

.ensemble-stage .tag .s13-live-badge.s55-live-badge {
  position: static;
  inset: auto;
  top: auto;
  left: auto;
  margin: 0;
  transform: none;
}

.ensemble-stage .tag .s13-live-badge.s55-live-badge:not([hidden]) {
  display: inline-flex;
  align-items: center;
  padding: 2px 4px;
  border: 0;
  background: var(--sea);
  color: var(--gold);
  font: 700 12px / 1.15 var(--f-ui);
  letter-spacing: 0.1em;
  text-shadow: none;
}

.ensemble-stage .tag .s13-live-badge.s55-live-badge:not([hidden])::before {
  content: none !important;
  display: none !important;
}

.ensemble-stage .tag .s55-live-badge[hidden],
.ensemble-stage .tag .s13-live-badge.s55-live-badge[hidden] {
  display: none !important;
}

.ensemble-stage .copy {
  --cy: 290;
  position: absolute;
  z-index: 7;
  left: calc(var(--edge) - (100cqw - 1440 * var(--u)) / 2);
  top: calc(var(--cy) * var(--u) + var(--dt));
}

.ensemble-stage .eyebrow {
  display: flex;
  gap: 10px;
  margin: 0 0 calc(16 * var(--u));
  font: 700 max(10px, calc(11 * var(--u))) / 1.4 var(--f-ui);
  letter-spacing: 0.3em;
  color: var(--gold);
  white-space: nowrap;
}

.ensemble-stage .eyebrow span + span::before {
  content: "/";
  margin-right: 10px;
  color: rgba(214, 180, 90, 0.45);
}

.ensemble-stage .lead {
  margin: 0 0 calc(22 * var(--u));
  font-size: max(13px, calc(16 * var(--u)));
  line-height: 1.85;
  color: rgba(243, 236, 220, 0.9);
  white-space: nowrap;
}

.ensemble-stage .cta {
  display: flex;
  align-items: center;
  gap: calc(22 * var(--u));
}

.ensemble-stage .u {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  font: 700 max(11px, calc(13 * var(--u))) / 1 var(--f-ui);
  letter-spacing: 0.2em;
  white-space: nowrap;
}

.ensemble-stage .u.primary {
  color: var(--gold-2);
}

.ensemble-stage .u.quiet {
  color: rgba(243, 236, 220, 0.78);
}

.ensemble-stage .u:hover {
  color: var(--paper);
}

@container (max-width: 1079px) {
  .ensemble-stage .ens-poster {
    --u: min(calc(100cqw / 768), 1px);
    --h: max(calc(840 * var(--u)), 700px);
    --dy: calc(var(--h) - 840 * var(--u));
    --dt: calc(var(--dy) * 0.4);
    height: var(--h);
    --off: calc(100cqw - 768 * var(--u));
  }

  .ensemble-stage .ens-stage-inner {
    left: auto;
    right: 0;
    transform: none;
    width: calc(768 * var(--u));
  }

  .ensemble-stage .haze {
    left: calc(-360 * var(--u));
    width: calc(1168 * var(--u));
    height: calc(840 * var(--u));
  }

  .ensemble-stage .wm.s55-mark {
    --wy: 92;
    left: calc(var(--edge) - var(--off));
    width: calc(300 * var(--u));
  }

  .ensemble-stage .pf {
    --s: 240;
  }

  .ensemble-stage .p-so {
    --x: 528;
    --y: 301;
    --lx: 72;
    --ly: -5;
    --la: 0;
  }

  .ensemble-stage .p-ns {
    --x: 368;
    --y: 374;
    --lx: 102;
    --ly: -22;
    --la: -100%;
  }

  .ensemble-stage .p-hk {
    --x: 194;
    --y: 505;
    --lx: 106;
    --ly: -27;
    --la: -100%;
  }

  .ensemble-stage .p-rk {
    --x: 346;
    --y: 548;
    --lx: 234;
    --ly: 92;
    --la: 0;
  }

  .ensemble-stage .tag {
    font-size: 14px;
  }

  .ensemble-stage .tag a {
    gap: 4px;
    padding: 5px 7px;
  }

  .ensemble-stage .copy {
    --cy: 200;
    left: calc(var(--edge) - var(--off));
  }

  .ensemble-stage .eyebrow {
    margin-bottom: 12px;
    font-size: 10px;
  }

  .ensemble-stage .lead {
    margin-bottom: 18px;
    font-size: 15px;
  }

  .ensemble-stage .cta {
    gap: 20px;
  }

  .ensemble-stage .u {
    font-size: 12px;
  }
}

@container (max-width: 560px) {
  .ensemble-stage .ens-poster {
    --u: min(calc(100cqw / 390), 1px);
    --dy: 0px;
    --dt: 0px;
    margin-top: -52px;
    /* ends about one fan-height (R 32) after the actions, not 125px later; the last stretch deepens into the
       LIVE surface colour so the section edge is a tone, not a line */
    height: calc(760 * var(--u));
    /* Text keeps a readable pixel size when the art scales down. Reserve its
       actual two-line lede/actions height plus breathing room at narrow widths. */
    min-height: calc(642 * var(--u) + 122px);
    background: linear-gradient(180deg, #1e0f4c 0, #1e0f4c calc(100% - 110 * var(--u)), var(--sea) 100%);
    --off: calc(100cqw - 390 * var(--u));
  }

  .ensemble-stage .ens-stage-inner {
    width: calc(390 * var(--u));
  }

  .ensemble-stage .haze {
    left: calc(-200 * var(--u));
    width: calc(790 * var(--u));
    height: calc(844 * var(--u));
  }

  .ensemble-stage .wm.s55-mark {
    --wy: 84;
    left: calc(var(--edge) - var(--off));
    width: calc(250 * var(--u));
  }

  .ensemble-stage .pf {
    --s: 186;
  }

  .ensemble-stage .p-so {
    --x: 214;
    --y: 164;
    --lx: 18;
    --ly: 26;
    --la: -100%;
  }

  .ensemble-stage .p-ns {
    --x: 110;
    --y: 272;
    --lx: 80;
    --ly: -14;
    --la: -100%;
  }

  .ensemble-stage .p-hk {
    --x: 4;
    --y: 372;
    --lx: 12;
    --ly: 176;
    --la: 0;
  }

  .ensemble-stage .p-rk {
    --x: 122;
    --y: 390;
    --lx: 74;
    --ly: 174;
    --la: 0;
  }

  .ensemble-stage .tag {
    font-size: 14px;
  }

  .ensemble-stage .tag a {
    gap: 4px;
    padding: 5px 7px;
  }

  .ensemble-stage .copy {
    /* Stacked phone: nudge copy down so four attached LIVE badges keep ≥24px vertical clearance to lede/CTA. */
    --cy: 642;
    left: calc(var(--edge) - var(--off));
  }

  .ensemble-stage .eyebrow {
    display: none;
  }

  .ensemble-stage .lead {
    margin-bottom: 20px;
    font-size: 15px;
  }

  .ensemble-stage .cta {
    gap: 20px;
  }

  .ensemble-stage .u {
    font-size: 13px;
  }
}

/* LIVE, on the stage page only: the wave's darkest violet carried on as the section's surface. On desktop/tablet the
   hero ends inside a plain whole-fan row of this colour (.sg-sea), so the pattern stops on its own scalloped line and
   the surface simply continues. Full-bleed via ::before; it reaches down through PRODUCTS' top margin (42px, 30px
   ≤520 — study48-products.css) and stops exactly where PRODUCTS' own ground begins. LIVE markup, data and text
   colours are unchanged; only its surfaces are tinted into the same family. */
body:has(.ensemble-stage) #main > .edition-live-wrap {
  position: relative;
  isolation: isolate;
  margin-top: 0;
}

body:has(.ensemble-stage) #main > .edition-live-wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: -42px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #170b41;
  pointer-events: none;
}

body:has(.ensemble-stage) #on-air .v8-live-group,
body:has(.ensemble-stage) #on-air > #v8-live-content > .v8-live-empty,
body:has(.ensemble-stage) #on-air:has(> #v8-live-content > .v8-live-empty) > .v8-live-foot {
  background: #22124f;
}

@media (max-width: 520px) {
  body:has(.ensemble-stage) #main > .edition-live-wrap::before {
    bottom: -30px;
  }
}

@container (max-width: 360px) {
  .ensemble-stage .tag {
    font-size: 13px;
  }

  .ensemble-stage .tag .tag-row {
    gap: 6px;
  }

  .ensemble-stage .u {
    font-size: 12px;
    letter-spacing: 0.14em;
  }

  .ensemble-stage .cta {
    gap: 16px;
  }
}
