/* ===== Thịnh Trạch KHKT – Company site v2 ===== */
:root {
  --bg: #0b0c0f;
  --bg-2: #121419;
  --bg-3: #1b1e25;
  --line-d: rgba(255,255,255,.09);
  --paper: #f3f1ec;
  --paper-2: #e9e6df;
  --line: #d9d5cc;
  --ink: #0f1115;
  --text: #24272e;
  --muted: #6b6f78;
  --muted-d: #9097a2;
  --silver: #cfd4db;
  --steel: #8a929e;
  --accent: #e01b3c;
  --accent-2: #b8102c;
  --gold: #c9a45c;
  --radius: 18px;
  --container: 1280px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; font-family: var(--font); color: #e6e8ec; background: var(--bg);
  line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: clip;
}
html { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.025em; font-weight: 800; }
h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
h3 { font-size: 1.45rem; font-weight: 700; letter-spacing: -.01em; }
h4 { font-size: 1.02rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; }
em { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; }
::selection { background: var(--accent); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.section { padding: 140px 0; position: relative; }
.light { background: var(--paper); color: var(--text); }
.light h2, .light h3, .light h4 { color: var(--ink); }
.dark { background: var(--bg); }
.muted { color: var(--muted-d); }
.light .muted { color: var(--muted); }
.section-head { max-width: 860px; margin-bottom: 72px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.big-title { font-size: clamp(2.3rem, 5.4vw, 4.8rem); }
.big-title em, h2 em { color: var(--silver); }
.light h2 em { color: var(--accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .76rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.eyebrow.ondark { color: var(--silver); }

/* split text */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.wi { display: inline-block; will-change: transform; }

/* grain */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } }

/* ----- Preloader ----- */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 200; background: var(--bg); display: grid; place-items: center;
}
.pl-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.pl-logo { width: 70px; animation: plPulse 1.6s ease-in-out infinite; }
@keyframes plPulse { 50% { opacity: .5; transform: scale(.94); } }
.pl-name { font-weight: 800; letter-spacing: .5em; font-size: .9rem; color: var(--silver); margin-right: -.5em; }
.pl-bar { width: 200px; height: 1px; background: var(--line-d); overflow: hidden; }
.pl-bar span { display: block; height: 100%; width: 0; background: var(--accent); }
.pl-count { font-size: .8rem; color: var(--steel); font-variant-numeric: tabular-nums; }

/* ----- Cursor ----- */
.cursor, .cursor-dot { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor, .has-cursor .cursor-dot { display: block; }
  .has-cursor, .has-cursor a, .has-cursor button, .has-cursor label { cursor: none; }
}
.cursor {
  position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none;
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.55); mix-blend-mode: difference;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .3s, border-color .3s;
  display: grid; place-items: center;
}
.cursor-label { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #000; opacity: 0; transition: opacity .2s; }
.cursor.hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: #fff; border-color: #fff; }
.cursor.view { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: #fff; mix-blend-mode: normal; }
.cursor.view .cursor-label { opacity: 1; }
.cursor-dot { position: fixed; top: 0; left: 0; z-index: 151; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--accent); pointer-events: none; }

/* ----- Buttons ----- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px; font-weight: 600; font-size: .95rem; font-family: inherit;
  border: 1px solid transparent; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease), border-color .4s, transform .2s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary::before { background: #fff; }
.btn-primary:hover { color: var(--ink); }
.btn-ghost { border-color: rgba(255,255,255,.3); color: #fff; }
.btn-ghost::before { background: #fff; }
.btn-ghost:hover { color: var(--ink); }
.btn .arr { transition: transform .4s var(--ease); font-weight: 400; }
.btn:hover .arr { transform: translateX(5px); }
.btn-sm { padding: 10px 20px; font-size: .84rem; }
.btn-block { width: 100%; }

/* ----- Header ----- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 60; transition: transform .5s var(--ease), background .4s; }
.site-header.scrolled { background: rgba(11,12,15,.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); }
.site-header.hidden { transform: translateY(-100%); }
.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; transform: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand-mark { width: 36px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1rem; letter-spacing: .14em; font-weight: 800; }
.brand-text small { font-size: .62rem; letter-spacing: .28em; color: var(--steel); }
.main-nav { display: flex; gap: 34px; }
.main-nav a { display: flex; align-items: baseline; gap: 6px; color: #d7dbe0; font-size: .9rem; font-weight: 500; position: relative; padding: 6px 0; transition: color .3s; }
.main-nav a i { font-style: normal; font-size: .62rem; color: var(--accent); font-weight: 700; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: #fff; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; border: 1px solid var(--line-d); border-radius: 999px; padding: 3px; }
.lang-switch button { background: none; border: 0; color: var(--muted-d); font: 600 .72rem var(--font); padding: 6px 11px; border-radius: 999px; cursor: pointer; transition: .3s; }
.lang-switch button.active { background: #fff; color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 12px 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 6px 0; transition: .4s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }
.scroll-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ----- Hero ----- */
.hero { position: relative; min-height: max(100vh, 720px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 110px 0 0; }
.hero-content { margin-top: auto; }
.hero-bg { position: absolute; inset: -6% 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6) contrast(1.1); }
.hero-overlay { position: absolute; inset: 0; background:
  radial-gradient(ellipse at 70% 40%, rgba(11,12,15,.35), rgba(11,12,15,.92) 70%),
  linear-gradient(0deg, var(--bg) 0%, rgba(11,12,15,.2) 40%, rgba(11,12,15,.6) 100%); }
.hero-glow { position: absolute; width: 60vw; height: 60vw; left: -20vw; top: -10vw; border-radius: 50%; background: radial-gradient(circle, rgba(224,27,60,.22), transparent 60%); filter: blur(40px); animation: glow 12s ease-in-out infinite alternate; }
@keyframes glow { to { transform: translate(20vw, 15vw) scale(1.2); } }
.thread { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.thread path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-dasharray: 14 10; stroke-linecap: round; opacity: .85; }
.hero-content { position: relative; z-index: 2; }
.hero-title { font-size: clamp(2.8rem, 6.2vw, 6.6rem); font-weight: 900; line-height: .98; letter-spacing: -.045em; max-width: min(1000px, 58vw); margin-bottom: 30px; color: #fff; }
.hero-title em { font-weight: 500; color: var(--silver); }
.hero-title em .wi { background: linear-gradient(100deg, #fff 10%, #9aa3ae 45%, #fff 60%, #8a929e 90%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sheen 6s linear infinite; padding-right: .08em; }
@keyframes sheen { to { background-position: -200% center; } }
.hero .lead { font-size: clamp(1rem, 1.4vw, 1.15rem); color: #b9bfc8; max-width: 540px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-cards { position: absolute; right: 3vw; top: calc(50% - 300px); width: 31vw; max-width: 480px; height: 480px; z-index: 1; }
.hcard { position: absolute; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.12); background: #222; }
.hcard img { width: 100%; height: 100%; object-fit: cover; }
.hcard span { position: absolute; left: 12px; bottom: 12px; font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: rgba(11,12,15,.7); backdrop-filter: blur(8px); padding: 6px 12px; border-radius: 999px; color: #fff; }
.hcard.c1 { width: 58%; height: 62%; right: 0; top: 0; transform: rotate(4deg); }
.hcard.c2 { width: 44%; height: 46%; left: 0; top: 18%; transform: rotate(-7deg); background: #fff; }
.hcard.c2 img { object-fit: contain; padding: 14px; }
.hcard.c3 { width: 50%; height: 48%; right: 12%; bottom: 0; transform: rotate(-2deg); }

.hero-bottom { position: relative; z-index: 2; margin-top: auto; padding-top: 36px; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.hero-stats { list-style: none; margin: 0; padding: 22px 0 32px; display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 48px; border-top: 1px solid var(--line-d); flex: 1; max-width: 900px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: clamp(1.8rem, 3.2vw, 2.8rem); font-weight: 800; line-height: 1.05; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.hero-stats strong small { font-size: .45em; font-weight: 600; margin-left: 4px; color: var(--accent); letter-spacing: 0; }
.hero-stats > li > span { font-size: .82rem; color: var(--muted-d); margin-top: 6px; }
.scroll-hint { width: 26px; height: 44px; border: 1px solid rgba(255,255,255,.35); border-radius: 20px; margin-bottom: 48px; position: relative; flex: none; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ----- Marquee ----- */
.marquee { background: var(--accent); color: #fff; overflow: hidden; padding: 26px 0; position: relative; z-index: 2; transform: rotate(-1.5deg) scale(1.03); margin: -10px 0; }
.marquee-track { display: flex; width: max-content; }
.mq-group { display: flex; align-items: center; gap: 36px; padding-right: 36px; flex: none; }
.mq-group span { font-size: clamp(1.8rem, 3.6vw, 3.2rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; white-space: nowrap; }
.mq-group span.o { color: transparent; -webkit-text-stroke: 1.5px #fff; }
.mq-group i { font-style: normal; font-size: 1.4rem; opacity: .8; }

/* ----- About ----- */
#about { padding-top: 170px; }
.statement { font-size: clamp(1.6rem, 3.4vw, 3rem); font-weight: 700; line-height: 1.25; letter-spacing: -.025em; color: var(--ink); max-width: 1150px; margin-bottom: 120px; }
.statement .fw { transition: none; }
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 90px; align-items: center; }
.about-media { position: relative; }
.reveal-img { overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/4.6; }
.reveal-img img { width: 100%; height: 120%; object-fit: cover; }
.about-badge { position: absolute; right: -30px; bottom: 40px; background: var(--ink); color: #fff; padding: 22px 26px; border-radius: 14px; max-width: 230px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.about-badge strong { display: block; font-size: 1.35rem; letter-spacing: .16em; }
.about-badge span { font-size: .8rem; color: var(--silver); }
.about-text h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.about-text p { color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 40px 0 0; }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline b { font-size: 1.6rem; font-weight: 800; color: var(--accent); letter-spacing: -.03em; line-height: 1.1; }
.timeline span { color: var(--muted); font-size: .95rem; }

/* ----- Products horizontal ----- */
.products { background: var(--bg); position: relative; }
.hs-wrap { position: relative; overflow: hidden; }
.hs-track { display: flex; height: 100vh; min-height: 640px; align-items: center; will-change: transform; }
.hs-panel { flex: none; height: 100%; display: flex; position: relative; }
.hs-intro { width: 46vw; min-width: 520px; flex-direction: column; justify-content: center; padding: 0 5vw 0 max(32px, calc((100vw - var(--container)) / 2 + 32px)); }
.hs-intro .muted { max-width: 440px; }
.hs-hint { display: flex; align-items: center; gap: 14px; margin-top: 30px; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); }
.hs-hint b { color: var(--accent); font-size: 1.3rem; animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateX(8px); } }
.prod { width: 78vw; max-width: 1180px; padding: 110px 4vw 80px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 4vw; align-items: center; border-left: 1px solid var(--line-d); }
.prod-num { position: absolute; top: 90px; right: 4vw; font-size: clamp(6rem, 13vw, 12rem); font-weight: 900; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14); letter-spacing: -.05em; pointer-events: none; }
.prod-media { position: relative; height: min(62vh, 560px); }
.prod-media .lb { position: absolute; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.prod-media .m1 { left: 0; top: 0; width: 58%; height: 70%; }
.prod-media .m2 { right: 0; top: 12%; width: 40%; height: 52%; }
.prod-media .m3 { left: 30%; bottom: 0; width: 40%; height: 42%; }
.prod-media .m1.wide { width: 75%; height: 46%; }
.prod-media .m1.wide ~ .m2 { top: auto; bottom: 18%; right: 0; width: 34%; height: 42%; }
.prod-media .m1.wide ~ .m3 { left: 4%; bottom: 0; width: 46%; height: 44%; }
.prod-info h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); color: #fff; }
.prod-info p { color: var(--muted-d); }
.checks { list-style: none; padding: 0; margin: 24px 0 0; }
.checks li { position: relative; padding: 12px 0 12px 32px; border-top: 1px solid var(--line-d); font-weight: 500; font-size: .95rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 1.5px; background: var(--accent); }
.hs-progress { position: absolute; left: 50%; bottom: 36px; width: 220px; margin-left: -110px; height: 2px; background: var(--line-d); }
.hs-progress span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

.lb { display: block; overflow: hidden; background: var(--bg-3); }
.lb img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; }
.lb:hover img { transform: scale(1.07); }
.lb.contain { background: #fff; }
.lb.contain img { object-fit: contain; padding: 16px; }

/* ----- Tech chips ----- */
.tech { padding: 110px 0; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.chips li { border: 1px solid var(--line); border-radius: 999px; padding: 14px 26px; font-size: clamp(1rem, 1.6vw, 1.35rem); font-weight: 600; color: var(--ink); transition: background .4s var(--ease), color .4s, transform .4s var(--ease); }
.chips li:hover { background: var(--ink); color: #fff; transform: translateY(-4px) rotate(-1.5deg); }

/* ----- Capacity ----- */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-d); border: 1px solid var(--line-d); border-radius: var(--radius); overflow: hidden; }
.cap-card { background: var(--bg); padding: 38px 30px 34px; position: relative; }
.cap-card b { display: block; font-size: clamp(2.6rem, 4.4vw, 4rem); font-weight: 900; line-height: 1; margin-bottom: 18px; letter-spacing: -.04em; background: linear-gradient(180deg, #fff 30%, #6e7682); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.cap-card h4 { color: #fff; margin-bottom: 6px; }
.cap-card p { color: var(--muted-d); font-size: .88rem; margin: 0; }
.spot { position: relative; isolation: isolate; }
.spot::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(224,27,60,.18), transparent 45%); }
.spot:hover::after { opacity: 1; }
.factory-mosaic { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 16px; padding: 90px 16px; }
.factory-mosaic .lb { border-radius: 14px; height: 52vh; min-height: 300px; }
.factory-mosaic .f1, .factory-mosaic .f3 { margin-top: 80px; }
.factory-mosaic img { height: 125%; }
.network { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; border: 1px solid var(--line-d); border-radius: var(--radius); padding: 50px; background: linear-gradient(135deg, var(--bg-2), var(--bg)); }
.network h3 { color: #fff; font-size: 1.8rem; }
.network p { margin: 0; color: var(--muted-d); }
.network-map { position: relative; }
.network-map svg { width: 100%; overflow: visible; }
.route { fill: none; stroke: var(--steel); stroke-width: 1.5; stroke-dasharray: 6 6; animation: dash 20s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -300; } }
.pin { fill: var(--accent); }
.pulse { fill: none; stroke: var(--accent); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: pulse 2s ease-out infinite; }
@keyframes pulse { from { transform: scale(1); opacity: 1; } to { transform: scale(4); opacity: 0; } }
.nm-label { position: absolute; display: flex; flex-direction: column; }
.nm-label b { color: #fff; }
.nm-label small { color: var(--steel); font-size: .78rem; }
.nm-label.l1 { left: 0; top: 100%; }
.nm-label.l2 { right: 0; bottom: 100%; text-align: right; }

/* ----- Values ----- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; perspective: 1200px; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 44px 36px; transition: box-shadow .4s, border-color .4s; transform-style: preserve-3d; }
.value-card:hover { box-shadow: 0 40px 80px rgba(15,17,21,.12); border-color: transparent; }
.value-card.spot::after { background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(224,27,60,.1), transparent 50%); border-radius: inherit; }
.value-num { display: block; font-size: 4.2rem; font-weight: 900; line-height: 1; margin-bottom: 40px; color: transparent; -webkit-text-stroke: 1.5px var(--accent); letter-spacing: -.04em; }
.value-card p { color: var(--muted); margin: 0; }

/* ----- Process ----- */
.process-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.process-head { position: sticky; top: 130px; }
.process-head .btn { margin-top: 20px; }
.process-wrap { position: relative; }
.process { list-style: none; padding: 0; margin: 0; }
.process li { display: grid; grid-template-columns: 80px 1fr; gap: 20px; padding: 36px 0; border-bottom: 1px solid var(--line-d); }
.process li:first-child { padding-top: 0; }
.pnum { font-size: 1rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; padding-top: 4px; }
.process h4 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); font-weight: 700; color: #fff; letter-spacing: -.02em; margin-bottom: 8px; }
.process p { color: var(--muted-d); margin: 0; }
.process-line { position: absolute; left: -40px; top: 0; width: 2px; height: 100%; background: var(--accent); transform-origin: top; transform: scaleY(0); }

/* ----- Certs ----- */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; perspective: 1200px; }
.cert-card { background: var(--ink); color: #c9ced6; border-radius: var(--radius); padding: 44px 36px; position: relative; overflow: hidden; transform-style: preserve-3d; }
.cert-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.14) 48%, transparent 66%); transform: translateX(-100%); transition: transform 1s var(--ease); }
.cert-card:hover::before { transform: translateX(100%); }
.cert-seal { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 34px; text-align: center; font-weight: 900; font-size: .9rem; line-height: 1.05; letter-spacing: .04em; color: var(--ink); background: conic-gradient(from 210deg, #f2f4f7, #8a929e, #f2f4f7, #b6bcc5, #f2f4f7); box-shadow: inset 0 0 0 6px rgba(0,0,0,.08), 0 10px 30px rgba(0,0,0,.4); }
.cert-card h3 { color: #fff; }
.cert-card h3 small { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .18em; color: var(--gold); text-transform: uppercase; margin-top: 6px; }
.cert-card p { margin: 0; color: var(--muted-d); }

/* ----- Org ----- */
.org-section { padding-top: 40px; }
.org { display: flex; flex-direction: column; align-items: center; }
.org-node { background: var(--ink); color: #fff; padding: 14px 30px; border-radius: 12px; font-weight: 600; text-align: center; }
.org-node.lvl1 { background: var(--accent); }
.org-node.lvl3 { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.org-v { width: 1px; height: 32px; background: var(--steel); }
.org-row { display: grid; grid-template-columns: 2.4fr 1fr; gap: 28px; width: 100%; max-width: 1060px; position: relative; padding-top: 32px; }
.org-row::before { content: ""; position: absolute; top: 0; left: 35%; right: 14%; height: 1px; background: var(--steel); }
.org-col { display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; }
.org-col::before { content: ""; position: absolute; top: -32px; width: 1px; height: 32px; background: var(--steel); }
.org-col.side .org-node { width: 100%; }
.org-leaves { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; width: 100%; margin-top: 6px; }
.org-leaves span { background: var(--paper-2); border-radius: 10px; padding: 12px 8px; text-align: center; font-size: .84rem; font-weight: 500; transition: background .3s, color .3s; }
.org-leaves span:hover { background: var(--ink); color: #fff; }

/* ----- Careers ----- */
.careers-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
.mini-title { margin: 40px 0 14px; font-size: .74rem; text-transform: uppercase; letter-spacing: .2em; color: var(--steel); }
.jobs { list-style: none; padding: 0; margin: 0; }
.jobs li { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-top: 1px solid var(--line-d); font-weight: 600; font-size: 1.08rem; color: #fff; transition: padding .4s var(--ease), color .3s; }
.jobs li:last-child { border-bottom: 1px solid var(--line-d); }
.jobs li b { color: var(--accent); transition: transform .4s var(--ease); }
.jobs li:hover { padding-left: 14px; }
.jobs li:hover b { transform: rotate(45deg); }
.benefits { list-style: none; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.benefits li { display: flex; align-items: center; gap: 12px; background: var(--bg-2); border: 1px solid var(--line-d); border-radius: 12px; padding: 14px 16px; }
.benefits span { font-size: 1.2rem; }
.benefits b { font-weight: 600; font-size: .92rem; color: #e6e8ec; }
.life-gallery { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 120px; gap: 12px; }
.life-gallery .lb { border-radius: 14px; }
.life-gallery .g1 { grid-column: 1 / 5; grid-row: span 3; }
.life-gallery .g2 { grid-column: 5 / 7; grid-row: span 2; }
.life-gallery .g3 { grid-column: 5 / 7; grid-row: span 2; }
.life-gallery .g4 { grid-column: 1 / 3; grid-row: span 2; }
.life-gallery .g5 { grid-column: 3 / 5; grid-row: span 2; }
.life-gallery .g6 { grid-column: 5 / 7; grid-row: span 1; }

/* ----- Contact ----- */
.cta-huge { font-size: clamp(2.6rem, 8.5vw, 8rem); font-weight: 900; line-height: .98; letter-spacing: -.05em; margin-bottom: 90px; max-width: 1200px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 80px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; }
.contact-list li { display: flex; gap: 18px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--line); }
.contact-list i { font-style: normal; width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #fff; font-size: 1.05rem; }
.contact-list small { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.contact-list span { font-weight: 600; color: var(--ink); }
.contact-list a { background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease), color .3s; }
.contact-list a:hover { background-size: 100% 1px; color: var(--accent); }
.contact-form { background: var(--ink); border-radius: 24px; padding: 44px; color: #fff; box-shadow: 0 40px 80px rgba(15,17,21,.25); }
.contact-form h3 { color: #fff; margin-bottom: 26px; font-size: 1.6rem; }
.fl { position: relative; display: block; margin-bottom: 22px; }
.fl input, .fl textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.2); padding: 22px 0 10px; color: #fff; font: 400 1rem var(--font); transition: border-color .3s; resize: vertical; }
.fl span { position: absolute; left: 0; top: 20px; color: var(--muted-d); font-size: .95rem; pointer-events: none; transition: .3s var(--ease); }
.fl input:focus, .fl textarea:focus { outline: none; border-color: #fff; }
.fl input:focus + span, .fl input:not(:placeholder-shown) + span,
.fl textarea:focus + span, .fl textarea:not(:placeholder-shown) + span { top: 0; font-size: .72rem; letter-spacing: .08em; color: var(--silver); }
.fl .invalid { border-color: var(--accent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.svc { margin: 6px 0 22px; }
.svc small { display: block; color: var(--muted-d); font-size: .78rem; margin-bottom: 12px; }
.svc-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-opts label { position: relative; }
.svc-opts input { position: absolute; opacity: 0; pointer-events: none; }
.svc-opts span { display: inline-block; padding: 9px 16px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; font-size: .84rem; cursor: pointer; transition: .3s; }
.svc-opts input:checked + span { background: #fff; color: var(--ink); border-color: #fff; }
.svc-opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-note { font-size: .78rem; color: var(--steel); margin: 16px 0 0; text-align: center; }
#contact { padding-bottom: 0; }
.map-wrap { margin-top: 110px; height: 420px; filter: grayscale(1) contrast(1.05); transition: filter .6s; }
.map-wrap:hover { filter: none; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ----- Footer ----- */
.site-footer { background: var(--bg); color: var(--muted-d); padding: 80px 0 30px; font-size: .9rem; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand strong { display: block; color: #fff; font-size: .95rem; }
.footer-brand span { font-size: .76rem; letter-spacing: .06em; }
.legal { margin: 0; display: grid; gap: 8px; }
.legal div { display: flex; gap: 10px; }
.legal dt { color: var(--steel); min-width: 130px; }
.legal dd { margin: 0; color: #d6dae0; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.footer-nav a { transition: color .3s; }
.footer-nav a:hover { color: #fff; }
.footer-giant { font-size: 15.5vw; font-weight: 900; letter-spacing: -.06em; line-height: .8; text-align: center; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.1); background: linear-gradient(180deg, rgba(255,255,255,.08), transparent 80%); -webkit-background-clip: text; background-clip: text; margin: 10px 0 30px; user-select: none; }
.copyright { font-size: .78rem; text-align: center; border-top: 1px solid var(--line-d); padding-top: 26px; }

/* ----- Floating contact ----- */
.float-contact { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; flex-direction: column; gap: 10px; }
.fc { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.35); font-weight: 700; font-size: .76rem; transition: transform .3s var(--ease); }
.fc:hover { transform: scale(1.1); }
.fc.zalo { background: #0068ff; }
.fc.phone { background: var(--accent); animation: ring 2.4s infinite; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(224,27,60,.55); } 50% { box-shadow: 0 0 0 14px rgba(224,27,60,0); } }

/* ----- Lightbox ----- */
.lightbox { position: fixed; inset: 0; z-index: 160; background: rgba(6,7,9,.94); display: grid; place-items: center; padding: 24px; backdrop-filter: blur(6px); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1300px, 100%); max-height: 88vh; border-radius: 12px; object-fit: contain; animation: lbIn .5s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: scale(.94); } }
.lb-close { position: absolute; top: 16px; right: 24px; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .grain { display: none; }
}

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  .main-nav { gap: 22px; }
  .main-nav a i { display: none; }
  .hero-cards { width: 30vw; height: 420px; right: 2vw; top: calc(50% - 240px); }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .org-leaves { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .section { padding: 100px 0; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 0;
    background: var(--bg); padding: 100px 32px 40px;
    clip-path: circle(0 at calc(100% - 52px) 40px); transition: clip-path .8s var(--ease);
  }
  .main-nav.open { clip-path: circle(150% at calc(100% - 52px) 40px); }
  .main-nav a { font-size: 2rem; font-weight: 800; padding: 12px 0; border-bottom: 1px solid var(--line-d); letter-spacing: -.02em; }
  .main-nav a i { display: inline; font-size: .8rem; }
  .main-nav a::after { display: none; }
  .hide-sm { display: none; }
  .hero-cards { display: none; }
  .hero-title { max-width: none; font-size: clamp(2.6rem, 9vw, 5rem); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 26px; }
  .scroll-hint { display: none; }
  .about-grid, .careers-grid, .contact-grid, .network, .process-grid { grid-template-columns: 1fr; gap: 56px; }
  .about-badge { right: 16px; bottom: -24px; }
  .statement { margin-bottom: 80px; }
  .values-grid, .cert-grid { grid-template-columns: 1fr; }
  .process-head { position: static; }
  .process-line { left: -16px; }
  .org-row { grid-template-columns: 1fr; }
  .org-row::before, .org-col.side::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  /* products: vertical stack */
  .hs-track { flex-direction: column; height: auto; min-height: 0; }
  .hs-panel { height: auto; width: 100%; }
  .hs-intro { width: 100%; min-width: 0; padding: 100px 32px 40px; }
  .hs-hint, .hs-progress { display: none; }
  .prod { width: 100%; max-width: none; grid-template-columns: 1fr; padding: 60px 32px; border-left: 0; border-top: 1px solid var(--line-d); }
  .prod-num { top: 40px; right: 24px; font-size: 6rem; }
  .prod-media { height: 420px; }
  .factory-mosaic { grid-template-columns: 1fr 1fr; padding: 60px 16px; }
  .factory-mosaic .f2 { grid-column: span 2; order: -1; }
  .factory-mosaic .f1, .factory-mosaic .f3 { margin-top: 0; }
  .factory-mosaic .lb { height: 34vh; }
  .nm-label.l1 { top: auto; bottom: -34px; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  .section { padding: 80px 0; }
  #about { padding-top: 120px; }
  .hero { padding-top: 110px; }
  .hero-title { font-size: clamp(2.5rem, 12vw, 3.6rem); max-width: none; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .cap-card { padding: 24px 18px; }
  .hs-intro { padding: 80px 18px 30px; }
  .prod { padding: 50px 18px; }
  .prod-media { height: 320px; }
  .org-leaves { grid-template-columns: repeat(2, 1fr); }
  .row2, .benefits { grid-template-columns: 1fr; gap: 0; }
  .benefits { gap: 10px; }
  .life-gallery { grid-auto-rows: 80px; }
  .contact-form { padding: 30px 22px; }
  .network { padding: 30px 22px; }
  .timeline li { grid-template-columns: 70px 1fr; }
  .chips li { padding: 10px 18px; }
  .marquee { padding: 18px 0; }
  .cta-huge { margin-bottom: 60px; }
  .legal dt { min-width: 110px; }
}
