/* ==========================================================
   Engineering House — main stylesheet
   ========================================================== */

:root {
  --blue: #1170BA;
  --blue-dark: #0B5A98;
  --blue-deep: #0B3F6B;
  --sky: #5AB8F0;
  --sky-soft: #8EC5EF;
  --cyan: #1FA2D6;
  --indigo: #4F5BD5;
  --teal: #16968C;
  --green: #7FD3A8;
  --navy: #071A2F;
  --navy-2: #0B1B2E;
  --ink: #0F1C2B;
  --ink-2: #22324A;
  --muted: #4A5A6E;
  --muted-dark: #A9B8CA;
  --line: #DCE7F3;
  --tint: #F3F8FE;
  --white: #ffffff;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(11, 27, 46, 0.07);
  --shadow-hover: 0 24px 50px rgba(17, 112, 186, 0.18);
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --container: 1240px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { margin: 0; font-family: var(--font-head); letter-spacing: -0.02em; }
p { margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 30px; border-radius: 999px; font-size: 17px; font-weight: 600;
  border: 1.5px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 10px 30px rgba(17,112,186,.55); }
.btn-primary:hover { background: #1580D2; color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.3); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: var(--white); }
.btn-white { background: var(--white); color: var(--blue-deep); font-weight: 700; }
.btn-white:hover { color: var(--blue); }
.btn-sm { padding: 12px 22px; font-size: 15px; box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 26, 47, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 42px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 21px; color: var(--white); letter-spacing: -0.01em; }
.brand-sub { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: var(--sky-soft); margin-top: 5px; }

.main-nav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 500; }
.main-nav a { color: #DCE6F2; padding: 6px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover { color: var(--white); }
.main-nav a.active { color: var(--white); border-bottom-color: var(--sky); }
.nav-cta { display: none; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.2); background: transparent; color: var(--white); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background-color: var(--navy);
  background-image:
    radial-gradient(720px circle at 82% 38%, rgba(17,112,186,.55), transparent 62%),
    radial-gradient(560px circle at 6% 96%, rgba(43,179,230,.28), transparent 60%),
    radial-gradient(420px circle at 45% -10%, rgba(94,92,230,.25), transparent 60%);
}
.hero-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 96px; padding-bottom: 112px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .14em; color: var(--blue); text-transform: uppercase; }
.hero .eyebrow { color: var(--sky-soft); }
.hero h1 { font-weight: 700; font-size: clamp(44px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; }
.hero h1 .accent { color: var(--sky); }
.hero-lead { font-size: 20px; line-height: 1.55; color: #C3D1E0; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* hub diagram */
.hub-wrap { flex: 1 1 460px; min-width: 0; display: flex; justify-content: center; }
.hub { position: relative; width: 100%; max-width: 540px; aspect-ratio: 1 / 0.92; }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.hub-lines path { animation: flow 4s linear infinite; }
.hub-ring { position: absolute; left: 50%; top: 50%; width: 76%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px solid rgba(90,169,230,.18); }
.hub-pulse { position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; border-radius: 50%; border: 2px solid var(--sky); animation: pulse 3s ease-out infinite; }
.hub-core {
  position: absolute; left: 50%; top: 50%; width: 42%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, #1A6FB8, #0B3A66 70%);
  border: 1.5px solid rgba(90,184,240,.7);
  box-shadow: 0 0 60px rgba(43,179,230,.45), 0 0 0 14px rgba(17,112,186,.14), 0 0 0 30px rgba(17,112,186,.07);
}
.hub-core img { width: 58%; height: auto; }
.hub-node {
  position: absolute; background: var(--white); color: var(--ink); border-radius: 16px;
  padding: 14px 20px 14px 14px; display: flex; align-items: center; gap: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35); white-space: nowrap;
  animation: float 6s ease-in-out infinite; transition: box-shadow .2s ease;
}
.hub-node:hover { color: var(--ink); box-shadow: 0 18px 40px rgba(0,0,0,.35), 0 0 0 3px var(--sky); }
.hub-node.n1 { left: 0; right: 0; margin: 0 auto; width: max-content; top: 0; }
.hub-node.n2 { left: 0; bottom: 2%; animation-delay: -2s; }
.hub-node.n3 { right: 0; bottom: 2%; animation-delay: -4s; }
.node-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--blue); display: flex; align-items: center; justify-content: center; flex: none; }
.node-icon svg { width: 22px; height: 22px; }
.node-text { display: flex; flex-direction: column; gap: 3px; }
.node-text strong { font-size: 17px; }
.node-text span { font-size: 13px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 120px 0; }
.section-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 56px; }
.section-head.center { align-items: center; text-align: center; }
.section-head h2 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.08; letter-spacing: -0.03em; max-width: 780px; }
.section-head p { font-size: 18px; color: var(--muted); }

.bg-dots {
  background-color: var(--tint);
  background-image:
    radial-gradient(600px circle at 0% 0%, rgba(43,179,230,.14), transparent 60%),
    radial-gradient(700px circle at 100% 100%, rgba(17,112,186,.14), transparent 60%),
    radial-gradient(rgba(17,112,186,.10) 1.2px, transparent 1.2px);
  background-size: auto, auto, 24px 24px;
}
.bg-dark {
  color: var(--white);
  background-color: var(--navy);
  background-image:
    radial-gradient(640px circle at 90% 10%, rgba(17,112,186,.5), transparent 60%),
    radial-gradient(520px circle at 0% 100%, rgba(31,162,214,.3), transparent 60%);
}
.bg-dark .eyebrow { color: var(--sky-soft); }

/* ---------- Service cards ---------- */
.cards { display: flex; flex-wrap: wrap; gap: 28px; }
.card {
  flex: 1 1 340px; min-width: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); }
.card-visual { height: 240px; display: flex; align-items: center; justify-content: center; border-top: 5px solid var(--blue); }
.card-visual svg { width: 88%; height: 200px; }
.card-visual.v-blue { background: linear-gradient(135deg, #DDEEFC 0%, #BFDDF7 100%); border-top-color: var(--blue); }
.card-visual.v-cyan { background: linear-gradient(135deg, #DDF4F9 0%, #B9E5F2 100%); border-top-color: var(--cyan); }
.card-visual.v-indigo { background: linear-gradient(135deg, #E5E8FC 0%, #CBD3F6 100%); border-top-color: var(--indigo); }
.card-visual.short { height: 200px; }
.card-visual.short svg { width: 70%; height: 150px; }
.card-body { padding: 32px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.card-body h3 { font-size: 28px; }
.card-body p { font-size: 17px; color: var(--muted); }
.card-link { margin-top: auto; padding-top: 12px; font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; }
.card-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
.card-link:hover svg { transform: translateX(4px); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; font-size: 13px; font-weight: 700; }
.tag { background: #DDF4F9; color: #0B5E7E; padding: 7px 12px; border-radius: 999px; }
.tag.dark { background: var(--navy-2); color: var(--white); }

/* ---------- Industries ---------- */
.tiles { display: flex; flex-wrap: wrap; gap: 20px; }
.tile {
  flex: 1 1 250px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 22px;
  transition: transform .25s ease, background .25s ease;
}
.tile:hover { transform: translateY(-6px); background: rgba(255,255,255,.1); }
.tile-icon { width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(0,0,0,.3); }
.tile-icon svg { width: 30px; height: 30px; }
.tile-icon.c1 { background: linear-gradient(135deg, #2B8BE0, #1170BA); }
.tile-icon.c2 { background: linear-gradient(135deg, #2BC0E6, #1288B8); }
.tile-icon.c3 { background: linear-gradient(135deg, #7A84F0, #4F5BD5); }
.tile-icon.c4 { background: linear-gradient(135deg, #3FD0C0, #16968C); }
.tile h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }

/* ---------- Steps ---------- */
.steps { display: flex; flex-wrap: wrap; gap: 32px; }
.step { flex: 1 1 220px; display: flex; flex-direction: column; gap: 16px; }
.step-top { display: flex; align-items: center; gap: 14px; }
.step-num {
  width: 56px; height: 56px; border-radius: 50%; flex: none; color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #2BB3E6, var(--blue)); box-shadow: 0 8px 20px rgba(17,112,186,.35);
}
.step-num.done { background: var(--navy-2); box-shadow: none; }
.step-num svg { width: 24px; height: 24px; }
.step-line { height: 3px; flex-grow: 1; border-radius: 2px; background: linear-gradient(90deg, var(--sky), rgba(90,184,240,.1)); }
.step h3 { font-family: var(--font-body); font-size: 22px; font-weight: 700; letter-spacing: 0; }
.step p { font-size: 17px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-section { padding: 120px 0 0; background: linear-gradient(180deg, #ffffff 0%, #EEF5FC 100%); }
.cta {
  position: relative; overflow: hidden; border-radius: 28px; color: var(--white);
  padding: 72px 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 48px;
  background-color: var(--blue);
  background-image:
    radial-gradient(520px circle at 100% 0%, rgba(90,184,240,.55), transparent 60%),
    radial-gradient(480px circle at 0% 100%, rgba(11,58,102,.7), transparent 60%);
  box-shadow: 0 30px 70px rgba(17,112,186,.35);
}
.cta-watermark { position: absolute; right: -40px; top: -30px; width: 340px; height: auto; opacity: .08; pointer-events: none; }
.cta-copy { flex: 1 1 460px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.cta-copy h2 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
.cta-copy p { font-size: 20px; color: #D6E8F8; }
.cta-actions { flex: 0 1 380px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.cta-actions .btn { justify-content: space-between; font-size: 18px; }
.cta-actions .btn.btn-ghost { justify-content: flex-start; border-color: rgba(255,255,255,.45); }

/* ---------- Contact ---------- */
.contact-section { padding: 120px 0; background: #EEF5FC; }
.contact-grid { display: flex; flex-wrap: wrap; gap: 48px; }
.contact-info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.contact-info h2 { font-size: clamp(32px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.03em; }
.info-list { display: flex; flex-direction: column; gap: 18px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-icon { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--white); color: var(--blue); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); }
.info-icon svg { width: 22px; height: 22px; }
.info-item div { display: flex; flex-direction: column; gap: 3px; }
.info-item strong { font-size: 16px; }
.info-item span, .info-item a { font-size: 16px; color: var(--muted); }
.info-item a:hover { color: var(--blue); }

.contact-form {
  flex: 1 1 520px; min-width: 0; background: var(--white); border-radius: var(--radius); padding: 40px;
  box-shadow: 0 20px 50px rgba(11,27,46,.08); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 20px;
}
.form-row { display: flex; flex-wrap: wrap; gap: 20px; }
.field { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--ink);
  padding: 14px 16px; border: 1.5px solid #C9D5E2; border-radius: 12px; background: var(--white);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(17,112,186,.15); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; justify-content: space-between; }
.form-note { font-size: 14px; color: var(--muted); }
.form-status { font-size: 15px; font-weight: 600; padding: 14px 16px; border-radius: 12px; display: none; }
.form-status.ok { display: block; background: #E5F7EE; color: #156A43; }
.form-status.err { display: block; background: #FDECEC; color: #A32020; }
.contact-form button[disabled] { opacity: .6; cursor: wait; transform: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--muted-dark); }
.footer-inner { padding-top: 64px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 44px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 340px; }
.footer-brand p { font-size: 15px; line-height: 1.6; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 64px; font-size: 15px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col strong { color: var(--white); font-weight: 600; }
.footer-col a { color: var(--muted-dark); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; }
.footer-bottom a { color: var(--muted-dark); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Lab page ---------- */
.page-hero { position: relative; overflow: hidden; color: var(--white); background-color: var(--navy);
  background-image:
    radial-gradient(640px circle at 85% 40%, rgba(31,162,214,.45), transparent 62%),
    radial-gradient(520px circle at 5% 100%, rgba(17,112,186,.45), transparent 60%);
}
.page-hero .hero-inner { padding-top: 72px; padding-bottom: 96px; }
.page-hero h1 { font-size: clamp(42px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.035em; }
.page-hero h1 .accent { color: var(--sky); }
.breadcrumb { font-size: 14px; color: #8FA3BA; }
.breadcrumb a { color: #8FA3BA; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: var(--white); }
.lab-visual { flex: 1 1 460px; min-width: 0; display: flex; justify-content: center; }
.lab-visual svg { width: 100%; max-width: 520px; height: auto; }
.wave { stroke-dasharray: 400; animation: wave 5s linear infinite; }

.slab {
  border-radius: 28px; color: var(--white); padding: 64px; display: flex; flex-wrap: wrap; align-items: center; gap: 48px;
  background-color: var(--navy-2);
  background-image:
    radial-gradient(560px circle at 100% 0%, rgba(17,112,186,.6), transparent 60%),
    radial-gradient(420px circle at 0% 100%, rgba(31,162,214,.3), transparent 60%);
  box-shadow: 0 30px 70px rgba(11,27,46,.25);
}
.slab-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.badge { align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--navy-2); background: var(--sky); padding: 7px 14px; border-radius: 999px; }
.slab-copy h2 { font-size: clamp(64px, 8vw, 96px); line-height: .95; letter-spacing: -0.04em; }
.slab-copy p { font-size: 20px; line-height: 1.55; color: #C3D1E0; max-width: 480px; }
.slab-copy .btn { align-self: flex-start; margin-top: 8px; }
.slab-features { flex: 1 1 360px; min-width: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.slab-feature { flex: 1 1 160px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.slab-feature svg { width: 30px; height: 30px; }
.slab-feature span { font-size: 18px; font-weight: 600; }

.kicker { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; color: var(--ink-2); }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks svg { width: 18px; height: 18px; flex: none; }

.instruments { margin-top: 80px; display: flex; flex-direction: column; gap: 24px; }
.instruments h3 { font-size: 28px; text-align: center; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.chip { display: flex; align-items: center; gap: 10px; background: var(--tint); border: 1px solid var(--line); padding: 12px 18px; border-radius: 12px; }
.chip i { width: 10px; height: 10px; border-radius: 3px; background: var(--blue); }
.chip:nth-child(4n+2) i { background: var(--cyan); }
.chip:nth-child(4n+3) i { background: var(--indigo); }
.chip:nth-child(4n+4) i { background: var(--teal); }
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding-top: 12px; font-size: 15px; color: var(--muted); }
.platforms strong { color: var(--ink); }
.platforms .sep { color: #C3CFDC; }

/* ---------- 404 ---------- */
.not-found { min-height: 70vh; display: flex; align-items: center; }
.not-found .hero-copy { align-items: flex-start; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes flow { to { stroke-dashoffset: -90; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(.85); opacity: .7; }
  100% { transform: translate(-50%, -50%) scale(1.35); opacity: 0; }
}
@keyframes wave { to { stroke-dashoffset: -400; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 8px 32px 24px; display: none;
  }
  .main-nav a { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 17px; }
  .main-nav a.active { border-bottom-color: rgba(255,255,255,.08); color: var(--sky); }
  .main-nav .nav-cta { display: inline-flex; margin-top: 20px; border-bottom: 0; color: var(--white); }
  .site-header.open .main-nav { display: flex; }
  .site-header.open .icon-open { display: none; }
  .site-header.open .icon-close { display: block; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .hero-inner { padding-top: 64px; padding-bottom: 80px; gap: 48px; }
  .hero-lead { font-size: 18px; }
  .btn { padding: 16px 24px; font-size: 16px; }
  .hub-node { padding: 10px 14px 10px 10px; gap: 10px; border-radius: 12px; }
  .node-icon { width: 34px; height: 34px; border-radius: 9px; }
  .node-icon svg { width: 18px; height: 18px; }
  .node-text strong { font-size: 14px; }
  .node-text span { font-size: 11px; }
  .cta { padding: 48px 28px; }
  .cta-section { padding-top: 80px; }
  .slab { padding: 40px 28px; }
  .contact-section { padding: 80px 0; }
  .contact-form { padding: 28px 22px; }
  .main-nav { padding: 8px 20px 24px; }
  .brand-sub { display: none; }
}

/* ---------- Text pages (privacy) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 40px 0 12px; }
.prose p { font-size: 17px; line-height: 1.7; color: var(--ink-2); margin-bottom: 12px; }

/* fixes */
.contact-form > .field { flex: none; }
@media (max-width: 520px) {
  .hub-node .node-text span { display: none; }
  .hub-node { padding: 8px 12px 8px 8px; }
  .hub { aspect-ratio: 1 / 0.86; }
}

/* ---------- Language switch ---------- */
.header-right { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.lang-switch a { color: #C3D1E0; font-size: 13px; font-weight: 700; letter-spacing: .04em; padding: 7px 12px; border-radius: 999px; line-height: 1; }
.lang-switch a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.lang-switch a.active { background: var(--white); color: var(--navy); }
.lang-switch-mobile { display: none; }
@media (max-width: 1080px) {
  .header-right .lang-switch { display: none; }
  .main-nav .lang-switch-mobile { display: flex; align-self: flex-start; margin-top: 20px; }
  .main-nav .lang-switch-mobile a { padding: 10px 16px; font-size: 15px; border-bottom: 0; }
}

/* hub labels never collide (longer RU / HY words wrap) */
.hub-node.n2, .hub-node.n3 { max-width: 49%; white-space: normal; }
.hub-node.n1 { max-width: 80%; white-space: normal; }

/* ---------- Russian & Armenian typography ---------- */
html[lang="ru"] { --font-head: "Inter", system-ui, sans-serif; }
html[lang="hy"] {
  --font-body: "Noto Sans Armenian", "Inter", system-ui, sans-serif;
  --font-head: "Noto Sans Armenian", "Inter", system-ui, sans-serif;
}
html[lang="ru"] .hero h1 { font-size: clamp(36px, 5vw, 62px); }
html[lang="hy"] .hero h1 { font-size: clamp(30px, 4.4vw, 54px); line-height: 1.12; letter-spacing: -0.02em; }
html[lang="ru"] .page-hero h1 { font-size: clamp(34px, 4.6vw, 56px); }
html[lang="hy"] .page-hero h1 { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.12; letter-spacing: -0.02em; }
html[lang="hy"] .section-head h2, html[lang="hy"] .cta-copy h2, html[lang="hy"] .contact-info h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.18; letter-spacing: -0.01em; }
html[lang="ru"] .section-head h2, html[lang="ru"] .cta-copy h2 { font-size: clamp(30px, 3.8vw, 48px); }
html[lang="hy"] .card-body h3, html[lang="ru"] .card-body h3 { font-size: 24px; }
html[lang="hy"] .tile h3, html[lang="ru"] .tile h3 { font-size: 21px; }
html[lang="hy"] .eyebrow, html[lang="hy"] .kicker, html[lang="hy"] .badge { letter-spacing: .06em; }
html[lang="hy"] .slab-copy h2, html[lang="ru"] .slab-copy h2 { font-family: "Space Grotesk", "Inter", sans-serif; }
@media (max-width: 520px) {
  .hub-node .node-text strong { font-size: 13px; line-height: 1.2; overflow-wrap: anywhere; }
  .hub-node { gap: 8px; padding: 8px 10px 8px 8px; }
  .node-icon { width: 30px; height: 30px; border-radius: 8px; }
  .node-icon svg { width: 16px; height: 16px; }
  html[lang="hy"] .eyebrow { font-size: 12px; }
}
@media (max-width: 520px) { html[lang="hy"] .hub-node .node-text strong { font-size: 12px; overflow-wrap: normal; } }
