/* Process - 9 scene theo PAGE-STORYBOARD.md */

/* ============ SCENE 1: HERO man toi ============ */
/* wrap 200vh + surface keo len -100vh: man giay truot len de hero */
.s1-wrap { height: 200vh; }
/* profile full desktop: them 100vh cho pha "the bo goc no thanh anh dai dien" truoc khi man giay phu */
@media (min-width: 1024px) {
  html.profile-full .s1-wrap { height: 300vh; }
}
.s1 {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background-color: var(--night);
  color: var(--bone);
  z-index: 1;
}
@supports (height: 100dvh) {
  .s1 { height: 100dvh; min-height: 100dvh; }
}
/* hai canh anh trai/phai (chi desktop): ngay | dem */
.s1__panel { display: none; }
@media (min-width: 1024px) {
  .s1__panel {
    display: block;
    position: absolute;
    top: 0; bottom: 0;
    width: 50%;
    overflow: hidden;
  }
  .s1__panel--l { left: 0; }
  .s1__panel--r { right: 0; }
  .s1__panel img {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
  }
}
/* o giua: phu kin man; profile full desktop se clip thanh the bo goc giua man bang JS,
   cuon xuong thi the no deu tu tam ra full (thanh anh dai dien), cuon len thu ve */
.s1__tile {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  overflow: hidden;
}
.s1__media, .s1__media img {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
}
.s1__media img { object-fit: cover; }
.s1__shade {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-color: rgba(10, 9, 7, .58);
}
.s1__scrim {
  position: absolute;
  right: 0; bottom: 0; left: 0;
  height: 70%;
  background-color: transparent;
  background-image: linear-gradient(to top, rgba(10, 9, 7, .82), rgba(10, 9, 7, 0));
}
.s1__content {
  position: absolute;
  right: 0; bottom: 0; left: 0;
  padding-bottom: clamp(40px, 8vh, 96px);
}
.s1__sub {
  margin-top: 22px;
  max-width: 44ch;
  color: rgba(236, 231, 220, .85);
}
.s1__cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
@media (max-width: 639px) {
  .s1__cta { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 1024px) {
  .s1__content { max-width: none; }
}

/* ============ BE MAT GIAY: s2..s9 nam tren hero ============ */
.page-surface {
  position: relative;
  z-index: var(--z-stage);
  margin-top: -100vh;
  background-color: transparent;
}

/* ============ SCENE 2: MANIFESTO nen giay ============ */
.s2 {
  background-color: var(--paper);
  color: var(--ink);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.s2__block {
  position: relative;
  padding-left: clamp(20px, 4vw, 56px);
  border-left: 1px solid var(--hairline-light);
}
@media (min-width: 1024px) {
  .s2__block { margin-left: 8.333%; max-width: 62%; }
}
.s2 .m-line { display: block; }
html.js .s2 .m-line { opacity: .14; }

/* ============ SCENE 3: MOT NGAY, giay chuyen dan sang toi ============ */
.s3 {
  background-color: var(--paper);
  color: var(--ink);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
/* doi mau chu khi ve dem (JS them .is-night khi qua nua duong) */
.s3 .s3__time { color: var(--ink-soft); transition: color .5s ease; }
.s3 .s3__leadtx { transition: color .5s ease; }
.s3.is-night { color: var(--bone); }
.s3.is-night .s3__time { color: var(--bone-soft); }

.s3__head { margin-bottom: clamp(40px, 8vh, 96px); }
.s3__wrap { position: relative; }
.s3__stage { display: none; }
.s3__item { margin-bottom: 56px; }
.s3__figm { margin-bottom: 18px; overflow: hidden; }
.s3__figm img { width: 100%; }
.s3__time {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 500;
  line-height: 1;
  display: block;
}
.s3__leadtx { margin-top: 12px; max-width: 40ch; }

@media (min-width: 1024px) {
  .s3__wrap {
    display: grid;
    grid-template-columns: 5fr 7fr;
    grid-column-gap: clamp(32px, 4vw, 72px);
    column-gap: clamp(32px, 4vw, 72px);
  }
  .s3__steps { grid-column: 1; position: relative; padding-left: 28px; }
  .s3__axis {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 1px;
  }
  .s3__item {
    min-height: 100vh;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .s3__figm { display: none; }
  .s3__stage {
    display: block;
    grid-column: 2;
    grid-row: 1;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
  }
  @supports (height: 100dvh) {
    .s3__stage { height: 100dvh; }
  }
  .s3__figd, .s3__figd img {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%; height: 100%;
  }
  .s3__figd img { object-fit: cover; }
  .s3__figd { visibility: hidden; }
  .s3__figd.is-base, html:not(.js) .s3__figd:first-child { visibility: visible; }
}

/* ============ SCENE 4: INDEX GIAI PHAP (toi) ============ */
.s4 {
  background-color: var(--bg);
  color: var(--ink);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.s4__head { margin-bottom: clamp(32px, 6vh, 72px); }
.s4__head .eyebrow { color: var(--accent-deep); }
.s4__head h2 { margin-top: 14px; }
.s4__grid { display: block; }
@media (min-width: 1024px) {
  .s4__grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* preview lon ngang hang voi chu */
    grid-column-gap: clamp(40px, 5vw, 96px);
    column-gap: clamp(40px, 5vw, 96px);
    align-items: start;
  }
  .sol__preview {
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

/* ============ SCENE 5: ANH SANG (2 chuong, chuyen anh bang rem lam) ============ */
.s5 {
  background-color: var(--night);
  color: var(--bone);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  overflow: hidden;
}
.s5__slide { margin-bottom: clamp(56px, 10vh, 120px); }
.s5__slide:last-child { margin-bottom: 0; }
.s5__copyin {
  position: relative;
  padding-left: clamp(18px, 2vw, 30px);
}
/* soi manh mo keo dai xuong qua khoi khoi chu (nhu reference) */
.s5__copyin::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: -140px;
  left: 0;
  width: 1px;
  background-color: rgba(236, 231, 220, .22);
}
/* doan sang dam chay doc phan tieu de */
.s5__copyin::after {
  content: "";
  position: absolute;
  top: 6px;
  left: -1px;
  width: 3px;
  height: clamp(88px, 16vh, 150px);
  background-color: rgba(236, 231, 220, .95);
}
.s5__body { margin-top: 16px; color: var(--bone-soft); max-width: 44ch; }
.s5__stage { position: relative; margin-top: 28px; }
.s5__frame { overflow: hidden; position: relative; }
.s5__frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.s5__frame--big {
  height: 0;
  padding-top: 66%;
}
.s5__frame--big > img, .s5__frame--big > .wipe__strips {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
}
.s5__frame--small {
  height: 0;
  padding-top: 40%;
  width: 62%;
  margin-top: -18%;
  position: relative;
  z-index: 1;
  outline: 10px solid var(--night);
}
.s5__frame--small > img, .s5__frame--small > .wipe__strips {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
}

/* che do slides (desktop full, JS them .is-slides): 2 chuong xep chong, pin va chuyen rem lam */
@media (min-width: 1024px) {
  .s5.is-slides { padding-top: 0; padding-bottom: 0; }
  .s5.is-slides .s5__pin {
    min-height: 100vh;
    display: grid;
    align-items: center;
  }
  @supports (min-height: 100dvh) {
    .s5.is-slides .s5__pin { min-height: 100dvh; }
  }
  .s5.is-slides .s5__slide {
    grid-row: 1;
    grid-column: 1;
    margin-bottom: 0;
    display: grid;
    grid-template-columns: 5fr 7fr;
    grid-column-gap: clamp(40px, 5vw, 96px);
    column-gap: clamp(40px, 5vw, 96px);
    align-items: center;
  }
  .s5.is-slides .s5__slide--b .s5__stage { visibility: hidden; } /* anh chuong 2 hien qua rem lam */
  .s5.is-slides .s5__stage { margin-top: 0; }
  .s5.is-slides .s5__frame--big { width: 88%; margin-left: auto; }
  .s5.is-slides .s5__frame--small { width: 44%; margin-top: -16%; }
}
@media (min-width: 1024px) {
  .s5:not(.is-slides) .s5__slide {
    display: grid;
    grid-template-columns: 5fr 7fr;
    grid-column-gap: clamp(40px, 5vw, 96px);
    column-gap: clamp(40px, 5vw, 96px);
    align-items: center;
  }
}

/* rem lam: cac lat ngang phu dan anh ke tiep */
.wipe__strips { pointer-events: none; }
.wipe__strip {
  position: relative;
  overflow: hidden;
  height: 11.1112%;
}
.wipe__strip img {
  position: absolute;
  left: 0;
  width: 100%;
  height: 900%;
  object-fit: cover;
}

/* ============ SCENE 6: CONG TRINH, pan ngang ============ */
.s6 {
  background-color: var(--night);
  color: var(--bone);
  padding-top: var(--section-y);
  padding-bottom: clamp(48px, 8vh, 96px);
}
.s6__head { margin-bottom: clamp(32px, 6vh, 64px); }
.s6__head .eyebrow { color: var(--bone-soft); }
.s6__head h2 { margin-top: 14px; }
.s6__head p { margin-top: 14px; color: var(--bone-soft); }
.s6__viewport { overflow: hidden; }
@media (min-width: 1024px) {
  .s6__pin {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
  }
  @supports (min-height: 100dvh) {
    .s6__pin { min-height: 100dvh; }
  }
}
.s6__track {
  display: flex;
  grid-column-gap: clamp(16px, 2.5vw, 40px);
  column-gap: clamp(16px, 2.5vw, 40px);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
  /* an scrollbar co kiem soat */
  scrollbar-width: none;
}
.s6__track::-webkit-scrollbar { display: none; }
.s6__card {
  flex: 0 0 auto;
  width: 85vw;
  scroll-snap-align: center;
}
.s6__card .frame {
  overflow: hidden;
  height: 0;
  padding-top: 125%; /* fallback 4:5 */
  position: relative;
}
.s6__card .frame img {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* chi dan vuot ngang: chi hien tren dien thoai, tat khi nguoi dung da vuot */
.s6__hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--accent-bright);
  font-size: .875rem;
  font-weight: 600;
  transition: opacity .35s ease;
}
.s6__hint-arrow {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
@media (prefers-reduced-motion: no-preference) {
  .s6__hint-arrow { animation: s6Nudge 1.8s ease-in-out infinite; }
}
@keyframes s6Nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}
.s6.is-swiped .s6__hint { opacity: 0; }

/* hang duoi dai anh: vach tien trinh + so thu tu + hai nut mui ten */
.s6__foot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  margin-left: var(--pad-x);
  margin-right: var(--pad-x);
}
/* nut mui ten dat ben trai, tranh de nut Zalo noi o goc phai che mat */
.s6__nav { order: 1; }
.s6__count { order: 2; }
.s6__bar { order: 3; }

.s6__count {
  flex: 0 0 auto;
  color: var(--bone-soft);
  font-size: .8125rem;
  letter-spacing: .04em;
}
.s6__count b { color: var(--bone); font-weight: 600; }
.s6__nav {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
}
.s6__arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--hairline-dark);
  color: var(--bone);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease, opacity .25s ease;
}
.s6__arrow svg { width: 20px; height: 20px; }
.s6__arrow:hover, .s6__arrow:focus-visible {
  background-color: var(--accent-bright);
  border-color: var(--accent-bright);
  color: var(--night);
}
.s6__arrow[disabled] { opacity: .3; }

.s6__bar {
  flex: 1 1 auto;
  height: 1px;
  margin-left: 0;
  margin-right: 0;
}
/* duong cong phat sang kieu apa: chay ngang GIUA dai anh, len phia sau anh */
.s6__wave { display: none; }
.s6__tail { display: none; }
@media (min-width: 1024px) {
  .s6.is-pan .s6__track {
    position: relative;
    height: 80vh;
    align-items: center;
    padding-left: 14vw;
    padding-right: 0;
    grid-column-gap: 27vw;
    column-gap: 27vw;
  }
  /* mieng dem cuoi: cho duoi line keo dai sau anh cuoi, nhu apa */
  .s6.is-pan .s6__tail { display: block; flex: 0 0 55vw; height: 1px; }
  .s6.is-pan .s6__wave {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    pointer-events: none;
  }
  /* ban keo ngang theo cuon doc: khong can vach tien trinh lan chi dan vuot */
  .s6.is-pan .s6__foot,
  .s6.is-pan .s6__hint { display: none; }
  /* anh nho, moi tam nam TRON mot nua tren/duoi de chu va duong cong co khoang trong rieng */
  .s6.is-pan .s6__card { position: relative; z-index: 1; width: 28vw; }
  .s6.is-pan .s6__card .frame { padding-top: 62%; }
  .s6.is-pan .s6__card--portrait { width: 16vw; }
  .s6.is-pan .s6__card--portrait .frame { padding-top: 132%; }
  .s6.is-pan .s6__card:nth-of-type(1) { margin-top: -24vh; }
  .s6.is-pan .s6__card:nth-of-type(2) { margin-top: 22vh; }
  .s6.is-pan .s6__card:nth-of-type(3) { margin-top: -22vh; }
  .s6.is-pan .s6__card:nth-of-type(4) { margin-top: 26vh; }
  .s6.is-pan .s6__card:nth-of-type(5) { margin-top: -23vh; }

  /* cum chu tai not kieu apa: meta nho tren cham, vach doc, tieu de nghieng + mo ta */
  .s6.is-pan .s6__card figcaption { display: none; }
  .s6__note {
    position: absolute;
    width: 0;
    z-index: 2;
    pointer-events: none;
  }
  .s6__note-kicker {
    position: absolute;
    left: 0;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: .75rem;
    letter-spacing: .04em;
    color: var(--bone-soft);
  }
  .s6__note--down .s6__note-kicker { bottom: 16px; }
  .s6__note--up .s6__note-kicker { top: 16px; }
  .s6__note-line {
    position: absolute;
    left: 0;
    width: 1px;
    height: 64px;
    background-color: rgba(236, 231, 220, .28);
  }
  .s6__note--down .s6__note-line { top: 10px; }
  .s6__note--up .s6__note-line { bottom: 10px; }
  .s6__note-body { position: absolute; left: -1px; width: 300px; }
  .s6__note--down .s6__note-body { top: 86px; }
  .s6__note--up .s6__note-body { bottom: 86px; }
  .s6__note-title {
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: 1.375rem;
    line-height: 1.25;
    color: var(--bone);
  }
  .s6__note-desc {
    margin-top: 8px;
    font-size: .8125rem;
    line-height: 1.6;
    color: var(--bone-soft);
    max-width: 30ch;
  }
}
@media (min-width: 1024px) {
  .s6__card { width: 58vw; }
  .s6__card .frame { padding-top: 62%; }
  .s6__card--portrait { width: 30vw; }
  .s6__card--portrait .frame { padding-top: 132%; }
  /* che do pan (JS them .is-pan khi profile full): tat cuon tay, track duoc tween */
  .s6.is-pan .s6__track { overflow: visible; scroll-snap-type: none; }
  .s6.is-pan .s6__viewport { overflow: hidden; }
}

/* ============ SCENE 6B: ZOOM-OUT phuong phap (anh to thu nho dan, kieu apa) ============ */
.szo {
  background-color: var(--night);
  color: var(--bone);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.szo__stage { position: relative; }
.szo__title { max-width: 16ch; margin-bottom: 28px; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.szo__media {
  position: relative;
  overflow: hidden;
  height: 0;
  padding-top: 66%;
}
.szo__media img {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.szo__shade {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-color: rgba(10, 9, 7, .45);
}
.szo__quote { margin-top: 36px; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.szo__quote p {
  font-style: italic;
  max-width: 38ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* che do zoom (JS them .is-zoom khi profile full + desktop) */
.szo.is-zoom { padding-top: 0; padding-bottom: 0; }
.szo.is-zoom .szo__pin {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
@supports (height: 100dvh) {
  .szo.is-zoom .szo__pin { height: 100dvh; }
}
.szo.is-zoom .szo__stage {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
}
.szo.is-zoom .szo__media {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  height: auto;
  padding-top: 0;
}
.szo.is-zoom .szo__title {
  position: absolute;
  left: 0;
  bottom: 9vh;
  margin-bottom: 0;
  z-index: 2;
}
.szo.is-zoom .szo__quote {
  position: absolute;
  right: 0; bottom: 8vh; left: 0;
  margin-top: 0;
  z-index: 2;
}

/* ============ SCENE 7: QUY TRINH (toi nhich sang) ============ */
.s7 {
  background-color: var(--bg-soft);
  color: var(--ink);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.s7__head { margin-bottom: clamp(40px, 8vh, 88px); }
.s7__flow { position: relative; padding-left: 28px; }
.s7__axis {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 2px;
  overflow: hidden;
  background-color: var(--hairline-light);
}
/* doan sang chay BEN TRONG thanh theo tien trinh cuon */
.s7 .s7__axis > span {
  height: 24%;
  width: 100%;
  transform: none;
  background-color: var(--accent-deep);
}
.s7__lead { margin-top: 14px; color: var(--ink-soft); max-width: 60ch; }
.s7__step { padding-bottom: clamp(36px, 6vh, 64px); max-width: 60ch; }
.s7__step:last-child { padding-bottom: 0; }
.s7__step h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  line-height: 1.2;
}
.s7__step p { margin-top: 8px; color: var(--ink-soft); }

/* anh dai dien tung buoc, bam de xem lon (dong bo voi feat__media) */
.s7__thumb {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background-color: var(--bg);
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
  margin-bottom: 18px;
  height: 0;
  padding-top: 66%;
  position: relative;
}
@supports (aspect-ratio: 3 / 2) {
  .s7__thumb { height: auto; padding-top: 0; aspect-ratio: 3 / 2; }
}
.s7__thumb img {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .3s ease;
}
.s7__thumb:hover img, .s7__thumb:focus-visible img { transform: scale(1.04); filter: brightness(1.03); }

@media (min-width: 1024px) {
  .s7__flow { padding-left: 0; }
  .s7__axis { left: 25%; }
  .s7__step { width: 44%; }
  .s7__step:nth-child(odd) { margin-left: 0; text-align: right; padding-right: 40px; }
  .s7__step:nth-child(odd) p { margin-left: auto; }
  .s7__step:nth-child(odd) .s7__thumb { margin-left: auto; margin-right: 0; }
  .s7__step:nth-child(even) { margin-left: calc(25% + 40px); }
  .s7__step:nth-child(even) .s7__thumb { margin-left: 0; margin-right: auto; }
}

/* ============ SCENE 8: FAQ ============ */
.s8 {
  background-color: var(--night-soft);
  color: var(--bone);
  padding-top: 0;
  padding-bottom: var(--section-y);
}
.s8__head { margin-bottom: clamp(28px, 5vh, 56px); }
.s8__list { max-width: 860px; }

/* ============ SCENE 8B: DAI ANH TU TROI + LIGHTBOX ============ */
.sgs {
  background-color: var(--night-soft);
  color: var(--bone);
  padding-top: 0;
  padding-bottom: var(--section-y);
  overflow: hidden;
}
.sgs__head { margin-bottom: clamp(28px, 5vh, 56px); }
.sgs__marquee { overflow: hidden; }
html:not(.js) .sgs__marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sgs__strip {
  display: flex;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
}
.sgs__strip.is-loop { animation: sgsmove 58s linear infinite; }
.sgs__marquee:hover .sgs__strip.is-loop { animation-play-state: paused; }
@keyframes sgsmove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.sgs__card {
  display: block;
  flex: 0 0 auto;
  width: 320px;
  margin-right: 24px;
  text-align: left;
  cursor: zoom-in;
  color: inherit;
}
.sgs__frame {
  display: block;
  position: relative;
  overflow: hidden;
  height: 0;
  padding-top: 75%;
}
.sgs__frame img {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .92;
  transition: opacity .3s ease, transform .6s ease;
}
.sgs__card:hover .sgs__frame img,
.sgs__card:focus-visible .sgs__frame img { opacity: 1; transform: scale(1.03); }
.sgs__title {
  display: block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.3;
}
.sgs__sub { display: block; margin-top: 2px; color: var(--bone-soft); }
@media (max-width: 639px) {
  .sgs__card { width: 240px; margin-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .sgs__strip.is-loop { animation: none; }
  .sgs__marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* lightbox xem anh lon */
.lightbox {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 120;
  background-color: rgba(10, 9, 7, .93);
  color: var(--bone);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__fig { max-width: 92vw; text-align: center; }
.lightbox__fig img {
  display: block;
  max-width: 92vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}
.lightbox__fig figcaption { margin-top: 14px; color: var(--bone-soft); }
.lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bone);
}
.lightbox__close svg { width: 22px; height: 22px; }

/* ============ SCENE 9: CONTACT ket phim ============ */
.s9 {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background-color: var(--night);
  color: var(--bone);
  display: flex;
  align-items: flex-end;
}
@supports (min-height: 100dvh) {
  .s9 { min-height: 100dvh; }
}
.s9__media, .s9__media img {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
}
.s9__media img, img.s9__media { object-fit: cover; }
.s9__shade {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-color: rgba(7, 21, 26, .55);
}
.s9__scrim {
  position: absolute;
  right: 0; bottom: 0; left: 0;
  height: 75%;
  background-image: linear-gradient(to top, rgba(7, 21, 26, .9), rgba(7, 21, 26, 0));
}
.s9__inner {
  position: relative;
  width: 100%;
  padding-top: 30vh;
  padding-bottom: 36px;
}
.s9__sub { margin-top: 18px; color: rgba(236, 231, 220, .85); max-width: 40ch; }
.s9__cta { margin-top: 30px; }
.s9__contactline {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  grid-column-gap: 28px;
  column-gap: 28px;
  row-gap: 8px;
  color: var(--bone-soft);
}
.s9__contactline a:hover { color: var(--bone); }

/* form dang ky tu van */
.s9__form {
  margin-top: 30px;
  max-width: 620px;
}
.s9__form-row {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 12px;
}
@media (min-width: 560px) {
  .s9__form-row { grid-template-columns: 1fr 1fr; }
}
.s9__form input,
.s9__form select,
.s9__form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid rgba(236, 231, 220, .28);
  border-radius: 10px;
  background-color: rgba(14, 42, 51, .55);
  color: var(--bone);
  font: inherit;
  font-size: .95rem;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.s9__form textarea { resize: vertical; min-height: 84px; }
.s9__form ::placeholder { color: rgba(236, 231, 220, .55); }
.s9__form select { color: rgba(236, 231, 220, .85); }
.s9__form select option { color: var(--ink); }
.s9__form input:focus,
.s9__form select:focus,
.s9__form textarea:focus {
  outline: none;
  border-color: var(--accent-bright);
  background-color: rgba(14, 42, 51, .8);
}
.s9__form-foot {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.s9__zalo-alt { color: var(--bone-soft); font-size: .875rem; }
.s9__zalo-alt:hover { color: var(--accent-bright); }
.s9__form-msg { margin-top: 12px; font-size: .9rem; min-height: 1.2em; }
.s9__form-msg.ok { color: var(--accent-bright); }
.s9__form-msg.err { color: #ff9d8e; }
.s9__form.is-sent .s9__form-row,
.s9__form.is-sent textarea,
.s9__form.is-sent .s9__form-foot { display: none; }

/* khoi thong tin lien he day du */
.s9__details {
  margin-top: 34px;
  display: grid;
  grid-row-gap: 14px;
  row-gap: 14px;
  max-width: 46ch;
}
.s9__details li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--bone-soft);
  line-height: 1.5;
}
.s9__details svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--accent-bright);
}
.s9__details a { color: var(--bone); }
.s9__details a:hover { color: var(--accent-bright); }
.s9__zalo {
  margin-left: 10px;
  padding: 1px 10px;
  border: 1px solid rgba(47, 212, 194, .4);
  border-radius: 999px;
  font-size: .75rem;
}
.s9 .site-footer {
  position: relative;
  margin-top: 56px;
  background-color: transparent;
}

/* ============ trang thai an truoc khi JS animate (chi khi co JS) ============ */
html.js .will-fade { opacity: 0; }


/* ============ HERO N: dich vu doanh nghiep (xanh than, chu truoc) ============ */
.hn {
  position: relative;
  background-color: var(--night);
  color: var(--bone);
  padding-top: calc(var(--header-h) + clamp(40px, 8vh, 96px));
  padding-bottom: clamp(56px, 10vh, 120px);
  overflow: hidden;
}
.hn__grid { display: grid; grid-row-gap: 36px; row-gap: 36px; }
.hn h1 { max-width: 13ch; }
.hn__sub { margin-top: 20px; max-width: 46ch; color: var(--bone-soft); }
.hn__points {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  grid-column-gap: 26px;
  column-gap: 26px;
  row-gap: 8px;
  color: var(--bone-soft);
}
.hn__points span { position: relative; padding-left: 14px; }
.hn__points span::before {
  content: "";
  position: absolute;
  top: .48em;
  left: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background-color: var(--accent-bright);
}
.hn__cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.hn__media {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(47, 212, 194, .25);
  height: clamp(300px, 44vh, 420px);
}
.hn__media img { width: 100%; height: 100%; object-fit: cover; }
.hn__slide {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hn__slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hn__slide { transition: none; }
}
@media (min-width: 1024px) {
  .hn { min-height: 92vh; display: flex; align-items: center; }
  .hn__grid {
    width: 100%;
    grid-template-columns: 7fr 5fr;
    grid-column-gap: clamp(48px, 6vw, 110px);
    column-gap: clamp(48px, 6vw, 110px);
    align-items: center;
  }
  .hn__media { height: clamp(380px, 58vh, 600px); }
}

/* ============ SIM: mo phong giai phap voi hotspot ============ */
.sim {
  background-color: var(--bg);
  color: var(--ink);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.sim__lead { margin-top: 12px; color: var(--ink-soft); }
.sim__stage {
  position: relative;
  margin-top: clamp(28px, 5vh, 48px);
  border-radius: 20px;
  overflow: hidden;
}
.sim__stage > img { width: 100%; height: auto; display: block; }
.sim__hs {
  position: absolute;
  width: 34px; height: 34px;
  margin-left: -17px; margin-top: -17px;
  border-radius: 50%;
  background-color: rgba(11, 125, 114, .95);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 6px rgba(18, 163, 148, .28);
  transition: transform .25s ease, box-shadow .25s ease;
}
.sim__hs:hover, .sim__hs:focus-visible { transform: scale(1.12); box-shadow: 0 0 0 10px rgba(18, 163, 148, .2); }
@media (prefers-reduced-motion: no-preference) {
  .sim__hs { animation: hs-pulse 2.6s ease-in-out infinite alternate; }
}
@keyframes hs-pulse {
  from { box-shadow: 0 0 0 4px rgba(18, 163, 148, .32); }
  to { box-shadow: 0 0 0 11px rgba(18, 163, 148, .12); }
}
.sim__tip {
  position: absolute;
  transform: translate(-50%, 26px);
  width: min(280px, 74vw);
  background-color: #ffffff;
  color: var(--ink);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 18px 50px rgba(10, 30, 38, .28);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
  z-index: 3;
}
.sim__tip.is-open { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.sim__tip strong { display: block; font-weight: 600; font-size: .9rem; }
.sim__tip p { margin-top: 4px; font-size: .8125rem; line-height: 1.55; color: var(--ink-soft); }
.sim__tip--flip { transform: translate(-92%, 26px); }
.sim__tip--up { transform: translate(-50%, calc(-100% - 22px)); }
.sim__legend {
  margin-top: 22px;
  display: grid;
  grid-row-gap: 10px;
  row-gap: 10px;
}
.sim__legend li { display: flex; flex-wrap: wrap; align-items: baseline; grid-column-gap: 12px; column-gap: 12px; padding-left: 16px; position: relative; }
.sim__legend li::before {
  content: "";
  position: absolute;
  top: .5em; left: 0;
  width: 7px; height: 7px;
  border-radius: 50%;
  background-color: var(--accent);
}
.sim__legend strong { font-weight: 600; font-size: .9rem; }
.sim__legend span { color: var(--ink-soft); font-size: .8125rem; }
@media (min-width: 768px) {
  .sim__legend { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .sim__legend { grid-template-columns: repeat(3, 1fr); }
}

/* ============ SVC: danh sach dich vu ============ */
.svc {
  background-color: var(--bg-soft);
  color: var(--ink);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.svc__list { margin-top: clamp(24px, 4vh, 40px); border-top: 1px solid var(--hairline-light); }
.svc__row {
  border-bottom: 1px solid var(--hairline-light);
  padding-top: 20px;
  padding-bottom: 20px;
}
.svc__row h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
}
.svc__row p { margin-top: 6px; color: var(--ink-soft); max-width: 62ch; }
@media (min-width: 768px) {
  .svc__row {
    display: grid;
    grid-template-columns: 260px 1fr;
    grid-column-gap: 40px;
    column-gap: 40px;
  }
  .svc__row p { margin-top: 0; }
}

/* ============ PLAT: nen tang cong nghe ============ */
.plat {
  background-color: var(--bg);
  color: var(--ink);
  padding-top: clamp(64px, 9vh, 110px);
  padding-bottom: clamp(64px, 9vh, 110px);
}
.plat__note { margin-top: 10px; color: var(--ink-soft); }
.plat__row {
  margin-top: clamp(24px, 4vh, 40px);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  grid-column-gap: clamp(32px, 5vw, 76px);
  column-gap: clamp(32px, 5vw, 76px);
  row-gap: 16px;
}
.plat__row li {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.7rem);
  letter-spacing: .1em;
  color: var(--ink-soft);
  transition: color .3s ease;
}
.plat__row li:hover { color: var(--accent-deep); }

/* reveal dung chung cho section moi */
html.js .rv { opacity: 0; transform: translateY(22px); }

/* ============ HVID: dai video "thiet lap ca nhan hoa" (nen xanh than, cao cap) ============ */
.hvid {
  background-color: var(--night);
  color: var(--bone);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  overflow: hidden;
}
.hvid__fig { margin: 0; }
.hvid__frame {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background-color: var(--night-soft);
  border: 1px solid rgba(47, 212, 194, .28);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .45), 0 0 0 1px rgba(47, 212, 194, .06);
  height: 0;
  padding-top: 62%;
}
@supports (aspect-ratio: 3 / 2) {
  .hvid__frame { height: auto; padding-top: 0; aspect-ratio: 3 / 2; }
}
.hvid__el {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.hvid__cap { margin-top: 28px; }
.hvid__cap .eyebrow { color: var(--accent-bright); }
.hvid__heading { margin-top: 14px; max-width: 18ch; color: var(--bone); }
.hvid__text {
  margin-top: 16px;
  max-width: 46ch;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--bone-soft);
}
.hvid__feats {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  grid-column-gap: 10px;
  column-gap: 10px;
  row-gap: 10px;
}
.hvid__feats li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 14px;
  border: 1px solid rgba(47, 212, 194, .3);
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 500;
  color: var(--bone);
  background-color: rgba(47, 212, 194, .1);
}
.hvid__feats li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background-color: var(--accent-bright);
  flex: 0 0 auto;
}
.hvid__link {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .9375rem;
  color: var(--accent-bright);
}
.hvid__link svg { width: 14px; height: 14px; }
.hvid__link:hover { color: var(--bone); }
@media (min-width: 1024px) {
  .hvid__fig {
    display: grid;
    grid-template-columns: 6.4fr 5fr;
    grid-column-gap: clamp(44px, 5vw, 96px);
    column-gap: clamp(44px, 5vw, 96px);
    align-items: center;
  }
  .hvid__cap { margin-top: 0; }
}

/* ---- slider 3 giai phap ---- */
.hslider { position: relative; }
.hslider__stage { display: grid; }
.hslide {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility 0s linear .5s;
  pointer-events: none;
}
.hslide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity .5s ease;
  pointer-events: auto;
}
.hvid__img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.hslide .hvid__cap { margin-top: 28px; }

.hslider__controls {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.hslider__dots { display: flex; gap: 10px; }
.hslider__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(157, 179, 186, .55);
  background-color: transparent;
  transition: background-color .3s ease, border-color .3s ease, transform .3s ease;
  cursor: pointer;
}
.hslider__dot:hover { border-color: var(--accent-bright); }
.hslider__dot.is-active { background-color: var(--accent-bright); border-color: var(--accent-bright); transform: scale(1.15); }
.hslider__arrows { display: flex; gap: 12px; }
.hslider__arrow {
  width: 46px; height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(47, 212, 194, .35);
  color: var(--bone);
  background-color: rgba(47, 212, 194, .06);
  transition: background-color .25s ease, border-color .25s ease, transform .2s ease;
  cursor: pointer;
}
.hslider__arrow svg { width: 20px; height: 20px; }
.hslider__arrow:hover, .hslider__arrow:focus-visible {
  background-color: var(--accent-deep);
  border-color: var(--accent-deep);
  color: #fff;
}
.hslider__arrow:active { transform: scale(.94); }

@media (min-width: 1024px) {
  .hslide {
    display: grid;
    grid-template-columns: 6.4fr 5fr;
    grid-column-gap: clamp(44px, 5vw, 96px);
    column-gap: clamp(44px, 5vw, 96px);
    align-items: center;
  }
  .hslide .hvid__cap { margin-top: 0; }
}

/* ============ VI SAO CHON PROCESS ============ */
.why {
  background-color: var(--bg-soft);
  color: var(--ink);
  padding-top: var(--section-y);
  padding-bottom: clamp(56px, 9vh, 110px);
}
.why__head { max-width: 46ch; margin-bottom: clamp(32px, 6vh, 64px); }
.why__head .eyebrow { color: var(--accent-deep); }
.why__head h2 { margin-top: 14px; }
.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 20px;
  gap: 20px;
}
@media (min-width: 640px) { .why__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .why__grid { grid-template-columns: repeat(4, 1fr); } }
.why__card {
  background-color: var(--bg);
  border: 1px solid var(--hairline-light);
  border-radius: 16px;
  padding: 26px 22px;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.why__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(14, 42, 51, .1);
  border-color: rgba(18, 163, 148, .4);
}
.why__icon {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background-color: rgba(18, 163, 148, .1);
  color: var(--accent-deep);
  margin-bottom: 16px;
}
.why__icon svg { width: 24px; height: 24px; }
.why__card h3 {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}
.why__card p { margin-top: 8px; color: var(--ink-soft); font-size: .9375rem; line-height: 1.6; }

/* ============ DAI CHU KY THUAT CHAY (kinetic marquee) ============ */
.kmarq {
  background-color: var(--night);
  color: var(--bone);
  padding-top: clamp(40px, 7vh, 80px);
  padding-bottom: clamp(40px, 7vh, 80px);
  overflow: hidden;
}
.kmarq__row { overflow: hidden; white-space: nowrap; }
.kmarq__row--2 { margin-top: 10px; }
.kmarq__track {
  display: inline-flex;
  align-items: center;
  will-change: transform;
}
.kmarq__track span {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3.4rem);
  font-weight: 500;
  line-height: 1.1;
  padding: 0 clamp(22px, 3vw, 48px);
  color: var(--bone);
}
.kmarq__track span::after {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-left: clamp(22px, 3vw, 48px);
  border-radius: 50%;
  background-color: var(--accent-bright);
}
.kmarq__row--2 .kmarq__track span { color: var(--bone-soft); }
/* hai hang chay nguoc chieu, lien tuc */
@media (prefers-reduced-motion: no-preference) {
  .kmarq__row--1 .kmarq__track.is-run { animation: kmarq-left 34s linear infinite; }
  .kmarq__row--2 .kmarq__track.is-run { animation: kmarq-right 38s linear infinite; }
  .kmarq:hover .kmarq__track.is-run { animation-play-state: paused; }
}
@keyframes kmarq-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes kmarq-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
