/* Current home pages: the supplied bright Serim composition, with the existing
   Lassie clipping/CTA motion retained. See hero-light-surface-20261114. */
html:has(body.home-page[data-home-hero="cinematic"]) {
  --page-bg: #f9f8f5;
}

/* Keep the home canvas white in both languages at every viewport size. */
html:has(body.home-page[data-home-hero="cinematic"]),
body.home-page[data-home-hero="cinematic"] {
  background: #fff;
}

body.home-page[data-home-hero="cinematic"] .v2-hero-shell--image-focus {
  --vfc-color-font-default: #1a1e23;
  --cinematic-title-size: 40px;
  --cinematic-inset: 16px;
  --cinematic-radius: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--vfc-color-font-light);
  box-shadow: none;
}

body.home-page[data-home-hero="cinematic"] .v2-hero-shell .thx {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  width: 100%;
  height: auto !important;
  min-height: 0 !important;
  margin: 0;
  padding: 0;
  background: var(--vfc-color-font-light) !important;
}

body.home-page[data-home-hero="cinematic"] .v2-hero-shell .nav-spacer {
  display: block;
  flex: none;
  height: 66px;
}

body.home-page[data-home-hero="cinematic"] .v2-hero-shell .thx-body {
  position: relative;
  display: grid;
  flex: 1 0 auto;
  grid-template-rows: auto minmax(330px, 1fr);
  width: 100%;
  height: auto !important;
  min-height: 0;
  margin: 0;
  padding: 0;
}

body.home-page[data-home-hero="cinematic"] .v2-hero-shell .thx-in {
  position: relative;
  z-index: 2;
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 1440px;
  height: auto;
  margin: 0 auto;
  padding: 0;
}

body.home-page[data-home-hero="cinematic"] .v2-hero-shell .thx-copy {
  position: static !important;
  inset: auto !important;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 60px 20px 0;
  transform: none;
}

body.home-page[data-home-hero="cinematic"] .v2-hero-shell .thx-lock {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Explicit specificity supersedes the old Korean/English hero metrics only;
   the selected local Noto Serif KR / Tiempos families and weights still inherit. */
html[lang] body.home-page[data-home-hero="cinematic"] .v2-hero-shell .thx .thx-lock #hero-title {
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: var(--_colors-2026---900);
  font-size: var(--cinematic-title-size);
  line-height: 1.15;
  letter-spacing: -.02em;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: normal;
}

/* Typography is shared with the company statement in company-intro.css. */
body.home-page[data-home-hero="cinematic"] .v2-hero-shell .thx .tdek.hero-pop {
  width: 100%;
  max-width: 736px;
  margin: 22px auto 38px !important;
  padding: 0;
}

@media (max-width: 767px) {
  body.home-page[data-home-hero="cinematic"] .v2-hero-shell .thx .tdek.hero-pop {
    margin: 16px auto 32px !important;
  }
}

body.home-page[data-home-hero="cinematic"] .v2-hero-shell :is(.hw, .hero-pop) {
  opacity: 1;
  transform: none;
  animation: none;
}

body.home-page[data-home-hero="cinematic"] .v2-hero-shell .thx-plate {
  position: relative !important;
  z-index: 0;
  inset: auto !important;
  width: auto;
  height: auto !important;
  min-height: 330px;
  max-height: none;
  margin: 0 12px 12px !important;
  border: 0;
  border-radius: 0 0 16px 16px !important;
  background: linear-gradient(180deg, var(--vfc-color-shades-shades-300), var(--vfc-color-neutral-light-neutrals-light-300)) !important;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 42%) !important;
  mask-image: linear-gradient(180deg, transparent 0, #000 42%) !important;
  clip-path: inset(0 round 0);
  transform: translateZ(0);
  transition: clip-path 1000ms cubic-bezier(.22, 1, .36, 1);
  will-change: clip-path;
  pointer-events: none;
}

body.home-page[data-home-hero="cinematic"] .v2-hero-shell.is-hero-scrolled .thx-plate {
  clip-path: inset(var(--cinematic-inset) round var(--cinematic-radius));
}

/* The supplied image treatment is bright, fading into the white copy surface. */
body.home-page[data-home-hero="cinematic"] .v2-hero-shell .thx-plate::after {
  content: none;
}

body.home-page[data-home-hero="cinematic"] .serim-hero-cta {
  position: absolute;
  z-index: 3;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  display: flex;
  padding: 3px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 16px;
  background: #e3ddcf33;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transform: translate(-50%, 0);
  transition: transform 500ms cubic-bezier(0, 0, .2, 1);
}

body.home-page[data-home-hero="cinematic"] .is-hero-scrolled .serim-hero-cta {
  transform: translate(-50%, -50px);
}

/* Current hero: keep the video action in the copy flow, below the text lockup.
   The parent carries the scroll motion, so the button needs no separate lift. */
body.home-page[data-home-hero="cinematic"] .v2-hero-shell .thx-copy > .serim-hero-cta {
  position: relative;
  inset: auto;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 0px;
  transform: none;
  transition: none;
}

body.home-page[data-home-hero="cinematic"] .v2-hero-shell .thx-contact-cta {
  --btn-bg: #fff;
  --btn-text: #120c08;
  display: inline-flex;
  height: 42px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  filter: none;
}

/* The current copy-level video action uses its dark hover surface at rest. */
body.home-page[data-home-hero="cinematic"] .v2-hero-shell :where(.thx-copy > .serim-hero-cta) .thx-contact-cta,
body.home-page[data-home-hero="cinematic"] .v2-hero-shell .thx-contact-cta:hover {
  --btn-bg: #191818;
  --btn-text: #fff;
}

body.home-page[data-home-hero="cinematic"] .v2-hero-shell .thx-contact-cta:is(:active, .is-thx-contact-pressed) {
  --btn-bg: #473d37;
  --btn-text: #fff;
}

html[lang="ko"] body.home-page[data-home-hero="cinematic"] .v2-hero-shell .thx .thx-lock #hero-title {
  letter-spacing: -.08em;
}

html[lang="en"] body.home-page[data-home-hero="cinematic"] .v2-hero-shell .thx .thx-lock #hero-title {
  line-height: 1;
}

body.home-page[data-home-hero="cinematic"] .v2-hero-shell .tdek-break--desktop {
  display: none;
}

body.home-page[data-home-hero="cinematic"] .v2-hero-shell .tdek-break--mobile {
  display: inline;
}

@media (min-width: 768px) {
  body.home-page[data-home-hero="cinematic"] .v2-hero-shell--image-focus {
    --cinematic-title-size: 64px;
  }

  body.home-page[data-home-hero="cinematic"] .v2-hero-shell .nav-spacer {
    height: 112px;
  }

  body.home-page[data-home-hero="cinematic"] .v2-hero-shell .thx-copy {
    padding-top: 56px;
  }

  body.home-page[data-home-hero="cinematic"] .v2-hero-shell .tdek-break--desktop {
    display: inline;
  }

  body.home-page[data-home-hero="cinematic"] .v2-hero-shell .tdek-break--mobile {
    display: none;
  }
}

@media (min-width: 1280px) {
  body.home-page[data-home-hero="cinematic"] .v2-hero-shell--image-focus {
    --cinematic-inset: 32px;
    --cinematic-radius: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-page[data-home-hero="cinematic"] :is(.thx-plate, .serim-hero-cta) {
    transition: none;
  }
}


/* This outer stage carries the live hero image into the company photographs. */
body[data-home-hero="cinematic"] [data-hero-company-bridge] .serim-hero-bridge__stage {
  position: relative;
  min-width: 0;
  min-height: 330px;
  margin: 0 12px 12px;
  transform-origin: 50% 50%;
}

body[data-home-hero="cinematic"] [data-hero-company-bridge] .serim-hero-bridge__stage > .thx-plate {
  position: absolute !important;
  inset: 0 !important;
  width: 100%;
  height: 100% !important;
  min-height: 0;
  margin: 0 !important;
  -webkit-mask-image: linear-gradient(180deg, rgb(0 0 0 / var(--bridge-mask-top, 0)) 0%, #000 42%) !important;
  mask-image: linear-gradient(180deg, rgb(0 0 0 / var(--bridge-mask-top, 0)) 0%, #000 42%) !important;
}

body[data-home-hero="cinematic"] [data-hero-company-bridge].is-company-bridge-ready {
  position: relative;
  z-index: 2;
  display: block;
  height: calc(var(--bridge-hero-height) + var(--bridge-runway));
  margin-bottom: var(--bridge-overlap);
  pointer-events: none;
}

body[data-home-hero="cinematic"] .is-company-bridge-ready > .serim-hero-transition__sticky {
  position: sticky;
  top: calc(-1 * var(--bridge-pin-start));
  display: block;
  height: var(--bridge-hero-height);
  pointer-events: none;
}

body.home-page[data-home-hero="cinematic"] [data-hero-company-bridge].is-company-bridge-ready :is(.v2-hero-shell, .thx) {
  background: rgb(255 255 255 / var(--bridge-surface-alpha, 1)) !important;
}

body[data-home-hero="cinematic"] .is-company-bridge-ready .thx-in {
  opacity: var(--bridge-surface-alpha, 1);
  transform: translate3d(0, var(--bridge-copy-y, 0px), 0);
  pointer-events: auto;
}

body[data-home-hero="cinematic"] .is-company-bridge-ready .serim-hero-cta {
  opacity: var(--bridge-surface-alpha, 1);
  pointer-events: auto;
}

/* A video button inside the copy fades once, through its parent. */
body[data-home-hero="cinematic"] .is-company-bridge-ready .thx-in .serim-hero-cta {
  opacity: 1;
}

body[data-home-hero="cinematic"] .is-company-bridge-ready :is(.thx-in, .serim-hero-cta)[inert] {
  pointer-events: none;
}

body[data-home-hero="cinematic"] .is-company-bridge-ready .serim-hero-bridge__stage {
  will-change: transform, clip-path;
}

@media (max-width: 767px) {
  /* Finish rounding before scaling starts, without a time-based animation
     continuing after a fast swipe or fighting a reversal. */
  body.home-page[data-home-hero="cinematic"] [data-hero-company-bridge].is-company-bridge-ready .serim-hero-bridge__stage > .thx-plate {
    clip-path: inset(
      calc(var(--cinematic-inset) * var(--bridge-plate-progress, 0))
      round calc(var(--cinematic-radius) * var(--bridge-plate-progress, 0))
    );
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-home-hero="cinematic"] [data-hero-company-bridge].is-company-bridge-ready,
  body[data-home-hero="cinematic"] .is-company-bridge-ready > .serim-hero-transition__sticky {
    display: contents;
  }

  body[data-home-hero="cinematic"] [data-hero-company-bridge] .serim-hero-bridge__stage {
    transform: none !important;
    clip-path: none !important;
    will-change: auto;
  }
}


/* Shared refinements promoted from the restored Korean home header. */
.serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] {
  background-color: transparent;
}

/* Keep the top clear; fade the existing surface in after scrolling or opening a menu. */
.serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] > .vfr-header-surface::before {
  content: "";
  background-color: rgb(255 255 255 / 85%);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  opacity: 0;
}

.serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video]:is(.is-scrolled, .is-drawer-open, .is-mega-open, :has([data-language-toggle][aria-expanded="true"])) > .vfr-header-surface::before {
  opacity: 1;
}

.serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] > .vfr-header-surface::after {
  background: #ebebeb;
}

.serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] :is(.vfr-nav-item, .vfr-nav-item > .vfr-nav-link) {
  font-weight: 425;
}

.serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .vfr-nav-link {
  color: var(--serim-text-primary);
  font-size: 14px;
  letter-spacing: 0.0125em;
}

/* Language control shares the action height and menu-link palette. */
.serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .vfr-language-button {
  height: 36px;
  block-size: 36px;
  border-radius: 50px;
  color: var(--serim-text-secondary);
  border: 1px solid color-mix(in oklab, #000 12%, transparent);
}

.serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .vfr-language-button:is(:hover, [aria-expanded="true"]) {
  border-color: color-mix(in oklab, #000 20%, transparent);
}

.serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .vfr-language-button:is(:hover, :focus-visible, :active, [aria-expanded="true"]) {
  color: var(--serim-text-primary);
}

.serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .vfr-language-button :is(.vfr-language-label, .vfr-link-chevron) {
  color: inherit;
}

.vf-header-reference .vfr-site-nav[data-header-video] .vfr-nav-video {
  box-sizing: border-box;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgb(0 0 0 / 12%);
  border-radius: 999px;
  background: transparent;
  color: var(--serim-text-primary);
  font-family: "UCity Pro", var(--vf-font-korean), Pretendard, sans-serif;
  font-size: 13px;
  font-weight: 550;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.vf-header-reference .vfr-site-nav[data-header-video] .vfr-nav-video:hover {
  background: rgb(0 0 0 / 4%);
  border-color: rgb(0 0 0 / 20%);
}

.vf-header-reference .vfr-site-nav[data-header-video] .vfr-nav-video:active {
  background: rgb(0 0 0 / 8%);
}

.vf-header-reference .vfr-site-nav[data-header-video] .vfr-nav-video:focus-visible {
  outline: 2px solid var(--serim-accent-pink);
  outline-offset: 3px;
}

.vf-header-reference .vfr-site-nav[data-header-video] .vfr-nav-video svg {
  display: block;
  flex: none;
  width: 18px;
  height: 18px;
}

.vf-header-reference .vfr-site-nav[data-header-video] .vfr-nav-video--drawer {
  width: 100%;
  min-height: 44px;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 500;
}

/* Shared control height keeps the buttons, highlight, and 4px frame inset aligned. */
.serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .vfr-nav-auth {
  gap: 12px;
  padding-block: 0;
  border-block-width: 0;
}

.serim-shared-header.vf-header-reference .vfr-site-nav[data-header-video] .serim-nav-action-pair {
  --serim-nav-action-height: 36px;
  position: relative;
  isolation: isolate;
  display: inline-flex;
  flex: none;
  align-items: center;
  height: var(--serim-nav-action-height);
  gap: 0;
  padding: 0;
  margin: 0;
  border-radius: 50px;
}

.serim-nav-action-pair__frame {
  position: absolute;
  top: -4px;
  left: -4px;
  z-index: 0;
  box-sizing: border-box;
  width: calc(100% + 8px);
  height: calc(var(--serim-nav-action-height) + 8px);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 50px;
  background: rgb(202 191 167 / 25%);
  -webkit-backdrop-filter: blur(13px);
  backdrop-filter: blur(13px);
  pointer-events: none;
}

/* The complete language switcher occupies the former video slot. Its popup
   stays above the shared frame. Each control owns its stationary background. */
.serim-nav-action-pair > [data-language-switcher] {
  position: relative;
  z-index: 2;
  flex: none;
}

.serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .serim-nav-action-pair [data-serim-action-item] {
  --serim-action-bg: #fff;
  --serim-action-text: #120c08;
  --serim-action-pressed: #e3ddcf66;
  position: relative;
  z-index: 2;
  height: var(--serim-nav-action-height);
  block-size: var(--serim-nav-action-height);
  min-height: var(--serim-nav-action-height);
  padding: 0 12px;
  border: 0;
  border-radius: 50px;
  background: var(--serim-action-bg);
  color: var(--serim-action-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: none;
  outline: none;
  transform: none;
  transition: background-color 300ms cubic-bezier(0, 0, .2, 1), color 150ms cubic-bezier(.4, 0, .2, 1);
}

.serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .serim-nav-action-pair > .vfr-nav-cta {
  --serim-action-bg: hsl(25.88deg 110% 50%);
  --serim-action-text: #fff;
  --serim-action-pressed: #e66300;
  font-weight: 600;
}

.serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] :is(.vfr-language-button, .vfr-language-button > .vfr-language-label) {
  font-weight: 425;
}

.serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .serim-nav-action-pair :is(.vfr-nav-cta-label, .vfr-language-label) {
  font: inherit;
  color: inherit;
  inset-block-start: 0;
}

/* Keep Inter on the KR/EN trigger; popup text shares navigation typography. */
.serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .vfr-language-switcher.vfr-language-switcher--flag.vfr-language-switcher--header,
.serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .vfr-language-switcher.vfr-language-switcher--flag.vfr-language-switcher--header :is(.vfr-language-button, .vfr-language-label) {
  font-family: "Inter", system-ui, sans-serif;
}

/* One typography rule for company/R&D titles and Korean/English menu labels. */
.serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] :is(.vfr-company-popover__title, .vfr-language-option, .vfr-language-option-label) {
  font-family: var(--vfr-font-nav);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.012em;
}

.serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .serim-nav-action-pair [data-serim-action-item]:active {
  background: var(--serim-action-pressed);
  color: var(--serim-action-text);
}

.serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .serim-nav-action-pair [data-serim-action-item]:focus-visible {
  outline: 2px solid #42b5dc;
  outline-offset: -2px;
  box-shadow: 0 0 0 3px rgb(66 181 220 / 30%);
}

/* Language owns its background in both the desktop pair and mobile controls.
   Contact Sales keeps its independent action colors and transition. */
.serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .vfr-language-switcher .vfr-language-button {
  background-color: transparent;
  transition: background-color 150ms cubic-bezier(0, 0, .2, 1), color 150ms cubic-bezier(.4, 0, .2, 1), border-color 150ms cubic-bezier(.4, 0, .2, 1);
}

.serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .vfr-language-switcher .vfr-language-button:is(:hover, [aria-expanded="true"]) {
  background-color: #fff;
}

@media (min-width: 832px) {
  /* Align the desktop language control and CTA at the same 36px height. */
  .serim-shared-header.vf-header-reference .vfr-site-nav[data-header-video] .serim-nav-action-pair {
    --serim-nav-action-height: 36px;
    height: 36px;
  }

  .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .serim-nav-action-pair > .vfr-nav-cta {
    height: 36px;
    block-size: 36px;
    min-height: 36px;
  }

  .serim-nav-action-pair__frame {
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
  }

  /* Keep the shared language/contact pair and centered menu on wide screens. */
  .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .vfr-nav-bar {
    grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
  }
}

@media (min-width: 832px) and (max-width: 1223px) {
  .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .vfr-nav-bar {
    grid-template-columns: max-content minmax(0, 1fr) max-content;
  }

}

/* Keep all five Korean links clear of the logo and language control at the
 * desktop breakpoint without reducing the restored 15px typography. */
@media (min-width: 832px) and (max-width: 911px) {
  html[lang="ko"] .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] {
    --vfr-bar-gap: 8px;
    --vfr-link-inset: clamp(0px, calc((100vw - 832px) / 10), 8px);
  }
}

/* Balance the side tracks while reserving each side's actual minimum width.
 * The menu stays viewport-centered when it fits, then yields space gradually. */
@media (min-width: 832px) {
  html[lang="en"] .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .vfr-nav-bar {
    grid-template-columns: minmax(max-content, 1fr) minmax(0, max-content) minmax(max-content, 1fr);
  }
}

/* Fit the longer English labels and full action pair inside the capped bar. */
@media (min-width: 992px) {
  html[lang="en"] .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .vfr-nav-bar {
    column-gap: 16px;
  }
}

@media (min-width: 832px) and (max-width: 991px) {
  html[lang="en"] .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] {
    --vfr-bar-gap: 4px;
  }
}

/* Continue the existing three-then-two layout until all five menu labels fit.
 * This also keeps the first-row Company popover below both rows. */
@media (min-width: 1103px) and (max-width: 1143px) {
  html[lang="en"] .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .vfr-nav-links {
    flex-wrap: wrap;
    padding-block: 0;
    border-block-width: 0;
  }

  html[lang="en"] .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .vfr-nav-link {
    padding-block: 2px;
  }

  html[lang="en"] .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .vfr-nav-links::after {
    content: "";
    flex-basis: 100%;
    height: 0;
    order: 1;
  }

  html[lang="en"] .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .vfr-nav-links > .vfr-nav-item:nth-last-child(-n + 2) {
    order: 2;
    z-index: 10002;
  }

  html[lang="en"] .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .vfr-nav-item[data-vfr-mega-item="company"] > .vfr-company-popover {
    top: 200%;
  }

  html[lang="en"] .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .vfr-nav-item[data-vfr-mega-item="company"]:has(> .vfr-company-popover[aria-hidden="false"])::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 100%;
    height: 100%;
  }
}

@media (max-width: 831px) {
  /* Complete menu syllables locally; existing heading subsets omit some labels. */
  @font-face {
    font-family: "Chiron Sung HK Home";
    src: url("../fonts/chiron-sung-hk/chiron-sung-hk-mobile-nav-20261127-200-900.woff2") format("woff2");
    font-style: normal;
    font-weight: 200 900;
    font-display: swap;
    unicode-range: U+AC1C, U+AD6C, U+B8CC, U+BC1C, U+C0AC, U+C18C, U+C2DD, U+C5F0, U+C7A5, U+C7AC, U+D488, U+D5A5, U+D648, U+D68C;
  }

  /* Purchased Regular webfont; retain the existing compatibility family name. */
  @font-face {
    font-family: "Serim Test Tiempos Headline";
    src: url("../fonts/tiempos-headline/tiempos-headline-regular.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
  }

  html[lang="ko"] .serim-shared-header.vf-header-reference :is(.serim-site-header, .vfr-site-nav)[data-vfr-surface="full-width"] .vfr-nav-link > .vfr-nav-label {
    font-family: "Chiron Sung HK Home", "Noto Serif CJK KR", "Nanum Myeongjo", serif;
  }

  html[lang="en"] .serim-shared-header.vf-header-reference :is(.serim-site-header, .vfr-site-nav)[data-vfr-surface="full-width"] .vfr-nav-link > .vfr-nav-label {
    font-family: "Serim Test Tiempos Headline", Georgia, "Times New Roman", serif;
  }

  .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .vfr-nav-item > .vfr-nav-link {
    font-weight: 400;
    font-size: 28px;
    letter-spacing: -0.03em;
  }

  html[lang="ko"] .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .vfr-nav-item > .vfr-nav-link {
    font-weight: 500;
    letter-spacing: -0.06em;
  }

  html[lang="en"] .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .vfr-nav-item > .vfr-nav-link {
    letter-spacing: -0.01em;
  }

  /* Keep the mobile button and its surrounding surface at the same 34px height.
     Blur stays on the decorative layer so the language popup stays crisp. */
  .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] :is(.vfr-mobile-controls, .vfr-mobile-menu-controls) .vfr-language-switcher--header {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    width: max-content;
    height: 34px;
    font-size: 12px;
    padding: 0;
    overflow: visible;
    border-radius: 50px;
  }

  .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] :is(.vfr-mobile-controls, .vfr-mobile-menu-controls) .vfr-language-switcher--header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    box-sizing: border-box;
    border: none;
    border-radius: inherit;
    background: rgb(227 221 207 / 40%);
    -webkit-backdrop-filter: blur(13px);
    backdrop-filter: blur(13px);
    pointer-events: none;
    transition: background-color 150ms cubic-bezier(0, 0, .2, 1);
  }

  .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] :is(.vfr-mobile-controls, .vfr-mobile-menu-controls) .vfr-language-switcher--header:has(> .vfr-language-button:is(:active, [aria-expanded="true"]))::before {
    background: rgb(227 221 207 / 55%);
  }

  .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] :is(.vfr-mobile-controls, .vfr-mobile-menu-controls) .vfr-language-button {
    position: relative;
    z-index: 1;
    flex: none;
    width: 84px;
    inline-size: 84px;
    min-width: 84px;
    max-width: 84px;
    height: 34px;
    block-size: 34px;
    min-height: 34px;
    max-height: 34px;
    padding: 0;
    justify-content: center;
    gap: 5px;
    border: 0;
    color: #120c08;
    font-size: 12px;
    font-weight: 425;
    line-height: 1;
    letter-spacing: 0;
  }

  /* A single tinted surface replaces the desktop button's white hover/open fill. */
  .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] :is(.vfr-mobile-controls, .vfr-mobile-menu-controls) .vfr-language-button:is(:hover, :active, [aria-expanded="true"]) {
    background-color: transparent;
  }

  /* The existing transparent 44px hit area extends beyond the 34px surface. */
  .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] :is(.vfr-mobile-controls, .vfr-mobile-menu-controls) .vfr-language-button::before {
    display: block;
  }

  .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] :is(.vfr-mobile-controls, .vfr-mobile-menu-controls) .vfr-language-label {
    display: block;
    font: inherit;
    inset-block-start: 0;
  }

  .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] :is(.vfr-mobile-controls, .vfr-mobile-menu-controls) .vfr-link-chevron {
    display: flex;
  }

  .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] :is(.vfr-mobile-controls, .vfr-mobile-menu-controls) .vfr-language-button:focus-visible {
    outline: 2px solid #42b5dc;
    outline-offset: -2px;
    box-shadow: 0 0 0 3px rgb(66 181 220 / 30%);
  }
}

@media (max-width: 374px) {
  /* Keep flag, language code and chevron visible even on 320px screens. */
  .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] :is(.vfr-mobile-controls, .vfr-mobile-menu-controls) {
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] :is(.vfr-mobile-controls, .vfr-mobile-menu-controls) .vfr-language-switcher--header::before,
  .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .vfr-language-switcher .vfr-language-button,
  .serim-shared-header.vf-header-reference .vfr-site-nav[data-vfr-surface="full-width"][data-header-video] .serim-nav-action-pair [data-serim-action-item],
  .vf-header-reference .vfr-site-nav[data-header-video] .vfr-nav-video {
    transition: none;
  }
}


/* Header-only presentation of the existing native video dialog.
 * Reference: reference/header-video-overlay-20261120/SOURCE-AUDIT.md. */
.serim-video-overlay__dismiss { display: none; }

.serim-intro-video-dialog[data-video-presentation="overlay"] {
  --video-overlay-gutter: 24px;
  position: fixed;
  inset: 0;
  box-sizing: border-box;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: var(--video-overlay-gutter);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: rgb(0 0 0 / 30%);
  box-shadow: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 400ms cubic-bezier(.44, 0, .56, 1);
}

.serim-intro-video-dialog[data-video-presentation="overlay"][open] {
  display: grid;
  place-items: center;
}

.serim-intro-video-dialog[data-video-presentation="overlay"]::backdrop {
  background: rgb(0 0 0 / 20%);
  opacity: 0;
  transition: opacity 400ms cubic-bezier(.44, 0, .56, 1);
}

.serim-intro-video-dialog[data-video-presentation="overlay"].is-video-visible,
.serim-intro-video-dialog[data-video-presentation="overlay"].is-video-visible::backdrop {
  opacity: 1;
}

.serim-intro-video-dialog[data-video-presentation="overlay"] > :is(
  .serim-intro-video-dialog__header,
  .serim-intro-video-dialog__footer
) {
  display: none;
}

.serim-intro-video-dialog[data-video-presentation="overlay"] .serim-intro-video-dialog__player {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  flex: none;
  width: min(1112px, calc(100vw - 48px), calc((100vh - 48px) * 16 / 9));
  width: min(1112px, calc(100vw - 48px), calc((100dvh - 48px) * 16 / 9));
  height: auto;
  min-width: 0;
  min-height: 0;
  max-height: none;
  aspect-ratio: 16 / 9;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #000;
  box-shadow: 0 0 0 5px rgb(255 255 255 / 10%);
  opacity: 0;
  transform: translateY(150px);
  transition: opacity 700ms cubic-bezier(.44, 0, .56, 1), transform 700ms cubic-bezier(.44, 0, .56, 1);
}

.serim-intro-video-dialog[data-video-presentation="overlay"].is-video-visible .serim-intro-video-dialog__player {
  opacity: 1;
  transform: none;
}

.serim-intro-video-dialog[data-video-presentation="overlay"] .serim-video-overlay__dismiss {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  appearance: none;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.serim-video-overlay__dismiss > span {
  position: absolute;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  padding: 8px 12px;
  border-radius: 5px;
  background: #1c1c1c;
  font-family: var(--vf-font-sans, sans-serif);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  opacity: 0;
}

.serim-video-overlay__dismiss:focus-visible > span {
  opacity: 1;
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.serim-intro-video-dialog[data-video-presentation="overlay"] .serim-video-overlay__poster,
.serim-intro-video-dialog[data-video-presentation="overlay"] .serim-intro-video-dialog__player iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  border: 0;
  border-radius: 0;
}

.serim-video-overlay__poster { object-fit: cover; }

.serim-intro-video-dialog[data-video-presentation="overlay"] .serim-video-overlay__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 68px;
  height: 48px;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  appearance: none;
  border: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  transform: translate(-50%, -50%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.serim-video-overlay__play svg { display: block; width: 100%; height: 100%; }
.serim-video-overlay__play-shape { fill: #212121; fill-opacity: .8; transition: fill 100ms cubic-bezier(.4, 0, 1, 1), fill-opacity 100ms cubic-bezier(.4, 0, 1, 1); }
.serim-video-overlay__play-icon { fill: #fff; }
.serim-video-overlay__play:is(:hover, :focus-visible) .serim-video-overlay__play-shape { fill: #f00; fill-opacity: 1; }
.serim-video-overlay__play:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }

.serim-intro-video-dialog[data-video-presentation="overlay"].is-video-closing,
.serim-intro-video-dialog[data-video-presentation="overlay"].is-video-closing::backdrop,
.serim-intro-video-dialog[data-video-presentation="overlay"].is-video-closing .serim-intro-video-dialog__player {
  opacity: 0;
  transition-duration: 200ms;
}

.serim-intro-video-dialog[data-video-presentation="overlay"].is-video-closing .serim-intro-video-dialog__player { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .serim-intro-video-dialog[data-video-presentation="overlay"],
  .serim-intro-video-dialog[data-video-presentation="overlay"]::backdrop,
  .serim-intro-video-dialog[data-video-presentation="overlay"] .serim-intro-video-dialog__player,
  .serim-video-overlay__play-shape {
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
  .serim-intro-video-dialog[data-video-presentation="overlay"] .serim-intro-video-dialog__player { transform: none; }
}
