/* ==========================================================================
   HCI Mercantile — hcimercantile.com
   Layout follows the Synaptic Vision site. Colour is limited to navy,
   bronze, and warm neutrals so every section reads at the same weight.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-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: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-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 {
  --navy-950: #08131f;
  --navy-900: #0e1c2d;
  --navy-800: #163049;
  --navy-700: #1e4060;
  --ink: #142033;
  --text: #3c4a5c;
  --muted: #5c6b7c;
  --line: #e3e6eb;
  --surface: #f5f6f8;
  --white: #ffffff;
  --bronze: #7a6240;
  --bronze-soft: #f6f1e8;
  --accent: var(--navy-800);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(14, 28, 45, .05), 0 1px 3px rgba(14, 28, 45, .06);
  --shadow: 0 12px 32px -16px rgba(14, 28, 45, .18);
  --shadow-lg: 0 28px 56px -24px rgba(14, 28, 45, .28);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font);
  --container: 1160px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; overflow-x: clip; }
html[data-hci-pending] body { visibility: hidden; }
html[lang^="zh"] body {
  font-family: "PingFang TC", "PingFang SC", "Noto Sans CJK TC", "Noto Sans CJK SC", "Noto Sans TC", "Noto Sans SC", "Microsoft JhengHei", "Microsoft YaHei", Inter, sans-serif;
}
body.nav-open { overflow: hidden; }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--navy-950); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.35rem, 4.8vw, 3.85rem); font-weight: 750; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.55rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid #c4b08a; outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.narrow { max-width: 740px; }
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 1000;
  background: var(--white); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid rgba(227, 230, 235, .9);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-solid {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 10px 30px -22px rgba(14, 28, 45, .4);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand img { width: auto; height: 42px; max-width: min(250px, 46vw); }
.brand-tag { font-size: .72rem; color: var(--muted); letter-spacing: .01em; line-height: 1.25; white-space: nowrap; }
.site-footer .brand { color: var(--white); align-items: flex-start; }
.site-footer .brand-tag { color: rgba(255, 255, 255, .62); }
.site-footer .brand img { height: 40px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { display: flex; list-style: none; gap: 2px; align-items: center; }
.nav a, .nav button.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 13px; border-radius: 10px;
  color: #334155;
  font-weight: 550; font-size: .94rem;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav a:hover, .nav button.nav-link:hover, .nav a[aria-current="page"] { color: var(--ink); background: #f1f3f6; }
.nav .chev { width: 10px; height: 10px; transition: transform .2s; }

.has-menu { position: relative; }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 560px; padding: 12px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; transition: all .2s var(--ease);
}
.mega.mega-narrow { width: 320px; grid-template-columns: 1fr; }
.has-menu:hover .mega, .has-menu:focus-within .mega, .has-menu.open .mega {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.has-menu:hover .chev, .has-menu.open .chev { transform: rotate(180deg); }
.nav .mega a {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px;
  color: var(--text); border-radius: 12px; white-space: normal;
}
.nav .mega a:hover, .nav .mega a[aria-current="page"] { background: var(--surface); color: var(--text); }
.mega strong { display: block; color: var(--ink); font-size: .94rem; margin-bottom: 2px; }
.mega span { display: block; font-size: .82rem; color: var(--muted); line-height: 1.45; }
.nav .mega .mega-icon {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  color: var(--navy-800); background: #eef2f6;
  border: 1px solid #e1e6ed;
}
.nav .mega .mega-icon svg { width: 20px; height: 20px; }
.nav .mega a:hover .mega-icon { color: var(--white); background: var(--navy-800); }

.nav-cta { margin-left: 8px; }
.lang-switch { position: relative; margin-left: 8px; }
.lang-switch-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
}
.lang-switch-btn svg { width: 16px; height: 16px; }
.lang-switch-btn .chev { width: 10px; height: 10px; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40;
  min-width: 168px; margin: 0; padding: 6px; list-style: none;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-lg);
}
.lang-menu[hidden] { display: none; }
.lang-menu button {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: .92rem; font-weight: 600; color: var(--ink);
  padding: 10px 12px; border-radius: 8px;
}
.lang-menu button[aria-selected="true"], .lang-menu button:hover { background: var(--surface); }
.nav .nav-cta a.btn-primary,
.nav .nav-cta a.btn-primary:hover,
.nav .nav-cta a.btn-primary[aria-current="page"] {
  color: var(--white);
  background: var(--navy-800);
}
.nav .nav-cta a.btn-primary:hover { background: var(--navy-900); }
.menu-toggle {
  display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--ink);
}
.menu-toggle svg { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: .96rem; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { color: var(--white); background: var(--navy-800); box-shadow: 0 10px 22px -12px rgba(22, 48, 73, .7); }
.btn-primary:hover { color: var(--white); background: var(--navy-900); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); border-color: #cfd5dd; background: var(--white); }
.btn-ghost:hover { color: var(--ink); border-color: #9aa6b4; transform: translateY(-1px); }
.cta .btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .35); background: transparent; }
.cta .btn-ghost:hover { color: var(--white); background: rgba(255, 255, 255, .08); }
.btn-sm { padding: 10px 16px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; color: var(--navy-800); }
.link-arrow::after { content: "→"; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }
.link-arrow:hover { color: var(--navy-950); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(22, 48, 73, .06), transparent 62%),
    linear-gradient(180deg, #f4f5f7 0%, #ffffff 72%);
  border-bottom: 1px solid var(--line);
  padding: calc(var(--header-h) + 72px) 0 88px;
}
.hero canvas.network { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .45; }
.hero-home { padding-bottom: 72px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero .lead { font-size: clamp(1.05rem, 1.4vw, 1.18rem); max-width: 640px; color: var(--text); }
.hero-home h1 { font-size: clamp(2.05rem, 3.5vw, 3.05rem); max-width: 14em; }
.hero-signoff {
  margin: .4em 0 .35em; font-family: var(--font-display); font-weight: 700;
  font-size: 1.05rem; color: var(--ink); letter-spacing: .01em;
}
.hero .btn-row { margin-top: 28px; }
.accent-text { color: var(--bronze); }
.hero-page { padding-bottom: 72px; }
.hero-page h1 { max-width: 16em; font-size: clamp(2.05rem, 3.4vw, 2.9rem); }
.hero-page .lead { max-width: 720px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--navy-700); }

.hero-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-panel img { width: 100%; height: 280px; object-fit: cover; }
.hero-panel-body { padding: 22px 24px 24px; }
.hero-panel-body strong {
  display: block; font-family: var(--font-display); color: var(--ink); font-size: 1.05rem; margin-bottom: 6px;
}
.hero-panel-body p { margin: 0; color: var(--muted); font-size: .92rem; }
.region-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.region-row span {
  font-size: .78rem; font-weight: 650; letter-spacing: .02em;
  padding: 5px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat { padding: 8px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .num {
  font-family: var(--font-display); font-weight: 800; color: var(--ink);
  font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1; letter-spacing: -.03em; margin-bottom: 8px;
}
.stat .num .unit { font-size: .55em; color: var(--bronze); margin-left: 2px; }
.stat .num.phrase { font-size: clamp(1.45rem, 2.2vw, 1.9rem); letter-spacing: -.03em; line-height: 1.15; }
.stat p { font-size: .9rem; color: var(--muted); margin: 0; }
.stat .k { display: block; font-weight: 650; color: var(--ink); margin-bottom: 2px; }

/* ---------- Trust ---------- */
.trust { padding: 32px 0; border-bottom: 1px solid var(--line); background: var(--white); }
.trust-heading {
  font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; letter-spacing: -.02em;
  color: var(--ink); margin: 0 0 18px; max-width: 28em;
}
.trust-items { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.trust-items span { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: #3e4c5e; font-size: .94rem; }
.trust-items svg { width: 18px; height: 18px; color: var(--navy-800); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 740px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.08rem; color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--bronze); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 8px; }
.card .topic { color: var(--navy-800); font-weight: 650; margin-bottom: 8px; }
.card .kicker {
  display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--bronze); margin-bottom: 10px;
}

.icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 18px;
  color: var(--navy-800); background: #eef2f6; border: 1px solid #e1e6ed;
}
.icon svg { width: 24px; height: 24px; }

.practice-card { display: flex; flex-direction: column; min-height: 100%; }
.practice-card .link-arrow { margin-top: auto; padding-top: 16px; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.photo {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  background: var(--surface);
}
.photo img { width: 100%; height: 420px; object-fit: cover; }
.photo figcaption { padding: 12px 16px 14px; font-size: .82rem; color: var(--muted); }
.photo figcaption strong { display: block; color: var(--ink); font-size: .95rem; margin-bottom: 4px; }

.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; color: var(--text); }
.checklist li strong { display: block; color: var(--ink); margin-bottom: 2px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: #eef2f6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23163049' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.checklist strong { color: var(--ink); }

.value-card h3 { font-size: 1.05rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose .standfirst { color: var(--ink); font-size: 1.2rem; font-weight: 650; line-height: 1.35; }
.prose h3 { margin-top: 1.2em; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
table.matrix { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 720px; }
.matrix th, .matrix td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.matrix thead th { background: var(--surface); font-family: var(--font-display); color: var(--ink); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.matrix tbody tr:last-child td { border-bottom: 0; }
.matrix td:first-child { font-weight: 650; color: var(--ink); }
.matrix a { font-weight: 650; }

.project { scroll-margin-top: calc(var(--header-h) + 20px); padding-top: 8px; }
.project + .project { margin-top: 22px; }
.metrics { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.metrics span {
  font-size: .8rem; font-weight: 650; padding: 6px 11px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}

.note {
  padding: 16px 18px; border-radius: var(--radius-sm);
  background: var(--bronze-soft); border: 1px solid #e6dccb; color: #3f3424; font-size: .92rem;
}
.note p:last-child { margin: 0; }

/* ---------- CTA ---------- */
.cta {
  border-radius: 24px; padding: 56px 52px;
  background: var(--navy-900);
  color: rgba(255, 255, 255, .82);
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta h2 { color: var(--white); margin-bottom: 10px; }
.cta p { margin: 0; font-size: 1.05rem; }
.cta p + p { margin-top: .75em; }
.cta .btn-row { justify-content: flex-end; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; display: grid; gap: 18px; margin-top: 8px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { margin: 0; width: 44px; height: 44px; flex: none; }
.contact-list strong { display: block; color: var(--ink); }
.contact-list p { margin: 0; color: var(--muted); font-size: .95rem; }
.form {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .86rem; font-weight: 650; color: var(--ink); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .96rem; padding: 12px 14px; border-radius: 10px;
  border: 1px solid #cfd5dd; background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(22, 48, 73, .1);
}
.field textarea { min-height: 130px; resize: vertical; }
.interest { display: flex; flex-wrap: wrap; gap: 8px; }
.interest label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: .86rem; font-weight: 550; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line);
}
.interest input { accent-color: var(--navy-800); }
.interest label:has(input:checked) { border-color: var(--navy-800); background: #eef2f6; color: var(--navy-900); }
.form-note { font-size: .8rem; color: var(--muted); margin: 12px 0 0; }
.form-success { padding: 14px 16px; border-radius: 10px; background: #eef2f6; color: var(--navy-900); font-weight: 650; margin-top: 14px; }
.form-success[hidden] { display: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .64); padding: 72px 0 28px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { margin-bottom: 16px; }
.site-footer h4 { color: var(--white); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: rgba(255, 255, 255, .68); }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem;
}
.footer-contact { display: grid; gap: 4px; margin-top: 16px; }
.footer-contact a { color: var(--white); font-weight: 650; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .06s; }
.reveal-d2 { transition-delay: .12s; }
.reveal-d3 { transition-delay: .18s; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --header-h: 68px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--white); padding: 8px 18px 24px; box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .25s var(--ease);
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav a, .nav button.nav-link { width: 100%; justify-content: space-between; }
  .mega, .mega.mega-narrow {
    position: static; transform: none !important; width: auto; box-shadow: none;
    border: 0; padding: 0 0 8px 8px; display: none; opacity: 1; visibility: visible;
  }
  .has-menu.open .mega { display: grid; }
  .has-menu:hover .mega { display: none; }
  .has-menu.open:hover .mega { display: grid; }
  .lang-switch { margin: 12px 0 0; }
  .lang-switch-btn { width: 100%; justify-content: center; background: var(--surface); }
  .lang-menu { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
  .nav-cta { margin: 10px 0 0; }
  .nav-cta .btn { width: 100%; }
  .hero-grid, .split, .contact-grid, .cta, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .grid-4, .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 22px 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .cta { padding: 36px 28px; }
  .cta .btn-row { justify-content: flex-start; }
  .section { padding: 72px 0; }
  .photo img, .hero-panel img { height: 240px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: min(100% - 32px, var(--container)); }
  .brand-tag { display: none; }
  .brand img { height: 34px; }
  .stats, .grid-4, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .stat { border-left: 0; padding-left: 0; }
  .form, .card { padding: 22px; }
  .cta { padding: 28px 20px; }
  h1, h2, h3, p, li, td, a, button, label { overflow-wrap: anywhere; }
  .field input, .field select, .field textarea { font-size: 16px; }
}

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