:root {
  --ink: #f5f0e6;
  --muted: rgba(245, 240, 230, 0.68);
  --gold: #d9b77b;
  --green: #17241c;
  --line: rgba(255, 255, 255, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  background: #0e1511;
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100svh;
  padding: 38px clamp(24px, 5vw, 80px) 30px;
  flex-direction: column;
  overflow: hidden;
}

.hero__background {
  position: absolute;
  z-index: -3;
  inset: 0;
  background: url("Ngoaicanh_BBHotel_03_resize.jpg") center 54% / cover no-repeat;
  animation: slowZoom 18s ease-in-out infinite alternate;
}

.hero__shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 13, 9, .94) 0%, rgba(8, 14, 10, .78) 43%, rgba(8, 13, 9, .18) 74%, rgba(8, 13, 9, .38) 100%),
    linear-gradient(0deg, rgba(6, 11, 8, .82) 0%, transparent 42%);
}

.page-noise {
  position: fixed;
  z-index: 10;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.nav, .footer { display: flex; align-items: center; }
.nav { justify-content: space-between; }

.brand { display: inline-flex; align-items: center; gap: 11px; letter-spacing: .22em; }
.brand__mark { border: 1px solid rgba(255,255,255,.55); padding: 8px 7px 7px 9px; font: 600 15px/1 "Playfair Display", serif; letter-spacing: .05em; }
.brand__name { font-size: 13px; font-weight: 600; }

.nav__contact { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .17em; text-transform: uppercase; }
.nav__contact svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .3s ease; }
.nav__contact:hover svg { transform: translateX(5px); }

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
  align-items: center;
  gap: clamp(40px, 8vw, 130px);
  width: min(1160px, 100%);
  margin: auto;
  padding: 55px 0 40px;
}

.intro { max-width: 690px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; color: var(--gold); font-size: 11px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow span { width: 34px; height: 1px; background: var(--gold); }

h1 { font: 600 clamp(74px, 10vw, 145px)/.72 "Playfair Display", serif; letter-spacing: -.055em; }
h1 em { position: relative; left: clamp(25px, 4vw, 65px); color: var(--gold); font-weight: 500; }

.intro__text { max-width: 570px; margin: 42px 0 36px; color: var(--muted); font-size: clamp(14px, 1.1vw, 16px); font-weight: 300; line-height: 1.75; }

.countdown { display: flex; align-items: center; gap: clamp(12px, 2vw, 27px); }
.countdown__item { min-width: 52px; }
.countdown__item strong { display: block; font: 500 clamp(25px, 2.6vw, 38px)/1 "Playfair Display", serif; font-variant-numeric: tabular-nums; }
.countdown__item span { display: block; margin-top: 8px; color: var(--muted); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.countdown i { width: 1px; height: 36px; background: var(--line); }
.countdown.is-launched { color: var(--gold); font: 500 24px "Playfair Display", serif; }

.feature-card { align-self: center; transform: translateY(16px); }
.feature-card__image { position: relative; height: clamp(300px, 48vh, 500px); overflow: hidden; border: 1px solid rgba(255,255,255,.25); }
.feature-card__image::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 8px rgba(255,255,255,.04); }
.feature-card img { width: 100%; height: 100%; object-fit: cover; object-position: 55% center; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.feature-card:hover img { transform: scale(1.045); }
.feature-card__caption { display: flex; justify-content: space-between; align-items: flex-end; padding-top: 15px; }
.feature-card__caption div span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
.feature-card__caption strong { font-size: 12px; font-weight: 400; letter-spacing: .05em; }
.feature-card__number { color: var(--muted); font: italic 18px "Playfair Display", serif; }

/* Gallery ảnh phòng chỉ xuất hiện trên thiết bị di động. */
.mobile-stays { display: none; }

.footer { gap: 22px; color: var(--muted); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.footer__line { flex: 1; height: 1px; background: var(--line); }
.footer a { transition: color .25s ease; }
.footer a:hover { color: var(--gold); }

.scroll-hint { position: absolute; right: 18px; bottom: 28px; width: 1px; height: 55px; overflow: hidden; background: rgba(255,255,255,.15); }
.scroll-hint span { display: block; width: 1px; height: 22px; background: var(--gold); animation: scroll 2s ease-in-out infinite; }

.reveal { opacity: 0; transform: translateY(18px); }
body.loaded .reveal { opacity: 1; transform: none; transition: opacity .85s ease, transform .85s ease; }
body.loaded .hero__content .reveal:nth-child(1) { transition-delay: .15s; }
body.loaded .hero__content .reveal:nth-child(2) { transition-delay: .32s; }
body.loaded .intro .reveal:nth-child(2) { transition-delay: .22s; }
body.loaded .intro .reveal:nth-child(3) { transition-delay: .35s; }
body.loaded .intro .reveal:nth-child(4) { transition-delay: .48s; }

@keyframes slowZoom { to { transform: scale(1.045); } }
@keyframes scroll { 0% { transform: translateY(-22px); } 50%, 100% { transform: translateY(55px); } }

@media (max-width: 820px) {
  .hero { min-height: auto; padding: 28px 24px 24px; }
  .hero__shade { background: linear-gradient(90deg, rgba(7,13,9,.94), rgba(7,13,9,.64)), linear-gradient(0deg, rgba(6,11,8,.9), transparent 55%); }
  .hero__content { grid-template-columns: 1fr; gap: 55px; padding: 100px 0 70px; }
  .intro { max-width: 610px; }
  h1 { font-size: clamp(72px, 17vw, 116px); }
  .feature-card { display: grid; grid-template-columns: minmax(0, 1fr) 140px; gap: 18px; width: min(520px, 100%); margin-left: auto; }
  .feature-card__image { height: 320px; }
  .feature-card__caption { padding: 0; flex-direction: column; align-items: flex-start; justify-content: flex-end; }
  .footer { flex-wrap: wrap; }
  .footer__line { order: 2; flex-basis: 100%; }
}

@media (max-width: 520px) {
  .hero { padding: 24px 0 26px; overflow: hidden; }
  .nav { padding-inline: 20px; }
  .nav__contact span { display: none; }
  .hero__background { height: 790px; bottom: auto; background-position: 58% center; }
  .hero__shade { height: 790px; bottom: auto; background: linear-gradient(180deg, rgba(7,13,9,.5) 0%, rgba(7,13,9,.83) 45%, #0e1511 100%); }
  .hero__content { display: block; width: 100%; padding: 76px 0 58px; }
  .intro { padding-inline: 20px; }
  .eyebrow { max-width: 260px; margin-bottom: 19px; font-size: 9px; line-height: 1.5; }
  h1 { font-size: clamp(65px, 20.5vw, 90px); line-height: .78; }
  h1 em { left: 18px; }
  .intro__text { margin-block: 34px 28px; font-size: 14px; line-height: 1.7; }
  .countdown { justify-content: space-between; gap: 8px; }
  .countdown i { height: 29px; }
  .countdown__item { min-width: 42px; }

  .feature-card { display: none; }
  .mobile-stays { display: block; margin-top: 96px; }
  .mobile-stays__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 20px 22px; }
  .mobile-stays__heading > div > span { display: block; margin-bottom: 7px; color: var(--gold); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; }
  .mobile-stays h2 { font: 500 clamp(29px, 8.5vw, 38px)/1.05 "Playfair Display", serif; letter-spacing: -.025em; }
  .mobile-stays h2 em { color: var(--gold); font-weight: 500; }
  .mobile-stays__count { flex: none; padding-bottom: 4px; color: var(--muted); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }
  .mobile-stays__track { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 13px; padding: 0 20px 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-inline: contain; }
  .mobile-stays__track::-webkit-scrollbar { display: none; }
  .stay-card { position: relative; height: min(111vw, 470px); overflow: hidden; scroll-snap-align: start; background: #1d251f; }
  .stay-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(6,10,7,.78)); pointer-events: none; }
  .stay-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
  .stay-card:nth-child(1) img { object-position: 58% center; }
  .stay-card:nth-child(2) img { object-position: 60% center; }
  .stay-card:nth-child(3) img { object-position: 58% center; }
  .stay-card figcaption { position: absolute; z-index: 1; right: 18px; bottom: 18px; left: 18px; }
  .stay-card figcaption span { display: block; margin-bottom: 5px; color: rgba(255,255,255,.68); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; }
  .stay-card figcaption strong { font: 500 25px "Playfair Display", serif; }
  .mobile-stays__hint { display: flex; align-items: center; gap: 9px; padding: 11px 20px 0; color: var(--muted); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; }
  .mobile-stays__hint span { width: 30px; height: 1px; background: var(--gold); }

  .footer { gap: 12px 18px; margin: 64px 20px 0; line-height: 1.5; }
  .footer p { width: 100%; }
  .scroll-hint { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
