/* A fixed composition: slide changes never depend on page scrolling. */
@layer polish {
  .showcase { --showcase-height: clamp(600px, calc(100svh - 310px), 620px); background: var(--navy); }
  .showcase-panel { min-height: var(--showcase-height); overflow: hidden; }
  .showcase-panel[hidden] { display: none; }
  .showcase-window { position: relative; overflow: hidden; }
  .showcase-panel.is-drag-preview { position: absolute; inset: 0; }
  .showcase-window.is-dragging { cursor: grabbing; user-select: none; }
  @media (hover: hover) and (pointer: fine) {
    .showcase.is-ready .showcase-window { cursor: grab; }
    .showcase.is-ready .showcase-window.is-dragging { cursor: grabbing; }
  }
  .showcase-inner { min-height: inherit; position: relative; display: grid; grid-template-columns: 43% 57%; align-items: center; }
  .showcase-copy { position: relative; z-index: 2; padding-block: 48px 54px; }
  .showcase-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 500; line-height: 1.5; letter-spacing: .09em; text-transform: uppercase; color: #bbcee7; }
  .showcase-eyebrow > span { flex: 0 0 6px; height: 6px; background: var(--ice); }
  .showcase-title { margin-top: 29px; letter-spacing: -.045em; }
  .showcase-title--brand strong, .showcase-title--equipment strong { display: block; font-family: Arial, sans-serif; font-size: clamp(100px, 10.5vw, 152px); font-weight: 900; letter-spacing: -.065em; line-height: .95; margin-left: -.065em; }
  .showcase-title--brand > span { display: block; margin-top: 18px; font-size: clamp(25px, 2.4vw, 34px); font-weight: 600; letter-spacing: -.035em; }
  .showcase-description { max-width: 355px; margin-block: 28px; font-size: 18px; line-height: 1.55; }
  .showcase-action { min-height: 50px; gap: 30px; font-size: 15px; }
  .showcase-action > span { font-size: 20px; font-weight: 400; line-height: 1; }
  .showcase-panel--origin, .showcase-panel--service { color: white; background: var(--navy); }
  .showcase-visual { margin: 0; min-width: 0; }
  .showcase-visual--scene { position: absolute; inset: 0 -8% 0 27%; pointer-events: none; }
  .showcase-visual--scene img { position: absolute; left: 50%; transform: translateX(-50%); width: auto; max-width: none; height: 100%; object-fit: contain; -webkit-mask-image: linear-gradient(90deg, transparent, #000 13%, #000 89%, transparent), linear-gradient(0deg, transparent, #000 8%, #000 90%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 13%, #000 89%, transparent), linear-gradient(0deg, transparent, #000 8%, #000 90%, transparent); mask-composite: intersect; }
  .showcase-nameplate { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-left: 15px; border-left: 2px solid var(--blue); }
  .showcase-nameplate--origin { position: absolute; right: 0; bottom: 26px; z-index: 2; padding: 12px 18px; background: #041a47e8; border-left-color: var(--ice); }
  .showcase-nameplate-label { font-size: 10px; letter-spacing: .09em; text-transform: uppercase; line-height: 1.4; color: #adc3e0; }
  .showcase-nameplate-model { font: 500 16px/1.4 'Golos Text Variable', Arial, sans-serif; }
  .showcase-nameplate-model > span { font-weight: 400; }
  .showcase-panel--equipment { background: var(--paper); color: var(--navy); }
  .showcase-panel--equipment .showcase-eyebrow { color: #53657e; }
  .showcase-panel--equipment .showcase-eyebrow > span { background: var(--blue); }
  .showcase-title--equipment > span { display: block; font-size: clamp(32px, 3.3vw, 46px); font-weight: 600; margin-bottom: 16px; }
  .showcase-panel--equipment .showcase-description { max-width: 350px; }
  .showcase-footnote { margin-top: 23px; font-size: 12px; letter-spacing: .015em; color: #53657e; }
  .showcase-visual--product { align-self: stretch; position: relative; padding: 20px 0 73px; }
  .showcase-visual--product img { position: absolute; top: 12px; right: -4%; width: 106%; height: calc(100% - 78px); object-fit: contain; mix-blend-mode: multiply; }
  .showcase-visual--product .showcase-nameplate { position: absolute; bottom: 29px; left: 14%; }
  .showcase-visual--product .showcase-nameplate-label { color: #53657e; }
  .showcase-title--service { font-size: clamp(34px, 3.8vw, 53px); line-height: 1.16; font-weight: 700; }
  .showcase-title--service > span { color: var(--ice); }
  .showcase-panel--service .showcase-description { max-width: 405px; font-size: 17px; color: #d9e3f1; }
  .showcase-visual--service { margin: 42px 0 42px 48px; position: relative; padding: 14px; border: 1px solid #ffffff26; }
  .showcase-visual--service::before, .showcase-visual--service::after { content: ''; position: absolute; width: 17px; height: 17px; pointer-events: none; }
  .showcase-visual--service::before { top: -1px; left: -1px; border-top: 2px solid var(--ice); border-left: 2px solid var(--ice); }
  .showcase-visual--service::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--ice); border-right: 2px solid var(--ice); }
  .showcase-photo { height: clamp(280px, 29vw, 390px); overflow: hidden; background: #102b40; }
  .showcase-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 48% center; }
  .showcase-visual--service .showcase-nameplate { margin-block: 20px 6px; border-left-color: var(--ice); }
  .showcase-navigation { display: none; color: white; border-top: 1px solid #ffffff26; background: var(--navy); }
  .showcase.is-ready .showcase-navigation { display: block; }
  .showcase-controls { display: flex; align-items: stretch; gap: 34px; }
  .showcase-topics { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .showcase-topic { position: relative; display: flex; align-items: center; text-align: left; gap: 14px; min-height: 85px; padding: 19px 0; border: 0; background: transparent; color: #adbfda; font-size: 13px; line-height: 1.4; }
  .showcase-topic::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--ice); opacity: 0; transition: opacity 160ms ease; }
  .showcase-topic[aria-pressed="true"] { color: white; }
  .showcase-topic[aria-pressed="true"]::before { opacity: 1; }
  .showcase-topic-number { font: 12px/1.2 ui-monospace, Consolas, monospace; color: #9aaecb; }
  .showcase-topic[aria-pressed="true"] .showcase-topic-number { color: var(--ice); }
  .showcase-pagination { display: flex; gap: 8px; align-items: center; }
  .showcase-count { margin-right: 17px; min-width: 54px; font: 12px/1.4 ui-monospace, Consolas, monospace; color: #9aaecb; font-variant-numeric: tabular-nums; }
  .showcase-count b { color: white; font-weight: 400; }
  .showcase-arrow { display: grid; place-items: center; width: 45px; height: 45px; border: 1px solid #ffffff42; border-radius: 3px; background: transparent; color: white; transition: background-color 160ms ease, border-color 160ms ease; }
  .showcase-arrow:active { background: #ffffff23; }
  .showcase button:focus-visible, .showcase a:focus-visible { outline-color: var(--ice); outline-offset: 4px; }
  .showcase-panel--equipment a:focus-visible { outline-color: var(--blue); }
  .showcase-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
  @media (hover: hover) and (pointer: fine) {
    .showcase-topic:hover { color: white; }
    .showcase-arrow:hover { background: #ffffff14; border-color: #ffffff80; }
  }
  @media (max-width: 1100px) and (min-width: 761px) {
    .showcase { --showcase-height: 560px; }
    .showcase-inner { grid-template-columns: 46% 54%; }
    .showcase-title--brand strong, .showcase-title--equipment strong { font-size: 113px; }
    .showcase-description { font-size: 17px; max-width: 310px; }
    .showcase-eyebrow { max-width: 290px; font-size: 10px; }
    .showcase-title--service { font-size: 36px; }
    .showcase-visual--service { margin-left: 22px; padding: 10px; }
    .showcase-photo { height: 290px; }
    .showcase-controls { gap: 20px; }
    .showcase-topics { gap: 20px; }
    .showcase-topic { gap: 8px; font-size: 12px; }
    .showcase-count { display: none; }
  }
  @media (max-width: 760px) {
    .showcase { --showcase-height: 700px; }
    .showcase-inner { display: flex; flex-direction: column; align-items: stretch; min-height: var(--showcase-height); }
    .showcase-copy { padding-block: 32px 0; }
    .showcase-eyebrow { font-size: 9px; letter-spacing: .075em; gap: 8px; }
    .showcase-title { margin-top: 23px; }
    .showcase-title--brand strong, .showcase-title--equipment strong { font-size: 114px; }
    .showcase-title--brand > span { font-size: 28px; margin-top: 12px; }
    .showcase-description { max-width: 365px; font-size: 16px; line-height: 1.5; margin-block: 22px; }
    .showcase-action { min-height: 46px; font-size: 14px; padding: 12px 22px; gap: 24px; }
    .showcase-visual--scene { inset: auto -16% 0; height: 360px; }
    .showcase-visual--scene img { object-fit: contain; }
    .showcase-nameplate--origin { bottom: 16px; right: 0; padding: 8px 12px; }
    .showcase-nameplate { gap: 5px; }
    .showcase-nameplate-label { font-size: 8px; }
    .showcase-nameplate-model { font-size: 13px; }
    .showcase-title--equipment { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
    .showcase-title--equipment > span { font-size: 28px; margin-bottom: 0; }
    .showcase-title--equipment strong { font-size: 96px; }
    .showcase-panel--equipment .showcase-description { max-width: 330px; margin-block: 18px; }
    .showcase-footnote { margin-top: 16px; font-size: 11px; }
    .showcase-visual--product { position: absolute; bottom: 0; left: 0; right: 0; height: 320px; padding: 0; }
    .showcase-visual--product img { inset: -12px 0 auto; width: 100%; height: 285px; }
    .showcase-visual--product .showcase-nameplate { bottom: 18px; left: 0; }
    .showcase-title--service { font-size: clamp(32px, 6vw, 42px); line-height: 1.16; }
    .showcase-panel--service .showcase-description { max-width: 460px; font-size: 16px; }
    .showcase-visual--service { margin: 27px 0 20px; padding: 10px; }
    .showcase-photo { height: 250px; }
    .showcase-visual--service .showcase-nameplate { margin-block: 13px 3px; }
    .showcase-controls { flex-wrap: wrap; gap: 0; padding-bottom: 15px; }
    .showcase-topics { flex-basis: 100%; gap: 18px; }
    .showcase-topic { min-height: 77px; gap: 6px; padding-block: 16px 13px; flex-direction: column; align-items: flex-start; justify-content: flex-start; font-size: 11px; }
    .showcase-topic-number { font-size: 10px; }
    .showcase-pagination { width: 100%; justify-content: flex-end; padding-top: 5px; }
    .showcase-count { margin-right: auto; }
    .showcase-arrow { width: 44px; height: 44px; }
  }
  @media (max-width: 420px) {
    .showcase { --showcase-height: 650px; }
    .showcase-copy { padding-top: 29px; }
    .showcase-title--brand strong { font-size: 106px; }
    .showcase-title--brand > span { font-size: 25px; }
    .showcase-description { max-width: 310px; font-size: 15px; }
    .showcase-visual--scene { height: 305px; bottom: 10px; }
    .showcase-visual--product { height: 290px; }
    .showcase-visual--product img { height: 265px; }
    .showcase-title--service { font-size: 32px; }
    .showcase-panel--service .showcase-description { font-size: 15px; }
    .showcase-photo { height: 210px; }
  }
  @media (max-width: 360px) {
    .showcase-eyebrow { max-width: 260px; font-size: 8px; }
    .showcase-title--brand strong, .showcase-title--equipment strong { font-size: 94px; }
    .showcase-title--service { font-size: 28px; }
    .showcase-topic { font-size: 10px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .showcase-topic::before, .showcase-arrow { transition: none; }
  }
}

@layer polish {
  .showcase--cinema {
    --showcase-height: max(560px, calc(100svh - var(--home-header-height, 134px)));
    --cinema-ink: #02070d;
    position: relative;
    background: var(--cinema-ink);
    isolation: isolate;
  }
  .showcase--cinema .showcase-panel { position: relative; }
  .showcase--cinema .showcase-panel.is-drag-preview { position: absolute; }
  .showcase--cinema .showcase-inner { padding-bottom: 84px; }
  .showcase-panel--cinema { color: #fff; background: var(--cinema-ink); }
  .berg-hero-media { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
  .berg-hero-video {
    position: absolute;
    width: min(96vw, calc(var(--showcase-height) * 1.95));
    max-width: none;
    height: auto;
    right: -10vw;
    top: 48%;
    transform: translateY(-50%);
    aspect-ratio: 16 / 9;
    object-fit: contain;
    /* Both fades reach zero: no hard edge even as the studio light changes. */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 19%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 82%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent, #000 19%, #000 88%, transparent), linear-gradient(180deg, transparent, #000 12%, #000 82%, transparent 100%);
    mask-composite: intersect;
  }
  .berg-hero-copy { padding-block: 48px; }
  .berg-hero-title { margin: 0; font-size: clamp(44px, 4.4vw, 72px); line-height: 1.06; letter-spacing: -.048em; font-weight: 600; }
  .berg-hero-title > span { display: block; white-space: nowrap; }
  .berg-hero-title > span + span { margin-top: 10px; color: #c8dce9; font-weight: 400; letter-spacing: -.04em; }
  .berg-hero-origin { margin-top: 34px; font-size: clamp(19px, 1.55vw, 24px); line-height: 1.4; letter-spacing: -.025em; }
  .berg-hero-registry { display: flex; align-items: center; gap: 9px; margin-top: 12px; color: #aabac8; font-size: 14px; line-height: 1.5; }
  .berg-hero-registry svg { width: 18px; height: 18px; stroke: #8eb9d1; stroke-width: 1.2; flex: none; }
  .berg-hero-action { margin-top: 36px; min-height: 52px; padding-inline: 25px; gap: 44px; }
  .showcase--cinema .showcase-navigation { position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; background: #041a47e8; transition: background-color 500ms ease; }
  .showcase--cinema[data-active-slide="0"] .showcase-navigation { background: transparent; border-color: #d1e6f51f; }
  .showcase--cinema .showcase-topics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
  .showcase--cinema .showcase-topic { min-height: 84px; gap: 10px; font-size: 12px; }
  .showcase--cinema .showcase-controls { gap: 26px; }
  .showcase--cinema .showcase-count { margin-inline: 8px 14px; }
  .berg-hero-playback { margin-right: 5px; border-radius: 50%; border-color: #ffffff2e; }
  .berg-hero-playback[hidden], .showcase--cinema:not([data-active-slide="0"]) .berg-hero-playback { display: none; }
  @media (min-width: 1600px) {
    .berg-hero-inner { width: min(1520px, calc(100% - 160px)); }
    .berg-hero-video { right: -5vw; }
  }
  @media (max-width: 1050px) {
    .showcase--cinema { --home-header-height: 77px; }
    .showcase--cinema .showcase-controls { gap: 16px; }
    .showcase--cinema .showcase-topics { gap: 15px; }
    .showcase--cinema .showcase-topic { font-size: 11px; gap: 6px; }
    .showcase--cinema .showcase-count { display: none; }
    .berg-hero-video { right: -17vw; width: 110vw; }
  }
  @media (max-width: 760px) {
    .showcase--cinema { --showcase-height: max(670px, calc(100svh - var(--home-header-height, 77px))); }
    .showcase--cinema .showcase-inner { padding-bottom: 100px; }
    .showcase--cinema .berg-hero-inner { display: block; }
    .berg-hero-copy { padding-block: 34px 0; }
    .berg-hero-title { font-size: clamp(38px, 8vw, 54px); line-height: 1.04; }
    .berg-hero-title > span + span { margin-top: 5px; }
    .berg-hero-origin { margin-top: 19px; font-size: 18px; }
    .berg-hero-registry { margin-top: 7px; font-size: 12px; gap: 7px; }
    .berg-hero-registry svg { width: 16px; height: 16px; }
    .berg-hero-action { margin-top: 22px; min-height: 46px; padding: 12px 21px; gap: 34px; }
    .berg-hero-video { top: auto; bottom: 65px; right: -23%; width: 146%; transform: none; }
    .showcase--cinema .showcase-controls { flex-wrap: nowrap; align-items: center; padding-block: 0; gap: 16px; min-height: 88px; }
    .showcase--cinema .showcase-topics { flex-basis: auto; gap: 12px; }
    .showcase--cinema .showcase-topic { min-height: 64px; padding-block: 14px; justify-content: center; align-items: center; }
    .showcase--cinema .showcase-topic::before { top: auto; bottom: 8px; height: 2px; }
    .showcase--cinema .showcase-topic > span:not(.showcase-topic-number) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .showcase--cinema .showcase-topic-number { font-size: 11px; }
    .showcase--cinema .showcase-pagination { width: auto; padding-top: 0; gap: 7px; }
    .showcase--cinema .showcase-arrow { width: 40px; height: 40px; }
    .showcase--cinema .berg-hero-playback { width: 36px; height: 36px; margin-right: 5px; }
    .showcase--cinema .showcase-visual--scene { bottom: 86px; height: 310px; }
    .showcase--cinema .showcase-visual--product { bottom: 90px; height: 270px; }
    .showcase--cinema .showcase-visual--product img { height: 245px; }
    .showcase--cinema .showcase-panel--service { min-height: max(var(--showcase-height), 760px); }
  }
  @media (max-width: 550px) {
    .showcase--cinema { --home-header-height: 69px; }
  }
  @media (max-width: 380px) {
    .berg-hero-title { font-size: 37px; }
    .showcase--cinema .showcase-controls { gap: 10px; }
    .showcase--cinema .showcase-topics { gap: 7px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .showcase--cinema .showcase-navigation { transition: none; }
  }
}

@media(hover:hover) and (pointer:fine){.home-refined .showcase--cinema.is-ready .showcase-window{cursor:grab}.home-refined .showcase--cinema.is-ready .showcase-window.is-dragging{cursor:grabbing}}
