/* =========================================================
   The Liner Vietnam – Homepage
   Design tokens
   ========================================================= */
:root {
  --navy-900: #0A2342;
  --navy-800: #0F2F57;
  --blue-700: #17487F;
  --blue-500: #2C6DB5;
  --blue-100: #E7EEF7;
  --teal: #1F8A8A;
  --orange: #F89821;      /* brand orange from logo */
  --orange-600: #E07F05;
  --amber: #FFC247;
  --surface: #F3F6FA;
  --white: #FFFFFF;
  --ink: #1B2A3B;
  --muted: #5A6A7D;
  --line: #DCE3EC;

  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type scale (1.25 ratio) */
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  --fs-hero: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;
  --shadow: 0 18px 40px -18px rgba(10, 35, 66, .28);
  --header-h: 76px;
  --stats-overlap: 96px;
  --container: 1200px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; flex-shrink: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--orange); color: var(--navy-900); padding: .6rem 1rem; border-radius: var(--radius-s); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.4rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: var(--fs-base); line-height: 1.2; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .55rem 1.1rem; font-size: var(--fs-sm); }
.btn-lg { padding: .95rem 1.8rem; font-size: var(--fs-md); }
.btn-block { width: 100%; }
.btn-accent { background: var(--orange); color: var(--navy-900); }
.btn-accent:hover { background: var(--amber); }
.btn-primary { background: var(--navy-900); color: var(--white); }
.btn-primary:hover { background: var(--blue-700); }
.btn-ghost-light { border-color: rgba(255,255,255,.45); color: var(--white); }
.btn-ghost-light:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-outline { border-color: var(--navy-900); color: var(--navy-900); }
.btn-outline:hover { background: var(--navy-900); color: var(--white); }

.link {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--blue-700);
}
.link svg { transition: transform .2s; }
.link:hover svg { transform: translateX(4px); }
.link:hover { color: var(--orange-600); }

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(4rem, 3rem + 4vw, 7rem); }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head h2 { font-size: var(--fs-xl); font-weight: 700; color: var(--navy-900); }
.section-head p { margin-top: .9rem; color: var(--muted); font-size: var(--fs-md); max-width: 62ch; }
.section-head.split {
  max-width: none; display: grid; grid-template-columns: 5fr 6fr; gap: 2rem 4rem; align-items: end;
}
.section-head.split p { margin-top: 0; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -16px rgba(10,35,66,.35); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 2rem; padding-inline: clamp(1rem, 3vw, 3rem); }

.brand { display: inline-flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand img { width: 36px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.08rem; font-weight: 800; color: var(--navy-900); letter-spacing: -.01em; }
.brand-text small { font-size: .72rem; color: var(--muted); font-weight: 500; }
.brand-light .brand-text strong { color: var(--white); }
.brand-light .brand-text small { color: rgba(255,255,255,.65); }

.main-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: .25rem; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list > li > a {
  padding: .6rem .8rem; font-weight: 500; font-size: .95rem; color: var(--ink); border-radius: var(--radius-s);
  transition: color .2s;
}
.nav-list > li > a:hover, .nav-list > li > a.is-current { color: var(--blue-700); }
.nav-list > li > a.is-current { box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.dd-toggle {
  border: 0; background: none; padding: .3rem; margin-left: -.55rem; color: var(--muted);
  display: inline-flex; border-radius: 4px;
}
.dd-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
  box-shadow: var(--shadow); padding: .5rem;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.dropdown::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.dropdown a { display: block; padding: .55rem .75rem; border-radius: var(--radius-s); font-size: .92rem; }
.dropdown a:hover { background: var(--surface); color: var(--blue-700); }
.dropdown .dd-all { color: var(--orange-600); font-weight: 600; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-s) var(--radius-s); margin-top: .3rem; }
@media (hover: hover) and (min-width: 1081px) {
  .has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
  .has-dropdown:hover .dd-toggle svg { transform: rotate(180deg); }
}
.has-dropdown.is-open .dropdown { opacity: 1; visibility: visible; transform: none; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-phone { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--navy-900); font-size: .95rem; }
.header-phone svg { color: var(--orange-600); }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; position: relative; border-radius: var(--radius-s); }
.nav-toggle span { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--navy-900); transition: transform .25s, opacity .2s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   HERO – full viewport
   ========================================================= */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy-900); color: var(--white);
  min-height: clamp(640px, calc(100svh - var(--header-h) - 40px), 980px);
  display: flex; align-items: center;
  padding: 3rem 0 calc(var(--stats-overlap) + 2.5rem);
}
.hero-inner { width: 100%; max-width: 1680px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 5rem); }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; animation: kenburns 22s ease-out both; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(circle at 74% 48%, rgba(248,152,33,.28), rgba(248,152,33,0) 32%),
    linear-gradient(90deg, rgba(10,35,66,.97) 0%, rgba(10,35,66,.9) 38%, rgba(10,35,66,.62) 70%, rgba(10,35,66,.78) 100%);
}
.hero-bg::after {
  /* faint hexagon echoing the logo */
  content: ""; position: absolute; z-index: 1; width: 560px; aspect-ratio: 1 / 1.1; left: -180px; bottom: -240px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(160deg, rgba(248,152,33,.18), rgba(248,152,33,0) 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .35rem .9rem .35rem .35rem; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  font-size: var(--fs-sm); font-weight: 500; color: rgba(255,255,255,.92);
  animation: rise .7s .1s cubic-bezier(.2,.8,.2,1) both;
}
.hero-badge-num { background: var(--orange); color: var(--navy-900); font-weight: 800; padding: .15rem .6rem; border-radius: 999px; }
.hero h1 {
  margin-top: 1.5rem; font-size: clamp(2.2rem, 1.1rem + 3.3vw, 4.1rem); font-weight: 800;
  letter-spacing: -.025em; line-height: 1.12; max-width: 16ch; text-wrap: balance;
  animation: rise .8s .2s cubic-bezier(.2,.8,.2,1) both;
}
.hero h1 .hl {
  color: var(--orange);
  background: linear-gradient(var(--orange), var(--orange)) no-repeat 0 96% / 0% .09em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  animation: hl-draw .9s 1s cubic-bezier(.6,0,.2,1) forwards;
}
.hero-en { margin-top: 1.25rem; font-size: var(--fs-md); color: rgba(255,255,255,.75); font-weight: 400; font-style: italic; max-width: 48ch; animation: rise .8s .35s cubic-bezier(.2,.8,.2,1) both; }
.hero-ctas { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: .9rem; animation: rise .8s .5s cubic-bezier(.2,.8,.2,1) both; }
.btn-pulse { position: relative; }
.btn-pulse::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--orange);
  animation: pulse 2.2s 1.8s ease-out 3; opacity: 0; pointer-events: none;
}

/* ISSM wheel – the signature element */
.issm { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.issm-stage {
  --wheel: clamp(340px, 40vw, 620px);
  position: relative; width: var(--wheel); aspect-ratio: 1; display: grid; place-items: center;
}
.issm-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; animation: spin 50s linear infinite; }
.issm-ring text { font-size: 8.6px; font-weight: 700; letter-spacing: .1em; fill: rgba(255,255,255,.78); }
.issm-wheel {
  position: relative; width: 82%; aspect-ratio: 1;
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px;
  filter: drop-shadow(0 30px 50px rgba(0,0,0,.35));
}
.issm-q {
  position: relative; border: 0; color: var(--white);
  background: var(--navy-800);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45rem;
  font-weight: 600; font-size: clamp(.8rem, .55rem + .45vw, 1.05rem); letter-spacing: .01em; white-space: nowrap;
  transition: background-color .3s, color .3s, box-shadow .3s;
  animation: q-in .7s cubic-bezier(.2,.8,.2,1) both;
  animation-delay: calc(.3s + var(--i) * .12s);
}
.issm-q .issm-ico { width: clamp(26px, 1.2rem + 1vw, 40px); height: clamp(26px, 1.2rem + 1vw, 40px); }
.q-process  { border-radius: 100% 0 0 0; padding: 14% 16% 0 0; }
.q-people   { border-radius: 0 100% 0 0; padding: 14% 0 0 16%; }
.q-comms    { border-radius: 0 0 0 100%; padding: 0 16% 14% 0; }
.q-platform { border-radius: 0 0 100% 0; padding: 0 0 14% 16%; }
.issm-q:hover { background: var(--blue-700); }
.issm-q.is-active { background: var(--orange); color: var(--navy-900); box-shadow: none; }
.issm-hub {
  position: absolute; inset: 50% auto auto 50%; translate: -50% -50%;
  width: 36%; aspect-ratio: 1; border-radius: 50%;
  background: var(--white); color: var(--navy-900);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  box-shadow: 0 0 0 10px var(--navy-900), 0 20px 50px rgba(0,0,0,.35);
  animation: hub-in .6s cubic-bezier(.2,.8,.2,1) both;
}
.issm-hub strong { font-size: clamp(1.4rem, .8rem + 1.6vw, 2.4rem); font-weight: 800; letter-spacing: .02em; line-height: 1; }
.issm-hub small { margin-top: .35rem; font-size: clamp(.6rem, .5rem + .2vw, .75rem); line-height: 1.3; color: var(--muted); font-weight: 500; }
.issm-caption { min-height: 3.2em; max-width: 44ch; text-align: center; color: rgba(255,255,255,.88); font-size: var(--fs-base); }
.issm-caption strong { color: var(--amber); }

@keyframes q-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes hub-in { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hl-draw { to { background-size: 100% .09em; } }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes pulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.18, 1.45); } }

/* =========================================================
   STATS (overlapping the hero edge)
   ========================================================= */
.stats-wrap { position: relative; z-index: 2; margin-top: calc(-1 * var(--stats-overlap)); }
.stats {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--white); border-radius: var(--radius-l); box-shadow: var(--shadow);
  padding: 2rem 1rem;
}
.stats li { padding: .5rem 1.25rem; display: grid; grid-template-columns: auto 1fr; column-gap: .9rem; align-items: center; }
.stats li + li { border-left: 1px solid var(--line); }
.stat-ico { grid-row: span 2; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--blue-100); color: var(--blue-700); }
.stat-num { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); font-weight: 800; color: var(--navy-900); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; }

/* =========================================================
   PILLARS
   ========================================================= */
.section-head.center { margin-inline: auto; text-align: center; max-width: 780px; }
.section-head.center p { margin-inline: auto; }
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.pillar {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 2.25rem 1.75rem 1.75rem; display: flex; flex-direction: column; align-items: flex-start; gap: .9rem;
  overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.pillar::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c); }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.pillar-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: var(--white); }
.pillar-ico svg { width: 28px; height: 28px; }
.pillar h3 { font-size: var(--fs-lg); font-weight: 700; color: var(--navy-900); display: flex; flex-direction: column; }
.pillar h3 small { font-size: var(--fs-sm); color: var(--muted); font-weight: 500; margin-top: .2rem; }
.pillar p { color: var(--muted); flex: 1; }
.pillar .link { font-size: var(--fs-sm); }

/* =========================================================
   SERVICES (tabs)
   ========================================================= */
.services { background: var(--surface); }
.tabs { display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem; align-items: start; }
.tab-list { display: flex; flex-direction: column; gap: .5rem; position: sticky; top: calc(var(--header-h) + 24px); }
.tab-list [role="tab"] {
  text-align: left; border: 1px solid var(--line); background: var(--white);
  padding: 1.1rem 1.25rem; border-radius: var(--radius-m);
  display: flex; flex-direction: column; gap: .15rem; position: relative;
  transition: border-color .2s, background-color .2s, color .2s;
}
.tab-name { font-weight: 700; font-size: var(--fs-md); color: var(--navy-900); }
.tab-count { font-size: var(--fs-sm); color: var(--muted); }
.tab-list [role="tab"]:hover { border-color: var(--blue-500); }
.tab-list [role="tab"][aria-selected="true"] { background: var(--navy-900); border-color: var(--navy-900); }
.tab-list [role="tab"][aria-selected="true"] .tab-name { color: var(--white); }
.tab-list [role="tab"][aria-selected="true"] .tab-count { color: var(--amber); }
.tab-list [role="tab"][aria-selected="true"]::after {
  content: ""; position: absolute; right: -9px; top: 50%; translate: 0 -50%;
  border: 9px solid transparent; border-right: 0; border-left-color: var(--navy-900);
}
.svc-list { display: grid; grid-template-columns: 1fr 1fr; background: var(--white); border-radius: var(--radius-l); border: 1px solid var(--line); overflow: hidden; }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-list li:nth-child(odd) { border-right: 1px solid var(--line); }
.svc-list a {
  display: flex; flex-direction: column; gap: .15rem; height: 100%;
  padding: 1.25rem 3rem 1.25rem 1.5rem; position: relative;
  transition: background-color .2s;
}
.svc-list a::after {
  content: ""; position: absolute; right: 1.4rem; top: 50%; width: 9px; height: 9px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor; rotate: 45deg; translate: 0 -50%;
  color: var(--line); transition: color .2s, right .2s;
}
.svc-list a:hover { background: var(--blue-100); }
.svc-list a:hover::after { color: var(--orange-600); right: 1.1rem; }
.svc-list strong { font-weight: 600; color: var(--navy-900); }
.svc-list span { font-size: var(--fs-sm); color: var(--muted); }
.tab-panel { animation: panel-in .3s ease both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* =========================================================
   ROADMAP (rising stairs)
   ========================================================= */
.stairs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: end; counter-reset: s; }
.step {
  --unit: 64px;
  position: relative; background: var(--blue-100); border-radius: var(--radius-m) var(--radius-m) 0 0;
  padding: 1.5rem 1.4rem 1.75rem;
  min-height: calc(190px + var(--h) * var(--unit));
  display: flex; flex-direction: column; justify-content: flex-end; gap: .6rem;
}
.step:nth-child(2) { background: #D3E1F1; }
.step:nth-child(3) { background: var(--blue-700); color: var(--white); }
.step-final { background: var(--orange) !important; color: var(--navy-900); }
.step-num {
  position: absolute; top: 1.25rem; left: 1.4rem;
  font-size: 3rem; font-weight: 800; line-height: 1; opacity: .9; color: var(--blue-700);
}
.step:nth-child(3) .step-num { color: var(--amber); }
.step-final .step-num { color: var(--navy-900); }
.step h3 { font-size: var(--fs-lg); font-weight: 700; }
.step p { font-size: .95rem; color: var(--muted); }
.step:nth-child(3) p { color: rgba(255,255,255,.8); }
.step-final p { color: var(--navy-800); }
.stairs::after { content: ""; grid-column: 1 / -1; height: 4px; background: var(--navy-900); border-radius: 2px; margin-top: -1rem; }
.roadmap-note { margin-top: 1.25rem; color: var(--muted); font-size: var(--fs-sm); }

/* =========================================================
   DIGITAL TIMELINE
   ========================================================= */
.digital { background: var(--surface); }
.timeline { position: relative; display: flex; flex-direction: column; gap: .75rem; }
.timeline::before { content: ""; position: absolute; left: 152px; top: 2rem; bottom: 2rem; width: 2px; background: var(--line); }
.tl-item {
  display: grid; grid-template-columns: 100px 1fr 380px; gap: 0 3.5rem; align-items: center;
  padding: 1.75rem 1.5rem; position: relative; border-radius: var(--radius-l);
  transition: background-color .3s, box-shadow .3s;
}
.tl-item::before {
  content: ""; position: absolute; left: 145px; top: 50%; width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--blue-700); translate: 0 -50%;
  transition: background-color .3s, border-color .3s, transform .3s;
}
.tl-item:last-child::before { border-color: var(--orange); background: var(--orange); }
.tl-year { font-size: 2rem; font-weight: 800; color: var(--blue-700); font-variant-numeric: tabular-nums; transition: color .3s; }
.tl-body { padding-left: 1.5rem; }
.tl-body h3 { font-size: var(--fs-lg); font-weight: 700; color: var(--navy-900); transition: color .3s; }
.tl-body p { margin: .5rem 0 1.1rem; color: var(--muted); max-width: 56ch; }
.tl-shot {
  width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: var(--white); border-radius: var(--radius-m);
  padding: .75rem; border: 1px solid var(--line); transition: transform .45s cubic-bezier(.2,.8,.2,1), border-color .3s;
}
.tl-item:hover { background: var(--white); box-shadow: var(--shadow); }
.tl-item:hover::before { background: var(--orange); border-color: var(--orange); transform: scale(1.35); }
.tl-item:hover .tl-body h3 { color: var(--blue-700); }
.tl-item:hover .tl-shot { transform: scale(1.05) rotate(-.6deg); border-color: transparent; }
.tl-item .btn-outline:hover { background: var(--orange); border-color: var(--orange); color: var(--navy-900); }

/* =========================================================
   CUSTOMERS & TESTIMONIALS
   ========================================================= */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line); padding-block: 1.5rem;
}
.marquee-track { display: flex; align-items: center; gap: clamp(3rem, 6vw, 6rem); width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track li { display: flex; align-items: center; height: 72px; }
.marquee-track img { height: 42px; width: auto; max-width: 180px; object-fit: contain; transition: transform .3s; }
.marquee-track li.sq img { height: 68px; }
.marquee-track li:hover img { transform: scale(1.06); }
@keyframes marquee { to { transform: translateX(-50%); } }

.testi-grid { margin-top: 3.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testi {
  margin: 0; padding: 2rem; border-radius: var(--radius-l); background: var(--white); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 1rem; position: relative;
  transition: transform .25s, box-shadow .25s;
}
.testi:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testi-quote { position: absolute; top: 1.5rem; right: 1.5rem; width: 40px; height: 40px; color: var(--blue-100); }
.stars { display: flex; gap: 2px; color: var(--orange); }
.stars svg { width: 18px; height: 18px; }
.testi blockquote { margin: 0; color: var(--ink); flex: 1; }
.testi figcaption { display: flex; align-items: center; gap: .8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.testi figcaption strong { display: block; color: var(--navy-900); }
.testi figcaption span:last-child { font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: var(--amber); font-weight: 700; font-size: .9rem; flex-shrink: 0; }

/* =========================================================
   NEWS – 3 full-image cards, text over image
   ========================================================= */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.news-card {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-l);
  aspect-ratio: 4 / 5; display: flex; align-items: flex-end; color: var(--white);
}
.news-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.news-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(10,35,66,0) 30%, rgba(10,35,66,.5) 55%, rgba(10,35,66,.92) 100%);
  transition: opacity .4s;
}
.news-card:hover img { transform: scale(1.07); }
.news-body { padding: 1.75rem; display: flex; flex-direction: column; gap: .65rem; }
.news-meta { display: flex; align-items: center; gap: .6rem; font-size: var(--fs-sm); color: rgba(255,255,255,.85); }
.tag { background: var(--orange); color: var(--navy-900); font-weight: 700; padding: .15rem .65rem; border-radius: 999px; font-size: .78rem; }
.news-card h3 { font-size: var(--fs-lg); font-weight: 700; line-height: 1.3; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.news-card h3 a:hover { color: var(--amber); }
.news-card p:last-child {
  color: rgba(255,255,255,.82); font-size: .95rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact { background: var(--orange); padding-block: clamp(4rem, 3rem + 4vw, 6.5rem); position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; width: 520px; aspect-ratio: 1 / 1.1; left: -160px; bottom: -200px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: rgba(255,255,255,.14);
}
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
.contact-info { color: var(--navy-900); }
.contact-info h2 { font-size: var(--fs-xl); font-weight: 800; max-width: 18ch; }
.contact-info > p { margin-top: 1rem; font-size: var(--fs-md); max-width: 44ch; color: var(--navy-800); }
.contact-hotline {
  margin-top: 2rem; display: inline-flex; align-items: center; gap: 1rem;
  background: var(--navy-900); color: var(--white); padding: .8rem 1.6rem .8rem .8rem; border-radius: 999px;
  transition: background-color .2s;
}
.contact-hotline:hover { background: var(--blue-700); }
.contact-hotline svg { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--orange); color: var(--navy-900); }
.contact-hotline span { display: flex; flex-direction: column; font-size: 1.35rem; font-weight: 800; line-height: 1.15; }
.contact-hotline small { font-size: .75rem; font-weight: 500; color: rgba(255,255,255,.7); }
.offices { margin-top: 2.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.offices h3 { display: flex; align-items: center; gap: .4rem; font-size: var(--fs-base); font-weight: 700; }
.offices p { margin-top: .4rem; font-size: .95rem; color: var(--navy-800); }

.form-card { background: var(--white); border-radius: var(--radius-l); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); box-shadow: 0 30px 60px -30px rgba(10,35,66,.45); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--navy-900); }
.field label span { color: var(--orange-600); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); width: 100%;
  padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); background: var(--white); box-shadow: 0 0 0 3px rgba(44,109,181,.18); }
.field.has-error input { border-color: #C9302C; background: #FFF6F5; }
.error { font-size: .8rem; color: #B42318; min-height: 0; }
.form-note { margin-top: .9rem; font-size: .8rem; color: var(--muted); text-align: center; }
.form-note a { color: var(--blue-700); text-decoration: underline; }
.form-success { text-align: center; padding: 2rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .8rem; }
.form-success:focus { outline: none; }
.success-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #E5F5EC; color: #1A7F4B; }
.success-ico svg { width: 30px; height: 30px; }
.form-success h3 { font-size: var(--fs-lg); color: var(--navy-900); }
.form-success p { color: var(--muted); max-width: 36ch; margin-bottom: .5rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.75); font-size: .95rem; padding-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.3fr 1fr .8fr; gap: 2.5rem; padding-bottom: 3rem; }
.company-vi { margin-top: 1.25rem; color: var(--white); font-weight: 600; }
.company-en { margin-top: .25rem; font-size: var(--fs-sm); }
.footer-h { font-size: var(--fs-base); color: var(--white); font-weight: 700; margin-bottom: 1rem; }
.site-footer p + p { margin-top: .6rem; }
.site-footer a:hover { color: var(--amber); }
.footer-links li + li { margin-top: .5rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.4rem; font-size: var(--fs-sm); }
.social { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.social:hover { background: var(--orange); color: var(--navy-900) !important; }

/* ---------- Floating contact ---------- */
.float-contact { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.fc {
  width: 50px; height: 50px; border-radius: 50%; border: 0; display: grid; place-items: center;
  color: var(--white); box-shadow: 0 8px 20px -6px rgba(10,35,66,.45); transition: transform .2s;
}
.fc:hover { transform: scale(1.08); }
.fc svg { width: 22px; height: 22px; }
.fc-zalo { background: #0068FF; overflow: hidden; }
.fc-zalo img { width: 80%; height: 80%; object-fit: contain; }
.fc-msg { background: var(--white); }
.fc-msg img { width: 60%; height: 60%; }
.fc-phone { background: #1FAF38; color: var(--white); position: relative; }
.fc-phone svg { width: 24px; height: 24px; animation: ring 2.4s ease-in-out infinite; }
.fc-phone::before, .fc-phone::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #1FAF38; z-index: -1;
  animation: ripple 2.4s ease-out infinite;
}
.fc-phone::after { animation-delay: .8s; }
@keyframes ripple { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes ring { 0%, 50%, 100% { transform: rotate(0); } 5%, 15%, 25% { transform: rotate(-18deg); } 10%, 20%, 30% { transform: rotate(18deg); } }
.fc-top { background: var(--navy-900); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s, transform .2s; }
.fc-top.is-visible { opacity: 1; visibility: visible; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1280px) {
  .header-phone { display: none; }
  .tl-item { grid-template-columns: 90px 1fr 300px; gap: 0 2.5rem; }
  .timeline::before { left: 134px; }
  .tl-item::before { left: 127px; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
  .header-actions { margin-left: auto; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--white);
    padding: 1rem 1.25rem 2rem; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
  }
  .main-nav.is-open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-list > li > a { flex: 1; padding: 1rem .25rem; font-size: 1.05rem; }
  .nav-list > li > a.is-current { box-shadow: none; color: var(--orange-600); }
  .dd-toggle { margin: 0; padding: .8rem; }
  .dropdown {
    position: static; width: 100%; min-width: 0; box-shadow: none; border: 0; padding: 0 0 .75rem .5rem;
    display: none; opacity: 1; visibility: visible; transform: none;
  }
  .has-dropdown.is-open .dropdown { display: block; }
  .has-dropdown.is-open .dd-toggle svg { transform: rotate(180deg); }
  .nav-cta-mobile { display: flex; margin-top: 1.5rem; width: 100%; }
  body.nav-locked { overflow: hidden; }

  .hero { min-height: 0; padding-top: 3.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero h1 { max-width: 20ch; }
  .issm-stage { --wheel: min(560px, 88vw); }
  .stats { grid-template-columns: repeat(6, 1fr); row-gap: 1.5rem; }
  .stats li { grid-column: span 2; }
  .stats li:nth-child(n+4) { grid-column: span 3; }
  .stats li + li { border-left: 0; }
  .stats li:nth-child(2), .stats li:nth-child(3), .stats li:nth-child(5) { border-left: 1px solid var(--line); }
  .section-head.split { grid-template-columns: 1fr; }
  .pillar-grid { grid-template-columns: 1fr 1fr; }
  .tabs { grid-template-columns: 1fr; gap: 1.25rem; }
  .tab-list { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .tab-list [role="tab"] { flex: 1 0 auto; }
  .tab-list [role="tab"][aria-selected="true"]::after { display: none; }
  .tl-item { grid-template-columns: 1fr 260px; padding-left: 2rem; }
  .tl-year { grid-column: 1 / -1; padding-left: 1.5rem; font-size: 1.6rem; }
  .timeline::before { left: 1rem; }
  .tl-item::before { top: 2.75rem; left: calc(1rem - 7px); translate: 0 0; }
  .testi-grid { grid-template-columns: 1fr; max-width: 640px; }
  .news-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(280px, 42%);
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem; scrollbar-width: thin;
  }
  .news-card { scroll-snap-align: start; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  :root { --header-h: 66px; --stats-overlap: 70px; }
  .brand-text small { display: none; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .issm-ring text { font-size: 8px; }
  .stats { grid-template-columns: 1fr 1fr; padding: 1.25rem .5rem; }
  .stats li, .stats li:nth-child(n+4) { grid-column: auto; padding: .5rem .75rem; }
  .stats li:nth-child(n) { border-left: 0; }
  .stats li:last-child { grid-column: 1 / -1; }
  .stat-ico { width: 36px; height: 36px; padding: 8px; }
  .pillar-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .svc-list { grid-template-columns: 1fr; }
  .svc-list li:nth-child(odd) { border-right: 0; }
  .tab-list [role="tab"] { padding: .8rem 1rem; }
  .tab-name { font-size: var(--fs-base); }
  .stairs { grid-template-columns: 1fr; gap: .6rem; }
  .stairs::after { display: none; }
  .step { min-height: 0; border-radius: var(--radius-m); padding: 1.25rem 1.25rem 1.25rem 5rem; width: calc(70% + var(--h) * 7.5%); }
  .step-num { top: 50%; translate: 0 -50%; font-size: 2.4rem; left: 1.25rem; }
  .tl-item { grid-template-columns: 1fr; gap: 1rem; padding: 1.25rem 1rem 1.25rem 2rem; }
  .tl-shot { margin-left: 1.5rem; width: calc(100% - 1.5rem); }
  .news-grid { grid-auto-columns: 82%; }
  .form-row, .offices { grid-template-columns: 1fr; gap: 0; }
  .offices { gap: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .float-contact { right: 12px; bottom: 12px; }
  .fc { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .issm-ring, .marquee-track { animation: none !important; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; row-gap: 1rem; }
  .marquee-track li[aria-hidden="true"] { display: none; }
}
