/* ==========================================================
   David Dinh Studio — Cinematic AI portfolio (rework v2)
   Palette 60/30/10: night blue / night green / dark red
   Fonts: Saira Condensed (display) · Be Vietnam Pro (body) · Chakra Petch (HUD)
   ========================================================== */

:root {
  /* 60% — night blue */
  --void: #070D1A;
  --night: #0C1730;
  --surface: #13213F;
  --line: #22355E;
  /* 30% — night green */
  --moss: #0A2219;
  --forest: #12402F;
  --emerald: #1F6B4E;
  --signal: #5FC79A;
  /* 10% — dark red */
  --oxblood: #3A0A0F;
  --crimson: #8E1B24;
  --hover: #B3242E;
  --red-text: #E2434E;

  --text: #E8ECF3;
  --muted: #A9B4CA;

  --display: "Saira Condensed", "Be Vietnam Pro", sans-serif;
  --sans: "Be Vietnam Pro", system-ui, sans-serif;
  --hud: "Chakra Petch", ui-monospace, monospace;

  --gutter: clamp(16px, 5vw, 72px);
  --radius: 18px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --dock-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  background: var(--void);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--dock-h);
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img, video { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--crimson); color: #fff; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

/* ---------- Type helpers ---------- */
/* 1.06 leaves room above for stacked Vietnamese marks (Ẩ, Ộ, Ữ…) so they never touch the line above */
.disp { font-family: var(--display); font-weight: 800; text-transform: uppercase; line-height: 1.06; letter-spacing: .005em; }
.red { color: var(--red-text); }
.hud { font-family: var(--hud); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--signal); }
.hud--red { color: var(--red-text); }
.rec { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red-text); box-shadow: 0 0 12px var(--red-text); margin-right: 8px; vertical-align: 1px; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 500; font-size: 15px; line-height: 1;
  padding: 16px 26px; border-radius: 999px;
  transition: background .3s, border-color .3s, transform .3s var(--ease), box-shadow .3s;
  white-space: nowrap;
}
.btn::after { /* light sweep */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn--red { background: var(--crimson); color: #FFF1F1; box-shadow: 0 0 0 1px var(--hover), 0 12px 40px -12px rgba(179, 36, 46, .8); }
.btn--red:hover { background: var(--hover); }
.btn--ghost { border: 1px solid var(--line); background: rgba(19, 33, 63, .55); color: var(--text); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--ghost:hover { border-color: var(--signal); box-shadow: 0 0 24px -6px rgba(95, 199, 154, .6); }
.btn--sm { padding: 12px 20px; font-size: 14px; }
.btn__play { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }

/* ---------- Global FX ---------- */
.fx-grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-5%,3%); } 40% { transform: translate(4%,-6%); } 60% { transform: translate(-3%,7%); } 80% { transform: translate(6%,2%); } }
.fx-scan { position: absolute; inset: 0; pointer-events: none; z-index: 1; background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px); }
.fx-spot {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgba(31, 107, 78, .16), transparent 60%);
}

/* ---------- Custom cursor (desktop) ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none;
  width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
  border: 1.5px solid var(--signal);
  display: grid; place-items: center;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s, border-color .35s, opacity .3s;
  opacity: 0;
}
.cursor.is-on { opacity: 1; }
.cursor__label { font-family: var(--hud); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #FFF1F1; opacity: 0; transition: opacity .2s; }
.cursor.is-link { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: rgba(95, 199, 154, .12); }
.cursor.is-hover { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--crimson); border-color: var(--hover); }
.cursor.is-hover .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor, .fx-spot { display: none; } }

/* ---------- Intro leader ---------- */
.leader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; align-content: center; gap: 22px;
  background: var(--void); overflow: hidden;
  transition: opacity .8s var(--ease), visibility .8s, clip-path 1s var(--ease);
  clip-path: inset(0 0 0 0);
}
.leader.is-done { opacity: 0; visibility: hidden; clip-path: inset(50% 0 50% 0); }
.leader__grid {
  position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 65%);
}
.leader__ring { position: relative; width: 92px; height: 92px; display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 44px; color: var(--signal); }
.leader__ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.leader__ring circle { fill: none; stroke: var(--signal); stroke-width: 2; stroke-dasharray: 340; stroke-dashoffset: 340; animation: ring .55s linear infinite; filter: drop-shadow(0 0 6px var(--signal)); }
@keyframes ring { to { stroke-dashoffset: 0; } }
.leader__logo {
  position: relative; width: min(58vw, 300px); height: auto;
  mask-image: radial-gradient(circle at 50% 50%, #000 55%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 55%, transparent 72%);
  animation: logoIn 1.4s var(--ease) both;
}
@keyframes logoIn { from { opacity: 0; transform: scale(1.08); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
.leader__hud { position: relative; font-family: var(--hud); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.leader__scan { position: absolute; left: 0; right: 0; height: 120px; background: linear-gradient(180deg, transparent, rgba(95, 199, 154, .12), transparent); animation: scanY 1.6s linear infinite; }
@keyframes scanY { from { top: -120px; } to { top: 100%; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  transition: background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
/* blur lives on a pseudo-element: backdrop-filter on .nav itself would trap the fixed mobile menu inside the header bar */
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(7, 13, 26, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transition: opacity .4s; }
.nav.is-scrolled::before { opacity: 1; }
.nav.is-scrolled { padding-top: 12px; padding-bottom: 12px; border-color: rgba(34, 53, 94, .6); }
/* Logo: quiet luxury lockup — round mark with hairline ring and a slow glass glint,
   hairline divider, wide-tracked wordmark that settles in once on load */
.nav__logo { display: flex; align-items: center; gap: 12px; text-transform: uppercase; }
.logo-mark {
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(232,236,243,.22), 0 0 0 4px rgba(7,13,26,.6), 0 8px 24px -8px rgba(0,0,0,.8);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.logo-mark img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 55% 45%;
  transform: scale(1.06); transition: transform 1.2s var(--ease), filter .8s;
}
.logo-mark::after { /* slow glass glint */
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.38) 50%, transparent 62%);
  transform: translateX(-130%); animation: glint 8s var(--ease) infinite 2.2s;
}
@keyframes glint { 0% { transform: translateX(-130%); } 16%, 100% { transform: translateX(130%); } }
.logo-word { display: flex; flex-direction: column; justify-content: center; line-height: 1; white-space: nowrap; padding-left: 16px; border-left: 1px solid rgba(232,236,243,.16); }
.logo-name { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: .16em; color: #EEF1F6; animation: settle 1.6s var(--ease) both .2s; }
.logo-sub { display: flex; align-items: center; margin-top: 6px; font-family: var(--hud); font-weight: 400; font-size: 9.5px; letter-spacing: .46em; color: #8E9AB3; transition: color .5s; animation: settle 1.6s var(--ease) both .4s; }
/* lens ring: two hairline arcs turning slowly in opposite directions, like a focus ring */
.logo-lens { position: relative; flex: none; width: 56px; height: 56px; display: grid; place-items: center; }
.logo-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.logo-ring circle { fill: none; stroke-linecap: round; transform-origin: 30px 30px; }
.ring-a { stroke: rgba(232,236,243,.75); stroke-width: 1.3; stroke-dasharray: 40 136; animation: ringTurn 14s linear infinite; }
.ring-b { stroke: var(--signal); stroke-width: 1.6; stroke-dasharray: 14 162; opacity: .95; filter: drop-shadow(0 0 2px var(--signal)); animation: ringTurn 9s linear infinite reverse; }
@keyframes ringTurn { to { transform: rotate(360deg); } }
.logo-mark { animation: moonGlow 5s ease-in-out infinite; }
@keyframes moonGlow { 50% { box-shadow: 0 0 0 1px rgba(232,236,243,.3), 0 0 0 4px rgba(7,13,26,.6), 0 0 18px 1px rgba(110,160,255,.22); } }
/* name: a soft white glow pulse every few seconds (no background-clip on the parent:
   Chrome paints ghost glyphs when a clipped parent has filtered inline-block children) */
.logo-name {
  color: #EEF1F6;
  animation: settle 1.6s var(--ease) both .2s, gleam 9s var(--ease) infinite 3s;
}
@keyframes gleam { 0% { background-position: 100% 0; filter: drop-shadow(0 0 0 rgba(255,255,255,0)); } 12% { filter: drop-shadow(0 0 6px rgba(255,255,255,.35)); } 22%, 100% { background-position: -60% 0; filter: drop-shadow(0 0 0 rgba(255,255,255,0)); } }
/* A + I inside DAVID: highlighted in signal green, a soft AI "processing" glow and a brief
   chromatic glitch every few seconds — the brand literally contains "AI" */
.logo-name .ai {
  position: relative; display: inline-block; font-weight: inherit;
  color: var(--signal); -webkit-text-fill-color: var(--signal);
  background: linear-gradient(180deg, #B9F5DA 0%, var(--signal) 55%, #2E9C70 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(95,199,154,.55));
  animation: aiGlitch 6s steps(1, end) infinite 2.4s, aiGlow 3s ease-in-out infinite;
}
.logo-name .ai--i { animation-delay: 2.55s, 1.5s; }
.logo-name .ai::after { /* scan line passing over the letter */
  content: ""; position: absolute; left: -2px; right: -2px; height: 2px; top: 0;
  background: linear-gradient(90deg, transparent, rgba(185,245,218,.95), transparent);
  box-shadow: 0 0 6px var(--signal); opacity: 0;
  animation: aiScan 6s var(--ease) infinite 2.4s;
}
.logo-name .ai--i::after { animation-delay: 2.55s; }
@keyframes aiGlow { 50% { filter: drop-shadow(0 0 11px rgba(95,199,154,.9)); } }
@keyframes aiGlitch {
  0%, 86%, 100% { transform: none; text-shadow: none; }
  88% { transform: translateX(1.5px) skewX(-8deg); text-shadow: -2px 0 rgba(226,67,78,.95), 2px 0 rgba(120,220,255,.85); }
  90% { transform: translateX(-1px); text-shadow: 2px 0 rgba(226,67,78,.95), -2px 0 rgba(120,220,255,.85); }
  92% { transform: none; text-shadow: none; }
}
@keyframes aiScan { 0%, 80% { top: 0; opacity: 0; } 82% { opacity: 1; } 95% { top: 100%; opacity: 1; } 97%, 100% { top: 100%; opacity: 0; } }
.nav__logo:hover .logo-name .ai { filter: drop-shadow(0 0 12px rgba(95,199,154,1)); }
.logo-sub .ai-sub { font-weight: 600; color: var(--signal); }
.nav__logo:hover .logo-sub .ai-sub { color: var(--signal); text-shadow: 0 0 8px rgba(95,199,154,.7); }

.nav__logo { position: relative; isolation: isolate; }

/* tiny REC dot before the tagline */
.logo-rec { display: block; flex: none; width: 5px; height: 5px; border-radius: 50%; margin-right: 9px; background: var(--red-text); box-shadow: 0 0 8px var(--red-text); animation: recSoft 2.4s ease-in-out infinite; }
@keyframes recSoft { 50% { opacity: .25; box-shadow: 0 0 2px var(--red-text); } }
.nav__logo:hover .ring-a { animation-duration: 3s; }
.nav__logo:hover .ring-b { animation-duration: 2s; }
@keyframes settle { from { opacity: 0; letter-spacing: .5em; filter: blur(4px); } }
.nav__logo:hover .logo-mark { box-shadow: 0 0 0 1px rgba(232,236,243,.5), 0 0 0 4px rgba(7,13,26,.6), 0 10px 30px -8px rgba(95,199,154,.35); }
.nav__logo:hover .logo-mark img { transform: scale(1.14); }
.nav__logo:hover .logo-mark::after { animation: glint 1.1s var(--ease) 1; }
.nav__logo:hover .logo-sub { color: var(--text); }
.nav.is-scrolled .logo-lens { transform: scale(.88); }
.logo-lens { transition: transform .5s var(--ease); }
.nav__links { display: flex; align-items: center; gap: 30px; font-size: 15px; color: var(--muted); }
.nav__links > a:not(.btn) { position: relative; transition: color .3s; }
.nav__links > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); box-shadow: 0 0 8px var(--signal); }
.nav__links > a:not(.btn):hover, .nav__links > a.is-active { color: var(--text); }
.nav__links > a:not(.btn):hover::after, .nav__links > a.is-active::after { transform: scaleX(1); }
.nav__zalo { display: none !important; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(7, 13, 26, .6); place-items: center; }
.nav__toggle i, .nav__toggle i::before, .nav__toggle i::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.nav__toggle i { position: relative; }
.nav__toggle i::before, .nav__toggle i::after { content: ""; position: absolute; left: 0; }
.nav__toggle i::before { top: -6px; } .nav__toggle i::after { top: 6px; }
.nav.is-open .nav__toggle i { background: transparent; }
.nav.is-open .nav__toggle i::before { transform: translateY(6px) rotate(45deg); }
.nav.is-open .nav__toggle i::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
/* padding-top keeps the title clear of the nav + REC readout on short screens (the hero grows instead of overlapping) */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding-top: 150px; }
.hero__media { position: absolute; inset: -4% 0 0; z-index: -2; will-change: transform; }
.hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; filter: saturate(.85) brightness(.8); animation: heroIn 2.4s var(--ease) both; }
@keyframes heroIn { from { transform: scale(1.12); filter: saturate(.85) brightness(.2) blur(6px); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(7,13,26,.65) 0%, transparent 28%, rgba(7,13,26,.35) 55%, var(--void) 100%),
    linear-gradient(90deg, rgba(7,13,26,.88) 0%, rgba(7,13,26,.2) 65%),
    radial-gradient(700px 360px at 85% 75%, rgba(31,107,78,.35), transparent 70%);
}
.hero__frame { position: absolute; inset: 104px var(--gutter) 36px; z-index: 2; pointer-events: none; }
.corner { position: absolute; width: 24px; height: 24px; border: 0 solid var(--signal); opacity: .85; animation: cornerIn 1.2s var(--ease) both .6s; }
.corner--tl { top: 0; left: 0; border-width: 2px 0 0 2px; } .corner--tr { top: 0; right: 0; border-width: 2px 2px 0 0; }
.corner--bl { bottom: 0; left: 0; border-width: 0 0 2px 2px; } .corner--br { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
@keyframes cornerIn { from { opacity: 0; transform: scale(2.2); } }
.hero__hud { position: absolute; top: 14px; font-family: var(--hud); font-size: 12px; letter-spacing: .16em; color: var(--muted); }
.hero__hud--tl { left: 30px; } .hero__hud--tr { right: 30px; }
.hero__focus { position: absolute; right: 18%; top: 34%; width: 74px; height: 54px; border: 1px solid rgba(95, 199, 154, .7); animation: focus 4s var(--ease) infinite; }
.hero__focus::before, .hero__focus::after { content: ""; position: absolute; background: var(--signal); }
.hero__focus::before { left: 50%; top: -8px; bottom: -8px; width: 1px; opacity: .5; }
.hero__focus::after { top: 50%; left: -8px; right: -8px; height: 1px; opacity: .5; }
@keyframes focus { 0%, 100% { transform: translate(0,0) scale(1); } 30% { transform: translate(-30px, 18px) scale(.86); } 60% { transform: translate(14px, -10px) scale(1.06); } }

.hero__content { position: relative; z-index: 3; width: 100%; padding: 0 calc(var(--gutter) + 30px) clamp(80px, 12vh, 120px); }
.hero__title { font-size: clamp(56px, min(11vw, 17vh), 168px); margin: 16px 0 22px; }
.mask { display: block; overflow: hidden; padding-bottom: .04em; }
.mask > span { display: inline-block; transition: transform 1.2s var(--ease); }
.js .mask > span { transform: translateY(105%); }
.is-ready .mask > span { transform: none; }
.is-ready .mask:nth-child(2) > span { transition-delay: .12s; }
.hero__meta { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; font-family: var(--hud); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.hero__meta li { border-left: 2px solid var(--emerald); padding-left: 10px; }
.hero__lead { max-width: 560px; color: var(--muted); font-size: 17px; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll { position: absolute; z-index: 3; right: calc(var(--gutter) + 30px); bottom: 64px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--hud); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hero__scroll i { width: 1px; height: 54px; background: linear-gradient(var(--signal), transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: -1px; width: 3px; height: 14px; background: var(--signal); box-shadow: 0 0 8px var(--signal); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { from { top: -14px; } to { top: 54px; } }

/* ---------- Ticker ---------- */
.ticker { position: relative; z-index: 1; overflow: hidden; border-block: 1px solid var(--line); background: linear-gradient(90deg, var(--moss), var(--night) 50%, var(--moss)); padding: 16px 0; }
.ticker__track { display: flex; width: max-content; gap: 28px; padding-right: 28px; align-items: center; animation: ticker 32s linear infinite; font-family: var(--display); font-weight: 600; font-size: 24px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ticker__track b { color: var(--red-text); font-size: 12px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; z-index: 1; padding: clamp(80px, 11vw, 140px) var(--gutter) 0; }
.section__pad { padding-inline: var(--gutter); }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 44px); }
.head__title { font-size: clamp(46px, 6.4vw, 92px); margin-top: 14px; }
.head__lead { max-width: 380px; color: var(--muted); font-size: 15px; }

/* Reveal */
/* hidden-until-revealed only when JS runs, so the page never stays blank if a script fails */
[data-reveal] { transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(36px); }
html:not(.js) .leader { display: none; }
html:not(.js) body.is-loading { overflow: auto; }

/* ---------- Tiles (shared) ---------- */
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--night); border: 1px solid var(--line);
  cursor: pointer; isolation: isolate;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease), border-color .4s, box-shadow .4s;
}
.tile img, .tile video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .6s; }
.tile video { opacity: 0; }
.tile.is-playing video { opacity: 1; }
.tile:hover img, .tile:hover video { transform: scale(1.05); }
.tile__shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(7,13,26,.25) 0%, transparent 35%, rgba(7,13,26,.92) 100%); }
.tile__sweep { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.16) 48%, transparent 60%); transform: translateX(-120%); }
.tile:hover .tile__sweep { transform: translateX(120%); transition: transform 1.1s var(--ease); }
.tile:hover, .tile:focus-visible { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal), 0 0 60px -10px rgba(95, 199, 154, .55); }
.tile__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 22px; }
.tile__title { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1; text-transform: uppercase; margin-top: 8px; }
.tile__desc { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 520px; }
.tile__play { position: absolute; z-index: 3; top: 18px; right: 18px; width: 52px; height: 52px; border-radius: 50%; background: var(--crimson); display: grid; place-items: center; box-shadow: 0 0 30px rgba(179,36,46,.6); transform: scale(.8); opacity: 0; transition: .4s var(--ease); }
.tile__play::after { content: ""; margin-left: 4px; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.tile:hover .tile__play, .tile--main .tile__play { transform: none; opacity: 1; }
.tile__tc { position: absolute; z-index: 3; top: 18px; left: 18px; display: flex; gap: 8px; }
.tag { font-family: var(--hud); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(18, 64, 47, .85); color: #D5EEE1; border: 1px solid rgba(95,199,154,.3); }
.tile__prog { position: absolute; z-index: 3; left: 22px; right: 22px; bottom: 12px; height: 2px; background: rgba(255,255,255,.14); border-radius: 2px; overflow: hidden; }
.tile__prog i { display: block; height: 100%; width: 0; background: var(--signal); box-shadow: 0 0 10px var(--signal); }

/* Highlight layout */
.spot { display: grid; grid-template-columns: 1.65fr 1fr; gap: 18px; }
.spot__side { display: grid; gap: 18px; }
.tile--main { min-height: 540px; }
/* deeper shade so burned-in subtitles in the preview never fight the description text */
.tile--main .tile__shade { background: linear-gradient(180deg, rgba(7,13,26,.3) 0%, transparent 28%, rgba(7,13,26,.55) 58%, rgba(7,13,26,.94) 80%, rgba(7,13,26,.98) 100%); }
.tile--main .tile__title { font-size: clamp(40px, 4.4vw, 64px); }
.spot__side .tile { min-height: 261px; }

/* Works grid */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-size: 14px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); transition: .3s; }
.chip sup { font-family: var(--hud); font-size: 10px; margin-left: 4px; }
.chip:hover { color: var(--text); border-color: var(--emerald); }
.chip.is-on { background: var(--forest); border-color: var(--emerald); color: #D5EEE1; box-shadow: 0 0 20px -6px rgba(95,199,154,.5); }
.works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.works .tile { aspect-ratio: 4 / 5; }
.works .tile__title { font-size: 26px; }
.works .tile.is-hidden { display: none; }
.works__hint { display: none; }
.tile.pop { animation: pop .7s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.96); } }

/* ---------- Why ---------- */
.why { overflow: hidden; }
.why__glow { position: absolute; inset: 10% -10% auto; height: 70%; z-index: -1; background: radial-gradient(600px 300px at 20% 40%, rgba(31,107,78,.28), transparent 70%), radial-gradient(500px 260px at 85% 70%, rgba(142,27,36,.18), transparent 70%); }
.why__statement { font-size: clamp(24px, 3vw, 42px); line-height: 1.35; font-weight: 300; max-width: 1180px; margin: 18px 0 clamp(40px, 6vw, 70px); }
.why__statement b { font-weight: 600; color: var(--signal); }
.why__statement .hl { background: linear-gradient(transparent 62%, rgba(142,27,36,.55) 62%); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 44px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: linear-gradient(160deg, var(--night), var(--void)); position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 40%; background: var(--signal); box-shadow: 0 0 12px var(--signal); }
.stat__num { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 6vw, 84px); line-height: 1; }
.stat__num small { font-size: .4em; color: var(--signal); margin-left: 4px; font-weight: 600; }
.stat p { color: var(--muted); font-size: 14px; margin-top: 10px; }
.compare { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare__row { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; gap: 20px; padding: 18px 26px; border-top: 1px solid var(--line); font-size: 15px; }
.compare__row:first-child { border-top: 0; }
.compare__row > span:first-child { color: var(--muted); font-family: var(--hud); letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.compare__row > span:nth-child(2) { color: var(--muted); }
.compare__row > span:nth-child(3) { color: #D5EEE1; }
.compare__row--head { background: var(--night); font-family: var(--hud); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.compare__row--head > span:nth-child(3) { color: var(--signal); }
.footnote { color: var(--muted); font-size: 13px; margin-top: 14px; opacity: .8; }

/* ---------- Services ---------- */
.aud { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.aud__card { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 38px); background: linear-gradient(150deg, var(--night), var(--void)); }
.aud__card--alt { background: linear-gradient(150deg, var(--moss), var(--void)); border-color: rgba(31,107,78,.5); }
.aud__card h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; line-height: 1.3; margin: 12px 0 10px; }
.aud__card > p:not(.hud) { color: var(--muted); }
.aud__card ul, .pkg ul { list-style: none; margin-top: 18px; }
.aud__card li, .pkg li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.aud__card li::before, .pkg li::before { content: "▸ "; color: var(--signal); }
.pkgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pkg { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: linear-gradient(170deg, var(--night), var(--void)); transition: transform .5s var(--ease), border-color .4s, box-shadow .4s; }
.pkg:hover { transform: translateY(-6px); border-color: var(--emerald); }
.pkg h3 { font-size: 52px; margin: 6px 0 10px; }
.pkg__desc { color: var(--muted); font-size: 15px; }
.pkg ul { margin-bottom: 26px; flex: 1; }
.pkg--hot { border-color: var(--crimson); background: linear-gradient(170deg, #1b1430, var(--void)); box-shadow: 0 0 70px -24px rgba(179,36,46,.7); }
.pkg--hot:hover { border-color: var(--hover); }

/* ---------- Process (horizontal pinned on desktop) ---------- */
.process { position: relative; z-index: 1; margin-top: clamp(80px, 11vw, 140px); }
.process__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.process__bar { width: min(360px, 40vw); height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.process__bar i { display: block; height: 100%; width: 0; background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.process__track { list-style: none; display: flex; gap: 20px; padding-inline: var(--gutter); width: max-content; will-change: transform; }
.step {
  position: relative; width: clamp(300px, 30vw, 420px); min-height: 330px;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  background: linear-gradient(165deg, var(--night), var(--void));
  display: flex; flex-direction: column;
}
.step::before { /* film perforations */
  content: ""; position: absolute; left: 18px; right: 18px; top: 10px; height: 6px;
  background: radial-gradient(circle, var(--line) 2.5px, transparent 3px) 0 0 / 22px 6px repeat-x;
}
.step__no { font-family: var(--display); font-weight: 800; font-size: 96px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--emerald); margin-top: 8px; }
.step h3 { font-family: var(--display); font-weight: 700; font-size: 34px; text-transform: uppercase; margin: 14px 0 8px; }
.step p { color: var(--muted); flex: 1; }
.step__tc { font-family: var(--hud); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--signal); margin-top: 18px; }
.step.is-on { border-color: var(--emerald); box-shadow: 0 0 50px -16px rgba(95,199,154,.55); }
.step.is-on .step__no { color: var(--signal); -webkit-text-stroke: 0; text-shadow: 0 0 24px rgba(95,199,154,.5); }
.step--end { border-color: var(--crimson); }
.step--end .step__no { -webkit-text-stroke-color: var(--red-text); }

/* ---------- FAQ ---------- */
.faq { max-width: 980px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font-size: clamp(17px, 1.6vw, 20px); font-weight: 500; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--hud); font-size: 24px; color: var(--signal); transition: transform .4s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--red-text); }
.faq summary:hover { color: var(--signal); }
.faq details p { color: var(--muted); padding: 0 0 22px; max-width: 760px; }

/* ---------- Register ---------- */
.reg {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 5vw, 60px); align-items: center;
  border: 1px solid var(--line); border-radius: 28px;
  padding: clamp(26px, 5vw, 60px);
  background: radial-gradient(500px 300px at 0% 0%, rgba(31,107,78,.35), transparent 70%), linear-gradient(120deg, var(--moss), var(--night) 60%);
}
.reg > *:not(.fx-scan) { position: relative; z-index: 2; }
.reg__title { font-size: clamp(50px, 6vw, 86px); margin: 14px 0 18px; }
.reg__lead { color: var(--muted); font-size: 17px; max-width: 460px; }
.reg__info { list-style: none; margin-top: 28px; }
.reg__info li { display: flex; gap: 18px; padding: 12px 0; border-top: 1px solid rgba(34,53,94,.8); font-size: 15px; }
.reg__info li > span:first-child { width: 70px; flex: none; font-family: var(--hud); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.reg__info a:hover { color: var(--signal); }
.reg__socials { display: flex; flex-wrap: wrap; gap: 16px; }

.form { background: rgba(7,13,26,.72); border: 1px solid var(--line); border-radius: 22px; padding: clamp(22px, 3vw, 32px); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.form__steps { display: flex; gap: 10px; margin-bottom: 24px; }
.form__steps div { flex: 1; font-family: var(--hud); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.form__steps i { display: block; height: 3px; border-radius: 3px; background: var(--line); margin-bottom: 8px; position: relative; overflow: hidden; }
.form__steps i::after { content: ""; position: absolute; inset: 0; background: var(--signal); box-shadow: 0 0 8px var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.form__steps .is-on { color: var(--signal); }
.form__steps .is-on i::after { transform: scaleX(1); }
.form fieldset { border: 0; }
.form__pane { display: none; }
.form__pane.is-on { display: block; animation: paneIn .6s var(--ease) both; }
@keyframes paneIn { from { opacity: 0; transform: translateX(24px); } }
.form legend { font-size: 20px; font-weight: 500; margin-bottom: 18px; }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.opt { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 16px; font-size: 15px; background: rgba(12,23,48,.6); cursor: pointer; transition: .3s; }
.opt small { display: block; font-family: var(--hud); font-size: 11px; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt:hover { border-color: var(--emerald); }
.opt:has(input:checked) { border-color: var(--signal); background: rgba(31,107,78,.3); box-shadow: 0 0 24px -8px rgba(95,199,154,.6); }
.opt:has(input:checked) small { color: var(--signal); }
.opt:has(input:focus-visible) { outline: 2px solid var(--signal); outline-offset: 2px; }
.form label:not(.opt) { display: block; margin-bottom: 14px; }
.form label:not(.opt) > span { display: block; font-family: var(--hud); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.form input:not([type=radio]), .form select, .form textarea {
  width: 100%; background: var(--night); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; font-size: 16px; color: var(--text); transition: border-color .3s, box-shadow .3s; appearance: none; -webkit-appearance: none;
}
.form select { background-image: linear-gradient(45deg, transparent 50%, var(--signal) 50%), linear-gradient(135deg, var(--signal) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 3px rgba(95,199,154,.18); }
.form input.is-bad { border-color: var(--red-text); }
.form textarea { resize: vertical; min-height: 110px; }
.form ::placeholder { color: #66738f; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__err { color: var(--red-text); font-size: 14px; min-height: 1.2em; margin-top: 10px; }
.form__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.form__nav > div { display: flex; gap: 10px; margin-left: auto; }
.form__pkg { color: var(--muted); font-size: 14px; }
.form__pkg b { color: var(--text); font-weight: 500; }
.form__done { text-align: left; padding: 10px 0; animation: paneIn .6s var(--ease) both; }
.form__done h3 { font-size: 56px; margin: 8px 0 10px; color: var(--signal); }
.form__done p:not(.hud) { color: var(--muted); }
.form__done .form__alt { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; }
.form__alt a { color: var(--signal); font-weight: 500; }
.pkgs__note { margin-top: 22px; text-align: center; color: var(--muted); font-size: 15px; line-height: 1.6; }
.pkgs__note b { color: var(--text); font-weight: 500; }
.form .form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form label.form__consent { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.form label.form__consent > span { display: inline; font-family: inherit; font-size: inherit; letter-spacing: 0; text-transform: none; margin: 0; color: inherit; }
.form .form__consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; padding: 0; accent-color: var(--signal); cursor: pointer; }
.form__consent a { color: var(--signal); text-decoration: underline; text-underline-offset: 3px; }
.form__consent.is-bad { color: var(--red-text); }
#formNext[disabled] { opacity: .6; cursor: progress; }
.privacy { margin-top: 22px; color: var(--muted); font-size: 14px; }
.privacy summary { cursor: pointer; width: fit-content; color: var(--text); }
.privacy summary:hover { color: var(--signal); }
.privacy__body { max-width: 760px; padding-top: 12px; line-height: 1.6; }
.privacy__body p { margin-bottom: 8px; }
.privacy__body b { color: var(--text); font-weight: 500; }
.privacy__body a { color: var(--signal); }
.privacy__note { font-size: 13px; opacity: .8; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 1; padding: clamp(80px, 10vw, 130px) var(--gutter) 30px; overflow: hidden; }
.footer__big { font-size: min(12.2vw, 200px); line-height: .85; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px var(--line); }
.footer__big .red { color: transparent; -webkit-text-stroke-color: rgba(226,67,78,.55); }
.footer__row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer__row a:hover { color: var(--signal); }

/* ---------- Mobile dock ---------- */
.dock { display: none; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; padding: 20px; visibility: hidden; pointer-events: none; }
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4, 8, 16, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .4s; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__box { position: relative; width: min(1180px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--void); border: 1px solid var(--line); border-radius: 22px; opacity: 0; transform: translateY(30px) scale(.97); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.modal.is-open .modal__box { opacity: 1; transform: none; }
.modal__close { position: absolute; z-index: 3; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; background: rgba(7,13,26,.8); border: 1px solid var(--line); font-size: 16px; }
.modal__close:hover { border-color: var(--red-text); color: var(--red-text); }
.modal__media { background: #000; display: grid; place-items: center; }
.modal__media video, .modal__media iframe { width: 100%; max-height: 72vh; aspect-ratio: var(--ar, 16/9); object-fit: contain; border: 0; background: #000; }
.modal__info { display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 24px; align-items: center; padding: 24px 28px; }
.modal__title { font-size: clamp(30px, 3vw, 44px); margin-top: 6px; }
.modal__desc { color: var(--muted); font-size: 15px; }

/* ==========================================================
   Tablet & phone
   ========================================================== */
@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .nav__links { gap: 20px; font-size: 14px; }
  .logo-name { font-size: 21px; }
  .works { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .modal__info { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 900px) {
  :root { --dock-h: 84px; --radius: 16px; }
  .nav { padding-block: 14px; }
  .nav__toggle { display: grid; position: relative; z-index: 2; }
  .nav__logo { position: relative; z-index: 2; gap: 11px; }
  .logo-lens { width: 48px; height: 48px; }
  .logo-mark { width: 36px; height: 36px; }
  .logo-word { padding-left: 12px; }
  .logo-name { font-size: 18px; letter-spacing: .12em; }
  .logo-sub { font-size: 8.5px; letter-spacing: .36em; margin-top: 5px; }
  .nav.is-open { border-color: transparent; }
  .nav.is-open::before { opacity: 0; }
  .menu-open .dock { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .nav__links {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
    padding: 90px var(--gutter) 40px;
    background: rgba(7, 13, 26, .97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    clip-path: circle(0 at calc(100% - 40px) 36px); transition: clip-path .7s var(--ease);
  }
  .nav.is-open .nav__links { clip-path: circle(150% at calc(100% - 40px) 36px); }
  .nav__links > a:not(.btn) { font-family: var(--display); font-weight: 700; font-size: 44px; text-transform: uppercase; color: var(--text); line-height: 1.2; }
  .nav__links > a:not(.btn)::after { display: none; }
  .nav__links .btn { margin-top: 24px; width: 100%; padding: 18px; font-size: 16px; }
  .nav__links .nav__zalo { display: inline-flex !important; margin-top: 4px; color: #D5EEE1; border-color: var(--emerald); background: rgba(18, 64, 47, .55); }

  .hero__frame { inset: 84px 14px 24px; }
  .hero__hud { font-size: 10px; top: 10px; } .hero__hud--tl { left: 18px; } .hero__hud--tr { display: none; }
  .hero__focus { right: 12%; top: 22%; }
  .hero { padding-top: 124px; }
  .hero__title { font-size: clamp(62px, 11vw, 168px); }
  .hero__content { padding: 0 calc(var(--gutter) + 10px) calc(56px + var(--dock-h)); }
  .hero__title { margin: 12px 0 18px; }
  .hero__lead { font-size: 15px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__actions .btn--ghost { display: none; }
  .hero__scroll { display: none; }
  .ticker__track { font-size: 18px; }

  .spot { grid-template-columns: 1fr; }
  .tile--main { min-height: 0; aspect-ratio: 4 / 5; }
  .tile--main .tile__shade { background: linear-gradient(180deg, rgba(7,13,26,.3) 0%, transparent 22%, rgba(7,13,26,.7) 48%, rgba(7,13,26,.97) 66%, var(--void) 100%); }
  .spot__side { grid-template-columns: 1fr 1fr; gap: 12px; }
  .spot__side .tile { min-height: 0; aspect-ratio: 3 / 4; }
  .spot__side .tile__title { font-size: 22px; }
  .spot__side .tile__body { padding: 14px; }
  .spot__side .tile__desc, .spot__side .tile__tc { display: none; }

  /* Works = horizontal reels */
  .works {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px;
    scrollbar-width: none;
  }
  .works::-webkit-scrollbar { display: none; }
  .works .tile { flex: 0 0 72vw; max-width: 340px; aspect-ratio: 9 / 14; scroll-snap-align: center; }
  .works__hint { display: block; font-family: var(--hud); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
  .tile__play { opacity: 1; transform: scale(.85); }
  .works .tile__play, .spot__side .tile__play { display: none; }
  .works .tile__tc .tag + .tag { display: none; }

  .stats { gap: 12px; }
  .stat { padding: 20px; }
  .compare__row { grid-template-columns: 1fr 1fr; padding: 14px 16px; gap: 6px 14px; font-size: 14px; }
  .compare__row > span:first-child { grid-column: 1 / -1; }
  .compare__row--head > span:first-child { display: none; }

  .aud, .pkgs { grid-template-columns: 1fr; }
  .pkg { padding: 26px; }

  .process { margin-top: 90px; height: auto !important; }
  .process__sticky { position: static; height: auto; overflow: visible; }
  .process__bar { display: none; }
  .process__track { flex-direction: column; width: auto; transform: none !important; gap: 12px; }
  .step { width: auto; min-height: 0; padding: 22px 22px 22px 96px; }
  .step::before { display: none; }
  .step__no { position: absolute; left: 20px; top: 20px; font-size: 56px; margin: 0; }
  .step h3 { font-size: 28px; margin-top: 0; }

  .reg { grid-template-columns: minmax(0, 1fr); border-radius: 22px; }
  .reg__info a { overflow-wrap: break-word; }
  .opts { grid-template-columns: 1fr 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .form__nav .btn { padding: 15px 20px; }

  .footer__big { font-size: 11.6vw; }
  .footer__row { flex-direction: column; }

  .dock {
    display: flex; gap: 8px; position: fixed; z-index: 120;
    left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 8px; border-radius: 20px;
    background: rgba(12, 23, 48, .88); border: 1px solid var(--line);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    transition: transform .5s var(--ease), opacity .4s;
  }
  .dock a { flex: 1; text-align: center; padding: 15px 0; border-radius: 14px; font-weight: 500; font-size: 15px; }
  .dock__zalo { background: var(--forest); color: #D5EEE1; }
  .dock__cta { flex: 2 !important; background: var(--crimson); color: #FFF1F1; box-shadow: 0 0 30px -8px rgba(179,36,46,.8); }
  .dock.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .is-loading .dock { transform: translateY(140%); }

  .modal { padding: 0; place-items: end center; }
  .modal__box { border-radius: 22px 22px 0 0; max-height: 92vh; max-height: 92dvh; }
  .modal__info { padding: 18px 20px 26px; }
  .modal__info .btn { width: 100%; }
}

@media (max-width: 420px) {
  .opts { grid-template-columns: 1fr; }
  .opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
  .opt small { margin: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
  .js .mask > span { transform: none; }
  .fx-grain { display: none; }
}

/* ==========================================================
   Highlight on phone/tablet: media keeps the film's 16:9 frame,
   text sits below it instead of covering the picture
   ========================================================== */
@media (max-width: 900px) {
  .spot { gap: 14px; }
  .spot__side { grid-template-columns: 1fr; gap: 14px; }
  .spot .tile { aspect-ratio: auto; min-height: 0; padding-top: 56.25%; background: var(--night); }
  .spot .tile img, .spot .tile video { bottom: auto; height: auto; aspect-ratio: 16 / 9; }
  .spot .tile .tile__shade,
  .spot .tile--main .tile__shade { bottom: auto; height: 0; padding-top: 56.25%; background: linear-gradient(180deg, rgba(7,13,26,.45) 0%, transparent 32%, transparent 70%, rgba(12,23,48,.9) 100%); }
  .spot .tile__sweep { bottom: auto; height: 0; padding-top: 56.25%; }
  .spot .tile__body, .spot__side .tile__body { position: relative; padding: 14px 16px 18px; }
  .spot .tile__title { font-size: 28px; margin-top: 6px; }
  .spot__side .tile__title { font-size: 24px; }
  .spot .tile__desc { margin-top: 6px; }
  .spot__side .tile__tc { display: flex; }
  .spot .tile__play { top: 14px; right: 14px; width: 44px; height: 44px; }
  .spot .tile__tc { top: 14px; left: 14px; }
  .spot .tile__prog { left: 0; right: 0; bottom: 0; border-radius: 0; }
}
@media (min-width: 601px) and (max-width: 900px) {
  .spot__side { grid-template-columns: 1fr 1fr; }
}

/* Works carousel on phone/tablet: same 16:9 picture + text-below cards.
   (A ::before spacer sets the picture height from the card's own width.) */
@media (max-width: 900px) {
  .works .tile { flex: 0 0 80vw; max-width: 380px; aspect-ratio: auto; background: var(--night); }
  .works .tile::before { content: ""; display: block; aspect-ratio: 16 / 9; }
  .works .tile img, .works .tile video,
  .works .tile .tile__shade, .works .tile .tile__sweep { bottom: auto; height: auto; aspect-ratio: 16 / 9; }
  .works .tile .tile__shade { background: linear-gradient(180deg, rgba(7,13,26,.45) 0%, transparent 32%, transparent 70%, rgba(12,23,48,.9) 100%); }
  .works .tile__body { position: relative; padding: 12px 14px 16px; }
  .works .tile__title { font-size: 22px; margin-top: 6px; }
  .works .tile__tc { top: 12px; left: 12px; }
  /* the vertical Tết film: show the whole frame centred in the 16:9 window (pillarbox) */
  .works .tile[data-slug="tet-dai-viet"] img,
  .works .tile[data-slug="tet-dai-viet"] video { object-fit: contain; background: #04070e; }
}

/* Phone held sideways: slimmer bottom bar so it doesn't eat a quarter of the screen */
@media (max-width: 900px) and (max-height: 500px) {
  :root { --dock-h: 64px; }
  .dock { padding: 6px; bottom: calc(8px + env(safe-area-inset-bottom)); }
  .dock a { padding: 10px 0; font-size: 14px; }
  .hero { padding-top: 124px; }
  .hero__title { font-size: clamp(48px, 16vh, 90px); }
}

/* ==========================================================
   Floating Zalo button: bottom-right, always reachable
   ========================================================== */
.zalo-fab {
  position: fixed; z-index: 110; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  transition: opacity .4s, transform .5s var(--ease);
}
.zalo-fab__btn {
  position: relative; width: 62px; height: 62px; border-radius: 50%; flex: none;
  display: grid; place-items: center; align-content: center; gap: 1px; color: #EAF8F1;
  background: radial-gradient(circle at 30% 25%, var(--emerald), var(--forest) 60%, var(--moss));
  box-shadow: 0 0 0 1px rgba(95,199,154,.45), 0 12px 30px -10px rgba(0,0,0,.8), 0 0 26px -6px rgba(95,199,154,.55);
  transition: transform .4s var(--ease), box-shadow .4s;
}
.zalo-fab__btn svg { display: block; width: 24px; height: 24px; margin-top: 2px; }
.zalo-fab__btn em { font-style: normal; font-family: var(--hud); font-size: 9.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; line-height: 1; }
.zalo-fab__btn::before { /* soft pulse ring */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(95,199,154,.7); animation: fabPulse 2.6s var(--ease) infinite;
}
@keyframes fabPulse { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
.zalo-fab__dot { position: absolute; top: 4px; right: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--red-text); box-shadow: 0 0 0 2px var(--void), 0 0 8px var(--red-text); animation: blink 1.6s steps(2) infinite; }
.zalo-fab__label {
  display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15;
  padding: 10px 16px; border-radius: 14px; white-space: nowrap;
  background: rgba(12,23,48,.92); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transform: translateX(10px); pointer-events: none; transition: opacity .35s, transform .45s var(--ease);
}
.zalo-fab__label b { font-weight: 600; font-size: 14px; color: var(--text); }
.zalo-fab__label small { font-family: var(--hud); font-size: 12px; letter-spacing: .08em; color: var(--signal); }
.zalo-fab:hover .zalo-fab__label, .zalo-fab:focus-visible .zalo-fab__label { opacity: 1; transform: none; }
.zalo-fab:hover .zalo-fab__btn { transform: translateY(-3px) scale(1.04); box-shadow: 0 0 0 1px var(--signal), 0 16px 34px -10px rgba(0,0,0,.8), 0 0 34px -4px rgba(95,199,154,.8); }
.is-loading .zalo-fab, .menu-open .zalo-fab { opacity: 0; pointer-events: none; transform: translateY(20px); }

/* Phone: the bottom bar already has Zalo, so the round button waits until that bar
   slides away (at the form), then takes over in the corner */
@media (max-width: 900px) {
  .zalo-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .zalo-fab__btn { width: 56px; height: 56px; }
  .zalo-fab__label { display: none; }
  .dock:not(.is-hidden) ~ .zalo-fab { opacity: 0; pointer-events: none; transform: translateY(20px); }
}
@media (prefers-reduced-motion: reduce) { .zalo-fab__btn::before { display: none; } }
/* leave room so the round button never sits on the footer's "Về đầu trang" link */
@media (min-width: 901px) { .footer { padding-bottom: 110px; } }
/* the hero's "Cuộn" indicator moves left so it doesn't sit under the round Zalo button */
@media (min-width: 901px) { .hero__scroll { right: calc(var(--gutter) + 120px); } }
