.showcase {
  --night: #12171c;
  --deep: #0c1116;
  --panel: #192026;
  --ivory: #f0eadc;
  --muted: #bcc3c2;
  --gold: #e9c382;
  --edge: #e0e6dd26;
  --gutter: clamp(22px, 6.3vw, 106px);
  background: var(--night);
  color: var(--ivory);
}
.showcase a:focus-visible, .showcase button:focus-visible,
.showcase input:focus-visible, .showcase [tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.showcase [id] { scroll-margin-top: 86px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.showcase-footer a { color: var(--muted); }
.showcase-footer a:hover { color: var(--ivory); }
.showcase .seal { background: var(--gold); width: 24px; height: 24px; }
.showcase .brand sup { color: var(--gold); margin-left: -5px; }
.showcase-play { color: #1c1914; background: var(--gold); border-color: var(--gold); }
.showcase-play:hover { background: #f7d9a3; border-color: #f7d9a3; }
.showcase-home { background: radial-gradient(ellipse at 5% 18%, #50403d70, transparent 30%), radial-gradient(ellipse at 98% 70%, #4c405a80, transparent 41%), #222a34; }
.showcase-home .fold-section, .showcase-home .screening, .showcase-home .score-section { position: relative; isolation: isolate; }
.showcase-home :is(.fold-section, .screening, .score-section)::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: url('/v2/media/fold-lattice.svg') right top / 376px 326px; mask-image: linear-gradient(115deg, transparent 8%, #000 56%, #0009); }

.opening { position: relative; display: grid; align-items: center; isolation: isolate; min-height: clamp(570px, 86svh, 980px); overflow: clip; background: #20272a; }
.opening-frame, .opening-frame > * { position: absolute; inset: 0; width: 100%; height: 100%; }
.opening-frame { z-index: -2; }
.opening-frame > * { object-fit: cover; object-position: center 48%; }
.opening-frame video { opacity: 0; transition: opacity .6s ease; }
.opening-frame video.is-playing { opacity: 1; }
.opening::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #0b1118e8 0%, #101620c4 25%, #10162037 66%, transparent 100%),
              linear-gradient(0deg, #11171df7, transparent 33%),
              linear-gradient(180deg, #10171c48, transparent 24%);
}
.opening-weave { position: absolute; inset: 8% max(4%, var(--gutter)) auto auto; width: min(30vw, 460px); height: auto; stroke: #f8d99f; stroke-width: .65; opacity: .54; pointer-events: none; filter: drop-shadow(0 0 18px #f7bf796d); z-index: -1; }
.opening-weave circle { fill: #ffe1a1; }
.opening-copy { padding: 60px var(--gutter) 100px; }
.overline { color: var(--gold); text-transform: uppercase; letter-spacing: .19em; font: 700 .69rem/1.5 var(--sans); }
.overline > span { display: inline-block; width: 24px; height: 1px; background: currentColor; margin: 0 .5rem .22rem 0; }
.opening h1 { font: 400 clamp(4.4rem, 10.7vw, 10.8rem)/.87 var(--serif); letter-spacing: -.055em; margin: .16em 0 0; }
.opening h1 em { font: 400 .52em/1 var(--serif); vertical-align: .56em; letter-spacing: -.04em; color: var(--gold); }
.opening-subtitle { font: italic 400 clamp(1.95rem, 4.15vw, 4.4rem)/1 var(--serif); color: #e8d6b8; margin-top: 12px; }
.opening-intro { color: #ece6d9; max-width: 29ch; font-size: clamp(1.01rem, 1.6vw, 1.24rem); margin: 27px 0 25px; }
.showcase-ghost { background: #111820b3; border-color: #e9e3d278; color: var(--ivory); }
.showcase-ghost:hover { background: #27323adb; border-color: #e9e3d2; }
.opening-index {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font: 700 .64rem/1.5 var(--sans);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.opening-index a, .opening-index button { color: var(--ivory); }
.opening-index a span { color: var(--gold); margin-right: 7px; }
.motion-control { border: 1px solid var(--edge); background: #10161caf; cursor: pointer; padding: 7px 12px; letter-spacing: .1em; font-size: .68rem; text-transform: uppercase; min-height: 40px; }
.motion-control:hover { border-color: var(--gold); }
.screening .motion-control { margin-top: 16px; }
.campaign-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--edge); background: #161e23; padding-inline: var(--gutter); }
.campaign-strip p { min-height: 80px; display: flex; justify-content: center; align-items: center; gap: 13px; border-inline-end: 1px solid var(--edge); }
.campaign-strip p:first-child { border-inline-start: 1px solid var(--edge); }
.campaign-strip strong { font: 400 clamp(2rem, 3.7vw, 3.15rem)/1 var(--serif); color: var(--gold); }
.campaign-strip span { color: var(--muted); font-size: .75rem; }

.section-wrap { max-width: 1800px; margin-inline: auto; padding: clamp(66px, 8.5vw, 132px) var(--gutter); }
.section-heading { max-width: 910px; margin-bottom: 42px; }
.section-heading h2, .section-heading h1, .lesson h1 { font: 400 clamp(3.25rem, 7.05vw, 7.2rem)/.9 var(--serif); letter-spacing: -.042em; margin: 16px 0 21px; text-wrap: balance; }
.section-heading h2 em, .section-heading h1 em, .lesson h1 em { color: #d5ba91; font-weight: 400; }
.section-heading p:not(.overline) { color: var(--muted); max-width: 49ch; font-size: clamp(.93rem, 1.35vw, 1.07rem); }
.fold-story { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 76px); align-items: start; }
.fold-stage { min-width: 0; background: #252d38; box-shadow: 0 22px 55px #151a2455; border: 1px solid #e6cba057; }
.motion-enabled .fold-stage { position: sticky; top: 91px; }
.fold-frame { aspect-ratio: 16/9; position: relative; background: var(--deep); overflow: hidden; }
.fold-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.fold-control:not([hidden]) { display: grid; align-items: center; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 6px 14px; color: var(--ivory); font-size: .72rem; }
.fold-control input { width: 100%; min-width: 0; height: 30px; margin: 0; accent-color: var(--gold); cursor: ew-resize; }
.view-label { position: absolute; top: 14px; left: 14px; padding: 7px 10px; background: #0e131bed; color: var(--gold); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.fold-stage figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 14px; padding: 9px 14px; border-top: 1px solid var(--edge); color: var(--muted); font-size: .74rem; }
.fold-stage figcaption a { color: var(--gold); }
.fold-steps { display: grid; gap: 18px; }
.fold-steps article { border-top: 1px solid var(--edge); padding-top: 16px; }
.motion-enabled .fold-steps article { min-height: clamp(190px, 34vh, 290px); }
.fold-steps h3, .film-grid h3, .edition-cards h3, .learn-grid h3, .lesson h2 { font: 400 clamp(2rem, 3.5vw, 3.45rem)/.98 var(--serif); margin: 12px 0; }
.fold-steps p:not(.overline), .edition-cards p:not(.overline), .learn-grid p { color: var(--muted); max-width: 41ch; }
.editorial-link { display: inline-block; color: var(--gold); font-size: .83rem; font-weight: 700; padding-bottom: 3px; border-bottom: 1px solid #e9c38270; margin-top: 15px; }
.editorial-link:hover { border-color: currentColor; color: #f7d9a3; }

.realm-section { background: radial-gradient(ellipse at 84% 12%, #4b3c53 0%, transparent 44%), radial-gradient(ellipse at 14% 72%, #314b49, transparent 52%), #222a35; border-block: 1px solid var(--edge); }
.realm-actions { margin-top: 28px; }
.realm-heading { max-width: none; display: flex; justify-content: space-between; gap: 35px; align-items: end; margin-bottom: 23px; }
.realm-heading h2 { margin-bottom: 0; }
.realm-heading > p { padding-bottom: 2px; max-width: 33ch !important; }
.gallery-label { margin: 36px 0 15px; }
.realm-gallery { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 2vw, 32px); }
.realm-gallery li { min-inline-size: 0; grid-column: span 5; }
.realm-gallery li:nth-child(4n+1), .realm-gallery li:nth-child(4n) { grid-column: span 7; }
.realm-gallery a { display: flex; align-items: end; position: relative; isolation: isolate; overflow: clip; border: 1px solid var(--edge); background: var(--panel); min-block-size: clamp(245px, 29vw, 500px); }
.realm-gallery a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #0c1116fa, #0c11168c 28%, transparent 72%); z-index: -1; }
.realm-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: scale .5s ease; }
.realm-gallery a:is(:hover, :focus-visible) img { scale: 1.055; }
.realm-gallery a div { padding: clamp(17px, 3vw, 40px); padding-inline-end: 58px; min-inline-size: 0; }
.realm-gallery a span { color: var(--gold); font-size: .69rem; letter-spacing: .14em; text-transform: uppercase; }
.realm-gallery h3 { font: 400 clamp(2rem, 3.5vw, 4.15rem)/.96 var(--serif); margin-top: 7px; text-wrap: balance; overflow-wrap: anywhere; }
.realm-gallery b { display: grid; place-items: center; position: absolute; bottom: clamp(17px, 3vw, 40px); right: clamp(14px, 2.5vw, 34px); color: var(--gold); border: 1px solid #e9c38291; border-radius: 50%; width: 38px; height: 38px; }
.realm-gallery a:is(:hover, :focus-visible) b { background: var(--gold); color: var(--deep); }

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .motion-enabled .realm-gallery img { animation: drift-image linear both; animation-timeline: view(); animation-range: cover; }
    .motion-enabled .opening-frame { animation: drift-opening linear both; animation-timeline: view(); animation-range: exit; }
    .motion-enabled .opening-weave { animation: drift-weave linear both; animation-timeline: view(); animation-range: exit; }
  }
}
@keyframes drift-image { from { transform: translateY(-3%) scale(1.08); } to { transform: translateY(3%) scale(1.08); } }
@keyframes drift-opening { to { transform: translateY(10%) scale(1.04); } }
@keyframes drift-weave { to { transform: translateY(35%) rotate(12deg); opacity: .16; } }

.film-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin: 0 0 28px; }
.film-grid article { min-width: 0; padding-bottom: 14px; border-bottom: 1px solid var(--edge); }
.film-poster { position: relative; display: block; aspect-ratio: 16/10; background: var(--panel); margin-bottom: 13px; }
.film-poster img { width: 100%; height: 100%; object-fit: cover; }
.screening .film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 3vw, 40px); }
.screening .film-poster { aspect-ratio: 16/9; overflow: hidden; border: 1px solid var(--edge); }
.screening .film-poster video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.motion-enabled .film-poster video.is-playing { opacity: 1; }
.showcase-home:not(.motion-enabled) .opening-frame video { opacity: 0; }
.film-poster > span:first-of-type { position: absolute; inset: auto auto 10px 10px; display: grid; place-items: center; border: 1px solid #e9c382b0; width: 40px; height: 40px; background: #11161dda; color: var(--gold); font-size: .85rem; }
.film-poster:hover > span:first-of-type { color: var(--night); background: var(--gold); }
.film-grid h3 { font-size: clamp(1.65rem, 2.8vw, 2.72rem); }
.film-grid article > a:last-child { color: var(--muted); font-size: .76rem; }
.film-grid article > a:last-child:hover { color: var(--gold); }
.learn-section { background: radial-gradient(ellipse at 85% 15%, #283239, transparent 55%), #1a2229; border-block: 1px solid var(--edge); }
.showcase-home .learn-section, .creator-section { --ivory: #272539; --muted: #514b5d; --gold: #674460; --edge: #624e6348; color: var(--ivory); background: radial-gradient(ellipse at 80% 0%, #f5e3cd, transparent 68%), #d8c9d1; }
.showcase-home .learn-section em, .creator-section .section-heading em { color: var(--gold); }
.showcase-home .learn-grid a { background: #fff6e469; }
.creator-section { background: radial-gradient(ellipse at 9% 110%, #f5e5cf, transparent 77%), #d0c0cf; border-block: 1px solid var(--edge); }
.creator-layout { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1fr); align-items: center; gap: clamp(22px, 8vw, 120px); }
.creator-layout .section-heading { margin: 0; }
.creator-portrait img { display: block; width: 100%; height: auto; box-shadow: 0 24px 64px #3b27343b; }
.creator-portrait figcaption { margin-top: 12px; font-size: .78rem; color: var(--muted); }
.creator-section .editorial-link:hover { color: #37253c; }
.learn-grid, .edition-cards { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.learn-grid a, .edition-cards article { padding: clamp(17px, 3.25vw, 40px); border: 1px solid var(--edge); background: #10171db3; }
.learn-grid a { position: relative; }
.learn-grid a:hover { border-color: var(--gold); }
.learn-grid a > span { color: var(--gold); font: 400 2rem/1 var(--serif); }
.learn-grid a > b { color: var(--gold); position: absolute; top: 20px; right: 20px; }
.edition-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.edition-cards article:first-child { border-color: #e9c38277; background: radial-gradient(ellipse at 100% 0%, #36383a, #151d25 65%); }
.download-page .edition-cards p + p, .download-page .edition-cards .button { margin-top: 14px; }
@media (min-width: 900px) {
  .download-page .edition-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.original-links { display: flex; flex-wrap: wrap; gap: 6px 17px; margin-top: 16px; color: var(--muted); font-size: .75rem; }
.original-links a:hover { color: var(--gold); }
.showcase-footer { background: var(--deep); border-top: 1px solid var(--edge); padding: 27px var(--gutter); align-items: center; }
.showcase-dialog { width: min(94vw, 970px); max-height: 92vh; padding: 18px; background: var(--deep); color: var(--ivory); border: 1px solid #e9c3826b; }
.showcase-dialog::backdrop { background: #090e13e6; }
.showcase-dialog header { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding-bottom: 12px; }
.showcase-dialog h2 { font: 400 clamp(1.6rem, 4vw, 2.9rem)/1 var(--serif); }
.showcase-dialog header button { width: 44px; height: 44px; background: var(--panel); border: 1px solid var(--edge); cursor: pointer; font-size: 1.5rem; }
.showcase-dialog video { width: 100%; max-height: 69vh; aspect-ratio: 16/10; background: #030609; display: block; }

@media (max-width: 900px) {
  .film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 13px; }
}
@media (max-width: 740px) {
  .fold-story, .creator-layout { grid-template-columns: minmax(0, 1fr); }
  .motion-enabled .fold-stage { top: 110px; z-index: 2; }
  .motion-enabled .fold-steps article { min-height: clamp(155px, 30vh, 250px); }
  .creator-portrait { max-width: 480px; }
  .realm-heading { display: block; }
  .realm-heading > p { margin-top: 18px; }
  .realm-gallery { grid-template-columns: minmax(0, 1fr); }
  .realm-gallery li, .realm-gallery li:nth-child(4n+1), .realm-gallery li:nth-child(4n) { grid-column: auto; }
  .realm-gallery a { min-block-size: clamp(220px, 63vw, 410px); }
  .opening-weave { width: min(43vw, 260px); inset-block-start: 7%; }
  .learn-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 510px) {
  .opening { min-height: 570px; }
  .opening::before { background: linear-gradient(90deg,#0b1118e0,#0b11183a),linear-gradient(0deg,#11171df4,transparent 56%); }
  .opening-frame > * { object-position: 55% 50%; }
  .opening-copy { padding-bottom: 85px; }
  .opening-copy .button { min-height: 43px; padding: 9px 11px; gap: 8px; font-size: .74rem; }
  .opening h1 { font-size: clamp(3.55rem, 13.8vw, 4.8rem); }
  .opening-index > span:last-child { display: none; }
  .campaign-strip { padding-inline: 0; }
  .campaign-strip p { flex-direction: column; gap: 2px; min-height: 66px; text-align: center; padding: 5px 3px; }
  .campaign-strip span { font-size: .62rem; }
  .edition-cards { grid-template-columns: minmax(0, 1fr); }
  .screening .film-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-height: 500px) and (orientation: landscape) {
  .motion-enabled .fold-stage { position: relative; top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .showcase *, .showcase *::before, .showcase *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.score-section { padding-bottom: 35px; }
.score-player { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--edge); background: var(--panel); max-width: 1020px; }
.score-art { min-height: 170px; }
.score-art img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16/9; }
.score-player > div:last-child { display: grid; align-content: center; padding: clamp(20px, 4vw, 47px); gap: 9px; }
.score-player select { color: var(--ivory); background: var(--deep); font: inherit; padding: 8px 10px; border: 1px solid var(--edge); min-width: 0; }
.score-player audio { display: block; width: 100%; min-width: 0; }
.score-player p { color: var(--muted); font-size: .75rem; }
@media (max-width: 650px) { .score-player { grid-template-columns: minmax(0, 1fr); } }
