:root {
  --gh-motion-ease: cubic-bezier(.16, 1, .3, 1);
  --gh-motion-exit: cubic-bezier(.7, 0, .84, 0);
  --gh-motion-duration: 860ms;
}

/* The homepage hero is a single full-screen stage; copy stays in HTML above the image. */
.hero {
  min-height: 100svh;
  min-height: 100dvh;
  height: 100svh;
  height: 100dvh;
  padding: 0 !important;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.hero-grid {
  min-height: 100svh;
  min-height: 100dvh;
  height: 100%;
  width: 100%;
  max-width: none;
  display: block !important;
  position: relative;
}

.hero-media {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  transform: none;
  z-index: -2;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(4, 20, 49, .84) 0%, rgba(4, 20, 49, .62) 38%, rgba(4, 20, 49, .18) 76%, rgba(4, 20, 49, .3) 100%), linear-gradient(180deg, rgba(4, 20, 49, .18), rgba(4, 20, 49, .36));
  pointer-events: none;
}

.hero-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center;
  transform: scale(1.045);
}

.hero-copy {
  width: min(86%, 1280px);
  max-width: 650px;
  min-height: 100%;
  margin: 0 auto;
  padding: clamp(120px, 18vh, 190px) 0 80px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 3;
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy .hero-lede,
.hero-copy .hero-actions,
.hero-copy .hero-note {
  color: #fff;
}

.hero-copy h1 em {
  color: var(--gold-soft);
}

.hero-lede {
  color: rgba(255, 255, 255, .82) !important;
}

.hero-note {
  color: rgba(255, 255, 255, .74) !important;
}

.site-header {
  background: transparent !important;
  border-bottom-color: transparent !important;
  box-shadow: none !important;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, .94) !important;
  border-bottom-color: rgba(9, 38, 82, .1) !important;
  box-shadow: 0 8px 24px rgba(9, 38, 82, .08) !important;
}

.site-header:not(.is-scrolled) .brand,
.site-header:not(.is-scrolled) .site-nav a,
.site-header:not(.is-scrolled) .menu-toggle {
  color: #fff;
}

.site-header:not(.is-scrolled) .brand-mark {
  background: rgba(255, 255, 255, .1);
}

.nav-cta {
  border-radius: 999px !important;
  padding-inline: 22px !important;
}

@media (max-width: 760px) {
  .hero-copy {
    width: calc(100% - 40px);
    max-width: none;
    padding: 112px 0 50px !important;
  }

  .hero-copy h1 {
    font-size: 40px;
  }

  .hero-media img {
    object-position: 64% center;
  }

  .hero-media::before {
    background: linear-gradient(180deg, rgba(4, 20, 49, .48), rgba(4, 20, 49, .76));
  }
}

/* Homepage banner rebuilt from the supplied clean composition; copy and CTAs stay HTML. */
.hero-media::before {
  background: linear-gradient(90deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 62%), linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(9, 38, 82, .08)) !important;
}

.hero-media::after {
  background: linear-gradient(90deg, rgba(255, 255, 255, .18), transparent 58%) !important;
}

.hero-media img {
  object-position: center center !important;
  transform: scale(1.012) !important;
}

.hero-copy {
  max-width: none;
  padding-top: clamp(126px, 15vh, 176px) !important;
  justify-content: flex-start;
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy .hero-lede,
.hero-copy .hero-note {
  color: var(--navy) !important;
}

.hero-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero-copy .eyebrow::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 0 5px rgba(183, 44, 106, .12);
  flex: 0 0 auto;
}

.hero-copy h1 {
  max-width: 580px;
  letter-spacing: -.045em;
}

.hero-copy h1 em {
  color: var(--gold) !important;
}

.hero-lede {
  color: #53647a !important;
  max-width: 470px;
}

.hero-note {
  display: none !important;
  color: #68778b !important;
}

.site-header:not(.is-scrolled) .brand,
.site-header:not(.is-scrolled) .site-nav a,
.site-header:not(.is-scrolled) .menu-toggle {
  color: var(--navy) !important;
}

.site-header:not(.is-scrolled) .brand-mark {
  background: rgba(255, 255, 255, .82) !important;
}

@media (max-width: 760px) {
  .hero-copy {
    padding-top: 108px !important;
  }

  .hero-copy h1 {
    max-width: 360px;
    font-size: clamp(38px, 10.5vw, 48px);
  }

  .hero-media img {
    object-position: 66% center !important;
  }

  .hero-media::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .02) 55%, rgba(9, 38, 82, .12)) !important;
  }
}

html {
  scroll-behavior: auto !important;
}

html,
body {
  overflow-x: clip;
}

/* If the motion script is blocked, content remains available instead of staying hidden. */
html.js:not(.gh-motion-ready) .reveal,
html.js:not(.gh-motion-ready) .reveal-group > * {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

/* Reversible 2D reveals: JavaScript changes the exit vector based on scroll direction. */
.gh-motion-ready .reveal {
  --gh-motion-x: 0px;
  --gh-motion-y: 42px;
  opacity: 0;
  filter: none !important;
  transform: translate3d(var(--gh-motion-x), var(--gh-motion-y), 0) rotate(var(--gh-motion-rotate, 0deg)) scale(.975);
  transition: opacity 620ms var(--gh-motion-exit), transform 700ms var(--gh-motion-exit);
  transition-delay: 0ms !important;
}

.gh-motion-ready .reveal.gh-motion-in {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0) scale(1);
  transition-duration: 720ms, var(--gh-motion-duration);
  transition-timing-function: var(--gh-motion-ease), var(--gh-motion-ease);
  transition-delay: var(--gh-motion-delay, 0ms) !important;
}

.gh-motion-ready .reveal-group > * {
  --gh-motion-x: 0px;
  --gh-motion-y: 34px;
  opacity: 0;
  filter: none !important;
  transform: translate3d(var(--gh-motion-x), var(--gh-motion-y), 0) rotate(var(--gh-motion-rotate, 0deg)) scale(.98);
  transition: opacity 560ms var(--gh-motion-exit), transform 660ms var(--gh-motion-exit);
  transition-delay: 0ms !important;
}

/* The journey timeline is a self-running sequence, independent from scroll reveal. */
.gh-motion-ready .timeline[data-timeline] .timeline-step {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(.94);
  transition: none !important;
}

.gh-motion-ready .timeline[data-timeline].gh-timeline-auto .timeline-step {
  animation: ghTimelineStepIn 600ms var(--gh-motion-ease) forwards;
  animation-delay: calc(var(--gh-step-order, 0) * 600ms);
}

.gh-motion-ready .timeline[data-timeline] .timeline-line span {
  width: 0;
  transition: none !important;
}

.gh-motion-ready .timeline[data-timeline].gh-timeline-auto .timeline-line span {
  animation: ghTimelineLine 3000ms var(--gh-motion-ease) forwards;
}

@keyframes ghTimelineStepIn {
  0% { opacity: 0; transform: translate3d(0, 24px, 0) scale(.94); }
  72% { opacity: 1; transform: translate3d(0, -3px, 0) scale(1.025); }
  100% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes ghTimelineLine {
  from { width: 0; }
  to { width: 100%; }
}

.gh-timeline-auto .timeline-step .step-badge {
  animation: ghTimelineBadge 600ms var(--gh-motion-ease) both;
  animation-delay: calc(var(--gh-step-order, 0) * 600ms);
}

@keyframes ghTimelineBadge {
  0% { background: #fff; color: var(--navy); transform: scale(.72); }
  68% { background: var(--navy); color: #fff; transform: scale(1.08); }
  100% { background: var(--navy); color: #fff; transform: scale(1.05); }
}

.motion-disabled .timeline[data-timeline] .timeline-step {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

.motion-disabled .timeline[data-timeline] .timeline-line span {
  width: 100% !important;
  height: 100% !important;
  animation: none !important;
}

.gh-motion-ready .reveal-group.gh-motion-in > * {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotate(0) scale(1);
  transition-duration: 680ms, 820ms;
  transition-timing-function: var(--gh-motion-ease), var(--gh-motion-ease);
  transition-delay: calc(var(--gh-motion-order, 0) * 72ms) !important;
}

.gh-motion-ready .reveal[data-gh-motion-active],
.gh-motion-ready .reveal-group[data-gh-motion-active] > * {
  will-change: transform, opacity;
}

/* Image movement is intentionally small and runs only while the media is in view. */
.gh-parallax-media {
  --gh-parallax-x: 0px;
  --gh-parallax-y: 0px;
  transform: translate3d(var(--gh-parallax-x), var(--gh-parallax-y), 0) scale(1.045) !important;
  transform-origin: center;
  will-change: transform;
}

.page-hero .gh-parallax-media {
  transform: translate3d(var(--gh-parallax-x), var(--gh-parallax-y), 0) scale(1.06) !important;
}

/* A restrained spotlight gives cards depth without moving layout or fighting reveal transforms. */
.gh-motion-card {
  --gh-pointer-x: 50%;
  --gh-pointer-y: 50%;
  isolation: isolate;
  position: relative;
}

.gh-motion-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--gh-pointer-x) var(--gh-pointer-y), rgba(217, 196, 139, .24), transparent 42%);
  transition: opacity 320ms ease;
}

.gh-motion-card > * {
  position: relative;
  z-index: 1;
}

.gh-motion-card .card-arrow,
.gh-motion-card .project-meta strong {
  position: absolute;
}

@media (hover: hover) and (pointer: fine) {
  .gh-motion-card:hover::before {
    opacity: 1;
  }

  .button span,
  .card-arrow,
  .project-meta strong,
  .role > b {
    display: inline-block;
    transition: transform 280ms var(--gh-motion-ease);
  }

  .button:hover span,
  .service-card:hover .card-arrow,
  .project-card:hover .project-meta strong,
  .role:hover > b {
    transform: translate3d(4px, -4px, 0);
  }
}

.section-head h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  margin-top: 18px;
  background: linear-gradient(90deg, var(--gold), var(--magenta));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 760ms var(--gh-motion-ease) 180ms;
}

.section-head.centered h2::after {
  margin-inline: auto;
  transform-origin: center;
}

.reveal.gh-motion-in.section-head h2::after,
.reveal-group.gh-motion-in .section-head h2::after {
  transform: scaleX(1);
}

/* Two-panel page transition opens in opposite horizontal directions. */
.gh-page-transition {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  pointer-events: none;
}

.gh-page-transition span {
  background: var(--navy, #092652);
  transform: translate3d(0, 0, 0);
  transition: transform 620ms var(--gh-motion-ease);
}

.gh-page-entered .gh-page-transition span:first-child {
  transform: translate3d(-101%, 0, 0);
}

.gh-page-entered .gh-page-transition span:last-child {
  transform: translate3d(101%, 0, 0);
}

.gh-motion-toggle {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 45;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid rgba(217, 196, 139, .55);
  border-radius: 999px;
  color: #fff;
  background: rgba(9, 38, 82, .9);
  box-shadow: 0 8px 24px rgba(9, 38, 82, .18);
  backdrop-filter: blur(10px);
  font: 500 11px/1 "Inter", sans-serif;
  letter-spacing: .02em;
  cursor: pointer;
}

.gh-motion-toggle::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--gold-soft, #d9c48b);
  box-shadow: 0 0 0 4px rgba(217, 196, 139, .14);
}

.gh-motion-toggle[aria-pressed="true"]::before {
  background: #aeb8c6;
  box-shadow: none;
}

.motion-disabled .reveal,
.motion-disabled .reveal-group > * {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.motion-disabled .gh-parallax-media {
  transform: scale(1.025) !important;
  will-change: auto;
}

.motion-disabled .intro-loader *,
.motion-disabled .page-hero img {
  animation-play-state: paused !important;
}

.motion-disabled .gh-page-transition {
  display: none;
}

@media (max-width: 760px) {
  :root {
    --gh-motion-duration: 760ms;
  }

  .gh-motion-ready .reveal {
    --gh-motion-y: 28px;
  }

  .gh-motion-ready .reveal-group > * {
    --gh-motion-y: 22px;
  }

  .gh-motion-ready .reveal-group.gh-motion-in > * {
    transition-delay: calc(var(--gh-motion-order, 0) * 48ms) !important;
  }

  .gh-motion-ready .timeline[data-timeline].gh-timeline-auto .timeline-line span {
    width: 100%;
    animation-name: ghTimelineLineMobile;
  }

  @keyframes ghTimelineLineMobile {
    from { height: 0; }
    to { height: 100%; }
  }

  .gh-motion-toggle {
    min-height: 34px;
    padding-inline: 11px;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
}

/* Uploaded GH logo assets replace the former CSS-only marks everywhere in the public site. */
.brand-logo {
  display: block;
  width: 112px;
  height: 52px;
  object-fit: contain;
  object-position: left center;
}

.brand-footer .brand-logo {
  width: 146px;
  height: 76px;
}

.logo-image {
  display: block;
  width: 78px;
  height: 78px;
  object-fit: contain;
  border: 0 !important;
  border-radius: 0 !important;
}

.loader-mark {
  width: 154px !important;
  height: 154px !important;
  padding: 8px;
  border: 0 !important;
  border-radius: 18px !important;
  background: #fff;
  overflow: hidden;
}

.loader-mark::after {
  display: none;
}

.splash-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Dãy logo đối tác chạy liên tục — mọi cơ chế tạm dừng đã được gỡ theo yêu cầu. */
.partner-tile {
  position: relative;
  z-index: 1;
  transform-origin: center;
  transition: transform 340ms var(--gh-motion-ease), border-color 220ms ease, box-shadow 340ms var(--gh-motion-ease);
}

.partner-tile:hover {
  z-index: 5;
  transform: scale(1.15);
  border-color: var(--gold) !important;
  box-shadow: 0 16px 30px rgba(9, 38, 82, .15);
}

/* Splash panels now match the requested white intro background. */
.intro-loader {
  background: #fff !important;
  transition: background-color 420ms ease, visibility 0s linear 1.6s !important;
}

.intro-loader.done {
  background: transparent !important;
}

.intro-loader:before,
.intro-loader:after {
  background: #fff !important;
  will-change: transform;
  backface-visibility: hidden;
  transition: transform 1.55s cubic-bezier(.65, 0, .35, 1) !important;
}

.intro-loader.done:before {
  transform: translate3d(-101%, 0, 0) !important;
}

.intro-loader.done:after {
  transform: translate3d(101%, 0, 0) !important;
}

@media (max-width: 760px) {
  .brand-logo {
    width: 92px;
    height: 46px;
  }

  .brand-footer .brand-logo {
    width: 128px;
    height: 68px;
  }

  .logo-image {
    width: 68px;
    height: 68px;
  }
}

/* ── Khung ảnh "Về GH Media": 3 ảnh, chuyển bằng màn che trượt ───────────────
   Mặt nạ trượt vào từ phải, lớp trong trượt ngược lại cùng quãng đường -> ảnh
   đứng yên tại chỗ, chỉ có mép sáng quét qua. Hiệu ứng "sang" của phim tài liệu.
   Chỉ dùng transform/opacity nên trình duyệt chạy trên compositor, không giật.
   Lưu ý: KHÔNG đặt transform lên <img> vì lớp parallax đã chiếm chỗ đó. */
.about-slides{position:absolute;inset:0;z-index:0}

.about-slide{position:absolute;inset:0;z-index:1;opacity:0}
.about-slide-mask{position:absolute;inset:0;overflow:hidden;
  transform:translate3d(101%,0,0);
  transition:transform 1.05s cubic-bezier(.72,0,.16,1)}
.about-slide-inner{position:absolute;inset:0;
  transform:translate3d(-101%,0,0);
  transition:transform 1.05s cubic-bezier(.72,0,.16,1)}
.about-slide picture{position:absolute;inset:0;display:block;
  transform:scale(1);transform-origin:52% 48%}

/* Ảnh đang hiện: mặt nạ và lớp trong cùng về 0, đồng thời phóng chậm (Ken Burns). */
.about-slide.is-active{opacity:1;z-index:3}
.about-slide.is-active .about-slide-mask,
.about-slide.is-active .about-slide-inner{transform:translate3d(0,0,0)}
.about-slide.is-active picture{transform:scale(1.055);
  transition:transform 3.6s linear .15s}

/* Ảnh vừa bị thay: nằm yên bên dưới cho ảnh mới quét đè lên, không trượt ngược ra. */
.about-slide.is-prev{opacity:1;z-index:2}
.about-slide.is-prev .about-slide-mask,
.about-slide.is-prev .about-slide-inner{transform:translate3d(0,0,0);transition:none}

/* Đặt lại vị trí sau khi bị che khuất — phải tắt transition kẻo thấy nó nhảy về. */
.about-slide.is-reset .about-slide-mask,
.about-slide.is-reset .about-slide-inner,
.about-slide.is-reset picture{transition:none}

/* Vệt sáng vàng bám đúng mép màn che. Chỉ sáng TRONG lúc quét rồi tắt ngay khi
   tới nơi — để nó nán lại sẽ thành một sọc vàng nằm ì trên ảnh, trông như lỗi. */
.about-slide-edge{position:absolute;top:0;bottom:0;left:0;width:2px;z-index:4;
  background:linear-gradient(180deg,transparent,var(--gold-soft,#d9c48b) 22%,#fff 50%,var(--gold-soft,#d9c48b) 78%,transparent);
  box-shadow:0 0 22px 3px rgba(217,196,139,.5);
  opacity:0;transform:translate3d(101%,0,0);pointer-events:none;
  transition:transform 1.05s cubic-bezier(.72,0,.16,1),opacity .28s ease}
.about-slide.is-active .about-slide-edge{transform:translate3d(0,0,0)}
.about-slide.is-entering .about-slide-edge{opacity:1}

/* Khi JS chưa chạy, ảnh đầu vẫn hiện đầy đủ. */
html:not(.js) .about-slide:first-child{opacity:1}
html:not(.js) .about-slide:first-child .about-slide-mask,
html:not(.js) .about-slide:first-child .about-slide-inner{transform:none}

@media (max-width:760px){
  /* Màn hình nhỏ: rút ngắn để không chiếm quá nửa thời gian hiển thị. */
  .about-slide-mask,.about-slide-inner{transition-duration:.85s}
  .about-slide.is-active picture{transform:scale(1.04)}
}
