/* Operator training: video URLs, posters and captions are in data/home.json. */
.home-ots { position: relative; padding-block: 88px 94px; background: radial-gradient(ellipse at 85% 35%, #e8f0f666, transparent 58%), linear-gradient(180deg, #fff, #f6f9fb); color: #142a40; font-family: 'IBM Plex Sans', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.home-ots *, .home-ots *::before, .home-ots *::after { box-sizing: border-box; }
.home-ots__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: 64px; }
.home-ots__copy { min-width: 0; }
.home-ots__eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 19px; color: #41576a; font-size: 11px; font-weight: 500; line-height: 1.5; letter-spacing: .085em; text-transform: uppercase; }
.home-ots__eyebrow > span { flex: 0 0 23px; height: 2px; background: #b94f00; }
.home-ots h2 { margin: 0 0 22px; color: #142a40; font-size: clamp(30px, 2.8vw, 40px); font-weight: 500; line-height: 1.16; letter-spacing: -.035em; }
.home-ots h2 > span { display: block; color: #254e76; }
.home-ots__intro { margin: 0; color: #41576a; font-size: 16px; line-height: 1.7; }
.home-ots__features { margin: 27px 0 26px; padding: 0; list-style: none; }
.home-ots__features > li { display: flex; align-items: flex-start; gap: 15px; margin: 0; padding: 17px 0; border-top: 1px solid #d8e2eb; }
.home-ots__features > li:last-child { border-bottom: 1px solid #d8e2eb; }
.home-ots__features > li > div { min-width: 0; }
.home-ots__feature-icon { display: grid; flex: 0 0 34px; place-items: center; width: 34px; height: 34px; margin-top: 2px; border: 1px solid #142a40; border-radius: 7px; background: linear-gradient(135deg, #254e76, #142a40); color: #fff; }
.home-ots__feature-icon .nav-icon { width: 20px; height: 20px; }
.home-ots__features h3 { margin: 0 0 5px; color: #142a40; font-size: 17px; font-weight: 500; line-height: 1.35; letter-spacing: -.015em; }
.home-ots__features p { margin: 0; color: #41576a; font-size: 14px; line-height: 1.65; }
.home-ots__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.home-ots__primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 21px; min-height: 50px; max-width: 100%; padding: 14px 18px; border: 1px solid transparent; border-radius: 6px; background: #ff8a3d; color: #142a40; font-size: 14px; font-weight: 600; line-height: 1.4; text-decoration: none; transition: background 160ms; }
.home-ots__primary:hover { background: #e86f21; }
.home-ots__primary > span { min-width: 0; }
.home-ots__secondary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #254e76; font-size: 14px; font-weight: 500; line-height: 1.4; text-decoration: underline; text-decoration-color: #a5b9ca; text-underline-offset: 5px; transition: text-decoration-color 160ms; }
.home-ots__secondary:hover { text-decoration-color: #254e76; }
.home-ots__actions .nav-icon { width: 18px; height: 18px; }
.home-ots__actions a:focus-visible { outline: 3px solid #254e76; outline-offset: 5px; }

.home-ots__media { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.home-ots__figure { min-width: 0; margin: 0; overflow: hidden; border: 1px solid #d0dde7; border-radius: 9px; background: #fff; box-shadow: 0 8px 25px #142a4008; }
.home-ots__figure--primary { position: relative; grid-column: 1 / -1; border-radius: 12px; box-shadow: 0 18px 38px #142a4012, 0 3px 8px #142a4008; }
.home-ots__figure--primary::before { content: ''; position: absolute; z-index: 1; top: 0; left: 24px; width: 46px; height: 3px; border-radius: 0 0 2px 2px; background: #ff8a3d; pointer-events: none; }
.home-ots__viewport { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #edf3f8; }
.home-ots__image { display: block; width: 100%; height: 100%; object-fit: cover; background: #edf3f8; }
.home-ots__video-trigger { color: #142a40; text-decoration: none; }
.home-ots__video-trigger:focus-visible { outline: 3px solid #142a40; outline-offset: -3px; box-shadow: inset 0 0 0 6px #fff; }
.home-ots__poster-fallback { position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 15%, #7dd3e829, transparent 62%), linear-gradient(135deg, #254e76, #142a40); }
.home-ots__play { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid #ffffffcc; border-radius: 50%; background: #fffffff2; color: #142a40; box-shadow: 0 5px 22px #07172740; transform: translate(-50%, -50%); pointer-events: none; transition: background 160ms, border-color 160ms; }
.home-ots__play > svg { display: block; width: 22px; height: 22px; margin-left: 2px; }
.home-ots__figure--primary .home-ots__play { width: 64px; height: 64px; }
.home-ots__figure--primary .home-ots__play > svg { width: 27px; height: 27px; }
.home-ots__video-trigger:is(:hover, :focus-visible) .home-ots__play { border-color: #ff8a3d; background: #ff8a3d; }
.home-ots__watch-label { position: absolute; bottom: 12px; left: 12px; padding: 6px 9px; border: 1px solid #ffffff3b; border-radius: 4px; background: #142a40df; color: #fff; font-size: 11px; font-weight: 500; line-height: 1.4; pointer-events: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.home-ots__watch-label--soon { border-color: #d8e2eb; background: #fffffff0; color: #41576a; }
.home-ots__placeholder { display: flex; align-items: center; justify-content: center; flex-direction: column; width: 100%; height: 100%; padding: 18px 12px; background: linear-gradient(135deg, #f9fbfc, #eaf1f6); text-align: center; }
.home-ots__placeholder > svg { flex-shrink: 0; width: 32px; height: 32px; margin-bottom: 11px; color: #7892a8; }
.home-ots__placeholder > strong { color: #41576a; font-size: 14px; font-weight: 500; line-height: 1.4; }
.home-ots__placeholder > span { margin-top: 5px; color: #5d7182; font-size: 11px; line-height: 1.5; }
.home-ots__figure--primary .home-ots__placeholder > svg { width: 46px; height: 46px; margin-bottom: 16px; }
.home-ots__figure--primary .home-ots__placeholder > strong { font-size: 17px; }
.home-ots__figure--primary .home-ots__placeholder > span { font-size: 12px; }
.home-ots__caption { margin: 0; padding: 12px 14px; border-top: 1px solid #d8e2eb; color: #5d7182; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.home-ots__video-title { display: block; color: #254e76; font-size: 14px; font-weight: 500; line-height: 1.4; }
.home-ots__video-description { margin: 6px 0 0; color: #41576a; font-size: 12px; line-height: 1.6; }
.home-ots__language { display: block; margin-top: 8px; color: #5d7182; font-size: 10px; font-weight: 500; line-height: 1.5; letter-spacing: .05em; text-transform: uppercase; }
.home-ots__figure--primary .home-ots__video-title { font-size: 15px; }

/* Immersive, click-to-open player; media is attached only by the dialog script. */
.training-video-dialog { position: fixed; inset: 0; width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; overflow: hidden; border: 0; border-radius: 0; background: linear-gradient(135deg, #142a40f5, #07121dfc); color: #fff; color-scheme: dark; font-family: 'IBM Plex Sans', Arial, sans-serif; font-size: 16px; line-height: 1.5; }
.training-video-dialog:not([open]) { display: none; }
.training-video-dialog[open] { display: block; }
.training-video-dialog *, .training-video-dialog *::before, .training-video-dialog *::after { box-sizing: border-box; }
.training-video-dialog::backdrop { background: #07121df2; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.training-video-dialog__shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 16px; width: 100%; height: 100%; padding: max(20px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left)); pointer-events: none; }
.training-video-dialog__header, .training-video-dialog__stage, .training-video-dialog__footer { pointer-events: auto; }
.training-video-dialog__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; min-width: 0; }
.training-video-dialog__heading { min-width: 0; }
.training-video-dialog__eyebrow { margin: 0 0 7px; color: #c3d9e7; font-size: 10px; font-weight: 500; line-height: 1.5; letter-spacing: .09em; text-transform: uppercase; }
.training-video-dialog h2 { margin: 0; color: #fff; font-size: clamp(19px, 1.7vw, 26px); font-weight: 500; line-height: 1.25; letter-spacing: -.02em; overflow-wrap: anywhere; }
.training-video-dialog__language { display: block; margin-top: 5px; color: #bfd2e1; font-size: 12px; line-height: 1.5; }
.training-video-dialog__close { display: grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid #c3d9e75c; border-radius: 50%; background: #ffffff0d; color: #fff; cursor: pointer; transition: background 160ms, border-color 160ms; }
.training-video-dialog__close:hover { border-color: #c3d9e7; background: #ffffff1f; }
.training-video-dialog__close .nav-icon { width: 21px; height: 21px; }
.training-video-dialog :is(button, video):focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.training-video-dialog__stage { display: grid; min-width: 0; min-height: 0; place-items: center; overflow: hidden; border: 1px solid #c3d9e726; border-radius: 12px; background: #020911; box-shadow: 0 16px 50px #02091133; }
.training-video-dialog__stage video { display: block; min-width: 0; min-height: 0; width: 100%; height: 100%; object-fit: contain; }
.training-video-dialog__footer { max-height: 22vh; margin: 0; overflow-y: auto; }
.training-video-dialog__footer p { max-width: 1100px; margin: 0; color: #d1e1ed; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.training-video-dialog__footer .training-video-dialog__status { margin-top: 8px; color: #ffb37f; }
.training-video-dialog__language:empty, #training-video-description:empty, .training-video-dialog__status:empty { display: none; }

@media (max-width: 1099px) {
  .home-ots { padding-block: 72px 78px; }
  .home-ots__layout { gap: 40px; }
  .home-ots__actions { column-gap: 17px; }
  .home-ots__features > li { gap: 13px; }
  .home-ots__feature-icon { flex-basis: 30px; width: 30px; height: 30px; }
  .home-ots__media { gap: 14px; }
  .home-ots__caption { padding-inline: 12px; }
}

@media (max-width: 900px) {
  .home-ots__layout { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .home-ots__copy { max-width: 680px; }
  .home-ots__media { width: 100%; max-width: 740px; margin-inline: auto; }
  .home-ots h2 { font-size: 37px; }
}

@media (max-width: 640px) {
  .home-ots { padding-block: 50px 56px; }
  .home-ots__layout { gap: 30px; }
  .home-ots__eyebrow { gap: 8px; margin-bottom: 16px; font-size: 10px; letter-spacing: .055em; }
  .home-ots__eyebrow > span { flex-basis: 18px; }
  .home-ots h2 { margin-bottom: 19px; font-size: 32px; }
  .home-ots__intro { font-size: 15px; }
  .home-ots__features { margin-block: 24px; }
  .home-ots__features > li { gap: 12px; padding-block: 15px; }
  .home-ots__features h3 { font-size: 16px; }
  .home-ots__actions { align-items: flex-start; flex-direction: column; gap: 7px; }
  .home-ots__primary { gap: 16px; padding-inline: 16px; }
  .home-ots__media { gap: 12px; }
  .home-ots__figure { border-radius: 7px; }
  .home-ots__figure--primary { border-radius: 9px; }
  .home-ots__figure:not(.home-ots__figure--primary) .home-ots__viewport { aspect-ratio: 4 / 3; }
  .home-ots__play { width: 42px; height: 42px; }
  .home-ots__figure--primary .home-ots__play { width: 56px; height: 56px; }
  .home-ots__watch-label { bottom: 8px; left: 8px; padding: 5px 7px; font-size: 10px; }
  .home-ots__placeholder { padding: 8px; }
  .home-ots__placeholder > svg { width: 24px; height: 24px; margin-bottom: 7px; }
  .home-ots__placeholder > strong { font-size: 12px; line-height: 1.35; }
  .home-ots__placeholder > span { margin-top: 4px; font-size: 10px; line-height: 1.4; }
  .home-ots__figure--primary .home-ots__placeholder > svg { width: 40px; height: 40px; margin-bottom: 13px; }
  .home-ots__figure--primary .home-ots__placeholder > strong { font-size: 15px; }
  .home-ots__figure--primary .home-ots__placeholder > span { font-size: 11px; }
  .home-ots__caption { padding: 10px; font-size: 11px; }
  .home-ots__video-title { font-size: 12px; line-height: 1.45; }
  .home-ots__video-description { font-size: 11px; }
  .home-ots__figure--primary .home-ots__video-title { font-size: 15px; }
  .home-ots__figure--primary .home-ots__video-description { font-size: 12px; }
  .training-video-dialog__shell { gap: 12px; padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
  .training-video-dialog__header { gap: 14px; }
  .training-video-dialog h2 { font-size: 19px; }
  .training-video-dialog__eyebrow { font-size: 9px; }
  .training-video-dialog__language { font-size: 11px; }
  .training-video-dialog__stage { border-radius: 8px; }
  .training-video-dialog__footer p { font-size: 12px; }
}

@media (max-width: 380px) {
  .home-ots h2 { font-size: 29px; }
  .home-ots__eyebrow { font-size: 9px; }
  .home-ots__primary { width: 100%; }
  .home-ots__figure:not(.home-ots__figure--primary) .home-ots__placeholder { padding: 6px; }
  .home-ots__figure:not(.home-ots__figure--primary) .home-ots__placeholder > svg { width: 22px; height: 22px; margin-bottom: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-ots *, .training-video-dialog * { transition: none !important; }
}
