/* cyrillic-ext */
@font-face {
  font-family: 'ErgoVideoInter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/media/ergoroom/video/home-v08-20261110/inter/inter-regular-0.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'ErgoVideoInter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/media/ergoroom/video/home-v08-20261110/inter/inter-regular-1.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'ErgoVideoInter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/media/ergoroom/video/home-v08-20261110/inter/inter-regular-2.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'ErgoVideoInter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/media/ergoroom/video/home-v08-20261110/inter/inter-regular-3.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'ErgoVideoInter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/media/ergoroom/video/home-v08-20261110/inter/inter-regular-4.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'ErgoVideoInter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/media/ergoroom/video/home-v08-20261110/inter/inter-regular-5.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'ErgoVideoInter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/media/ergoroom/video/home-v08-20261110/inter/inter-regular-6.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Additive component. Existing homepage selectors and layout are unchanged. */
.ergo-home-video-launch {
  --ergo-video-x: 70%;
  --ergo-video-y: 60%;
  --ergo-video-size: 84px;
  --ergo-video-font-size: 18px;
  --ergo-video-gap: 64px;
  position: absolute;
  z-index: 3;
  left: var(--ergo-video-x);
  top: var(--ergo-video-y);
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--ergo-video-gap);
  padding: 0;
  border: 0;
  margin: 0;
  color: #33312e;
  background: transparent;
  font: 400 var(--ergo-video-font-size)/1.2 ErgoVideoInter, Inter, Arial, sans-serif;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.ergo-home-video-launch__circle {
  display: grid;
  place-items: center;
  width: var(--ergo-video-size);
  height: var(--ergo-video-size);
  flex: none;
  border: 0;
  border-radius: 50%;
  background: #f8f8f8;
  box-shadow: none;
}
.ergo-home-video-launch__circle svg { display: block; width: 44px; height: 44px; margin-left: 2px; }
.ergo-home-video-launch__label {
  display: block;
  padding: 0;
  color: #e2dfdc;
  background: transparent;
  border: 0;
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 400;
  text-shadow: none;
  white-space: nowrap;
}
.ergo-home-video-launch:focus-visible {
  outline: none;
}
.ergo-home-video-launch:focus-visible .ergo-home-video-launch__circle {
  outline: 2px solid #fff;
  outline-offset: 5px;
}
.ergo-home-video-dialog,
.ergo-home-video-dialog * { box-sizing: border-box; }
.ergo-home-video-dialog {
  width: min(1120px, calc(100vw - 64px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  padding: 0;
  margin: auto;
  border: 0;
  background: transparent;
  color: #fff;
  overflow: auto;
  overscroll-behavior: contain;
  font-family: Roboto, Arial, sans-serif;
}
.ergo-home-video-dialog::backdrop { background: rgba(12,12,12,.94); }
.ergo-home-video-dialog__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding-bottom: 8px;
}
.ergo-home-video-dialog__heading {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  letter-spacing: 2px;
}
.ergo-home-video-dialog__duration {
  color: rgba(255,255,255,.62);
  font-size: 11px;
  letter-spacing: 1px;
}
.ergo-home-video-dialog__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.ergo-home-video-dialog__close:hover { background: rgba(255,255,255,.12); }
.ergo-home-video-dialog__close:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ergo-home-video-dialog__stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0c0c0c;
  overflow: hidden;
}
.ergo-home-video-dialog__stage picture { display: block; width: 100%; height: 100%; }
.ergo-home-video-dialog__stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ergo-home-video-dialog__stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.ergo-home-video-dialog__preview-note {
  margin: 15px 0 2px;
  color: rgba(255,255,255,.67);
  font-size: 12px;
  line-height: 1.5;
  font-weight: 300;
  letter-spacing: .15px;
}
.ergo-home-video-dialog [hidden] { display: none !important; }
@media (max-width: 991.98px) {
  .ergo-home-video-launch {
    --ergo-video-x: 52%;
    --ergo-video-y: 140px;
    --ergo-video-size: 64px;
    --ergo-video-font-size: 18px;
    --ergo-video-gap: 12px;
  }
  .ergo-home-video-launch__circle svg { width: 33px; height: 33px; }
}
@media (max-width: 767.98px) {
  .ergo-home-video-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 32px); }
  .ergo-home-video-dialog__bar { min-height: 56px; }
  .ergo-home-video-dialog__heading { font-size: 11px; letter-spacing: 1.6px; gap: 12px; }
  .ergo-home-video-dialog__preview-note { font-size: 11px; }
}
@media (orientation: landscape) and (max-height: 600px) {
  .ergo-home-video-dialog { width: min(calc(100vw - 80px), calc((100dvh - 110px) * 16 / 9)); }
  .ergo-home-video-dialog__bar { min-height: 48px; padding-bottom: 4px; }
  .ergo-home-video-dialog__preview-note { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .ergo-home-video-launch__circle { transition: none; }
}

/* Phone landscape must not inherit the 768px tablet hero offsets. */
@media (orientation: landscape) and (max-height: 600px) and (max-width: 1200px) {
  body.page-main-redesign #home-hero {
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: #fff;
    overflow: hidden;
  }
  body.page-main-redesign #home-hero .ergo-2026-hero-content {
    display: contents;
    position: static;
    width: 100%;
    max-width: none;
    padding: 0;
    inset: auto;
  }
  body.page-main-redesign #home-hero .ergo-2026-hero-media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    order: 1;
    width: 100%;
    min-width: 0;
    height: auto;
    inset: auto;
    overflow: visible;
    background: #fff;
  }
  body.page-main-redesign #home-hero .ergo-2026-hero-media::before,
  body.page-main-redesign #home-hero::before { display: none; }
  body.page-main-redesign #home-hero .ergo-2026-hero-media img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: min(68svh, calc(100svh - 120px));
    aspect-ratio: auto;
    object-fit: contain;
    object-position: center;
  }
  body.page-main-redesign #home-hero .ergo-2026-hero-copy {
    position: relative;
    order: 2;
    width: 100%;
    max-width: none;
    inset: auto;
    padding: 28px 22px 20px;
    background: #fff;
  }
  body.page-main-redesign #home-hero .ergo-2026-eyebrow {
    margin-bottom: 16px;
    font-size: 10px;
    line-height: 1.25;
  }
  body.page-main-redesign #home-hero h1 {
    display: block;
    max-width: 310px;
    margin-bottom: 14px;
    font-size: 34px;
    font-weight: 300;
    line-height: .96;
  }
  body.page-main-redesign #home-hero h1 span { display: block; white-space: normal; }
  body.page-main-redesign #home-hero h1 br.d-md-none { display: initial !important; }
  body.page-main-redesign #home-hero h1 br.d-none.d-md-block { display: none !important; }
  body.page-main-redesign #home-hero .ergo-2026-hero-lead {
    max-width: 260px;
    margin-top: 0;
    font-size: 15px;
    line-height: 1.22;
  }
  body.page-main-redesign #home-hero .ergo-2026-actions {
    display: grid;
    grid-template-columns: 1fr;
    order: 3;
    gap: 10px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 8px 22px 34px;
    background: #fff;
  }

  /* Automatic landscape viewing: no reserved title row or outer margins.
     Kinescope fits the 16:9 video inside this full viewport without cropping. */
  .ergo-home-video-dialog[open] {
    position: fixed;
    inset: 0;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: #000;
  }
  .ergo-home-video-dialog[open]::backdrop { background: #000; }
  .ergo-home-video-dialog__bar {
    position: absolute;
    z-index: 2;
    inset: max(6px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) auto auto;
    min-height: 0;
    padding: 0;
    pointer-events: none;
  }
  .ergo-home-video-dialog__heading { display: none; }
  .ergo-home-video-dialog__close {
    pointer-events: auto;
    background: rgba(0,0,0,.4);
    border-color: rgba(255,255,255,.5);
  }
  .ergo-home-video-dialog__stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    background: #000;
  }
}

/* Only a phone viewing session can set this class. Desktop styling is intact. */
html.ergo-home-video-native .ergo-home-video-dialog::backdrop { background: #000; }
html.ergo-home-video-native:fullscreen { background: #000; }
html.ergo-home-video-native:-webkit-full-screen { background: #000; }
