/* Global Bee Automation — giao diện công nghiệp / robotic */
:root {
  --bg: #0a0d12;
  --bg-2: #0e131a;
  --panel: #131a23;
  --panel-2: #18212c;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #e9eef4;
  --muted: #98a6b8;
  --dim: #6b798b;
  --accent: #ff7a2f;
  --accent-hot: #ff9655;
  --accent-ink: #140a03;
  --scan: #45d9ff;
  --font-head: "Chakra Petch", "Be Vietnam Pro", system-ui, sans-serif;
  --font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --header-h: 72px;
  --wrap: 1200px;
  --cut: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; font-weight: 600; text-wrap: balance; }
address { font-style: normal; }
svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 26px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-head); font-weight: 600; font-size: 1rem; letter-spacing: 0.02em;
  border: 0; cursor: pointer;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.2s; }
.btn:hover { background: var(--accent-hot); }
.btn:hover svg { transform: translateX(4px); }
.btn-ghost { background: rgba(255, 255, 255, 0.07); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); clip-path: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.9rem; --cut: 9px; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s, border-color 0.25s;
}
.site-header.is-scrolled, .site-header.is-open { background: rgba(10, 13, 18, 0.88); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-head); }
.brand-text strong { font-size: 1.15rem; font-weight: 700; letter-spacing: 0.06em; }
.brand-text small { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.34em; color: var(--accent); margin-top: 6px; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a { display: block; padding: 10px 12px; font-size: 0.9rem; font-weight: 500; color: var(--muted); position: relative; transition: color 0.2s; white-space: nowrap; }
.nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.25s; }
.nav a:hover, .nav a.is-current { color: var(--text); }
.nav a:hover::after, .nav a.is-current::after { transform: scaleX(1); }
.header-tools { display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; border: 1px solid var(--line-strong); font-family: var(--font-mono); font-size: 0.78rem; }
.lang a { padding: 7px 11px; color: var(--muted); transition: background-color 0.2s, color 0.2s; }
.lang a:hover { color: var(--text); }
.lang a.is-active { background: var(--accent); color: var(--accent-ink); font-weight: 500; }
.nav-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line-strong); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); transition: transform 0.25s, opacity 0.2s; }
.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; padding-top: calc(var(--header-h) + 32px); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #0c1117; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; filter: saturate(0.75) contrast(1.05); }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 13, 18, 0.97) 0%, rgba(10, 13, 18, 0.86) 36%, rgba(10, 13, 18, 0.35) 72%, rgba(10, 13, 18, 0.55) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(10, 13, 18, 0) 38%, rgba(10, 13, 18, 0.5) 100%);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 1; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 75%);
  mask-image: linear-gradient(90deg, transparent 20%, #000 75%);
}
.hud { position: absolute; z-index: 2; color: var(--scan); }
.hud i {
  position: absolute; inset: 0;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 18px 2px, linear-gradient(currentColor, currentColor) 0 0 / 2px 18px,
    linear-gradient(currentColor, currentColor) 100% 0 / 18px 2px, linear-gradient(currentColor, currentColor) 100% 0 / 2px 18px,
    linear-gradient(currentColor, currentColor) 0 100% / 18px 2px, linear-gradient(currentColor, currentColor) 0 100% / 2px 18px,
    linear-gradient(currentColor, currentColor) 100% 100% / 18px 2px, linear-gradient(currentColor, currentColor) 100% 100% / 2px 18px;
  background-repeat: no-repeat;
  animation: hud-pulse 3.2s ease-in-out infinite;
}
.hud b { position: absolute; left: 0; bottom: calc(100% + 6px); font: 500 0.68rem/1 var(--font-mono); letter-spacing: 0.12em; white-space: nowrap; background: rgba(10, 13, 18, 0.7); padding: 5px 7px; }
.hud-a { right: 27%; top: 24%; width: 190px; height: 170px; }
.hud-b { right: 7%; top: 47%; width: 160px; height: 140px; color: var(--accent); }
.hud-b i { animation-delay: 1.4s; }
.scan { position: absolute; left: 45%; right: 0; top: 0; height: 2px; z-index: 2; background: linear-gradient(90deg, transparent, var(--scan) 30%, var(--scan) 70%, transparent); opacity: 0.55; box-shadow: 0 0 18px 2px rgba(69, 217, 255, 0.35); animation: scan 7s linear infinite; }
@keyframes scan { 0% { transform: translateY(12vh); opacity: 0; } 8% { opacity: 0.55; } 92% { opacity: 0.55; } 100% { transform: translateY(88vh); opacity: 0; } }
@keyframes hud-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.hero-inner { padding-block: 24px 44px; }
.eyebrow { font: 500 0.8rem/1.4 var(--font-mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--accent); flex-shrink: 0; }
.hero h1 { font-size: clamp(2.2rem, 5.4vw, 4.4rem); font-weight: 700; line-height: 1.14; text-transform: uppercase; letter-spacing: 0.005em; max-width: 13em; }
.hero-line { display: block; }
.hero-line.accent { color: var(--accent); }
.hero-lead { margin-top: 22px; max-width: 58ch; font-size: clamp(1rem, 1.5vw, 1.15rem); color: #c6d0dc; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-strong); }
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 22px 24px 28px 0; position: relative; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat::before { content: ""; position: absolute; top: -1px; left: 0; width: 28px; height: 2px; background: var(--accent); }
.stat + .stat::before { left: 24px; }
.stat dd { font: 700 clamp(1.6rem, 2.8vw, 2.3rem)/1.1 var(--font-head); color: var(--text); white-space: nowrap; }
.stat dt { font-size: 0.88rem; line-height: 1.45; color: var(--muted); max-width: 24ch; }

/* ---------- sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { margin-bottom: clamp(36px, 5vw, 60px); max-width: 860px; }
.tag { display: flex; align-items: center; gap: 12px; font: 500 0.78rem/1 var(--font-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.tag-index { color: var(--dim); }
.tag-line { width: 44px; height: 1px; background: var(--accent); }
.section-head h2 { font-size: clamp(1.75rem, 3.7vw, 2.9rem); font-weight: 700; line-height: 1.22; }
.image-note { margin: calc(-1 * clamp(16px, 3vw, 36px)) 0 clamp(28px, 4vw, 44px); font: 500 0.74rem/1.5 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.image-note::before { content: "// "; color: var(--accent); }
.section-lead { margin-top: 18px; color: var(--muted); font-size: 1.06rem; max-width: 64ch; }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* corner brackets shared by cards */
.cap, .purpose-card, .goal, .form, .origin-result { position: relative; }
.cap::before, .purpose-card::before, .goal::before, .form::before, .origin-result::before {
  content: ""; position: absolute; top: -1px; left: -1px; width: 22px; height: 22px;
  border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); pointer-events: none;
}
.cap::after, .purpose-card::after, .form::after {
  content: ""; position: absolute; bottom: -1px; right: -1px; width: 22px; height: 22px;
  border-bottom: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong); pointer-events: none;
}

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.about-text p { color: #c3cdd9; }
.about-text p + p { margin-top: 18px; }
.about-text p:first-child { font-size: 1.1rem; color: var(--text); }
.about-text h3 { margin: 40px 0 16px; font-size: 1.3rem; display: flex; align-items: center; gap: 14px; }
.about-text h3::before { content: ""; width: 10px; height: 10px; background: var(--accent); flex-shrink: 0; }
.frame { position: relative; border: 1px solid var(--line-strong); }
.frame img { width: 100%; height: auto; }
.frame-corners, .vcard-corners {
  position: absolute; inset: 10px; pointer-events: none; color: var(--scan);
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 16px 2px, linear-gradient(currentColor, currentColor) 0 0 / 2px 16px,
    linear-gradient(currentColor, currentColor) 100% 0 / 16px 2px, linear-gradient(currentColor, currentColor) 100% 0 / 2px 16px,
    linear-gradient(currentColor, currentColor) 0 100% / 16px 2px, linear-gradient(currentColor, currentColor) 0 100% / 2px 16px,
    linear-gradient(currentColor, currentColor) 100% 100% / 16px 2px, linear-gradient(currentColor, currentColor) 100% 100% / 2px 16px;
  background-repeat: no-repeat;
}
.origin { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; margin-top: 20px; }
.origin-node, .origin-result { border: 1px solid var(--line); background: var(--panel); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.origin strong { font-family: var(--font-head); font-size: 1.02rem; }
.origin span { font-size: 0.85rem; line-height: 1.45; color: var(--muted); }
.origin-plus { align-self: center; font: 500 1.4rem/1 var(--font-mono); color: var(--accent); }
.origin-result { grid-column: 1 / -1; margin-top: 22px; background: var(--panel-2); border-color: var(--line-strong); }
.origin-result::after { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 22px; background: var(--accent); }
.origin-result strong { color: var(--accent); font-size: 1.15rem; }

/* ---------- capabilities ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cap { background: var(--panel); border: 1px solid var(--line); padding: 28px 24px 30px; transition: border-color 0.25s, transform 0.25s, background-color 0.25s; }
.cap:hover { border-color: var(--line-strong); background: var(--panel-2); transform: translateY(-4px); }
.cap-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.cap-icon { color: var(--accent); }
.cap-icon svg { width: 48px; height: 48px; stroke-width: 1.6; }
.cap-no { font: 500 0.8rem/1 var(--font-mono); color: var(--dim); letter-spacing: 0.1em; }
.cap h3 { font-size: 1.2rem; margin-bottom: 12px; }
.cap p { color: var(--muted); font-size: 0.95rem; }
.cap ul { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line-strong); display: grid; gap: 9px; }
.cap li, .purpose-card li, .vcard li, .challenge li { position: relative; padding-left: 18px; }
.cap li { font-size: 0.9rem; color: #c3cdd9; }
.cap li::before, .purpose-card li::before, .vcard li::before, .challenge li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; background: var(--accent); }

.process { margin-top: clamp(48px, 6vw, 72px); }
.process h3 { font-size: 1.3rem; margin-bottom: 28px; }
.process ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: none; }
.process li { position: relative; padding: 26px 20px 0 0; display: flex; flex-direction: column; gap: 6px; }
.process li::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.process li::after { content: ""; position: absolute; top: 0; left: 0; width: 11px; height: 11px; background: var(--bg-2); border: 2px solid var(--accent); }
.step-no { font: 500 0.75rem/1 var(--font-mono); color: var(--accent); letter-spacing: 0.12em; }
.process strong { font-family: var(--font-head); font-size: 1.1rem; font-weight: 600; }
.process li span:last-child { font-size: 0.88rem; line-height: 1.5; color: var(--muted); }

/* ---------- mission / vision / goals ---------- */
.purpose { overflow: hidden; }
.purpose-bg { position: absolute; top: 0; right: 0; height: 100%; width: min(46vw, 640px); object-fit: cover; opacity: 0.2; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); }
.purpose .wrap { position: relative; }
.purpose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.purpose-card { background: rgba(19, 26, 35, 0.86); border: 1px solid var(--line); padding: clamp(24px, 3.4vw, 40px); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.purpose-card h3 { font-size: 0.82rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.purpose-main { font-family: var(--font-head); font-size: clamp(1.1rem, 1.7vw, 1.32rem); line-height: 1.5; color: var(--text); }
.purpose-card ul { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--line-strong); display: grid; gap: 12px; }
.purpose-card li { color: #c3cdd9; font-size: 0.96rem; }
.goals-title { margin: clamp(48px, 6vw, 72px) 0 24px; font-size: 1.3rem; }
.goals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.goal { background: rgba(19, 26, 35, 0.86); border: 1px solid var(--line); padding: 28px 26px 30px; }
.goal-no { font: 700 2.4rem/1 var(--font-head); color: transparent; -webkit-text-stroke: 1px var(--accent); display: block; margin-bottom: 18px; }
.goal h4 { font-size: 1.12rem; margin-bottom: 10px; }
.goal p { color: var(--muted); font-size: 0.95rem; }

/* ---------- robot projects ---------- */
.project { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4.5vw, 64px); align-items: center; padding-block: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); }
.project:first-of-type { border-top: 0; padding-top: 0; }
.project:last-of-type { padding-bottom: 0; }
.project.is-flip .project-info { order: 2; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font: 500 0.76rem/1.3 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.project-no { background: var(--accent); color: var(--accent-ink); padding: 5px 9px; letter-spacing: 0.08em; }
.project-meta span + span + span::before { content: "/"; margin-right: 14px; color: var(--dim); }
.project h3 { font-size: clamp(1.35rem, 2.3vw, 1.8rem); margin-bottom: 24px; }
.spec { border-top: 1px solid var(--line-strong); }
.spec > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.spec dt { font: 500 0.74rem/1.6 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); padding-top: 2px; }
.spec dd { color: #d5dde7; font-size: 0.97rem; }
.challenge { margin-top: 22px; padding: 20px 22px; background: var(--panel); border-left: 2px solid var(--accent); }
.challenge h4 { font: 500 0.76rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.challenge p { font-size: 0.95rem; color: var(--text); margin-bottom: 10px; }
.challenge ul { display: grid; gap: 7px; }
.challenge li { font-size: 0.92rem; color: #c3cdd9; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery figure { overflow: hidden; border: 1px solid var(--line); background: var(--panel); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery-2 { grid-template-columns: 1fr; }
.gallery-2 figure { aspect-ratio: 2 / 1; }
.g-india { grid-template-columns: 0.8fr 1.2fr; }
.g-india figure:nth-child(2) { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; }
.g-india figure:nth-child(1), .g-india figure:nth-child(3) { grid-column: 2; }

/* ---------- vision ---------- */
#vision { padding-top: 0; }
.vision-banner { position: relative; height: clamp(180px, 26vw, 320px); margin-bottom: clamp(48px, 7vw, 88px); overflow: hidden; }
.vision-banner img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; filter: saturate(0.8); }
.vision-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 2%, rgba(10, 13, 18, 0.35) 55%, rgba(10, 13, 18, 0.7) 100%), repeating-linear-gradient(0deg, rgba(10, 13, 18, 0.28) 0 1px, transparent 1px 4px); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 8px 16px; background: transparent; border: 1px solid var(--line-strong); color: var(--muted); font: 500 0.92rem/1.2 var(--font-body); cursor: pointer; transition: border-color 0.2s, color 0.2s, background-color 0.2s; }
.chip span { font: 500 0.72rem/1 var(--font-mono); color: var(--dim); }
.chip:hover { color: var(--text); border-color: var(--muted); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip.is-active span { color: var(--accent-ink); }
.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vcard { background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color 0.25s, transform 0.25s; }
.vcard[hidden] { display: none; }
.vcard:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.vcard-media { position: relative; aspect-ratio: 5 / 3; overflow: hidden; background: #05070a; border-bottom: 1px solid var(--line); }
.vcard-media img { width: 100%; height: 100%; object-fit: cover; }
.vcard-corners { opacity: 0; transform: scale(1.06); transition: opacity 0.25s, transform 0.25s; }
.vcard:hover .vcard-corners { opacity: 1; transform: none; }
.vcard-id { position: absolute; left: 0; top: 0; background: rgba(10, 13, 18, 0.82); color: var(--scan); font: 500 0.68rem/1 var(--font-mono); letter-spacing: 0.1em; padding: 6px 8px; }
.vcard-metric { position: absolute; right: 0; bottom: 0; background: var(--accent); color: var(--accent-ink); font: 500 0.78rem/1 var(--font-mono); padding: 7px 10px; }
.vcard-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.vcard-cat { font: 500 0.7rem/1.3 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--scan); }
.vcard h3 { font-size: 1.1rem; line-height: 1.35; }
.vcard ul { display: grid; gap: 7px; }
.vcard li { font-size: 0.9rem; line-height: 1.55; color: var(--muted); padding-left: 16px; }
.vcard li::before { width: 5px; height: 5px; top: 0.65em; background: var(--dim); }
.vmore { margin-top: 36px; display: flex; justify-content: center; }

/* ---------- clients ---------- */
.logos { --cols: 5; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.logos li { flex: 0 0 calc((100% - (var(--cols) - 1) * 12px) / var(--cols)); background: #fff; aspect-ratio: 16 / 9; display: grid; place-items: center; padding: 14px 18px; border-bottom: 3px solid transparent; transition: transform 0.25s, border-color 0.25s; }
.logos li:hover { transform: translateY(-3px); border-bottom-color: var(--accent); }
.logos img { max-height: 58px; max-width: 100%; width: auto; object-fit: contain; }

/* ---------- contact ---------- */
.contact { background: radial-gradient(900px 420px at 85% 0%, rgba(255, 122, 47, 0.13), transparent 70%), var(--bg); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-list { display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); background: var(--panel); }
.contact-icon { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); }
.contact-icon svg { width: 22px; height: 22px; stroke-width: 1.8; }
.contact-label { display: block; font: 500 0.72rem/1 var(--font-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-bottom: 8px; }
.contact-list a, .contact-list address { font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--accent); }
.contact-list .contact-map { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font: 500 0.88rem/1.3 var(--font-body); color: var(--accent); }
.contact-map svg { width: 16px; height: 16px; }
.form { background: var(--panel); border: 1px solid var(--line); padding: clamp(24px, 3.4vw, 40px); display: grid; gap: 18px; }
.form h3 { font-size: 1.35rem; margin-bottom: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 8px; font-size: 0.86rem; font-weight: 500; color: var(--muted); }
.form input, .form textarea { width: 100%; background: var(--bg); border: 1px solid var(--line-strong); color: var(--text); font: inherit; font-size: 1rem; font-weight: 400; padding: 13px 14px; border-radius: 0; transition: border-color 0.2s; }
.form textarea { resize: vertical; min-height: 130px; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); }
.form ::placeholder { color: var(--dim); }
.form .btn { justify-self: start; }
.form-note { font-size: 0.82rem; color: var(--dim); }

/* ---------- footer ---------- */
.site-footer { background: #07090d; border-top: 1px solid var(--line); padding-top: 64px; font-size: 0.93rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.8fr 1.1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand { display: flex; gap: 20px; align-items: flex-start; }
.footer-logo { background: #fff; padding: 10px; flex-shrink: 0; width: 112px; }
.footer-logo img { width: 100%; }
.footer-name { font-family: var(--font-head); font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.site-footer h2 { font: 500 0.74rem/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid var(--line); font-size: 0.84rem; color: var(--dim); }
.fab { display: none; }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 16px; padding: 48px 24px; max-width: 640px; margin-inline: auto; }
.notfound-code { font: 700 clamp(5rem, 20vw, 9rem)/1 var(--font-head); color: transparent; -webkit-text-stroke: 2px var(--accent); margin-top: 32px; }
.notfound h1 { font-size: 1.8rem; }
.notfound p { color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1140px) {
  .header-cta { display: none; }
  .nav a { padding-inline: 9px; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .logos { --cols: 4; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; top: var(--header-h); left: 0; right: 0; margin: 0; background: rgba(10, 13, 18, 0.97); border-bottom: 1px solid var(--line); display: none; }
  .is-open .nav { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  .nav a { padding: 14px 0; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .header-tools { margin-left: auto; }
  .hud, .scan { display: none; }
  .hero-media::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(10, 13, 18, 0.82) 45%, rgba(10, 13, 18, 0.72) 100%); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(3)::before { left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .about-grid, .purpose-grid, .contact-grid, .project { grid-template-columns: 1fr; }
  .project.is-flip .project-info { order: 0; }
  .goals { grid-template-columns: 1fr; }
  .vgrid { grid-template-columns: repeat(2, 1fr); }
  .process ol { grid-template-columns: 1fr; }
  .process li { padding: 0 0 26px 30px; }
  .process li::before { top: 0; bottom: 0; left: 5px; right: auto; width: 1px; height: auto; }
  .process li:last-child { padding-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .purpose-bg { width: 100%; opacity: 0.1; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .wrap { padding-inline: 18px; }
  .brand img { width: 38px; height: 38px; }
  .brand-text strong { font-size: 1rem; }
  .brand-text small { font-size: 0.55rem; letter-spacing: 0.28em; }
  .header-inner { gap: 12px; }
  .header-tools { gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .stat { padding: 20px 12px 24px 0; }
  .stat + .stat { padding-left: 16px; }
  .stat + .stat::before { left: 16px; }
  .stat:nth-child(3) { padding-left: 0; }
  .cap-grid, .vgrid { grid-template-columns: 1fr; }
  .logos { --cols: 2; }
  .origin { grid-template-columns: 1fr; }
  .origin-plus { justify-self: center; }
  .spec > div { grid-template-columns: 1fr; gap: 2px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { flex-direction: column; }
  .fab { display: grid; place-items: center; position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 54px; height: 54px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
  .fab svg { width: 24px; height: 24px; }
  .site-footer { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .scan { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
