/*
 * Exhibit B — XL sheet format (#large-format / #xl-sheet-format).
 *
 * A bordered editorial shell: a portrait video player on the left, the copy
 * panel and three support images on the right. Playing the video switches the
 * section into "cinema" mode — the section dims around the player and timed
 * captions (js/home/xl-ensuite.js) play over the support images.
 *
 * Routes (exact conditions of the original):
 *   mobile       — ≤860px or compact touch landscape: stacked, copy first
 *   phone        — ≤767px: support images become a tap accordion (JS)
 *   desktop      — the shared desktop route: fixed-height shell
 *   1080p/2160p  — fine-pointer bands: the 1280×720 composition × --xl-s
 * Also hosts the accordion chevron shared by Exhibit B and Exhibit C.
 */

.xl-ensuite__section,
.xl-ensuite__section *,
.xl-ensuite__section *::before,
.xl-ensuite__section *::after {
  box-sizing: border-box;
}

.xl-ensuite__section {
  --xl-gold: rgb(214 164 91 / 0.92);
  --xl-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --xl-ease-heavy: cubic-bezier(0.19, 1, 0.22, 1);

  position: relative;
  width: 100%;
  margin: 0;
  padding: clamp(54px, 6.6vw, 106px) clamp(18px, 4vw, 64px);
  isolation: isolate;
  color: rgb(244 234 216 / 0.78);
  font-family: var(--font-sans);
}

/* Cinema mode: everything but the player dims. */
.xl-ensuite__section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background: radial-gradient(130% 115% at 16% 50%, rgb(0 0 0 / 0.14) 0%, rgb(0 0 0 / 0.58) 44%, rgb(0 0 0 / 0.86) 100%);
  transition: opacity 680ms var(--xl-ease), visibility 680ms step-end;
}

.xl-ensuite__section.is-cinema::after {
  opacity: 1;
  visibility: visible;
  transition: opacity 680ms var(--xl-ease), visibility 0s step-start;
}

.xl-ensuite__shell {
  position: relative;
  width: min(1480px, 100%);
  margin-inline: auto;
  display: grid;
  grid-template-columns: clamp(320px, 29vw, 430px) minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: stretch;
  gap: 6px;
  border: 1px solid rgb(var(--rgb-gold-ui) / 0.42);
  border-radius: 2px;
  box-shadow: 0 34px 110px rgb(0 0 0 / 0.54), inset 0 1px 0 rgb(255 232 184 / 0.08);
}

.xl-ensuite__brandrail {
  position: absolute;
  left: clamp(-22px, -1.5vw, -12px);
  top: 0;
  bottom: 0;
  width: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--xl-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: lowercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  opacity: 0.72;
}

/* ---------- Video player ---------- */

.xl-player {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
  width: 100%;
  max-width: 430px;
  height: 100%;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  background: #060504;
  color: rgb(244 234 216 / 0.98);
}

/* The frame slides in from the left the first time the player scrolls into view. */
.xl-player__frame {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 1;
  overflow: hidden;
  isolation: isolate;
  transform: translateX(-104%) scale(0.985);
  transform-origin: left center;
  transition: transform 1120ms cubic-bezier(0.16, 0.88, 0.18, 1) 140ms;
}

.xl-player.is-revealed .xl-player__frame {
  transform: translateX(0);
}

.xl-player__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.95;
  background:
    radial-gradient(1200px 600px at 35% 10%, rgb(255 255 255 / 0.1), transparent 58%),
    linear-gradient(180deg, rgb(0 0 0 / 0.08), rgb(0 0 0 / 0.22));
}

.xl-player__tap,
.xl-player__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.xl-player__tap {
  z-index: 3;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.xl-player__poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  transition: transform 600ms ease, opacity 240ms ease;
}

.xl-player__video {
  z-index: 1;
  display: block;
  object-fit: cover;
  background: #050403;
  opacity: 0;
  cursor: pointer;
  transition: opacity 240ms ease;
}

.xl-player.is-playing .xl-player__video {
  opacity: 1;
}

.xl-player.is-playing .xl-player__poster {
  opacity: 0;
}

.xl-player.is-playing .xl-player__tap {
  display: none;
}

/* Square bronze play button. */
.xl-player__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  border: 1px solid rgb(var(--rgb-gold-ui) / 0.48);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 0%, rgb(var(--rgb-gold-ui) / 0.14), transparent 52%),
    linear-gradient(145deg, rgb(50 27 17 / 0.84), rgb(11 10 9 / 0.96));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 18px 44px rgb(0 0 0 / 0.52),
    inset 0 1px 0 rgb(255 236 190 / 0.14),
    inset 0 0 0 1px rgb(214 164 91 / 0.1),
    0 0 24px rgb(var(--rgb-gold-ui) / 0.12);
  transition:
    transform 320ms var(--xl-ease),
    border-color 320ms ease,
    box-shadow 320ms ease,
    background 320ms ease;
}

.xl-player__play::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 15px solid rgb(var(--rgb-gold-highlight) / 0.94);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  transform: translate(-34%, -50%);
  filter: drop-shadow(0 1px 2px rgb(0 0 0 / 0.55));
}

.xl-player__play::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-top: 1px solid rgb(var(--rgb-gold-ui) / 0.24);
  border-left: 1px solid rgb(var(--rgb-gold-ui) / 0.24);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .xl-player__tap:hover .xl-player__poster {
    transform: scale(1.1);
  }

  .xl-player__tap:hover .xl-player__play {
    transform: translate(-50%, -50%) scale(1.04);
    border-color: rgb(var(--rgb-gold-highlight) / 0.72);
    background:
      radial-gradient(circle at 28% 0%, rgb(var(--rgb-gold-ui) / 0.2), transparent 52%),
      linear-gradient(145deg, rgb(62 34 20 / 0.9), rgb(14 12 10 / 0.98));
    box-shadow:
      0 22px 50px rgb(0 0 0 / 0.56),
      inset 0 1px 0 rgb(255 236 190 / 0.18),
      inset 0 0 0 1px rgb(214 164 91 / 0.16),
      0 0 32px rgb(var(--rgb-gold-ui) / 0.22);
  }

  .xl-player__tap:hover .xl-player__play::before {
    border-left-color: rgb(var(--rgb-gold-bright) / 0.98);
  }
}

/* Control bar: pause/play, timeline, elapsed / total. */
.xl-player__controls {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgb(var(--rgb-gold-ui) / 0.42);
  border-radius: 2px;
  background:
    radial-gradient(circle at 28% 0%, rgb(var(--rgb-gold-ui) / 0.12), transparent 52%),
    linear-gradient(145deg, rgb(50 27 17 / 0.84), rgb(11 10 9 / 0.96));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 14px 36px rgb(0 0 0 / 0.48),
    inset 0 1px 0 rgb(255 236 190 / 0.12),
    inset 0 0 0 1px rgb(214 164 91 / 0.08);
}

.xl-player__controls::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgb(var(--rgb-gold-ui) / 0.28);
  border-left: 1px solid rgb(var(--rgb-gold-ui) / 0.28);
  pointer-events: none;
}

.xl-player__toggle {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgb(var(--rgb-gold-ui) / 0.4);
  border-radius: 2px;
  background: linear-gradient(145deg, rgb(42 24 14 / 0.72), rgb(8 7 6 / 0.88));
  cursor: pointer;
  transition: border-color 280ms ease, background 280ms ease, box-shadow 280ms ease;
}

/* The glyph is always the two pause bars, as in the original. */
.xl-player__toggle span {
  position: relative;
  width: 16px;
  height: 16px;
}

.xl-player__toggle span::before,
.xl-player__toggle span::after {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  width: 4px;
  border-radius: 1px;
  background: rgb(var(--rgb-gold-highlight) / 0.9);
}

.xl-player__toggle span::before {
  left: 3px;
}

.xl-player__toggle span::after {
  right: 3px;
}

@media (hover: hover) and (pointer: fine) {
  .xl-player__toggle:hover {
    border-color: rgb(var(--rgb-gold-highlight) / 0.68);
    background: linear-gradient(145deg, rgb(58 32 18 / 0.82), rgb(12 10 8 / 0.94));
    box-shadow: 0 0 18px rgb(var(--rgb-gold-ui) / 0.14);
  }
}

.xl-player__timeline {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
}

.xl-player__timeline::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 0;
  background: linear-gradient(
    to right,
    rgb(var(--rgb-gold-highlight) / 0.92) 0%,
    rgb(var(--rgb-gold-muted) / 0.86) var(--xl-progress, 0%),
    rgb(var(--rgb-gold-ui) / 0.16) var(--xl-progress, 0%),
    rgb(var(--rgb-gold-ui) / 0.16) 100%
  );
}

.xl-player__timeline::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -3.5px;
  border: 1px solid rgb(var(--rgb-gold-highlight) / 0.72);
  border-radius: 1px;
  background: linear-gradient(135deg, rgb(var(--rgb-gold-bright) / 0.98), rgb(var(--rgb-gold-muted) / 0.94));
  box-shadow: 0 0 0 2px rgb(var(--rgb-gold-ui) / 0.12), 0 2px 8px rgb(0 0 0 / 0.45);
}

.xl-player__timeline::-moz-range-track {
  height: 3px;
  border-radius: 0;
  background: rgb(var(--rgb-gold-ui) / 0.16);
}

.xl-player__timeline::-moz-range-progress {
  height: 3px;
  border-radius: 0;
  background: linear-gradient(90deg, rgb(var(--rgb-gold-highlight) / 0.92), rgb(var(--rgb-gold-muted) / 0.86));
}

.xl-player__timeline::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 1px solid rgb(var(--rgb-gold-highlight) / 0.72);
  border-radius: 1px;
  background: linear-gradient(135deg, rgb(var(--rgb-gold-bright) / 0.98), rgb(var(--rgb-gold-muted) / 0.94));
  box-shadow: 0 0 0 2px rgb(var(--rgb-gold-ui) / 0.12), 0 2px 8px rgb(0 0 0 / 0.45);
}

.xl-player__time {
  color: rgb(var(--rgb-gold-highlight) / 0.72);
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.xl-player__time-current {
  color: rgb(var(--rgb-gold-bright) / 0.94);
}

.xl-player__time-sep {
  color: rgb(var(--rgb-gold-ui) / 0.42);
}

/* ---------- Copy panel ---------- */

.xl-ensuite__content {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 6px;
}

.xl-ensuite__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 3vw, 52px) clamp(34px, 4vw, 70px);
  background:
    radial-gradient(circle at 30% 0%, rgb(227 165 86 / 0.12), transparent 46%),
    linear-gradient(145deg, rgb(50 27 17 / 0.58), rgb(11 10 9 / 0.95));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 520ms var(--xl-ease), filter 520ms var(--xl-ease);
}

.xl-ensuite__section.is-cinema .xl-player {
  z-index: 6;
}

.xl-ensuite__section.is-cinema .xl-ensuite__content {
  position: relative;
  z-index: 5;
}

.xl-ensuite__section.is-cinema .xl-ensuite__copy {
  opacity: 0.34;
  filter: saturate(0.72);
  transition: opacity 680ms var(--xl-ease), filter 680ms var(--xl-ease);
}

.xl-ensuite__eyebrow {
  align-self: flex-start;
  display: inline-block;
  width: fit-content;
  max-width: max-content;
  margin: 0 0 14px;
  padding: 0 0 8px;
  border-bottom: 1px solid rgb(var(--rgb-gold-ui) / 0.58);
  color: var(--xl-gold);
  font-size: clamp(10px, 0.78vw, 12px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

/* Character-reveal turns each glyph into an inline-block, so the title may
   wrap only between the two line spans — never inside FORMAT. */
.xl-ensuite__title {
  margin: 0;
  max-width: 100%;
  color: transparent;
  background: var(--gradient-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  font-family: var(--font-serif);
  font-size: clamp(38px, 3.6vw, 56px);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  filter: var(--shadow-title-span);
}

.xl-ensuite__title > .kt-character-reveal__line {
  display: inline-block;
  white-space: nowrap;
}

.xl-ensuite__kicker {
  position: relative;
  margin: clamp(14px, 1.6vh, 20px) 0 clamp(18px, 2.1vh, 28px);
  padding: 10px 0;
  color: rgb(var(--rgb-gold-highlight) / 0.84);
  font-size: clamp(11px, 0.86vw, 14px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.xl-ensuite__kicker::before,
.xl-ensuite__kicker::after {
  content: "";
  position: absolute;
  left: 0;
  width: 62%;
  height: 1px;
  background: linear-gradient(90deg, rgb(var(--rgb-gold-ui) / 0.62), transparent);
}

.xl-ensuite__kicker::before {
  top: 0;
}

.xl-ensuite__kicker::after {
  bottom: 0;
}

.xl-ensuite__commit {
  max-width: 34ch;
  margin: 0;
  font-size: clamp(0.92rem, 0.82vw, 1.02rem);
  line-height: 1.42;
  letter-spacing: 0.01em;
}

/* ---------- Support images ---------- */

.xl-ensuite__support {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.xl-ensuite__figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #060504;
}

.xl-ensuite__figure--install,
.xl-ensuite__figure--planes {
  flex: 0.82 1 0;
  aspect-ratio: 2.8 / 5;
}

.xl-ensuite__figure--shower {
  flex: 1.36 1 0;
}

.xl-ensuite__figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Bias the install crop right so the working side of the source stays visible. */
.xl-ensuite__figure--install img {
  object-position: 82% center;
}

/* Dim layer for cinema mode (and for the collapsed accordion strips on phones). */
.xl-ensuite__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: rgb(0 0 0 / 0.48);
  transition: opacity 680ms var(--xl-ease);
}

.xl-ensuite__section.is-cinema .xl-ensuite__figure::after {
  opacity: 1;
}

/* ---------- Cinema captions over the support images ---------- */

.xl-caption {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(22px, 3.2vw, 44px);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 360ms var(--xl-ease), visibility 360ms step-end;
}

.xl-caption::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.06);
  transform-origin: 18% 50%;
  background: radial-gradient(92% 96% at 16% 52%, rgb(0 0 0 / 0.74) 0%, rgb(0 0 0 / 0.38) 46%, rgb(0 0 0 / 0.1) 100%);
}

.xl-caption::after {
  content: "";
  position: absolute;
  inset: -20% -40%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: soft-light;
  background: linear-gradient(
    108deg,
    transparent 36%,
    rgb(255 224 168 / 0.04) 44%,
    rgb(255 236 196 / 0.22) 50%,
    rgb(214 164 91 / 0.14) 54%,
    transparent 62%
  );
}

.xl-caption__inner {
  position: relative;
  z-index: 3;
  width: min(100%, 520px);
}

/* Only the active caption's kicker is displayed; switching lines re-displays
   an element, which replays its reveal animation. */
.xl-caption__kicker {
  display: none;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 clamp(16px, 1.8vw, 24px);
  color: rgb(var(--rgb-gold-highlight) / 0.94);
  font-size: clamp(12px, 1.05vw, 15px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.88), 0 0 22px rgb(194 118 37 / 0.24);
  opacity: 0;
  transform: translateY(24px);
  filter: blur(10px);
}

.xl-caption__kicker.is-active {
  display: block;
}

.xl-caption__kicker::after {
  content: "";
  display: block;
  width: clamp(74px, 42%, 160px);
  height: 1px;
  margin-top: clamp(12px, 1.2vw, 16px);
  background: linear-gradient(90deg, rgb(var(--rgb-gold-ui) / 0.82), rgb(var(--rgb-gold-ui) / 0.18), transparent);
  box-shadow: 0 0 20px rgb(194 118 37 / 0.2);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
}

.xl-caption__copy-wrap {
  display: grid;
}

.xl-caption__copy {
  grid-area: 1 / 1;
  max-width: min(520px, 100%);
  margin: 0;
  color: rgb(248 238 219 / 0.96);
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.1vw, 48px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.038em;
  text-wrap: balance;
  text-shadow: 0 2px 14px rgb(0 0 0 / 0.82), 0 12px 32px rgb(0 0 0 / 0.58);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  filter: blur(8px);
}

.xl-ensuite__section.is-cinema .xl-caption {
  opacity: 1;
  visibility: visible;
  transition: opacity 520ms var(--xl-ease) 480ms, visibility 0s step-start 480ms;
}

.xl-ensuite__section.is-cinema .xl-caption::before {
  animation: xl-caption-veil 1400ms var(--xl-ease-heavy) 520ms forwards;
}

.xl-ensuite__section.is-cinema .xl-caption::after {
  animation: xl-caption-sheen 2200ms var(--xl-ease) 920ms forwards;
}

.xl-ensuite__section.is-cinema .xl-caption__kicker {
  animation: xl-caption-kicker 1800ms var(--xl-ease-heavy) 780ms forwards;
}

.xl-ensuite__section.is-cinema .xl-caption__kicker::after {
  animation: xl-caption-rule 1600ms var(--xl-ease) 1180ms forwards;
}

/* First caption: a slow intro while the veil settles … */
.xl-ensuite__section.is-cinema:not(.is-caption-ready) .xl-caption__copy.is-active.is-intro {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  filter: blur(0);
  transition:
    opacity 1200ms var(--xl-ease-heavy) 1120ms,
    transform 1200ms var(--xl-ease-heavy) 1120ms,
    filter 800ms var(--xl-ease-heavy) 1120ms,
    visibility 0s step-start 1120ms;
}

/* … then quicker cross-fades as the video time moves between captions. */
.xl-ensuite__section.is-cinema.is-caption-ready .xl-caption__copy {
  transition:
    opacity 700ms var(--xl-ease),
    transform 700ms var(--xl-ease),
    filter 500ms var(--xl-ease),
    visibility 700ms step-end;
}

.xl-ensuite__section.is-cinema.is-caption-ready .xl-caption__copy.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  filter: blur(0);
  transition:
    opacity 700ms var(--xl-ease),
    transform 700ms var(--xl-ease),
    filter 500ms var(--xl-ease),
    visibility 0s step-start;
}

@keyframes xl-caption-veil {
  0% {
    opacity: 0;
    transform: scale(1.08);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes xl-caption-sheen {
  0% {
    opacity: 0;
    transform: translateX(-120%) skewX(-12deg);
  }

  18%,
  42% {
    opacity: 0.72;
  }

  100% {
    opacity: 0;
    transform: translateX(120%) skewX(-12deg);
  }
}

@keyframes xl-caption-kicker {
  0% {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(10px);
    letter-spacing: 0.46em;
  }

  38% {
    opacity: 0.42;
    filter: blur(5px);
    letter-spacing: 0.38em;
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    letter-spacing: 0.32em;
  }
}

@keyframes xl-caption-rule {
  0% {
    opacity: 0;
    transform: scaleX(0);
  }

  100% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes kt-acc-chevron-breathe {
  0%,
  100% {
    opacity: 0.88;
    filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.55)) drop-shadow(0 0 10px rgb(241 199 125 / 0.12));
  }

  50% {
    opacity: 1;
    filter: drop-shadow(0 2px 8px rgb(0 0 0 / 0.6)) drop-shadow(0 0 16px rgb(241 199 125 / 0.28));
  }
}

/* ---------- Responsive ---------- */

/* Mobile (≤860px, or compact touch landscape): copy, then images, then video. */
@media (max-width: 860px),
       (pointer: coarse) and (orientation: landscape) and (min-width: 1100px) and (max-width: 1180px) and (max-height: 780px) {
  .xl-ensuite__section {
    padding: 34px 14px;
  }

  .xl-ensuite__shell {
    display: flex;
    flex-direction: column;
  }

  .xl-ensuite__brandrail {
    display: none;
  }

  .xl-player {
    order: 2;
    align-self: center;
    width: min(520px, 100%);
    height: auto;
    aspect-ratio: 9 / 16;
  }

  .xl-player__frame {
    position: relative;
    inset: auto;
    height: 100%;
  }

  .xl-ensuite__content {
    order: 1;
    display: flex;
    flex-direction: column;
  }

  .xl-ensuite__copy {
    padding: 28px 22px 30px;
  }

  .xl-ensuite__support {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 2px;
  }

  .xl-ensuite__figure {
    scroll-snap-align: start;
  }

  .xl-ensuite__figure img {
    min-height: 260px;
    aspect-ratio: 4 / 5;
  }

  .xl-caption {
    justify-content: flex-end;
    padding: 24px 20px;
  }

  .xl-caption__copy {
    max-width: min(520px, 94%);
    font-size: clamp(26px, 7.2vw, 36px);
  }
}

/* Mobile landscape — match Exhibit C's title size. */
@media (max-width: 900px) and (orientation: landscape),
       (pointer: coarse) and (orientation: landscape) and (min-width: 1100px) and (max-width: 1180px) and (max-height: 780px) {
  .xl-ensuite__title {
    font-size: clamp(28px, 5vw, 44px);
    line-height: 0.95;
    white-space: nowrap;
  }
}

/* Phone: horizontal tap accordion for the three support images (JS adds .is-accordion). */
@media (max-width: 767px) {
  .xl-ensuite__eyebrow {
    font-size: 14px;
  }

  .xl-ensuite__commit {
    font-size: 20px;
    line-height: 1.55;
  }

  .xl-ensuite__support.is-accordion {
    gap: 4px;
    overflow: hidden;
    height: min(72vh, 560px);
    min-height: 360px;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  .xl-ensuite__support.is-accordion > .xl-ensuite__figure {
    flex: 1 1 0;
    height: 100%;
    aspect-ratio: auto;
    cursor: pointer;
    scroll-snap-align: none;
    -webkit-tap-highlight-color: transparent;
    transition: flex 520ms var(--xl-ease), filter 520ms ease;
  }

  .xl-ensuite__support.is-accordion > .xl-ensuite__figure.is-open {
    flex: 6.2 1 0;
  }

  .xl-ensuite__support.is-accordion > .xl-ensuite__figure img {
    min-height: 100%;
    aspect-ratio: auto;
  }

  .xl-ensuite__support.is-accordion > .xl-ensuite__figure--install img {
    object-position: 88% center;
  }

  /* Soft dim on collapsed strips so the open panel reads clearly. */
  .xl-ensuite__support.is-accordion > .xl-ensuite__figure:not(.is-open)::after {
    opacity: 0.32;
    background: rgb(0 0 0 / 0.42);
    transition: opacity 520ms ease;
  }

  .xl-ensuite__support.is-accordion > .xl-ensuite__figure.is-open::after {
    opacity: 0;
  }

  .xl-ensuite__support.is-accordion > .xl-ensuite__figure:focus-visible {
    outline: 2px solid rgb(214 164 91 / 0.85);
    outline-offset: -2px;
  }

  /* Accordion chevron (Exhibit B + C) on collapsed strips:
     › left of the open panel, ‹ right of it. */
  .is-accordion .kt-acc-chevron {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    pointer-events: none;
    transform: translate3d(-50%, -50%, 0);
    opacity: 0;
    visibility: hidden;
    transition: opacity 280ms ease, visibility 280ms ease;
  }

  .is-accordion .kt-acc-chevron svg {
    display: block;
    width: 64px;
    height: 64px;
    fill: none;
    stroke: rgb(255 246 228 / 0.96);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: rotate(180deg);
    filter: drop-shadow(0 2px 6px rgb(0 0 0 / 0.55)) drop-shadow(0 0 10px rgb(241 199 125 / 0.12));
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .is-accordion > :not(.is-open) > .kt-acc-chevron {
    opacity: 1;
    visibility: visible;
  }

  .is-accordion > :not(.is-open) > .kt-acc-chevron svg {
    animation: kt-acc-chevron-breathe 2.8s ease-in-out infinite;
  }

  .is-accordion > .is-face-right > .kt-acc-chevron svg {
    transform: rotate(0deg);
  }
}

@media (max-width: 560px) {
  .xl-ensuite__section {
    padding-inline: 10px;
  }

  .xl-ensuite__title {
    font-size: clamp(34px, 13vw, 54px);
  }

  .xl-ensuite__kicker {
    font-size: 15px;
  }
}

@media (max-width: 560px) and (orientation: portrait) {
  .xl-ensuite__title {
    white-space: normal;
  }

  .xl-ensuite__title > .kt-character-reveal__line {
    display: block;
  }
}

/* Beyond the mobile route the final ensuite image leads and the install detail
   closes the row (DOM order stays as the phone accordion needs). */
@media (min-width: 861px) and (max-width: 1099px),
       (min-width: 1181px),
       (min-width: 861px) and (pointer: fine),
       (min-width: 861px) and (orientation: portrait),
       (min-width: 861px) and (min-height: 781px) {
  .xl-ensuite__figure--shower {
    order: 1;
    flex: 0.82 1 0;
  }

  .xl-ensuite__figure--planes {
    order: 2;
  }

  .xl-ensuite__figure--install {
    order: 3;
    flex: 1.36 1 0;
  }
}

/* Desktop: fixed-height shell; the install detail keeps its established width
   while the copy and the two ensuite images take the rest. */
@media (min-width: 1181px),
       (min-width: 1025px) and (max-width: 1099px),
       (min-width: 1025px) and (pointer: fine),
       (min-width: 1025px) and (orientation: portrait),
       (min-width: 1025px) and (min-height: 781px) {
  .xl-ensuite__section {
    padding-inline: 0;
  }

  .xl-ensuite__shell {
    width: 92%;
    max-width: 1480px;
    height: clamp(588px, 53.33vw, 791px);
  }

  /* Image heights follow the install detail's natural ratio at its fixed width. */
  .xl-ensuite__figure {
    aspect-ratio: auto;
  }

  .xl-ensuite__figure--shower,
  .xl-ensuite__figure--planes {
    flex: 1 1 0;
  }

  .xl-ensuite__figure--install {
    flex: 0 0 clamp(240px, 24.35vw, 468px);
  }
}

/* ≥1921×1081 outside the scaled bands: the site-wide high-resolution type. */
@media (min-width: 1921px) and (min-height: 1081px) {
  .xl-ensuite__eyebrow {
    font-size: clamp(12px, min(0.625vw, 1.111111vh), 18.6px);
  }

  .xl-ensuite__title {
    font-size: clamp(56px, min(2.916667vw, 5.185185vh), 81.2px);
  }

  .xl-ensuite__kicker {
    font-size: clamp(14px, min(0.729167vw, 1.296296vh), 21px);
  }

  .xl-ensuite__commit {
    font-size: clamp(16px, min(0.833333vw, 1.481481vh), 24px);
  }

  .xl-caption__copy {
    font-size: clamp(48px, min(2.5vw, 4.444444vh), 69.6px);
  }

  .xl-player__time {
    font-size: clamp(12px, min(0.625vw, 1.111111vh), 18.6px);
  }
}

/* 1080p and 2160p (fine pointer): the 1280×720 composition, scaled uniformly. */
@media (min-width: 1600px) and (max-width: 2200px) and (min-height: 900px) and (max-height: 1250px) and (hover: hover) and (pointer: fine),
       (min-width: 3200px) and (max-width: 4400px) and (min-height: 1800px) and (max-height: 2500px) and (hover: hover) and (pointer: fine) {
  .xl-ensuite__section {
    --xl-s: min(calc(100vw / 1280), calc(100vh / 720));
    padding-block: calc(84.48 * var(--xl-s));
  }

  .xl-ensuite__shell {
    max-width: calc(1480 * var(--xl-s));
    height: calc(682.609375 * var(--xl-s));
    grid-template-columns: calc(371.2 * var(--xl-s)) minmax(0, 1fr);
    gap: calc(6 * var(--xl-s));
    border-width: calc(1 * var(--xl-s));
    border-radius: calc(2 * var(--xl-s));
  }

  .xl-ensuite__brandrail {
    left: calc(-19.2 * var(--xl-s));
    width: calc(14 * var(--xl-s));
    font-size: calc(9 * var(--xl-s));
  }

  .xl-player {
    max-width: calc(430 * var(--xl-s));
  }

  .xl-player__play {
    width: calc(58 * var(--xl-s));
    height: calc(58 * var(--xl-s));
    border-width: calc(1 * var(--xl-s));
    border-radius: calc(2 * var(--xl-s));
    backdrop-filter: blur(calc(14 * var(--xl-s)));
    -webkit-backdrop-filter: blur(calc(14 * var(--xl-s)));
    box-shadow:
      0 calc(18 * var(--xl-s)) calc(44 * var(--xl-s)) rgb(0 0 0 / 0.52),
      inset 0 calc(1 * var(--xl-s)) 0 rgb(255 236 190 / 0.14),
      inset 0 0 0 calc(1 * var(--xl-s)) rgb(214 164 91 / 0.1),
      0 0 calc(24 * var(--xl-s)) rgb(var(--rgb-gold-ui) / 0.12);
  }

  .xl-player__tap:hover .xl-player__play {
    box-shadow:
      0 calc(22 * var(--xl-s)) calc(50 * var(--xl-s)) rgb(0 0 0 / 0.56),
      inset 0 calc(1 * var(--xl-s)) 0 rgb(255 236 190 / 0.18),
      inset 0 0 0 calc(1 * var(--xl-s)) rgb(214 164 91 / 0.16),
      0 0 calc(32 * var(--xl-s)) rgb(var(--rgb-gold-ui) / 0.22);
  }

  .xl-player__play::before {
    border-left-width: calc(15 * var(--xl-s));
    border-top-width: calc(9 * var(--xl-s));
    border-bottom-width: calc(9 * var(--xl-s));
    filter: drop-shadow(0 calc(1 * var(--xl-s)) calc(2 * var(--xl-s)) rgb(0 0 0 / 0.55));
  }

  .xl-player__play::after {
    inset: calc(5 * var(--xl-s));
    border-top-width: calc(1 * var(--xl-s));
    border-left-width: calc(1 * var(--xl-s));
  }

  .xl-player__controls {
    left: calc(12 * var(--xl-s));
    right: calc(12 * var(--xl-s));
    bottom: calc(12 * var(--xl-s));
    grid-template-columns: calc(28 * var(--xl-s)) 1fr auto;
    gap: calc(10 * var(--xl-s));
    padding: calc(8 * var(--xl-s)) calc(12 * var(--xl-s));
    border-width: calc(1 * var(--xl-s));
    border-radius: calc(2 * var(--xl-s));
  }

  .xl-player__toggle {
    width: calc(26 * var(--xl-s));
    height: calc(26 * var(--xl-s));
    border-width: calc(1 * var(--xl-s));
    border-radius: calc(2 * var(--xl-s));
  }

  .xl-player__toggle span {
    width: calc(16 * var(--xl-s));
    height: calc(16 * var(--xl-s));
  }

  .xl-player__time {
    font-size: calc(12 * var(--xl-s));
  }

  .xl-ensuite__content,
  .xl-ensuite__support {
    gap: calc(6 * var(--xl-s));
  }

  .xl-ensuite__copy {
    padding: calc(38.4 * var(--xl-s)) calc(51.2 * var(--xl-s));
  }

  .xl-ensuite__eyebrow {
    margin-bottom: calc(14 * var(--xl-s));
    padding-bottom: calc(8 * var(--xl-s));
    border-bottom-width: calc(1 * var(--xl-s));
    font-size: calc(10 * var(--xl-s));
  }

  .xl-ensuite__title {
    font-size: calc(46.08 * var(--xl-s));
  }

  .xl-ensuite__kicker {
    margin: calc(14 * var(--xl-s)) 0 calc(18 * var(--xl-s));
    padding-block: calc(10 * var(--xl-s));
    font-size: calc(11.008 * var(--xl-s));
  }

  .xl-ensuite__kicker::before,
  .xl-ensuite__kicker::after {
    height: calc(1 * var(--xl-s));
  }

  /* Keeps the 720p three-line wrap despite Inter's optical metrics at large sizes. */
  .xl-ensuite__commit {
    max-width: calc(293.333333 * var(--xl-s));
    font-size: calc(14.72 * var(--xl-s));
  }

  .xl-ensuite__figure--install {
    flex-basis: calc(311.68 * var(--xl-s));
  }

  .xl-caption {
    padding: calc(40.96 * var(--xl-s));
  }

  .xl-caption__inner {
    width: min(100%, calc(520 * var(--xl-s)));
  }

  .xl-caption__kicker {
    margin-bottom: calc(23.04 * var(--xl-s));
    font-size: calc(13.44 * var(--xl-s));
  }

  .xl-caption__kicker::after {
    width: calc(99.008 * var(--xl-s));
    height: calc(1 * var(--xl-s));
    margin-top: calc(15.36 * var(--xl-s));
  }

  .xl-caption__copy {
    max-width: min(calc(520 * var(--xl-s)), 100%);
    font-size: calc(39.68 * var(--xl-s));
  }
}

/* Touch tablets and phones: no backdrop blurs or layer promotion (the
   original's page-wide performance rule, applied to this section). */
@media (max-width: 1180px), (pointer: coarse) and (min-width: 768px) {
  .xl-ensuite__section * {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    will-change: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .xl-ensuite__section.is-cinema .xl-caption::before,
  .xl-ensuite__section.is-cinema .xl-caption::after,
  .xl-ensuite__section.is-cinema .xl-caption__kicker,
  .xl-ensuite__section.is-cinema .xl-caption__kicker::after {
    animation: none;
  }

  .xl-ensuite__section.is-cinema .xl-caption__kicker,
  .xl-ensuite__section.is-cinema .xl-caption__kicker::after {
    opacity: 1;
    transform: none;
    filter: none;
    letter-spacing: 0.32em;
  }

  .xl-ensuite__section.is-cinema.is-caption-ready .xl-caption__copy.is-active,
  .xl-ensuite__section.is-cinema:not(.is-caption-ready) .xl-caption__copy.is-active.is-intro {
    opacity: 1;
    visibility: visible;
    transform: none;
    filter: none;
    transition: none;
  }

  .is-accordion .kt-acc-chevron svg {
    animation: none !important;
    transition: none;
  }
}
