/* ═══════════════════════════════════════════════════════════════════════════
   MARCOMS — Design System
   Font: Montserrat (Google Fonts)
   Accent: #D52220  |  Dark: #151515  |  Off-white: #f8f7f4
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── Custom Properties ───────────────────────────────────────────────────── */
:root {
  --red:         #D52220;
  --red-dark:    #b51c1a;
  --green:       #22c55e;
  --dark:        #151515;
  --dark-2:      #1c1c1c;
  --dark-3:      #252525;
  --white:       #ffffff;
  --off-white:   #f8f7f4;
  --text:        #1a1a1a;
  --text-mid:    #444444;
  --text-muted:  #888888;
  --border:      #e4e4e4;
  --border-dark: rgba(255,255,255,0.08);

  --bronze-filter: sepia(40%) saturate(130%) hue-rotate(8deg) brightness(0.92) contrast(1.05);

  --font:        'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-weight-heading: 700;
  --container:   1240px;
  --section-v:   96px;

  --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --dur:         0.35s;
  --dur-slow:    0.65s;

  --radius:      4px;
  --radius-lg:   8px;
  --shadow:      0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.14);

}

/* ─── Theme tokens — bright (default) vs dark (yin-yang toggle) ──────────── */
/* Bright mode defaults: --section-dark-bg etc. control sections that are
   dark in dark-mode but bright in bright-mode (footer, expertise, CTA).    */
:root {
  --section-dark-bg:     #f2f0ec;   /* warm cream — yin-yang bright face  */
  --section-dark-text:   #1a1a1a;   /* dark text on warm cream section    */
  --section-dark-text-muted: rgba(0,0,0,0.55);
  --section-dark-border: rgba(0,0,0,0.08);
  --section-dark-hover:  rgba(0,0,0,0.03);
  --footer-bg:           #f0ece4;   /* slightly creamier than off-white   */
  --footer-text:         #1a1a1a;
  --footer-text-muted:   rgba(0,0,0,0.6);
  --footer-border:       rgba(0,0,0,0.08);
  --header-scrolled-bg:  rgba(255,255,255,0.96);
}

[data-theme="dark"] {
  --white:      #111214;
  --off-white:  #1a1c1f;
  --text:       #e8e8e8;
  --text-mid:   #b0b0b0;
  --text-muted: #707070;
  --border:     rgba(255,255,255,0.09);
  --surface-card: #1e2025;

  /* Dark-mode variants of the section/footer tokens */
  --section-dark-bg:     #151515;
  --section-dark-text:   #ffffff;
  --section-dark-text-muted: rgba(255,255,255,0.55);
  --section-dark-border: rgba(255,255,255,0.07);
  --section-dark-hover:  rgba(255,255,255,0.04);
  --footer-bg:           #0e0f11;
  --footer-text:         #e8e8e8;
  --footer-text-muted:   rgba(255,255,255,0.4);
  --footer-border:       rgba(255,255,255,0.06);
  --header-scrolled-bg:  rgba(17,18,20,0.96);
}

[data-theme="dark"] body { background: var(--white); color: var(--text); }

/* ── Smooth theme transition ─────────────────────────────────────────────────
   When the user toggles the Yin-Yang, JS adds [data-theme-transition] to <html>
   for ~450ms. That window applies a short cross-fade to colors / backgrounds /
   borders / fills site-wide, then the attribute is removed so normal hover
   transitions stay snappy. Header height/padding are intentionally excluded
   so the header doesn't appear to "resize" during the toggle.            */
html[data-theme-transition],
html[data-theme-transition] *:not(.yinyang-svg):not(.nav__burger-line):not(.hero__video):not(.hero__overlay) {
  transition:
    background-color  .42s var(--ease, ease),
    background-image  .42s var(--ease, ease),
    color             .42s var(--ease, ease),
    border-color      .42s var(--ease, ease),
    box-shadow        .42s var(--ease, ease),
    fill              .42s var(--ease, ease),
    stroke            .42s var(--ease, ease),
    opacity           .42s var(--ease, ease) !important;
}
/* Enforce [hidden] even when an element has an explicit display rule (e.g.
   .cat-idle { display:grid } or .cat-loader { display:flex } would otherwise
   override the browser default display:none for [hidden] elements). */
[hidden] { display: none !important; }

/* But do NOT animate dimensions / positions / transforms — those caused the
   "header changes size" feeling. Header height transitions stay tied to scroll. */
html[data-theme-transition] *:not(.yinyang-svg):not(.nav__burger-line) {
  transition-property:
    background-color, background-image, color, border-color,
    box-shadow, fill, stroke, opacity !important;
}

/* Cards and white containers in dark mode */
[data-theme="dark"] .news-card,
[data-theme="dark"] .gift-card,
[data-theme="dark"] .tcar-item,
[data-theme="dark"] .package-card { background: var(--off-white); border-color: var(--border); }
/* News cards */
[data-theme="dark"] .news-card h3 a  { color: var(--text); }
[data-theme="dark"] .news-card__date { color: var(--text-muted); }
/* Breadcrumbs */
[data-theme="dark"] .breadcrumb a    { color: var(--text-muted); }
/* Pagination */
[data-theme="dark"] .pagination a    { background: var(--off-white); border-color: var(--border); color: var(--text-mid); }
/* Client marquee in dark mode */
[data-theme="dark"] .clients-section { background: var(--off-white); }
[data-theme="dark"] .client-card     { background: var(--off-white); border-color: var(--border); }
[data-theme="dark"] .client-card:hover { background: #252830; }
/* Project hero overlay (already dark) */
[data-theme="dark"] .project-hero    { background: #0a0a0a; }

/* ── Dark mode: override Quill inline color styles ───────────────────────────
   Quill editor saves HTML with inline style="color: rgb(0,0,0)" which blocks
   the generic p:not([style*="color"]) selector and stays unreadable on a dark
   background. !important is required to beat those inline declarations.       */
[data-theme="dark"] .project-content.ql-rendered p,
[data-theme="dark"] .project-content.ql-rendered li,
[data-theme="dark"] .project-content.ql-rendered span:not([class]) {
  color: var(--text-mid) !important;
}
[data-theme="dark"] .project-content.ql-rendered h1,
[data-theme="dark"] .project-content.ql-rendered h2,
[data-theme="dark"] .project-content.ql-rendered h3,
[data-theme="dark"] .project-content.ql-rendered h4,
[data-theme="dark"] .project-content.ql-rendered strong,
[data-theme="dark"] .project-content.ql-rendered b {
  color: var(--text) !important;
}
[data-theme="dark"] .project-content.ql-rendered a { color: var(--red) !important; }
/* Package non-video hover */
[data-theme="dark"] .package-card:not([data-video]):hover { background: #252830; }

/* ── Theme safety-net: catch text that should follow theme but doesn't ──── */
/* Any element with a "card" surface bg in dark mode inherits text color   */
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .package-card,
[data-theme="dark"] .gift-card,
[data-theme="dark"] .news-card,
[data-theme="dark"] .tcar-item,
[data-theme="dark"] .client-card,
[data-theme="dark"] .expertise-card {
  color: var(--text);
}
[data-theme="dark"] .testimonial-card p,
[data-theme="dark"] .testimonial-card .author-name,
[data-theme="dark"] .testimonial-card .author-role,
[data-theme="dark"] .package-card .package-subtitle,
[data-theme="dark"] .package-card .package-touchpoint,
[data-theme="dark"] .gift-card h3,
[data-theme="dark"] .gift-card p {
  color: inherit;
}
/* Section headings + paragraphs that may have been hardcoded */
[data-theme="dark"] .section-header h2,
[data-theme="dark"] .section h2,
[data-theme="dark"] .section h3,
[data-theme="dark"] .section p:not([style*="color"]):not(.team-card__role) {
  color: var(--text);
}
/* Footer text */
[data-theme="dark"] .site-footer,
[data-theme="dark"] .site-footer p,
[data-theme="dark"] .site-footer a {
  color: var(--text-mid);
}
/* ─── Yin-Yang Nav Toggle ────────────────────────────────────────────────── */
.nav__yinyang {
  width: 34px; height: 34px; border: none; cursor: pointer;
  background: transparent; padding: 2px; margin-left: 6px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; flex-shrink: 0;
  transition: opacity var(--dur);
}
.nav__yinyang:hover { opacity: .75; }
.nav__yinyang--mobile {
  width: auto; height: auto; border-radius: 0; padding: 0;
  background: transparent;
}
.nav__yinyang--mobile .yinyang-svg { width: 24px; height: 24px; box-shadow: none; }
.yinyang-svg {
  width: 28px; height: 28px; border-radius: 50%;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  box-shadow: 0 1px 5px rgba(0,0,0,0.3);
  display: block;
}
/* Dark mode: Yin-Yang border subtle glow */
[data-theme="dark"] .yinyang-svg { box-shadow: 0 1px 8px rgba(255,255,255,0.15); }

/* ─── Reset ───────────────────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul,ol{ list-style: none; }
button,input,textarea,select { font-family: inherit; }

/* ─── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: var(--font-weight-heading, 700); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.2; letter-spacing: -0.015em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.3; }
h4 { font-size: 1rem; }
p  { color: var(--text-mid); line-height: 1.75; }

/* Editorial-style eyebrow label: tiny red bar precedes the text */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 10px;
}
.label::before {
  content: "";
  width: 24px; height: 2px;
  background: currentColor;
  flex-shrink: 0;
}
.section-header--center .label { justify-content: center; }
.label-dark { color: rgba(255,255,255,0.45); }

/* ─── Layout ─────────────────────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.section    { padding: var(--section-v) 0; }
.section--dark {
  background-color: var(--section-dark-bg);
  color: var(--section-dark-text);
}
.section--dark-2   { background: var(--section-dark-bg); color: var(--section-dark-text); }
.section--off-white{ background: var(--off-white); }

/* ─── Header / Nav ───────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  /* color transition stays smooth even when theme variables flip */
  transition: background-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              padding var(--dur) var(--ease),
              color var(--dur) var(--ease);
}
/* When the theme toggles, freeze the nav height so the header doesn't appear
   to "resize" — height changes stay tied to scroll only. */
html[data-theme-transition] .site-header,
html[data-theme-transition] .site-header .nav,
html[data-theme-transition] .nav__logo-img {
  transition-property: background-color, color, border-color, box-shadow, fill, stroke !important;
}
.site-header.scrolled {
  background: var(--header-scrolled-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.site-header.header--dark { color: #fff; }
.site-header.header--dark.scrolled { color: var(--text); }

.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; transition: height var(--dur) var(--ease);
}
.site-header.scrolled .nav { height: 64px; }

.nav__logo { flex-shrink: 0; }
.nav__logo-img { height: 38px; width: auto; transition: height var(--dur) var(--ease); }
/* Dark logo: ALWAYS hidden unless header is scrolled (white bg) */
.nav__logo-img--dark { display: none; }
.site-header.scrolled .nav__logo-img--light { display: none; }
.site-header.scrolled .nav__logo-img--dark  { display: block; height: 38px; }
/* Dark theme: scrolled nav is dark too, keep the LIGHT logo always visible */
[data-theme="dark"] .site-header.scrolled .nav__logo-img--light { display: block; }
[data-theme="dark"] .site-header.scrolled .nav__logo-img--dark  { display: none; }

.nav__links {
  display: flex; align-items: center; gap: 36px;
}
.nav__links a {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: inherit;
  transition: color var(--dur); position: relative;
}
.nav__links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }
.nav__links a:hover { color: var(--red); }


.nav__cta {
  background: var(--red); color: #fff !important;
  padding: 10px 24px; border-radius: var(--radius);
  font-size: 0.75rem !important; font-weight: 700 !important;
  letter-spacing: 0.1em !important; text-transform: uppercase !important;
  white-space: nowrap;                     /* "Contact Us" never breaks */
  transition: background var(--dur) !important;
}
.nav__cta::after { display: none !important; }
.nav__cta:hover { background: var(--red-dark) !important; color: #fff !important; }

/* ── Globe language switcher ───────────────────────────────────────────────── */
.nav__globe { position: relative; margin-left: 8px; }

.nav__globe-btn {
  display: flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px; padding: 5px 10px;
  color: inherit; cursor: pointer; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.05em; transition: background var(--dur), border-color var(--dur);
}
.nav__globe-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }

/* Dropdown */
.nav__globe-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--dark); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; overflow: hidden; min-width: 150px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  opacity: 0; pointer-events: none;
  transform: translateY(-6px) scale(0.97);
  transition: opacity .18s var(--ease), transform .18s var(--ease);
  z-index: 300;
}
.nav__globe.open .nav__globe-dropdown {
  opacity: 1; pointer-events: auto; transform: translateY(0) scale(1);
}
.nav__globe-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; font-size: 0.82rem; font-weight: 500;
  transition: background .15s; color: rgba(255,255,255,.7);
}
.nav__globe-dropdown a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav__globe-dropdown a.active { color: var(--red); font-weight: 700; }
.nav__globe-dropdown a.active::after { content: '✓'; margin-left: auto; font-size: .75rem; }

/* Keep old .nav__lang for backwards compat (hidden by default) */
.nav__lang { display: none; }

/* Hamburger — Uiverse prakashdc smooth morph (bar → curved arrow on open) */
.nav__burger {
  display: none; cursor: pointer; padding: 4px; line-height: 0;
  background: none; border: 0;
  align-items: center;
}
.nav__burger-cb { display: none; }
.nav__burger svg {
  height: 32px;
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav__burger-line {
  fill: none;
  stroke: var(--red);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  transition:
    stroke-dasharray 500ms cubic-bezier(0.4, 0, 0.2, 1),
    stroke-dashoffset 500ms cubic-bezier(0.4, 0, 0.2, 1);
}
.nav__burger-line--tb { stroke-dasharray: 12 63; }
/* Checkbox is now a sibling of the .nav__burger label (was a child before)
   so use the adjacent-sibling + descendant combinator to reach the svg. */
.nav__burger-cb:checked + .nav__burger svg { transform: rotate(-45deg); }
.nav__burger-cb:checked + .nav__burger svg .nav__burger-line--tb {
  stroke-dasharray: 20 300;
  stroke-dashoffset: -32.42;
}
.nav__burger:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }
/* Dark text logo / nav in light mode → red stays the brand colour */
[data-theme="dark"] .nav__burger-line { stroke: var(--red); }

/* ─── Mobile nav drawer ───────────────────────────────────────────────────── */
/* Sits below the header. Top padding is generous so the burger "X" doesn't
   crowd the first interactive row — the logo behind it stays untouched.    */
.nav__mobile {
  display: none;
  position: fixed; inset: 0; top: 76px;
  background: var(--white); color: var(--text);
  z-index: 999;
  flex-direction: column;
  padding: 28px 28px calc(20px + env(safe-area-inset-bottom));
  gap: 22px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav__mobile.open { display: flex; }
/* When header shrinks on scroll, drawer slides up with it */
.site-header.scrolled ~ .nav__mobile { top: 64px; }

/* — Subtle utility row at the very top: lang chips + yin-yang — */
.nav__mobile-utility {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.nav__mobile-lang {
  display: inline-flex; gap: 4px;
  padding: 3px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.nav__mobile-lang a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 12px;
  font-size: .72rem; font-weight: 600; letter-spacing: 0.05em;
  color: var(--text-muted);
  border-radius: 999px;
  border-bottom: 0;
  text-transform: uppercase;
  transition: background .18s ease, color .18s ease;
}
.nav__mobile-lang a.is-active {
  background: var(--white);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
[data-theme="dark"] .nav__mobile-lang a.is-active { background: var(--surface-card, #1e2025); }
.nav__yinyang--mobile {
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--off-white);
  padding: 3px;
}
.nav__yinyang--mobile .yinyang-svg { width: 22px; height: 22px; box-shadow: none; }

/* — Primary links list — */
.nav__mobile-links {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0;
  flex: 1;
}
.nav__mobile-links li { border-bottom: 1px solid var(--border); }
.nav__mobile-links li:last-child { border-bottom: none; }
.nav__mobile-links a {
  display: block;
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: 0.02em;
  padding: 18px 4px;
  color: var(--text);
  transition: color .18s ease, padding-left .25s var(--ease);
}
.nav__mobile-links a:hover,
.nav__mobile-links a:focus-visible {
  color: var(--red);
  padding-left: 12px;
}
.nav__mobile-cta {
  color: var(--red) !important;
}

/* — Drawer footer: copyright + credit — */
.nav__mobile-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: .72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ─── "Design by Claude" credit — used in both desktop footer + mobile drawer ─ */
.footer-credit { display: inline-flex; align-items: center; gap: 6px; }
.footer-credit__claude {
  display: inline-flex; align-items: center; gap: 6px;
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
  border-bottom: 0 !important;
}
.footer-credit__claude:hover { color: var(--red); }
.footer-credit__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  font-family: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: .92rem;
  font-style: italic;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  line-height: 1;
  letter-spacing: -0.05em;
  position: relative;
  padding-left: 1px;
}
.footer-credit__slash {
  font-size: .78rem;
  margin-left: -1px;
  opacity: 0.65;
}

/* ─── Hero (Video) ────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; overflow: hidden;
  background: var(--dark);
}
.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.45;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(21,21,21,0.75) 0%, rgba(21,21,21,0.45) 100%);
}
.hero__content {
  position: relative; z-index: 2; max-width: 800px;
  padding: 120px 0 80px;
}
.hero__tag {
  display: inline-block; background: var(--red);
  color: #fff; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--radius); margin-bottom: 28px;
}
.hero__content h1 { color: #fff; margin-bottom: 24px; }
.hero__content p  { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 560px; margin-bottom: 40px; text-wrap: balance; }
.hero__buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ─── Hero scroll indicator — animated triple chevron ──────────────────────── */
.hero__scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 0;
  color: rgba(255,255,255,0.45); font-size: 0.6rem; letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero__scroll-label {
  margin-bottom: 2px;
  transition: color 0.2s;
}
.hero__scroll:hover .hero__scroll-label { color: rgba(255,255,255,0.85); }
.hero__scroll-chevrons {
  display: flex; flex-direction: column; align-items: center; gap: 0; line-height: 0;
}
.hero__scroll-chevrons .chevron {
  width: 22px; height: 11px;
  display: block; opacity: 0;
  animation: chevronFade 1.8s ease-in-out infinite;
}
.chevron--1 { animation-delay: 0s; }
.chevron--2 { animation-delay: 0.25s; }
.chevron--3 { animation-delay: 0.5s; }
@keyframes chevronFade {
  0%   { opacity: 0;    transform: translateY(-4px); }
  40%  { opacity: 0.9;  transform: translateY(0); }
  80%  { opacity: 0;    transform: translateY(4px); }
  100% { opacity: 0;    transform: translateY(4px); }
}

/* Mute / unmute toggle — bottom-right of hero */
.hero__mute {
  position: absolute; bottom: 36px; right: 28px; z-index: 10;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.75); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur), color var(--dur);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero__mute:hover { background: rgba(255,255,255,0.22); color: #fff; }
.hero__mute .icon-unmuted { display: none; }
.hero__mute.unmuted .icon-muted   { display: none; }
.hero__mute.unmuted .icon-unmuted { display: block; }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: var(--radius);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; cursor: pointer; border: 2px solid transparent;
  /* Buttons should never wrap into two lines ("CONTACT" / "US"). The label
     stays on a single row no matter how narrow the container is. */
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--red   { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--outline-white { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn--outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
/* On .section--dark the button adapts: cream bg in light mode → dark text/border */
.section--dark .btn--outline-white {
  color: var(--section-dark-text);
  border-color: rgba(0,0,0,0.3);
}
.section--dark .btn--outline-white:hover {
  border-color: var(--section-dark-text);
  background: var(--section-dark-hover);
}
/* Dark mode: restore white border */
[data-theme="dark"] .section--dark .btn--outline-white {
  border-color: rgba(255,255,255,0.35);
}
.btn--outline-red { border-color: var(--red); color: var(--red); }
.btn--outline-red:hover { background: var(--red); color: #fff; }
.btn--sm { padding: 9px 20px; font-size: 0.72rem; }

/* ─── Stats Bar ───────────────────────────────────────────────────────────── */
.stats-bar {
  background: var(--red); padding: 0;
  overflow: hidden; position: relative;
}
.stats-bar::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.stats-bar__inner {
  display: flex;
}
.stat-item {
  flex: 1; padding: 32px 20px; text-align: center;
  border-right: 1px solid rgba(255,255,255,0.12);
  position: relative;
  transition: background 0.2s;
}
.stat-item:hover { background: rgba(0,0,0,0.08); }
.stat-item:last-child { border-right: none; }
.stat-item__number {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 900; color: #fff; line-height: 1;
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
}
.stat-item__suffix { font-size: 1.3rem; font-weight: 700; }
.stat-item__label {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.13em;
  text-transform: uppercase; color: rgba(255,255,255,0.6); margin-top: 8px;
}

/* ─── Section Headers ─────────────────────────────────────────────────────── */
.section-header { margin-bottom: 60px; }
.section-header .label { margin-bottom: 12px; }
.section-header h2 { margin-bottom: 16px; }
.section-header p  { font-size: 0.97rem; max-width: 560px; line-height: 1.8; }
.section-header--center { text-align: center; }
.section-header--center p { margin: 0 auto; }
.section-header--dark h2 { color: var(--section-dark-text); }
.section-header--dark p  { color: var(--section-dark-text-muted); }
/* Automatic dark-section text colours — prevents dark-on-dark contrast bug */
.section--dark .section-header h2 { color: var(--section-dark-text); }
.section--dark .section-header p  { color: var(--section-dark-text-muted); }

/* ─── Work Process — Premium Cards ──────────────────────────────────────── */
/* ─── Work Process — compact numbered list ──────────────────────────────── */
.pz-section {
  background: var(--off-white);
}
.pz-section .section-header .label { color: var(--red); }
.pz-section .section-header { margin-bottom: 28px; }
.pz-section .section-header p { font-size: 1.12rem; line-height: 1.7; }

.pz-list {
  margin-top: 16px;
}

.pz-row {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  transition: background 0.2s;
}
.pz-row:last-child {
  border-bottom: 1px solid var(--border);
}

/* Light mode: rich amber tones, no near-white highlights */
:root {
  --gold-gradient: linear-gradient(
    105deg,
    #5c3d0a 0%,
    #a07828 22%,
    #c8a84b 40%,
    #d4b040 50%,
    #c8a84b 60%,
    #a07828 78%,
    #5c3d0a 100%
  );
}
/* Dark mode: bright shimmer with light highlight reads fine on dark bg */
[data-theme="dark"] {
  --gold-gradient: linear-gradient(
    105deg,
    #7a5c1a 0%,
    #c8a84b 22%,
    #f5e08c 40%,
    #fffacd 50%,
    #f5e08c 60%,
    #c8a84b 78%,
    #7a5c1a 100%
  );
}

.pz-num {
  font-size: 2rem;
  font-weight: 800;
  min-width: 64px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  color: var(--red);
}
@keyframes gold-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.pz-gold-label {
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 40px 0 0;
  background: var(--gold-gradient);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gold-shimmer 10s linear infinite;
}

.pz-info {
  flex: 1;
}
.pz-info h3 {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--red);
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pz-info p {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

.pz-thumb {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pz-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.pz-row:hover .pz-thumb img { transform: scale(1.06); }

/* ─── Expertise (Red-Black Icon Design) ──────────────────────────────────── */
.expertise-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--section-dark-border, rgba(0,0,0,0.08));
  border-radius: var(--radius-lg); overflow: hidden;
}
.expertise-card {
  padding: 48px 40px; border-right: 1px solid var(--section-dark-border, rgba(0,0,0,0.08));
  transition: background var(--dur);
  position: relative;
}
.expertise-card:last-child { border-right: none; }
.expertise-card:hover { background: var(--section-dark-hover, rgba(0,0,0,0.03)); }

/* Icon badge replaces the old number label */
.expertise-card__icon {
  width: 80px; height: 80px;
  background: transparent;
  border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 26px;
  border: none;
  box-shadow: none;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.expertise-icon-mask {
  display: block;
  width: 80px; height: 80px;
  background-color: #D52220;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.expertise-card:hover .expertise-card__icon {
  transform: scale(1.06);
}
/* Keep old number style for backward compat if still used anywhere */
.expertise-card__num {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--red); margin-bottom: 22px; display: block;
}
.expertise-card h3 {
  font-size: 1rem; font-weight: 700; color: var(--section-dark-text);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 28px;
  line-height: 1.45;
}
.expertise-card ul { display: flex; flex-direction: column; gap: 14px; }
.expertise-card li {
  font-size: 0.88rem; color: var(--section-dark-text-muted);
  padding-left: 20px; position: relative; line-height: 1.6;
  transition: color 0.2s;
}
.expertise-card:hover li { color: var(--section-dark-text); }
.expertise-card li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 10px; height: 1.5px; background: var(--red);
  border-radius: 1px;
}

/* ─── Clients Grid ────────────────────────────────────────────────────────── */
/* ─────────────────────────────────────────────────────────────────────────────
   CLIENTS — infinite auto-scroll marquee (two rows)
   Row 1 scrolls left, Row 2 scrolls right at slightly different speed.
   Hovering either row pauses the animation.
   ───────────────────────────────────────────────────────────────────────── */
/* Warm cream backdrop so light logos pop instead of blending into the page.
   Combined with the darker filter on .client-card img below. */
.clients-section {
  background:
    linear-gradient(180deg, rgba(213,34,32,0.025), transparent 30%),
    var(--off-white);                /* MARCOMS warm tone (#f8f7f4) */
  position: relative;
}
.clients-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: rgba(0,0,0,0.06);
}

/* ─── Clients Carousel (arrows + endless scroll) ─────────────────────────
   Single row, JS-driven offset, prev/next arrow buttons on the sides.
   ──────────────────────────────────────────────────────────────────────── */
.clients-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 48px;
  padding: 0 72px;          /* space for the arrow buttons */
}

/* Fade left/right edges inside the viewport */
.clients-viewport {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right,
    transparent 0, black 64px,
    black calc(100% - 64px), transparent 100%);
  mask-image: linear-gradient(to right,
    transparent 0, black 64px,
    black calc(100% - 64px), transparent 100%);
}

/* The scrolling track — translateX controlled by JS */
.clients-track {
  display: flex;
  flex-shrink: 0;
  will-change: transform;
}

/* Individual client card */
.client-card {
  flex: 0 0 auto;
  background: var(--white);
  padding: 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 190px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-right: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur), box-shadow var(--dur), transform var(--dur);
}
.client-card:hover {
  background: var(--off-white);
  box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  transform: translateY(-3px);
}
.client-card img {
  width: 140px;
  height: 70px;
  object-fit: contain;
  /* Darken bright logos slightly so they read against the warm cream bg.
     grayscale + reduced opacity, plus a subtle contrast bump = dimmed effect. */
  filter: grayscale(100%) brightness(0.78) contrast(1.05) opacity(0.7);
  transition: filter 0.45s var(--ease);
}
.client-card:hover img {
  filter: grayscale(0%) brightness(1) contrast(1) opacity(1);
}
.client-card__name {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  transition: color var(--dur);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.client-card:hover .client-card__name { color: var(--red); }

/* Arrow buttons */
.clients-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color var(--dur), background var(--dur),
              color var(--dur), transform 0.2s var(--ease-out),
              box-shadow var(--dur);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.clients-arrow:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--white);
  box-shadow: 0 4px 20px rgba(213,34,32,0.15);
  transform: translateY(-50%) scale(1.08);
}
.clients-arrow:active { transform: translateY(-50%) scale(0.96); }
.clients-arrow--prev { left: 0; }
.clients-arrow--next { right: 0; }

/* Dark mode adjustments */
/* Keep cards on a true-white bg in dark mode so logos remain visible;
   mix-blend-mode:multiply removes any white halos from logos against the card. */
[data-theme="dark"] .client-card        { background: #ffffff; border-color: rgba(255,255,255,0.15); }
[data-theme="dark"] .client-card:hover  { background: #f5f5f5; }
[data-theme="dark"] .client-card img    { mix-blend-mode: multiply; }
[data-theme="dark"] .clients-arrow      { background: var(--off-white); border-color: var(--border); color: var(--text); }
[data-theme="dark"] .clients-arrow:hover { background: var(--dark-3); border-color: var(--red); }

/* Mobile — shrink padding so arrows fit */
@media (max-width: 600px) {
  .clients-carousel-wrap { padding: 0 44px; }
  .clients-arrow { width: 36px; height: 36px; }
  .client-card   { padding: 18px 24px; min-width: 150px; }
  .client-card img { width: 110px; height: 55px; }
}

/* ─── Projects Grid (Bronze Filter) ─────────────────────────────────────────
   Bronze tone by default, original on hover.
   Each card has a fixed 4:3 image ratio — uniform across all thumbnails.
   ───────────────────────────────────────────────────────────────────────── */
.projects-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.project-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius); background: var(--off-white);
  transition: box-shadow var(--dur-slow) var(--ease), transform var(--dur) var(--ease);
}
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.project-card__img-wrap {
  aspect-ratio: 4/3; overflow: hidden; position: relative;
}
.project-card__img {
  width: 100%; height: 100%; object-fit: cover;
  filter: var(--bronze-filter);
  transition: filter var(--dur-slow) var(--ease),
              transform var(--dur-slow) var(--ease);
}
.project-card:hover .project-card__img {
  filter: none;
  transform: scale(1.03);
}

.project-card__body { padding: 20px 22px 22px; }
.project-card__tag {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  background: rgba(213,34,32,0.08); color: var(--red);
  padding: 3px 10px; border-radius: 2px; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 8px;
}
.project-card h3 { font-size: 0.88rem; color: var(--text); line-height: 1.45; }

/* Client logo badge — top-right corner of project grid cards */
.project-card__logo-badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 54px; height: 34px;
  background: rgba(255,255,255,0.93);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  padding: 4px 7px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.project-card__logo-badge img {
  width: 100%; height: 100%; object-fit: contain;
  filter: none !important;
}
.project-card:hover .project-card__logo-badge { transform: scale(1.07); }

/* ─── Testimonials ────────────────────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.testimonial-card {
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg); padding: 36px;
  transition: background var(--dur), border-color var(--dur);
}
.testimonial-card:hover { background: rgba(255,255,255,0.06); border-color: rgba(213,34,32,0.3); }
.testimonial-card__quote {
  font-size: 2.8rem; color: var(--red); line-height: 1; margin-bottom: 16px;
  font-family: Georgia, serif;
}
.testimonial-card blockquote {
  font-size: 0.88rem; color: rgba(255,255,255,0.6);
  font-style: italic; line-height: 1.8; margin-bottom: 24px;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800; color: #fff; flex-shrink: 0;
}
.author-name  { font-size: 0.88rem; font-weight: 700; color: #fff; }
.author-role  { font-size: 0.75rem; color: rgba(255,255,255,0.35); margin-top: 2px; }

/* ─── News / Blog Cards ───────────────────────────────────────────────────── */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.news-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow var(--dur), transform var(--dur);
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-card__img-wrap { aspect-ratio: 16/9; overflow: hidden; }
.news-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.news-card:hover .news-card__img { transform: scale(1.04); }
.news-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-card__tag  { font-size: 0.65rem; font-weight: 700; color: var(--red); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.news-card h3    { font-size: 0.95rem; margin-bottom: 10px; line-height: 1.4; color: var(--text); }
.news-card__date { font-size: 0.75rem; color: var(--text-muted); margin-top: auto; padding-top: 14px; }

/* ─── Contact Section ─────────────────────────────────────────────────────── */
.contact-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.contact-info  { display: flex; flex-direction: column; gap: 22px; margin-top: 32px; }
.contact-item  { display: flex; gap: 16px; align-items: flex-start; }
.contact-icon  {
  width: 42px; height: 42px; background: rgba(213,34,32,0.1);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0; color: var(--red);
}
.contact-label { font-size: 0.68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.contact-value { font-size: 0.92rem; color: var(--text); margin-top: 3px; font-weight: 500; overflow-wrap: anywhere; }

/* Form */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); }
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px;
  color: var(--text); font-size: 0.9rem; outline: none;
  transition: border-color var(--dur), background var(--dur);
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--red); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ─── Footer (theme-aware) ───────────────────────────────────────────────── */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 64px 0 0; }
.footer-grid {
  display: grid;
  /* One equal gap between all four sections.
     Brand (1.8fr) and Contact (1.5fr) get more room than the
     two compact link columns (1fr each).
     Brand ~370 px leaves space for text + form.
     Contact ~310 px fits the full address on one line. */
  grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr);
  gap: clamp(28px, 3.8vw, 52px);
  padding-bottom: 48px;
  border-bottom: 1px solid var(--footer-border);
}
.footer-brand { align-self: start; }
/* Dissolve wrapper — Pages / Services / Contact become direct
   grid children so all four sections share the same gap. */
.footer-links { display: contents; }
/* Spacing redistribution:
   ½ of gap(Pages↔Services) → added before Pages (increases Marcoms↔Pages visual gap).
   ½ of gap(Services↔Contact) → added after Contact (breathing room on the right).  */
.footer-links > nav       { margin-left:  calc(clamp(28px, 3.8vw, 52px) / 2); }
.footer-links .footer-col--contact { margin-right: calc(clamp(28px, 3.8vw, 52px) / 2); margin-left: -10px; }
.footer-brand__logo { height: 32px; width: auto; margin-bottom: 18px; }
/* Theme-aware logo swap: only one of the two is ever visible.
   Default (bright theme): show dark logo, hide light.
   Dark theme: show light logo, hide dark.                                   */
.footer-brand__logo--dark  { display: block !important; }
.footer-brand__logo--light { display: none  !important; }
[data-theme="dark"] .footer-brand__logo--dark  { display: none  !important; }
[data-theme="dark"] .footer-brand__logo--light { display: block !important; }
.footer-brand p { font-size: 0.82rem; color: var(--footer-text-muted); max-width: 100%; line-height: 1.8; }
.footer-col h4 { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--footer-text-muted); margin-bottom: 16px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { font-size: 0.82rem; color: var(--footer-text-muted); transition: color var(--dur); }
.footer-col a:hover { color: var(--red); }
.footer-newsletter { margin-top: 20px; max-width: 100%; }
.footer-newsletter p { font-size: 0.78rem; color: var(--footer-text-muted); margin-bottom: 12px; line-height: 1.7; }
/* Stack form vertically: email+button row on top, consent below */
.newsletter-form { display: flex; flex-direction: column; width: 100%; max-width: 100%; gap: 10px; }
.newsletter-form__row { display: flex; width: 100%; }
.newsletter-form__row input { min-width: 0; flex: 1; }
.newsletter-form input {
  padding: 11px 14px;
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--footer-border); border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  color: var(--footer-text); font-size: 0.82rem; font-family: inherit; outline: none;
}
.newsletter-form input::placeholder { color: var(--footer-text-muted); }
[data-theme="dark"] .newsletter-form input { background: rgba(255,255,255,0.06); }
.newsletter-form button {
  padding: 11px 18px; background: var(--red); color: #fff;
  border: none; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.72rem; font-weight: 700; font-family: inherit; cursor: pointer;
  letter-spacing: 0.08em; transition: background var(--dur); white-space: nowrap;
}
.newsletter-form button:hover { background: var(--red-dark); }
.newsletter-consent {
  display: flex; align-items: flex-start; gap: 8px;
  cursor: pointer;
}
.newsletter-consent input[type="checkbox"] {
  flex-shrink: 0; margin-top: 2px;
  accent-color: var(--red);
  width: 14px; height: 14px; cursor: pointer;
}
.newsletter-consent span {
  font-size: 0.74rem; color: var(--footer-text-muted); line-height: 1.5;
}
.newsletter-consent a {
  color: var(--footer-text-muted); text-decoration: underline; transition: color var(--dur);
}
.newsletter-consent a:hover { color: var(--red); }
.newsletter-unsub-link { margin-left: 4px; }

/* Error state: shake + red outline on the checkbox */
@keyframes consent-shake {
  0%,100% { transform: translateX(0); }
  18%     { transform: translateX(-6px); }
  36%     { transform: translateX(6px); }
  54%     { transform: translateX(-4px); }
  72%     { transform: translateX(4px); }
}
.newsletter-consent--error {
  animation: consent-shake 0.45s ease;
}
.newsletter-consent--error input[type="checkbox"] {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}
.newsletter-consent--error span { color: var(--footer-text); }


.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; font-size: 0.78rem; color: var(--footer-text-muted);
  flex-wrap: wrap; gap: 8px;
}
.footer-bottom a { transition: color var(--dur); color: var(--footer-text-muted); }
.footer-bottom a:hover { color: var(--red); }

/* ─── Packages Page ───────────────────────────────────────────────────────── */
.packages-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.package-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 28px;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: box-shadow var(--dur), transform var(--dur), border-color var(--dur);
}
.package-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--red); }
.package-card.featured { border-color: var(--red); }

/* Badge (B2B, NEW, Popular…) */
.package-badge {
  position: absolute; top: 0; right: 24px;
  background: var(--red); color: #fff;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 0 0 4px 4px;
  line-height: 1.6;
}
.package-badge--dark { background: var(--dark); }

/* Hover animation video overlay */
.package-card__video-wrap {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.package-card:hover .package-card__video-wrap { opacity: 1; }
.package-card__video-wrap video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.package-card__video-wrap::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(21,21,21,0.55);
}
/* Ensure card content stays above video */
.package-card > *:not(.package-card__video-wrap) { position: relative; z-index: 1; }

/* White text ONLY for cards that have a dark video overlay behind them */
.package-card[data-video]:hover .package-name,
.package-card[data-video]:hover .package-subtitle { color: #fff; }
.package-card[data-video]:hover .package-features li { color: rgba(255,255,255,0.85); }

/* Cards WITHOUT video: keep dark text, add soft background on hover */
.package-card:not([data-video]):hover { background: var(--off-white); }

.package-name { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; transition: color var(--dur); }
.package-subtitle { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.6; transition: color var(--dur); }
.package-features { display: flex; flex-direction: column; gap: 10px; flex: 1; margin-bottom: 28px; }
.package-features li {
  font-size: 0.83rem; color: var(--text-mid); padding-left: 20px;
  position: relative; line-height: 1.5; transition: color var(--dur);
}
.package-features li::before {
  content: ''; position: absolute; left: 0; top: 7px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--red);
}

/* Touchpoint / "Điểm chạm" block below features */
.package-touchpoint {
  margin-top: 8px; margin-bottom: 24px;
  padding: 14px 16px;
  background: var(--off-white); border-left: 3px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.78rem; line-height: 1.7; color: var(--text-mid);
  transition: background var(--dur), color var(--dur);
}
.package-touchpoint strong {
  display: block; font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--red); margin-bottom: 6px;
}
/* Touchpoint block only goes white when dark video is behind it */
.package-card[data-video]:hover .package-touchpoint { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); border-left-color: #fff; }
.package-card[data-video]:hover .package-touchpoint strong { color: rgba(255,255,255,0.55); }

/* ─── Gifts Catalog ───────────────────────────────────────────────────────── */
.gifts-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.gift-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow var(--dur), transform var(--dur);
}
.gift-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.gift-card__img-wrap { aspect-ratio: 1/1; overflow: hidden; background: var(--off-white); }
.gift-card__img {
  width: 100%; height: 100%; object-fit: cover;
  filter: var(--bronze-filter);
  transition: filter var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.gift-card:hover .gift-card__img { filter: none; transform: scale(1.04); }
.gift-card__name { padding: 14px 16px; font-size: 0.85rem; font-weight: 600; color: var(--text); }

/* ─── Single Project Page ─────────────────────────────────────────────────── */
.project-hero { position: relative; height: 56vh; min-height: 400px; overflow: hidden; background: var(--dark); }
.project-hero__img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; }
.project-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(21,21,21,0.9), transparent 60%); }
.project-hero__client-logo {
  position: absolute; top: 24px; left: 48px; z-index: 2;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 8px 14px;
  pointer-events: none;
}
.project-hero__client-logo img { display: block; max-height: 42px; max-width: 160px; object-fit: contain; filter: brightness(1.1); }

/* Dark linear-gradient across the top of the hero — helps category badge pop */
.project-hero__top-gradient {
  position: absolute; top: 0; left: 0; right: 0; height: 120px; z-index: 1;
  background: linear-gradient(to bottom, rgba(10,10,10,0.55), transparent);
  pointer-events: none;
}
/* Category badge — top-left of hero image */
.project-hero__category-badge {
  position: absolute; top: 20px; left: 40px; z-index: 2;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 4px 12px; border-radius: 3px;
  pointer-events: none;
}
/* Breadcrumb override for project hero (white on dark image) */
.project-hero__breadcrumb a { color: rgba(255,255,255,0.5); }
.project-hero__breadcrumb a:hover { color: #fff; }
.project-hero__breadcrumb .breadcrumb__sep { color: rgba(255,255,255,0.25); }
.project-hero__breadcrumb .breadcrumb__current { color: rgba(255,255,255,0.85); font-weight: 600; }

.project-hero__content { position: absolute; bottom: 0; left: 0; right: 0; padding: 48px; }
.project-hero__content .label { color: var(--red); }
.project-hero__content h1 { color: #fff; }

/* ─── Project rich-text body (Quill-rendered HTML) ──────────────────────── */
.project-content { max-width: 100%; }
.project-content.ql-rendered h1,
.project-content.ql-rendered h2 { font-size: clamp(1.3rem,2.2vw,1.8rem); font-weight: 700; margin: 40px 0 16px; color: var(--text); line-height: 1.25; }
.project-content.ql-rendered h3,
.project-content.ql-rendered h4 { font-size: clamp(1rem,1.6vw,1.2rem); font-weight: 700; margin: 28px 0 12px; color: var(--text); }
.project-content.ql-rendered p  { margin-bottom: 18px; color: var(--text-mid); font-size: 0.96rem; line-height: 1.8; }
.project-content.ql-rendered ul,
.project-content.ql-rendered ol { margin: 0 0 20px 24px; }
.project-content.ql-rendered ul { list-style: disc; }
.project-content.ql-rendered ol { list-style: decimal; }
.project-content.ql-rendered li { color: var(--text-mid); margin-bottom: 8px; font-size: 0.93rem; line-height: 1.7; }
.project-content.ql-rendered blockquote {
  border-left: 3px solid var(--red); padding: 12px 20px;
  margin: 24px 0; background: var(--off-white);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.project-content.ql-rendered blockquote p { margin: 0; font-style: italic; }
.project-content.ql-rendered img {
  max-width: 100%; border-radius: var(--radius-lg);
  margin: 24px 0; display: block;
}
.project-content.ql-rendered a { color: var(--red); text-decoration: underline; }
.project-content.ql-rendered strong { color: var(--text); }
.project-content.ql-rendered .ql-video {
  width: 100%; aspect-ratio: 16/9;
  border: none; border-radius: var(--radius-lg); margin: 24px 0; display: block;
}

.project-meta {
  display: flex; gap: 32px; padding: 28px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin: 40px 0; flex-wrap: wrap;
}
.project-meta-item { display: flex; flex-direction: column; gap: 4px; }
.project-meta-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.project-meta-value { font-size: 0.9rem; font-weight: 600; color: var(--text); }

/* Year + client-logo side-by-side inside hero meta strip */
.proj-year-logo-group {
  display: flex; align-items: center; gap: 16px;
}
/* Inline client logo in the hero meta bar */
.proj-hero-client-logo-inline {
  background: #fff;
  border-radius: 7px;
  padding: 5px 10px;
  display: flex; align-items: center; justify-content: center;
  height: 38px;
}
.proj-hero-client-logo-inline img {
  display: block; max-height: 26px; max-width: 110px;
  object-fit: contain;
}

/* ─── Project Social Share Bar ───────────────────────────────────────────── */
.proj-share {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.proj-share__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  flex-shrink: 0;
}
.proj-share__buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.proj-share__btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease;
  color: #fff;
}
.proj-share__btn:hover {
  transform: translateY(-7px);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}
.proj-share__btn--fb  { background: #1877f2; }
.proj-share__btn--x   { background: #000; }
.proj-share__btn--msg { background: linear-gradient(135deg,#00b2ff,#6b3fa0); }
.proj-share__btn--email { background: var(--red); }
.proj-share__btn--copy  { background: var(--text-muted); transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease, background .2s; }
.proj-share__btn--copy:hover { background: var(--text); }

/* "Explore catalogs" compact link — right side of the share bar */
.proj-catalogs-link {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.2s;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 1px;
  white-space: nowrap;
}
.proj-catalogs-link:hover { color: var(--red); border-bottom-color: var(--red); }
@media (max-width: 640px) { .proj-catalogs-link { margin-left: 0; } }

/* ─── Project Flipbook Strip ──────────────────────────────────────────────── */
.proj-flipbook-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.proj-flipbook-tile {
  flex-shrink: 0;
  width: 160px;
  text-decoration: none;
  color: var(--text);
}
.proj-flipbook-tile__cover {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transition: box-shadow .2s, transform .2s;
}
.proj-flipbook-tile:hover .proj-flipbook-tile__cover {
  box-shadow: 0 8px 28px rgba(0,0,0,.16);
  transform: translateY(-4px);
}
.proj-flipbook-tile__cover img { width: 100%; height: 100%; object-fit: cover; }
.proj-flipbook-tile__placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.proj-flipbook-tile__overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .2s;
}
.proj-flipbook-tile:hover .proj-flipbook-tile__overlay { opacity: 1; }
.proj-flipbook-tile__overlay span {
  color: #fff; font-size: .78rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.proj-flipbook-tile__title {
  margin: 10px 0 0;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ─── About Page ─────────────────────────────────────────────────────────── */
.about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-intro__img-wrap { aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-lg); position: relative; }
.about-intro__img {
  width: 100%; height: 100%; object-fit: cover;
  filter: var(--bronze-filter);
  transition: filter var(--dur-slow);
}
.about-intro__img-wrap:hover .about-intro__img { filter: none; }

/* ─── Breadcrumbs ─────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 0.75rem; color: var(--text-muted); padding: 14px 0;
}
.breadcrumb a { color: var(--text-muted); transition: color var(--dur); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb__sep { color: var(--border); }
.breadcrumb__current { color: var(--text); font-weight: 600; }

/* ─── Pagination ─────────────────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 56px; }
/* All children (links, current-page span, ellipsis span) share the same box so they align. */
.pagination a,
.pagination .current,
.pagination span {
  width: 40px; height: 40px; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 600; border: 1px solid var(--border);
  color: var(--text-mid); transition: background var(--dur), border-color var(--dur), color var(--dur);
  box-sizing: border-box; line-height: 1;
}
/* Current page (PHP outputs <span class="current">) — red filled, like an active link */
.pagination .current,
.pagination a.active {
  background: var(--red); border-color: var(--red); color: #fff;
}
.pagination a:hover:not(.active) { border-color: var(--red); color: var(--red); }
.pagination a.prev,.pagination a.next { width: auto; padding: 0 16px; }
/* Ellipsis "…" between page numbers — no border, no box look */
.pagination span:not(.current) { border: none; width: auto; min-width: 16px; }

/* ─── Flash messages ─────────────────────────────────────────────────────── */
.flash { padding: 14px 20px; border-radius: var(--radius); font-size: 0.88rem; margin-bottom: 20px; font-weight: 500; }
.flash--success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.flash--error   { background: #ffebee; color: #c62828; border: 1px solid #ef9a9a; }
.flash--info    { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }

/* ─── Page Banner (interior pages) ──────────────────────────────────────── */
.page-banner {
  background: var(--dark); padding: 110px 0 60px;
  position: relative; overflow: hidden;
}
.page-banner::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(213,34,32,0.06) 0%, transparent 60%);
}
.page-banner h1 { color: #fff; position: relative; z-index: 1; }
.page-banner p  { color: rgba(255,255,255,0.55); position: relative; z-index: 1; margin-top: 12px; font-size: 1rem; }

/* Breadcrumb inside dark page-banner must be light — sits below the headline */
.page-banner .breadcrumb { position: relative; z-index: 1; margin-top: 18px; }
.page-banner .breadcrumb a { color: rgba(255,255,255,0.45); }
.page-banner .breadcrumb a:hover { color: #fff; }
.page-banner .breadcrumb__sep { color: rgba(255,255,255,0.2); }
.page-banner .breadcrumb__current { color: rgba(255,255,255,0.75); }

/* ─── Page banner with custom hero image ─────────────────────────────────── */
.page-banner--has-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 130px 0 80px;
}
/* Dark scrim so text is always legible over any photo */
.page-banner--has-image::before {
  background: linear-gradient(
    135deg,
    rgba(10,10,10,0.72) 0%,
    rgba(10,10,10,0.55) 50%,
    rgba(213,34,32,0.18) 100%
  ) !important;
}
/* Stronger h1 + p contrast when over a photo */
.page-banner--has-image h1 { text-shadow: 0 2px 12px rgba(0,0,0,0.5); }
.page-banner--has-image p  { color: rgba(255,255,255,0.75); text-shadow: 0 1px 6px rgba(0,0,0,0.4); }

/* ─── Careers slide-over job detail panel ────────────────────────────────── */
.job-drawer-overlay {
  position: fixed; inset: 0; z-index: 8000;
  background: rgba(0,0,0,0);
  pointer-events: none;
  transition: background 0.3s ease;
}
.job-drawer-overlay.is-open {
  background: rgba(0,0,0,0.55);
  pointer-events: all;
}
.job-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(520px, 100vw);
  background: var(--white);
  z-index: 8001;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  overflow: hidden;
  box-shadow: -8px 0 40px rgba(0,0,0,0.18);
}
.job-drawer.is-open { transform: translateX(0); }
.job-drawer__hero {
  position: relative; flex-shrink: 0;
  height: 220px; overflow: hidden;
  background: var(--dark);
}
.job-drawer__hero img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; opacity: 0.85;
}
.job-drawer__hero-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1f2c 0%, #2a1a1a 100%);
  font-size: 3rem;
}
.job-drawer__close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,0.5); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; line-height: 1;
  transition: background 0.15s;
  z-index: 1;
}
.job-drawer__close:hover { background: var(--red); }
.job-drawer__body {
  flex: 1; overflow-y: auto;
  padding: 28px 28px 40px;
  scrollbar-width: thin;
}
.job-drawer__meta {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 20px;
}
.job-drawer__meta .badge {
  font-size: .72rem; padding: 4px 10px;
  border-radius: 20px; font-weight: 700;
}
.job-drawer__title {
  font-size: 1.5rem; font-weight: 800;
  line-height: 1.25; margin-bottom: 8px;
  color: var(--text);
}
.job-drawer__location {
  font-size: .85rem; color: var(--text-muted);
  margin-bottom: 24px; display: flex; align-items: center; gap: 6px;
}
.job-drawer__section { margin-bottom: 24px; }
.job-drawer__section-title {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--red); margin-bottom: 10px;
  padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.job-drawer__section p,
.job-drawer__section ul,
.job-drawer__section ol {
  font-size: .9rem; color: var(--text); line-height: 1.75;
}
.job-drawer__section ul { padding-left: 1.4em; }
.job-drawer__section ul li { margin-bottom: .35em; }
.job-drawer__footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--white);
}
.job-drawer__apply-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; padding: 15px;
  background: var(--red); color: #fff;
  border: none; border-radius: 8px;
  font-size: .95rem; font-weight: 700;
  cursor: pointer; text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.job-drawer__apply-btn:hover { background: #b01b19; transform: translateY(-1px); }

/* Job card — now has a hover that hints it's clickable */
.job-card { cursor: pointer; }
.job-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.12); transform: translateY(-2px); }

/* ─── Scroll Reveal ──────────────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
/* Tablet ≤900px: Brand full-width, Pages | Services side by side, Contact full-width. */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand      { grid-column: 1 / -1; }
  .footer-col--contact { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  :root { --section-v: 64px; }
  .nav__links, .nav__lang { display: none; }
  .nav__globe { display: none; }
  .nav__burger { display: flex; }
  /* Hide the header-level yin-yang on mobile — it lives inside the drawer now,
     so the header stays uncluttered and the logo has more breathing room. */
  .site-header > .container .nav > #themeToggle.nav__yinyang { display: none; }
  .hero__content h1 { font-size: 2.2rem; }
  .expertise-grid, .packages-grid { grid-template-columns: 1fr 1fr; }
  .pz-thumb { width: 80px; height: 80px; }
  .projects-grid, .news-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-intro { grid-template-columns: 1fr; gap: 40px; }
  .gifts-grid { grid-template-columns: repeat(3,1fr); }
  /* Stats stay in a single row even on tablets — they're more impactful as a
     unit than stacked. Borders kept between items. */
  .stats-bar__inner { flex-wrap: nowrap; }
  .stat-item { padding: 22px 10px; }
}
@media (max-width: 600px) {
  :root { --section-v: 48px; }
  .expertise-grid, .packages-grid { grid-template-columns: 1fr; }
  .pz-num { font-size: 1.5rem; min-width: 44px; }
  .pz-thumb { width: 64px; height: 64px; }
  .pz-row { gap: 14px; padding: 18px 0; }
  .pz-info h3 { font-size: .95rem; }
  .pz-info p  { font-size: .93rem; }
  .projects-grid, .news-grid, .gifts-grid { grid-template-columns: 1fr; }
  .project-card__img-wrap { aspect-ratio: 16/9; }
  .form-row { grid-template-columns: 1fr; }
  .project-hero__content h1 { font-size: clamp(1.2rem, 5.5vw, 1.8rem); }

  /* Stats: keep all 4 in a single row on phones — smaller padding + smaller
     numbers + tight labels. Simple and predictable. */
  .stats-bar__inner { flex-wrap: nowrap; }
  .stat-item {
    flex: 1 1 0;
    padding: 18px 8px;
    border-right: 1px solid rgba(255,255,255,0.12);
    border-bottom: none;
    min-width: 0;
  }
  .stat-item__number { font-size: clamp(1.3rem, 6vw, 1.9rem); gap: 1px; }
  .stat-item__suffix { font-size: 0.95rem; }
  .stat-item__label {
    font-size: 0.55rem;
    letter-spacing: 0.06em;
    line-height: 1.25;
    margin-top: 6px;
    word-break: break-word;
  }
}
@media (max-width: 600px) {
  /* Mobile: brand full-width, Pages | Services side by side, Contact full-width. */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-brand      { grid-column: 1 / -1; }
  .footer-col--contact { grid-column: 1 / -1; }
}

/* ── Floating Action Buttons ─────────────────────────────────────────────── */
.fab-group {
  position: fixed; right: 20px; bottom: 28px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  z-index: 400;
  transition: opacity .35s ease, transform .35s ease;
}
.fab-group--hidden {
  opacity: 0;
  transform: translateY(16px) scale(0.8);
  pointer-events: none;
}
.fab {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: transform .2s, box-shadow .2s;
  border: none; font-size: 1rem;
}
.fab:hover { transform: scale(1.05); box-shadow: 0 6px 24px rgba(0,0,0,.3); }
.fab--whatsapp{ background: #25d366; }
.fab--top     { background: rgba(30,30,30,.85); backdrop-filter: blur(8px); width: 40px; height: 40px; }

/* Zalo: SVG carries its own brand circle → FAB background is transparent.
   We just give it a soft shadow + a subtle ring on hover. */
.fab--zalo {
  background: transparent;
  box-shadow: 0 4px 14px rgba(0, 104, 255, 0.35);
  padding: 0;
  overflow: visible;
}
.fab--zalo svg { width: 100%; height: 100%; display: block; border-radius: 50%; }
.fab--zalo:hover { box-shadow: 0 6px 22px rgba(0, 104, 255, 0.5); }

/* Phone: unfolds leftward on hover — icon stays on the right, number reveals to the left. */
.fab--phone {
  background: var(--red);
  border-radius: 26px;       /* overrides .fab's 50% — stays a circle at 52×52, pill when wider */
  width: 52px;
  overflow: hidden;
  justify-content: flex-start; /* icon on the left — moves with the expanding edge */
  gap: 0;
  transition: width .45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow .2s;
}
.fab--phone:hover,
.fab--phone:focus-visible {
  width: 210px;
  transform: none;
  box-shadow: 0 6px 24px rgba(0,0,0,.3);
}
.fab__phone-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fab__phone-num {
  color: #fff;
  font-size: 0.84rem; font-weight: 700; letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 0 18px 0 4px;
  opacity: 0;
  transition: opacity .18s ease;
}
.fab--phone:hover .fab__phone-num,
.fab--phone:focus-visible .fab__phone-num {
  opacity: 1;
}
@media (max-width: 600px) {
  .fab--phone { width: 52px !important; }
  .fab__phone-num { display: none; }
}

/* ── Featured Projects — Horizontal Carousel (homepage) ────────────────── */
.projects-carousel-wrap {
  position: relative; padding: 0 60px; margin-top: 48px;
}
.projects-carousel {
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-behavior: smooth; padding: 8px 4px 16px;
}
.projects-carousel::-webkit-scrollbar { display: none; }
.pcar-item {
  flex: 0 0 340px; scroll-snap-align: start;
  border-radius: 12px; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .3s;
}
.pcar-item:hover { transform: translateY(-6px); }
.pcar-img-wrap {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: var(--surface);
}
.pcar-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  filter: sepia(40%) saturate(130%) hue-rotate(8deg) brightness(.92) contrast(1.05);
  transition: filter .4s, transform .4s;
}
.pcar-item:hover .pcar-img-wrap img { filter: none; transform: scale(1.04); }
.pcar-img-placeholder { width:100%;height:100%;background:var(--surface); }
.pcar-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(160,16,14,.88) 0%, rgba(120,12,10,.45) 35%, transparent 68%);
  padding: 20px; display: flex; flex-direction: column; justify-content: flex-end;
  gap: 4px;
}
.pcar-tag {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: #fff; background: var(--red);
  padding: 2px 8px; border-radius: 20px;
  align-self: flex-start;
}
.pcar-overlay h3 { font-size: 1rem; font-weight: 700; color: #fff; margin: 0; line-height: 1.3; }
.pcar-client { font-size: .75rem; color: rgba(255,255,255,.6); margin: 0; }
/* Brand badge — client logo pinned top-right of project card */
.pcar-brand-badge {
  position: absolute; top: 12px; right: 12px;
  width: 72px; height: 44px;
  background: rgba(255,255,255,0.95);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  padding: 6px 8px;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.22);
  transition: opacity 0.3s, transform 0.3s;
}
.pcar-brand-badge img {
  width: 100%; height: 100%; object-fit: contain;
  filter: none !important;  /* override bronze filter on parent */
}
.pcar-item:hover .pcar-brand-badge {
  opacity: 0.95;
  transform: scale(1.06);
}

/* Section header: titles left, trusted-logos right */
.pcar-section__header {
  display: flex; align-items: flex-end;
  justify-content: space-between; gap: 40px;
  flex-wrap: wrap;
}
.pcar-section__titles { flex: 1; min-width: 260px; }
.pcar-section__trusted {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  flex-shrink: 0;
}
.pcar-trusted-label {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.35);
}
.pcar-trusted-logos {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end;
}
.pcar-trusted-logo {
  width: 52px; height: 32px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  padding: 4px 6px;
  transition: background 0.3s, border-color 0.3s, transform 0.2s;
  text-decoration: none;
}
.pcar-trusted-logo:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(213,34,32,0.5);
  transform: translateY(-2px);
}
.pcar-trusted-logo img {
  width: 100%; height: 100%; object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.6);
  transition: filter 0.3s, opacity 0.3s;
}
.pcar-trusted-logo:hover img {
  filter: brightness(0) invert(1) opacity(1);
}
@media (max-width: 768px) {
  .pcar-section__header { flex-direction: column; align-items: flex-start; }
  .pcar-section__trusted { align-items: flex-start; }
  .pcar-trusted-logos    { justify-content: flex-start; }
}

/* Featured Projects arrows — match the other carousels: white circle, red on hover, 50px from edge */
.pcar-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--white); color: var(--text);
  border: 2px solid var(--border);
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.pcar-nav:hover {
  background: var(--red); color: #fff; border-color: var(--red);
  box-shadow: 0 6px 22px rgba(213, 34, 32, 0.28);
  transform: translateY(-50%) scale(1.06);
}
.pcar-nav:active { transform: translateY(-50%) scale(0.96); }
/* In dark mode, sections are truly dark — use translucent glass nav buttons */
[data-theme="dark"] .section--dark .pcar-nav {
  background: rgba(255,255,255,0.1); color: #fff;
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
[data-theme="dark"] .section--dark .pcar-nav:hover {
  background: var(--red); border-color: var(--red);
  box-shadow: 0 6px 22px rgba(213,34,32,0.35);
}
.pcar-nav--prev { left: 50px; }
.pcar-nav--next { right: 50px; }
@media (max-width: 900px) {
  .pcar-nav--prev { left: 16px; }
  .pcar-nav--next { right: 16px; }
}
@media (max-width: 600px) {
  .pcar-nav { width: 38px; height: 38px; }
  .pcar-nav--prev { left: 8px; }
  .pcar-nav--next { right: 8px; }
  .pcar-item { flex: 0 0 240px; }
  .pcar-img-wrap { aspect-ratio: 16/9; }
}

/* ══════════════════════════════════════════════════════════════════════════
   Trusted Brands — Dual-row Logo Marquee (homepage)
   Two rows, opposite scroll directions, infinite seamless loop
   ══════════════════════════════════════════════════════════════════════════ */
/* Warm cream backdrop so light logos pop instead of blending into the page.
   Combined with the darker filter on .client-card img below. */
.clients-section {
  background:
    linear-gradient(180deg, rgba(213,34,32,0.025), transparent 30%),
    var(--off-white);                /* MARCOMS warm tone (#f8f7f4) */
  position: relative;
}
.clients-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: rgba(0,0,0,0.06);
}

/* Fade left/right edges for polished infinite feel */
.clients-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right,
    transparent 0, black 80px,
    black calc(100% - 80px), transparent 100%);
  mask-image: linear-gradient(to right,
    transparent 0, black 80px,
    black calc(100% - 80px), transparent 100%);
  margin-top: 36px;
}
.clients-row {
  display: flex;
  overflow: hidden;
}
.clients-row + .clients-row { margin-top: 12px; }

/* Track holds originals + duplicate for seamless loop. Animates 0 → -50%. */
.clients-track {
  display: flex;
  flex-shrink: 0;
  animation: marquee-ltr 32s linear infinite;
  will-change: transform;
}
.clients-row:hover .clients-track { animation-play-state: paused; }
.clients-row--reverse .clients-track {
  animation-name: marquee-rtl;
  animation-duration: 38s;
}
@keyframes marquee-ltr {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-rtl {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

/* Sized 150% larger per user request */
.client-card {
  flex: 0 0 auto;
  background: var(--white);
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: center;
  min-width: 260px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-top:    1px solid var(--border);
  text-decoration: none;
  transition: background var(--dur), box-shadow var(--dur);
}
.client-card:hover { background: var(--off-white); }
.client-card img {
  width: 220px; height: 100px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.45s var(--ease);
}
.client-card:hover img { filter: grayscale(0%) opacity(1); }

@media (max-width: 600px) {
  .client-card { min-width: 190px; padding: 12px 16px; }
  .client-card img { width: 160px; height: 80px; }
}

/* ── Testimonials Carousel ───────────────────────────────────────────────── */
.testimonials-carousel {
  display: flex; gap: 24px; overflow: hidden; position: relative;
}
/* Testimonial card — horizontal: author column left, quote right */
.tcar-item {
  flex: 0 0 100%; display: none;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 44px 48px;
  max-width: 820px; margin: 0 auto;
  /* horizontal layout */
  flex-direction: row; gap: 40px; align-items: flex-start;
}
.tcar-item.active { display: flex; }
/* Author column (left) */
.tcar-author {
  display: flex; flex-direction: column; align-items: center;
  gap: 12px; flex: 0 0 120px; text-align: center;
}
.tcar-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.tcar-avatar--initials {
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 700;
  width: 80px; height: 80px; border-radius: 50%; flex-shrink: 0;
}
.tcar-name { font-weight: 700; font-size: .9rem; }
.tcar-role { font-size: .72rem; color: var(--text-muted); line-height: 1.4; }
/* Quote column (right) */
.tcar-quote {
  flex: 1; border-left: 3px solid var(--red); padding-left: 32px;
}
.tcar-quote p {
  font-size: 1.05rem; font-style: italic; line-height: 1.85;
  color: var(--text-mid); margin: 0;
}
.tcar-quote p::before {
  content: '"'; font-size: 3.5rem; color: var(--red); line-height: .5;
  display: block; margin-bottom: 12px; font-style: normal;
}
@media (max-width: 640px) {
  .tcar-item.active { flex-direction: column; gap: 24px; }
  .tcar-author { flex-direction: row; text-align: left; flex: auto; }
  .tcar-quote { border-left: none; border-top: 3px solid var(--red); padding-left: 0; padding-top: 20px; }
}
.tcar-dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.tcar-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: var(--border); cursor: pointer; transition: background .2s, width .2s;
  padding: 0;
}
.tcar-dot.active { background: var(--red); width: 24px; border-radius: 4px; }

/* ─── Team Carousel (About page) ─────────────────────────────────────────── */
.team-carousel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.team-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow var(--dur), transform var(--dur);
  text-align: center;
}
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.team-card__photo-wrap {
  width: 100%; aspect-ratio: 1/1; overflow: hidden;
  background: var(--off-white);
}
.team-card__photo {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s var(--ease);
}
.team-card:hover .team-card__photo { transform: scale(1.05); }
.team-card__initials {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem; font-weight: 800; color: var(--red);
  background: linear-gradient(135deg, var(--off-white) 0%, #e8e8e8 100%);
}
.team-card__body { padding: 20px 16px 24px; }
.team-card__name { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.team-card__role {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--red); margin-bottom: 10px;
}
.team-card__bio {
  font-size: 0.78rem; color: var(--text-muted); line-height: 1.65;
}
@media (max-width: 900px) {
  .team-carousel { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .team-carousel { grid-template-columns: 1fr; }
}



/* ══════════════════════════════════════════════════════════════════════════
   PDF Flipbooks — Catalog index + single-viewer
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Catalog tile listing ───────────────────────────────────────────────── */
.catalog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 56px;
}
.catalog-tile {
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.4s var(--ease), transform 0.3s var(--ease), border-color 0.3s;
}
.catalog-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.12);
  border-color: var(--red);
}
.catalog-tile__cover {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f0f0 0%, #d8d8d8 100%);
}
.catalog-tile__cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.catalog-tile:hover .catalog-tile__cover img { transform: scale(1.04); }
.catalog-tile__cover-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.catalog-tile__hover {
  position: absolute; inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20'%3E%3Cpath d='M0 20 a20 20 0 0 0 40 0' fill='none' stroke='white' stroke-opacity='0.18' stroke-width='1'/%3E%3Cpath d='M-20 10 a20 20 0 0 0 40 0' fill='none' stroke='white' stroke-opacity='0.18' stroke-width='1'/%3E%3Cpath d='M20 10 a20 20 0 0 0 40 0' fill='none' stroke='white' stroke-opacity='0.18' stroke-width='1'/%3E%3C/svg%3E"),
    linear-gradient(to top, rgba(213,34,32,0.95) 0%, rgba(213,34,32,0.5) 55%, rgba(0,0,0,0.35) 100%);
  background-size: 40px 20px, 100% 100%;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.catalog-tile:hover .catalog-tile__hover { opacity: 1; }
.catalog-tile__open {
  display: inline-flex; align-items: center; gap: 8px;
  color: #fff;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 18px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 4px;
}
.catalog-tile__body { padding: 18px 22px 22px; }
.catalog-tile__title {
  font-size: 1rem; font-weight: 700; color: var(--text);
  margin: 0 0 6px; line-height: 1.3;
}
.catalog-tile__desc {
  font-size: 0.8rem; color: var(--text-muted); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ── Catalogs section on homepage — inline embed (no separate page) ─────── */
.catalogs-inline {
  position: relative; overflow: hidden; isolation: isolate;
  background: #f5f1ea;
  padding: 104px 0 120px;
}
[data-theme="dark"] .catalogs-inline { background: #1a1c1f; }

.catalog-shader-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 0;
}

.catalogs-inline__content {
  position: relative; z-index: 1;
  transform: translateZ(0);
}

.cat-section-headline {
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
}
.cat-stage {
  margin-top: 40px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  min-height: 480px;
  position: relative;
  overflow: hidden;
  transition: min-height 0.4s ease;
}
[data-theme="dark"] .cat-stage { background: var(--off-white); }

/* IDLE state — cover + open button */
.cat-idle {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
  padding: 48px 56px;
}
.cat-idle__cover {
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, #ede5d8 0%, #ddd3c0 100%);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  display: flex; align-items: center; justify-content: center;
}
.cat-idle__cover img { width: 100%; height: 100%; object-fit: cover; }
.cat-idle__cover-placeholder { color: var(--red); opacity: 0.4; }
.cat-idle__meta h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  font-weight: 700; line-height: 1.2;
  margin: 0 0 8px; color: var(--text);
}
.cat-idle__pages {
  font-size: 0.78rem; color: var(--text-muted); margin: 0 0 22px;
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600;
}
@media (max-width: 700px) {
  .cat-idle { grid-template-columns: 1fr; gap: 24px; padding: 32px 24px; }
  .cat-idle__cover { max-width: 220px; margin: 0 auto; }
  .cat-idle__meta  { text-align: center; }
}

/* LOADING state — Book-page-flip loader (MARCOMS palette) */
.cat-loader {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--white); z-index: 5;
}
[data-theme="dark"] .cat-loader { background: var(--off-white); }

.book-loader {
  --bg-gradient: linear-gradient(135deg, #D52220, #b51c1a 60%, #7a1310);
  --shadow:    rgba(213, 34, 32, 0.28);
  --text:      var(--text-mid);
  --page:      rgba(255, 255, 255, 0.48);
  --page-fold: rgba(255, 255, 255, 0.65);
  --duration:  1.8s;
  width: 280px; height: 200px;
  position: relative;
  margin-bottom: 30px;
}
.book-loader::before,
.book-loader::after {
  --r: -6deg;
  content: ""; position: absolute;
  bottom: 8px; width: 120px; top: 80%;
  box-shadow: 0 16px 12px var(--shadow);
  transform: rotate(var(--r));
}
.book-loader::before { left: 4px; }
.book-loader::after  { --r: 6deg; right: 4px; }

.book-loader > div {
  width: 100%; height: 100%;
  border-radius: 14px;
  position: relative; z-index: 1;
  perspective: 800px;
  box-shadow: 0 8px 18px var(--shadow);
  background-image: var(--bg-gradient);
}
.book-loader ul { margin: 0; padding: 0; list-style: none; position: relative; }
.book-loader li {
  --r: 180deg; --o: 0; --c: var(--page);
  position: absolute; top: 15px; left: 15px;
  transform-origin: 100% 50%;
  color: var(--c); opacity: var(--o);
  transform: rotateY(var(--r));
  animation: var(--duration) ease infinite;
}
.book-loader li:nth-child(2) { --c: var(--page-fold); animation-name: cat-page-2; }
.book-loader li:nth-child(3) { --c: var(--page-fold); animation-name: cat-page-3; }
.book-loader li:nth-child(4) { --c: var(--page-fold); animation-name: cat-page-4; }
.book-loader li:nth-child(5) { --c: var(--page-fold); animation-name: cat-page-5; }
.book-loader li svg { width: 130px; height: 170px; display: block; }
.book-loader li:first-child { --r: 0deg; --o: 1; }
.book-loader li:last-child  { --o: 1; }

.book-loader__label {
  display: block; left: 0; right: 0; top: 100%;
  margin-top: 22px; text-align: center;
  color: var(--text); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.02em;
}
.book-loader__pct {
  display: inline-block; margin-left: 8px;
  color: var(--red); font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@keyframes cat-page-2 {
  0%   { transform: rotateY(180deg); opacity: 0; }
  20%  { opacity: 1; }
  35%, 100% { opacity: 0; }
  50%, 100% { transform: rotateY(0deg); }
}
@keyframes cat-page-3 {
  15% { transform: rotateY(180deg); opacity: 0; }
  35% { opacity: 1; }
  50%, 100% { opacity: 0; }
  65%, 100% { transform: rotateY(0deg); }
}
@keyframes cat-page-4 {
  30% { transform: rotateY(180deg); opacity: 0; }
  50% { opacity: 1; }
  65%, 100% { opacity: 0; }
  80%, 100% { transform: rotateY(0deg); }
}
@keyframes cat-page-5 {
  45% { transform: rotateY(180deg); opacity: 0; }
  65% { opacity: 1; }
  80%, 100% { opacity: 0; }
  95%, 100% { transform: rotateY(0deg); }
}

/* ACTIVE viewer — flipbook + toolbar + tip */
.cat-viewer {
  padding: 16px 12px 20px;
  display: flex; flex-direction: column; align-items: center;
  background: transparent; min-height: 540px;
}
.cat-viewer:fullscreen { background: #1a1a1a; padding: 32px; }
.cat-viewer .flipbook-body    { width: 100%; }
.cat-viewer .flipbook-stage   { margin: 0 auto; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
/* Toolbar moved BELOW the flipbook, next to the tip */
.cat-viewer .flipbook-toolbar { margin: 22px 0 8px; }
.cat-viewer .flipbook-hint    { margin-top: 4px; color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) {
  .book-loader li { animation: none; }
  .book-loader li:not(:first-child):not(:last-child) { opacity: 0.4; }
}

/* ── Catalog hero — single centered catalog card ────────────────────────── */
.cat-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 16px 0 8px;
}
/* Title sits ABOVE the card */
.cat-hero__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  letter-spacing: 0.01em;
  margin: 0;
}
/* Card = cover image + open button merged as one unit */
.cat-hero__card {
  width: 340px;
  max-width: 82vw;
  border-radius: 10px;
  overflow: hidden;
  border: 3px solid var(--red);
  box-shadow:
    0 0 0 2px var(--red),
    0 0 28px rgba(213,34,32,0.45),
    0 8px 32px rgba(0,0,0,0.22);
  background: linear-gradient(135deg, #ede5d8 0%, #ddd3c0 100%);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cat-hero__card:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow:
    0 0 0 2px var(--red),
    0 0 42px rgba(213,34,32,0.62),
    0 14px 42px rgba(0,0,0,0.3);
}
/* Cover fills the top portion of the card */
.cat-hero__cover {
  width: 100%;
  aspect-ratio: 3/4;
  display: flex; align-items: center; justify-content: center;
}
.cat-hero__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-hero__cover svg { color: var(--red); opacity: 0.4; }
/* Open button flush against cover bottom — part of the card */
.cat-hero__open-btn {
  width: 100%;
  padding: 13px 16px;
  background: var(--red);
  color: #fff;
  border: none;
  border-top: 1px solid rgba(0,0,0,0.12);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  display: block;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: background 0.2s, letter-spacing 0.25s;
}
.cat-hero__open-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -85%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}
.cat-hero__card:hover .cat-hero__open-btn {
  background: #c0201e;
  letter-spacing: 0.18em;
}
.cat-hero__card:hover .cat-hero__open-btn::after {
  animation: cat-btn-shimmer 0.55s ease forwards;
}
@keyframes cat-btn-shimmer {
  from { left: -85%; }
  to   { left: 130%; }
}
/* Page count sits BELOW the card */
.cat-hero__pages {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}
[data-theme="dark"] .cat-hero__card { background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%); }

/* ── Flipbook single-viewer page ────────────────────────────────────────── */
.flipbook-section {
  /* Top padding accounts for the fixed site-header (76 px tall + breathing
     room) — without this the breadcrumb back-link sits behind the logo. */
  padding: 110px 0 80px;
  background: var(--off-white);
  min-height: 80vh;
}
@media (max-width: 900px) {
  .flipbook-section { padding-top: 96px; }
}
.flipbook-crumb {
  margin-bottom: 16px;
}
.flipbook-crumb a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.2s;
}
.flipbook-crumb a:hover { color: var(--red); }
.flipbook-header {
  text-align: center;
  margin-bottom: 32px;
}
.flipbook-header h1 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
.flipbook-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
}

/* The viewer container */
.flipbook-viewer {
  position: relative;
  background: #2a2a2a;
  border-radius: var(--radius-lg);
  padding: 32px 16px 24px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 48px rgba(0,0,0,0.18);
}
.flipbook-viewer:fullscreen {
  background: #1a1a1a;
  padding: 32px;
}
.flipbook-stage {
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* Loading spinner */
.flipbook-loading {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 18px; color: #ddd;
  padding: 60px 20px;
  font-size: 0.88rem;
}
.flipbook-spinner {
  width: 42px; height: 42px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: fb-spin 0.8s linear infinite;
}
@keyframes fb-spin { to { transform: rotate(360deg); } }

/* Toolbar */
.flipbook-toolbar {
  display: flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 6px 10px;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}
.flipbook-btn {
  width: 36px; height: 36px;
  border: none; background: transparent;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}
.flipbook-btn:hover { background: rgba(255,255,255,0.15); color: #fff; }
.flipbook-btn:active { background: var(--red); }
.flipbook-page-indicator {
  color: #fff;
  font-size: 0.85rem; font-weight: 600;
  padding: 0 14px;
  letter-spacing: 0.04em;
  min-width: 76px;
  text-align: center;
}
.flipbook-divider {
  width: 1px; height: 24px;
  background: rgba(255,255,255,0.15);
  margin: 0 4px;
}

/* Hint below viewer */
.flipbook-hint {
  text-align: center;
  margin-top: 18px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Flipbook v2 enhancements: thumbs + side arrows + zoom + share ───────── */
.flipbook-body {
  display: flex;
  gap: 16px;
  width: 100%;
  align-items: flex-start;
  justify-content: center;
  flex: 1;
  min-height: 0;
}
.flipbook-thumbs {
  width: 130px;
  max-height: 70vh;
  overflow-y: auto;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 10px;
  flex-shrink: 0;
}
.flipbook-thumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.fb-thumb {
  position: relative;
  background: rgba(255,255,255,0.05);
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}
.fb-thumb img { display: block; width: 100%; height: auto; }
.fb-thumb__n {
  position: absolute; bottom: 2px; right: 4px;
  font-size: 0.62rem; font-weight: 700;
  color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  background: rgba(0,0,0,0.5);
  padding: 1px 5px; border-radius: 3px;
}
.fb-thumb:hover { border-color: rgba(213,34,32,0.5); transform: scale(1.02); }
.fb-thumb--active { border-color: var(--red); }

.flipbook-stage-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  flex: 1; min-width: 0;
}
.flipbook-side-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(0,0,0,0.55); color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
}
.flipbook-side-arrow:hover { background: var(--red); border-color: var(--red); transform: translateY(-50%) scale(1.06); }
.flipbook-side-arrow--prev { left: 8px; }
.flipbook-side-arrow--next { right: 8px; }

.flipbook-btn--active {
  background: var(--red) !important;
  color: #fff !important;
}

/* ── "···" More dropdown menu ──────────────────────────────────────────────── */
.flipbook-more-wrap {
  position: relative;
}
.flipbook-dropdown {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  background: rgba(12, 14, 18, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 6px;
  z-index: 200;
  box-shadow: 0 -4px 40px rgba(0,0,0,0.6);
  animation: fb-dropdown-in 0.15s ease;
}
@keyframes fb-dropdown-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.flipbook-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 13px;
  background: transparent;
  border: none;
  border-radius: 7px;
  color: rgba(255,255,255,0.82);
  font-size: 0.865rem;
  font-family: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.flipbook-dropdown-item svg { flex-shrink: 0; opacity: 0.7; }
.flipbook-dropdown-item:hover { background: rgba(255,255,255,0.1); color: #fff; }
.flipbook-dropdown-item:hover svg { opacity: 1; }
.flipbook-dropdown-item--close { color: rgba(213,34,32,0.85); }
.flipbook-dropdown-item--close:hover { background: rgba(213,34,32,0.15); color: #ff4d4a; }
.flipbook-dropdown-sep {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 5px 10px;
}
.flipbook-page-sep {
  margin: 0 2px;
  opacity: 0.55;
}

.flipbook-toast {
  position: fixed;
  bottom: 32px; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,0.85); color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.85rem;
  z-index: 9999;
  box-shadow: 0 6px 28px rgba(0,0,0,0.4);
  animation: fb-toast-in 0.2s ease;
}
@keyframes fb-toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* Mobile */
@media (max-width: 700px) {
  .flipbook-thumbs { display: none; }
  .flipbook-side-arrow { width: 36px; height: 36px; }
}
@media (max-width: 600px) {
  .flipbook-viewer { padding: 18px 6px 16px; min-height: 420px; }
  .flipbook-toolbar { flex-wrap: wrap; justify-content: center; }
}


/* ═══════════════════════════════════════════════════════════════════════════
   Video Gallery + Lightbox (public /videos)
   ═══════════════════════════════════════════════════════════════════════════ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 56px;
}
.video-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.4s var(--ease), transform 0.3s var(--ease), border-color 0.3s;
}
.video-card:hover, .video-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.10);
  border-color: var(--red);
  outline: none;
}
.video-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}
.video-card__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.video-card:hover .video-card__thumb img { transform: scale(1.05); }
.video-card__placeholder { width: 100%; height: 100%; background: linear-gradient(135deg,#1a1a1a,#2a2a2a); }
.video-card__play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  background: rgba(213,34,32,0.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.5);
  transition: transform 0.2s var(--ease), background 0.2s;
}
.video-card:hover .video-card__play { transform: translate(-50%,-50%) scale(1.1); background: var(--red); }
.video-card__body { padding: 18px 22px 22px; }
.video-card__title {
  font-size: 1rem; font-weight: 700; margin: 0 0 6px; color: var(--text); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-card__desc {
  font-size: 0.82rem; color: var(--text-muted); margin: 0; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Lightbox */
.video-lightbox {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  animation: vl-fade 0.2s ease;
}
@keyframes vl-fade { from { opacity: 0; } to { opacity: 1; } }
.video-lightbox__inner {
  width: 100%; max-width: 1100px;
  aspect-ratio: 16/9;
  position: relative;
}
.video-lightbox__player { width: 100%; height: 100%; }
.video-lightbox__player iframe {
  width: 100%; height: 100%; border: 0; border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  display: block;
}
.video-lightbox__close {
  position: absolute; top: 18px; right: 18px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.1); color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  z-index: 10001;
}
.video-lightbox__close:hover { background: var(--red); border-color: var(--red); transform: scale(1.06); }


/* ═══════════════════════════════════════════════════════════════════════════
   PUBLIC PROJECTS PAGE — pill search bar with category dropdown
   ═══════════════════════════════════════════════════════════════════════════ */
.proj-toolbar {
  display: flex; flex-direction: column; gap: 12px; margin: -8px 0 28px;
}
.proj-search-row {
  display: flex; align-items: center; gap: 12px; width: 100%;
}
.proj-search {
  display: flex; align-items: center;
  background: var(--white);
  border: 1.5px solid rgba(0,0,0,.2);
  border-radius: 9999px;
  height: 46px; min-height: 46px;
  flex: 1;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.proj-search:focus-within {
  border-color: rgba(0,0,0,.4);
  box-shadow: 0 2px 10px rgba(0,0,0,.07);
}
.proj-search__icon {
  display: flex; align-items: center;
  color: var(--text-muted);
  padding-left: 18px; flex-shrink: 0; pointer-events: none;
}
.proj-search__input {
  font-family: 'Montserrat', sans-serif;
  flex: 1; min-width: 0; height: 100%;
  padding: 0 16px 0 10px;
  border: 0; background: transparent; outline: none;
  color: var(--text); font-size: .88rem; box-shadow: none !important;
}
.proj-search__input:focus,
.proj-search__input:focus-visible { outline: none; box-shadow: none; border: none; }
.proj-search__input::placeholder { color: var(--text-muted); }
.proj-search__input::-webkit-search-cancel-button { display: none; }
.proj-search__input::-webkit-search-decoration { display: none; }
/* vertical separator between text input and category dropdown */
.proj-search__sep {
  flex-shrink: 0; width: 1px; height: 22px;
  background: rgba(0,0,0,.14); margin: 0 4px;
}
/* category dropdown inside pill */
.proj-search__drop {
  flex-shrink: 0; position: relative;
  display: flex; align-items: center;
}
.proj-search__cat {
  -webkit-appearance: none; appearance: none;
  background: transparent; border: 0; outline: none;
  font-family: 'Montserrat', sans-serif; font-size: .82rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer;
  padding: 0 28px 0 20px; height: 44px; max-width: 160px;
}
.proj-search__cat:focus,
.proj-search__cat:focus-visible { outline: none; }
.proj-search__drop-arrow {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: var(--text-muted);
}
/* X clear button inside pill */
.proj-search__x {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  border: 0; cursor: pointer;
  background: rgba(0,0,0,.07); color: var(--text-muted);
  display: none; align-items: center; justify-content: center;
  margin: 0 7px 0 4px; transition: background .15s, color .15s;
}
.proj-search__x:hover { background: rgba(0,0,0,.13); color: var(--text); }
.proj-search__x:focus,
.proj-search__x:focus-visible { outline: none; }
/* legacy outside-pill clear link (used by news.php) */
.proj-search__clear {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,.07); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: background .2s, color .2s;
}
.proj-search__clear:hover { background: rgba(0,0,0,.13); color: var(--text); }

/* Category chips */
.proj-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.proj-chip {
  display: inline-flex; align-items: center;
  padding: 5px 14px; border-radius: 9999px;
  font-family: 'Montserrat', sans-serif; font-size: .78rem; font-weight: 600;
  color: var(--text-muted); background: transparent;
  border: 1.5px solid var(--border);
  text-decoration: none; transition: color .15s, background .15s, border-color .15s;
}
.proj-chip:hover { color: var(--text); border-color: rgba(0,0,0,.3); }
.proj-chip--active { color: var(--red); background: rgba(213,34,32,.06); border-color: rgba(213,34,32,.3); }

/* Dark mode */
[data-theme="dark"] .proj-search { background: #1c1d24; border-color: rgba(255,255,255,.15); }
[data-theme="dark"] .proj-search:focus-within { border-color: rgba(255,255,255,.3); box-shadow: none; }
[data-theme="dark"] .proj-search__input { color: #bdbecb; }
[data-theme="dark"] .proj-search__input::placeholder { color: #6b6c78; }
[data-theme="dark"] .proj-search__sep { background: rgba(255,255,255,.14); }
[data-theme="dark"] .proj-search__cat { color: #6b6c78; }
[data-theme="dark"] .proj-search__drop-arrow { color: #6b6c78; }
[data-theme="dark"] .proj-search__x { background: rgba(255,255,255,.08); color: #bdbecb; }
[data-theme="dark"] .proj-search__x:hover { background: rgba(255,255,255,.15); color: #fff; }
[data-theme="dark"] .proj-search__clear { background: rgba(255,255,255,.08); color: #bdbecb; }
[data-theme="dark"] .proj-search__clear:hover { background: rgba(255,255,255,.15); color: #fff; }
[data-theme="dark"] .proj-chip { color: #6b6c78; border-color: rgba(255,255,255,.12); }
[data-theme="dark"] .proj-chip:hover { color: #bdbecb; border-color: rgba(255,255,255,.25); }
[data-theme="dark"] .proj-chip--active { color: var(--red); background: rgba(213,34,32,.12); border-color: rgba(213,34,32,.35); }

.proj-results-meta { font-size: .78rem; color: var(--text-muted); margin: 2px 0 0 8px; font-weight: 500; }
.proj-results-meta span { color: var(--red); }


/* ═══════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY (a11y) — skip-link + global focus-visible
   ═══════════════════════════════════════════════════════════════════════════ */

/* Skip-link: hidden until keyboard focus → jumps SR/keyboard users past nav */
.skip-link {
  position: absolute;
  top: -100px; left: 16px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--red);
  color: #fff;
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: top 0.2s ease-out;
}
.skip-link:focus {
  top: 16px;
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* Main landmark — no visual change, just the SR-target */
#main-content { outline: none; }

/* Global focus-visible polish — was inconsistent across interactive elements.
   Uses :focus-visible so it doesn't show on mouse clicks (only keyboard).     */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="button"]:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
  border-radius: 3px;
}
/* Buttons that already have border-radius keep their shape */
.btn:focus-visible,
.btn--red:focus-visible,
.btn--outline-red:focus-visible,
.btn--outline-white:focus-visible {
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Service Packages — Mobile 3D rotating ring (Uiverse / musashi-13 pattern)
   On screens ≤ 768px the grid converts into a vertical-axis 3D carousel.
   --n on .packages-3d-wrap = number of cards (set by PHP)
   --i on each .package-card = its index
   --r is the ring radius — scaled to keep cards readable on small phones.
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .packages-3d-wrap {
    /* Replace the grid with a single perspective stage. */
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    min-height: 460px;
    margin: 24px auto 32px;
    perspective: 900px;
    perspective-origin: 50% 50%;
    /* Block native vertical scroll bleed when dragging the ring */
    touch-action: pan-y;
    overflow: visible;
  }
  .packages-3d-wrap::before {
    /* Inner stage that does the actual rotation. We use a pseudo-element ONLY
       for the animation root; the cards themselves remain selectable. */
    content: '';
    position: absolute; inset: 0; pointer-events: none;
  }
  .packages-3d-wrap {
    --r: 200px;                                 /* ring radius */
    transform-style: preserve-3d;
    animation: pkgRingSpin 32s linear infinite;
    will-change: transform;
  }
  .packages-3d-wrap:hover,
  .packages-3d-wrap:focus-within { animation-play-state: paused; }

  /* Force-override .reveal's transform/opacity — both rules need !important
     because .reveal has same specificity as .packages-3d-wrap .package-card.
     Keep opacity at 1 so cards stay visible without waiting for the scroll-
     reveal IO. */
  .packages-3d-wrap .package-card.reveal { opacity: 1 !important; }

  .packages-3d-wrap .package-card {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 240px !important;
    height: 340px !important;
    margin: 0 !important;
    transform-origin: center center !important;
    /* !important required to defeat .reveal's transform: translateY(28px)
       which would otherwise collapse all cards onto a single point. */
    transform:
      translate(-50%, -50%)
      rotateY(calc(360deg / var(--n) * var(--i)))
      translateZ(var(--r))
      !important;
    animation: pkgRingDim 32s linear infinite;
    animation-delay: calc(-32s / var(--n) * var(--i));
    will-change: transform, filter;
    transition: filter .2s ease;
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
    backface-visibility: visible;
  }
  .packages-3d-wrap .package-card:hover,
  .packages-3d-wrap .package-card:focus-within {
    filter: brightness(1) !important;
    animation-play-state: paused !important;
  }

  /* Hide hover-video on mobile to save bandwidth */
  .packages-3d-wrap .package-card__video-wrap { display: none; }
}

/* Pause for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .packages-3d-wrap,
  .packages-3d-wrap .package-card {
    animation: none !important;
  }
}

@keyframes pkgRingSpin {
  /* Perspective is set as a property on the wrapper — only rotate here so
     the foreshortening isn't applied twice. */
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(-360deg); }
}
@keyframes pkgRingDim {
  /* As a card sweeps to the back of the ring it dims, then brightens as it
     returns to the front. Subtle — keeps focus on the foreground card.   */
  0%   { filter: brightness(1); }
  35%  { filter: brightness(0.45); }
  50%  { filter: brightness(0.3); }
  65%  { filter: brightness(0.45); }
  100% { filter: brightness(1); }
}

/* On very small phones (<=420px) shrink the radius so cards don't clip */
@media (max-width: 420px) {
  .packages-3d-wrap { --r: 165px; min-height: 420px; }
  .packages-3d-wrap .package-card { width: 230px; height: 330px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Footer — Contact "Social Card" (Uiverse / PauloRFJ pattern)
   Four pill-tabs with hover-slide icon animation. Order matches the FAB
   group so the morph between them feels like the same elements just sliding
   home.
   ═══════════════════════════════════════════════════════════════════════════ */
.footer-contact-list { list-style: none; padding: 0; margin: 0 0 14px; }
.footer-contact-list li { margin-bottom: 6px; font-size: 0.86rem; }
.footer-phone-text {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* Footer social card — theme-aware. In bright mode the footer bg is cream
   (#f0ece4), so white-on-white containers were invisible. Now we use a
   "contrast" surface that flips with the theme.                          */
.footer-social-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(46px, auto));
  width: fit-content;
  gap: 6px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
  margin-top: 4px;
}
[data-theme="dark"] .footer-social-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

/* ── Expand-on-hover pattern ─────────────────────────────────────────────
   Each icon is a 46px square by default. On hover/focus the container
   grows wide enough to reveal the inline `.socialReveal` text label
   (Zalo number, Facebook page name, email address, phone number).
   Goal: replace the redundant "phone + email" text rows above with a
   single compact icon strip that EXPANDS to show the value on demand. */
.footer-social-card .socialContainer {
  /* Use min-width instead of width so the container can grow when its
     reveal text wants more room. */
  min-width: 46px;
  width: auto;
  height: 46px;
  padding: 0 14px;
  display: flex; align-items: center; justify-content: flex-start;
  gap: 8px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  overflow: hidden;
  border-radius: 12px 0 12px 0;
  transition: background-color .35s cubic-bezier(0.4, 0, 0.2, 1),
              transform .2s ease,
              padding .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: none !important;
  white-space: nowrap;
}
[data-theme="dark"] .footer-social-card .socialContainer {
  background: rgba(255, 255, 255, 0.10);
}
.footer-social-card .socialContainer:hover,
.footer-social-card .socialContainer:focus-visible { transform: translateY(-2px); }
.footer-social-card .socialContainer:active { transform: scale(0.96); }

.footer-social-card .containerZalo:hover,
.footer-social-card .containerZalo:focus-visible     { background-color: #0068ff; }
.footer-social-card .containerWhatsApp:hover,
.footer-social-card .containerWhatsApp:focus-visible { background-color: #25d366; }
.footer-social-card .containerFacebook:hover,
.footer-social-card .containerFacebook:focus-visible { background-color: #1877f2; }
.footer-social-card .containerEmail:hover,
.footer-social-card .containerEmail:focus-visible    { background-color: #ea4335; }
.footer-social-card .containerPhone:hover,
.footer-social-card .containerPhone:focus-visible    { background-color: var(--red); }

/* Letter marks (Z / f) + SVG icons — always white */
.footer-social-card .socialMark,
.footer-social-card .socialSvg { color: #fff; flex-shrink: 0; }
.footer-social-card .socialMark {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* The reveal text — collapsed by default (max-width 0 + opacity 0),
   expands on hover/focus. Using max-width transition keeps the layout
   smooth without measuring text width in JS. */
.footer-social-card .socialReveal {
  display: inline-block;
  max-width: 0;
  opacity: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fff;
  transition: max-width .35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity .25s ease .05s,
              margin-left .35s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: -8px;                     /* eat the gap when collapsed */
  font-variant-numeric: tabular-nums;
}
.footer-social-card .socialContainer:hover .socialReveal,
.footer-social-card .socialContainer:focus-visible .socialReveal {
  max-width: 260px;
  opacity: 1;
  margin-left: 0;
}

/* Word-completion variant for Z/f — matches the letter-mark typography so
   "Z" + "alo" reads as one fluid word "Zalo" (same for f + acebook).      */
.footer-social-card .socialReveal--word {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: -0.02em;
}
.footer-social-card .containerFacebook .socialReveal--word {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 1.05rem;                       /* facebook's lowercase reads better slightly smaller */
  letter-spacing: -0.01em;
}
/* Kill the inter-icon flex gap for the word variants so "Z" and "alo" sit
   flush together (otherwise it would read as "Z  alo"). */
.footer-social-card .containerZalo,
.footer-social-card .containerFacebook { gap: 0; }
/* And neutralise the default reveal's negative margin since there's no gap
   to "eat" anymore on these two. */
.footer-social-card .containerZalo .socialReveal--word,
.footer-social-card .containerFacebook .socialReveal--word { margin-left: 0; }

/* On phones, hover is unreliable — make the active container's reveal
   visible permanently when tapped (uses :focus-within for keyboard +
   :active for touch). The card simply wraps to a 2nd line if needed. */
@media (hover: none) {
  .footer-social-card {
    max-width: 100%;
  }
  .footer-social-card .socialContainer:focus-within .socialReveal {
    max-width: 260px;
    opacity: 1;
    margin-left: 0;
  }
}

/* Address line — uses footer-text-muted token so it switches with theme. */
.footer-address {
  margin-top: 16px;
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--footer-text-muted);
  white-space: nowrap;
  position: relative;
  z-index: 2;   /* stay above the map-container (z-index:0) on hover */
}

/* On mobile (<600px) hide the redundant phone/email text rows — the social
   card below already provides one-tap access to all four channels. */
@media (max-width: 600px) {
  .footer-contact-list { display: none; }
}
.footer-social-card .containerFacebook .socialMark {
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  font-size: 1.3rem;
}

/* Slide-in animation on hover — re-runs each time */
.footer-social-card .socialContainer:hover .socialMark,
.footer-social-card .socialContainer:hover .socialSvg {
  animation: socialSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes socialSlideIn {
  0%   { transform: translateY(-26px); opacity: 0; }
  100% { transform: translateY(0);     opacity: 1; }
}

/* ─── Footer "View on Map" button (Uiverse / dexter-st) ───────────────────
   Original values kept verbatim; minimal footer-context adaptations only:
   · --btn-color → var(--red)  (site theme colour)
   · margin-top: 10px; font-family: inherit; text-decoration: none  (footer)
   · z-index: 1 on wrapper  (footer stacking context)
   · top:-40px / left:12px  (original unitless values were invalid CSS)
   · filter: url(#footer-map-land)  (our SVG filter ID)
   NOTE: .map-btn has NO position/z-index (same as original). The map-container
   (z-index:0, absolute) intentionally paints above .map-btn so the map texture
   fills the pill on hover. overflow:hidden clips the map to the pill shape.
   ───────────────────────────────────────────────────────────────────────── */
/* ── Footer "View on Map" — cinematic rocket-launch hover ──────────────────────
   Layers (front → back):
     .vm-pin    donut+needle pin; morphs in at the "o" (JS) / centre, stays anchored
     .vm-label  the text; fades out on hover
     .vm-scene  the porthole: .vm-space (stars) + .vm-earth (zooms OUT on hover)
   The button itself is the window (overflow:hidden clips the receding Earth). */
.vm-btn {
  --dur: .75s; --ease: cubic-bezier(.45,.05,.18,1);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-width: 176px; height: 50px; padding: 0 26px; margin-top: 14px; border-radius: 50px;
  background: var(--red); color: #fff; font-weight: 600; font-size: .88rem;
  text-decoration: none; overflow: hidden; isolation: isolate; cursor: pointer;
  box-shadow: 0 6px 18px rgba(213,34,32,.30);
  transition: box-shadow .45s var(--ease), transform .45s var(--ease);
}
.vm-btn:hover, .vm-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(6,10,34,.55); outline: none; }
.vm-scene { position: absolute; inset: 0; z-index: 0; border-radius: inherit; overflow: hidden; opacity: 0; transition: opacity .4s ease; }
.vm-btn:hover .vm-scene, .vm-btn:focus-visible .vm-scene { opacity: 1; }
.vm-space { position: absolute; inset: 0; background: radial-gradient(125% 150% at 50% 125%, #244b86 0%, #0c1a3a 46%, #04070f 100%); }
.vm-space::after { content: ""; position: absolute; inset: 0; background-image:
  radial-gradient(1.3px 1.3px at 16% 26%, #fff, transparent),
  radial-gradient(1px 1px at 72% 18%, #cfe0ff, transparent),
  radial-gradient(1.4px 1.4px at 44% 54%, #fff, transparent),
  radial-gradient(1px 1px at 88% 46%, #fff, transparent),
  radial-gradient(1px 1px at 28% 78%, #bcd6ff, transparent),
  radial-gradient(1.2px 1.2px at 60% 84%, #fff, transparent); }
.vm-earth {
  position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 1; display: block;
  transform: translate(-50%,-50%) scale(2.9); transform-origin: 50% 32%;
  transition: transform var(--dur) var(--ease);
  border-radius: 50%;
  overflow: hidden;
  /* equirectangular map — prime meridian centred at rest */
  background: url('/assets/img/earth_map.png') -132px center / auto 100% repeat-x;
}
.vm-btn:hover .vm-earth, .vm-btn:focus-visible .vm-earth {
  transform: translate(-50%,-18%) scale(.74);
  /* 2 full rotations eastward, eases out exactly over Singapore */
  animation: vm-globe-to-sgp 2.2s cubic-bezier(0,0,.15,1) forwards;
}
/* Sphere shading: soft highlight top-left, darkening at edges */
.vm-earth::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(circle at 38% 36%,
      rgba(255,255,255,.18) 0%,
      rgba(255,255,255,.04) 28%,
      transparent 55%,
      rgba(0,0,10,.5) 100%);
}
/* tile width = 320 × (264 ÷ 160) = 528px; Singapore at -284px, 2 rotations = -1340px */
@keyframes vm-globe-to-sgp {
  from { background-position-x: -132px; }
  to   { background-position-x: -1340px; }
}
.vm-label { position: relative; z-index: 2; white-space: nowrap; transition: opacity .3s ease, transform .45s var(--ease); }
.vm-btn:hover .vm-label, .vm-btn:focus-visible .vm-label { opacity: 0; transform: scale(.94); }
.vm-pin { position: absolute; z-index: 3; left: 50%; top: 50%; width: 24px; height: auto; opacity: 0;
  transform: translate(-50%,-60%) scale(.6); transform-origin: 50% 100%;
  filter: drop-shadow(0 2px 5px rgba(0,0,0,.6)); transition: opacity .35s ease .12s, transform .55s var(--ease) .1s; }
.vm-btn:hover .vm-pin, .vm-btn:focus-visible .vm-pin { opacity: 1; transform: translate(-50%,-60%) scale(1); }
/* solid red map-pin with a see-through centre (evenodd punches the hole) */
.vm-pin__body { fill: var(--red); }
@media (prefers-reduced-motion: reduce) { .vm-btn, .vm-btn * { transition: none !important; } }

/* ═══ FAB ↔ Footer morph ═══════════════════════════════════════════════════
   When the footer-social-card enters the viewport, the floating right-side
   FABs scale away (they've "morphed into" the footer card). When the user
   scrolls back up out of footer range, the FABs return.
   The morph itself is a soft scale+fade; the visual continuity comes from
   the matching color palette (red Phone → red containerPhone, etc).
   The IntersectionObserver in main.js toggles `data-fab-in-footer` on <html>.
   ═════════════════════════════════════════════════════════════════════════ */
/* The "morph into footer" behaviour was killing Zalo + Phone FAB visibility
   on short pages where the footer is always near the viewport. FABs are now
   ALWAYS visible — the footer social card stays as an additional contact
   point but doesn't try to "absorb" the floating buttons. */

/* Hide the standalone "Zalo" / "Facebook" text links from the old contact list
   since the new social card replaces them. Keep phone + email as text. */
.footer-col .footer-contact-list + ul,
.footer-col .footer-social-card + ul { display: none; }

/* ── "Follow us" strip (data-driven: Instagram, YouTube, LinkedIn, TikTok) ── */
.follow-us-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.follow-us-strip__label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--footer-text-muted, #8b949e);
  margin-right: 2px;
}
.follow-us-strip__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.75);
  transition: background .15s, color .15s, transform .12s;
  text-decoration: none;
}
.follow-us-strip__link:hover,
.follow-us-strip__link:focus-visible {
  background: var(--red);
  color: #fff;
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════════════
   "View Catalog" button — Uiverse / Nawsome pencil+folder pattern
   Original (PauloRFJ/Nawsome) was indigo-grey; rethemed to MARCOMS red.
   Markup: <button class="view-catalog-btn"><div><div class="pencil"></div>
            <div class="folder"><div class="top"><svg>…</svg></div>
                                 <div class="paper"></div></div></div>Label</button>
   ═══════════════════════════════════════════════════════════════════════════ */
.view-catalog-btn {
  --color: #fff;
  --background:        var(--red, #D52220);
  --background-hover:  var(--red-dark, #b51c1a);
  --background-left:   #8A1614;        /* darker red for the left sidebar */
  --folder:            #F3E9CB;
  --folder-inner:      #BEB393;
  --paper:             #FFFFFF;
  --paper-lines:       #E8B0AE;        /* warm pinkish to read on red */
  --paper-behind:      #F6D9D8;
  --pencil-cap:        #fff;
  --pencil-top:        #ffffff;
  --pencil-middle:     #fff;
  --pencil-bottom:     #ffd9d8;
  --shadow:            rgba(85, 10, 8, .25);
  border: none;
  outline: none;
  cursor: pointer;
  position: relative;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 19px;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
  padding: 17px 29px 17px 69px;
  transition: background 0.3s, transform 0.2s;
  color: var(--color);
  background: var(--bg, var(--background));
  box-shadow: 0 6px 20px rgba(213, 34, 32, 0.25);
  font-family: inherit;
  text-transform: uppercase;
}
.view-catalog-btn:hover { transform: translateY(-1px); }
.view-catalog-btn:active { transform: translateY(0); }

.view-catalog-btn > div {
  top: 0; left: 0; bottom: 0;
  width: 53px;
  position: absolute;
  overflow: hidden;
  border-radius: 6px 0 0 6px;
  background: var(--background-left);
}
.view-catalog-btn > div .folder {
  width: 23px; height: 27px;
  position: absolute;
  left: 15px; top: 13px;
}
.view-catalog-btn > div .folder .top {
  left: 0; top: 0; z-index: 2;
  position: absolute;
  transform: translateX(var(--fx, 0));
  transition: transform 0.4s ease var(--fd, 0.3s);
}
.view-catalog-btn > div .folder .top svg {
  width: 24px; height: 27px;
  display: block;
  fill: var(--folder);
  transform-origin: 0 50%;
  transition: transform 0.3s ease var(--fds, 0.45s);
  transform: perspective(120px) rotateY(var(--fr, 0deg));
}
.view-catalog-btn > div .folder::before,
.view-catalog-btn > div .folder::after,
.view-catalog-btn > div .folder .paper {
  content: "";
  position: absolute;
  left: var(--l, 0);
  top:  var(--t, 0);
  width:  var(--w, 100%);
  height: var(--h, 100%);
  border-radius: 1px;
  background: var(--b, var(--folder-inner));
}
.view-catalog-btn > div .folder::before {
  box-shadow:
    0 1.5px 3px var(--shadow),
    0 2.5px 5px var(--shadow),
    0 3.5px 7px var(--shadow);
  transform: translateX(var(--fx, 0));
  transition: transform 0.4s ease var(--fd, 0.3s);
}
.view-catalog-btn > div .folder::after,
.view-catalog-btn > div .folder .paper {
  --l: 1px; --t: 1px; --w: 21px; --h: 25px;
  --b: var(--paper-behind);
}
.view-catalog-btn > div .folder::after {
  transform: translate(var(--pbx, 0), var(--pby, 0));
  transition: transform 0.4s ease var(--pbd, 0s);
}
.view-catalog-btn > div .folder .paper {
  z-index: 1; --b: var(--paper);
}
.view-catalog-btn > div .folder .paper::before,
.view-catalog-btn > div .folder .paper::after {
  content: "";
  width: var(--wp, 14px);
  height: 2px;
  border-radius: 1px;
  transform: scaleY(0.5);
  left: 3px;
  top: var(--tp, 3px);
  position: absolute;
  background: var(--paper-lines);
  box-shadow:
    0 12px 0 0 var(--paper-lines),
    0 24px 0 0 var(--paper-lines);
}
.view-catalog-btn > div .folder .paper::after {
  --tp: 6px; --wp: 10px;
}
.view-catalog-btn > div .pencil {
  height: 2px; width: 3px;
  border-radius: 1px 1px 0 0;
  top: 8px; left: 105%;
  position: absolute;
  z-index: 3;
  transform-origin: 50% 19px;
  background: var(--pencil-cap);
  transform: translateX(var(--pex, 0)) rotate(35deg);
  transition: transform 0.4s ease var(--pbd, 0s);
}
.view-catalog-btn > div .pencil::before,
.view-catalog-btn > div .pencil::after {
  content: "";
  position: absolute;
  display: block;
  background: var(--b, linear-gradient(var(--pencil-top) 55%, var(--pencil-middle) 55.1%, var(--pencil-middle) 60%, var(--pencil-bottom) 60.1%));
  width:  var(--w, 5px);
  height: var(--h, 20px);
  border-radius: var(--br, 2px 2px 0 0);
  top:  var(--t, 2px);
  left: var(--l, -1px);
}
.view-catalog-btn > div .pencil::before {
  -webkit-clip-path: polygon(0 5%, 5px 5%, 5px 17px, 50% 20px, 0 17px);
          clip-path: polygon(0 5%, 5px 5%, 5px 17px, 50% 20px, 0 17px);
}
.view-catalog-btn > div .pencil::after {
  --b: none;
  --w: 3px; --h: 6px;
  --br: 0 2px 1px 0;
  --t: 3px; --l: 3px;
  border-top:   1px solid var(--pencil-top);
  border-right: 1px solid var(--pencil-top);
}

/* Hide the original close-X decoration in the top-right of the button — that
   was meant for an "application form" context and looks wrong for a viewer. */
.view-catalog-btn::before,
.view-catalog-btn::after { display: none; }

.view-catalog-btn:hover {
  --bg: var(--background-hover);
  --fx: -40px;
  --fr: -60deg;
  --fd: .15s;
  --fds: 0s;
  --pbx: 3px;
  --pby: -3px;
  --pbd: .15s;
  --pex: -24px;
}
.view-catalog-btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* While the catalog is loading, the button is replaced by the loader anyway;
   but disable interaction defensively in case it's still visible. */
.view-catalog-btn[disabled] { opacity: .6; cursor: progress; pointer-events: none; }

/* ═══════════════════════════════════════════════════════════════════════════
   Catalog viewer — fullscreen + zoom polish
   ═══════════════════════════════════════════════════════════════════════════ */

/* When the viewer enters fullscreen, give it a full-window dark backdrop and
   centre everything. Without this StPageFlip stays at its original computed
   size in the top-left of a black screen. */
#catViewer:fullscreen,
#catViewer:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  background: #0d1117;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: visible;
}
#catViewer:fullscreen .flipbook-body,
#catViewer:-webkit-full-screen .flipbook-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
}
#catViewer:fullscreen .flipbook-stage-wrap,
#catViewer:-webkit-full-screen .flipbook-stage-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  overflow: visible;
}
#catViewer:fullscreen .flipbook-toolbar,
#catViewer:-webkit-full-screen .flipbook-toolbar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  flex-wrap: nowrap;   /* override the ≤600px media query */
}
@media (max-width: 600px) {
  #catViewer:fullscreen .flipbook-toolbar,
  #catViewer:-webkit-full-screen .flipbook-toolbar,
  #catViewer.pseudo-fullscreen .flipbook-toolbar {
    gap: 2px;
    padding: 6px 8px;
  }
  #catViewer:fullscreen .flipbook-btn,
  #catViewer:-webkit-full-screen .flipbook-btn,
  #catViewer.pseudo-fullscreen .flipbook-btn {
    width: 28px; height: 28px; flex-shrink: 0;
  }
  #catViewer:fullscreen .flipbook-page-indicator,
  #catViewer:-webkit-full-screen .flipbook-page-indicator,
  #catViewer.pseudo-fullscreen .flipbook-page-indicator {
    min-width: 52px; padding: 0 6px; font-size: 0.78rem;
  }
}
#catViewer:fullscreen .flipbook-hint,
#catViewer:-webkit-full-screen .flipbook-hint { display: none; }

/* Smooth zoom container — the JS sets transform: scale(N) on #catFlipbook.
   We add a transition + a stage-wrap that's allowed to grow when zoomed. */
#catFlipbook {
  display: inline-block;
  will-change: transform;
}
.flipbook-stage-wrap {
  overflow: auto;
  scroll-behavior: smooth;
  text-align: center;
  cursor: default;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.flipbook-stage-wrap::-webkit-scrollbar { width: 8px; height: 8px; }
.flipbook-stage-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 4px; }
.flipbook-stage-wrap::-webkit-scrollbar-track { background: transparent; }
.flipbook-stage-wrap.is-panning {
  cursor: grabbing;
  scroll-behavior: auto;
  user-select: none;
}

/* ── Fullscreen-only close X (top-right corner) ───────────────────────────── */
.flipbook-fs-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 44px; height: 44px;
  display: none;                              /* shown only in fullscreen */
  align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 20;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.flipbook-fs-close:hover,
.flipbook-fs-close:focus-visible {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.06);
  outline: none;
}
#catViewer:fullscreen .flipbook-fs-close,
#catViewer:-webkit-full-screen .flipbook-fs-close {
  display: flex;
}
@media (max-width: 600px) {
  .flipbook-fs-close { width: 48px; height: 48px; top: 12px; right: 12px; }
}
/* iOS Safari safe-area inset (handles notch / Dynamic Island) */
@supports (top: env(safe-area-inset-top)) {
  #catViewer:fullscreen .flipbook-fs-close,
  #catViewer:-webkit-full-screen .flipbook-fs-close {
    top: calc(16px + env(safe-area-inset-top));
    right: calc(16px + env(safe-area-inset-right));
  }
}

/* ── iOS pseudo-fullscreen fallback ───────────────────────────────────────────
   iOS Safari can't requestFullscreen() a <div>, so the JS adds .pseudo-fullscreen
   instead. These plain-class rules mirror the native :fullscreen rules above (kept
   separate so they apply even where :-webkit-full-screen isn't recognised). */
#catViewer.pseudo-fullscreen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;                 /* dvh = excludes the iOS browser chrome */
  z-index: 99999;
  margin: 0;
  background: #0d1117;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
#catViewer.pseudo-fullscreen .flipbook-body { flex: 1 1 auto; min-height: 0; }
#catViewer.pseudo-fullscreen .flipbook-stage-wrap {
  display: flex; align-items: center; justify-content: center; height: 100%;
}
#catViewer.pseudo-fullscreen .flipbook-toolbar {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 10;
  flex-wrap: nowrap;
}
#catViewer.pseudo-fullscreen .flipbook-hint { display: none; }
#catViewer.pseudo-fullscreen .flipbook-fs-close { display: flex; }
@supports (top: env(safe-area-inset-top)) {
  #catViewer.pseudo-fullscreen .flipbook-fs-close {
    top: calc(16px + env(safe-area-inset-top));
    right: calc(16px + env(safe-area-inset-right));
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   Service Packages — click-through carousel with dot indicator
   Replaces the old 3D-ring + hover-video grid (both were glitchy on mobile).
   Architecture: scroll-snap horizontal scroller + side arrows + dots.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Intro block — centered */
.pkg-intro { margin-bottom: 56px; text-align: center; }
.pkg-intro h2 { margin-bottom: 20px; }
.pkg-intro p  { max-width: 680px; margin-left: auto; margin-right: auto; }

.pkg-carousel-wrap {
  position: relative;
  margin: 32px auto 12px;
  max-width: 920px;
  padding: 10px 56px 0;        /* 10px top: room for hover lift */
}

.pkg-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.pkg-carousel::-webkit-scrollbar { display: none; }

/* Mobile: 1 slide at a time */
.pkg-slide {
  flex: 0 0 calc(100% - 0px);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  padding: 8px 0;
}
.pkg-slide__inner {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-height: 520px;
  transition: box-shadow .3s ease, transform .3s ease;
}
.pkg-slide.featured .pkg-slide__inner {
  border-color: rgba(213, 34, 32, 0.35);
  box-shadow: 0 6px 32px rgba(213, 34, 32, 0.14);
}
[data-theme="dark"] .pkg-slide__inner {
  background: var(--off-white);
  border-color: var(--border);
}

.pkg-slide__head .package-name {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1.2;
}
.pkg-slide__head .package-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Side arrow buttons */
.pkg-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.pkg-nav:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  transform: translateY(-50%) scale(1.06);
}
.pkg-nav:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.pkg-nav[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}
.pkg-nav--prev { left: 4px; }
.pkg-nav--next { right: 4px; }
[data-theme="dark"] .pkg-nav {
  background: var(--off-white);
  border-color: var(--border);
}

/* Dot indicator */
.pkg-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 22px auto 0;
  padding: 0 24px;
  flex-wrap: wrap;
}
.pkg-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 0;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background .25s ease, transform .25s ease, width .3s ease;
}
.pkg-dot:hover { background: var(--text-muted); }
.pkg-dot.active {
  background: var(--red);
  width: 28px;                /* active dot stretches to a small bar */
  border-radius: 5px;
}
.pkg-dot:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* Desktop: 3 slides visible at once, arrows stay visible */
@media (min-width: 800px) {
  .pkg-carousel-wrap {
    max-width: 1160px;
    padding: 10px 60px 0;
    margin: 32px auto 12px;
  }
  .pkg-slide {
    flex: 0 0 calc(33.333% - 14px);
    padding: 0;
    scroll-snap-align: start;
    scroll-snap-stop: normal;
  }
  .pkg-slide__inner {
    min-height: auto;
  }
  .pkg-slide__inner:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.13);
    transform: translateY(-5px);
  }
  .pkg-slide.featured .pkg-slide__inner:hover {
    box-shadow: 0 16px 48px rgba(213, 34, 32, 0.22);
    transform: translateY(-5px);
  }
}

/* Mobile tuning */
@media (max-width: 768px) {
  /* Keep enough horizontal padding so the arrows stay OUTSIDE the card and
     don't collide with the floating Zalo + Phone FABs in the bottom corner. */
  .pkg-carousel-wrap { padding: 0 44px; margin-top: 16px; }
  .pkg-nav {
    width: 36px; height: 36px;
    /* Stay vertically centred on the slide (kept from desktop) */
  }
  .pkg-nav svg { width: 16px; height: 16px; }
  .pkg-nav--prev { left: 0; }
  .pkg-nav--next { right: 0; }
  .pkg-slide__inner { padding: 28px 22px; min-height: 480px; }
  .pkg-slide__head .package-name { font-size: 1.3rem; }
  .pkg-dots { margin-top: 18px; }
}
@media (max-width: 400px) {
  /* Very narrow phones — even tighter */
  .pkg-carousel-wrap { padding: 0 38px; }
  .pkg-nav { width: 32px; height: 32px; }
}

/* ── Quill editor colour classes — published content, theme-aware ─────────── */
:root {
  --ql-mc-red:     #D52220; --ql-mc-text:    #1a1a1a; --ql-mc-mid:     #444444;
  --ql-mc-muted:   #888888; --ql-mc-blue:    #2563eb; --ql-mc-amber:   #b45309;
  --ql-mc-green:   #16a34a; --ql-mc-white:   #ffffff; --ql-mc-surface: #f8f7f4;
}
[data-theme="dark"] {
  --ql-mc-red:     #ff6b6b; --ql-mc-text:    #e8e8e8; --ql-mc-mid:     #b0b0b0;
  --ql-mc-muted:   #999999; --ql-mc-blue:    #60a5fa; --ql-mc-amber:   #fbbf24;
  --ql-mc-green:   #4ade80; --ql-mc-white:   #111214; --ql-mc-surface: #1a1c1f;
}
.ql-color-mc-red     { color: var(--ql-mc-red)     !important; }
.ql-color-mc-text    { color: var(--ql-mc-text)    !important; }
.ql-color-mc-mid     { color: var(--ql-mc-mid)     !important; }
.ql-color-mc-muted   { color: var(--ql-mc-muted)   !important; }
.ql-color-mc-blue    { color: var(--ql-mc-blue)    !important; }
.ql-color-mc-amber   { color: var(--ql-mc-amber)   !important; }
.ql-color-mc-green   { color: var(--ql-mc-green)   !important; }
.ql-color-mc-white   { color: var(--ql-mc-white)   !important; }
.ql-color-mc-surface { color: var(--ql-mc-surface) !important; }
.ql-bg-mc-red     { background-color: var(--ql-mc-red)     !important; }
.ql-bg-mc-text    { background-color: var(--ql-mc-text)    !important; }
.ql-bg-mc-mid     { background-color: var(--ql-mc-mid)     !important; }
.ql-bg-mc-muted   { background-color: var(--ql-mc-muted)   !important; }
.ql-bg-mc-blue    { background-color: var(--ql-mc-blue)    !important; }
.ql-bg-mc-amber   { background-color: var(--ql-mc-amber)   !important; }
.ql-bg-mc-green   { background-color: var(--ql-mc-green)   !important; }
.ql-bg-mc-white   { background-color: var(--ql-mc-white)   !important; }
.ql-bg-mc-surface { background-color: var(--ql-mc-surface) !important; }

/* ═══ Icon system — SVG icons, flags & status dots (replaces emoji) ═══════════
   Companion to includes/icon.php icon()/flag() helpers + docs/ICON-ASSETS-*.html.
   Glyph size comes from the helper's width/height attrs (16/20/24); the class
   carries colour (currentColor → themes in light/dark) and box behaviour only. */
:root { --icon-sm: 16px; --icon-md: 20px; --icon-lg: 24px; }
.ic   { stroke: currentColor; fill: none; flex: none; vertical-align: -0.15em; }
.flag { border-radius: 2px; vertical-align: -0.1em; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.dot  { width: 8px; height: 8px; border-radius: 50%; display: inline-block;
        flex: none; vertical-align: 0.06em; }
.dot--red   { background: var(--red); }
.dot--green { background: var(--green); }
.dot--amber { background: #f59e0b; }
.dot--blue  { background: #3b82f6; }

/* ═══ CTA — Shader Background + Open Text ════════════════════════════════ */
.section--cta-tiles {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--section-dark-bg);
  padding: 130px 0 150px;
}

.cta-shader-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 0;
}

.cta-tiles__wrap {
  position: relative; z-index: 1;
  display: flex; justify-content: center;
  transform: translateZ(0);
  pointer-events: none;
}

.cta-content {
  text-align: center;
  max-width: 820px;
  pointer-events: auto;
}

.cta-content .label { justify-content: center; margin-bottom: 22px; }

.cta-headline {
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--section-dark-text);
  margin: 0 0 24px;
}
.cta-sub {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  line-height: 1.72;
  color: var(--section-dark-text-muted);
  max-width: 660px;
  margin: 0 auto 48px;
}

.btn--cta { padding: 16px 46px; font-size: 0.82rem; border-radius: 6px; }
.btn--cta:hover {
  background: var(--red-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20'%3E%3Cpath d='M0 20 a20 20 0 0 0 40 0' fill='none' stroke='white' stroke-opacity='0.18' stroke-width='1'/%3E%3Cpath d='M-20 10 a20 20 0 0 0 40 0' fill='none' stroke='white' stroke-opacity='0.18' stroke-width='1'/%3E%3Cpath d='M20 10 a20 20 0 0 0 40 0' fill='none' stroke='white' stroke-opacity='0.18' stroke-width='1'/%3E%3C/svg%3E") 0 0 / 40px 20px repeat;
  transform: translateY(-1px);
}

/* Vietnamese diacritics stack tall — ease bold synthesis + give more breathing room */
:lang(vi) .cta-headline,
:lang(vi) .cat-section-headline {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.18;
}

/* Footer partner badge strip */
.footer-partners { margin: 18px 0 16px; }
.footer-partners__label {
  font-size: .6rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--footer-text-muted); display: block; margin-bottom: 9px;
}
.footer-partners__logos { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer-partner-badge {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(128,128,128,.1);
  border: 1px solid rgba(128,128,128,.14);
  border-radius: 8px; flex-shrink: 0;
  transition: background .15s;
}
.footer-partner-badge:hover { background: rgba(128,128,128,.18); }
/* TikTok main shape is black — invert to white in dark mode */
[data-theme="dark"] .fp-tiktok-main { fill: #fff; }

/* Footer certified partner image grid */
.footer-certs { margin: 20px 0 4px; }
.footer-certs__label {
  font-size: .6rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--footer-text-muted); display: block; margin-bottom: 10px;
}
.footer-certs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.footer-cert-card {
  background: #fff;
  border-radius: 6px;
  padding: 6px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
}
.footer-cert-card--square { min-height: 52px; }
.footer-cert-card img {
  width: 100%;
  height: auto;
  max-height: 28px;
  object-fit: contain;
}
.footer-cert-card--square img { max-height: 48px; }
@media (max-width: 1024px) {
  .footer-certs__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Packages page — Trusted Partnerships image grid */
.pkg-partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}
.pkg-partner-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 116px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: box-shadow .15s, transform .15s;
}
.pkg-partner-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); }
.pkg-partner-card img {
  width: 100%;
  height: auto;
  max-height: 56px;
  object-fit: contain;
}
.pkg-partner-card--square img { max-height: 88px; }
@media (max-width: 768px) {
  .pkg-partners-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 480px) {
  .pkg-partners-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pkg-partner-card { padding: 16px 12px; min-height: 72px; }
}

@media (max-width: 640px) {
  .section--cta-tiles { padding: 88px 0 100px; }
  .cta-headline { letter-spacing: -0.02em; }
  .cta-sub { margin-bottom: 36px; }
  .btn--cta { padding: 14px 32px; }
}
.dot--muted { background: var(--text-muted); }
