/* ============================================================
   TODAY.GIFT — Main Stylesheet
   Palette: Cream + Charcoal + Cobalt accent
   Style: Editorial luxury, Terrana-inspired
   ============================================================ */

/* ============================================================
   0. RESET + ROOT VARIABLES
   ============================================================ */

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

:root {
  /* ── Palette ── */
  --cream:        #F2EDE4;
  --cream-dark:   #E8E1D6;
  --charcoal:     #1A1A1A;
  --charcoal-mid: #2E2E2E;
  --charcoal-soft:#4A4A4A;
  --cobalt:       #0037FF;
  --cobalt-dark:  #0028CC;
  --cobalt-rgb:   0, 55, 255;
  --white:        #FFFFFF;
  --muted:        #8A8278;

  /* ── Semantic ── */
  --bg:           var(--cream);
  --bg-dark:      var(--charcoal);
  --text:         var(--charcoal);
  --text-inv:     var(--cream);
  --accent:       var(--cobalt);
  --border:       rgba(26,26,26,0.10);
  --border-inv:   rgba(242,237,228,0.15);

  /* ── Typography ── */
  --fh: 'Cormorant Garant', 'Playfair Display', Georgia, serif;
  --fb: 'Inter', system-ui, sans-serif;

  /* ── Spacing ── */
  --max-w:  1320px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --sec:    clamp(5rem, 8vw, 9rem);
  --sp-xl:  clamp(3rem, 5vw, 5rem);
  --sp-l:   clamp(1.5rem, 3vw, 3rem);
  --sp-m:   1.5rem;
  --sp-s:   0.75rem;

  /* ── Radii ── */
  --r-s: 4px;
  --r-m: 8px;
  --r-l: 16px;

  /* ── Animation ── */
  --fast:     160ms;
  --mid:      300ms;
  --slow:     500ms;
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }
[id] { scroll-margin-top: 84px; } /* fixed nav 64px + buffer, tránh che section khi click anchor */

body {
  font-family: var(--fb);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* chặn horizontal scroll do Core Swiper 100vw full-bleed */
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ============================================================
   1. GLOBAL UTILITIES
   ============================================================ */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sec-pad { padding: var(--sec) var(--gutter); }

/* Eyebrow — small uppercase label */
.eyebrow {
  font-family: var(--fb);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.eyebrow-accent { color: var(--cobalt); }

/* Display headline */
.sec-title {
  font-family: var(--fh);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
.sec-title em { font-style: italic; }

.sec-sub {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--charcoal-soft);
  max-width: 52ch;
}

.sec-hdr { margin-bottom: var(--sp-l); }

/* Divider */
.divider {
  width: 40px; height: 1px;
  background: var(--charcoal);
  margin-bottom: 1.5rem;
}
.divider-inv { background: var(--cream-dark); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--fb);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  border-radius: 0;
  transition: all var(--fast) var(--ease);
}

.btn-dark {
  background: var(--charcoal);
  color: var(--cream);
  padding: 1rem 2.25rem;
}
.btn-dark:hover { background: var(--charcoal-mid); }

.btn-cobalt {
  background: var(--cobalt);
  color: var(--white);
  padding: 1rem 2.25rem;
}
.btn-cobalt:hover { background: var(--cobalt-dark); }

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  padding: 0.9375rem 2.25rem;
  border: 1px solid var(--charcoal);
}
.btn-outline:hover {
  background: var(--charcoal);
  color: var(--cream);
}

.btn-outline-inv {
  background: transparent;
  color: var(--cream);
  padding: 0.9375rem 2.25rem;
  border: 1px solid rgba(242,237,228,0.4);
}
.btn-outline-inv:hover {
  background: rgba(242,237,228,0.1);
  border-color: var(--cream);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--fb);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  border-radius: 0;
  background: var(--cobalt);
  color: var(--white);
  padding: 1rem 2.25rem;
  transition: all var(--fast) var(--ease);
}
.btn-primary:hover { background: var(--cobalt-dark); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--fb);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
  background: transparent;
  color: var(--charcoal);
  padding: 0.9375rem 2.25rem;
  border: 1px solid var(--charcoal);
  transition: all var(--fast) var(--ease);
}
.btn-secondary:hover {
  background: var(--charcoal);
  color: var(--cream);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--slow) var(--ease-out),
              transform var(--slow) var(--ease-out);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ============================================================
   2. LANGUAGE SYSTEM (i18n)
   ============================================================ */

.vi { display: none; }
.en { display: inline; }
body.lang-vi .en { display: none; }
body.lang-vi .vi { display: inline; }
p.en { display: block; }
p.vi { display: none; }
body.lang-vi p.en { display: none; }
body.lang-vi p.vi { display: block; }

/* ============================================================
   3. NAV
   ============================================================ */

#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(242, 237, 228, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--mid) var(--ease);
}
#nav.scrolled { background: rgba(242, 237, 228, 0.98); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  height: 64px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

/* Logo — left */
.nav-logo { justify-self: start; }
.nav-logo img { height: 82px; width: auto; }
.nav-logo-text {
  font-family: var(--fb);
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}
.nav-logo-text span { color: var(--cobalt); }

/* Links — center */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  padding: 0.5rem 1rem;
  position: relative;
  transition: color var(--fast) var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 1rem; right: 1rem;
  height: 1px;
  background: var(--charcoal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--mid) var(--ease);
}
.nav-links a:hover { color: var(--charcoal); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Actions — right */
.nav-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  font-family: var(--fb);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
  cursor: pointer;
  transition: all var(--fast) var(--ease);
  border-radius: var(--r-s);
}
.lang-toggle:hover { border-color: var(--charcoal); color: var(--charcoal); }

.nav-cta {
  font-size: 0.72rem;
  padding: 0.625rem 1.375rem;
}

/* Burger */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger:focus { outline: none; }
.nav-burger:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; border-radius: var(--r-s); }
.nav-burger span {
  display: block;
  width: 20px; height: 1.5px;
  background: var(--charcoal);
  transition: transform var(--mid) var(--ease), opacity var(--fast) var(--ease);
}
.nav-burger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--border);
  background: rgba(242,237,228,0.98);
}
.nav-mobile.open { display: flex; }

.nav-mobile-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal-soft);
  padding: 1rem var(--gutter);
  border-bottom: 1px solid var(--border);
  transition: color var(--fast) var(--ease);
}
.nav-mobile-link:hover { color: var(--charcoal); }

.nav-mobile-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem var(--gutter) 1.5rem;
  flex-wrap: wrap;
}

/* ============================================================
   4. HERO — Centered Text + Floating Image Collage
   ============================================================ */

#hero {
  min-height: 100vh;
  background: var(--cream);
  padding-top: 64px; /* nav height */
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* Subtle grain texture overlay */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ── Hero Text Block ── */
.hero-text-block {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(2rem, 4vw, 3.5rem) var(--gutter) 0;
  max-width: 1100px;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  font-family: var(--fb);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cobalt);
  flex-shrink: 0;
}

.hero-h1 {
  font-family: var(--fh);
  font-size: clamp(2.8rem, 5.5vw, 5.25rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--charcoal);
  margin-bottom: 1rem;
}
.hero-h1 em {
  font-style: italic;
  color: var(--charcoal-soft);
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--charcoal-soft);
  max-width: 62ch;
  margin: 0 auto 1.75rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* ── Collage Container ── */
.hero-collage {
  position: relative;
  width: 100%;
  height: clamp(400px, 55vh, 620px);
  z-index: 1;
  flex-shrink: 0;
}


/* Radial glow behind collage — depth effect */
.hero-collage::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 70%; height: 80%;
  background: radial-gradient(ellipse at center,
    rgba(0,55,255,0.06) 0%,
    rgba(0,55,255,0.02) 40%,
    transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Float animation */
@keyframes float-up {
  0%   { transform: translateY(0px) rotate(var(--rot)); }
  50%  { transform: translateY(-14px) rotate(var(--rot)); }
  100% { transform: translateY(0px) rotate(var(--rot)); }
}

/* All collage images share base styles */
.collage-img {
  position: absolute;
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(26,26,26,0.10), 0 2px 8px rgba(26,26,26,0.06);
  animation: float-up 6s ease-in-out infinite;
  will-change: transform;
  transition: box-shadow var(--mid) var(--ease);
  cursor: default;
}
.collage-img:hover {
  box-shadow: 0 24px 56px rgba(26,26,26,0.18), 0 4px 16px rgba(26,26,26,0.08);
  z-index: 50 !important;
}
.collage-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--r-l);
  transition: transform var(--slow) var(--ease);
}
.collage-img:hover img {
  transform: scale(1.04);
}

/* Individual positions + sizes */
.ci-center {
  --rot: 0deg;
  width: clamp(180px, 20vw, 260px);
  aspect-ratio: 3/4;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  animation: float-up-center 6s ease-in-out infinite;
}
@keyframes float-up-center {
  0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
  50%       { transform: translate(-50%, -50%) translateY(-14px); }
}
.ci-top-left {
  --rot: -3deg;
  width: clamp(130px, 13vw, 190px);
  aspect-ratio: 4/5;
  left: 20%; top: 10%;
  animation-delay: -1.2s;
  z-index: 10;
}
.ci-top-right {
  --rot: 3deg;
  width: clamp(120px, 12vw, 175px);
  aspect-ratio: 3/4;
  right: 20%; top: 6%;
  animation-delay: -2.5s;
  z-index: 10;
}
.ci-bottom-right {
  --rot: -2deg;
  width: clamp(145px, 15vw, 225px);
  aspect-ratio: 4/5;
  right: 14%; bottom: 8%;
  animation-delay: -3.5s;
  z-index: 30;
}
.ci-far-right {
  --rot: 4deg;
  width: clamp(120px, 12vw, 180px);
  aspect-ratio: 3/4;
  right: 3%; top: 40%;
  z-index: 10;
  animation-delay: -4.8s;
  animation: float-up-far-right 6s ease-in-out infinite;
}
@keyframes float-up-far-right {
  0%, 100% { transform: translateY(-50%) rotate(4deg); }
  50%       { transform: translateY(calc(-50% - 14px)) rotate(4deg); }
}
.ci-bottom-left {
  --rot: 2deg;
  width: clamp(135px, 14vw, 205px);
  aspect-ratio: 4/5;
  left: 15%; bottom: 6%;
  animation-delay: -5.2s;
  z-index: 30;
}
.ci-far-left {
  --rot: -4deg;
  width: clamp(110px, 11vw, 170px);
  aspect-ratio: 3/4;
  left: 3%; top: 28%;
  animation-delay: -6s;
  z-index: 10;
}

/* Placeholder style */
.collage-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--cream-dark) 0%, #D4C8B4 100%);
  border-radius: var(--r-l);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.collage-placeholder span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(26,26,26,0.35);
}

/* ── Stats row ── */
.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem var(--gutter) 2.5rem;
  width: 100%;
}
.hero-stat {
  position: relative;
  text-align: center;
  padding: 0 clamp(2rem, 4vw, 3.5rem);
  border-right: 1px solid rgba(26,26,26,0.12);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-val {
  font-family: var(--fh);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.hero-stat-lbl {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  font-family: var(--fb);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.75rem;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cobalt);
  flex-shrink: 0;
}

.hero-h1 {
  font-family: var(--fh);
  font-size: clamp(3rem, 6.5vw, 6rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}
.hero-h1 em {
  font-style: italic;
  color: var(--charcoal-soft);
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--charcoal-soft);
  max-width: 50ch;
  margin: 0 auto 2rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* ── Collage Container ── */
.hero-collage {
  position: relative;
  width: 100%;
  height: clamp(420px, 58vh, 640px);
  z-index: 1;
  flex-shrink: 0;
}

/* Float animation */
@keyframes float-up {
  0%   { transform: translateY(0px) rotate(var(--rot)); }
  50%  { transform: translateY(-14px) rotate(var(--rot)); }
  100% { transform: translateY(0px) rotate(var(--rot)); }
}

/* All collage images share base styles */
.collage-img {
  position: absolute;
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(26,26,26,0.14);
  animation: float-up 6s ease-in-out infinite;
  will-change: transform;
  transition: box-shadow var(--mid) var(--ease);
}
.collage-img:hover {
  box-shadow: 0 24px 64px rgba(26,26,26,0.22);
  z-index: 50 !important;
}
.collage-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--r-l);
}

/* Individual positions + sizes */
/* Center — main hero image */
.ci-center {
  --rot: 0deg;
  width: clamp(200px, 22vw, 280px);
  aspect-ratio: 3/4;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) rotate(0deg);
  z-index: 20;
  animation: float-up-center 6s ease-in-out infinite;
}
@keyframes float-up-center {
  0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
  50%       { transform: translate(-50%, -50%) translateY(-14px); }
}

.ci-top-left {
  --rot: -3deg;
  width: clamp(140px, 14vw, 200px);
  aspect-ratio: 4/5;
  left: 20%; top: 12%;
  animation-delay: -1.2s;
  z-index: 10;
}
.ci-top-right {
  --rot: 3deg;
  width: clamp(130px, 13vw, 185px);
  aspect-ratio: 3/4;
  right: 20%; top: 8%;
  animation-delay: -2.5s;
  z-index: 10;
}
.ci-bottom-right {
  --rot: -2deg;
  width: clamp(155px, 17vw, 240px);
  aspect-ratio: 4/5;
  right: 14%; bottom: 10%;
  animation-delay: -3.5s;
  z-index: 30;
}
.ci-far-right {
  --rot: 4deg;
  width: clamp(130px, 13vw, 195px);
  aspect-ratio: 3/4;
  right: 3%; top: 42%;
  transform: translateY(-50%) rotate(4deg);
  animation-delay: -4.8s;
  z-index: 10;
  animation: float-up-far-right 6s ease-in-out infinite;
}
@keyframes float-up-far-right {
  0%, 100% { transform: translateY(-50%) rotate(4deg) translateY(0); }
  50%       { transform: translateY(calc(-50% - 14px)) rotate(4deg); }
}
.ci-bottom-left {
  --rot: 2deg;
  width: clamp(145px, 15vw, 215px);
  aspect-ratio: 4/5;
  left: 15%; bottom: 8%;
  animation-delay: -5.2s;
  z-index: 30;
}
.ci-far-left {
  --rot: -4deg;
  width: clamp(120px, 12vw, 180px);
  aspect-ratio: 3/4;
  left: 3%; top: 30%;
  animation-delay: -6s;
  z-index: 10;
}

/* Placeholder style (before real images added) */
.collage-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--cream-dark) 0%, #D4C8B4 100%);
  border-radius: var(--r-l);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.collage-placeholder span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(26,26,26,0.35);
}

/* ── Stats row ── */
.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 2rem var(--gutter) 3rem;
  width: 100%;
}
.hero-stat {
  text-align: center;
  padding: 0 clamp(2rem, 4vw, 4rem);
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-val {
  font-family: var(--fh);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.hero-stat-lbl {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   5. CLIENT LOGOS — Marquee strip
   ============================================================ */

#clients {
  padding: 0;
  background: var(--cream);
  border-top: 1px solid rgba(242,237,228,0.08);
  overflow: hidden;
}

.clients-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.clients-label-side {
  padding: 1.375rem 2rem;
  border-right: 1px solid rgba(26,26,26,0.1);
  white-space: nowrap;
  flex-shrink: 0;
}
.clients-label-side p {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.logos-track-wrap {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.logos-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.logos-track:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.375rem clamp(1.5rem, 2.5vw, 2.5rem);
  border-right: 1px solid rgba(26,26,26,0.08);
  flex-shrink: 0;
}

.logo-item img {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.55;
  filter: grayscale(1);
  transition: opacity var(--mid) var(--ease), filter var(--mid) var(--ease);
  user-select: none;
  pointer-events: none;
}
.logos-track:hover .logo-item img {
  opacity: 0.85;
  filter: grayscale(0);
}

/* ============================================================
   6. SERVICES
   ============================================================ */

#services {
  padding: var(--sec) var(--gutter);
  background: var(--white);
}
#services .eyebrow {
  font-size: clamp(2rem, 4vw, 3.5rem);
}
.services-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

/* ── Section header ── */
.services-hdr {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: var(--sp-l);
  flex-wrap: wrap;
}
.services-hdr-left { flex: 1; min-width: 260px; }
.services-sub { max-width: 38ch; text-align: right; }

@media (max-width: 768px) {
  .services-sub { text-align: left; max-width: 100%; }
}

/* ── Tab nav ── */
.services-tabs {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.tab-btn {
  position: relative;
  background: none;
  border: none;
  padding: 0.875rem 1.75rem;
  font-family: var(--fb);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--fast) var(--ease);
  white-space: nowrap;
}
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 2px;
  background: var(--charcoal);
  transform: scaleX(0);
  transition: transform var(--mid) var(--ease);
}
.tab-btn:hover { color: var(--charcoal); }
.tab-btn.active { color: var(--charcoal); }
.tab-btn.active::after { transform: scaleX(1); }

.tab-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cobalt);
  margin-right: 0.5rem;
  opacity: 0;
  transition: opacity var(--fast) var(--ease);
  vertical-align: middle;
}
.tab-btn.active .tab-dot { opacity: 1; }

/* ── Product grid ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2vw, 2rem);
  margin-bottom: 2.5rem;
}

/* ── Product card ── */
.product-card {
  background: var(--cream);
  border-radius: var(--r-l);
  overflow: hidden;
  transition: transform var(--mid) var(--ease),
              box-shadow var(--mid) var(--ease);
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(26,26,26,0.10);
}

.product-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--cream-dark);
  position: relative;
}
.product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--slow) var(--ease);
}
.product-card:hover .product-img img {
  transform: scale(1.05);
}

/* Placeholder image */
.product-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--cream-dark) 0%, #CFC4B0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img-placeholder svg { opacity: 0.2; }

/* Tag badge */
.product-tag {
  position: absolute;
  top: 0.875rem; left: 0.875rem;
  background: var(--charcoal);
  color: var(--cream);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.625rem;
  border-radius: 2px;
}
.product-tag.tag-vip    { background: var(--cobalt); }
.product-tag.tag-new    { background: #2A9D8F; }
.product-tag.tag-trend  { background: var(--charcoal-soft); }

/* Card body */
.product-body {
  padding: 1.125rem 1.25rem 1.25rem;
}
.product-name {
  font-family: var(--fh);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}
.product-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.875rem;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.product-price {
  font-family: var(--fb);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--charcoal);
}
.product-price span {
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--muted);
  margin-right: 0.2rem;
}
.product-cta {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cobalt);
  border: 1px solid rgba(var(--cobalt-rgb),0.3);
  padding: 0.375rem 0.75rem;
  border-radius: 2px;
  transition: all var(--fast) var(--ease);
  white-space: nowrap;
  flex-shrink: 0;
}
.product-cta:hover {
  background: var(--cobalt);
  color: var(--white);
  border-color: var(--cobalt);
}

/* Hidden cards (load more) */
.product-card.hidden { display: none; }

/* Load more */
.services-load-more {
  text-align: center;
  padding-top: 0.5rem;
}
.btn-load-more {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--charcoal-soft);
  font-family: var(--fb);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.875rem 2rem;
  cursor: pointer;
  transition: all var(--mid) var(--ease);
  border-radius: 2px;
}
.btn-load-more:hover {
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.btn-load-more.all-shown { display: none; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .services-tabs {
    overflow-x: auto;
    -webkit-mask-image: linear-gradient(to right, black 0%, black 85%, transparent 100%);
    mask-image: linear-gradient(to right, black 0%, black 85%, transparent 100%);
  }
}
.services-mobile-stack { display: none; }

@media (max-width: 560px) {
  .services-tabbed-view { display: none; }
  .services-mobile-stack { display: flex; flex-direction: column; gap: 2rem; }

  .service-block-title {
    font-family: var(--fh);
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 0.875rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
  }
  .products-grid-mobile {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.25rem 0 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  .products-grid-mobile .product-card { flex: 0 0 78%; max-width: 280px; }
}

/* ============================================================
   7. PORTFOLIO / COMPANY PROFILE
   ============================================================ */

#portfolio {
  padding: var(--sec) var(--gutter);
  background: var(--cream);
}

#portfolio .eyebrow {
  font-size: clamp(2rem, 4vw, 3.5rem);
}
.portfolio-inner { max-width: var(--max-w); margin: 0 auto; }

/* Download button in header */
.profile-dl-btn {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Preview layout */
.profile-previews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}

/* Main large preview */
.profile-preview-main {
  position: relative;
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(26,26,26,0.12);
  aspect-ratio: 16/9;
  background: var(--cream-dark);
  cursor: pointer;
  transition: transform var(--mid) var(--ease), box-shadow var(--mid) var(--ease);
}
.profile-preview-main:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 56px rgba(26,26,26,0.18);
}
.profile-preview-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.profile-preview-main.pp-placeholder {
  background: linear-gradient(135deg, var(--cream-dark) 0%, #C8BAA2 100%);
}

.pp-badge {
  position: absolute;
  bottom: 1rem; left: 1rem;
  background: rgba(26,26,26,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(242,237,228,0.85);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.875rem;
  border-radius: 2px;
}

/* Right stack: 2 thumbs + CTA card */
.profile-preview-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
}
.profile-thumbs-row { display: contents; }

.profile-preview-thumb {
  aspect-ratio: 16/9;
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--cream-dark);
  box-shadow: 0 4px 20px rgba(26,26,26,0.08);
  transition: transform var(--mid) var(--ease);
  cursor: pointer;
}
.profile-preview-thumb:hover { transform: translateY(-3px); }
.profile-preview-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.profile-preview-thumb.pp-placeholder {
  background: linear-gradient(135deg, var(--cream-dark) 0%, #C8BAA2 100%);
}

/* ── CTA card ── */
.profile-cta-card {
  border-radius: var(--r-m);
  padding: clamp(1rem, 1.5vw, 1.5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.875rem;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  /* ảnh nền — dùng preview_2 hoặc preview_1 tuỳ bạn thích trang nào */
  background-image: url('assets/images/profile/preview_5.png');
  background-size: cover;
  background-position: center top;
  /* fallback nếu chưa có ảnh */
  background-color: var(--charcoal);
}

/* Gradient overlay: trong suốt trên → đặc dưới */
.profile-cta-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.25) 0%,
    rgba(10,10,10,0.70) 45%,
    rgba(10,10,10,0.95) 100%
  );
  border-radius: inherit;
  pointer-events: none;
}

/* Tất cả content nằm trên overlay */
.pcc-top,
.pcc-label,
.pcc-btn { position: relative; z-index: 1; }

/* Top: big number */
.pcc-top {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  line-height: 1;
}
.pcc-count {
  font-family: var(--fh);
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1;
  text-shadow: 0 0 24px rgba(255,255,255,0.25);
  letter-spacing: -0.02em;
}
.pcc-pages-label {
  font-family: var(--fb);
  font-size: 0.75rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.9);
}

/* Sub-label — sáng hơn vì nền tối hơn */
.pcc-label {
  font-family: var(--fb);
  font-size: clamp(0.7rem, 1.1vw, 0.8125rem);
  font-weight: 400;
  color: rgba(242,237,228,0.8);
  line-height: 1.55;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Download button */
.pcc-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  background: var(--cobalt);
  color: var(--white);
  border-radius: var(--r-s);
  padding: 0.6rem 0.875rem;
  text-decoration: none;
  font-family: var(--fb);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--fast) var(--ease), transform var(--fast) var(--ease);
  animation: pccPulse 3s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}
.pcc-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 50%; height: 100%;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.22) 50%,
    transparent 100%
  );
  animation: shimmerSweep 4s ease-in-out infinite;
  pointer-events: none;
}
.pcc-btn:hover {
  background: var(--cobalt-dark);
  transform: translateY(-1px);
  animation: none;
}
.pcc-btn:hover .pcc-btn-icon svg {
  animation: arrowBounce 0.6s var(--ease) infinite;
}
.pcc-btn-text { flex: 1; }
.pcc-btn-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(3px); }
}
@keyframes pccPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,55,255,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(0,55,255,0); }
}
@keyframes shimmerSweep {
  0%        { left: -75%; opacity: 1; }
  60%, 100% { left: 125%; opacity: 1; }
}
.pcc-btn:hover {
  background: var(--cobalt-dark);
  transform: translateY(-1px);
  animation: none;
}
.pcc-btn:hover .pcc-btn-icon svg {
  animation: arrowBounce 0.6s var(--ease) infinite;
}
.pcc-btn-text { flex: 1; }
.pcc-btn-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(3px); }
}
@keyframes pccPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,55,255,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(0,55,255,0); }
}

/* Responsive */
@media (max-width: 900px) {
  .profile-previews { grid-template-columns: 1fr; }
  .profile-preview-stack { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .profile-preview-stack { grid-template-columns: 1fr; }
  .profile-thumbs-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }
  .profile-thumbs-row .profile-preview-thumb { flex: 0 0 42%; }
  .profile-thumbs-row .profile-cta-card { flex: 0 0 62%; aspect-ratio: auto; }
}

/* ============================================================
   8. PROCESS
   ============================================================ */

#process {
  padding: var(--sec) var(--gutter);
  background: var(--charcoal);
}
#process .eyebrow {
  font-size: clamp(2rem, 4vw, 3.5rem);
}
.process-inner { max-width: var(--max-w); margin: 0 auto; }

#process .eyebrow { color: rgba(242,237,228,1.25); }
#process .sec-title { color: var(--cream); }

/* ── Accordion grid ── */
.process-grid {
  display: flex;
  gap: 0.625rem;
  margin-top: var(--sp-l);
  min-height: 300px;
  align-items: stretch;
}

.process-step {
  flex: 1;
  border-radius: var(--r-l);
  background: #242424;
  border: 1px solid rgba(242,237,228,0.06);
  padding: 1.5rem 1.125rem;
  cursor: pointer;
  transition: flex-grow 0.65s cubic-bezier(0.4,0,0.2,1),
              background 0.4s ease,
              border-color 0.4s ease;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  user-select: none;
}
.process-step:hover:not(.active) {
  background: #2c2c2c;
  border-color: rgba(242,237,228,0.12);
}
.process-step.active {
  flex: 4;
  background: var(--cobalt);
  border-color: transparent;
}
/* ── Background photo layer ── */
.step-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}
.step-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.85) brightness(0.5) contrast(1.05);
  transform: scale(1.04);
  transition: filter 0.7s ease, transform 8s ease;
}
.step-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.25) 0%, rgba(26,26,26,0.82) 75%, rgba(26,26,26,0.92) 100%);
  transition: background 0.6s ease;
}
.process-step:hover:not(.active) .step-bg img {
  filter: grayscale(0.65) brightness(0.58) contrast(1.05);
  transform: scale(1.08);
}
.process-step.active .step-bg img {
  filter: grayscale(0.15) brightness(0.68) contrast(1.05);
  transform: scale(1.08);
}
.process-step.active .step-bg::after {
  background: linear-gradient(180deg, rgba(0,55,255,0.18) 0%, rgba(0,30,180,0.72) 70%, rgba(0,24,140,0.86) 100%);
}

/* Ghost number */
.step-num {
  position: absolute;
  top: 0.875rem;
  left: 1.125rem;
  z-index: 1;
  font-family: var(--fh);
  font-size: clamp(3.5rem, 6vw, 5.5rem);
  font-weight: 300;
  color: rgba(242,237,228,0.65);
  line-height: 1;
  transition: color 0.4s, font-size 0.5s cubic-bezier(0.4,0,0.2,1);
  pointer-events: none;
}
.process-step.active .step-num {
  color: rgba(255,255,255,1);
  font-size: clamp(5rem, 9vw, 8.5rem);
}

/* Content block */
.step-content {
  position: relative;
  z-index: 1;
}

.step-title {
  font-family: var(--fh);
  font-size: 0.9375rem;
  font-weight: 400;
  color: rgba(242,237,228,0.45);
  line-height: 1.35;
  transition: color 0.3s ease;
  display: -webkit-box;
  /* autoprefixer: ignore next */
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
.process-step.active .step-title {
  color: var(--white);
  font-size: clamp(1.125rem, 1.8vw, 1.375rem);
  display: block;        /* override -webkit-box */
  overflow: visible;
  margin-bottom: 0.625rem;
}

.step-desc {
  font-family: var(--fb);
  font-size: 0.8125rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.75);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin: 0;
  transition: opacity 0.35s 0.2s ease,
              max-height 0.5s 0.1s ease;
}
.process-step.active .step-desc {
  max-height: 160px;
  opacity: 1;
}

/* Progress bar */
.step-progress-bar {
  position: absolute;
  bottom: 0; left: 0;
  z-index: 1;
  height: 3px;
  width: 0%;
  background: rgba(255,255,255,0.45);
  border-radius: 0 3px 0 var(--r-l);
}

/* Responsive — dưới 900px: bỏ kiểu accordion, chuyển card cuộn ngang hiện full nội dung */
@media (max-width: 900px) {
  .process-grid {
    flex-direction: row;
    overflow-x: auto;
    min-height: unset;
    gap: 0.75rem;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }
  .process-step,
  .process-step.active {
    flex: 0 0 80%;
    max-width: 320px;
    min-height: 220px;
    padding: 1.25rem 1.25rem;
  }
  .step-num {
    position: static;
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    color: rgba(255,255,255,0.9);
  }
  .step-title {
    color: var(--white);
    font-size: 1.0625rem;
    display: block;
    overflow: visible;
    margin-bottom: 0.5rem;
  }
  .step-desc {
    max-height: none;
    opacity: 1;
  }
  .step-progress-bar { display: none; }
}

/* ============================================================
   9. WHY US — Phase 4
   ============================================================ */

.why-core {
  background: var(--cream);
  padding: var(--sec) var(--gutter);
  border-top: 1px solid var(--border);
  overflow: hidden;
}
#why-us .eyebrow {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: 0.05em;
}
.why-core-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 3vw, 3rem);
}

/* Header row */
.core-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.core-header .sec-title { margin-bottom: 0; }

/* Nav arrows */
.core-nav-btn {
  position: absolute;
  top: 40%;                    /* căn theo phần card, trên pagination */
  transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(26,26,26,0.15);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--fast), background var(--fast), border-color var(--fast);
}
.core-prev { left: calc(50% - 216px - 24px); }
.core-next { right: calc(50% - 216px - 24px); }
.core-nav-btn:hover {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--white);
}
.core-nav-btn.swiper-button-disabled {
  opacity: 0.3;
  pointer-events: none;
}
/* Wrapper cho buttons */
.core-carousel-wrap {
  position: relative;
}
/* Full-bleed swiper */
.core-swiper {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding: 2rem clamp(1.5rem, 5vw, 4rem) 4rem !important;
  overflow: visible !important;
}
/* Slide states — center lớn, 2 bên nhỏ mờ */
.core-swiper .swiper-slide {
  width: 360px;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
  transform: scale(0.8);
  opacity: 0.45;
}
.core-swiper .swiper-slide-active {
  transform: scale(1.08);
  opacity: 1;
}
.core-swiper .swiper-slide-prev,
.core-swiper .swiper-slide-next {
  transform: scale(0.88);
  opacity: 0.65;
}

/* Mobile/tablet: nav arrows dùng calc() cố định → âm/off-screen dưới ~768px container.
   Ẩn arrows, dùng swipe + pagination dots (đã có sẵn) thay thế. */
@media (max-width: 768px) {
  .core-nav-btn { display: none; }
  .core-swiper .swiper-slide { width: min(82vw, 320px); }
  .core-swiper .swiper-slide-active { transform: scale(1.0); }
}

#hero { min-height: auto; }

/* Cards */
.core-card {
  background: var(--white);
  border-radius: var(--r-l);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.4s var(--ease);
  box-shadow: 0 4px 20px rgba(26,26,26,0.06);
}
.core-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--cobalt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.swiper-slide-active .core-card {
  animation: floatShadow 3s ease-in-out infinite;
}
.swiper-slide-active .core-card::after {
  transform: scaleX(1);
}

@keyframes floatShadow {
  0%, 100% { box-shadow: 0 12px 40px rgba(26,26,26,0.12), 0 2px 12px rgba(0,55,255,0.06); }
  50%       { box-shadow: 0 22px 56px rgba(26,26,26,0.16), 0 6px 20px rgba(0,55,255,0.10); }
}

/* Card image */
.cc-img {
  width: 100%;
  height: 150px;
  min-height: 150px;
  background: linear-gradient(135deg, rgba(0,55,255,0.15) 0%, rgba(0,55,255,0.05) 100%);
  overflow: hidden;
  flex-shrink: 0;
  display: block;
  position: relative;
}
.cc-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

/* Card content */
.cc-num {
  font-family: var(--fh);
  font-size: 3.5rem;
  font-weight: 300;
  color: rgba(0,55,255,0.08);
  line-height: 1;
  padding: 1.25rem 1.5rem 0;
  transition: color 0.4s ease, font-weight 0.4s ease;
}
.swiper-slide-active .cc-num {
  color: rgba(0,55,255,0.9);
  font-weight: 400;
}
.cc-body {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding: 0.5rem 1.5rem 1.75rem;
}
.cc-title {
  font-family: var(--fh);
  font-size: 1.1875rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.3;
}
.cc-title em { font-style: italic; color: var(--cobalt); }
.cc-desc {
  font-size: 0.8125rem;
  color: var(--charcoal-soft);
  line-height: 1.75;
}

/* Pagination */
.core-pagination { bottom: 0.75rem !important; }
.core-pagination .swiper-pagination-bullet {
  background: var(--charcoal); opacity: 0.18;
  width: 6px; height: 6px;
}
.core-pagination .swiper-pagination-bullet-active {
  background: var(--cobalt); opacity: 1;
  width: 20px; border-radius: 3px;
}

/* Responsive */
@media (max-width: 900px) {
  .core-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

.why-brand { background: var(--charcoal); padding: var(--sec) var(--gutter); }
.why-brand-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem,6vw,6rem); align-items: center; }
.why-brand-left { display: flex; flex-direction: column; gap: 1.75rem; }
.wb-logo { font-family: var(--fh); font-size: clamp(2rem,4vw,3.5rem); font-weight: 300; color: var(--cream); letter-spacing: -0.02em; line-height: 1; }
.wb-dot { color: rgba(242,237,228,0.3); }
.wb-logo em { font-style: italic; color: rgba(242,237,228,0.5); }
.wb-tagline { font-size: clamp(0.875rem,1.4vw,1rem); color: rgba(242,237,228,0.5); line-height: 1.75; max-width: 340px; }
.why-brand-imgbox { border-radius: var(--r-l); overflow: hidden; aspect-ratio: 4/3; max-width: 380px; }
.why-brand-imgbox img { width: 100%; height: 100%; object-fit: cover; }
.why-brand-imgbox.wbi-placeholder { background: rgba(255,255,255,0.05); }
.why-brand-right { display: flex; flex-direction: column; gap: 2.5rem; }
.wb-statements { display: flex; flex-direction: column; }
.wb-stmt { font-family: var(--fh); font-size: clamp(1.0625rem,1.8vw,1.375rem); font-weight: 300; color: rgba(242,237,228,0.45); line-height: 1.4; padding: 1.25rem 0; border-bottom: 1px solid rgba(242,237,228,0.08); }
.wb-stmt:first-child { padding-top: 0; }
.wb-stmt:last-child { border-bottom: none; padding-bottom: 0; }
.wb-stmt em { font-style: italic; color: var(--cream); font-weight: 400; }
.wb-delivers-label { font-family: var(--fb); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(242,237,228,0.3); margin-bottom: 1.125rem; }
.wb-checklist { display: flex; flex-direction: column; gap: 0.75rem; }
.wb-checklist li { display: flex; align-items: flex-start; gap: 0.875rem; font-size: 0.875rem; color: rgba(242,237,228,0.65); line-height: 1.5; }
.wb-check { color: var(--cobalt); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

@media (max-width: 900px) {
  .core-header { flex-direction: column; align-items: flex-start; }
  .core-subtitle { text-align: left; max-width: 100%; }
  .why-brand-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   10. CONTACT — Phase 4
   ============================================================ */

#contact { background: var(--charcoal); padding: var(--sec) var(--gutter); border-top: 1px solid rgba(242,237,228,0.08); }
/* Contact — dark theme overrides */
#contact .eyebrow { color: var(--cream); font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: 0.05em; }
#contact .contact-title { color: var(--cream); }
#contact .contact-title em { color: var(--cobalt); }
#contact .ci-item { color: rgba(242,237,228,0.6); }
#contact .contact-form-wrap {
  background: var(--cream);
  border-color: transparent;
  box-shadow: 0 8px 48px rgba(0,0,0,0.3);
}
#contact .form-label { color: var(--charcoal-soft); }
#contact .form-input,
#contact .form-select,
#contact .form-textarea {
  background: rgba(26,26,26,0.06);
  border-color: rgba(26,26,26,0.12);
  color: var(--charcoal);
}
#contact .form-input::placeholder,
#contact .form-select::placeholder,
#contact .form-textarea::placeholder { color: var(--muted); }
#contact .form-input:focus,
#contact .form-select:focus,
#contact .form-textarea:focus {
  border-color: var(--cobalt);
  background: rgba(242,237,228,0.07);
}
#contact .form-select option { background: var(--charcoal-mid); color: var(--cream); }
.contact-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(3rem,6vw,7rem); align-items: start; }
.contact-left { position: sticky; top: 6rem; padding-top: 0.5rem; }
.contact-title { color: var(--charcoal); font-size: clamp(1.875rem,3.5vw,3rem); margin-bottom: 2.5rem; }
.contact-title em { color: var(--cobalt); }
.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.ci-item { display: flex; align-items: center; gap: 0.875rem; font-size: 0.875rem; color: var(--charcoal-soft); }
.ci-item svg { color: var(--cobalt); flex-shrink: 0; }
.contact-form-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-l); padding: clamp(1.5rem,3vw,2.5rem); display: flex; flex-direction: column; gap: 1.25rem; box-shadow: 0 4px 32px rgba(26,26,26,0.06); }
.form-row { display: flex; flex-direction: column; gap: 1.25rem; }
.form-row-2 { flex-direction: row; }
.form-row-2 .form-group { flex: 1; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { font-family: var(--fb); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.form-input { width: 100%; background: var(--cream); border: 1px solid rgba(26,26,26,0.14); border-radius: var(--r-s); padding: 0.75rem 1rem; font-family: var(--fb); font-size: 0.875rem; color: var(--charcoal); outline: none; transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); -webkit-appearance: none; appearance: none; }
.form-input::placeholder { color: var(--muted); opacity: 0.6; }
.form-input:focus { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(0,55,255,0.08); background: var(--white); }
.form-input option { background: var(--white); color: var(--charcoal); }
.form-select-wrap { position: relative; }
.form-select { padding-right: 2.25rem; cursor: pointer; }
.select-arrow { position: absolute; right: 0.875rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.form-textarea { resize: vertical; min-height: 110px; }
.contact-submit { width: 100%; justify-content: center; margin-top: 0.25rem; }
.contact-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.submit-loading { display: inline-flex; align-items: center; gap: 0.5rem; }
.spin { animation: formSpin 0.8s linear infinite; }
@keyframes formSpin { to { transform: rotate(360deg); } }
.form-success, .form-error { font-size: 0.825rem; text-align: center; border-radius: var(--r-s); padding: 0.75rem 1rem; }
.form-success { background: rgba(0,55,255,0.05); color: var(--cobalt); border: 1px solid rgba(0,55,255,0.15); }
.form-error { background: rgba(200,0,0,0.05); color: #C00; border: 1px solid rgba(200,0,0,0.15); }

@media (max-width: 900px) {
  .contact-inner { grid-template-columns: 1fr; }
  .contact-left { position: static; }
}

/* ============================================================
   11. FOOTER — Phase 5
   ============================================================ */

#footer {
  background: var(--charcoal);
  color: var(--cream);
  overflow: hidden;
}

/* ── Gallery Strip ── */
.ft-gallery {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid rgba(242,237,228,0.08);
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.ft-gallery-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: ft-marquee 36s linear infinite;
}

.ft-gallery:hover .ft-gallery-track {
  animation-play-state: paused;
}

@keyframes ft-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ft-card {
  width: clamp(140px, 14vw, 200px);
  aspect-ratio: 1 / 1;
  border-radius: var(--r-m);
  overflow: hidden;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease);
}

.ft-card:hover { opacity: 1; transform: scale(1.04); }

.ft-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Main Grid ── */
.ft-main-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 2rem 2rem;
}

.ft-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(242,237,228,0.1);
}

/* ── Brand Col ── */
.ft-logo { display: inline-block; margin-bottom: 1rem; }
.ft-logo img { height: 32px; width: auto; }
.ft-logo-text {
  font-family: var(--fh);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.02em;
}
.ft-logo-text span { color: var(--cobalt); }

.ft-tagline {
  font-family: var(--fb);
  font-size: 0.875rem;
  color: rgba(242,237,228,0.55);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 220px;
}

.ft-socials { display: flex; gap: 0.75rem; list-style: none; }

.ft-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(242,237,228,0.18);
  color: rgba(242,237,228,0.6);
  transition: color var(--fast) var(--ease), border-color var(--fast) var(--ease), background var(--fast) var(--ease);
}
.ft-social-link:hover {
  color: var(--cream);
  border-color: var(--cobalt);
  background: rgba(0,55,255,0.12);
}

/* ── Link Cols ── */
.ft-col-title {
  font-family: var(--fb);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(242,237,228,0.4);
  margin-bottom: 1.25rem;
}

.ft-links { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }

.ft-links a {
  font-family: var(--fb);
  font-size: 0.875rem;
  color: rgba(242,237,228,0.65);
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}
.ft-links a:hover { color: var(--cream); }

/* ── Contact Col ── */
.ft-contact-list { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }

.ft-contact-list li { display: flex; align-items: flex-start; gap: 0.6rem; }

.ft-contact-icon { color: var(--cobalt); flex-shrink: 0; margin-top: 1px; }

.ft-contact-list a,
.ft-contact-list span {
  font-family: var(--fb);
  font-size: 0.875rem;
  color: rgba(242,237,228,0.65);
  text-decoration: none;
  line-height: 1.5;
  transition: color var(--fast) var(--ease);
}
.ft-contact-list a:hover { color: var(--cream); }

/* ── Bottom Bar ── */
.ft-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  gap: 1rem;
}

.ft-copy {
  font-family: var(--fb);
  font-size: 0.8rem;
  color: rgba(242,237,228,0.35);
}

/* ============================================================
   12. RESPONSIVE — 1100px
   ============================================================ */

@media (max-width: 1100px) {
  .nav-inner { grid-template-columns: 1fr auto auto; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav-actions { gap: 0.75rem; }

  .ci-far-right { display: none; }
  .ci-far-left  { display: none; }
  .ci-top-left  { left: 10%; }
  .ci-top-right { right: 10%; }

  .clients-inner { grid-template-columns: 1fr; }
  .clients-label-side { border-right: none; border-bottom: 1px solid rgba(26,26,26,0.1); text-align: center; }

  /* Footer */
  .ft-main { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .ft-col--brand { grid-column: 1 / -1; }
  .ft-tagline { max-width: 360px; }
}

/* ============================================================
   13. RESPONSIVE — 768px
   ============================================================ */

@media (max-width: 768px) {
  :root { --sec: clamp(3rem, 6vw, 5rem); }

  .hero-h1 { font-size: clamp(2.5rem, 8vw, 3.5rem); }
  .hero-collage { height: clamp(300px, 48vw, 400px); }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 320px; justify-content: center; }

  .ci-top-left  { display: none; }
  .ci-top-right { display: none; }
  .ci-bottom-right { right: 6%; }
  .ci-bottom-left  { left: 6%; }

  .hero-stats { flex-wrap: wrap; }
  .hero-stat { padding: 1rem clamp(1rem, 3vw, 2rem); }

 /* Footer — gọn lại: Quick Links + Services xếp 2 cột ngang, Brand/Contact full width */
  .ft-main { grid-template-columns: 1fr 1fr; gap: 1.5rem 1.25rem; padding-bottom: 2rem; }
  .ft-col--brand { grid-column: 1 / -1; }
  .ft-col:nth-child(4) { grid-column: 1 / -1; }
  .ft-tagline { margin-bottom: 1rem; }
  .ft-col-title { margin-bottom: 0.875rem; }
  .ft-bottom { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .ft-card { width: clamp(120px, 28vw, 160px); }
}

/* ============================================================
   14. RESPONSIVE — 480px
   ============================================================ */


/* ============================================================
   15. RESPONSIVE — MOBILE POLISH (≤480px)
   ============================================================ */
   @media (max-width: 480px) {
  .hero-h1 { font-size: clamp(2rem, 9vw, 2.8rem); }
  .lang-toggle { font-size: 0.62rem; padding: 0.3rem 0.6rem; }

  /* Hero collage: strip ngang vuốt tay, hiện đủ ảnh */
  .hero-collage {
    height: auto;
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: visible;
    padding: 0.5rem 0 1rem var(--gutter);
    -webkit-overflow-scrolling: touch;
  }
  .hero-collage::before { content: none; }
  .collage-img {
    display: block;
    position: relative;
    left: auto; right: auto; top: auto; bottom: auto;
    transform: none;
    animation: none;
    z-index: 1;
    width: 52vw;
    max-width: 190px;
    aspect-ratio: 3/4;
    flex-shrink: 0;
  }
  /* Hero stats: 3 card ngang */
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; padding: 1.25rem var(--gutter) 1.25rem; }
  .hero-stat { border: 1px solid var(--border); border-radius: var(--r-m); padding: 0.875rem 0.4rem; }
  .hero-stat:last-child { border: 1px solid var(--border); }
  .hero-stat-val { font-size: clamp(1.1rem, 5.5vw, 1.5rem); margin-bottom: 0.2rem; }
  .hero-stat-lbl { font-size: 0.55rem; letter-spacing: 0.08em; line-height: 1.3; }
}