/* Apex 3D layer v2 (2026-11-05): layered team banner, WebGL gold silk, depth cards, 3D type, spotlight. */
:root { --ax-gold: #c7a66a; --ax-gold-hi: #f1d79b; --ax-navy: #03101a; --ax-ease: cubic-bezier(.22,1,.36,1); }

/* ================= HERO ================= */
.ax-hero.dh-hero {
  height: auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column;
  background: radial-gradient(120% 80% at 50% 0%, #0f3150 0%, #061827 45%, var(--ax-navy) 100%);
  overflow: hidden;
  isolation: isolate;
}
.ax-hero.dh-hero::before { display: none; }
.ax-hero .dh-hero__overlay { display: none !important; }

.ax-hero .ax-hero__stage {
  position: relative !important;
  inset: auto !important;
  height: auto !important;
  aspect-ratio: auto !important;
  padding: clamp(26px, 3.4vw, 52px) clamp(16px, 4vw, 64px) 0;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  transform: none !important;
  animation: none !important;
  perspective: 1400px;
  contain: none !important;
}
.ax-hero__field {
  position: absolute;
  inset: -10% 0 -40%;
  width: 100%;
  height: 150%;
  pointer-events: none;
  z-index: 0;
}

.ax-hero__banner {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 30%; --px: 0; --py: 0;
  position: relative;
  z-index: 1;
  width: min(1240px, 100%, calc((100svh - var(--dh-hero-offset, 96px) - 150px) * 1.7758));
  min-width: min(100%, 680px);
  aspect-ratio: 1671 / 941;
  margin: 0 auto;
  border-radius: 20px;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .9s var(--ax-ease);
}
.ax-hero__banner.ax-on { transition: transform .15s linear; }
/* clipped plate (bg + text) */
.ax-l {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
  translate: calc(var(--px) * var(--d) * 1px) calc(var(--py) * var(--d) * 1px);
  transition: translate .9s var(--ax-ease);
}
.ax-hero__banner.ax-on .ax-l { transition: translate .15s linear; }
.ax-l--bg     { --d: -7; scale: 1.03; clip-path: inset(1.4% round 18px); }
.ax-l--shade  { --d: 4;  border-radius: 20px; background: radial-gradient(60% 70% at 66% 55%, rgba(3,16,26,.55), transparent 70%); }
.ax-l--text   { --d: 10; filter: drop-shadow(0 8px 18px rgba(0,0,0,.55)); }
.ax-l--people { --d: 22; scale: 1.02; transform-origin: 62% 100%; filter: drop-shadow(0 22px 30px rgba(0,0,0,.55)) drop-shadow(0 0 24px rgba(241,215,155,.12)); }
/* plate clip: wrap the bg so its scale stays inside rounded frame */
.ax-hero__banner { overflow: visible; }
.ax-hero__banner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: #061827;
  z-index: -1;
  box-shadow: 0 0 0 1px rgba(241,215,155,.4), 0 50px 100px -30px rgba(0,0,0,.9), 0 0 120px -20px rgba(199,166,106,.4);
}
.ax-hero__frame {
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  pointer-events: none;
  padding: 1px;
  background: conic-gradient(from var(--ax-a, 0deg), transparent 0 20%, var(--ax-gold-hi) 28%, transparent 36% 70%, var(--ax-gold) 78%, transparent 86%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: ax-spin 7s linear infinite;
  opacity: .9;
}
@property --ax-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes ax-spin { to { --ax-a: 360deg; } }
.ax-hero__glare {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  pointer-events: none;
  background: radial-gradient(700px circle at var(--gx) var(--gy), rgba(255,240,205,.22), transparent 45%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .5s;
}
.ax-hero__banner.ax-on .ax-hero__glare { opacity: 1; }

/* entrance choreography */
.ax-hero__banner { animation: ax-banner-in 1.4s var(--ax-ease) both; }
.ax-l--bg     { animation: ax-bg-in 2.2s var(--ax-ease) both; }
.ax-l--text   { animation: ax-text-in 1.2s .55s var(--ax-ease) both; }
.ax-l--people { animation: ax-people-in 1.5s .3s var(--ax-ease) both; }
@keyframes ax-banner-in { from { opacity: 0; transform: translateY(60px) rotateX(18deg) scale(.94); } }
@keyframes ax-bg-in     { from { scale: 1.2; filter: blur(8px) brightness(.4); } }
@keyframes ax-text-in   { from { opacity: 0; translate: -60px 0; filter: blur(10px); } }
@keyframes ax-people-in { from { opacity: 0; translate: 0 90px; scale: 1.12; filter: blur(6px); } }

/* copy strip under the banner (desktop) */
.ax-hero .dh-hero__inner {
  position: relative !important;
  z-index: 2;
  height: auto !important;
  min-height: 0 !important;
  display: block !important;
  padding-block: clamp(30px, 3.4vw, 46px) 100px !important;
}
.ax-hero .dh-hero__copy {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 40px;
  align-items: center;
  text-shadow: none;
}
.ax-hero .dh-hero__copy > * { grid-column: 1; animation-delay: 1s !important; }
.ax-hero .dh-hero__slogan { display: none !important; }
.ax-hero .dh-eyebrow { margin: 0 0 8px !important; }
.ax-hero h1 { max-width: none !important; font-size: clamp(30px, 2.7vw, 42px) !important; }
.ax-hero .dh-hero__lead { max-width: 640px !important; margin-top: 10px !important; }
.ax-hero .dh-actions {
  grid-column: 2 !important;
  grid-row: 1 / span 4;
  margin: 0 !important;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ax-hero .dh-hero__caption-rail { z-index: 3; }

@media (max-width: 1000px) {
  .ax-hero .dh-hero__copy { grid-template-columns: 1fr; }
  .ax-hero .dh-actions { grid-column: 1 !important; grid-row: auto; justify-content: flex-start; margin-top: 18px !important; }
}
@media (max-width: 760px) {
  .ax-hero .ax-hero__stage { padding: 16px 12px 4px; perspective: 900px; }
  .ax-hero__banner { width: 100%; min-width: 0; border-radius: 12px; }
  .ax-l--shade, .ax-hero__banner::before, .ax-hero__glare { border-radius: 12px; }
  .ax-hero__frame { border-radius: 13px; }
  .ax-hero .dh-hero__mobile-copy { background: transparent !important; padding-top: 22px; }
  .ax-hero .dh-hero__mobile-slogan { display: none; }
  .ax-hero .dh-hero__inner { display: none !important; }
}

/* ================= 3D TYPE ================= */
.ax-split { perspective: 900px; }
.ax-split .ax-w { display: inline-block; transform-origin: 50% 100% -30px; transform-style: preserve-3d; }
.ax-split.ax-pending .ax-w { opacity: 0; transform: translateY(.6em) rotateX(-95deg); filter: blur(6px); }
.ax-split.ax-in .ax-w {
  opacity: 1; transform: none; filter: none;
  transition: opacity .9s var(--ax-ease), transform 1.1s var(--ax-ease), filter .9s var(--ax-ease);
  transition-delay: calc(var(--i) * 55ms);
}
/* gold foil sweep on italic accents */
.dh-section h2 em, .ax-hero h1 em {
  background: linear-gradient(100deg, #b38b45 0%, #c7a66a 30%, #fff1c9 45%, #c7a66a 60%, #9a7435 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent !important;
  animation: ax-foil 6s ease-in-out infinite;
}
.ax-split.ax-pending em, .ax-split.ax-in em { -webkit-text-fill-color: transparent; }
@keyframes ax-foil { 0%,100% { background-position: 100% 0; } 50% { background-position: 0 0; } }

/* ================= DEPTH CARDS ================= */
.ax-tilt {
  --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%; --px: 0; --py: 0;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform .8s var(--ax-ease), box-shadow .8s var(--ax-ease);
}
.ax-tilt.ax-on {
  transition: transform .12s linear, box-shadow .4s;
  box-shadow: 0 40px 70px -34px rgba(3,16,26,.6), 0 0 0 1px rgba(199,166,106,.5), 0 0 50px -12px rgba(199,166,106,.35);
  z-index: 3;
}
.ax-tilt img { transition: transform .8s var(--ax-ease), filter .8s; }
.ax-tilt.ax-on img {
  transition: transform .15s linear, filter .4s;
  transform: scale(1.09) translate(calc(var(--px) * -10px), calc(var(--py) * -10px));
  filter: saturate(1.08) contrast(1.04);
}
.ax-tilt.ax-on :is(h3, strong, .dh-active-card__price, .dh-hot-card__headline) {
  transform: translateZ(36px);
  transition: transform .5s var(--ax-ease);
}
.ax-tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(460px circle at var(--gx) var(--gy), rgba(255,236,190,.26), transparent 48%),
    linear-gradient(115deg, transparent 40%, rgba(255,240,210,.14) 50%, transparent 60%) calc(var(--gx) * 1) 0 / 250% 100%;
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity .5s;
  z-index: 6;
}
.ax-tilt.ax-on::after { opacity: 1; }

/* ================= SCROLL ================= */
.ax-reveal {
  opacity: 0;
  transform: perspective(1200px) translateY(70px) rotateX(18deg) scale(.96);
  transition: opacity 1s var(--ax-ease), transform 1.2s var(--ax-ease);
  transition-delay: var(--ax-d, 0ms);
}
.ax-reveal.ax-in { opacity: 1; transform: none; }
.ax-reveal.ax-in.ax-tilt { transition: transform .8s var(--ax-ease), box-shadow .8s, opacity 1s; }
.ax-parallax { will-change: transform; }

/* section dust overlay */
.ax-dust { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; mix-blend-mode: screen; }

/* gold scroll progress */
.ax-progress {
  position: fixed; z-index: 9999; top: 0; left: 0; height: 3px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, #8a6a2e, var(--ax-gold-hi), var(--ax-gold));
  box-shadow: 0 0 14px rgba(241,215,155,.7);
  pointer-events: none;
}
/* cursor spotlight */
.ax-cursor {
  position: fixed; z-index: 9998; left: 0; top: 0; width: 420px; height: 420px;
  margin: -210px 0 0 -210px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(241,215,155,.13), rgba(199,166,106,.05) 35%, transparent 65%);
  mix-blend-mode: screen; opacity: 0; transition: opacity .6s;
}
.ax-cursor.on { opacity: 1; }
.ax-cursor-dot {
  position: fixed; z-index: 9999; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(241,215,155,.7); border-radius: 50%; pointer-events: none;
  transition: width .35s var(--ax-ease), height .35s var(--ax-ease), margin .35s var(--ax-ease), background .35s, opacity .4s;
  opacity: 0;
}
.ax-cursor-dot.on { opacity: 1; }
.ax-cursor-dot.big { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: rgba(199,166,106,.12); }
/* magnetic buttons */
.ax-mag { transition: transform .5s var(--ax-ease); }

@media (prefers-reduced-motion: reduce) {
  .ax-hero__banner, .ax-l, .ax-hero__frame, .dh-section h2 em, .ax-hero h1 em { animation: none !important; }
  .ax-tilt, .ax-reveal { transform: none !important; opacity: 1 !important; }
  .ax-split .ax-w { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* 2026-11-25: hero banner text layer follows the EN/VI toggle (.dh-site.is-vi) */
.ax-hero__banner .ax-txt-vi { display: none; }
.dh-site.is-vi .ax-hero__banner .ax-txt-en { display: none; }
.dh-site.is-vi .ax-hero__banner .ax-txt-vi { display: block; }
