/* ==========================================================================
   Harmony Media & Entertainment — stylesheet (Navy · Gold · Scientific HUD)
   Màu thương hiệu chỉnh ở :root. Hiệu ứng tắt tự động khi người dùng bật
   "Giảm chuyển động" (prefers-reduced-motion).
   ========================================================================== */

:root {
  --bg-deep: #0f1a2c;
  --bg: #152238;
  --bg-soft: #192841;
  --bg-card: #1c2e4a;
  --navy: #203354;
  --navy-light: #23395d;
  --line: rgba(255, 255, 255, 0.09);
  --line-gold: rgba(214, 172, 100, 0.38);
  --text: #f3efe6;
  --text-dim: #a7b2c6;
  --gold: #d6ac64;
  --gold-light: #ebcf96;
  --cyan: #7cc8f5;
  --on-gold: #152238;
  --grad: linear-gradient(120deg, #efd59f 0%, #d6ac64 100%);
  --radius: 14px;
  --container: 1180px;
  --ff-body: "Be Vietnam Pro", system-ui, "Segoe UI", sans-serif;
  --ff-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: linear-gradient(180deg, #0f1a2c 0%, #14213a 45%, #0f1a2c 100%);
  color: var(--text);
  font-family: var(--ff-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--ff-mono); }

h1, h2, h3, h4 {
  font-family: var(--ff-body);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}
h2 { font-size: clamp(28px, 3.6vw, 44px); }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--on-gold); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.ico { width: 18px; height: 18px; flex: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ff-mono);
  font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-light); font-weight: 500; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }

.section { padding: 112px 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head p, .lead { color: var(--text-dim); font-size: 17px; margin-top: 12px; }
.section-head.center { max-width: 780px; margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--gold); }
.bg-soft { background: rgba(21, 34, 56, .62); }

/* lưới kỹ thuật nền */
.grid-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}
.grid-bg > .container { position: relative; }

/* góc khung HUD */
.brk { position: relative; }
.brk::after {
  content: ""; position: absolute; inset: -1px; pointer-events: none; opacity: .0;
  transition: opacity .35s var(--ease);
  background:
    linear-gradient(var(--gold), var(--gold)) top left / 16px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top left / 1px 16px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / 16px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / 1px 16px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 16px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 1px 16px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 16px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 1px 16px no-repeat;
}
.brk:hover::after, .orbit::after, .contact-form::after, .map-frame::after { opacity: .85; }

/* ---------- nền dòng chảy hạt (canvas toàn trang) ---------- */
.flow-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .site-footer { position: relative; z-index: 1; }

/* ---------- progress + cursor glow ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120;
  background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
}
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  pointer-events: none; z-index: 1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle, rgba(90,190,255,.10), transparent 62%);
  will-change: transform;
}
.cursor-glow.on { opacity: 1; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 12px 26px; border-radius: 999px;
  font-family: var(--ff-body); font-weight: 600; font-size: 15px; letter-spacing: .01em;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease), translate .3s var(--ease), box-shadow .25s var(--ease), border-color .25s, color .25s, background .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-primary { background: var(--grad); color: var(--on-gold); box-shadow: 0 8px 24px rgba(214,172,100,.22); }
.btn-primary:hover { box-shadow: 0 12px 34px rgba(214,172,100,.38); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg); transition: left .7s var(--ease);
}
.btn-primary:hover::after { left: 130%; }
.btn-outline { background: rgba(255,255,255,.02); border-color: rgba(255,255,255,.22); color: var(--text); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); background: rgba(214,172,100,.06); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 18px 0;
  border-bottom: 1px solid transparent;
  transition: background .35s, border-color .35s, padding .35s;
}
.site-header.scrolled {
  background: rgba(15, 26, 44, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line); padding: 10px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 42px; width: auto; flex: none; display: block; transition: transform .6s var(--ease); }
.logo:hover .logo-img { transform: rotate(-6deg) scale(1.06); }
.logo-word { font-size: 18px; font-weight: 700; letter-spacing: .12em; white-space: nowrap; }
.logo-word span { color: var(--gold-light); font-weight: 300; letter-spacing: .06em; text-transform: lowercase; }

.nav-links { display: flex; align-items: center; gap: 34px; font-size: 14.5px; font-weight: 500; }
.nav-links a { position: relative; color: var(--text-dim); padding: 6px 0; transition: color .2s; white-space: nowrap; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--gold-light); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { min-height: 40px; padding: 8px 20px; font-size: 14px; }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 10px; }
.nav-toggle span { height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-drawer { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  padding: 130px 0 120px;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(90deg, rgba(15,26,44,.72) 0%, rgba(15,26,44,.28) 55%, rgba(15,26,44,0) 100%),
    radial-gradient(ellipse 60% 55% at 15% 20%, rgba(35,57,93,.55), transparent 62%),
    radial-gradient(ellipse 55% 45% at 88% 25%, rgba(50,140,255,.12), transparent 60%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px; animation: gridDrift 18s linear infinite;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 15%, transparent 78%);
          mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 15%, transparent 78%);
}
@keyframes gridDrift { to { background-position: 56px 56px, 56px 56px; } }

.hero-grid { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: center; }
.hero-copy { max-width: 800px; will-change: transform, opacity; text-shadow: 0 2px 26px rgba(8,14,26,.85); }
.hero h1 { font-size: clamp(32px, 3.5vw, 49px); font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; margin-bottom: 22px; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero h1 .line > span { display: block; animation: lineUp 1s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .18s; }
@keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #f6e2b3 0%, #d6ac64 40%, #fff0c8 60%, #d6ac64 100%);
  background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite; text-shadow: none; filter: drop-shadow(0 2px 14px rgba(8,14,26,.55));
}
@keyframes shine { to { background-position: -220% 0; } }
.hero-sub { font-size: 18px; color: var(--text-dim); max-width: 560px; margin-bottom: 36px; animation: fadeUp .9s .45s var(--ease) both; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; animation: fadeUp .9s .6s var(--ease) both; }
.hero .eyebrow { animation: fadeUp .8s .05s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.caret { width: 8px; height: 15px; background: var(--gold-light); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* HUD */
.hud {
  text-shadow: none;
  position: relative; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 12px;
  background: linear-gradient(160deg, rgba(35,57,93,.55), rgba(21,34,56,.55));
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: 11.5px; letter-spacing: .1em; color: var(--text-dim);
  animation: fadeUp 1s .5s var(--ease) both; will-change: transform;
}
.hud::before, .hud::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--gold); }
.hud::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hud::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.hud-head { display: flex; justify-content: space-between; align-items: center; color: var(--gold-light); }
.hud-live { display: inline-flex; align-items: center; gap: 7px; color: #ff8a80; }
.hud-live i { width: 7px; height: 7px; border-radius: 50%; background: #ff5a4d; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }
.hud-tc { font-size: 25px; letter-spacing: .04em; color: var(--text); margin: 14px 0 12px; font-variant-numeric: tabular-nums; }
.hud-rows { margin: 0; }
.hud-rows div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.hud-rows dt { color: var(--text-dim); opacity: .7; }
.hud-rows dd { margin: 0; color: var(--text); }

.scroll-cue { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 10.5px; letter-spacing: .3em; color: var(--text-dim); }
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); animation: cue 1.8s var(--ease) infinite; transform-origin: 50% 0; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

.ticker {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  border-top: 1px solid var(--line); background: rgba(15,26,44,.7);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 15px 0; overflow: hidden; white-space: nowrap;
  font-size: 12.5px; letter-spacing: .2em; color: var(--gold-light);
}
.ticker-track { display: inline-flex; gap: 44px; animation: ticker 36s linear infinite; }
.ticker-track span::after { content: "/"; margin-left: 44px; color: var(--text-dim); opacity: .5; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.orbit {
  position: relative; aspect-ratio: 1; width: 100%; max-width: 480px; margin: 0 auto;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(circle at 50% 50%, rgba(35,57,93,.8), rgba(25,40,65,.4) 70%);
  overflow: visible;
}
.orbit-svg { position: absolute; inset: 4%; width: 92%; height: 92%; overflow: visible; }
.orbit .tick-ring { stroke: rgba(214,172,100,.55); stroke-width: 6; stroke-dasharray: 1 11; transform-origin: 200px 200px; animation: spin 90s linear infinite reverse; }
.orbit .ring { stroke: var(--line); stroke-dasharray: 2 6; }
.orbit .o1 { transform-origin: 200px 200px; animation: spin 60s linear infinite; }
.orbit .orb ellipse { stroke: rgba(214,172,100,.4); stroke-width: 1; }
.orbit .dot { fill: var(--gold); stroke: none; filter: drop-shadow(0 0 6px rgba(214,172,100,.9)); }
.orbit .dot.cy { fill: var(--cyan); filter: drop-shadow(0 0 6px rgba(124,200,245,.9)); }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-logo { position: absolute; top: 50%; left: 50%; width: 24%; transform: translate(-50%, -50%); animation: float 6s ease-in-out infinite; filter: drop-shadow(0 0 22px rgba(214,172,100,.35)); }
@keyframes float { 50% { transform: translate(-50%, -54%); } }
.orbit-tag { position: absolute; font-size: 11px; color: var(--gold-light); letter-spacing: .1em; border: 1px solid var(--line-gold); border-radius: 6px; padding: 2px 8px; background: rgba(15,26,44,.7); }
.orbit-tag.t1 { top: 12%; left: 8%; } .orbit-tag.t2 { bottom: 14%; right: 6%; } .orbit-tag.t3 { top: 18%; right: 10%; }

.about-text p { color: var(--text-dim); margin-bottom: 18px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 38px; }
.stat { border-top: 1px solid var(--line-gold); padding-top: 14px; }
.stat b { display: block; font-family: var(--ff-mono); font-weight: 500; font-size: 32px; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.stat span { font-size: 13.5px; color: var(--text-dim); }

/* ---------- services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(165deg, rgba(35,57,93,.5), rgba(28,46,74,.85));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px 30px;
  transition: border-color .3s, transform .2s ease-out, box-shadow .3s;
  transform-style: preserve-3d;
}
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(214,172,100,.16), transparent 60%);
}
.svc:hover { border-color: var(--line-gold); box-shadow: 0 18px 44px rgba(7,14,26,.45); }
.svc:hover::before { opacity: 1; }
.svc-no { position: absolute; top: 18px; right: 22px; font-size: 12px; color: var(--text-dim); opacity: .6; letter-spacing: .1em; }
.svc-icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 22px;
  border: 1px solid var(--line-gold); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  background: rgba(214,172,100,.06); transition: background .3s, transform .4s var(--ease), color .3s;
}
.svc-icon svg { width: 26px; height: 26px; }
.svc:hover .svc-icon { background: var(--gold); color: var(--on-gold); transform: rotate(-6deg) scale(1.06); }
.svc h3 { font-size: 19px; margin-bottom: 10px; }
.svc p { color: var(--text-dim); font-size: 15px; margin: 0; }

/* ---------- process ---------- */
.process-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.process-line { position: absolute; top: 20px; left: 20px; right: 20px; height: 1px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.process-line i { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--gold); box-shadow: 0 0 10px rgba(214,172,100,.7); transform: scaleX(0); transform-origin: 0 50%; transition: transform 2s var(--ease) .2s; }
.process-grid.drawn .process-line i { transform: scaleX(1); }
.process-step { position: relative; }
.process-step .num {
  position: relative; width: 41px; height: 41px; border-radius: 50%; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--gold-light);
  border: 1px solid var(--line-gold); background: var(--bg);
  transition: background .5s, color .5s, box-shadow .5s;
}
.process-grid.drawn .process-step .num { background: var(--gold); color: var(--on-gold); box-shadow: 0 0 0 6px rgba(214,172,100,.12); }
.process-grid.drawn .process-step:nth-of-type(2) .num { transition-delay: .5s; }
.process-grid.drawn .process-step:nth-of-type(3) .num { transition-delay: 1s; }
.process-grid.drawn .process-step:nth-of-type(4) .num { transition-delay: 1.5s; }
.process-step h4 { font-size: 17px; margin-bottom: 8px; }
.process-step p { color: var(--text-dim); font-size: 14.5px; margin: 0; }

/* ---------- sự kiện / video: thẻ có mô tả ---------- */
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pf-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  background: linear-gradient(165deg, rgba(35,57,93,.5), rgba(28,46,74,.9));
  border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: transform .35s var(--ease), border-color .3s, box-shadow .3s;
}
.pf-card:hover { transform: translateY(-6px); border-color: var(--line-gold); box-shadow: 0 22px 48px rgba(7,14,26,.5); }
.pf-card.pf-soon { cursor: default; }
.pf-card.pf-soon:hover { transform: none; border-color: var(--line); box-shadow: none; }
.pf-extra { display: none; }
.pf-grid.show-all .pf-extra { display: flex; }

.pf-thumb {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background-color: var(--navy-light); background-image: linear-gradient(160deg, #23395d, #192841);
  background-size: cover; background-position: center;
  transition: background-size .8s var(--ease);
}
.pf-card:hover .pf-thumb { background-size: 108%; }
.pf-thumb::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,26,44,.55), rgba(15,26,44,0) 55%); }
.pf-thumb::after {
  content: ""; position: absolute; inset: 10px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background:
    linear-gradient(var(--gold), var(--gold)) top left / 14px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top left / 1px 14px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / 14px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / 1px 14px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 14px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom left / 1px 14px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 14px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 1px 14px no-repeat;
}
.pf-card:hover .pf-thumb::after { opacity: 1; }
.pf-card.pf-soon:hover .pf-thumb::after { opacity: 0; }
.pf-soon-tag { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; background: rgba(15,26,44,.6); white-space: nowrap; }
.pf-count { position: absolute; z-index: 2; top: 12px; right: 12px; font-size: 12px; color: #fff; background: rgba(15,26,44,.75); border: 1px solid rgba(255,255,255,.2); padding: 4px 12px; border-radius: 999px; }

.portfolio-play {
  position: absolute; z-index: 2; top: 50%; left: 50%; width: 60px; height: 60px; margin: -30px 0 0 -30px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff;
  background: rgba(15,26,44,.55); border: 1px solid rgba(255,255,255,.35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .35s var(--ease), background .3s, color .3s;
}
.portfolio-play svg { width: 22px; height: 22px; fill: currentColor; stroke: none; margin-left: 3px; }
.portfolio-play::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid var(--gold); animation: ring 2.2s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.pf-card:hover .portfolio-play { transform: scale(1.1); background: var(--gold); color: var(--on-gold); }

.pf-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pf-meta { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); }
.pf-body h3 { font-size: 20px; margin: 0; }
.pf-body p { margin: 0; color: var(--text-dim); font-size: 14.5px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pf-more-wrap { display: flex; justify-content: center; margin-top: 36px; }
.pf-more[hidden] { display: none; }

/* ---------- đối tác (dải logo chạy ngang) ---------- */
.partners-section { padding-bottom: 96px; }
.partners-section .section-head { margin-bottom: 40px; }
.partners { overflow: hidden; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.partners-track { display: flex; width: max-content; animation: partners 42s linear infinite; }
.partners:hover .partners-track { animation-play-state: paused; }
.partners.is-static { -webkit-mask-image: none; mask-image: none; }
.partners.is-static .partners-track { width: auto; flex-wrap: wrap; justify-content: center; animation: none; padding: 0 24px; gap: 20px 0; }
.partner {
  flex: none; width: 188px; height: 88px; margin-right: 20px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255,255,255,.035);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .3s, background .3s, transform .3s var(--ease);
}
.partner:hover { border-color: var(--line-gold); background: rgba(214,172,100,.06); transform: translateY(-3px); }
.partner img { max-width: 128px; max-height: 46px; width: auto; height: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: .7; transition: opacity .3s; }
.partner:hover img { opacity: 1; }
.partner.ph span { font-size: 12px; letter-spacing: .24em; color: var(--text-dim); opacity: .55; }
@keyframes partners { to { transform: translateX(-50%); } }

/* ---------- modal xem video / ảnh ---------- */
.pf-modal { position: fixed; inset: 0; z-index: 200; background: rgba(8,14,26,.95); display: none; align-items: center; justify-content: center; padding: 24px; }
.pf-modal.open { display: flex; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; } }
.pf-modal-inner { width: 100%; max-width: 1100px; display: flex; justify-content: center; }
.pf-close { position: absolute; top: 18px; right: 22px; z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, transform .3s var(--ease); }
.pf-close:hover { background: rgba(255,255,255,.18); transform: rotate(90deg); }
.pf-video { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-gold); }
.pf-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pf-photo { position: relative; max-width: 100%; }
.pf-photo img { max-width: 100%; max-height: 82vh; border-radius: 10px; margin: 0 auto; animation: fade .35s ease; }
.pf-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(15,26,44,.65); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.pf-nav:hover { background: var(--gold); color: var(--on-gold); }
.pf-nav.prev { left: 12px; } .pf-nav.next { right: 12px; }
.pf-cap { text-align: center; color: var(--text-dim); font-family: var(--ff-mono); font-size: 13px; margin-top: 12px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.info-list { display: flex; flex-direction: column; gap: 22px; margin: 30px 0 32px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-icon { width: 44px; height: 44px; flex: none; border-radius: 10px; color: var(--gold-light); background: rgba(214,172,100,.06); border: 1px solid var(--line-gold); display: flex; align-items: center; justify-content: center; }
.info-icon svg { width: 20px; height: 20px; }
.info-item b { display: block; font-size: 15px; margin-bottom: 3px; }
.info-item span, .info-item a { color: var(--text-dim); font-size: 14.5px; }
.info-item a { transition: color .2s; } .info-item a:hover { color: var(--gold-light); }

.map-frame { width: 100%; height: 230px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); filter: grayscale(.5) invert(.9) hue-rotate(185deg) contrast(.85); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }

.contact-form { background: linear-gradient(165deg, rgba(35,57,93,.45), rgba(28,46,74,.85)); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); }
.field input, .field textarea, .field select {
  background: rgba(15,26,44,.7); border: 1px solid var(--line); border-radius: 8px;
  padding: 13px 14px; min-height: 46px; color: var(--text); font-family: var(--ff-body); font-size: 15px; outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214,172,100,.18); }
.field textarea { resize: vertical; min-height: 110px; }
.field select option { background: var(--bg-soft); }
.field label.req::after { content: " *"; color: var(--gold); }
.field select:invalid { color: var(--text-dim); }
.field select:invalid option:not([value=""]) { color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 12.5px; color: var(--text-dim); line-height: 1.6; margin: 0; }
.form-status { margin: 0; padding: 12px 14px; border-radius: 8px; font-size: 14px; line-height: 1.6; border: 1px solid var(--line); }
.form-status.ok { color: #bfe7ff; background: rgba(70,160,255,.12); border-color: rgba(100,180,255,.45); }
.form-status.err { color: #ffd9c9; background: rgba(255,120,80,.10); border-color: rgba(255,140,100,.45); }
.form-status[hidden] { display: none; }
.contact-form button[disabled] { opacity: .65; cursor: progress; }

/* ---------- footer ---------- */
.site-footer { padding: 64px 0 26px; background: rgba(15, 26, 44, .86); border-top: 1px solid var(--line-gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; margin-bottom: 48px; }
.footer-about p { color: var(--text-dim); font-size: 14.5px; margin: 16px 0 20px; max-width: 320px; }
.footer-legal { font-size: 13.5px; color: var(--text-dim); line-height: 1.9; }
.footer-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .16em; margin: 0 0 18px; color: var(--gold-light); font-weight: 500; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--text-dim); font-size: 14.5px; transition: color .2s; }
.footer-col a:hover { color: var(--gold-light); }
.social-row { display: flex; gap: 10px; }
.social-row a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 12px; color: var(--text-dim); transition: all .25s var(--ease); }
.social-row a:hover { border-color: var(--gold); color: var(--on-gold); background: var(--gold); transform: translateY(-3px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; letter-spacing: .06em; color: var(--text-dim); flex-wrap: wrap; gap: 12px; }

/* ---------- floating ---------- */
.float-contacts { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.float-contacts a {
  width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(28,46,74,.9); border: 1px solid var(--line-gold); color: var(--gold-light);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 8px 22px rgba(7,14,26,.5); font-size: 11px; font-weight: 700;
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.float-contacts a svg { width: 20px; height: 20px; }
.float-contacts a:hover { transform: scale(1.1); background: var(--gold); color: var(--on-gold); }
.back-top {
  position: fixed; left: 18px; bottom: 18px; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(28,46,74,.9); border: 1px solid var(--line-gold); color: var(--gold-light); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease), background .2s, color .2s;
}
.back-top svg { width: 18px; height: 18px; }
.back-top.show { opacity: 1; transform: none; pointer-events: auto; }
.back-top:hover { background: var(--gold); color: var(--on-gold); }

/* ---------- reveal (chỉ ẩn khi JS chạy) ---------- */
html.js .reveal:not(.in) { opacity: 0; transform: translateY(26px); }
.reveal.in { animation: revealUp .85s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes revealUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hud { display: none; }
}
@media (max-width: 980px) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links, .header-actions .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .nav-drawer {
    position: fixed; inset: 0; z-index: 99; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
    background: rgba(15,26,44,.98); font-size: 24px; font-weight: 600;
    transform: translateY(-100%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s;
  }
  .nav-drawer.open { transform: none; visibility: visible; }
  .nav-drawer a { color: var(--text); padding: 6px 12px; }
  .nav-drawer a:hover { color: var(--gold-light); }

  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .orbit { max-width: 400px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
  .process-line { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .header-actions { display: none; }
}
@media (max-width: 720px) {
  .pf-grid { grid-template-columns: 1fr; }
  .partner { width: 150px; height: 72px; margin-right: 14px; } .partner img { max-width: 100px; max-height: 38px; }
  .section { padding: 76px 0; }
  .hero { padding: 104px 0 120px; }
  .hero h1 { font-size: 30px; }
  .hero-sub { font-size: 16px; margin-bottom: 28px; }
  .scroll-cue { display: none; }
  .service-grid, .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stat b { font-size: 24px; }
  .stat-row { gap: 12px; }
  .cursor-glow { display: none; }
}

/* ---------- giảm chuyển động ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html.js .reveal:not(.in) { opacity: 1; transform: none; }
  .hero h1 .line > span, .hero-sub, .hero-cta, .hud { animation: none; }
  .process-line i { transform: scaleX(1); }
  .cursor-glow { display: none; }
}
