/* Process - trang con giai phap (nha o / khach san / thuong mai) */

html.js .site-header--solid { background-color: #12100d; }

/* ---- showcase kieu Flyward: nen full man, dai the nho ben duoi ---- */
.show {
  position: relative;
  height: 100vh;
  min-height: 620px;
  overflow: hidden;
  background-color: var(--night);
  color: var(--bone);
}
@supports (height: 100dvh) {
  .show { height: 100dvh; }
}
.show__bgimg {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .7s ease;
}
.show__bgimg.is-on { opacity: 1; }
/* Ken Burns: anh song cham lai sau moi lan doi */
@media (prefers-reduced-motion: no-preference) {
  .show__bgimg.is-on { animation: show-ken 14s ease-out both; }
}
@keyframes show-ken {
  from { transform: scale(1.07); }
  to { transform: scale(1); }
}
/* lop bui sao lap lanh tho tren nen */
.show__spark {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image: url("../assets/textures/stars-b.png");
  background-repeat: repeat;
  background-size: 640px 640px;
  opacity: .18;
  pointer-events: none;
  mix-blend-mode: screen;
}
@media (prefers-reduced-motion: no-preference) {
  .show__spark { animation: show-spark 8s ease-in-out infinite alternate; }
}
@keyframes show-spark {
  from { opacity: .07; }
  to { opacity: .38; }
}
/* khung ke chi manh kieu Flyward */
.show__grid {
  position: absolute;
  top: calc(var(--header-h) + 10px);
  right: clamp(20px, 3.5vw, 56px);
  bottom: 22px;
  left: clamp(20px, 3.5vw, 56px);
  border: 1px solid rgba(236, 231, 220, .13);
  pointer-events: none;
}
.show__grid span {
  position: absolute;
  background-color: rgba(236, 231, 220, .1);
}
.show__grid span:first-child {
  top: 0; bottom: 0;
  left: 38%;
  width: 1px;
}
.show__grid span:last-child {
  right: 0; left: 0;
  top: 56%;
  height: 1px;
}
@media (max-width: 767px) {
  .show__grid { display: none; }
}
.show__scrim {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-color: rgba(10, 9, 7, .38);
  background-image: linear-gradient(to bottom, rgba(10, 9, 7, .55), rgba(10, 9, 7, .05) 40%, rgba(10, 9, 7, .78) 92%);
}
.show__top {
  position: absolute;
  top: calc(var(--header-h) + clamp(20px, 5vh, 56px));
  right: 0; left: 0;
}
.show__kicker {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .24em;
  color: var(--gold);
  margin-bottom: 16px;
}
.show__title {
  max-width: 14ch;
  text-shadow: 0 2px 28px rgba(0, 0, 0, .4);
}
.show__sub {
  margin-top: 14px;
  max-width: 40ch;
  color: rgba(236, 231, 220, .85);
}
.show__label {
  position: absolute;
  right: 0; bottom: 214px; left: 0;
  display: flex;
  align-items: baseline;
  grid-column-gap: 14px;
  column-gap: 14px;
}
.show__star {
  width: 13px; height: 13px;
  align-self: center;
  color: var(--gold);
  flex: 0 0 auto;
  filter: drop-shadow(0 0 6px rgba(242, 201, 76, .9));
}
@media (prefers-reduced-motion: no-preference) {
  .show__star { animation: star-pulse 2.6s ease-in-out infinite alternate; }
}
@keyframes star-pulse {
  from { transform: scale(.85); filter: drop-shadow(0 0 3px rgba(242, 201, 76, .5)); }
  to { transform: scale(1.1); filter: drop-shadow(0 0 9px rgba(242, 201, 76, 1)); }
}
.show__name {
  font-size: .8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.show__tag { color: var(--bone-soft); }
.show__strip {
  position: absolute;
  right: 0; bottom: 26px; left: 0;
  display: flex;
  grid-column-gap: 14px;
  column-gap: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-top: 12px;
  padding-bottom: 6px;
}
.show__strip::-webkit-scrollbar { display: none; }
.show__card {
  flex: 0 0 auto;
  width: 138px;
  text-align: left;
  color: var(--bone);
  opacity: .68;
  transition: opacity .3s ease, transform .35s ease;
  cursor: pointer;
}
.show__card:hover, .show__card:focus-visible, .show__card.is-on { opacity: 1; }
.show__card:hover, .show__card:focus-visible { transform: translateY(-4px); }
.show__cardname {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.show__cardtag {
  display: block;
  font-size: .6875rem;
  color: var(--bone-soft);
  margin-bottom: 8px;
}
.show__thumb {
  display: block;
  width: 100%;
  height: 86px;
  object-fit: cover;
  border: 1px solid rgba(236, 231, 220, .28);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.show__card.is-on .show__thumb {
  border-color: var(--gold);
  box-shadow: 0 0 22px rgba(242, 201, 76, .28), inset 0 0 0 1px rgba(242, 201, 76, .35);
}
.show__card.is-on .show__cardname { color: var(--gold); }
@media (max-width: 767px) {
  .show__label { bottom: 196px; }
  .show__card { width: 118px; }
  .show__thumb { height: 72px; }
  .show__sub { display: none; }
}

.page-gal__intro {
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: clamp(24px, 4vh, 40px);
}
.page-back {
  font-size: .875rem;
  color: var(--bone-soft);
  transition: color .3s ease;
}
.page-back:hover, .page-back:focus-visible { color: var(--bone); }

.page-hero {
  background-color: var(--night);
  color: var(--bone);
  padding-top: calc(var(--header-h) + clamp(48px, 9vh, 110px));
  padding-bottom: clamp(32px, 6vh, 64px);
}
.page-hero h1 { max-width: 16ch; }
.page-hero .lead { margin-top: 20px; max-width: 52ch; }
.page-hero__note { margin-top: 12px; color: var(--bone-soft); max-width: 60ch; }

.page-gal {
  background-color: var(--bg);
  color: var(--ink);
  padding-top: clamp(32px, 6vh, 64px);
  padding-bottom: var(--section-y);
}
.gal {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 28px;
  gap: 28px;
}
@media (min-width: 768px) {
  .gal { grid-template-columns: 1fr 1fr; }
  .gal__item--wide { grid-column: 1 / -1; }
}
.gal__item {
  display: block;
  width: 100%;
  text-align: left;
  color: inherit;
  cursor: zoom-in;
}
.gal__item .ph { padding-top: 68%; }
.gal__item--wide .ph { padding-top: 48%; }
.gal__item .ph img { transition: opacity .3s ease, transform .6s ease; opacity: .94; }
.gal__item:hover .ph img, .gal__item:focus-visible .ph img { opacity: 1; transform: scale(1.02); }
.gal__cap { display: block; margin-top: 10px; color: var(--ink-soft); }
.gal__note { display: block; margin-top: 4px; color: var(--ink-faint, var(--ink-soft)); font-size: .92em; line-height: 1.5; }

.page-cta {
  background-color: var(--bg-soft);
  color: var(--ink);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.page-cta__actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; grid-column-gap: 28px; column-gap: 28px; row-gap: 12px; }
.page-cta__line { color: var(--ink-soft); }
.page-cta__line a:hover { color: var(--ink); }

/* hien dan khi cuon (IO them .is-in) */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.is-in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
}


/* khoi "pham vi trien khai" tren trang linh vuc */
.page-topics {
  background-color: var(--bg);
  color: var(--ink);
  padding-top: clamp(48px, 8vh, 90px);
}
.page-topics__list { margin-top: 18px; border-top: 1px solid var(--hairline-light); }
.page-topics__row {
  border-bottom: 1px solid var(--hairline-light);
  padding-top: 18px;
  padding-bottom: 18px;
}
.page-topics__row h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; }
.page-topics__row p { margin-top: 4px; color: var(--ink-soft); max-width: 62ch; }
@media (min-width: 768px) {
  .page-topics__row {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-column-gap: 40px;
    column-gap: 40px;
  }
  .page-topics__row p { margin-top: 0; }
}
.gal__item .ph { border-radius: 14px; overflow: hidden; }

/* khoi video thiet lap ca nhan hoa (trang nha o) - nen xanh than cao cap */
.page-video {
  background-color: var(--night);
  color: var(--bone);
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.pvid { margin: 0; }
.pvid__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) {
  .pvid__frame { height: auto; padding-top: 0; aspect-ratio: 3 / 2; }
}
.pvid__el {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.pvid__cap { margin-top: 28px; }
.pvid__cap .eyebrow { color: var(--accent-bright); }
.pvid__heading { margin-top: 14px; max-width: 18ch; color: var(--bone); }
.pvid__text {
  margin-top: 16px;
  max-width: 46ch;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--bone-soft);
}
.pvid__feats {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  grid-column-gap: 10px;
  column-gap: 10px;
  row-gap: 10px;
}
.pvid__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);
}
.pvid__feats li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background-color: var(--accent-bright);
  flex: 0 0 auto;
}
@media (min-width: 1024px) {
  .pvid {
    display: grid;
    grid-template-columns: 6.4fr 5fr;
    grid-column-gap: clamp(44px, 5vw, 96px);
    column-gap: clamp(44px, 5vw, 96px);
    align-items: center;
  }
  .pvid__cap { margin-top: 0; }
}

/* khoi "pham vi trien khai" tren trang linh vuc */
.page-topics {
  background-color: var(--bg);
  color: var(--ink);
  padding-top: clamp(48px, 8vh, 90px);
}
.page-topics__list { margin-top: 18px; border-top: 1px solid var(--hairline-light); }
.page-topics__row {
  border-bottom: 1px solid var(--hairline-light);
  padding-top: 18px;
  padding-bottom: 18px;
}
.page-topics__row h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 600; }
.page-topics__row p { margin-top: 4px; color: var(--ink-soft); max-width: 62ch; }
@media (min-width: 768px) {
  .page-topics__row {
    display: grid;
    grid-template-columns: 280px 1fr;
    grid-column-gap: 40px;
    column-gap: 40px;
  }
  .page-topics__row p { margin-top: 0; }
}
.gal__item .ph { border-radius: 14px; overflow: hidden; }

/* ============ khoi tinh nang xen ke anh (trang thuong mai) ============ */
.page-feats {
  background-color: var(--bg);
  color: var(--ink);
  padding-top: clamp(40px, 7vh, 80px);
  padding-bottom: var(--section-y);
}
.feat {
  display: grid;
  grid-row-gap: 22px;
  row-gap: 22px;
  margin-bottom: clamp(36px, 6vh, 72px);
}
.feat:last-child { margin-bottom: 0; }
.feat__media {
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  background-color: var(--bg-soft);
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: zoom-in;
  /* fallback truoc, aspect sau */
  height: 0;
  padding-top: 66%;
  position: relative;
}
@supports (aspect-ratio: 3 / 2) {
  .feat__media { height: auto; padding-top: 0; aspect-ratio: 3 / 2; }
}
.feat__media img {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease, filter .3s ease;
}
.feat:hover .feat__media img,
.feat__media:hover img,
.feat__media:focus-visible img { transform: scale(1.04); filter: brightness(1.03); }
.feat__icon {
  display: inline-flex;
  width: 40px; height: 40px;
  color: var(--accent-deep);
}
.feat__icon svg { width: 100%; height: 100%; }
.feat__title {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.25;
}
.feat__desc {
  margin-top: 12px;
  color: var(--ink-soft);
  max-width: 48ch;
  line-height: 1.65;
}
@media (min-width: 1024px) {
  .feat {
    grid-template-columns: 1fr 1fr;
    grid-column-gap: clamp(48px, 6vw, 110px);
    column-gap: clamp(48px, 6vw, 110px);
    align-items: center;
    margin-bottom: clamp(56px, 9vh, 120px);
  }
  .feat__body { padding-right: 4%; }
  /* xen ke: hang chan dao anh sang phai, chu sang trai */
  .feat:nth-child(even) .feat__media { order: 2; }
  .feat:nth-child(even) .feat__body { order: 1; padding-right: 0; padding-left: 4%; }
}

/* ---- trang 404 ---- */
.nf {
  background-color: var(--night);
  color: var(--bone);
  min-height: 78vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + clamp(48px, 9vh, 110px));
  padding-bottom: clamp(64px, 12vh, 140px);
}
.nf__inner { width: 100%; }
.nf h1 { max-width: 18ch; margin-top: 10px; }
.nf__lead {
  margin-top: 20px;
  max-width: 56ch;
  color: var(--bone-soft);
}
.nf__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(28px, 4vh, 44px);
}
.nf__more {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: clamp(36px, 6vh, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--hairline-dark);
}
.nf__more a {
  color: var(--bone-soft);
  font-size: .9375rem;
  transition: color .3s ease;
}
.nf__more a:hover, .nf__more a:focus-visible { color: var(--accent-bright); }
