/* ==========================================================================
   CINEMATIC PROFESSIONAL — DESIGN SYSTEM V2 (Claude, 2026-11-15)
   Dung lai bang code theo 3 bang: Style System · Experience Wireframe · UI/Graphic Package.
   Moi thanh phan HUD / nut / icon / overlay / texture deu la HTML-CSS-SVG, khong dung anh cat tu bang.
   Font: nap bang <link> trong <head> (Space Grotesk, Be Vietnam Pro, Cormorant Garamond).
   ========================================================================== */

:root {
  /* Core palette */
  --bg: #0D1118;
  --panel: #111826;
  --panel-2: #151D2C;
  --white: #F3F4F6;
  --muted: #A8B0BE;
  --sub: #7A8699;
  --orange: #FF7A30;
  --gold: #FFC93C;
  --teal: #24C6C8;
  --red: #FF3B30;

  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --glass: rgba(17, 24, 38, 0.66);
  --glow-warm: 0 0 0 1px rgba(255, 201, 60, 0.18), 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 40px rgba(255, 122, 48, 0.12);
  --f-body: "Be Vietnam Pro", system-ui, sans-serif;
  --f-quote: "Cormorant Garamond", Georgia, serif;

  --container: 1320px;
  --pad: 40px;
  --gap: 24px;
  --section: 120px;
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  /* aliases giu tuong thich voi trang resume */
  --text-white: var(--white);
  --text-muted: var(--muted);
  --c-orange: var(--orange);
  --c-gold: var(--gold);
  --c-teal: var(--teal);
  --border-glow: #242E40;
  --border-subtle: var(--line);
  --surface-panel: var(--panel);
  --font-display: var(--f-display);
  --font-mono: var(--f-display);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); color-scheme: dark; }
body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--white);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(255, 168, 60, 0.10), transparent 60%),
    radial-gradient(900px 600px at -10% 40%, rgba(36, 198, 200, 0.05), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

/* ---------- Texture: film grain 35mm (SVG noise, khong dung anh) ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Typography (Style System: Type hierarchy) ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.08; color: var(--white); }
h1 { font-size: clamp(2.4rem, 4.6vw, 5rem); line-height: 1; text-transform: uppercase; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 600; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { color: #C3CAD6; }
.accent { color: var(--gold); }
.serif { font-family: var(--f-quote); font-style: italic; font-weight: 500; }
.meta, .text-mono {
  font-family: var(--f-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.text-muted { color: var(--muted); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--section) 0; position: relative; }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); align-items: start; }
.col-span-7 { grid-column: span 7; }
.col-span-5 { grid-column: span 5; }

/* Eyebrow: "VIDEO EDITOR / MOTION DESIGNER ——" */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::after { content: ""; width: 44px; height: 1px; background: currentColor; opacity: 0.7; }

/* Section label: "SELECTED WORK ——" (UI Package muc 7) */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.section-label::after { content: ""; width: 56px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), rgba(255, 201, 60, 0)); }
.section-num { font-family: var(--f-display); font-size: 0.8rem; font-weight: 600; color: var(--orange); letter-spacing: 0.12em; }

/* ---------- Icons (SVG sprite, net manh) ---------- */
.icon { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-fill { fill: currentColor; stroke: none; }
.icon-lg { width: 30px; height: 30px; }

/* ==========================================================================
   BUTTON SYSTEM — Primary / Secondary / Ghost / Icon-only x 4 trang thai
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--f-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.btn .icon { width: 16px; height: 16px; }
.btn-primary {
  color: #14110A;
  background: linear-gradient(180deg, #FFD95A 0%, #FFC93C 55%, #F7B52C 100%);
  box-shadow: 0 0 0 1px rgba(255, 201, 60, 0.6), 0 8px 28px rgba(255, 170, 40, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.btn-primary .icon-fill { fill: #14110A; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #FFE38A, 0 10px 40px rgba(255, 170, 40, 0.6), 0 0 22px rgba(255, 201, 60, 0.7), inset 0 1px 0 #fff; }
.btn-primary:active { transform: translateY(1px); background: linear-gradient(180deg, #FF9A4A, var(--orange)); box-shadow: 0 0 16px rgba(255, 122, 48, 0.6); }
.btn-secondary {
  color: var(--white);
  background: rgba(13, 17, 24, 0.45);
  border-color: rgba(243, 244, 246, 0.55);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 22px rgba(255, 201, 60, 0.25); transform: translateY(-2px); }
.btn-secondary:active { transform: translateY(1px); border-color: var(--orange); color: var(--orange); }
.btn-ghost { min-height: 44px; padding: 0 4px; color: var(--white); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: rgba(243, 244, 246, 0.4); border-radius: 6px; }
.btn-ghost:hover { color: var(--gold); text-decoration-color: var(--gold); }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.4; pointer-events: none; filter: grayscale(1); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.85rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid rgba(243, 244, 246, 0.85);
  background: rgba(13, 17, 24, 0.45);
  backdrop-filter: blur(8px);
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.icon-btn .icon { width: 20px; height: 20px; margin-left: 3px; }
.icon-btn:hover { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 26px rgba(255, 201, 60, 0.45); transform: scale(1.06); }
.icon-btn-lg { width: 84px; height: 84px; }
.icon-btn-lg .icon { width: 28px; height: 28px; }

.btn-group { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-copy > .btn-group { justify-content: flex-start; }

/* ==========================================================================
   HUD / FRAME ELEMENTS (UI Package muc 1)
   ========================================================================== */
.hud { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.hud-corner { position: absolute; width: 30px; height: 30px; border: 0 solid rgba(255, 255, 255, 0.85); }
.hud-corner.tl { top: 22px; left: 22px; border-top-width: 2px; border-left-width: 2px; }
.hud-corner.tr { top: 22px; right: 22px; border-top-width: 2px; border-right-width: 2px; }
.hud-corner.bl { bottom: 22px; left: 22px; border-bottom-width: 2px; border-left-width: 2px; }
.hud-corner.br { bottom: 22px; right: 22px; border-bottom-width: 2px; border-right-width: 2px; }
.hud-reticle { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%); opacity: 0.55; }
.hud-reticle::before, .hud-reticle::after { content: ""; position: absolute; background: #fff; }
.hud-reticle::before { left: 0; right: 0; top: 50%; height: 1px; }
.hud-reticle::after { top: 0; bottom: 0; left: 50%; width: 1px; }

.rec-chip, .tc-chip, .chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(10, 13, 19, 0.6);
  backdrop-filter: blur(8px);
  font-family: var(--f-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  white-space: nowrap;
}
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); animation: rec 1.4s ease-in-out infinite; }
@keyframes rec { 50% { opacity: 0.25; } }
.chip { height: 26px; padding: 0 10px; font-size: 0.7rem; border-color: rgba(255, 255, 255, 0.28); }

.progress { position: relative; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.progress > span { position: absolute; inset: 0 auto 0 0; width: var(--p, 72%); border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--gold)); }

/* Film-strip trim: lo duc 35mm bang gradient */
.film-strip {
  height: 14px;
  background:
    radial-gradient(circle, transparent 0 0) ,
    repeating-linear-gradient(90deg, rgba(243, 244, 246, 0.75) 0 6px, transparent 6px 12px);
  -webkit-mask: linear-gradient(#000 0 0) center / 100% 6px no-repeat;
          mask: linear-gradient(#000 0 0) center / 100% 6px no-repeat;
  opacity: 0.55;
}

/* Timeline ruler voi kim vang */
.ruler {
  position: relative;
  height: 22px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0 1px, transparent 1px 12px) bottom / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.7) 0 1px, transparent 1px 60px) bottom / 100% 14px no-repeat;
}
.ruler::after { content: ""; position: absolute; left: var(--at, 62%); bottom: 0; width: 2px; height: 22px; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* ==========================================================================
   OVERLAYS (UI Package muc 4)
   ========================================================================== */
.ov-dark { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 10, 15, 0.92) 0%, rgba(8, 10, 15, 0.35) 45%, transparent 75%); z-index: 1; }
.ov-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.65) 100%); z-index: 1; pointer-events: none; }
.edge-glow { box-shadow: inset 0 0 0 1px rgba(255, 201, 60, 0.35), inset 0 0 40px rgba(255, 140, 40, 0.18); }
.swash { display: block; height: 10px; width: 120px; border-radius: 50%; background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent); filter: blur(1px); transform: rotate(-4deg); opacity: 0.85; }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.skip-link { position: absolute; left: 16px; top: -80px; z-index: 300; background: var(--gold); color: #111; font-weight: 700; padding: 10px 18px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.scroll-progress { position: fixed; top: 0; left: 0; z-index: 210; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); background: linear-gradient(90deg, var(--orange), var(--gold)); box-shadow: 0 0 10px rgba(255, 201, 60, 0.7); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(10, 13, 19, 0.72);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav-wrapper { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.nav-brand { display: flex; align-items: center; gap: 14px; min-height: 44px; text-decoration: none; }
.brand-mark { width: auto; height: 32px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-logo { font-family: var(--f-display); font-size: 1.12rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.brand-title { font-family: var(--f-display); font-size: 0.6rem; letter-spacing: 0.42em; color: var(--muted); white-space: nowrap; margin-top: 3px; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.nav-menu { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-menu a:not(.btn) { white-space: nowrap; font-family: var(--f-display); font-size: 0.9rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.nav-menu a:not(.btn):hover, .nav-menu a.active { color: var(--white); }
.nav-menu a.active { box-shadow: inset 0 -2px 0 var(--gold); padding-bottom: 4px; }
.nav-menu .btn { min-height: 40px; padding: 0 18px; font-size: 0.85rem; }

.lang-select {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: rgba(17, 24, 38, 0.8);
  color: var(--white);
  font-family: var(--f-display);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.lang-select:hover { border-color: var(--gold); }
.lang-select option { background: var(--panel); color: #fff; }

.mobile-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: transparent;
  cursor: pointer;
}
.mobile-menu-btn .icon { width: 22px; height: 22px; }
.mobile-menu-btn .i-close { display: none; }
.mobile-menu-btn[aria-expanded="true"] .i-menu { display: none; }
.mobile-menu-btn[aria-expanded="true"] .i-close { display: block; }

a:focus-visible, button:focus-visible, select:focus-visible, video:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ==========================================================================
   1. HERO / SHOWREEL
   ========================================================================== */
.hero {
  position: relative;
  padding: 72px 0 110px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("../images/v2/hero_mountain_panorama.webp") center 35% / cover no-repeat;
  opacity: 0.55;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(13, 17, 24, 0.86) 32%, rgba(13, 17, 24, 0.25) 70%, rgba(13, 17, 24, 0.55) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 35%),
    radial-gradient(600px 380px at 78% 12%, rgba(255, 190, 70, 0.35), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 5.4fr 6.6fr; gap: 48px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy .eyebrow { margin-bottom: 26px; }
.hero-title { margin-bottom: 24px; }
.hero-title .accent { display: block; }
.hero-sub { font-size: 1.12rem; line-height: 1.7; color: #C3CAD6; max-width: 460px; margin-bottom: 36px; }

.reel-wrap { position: relative; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 40px rgba(255, 150, 50, 0.18)); }
.reel {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #07090D;
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
}
.reel > video, .reel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel .hud { left: 12%; }
.reel-top { position: absolute; top: 24px; right: 24px; display: flex; gap: 10px; z-index: 4; }
.reel-play { position: absolute; top: 50%; left: 56%; transform: translate(-50%, -50%); z-index: 4; }
.reel-bottom { position: absolute; left: 14%; right: 24px; bottom: 22px; z-index: 4; display: grid; gap: 10px; }
.reel-bottom-row { display: flex; align-items: center; gap: 12px; }
.reel-bottom-row .progress { flex: 1; }
.reel-time { font-family: var(--f-display); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; color: #fff; }
.reel-chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* ==========================================================================
   2. SELECTED WORK
   ========================================================================== */
.filter-pills-bar { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-pill {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--muted);
  font-family: var(--f-display);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.filter-pill:hover { color: var(--white); border-color: rgba(255, 201, 60, 0.5); }
.filter-pill[aria-pressed="true"] { background: var(--white); border-color: var(--white); color: #0D1118; }

.work-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.work-card { grid-column: span 4; }
.work-card.is-wide { grid-column: span 6; }
.work-card.is-hidden { display: none; }
.work-card a { display: block; text-decoration: none; color: inherit; }
.work-media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: #07090D;
  border: 1px solid var(--line);
  transition: border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.work-media video, .work-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
/* Video doc 9:16 trong khung ngang: nen mo tu poster, video giu nguyen ti le */
.work-media.is-vertical::before { content: ""; position: absolute; inset: -20px; background: var(--poster) center / cover; filter: blur(22px) brightness(0.45) saturate(1.2); }
.work-media.is-vertical video { object-fit: contain; }
.work-card a:hover .work-media, .work-card a:focus-visible .work-media { border-color: rgba(255, 201, 60, 0.55); box-shadow: var(--glow-warm); }
.work-card a:hover .work-media video, .work-card a:hover .work-media img { transform: scale(1.04); }
.work-overlay { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.work-kicker { font-family: var(--f-display); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.75); text-transform: uppercase; }
.work-title { font-size: clamp(1.15rem, 1.6vw, 1.45rem); margin: 4px 0 2px; text-transform: uppercase; }
.work-sub { font-family: var(--f-quote); font-style: italic; font-size: 1.12rem; color: #E3E6EC; line-height: 1.3; }
.work-overlay .icon-btn { width: 44px; height: 44px; flex-shrink: 0; }
.work-overlay .icon-btn .icon { width: 16px; height: 16px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-family: var(--f-display);
  font-size: 0.72rem;
  font-weight: 500;
  color: #D7DBE3;
}
.tag-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--gold)); }
.tag-pill.orange { --dot: var(--orange); }
.tag-pill.teal { --dot: var(--teal); }
.work-more { display: flex; justify-content: center; margin-top: 36px; }

/* ==========================================================================
   3. FEATURED PROJECT
   ========================================================================== */
.featured { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center; }
.featured-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  clip-path: polygon(0 0, 100% 0, 86% 100%, 0 100%);
  background: #07090D;
}
.featured-media img, .featured-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-copy .eyebrow { color: var(--gold); margin-bottom: 16px; }
.featured-title { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-style: italic; text-transform: uppercase; margin-bottom: 14px; }
.featured-copy p { margin-bottom: 28px; max-width: 440px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 28px; }
.meta-row div { display: grid; }
.meta-row dt { font-family: var(--f-display); font-size: 0.68rem; letter-spacing: 0.16em; color: var(--sub); text-transform: uppercase; }
.meta-row dd { font-family: var(--f-display); font-size: 0.92rem; font-weight: 500; }

/* ==========================================================================
   PANELS (About, Services, Resume, Quote)
   ========================================================================== */
.panel-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
#about .panel-row { grid-template-columns: 7fr 5fr; }
.panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(21, 29, 44, 0.75), rgba(13, 17, 24, 0.75));
  padding: 34px;
  overflow: hidden;
}
.panel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(500px 220px at 100% 0%, rgba(255, 170, 60, 0.08), transparent 70%); }
.panel-title { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 24px; }
.panel-title .section-num { font-size: 0.72rem; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 70% 15%, rgba(255, 180, 70, 0.55), transparent 60%),
    linear-gradient(180deg, #2A2418, #0F131B 85%);
}
/* Khung ban than: phong 150% be ngang, bo khoang trong suot phia tren -> dau gan mep tren, cat ngang eo */
.portrait img { position: absolute; left: 50%; top: -6%; width: 108%; height: auto; max-width: none; transform: translateX(-50%); }
.portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 13, 19, 0.55), transparent 35%); }
.about-lead { font-size: 1.12rem; color: var(--white); line-height: 1.55; margin-bottom: 14px; }
.about-copy p + p { margin-top: 10px; }
.about-extras { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; margin: 22px 0; }
.stat-chip {
  display: grid;
  place-items: center;
  min-width: 112px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 201, 60, 0.35);
  background: rgba(17, 24, 38, 0.8);
  text-align: center;
}
.stat-chip b { font-family: var(--f-display); font-size: 2.2rem; line-height: 1; color: var(--gold); text-shadow: 0 0 18px rgba(255, 201, 60, 0.45); }
.stat-chip span { font-family: var(--f-display); font-size: 0.64rem; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; margin-top: 6px; }
.caption-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  padding-right: 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 201, 60, 0.3);
  background: rgba(17, 24, 38, 0.8);
}
.caption-strip img { width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.caption-strip b { display: block; font-family: var(--f-display); font-size: 0.85rem; font-weight: 600; }
.caption-strip span { display: block; font-family: var(--f-display); font-size: 0.62rem; letter-spacing: 0.16em; color: var(--gold); text-transform: uppercase; }

/* Services / Skills */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service { padding: 22px 14px; text-align: center; display: grid; justify-items: center; gap: 8px; }
.service + .service { border-left: 1px solid var(--line); }
.service .icon { width: 30px; height: 30px; color: var(--gold); }
.service h3 { font-size: 0.98rem; }
.service p { font-size: 0.8rem; color: var(--muted); line-height: 1.45; }
.tool-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tool-chip { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--f-display); font-size: 0.76rem; font-weight: 500; color: #DADFE7; }
.equip { margin-top: 20px; font-size: 0.88rem; color: var(--muted); }
.equip b { color: var(--white); font-family: var(--f-display); font-weight: 600; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; display: block; margin-bottom: 4px; }

/* Resume snapshot */
.resume-snap { display: grid; grid-template-columns: auto 1fr; gap: 24px; }
.doc-icon { width: 72px; height: 92px; color: var(--muted); }
.snap-list { list-style: none; display: grid; gap: 10px; margin-bottom: 20px; }
.snap-list li { display: flex; gap: 10px; align-items: baseline; font-size: 0.95rem; color: #D2D7E0; }
.snap-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; transform: translateY(-2px); }
.mini-timeline { list-style: none; display: grid; gap: 0; margin: 4px 0 22px; border-left: 1px solid var(--line-2); }
.mini-timeline li { position: relative; padding: 6px 0 6px 18px; display: grid; grid-template-columns: 84px 1fr; gap: 10px; font-size: 0.86rem; }
.mini-timeline li::before { content: ""; position: absolute; left: -4px; top: 14px; width: 7px; height: 7px; border-radius: 50%; }
.mini-timeline .y { font-family: var(--f-display); font-weight: 600; color: var(--gold); font-size: 0.78rem; letter-spacing: 0.06em; }
.mini-timeline .c { color: var(--white); font-weight: 600; }
.mini-timeline .r { display: block; color: var(--muted); font-weight: 400; font-size: 0.8rem; }

/* Quote card */
.quote-panel { display: flex; flex-direction: column; justify-content: center; min-height: 100%; }
.quote-panel .bg-photo { position: absolute; inset: 0; background: url("../images/v2/quote_film_reel_photo.webp") right center / cover no-repeat; opacity: 0.22; -webkit-mask: linear-gradient(90deg, transparent 20%, #000 90%); mask: linear-gradient(90deg, transparent 20%, #000 90%); }
.quote-mark { font-family: var(--f-quote); font-size: 4.5rem; line-height: 0.6; color: var(--gold); height: 34px; }
.quote-text { position: relative; font-family: var(--f-quote); font-style: italic; font-weight: 500; font-size: clamp(1.45rem, 2.3vw, 2rem); line-height: 1.35; color: #F7F2E6; margin: 12px 0 20px; }
.quote-author { position: relative; font-family: var(--f-display); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em; color: var(--orange); text-transform: uppercase; }
.waveform { position: relative; width: 100%; max-width: 360px; height: 46px; margin-top: 26px; color: var(--gold); }

/* ==========================================================================
   8. PROCESS (chevron 4 buoc)
   ========================================================================== */
.process-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.process-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 104px;
  padding: 18px 40px 18px 34px;
  background: linear-gradient(180deg, rgba(28, 37, 54, 0.9), rgba(17, 24, 38, 0.9));
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%, 26px 50%);
  transition: background 0.3s var(--ease);
}
.process-step:first-child { clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%); border-radius: 14px 0 0 14px; padding-left: 26px; }
.process-step:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 26px 50%); border-radius: 0 14px 14px 0; }
.process-step:hover { background: linear-gradient(180deg, rgba(60, 46, 24, 0.9), rgba(30, 26, 20, 0.9)); }
.process-step .icon { width: 30px; height: 30px; color: var(--gold); }
.process-num { font-family: var(--f-display); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; color: var(--orange); }
.process-title { font-family: var(--f-display); font-size: 1.05rem; font-weight: 600; color: #fff; }
.process-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }

/* ==========================================================================
   9. CTA / CONTACT
   ========================================================================== */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 201, 60, 0.22);
  padding: 64px;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: center;
  isolation: isolate;
}
.cta-bg { position: absolute; inset: 0; z-index: -2; background: url("../images/v2/cta_amber_valley.webp") center / cover no-repeat; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 13, 19, 0.95) 20%, rgba(10, 13, 19, 0.7) 60%, rgba(10, 13, 19, 0.85)); }
.cta h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 14px 0 16px; }
.cta p { max-width: 520px; margin-bottom: 30px; }
.contact-list { list-style: none; display: grid; gap: 4px; }
.contact-list li a, .contact-list li > span {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(13, 17, 24, 0.6);
  text-decoration: none;
  font-size: 0.95rem;
  transition: border-color 0.25s;
}
.contact-list li a:hover { border-color: rgba(255, 201, 60, 0.5); }
.contact-list .icon { color: var(--gold); }
.contact-list small { display: block; font-family: var(--f-display); font-size: 0.62rem; letter-spacing: 0.16em; color: var(--sub); text-transform: uppercase; line-height: 1.2; }

/* ==========================================================================
   10. FOOTER
   ========================================================================== */
.site-footer { border-top: 1px solid var(--line); padding: 34px 0; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; }
.footer-nav a { font-family: var(--f-display); font-size: 0.85rem; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.footer-nav a:hover { color: var(--white); }
.socials { display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); color: var(--muted); }
.socials a:hover { color: var(--gold); border-color: var(--gold); }
.copyright { font-family: var(--f-display); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--sub); text-transform: uppercase; }

/* ========================================================================== 
   GALLERY — Instagram-inspired stories + single-column newsfeed
   ========================================================================== */
.gallery-sub { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }
.gallery-stories {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.gallery-category {
  flex: 0 0 112px;
  display: grid;
  justify-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: 600 0.72rem/1.25 var(--f-display);
  cursor: pointer;
}
.gallery-category-ring {
  width: 78px;
  height: 78px;
  padding: 3px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 30px rgba(0, 0, 0, 0.34);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}
.gallery-category-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 3px solid var(--bg);
  border-radius: 50%;
}
.gallery-category-label { max-width: 112px; text-align: center; }
.gallery-category:hover .gallery-category-ring,
.gallery-category:focus-visible .gallery-category-ring { transform: translateY(-3px); }
.gallery-category[aria-selected="true"] { color: var(--white); }

.gallery-feed {
  display: grid;
  gap: 30px;
  width: min(100%, 720px);
  margin-inline: auto;
}
.gallery-post {
  overflow: hidden;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: rgba(10, 14, 21, 0.92);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}
.gallery-post-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 12px 16px;
}
.gallery-post-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  color: #11151c;
  font: 800 0.68rem var(--f-display);
  box-shadow: 0 0 0 2px #0d1118, 0 0 0 3px rgba(255, 201, 60, 0.65);
}
.gallery-post-head > span:nth-child(2) { display: grid; min-width: 0; }
.gallery-post-head strong { color: var(--white); font: 600 0.82rem var(--f-display); }
.gallery-post-head small { margin-top: 2px; color: var(--sub); font-size: 0.7rem; }
.gallery-post-index { margin-left: auto; color: var(--gold); font: 600 0.72rem var(--f-display); letter-spacing: 0.12em; }
.gallery-post-media {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #07090d;
  cursor: zoom-in;
  overflow: hidden;
}
.gallery-post-media img { width: 100%; height: auto; max-height: 820px; object-fit: contain; transition: transform 0.6s var(--ease), filter 0.6s; filter: saturate(0.94); }
.gallery-post-media:hover img { transform: scale(1.015); filter: saturate(1.06); }
.gallery-post-foot { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px 16px; color: var(--muted); font: 500 0.76rem var(--f-display); }
.gallery-post-foot span:first-child { color: var(--white); }
.lightbox { margin: auto; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; padding: 0; border: 0; background: transparent; color: var(--white); }
.lightbox::backdrop { background: rgba(5, 7, 10, 0.94); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { display: grid; justify-items: center; gap: 12px; padding: 64px 72px 24px; max-width: 100%; max-height: 100%; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); }
.lightbox figcaption { display: flex; gap: 16px; font-family: var(--f-display); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.lightbox .lb-count { color: var(--muted); }
.lb-btn { position: fixed; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(13, 17, 24, 0.7); color: var(--white); cursor: pointer; }
.lb-btn:hover { border-color: var(--gold); color: var(--gold); }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 16px; top: 16px; }
@media (max-width: 768px) {
  .gallery-stories { gap: 12px; margin-bottom: 24px; }
  .gallery-category { flex-basis: 92px; }
  .gallery-category-ring { width: 68px; height: 68px; }
  .gallery-category-label { max-width: 92px; font-size: 0.68rem; }
  .gallery-feed { gap: 20px; }
  .gallery-post { border-radius: 14px; }
  .lightbox figure { padding: 64px 12px 90px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}

/* Case study: nut xem ban day du */
.case-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.case-actions .btn[aria-pressed="true"]:not(.btn-ghost) { box-shadow: 0 0 0 2px #fff, 0 0 24px rgba(255, 201, 60, 0.6); }
.case-actions .btn-ghost[aria-pressed="true"] { color: var(--gold); }
.sound-tag { font-weight: 500; opacity: 0.75; font-size: 0.75rem; }

/* ==========================================================================
   MUSIC DOCK — nhac nen Spotify, mac dinh tat, troi theo trang
   ========================================================================== */
.music-dock { position: fixed; left: 20px; bottom: 20px; z-index: 180; }
/* Nhac nen: nut tron + thanh mo rong khi re chuot / focus / nut "..." (cam ung) */
.bgm { display: flex; }
.bgm-orb {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; flex-shrink: 0;
  border-radius: 50%; border: 1px solid rgba(255, 232, 160, 0.8); cursor: pointer; color: #14110A;
  background: linear-gradient(180deg, #FFD95A, #F7B52C);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 22px rgba(255, 190, 60, 0.45);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.bgm-orb:hover { transform: scale(1.06); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 32px rgba(255, 201, 60, 0.75); }
.bgm-orb .icon { width: 20px; height: 20px; }
.bgm-ring { position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(255, 201, 60, 0.5); opacity: 0; }
.bgm.is-live .bgm-ring { animation: bgmPulse 2.2s ease-out infinite; }
.bgm.is-waiting .bgm-ring { animation: bgmPulse 1.4s ease-out infinite; border-color: rgba(255, 255, 255, 0.85); }
@keyframes bgmPulse { 0% { transform: scale(0.9); opacity: 0.9; } 100% { transform: scale(1.35); opacity: 0; } }
.bgm.is-loading .bgm-orb { opacity: 0.75; }
.bgm-more { display: none; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(10, 13, 19, 0.8); color: var(--white); cursor: pointer; }
.bgm-more .icon { width: 18px; height: 18px; }
.bgm-panel {
  display: flex;
  opacity: 0; visibility: hidden; pointer-events: none;
}
.bgm:hover .bgm-panel, .bgm:focus-within .bgm-panel, .bgm.is-open .bgm-panel { opacity: 1; visibility: visible; pointer-events: auto; }
.bgm-info { align-items: center; gap: 10px; min-width: 0; }
.bgm-info > div { display: grid; line-height: 1.2; }
.bgm-title { display: none; } /* chu du an: khong hien ten bai */
.bgm-label { font-family: var(--f-display); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.bgm-title { font-family: var(--f-display); font-size: 0.82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bgm-ctrl { display: flex; align-items: center; justify-content: space-between; }
.bgm-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; transition: color 0.2s, background 0.2s, box-shadow 0.2s; }
.bgm-btn:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.bgm-btn .icon { width: 18px; height: 18px; }
.bgm-shuffle[aria-pressed="true"] { color: var(--gold); background: rgba(255, 201, 60, 0.12); box-shadow: 0 0 14px rgba(255, 201, 60, 0.45); }
.bgm-vol { display: flex; align-items: center; border-top: 1px solid var(--line); color: var(--muted); }
.bgm-vol input { min-width: 0; }
.bgm-vol .icon { width: 18px; height: 18px; }
.bgm-vol input {
  -webkit-appearance: none; appearance: none; border-radius: 4px; cursor: pointer;
}
.bgm-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px rgba(255, 201, 60, 0.8); }
.bgm-vol input::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
@media (hover: none) { .bgm-more { display: grid; } }
@media (prefers-reduced-motion: reduce) { .bgm.is-live .bgm-ring { animation: none; opacity: 0.6; } }

/* Thanh phat nhac (file rieng) — ban cu, giu cho tuong thich */
.music-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100vw - 40px);
  padding: 6px 6px 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 201, 60, 0.35);
  background: rgba(10, 13, 19, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55), 0 0 26px rgba(255, 140, 40, 0.1);
}
.music-bar .eq { margin-right: 8px; }
.mb-info { display: grid; min-width: 0; width: 170px; margin-right: 6px; line-height: 1.2; }
.mb-label { font-family: var(--f-display); font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.mb-title { font-family: var(--f-display); font-size: 0.82rem; font-weight: 600; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: color 0.2s, background 0.2s; }
.mb-btn:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.mb-btn .icon { width: 18px; height: 18px; }
.mb-play { width: 44px; height: 44px; color: #14110A; background: linear-gradient(180deg, #FFD95A, #F7B52C); box-shadow: 0 0 16px rgba(255, 190, 60, 0.45); }
.mb-play:hover { color: #14110A; background: linear-gradient(180deg, #FFE38A, #FFC93C); }
.mb-play .icon { width: 18px; height: 18px; }
.mb-vol { display: flex; align-items: center; gap: 6px; margin: 0 4px 0 6px; color: var(--muted); cursor: pointer; }
.mb-vol .icon { width: 18px; height: 18px; }
.mb-vol input {
  -webkit-appearance: none; appearance: none;
  width: 76px; height: 4px; border-radius: 4px; cursor: pointer;
  background: linear-gradient(90deg, var(--gold) var(--vol, 35%), rgba(255, 255, 255, 0.18) var(--vol, 35%));
}
.mb-vol input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px rgba(255, 201, 60, 0.8); }
.mb-vol input::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.mb-mini .icon { transition: transform 0.25s var(--ease); }
.music-bar.is-mini { padding-left: 14px; }
.music-bar.is-mini .mb-info, .music-bar.is-mini .mb-prev, .music-bar.is-mini .mb-vol { display: none; }
.music-bar.is-mini .mb-mini .icon { transform: rotate(180deg); }
.music-dock [hidden] { display: none !important; }
.music-fab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 201, 60, 0.35);
  background: rgba(10, 13, 19, 0.78);
  backdrop-filter: blur(14px);
  color: var(--white);
  font-family: var(--f-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s var(--ease);
}
.music-fab:hover { border-color: var(--gold); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 201, 60, 0.3); transform: translateY(-2px); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.eq i { width: 3px; height: 4px; border-radius: 2px; background: var(--gold); opacity: 0.7; }
.music-dock.is-live .eq i { animation: eq 0.9s ease-in-out infinite alternate; opacity: 1; }
.music-dock.is-live .eq i:nth-child(2) { animation-delay: -0.3s; }
.music-dock.is-live .eq i:nth-child(3) { animation-delay: -0.6s; }
.music-dock.is-live .eq i:nth-child(4) { animation-delay: -0.15s; }
@keyframes eq { from { height: 3px; } to { height: 16px; } }
.music-panel {
  width: 340px;
  max-width: calc(100vw - 40px);
  border-radius: 18px;
  border: 1px solid rgba(255, 201, 60, 0.28);
  background: rgba(10, 13, 19, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(255, 140, 40, 0.12);
  padding: 12px;
}
.music-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; }
.music-title { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.music-actions { display: flex; gap: 4px; }
.music-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }
.music-btn:hover { color: var(--white); border-color: var(--line-2); }
.music-min .icon { transform: rotate(-90deg); }
.music-body iframe { display: block; width: 100%; border: 0; border-radius: 12px; }
.music-list { list-style: none; max-height: 300px; overflow-y: auto; margin-bottom: 10px; scrollbar-width: thin; }
.music-list a { display: flex; gap: 12px; align-items: center; min-height: 44px; padding: 6px 8px; border-radius: 10px; text-decoration: none; }
.music-list a:hover { background: rgba(255, 255, 255, 0.05); }
.music-list .n { font-family: var(--f-display); font-size: 0.7rem; color: var(--sub); width: 18px; }
.music-list b { display: block; font-family: var(--f-display); font-size: 0.85rem; font-weight: 600; color: var(--white); line-height: 1.3; }
.music-list small { display: block; font-size: 0.74rem; color: var(--muted); line-height: 1.3; }
.music-spotify-link { width: 100%; }
.music-note { font-size: 0.72rem; color: var(--sub); padding: 8px 4px 0; }
@media (max-width: 1100px) {
  .nav-menu a:not(.btn) { white-space: nowrap; }
  .mobile-menu-btn { display: inline-grid; }
  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px var(--pad) 24px;
    background: rgba(10, 13, 19, 0.98);
    border-bottom: 1px solid var(--line);
  }
  .site-header nav.is-open { display: flex; }
  .nav-menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-menu a:not(.btn) { display: flex; align-items: center; min-height: 48px; font-size: 1.05rem; }
  .nav-menu a.active { box-shadow: none; color: var(--gold); padding-bottom: 0; }
  .nav-menu .btn { margin-top: 8px; min-height: 48px; }
  .lang-select { min-height: 48px; }
}

@media (max-width: 768px) {
  .music-dock { left: 14px; bottom: 14px; }
  .music-fab-label { display: none; }
  .music-fab { padding: 0 14px; }
  .music-panel { max-width: calc(100vw - 28px); }
}

/* ==========================================================================
   CASE STUDY (Wireframe B)
   ========================================================================== */
.case { padding: 48px 0 40px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--f-display); font-size: 0.8rem; letter-spacing: 0.12em; color: var(--muted); text-decoration: none; text-transform: uppercase; margin-bottom: 18px; }
.back-link:hover { color: var(--gold); }
.case-top { display: grid; gap: var(--gap); align-items: start; }
.case-player { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #07090D; border: 1px solid var(--line); }
.case-player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.case-player .reel-bottom { left: 24px; }
.vfx-showreels-section { margin-top: 48px; }
.vfx-showreels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.vfx-reel-card { overflow: hidden; border: 1px solid var(--line-2); border-radius: 16px; background: var(--glass); }
.vfx-reel-media { aspect-ratio: 16 / 9; background: #000; }
.vfx-reel-media video { width: 100%; height: 100%; object-fit: cover; }
.vfx-reel-copy { padding: 20px; }
.vfx-reel-copy > span { color: var(--gold); font: 600 0.67rem var(--f-display); letter-spacing: 0.14em; }
.vfx-reel-copy h3 { margin-top: 7px; color: var(--white); font-size: 1.15rem; }
.vfx-reel-copy p { margin-top: 8px; color: var(--muted); font-size: 0.9rem; }
.info-card { border: 1px solid var(--line); border-radius: 16px; background: var(--glass); backdrop-filter: blur(12px); padding: 26px; }
.info-card h2 { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.info-card dl { display: grid; gap: 14px; }
.info-card dt { font-family: var(--f-display); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sub); }
.info-card dd { font-size: 0.95rem; font-weight: 500; color: var(--white); }
.case-title { margin: 36px 0 10px; font-size: clamp(2rem, 4vw, 3.2rem); text-transform: uppercase; }
.case-lead { font-size: 1.1rem; max-width: 760px; }
.case-block-title { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.case-block-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.stills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 44px 0; }
.stills figure { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #07090D; }
.stills img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.stills figure:hover img { transform: scale(1.05); }
.case-body { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.case-body section + section { margin-top: 36px; }
.role-list, .result-list { list-style: none; display: grid; gap: 10px; }
.role-list li, .result-list li { display: flex; gap: 12px; color: #D2D7E0; }
.role-list li::before { content: ""; width: 6px; height: 6px; margin-top: 10px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.result-list .icon { color: var(--teal); margin-top: 3px; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; counter-reset: s; }
.steps li { position: relative; padding-top: 44px; font-size: 0.85rem; color: var(--muted); }
.steps li::before { counter-increment: s; content: "0" counter(s); position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold); font-family: var(--f-display); font-size: 0.75rem; font-weight: 600; color: var(--gold); }
.steps li::after { content: ""; position: absolute; top: 17px; left: 42px; right: -6px; height: 1px; background: linear-gradient(90deg, rgba(255, 201, 60, 0.6), transparent); }
.steps li:last-child::after { display: none; }
.steps b { display: block; color: var(--white); font-family: var(--f-display); font-weight: 600; margin-bottom: 2px; }
.project-pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin-top: 64px; padding-top: 26px; border-top: 1px solid var(--line); }
.project-pager a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-family: var(--f-display); font-size: 0.9rem; font-weight: 500; color: var(--muted); text-decoration: none; }
.project-pager a:hover { color: var(--gold); }
.project-pager a:last-child { justify-self: end; text-align: right; }
.project-pager .grid-link { justify-self: center; width: 48px; justify-content: center; border: 1px solid var(--line-2); border-radius: 12px; }

/* ==========================================================================
   RESUME PAGE (giu lop cu)
   ========================================================================== */
.resume-head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; }
.timeline { display: flex; flex-direction: column; gap: 32px; border-left: 1px solid var(--line-2); margin-left: 8px; padding-left: 28px; }
.timeline-item { position: relative; }
.timeline-item::before { content: ""; position: absolute; left: -35px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.timeline-year { font-family: var(--f-display); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; color: var(--gold); }
.timeline-role { font-family: var(--f-display); font-size: 1.15rem; font-weight: 700; color: #fff; }
.timeline-company { font-family: var(--f-display); color: var(--teal); }
.timeline-desc { font-size: 0.92rem; color: var(--muted); margin-top: 6px; }
.tools-box { border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, rgba(21, 29, 44, 0.75), rgba(13, 17, 24, 0.75)); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.skill-tag-group { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tag { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--f-display); font-size: 0.78rem; color: #DADFE7; }

/* ==========================================================================
   MICRO-MOTION: text reveal khi vao khung nhin
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE — Desktop 1440 · Tablet 768 · Mobile 390 (Wireframe C)
   ========================================================================== */
@media (max-width: 1100px) {
  :root { --pad: 28px; --section: 96px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-sub { max-width: 560px; }
  .featured { grid-template-columns: 1fr; gap: 32px; }
  .panel-row, #about .panel-row { grid-template-columns: 1fr; }
  .work-card, .work-card.is-wide { grid-column: span 6; }
  .process-flow { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .process-step, .process-step:first-child, .process-step:last-child { clip-path: none; border-radius: 14px; padding: 20px 22px; border: 1px solid var(--line); }
  .cta { grid-template-columns: 1fr; padding: 44px; }
  .case-top { grid-template-columns: 1fr; }
  .vfx-showreels { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --pad: 20px; --gap: 16px; --section: 72px; }
  .nav-wrapper { min-height: 64px; }
  .brand-text { display: none; }
  .brand-mark { height: 34px; }


  .hero { padding: 40px 0 72px; }
  .hero .btn-group { flex-direction: column; align-items: center; justify-content: center; width: 100%; max-width: 100%; }
  .hero .btn-group .btn { flex: 0 0 auto; width: auto; min-width: 180px; max-width: 100%; padding-inline: 24px; }
  .reel { clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%); }
  .reel .hud, .reel-bottom { left: 8%; }
  .work-card, .work-card.is-wide { grid-column: span 12; }
  .filter-pill, .btn-sm { min-height: 44px; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 360px; }
  .panel { padding: 24px; }
  .service-grid { grid-template-columns: 1fr; }
  .service { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 16px; padding: 16px 4px; }
  .service .icon { grid-row: span 2; }
  .service + .service { border-left: 0; border-top: 1px solid var(--line); }
  .resume-snap { grid-template-columns: 1fr; }
  .doc-icon { display: none; }
  .process-flow { grid-template-columns: 1fr; }
  .cta { padding: 32px 22px; }
  .stills { grid-template-columns: 1fr 1fr; }
  .stills figure:first-child { grid-column: span 2; }
  .case-body { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .steps li:nth-child(2)::after { display: none; }
  .project-pager { grid-template-columns: 1fr 1fr; }
  .project-pager .grid-link { display: none; }
  .col-span-7, .col-span-5 { grid-column: span 12; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .reel-top { top: 14px; right: 14px; gap: 6px; }
  .reel-top .tc-chip { display: none; }
  .hud-corner { width: 18px; height: 18px; }
  .hud-corner.tl, .hud-corner.tr { top: 12px; }
  .hud-corner.bl, .hud-corner.br { bottom: 12px; }
  .hud-corner.tl, .hud-corner.bl { left: 12px; }
  .hud-corner.tr, .hud-corner.br { right: 12px; }
  .reel-play .icon-btn-lg { width: 56px; height: 56px; }
  .reel-bottom { bottom: 12px; right: 14px; }
  .reel-chips { display: none; }
  .mini-timeline li { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   NHAC NEN — DANG THANH DOC (ghi de ban the): re chuot vao nut tron -> nut gian
   doc len tren thanh 1 vien thuoc; tu tren xuong: am luong doc, loa, ngau nhien,
   bai truoc, bai sau, Play/Pause. Khong hien ten bai.
   ========================================================================== */
.bgm { flex-direction: column-reverse; align-items: center; gap: 0; width: 56px; border-radius: 32px; transition: opacity 0.25s, background 0.25s, box-shadow 0.25s; }
.bgm:hover, .bgm:focus-within, .bgm.is-open { background: rgba(10, 13, 19, 0.9); box-shadow: 0 0 0 1px rgba(255, 201, 60, 0.4), 0 14px 36px rgba(0, 0, 0, 0.6); backdrop-filter: blur(16px); }
.bgm-panel {
  width: 56px; padding: 0; gap: 2px; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none;
  flex-direction: column; align-items: center; max-height: 0; overflow: hidden; transform: none;
  transition: max-height 0.35s var(--ease), padding 0.35s var(--ease), opacity 0.25s, visibility 0.25s;
}
.bgm:hover .bgm-panel, .bgm:focus-within .bgm-panel, .bgm.is-open .bgm-panel { max-height: 320px; padding: 14px 0 6px; transform: none; }
.bgm-info { display: none; }
.bgm-ctrl { flex-direction: column; flex-wrap: nowrap; width: auto; gap: 2px; border: 0; padding: 0; row-gap: 2px; }
.bgm-vol { order: -1; flex-direction: column; width: auto; gap: 8px; padding: 0 0 6px; margin: 0 0 4px; border: 0; border-bottom: 1px solid var(--line); }
.bgm-vol input {
  flex: none; width: 4px; height: 92px; writing-mode: vertical-lr; direction: rtl;
  background: linear-gradient(0deg, var(--gold) var(--vol, 28%), rgba(255, 255, 255, 0.18) var(--vol, 28%));
}
.bgm-more { margin-bottom: 6px; }
@media (max-width: 600px) { .bgm:not(.is-open) .bgm-panel { display: flex; } }

/* Cot phai: Nhac + Len dau trang, co khoang tho voi mep man hinh. */
.music-dock.bgm { left: auto; right: clamp(28px, 6vw, 100px); bottom: 88px; opacity: 0.35; }
.to-top {
  position: fixed; left: auto; right: clamp(28px, 6vw, 100px); bottom: 20px; z-index: 180;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid rgba(255, 201, 60, 0.4); background: rgba(10, 13, 19, 0.85); backdrop-filter: blur(14px);
  color: var(--gold); cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s, border-color 0.2s, box-shadow 0.2s;
}
.to-top.is-visible { opacity: 0.35; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--gold); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 201, 60, 0.4); }
.to-top.is-visible:hover, .to-top.is-visible:focus-visible, .to-top.is-visible.is-engaged { opacity: 1; }
.to-top .icon { width: 22px; height: 22px; }
@media (max-width: 768px) {
  .music-dock.bgm { right: max(24px, env(safe-area-inset-right)); }
  .to-top { left: auto; right: max(24px, env(safe-area-inset-right)); }
}

/* Giu thanh nhac mo khi dang keo am luong */
.bgm.is-dragging { background: rgba(10, 13, 19, 0.9); box-shadow: 0 0 0 1px rgba(255, 201, 60, 0.4), 0 14px 36px rgba(0, 0, 0, 0.6); }
.bgm.is-dragging .bgm-panel { max-height: 320px; padding: 14px 0 6px; opacity: 1; visibility: visible; pointer-events: auto; }
.bgm-vol input { touch-action: none; }

/* Cot trai: CV · SP. Nen vang de van nhan biet khi opacity 35%. */
.side-btn {
  position: fixed; left: clamp(28px, 10vw, 150px); right: auto; z-index: 179; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  font-family: var(--f-display); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.04em; color: #14110A;
  background: linear-gradient(180deg, #FFD95A, #F7B52C); backdrop-filter: blur(14px); border: 1px solid rgba(255, 232, 160, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 190, 60, 0.4);
  opacity: 0.35;
  transition: opacity 0.25s, background 0.25s, color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}
.side-btn:hover, .side-btn:focus-visible, .side-btn.is-engaged {
  opacity: 1;
  color: #14110A; border-color: rgba(255, 232, 160, 0.8); transform: scale(1.06);
  background: linear-gradient(180deg, #FFD95A, #F7B52C);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 26px rgba(255, 190, 60, 0.6);
}
.side-sp { bottom: 20px; }
.side-cv { bottom: 88px; }
.cv-dialog { margin: auto; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; padding: 0; border: 0; background: transparent; }
.cv-dialog::backdrop { background: rgba(5, 7, 10, 0.92); backdrop-filter: blur(6px); }
.cv-dialog[open] { overflow-y: auto; }
.cv-sheet { width: min(900px, 94vw); margin: 40px auto; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); }
.cv-sheet img { width: 100%; height: auto; }
@media (max-width: 768px) {
  .side-btn { width: 48px; height: 48px; left: max(24px, env(safe-area-inset-left)); right: auto; }
  .to-top { width: 48px; height: 48px; }
  .to-top { bottom: 14px; }
  .music-dock.bgm { bottom: 72px; left: auto; right: max(24px, env(safe-area-inset-right)); width: 48px; }
  .bgm-orb { width: 48px; height: 48px; }
  .bgm-panel { width: 48px; }
  .side-sp { bottom: 14px; }
  .side-cv { bottom: 72px; }
  .cv-sheet { margin: 64px auto 24px; }
}

/* Mo ro 100% khi nguoi dung tuong tac; roi/luot trang se tro lai 35%. */
.music-dock.bgm:hover,
.music-dock.bgm:focus-within,
.music-dock.bgm.is-open,
.music-dock.bgm.is-dragging,
.music-dock.bgm.is-engaged { opacity: 1; }

/* Trinh xem CV phong to / thu nho */
.cv-dialog[open] { display: block; overflow: hidden; }
.cv-stage { position: fixed; inset: 0; overflow: hidden; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.cv-stage:active { cursor: grabbing; }
.cv-stage img { position: absolute; left: 0; top: 0; max-width: none; width: 1414px; height: 2000px; transform-origin: 0 0; border-radius: 6px; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7); will-change: transform; -webkit-user-drag: none; }
.cv-tools { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2; display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(10, 13, 19, 0.8); border: 1px solid var(--line-2); backdrop-filter: blur(12px); }
.cv-tools .lb-btn { position: static; transform: none; width: 44px; height: 44px; }
.cv-tools .cv-dl { color: var(--gold); border-color: rgba(255, 201, 60, 0.5); }
.cv-dialog .cv-close { position: fixed; top: 16px; right: 16px; z-index: 2; }

/* Bai dang kieu Instagram: avatar that, ten tren, nhom duoi; thanh tim / binh luan / chia se / luu */
.gallery-post-avatar { padding: 0; background: linear-gradient(135deg, #FFC93C, #FF7A30); }
.gallery-post-avatar img { transform-origin: 50% 0; }
.ig-foot { display: block !important; padding: 8px 14px 14px !important; }
.ig-actions { display: flex; align-items: center; gap: 2px; }
.ig-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: var(--white); cursor: pointer; text-decoration: none; transition: transform 0.15s, color 0.2s; }
.ig-btn:hover { transform: scale(1.08); color: var(--gold); }
.ig-btn .icon { width: 24px; height: 24px; }
.ig-like[aria-pressed="true"] { color: #FF3040; }
.ig-save[aria-pressed="true"] { color: var(--gold); }
.ig-share.is-copied { color: var(--teal); }
.ig-btn.is-pop { animation: igPop 0.4s var(--ease); }
@keyframes igPop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
.ig-count { margin-left: auto; margin-right: 4px; font-family: var(--f-display); font-size: 0.78rem; color: var(--muted); }
.ig-caption { margin: 4px 6px 0; font-size: 0.9rem; color: #D2D7E0; }
.ig-caption b { color: var(--white); font-family: var(--f-display); margin-right: 6px; }
.gallery-post-media { position: relative; }
.ig-burst { position: absolute; left: 50%; top: 50%; z-index: 3; pointer-events: none; transform: translate(-50%, -50%) scale(0); animation: igBurst 0.9s var(--ease) forwards; filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5)); }
.ig-burst .icon { width: 96px; height: 96px; }
@keyframes igBurst { 0% { transform: translate(-50%, -50%) scale(0); opacity: 0; } 25% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; } 45% { transform: translate(-50%, -50%) scale(0.95); } 80% { opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ig-burst, .ig-btn.is-pop { animation: none; } }

/* Avatar tron bai dang: dau -> nguc, nguoi can giua, lap kin vong tron (theo chu du an) */
.gallery-post-avatar { position: relative; overflow: hidden; }
.gallery-post-avatar img { border-radius: 0; }

/* Avatar bai dang: anh chan dung ao hoa da cat san hinh vuong (avatar_casual_circle.webp) */
.gallery-post-avatar img { position: absolute; }

/* Avatar bai dang: hien TRON nguoi (khong cat) trong vong tron */
.gallery-post-avatar img { object-position: center; }

/* Tim tu bung khi cuon toi nua anh (mau do nhat hon de phan biet voi luc nguoi xem tha tim) */
.ig-burst { color: #fff; }
.ig-burst.is-soft { color: rgba(255, 48, 64, 0.92); }
.ig-like.is-nudge { animation: igNudge 0.9s var(--ease); }
@keyframes igNudge { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.25); color: #FF3040; } 40% { transform: scale(0.95); } 60% { transform: scale(1.12); } }
@media (prefers-reduced-motion: reduce) { .ig-like.is-nudge { animation: none; } }

/* O binh luan rieng (gui ve chu du an, khong hien cong khai) */
.ig-form { margin: 10px 6px 0; display: grid; gap: 8px; }
.ig-form[hidden] { display: none; }
.ig-form input[type=text], .ig-form textarea {
  width: 100%; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04); color: var(--white); font: inherit; font-size: 0.92rem; resize: none;
}
.ig-form input[type=text]:focus, .ig-form textarea:focus { outline: none; border-color: rgba(255, 201, 60, 0.6); }
.ig-form-row { display: flex; gap: 8px; align-items: flex-end; }
.ig-form-row textarea { flex: 1; }
.ig-send { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer; font-family: var(--f-display); font-weight: 700; color: #14110A; background: linear-gradient(180deg, #FFD95A, #F7B52C); }
.ig-send:disabled { opacity: 0.5; cursor: progress; }
.ig-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ig-note { font-size: 0.78rem; color: var(--sub); margin: 0; }
.ig-note.is-ok { color: var(--teal); }
.ig-comment[aria-expanded="true"] { color: var(--gold); }

/* ===== Bang tin kieu Instagram (tham khao video chu du an) ===== */
#gallery-grid.gallery-feed { display: grid; gap: 28px; max-width: 520px; margin: 0 auto; }
.igp { border: 0 !important; border-radius: 0 !important; background: transparent !important; overflow: visible !important; }
.igp .gallery-post-head { padding: 0 4px 10px !important; }
.igp-media { position: relative; width: 100%; background: #07090D; border-radius: 6px; overflow: hidden; }
.igp-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.igp-track::-webkit-scrollbar { display: none; }
.igp-slide { flex: 0 0 100%; height: 100%; padding: 0; border: 0; background: none; scroll-snap-align: center; cursor: zoom-in; }
.igp-slide img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
.igp-count { position: absolute; top: 12px; right: 12px; z-index: 2; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); color: #fff; font-family: var(--f-display); font-size: 0.75rem; font-weight: 600; }
.igp-nav { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.85); color: #111; cursor: pointer; opacity: 0; transition: opacity 0.2s; }
.igp-nav .icon { width: 16px; height: 16px; }
.igp-prev { left: 10px; } .igp-next { right: 10px; }
.igp-media:hover .igp-nav, .igp-nav:focus-visible { opacity: 1; }
.igp-nav[hidden] { display: none; }
@media (hover: none) { .igp-nav { display: none; } }
.igp .ig-foot { padding: 6px 0 0 !important; }
.igp .ig-actions { position: relative; }
.igp-dots { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; }
.igp-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.3); transition: background 0.2s, transform 0.2s; }
.igp-dots i.on { background: #3897F0; transform: scale(1.1); }
.igp .ig-save { margin-left: auto; }
.igp .ig-caption { margin: 2px 4px 0; }
.gallery-category-ring { background: linear-gradient(45deg, #FFC93C, #FF7A30 45%, #E1306C 80%, #C13584) !important; }

/* Khung bai dang co gian muot theo ti le tung anh khi vuot */
.igp-media { transition: height 0.35s cubic-bezier(.16,1,.3,1); }
.igp-slide { align-self: stretch; }
@media (prefers-reduced-motion: reduce) { .igp-media { transition: none; } }

/* Tha tim giong Instagram (phan tich tung khung video tham khao):
   co 75% -> nay 125% to mau tim-hong -> ve 100%, mau chuyen tim -> hong -> do #FF3040 */
.ig-like.is-liking { animation: igLikeScale 0.7s cubic-bezier(.17,.89,.32,1.28), igLikeColor 0.9s linear; }
@keyframes igLikeScale { 0% { transform: scale(1); } 12% { transform: scale(0.75); } 38% { transform: scale(1.25); } 58% { transform: scale(0.94); } 78% { transform: scale(1.04); } 100% { transform: scale(1); } }
@keyframes igLikeColor { 0%, 10% { color: var(--white); } 14%, 40% { color: #C13584; } 65% { color: #E1306C; } 100% { color: #FF3040; } }
.ig-like.is-unliking { animation: igUnlike 0.3s ease-out; }
@keyframes igUnlike { 0% { transform: scale(1); } 40% { transform: scale(0.8); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .ig-like.is-liking, .ig-like.is-unliking { animation: none; } }

/* Avatar bai dang (theo mau chu du an): nguoi phong to, dau gan mep tren, cat ngang dui; nen cam vang gradient, vien vang */
.gallery-post-avatar img { inset: auto; left: 50%; top: 0; width: auto; height: 115%; max-width: none; object-fit: initial; transform: translateX(-50%); }

/* Vien avatar: gradient vang -> cam -> do hong (nhu vong story Instagram), khe toi, nen cam vang ben trong */
.igp .gallery-post-avatar { padding: 2.5px; overflow: visible !important; box-shadow: none !important;
  background: linear-gradient(45deg, #FFC93C 0%, #FF7A30 40%, #E1306C 75%, #C13584 100%) !important; }
.av-in { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--bg); background: linear-gradient(180deg, #FFD24A 0%, #FF9A3C 60%, #FF7A30 100%); }

/* Trang du an: Tieu de -> Showreel/video day du -> Khung hinh -> Thong tin */
.case-top { grid-template-columns: 1fr !important; margin-top: 8px; }
.case .case-title { margin-top: 18px; }
.case .case-lead { margin-bottom: 24px; }
.case-body .info-card { margin-bottom: 36px; }

/* ===== Hanh trinh su nghiep: neon noi cac moc ===== */
.mini-timeline { position: relative; border-left-color: rgba(255, 255, 255, 0.08) !important; }
.mini-timeline::before {           /* duong neon tu ve tu duoi len */
  content: ""; position: absolute; left: -1.5px; top: 0; bottom: 0; width: 2px; border-radius: 2px;
  background: linear-gradient(0deg, #FF7A30, #FFC93C 70%, #FFE8A0);
  transform: scaleY(0); transform-origin: 50% 100%;
}
.mini-timeline.tl-on::before { transform: scaleY(1); transition: transform var(--tl-dur, 2s) cubic-bezier(.45,.05,.35,1); }
.mini-timeline::after {            /* dom sang chay doc duong khi da noi xong */
  content: ""; position: absolute; left: -4.5px; width: 8px; height: 26px; bottom: 0; border-radius: 8px; opacity: 0;
  background: radial-gradient(closest-side, #FFF6D6, rgba(255, 201, 60, 0.85) 45%, transparent);
  filter: blur(0.5px);
}
.mini-timeline.tl-done::after { animation: tlPulse 3.2s cubic-bezier(.5,0,.5,1) 0.4s infinite; }
@keyframes tlPulse { 0% { bottom: 0; opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { bottom: calc(100% - 26px); opacity: 0; } }
.mini-timeline li { transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.mini-timeline li.is-lit { opacity: 1; transform: none; }
.mini-timeline li::before { background: #3a2a1c !important; box-shadow: none !important; transition: background 0.3s, box-shadow 0.3s, transform 0.3s; }
.mini-timeline li.is-lit::before { background: #FFC93C !important; box-shadow: 0 0 0 3px rgba(255, 170, 60, 0.18), 0 0 14px #FF9A3C, 0 0 26px rgba(255, 122, 48, 0.7) !important; animation: tlNode 0.7s var(--ease); }
@keyframes tlNode { 0% { transform: scale(0.4); } 55% { transform: scale(1.9); } 100% { transform: scale(1); } }
.mini-timeline li.is-lit .y { text-shadow: 0 0 12px rgba(255, 201, 60, 0.55); }
@media (prefers-reduced-motion: reduce) {
  .mini-timeline::before { transform: scaleY(1); } .mini-timeline.tl-done::after { animation: none; }
  .mini-timeline li { opacity: 1; transform: none; }
}

/* ==========================================================================
   DREAM GLOW — hieu ung anh sang mo (bloom) dung chung khi hover / anh sang dong, ca chu
   ========================================================================== */
:root {
  --dream-text: 0 0 6px rgba(255, 226, 150, 0.85), 0 0 16px rgba(255, 180, 70, 0.55), 0 0 32px rgba(255, 122, 48, 0.35);
  --dream-text-dark: 0 0 6px rgba(255, 255, 255, 0.75), 0 0 14px rgba(255, 240, 200, 0.5);
  --dream-shape: drop-shadow(0 0 6px rgba(255, 214, 120, 0.75)) drop-shadow(0 0 18px rgba(255, 150, 60, 0.45));
}
/* Quang sang mo phia sau nut */
.btn, .filter-pill, .icon-btn, .ig-send, .gallery-category { position: relative; isolation: isolate; }
.side-btn, .to-top { isolation: isolate; } /* giu position: fixed */
.btn::after, .filter-pill::after, .side-btn::after, .to-top::after, .icon-btn::after, .ig-send::after {
  content: ""; position: absolute; inset: -8px; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 210, 110, 0.75), rgba(255, 140, 50, 0.35) 55%, transparent 100%);
  filter: blur(14px); opacity: 0; transform: scale(0.85);
  transition: opacity 0.45s cubic-bezier(.16,1,.3,1), transform 0.45s cubic-bezier(.16,1,.3,1);
}
.btn:hover::after, .btn:focus-visible::after, .filter-pill:hover::after, .side-btn:hover::after, .to-top:hover::after,
.icon-btn:hover::after, .ig-send:hover::after, .filter-pill[aria-pressed="true"]::after { opacity: 1; transform: scale(1.05); }
.filter-pill[aria-pressed="true"]::after { opacity: 0.45; }
/* Chu sang mo khi hover */
.btn, .filter-pill, .side-btn, .to-top, .nav-menu a, .footer-nav a, .back-link, .project-pager a, .btn-ghost,
.gallery-category-label, .ig-btn, .bgm-btn, .mb-btn, .lb-btn, .lang-select { transition-property: color, background, border-color, box-shadow, transform, text-shadow, filter; transition-duration: 0.35s; }
.btn-secondary:hover, .btn-ghost:hover, .nav-menu a:not(.btn):hover, .footer-nav a:hover, .back-link:hover,
.project-pager a:hover, .filter-pill:hover, .to-top:hover, .gallery-category:hover .gallery-category-label { text-shadow: var(--dream-text); }
.btn-primary:hover, .side-btn:hover, .ig-send:hover { text-shadow: var(--dream-text-dark); }
/* Icon / hinh khoi sang mo */
.icon-btn:hover, .ig-btn:hover, .bgm-btn:hover, .lb-btn:hover, .to-top:hover, .socials a:hover, .bgm-orb:hover { filter: var(--dream-shape); }
.ig-like[aria-pressed="true"] { filter: drop-shadow(0 0 6px rgba(255, 48, 64, 0.65)) drop-shadow(0 0 16px rgba(255, 48, 64, 0.35)); }
.gallery-category:hover .gallery-category-ring { filter: var(--dream-shape); }
/* The / anh: quang sang am toa ra */
.work-card a:hover .work-media, .igp-media:hover, .stills figure:hover, .panel:hover {
  box-shadow: 0 0 0 1px rgba(255, 201, 60, 0.35), 0 0 30px rgba(255, 170, 60, 0.28), 0 0 70px rgba(255, 122, 48, 0.18), 0 20px 50px rgba(0, 0, 0, 0.5);
}
.work-card a:hover .work-title, .featured-copy:hover .featured-title { text-shadow: var(--dream-text); }
/* Anh sang dong san co: them lop mo mem */
.mini-timeline::before { box-shadow: 0 0 6px rgba(255, 214, 120, 0.95), 0 0 16px rgba(255, 170, 60, 0.7), 0 0 34px rgba(255, 122, 48, 0.45); }
.mini-timeline.tl-done::after { filter: blur(1.5px) drop-shadow(0 0 8px rgba(255, 220, 140, 0.9)); }
.waveform { filter: drop-shadow(0 0 4px rgba(255, 214, 120, 0.9)) drop-shadow(0 0 12px rgba(255, 170, 60, 0.6)) drop-shadow(0 0 26px rgba(255, 122, 48, 0.35)); }
.rec-dot { box-shadow: 0 0 6px var(--red), 0 0 16px rgba(255, 59, 48, 0.7), 0 0 30px rgba(255, 59, 48, 0.35); }
.progress > span { box-shadow: 0 0 8px rgba(255, 214, 120, 0.9), 0 0 20px rgba(255, 150, 60, 0.55); }
.bgm.is-live .eq i, .music-dock.is-live .eq i { box-shadow: 0 0 6px rgba(255, 214, 120, 0.9), 0 0 12px rgba(255, 150, 60, 0.5); }
.accent { text-shadow: 0 0 18px rgba(255, 201, 60, 0.35), 0 0 42px rgba(255, 140, 50, 0.2); }
@media (hover: none) { .btn::after, .filter-pill::after, .side-btn::after, .to-top::after, .icon-btn::after { display: none; } }

/* Story: quang sang tron toa tu nhien (khong bi cat thanh o vuong, khong nhoe chu) */
.gallery-stories { padding: 26px 18px 28px !important; margin: -16px 0 18px !important; scroll-padding-inline: 18px; }
.gallery-category { isolation: auto; }
.gallery-category::before {
  content: ""; position: absolute; left: 50%; top: -10px; width: 120px; height: 120px; z-index: -1; pointer-events: none;
  transform: translateX(-50%) scale(0.8); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 196, 90, 0.55), rgba(255, 120, 60, 0.28) 55%, rgba(225, 48, 108, 0.12) 75%, transparent 100%);
  filter: blur(12px); opacity: 0; transition: opacity 0.5s cubic-bezier(.16,1,.3,1), transform 0.5s cubic-bezier(.16,1,.3,1);
}
.gallery-category:hover::before, .gallery-category:focus-visible::before { opacity: 1; transform: translateX(-50%) scale(1); }
.gallery-category[aria-selected="true"]::before { opacity: 0.55; transform: translateX(-50%) scale(0.95); }
.gallery-category:hover .gallery-category-ring, .gallery-category:focus-visible .gallery-category-ring { filter: none !important; }
.gallery-category[aria-selected="true"] .gallery-category-ring { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px rgba(255, 201, 60, 0.85) !important; }
.gallery-category:hover .gallery-category-label { color: var(--white); text-shadow: 0 0 10px rgba(255, 210, 130, 0.45) !important; }
@media (max-width: 768px) { .gallery-category::before { width: 96px; height: 96px; top: -8px; } }

/* ==========================================================================
   KHU VUC THONG TIN PHAT SANG + MOTION DONG DEU
   Vet sang neon chay vong vien (6s/vong, cung toc do, lech pha deu -> lan song), icon & so "tho" sang cung nhip 3s.
   ========================================================================== */
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.process-step, .contact-list li > a, .contact-list li > span, .info-card, .panel, .tools-box, .service {
  position: relative; isolation: isolate;
}
.process-step, .contact-list li > a, .contact-list li > span, .info-card, .tools-box {
  box-shadow: 0 0 0 1px rgba(255, 201, 60, 0.16), 0 0 26px rgba(255, 150, 60, 0.10), inset 0 0 24px rgba(255, 170, 60, 0.04);
}
.process-step::after, .contact-list li > a::after, .contact-list li > span::after, .info-card::after, .panel::after, .tools-box::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.3px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--sweep), transparent 0deg 250deg, rgba(255, 201, 60, 0.0) 262deg,
              rgba(255, 220, 140, 0.95) 300deg, rgba(255, 122, 48, 0.85) 322deg, transparent 345deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  filter: drop-shadow(0 0 4px rgba(255, 190, 80, 0.9)) drop-shadow(0 0 10px rgba(255, 140, 50, 0.5));
  animation: infoSweep 6s linear infinite; animation-delay: calc(var(--i, 0) * -0.9s);
}
@keyframes infoSweep { to { --sweep: 360deg; } }
/* lech pha deu theo thu tu -> song sang lan qua cac the */
.process-step:nth-child(2), .contact-list li:nth-child(2) > *, .panel-row > :nth-child(2), .tools-box:nth-child(2) { --i: 1; }
.process-step:nth-child(3), .contact-list li:nth-child(3) > *, .tools-box:nth-child(3) { --i: 2; }
.process-step:nth-child(4) { --i: 3; }
/* icon & so thu tu tho sang cung nhip */
.process-step .icon, .contact-list .icon, .service .icon, .info-card h2, .process-num {
  animation: infoBreath 3s ease-in-out infinite;
}
@keyframes infoBreath {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(255, 201, 60, 0.45)); text-shadow: 0 0 4px rgba(255, 170, 60, 0.35); }
  50% { filter: drop-shadow(0 0 8px rgba(255, 210, 120, 0.95)) drop-shadow(0 0 16px rgba(255, 140, 50, 0.5)); text-shadow: 0 0 10px rgba(255, 200, 110, 0.85), 0 0 22px rgba(255, 140, 50, 0.45); }
}
.process-title, .contact-list li a > span, .contact-list li > span > span { text-shadow: 0 0 12px rgba(255, 220, 160, 0.18); }
/* hover: sang ruc hon */
.process-step:hover, .contact-list li > a:hover, .info-card:hover, .tools-box:hover {
  box-shadow: 0 0 0 1px rgba(255, 201, 60, 0.45), 0 0 34px rgba(255, 160, 60, 0.28), 0 0 70px rgba(255, 122, 48, 0.14), inset 0 0 30px rgba(255, 170, 60, 0.08);
}
@media (prefers-reduced-motion: reduce) {
  .process-step::after, .contact-list li > a::after, .contact-list li > span::after, .info-card::after, .panel::after, .tools-box::after { animation: none; }
  .process-step .icon, .contact-list .icon, .service .icon, .info-card h2, .process-num { animation: none; filter: drop-shadow(0 0 6px rgba(255, 201, 60, 0.7)); }
}

/* HERO: "CHUYEN DONG." & nut "Xem Showreel" — dream glow thuong truc, toa min, tho cung nhip 3s */
@keyframes heroGlow {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 10px rgba(255, 200, 90, 0.35)); }
  50% { filter: brightness(1.12) drop-shadow(0 0 22px rgba(255, 200, 90, 0.7)) drop-shadow(0 0 48px rgba(255, 140, 50, 0.45)); }
}
#btn-watch-showreel {
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.7), 0 0 14px rgba(255, 245, 210, 0.45);
  box-shadow: 0 0 0 1px rgba(255, 232, 160, 0.9), 0 0 16px rgba(255, 214, 110, 0.75), 0 0 40px rgba(255, 170, 60, 0.55), 0 0 80px rgba(255, 122, 48, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
#btn-watch-showreel::after {
  inset: -22px; opacity: 0.85; transform: scale(1);
  background: radial-gradient(closest-side, rgba(255, 220, 130, 0.8), rgba(255, 160, 60, 0.45) 50%, rgba(255, 110, 50, 0.15) 75%, transparent 100%);
  filter: blur(22px); animation: heroHalo 3s ease-in-out infinite;
}
@keyframes heroHalo { 0%, 100% { opacity: 0.6; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1.1); } }
#btn-watch-showreel:hover { box-shadow: 0 0 0 1px #fff3c4, 0 0 22px rgba(255, 220, 120, 0.95), 0 0 56px rgba(255, 170, 60, 0.75), 0 0 110px rgba(255, 122, 48, 0.5), inset 0 1px 0 #fff; }
#btn-watch-showreel:hover::after { opacity: 1; transform: scale(1.18); }
@media (prefers-reduced-motion: reduce) { .hero-title .accent, #btn-watch-showreel::after { animation: none; } }
@media (hover: none) { #btn-watch-showreel::after { display: block; } }
/* Chinh lai: giu net chu sac, anh sang don ra lop toa rong; nhip tho doi do toa (khong lam nhoe chu) */
.hero-title .accent {
  text-shadow: 0 0 1px rgba(255, 236, 170, 0.5), 0 0 18px rgba(255, 205, 90, 0.5), 0 0 42px rgba(255, 170, 60, 0.42), 0 0 84px rgba(255, 130, 50, 0.32), 0 0 150px rgba(255, 110, 40, 0.22);
  animation: heroGlow2 3s ease-in-out infinite;
}
@keyframes heroGlow2 {
  0%, 100% { filter: none; text-shadow: 0 0 1px rgba(255, 236, 170, 0.5), 0 0 16px rgba(255, 205, 90, 0.42), 0 0 36px rgba(255, 170, 60, 0.34), 0 0 72px rgba(255, 130, 50, 0.26), 0 0 130px rgba(255, 110, 40, 0.18); }
  50% { filter: brightness(1.08); text-shadow: 0 0 1px rgba(255, 240, 190, 0.6), 0 0 22px rgba(255, 210, 100, 0.62), 0 0 52px rgba(255, 175, 60, 0.52), 0 0 100px rgba(255, 135, 50, 0.4), 0 0 180px rgba(255, 110, 40, 0.28); }
}
@media (prefers-reduced-motion: reduce) { .hero-title .accent { animation: none; } }

/* Hero: tang do ruc */
@keyframes heroGlow2 {
  0%, 100% { filter: none; text-shadow: 0 0 1px rgba(255, 236, 170, 0.6), 0 0 18px rgba(255, 205, 90, 0.55), 0 0 40px rgba(255, 170, 60, 0.45), 0 0 80px rgba(255, 130, 50, 0.34), 0 0 140px rgba(255, 110, 40, 0.24); }
  50% { filter: brightness(1.1); text-shadow: 0 0 2px rgba(255, 240, 190, 0.7), 0 0 26px rgba(255, 210, 100, 0.75), 0 0 60px rgba(255, 175, 60, 0.6), 0 0 110px rgba(255, 135, 50, 0.45), 0 0 190px rgba(255, 110, 40, 0.32); }
}

/* ===== Icon dong the Quy trinh: cung nhip 3s, noi tiep nhau (y tuong -> quay -> chinh -> giao) ===== */
.proc-icon { overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.proc-icon * { transform-box: fill-box; }
/* Y tuong: bong den loe sang + tia sang */
.i-bulb .pi-rays { opacity: 0; animation: piRays 3s ease-in-out infinite; }
.i-bulb .pi-bulb { animation: piBulb 3s ease-in-out infinite; }
@keyframes piRays { 0%, 8% { opacity: 0; transform: scale(0.6); } 18% { opacity: 1; transform: scale(1.1); } 40%, 100% { opacity: 0; transform: scale(1.2); } }
@keyframes piBulb { 0%, 8%, 45%, 100% { fill: transparent; } 16%, 28% { fill: rgba(255, 214, 110, 0.55); } }
/* San xuat: thanh clapper dap xuong */
.i-clapper .pi-clap { transform-origin: 0% 100%; animation: piClap 3s cubic-bezier(.5,0,.3,1) infinite; animation-delay: 0.75s; }
@keyframes piClap { 0%, 30%, 100% { transform: rotate(0); } 8% { transform: rotate(-22deg); } 14% { transform: rotate(2deg); } 18% { transform: rotate(0); } }
/* Tinh chinh: 2 num truot nguoc chieu */
.i-sliders .pi-k1 { animation: piK1 3s ease-in-out infinite; animation-delay: 1.5s; }
.i-sliders .pi-k2 { animation: piK2 3s ease-in-out infinite; animation-delay: 1.5s; }
@keyframes piK1 { 0%, 100% { transform: translateX(0); } 35% { transform: translateX(-7px); } 65% { transform: translateX(-2px); } }
@keyframes piK2 { 0%, 100% { transform: translateX(0); } 35% { transform: translateX(7px); } 65% { transform: translateX(3px); } }
/* Ban giao: may bay giay bay vut ra roi bay lai vao */
.i-send .pi-plane { animation: piFly 3s cubic-bezier(.6,0,.4,1) infinite; animation-delay: 2.25s; }
@keyframes piFly {
  0%, 55%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
  25% { transform: translate(14px, -14px) scale(0.7); opacity: 0; }
  26% { transform: translate(-14px, 14px) scale(0.7); opacity: 0; }
  45% { transform: translate(0, 0) scale(1); opacity: 1; }
}

/* ===== Timeline HUD Hero: phat sang + chuyen dong ===== */
.reel-bottom .progress { overflow: visible; background: rgba(255, 255, 255, 0.14); box-shadow: 0 0 10px rgba(255, 170, 60, 0.15); }
.reel-bottom .progress > span {
  box-shadow: 0 0 6px rgba(255, 220, 130, 0.95), 0 0 16px rgba(255, 170, 60, 0.75), 0 0 34px rgba(255, 122, 48, 0.45);
  background: linear-gradient(90deg, #FF7A30, #FFC93C 70%, #FFE9A8);
}
.reel-bottom .progress > span::after {   /* dau phat: cham sang nhip nhay */
  content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; border-radius: 50%;
  transform: translateY(-50%); background: #FFF4D0;
  box-shadow: 0 0 6px #FFE9A8, 0 0 14px rgba(255, 200, 90, 0.95), 0 0 28px rgba(255, 140, 50, 0.7);
  animation: playheadPulse 1.5s ease-in-out infinite;
}
@keyframes playheadPulse { 0%, 100% { transform: translateY(-50%) scale(0.85); opacity: 0.85; } 50% { transform: translateY(-50%) scale(1.2); opacity: 1; } }
.reel-bottom .progress::before {         /* vet sang chay doc thanh */
  content: ""; position: absolute; top: -3px; bottom: -3px; width: 70px; left: 0; border-radius: 4px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 240, 200, 0.55), transparent); filter: blur(3px);
  animation: trackSweep 3s cubic-bezier(.45,0,.55,1) infinite;
}
@keyframes trackSweep { 0% { transform: translateX(-80px); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(calc(var(--track-w, 600px))); opacity: 0; } }
.reel-bottom .progress { --track-w: 100%; }
.reel-time { text-shadow: 0 0 6px rgba(255, 230, 160, 0.75), 0 0 14px rgba(255, 170, 60, 0.45); }
.reel-chips .chip { animation: chipGlow 3s ease-in-out infinite; }
.reel-chips .chip:nth-child(2) { animation-delay: 0.25s; } .reel-chips .chip:nth-child(3) { animation-delay: 0.5s; } .reel-chips .chip:nth-child(4) { animation-delay: 0.75s; }
@keyframes chipGlow {
  0%, 60%, 100% { border-color: rgba(255, 255, 255, 0.28); box-shadow: none; text-shadow: none; }
  25% { border-color: rgba(255, 210, 120, 0.9); box-shadow: 0 0 10px rgba(255, 190, 80, 0.55), 0 0 22px rgba(255, 140, 50, 0.3); text-shadow: 0 0 8px rgba(255, 230, 160, 0.8); }
}
@media (prefers-reduced-motion: reduce) { .reel-bottom .progress > span::after, .reel-bottom .progress::before, .reel-chips .chip { animation: none; } }
@keyframes trackSweep { 0% { left: -70px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* ===== Icon dong: Lien he & Dich vu (nhip 3s, noi tiep 0.5s) ===== */
.contact-list li:nth-child(2) .proc-icon *, .service:nth-child(2) .proc-icon * { animation-delay: 0.5s !important; }
.contact-list li:nth-child(3) .proc-icon *, .service:nth-child(3) .proc-icon * { animation-delay: 1s !important; }
.i-mail .pi-flap { transform-origin: 50% 0%; animation: piFlap 3s ease-in-out infinite; }
@keyframes piFlap { 0%, 45%, 100% { transform: scaleY(1); } 15%, 30% { transform: scaleY(-0.55) translateY(-1px); } }
.i-phone .pi-handset { transform-origin: 50% 50%; animation: piRing 3s ease-in-out infinite; }
.i-phone .pi-waves { opacity: 0; animation: piWaves 3s ease-out infinite; }
@keyframes piRing { 0%, 30%, 100% { transform: rotate(0); } 4% { transform: rotate(-14deg); } 8% { transform: rotate(12deg); } 12% { transform: rotate(-10deg); } 16% { transform: rotate(8deg); } 20% { transform: rotate(-4deg); } }
@keyframes piWaves { 0%, 2% { opacity: 0; transform: scale(0.7); } 12%, 24% { opacity: 1; transform: scale(1); } 40%, 100% { opacity: 0; transform: scale(1.15); } }
.i-pin .pi-pin { animation: piDrop 3s cubic-bezier(.3,0,.3,1) infinite; }
.i-pin .pi-ripple { stroke-width: 1.2; opacity: 0; transform-origin: 50% 50%; animation: piRipple 3s ease-out infinite; }
@keyframes piDrop { 0%, 40%, 100% { transform: translateY(0); } 10% { transform: translateY(-5px); } 18% { transform: translateY(0); } 23% { transform: translateY(-1.5px); } 28% { transform: translateY(0); } }
@keyframes piRipple { 0%, 16% { opacity: 0; transform: scale(0.3); } 20% { opacity: 1; transform: scale(0.6); } 45%, 100% { opacity: 0; transform: scale(1.5); } }
.i-camera .pi-rec { animation: piRec 1.5s steps(1) infinite; }
.i-camera .pi-cam { animation: piCam 3s ease-in-out infinite; }
@keyframes piRec { 0%, 100% { opacity: 1; } 50% { opacity: 0.15; } }
@keyframes piCam { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(1.2px) rotate(-2deg); } 60% { transform: translateX(-0.8px) rotate(1deg); } }
.i-layers .pi-l1 { animation: piLayer 3s cubic-bezier(.4,0,.3,1) infinite; }
.i-layers .pi-l2 { animation: piLayer2 3s cubic-bezier(.4,0,.3,1) infinite; }
@keyframes piLayer { 0%, 55%, 100% { transform: translateY(0); } 25% { transform: translateY(-3.5px); } }
@keyframes piLayer2 { 0%, 55%, 100% { transform: translateY(0); opacity: 1; } 25% { transform: translateY(1.5px); opacity: 0.7; } }
.service .proc-icon { width: 30px; height: 30px; color: var(--gold); }
.contact-list .proc-icon { width: 20px; height: 20px; color: var(--gold); }
@media (prefers-reduced-motion: reduce) { .proc-icon * { animation: none !important; } }

/* ===== Timeline: nam sang keo len -> ten cong ty pop nay -> vai tro hien muot ===== */
.mini-timeline li { opacity: 1 !important; transform: none !important; }
.mini-timeline .cn { display: inline-block; transform-origin: 0% 60%; }
.mini-timeline li .y, .mini-timeline li .cn, .mini-timeline li .r { opacity: 0; }
@keyframes tlYear {
  0% { opacity: 0; clip-path: inset(100% 0 0 0); transform: translateY(6px); filter: brightness(2.2) blur(3px); text-shadow: 0 0 22px rgba(255, 214, 110, 1), 0 0 40px rgba(255, 150, 50, 0.8); }
  55% { opacity: 1; clip-path: inset(0 0 0 0); transform: none; filter: brightness(1.6) blur(0); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); transform: none; filter: none; text-shadow: 0 0 12px rgba(255, 201, 60, 0.55); }
}
@keyframes tlPop {
  0% { opacity: 0; transform: scale(0.35); filter: blur(4px); }
  60% { opacity: 1; transform: scale(1.12); filter: blur(0); text-shadow: 0 0 18px rgba(255, 230, 170, 0.7); }
  80% { transform: scale(0.97); }
  100% { opacity: 1; transform: scale(1); text-shadow: none; }
}
@keyframes tlRole {
  0% { opacity: 0; transform: translateY(8px); filter: blur(6px); letter-spacing: 0.04em; }
  100% { opacity: 1; transform: none; filter: blur(0); letter-spacing: normal; }
}
.mini-timeline.tl-instant li .y, .mini-timeline.tl-instant li .cn, .mini-timeline.tl-instant li .r { animation: none !important; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .mini-timeline li .y, .mini-timeline li .cn, .mini-timeline li .r { animation: none !important; opacity: 1; } }

/* ===== Timeline: sau khi hien xong -> chu lap lanh + phat sang tho deu ===== */
.mini-timeline li.is-lit .y, .mini-timeline li.is-lit .cn, .mini-timeline li.is-lit .r {
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; background-size: 260% 100%;
}
.mini-timeline li.is-lit .y { background-image: linear-gradient(100deg, #FFC93C 0%, #FFC93C 40%, #FFF8DC 50%, #FFC93C 60%, #FFC93C 100%); }
.mini-timeline li.is-lit .cn { position: relative; background-image: linear-gradient(100deg, #fff 0%, #fff 40%, #FFE3A0 50%, #fff 60%, #fff 100%); }
.mini-timeline li.is-lit .r { background-image: linear-gradient(100deg, #9aa3b2 0%, #9aa3b2 42%, #fff 50%, #9aa3b2 58%, #9aa3b2 100%);
  animation: tlRole 1.3s cubic-bezier(.22,.8,.25,1) 0.9s both, tlShimmer 3.8s linear 2.2s infinite; }
/* ngoi sao lap lanh canh ten cong ty */
.mini-timeline li.is-lit .cn::after { position: absolute; color: #FFE7A8; -webkit-text-fill-color: #FFE7A8; opacity: 0; animation: tlTwinkle 2.4s ease-in-out 1.5s infinite;
}
.mini-timeline li:nth-child(2).is-lit .cn::after { animation-delay: 2.1s; }
.mini-timeline li:nth-child(3).is-lit .cn::after { animation-delay: 1.8s; }
.mini-timeline li:nth-child(4).is-lit .cn::after { animation-delay: 2.4s; }
@keyframes tlShimmer { 0% { background-position: 120% 0; } 55%, 100% { background-position: -20% 0; } }
@keyframes tlGlowY { 0%, 100% { filter: drop-shadow(0 0 3px rgba(255, 201, 60, 0.45)); } 50% { filter: drop-shadow(0 0 9px rgba(255, 185, 70, 0.95)) brightness(1.15); } }
@keyframes tlGlowW { 0%, 100% { filter: drop-shadow(0 0 2px rgba(255, 235, 190, 0.25)); } 50% { filter: drop-shadow(0 0 8px rgba(255, 220, 150, 0.65)); } }
@keyframes tlTwinkle { 0%, 100% { opacity: 0; transform: scale(0.3) rotate(0); } 15% { opacity: 1; transform: scale(1.15) rotate(45deg); } 35% { opacity: 0; transform: scale(0.4) rotate(90deg); } }
/* da hien xong (doi ngon ngu / quay lai): bo phan xuat hien, giu lap lanh */
.mini-timeline.tl-instant li.is-lit .y { opacity: 1; }
.mini-timeline.tl-instant li.is-lit .cn { opacity: 1; }
.mini-timeline.tl-instant li.is-lit .r { animation: tlShimmer 3.8s linear 0.6s infinite !important; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .mini-timeline li .y, .mini-timeline li .cn, .mini-timeline li .r, .mini-timeline li .cn::after { animation: none !important; opacity: 1; } }

/* ===== FONT MOI: Bricolage Grotesque (tieu de, nhan) + Dancing Script (chu nhan script) + Be Vietnam Pro (noi dung) ===== */
:root { --f-display: "Bricolage Grotesque", "Be Vietnam Pro", system-ui, sans-serif; --f-script: "Dancing Script", "Be Vietnam Pro", cursive; }
h1, h2, h3, h4 { font-optical-sizing: auto; letter-spacing: -0.025em; }
h1 { font-weight: 800; }
.accent { font-family: var(--f-script); font-style: normal; font-weight: 700; text-transform: none; letter-spacing: 0; }
.hero-title .accent { font-size: 1.32em; line-height: 0.95; margin-top: 0.06em; padding: 0 0.12em 0.08em 0; }
.featured-title, .work-title { letter-spacing: -0.015em; }

/* ===== Timeline: sua o vang sau so nam + sao lap lanh ve bang CSS ===== */
.mini-timeline li.is-lit .y { -webkit-text-fill-color: currentColor; background: none; color: #FFC93C;
  animation: tlYear 1.1s cubic-bezier(.2,.7,.2,1) both, tlYearGlow 2.6s ease-in-out 1.1s infinite; }
@keyframes tlYearGlow {
  0%, 100% { color: #FFC93C; text-shadow: 0 0 6px rgba(255, 201, 60, 0.45), 0 0 14px rgba(255, 150, 50, 0.25); }
  50% { color: #FFE9A8; text-shadow: 0 0 8px rgba(255, 230, 160, 0.95), 0 0 20px rgba(255, 185, 70, 0.75), 0 0 34px rgba(255, 130, 50, 0.4); }
}
.mini-timeline li.is-lit .cn { animation: tlPop 1s cubic-bezier(.34,1.56,.64,1) 0.4s both, tlShimmer 3.2s linear 1.4s infinite; }
.mini-timeline li.is-lit .cn::after {
  content: ""; width: 9px; height: 9px; right: -13px; top: -5px; font-size: 0;
  background: radial-gradient(circle, #FFFBEA 0 18%, #FFD36E 40%, transparent 72%);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  filter: drop-shadow(0 0 3px #FFC93C); text-shadow: none;
}
.mini-timeline.tl-instant li.is-lit .y { animation: tlYearGlow 2.6s ease-in-out infinite !important; }
.mini-timeline.tl-instant li.is-lit .cn { animation: tlShimmer 3.2s linear 0.3s infinite !important; }

/* ===== Khung Showreel Hero: vien vang nhe phia tren + quang sang am duoi nen (Claude 2) ===== */
.reel { z-index: 1; }
.reel-wrap::before {            /* vien: cung hinh khung (clip-path), lon hon 1.5px, vang dam tren -> nhat dan xuong duoi */
  content: ""; position: absolute; inset: -1.5px; z-index: 0; border-radius: 15.5px;
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(255, 214, 110, 0.95) 0%, rgba(255, 190, 80, 0.55) 22%, rgba(255, 170, 70, 0.22) 60%, rgba(255, 150, 60, 0.12) 100%);
  pointer-events: none;
}
.reel-wrap::after {             /* quang sang am duoi day khung -> tach khung khoi nen */
  content: ""; position: absolute; z-index: -1; left: 8%; right: 2%; bottom: -34px; height: 90px;
  background: radial-gradient(ellipse at 50% 40%, rgba(255, 176, 70, 0.34) 0%, rgba(255, 140, 50, 0.14) 45%, transparent 72%);
  filter: blur(16px); pointer-events: none;
}
.reel-wrap { filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6)) drop-shadow(0 -2px 14px rgba(255, 200, 90, 0.22)) drop-shadow(0 0 40px rgba(255, 150, 50, 0.16)); }
@media (max-width: 768px) {
  .reel-wrap::before { clip-path: polygon(10% 0, 100% 0, 100% 100%, 0 100%); }
  .reel-wrap::after { bottom: -22px; height: 60px; }
}

/* ===== Logo header: phat sang tho + dai sang chay qua logo roi qua chu (Claude 2) ===== */
.brand-mark-wrap { position: relative; display: inline-flex; flex: none; }
.brand-mark-wrap .brand-mark { animation: logoGlow 4.5s ease-in-out infinite; }
.brand-mark-wrap::after {        /* CC Light Sweep: dai sang mem 2 mep, loi trang sang, chi tren net logo */
  content: ""; position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  -webkit-mask: url(../images/logo/logo_tmh.svg) center / contain no-repeat;
          mask: url(../images/logo/logo_tmh.svg) center / contain no-repeat;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 226, 170, 0.22) 41%, rgba(255, 246, 225, 0.85) 47.5%,
              #FFFFFF 50%, rgba(255, 246, 225, 0.85) 52.5%, rgba(255, 226, 170, 0.22) 59%, transparent 68%) no-repeat;
  background-size: 300% 100%;
  animation: logoSweep 5s cubic-bezier(0.4, 0, 0.3, 1) infinite;
}
.nav-brand .brand-logo {         /* dai sang chay tiep qua chu TRAN MANH HUNG */
  background: linear-gradient(110deg, #F3F4F6 38%, #FFE9BC 46%, #FFFFFF 50%, #FFE9BC 54%, #F3F4F6 62%) no-repeat;
  background-size: 300% 100%; background-color: #F3F4F6;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: logoSweep 5s cubic-bezier(0.4, 0, 0.3, 1) 0.4s infinite;
}
/* 5s/lan: nghi 3.4s, quet 1.6s */
@keyframes logoSweep { 0%, 68% { background-position: 175% 0; } 100% { background-position: -75% 0; } }
@keyframes logoGlow {
  0%, 66%, 100% { filter: drop-shadow(0 0 3px rgba(255, 150, 60, 0.30)) drop-shadow(0 0 10px rgba(255, 120, 40, 0.12)); }
  84% { filter: brightness(1.08) drop-shadow(0 0 6px rgba(255, 200, 110, 0.8)) drop-shadow(0 0 18px rgba(255, 130, 50, 0.42)); }
}
.brand-mark-wrap .brand-mark { animation-duration: 5s; }
.nav-brand:hover .brand-mark-wrap::after, .nav-brand:hover .brand-logo, .nav-brand:hover .brand-mark { animation-duration: 2.5s; }
@media (prefers-reduced-motion: reduce) {
  .brand-mark-wrap::after { display: none; }
  .brand-mark-wrap .brand-mark, .nav-brand .brand-logo { animation: none; }
  .nav-brand .brand-logo { color: var(--white); background: none; }
}

/* ===== Logo + ten: dai sang nho chay bam vien (Claude 2) — JS initBrandEdges() tao SVG ===== */
.nav-brand .brand-logo { position: relative; }
.edge-run { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2;
  filter: drop-shadow(0 0 1.5px rgba(255, 236, 190, 0.95)) drop-shadow(0 0 4px rgba(255, 170, 70, 0.75)) drop-shadow(0 0 9px rgba(255, 130, 50, 0.35)); }
.edge-text { left: 0; top: 0; }
.edge-run path, .edge-run text { fill: none; stroke: #FFF4DC; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }
.edge-text text { stroke-width: 0.55px; }
/* CC Light Sweep moi 5s: do ruc 55% */
.brand-mark-wrap::after { opacity: 0.55; }
@media (prefers-reduced-motion: reduce) { .edge-run { display: none; } }

/* ===== PHAN CAP CHU (Claude 2): nhan nho vang -> tieu de lon dam -> mo ta nho diu ===== */
/* Hero */
.hero-copy .eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.32em; color: var(--gold); margin-bottom: 22px; }
.hero-copy .eyebrow::after { width: 56px; background: linear-gradient(90deg, var(--gold), transparent); opacity: 1; }
.hero-title { font-size: clamp(2.7rem, 5.2vw, 5.6rem); margin-bottom: 28px; }
.hero-title > span:first-child { display: block; font-size: 0.74em; font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.hero-sub { font-size: 1rem; line-height: 1.75; color: #9AA4B4; max-width: 430px; margin-bottom: 40px; padding-left: 16px; border-left: 2px solid rgba(255, 201, 60, 0.45); }
/* The du an */
.work-overlay { padding: 64px 22px 22px; background: linear-gradient(to top, rgba(7, 9, 14, 0.88) 0%, rgba(7, 9, 14, 0.45) 55%, transparent 100%); }
.work-kicker { font-size: 0.64rem; letter-spacing: 0.28em; color: var(--gold); opacity: 0.95; }
.work-title { font-size: clamp(1.35rem, 2.1vw, 1.9rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; margin: 8px 0 6px; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55); }
.work-sub { font-family: var(--f-body); font-style: normal; font-size: 0.88rem; font-weight: 400; color: rgba(226, 230, 238, 0.74); line-height: 1.45; letter-spacing: 0.01em; }
@media (max-width: 768px) {
  .hero-sub { font-size: 0.95rem; }
  .work-title { font-size: 1.3rem; }
}

/* ===== Anh chan dung KHONG KHUNG + CHU DE LEN ANH (Claude 2) =====
   Quang sang = anh avatar_glow.webp dung tu chinh dang nguoi (scripts/build_portrait_glow.py, le 25%/phia, co dither)
   -> sang toa theo vien nguoi, tan het truoc mep, khong bi cat/vo dai. Chu + nut nam tren lop gradient mo phu phan duoi nguoi. */
.about-grid { display: block; position: relative; max-width: 520px; margin: 0 auto; }
.portrait { background: none; border-radius: 0; overflow: visible; clip-path: none; }
.portrait::before {             /* quang sang: dong tam voi anh (anh: rong 108%, top -6%, cao 129.6% khung) */
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  left: 50%; width: 226.8%; aspect-ratio: 2 / 3; top: -77.28%; transform: translateX(-50%);
  background: url(../images/profile/avatar_glow.webp) center / 100% 100% no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 46%, transparent 68%);
          mask-image: linear-gradient(180deg, #000 46%, transparent 68%);
}
.portrait::after { display: none; }
.portrait img {
  z-index: 1;
  filter: sepia(0.08) saturate(0.96) contrast(1.03) brightness(1.03) drop-shadow(0 0 1.5px rgba(255, 200, 120, 0.4));
  -webkit-mask-image: linear-gradient(180deg, #000 68%, transparent 82%);
          mask-image: linear-gradient(180deg, #000 68%, transparent 82%);
}
.about-copy { position: relative; z-index: 3; margin-top: -40%; padding: 0 4px; }
.about-copy::before {           /* lop gradient mo phu len nguoi, mep mem ca 4 phia */
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -44px; right: -44px; top: -130px; bottom: -40px;
  background: linear-gradient(180deg, rgba(13, 17, 24, 0) 0, rgba(13, 17, 24, 0.5) 110px, rgba(13, 17, 24, 0.84) 210px, rgba(13, 17, 24, 0.92));
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 150px), linear-gradient(90deg, transparent 0, #000 44px, #000 calc(100% - 44px), transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(180deg, transparent 0, #000 150px), linear-gradient(90deg, transparent 0, #000 44px, #000 calc(100% - 44px), transparent);
          mask-composite: intersect;
}
.about-copy .about-lead { text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6); }
@media (max-width: 768px) { .about-grid { max-width: 420px; } .about-copy { margin-top: -34%; } }

/* ===== Logo: giam glow con 15% (Claude 2, theo chu du an) ===== */
.edge-run { filter: drop-shadow(0 0 1px rgba(255, 236, 190, 0.5)) drop-shadow(0 0 3px rgba(255, 180, 80, 0.18)); }
@keyframes logoGlow {
  0%, 66%, 100% { filter: drop-shadow(0 0 3px rgba(255, 150, 60, 0.045)) drop-shadow(0 0 10px rgba(255, 120, 40, 0.02)); }
  84% { filter: brightness(1.012) drop-shadow(0 0 6px rgba(255, 200, 110, 0.12)) drop-shadow(0 0 18px rgba(255, 130, 50, 0.06)); }
}

/* ===== Logo: dai quet vang-trang MOI 6s, toa tu nhien (Claude 2) =====
   ::after = dai sang tren net logo (mask theo logo); ::before = luong sang mo KHONG mask chay cung nhip -> anh sang toa ra ngoai mem. */
.brand-mark-wrap::after {
  opacity: 0.6;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 228, 170, 0.18) 40%, rgba(255, 244, 220, 0.75) 47%,
              #FFFDF5 50%, rgba(255, 244, 220, 0.75) 53%, rgba(255, 228, 170, 0.18) 60%, transparent 70%) no-repeat;
  background-size: 300% 100%;
  animation: logoSweep 6s cubic-bezier(0.45, 0.05, 0.25, 1) infinite;
}
.brand-mark-wrap::before {
  content: ""; position: absolute; top: -40%; bottom: -40%; width: 46%; left: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 240, 205, 0.34), rgba(255, 200, 120, 0.12) 55%, transparent);
  filter: blur(5px); mix-blend-mode: screen; opacity: 0;
  animation: logoHalo 6s cubic-bezier(0.45, 0.05, 0.25, 1) infinite;
}
@keyframes logoSweep { 0%, 68% { background-position: 175% 0; } 100% { background-position: -75% 0; } }
@keyframes logoHalo { 0%, 68% { transform: translateX(-90%); opacity: 0; } 74% { opacity: 1; } 94% { opacity: 1; } 100% { transform: translateX(230%); opacity: 0; } }
.brand-mark-wrap .brand-mark { animation-duration: 6s; }
.nav-brand .brand-logo { animation: logoSweep 6s cubic-bezier(0.45, 0.05, 0.25, 1) 0.45s infinite; }
@media (prefers-reduced-motion: reduce) { .brand-mark-wrap::before { display: none; } }

/* ===== Logo: CC Light CHI CHAY TRONG MASK logo (Claude 2) — bo luong sang toa ra ngoai ===== */
.brand-mark-wrap::before { display: none; }
.brand-mark-wrap::after {
  opacity: 0.7;
  background: linear-gradient(105deg, transparent 28%, rgba(255, 228, 170, 0.22) 39%, rgba(255, 244, 220, 0.8) 46.5%,
              #FFFDF5 50%, rgba(255, 244, 220, 0.8) 53.5%, rgba(255, 228, 170, 0.22) 61%, transparent 72%) no-repeat;
  background-size: 300% 100%;
}

/* ===== LED vien: trang nga + mep xam anh kim loai (Claude 2) — bo quang vang cam ===== */
.edge-run path, .edge-run text { stroke: #F7F3EA; opacity: 0.92; }
.edge-run { filter: drop-shadow(0 0 0.5px rgba(214, 218, 226, 0.95)) drop-shadow(0 0 1.6px rgba(150, 156, 168, 0.55)) drop-shadow(0 0 3px rgba(120, 126, 138, 0.22)); }

/* ===== Logo 2.5D KIM LOAI + CC Light ruc sang 5s TRONG MASK (Claude 2) — da tat LED luot vien ===== */
.edge-run { display: none; }
.brand-mark-wrap::before { display: none; }
.brand-mark-wrap::after {
  -webkit-mask: url(../images/logo/logo_tmh_metal.svg) center / contain no-repeat;
          mask: url(../images/logo/logo_tmh_metal.svg) center / contain no-repeat;
  opacity: 1; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 236, 200, 0.28) 40%, rgba(255, 250, 238, 0.92) 47%,
              #FFFFFF 50%, rgba(255, 250, 238, 0.92) 53%, rgba(255, 236, 200, 0.28) 60%, transparent 70%) no-repeat;
  background-size: 300% 100%;
  animation: logoSweep 5s cubic-bezier(0.45, 0.05, 0.25, 1) infinite;
}
/* luc dai quet di qua: ca logo sang ruc len (chi trong hinh logo, khong toa ra ngoai) */
.brand-mark-wrap .brand-mark { animation: logoFlash 5s cubic-bezier(0.45, 0.05, 0.25, 1) infinite; }
@keyframes logoFlash { 0%, 68%, 100% { filter: none; } 82% { filter: brightness(1.28) contrast(1.05); } }
.nav-brand .brand-logo { animation-duration: 5s; }

/* ===== CC Light: nhip vao nhanh vua -> slow-motion o giua -> ra nhanh vua (Claude 2) =====
   Dai sang nam tren logo khi background-position 75% -> 25%. Toc do tung doan (don vi/%chu ky): vao 2.4 -> 1.3 -> giua 0.9 -> 1.3 -> ra 2.4 */
@keyframes logoSweep {
  0%, 46% { background-position: 175% 0; }
  54%  { background-position: 78% 0; }
  59%  { background-position: 66% 0; }
  65%  { background-position: 58% 0; }
  83%  { background-position: 42% 0; }
  89%  { background-position: 34% 0; }
  94%  { background-position: 22% 0; }
  100% { background-position: -75% 0; }
}
@keyframes logoFlash { 0%, 56%, 96%, 100% { filter: none; } 74% { filter: brightness(1.28) contrast(1.05); } }
.brand-mark-wrap::after, .brand-mark-wrap .brand-mark, .nav-brand .brand-logo { animation-timing-function: linear; }

/* ===== CC Light: giam sang vua phai + quang glow BUNG toa tu nhien theo dang logo khi quet qua (Claude 2) ===== */
.brand-mark-wrap::after { opacity: 0.55; }
@keyframes logoFlash {
  0%, 52%, 100% { filter: drop-shadow(0 0 0 rgba(255, 190, 90, 0)) drop-shadow(0 0 0 rgba(255, 150, 60, 0)); }
  62%  { filter: brightness(1.06) drop-shadow(0 0 4px rgba(255, 200, 110, 0.35)) drop-shadow(0 0 12px rgba(255, 160, 60, 0.22)); }
  74%  { filter: brightness(1.12) drop-shadow(0 0 6px rgba(255, 205, 120, 0.6)) drop-shadow(0 0 18px rgba(255, 160, 60, 0.38)); }
  88%  { filter: brightness(1.05) drop-shadow(0 0 5px rgba(255, 200, 110, 0.3)) drop-shadow(0 0 14px rgba(255, 150, 60, 0.18)); }
  97%  { filter: drop-shadow(0 0 2px rgba(255, 190, 90, 0.05)) drop-shadow(0 0 6px rgba(255, 150, 60, 0.03)); }
}
.brand-mark-wrap .brand-mark { animation-timing-function: ease-in-out; }

/* ===== Hero "chuyen dong.": BO filter (Chrome cat quang text-shadow thanh o vuong khi phan tu co filter) (Claude 2)
   Nhip tho sang = text-shadow + mau chu -> quang toa tu nhien nhu nut Showreel. */
@keyframes heroGlow2 {
  0%, 100% { color: #FFC93C; text-shadow: 0 0 1px rgba(255, 236, 170, 0.6), 0 0 18px rgba(255, 205, 90, 0.5), 0 0 40px rgba(255, 170, 60, 0.4), 0 0 80px rgba(255, 130, 50, 0.3), 0 0 140px rgba(255, 110, 40, 0.2); }
  50% { color: #FFD866; text-shadow: 0 0 2px rgba(255, 240, 190, 0.7), 0 0 24px rgba(255, 210, 100, 0.66), 0 0 56px rgba(255, 175, 60, 0.52), 0 0 104px rgba(255, 135, 50, 0.4), 0 0 180px rgba(255, 110, 40, 0.28); }
}
.hero-title .accent { filter: none; will-change: auto; }

/* ===== Chan dung: toa sang KIEU NUT "Xem Showreel" (Claude 2) =====
   Quang tron mo (radial closest-side + blur) phia sau dau-vai, tho 3s cung nhip nut (heroHalo); quang theo dang nguoi tho theo. */
.portrait::after {
  display: block; content: ""; position: absolute; z-index: 0; pointer-events: none; mix-blend-mode: normal;
  left: 50%; top: 2%; width: 96%; height: 74%; inset: auto; left: 50%; top: 2%;
  transform: translateX(-50%) scale(1); background-size: auto;
  background: radial-gradient(closest-side, rgba(255, 220, 130, 0.42), rgba(255, 165, 65, 0.24) 50%, rgba(255, 115, 50, 0.08) 75%, transparent 100%);
  filter: blur(26px);
  animation: portraitHalo 3s ease-in-out infinite;
}
@keyframes portraitHalo {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(0.95); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}
.portrait::before { animation: portraitGlowBreath 3s ease-in-out infinite; }
@keyframes portraitGlowBreath { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .portrait::after, .portrait::before { animation: none; } }

/* ===== Chan dung: BO filter tren <img> (Claude 2) — mau da dua vao file anh (defringe_avatar.py).
   filter + mask tren cung phan tu khien Chrome ve anh thanh 1 lop hinh chu nhat -> lo o vuong. */
.portrait img { filter: none; }

/* ===== Khoi chu Gioi thieu: THE KINH TOI + khung trang mong khoa form (Claude 2) ===== */
.about-copy {
  margin-top: -36%; padding: 24px 26px 26px;
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 18px;
  background: linear-gradient(180deg, rgba(15, 19, 28, 0.78), rgba(10, 13, 19, 0.9));
  -webkit-backdrop-filter: blur(12px) saturate(120%); backdrop-filter: blur(12px) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 24px 60px rgba(0, 0, 0, 0.45);
}
.about-copy::before {           /* chuyen tiep: nguoi mo dan vao the (chi phia TREN the, khong de len vien) */
  left: -40px; right: -40px; top: -150px; bottom: auto; height: 150px;
  background: linear-gradient(180deg, rgba(13, 17, 24, 0) 0%, rgba(13, 17, 24, 0.55) 60%, rgba(13, 17, 24, 0.8) 100%);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent);
          mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent);
}
.about-copy .about-lead { text-shadow: none; }
.about-copy .about-extras { margin: 18px 0; }
@media (max-width: 768px) { .about-copy { margin-top: -30%; padding: 20px 18px 22px; } }

/* ===== The Gioi thieu: chu nho + dat o DAY (vung toi nhat duoi anh) (Claude 2) ===== */
.about-copy { margin-top: -12%; padding: 18px 20px 20px; border-radius: 16px; }
.about-copy::before { top: -110px; height: 110px; }
.about-copy .about-lead { font-size: 0.95rem; line-height: 1.5; margin-bottom: 8px; }
.about-copy p:not(.about-lead) { font-size: 0.84rem; line-height: 1.6; }
.about-copy .about-extras { margin: 14px 0; gap: 10px; }
.about-copy .caption-strip { transform-origin: left center; font-size: 0.85em; }
.about-copy .caption-strip img { width: 52px; height: 40px; }
.about-copy .btn { min-height: 38px; padding: 0 16px; font-size: 0.8rem; }
@media (max-width: 768px) { .about-copy { margin-top: -10%; padding: 16px 16px 18px; } }

/* ===== Gioi thieu: BO KHUNG, chu can trai; hang duoi = [Behind the Scene ~1/3] + [Them ve toi] ngang hang (Claude 2) ===== */
.about-copy {
  border: 0; border-radius: 0; background: none; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  padding: 0 2px; text-align: left;
  display: grid; grid-template-columns: auto auto 1fr; column-gap: 14px; align-items: center;
}
.about-copy > p { grid-column: 1 / -1; }
.about-copy .about-extras { grid-column: 1; margin: 16px 0 0; }
.about-copy .caption-strip { min-width: clamp(190px, 33%, 240px); }
.about-copy > .btn { grid-column: 2; margin-top: 16px; justify-self: start; }
.about-copy::before { top: -120px; height: auto; bottom: -24px;
  background: linear-gradient(180deg, rgba(13, 17, 24, 0) 0%, rgba(13, 17, 24, 0.6) 90px, rgba(13, 17, 24, 0.82) 150px, rgba(13, 17, 24, 0.82) 100%); }
@media (max-width: 420px) {
  .about-copy { grid-template-columns: 1fr; }
  .about-copy > .btn { grid-column: 1; }
}

/* ===== Gioi thieu: doi cho — [Them ve toi] TRAI, [Behind the Scene] PHAI (Claude 2) ===== */
.about-copy { grid-template-columns: auto auto 1fr; }
.about-copy > .btn { grid-column: 1; grid-row: 3; }
.about-copy .about-extras { grid-column: 2; grid-row: 3; }
@media (max-width: 420px) {
  .about-copy > .btn { grid-column: 1; grid-row: 4; }
  .about-copy .about-extras { grid-column: 1; grid-row: 3; }
}

/* ===== Gioi thieu: o Behind the Scene SAT MEP PHAI khoi chu (Claude 2) ===== */
.about-copy { grid-template-columns: auto 1fr; }
.about-copy .about-extras { grid-column: 2; justify-self: end; }
.about-copy .about-extras .caption-strip { margin-right: 0; }

/* ===== Gioi thieu: nut "Them ve toi" TO BANG o Behind the Scene (Claude 2) ===== */
.about-copy { --pair-w: clamp(200px, 42%, 240px); }
.about-copy .caption-strip { width: var(--pair-w); min-width: 0; box-sizing: border-box; }
.about-copy > .btn {
  width: var(--pair-w); align-self: stretch; height: auto; min-height: 0; margin-top: 16px;
  justify-content: center; border-radius: 12px; font-size: 0.86rem;
}
.about-copy .about-extras { align-self: stretch; display: flex; }
.about-copy { --pair-w: 232px; }
.about-copy .caption-strip b, .about-copy .caption-strip span { white-space: nowrap; }
.about-copy .about-extras { justify-self: stretch; justify-content: flex-end; }
@media (max-width: 520px) { .about-copy { --pair-w: 100%; } .about-copy { grid-template-columns: 1fr; } .about-copy > .btn { grid-row: 4; grid-column: 1; } .about-copy .about-extras { grid-row: 3; grid-column: 1; } }

/* ===== Gioi thieu: overlay nen KEO CAO + MUOT (gradient nhieu nac theo duong cong ease) (Claude 2) ===== */
.about-copy::before {
  top: -260px; bottom: -24px; height: auto;
  background: linear-gradient(180deg,
    rgba(13, 17, 24, 0) 0px, rgba(13, 17, 24, 0.04) 40px, rgba(13, 17, 24, 0.12) 80px, rgba(13, 17, 24, 0.25) 120px,
    rgba(13, 17, 24, 0.42) 160px, rgba(13, 17, 24, 0.6) 200px, rgba(13, 17, 24, 0.74) 240px, rgba(13, 17, 24, 0.82) 280px,
    rgba(13, 17, 24, 0.86) 100%);
}
.portrait img {
  -webkit-mask-image: linear-gradient(180deg, #000 56%, rgba(0, 0, 0, 0.85) 62%, rgba(0, 0, 0, 0.6) 68%, rgba(0, 0, 0, 0.32) 74%, rgba(0, 0, 0, 0.1) 79%, transparent 83%);
          mask-image: linear-gradient(180deg, #000 56%, rgba(0, 0, 0, 0.85) 62%, rgba(0, 0, 0, 0.6) 68%, rgba(0, 0, 0, 0.32) 74%, rgba(0, 0, 0, 0.1) 79%, transparent 83%);
}

/* ===== Gioi thieu: bo Behind the Scene; nut "Them ve toi" co cu, GIUA khung (Claude 2) ===== */
.about-copy { display: block; text-align: left; }
.about-copy > .btn {
  display: flex; width: max-content; margin: 20px auto 0; align-self: auto;
  min-height: 40px; height: auto; padding: 0 18px; border-radius: 999px; font-size: 0.85rem; justify-content: center;
}

/* ===== Gioi thieu: VET VANG CHAY TRONG CHU — khac Tom tat ho so (Claude 2) =====
   Tom tat ho so: quet NGANG, tuyen tinh, nhanh. O day: vet vang mem DO CHEO tren-trai -> duoi-phai, cham, vao-ra em,
   dong dan sang truoc roi LAN xuong doan mo ta (tre 0.7s) -> anh sang chay lien mach qua ca khoi chu. */
.about-copy .about-lead, .about-copy > p:not(.about-lead) {
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-repeat: no-repeat; background-size: 260% 260%;
  animation: aboutSheen 7s cubic-bezier(0.45, 0.05, 0.35, 1) infinite;
}
.about-copy .about-lead {
  background-image: linear-gradient(125deg, #F3F4F6 0%, #F3F4F6 38%, #FFE7A8 45%, #FFC93C 50%, #FFE7A8 55%, #F3F4F6 62%, #F3F4F6 100%);
  background-color: #F3F4F6;
}
.about-copy > p:not(.about-lead) {
  background-image: linear-gradient(125deg, #A8B0BE 0%, #A8B0BE 38%, #D9C08A 45%, #E8B95A 50%, #D9C08A 55%, #A8B0BE 62%, #A8B0BE 100%);
  background-color: #A8B0BE; animation-delay: 0.7s;
}
@keyframes aboutSheen {
  0%, 18% { background-position: 100% 100%; }
  78%, 100% { background-position: 0% 0%; }
}
@media (prefers-reduced-motion: reduce) {
  .about-copy .about-lead, .about-copy > p:not(.about-lead) { animation: none; background: none; }
  .about-copy .about-lead { color: var(--white); } .about-copy > p:not(.about-lead) { color: var(--muted); }
}
/* Gioi thieu: can giua toan bo khoi chu (Claude 2) */
.about-copy, .about-copy > p { text-align: center; }

/* ===== Gioi thieu: QUANG SANG LAN TOA theo vet vang quet qua (Claude 2) =====
   ::after = ban sao chu (attr data-glow) chi co mau vang tai vi tri vet, lam mo -> bung sang dung cho vet di qua; cung nhip aboutSheen. */
.about-copy > p { position: relative; }
.about-copy > p::after {
  content: attr(data-glow); position: absolute; inset: 0; pointer-events: none; z-index: 1;
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-repeat: no-repeat; background-size: 260% 260%;
  background-image: linear-gradient(125deg, transparent 38%, rgba(255, 200, 90, 0.35) 44%, rgba(255, 222, 140, 0.95) 50%, rgba(255, 200, 90, 0.35) 56%, transparent 62%);
  filter: blur(6px); opacity: 0.85;
  animation: aboutSheen 7s cubic-bezier(0.45, 0.05, 0.35, 1) infinite;
}
.about-copy > p:not(.about-lead)::after { animation-delay: 0.7s; opacity: 0.7; }
@media (prefers-reduced-motion: reduce) { .about-copy > p::after { display: none; } }

/* ===== Gioi thieu: vet sang NHE + VANG TRANG champagne, loi trang phan quang kieu kim loai (Claude 2) ===== */
.about-copy .about-lead {
  background-image: linear-gradient(125deg, #F3F4F6 0%, #F3F4F6 40%, #F6EEDC 45.5%, #EFDDB0 48.5%, #FFFFFF 50%, #EFDDB0 51.5%, #F6EEDC 54.5%, #F3F4F6 60%, #F3F4F6 100%);
}
.about-copy > p:not(.about-lead) {
  background-image: linear-gradient(125deg, #A8B0BE 0%, #A8B0BE 40%, #C9C3B4 45.5%, #DCCDA6 48.5%, #F4EEDD 50%, #DCCDA6 51.5%, #C9C3B4 54.5%, #A8B0BE 60%, #A8B0BE 100%);
}
.about-copy > p::after {
  background-image: linear-gradient(125deg, transparent 41%, rgba(255, 236, 196, 0.18) 46%, rgba(255, 246, 225, 0.6) 50%, rgba(255, 236, 196, 0.18) 54%, transparent 59%);
  filter: blur(5px); opacity: 0.55;
}
.about-copy > p:not(.about-lead)::after { opacity: 0.45; }

/* ===== Gioi thieu: CAN TRAI 2 doan chu; vet kim loai HEP + chay RO RANG lien tuc (Claude 2) ===== */
.about-copy > p { text-align: left; }
.about-copy .about-lead, .about-copy > p:not(.about-lead), .about-copy > p::after {
  background-size: 300% 100%;
  animation: aboutSheen 4.2s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}
.about-copy > p:not(.about-lead), .about-copy > p:not(.about-lead)::after { animation-delay: 0.5s; }
.about-copy .about-lead {
  background-image: linear-gradient(110deg, #F3F4F6 0%, #F3F4F6 44%, #F4EAD2 47%, #EBD39C 49%, #FFFFFF 50%, #EBD39C 51%, #F4EAD2 53%, #F3F4F6 56%, #F3F4F6 100%);
}
.about-copy > p:not(.about-lead) {
  background-image: linear-gradient(110deg, #A8B0BE 0%, #A8B0BE 44%, #C8C0AC 47%, #DCC896 49%, #F6F0E0 50%, #DCC896 51%, #C8C0AC 53%, #A8B0BE 56%, #A8B0BE 100%);
}
.about-copy > p::after {
  background-image: linear-gradient(110deg, transparent 45%, rgba(255, 234, 190, 0.2) 48%, rgba(255, 246, 225, 0.7) 50%, rgba(255, 234, 190, 0.2) 52%, transparent 55%);
}
/* trai -> phai trong ~60% chu ky (2.5s), nghi ngoai khung 1.7s */
@keyframes aboutSheen { 0% { background-position: 130% 0; } 60%, 100% { background-position: -30% 0; } }

/* ===== Gioi thieu: ANH KIM "CHAY" TRONG CHU NHU DONG CHAY (Claude 2) =====
   2 lop dai sang lap lai, troi lien tuc khac toc do (lop 1: kich thuoc 60% -> 1 o = 150%; lop 2: 90% -> 1 o = 900%)
   => khong co diem bat dau/ket thuc, dai sang luc tu luc tach nhu chat long kim loai. */
.about-copy .about-lead, .about-copy > p:not(.about-lead), .about-copy > p::after {
  background-repeat: repeat-x, repeat-x, no-repeat;
  background-size: 60% 100%, 90% 100%, 100% 100%;
  animation: aboutFlow 7s linear infinite;
}
.about-copy .about-lead {
  background-image:
    linear-gradient(100deg, transparent 0%, transparent 32%, rgba(236, 214, 165, 0.85) 45%, rgba(255, 255, 255, 0.95) 50%, rgba(236, 214, 165, 0.85) 55%, transparent 68%, transparent 100%),
    linear-gradient(78deg, transparent 0%, transparent 38%, rgba(240, 224, 186, 0.45) 50%, transparent 62%, transparent 100%),
    linear-gradient(#F3F4F6, #F3F4F6);
}
.about-copy > p:not(.about-lead) {
  background-image:
    linear-gradient(100deg, transparent 0%, transparent 32%, rgba(214, 196, 150, 0.8) 45%, rgba(246, 238, 220, 0.9) 50%, rgba(214, 196, 150, 0.8) 55%, transparent 68%, transparent 100%),
    linear-gradient(78deg, transparent 0%, transparent 38%, rgba(214, 200, 165, 0.4) 50%, transparent 62%, transparent 100%),
    linear-gradient(#A8B0BE, #A8B0BE);
  animation-delay: -2.3s;
}
.about-copy > p::after {
  background-image:
    linear-gradient(100deg, transparent 0%, transparent 40%, rgba(255, 238, 200, 0.5) 50%, transparent 60%, transparent 100%),
    linear-gradient(78deg, transparent 0%, transparent 42%, rgba(255, 230, 185, 0.25) 50%, transparent 58%, transparent 100%),
    linear-gradient(transparent, transparent);
  filter: blur(5px); opacity: 0.5;
}
.about-copy > p:not(.about-lead)::after { animation-delay: -2.3s; opacity: 0.4; }
@keyframes aboutFlow {
  from { background-position: 0% 0, 0% 0, 0 0; }
  to   { background-position: 150% 0, 900% 0, 0 0; }
}

/* ===== Gioi thieu: NANG LUONG ANH KIM chay NGAU NHIEN trong chu (Claude 2) =====
   4 dom elip anh kim (lop nen = mau chu goc). Vi tri --e1..--e4 do JS chon ngau nhien; transition 3.2s -> troi em, khong lap lai. */
.about-copy .about-lead, .about-copy > p:not(.about-lead), .about-copy > p::after {
  animation: none;
  background-repeat: no-repeat;
  background-size: 34% 190%, 26% 170%, 40% 210%, 22% 160%, 100% 100%;
  background-position: var(--e1, -40% 50%), var(--e2, 140% 50%), var(--e3, -40% 50%), var(--e4, 140% 50%), 0 0;
  transition: background-position 3.2s cubic-bezier(0.45, 0.05, 0.4, 1);
}
.about-copy .about-lead {
  --spot: radial-gradient(closest-side, #FFFFFF 0%, rgba(240, 222, 178, 0.95) 35%, rgba(232, 214, 170, 0.45) 65%, transparent 100%);
  background-image: var(--spot), var(--spot), var(--spot), var(--spot), linear-gradient(#F3F4F6, #F3F4F6);
}
.about-copy > p:not(.about-lead) {
  --spot: radial-gradient(closest-side, #F6F0E0 0%, rgba(220, 202, 156, 0.9) 35%, rgba(210, 196, 160, 0.4) 65%, transparent 100%);
  background-image: var(--spot), var(--spot), var(--spot), var(--spot), linear-gradient(#A8B0BE, #A8B0BE);
}
.about-copy > p::after {
  --gspot: radial-gradient(closest-side, rgba(255, 244, 220, 0.7) 0%, rgba(255, 226, 170, 0.25) 55%, transparent 100%);
  background-image: var(--gspot), var(--gspot), var(--gspot), var(--gspot), linear-gradient(transparent, transparent);
  filter: blur(5px); opacity: 0.5;
}
.about-copy > p:not(.about-lead)::after { opacity: 0.4; }

/* ===== Gioi thieu — CAN DOI & PREMIUM (Claude 2) =====
   Cot chu hep dat GIUA (cung truc nguoi + nut), chu ben trong can trai; phan cap ro; vach vang kim mo dau; nhip 12/14/26px. */
.about-copy { max-width: 440px; margin-left: auto; margin-right: auto; }
.about-copy .about-lead {
  font-size: 1.1rem; font-weight: 500; line-height: 1.45; letter-spacing: -0.01em; margin-bottom: 12px;
}
.about-copy .about-lead::before {
  content: ""; display: block; width: 36px; height: 1px; margin-bottom: 14px;
  background: linear-gradient(90deg, #F0D9A0, rgba(240, 217, 160, 0));
  box-shadow: 0 0 6px rgba(240, 210, 150, 0.45);
}
.about-copy > p:not(.about-lead) { font-size: 0.86rem; line-height: 1.75; letter-spacing: 0.005em; }
.about-copy > .btn { margin-top: 26px; }
/* glow ::after cua dong dan phai lech xuong dung bang vach + khoang cach de trung chu */
.about-copy .about-lead::after { top: 15px; }
@media (max-width: 768px) { .about-copy { max-width: 100%; } .about-copy .about-lead { font-size: 1.02rem; } }

/* Gioi thieu: doan mo ta chu NGHIENG (Be Vietnam Pro italic 400 that, da nap) — lop glow ::after ke thua (Claude 2) */
.about-copy > p:not(.about-lead) { font-style: italic; font-weight: 400; letter-spacing: 0.01em; }

/* ===== Gioi thieu: DIEM VANG ANH KIM it ma chat — bung no ngau nhien (Claude 2) =====
   Lop 1-2 = diem sang (kich thuoc --s1/--s2 = 0 khi an), lop 3 = mau chu goc. JS startGlints() dieu khien. */
.about-copy .about-lead, .about-copy > p:not(.about-lead), .about-copy > p::after {
  background-size: var(--s1, 0% 0%), var(--s2, 0% 0%), 100% 100%;
  background-position: var(--e1, 50% 50%), var(--e2, 50% 50%), 0 0;
  background-repeat: no-repeat;
  transition: background-position 2.6s cubic-bezier(0.45, 0.05, 0.4, 1), background-size 1.25s cubic-bezier(0.3, 0.6, 0.3, 1);
}
.about-copy .about-lead {
  --spot: radial-gradient(closest-side, #FFFFFF 0%, #FFF6DE 22%, #F2D48A 48%, rgba(230, 196, 120, 0.35) 72%, transparent 100%);
  background-image: var(--spot), var(--spot), linear-gradient(#F3F4F6, #F3F4F6);
}
.about-copy > p:not(.about-lead) {
  --spot: radial-gradient(closest-side, #FFFDF6 0%, #F6E7C2 24%, #E2C27C 50%, rgba(214, 184, 120, 0.3) 74%, transparent 100%);
  background-image: var(--spot), var(--spot), linear-gradient(#A8B0BE, #A8B0BE);
}
.about-copy > p::after {
  --gspot: radial-gradient(closest-side, rgba(255, 246, 222, 0.95) 0%, rgba(255, 214, 140, 0.45) 45%, transparent 100%);
  background-image: var(--gspot), var(--gspot), linear-gradient(transparent, transparent);
  filter: blur(6px); opacity: 0.75;
}
.about-copy > p:not(.about-lead)::after { opacity: 0.7; }

/* ===== Gioi thieu: diem sang NHE/SACH + DAI SANG LIEN TUC tinh te (Claude 2) =====
   Lop: [diem 1][diem 2][dai sang lien tuc][mau chu goc]. Dai sang chay bang bien dang ky --sx (khong dung background-position animation
   de khong de len vi tri ngau nhien cua diem sang). */
@property --sx { syntax: "<percentage>"; inherits: false; initial-value: 130%; }
@keyframes aboutSheenX { from { --sx: 130%; } to { --sx: -30%; } }
.about-copy .about-lead, .about-copy > p:not(.about-lead) {
  background-size: var(--s1, 0% 0%), var(--s2, 0% 0%), 300% 100%, 100% 100%;
  background-position: var(--e1, 50% 50%), var(--e2, 50% 50%), var(--sx) 0, 0 0;
  background-repeat: no-repeat;
  animation: aboutSheenX 9s linear infinite;
}
.about-copy > p:not(.about-lead) { animation-delay: -3.5s; }
.about-copy .about-lead {
  --spot: radial-gradient(closest-side, #FFFFFF 0%, rgba(255, 249, 236, 0.95) 28%, rgba(240, 226, 192, 0.55) 56%, rgba(232, 214, 176, 0.15) 78%, transparent 100%);
  background-image: var(--spot), var(--spot),
    linear-gradient(105deg, transparent 0%, transparent 45%, rgba(250, 242, 222, 0.55) 49%, rgba(255, 255, 255, 0.7) 50%, rgba(250, 242, 222, 0.55) 51%, transparent 55%, transparent 100%),
    linear-gradient(#F3F4F6, #F3F4F6);
}
.about-copy > p:not(.about-lead) {
  --spot: radial-gradient(closest-side, #FFFCF4 0%, rgba(246, 236, 212, 0.9) 28%, rgba(222, 206, 168, 0.5) 56%, rgba(214, 196, 160, 0.12) 78%, transparent 100%);
  background-image: var(--spot), var(--spot),
    linear-gradient(105deg, transparent 0%, transparent 45%, rgba(214, 206, 188, 0.6) 49%, rgba(236, 230, 216, 0.75) 50%, rgba(214, 206, 188, 0.6) 51%, transparent 55%, transparent 100%),
    linear-gradient(#A8B0BE, #A8B0BE);
}
.about-copy > p::after {
  --gspot: radial-gradient(closest-side, rgba(255, 248, 232, 0.8) 0%, rgba(245, 226, 186, 0.3) 45%, transparent 100%);
  opacity: 0.45; filter: blur(5px);
}
.about-copy > p:not(.about-lead)::after { opacity: 0.4; }
@media (prefers-reduced-motion: reduce) { .about-copy .about-lead, .about-copy > p:not(.about-lead) { animation: none; } }

/* ===== Sua: dai sang lien tuc bi dung do transition background-position khoi dong lai moi khung (Claude 2) =====
   Toa do/kich thuoc diem sang = bien dang ky rieng, transition dat tren BIEN; background-position khong con transition. */
@property --e1x { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --e1y { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --e2x { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --e2y { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --s1w { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
@property --s1h { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
@property --s2w { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
@property --s2h { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
.about-copy > p {
  transition: --e1x 2.6s cubic-bezier(0.45, 0.05, 0.4, 1), --e1y 2.6s cubic-bezier(0.45, 0.05, 0.4, 1),
              --e2x 2.6s cubic-bezier(0.45, 0.05, 0.4, 1), --e2y 2.6s cubic-bezier(0.45, 0.05, 0.4, 1),
              --s1w 1.25s cubic-bezier(0.3, 0.6, 0.3, 1), --s1h 1.25s cubic-bezier(0.3, 0.6, 0.3, 1),
              --s2w 1.25s cubic-bezier(0.3, 0.6, 0.3, 1), --s2h 1.25s cubic-bezier(0.3, 0.6, 0.3, 1);
}
.about-copy .about-lead, .about-copy > p:not(.about-lead) {
  background-size: var(--s1w) var(--s1h), var(--s2w) var(--s2h), 300% 100%, 100% 100%;
  background-position: var(--e1x) var(--e1y), var(--e2x) var(--e2y), var(--sx) 0, 0 0;
}
.about-copy > p::after {
  transition: none;
  background-size: var(--s1w) var(--s1h), var(--s2w) var(--s2h), 100% 100%;
  background-position: var(--e1x) var(--e1y), var(--e2x) var(--e2y), 0 0;
}

/* Timeline: duong neon chay DEU de khop thoi diem tung moc + am thanh (Claude 2) */
.mini-timeline.tl-on::before { transition: transform var(--tl-dur, 4s) linear; }

/* Timeline di tung buoc theo lan cuon (Claude 2): duong neon toi dung cham moc dang mo */
.mini-timeline.tl-step::before { transform: scaleY(var(--tl-p, 0)); transition: transform 0.6s cubic-bezier(0.3, 0.6, 0.3, 1); }
.mini-timeline.tl-step.tl-on::before { transform: scaleY(1); }

/* ===== CHE DO NHE (dien thoai / cam ung): giu ve dep tinh, bo hieu ung phai ve lai moi khung hinh ===== */
.lite *, .lite *::before, .lite *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.lite .site-header, .lite header.nav, .lite .nav { background-color: rgba(10, 13, 20, 0.94) !important; }
/* vien chay + tho sang cac khu thong tin: de tinh (vien vang sang nhe) */
.lite .process-step::after, .lite .contact-list li > a::after, .lite .contact-list li > span::after,
.lite .info-card::after, .lite .panel::after, .lite .tools-box::after { animation: none !important; }
.lite .process-step .icon, .lite .contact-list .icon, .lite .service .icon, .lite .info-card h2, .lite .process-num,
.lite .proc-icon { animation-name: none; }
.lite .proc-icon * { animation-play-state: running; }
/* chu hero, logo, doan gioi thieu: glow tinh */
.lite .hero-title .accent { animation: none !important; }
.lite .brand-mark { animation: none !important; }
.lite .about-copy > p, .lite .about-copy > p::before, .lite .about-copy > p::after { animation: none !important; }
/* quang sang nut / pill: bo blur dong khi khong hover duoc */
.lite .icon-btn::after, .lite .filter-pill::after { display: none !important; }
/* khu vuc ngoai man hinh: trinh duyet bo qua ve -> cuon nhe */
/* (bo content-visibility: lam nhay sai vi tri khi bam menu toi muc) */
/* nut noi gon hon, it che video */
@media (max-width: 640px) {
  .side-btn { width: 42px !important; height: 42px !important; font-size: 0.8rem; opacity: 0.82; }
  .to-top { width: 42px !important; height: 42px !important; }
}

/* Ban nhe: bot lop sang mo (ton bo nho do hoa) */
.lite .btn-secondary::after, .lite .reel-wrap::after { display: none !important; }

/* ===== iPhone/Safari: thanh tren cung phu kin vung tai tho / thanh trang thai (khong cho noi dung xuyen qua) ===== */
.site-header { padding-top: env(safe-area-inset-top, 0px); background-color: rgba(10, 13, 19, 0.96); }
.scroll-progress { top: env(safe-area-inset-top, 0px); }
body { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
@supports (-webkit-touch-callout: none) {          /* chi Safari iOS: nen header dac hon vi Safari lay mau vung thanh trang thai tu day */
  .site-header { background: #0D1118; }
}

/* ===== Man chao giua man hinh (chu go nhu tro chuyen) ===== */
.intro { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(60% 50% at 50% 50%, rgba(28, 22, 12, 0.72), rgba(7, 9, 14, 0.94) 70%);
  opacity: 0; transition: opacity 0.6s ease; cursor: pointer; }
.intro.is-in { opacity: 1; }
.intro.is-out { opacity: 0; transition-duration: 0.85s; pointer-events: none; }
.intro-card { max-width: min(880px, 92vw); text-align: center; }
.intro-line { margin: 0; font-family: var(--f-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.25;
  font-size: clamp(1.35rem, 3.6vw, 2.6rem); color: #F4F1EA; text-wrap: balance;
  text-shadow: 0 0 18px rgba(255, 214, 120, 0.25); transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease; }
.intro-line.is-first { font-family: var(--f-script); font-weight: 700; font-size: clamp(2.6rem, 8vw, 5.4rem); color: var(--gold);
  text-shadow: 0 0 2px rgba(255, 240, 190, 0.6), 0 0 24px rgba(255, 200, 90, 0.55), 0 0 60px rgba(255, 150, 50, 0.35); }
.intro-line.is-leave { opacity: 0; transform: translateY(-10px); filter: blur(4px); }
.intro-caret { display: inline-block; width: 0.08em; min-width: 2px; height: 1em; margin-left: 0.12em; vertical-align: -0.12em;
  background: var(--gold); box-shadow: 0 0 10px rgba(255, 201, 60, 0.9); animation: introCaret 0.9s steps(1) infinite; }
@keyframes introCaret { 50% { opacity: 0; } }
.intro-skip { position: absolute; bottom: max(28px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.78); font: 600 0.82rem var(--f-display); letter-spacing: 0.08em; cursor: pointer; }
.intro-skip:hover, .intro-skip:focus-visible { color: #fff; border-color: var(--gold); box-shadow: 0 0 16px rgba(255, 201, 60, 0.35); }
.intro-on .music-dock, .intro-on .side-btn, .intro-on .to-top { visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }
/* man chao: nen toi + mo hon de chu noi bat (ban nhe: khong blur, nen dac hon) */
.intro { background: radial-gradient(55% 45% at 50% 50%, rgba(30, 23, 12, 0.9), rgba(6, 8, 13, 0.97) 72%); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.lite .intro { background: radial-gradient(55% 45% at 50% 50%, rgba(30, 23, 12, 0.96), rgba(6, 8, 13, 0.99) 72%); }

/* ===== MAN CHAO v2: 1 man hinh — mat cuoi phat sang + "Xin chao!" viet tay + phu de talking head ===== */
.intro-card { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.intro-smile { width: clamp(56px, 9vw, 84px); height: auto; overflow: visible; fill: none; stroke: #FFD36E; stroke-width: 3; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(255, 211, 110, 0.9)) drop-shadow(0 0 18px rgba(255, 160, 60, 0.6)); margin-bottom: 4px; }
.intro-smile .is-face { stroke-dasharray: 165; stroke-dashoffset: 165; transform-origin: 32px 32px; transform: rotate(-90deg); }
.intro-smile .is-mouth { stroke-dasharray: 34; stroke-dashoffset: 34; }
.intro-smile .is-eye { fill: #FFD36E; stroke: none; transform-box: fill-box; transform-origin: center; transform: scale(0); }
.intro.is-play .intro-smile .is-face { animation: isDraw 0.7s cubic-bezier(.5,0,.3,1) 0.1s forwards; }
.intro.is-play .intro-smile .is-eye { animation: isEye 0.35s cubic-bezier(.3,1.6,.6,1) 0.65s forwards, isBlink 2.4s ease-in-out 1.8s infinite; }
.intro.is-play .intro-smile .is-eye.r { animation: isEye 0.35s cubic-bezier(.3,1.6,.6,1) 0.72s forwards, isWink 2.4s ease-in-out 1.8s infinite; }
.intro.is-play .intro-smile .is-mouth { animation: isDraw 0.45s cubic-bezier(.5,0,.3,1) 0.85s forwards; }
.intro.is-play .intro-smile { animation: isGlow 2.2s ease-in-out 1.2s infinite; }
@keyframes isDraw { to { stroke-dashoffset: 0; } }
@keyframes isEye { to { transform: scale(1); } }
@keyframes isBlink { 0%, 8%, 100% { transform: scale(1); } 4% { transform: scale(1, 0.15); } }
@keyframes isWink { 0%, 30%, 100% { transform: scale(1); } 36%, 46% { transform: scale(1, 0.12); } 52% { transform: scale(1); } }
@keyframes isGlow { 0%, 100% { filter: drop-shadow(0 0 6px rgba(255, 211, 110, 0.9)) drop-shadow(0 0 18px rgba(255, 160, 60, 0.55)); }
  50% { filter: drop-shadow(0 0 9px rgba(255, 230, 160, 1)) drop-shadow(0 0 30px rgba(255, 170, 60, 0.8)); } }
/* "Xin chao!": hien nhu dang viet (lo ra tu trai sang voi mep mem) */
.intro-hello { margin: 0; font-family: var(--f-script); font-weight: 700; line-height: 1.15; padding: 0 0.2em;
  font-size: clamp(3.4rem, 11vw, 7.2rem); color: var(--gold);
  text-shadow: 0 0 2px rgba(255, 240, 190, 0.7), 0 0 26px rgba(255, 200, 90, 0.6), 0 0 70px rgba(255, 150, 50, 0.4);
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%); mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
  -webkit-mask-size: 260% 100%; mask-size: 260% 100%; -webkit-mask-position: 100% 0; mask-position: 100% 0; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.intro.is-play .intro-hello { animation: isWrite 1.1s cubic-bezier(.45,.1,.35,1) 0.45s forwards; }
@keyframes isWrite { to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
/* phu de talking head: bat tung tu, mo -> ro, troi len */
.intro-cap { margin: 6px 0 0; text-align: center; font-family: var(--f-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05;
  font-size: clamp(1.5rem, 4.6vw, 2.9rem); color: #fff; text-wrap: balance; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5); }
.intro-cap .iw { display: inline-block; opacity: 0; transform: translateY(0.35em) scale(0.92); filter: blur(8px); }
.intro-cap .iw.hl { color: var(--gold); font-size: 1.45em; letter-spacing: -0.03em;
  text-shadow: 0 0 16px rgba(255, 201, 60, 0.6), 0 0 40px rgba(255, 140, 40, 0.35); }
.intro-cap .iw.sm { font-size: 0.55em; font-weight: 600; color: rgba(255, 255, 255, 0.75); vertical-align: 0.35em; }
.intro.is-play .intro-cap .iw { animation: isWord 0.42s cubic-bezier(.2,.8,.2,1) calc(1.35s + var(--i) * 0.13s) forwards; }
.intro.is-play .intro-cap .iw.hl { animation: isWordHl 0.55s cubic-bezier(.3,1.5,.5,1) calc(1.35s + var(--i) * 0.13s) forwards; }
@keyframes isWord { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes isWordHl { 0% { opacity: 0; transform: scale(0.6); filter: blur(8px); } 60% { opacity: 1; transform: scale(1.08); filter: blur(0); } 100% { opacity: 1; transform: none; filter: blur(0); } }
/* chua cho quang sang "Xin chao!" toa het (khong bi mask cat thanh hinh chu nhat) */
.intro-hello { padding: 0.35em 0.7em; margin: -0.3em -0.5em -0.25em; }

/* ===== MAN CHAO v3: video tong hop + mat cuoi/Xin chao TO -> thu nho ===== */
.intro.has-video { background: #07090E; -webkit-backdrop-filter: none; backdrop-filter: none; }
.intro-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.intro.no-video .intro-video { display: none; }
.intro.has-video .intro-card { position: relative; z-index: 1; opacity: 0;
  transform: translateY(0) scale(var(--k, 1.8)); transition: transform 0.9s cubic-bezier(.65,0,.25,1), opacity 0.5s ease; }
.intro.has-video.is-hello .intro-card { opacity: 1; }
.intro.has-video.is-shrink .intro-card { transform: translateY(var(--cap, -30px)) scale(1); }
.intro-cap { position: absolute; left: 50%; top: 100%; width: max-content; max-width: 92vw; transform: translateX(-50%); }
/* mat cuoi + chu viet: chay khi is-hello */
.intro.is-hello .intro-smile .is-face { animation: isDraw 0.6s cubic-bezier(.5,0,.3,1) 0.05s forwards; }
.intro.is-hello .intro-smile .is-eye { animation: isEye 0.3s cubic-bezier(.3,1.6,.6,1) 0.5s forwards, isBlink 2.6s ease-in-out 2.4s infinite; }
.intro.is-hello .intro-smile .is-eye.r { animation: isEye 0.3s cubic-bezier(.3,1.6,.6,1) 0.56s forwards, isWink 2.6s ease-in-out 2.4s infinite; }
.intro.is-hello .intro-smile .is-mouth { animation: isDraw 0.4s cubic-bezier(.5,0,.3,1) 0.7s forwards; }
.intro.is-hello .intro-smile { animation: isNod 0.9s cubic-bezier(.45,0,.3,1) 1.1s 1 both, isGlow 2.2s ease-in-out 1.2s infinite; }
@keyframes isNod { 0%, 100% { transform: none; } 30% { transform: translateY(9%) rotate(-4deg) scaleY(0.94); } 55% { transform: translateY(-4%) rotate(2deg); } 78% { transform: translateY(2%); } }
.intro.is-hello .intro-hello { animation: isWrite 1.1s cubic-bezier(.45,.1,.35,1) 0.35s forwards; }
.intro.is-cap .intro-cap .iw { animation: isWord 0.42s cubic-bezier(.2,.8,.2,1) calc(0.35s + var(--i) * 0.13s) forwards; }
.intro.is-cap .intro-cap .iw.hl { animation: isWordHl 0.55s cubic-bezier(.3,1.5,.5,1) calc(0.35s + var(--i) * 0.13s) forwards; }
.intro.has-video { opacity: 1; }

/* lop phu gradient ~35% tren showreel man chao: diu hinh, am nhe, toi vien */
.intro-shade { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 50%, rgba(7, 9, 14, 0) 45%, rgba(7, 9, 14, 0.45) 100%),
    linear-gradient(160deg, rgba(255, 176, 70, 0.12) 0%, rgba(7, 9, 14, 0.35) 55%, rgba(7, 9, 14, 0.42) 100%); }
.intro.no-video .intro-shade { display: none; }

/* ===== Mat cuoi TECH (theo ban ve Illustrator cua chu du an): kinh 2 trong + mieng cung ===== */
.intro-smile { width: clamp(84px, 13vw, 132px); stroke: none; fill: none; overflow: visible; }
.intro-smile .ig-line { fill: none; stroke: #FFD36E; stroke-width: 20; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 100; stroke-dashoffset: 100; }
.intro-smile .ig-bridge { stroke-width: 14; }
.intro-smile .ig-glass { fill: url(#igGlass); opacity: 0; }
.intro-smile .ig-scan { fill: #FFD36E; opacity: 0; }
.intro-smile .ig-glint { transform: translateX(-120%); }
.intro-smile .ig-head { transform-box: fill-box; transform-origin: 50% 40%; }
/* trinh tu: ve vien kinh -> trong kinh bat len (chop nhu man hinh) -> cau kinh -> mieng cuoi -> quet sang -> gat dau */
.intro.is-hello .intro-smile .ig-lens { animation: igDraw 0.55s cubic-bezier(.6,0,.3,1) 0.05s forwards; }
.intro.is-hello .intro-smile .ig-lens.r { animation-delay: 0.15s; }
.intro.is-hello .intro-smile .ig-glass { animation: igBoot 0.5s steps(1) 0.55s forwards; }
.intro.is-hello .intro-smile .ig-glass.r { animation-delay: 0.62s; }
.intro.is-hello .intro-smile .ig-bridge { animation: igDraw 0.25s ease-out 0.5s forwards; }
.intro.is-hello .intro-smile .ig-mouth { animation: igDraw 0.5s cubic-bezier(.5,0,.3,1) 0.75s forwards; }
.intro.is-hello .intro-smile .ig-scan { animation: igScan 1.6s cubic-bezier(.4,0,.4,1) 0.75s infinite; }
.intro.is-hello .intro-smile .ig-scan.r { animation-delay: 0.85s; }
.intro.is-hello .intro-smile .ig-glint { animation: igGlint 2.4s cubic-bezier(.5,0,.3,1) 1.1s infinite; }
.intro.is-hello .intro-smile .ig-head { animation: igNod 0.9s cubic-bezier(.45,0,.3,1) 1.35s 1 both; }
.intro.is-hello .intro-smile { animation: igGlow 2.2s ease-in-out 0.6s infinite; }
@keyframes igDraw { to { stroke-dashoffset: 0; } }
@keyframes igBoot { 0% { opacity: 0.9; } 20% { opacity: 0.1; } 40% { opacity: 0.8; } 55% { opacity: 0.25; } 70%, 100% { opacity: 1; } }
@keyframes igScan { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 0.55; } 80% { opacity: 0.4; } 100% { transform: translateY(200px); opacity: 0; } }
@keyframes igGlint { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(160%); } }
@keyframes igNod { 0%, 100% { transform: none; } 30% { transform: translateY(5%) rotate(-3deg) scaleY(0.95); } 55% { transform: translateY(-2.5%) rotate(1.5deg); } 78% { transform: translateY(1%); } }
@keyframes igGlow { 0%, 100% { filter: drop-shadow(0 0 4px rgba(255, 211, 110, 0.9)) drop-shadow(0 0 14px rgba(255, 160, 60, 0.5)); }
  50% { filter: drop-shadow(0 0 7px rgba(255, 230, 160, 1)) drop-shadow(0 0 26px rgba(255, 170, 60, 0.8)); } }
.intro-smile .ig-glint { transform-box: fill-box; }

/* ===== LINH VAT mat cuoi kinh tren thanh menu ===== */
.mascot { flex: none; margin-left: auto; margin-right: 10px; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 14px;
  background: transparent; cursor: pointer; display: grid; place-items: center; transition: transform 0.25s var(--ease), background 0.25s; }
.mascot:hover, .mascot:focus-visible { background: rgba(255, 201, 60, 0.08); transform: translateY(-1px); }
@media (min-width: 1101px) { .mascot { order: 5; margin-left: 14px; margin-right: 0; } }
.mascot.is-waiting { visibility: hidden; }
.mascot-svg { width: 40px; height: 30px; overflow: visible;
  filter: drop-shadow(0 0 3px rgba(255, 211, 110, 0.75)) drop-shadow(0 0 9px rgba(255, 160, 60, 0.45)); }
:is(.mascot-svg, .mc-char) .mc-head { transform-box: fill-box; transform-origin: 50% 45%; transition: transform 0.4s var(--ease); }
:is(.mascot-svg, .mc-char) .mc-line { fill: none; stroke: #FFD36E; stroke-width: 34; stroke-linecap: round; stroke-linejoin: round; }
:is(.mascot-svg, .mc-char) .mc-bridge { stroke-width: 24; }
:is(.mascot-svg, .mc-char) .mc-glass { fill: #1C150A; transition: opacity 0.3s; }
:is(.mascot-svg, .mc-char) .mc-heart { fill: #FF4D6D; stroke: #FFB3C1; stroke-width: 14; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0.4); transition: opacity 0.3s, transform 0.35s cubic-bezier(.3,1.6,.5,1); }
:is(.mascot-svg, .mc-char) .mc-lid { fill: #0B0E15; transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); transition: transform 0.45s var(--ease); }
:is(.mascot-svg, .mc-char) .mc-m { opacity: 0; transition: opacity 0.25s; }
:is(.mascot-svg, .mc-char) .m-grin { fill: #2A1E0A; }
:is(.mascot-svg, .mc-char) .m-wow, :is(.mascot-svg, .mc-char) .m-sip { fill: #2A1E0A; }
:is(.mascot-svg, .mc-char) .mc-acc { opacity: 0; transition: opacity 0.3s; }
:is(.mascot-svg, .mc-char) .mc-sun { fill: #FFB020; stroke: #FFB020; stroke-width: 18; stroke-linecap: round; transform-box: fill-box; transform-origin: center; }
:is(.mascot-svg, .mc-char) .mc-coco circle { fill: #7A4A22; stroke: #C98A4B; stroke-width: 14; }
:is(.mascot-svg, .mc-char) .mc-coco-top { fill: none; stroke: #6CC25A; stroke-width: 26; stroke-linecap: round; }
:is(.mascot-svg, .mc-char) .mc-straw { fill: none; stroke: #FF6A9A; stroke-width: 18; stroke-linecap: round; }
:is(.mascot-svg, .mc-char) .mc-spark { fill: #FFF1B8; transform-box: fill-box; transform-origin: center; }
:is(.mascot-svg, .mc-char) .mc-dots circle { fill: #FFD36E; }
:is(.mascot-svg, .mc-char) .mc-zzz text { font: 800 90px var(--f-display); fill: #9FB4FF; }
/* chon mieng + phu kien theo tam trang */
.mascot[data-mood="happy"] .m-smile, .mascot[data-mood="love"] .m-smile,
.mascot[data-mood="excited"] .m-grin, .mascot[data-mood="wow"] .m-wow, .mascot[data-mood="think"] .m-flat,
.mascot[data-mood="bored"] .m-frown, .mascot[data-mood="proud"] .m-smirk, .mascot[data-mood="chill"] .m-sip { opacity: 1; }
.mascot[data-mood="love"] .mc-heart { opacity: 1; transform: scale(1); animation: mcBeat 1s ease-in-out infinite; }
.mascot[data-mood="love"] .mc-glass { opacity: 0; }
.mascot[data-mood="proud"] .mc-spark { opacity: 1; animation: mcTwinkle 1.6s ease-in-out infinite; }
.mascot[data-mood="proud"] .mc-head { transform: rotate(-7deg) translateY(-3%); }
.mascot[data-mood="think"] .mc-dots { opacity: 1; }
.mascot[data-mood="think"] .mc-dots circle { animation: mcDot 1.4s ease-in-out infinite; }
.mascot[data-mood="think"] .mc-dots circle:nth-child(2) { animation-delay: 0.2s; }
.mascot[data-mood="think"] .mc-dots circle:nth-child(3) { animation-delay: 0.4s; }
.mascot[data-mood="think"] .mc-head { transform: rotate(6deg); }
.mascot[data-mood="chill"] .mc-sun, .mascot[data-mood="chill"] .mc-coco { opacity: 1; }
.mascot[data-mood="chill"] .mc-sun { animation: mcSpin 8s linear infinite; }
.mascot[data-mood="chill"] .mc-lid { transform: scaleY(0.38); }
.mascot[data-mood="chill"] .mc-head { animation: mcSway 3s ease-in-out infinite; }
.mascot[data-mood="bored"] .mc-lid { transform: scaleY(0.6); }
.mascot[data-mood="bored"] .mc-zzz { opacity: 1; }
.mascot[data-mood="bored"] .mc-zzz text { animation: mcZ 2.4s ease-in-out infinite; }
.mascot[data-mood="bored"] .mc-zzz text:nth-child(2) { animation-delay: 0.4s; }
.mascot[data-mood="bored"] .mc-zzz text:nth-child(3) { animation-delay: 0.8s; }
.mascot[data-mood="bored"] .mc-head { transform: translateY(4%) rotate(-3deg); }
.mascot[data-mood="excited"] .mc-head { animation: mcBounce 0.9s cubic-bezier(.3,0,.3,1) infinite; }
.mascot[data-mood="wow"] .mc-head { transform: scale(1.06); }
.mascot[data-mood="happy"] .mc-head { animation: mcBob 3s ease-in-out infinite; }
.mascot.is-swap .mascot-svg { animation: mcPop 0.45s cubic-bezier(.3,1.6,.5,1); }
@keyframes mcPop { 0% { transform: scale(0.7); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes mcBeat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.18); } 50% { transform: scale(0.96); } }
@keyframes mcTwinkle { 0%, 100% { transform: scale(0.6) rotate(0); opacity: 0.4; } 50% { transform: scale(1.1) rotate(45deg); opacity: 1; } }
@keyframes mcDot { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@keyframes mcSpin { to { transform: rotate(360deg); } }
@keyframes mcSway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes mcZ { 0% { opacity: 0; transform: translate(0, 20px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(30px, -40px); } }
@keyframes mcBounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-9%) scale(1.04, 0.97); } 70% { transform: translateY(2%); } }
@keyframes mcBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3%); } }
/* bong mat cuoi bay tu man chao ve thanh menu */
.mascot-fly { position: fixed; z-index: 450; pointer-events: none; transform-origin: center; transition: transform 0.8s cubic-bezier(.65,0,.25,1), opacity 0.8s; }
@media (prefers-reduced-motion: reduce) { .mascot-svg *, .mascot .mascot-svg { animation: none !important; } }

/* ===== Bang clapper 3-2-1 ACTION o goc phai hero ===== */
.hero { position: relative; }
.clapper { position: absolute; z-index: 2; top: clamp(70px, 9vw, 120px); right: max(4%, 24px); width: clamp(110px, 15vw, 190px);
  pointer-events: none; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 18px rgba(255, 190, 70, 0.18));
  transform: rotate(8deg); animation: clFloat 6s ease-in-out infinite; }
.clapper svg { width: 100%; height: auto; overflow: visible; display: block; }
.clapper .cl-board > rect:first-child { fill: #12161F; stroke: rgba(255, 211, 110, 0.55); stroke-width: 2; }
.clapper .cl-top, .clapper .cl-stick rect { fill: #F2EEE4; }
.clapper .cl-stripe { fill: #12161F; }
.clapper .cl-hinge { fill: #FFD36E; }
.clapper .cl-meta { font: 700 12px var(--f-display); letter-spacing: 0.14em; fill: rgba(255, 255, 255, 0.55); }
.clapper .cl-count { font: 800 54px var(--f-display); text-anchor: middle; fill: #FFD36E; transform-box: fill-box; transform-origin: center;
  filter: drop-shadow(0 0 8px rgba(255, 201, 60, 0.7)); }
.clapper .cl-count.is-action { font-size: 34px; letter-spacing: 0.02em; fill: #FFFFFF; filter: drop-shadow(0 0 10px rgba(255, 220, 140, 0.95)) drop-shadow(0 0 22px rgba(255, 150, 50, 0.7)); }
.clapper .cl-count.is-tick { animation: clTick 0.45s cubic-bezier(.3,1.6,.5,1); }
.clapper .cl-stick { transform-box: view-box; transform-origin: 16px 50px; transition: transform 0.45s cubic-bezier(.3,0,.3,1); }
.clapper.is-open .cl-stick { transform: rotate(-28deg); }
.clapper.is-clap .cl-stick { transform: rotate(0); transition: transform 0.09s cubic-bezier(.7,0,1,.6); }
.clapper.is-clap { animation: clFloat 6s ease-in-out infinite, clHit 0.35s ease-out; }
@keyframes clTick { 0% { transform: scale(0.5); opacity: 0; } 60% { transform: scale(1.18); opacity: 1; } 100% { transform: scale(1); } }
@keyframes clHit { 0% { transform: rotate(8deg) translateY(0); } 30% { transform: rotate(6deg) translateY(4px) scale(0.98); } 100% { transform: rotate(8deg); } }
@keyframes clFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
/* dien thoai hep: an de khong che tieu de; man rong (2 cot) dat cao hon tren goc */
@media (max-width: 560px) { .clapper { display: none; } }
@media (min-width: 1101px) { .clapper { top: 28px; right: 3%; width: 150px; } }
/* clapper khong de chu: man 1 cot chua cho ben phai tieu de */
@media (min-width: 561px) and (max-width: 1100px) {
  .clapper { width: clamp(96px, 13vw, 140px); right: 16px; top: 64px; }
  .hero-copy .eyebrow, .hero-title { max-width: calc(100% - clamp(110px, 15vw, 160px)); }
}

/* ===== KINH CAN (trong suot) + con nguoi ===== */
:is(.mascot-svg, .mc-char) .mc-glass, .mc-char .mc-glass { fill: rgba(255, 236, 190, 0.07); }
.mc-pupil { fill: #FFE7A8; transition: opacity 0.25s; }
.mascot[data-mood="love"] .mc-pupil { opacity: 0; }
.intro-smile .ig-glass { fill: rgba(255, 236, 190, 0.06); }
.intro-smile .ig-pupil { fill: #FFE7A8; transform-box: fill-box; transform-origin: center; transform: scale(0); }
.intro.is-hello .intro-smile .ig-pupil { animation: igPupil 0.35s cubic-bezier(.3,1.6,.5,1) 0.7s forwards, igLook 2.6s ease-in-out 1.6s infinite; }
@keyframes igPupil { to { transform: scale(1); } }
@keyframes igLook { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-22px); } 60% { transform: translateX(20px); } }

/* ===== SAN KHAU thanh menu ===== */
.site-header { position: sticky; }
.site-header .nav-wrapper { position: relative; z-index: 2; }
.hdr-stage { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.stage-svg { position: absolute; left: 0; top: 0; overflow: visible; }
.mc-char { pointer-events: auto; cursor: pointer; }
.mc-char .mc-limb { fill: none; stroke: #FFD36E; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mc-char .mc-hand { fill: #FFD36E; }
.mc-char .mc-line { stroke-width: 34; }
.mc-char .mc-pos { filter: drop-shadow(0 0 2.5px rgba(255, 211, 110, 0.8)) drop-shadow(0 0 7px rgba(255, 160, 60, 0.4)); }
.mc-char .mc-dizzy { fill: #FFE7A8; opacity: 0; transition: opacity 0.2s; transform-box: fill-box; transform-origin: center; }
.mc-char.is-dizzy .mc-dizzy { opacity: 1; animation: mcSpin 0.9s linear infinite; }
.mc-char .mc-head, .mc-char .mc-head * { pointer-events: none; }
/* mep duoi man hinh bi "nang len" */
.hdr-lift { position: absolute; left: 0; right: 0; top: 100%; height: 0; background: inherit; background-color: #0D1118;
  border-bottom: 1px solid rgba(255, 211, 110, 0.55); box-shadow: 0 6px 16px rgba(255, 180, 60, 0.18); pointer-events: none; }
.site-header.is-slam { animation: hdrSlam 0.5s cubic-bezier(.3,0,.3,1); }
@keyframes hdrSlam { 0% { transform: translateY(0); } 20% { transform: translateY(3px); } 45% { transform: translateY(-2px); } 70% { transform: translateY(1px); } 100% { transform: none; } }
/* nut an cho ban phim */
.mascot-a11y { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); z-index: 3; padding: 6px 12px; border-radius: 999px;
  background: #FFD36E; color: #111; font: 600 0.75rem var(--f-display); border: 0; opacity: 0; pointer-events: none; }
.mascot-a11y:focus-visible { opacity: 1; pointer-events: auto; }

/* ===== HERO: troi hoang hon + may gradient troi cham (thay clapper) ===== */
.clapper { display: none !important; }
.hero-bg::before, .hero-bg::after { content: ""; position: absolute; top: -10%; left: -30%; width: 160%; height: 90%; pointer-events: none; }
/* lop xa: bau troi tim -> cam -> hong, may mong */
.hero-bg::before {
  background:
    radial-gradient(38% 22% at 72% 30%, rgba(255, 170, 110, 0.75), transparent 70%),
    radial-gradient(30% 16% at 52% 18%, rgba(255, 128, 140, 0.55), transparent 70%),
    radial-gradient(42% 20% at 88% 46%, rgba(255, 196, 120, 0.6), transparent 72%),
    radial-gradient(34% 18% at 30% 26%, rgba(150, 110, 200, 0.45), transparent 70%),
    linear-gradient(180deg, rgba(70, 48, 110, 0.55) 0%, rgba(255, 140, 90, 0.35) 45%, transparent 85%);
  filter: blur(18px); animation: cloudDrift 70s ease-in-out infinite alternate;
}
/* lop gan: dai may sang vien vang (anh nang chieu) */
.hero-bg::after {
  top: 6%; height: 70%;
  background:
    radial-gradient(26% 9% at 64% 40%, rgba(255, 226, 170, 0.75), transparent 70%),
    radial-gradient(22% 7% at 80% 30%, rgba(255, 200, 150, 0.65), transparent 72%),
    radial-gradient(30% 8% at 44% 52%, rgba(255, 160, 120, 0.5), transparent 72%),
    radial-gradient(20% 6% at 92% 58%, rgba(255, 214, 160, 0.6), transparent 70%);
  filter: blur(10px); mix-blend-mode: screen; animation: cloudDrift 45s ease-in-out -12s infinite alternate-reverse;
}
@keyframes cloudDrift { from { transform: translateX(0); } to { transform: translateX(10%); } }
.lite .hero-bg::before, .lite .hero-bg::after { animation: none; }
@media (prefers-reduced-motion: reduce) { .hero-bg::before, .hero-bg::after { animation: none; } }
/* may hoang hon: lop rieng NAM TREN lop toi cua hero (khong bi dim), chu van de doc vi may don ve phia tren-phai */
.hero::after { content: ""; position: absolute; z-index: -1; top: -12%; left: -25%; width: 150%; height: 78%; pointer-events: none;
  background:
    radial-gradient(30% 20% at 74% 30%, rgba(255, 168, 105, 0.42), transparent 70%),
    radial-gradient(24% 13% at 56% 16%, rgba(255, 120, 140, 0.30), transparent 70%),
    radial-gradient(34% 16% at 90% 46%, rgba(255, 196, 120, 0.34), transparent 72%),
    radial-gradient(28% 15% at 36% 22%, rgba(150, 110, 210, 0.26), transparent 70%),
    radial-gradient(20% 6% at 66% 42%, rgba(255, 230, 175, 0.45), transparent 70%),
    radial-gradient(18% 5% at 82% 33%, rgba(255, 205, 150, 0.4), transparent 72%),
    radial-gradient(24% 6% at 47% 50%, rgba(255, 160, 120, 0.28), transparent 72%);
  filter: blur(14px); animation: cloudDrift 60s ease-in-out infinite alternate; }
.lite .hero::after { animation: none; }
@media (prefers-reduced-motion: reduce) { .hero::after { animation: none; } }

/* linh vat 1 goc: con nguoi lien dao nhin quanh (tu nhien, khong lien tuc) */
.mascot .mc-pupil { transform-box: view-box; animation: mcLook 6s ease-in-out infinite; }
@keyframes mcLook { 0%, 30%, 100% { transform: translateX(0); } 38%, 48% { transform: translateX(-34px); } 56%, 66% { transform: translateX(34px); } 74% { transform: translateX(0); } }
.mascot[data-mood="chill"] .mc-pupil, .mascot[data-mood="bored"] .mc-pupil { animation: none; transform: translateY(18px); }

/* ===== Linh vat: re chuot / cham -> vay tay + "Xin chao!" bat ra ben trai ===== */
.mascot { position: relative; overflow: visible; }
.mascot .mc-wave { opacity: 0; transform-box: view-box; transform-origin: 1060px 640px; transform: rotate(40deg) scale(0.6); transition: opacity 0.2s, transform 0.3s cubic-bezier(.3,1.6,.5,1); }
.mascot .mc-palm { fill: #FFD36E; }
.mascot .mc-fing { stroke-width: 22; }
.mascot.is-hi .mc-wave { opacity: 1; transform: rotate(0) scale(1); animation: mcWave 0.5s ease-in-out 0.25s 4 alternate; }
@keyframes mcWave { from { transform: rotate(-14deg); } to { transform: rotate(16deg); } }
.mascot.is-hi .mc-head { animation: mcBob 0.6s ease-in-out 2; }
.mascot-hi { position: absolute; right: calc(100% + 6px); top: 50%; white-space: nowrap; pointer-events: none;
  padding: 7px 14px 7px 13px; border-radius: 999px; background: linear-gradient(180deg, #FFE08A, #FFC93C); color: #1A1305;
  font: 700 0.86rem/1 var(--f-display); letter-spacing: 0.01em; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 16px rgba(255, 201, 60, 0.45);
  opacity: 0; transform: translate(10px, -50%) scale(0.6); transform-origin: 100% 50%; transition: opacity 0.18s, transform 0.35s cubic-bezier(.3,1.6,.5,1); }
.mascot-hi::after { content: ""; position: absolute; right: -5px; top: 50%; width: 10px; height: 10px; background: #FFD25A; transform: translateY(-50%) rotate(45deg); border-radius: 2px; }
.mascot.is-hi .mascot-hi { opacity: 1; transform: translate(0, -50%) scale(1); }
@media (prefers-reduced-motion: reduce) { .mascot.is-hi .mc-wave { animation: none; } }
/* "Xin chao!" canh linh vat: chu viet tay vang phat sang (giong man chao), khong khung */
.mascot-hi { background: none; box-shadow: none; padding: 0 4px; border-radius: 0;
  font: 700 clamp(1.35rem, 2.6vw, 1.75rem)/1.1 var(--f-script); color: var(--gold); letter-spacing: 0;
  text-shadow: 0 0 2px rgba(255, 240, 190, 0.7), 0 0 14px rgba(255, 200, 90, 0.65), 0 0 34px rgba(255, 150, 50, 0.4); }
.mascot-hi::after { display: none; }
/* loi chao chu Trung/Nhat/Han: font viet tay khong co chu nay -> dung font dam, van phat sang vang */
.mascot-hi.is-cjk { font: 800 clamp(1.05rem, 2vw, 1.3rem)/1.1 var(--f-display); }

/* ===== Tieu canh: tay chong cam, buom, ruoi, dap ruoi ===== */
.mascot .mc-chin { opacity: 0; transform-box: view-box; transform-origin: 1080px 1010px; transform: translate(60px, 80px) rotate(12deg); transition: opacity 0.3s, transform 0.5s cubic-bezier(.3,1.3,.5,1); }
.mascot.is-chin .mc-chin { opacity: 1; transform: none; }
.mascot.is-chin .mc-head { transform: rotate(-8deg) translateY(-4%); transition: transform 0.6s var(--ease); animation: none; }
.mascot.is-track .mc-pupil { animation: none !important; transition: transform 0.12s linear; }
.mascot.is-swat .mc-wave { opacity: 1; animation: mcSwat 0.45s cubic-bezier(.6,0,.2,1) forwards; }
@keyframes mcSwat { 0% { transform: rotate(40deg) scale(1.1); } 40% { transform: rotate(-70deg) translate(-180px, 60px) scale(1.25); } 70% { transform: rotate(-60deg) translate(-170px, 50px) scale(1.2); } 100% { transform: rotate(0) scale(1); } }
.mascot.is-swat .mascot-svg { animation: mcPop 0.4s cubic-bezier(.3,1.6,.5,1) 0.18s; }
.critter { position: absolute; left: 50%; top: 50%; width: 22px; height: 18px; margin: -9px 0 0 -11px; pointer-events: none; z-index: 3; will-change: transform; }
.critter svg { width: 100%; height: 100%; overflow: visible; }
.c-butterfly .bf-w path { fill: #FFB07A; stroke: #FFE7A8; stroke-width: 0.6; }
.c-butterfly .bf-w.r path { fill: #FF8FB1; }
.c-butterfly .bf-w { transform-origin: 0 0; animation: bfFlap 0.32s ease-in-out infinite alternate; }
.c-butterfly .bf-w.r { animation-name: bfFlapR; }
.c-butterfly .bf-b { stroke: #FFE7A8; stroke-width: 1.4; stroke-linecap: round; }
.c-butterfly { filter: drop-shadow(0 0 4px rgba(255, 170, 140, 0.7)); }
@keyframes bfFlap { from { transform: scaleX(1); } to { transform: scaleX(0.25); } }
@keyframes bfFlapR { from { transform: scaleX(1); } to { transform: scaleX(0.25); } }
.c-fly { width: 12px; height: 12px; margin: -6px 0 0 -6px; }
.c-fly .fl-b { fill: #1B1F27; stroke: #FFD36E; stroke-width: 0.9; }
.c-fly .fl-w { fill: rgba(220, 235, 255, 0.75); transform-box: fill-box; transform-origin: 50% 100%; animation: flBuzz 0.05s linear infinite alternate; }
@keyframes flBuzz { from { transform: scaleY(1); } to { transform: scaleY(0.3); } }
.c-fly.is-hit { animation: flFall 1.2s cubic-bezier(.5,0,.8,.6) forwards; }
.c-fly.is-hit .fl-w { animation: none; opacity: 0.4; }
@keyframes flFall { 0% { scale: 1.4 0.4; } 20% { scale: 1 1; } 100% { translate: 6px 60px; rotate: 540deg; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .critter { display: none; } }

/* ===== Chuoi canh vui ve cua linh vat ===== */
/* ngu gat thanh than: mieng NGANG (khong meu), mi mat sup, zzz */
.mascot[data-mood="bored"] .m-frown { opacity: 0 !important; }
.mascot[data-mood="bored"] .m-flat { opacity: 1; }
.mascot[data-mood="bored"] .mc-head { transform: translateY(3%) rotate(-5deg); animation: mcSway 3.2s ease-in-out infinite; }
/* suy nghi: tuoi hon (mieng nhech cuoi thay vi ngang) */
.mascot[data-mood="think"] .m-flat { opacity: 0; }
.mascot[data-mood="think"] .m-smirk { opacity: 1; }
/* nem bong: tay vung len */
.mascot.is-throw .mc-wave { opacity: 1; animation: mcThrow 0.35s cubic-bezier(.5,0,.3,1) forwards; }
@keyframes mcThrow { 0% { transform: rotate(30deg); } 50% { transform: rotate(60deg) translate(40px, 40px); } 100% { transform: rotate(-40deg) translate(-60px, -20px); } }
.c-ball { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
.c-ball circle { fill: #FF7A30; stroke: #FFD36E; stroke-width: 1.2; }
.c-ball path { fill: none; stroke: #FFE7A8; stroke-width: 0.9; }
.c-ball { filter: drop-shadow(0 0 4px rgba(255, 140, 60, 0.8)); }
/* logo bi bong trung: rung */
.is-bonk { animation: logoBonk 0.5s cubic-bezier(.3,0,.3,1); }
@keyframes logoBonk { 0% { transform: none; } 20% { transform: translateX(-4px) rotate(-6deg) scale(0.96); } 45% { transform: translateX(3px) rotate(4deg); } 70% { transform: translateX(-1px) rotate(-2deg); } 100% { transform: none; } }
/* nga ngua roi bat day */
.mascot.is-fall .mascot-svg { animation: mcFall 1.3s cubic-bezier(.3,0,.3,1) both; }
@keyframes mcFall { 0% { transform: none; } 18% { transform: translate(6px, 2px) rotate(-70deg) scale(0.95); } 60% { transform: translate(6px, 2px) rotate(-75deg) scale(0.95); } 85% { transform: translate(-2px, -2px) rotate(8deg); } 100% { transform: none; } }
/* tay om mat (xau ho) roi cuoi */
.mascot .mc-palmface { opacity: 0; transform-box: view-box; transform-origin: 1090px 1010px; transform: translate(80px, 120px) rotate(20deg); transition: opacity 0.2s, transform 0.35s cubic-bezier(.3,1.3,.5,1); }
.mascot .mc-palmface .mc-palm { fill: #FFD36E; opacity: 0.92; }
.mascot.is-facepalm .mc-palmface { opacity: 1; transform: none; }
.mascot.is-facepalm .mc-head { animation: mcShake 0.5s ease-in-out 2; }
@keyframes mcShake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }

/* ===== Do vat: laptop / sach / dien thoai ===== */
.mascot .mc-prop { opacity: 0; transform-box: view-box; transform-origin: 755px 1000px; transform: translateY(160px) scale(0.6); transition: opacity 0.25s, transform 0.45s cubic-bezier(.3,1.4,.5,1); }
.mascot.is-laptop .mc-laptop, .mascot.is-book .mc-book, .mascot.is-game .mc-phone { opacity: 1; transform: none; }
.mascot .pr-hand { fill: #FFD36E; }
/* laptop (nhin tu phia sau nap) */
.mascot .pr-lid { fill: #1A1F2A; stroke: #FFD36E; stroke-width: 18; }
.mascot .pr-base { fill: #FFD36E; }
.mascot .pr-logo { fill: #FFE7A8; animation: prGlow 1.6s ease-in-out infinite; }
.mascot.is-laptop .pr-hand { transform-box: fill-box; transform-origin: center; animation: prType 0.16s ease-in-out infinite alternate; }
.mascot.is-laptop .pr-hand.r { animation-delay: 0.08s; }
.mascot.is-laptop .mc-pupil { animation: none !important; transform: translate(0, 20px) !important; }
@keyframes prType { from { transform: translateY(0); } to { transform: translateY(-14px); } }
@keyframes prGlow { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
/* sach */
.mascot .pr-page { fill: #F5ECD6; stroke: #FFD36E; stroke-width: 12; }
.mascot .pr-txt { fill: none; stroke: #9A8A66; stroke-width: 9; stroke-linecap: round; }
.mascot .pr-flip { fill: #FFF6E0; stroke: #FFD36E; stroke-width: 10; opacity: 0; transform-box: view-box; transform-origin: 755px 900px; }
.mascot.is-book .pr-flip { animation: prFlip 3.2s ease-in-out 1.4s infinite; }
@keyframes prFlip { 0%, 60% { opacity: 0; transform: scaleX(1); } 62% { opacity: 1; } 80% { transform: scaleX(-1); opacity: 1; } 82%, 100% { opacity: 0; transform: scaleX(-1); } }
.mascot.is-book .mc-pupil { animation: prRead 1.6s ease-in-out infinite !important; }
@keyframes prRead { 0% { transform: translate(-30px, 16px); } 80% { transform: translate(30px, 16px); } 100% { transform: translate(-30px, 20px); } }
/* dien thoai choi game */
.mascot .pr-ph { fill: #12161F; stroke: #FFD36E; stroke-width: 14; }
.mascot .pr-scr { fill: #1E5A7A; }
.mascot .pr-dot { fill: #FFE7A8; animation: prBall 0.9s ease-in-out infinite alternate; }
.mascot .pr-bar { fill: #FF8FB1; animation: prPad 0.7s ease-in-out infinite alternate; }
.mascot.is-game .mc-pupil { animation: prWatch 0.9s ease-in-out infinite alternate !important; }
.mascot.is-game .pr-hand { transform-box: fill-box; transform-origin: center; animation: prType 0.22s ease-in-out infinite alternate; }
.mascot.is-win .mascot-svg { animation: mcBounce 0.6s cubic-bezier(.3,0,.3,1) 2; }
.mascot.is-win .pr-scr { fill: #FFC93C; transition: fill 0.2s; }
@keyframes prBall { from { transform: translate(0, -20px); } to { transform: translate(150px, 20px); } }
@keyframes prPad { from { transform: translateY(-14px); } to { transform: translateY(10px); } }
@keyframes prWatch { from { transform: translate(-20px, 18px); } to { transform: translate(24px, 18px); } }
@media (prefers-reduced-motion: reduce) { .mascot .mc-prop * { animation: none !important; } }

/* ===== Canh buon dien thoai Nokia + ngam mong tay ===== */
.mascot.is-chat .mc-nokia, .mascot.is-chat .mc-nails { opacity: 1; transform: none; }
.mascot .mc-nokia { transform-origin: 400px 760px; }
.mascot .mc-nails { transform-origin: 1100px 1000px; }
.mascot .nk-body { fill: #2B3342; stroke: #FFD36E; stroke-width: 12; }
.mascot .nk-ant { fill: #2B3342; stroke: #FFD36E; stroke-width: 10; }
.mascot .nk-scr { fill: #9FD27A; }
.mascot .nk-keys circle { fill: #FFE7A8; }
.mascot .nk-talk path { fill: none; stroke: #FFE7A8; stroke-width: 12; stroke-linecap: round; }
.mascot.is-chat .nk-talk path { animation: nkTalk 0.6s ease-in-out infinite; }
.mascot.is-chat .nk-talk path:nth-child(2) { animation-delay: 0.15s; }
@keyframes nkTalk { 0%, 100% { opacity: 0.15; } 50% { opacity: 1; } }
.mascot .nl-fing { stroke-width: 18; }
.mascot.is-chat .mc-nails { animation: nlWiggle 1.4s ease-in-out infinite; }
@keyframes nlWiggle { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-8deg); } 60% { transform: rotate(6deg); } }
/* mieng noi lien thoang: luan phien mieng cuoi / mieng tron */
.mascot.is-chat .m-smile { animation: talkA 0.36s steps(1) infinite; }
.mascot.is-chat .m-wow { animation: talkB 0.36s steps(1) infinite; }
@keyframes talkA { 0% { opacity: 1; } 50% { opacity: 0; } }
@keyframes talkB { 0% { opacity: 0; } 50% { opacity: 1; } }
/* mat: luc nhin dien thoai, luc liec sang ngam mong tay */
.mascot.is-chat .mc-pupil { animation: nlEyes 3s ease-in-out infinite !important; }
@keyframes nlEyes { 0%, 45% { transform: translate(-28px, 0); } 55%, 90% { transform: translate(30px, 18px); } 100% { transform: translate(-28px, 0); } }
.mascot.is-chat .mc-head { animation: mcSway 2.4s ease-in-out infinite; }

/* Dien thoai/ban nhe: linh vat khong dung bo loc phat sang dong (ton GPU), bo nhun dau lien tuc */
.lite .mascot-svg { filter: drop-shadow(0 0 3px rgba(255, 211, 110, 0.6)); }
.lite .mascot[data-mood="happy"] .mc-head, .lite .mascot[data-mood="excited"] .mc-head, .lite .mascot[data-mood="chill"] .mc-head,
.lite .mascot[data-mood="bored"] .mc-head { animation: none; }
.lite .mascot .mc-pupil { animation-duration: 9s; }
