/* ==========================================================================
   NUMATEC — shared stylesheet
   Dark sections carry proof and data; light sections carry the narrative.
   Every hard number uses .figure so it looks the same on every page.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand (sampled from brand_assets logos) */
  --navy: #2c57a5;
  --navy-deep: #1f437f;
  --sky: #69b3e3;

  /* Surfaces */
  --ink: #0f1c2e;          /* dark sections */
  --ink-2: #162840;        /* raised surface on dark */
  --ink-3: #1d3352;
  --paper: #e8ebef;        /* light sections */
  --paper-2: #f4f5f7;      /* raised surface on light */
  --white: #ffffff;

  /* Text */
  --text: #0f1c2e;
  --text-2: #4b5870;
  --on-dark: #f2f5f9;
  --on-dark-2: #aebbd0;

  /* Lines */
  --line: rgba(15, 28, 46, 0.12);
  --line-strong: rgba(15, 28, 46, 0.22);
  --line-dark: rgba(174, 187, 208, 0.16);

  /* Language switch */
  --lang-vi: #c8423a;
  --lang-en: #3566c4;

  /* Status */
  --ok: #1f7a4d;
  --err: #b42318;

  /* Type */
  --font-display: 'Archivo', 'Be Vietnam Pro', system-ui, sans-serif;
  --font-body: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Space (8pt rhythm) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --section-y: clamp(64px, 9vw, 120px);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1240px;

  /* Shape & depth */
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px;
  --shadow-1: 0 1px 2px rgba(15, 28, 46, 0.06), 0 2px 8px rgba(15, 28, 46, 0.05);
  --shadow-2: 0 2px 4px rgba(15, 28, 46, 0.06), 0 12px 32px rgba(15, 28, 46, 0.10);
  --shadow-3: 0 4px 8px rgba(8, 16, 30, 0.12), 0 24px 56px rgba(8, 16, 30, 0.28);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms;
  --t-med: 280ms;

  --header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; font-stretch: 112%; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }

/* Vietnamese runs taller diacritics; give headings room so marks never clip */
html[lang="vi"] h1, html[lang="vi"] h2, html[lang="vi"] h3 { line-height: 1.18; letter-spacing: -0.015em; }

/* Hide page until Vietnamese strings are applied (set by inline head script) */
html.i18n-pending body { visibility: hidden; }

:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.on-light :focus-visible, .section--light :focus-visible { outline-color: var(--navy); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s-4); top: -60px; z-index: 1000; background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: var(--s-4); }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Section rhythm ---------- */
.section { padding-block: var(--section-y); }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--light { background: var(--paper); color: var(--text); }
.section--white { background: var(--paper-2); color: var(--text); }
.section--flush-top { padding-top: 0; }

.section-head { display: grid; gap: var(--s-4); max-width: 640px; margin-bottom: var(--s-8); }
.section-head--split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1fr auto; } }
.section-head h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.lede { font-size: 1.0625rem; color: var(--text-2); max-width: 56ch; }
.section--dark .lede { color: var(--on-dark-2); }

/* Small pill naming the section (sentence case, used once per section) */
.tag {
  display: inline-flex; align-items: center; gap: 8px; justify-self: start; align-self: flex-start; width: max-content; max-width: 100%;
  padding: 4px 12px 4px 10px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 500; line-height: 1.5;
  background: var(--white); color: var(--text); border: 1px solid var(--line);
}
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--navy); }
.section--dark .tag, .tag--dark { background: rgba(255,255,255,0.06); color: var(--on-dark); border-color: var(--line-dark); }
.section--dark .tag::before, .tag--dark::before { background: var(--sky); }

/* ---------- Figures: every hard number on the site ---------- */
.figure {
  display: block;
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 600;
  font-size: clamp(2.125rem, 3.6vw, 2.875rem);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}
.figure-caption { display: block; margin-top: var(--s-3); font-size: 0.875rem; line-height: 1.5; color: var(--text-2); }
.section--dark .figure-caption, .on-dark .figure-caption { color: var(--on-dark-2); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy); --btn-fg: var(--white); --btn-bd: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 20px;
  border-radius: var(--r-sm); border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-size: 0.9375rem; font-weight: 600; line-height: 1.2; text-decoration: none;
  cursor: pointer; touch-action: manipulation;
  transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.btn:hover { --btn-bg: var(--navy-deep); --btn-bd: var(--navy-deep); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn[disabled] { opacity: 0.5; cursor: progress; }
.btn--light { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bd: var(--white); }
.btn--light:hover { --btn-bg: #dfe8f5; --btn-bd: #dfe8f5; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: var(--white); --btn-bd: var(--text); }
.btn--ghost-dark { --btn-bg: transparent; --btn-fg: var(--on-dark); --btn-bd: rgba(255,255,255,0.32); }
.btn--ghost-dark:hover { --btn-bg: rgba(255,255,255,0.08); --btn-bd: var(--white); }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: 0.875rem; }
.btn .icon { width: 16px; height: 16px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.text-link { color: var(--navy); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color var(--t-fast); }
.text-link:hover { color: var(--navy-deep); text-decoration-thickness: 2px; }
.section--dark .text-link, .on-dark .text-link { color: var(--sky); }
.section--dark .text-link:hover { color: var(--white); }

/* ---------- Blade rule: the tapered swoosh from the NUMATEC logo ---------- */
.blade { display: block; width: 100%; height: 14px; color: var(--sky); }
.blade svg { width: 100%; height: 100%; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 28, 46, 0.92);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--on-dark);
}
.site-header__inner { display: flex; align-items: center; gap: var(--s-5); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; padding: 6px 0; }
.brand img { width: 132px; height: auto; }
.nav { display: none; margin-left: var(--s-4); }
.nav__list { display: flex; gap: 2px; list-style: none; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: var(--r-sm);
  font-size: 0.9375rem; font-weight: 500; text-decoration: none; color: var(--on-dark-2);
  transition: color var(--t-fast), background-color var(--t-fast);
}
.nav__link:hover { color: var(--white); background: rgba(255,255,255,0.06); }
.nav__link[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--sky); border-radius: 0; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s-3); }
.header-actions .btn { display: none; }
.menu-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: var(--r-sm); border: 1px solid var(--line-dark); background: transparent; color: var(--on-dark); cursor: pointer;
}
.menu-btn:hover { background: rgba(255,255,255,0.06); }
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  background: var(--ink); color: var(--on-dark); border-bottom: 1px solid var(--line-dark);
  padding: var(--s-4) var(--gutter) var(--s-6);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; }
.mobile-nav li + li { border-top: 1px solid var(--line-dark); }
.mobile-nav a:not(.btn) { display: flex; align-items: center; min-height: 52px; font-family: var(--font-display); font-stretch: 112%; font-size: 1.25rem; font-weight: 600; text-decoration: none; }
.mobile-nav a[aria-current="page"] { color: var(--sky); }
.mobile-nav .btn { margin-top: var(--s-5); width: 100%; }

@media (min-width: 1024px) {
  .nav { display: block; }
  .menu-btn { display: none; }
  .header-actions .btn { display: inline-flex; }
}

/* ---------- Language switch ---------- */
.lang-switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center;
  width: 84px; height: 36px; padding: 3px; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid var(--line-dark);
  cursor: pointer; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; color: var(--on-dark-2);
}
.lang-switch__opt { position: relative; z-index: 1; text-align: center; transition: color var(--t-med) var(--ease-out); }
.lang-switch__thumb {
  position: absolute; top: 3px; left: 3px; width: calc(50% - 3px); height: calc(100% - 6px);
  border-radius: 999px; background: var(--lang-en);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2), 0 2px 8px rgba(53,102,196,0.45);
  transition: transform var(--t-med) var(--ease-out), background-color var(--t-med) var(--ease-out), box-shadow var(--t-med);
}
.lang-switch[data-lang="en"] .lang-switch__opt--en,
.lang-switch[data-lang="vi"] .lang-switch__opt--vi { color: var(--white); }
.lang-switch[data-lang="vi"] .lang-switch__thumb { transform: translateX(100%); background: var(--lang-vi); box-shadow: 0 1px 2px rgba(0,0,0,0.2), 0 2px 8px rgba(200,66,58,0.45); }
.lang-switch:hover { border-color: rgba(255,255,255,0.32); }

/* ==========================================================================
   Home hero
   ========================================================================== */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--on-dark); }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 34% 46% at 92% 26%, rgba(15,28,46,0.72) 0%, rgba(15,28,46,0) 100%),
    linear-gradient(90deg, rgba(15,28,46,0.94) 0%, rgba(15,28,46,0.78) 42%, rgba(15,28,46,0.45) 100%),
    linear-gradient(0deg, rgba(15,28,46,0.9) 0%, rgba(15,28,46,0) 45%);
}
.hero__grid {
  display: grid; gap: var(--s-7);
  padding-top: clamp(56px, 9vw, 112px); padding-bottom: var(--s-6);
  min-height: min(760px, calc(100dvh - var(--header-h)));
  grid-template-rows: 1fr auto;
}
.hero__copy { align-self: center; max-width: 660px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.03em; font-stretch: 115%; }
html[lang="vi"] .hero h1 { font-size: clamp(2.25rem, 5.2vw, 4rem); line-height: 1.12; }
.hero__lede { margin-top: var(--s-5); font-size: 1.125rem; color: var(--on-dark-2); max-width: 50ch; }
.hero .btn-row { margin-top: var(--s-6); }

.hero__index { display: none; }
.hero__index ul { list-style: none; text-align: right; }
.hero__index a { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: 0.9375rem; color: var(--on-dark-2); text-decoration: none; transition: color var(--t-fast); }
.hero__index a:hover { color: var(--white); }
.hero__index a svg { width: 14px; height: 14px; }
.hero__index .hero__index-all { margin-top: var(--s-2); color: var(--sky); }

.hero__base { display: grid; gap: var(--s-5); align-items: end; }
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(15,28,46,0.5); font-size: 0.8125rem; color: var(--on-dark); }
.hero__trust svg { width: 14px; height: 14px; color: var(--sky); }

.feature-card {
  display: grid; grid-template-columns: 112px 1fr; gap: var(--s-4); align-items: center;
  max-width: 420px; padding: 12px; border-radius: var(--r-md);
  background: var(--white); color: var(--text); text-decoration: none; box-shadow: var(--shadow-3);
  transition: transform var(--t-med) var(--ease-out);
}
.feature-card:hover { transform: translateY(-3px); }
.feature-card img { width: 112px; height: 84px; object-fit: cover; border-radius: 8px; background: #dfe8f3; }
.feature-card__kicker { font-size: 0.75rem; font-weight: 600; color: var(--navy); }
.feature-card__title { margin-top: 2px; font-size: 0.9375rem; font-weight: 600; line-height: 1.35; }
.feature-card__meta { margin-top: 4px; font-size: 0.8125rem; color: var(--text-2); line-height: 1.4; }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1fr 260px; }
  .hero__index { display: block; align-self: start; justify-self: end; }
  .hero__base { grid-column: 1 / -1; grid-template-columns: 1fr auto; }
}

/* One orchestrated entrance: hero copy rises once on load */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise 700ms var(--ease-out) both; }
  .hero__copy > :nth-child(2) { animation-delay: 80ms; }
  .hero__copy > :nth-child(3) { animation-delay: 160ms; }
  .hero__base { animation: rise 700ms 260ms var(--ease-out) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--ink); color: var(--on-dark); padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 80px); }
.page-hero h1 { font-size: clamp(2.375rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -0.03em; font-stretch: 115%; max-width: 18ch; }
html[lang="vi"] .page-hero h1 { line-height: 1.14; }
.page-hero .lede { margin-top: var(--s-5); color: var(--on-dark-2); }
.page-hero .btn-row { margin-top: var(--s-6); }
.page-hero .tag { margin-bottom: var(--s-5); }

.split-hero { display: grid; background: var(--ink); color: var(--on-dark); }
.split-hero__copy { padding: clamp(56px, 8vw, 104px) var(--gutter) clamp(48px, 6vw, 80px); display: flex; flex-direction: column; justify-content: center; }
.split-hero__copy h1 { font-size: clamp(2.375rem, 4.8vw, 3.75rem); line-height: 1.04; letter-spacing: -0.03em; font-stretch: 115%; }
html[lang="vi"] .split-hero__copy h1 { line-height: 1.14; }
.split-hero__copy .lede { margin-top: var(--s-5); color: var(--on-dark-2); }
.split-hero__copy .btn-row { margin-top: var(--s-6); }
.split-hero__media { position: relative; min-height: 320px; }
.split-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .split-hero { grid-template-columns: 1fr 1fr; min-height: 560px; }
  .split-hero__copy { padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); padding-right: var(--s-8); }
}

/* Floating status card on the products hero */

/* ==========================================================================
   Process
   ========================================================================== */
.process { list-style: none; display: grid; gap: var(--s-3); border-top: 1px solid var(--line); padding-top: var(--s-6); }
.process__step { padding: var(--s-5); border-radius: var(--r-md); background: transparent; }
.process__step:first-child { background: var(--ink); color: var(--on-dark); box-shadow: var(--shadow-2); }
.process__step h3 { font-size: 1.125rem; font-stretch: 108%; display: flex; gap: 10px; }
.process__num { font-variant-numeric: tabular-nums; color: var(--navy); }
.process__step:first-child .process__num { color: var(--sky); }
.process__step p { margin-top: var(--s-3); font-size: 0.9375rem; color: var(--text-2); }
.process__step:first-child p { color: var(--on-dark-2); }
.process__step ul { margin-top: var(--s-4); list-style: none; display: grid; gap: 6px; font-size: 0.875rem; color: var(--text-2); }
.process__step:first-child ul { color: var(--on-dark-2); }
.process__step li { display: flex; gap: 8px; }
.process__step li::before { content: ''; flex: none; width: 4px; height: 4px; margin-top: 0.65em; border-radius: 50%; background: currentColor; opacity: 0.7; }
@media (min-width: 720px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(4, 1fr); } }

/* ==========================================================================
   Capability rows (dark)
   ========================================================================== */
.cap-list { list-style: none; border-top: 1px solid var(--line-dark); }
.cap-row { border-bottom: 1px solid var(--line-dark); }
.cap-row a {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-4); align-items: center;
  padding: var(--s-5) var(--s-2); text-decoration: none; color: var(--on-dark);
  transition: background-color var(--t-med) var(--ease-out), color var(--t-med) var(--ease-out);
}
.cap-row__num { font-size: 0.8125rem; color: var(--on-dark-2); font-variant-numeric: tabular-nums; width: 2ch; }
.cap-row__title { font-family: var(--font-display); font-stretch: 112%; font-weight: 600; font-size: clamp(1.25rem, 2.2vw, 1.625rem); letter-spacing: -0.015em; }
.cap-row__desc { grid-column: 2 / 3; font-size: 0.875rem; color: var(--on-dark-2); max-width: 46ch; }
.cap-row__arrow { grid-row: 1 / span 2; grid-column: 3; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-dark); transition: transform var(--t-med) var(--ease-out), background-color var(--t-med), border-color var(--t-med); }
.cap-row__arrow svg { width: 16px; height: 16px; }
.cap-row__thumb { display: none; }
.cap-row__badge { display: inline-block; margin-left: 10px; padding: 2px 8px; border-radius: 999px; font-family: var(--font-body); font-stretch: 100%; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0; vertical-align: middle; background: rgba(105,179,227,0.16); color: var(--sky); }
.cap-row a:hover, .cap-row a:focus-visible { background: var(--paper-2); color: var(--text); outline-offset: -3px; }
.cap-row a:hover .cap-row__desc, .cap-row a:focus-visible .cap-row__desc,
.cap-row a:hover .cap-row__num, .cap-row a:focus-visible .cap-row__num { color: var(--text-2); }
.cap-row a:hover .cap-row__arrow, .cap-row a:focus-visible .cap-row__arrow { background: var(--ink); color: var(--white); border-color: var(--ink); transform: translateX(4px); }
.cap-row a:hover .cap-row__badge { background: rgba(44,87,165,0.12); color: var(--navy); }
@media (min-width: 900px) {
  .cap-row a { grid-template-columns: 48px 1fr minmax(0, 380px) 40px; padding: var(--s-5) var(--s-5); }
  .cap-row__desc { grid-column: 3; text-align: right; }
  .cap-row__arrow { grid-row: auto; grid-column: 4; }
  .cap-row__thumb {
    display: block; position: absolute; left: 44%; top: 50%; width: 132px; height: 92px; border-radius: 10px; overflow: hidden;
    box-shadow: var(--shadow-3); opacity: 0; transform: translate(-50%, -50%) rotate(-3deg) scale(0.92); pointer-events: none;
    transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
  }
  .cap-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .cap-row a:hover .cap-row__thumb, .cap-row a:focus-visible .cap-row__thumb { opacity: 1; transform: translate(-50%, -50%) rotate(-3deg) scale(1); }
}

/* ==========================================================================
   Proof cards (photo + figure)
   ========================================================================== */
.proof-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .proof-grid { grid-template-columns: repeat(4, 1fr); } }
.proof-card { display: flex; flex-direction: column; border-radius: var(--r-md); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow-1); }
.proof-card__media { position: relative; aspect-ratio: 4 / 3; background: #d9dee5; }
.proof-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.proof-card__media .tag { position: absolute; left: 12px; top: 12px; background: rgba(15,28,46,0.72); color: var(--white); border-color: transparent; backdrop-filter: blur(6px); }
.proof-card__media .tag::before { background: var(--sky); }
.proof-card__body { padding: var(--s-5); }

.stat-strip { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); margin-top: var(--s-8); }
.stat-strip > div { padding: var(--s-6) var(--s-4) 0 0; }
@media (min-width: 900px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
.section--dark .stat-strip { border-color: var(--line-dark); }

/* ==========================================================================
   Testimonials + client names
   ========================================================================== */
.quotes { display: grid; gap: var(--s-4); }
@media (min-width: 960px) { .quotes { grid-template-columns: repeat(3, 1fr); } }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-6); padding: var(--s-6); border-radius: var(--r-md); background: var(--paper-2); box-shadow: var(--shadow-1); margin: 0; }
.quote blockquote { margin: 0; font-size: 1.0625rem; line-height: 1.6; }
.quote blockquote::before { content: '“'; display: block; font-family: var(--font-display); font-size: 3rem; line-height: 0.6; color: var(--navy); margin-bottom: var(--s-3); }
.quote figcaption { border-top: 1px solid var(--line); padding-top: var(--s-4); font-size: 0.875rem; color: var(--text-2); }
.quote figcaption strong { display: block; color: var(--text); font-weight: 600; font-size: 0.9375rem; }

.clients { margin-top: var(--s-8); display: grid; gap: var(--s-4); }
.clients__label { font-size: 0.875rem; color: var(--text-2); }
.clients__list { display: flex; flex-wrap: wrap; gap: 0; list-style: none; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.clients__list li { flex: 1 1 160px; min-height: 64px; display: grid; place-items: center; padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--font-display); font-stretch: 112%; font-weight: 600; font-size: 0.9375rem; color: var(--text-2); text-align: center; letter-spacing: -0.01em; }

/* ==========================================================================
   Get in touch band (dark) — marquee + inline form
   ========================================================================== */
.contact-band { background: var(--ink); color: var(--on-dark); padding-block: var(--section-y); overflow: hidden; }
.marquee { display: flex; overflow: hidden; user-select: none; margin-bottom: clamp(32px, 5vw, 64px); }
.marquee__track { display: flex; flex: none; align-items: center; gap: clamp(20px, 3vw, 40px); padding-right: clamp(20px, 3vw, 40px); animation: marquee 32s linear infinite; }
.marquee__item { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); font-family: var(--font-display); font-stretch: 118%; font-weight: 600; font-size: clamp(2.75rem, 8vw, 6rem); letter-spacing: -0.035em; line-height: 1.15; white-space: nowrap; }
.marquee__item svg { width: clamp(28px, 4vw, 52px); height: clamp(28px, 4vw, 52px); color: var(--sky); flex: none; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

.form-card { display: grid; gap: var(--s-7); max-width: 980px; margin-inline: auto; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-lg); background: var(--paper-2); color: var(--text); box-shadow: var(--shadow-3); }
@media (min-width: 900px) { .form-card { grid-template-columns: 1fr 1.35fr; } }
.form-card__intro h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.form-card__intro p { margin-top: var(--s-4); color: var(--text-2); }
.form-card__direct { margin-top: var(--s-6); display: grid; gap: var(--s-3); font-size: 0.9375rem; }
.form-card__direct a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; min-height: 32px; }
.form-card__direct a:hover { color: var(--navy); }
.form-card__direct svg { width: 18px; height: 18px; color: var(--navy); }

/* Form fields — underline style from the reference */
.form-grid { display: grid; gap: var(--s-5) var(--s-5); grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-grid { grid-template-columns: 1fr 1fr; } }
.form-field { display: grid; gap: 6px; }
.form-field--full { grid-column: 1 / -1; }
.form-label { font-size: 0.8125rem; font-weight: 600; color: var(--text); }
.form-label .req { color: var(--err); }
.form-input {
  width: 100%; min-height: 46px; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--line-strong);
  border-radius: 0; background: transparent; font-size: 1rem; color: var(--text);
  transition: border-color var(--t-fast);
}
.form-input::placeholder { color: #8a95a8; }
.form-input:hover { border-bottom-color: var(--text-2); }
.form-input:focus { outline: none; border-bottom: 2px solid var(--navy); padding-bottom: 9px; }
.form-input:focus-visible { outline: none; }
.form-input.is-invalid { border-bottom: 2px solid var(--err); padding-bottom: 9px; }
select.form-input { appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%234b5870' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 4px center; padding-right: 28px; }
textarea.form-input { min-height: 112px; resize: vertical; line-height: 1.5; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); margin-top: var(--s-2); }
.form-note { font-size: 0.8125rem; color: var(--text-2); }
.form-status { display: none; grid-column: 1 / -1; padding: 12px 14px; border-radius: var(--r-sm); font-size: 0.9375rem; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: #e3f3ea; color: var(--ok); }
.form-status.is-error { background: #fbe9e7; color: var(--err); }

/* ==========================================================================
   Group companies
   ========================================================================== */
.group-grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 720px) { .group-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .group-grid { grid-template-columns: repeat(4, 1fr); } }
.org { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); border-radius: var(--r-md); background: var(--paper-2); box-shadow: var(--shadow-1); }
.org__country { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 600; color: var(--text-2); }
.org__flag { width: 22px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px var(--line); flex: none; }
.org h3 { font-size: 1.0625rem; font-stretch: 108%; }
.org__role { font-size: 0.875rem; color: var(--text-2); }
.org address { font-style: normal; font-size: 0.875rem; line-height: 1.55; color: var(--text-2); }
.org__links { margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--line); display: grid; gap: 4px; font-size: 0.875rem; }
.org__links a { text-decoration: none; color: var(--navy); font-weight: 500; overflow-wrap: anywhere; }
.org__links a:hover { text-decoration: underline; }
.org--highlight { background: var(--ink); color: var(--on-dark); }
.org--highlight .org__country, .org--highlight .org__role, .org--highlight address { color: var(--on-dark-2); }
.org--highlight .org__links { border-color: var(--line-dark); }
.org--highlight .org__links a { color: var(--sky); }

.profile-cta { margin-top: var(--s-6); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-5) var(--s-6); border-radius: var(--r-md); border: 1px dashed var(--line-strong); }
.profile-cta p { color: var(--text-2); max-width: 60ch; }
.profile-cta strong { color: var(--text); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: var(--on-dark); padding-top: var(--s-9); overflow: hidden; }
.footer-top { display: grid; gap: var(--s-8); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr 1fr; } }
.footer-cta h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); max-width: 16ch; }
.footer-cta .btn { margin-top: var(--s-5); }
.socials { display: flex; gap: var(--s-2); margin-top: var(--s-5); list-style: none; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-dark); color: var(--on-dark); transition: background-color var(--t-fast), border-color var(--t-fast); text-decoration: none; font-size: 0.6875rem; font-weight: 700; }
.socials a:hover { background: rgba(255,255,255,0.08); border-color: var(--white); }
.socials svg { width: 18px; height: 18px; }
.footer-col h3 { font-family: var(--font-body); font-stretch: 100%; font-size: 0.875rem; font-weight: 600; letter-spacing: 0; color: var(--on-dark-2); margin-bottom: var(--s-3); }
.footer-links { list-style: none; }
.footer-links li { border-bottom: 1px solid var(--line-dark); }
.footer-links a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; text-decoration: none; font-family: var(--font-display); font-stretch: 108%; font-weight: 500; font-size: 1.0625rem; transition: color var(--t-fast), padding var(--t-med) var(--ease-out); }
.footer-links a:hover { color: var(--sky); padding-left: 6px; }
.footer-links svg { width: 14px; height: 14px; opacity: 0.7; }
.footer-contact { font-style: normal; display: grid; gap: var(--s-3); font-size: 0.9375rem; color: var(--on-dark-2); }
.footer-contact a { color: var(--on-dark); text-decoration: none; }
.footer-contact a:hover { color: var(--sky); }
.footer-note { margin-top: var(--s-5); font-size: 0.8125rem; color: var(--on-dark-2); line-height: 1.55; }
.footer-note a { color: var(--on-dark); }
.footer-wordmark { margin-top: var(--s-9); }
.footer-wordmark img { width: 100%; height: auto; opacity: 0.96; }
.footer-wordmark .blade { margin-top: clamp(-30px, -2vw, -12px); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3); padding-block: var(--s-6); margin-top: var(--s-6); border-top: 1px solid var(--line-dark); font-size: 0.8125rem; color: var(--on-dark-2); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: var(--s-5); list-style: none; }
.footer-bottom a { text-decoration: none; }
.footer-bottom a:hover { color: var(--white); text-decoration: underline; }

/* ==========================================================================
   Products page — service blocks as spec sheets
   ========================================================================== */
.service { display: grid; }
.service__media { position: relative; min-height: 300px; background: #d9dee5; overflow: hidden; }
.service__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service__body { padding: clamp(40px, 6vw, 80px) var(--gutter); display: flex; flex-direction: column; }
.service--dark .service__body { background: var(--ink); color: var(--on-dark); }
.service--light .service__body { background: var(--paper); }
.service__body h2 { margin-top: var(--s-4); font-size: clamp(1.75rem, 3vw, 2.5rem); max-width: 20ch; }
.service__body > p { margin-top: var(--s-4); color: var(--text-2); max-width: 54ch; }
.service--dark .service__body > p { color: var(--on-dark-2); }
.service__made-by { margin-top: var(--s-4); display: inline-flex; align-items: center; gap: 10px; font-size: 0.875rem; }
.service__made-by img { height: 22px; width: auto; }
.specs { margin-top: auto; padding-top: var(--s-7); display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5) var(--s-5); }
.specs > div { border-top: 1px solid var(--line); padding-top: var(--s-3); }
.service--dark .specs > div { border-color: var(--line-dark); }
.specs dt { font-size: 0.75rem; font-weight: 600; color: var(--text-2); }
.service--dark .specs dt { color: var(--on-dark-2); }
.specs dd { margin: 4px 0 0; font-size: 0.9375rem; font-weight: 600; line-height: 1.4; }
.service__gallery { margin-top: var(--s-6); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
.service__gallery img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--white); width: 100%; }
@media (min-width: 960px) {
  .service { grid-template-columns: 1fr 1fr; min-height: 560px; }
  .service--flip .service__media { order: 2; }
  .service__body { padding-inline: var(--s-8); }
}

/* Data tables (machinery, QC, roller specs) */
.table-wrap { position: relative; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--paper-2); }
.section--dark .table-wrap { border-color: var(--line-dark); background: var(--ink-2); }
.data-table { font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.data-table caption { text-align: left; padding: 14px 16px; font-weight: 600; caption-side: top; }
.data-table th, .data-table td { padding: 11px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.section--dark .data-table th, .section--dark .data-table td { border-color: var(--line-dark); }
.data-table thead th { font-size: 0.75rem; font-weight: 600; color: var(--text-2); background: rgba(15,28,46,0.03); position: sticky; top: 0; }
.section--dark .data-table thead th { color: var(--on-dark-2); background: rgba(255,255,255,0.03); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: rgba(44,87,165,0.05); }
.section--dark .data-table tbody tr:hover td { background: rgba(105,179,227,0.06); }
.data-table .num { text-align: right; }
.data-table .code { color: var(--text-2); font-weight: 500; }
.section--dark .data-table .code { color: var(--on-dark-2); }
.data-table td.wrap { white-space: normal; min-width: 220px; }

.machine-layout { display: grid; gap: var(--s-6); }
@media (min-width: 1000px) { .machine-layout { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.machine-photos { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.machine-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; }
.machine-photos img:first-child { grid-column: 1 / -1; aspect-ratio: 16/9; }
.machine-total { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); margin-bottom: var(--s-6); }

/* QC log rows */
.qc-log { list-style: none; border-top: 1px solid var(--line-dark); }
.qc-log li { display: grid; grid-template-columns: 1fr auto; gap: 4px var(--s-4); align-items: center; padding: var(--s-4) var(--s-2); border-bottom: 1px solid var(--line-dark); font-size: 0.9375rem; }
.qc-log__id { font-size: 0.8125rem; color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.qc-log__name { font-weight: 600; }
.qc-log__desc { grid-column: 1 / -1; color: var(--on-dark-2); font-size: 0.875rem; }
.qc-log__pill { justify-self: end; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: rgba(105,179,227,0.16); color: var(--sky); white-space: nowrap; }
@media (min-width: 900px) {
  .qc-log li { grid-template-columns: 90px 260px 1fr auto; }
  .qc-log__desc { grid-column: auto; }
}
.qc-panel { margin-top: var(--s-7); display: grid; gap: 1px; border-radius: var(--r-md); overflow: hidden; background: var(--line); }
.qc-panel > div { background: var(--paper-2); color: var(--text); padding: var(--s-6); }
@media (min-width: 720px) { .qc-panel { grid-template-columns: repeat(2, 1fr); } }
.qc-photos { margin-top: var(--s-6); display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-2); }
@media (min-width: 900px) { .qc-photos { grid-template-columns: repeat(5, 1fr); } }
.qc-photos img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; }

/* CTA with team photo */
.cta-card { border-radius: var(--r-lg); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow-2); }
.cta-card__photo { aspect-ratio: 21 / 8; background: #c9d2de; }
.cta-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.cta-card__body { display: grid; gap: var(--s-6); padding: clamp(24px, 4vw, 48px); }
@media (min-width: 900px) { .cta-card__body { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.cta-card h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.cta-card__body > div > p { margin-top: var(--s-3); color: var(--text-2); }
.checklist { list-style: none; display: grid; gap: 10px; margin-bottom: var(--s-5); font-size: 0.9375rem; }
.checklist li { display: flex; align-items: center; gap: 10px; }
.checklist svg { width: 20px; height: 20px; flex: none; color: var(--navy); }

/* ==========================================================================
   About page
   ========================================================================== */
.letter { display: grid; gap: var(--s-8); }
@media (min-width: 960px) { .letter { grid-template-columns: 1.5fr 1fr; } }
.letter__body { display: grid; gap: var(--s-4); font-size: 1.0625rem; max-width: 68ch; }
.letter__body strong { font-weight: 600; }
.letter__sign { margin-top: var(--s-4); font-size: 0.9375rem; color: var(--text-2); }
.letter__sign strong { display: block; color: var(--text); font-size: 1.0625rem; }
.portrait { border-radius: var(--r-md); overflow: hidden; background: #dde3ea; box-shadow: var(--shadow-2); align-self: start; }
.portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 20%; }
.portrait figcaption { padding: var(--s-4) var(--s-5); font-size: 0.875rem; color: var(--text-2); background: var(--paper-2); }
.portrait figcaption strong { display: block; color: var(--text); }

.video-slot { position: relative; margin-top: var(--s-8); aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; background: var(--ink); }
.video-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.timeline { list-style: none; position: relative; display: grid; gap: 0; }
.timeline li { position: relative; display: grid; gap: var(--s-2); padding: var(--s-5) 0 var(--s-5) var(--s-7); border-top: 1px solid var(--line-dark); }
.timeline li::before { content: ''; position: absolute; left: 6px; top: calc(var(--s-5) + 0.6em); width: 10px; height: 10px; border-radius: 2px; background: var(--sky); transform: rotate(45deg); }
.timeline .figure { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.timeline p { color: var(--on-dark-2); max-width: 62ch; }
.timeline strong { color: var(--on-dark); font-weight: 600; }
@media (min-width: 900px) {
  .timeline li { grid-template-columns: 180px 1fr; align-items: baseline; padding-left: var(--s-7); }
}

.values { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .values { grid-template-columns: repeat(3, 1fr); } }
.value { padding: var(--s-6); border-radius: var(--r-md); background: var(--paper-2); box-shadow: var(--shadow-1); }
.value__vi { font-size: 0.8125rem; font-weight: 600; color: var(--navy); }
.value h3 { margin-top: var(--s-2); font-size: 1.375rem; }
.value p { margin-top: var(--s-3); color: var(--text-2); font-size: 0.9375rem; }

.vision { display: grid; gap: var(--s-7); }
@media (min-width: 960px) { .vision { grid-template-columns: 1fr 1.3fr; } }
.vision__statement { font-family: var(--font-display); font-stretch: 108%; font-weight: 500; font-size: clamp(1.375rem, 2.4vw, 1.875rem); line-height: 1.35; letter-spacing: -0.01em; }
.mission { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .mission { grid-template-columns: 1fr 1fr; } }
.mission > div { border-top: 2px solid var(--navy); padding-top: var(--s-4); }
.mission h3 { font-size: 1.0625rem; font-stretch: 105%; }
.mission p { margin-top: var(--s-2); font-size: 0.9375rem; color: var(--text-2); }

.leader { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 860px) { .leader { grid-template-columns: 320px 1fr; } }
.leader__photo { border-radius: var(--r-md); overflow: hidden; background: #dde3ea; }
.leader__photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 20%; }
.leader h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.leader__role { margin-top: var(--s-2); color: var(--text-2); }
.leader ul { margin-top: var(--s-5); list-style: none; display: grid; gap: var(--s-4); max-width: 64ch; }
.leader li { padding-left: var(--s-5); position: relative; color: var(--text-2); }
.leader li::before { content: ''; position: absolute; left: 0; top: 0.7em; width: 10px; height: 2px; background: var(--navy); }
.leader li strong { color: var(--text); font-weight: 600; }

.gallery { display: grid; gap: var(--s-2); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; } .gallery .g-wide { grid-column: span 2; } .gallery .g-tall { grid-row: span 2; } }
.gallery figure { margin: 0; border-radius: 10px; overflow: hidden; background: #d9dee5; }
.gallery img { width: 100%; height: 100%; object-fit: cover; min-height: 150px; }

/* ==========================================================================
   Rollers catalog (Namu Industry)
   ========================================================================== */
.namu-badge { display: inline-flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid var(--line-dark); font-size: 0.875rem; color: var(--on-dark); }
.namu-badge__mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--white); }
.namu-badge__mark img { width: 22px; height: auto; }
.rollers-hero { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 960px) { .rollers-hero { grid-template-columns: 1.1fr 1fr; } }
.rollers-hero__art { position: relative; aspect-ratio: 5/4; border-radius: var(--r-lg); background: linear-gradient(160deg, #e9f1fb 0%, #c9dbef 100%); overflow: hidden; }
.rollers-hero__art img { position: absolute; width: 78%; left: 11%; mix-blend-mode: multiply; filter: drop-shadow(0 18px 24px rgba(15,28,46,0.18)); }
.rollers-hero__art img:nth-child(1) { top: 8%; }
.rollers-hero__art img:nth-child(2) { top: 38%; left: 4%; }
.rollers-hero__art img:nth-child(3) { top: 64%; left: 18%; width: 70%; }
.hero-figures { margin-top: var(--s-7); display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
.hero-figures > div { border-top: 1px solid var(--line-dark); padding-top: var(--s-3); }
@media (min-width: 640px) { .hero-figures { grid-template-columns: repeat(4, 1fr); } }
.hero-figures .figure { font-size: clamp(1.625rem, 2.6vw, 2.125rem); }

.filter-tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.filter-tabs button { min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-size: 0.875rem; font-weight: 600; transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.filter-tabs button:hover { border-color: var(--text); }
.filter-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

.suit { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; }
.suit svg { width: 14px; height: 14px; }
.suit--yes { color: var(--navy); }
.suit--some { color: #7d8aa0; }
.suit--no { color: #b3bcc9; }
.legend { display: flex; flex-wrap: wrap; gap: var(--s-5); margin-top: var(--s-3); font-size: 0.8125rem; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

.series-list { display: grid; gap: var(--s-3); }
.series { border-radius: var(--r-md); background: var(--paper-2); box-shadow: var(--shadow-1); overflow: hidden; }
.series[hidden] { display: none; }
.series > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 96px 1fr auto; gap: var(--s-4); align-items: center; padding: var(--s-3) var(--s-5) var(--s-3) var(--s-3); }
.series > summary::-webkit-details-marker { display: none; }
.series > summary:hover { background: rgba(44,87,165,0.04); }
.series__thumb { width: 96px; height: 64px; border-radius: 8px; background: #e3ecf6; overflow: hidden; }
.series__thumb img { width: 100%; height: 100%; object-fit: cover; }
.series__name { font-family: var(--font-display); font-stretch: 112%; font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; }
.series__sub { font-size: 0.875rem; color: var(--text-2); }
.series__quick { display: none; gap: var(--s-5); font-size: 0.8125rem; color: var(--text-2); }
.series__quick b { display: block; font-family: var(--font-display); font-stretch: 112%; font-size: 1rem; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.series__chev { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); transition: transform var(--t-med) var(--ease-out), background-color var(--t-fast); }
.series__chev svg { width: 16px; height: 16px; }
.series[open] .series__chev { transform: rotate(180deg); background: var(--ink); color: var(--white); border-color: var(--ink); }
@media (min-width: 900px) {
  .series > summary { grid-template-columns: 120px 1fr auto auto; }
  .series__thumb { width: 120px; height: 72px; }
  .series__quick { display: flex; }
}
.series__body { padding: var(--s-5); border-top: 1px solid var(--line); display: grid; gap: var(--s-7); }
@media (min-width: 1000px) { .series__body { grid-template-columns: 0.9fr 1.1fr; padding: var(--s-7); } }
.series__body h4 { font-family: var(--font-body); font-stretch: 100%; font-size: 0.875rem; font-weight: 600; letter-spacing: 0; color: var(--text-2); margin-bottom: var(--s-3); }
.series__app { font-size: 1rem; }
.series__img { margin-top: var(--s-5); border-radius: 10px; background: linear-gradient(160deg, #eef4fb, #d6e3f1); overflow: hidden; }
.series__img img { width: 100%; mix-blend-mode: multiply; }
.param-list { display: grid; gap: 0; margin: 0; }
.param-list > div { display: grid; grid-template-columns: 140px 1fr; gap: var(--s-4); padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.875rem; }
.param-list dt { font-weight: 600; }
.param-list dd { margin: 0; color: var(--text-2); }
.feature-list { list-style: none; display: grid; gap: var(--s-3); font-size: 0.875rem; }
.feature-list li { display: grid; gap: 2px; padding-left: var(--s-5); position: relative; color: var(--text-2); }
.feature-list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 10px; height: 2px; background: var(--navy); }
.feature-list b { color: var(--text); font-weight: 600; }
.series__tables { display: grid; gap: var(--s-5); grid-column: 1 / -1; }
.series__note { font-size: 0.8125rem; color: var(--text-2); }

/* Part-number decoder */
.decoder { border-radius: var(--r-lg); background: var(--ink-2); padding: clamp(20px, 4vw, 40px); }
.decoder__code { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: var(--s-6); }
.decoder__code button {
  min-height: 48px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line-dark); background: rgba(255,255,255,0.04);
  color: var(--on-dark); cursor: pointer; font-family: var(--font-display); font-stretch: 112%; font-weight: 600; font-size: clamp(1rem, 2.4vw, 1.5rem); letter-spacing: 0.01em;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.decoder__code button:hover { border-color: var(--sky); }
.decoder__code button[aria-pressed="true"] { background: var(--sky); border-color: var(--sky); color: var(--ink); }
.decoder__dash { color: var(--on-dark-2); font-size: 1.25rem; }
.decoder__panel { display: grid; gap: var(--s-5); }
@media (min-width: 860px) { .decoder__panel { grid-template-columns: 1fr 1.4fr; } }
.decoder__panel h3 { font-size: 1.375rem; }
.decoder__panel .meaning { margin-top: var(--s-2); color: var(--on-dark-2); }
.decoder__options { list-style: none; display: grid; gap: 8px; font-size: 0.9375rem; color: var(--on-dark-2); }
.decoder__options li { padding: 10px 14px; border-radius: 8px; background: rgba(255,255,255,0.04); }
.decoder__options b { color: var(--on-dark); font-weight: 600; }

.accessories { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .accessories { grid-template-columns: repeat(2, 1fr); } }
.acc { border-radius: var(--r-md); background: var(--paper-2); box-shadow: var(--shadow-1); overflow: hidden; display: flex; flex-direction: column; }
.acc__img { aspect-ratio: 16/7; background: #dfe6ef; }
.acc__img img { width: 100%; height: 100%; object-fit: cover; }
.acc__body { padding: var(--s-6); display: grid; gap: var(--s-3); }
.acc__body h3 { font-size: 1.375rem; }
.acc__body p { color: var(--text-2); font-size: 0.9375rem; }
.acc__body .param-list > div { grid-template-columns: 150px 1fr; }

.guide { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .guide { grid-template-columns: repeat(3, 1fr); } }
.guide > div { padding: var(--s-5); border-radius: var(--r-md); background: rgba(255,255,255,0.04); border: 1px solid var(--line-dark); }
.guide h3 { font-size: 1.125rem; }
.guide p, .guide li { color: var(--on-dark-2); font-size: 0.9375rem; }
.guide ul { margin-top: var(--s-3); list-style: none; display: grid; gap: 6px; }
.guide p { margin-top: var(--s-3); }

.machine-cards { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .machine-cards { grid-template-columns: repeat(2, 1fr); } }

.namu-contact { display: grid; gap: var(--s-6); padding: clamp(24px, 4vw, 48px); border-radius: var(--r-lg); background: var(--ink); color: var(--on-dark); }
@media (min-width: 900px) { .namu-contact { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.namu-contact h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.namu-contact p { margin-top: var(--s-3); color: var(--on-dark-2); }
.namu-contact address { font-style: normal; display: grid; gap: var(--s-2); font-size: 0.9375rem; color: var(--on-dark-2); }
.namu-contact address a { color: var(--on-dark); text-decoration: none; }
.namu-contact address a:hover { color: var(--sky); }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-layout { display: grid; gap: var(--s-6); }
@media (min-width: 1000px) { .contact-layout { grid-template-columns: 1fr 1.25fr; align-items: start; } }
.map-frame { border-radius: var(--r-md); overflow: hidden; background: #d9dee5; aspect-ratio: 4/3; box-shadow: var(--shadow-1); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.hq-card { margin-top: var(--s-4); padding: var(--s-5); border-radius: var(--r-md); background: var(--paper-2); box-shadow: var(--shadow-1); display: grid; gap: var(--s-3); font-size: 0.9375rem; }
.hq-card h2 { font-size: 1.25rem; }
.hq-card address { font-style: normal; color: var(--text-2); }
.hq-card a { color: var(--navy); font-weight: 600; text-decoration: none; }
.hq-card a:hover { text-decoration: underline; }
.form-panel { padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg); background: var(--paper-2); box-shadow: var(--shadow-2); }
.form-panel h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); margin-bottom: var(--s-3); }
.form-panel > p { color: var(--text-2); margin-bottom: var(--s-6); }

/* ==========================================================================
   Careers
   ========================================================================== */
.job-search { display: grid; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-md); background: var(--paper-2); box-shadow: var(--shadow-2); }
@media (min-width: 800px) { .job-search { grid-template-columns: 1.6fr 1fr 1fr auto; align-items: end; } }
.job-search .form-field { gap: 4px; }
.job-search .form-input { border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 10px 12px; }
.job-search .form-input:focus { border: 2px solid var(--navy); padding: 9px 11px; }
.job-search select.form-input { padding-right: 32px; background-position: right 10px center; }
.job-count { margin: var(--s-6) 0 var(--s-3); font-size: 0.9375rem; color: var(--text-2); }
.job-list { list-style: none; display: grid; gap: var(--s-3); }
.job { display: grid; gap: var(--s-2); padding: var(--s-5); border-radius: var(--r-md); background: var(--paper-2); box-shadow: var(--shadow-1); }
@media (min-width: 800px) { .job { grid-template-columns: 1fr auto; align-items: center; } }
.job h3 { font-size: 1.25rem; }
.job__meta { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-2); }
.job__meta span { padding: 2px 10px; border-radius: 999px; background: var(--paper); font-size: 0.8125rem; color: var(--text-2); }
.job p { color: var(--text-2); font-size: 0.9375rem; margin-top: var(--s-2); max-width: 70ch; }
.empty-state { display: grid; justify-items: start; gap: var(--s-3); padding: clamp(24px, 5vw, 56px); border-radius: var(--r-md); border: 1px dashed var(--line-strong); background: var(--paper-2); }
.empty-state svg { width: 40px; height: 40px; color: var(--navy); }
.empty-state h2 { font-size: clamp(1.375rem, 2.4vw, 1.75rem); }
.empty-state p { color: var(--text-2); max-width: 60ch; }

.perks { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .perks { grid-template-columns: repeat(3, 1fr); } }
.perks > div { border-top: 2px solid var(--sky); padding-top: var(--s-4); }
.perks h3 { font-size: 1.125rem; }
.perks p { margin-top: var(--s-2); color: var(--on-dark-2); font-size: 0.9375rem; }

/* ---------- Utilities ---------- */
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.center { text-align: center; }
.muted { color: var(--text-2); }
.section--dark .muted { color: var(--on-dark-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

/* Proof cards are narrow at 4-up; keep figures on one line */
.proof-card .figure { font-size: clamp(1.875rem, 2.5vw, 2.5rem); }

/* Service media as a product-shot grid (keeps small source photos near native size) */
.shots { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); padding: clamp(16px, 3vw, 40px); background: #dde3ea; align-content: center; }
.shots img { position: static; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--white); }
.shots--contain img { object-fit: contain; padding: 6%; }
.service--dark .shots { background: var(--ink-3); }
@media (min-width: 960px) { .shots { padding: var(--s-8); } }

.data-table .center { text-align: center; }
.data-table td .suit { vertical-align: middle; }
.rollers-hero .hero-figures { grid-template-columns: repeat(2, 1fr); }

/* Grid children must be allowed to shrink so wide tables scroll inside .table-wrap */
.series__body { grid-template-columns: minmax(0, 1fr); }
.series__body > *, .series__tables > *, .machine-layout > *, .contact-layout > * { min-width: 0; }
@media (min-width: 1000px) { .series__body { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
