/* Site 3svn.ai (task W-10, giao diện v2 task W-12). Thiết kế: docs/3svn/v2/design-reference-v2.html + hero-prototype.html, accent #22D3EE. */

/* Be Vietnam Pro (400-700) và JetBrains Mono (variable), tự host, subset vietnamese + latin. Nguồn: Google Fonts, giấy phép OFL. */
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/be-vietnam-pro-400-vietnamese.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/be-vietnam-pro-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/be-vietnam-pro-500-vietnamese.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:500;font-display:swap;src:url(../fonts/be-vietnam-pro-500-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/be-vietnam-pro-600-vietnamese.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:600;font-display:swap;src:url(../fonts/be-vietnam-pro-600-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/be-vietnam-pro-700-vietnamese.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:'Be Vietnam Pro';font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/be-vietnam-pro-700-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 500;font-display:swap;src:url(../fonts/jetbrains-mono-vietnamese.woff2) format('woff2');unicode-range:U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 500;font-display:swap;src:url(../fonts/jetbrains-mono-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

:root{
  --bg:#070B14;--bg-2:#0A101C;--card:#0E1626;
  --line:#1A2233;--border:#1E2A40;--border-2:#24304A;--input:#2A3550;
  --text:#E6EAF2;--muted:#AEB7C8;--dim:#7F8BA3;
  --accent:#22D3EE;--on-accent:#04111A;--green:#6EE7B7;--amber:#FCD34D;
  --pill-accent:#1F4A57;--pill-green:#2F5A45;--pill-amber:#5A4A2A;
  --sans:'Be Vietnam Pro',system-ui,-apple-system,'Segoe UI',Arial,sans-serif;
  --mono:'JetBrains Mono',ui-monospace,Consolas,monospace;
}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--sans);font-size:16px;line-height:1.5;min-height:100vh}
/* Nền ambient cố định khi cuộn (v2 .bg-amb): radial-gradient CSS thay ảnh (task W-12 sửa), sắc nét ở mọi độ phân giải.
   Lớp hạt (grain) ở body::before: ô noise nhỏ lặp lại, độ đậm thấp, nằm DƯỚI nội dung nên không phủ lên chữ. */
body{background:radial-gradient(ellipse 38% 34% at 6% 14%,rgba(34,150,200,.12),transparent 70%),radial-gradient(ellipse 34% 26% at 30% 98%,rgba(110,231,183,.06),transparent 70%),radial-gradient(ellipse 22% 34% at 100% 62%,rgba(252,211,77,.05),transparent 70%),var(--bg);background-attachment:fixed}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;opacity:.035;background-size:96px 96px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
a{color:var(--text);text-decoration:none}a:hover{color:#FFFFFF}
h1,h2,h3{margin:0}
p{margin:0}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
[id]{scroll-margin-top:16px}
.wrap{max-width:1240px;margin:0 auto;padding:0 24px}

/* Nhãn chữ mono, nút, viên thuốc */
.eyebrow{font-family:var(--mono);font-size:13px;letter-spacing:.12em;color:var(--accent)}
.tag{font-family:var(--mono);font-size:12px;color:var(--accent)}
.tag-green{color:var(--green)}.tag-amber{color:var(--amber)}.tag-dim{color:var(--dim)}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:15px 26px;border-radius:999px;font-weight:600;font-size:16px;line-height:1.2;transition:background-color .15s,border-color .15s}
.btn-primary{background:var(--accent);color:var(--on-accent)}
.btn-primary:hover{background:#67E8F9;color:var(--on-accent)}
.btn-ghost{border:1px solid var(--input);color:var(--text);font-weight:500}
.btn-ghost:hover{border-color:var(--accent);color:#FFFFFF}
.pills{display:flex;flex-wrap:wrap;gap:10px}
.pill{padding:8px 14px;border-radius:999px;border:1px solid var(--pill-accent);color:var(--accent);font-size:14px}
.pill-sm{padding:6px 12px;font-size:13px}
.pill-green{border-color:var(--pill-green);color:var(--green)}
.pill-amber{border-color:var(--pill-amber);color:var(--amber)}

/* Header */
.site-header{position:relative;z-index:2;border-bottom:1px solid var(--line);background:rgba(7,11,20,.85);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.nav{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding-top:18px;padding-bottom:18px}
.brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:22px;letter-spacing:-.02em}
.brand-mark{width:32px;height:32px;border-radius:8px;border:1.5px solid var(--accent);display:flex;align-items:center;justify-content:center;font-family:var(--mono);font-size:13px;font-weight:500;letter-spacing:0;color:var(--accent)}
.brand-tld{color:var(--accent)}
.menu{display:flex;flex-wrap:wrap;gap:28px;font-size:15px}
.menu a{color:var(--muted)}
.menu a:hover{color:#FFFFFF}
.nav-cta{padding:12px 20px;font-size:15px}
.menu-cta{display:none}
.nav-toggle{display:none;width:44px;height:44px;align-items:center;justify-content:center;border:1px solid var(--input);border-radius:10px;background:transparent;color:var(--text);cursor:pointer}
.nav-toggle .i-close{display:none}
.nav-toggle[aria-expanded="true"] .i-open{display:none}
.nav-toggle[aria-expanded="true"] .i-close{display:block}

/* Hero (hero-prototype): canvas .hero-fx phủ cả khối, vẽ bởi assets/js/hero.js quanh tâm của #orbitSlot */
.hero{position:relative;overflow:hidden;background:radial-gradient(ellipse at 72% 45%,rgba(34,211,238,.10),transparent 55%),radial-gradient(ellipse at 10% 95%,rgba(110,231,183,.06),transparent 50%)}
.hero-fx{position:absolute;inset:0;width:100%;height:100%;display:block}
.hero-grid{position:relative;z-index:1;display:flex;flex-wrap:wrap;align-items:center;gap:32px;padding-top:88px;padding-bottom:96px}
.hero-text{flex:1 1 500px;min-width:0;display:flex;flex-direction:column;gap:28px}
.hero h1{font-size:60px;line-height:1.08;font-weight:700;letter-spacing:-.03em}
.hero-lead{font-size:19px;line-height:1.6;color:var(--muted);max-width:580px}
.hero-actions{display:flex;flex-wrap:wrap;gap:14px}
.hero .btn-ghost{background:rgba(7,11,20,.4)}
.hero-orbit{flex:1 1 440px;min-width:0;height:520px}
/* Không có JS thì không vẽ được quỹ đạo: ẩn ô trống, chữ chiếm cả hàng */
html:not(.js) .hero-orbit,html:not(.js) .hero-fx{display:none}

/* SVG động (minh họa trụ cột, bản đồ) */
@keyframes pulse{0%,100%{opacity:.4}50%{opacity:1}}
@keyframes flow{to{stroke-dashoffset:-40}}
.pulse{animation:pulse 3s ease-in-out infinite}
.flow{stroke-dasharray:4 6;animation:flow 2.4s linear infinite}
.d04{animation-delay:.4s}.d08{animation-delay:.8s}.d10{animation-delay:1s}.d14{animation-delay:1.4s}.d20{animation-delay:2s}

/* Dải số liệu */
.stats{border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:rgba(10,16,28,.7);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:32px;padding-top:40px;padding-bottom:40px}
.stat{display:flex;flex-direction:column;gap:6px}
.stat-num{font-size:40px;font-weight:700;line-height:1.2;color:var(--accent);font-variant-numeric:tabular-nums}
.stat-label{color:var(--muted);font-size:15px}

/* Khối chung */
.section{padding-top:80px;padding-bottom:80px}
.section-head{display:flex;flex-direction:column;gap:14px;margin-bottom:40px}
.section-head h2,.about-head h2{font-size:40px;line-height:1.15;letter-spacing:-.02em}
.section-head p{color:var(--muted);font-size:17px;line-height:1.6;max-width:660px}
.section-head.tight{margin-bottom:32px}
.card{padding:32px;border-radius:20px;background:rgba(14,22,38,.78);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid var(--border);display:flex;flex-direction:column;gap:12px}
.grid{display:grid;gap:20px}
.cols-300{grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr))}
.cols-320{grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr))}
.cols-240{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr))}

/* Về 3SVN */
.about{display:flex;flex-wrap:wrap;gap:48px;padding-top:112px;padding-bottom:40px}
.about-head{flex:1 1 360px;display:flex;flex-direction:column;gap:16px}
.about-body{flex:1 1 520px;display:flex;flex-direction:column;gap:18px;font-size:17px;line-height:1.7;color:var(--muted)}
.values{padding-top:24px;padding-bottom:40px}
.values .card p{font-size:19px;line-height:1.55;color:var(--text)}
.value-list{display:flex;flex-direction:column;gap:8px;font-size:16px;line-height:1.5;color:var(--muted)}
.value-list strong{color:var(--text);font-weight:600}

/* Ba trụ cột */
.pillar{--pad-y:36px;--pad-x:36px;min-height:360px;padding:var(--pad-y) var(--pad-x);border-radius:24px;border-top:3px solid var(--accent);gap:16px}
/* Minh họa isometric đầu thẻ (SVG inline lấy nguyên từ v2), tràn sát mép thẻ */
.pillar-art{height:180px;margin:calc(-1 * var(--pad-y)) calc(-1 * var(--pad-x)) 4px;border-radius:21px 21px 0 0;overflow:hidden}
.pillar-art svg{width:100%;height:100%;display:block}
.pillar-green{border-top-color:var(--green)}
.pillar-amber{border-top-color:var(--amber)}
.pillar h3{font-size:28px;line-height:1.25}
.pillar p{color:var(--muted);line-height:1.6}
.pillar-list{margin:auto 0 0;padding:18px 0 0;list-style:none;display:flex;flex-direction:column;gap:10px;font-size:15px;color:var(--text);border-top:1px solid var(--border)}

/* Công ty thành viên */
.member{gap:16px}
.member h3{font-size:24px;line-height:1.25}
.member p{color:var(--muted);line-height:1.6}
.member .pills{gap:8px}
/* Hover thẻ công ty: lớp phủ gradient + viền + quầng sáng theo màu công ty; dùng `translate` để không đụng transform của .reveal */
.member{position:relative;--mc:34,211,238}
.member-green{--mc:110,231,183}
.member-amber{--mc:252,211,77}
.member>*{position:relative}
.member::before{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(160deg,rgba(var(--mc),.14),rgba(var(--mc),.05));opacity:0;transition:opacity .3s ease;pointer-events:none}
@media (hover:hover){
  .rv .member.reveal,.member{transition:opacity .8s ease-out,transform .8s ease-out,translate .3s ease,border-color .3s ease,box-shadow .3s ease}
  .rv .grid>.member.reveal:nth-child(1){transition-delay:0s}
  .rv .grid>.member.reveal:nth-child(2){transition-delay:.1s,.1s,0s,0s,0s}
  .rv .grid>.member.reveal:nth-child(3){transition-delay:.2s,.2s,0s,0s,0s}
  .member:hover{translate:0 -4px;border-color:rgba(var(--mc),.6);box-shadow:0 12px 32px -8px rgba(var(--mc),.28)}
  .member:hover::before{opacity:1}
}

/* Khách hàng theo ngành */
/* minmax 340px (thiết kế gốc 260px): 6 ô xếp 3x2 / 2x3 / 1 cột, không thừa ô trống ở desktop */
.industries{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(340px,100%),1fr));gap:1px;background:var(--border);border:1px solid var(--border);border-radius:16px;overflow:hidden}
.industry{background:rgba(10,16,28,.72);padding:32px;display:flex;flex-direction:column;gap:8px}
.industry h3{font-size:20px;line-height:1.3}
.industry p{color:var(--muted);font-size:15px;line-height:1.6}

/* Quy trình hợp tác (#quy-trinh) */
.steps{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.rail{position:absolute;left:12.5%;right:12.5%;top:58px;height:2px;background:var(--border);border-radius:2px;z-index:0}
.rail-fill{position:absolute;left:0;top:0;height:100%;width:0;border-radius:2px;background:linear-gradient(90deg,rgba(34,211,238,.15),var(--accent));box-shadow:0 0 12px rgba(34,211,238,.6);transition:width .9s cubic-bezier(.4,0,.2,1)}
.rail-dot{position:absolute;top:50%;left:0;width:10px;height:10px;margin:-5px 0 0 -5px;border-radius:50%;background:#E6FBFF;box-shadow:0 0 10px 3px rgba(34,211,238,.9);opacity:0;transition:left .9s cubic-bezier(.4,0,.2,1)}
.steps.running .rail-dot{opacity:1}
.step{position:relative;z-index:1;padding:28px;min-height:230px;transition:border-color .6s,background .6s,box-shadow .6s,translate .6s}
.step .head{display:flex;align-items:center;justify-content:space-between;gap:12px;height:60px}
.step-num{font-family:var(--mono);font-size:28px;line-height:1.2;color:var(--accent);opacity:.55;transition:opacity .6s,text-shadow .6s}
.step .icon{width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;border:1px solid rgba(34,211,238,.35);background:rgba(34,211,238,.08);color:var(--accent);opacity:0;transform:scale(.6) rotate(-8deg);transition:opacity .5s,transform .6s cubic-bezier(.34,1.56,.64,1)}
.step .icon svg{width:26px;height:26px}
.step .icon svg *{stroke-dasharray:60;stroke-dashoffset:0}
.step.done{border-color:rgba(252,211,77,.22)}
.step.done .step-num{opacity:.85}
.step.done .icon{opacity:.55;transform:none;color:var(--green);border-color:rgba(110,231,183,.3);background:rgba(110,231,183,.06)}
.step.active{border-color:rgba(252,211,77,.8);background:linear-gradient(160deg,rgba(252,211,77,.16),rgba(14,22,38,.88) 62%);box-shadow:0 0 0 1px rgba(252,211,77,.22),0 18px 50px -12px rgba(252,211,77,.38);translate:0 -4px}
.step.active .step-num{opacity:1;text-shadow:0 0 14px rgba(34,211,238,.8)}
.step.active .icon{opacity:1;transform:none;color:var(--green);border-color:rgba(110,231,183,.7);background:rgba(110,231,183,.14);box-shadow:0 0 20px rgba(110,231,183,.55)}
.step.active .icon svg{animation:step-draw 1s ease-out both}
@keyframes step-draw{from{stroke-dashoffset:60}to{stroke-dashoffset:0}}
@media (max-width:900px){
  .steps{grid-template-columns:1fr}
  .rail{left:44px;right:auto;top:40px;bottom:40px;width:2px;height:auto}
  .rail-fill{width:100%!important;height:0;transition:height .9s cubic-bezier(.4,0,.2,1);background:linear-gradient(180deg,rgba(34,211,238,.15),var(--accent))}
  .rail-dot{left:50%!important;top:0;margin:-5px 0 0 -5px;transition:top .9s cubic-bezier(.4,0,.2,1)}
  .step{min-height:0}
}
.step h3{font-size:20px;line-height:1.3}
.step p{color:var(--muted);font-size:15px;line-height:1.6}

/* Đội ngũ & mạng lưới (v2 .bg-team): gradient CSS + đường đồng mức SVG vector (band-contours.svg), bản đồ Việt Nam có QĐ. Hoàng Sa, QĐ. Trường Sa */
.team-band{margin-top:40px;background:url(../img/band-contours.svg) center/cover no-repeat,radial-gradient(ellipse 42% 75% at 80% 55%,rgba(34,160,205,.30),transparent 72%),radial-gradient(ellipse 35% 60% at 14% 12%,rgba(110,231,183,.06),transparent 70%),#0A0F1B;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.team{display:flex;flex-wrap:wrap;align-items:center;gap:48px;padding-top:96px;padding-bottom:96px}
.team-text{flex:1 1 480px;min-width:0;display:flex;flex-direction:column;gap:18px}
.team-text h2{font-size:44px;line-height:1.15;letter-spacing:-.02em;max-width:620px}
.team-text p{font-size:18px;line-height:1.65;color:#C9D1DE;max-width:560px}
.team-map{flex:1 1 300px;min-width:0;display:flex;justify-content:center}
.team-map svg{width:100%;max-width:420px;height:auto;display:block}

/* Liên hệ */
.contact{padding-bottom:112px}
.contact-box{border-radius:28px;border:1px solid var(--border-2);background:url(../img/contact-contours.svg) center/cover no-repeat,radial-gradient(ellipse 48% 80% at 8% 18%,rgba(34,150,195,.32),transparent 72%),radial-gradient(ellipse 45% 55% at 50% 100%,rgba(110,231,183,.08),transparent 70%),#0E1526;min-height:360px;padding:56px;display:flex;flex-wrap:wrap;gap:40px;align-items:center;justify-content:space-between}
.contact-text{flex:1 1 420px;display:flex;flex-direction:column;gap:14px}
.contact-text h2{font-size:36px;line-height:1.2;letter-spacing:-.02em}
.contact-text p{color:var(--muted);font-size:17px;line-height:1.6}
.contact-box .cf-form{flex:1 1 360px}

/* Footer */
.site-footer{border-top:1px solid var(--line)}
.footer-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:24px;padding-top:40px;padding-bottom:40px;color:var(--dim);font-size:14px}
.footer-row a{color:var(--dim)}
.footer-row a:hover{color:var(--text)}

/* Form liên hệ: form ở mục Liên hệ và popup <dialog> (assets/js/contact.js) */
.cf-form{display:flex;flex-direction:column;gap:12px;min-width:0}
.cf-label{display:flex;flex-direction:column;gap:6px;font-size:14px;color:var(--muted)}
.field{width:100%;height:48px;padding:0 16px;border-radius:12px;border:1px solid var(--input);background:var(--bg);color:var(--text);font:inherit;font-size:15px}
select.field{padding:0 12px}
textarea.field{height:auto;min-height:104px;padding:12px 16px;resize:vertical;line-height:1.5}
.field:focus{outline:2px solid var(--accent);outline-offset:0;border-color:var(--accent)}
.cf-submit{margin-top:8px;height:50px;border:0;border-radius:999px;background:var(--accent);color:var(--on-accent);font:inherit;font-weight:600;font-size:16px;cursor:pointer}
.cf-submit:hover{background:#67E8F9}
.cf-submit:disabled{opacity:.7;cursor:wait}
.cf-note{font-size:13px;color:var(--dim)}
.cf-error{padding:10px 12px;border-left:3px solid #F87171;border-radius:4px;background:rgba(248,113,113,.1);color:#FCA5A5;font-size:14px}
.cf-error[hidden],.cf-form[hidden]{display:none}
.cf-hp{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
.cf-thanks{flex:1 1 360px;padding:8px 0;outline:none}
.cf-thanks p{margin:0 0 6px;color:var(--muted)}
.cf-thanks .cf-thanks-title{font-size:20px;font-weight:700;color:var(--accent)}
.cf-open{overflow:hidden}
.cf-dialog{width:min(600px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid var(--border-2);border-radius:24px;background:var(--card);color:var(--text);font-family:var(--sans);font-size:16px;line-height:1.5;box-shadow:0 24px 64px rgba(0,0,0,.55);overflow:auto}
.cf-dialog{scrollbar-width:thin;scrollbar-color:#24304A #0E1626}
.cf-dialog::-webkit-scrollbar{width:10px}
.cf-dialog::-webkit-scrollbar-track{background:#0E1626}
.cf-dialog::-webkit-scrollbar-thumb{background:#24304A;border-radius:999px;border:2px solid #0E1626}
.cf-dialog::backdrop{background:rgba(3,6,12,.75)}
.cf-panel{position:relative;padding:32px;border-top:3px solid var(--accent);border-radius:24px 24px 0 0}
.cf-close{position:absolute;top:14px;right:14px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:0;border-radius:10px;background:transparent;color:var(--muted);cursor:pointer}
.cf-close:hover{background:var(--bg-2);color:var(--accent)}
.cf-title{margin:0 48px 6px 0;font-size:24px;line-height:1.25;letter-spacing:-.02em}
.cf-lead{margin:0 0 20px;font-size:15px;color:var(--muted)}
.cf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}

/* Trượt nhẹ lên khi cuộn tới (assets/js/main.js gắn .is-in). Chỉ áp khi <head> gắn class "rv" */
.rv .reveal{opacity:0;transform:translateY(24px);transition:opacity .8s ease-out,transform .8s ease-out}
.rv .reveal.is-in{opacity:1;transform:none}
.rv .grid>.reveal:nth-child(2),.rv .about-body.reveal,.rv .team-map.reveal{transition-delay:.1s}
.rv .grid>.reveal:nth-child(3){transition-delay:.2s}
.rv .grid>.reveal:nth-child(4){transition-delay:.3s}

/* Trang 404 */
.notfound{padding-top:120px;padding-bottom:140px;display:flex;flex-direction:column;align-items:flex-start;gap:20px}
.notfound h1{font-size:48px;line-height:1.1;letter-spacing:-.03em}
.notfound p{color:var(--muted);font-size:17px;line-height:1.6;max-width:560px}

/* Máy tính bảng: menu thành hamburger (chỉ khi có JS, html.js) */
@media (max-width:960px){
  .js .nav-toggle{display:inline-flex}
  .js .nav-cta{display:none}
  .js .menu{display:none;order:3;flex-basis:100%;flex-direction:column;gap:0;padding:8px 0 4px;border-top:1px solid var(--line)}
  .js .menu.is-open{display:flex}
  .js .menu a{padding:14px 0;font-size:16px;border-bottom:1px solid var(--line)}
  .js .menu a:last-child{border-bottom:0}
  .js .menu .menu-cta{display:inline-flex;align-self:flex-start;margin-top:12px;padding:12px 20px;border-bottom:0;color:var(--on-accent)}
  .hero-grid{padding-top:64px;padding-bottom:64px}
  .hero h1{font-size:48px}
  .about{padding-top:80px}
  .section{padding-top:64px;padding-bottom:64px}
  .team{padding-top:72px;padding-bottom:72px}
  .team-text h2{font-size:38px}
}
/* Theo hero-prototype: khung quỹ đạo thấp hơn khi hẹp hơn 900px */
@media (max-width:900px){
  .hero-orbit{height:420px}
}
/* Máy tính bảng, điện thoại, màn cảm ứng: nền ambient cuộn thường (fixed giật / không hỗ trợ trên iOS),
   gradient đặt theo khung hình đầu (100vh), phía dưới là màu nền */
@media (max-width:960px),(hover:none){
  body{background:radial-gradient(ellipse 38% 34% at 6% 14%,rgba(34,150,200,.12),transparent 70%),radial-gradient(ellipse 34% 26% at 30% 98%,rgba(110,231,183,.06),transparent 70%),radial-gradient(ellipse 22% 34% at 100% 62%,rgba(252,211,77,.05),transparent 70%),var(--bg);background-size:100% 100vh;background-repeat:no-repeat;background-attachment:scroll}
}

/* Điện thoại */
@media (max-width:560px){
  .wrap{padding-left:20px;padding-right:20px}
  .hero-grid{padding-top:44px;padding-bottom:40px;gap:24px}
  .hero-text{gap:22px}
  .hero h1{font-size:36px;line-height:1.12}
  .hero-lead{font-size:17px}
  .hero-actions .btn{flex:1 1 100%}
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px;padding-top:32px;padding-bottom:32px}
  .stat-num{font-size:32px}
  .stat-label{font-size:14px}
  .section{padding-top:56px;padding-bottom:56px}
  .section-head h2,.about-head h2{font-size:30px}
  .about{padding-top:64px;gap:24px}
  .about-body{font-size:16px}
  .card,.industry{padding:24px}
  .pillar{min-height:0;--pad-y:28px;--pad-x:24px;padding:var(--pad-y) var(--pad-x)}
  .pillar-art{height:160px;border-radius:17px 17px 0 0}
  .pillar h3{font-size:24px}
  .team-band{margin-top:24px}
  .team{padding-top:56px;padding-bottom:56px;gap:32px}
  .team-text h2{font-size:30px}
  .team-text p{font-size:17px}
  .contact{padding-bottom:72px}
  .contact-box{padding:28px 20px;border-radius:20px;gap:28px;min-height:0}
  .contact-text h2{font-size:28px}
  .footer-row{flex-direction:column;gap:10px;padding-top:28px;padding-bottom:28px}
  .cf-panel{padding:28px 20px}
  .cf-grid{grid-template-columns:1fr}
  .notfound{padding-top:72px;padding-bottom:96px}
  .notfound h1{font-size:36px}
}

/* Điện thoại (<600px): khung quỹ đạo hero thấp lại để hình gọn (tương đương sơ đồ 70% bản trước) */
@media (max-width:599px){
  .hero-orbit{height:340px}
}

/* Người dùng chọn giảm chuyển động: tắt mọi animation (hero.js chỉ vẽ 1 khung tĩnh; main.js không trượt, không đếm số) */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .pulse,.flow{animation:none}
  .pulse{opacity:1}
  .btn,.cf-submit{transition:none}
  .member:hover{translate:none}
  .reveal{opacity:1;transform:none;transition:none}
  .step,.step .icon,.step-num,.rail-fill,.rail-dot{transition:none}
  .step .icon{opacity:1;transform:none}
  .step.active .icon svg{animation:none}
}
