/* SovereignQ experience: optional full-screen chapter mode. Loaded only on experience.html.
   Without JS, or on narrow / short screens, every chapter is an ordinary section of a normal page. */

.page-experience { background: var(--green); color: var(--ivory); }
.page-experience ::selection { background: var(--ivory); color: var(--green); }
.page-experience :focus-visible { outline-color: var(--ivory); }
.ex-root { --pad: max(1.25rem, 4.2vw); --bar: 4.75rem; --rail: 5.75rem; --ex-ease: cubic-bezier(0.22, 1, 0.36, 1); position: relative; }

/* ---------------------------------------------------------------- chrome */
.ex-bar { position: sticky; inset-block-start: 0; z-index: 5; display: flex; align-items: center; gap: 1.5rem; padding: 0.9rem var(--pad); background: var(--green); }
.ex-brand img { display: block; width: 9.4rem; height: auto; }
.ex-brand .ex-logo-dark { display: none; }
.ex-logo-dark { display: none; }
.ex-count { margin: 0; font: 600 var(--fs-0)/1 var(--text); color: var(--sage-light); font-variant-numeric: tabular-nums; }
.ex-tools { margin-inline-start: auto; display: flex; gap: 0.5rem; align-items: center; }
.ex-tool { display: inline-flex; white-space: nowrap; align-items: center; min-height: 2.75rem; padding: 0.4rem 1rem; border: 1px solid var(--ivory-20); background: transparent; color: var(--ivory); font: 600 var(--fs-0)/1 var(--text); text-decoration: none; cursor: pointer; transition: background-color 160ms var(--ex-ease), border-color 160ms var(--ex-ease); }
.ex-tool:hover { border-color: var(--ivory); }
.ex-exit { background: var(--ivory); color: var(--green); border-color: var(--ivory); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 0.6rem), calc(100% - 0.6rem) 100%, 0 100%); }
[dir="rtl"] .ex-exit { clip-path: polygon(0 0, 100% 0, 100% 100%, 0.6rem 100%, 0 calc(100% - 0.6rem)); }
.ex-exit:hover { background: var(--sage-light); }
.ex-nav, .ex-hint { display: none; }

/* ---------------------------------------------------------------- scenes: shared */
.ex-scene { scroll-margin-top: 4rem; position: relative; padding: clamp(3rem, 9vw, 6rem) var(--pad); border-block-start: 1px solid var(--ivory-10); overflow: hidden; }
.ex-scene .ex-copy { position: relative; z-index: 1; max-width: 46rem; }
.ex-h { font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 4.4vw, 6.25rem); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; margin: 0 0 1.25rem; }
[lang="ar-SA"] .ex-h { line-height: 1.3; letter-spacing: 0; }
.ex-sub { font-size: clamp(var(--fs-2), 1.45vw, 2rem); line-height: 1.45; color: var(--sage-light); max-width: 40ch; margin: 0 0 1.5rem; text-wrap: pretty; }
.ex-body { font-weight: 600; margin: 0 0 0.75rem; color: var(--ivory); }
.ex-visual { margin: 0; }
.ex-visual img { display: block; width: 100%; height: auto; }
.ex-visual figcaption { display: flex; align-items: center; font-size: var(--fs-0); color: var(--sage-light); margin-block-start: 0.6rem; }
.ex-visual .mark { color: var(--sage-light); --mark-bg: var(--green); }
.ex-copy .tag { margin: 0; }
.ex-copy .mark { --mark-bg: var(--green); }
.ex-button { min-height: 2.9rem; padding: 0.55rem 1.3rem; border: 0; background: var(--ivory); color: var(--green); font: 600 var(--fs-1)/1 var(--text); cursor: pointer; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%); transition: transform 160ms var(--ex-ease), background-color 160ms var(--ex-ease); }
[dir="rtl"] .ex-button { clip-path: polygon(0 0, 100% 0, 100% 100%, var(--notch) 100%, 0 calc(100% - var(--notch))); }
.ex-button:hover { background: var(--sage-light); transform: translateY(-2px); }
.ex-button:active { transform: translateY(1px); }

/* vision */
.ex-status { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 0.6rem; }
.ex-status .tag { font-size: var(--fs-1); color: var(--ivory); }
.ex-film-row { margin: 2rem 0 0; }
.ex-hero { margin-block-end: 2rem; }

/* why: ivory plane, typographic contrast */
.ex-why { background: var(--ivory); color: var(--green); }
.ex-why ::selection { background: var(--green); color: var(--ivory); }
.ex-why :focus-visible { outline-color: var(--mint); }
.ex-why .ex-sub { color: var(--sage); }
.ex-why .ex-copy { max-width: none; }
.ex-versus { display: grid; gap: 2rem; margin-block-start: 2.5rem; }
.ex-v-title { font-family: var(--display); font-weight: 700; margin: 0; line-height: 1; }
.ex-v-line { margin: 0.6rem 0 0; }
.ex-access .ex-v-title { font-size: clamp(1.6rem, 2.2vw, 3rem); color: var(--sage); }
.ex-access .ex-v-line { color: var(--sage); font-size: var(--fs-2); }
.ex-capability { border-block-start: 3px solid var(--green); padding-block-start: 1.5rem; }
.ex-capability .ex-v-title { font-size: clamp(2.6rem, 6.4vw, 9rem); letter-spacing: -0.03em; }
.ex-capability .ex-v-line { font-size: clamp(var(--fs-2), 1.6vw, 2.25rem); font-weight: 600; }

/* discovery */
.ex-frontiers { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.15rem; }
.ex-frontiers li { display: flex; align-items: baseline; padding: 0.7rem 0; border-block-end: 1px solid var(--ivory-20); font-size: clamp(var(--fs-1), 1.1vw, 1.5rem); }
.ex-frontiers .mark { color: var(--sage-light); }

/* processor */
.ex-steps { margin-block-start: 1.5rem; }
.ex-step-frame { margin: 0 0 2rem; }
.ex-step-frame img { display: block; width: 100%; height: auto; }
.ex-step-frame figcaption { display: grid; gap: 0.35rem; margin-block-start: 0.75rem; }
.ex-step-name { font-family: var(--display); font-weight: 700; font-size: var(--fs-3); }
.ex-step-frame .tag { color: var(--sage-light); }
.ex-step-line { color: var(--sage-light); max-width: 52ch; }
.ex-ticks { display: none; }

/* universe */
.ex-uwrap { display: grid; gap: 2rem; margin-block-start: 1.5rem; }
.u-map { width: min(100%, 34rem); height: auto; }
.u-ring { fill: none; stroke: var(--ivory-20); stroke-width: 2; }
.u-node line { stroke: var(--ivory-20); stroke-width: 2; transition: stroke 240ms var(--ex-ease); }
.u-node circle { fill: var(--green); stroke: var(--sage-light); stroke-width: 3; transition: fill 240ms var(--ex-ease), r 240ms var(--ex-ease); }
.u-core circle { fill: var(--ivory); stroke: none; }
.u-node text { fill: var(--sage-light); font: 600 26px var(--text); transition: fill 240ms var(--ex-ease); }
.u-node.is-on text { fill: var(--ivory); }
.u-node { cursor: pointer; }
.u-node.is-on line { stroke: var(--mint); stroke-width: 3; }
.u-node.is-on circle { fill: var(--mint); stroke: var(--ivory); }
.u-core.is-on circle { fill: var(--ivory); stroke: var(--mint); stroke-width: 10; }
.ex-u-controls { display: grid; gap: 1.25rem; align-content: start; }
.ex-ring-name { margin: 0 0 0.4rem; font-size: var(--fs-0); font-weight: 600; color: var(--sage-light); }
.ex-ring-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ex-node { min-height: 2.75rem; padding: 0.45rem 0.95rem; border: 1px solid var(--ivory-20); background: transparent; color: var(--ivory); font: 600 var(--fs-0)/1.2 var(--text); cursor: pointer; text-align: start; transition: background-color 160ms var(--ex-ease), color 160ms var(--ex-ease), border-color 160ms var(--ex-ease); }
.ex-node:hover { border-color: var(--ivory); }
.ex-node[aria-pressed="true"] { background: var(--ivory); color: var(--green); border-color: var(--ivory); }
.ex-node-core { justify-self: start; font-family: var(--display); font-size: var(--fs-2); padding: 0.7rem 1.2rem; }
.ex-u-detail { min-height: 9.5rem; border-block-start: 1px solid var(--ivory-20); padding-block-start: 1rem; }
.ex-node-detail p { margin: 0 0 0.6rem; max-width: 42ch; }
.ex-node-name { font-family: var(--display); font-weight: 700; font-size: var(--fs-3); }
.ex-node-detail .tag { color: var(--sage-light); }

/* beyond */
.ex-apps { list-style: none; padding: 0; margin: 0; columns: 2 14rem; column-gap: 2rem; }
.ex-apps li { break-inside: avoid; padding: 0.55rem 0; border-block-end: 1px solid var(--ivory-20); font-weight: 600; font-size: clamp(var(--fs-1), 1.1vw, 1.5rem); }

/* nation: ivory plane, gated road */
.ex-nation .ex-sub { max-width: 52ch; }
.ex-nation .ex-copy { max-width: none; }
.ex-road { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0; }
.ex-road li { position: relative; padding: 1rem 0 1.1rem; border-block-start: 2px solid var(--ivory); }
.ex-road li p:not(.ex-road-when) { color: var(--sage-light); }
.ex-road li p { margin: 0; max-width: 30ch; }
.ex-road-when { font-family: var(--display); font-weight: 700; font-size: clamp(var(--fs-3), 2.2vw, 3rem); line-height: 1.1; margin-block-end: 0.4rem !important; }
.ex-road li:nth-child(n+4) { border-block-start-style: dashed; }

/* evidence */
.ex-evidence .ex-copy { max-width: none; }
.ex-ledger { display: grid; gap: 1.5rem; margin: 1.75rem 0 0; }
.ex-ledger div { border-block-start: 2px solid var(--ivory); padding-block-start: 0.9rem; }
.ex-ledger div:nth-child(3) { border-block-start-style: dashed; }
.ex-ledger dt { font-family: var(--display); font-weight: 700; font-size: var(--fs-3); margin-block-end: 0.5rem; }
.ex-ledger dd { margin: 0; color: var(--sage-light); max-width: 40ch; }
.ex-links { list-style: none; padding: 0; margin: 2.5rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; align-items: center; }
.ex-links a { color: var(--ivory); font-weight: 600; text-underline-offset: 0.3em; }
.ex-links .ex-exit-final { display: inline-flex; align-items: center; min-height: 2.9rem; padding: 0.55rem 1.3rem; background: var(--ivory); color: var(--green); text-decoration: none; }

/* film layer */
.ex-film { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: var(--green); padding: var(--pad); }
.ex-film[hidden] { display: none; }
.ex-film video { width: min(100%, calc((100dvh - 9rem) * 16 / 9)); height: auto; background: var(--green); }
.ex-film-close { position: absolute; inset-block-start: 1rem; inset-inline-end: var(--pad); }

/* home link into the experience (standard site) */
.ex-enter-row { margin: 1.25rem 0 0; }
.ex-enter { color: var(--ivory); font-weight: 600; text-underline-offset: 0.3em; }

/* ---------------------------------------------------------------- deck mode: one chapter per screen (JS sets .is-deck) */
@media (min-width: 900px) and (min-height: 560px) {
  .ex-root.is-deck { position: fixed; inset: 0; overflow: hidden; }
  .is-deck .ex-bar { position: absolute; inset-inline: 0; inset-block-start: 0; background: transparent; height: var(--bar); padding-block: 0; }
  .is-deck .ex-deck { position: absolute; inset: 0; }
  .is-deck .ex-scene { position: absolute; inset: 0; border: 0; padding: calc(var(--bar) + 2vh) var(--pad) calc(var(--rail) + 2vh); display: grid; align-items: center; visibility: hidden; opacity: 0; transition: opacity 620ms var(--ex-ease), visibility 0s linear 620ms; }
  .is-deck .ex-scene.is-active { visibility: visible; opacity: 1; transition: opacity 620ms var(--ex-ease), visibility 0s; z-index: 1; }
  .is-deck .ex-nav { position: absolute; inset-inline: 0; inset-block-end: 0; z-index: 5; height: var(--rail); display: flex; align-items: center; gap: 1rem; padding-inline: var(--pad); }
  .is-deck .ex-hint { display: block; position: absolute; inset-block-end: calc(var(--rail) - 0.5rem); inset-inline-end: var(--pad); margin: 0; font-size: var(--fs-0); color: var(--sage-light); z-index: 5; transition: opacity 400ms var(--ex-ease); }
  .is-deck.has-moved .ex-hint { opacity: 0; }

  /* chrome colour follows the active plane */
  .ex-root { --chrome: var(--ivory); --chrome-soft: var(--sage-light); --chrome-line: var(--ivory-20); }
  .ex-root[data-tone="ivory"] { --chrome: var(--green); --chrome-soft: var(--sage); --chrome-line: var(--green-10); }
  .is-deck .ex-count { color: var(--chrome-soft); }
  .is-deck .ex-tool { color: var(--chrome); border-color: var(--chrome-line); }
  .is-deck .ex-exit { background: var(--chrome); color: var(--ex-ground, var(--green)); border-color: var(--chrome); }
  .ex-root[data-tone="ivory"] .ex-exit { --ex-ground: var(--ivory); }
  .ex-root[data-tone="ivory"] .ex-logo-light { display: none; }
  .ex-root[data-tone="ivory"] .ex-brand .ex-logo-dark { display: block; }
  .ex-root[data-tone="ivory"] .ex-hint { color: var(--sage); }
  .ex-root[data-tone="ivory"] :focus-visible { outline-color: var(--mint); }

  .ex-rail { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0.4rem; }
  .ex-rail-btn { width: 100%; min-height: 2.9rem; padding: 0.5rem 0 0; border: 0; background: none; color: var(--chrome-soft); font: 600 var(--fs-0)/1.2 var(--text); text-align: start; cursor: pointer; display: grid; gap: 0.55rem; }
  .ex-rail-bar { display: block; height: 3px; background: var(--chrome-line); position: relative; overflow: hidden; }
  .ex-rail-bar::after { content: ""; position: absolute; inset: 0; background: var(--chrome); transform: scaleX(0); transform-origin: left; transition: transform 520ms var(--ex-ease); }
  [dir="rtl"] .ex-rail-bar::after { transform-origin: right; }
  .ex-rail-btn.is-done .ex-rail-bar::after { transform: scaleX(1); opacity: 0.45; }
  .ex-rail-btn[aria-current="step"] { color: var(--chrome); }
  .ex-rail-btn[aria-current="step"] .ex-rail-bar::after { transform: scaleX(1); }
  .ex-rail-btn:hover { color: var(--chrome); }
  .ex-paddle { flex: none; width: 2.9rem; height: 2.9rem; border: 1px solid var(--chrome-line); background: transparent; color: var(--chrome); font: 400 1.6rem/1 var(--text); cursor: pointer; display: grid; place-items: center; transition: border-color 160ms var(--ex-ease), opacity 160ms; }
  .ex-paddle:hover { border-color: var(--chrome); }
  .ex-paddle:disabled { opacity: 0.3; cursor: default; }
  [dir="rtl"] .ex-paddle span { transform: scaleX(-1); }

  /* staged entrance: copy rises, picture settles */
  .is-deck .ex-copy > * { transition: opacity 700ms var(--ex-ease), transform 900ms var(--ex-ease); }
  .is-deck .ex-scene:not(.is-active) .ex-copy > * { opacity: 0; transform: translateY(1.75rem); }
  .is-deck .ex-scene.is-active .ex-copy > :nth-child(2) { transition-delay: 90ms; }
  .is-deck .ex-scene.is-active .ex-copy > :nth-child(3) { transition-delay: 160ms; }
  .is-deck .ex-scene.is-active .ex-copy > :nth-child(n+4) { transition-delay: 230ms; }
  .is-deck .ex-visual img { transition: transform 1400ms var(--ex-ease), opacity 900ms var(--ex-ease); }
  .is-deck .ex-scene:not(.is-active) .ex-visual img { transform: scale(1.06); opacity: 0; }
  .is-deck[data-dir="-1"] .ex-scene:not(.is-active) .ex-copy > * { transform: translateY(-1.75rem); }

  /* ---- vision: render dominates */
  .is-deck .ex-vision { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2vw; }
  .is-deck .ex-vision .ex-copy { grid-column: 1; grid-row: 1; }
  .is-deck .ex-hero { grid-column: 2; grid-row: 1; margin: 0 calc(var(--pad) * -1) 0 0; }
  [dir="rtl"] .is-deck .ex-hero { margin: 0 0 0 calc(var(--pad) * -1); }
  .is-deck .ex-hero img { max-height: calc(100dvh - var(--bar) - var(--rail) - 4rem); object-fit: contain; }
  .is-deck .ex-vision .ex-h { font-size: clamp(2.6rem, 4.6vw, 7.5rem); }

  /* ---- why */
  .is-deck .ex-why .ex-copy { width: 100%; }
  .is-deck .ex-versus { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); align-items: end; gap: 4vw; }
  .is-deck .ex-access { border-block-start: 1px solid var(--line); padding-block-start: 1.5rem; }

  /* ---- image-led splits */
  .is-deck .ex-discovery, .is-deck .ex-beyond { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4vw; }
  .is-deck .ex-discovery .ex-copy { grid-column: 1; grid-row: 1; }
  .is-deck .ex-discovery .ex-visual { grid-column: 2; grid-row: 1; }
  .is-deck .ex-beyond .ex-visual { grid-column: 1; grid-row: 1; }
  .is-deck .ex-beyond .ex-copy { grid-column: 2; grid-row: 1; }
  .is-deck .ex-bleed img { max-height: calc(100dvh - var(--bar) - var(--rail) - 5rem); object-fit: contain; }

  /* ---- processor: big stage, steps under */
  .is-deck .ex-processor .ex-copy { max-width: none; width: 100%; display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr); grid-template-rows: auto auto 1fr; column-gap: 4vw; align-self: stretch; }
  .is-deck .ex-processor .ex-h { grid-column: 1; grid-row: 1; font-size: clamp(2rem, 3vw, 4.5rem); }
  .is-deck .ex-processor .ex-sub { grid-column: 1; grid-row: 2; font-size: var(--fs-2); }
  .is-deck .ex-steps { grid-column: 2; grid-row: 1 / 4; margin: 0; display: grid; grid-template-rows: 1fr auto; min-height: 0; }
  .is-deck .ex-step-stage { position: relative; min-height: 0; }
  .is-deck .ex-step-frame { position: absolute; inset: 0; margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; opacity: 0; visibility: hidden; transition: opacity 520ms var(--ex-ease), visibility 0s linear 520ms; }
  .is-deck .ex-step-frame.is-active { opacity: 1; visibility: visible; transition: opacity 520ms var(--ex-ease), visibility 0s; }
  .is-deck .ex-step-frame img { width: 100%; height: 100%; object-fit: contain; transition: transform 900ms var(--ex-ease); }
  .is-deck .ex-step-frame:not(.is-active) img { transform: scale(0.96); }
  .is-deck .ex-step-frame figcaption { grid-template-columns: auto 1fr; align-items: baseline; column-gap: 1.25rem; }
  .is-deck .ex-step-frame .tag { grid-column: 2; grid-row: 1; justify-self: start; }
  .is-deck .ex-step-line { grid-column: 1 / -1; }
  .is-deck .ex-ticks { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0.4rem; list-style: none; margin: 1.25rem 0 0; padding: 0; }
  .ex-tick { width: 100%; min-height: 2.75rem; border: 0; border-block-start: 2px solid var(--ivory-20); background: none; color: var(--sage-light); font: 600 var(--fs-0)/1.25 var(--text); text-align: start; padding: 0.55rem 0 0; cursor: pointer; transition: color 160ms, border-color 160ms; }
  .ex-tick:hover, .ex-tick[aria-pressed="true"] { color: var(--ivory); border-color: var(--ivory); }

  /* ---- universe: map beside controls */
  .is-deck .ex-universe .ex-copy { max-width: none; width: 100%; }
  .is-deck .ex-uwrap { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4vw; margin-block-start: 1rem; }
  .is-deck .u-map { width: auto; height: calc(100dvh - var(--bar) - var(--rail) - 15rem); min-height: 16rem; }
  .is-deck .ex-universe .ex-h { font-size: clamp(2rem, 3vw, 4.5rem); }
  .is-deck .ex-universe .ex-sub { max-width: 60ch; font-size: var(--fs-2); }

  /* ---- nation: horizontal gated road */
  .is-deck .ex-road { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.5vw; margin-block-start: 3rem; }

  /* ---- evidence: four ledgers */
  .is-deck .ex-ledger { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2vw; }
  .is-deck .ex-evidence .ex-h { font-size: clamp(2.2rem, 3.6vw, 5.5rem); }
}

@media (min-width: 900px) and (min-height: 560px) and (max-height: 820px) {
  .is-deck .ex-sub { margin-block-end: 1rem; }
  .is-deck .ex-ledger dd, .is-deck .ex-road li p { font-size: var(--fs-0); }
}

@media (prefers-reduced-motion: reduce) {
  .ex-root *, .ex-root *::after { transition-duration: 1ms !important; transition-delay: 0s !important; }
  .is-deck .ex-scene:not(.is-active) .ex-copy > *, .is-deck .ex-scene:not(.is-active) .ex-visual img, .is-deck .ex-step-frame:not(.is-active) img { transform: none; }
}

@media print { .ex-bar, .ex-nav, .ex-hint, .ex-film { display: none; } }

@media (max-width: 899px) {
  .ex-bar { gap: 0.75rem; padding-block: 0.6rem; }
  .ex-brand img { width: 7.6rem; }
  .ex-count, .ex-tool[data-fullscreen] { display: none; }
  .ex-tool { padding-inline: 0.75rem; }
}

/* ---------------------------------------------------------------- cinematic cold open (vision chapter, when the cuts exist) */
.ex-cinema { position: relative; margin: 0 calc(var(--pad) * -1) 2rem; }
.ex-cinema video { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--green); }
.ex-cinema figcaption { display: flex; align-items: center; font-size: var(--fs-0); color: var(--sage-light); padding: 0.6rem var(--pad) 0; }
.ex-cinema .mark { --mark-bg: var(--green); }
.ex-cinema-toggle { position: absolute; inset-block-start: 1rem; inset-inline-end: var(--pad); background: var(--green); }
.ex-cold .ex-copy > * { transition: opacity 900ms var(--ex-ease), transform 1100ms var(--ex-ease); }
.ex-cold.is-rolling .ex-copy > * { opacity: 0; transform: translateY(1.25rem); }

@media (min-width: 900px) and (min-height: 560px) {
  .is-deck .ex-cold { display: block; padding: 0; }
  .is-deck .ex-cinema { position: absolute; inset: 0; margin: 0; }
  .is-deck .ex-cinema video { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
  .is-deck .ex-cinema figcaption { position: absolute; inset-block-end: calc(var(--rail) + 1.25rem); inset-inline-start: var(--pad); padding: 0; }
  .is-deck .ex-cinema-toggle { inset-block-start: auto; inset-block-end: calc(var(--rail) + 0.6rem); inset-inline-end: var(--pad); background: transparent; }
  .is-deck .ex-cold .ex-copy { position: absolute; inset-inline-start: var(--pad); inset-block-start: calc(var(--bar) + 6vh); width: min(38rem, 34vw); max-width: none; }
  .is-deck .ex-cold .ex-h { font-size: clamp(2.6rem, 4.2vw, 7rem); }
  .is-deck .ex-cold .ex-scene-hint { display: none; }
}
@media (min-width: 900px) and (min-height: 560px) and (min-aspect-ratio: 2/1) {
  .is-deck .ex-cold .ex-copy { width: min(40rem, 28vw); inset-block-start: calc(var(--bar) + 10vh); }
}

/* ---------------------------------------------------------------- new Blender stills (cinema set) */
.ex-cine img, .ex-band img { display: block; width: 100%; height: auto; }
.ex-band { margin: 0 calc(var(--pad) * -1) 1.5rem; }
.ex-band figcaption { padding-inline: var(--pad); }
@media (min-width: 900px) and (min-height: 560px) {
  /* discovery: coupon outlines carry the right side */
  .is-deck .ex-discovery { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .is-deck .ex-cine { margin-inline-end: calc(var(--pad) * -1); }
  .is-deck .ex-cine img { max-height: none; width: 100%; aspect-ratio: 3440 / 1440; object-fit: cover; }
  /* beyond: exploded stack leads, copy beside it */
  .is-deck .ex-beyond { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 3vw; }
  .is-deck .ex-cine-lead { margin-inline: calc(var(--pad) * -1) 0; }
  .is-deck .ex-beyond .ex-copy { max-width: 40rem; }
  /* nation: the field as a band across the top, the gated road below */
  .is-deck .ex-nation { display: block; padding-block-start: 0; }
  .is-deck .ex-band { position: absolute; inset-inline: 0; inset-block-start: 0; height: 46%; margin: 0; }
  .is-deck .ex-band picture, .is-deck .ex-band img { width: 100%; height: 100%; }
  .is-deck .ex-band img { object-fit: cover; object-position: 50% 62%; }
  .is-deck .ex-band figcaption { position: absolute; inset-block-end: -2.1rem; inset-inline-start: var(--pad); padding: 0; }
  .is-deck .ex-nation .ex-copy { position: absolute; inset-inline: var(--pad); inset-block-start: calc(46% + 3.5rem); }
  .is-deck .ex-nation .ex-h { font-size: clamp(2rem, 2.8vw, 4.25rem); margin-block-end: 0.75rem; }
  .is-deck .ex-nation .ex-sub { font-size: var(--fs-2); margin-block-end: 0; }
  .is-deck .ex-nation .ex-body { display: none; }
  .is-deck .ex-nation .ex-road { margin-block-start: 1.5rem; }
}
@media (min-width: 900px) and (min-height: 560px) {
  .is-deck .ex-cine img { -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent), linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent); mask-composite: intersect; }
  .is-deck .ex-band { inset-block-start: var(--bar); height: calc(46% - var(--bar)); }
  .is-deck .ex-beyond .ex-h { font-size: clamp(2.2rem, 3.1vw, 5.25rem); }
  .is-deck .ex-beyond .ex-sub { font-size: clamp(var(--fs-2), 1.2vw, 1.75rem); }
  .is-deck .ex-beyond .ex-apps li { padding-block: 0.4rem; font-size: var(--fs-1); }
}
@media (min-width: 900px) and (min-height: 560px) { .is-deck .ex-cine-lead figcaption { padding-inline-start: var(--pad); } }
/* the field still carries its own bilingual concept plate (stamped into the image), so keep it in view */
@media (min-width: 900px) and (min-height: 560px) {
  .is-deck .ex-band img { object-position: 50% 100%; }
  .is-deck .ex-band figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .is-deck .ex-nation .ex-copy { inset-block-start: calc(46% + 1.75rem); }
}
/* ultrawide screens are wide but not tall: headline size follows the smaller of width and height */
@media (min-width: 900px) and (min-height: 560px) {
  .is-deck .ex-h { font-size: clamp(2.2rem, min(4.4vw, 7.4vh), 6.25rem); }
  .is-deck .ex-vision .ex-h, .is-deck .ex-cold .ex-h { font-size: clamp(2.6rem, min(4.6vw, 8.2vh), 7.5rem); }
  .is-deck .ex-processor .ex-h, .is-deck .ex-universe .ex-h, .is-deck .ex-nation .ex-h { font-size: clamp(2rem, min(3vw, 5.4vh), 4.5rem); }
  .is-deck .ex-sub { font-size: clamp(var(--fs-2), min(1.45vw, 2.5vh), 2rem); }
  .is-deck .ex-frontiers li { font-size: clamp(var(--fs-1), min(1.1vw, 1.9vh), 1.5rem); padding-block: 0.55rem; }
}
.ex-film { grid-template-rows: 1fr auto; gap: 1rem; }
.ex-transcript { width: min(100%, calc((100dvh - 9rem) * 16 / 9)); color: var(--sage-light); font-size: var(--fs-0); }
.ex-transcript summary { cursor: pointer; font-weight: 600; color: var(--ivory); min-height: 2.75rem; display: flex; align-items: center; }
.ex-transcript ol { margin: 0.25rem 0 0; padding-inline-start: 1.25rem; columns: 2 22rem; column-gap: 2rem; }
.ex-film video { max-height: calc(100dvh - 8rem); }
/* the opening names its subject from the first frame; it gives way to the headline */
.ex-cold-title { margin: 0; padding: 0.75rem var(--pad) 0; font: 700 var(--fs-2)/1.3 var(--display); color: var(--ivory); }
@media (min-width: 900px) and (min-height: 560px) {
  .is-deck .ex-cold-title { position: absolute; inset-inline-start: var(--pad); inset-block-start: calc(var(--bar) + 6vh); padding: 0; font-size: clamp(var(--fs-3), min(2vw, 3.6vh), 2.75rem); max-width: 30ch; transition: opacity 600ms var(--ex-ease); }
  .is-deck .ex-cold:not(.is-rolling) .ex-cold-title { opacity: 0; }
}
/* the opening: copy on the reading side; in Arabic the film is mirrored so its clear space is on the right */
@media (min-width: 900px) and (min-height: 560px) {
  .is-deck .ex-cold .ex-copy, .is-deck .ex-cold-title { inset-inline-start: var(--pad); inset-inline-end: auto; }
  .is-deck .ex-cinema figcaption { inset-inline-start: auto; inset-inline-end: calc(var(--pad) + 8rem); bottom: calc(var(--rail) + 1.35rem); }
}
[dir="rtl"] .ex-cinema video { transform: scaleX(-1); }

/* chapter rail and hint keep their contrast over any frame of the film */
@media (min-width: 900px) and (min-height: 560px) {
  .ex-root { --chrome-bg: #0B3D33F2; }
  .ex-root[data-tone="ivory"] { --chrome-bg: #F4F1E8F2; }
  .is-deck .ex-nav { background: var(--chrome-bg); }
  .is-deck .ex-hint { background: var(--chrome-bg); padding: 0.15rem 0.5rem; }
}
