/*
Theme Name: JH PM
Theme URI: https://www.chinapmfactory.com/
Author: JHCH Electronic Tech.
Author URI: https://www.chinapmfactory.com/
Description: Custom WordPress theme for JH PM, an IATF 16949 certified powder metallurgy manufacturer. Warm cream + gold palette, Xometry-style editorial layout, full SEO/GEO structured data (Organization, FAQPage, Article schema).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jhpm
*/


/* ============================================================
   DESIGN TOKENS
   Industrial Sustainable Minimalism · Restrained palette
   Physical scene: procurement lead scanning for credibility.
   Single accent = warm gold. Neutrals tinted toward it.
   Palette aligned with the JH MIM brand site.
   ============================================================ */
:root {
  /* Base surfaces — warm off-white (JH MIM palette) */
  --bg:          #FAFAF6;
  --surface:     #F0F0EA;
  --surface-2:   #F4F4EE;
  --border:      rgba(0, 0, 0, 0.07);
  --border-strong: rgba(0, 0, 0, 0.14);

  /* Text — warm near-black */
  --text:        #1C1C18;
  --text-muted:  #65655E;
  --text-faint:  #94948C;

  /* Accent — warm gold, split for fill vs text */
  --accent:      #E8B923;
  --accent-hover:#D4A81B;
  --accent-text: #7A6200;
  --accent-soft: rgba(232, 185, 35, 0.08);
  --accent-line: rgba(232, 185, 35, 0.40);

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Spacing — base 4px, named steps */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* Layout */
  --maxw: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; }
ul { list-style: none; }

/* Selection */
::selection { background: var(--accent); color: #1C1C18; }

/* Focus visible — non-optional */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ============================================================
   LAYOUT PRIMITIVES
   ============================================================ */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* Eyebrow — mono label, used sparingly */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-text);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent-line);
}

/* Section heading block */
.h-block { max-width: 56ch; }
.h-block--wide { max-width: 72ch; }
.h-block--center { margin-inline: auto; text-align: center; }
.h-block--center .eyebrow { justify-content: center; }

.h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin-top: var(--s-3);
}
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.55;
  color: var(--text-muted);
  margin-top: var(--s-4);
  max-width: 62ch;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding-block: var(--s-3);
}
.brand {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand__mark {
  font-size: 1.05rem;
}
.brand__name { font-size: 1.05rem; }
.brand__sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  font-size: 0.9rem;
}
.nav__links a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s var(--ease-out);
}
.nav__links a:hover { color: var(--text); }
.nav__cta { display: flex; align-items: center; gap: var(--s-3); }

/* Dropdown nav */
.nav__item {
  position: relative;
}
.nav__top {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav__top::after {
  content: "\203A";
  display: inline-block;
  font-size: 0.85em;
  transform: rotate(90deg);
  transition: transform 0.2s var(--ease-out);
  color: var(--text-faint);
}
.nav__item:hover .nav__top::after,
.nav__item.is-open .nav__top::after {
  transform: rotate(-90deg);
}
.nav__sub {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 14rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.5rem;
  box-shadow: 0 12px 32px color-mix(in oklch, var(--text) 10%, transparent);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out), visibility 0.2s;
  z-index: 101;
}
.nav__item:hover .nav__sub,
.nav__item.is-open .nav__sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav__sub li {
  list-style: none;
}
.nav__sub a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 4px;
  font-size: 0.86rem;
  white-space: nowrap;
}
.nav__sub a:hover {
  background: var(--accent-soft);
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.8rem 1.4rem;
  font-weight: 500;
  font-size: 0.92rem;
  border-radius: 4px;
  transition: all 0.25s var(--ease-out);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #1C1C18;
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn--ghost {
  border-color: var(--border-strong);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
/* Request a quote CTAs on light sections: solid gold block, dark text */
.section-cta .btn--ghost {
  background: var(--accent);
  color: #1C1C18;
  border-color: var(--accent);
}
.section-cta .btn--ghost:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}
.btn--lg { padding: 1rem 1.8rem; font-size: 1rem; }

/* Ghost button for dark backgrounds (band, materials, contact) */
.btn--on-dark {
  border-color: color-mix(in oklch, var(--bg) 42%, transparent);
  color: var(--bg);
}
.btn--on-dark:hover {
  border-color: color-mix(in oklch, var(--bg) 85%, transparent);
  background: color-mix(in oklch, var(--bg) 10%, transparent);
}

/* ============================================================
   SECTION CTA — consistent conversion anchor at end of each section
   ============================================================ */
.section-cta {
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.section-cta--on-dark { border-top-color: color-mix(in oklch, var(--bg) 20%, transparent); }
.section-cta__note {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 44ch;
  line-height: 1.5;
}
.section-cta--on-dark .section-cta__note {
  color: color-mix(in oklch, var(--bg) 72%, transparent);
}
.section-cta__note b {
  color: var(--text);
  font-weight: 600;
}
.section-cta--on-dark .section-cta__note b { color: var(--bg); }

/* Mobile menu toggle */
.nav__toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(3rem, 7vw, 6rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
.hero__head { max-width: 26ch; }
.hero__head .h1 { margin-top: var(--s-5); }
.hero__sub {
  margin-top: var(--s-5);
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 52ch;
  line-height: 1.6;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-6);
}
.hero__aside {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.hero__spec {
  border-top: 1px solid var(--border);
  padding-top: var(--s-4);
}
.hero__spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-block: var(--s-2);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}
.hero__spec-row:last-child { border-bottom: none; }
.hero__spec-k {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero__spec-v {
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text);
}

/* Hero image */
.hero__media {
  margin-top: var(--s-7);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 7;
  background: var(--surface-2);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   CREDIBILITY BAND — varied metric treatment, not identical cards
   ============================================================ */
.band {
  background: var(--text);
  color: var(--bg);
  border-block: 1px solid var(--border-strong);
}
.band__inner {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}
.band__cell {
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1rem, 2vw, 2rem);
  border-right: 1px solid color-mix(in oklch, var(--bg) 14%, transparent);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.band__cell:last-child { border-right: none; }
.band__cell--accent { background: var(--accent); }
.band__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.band__lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--bg) 78%, transparent);
  line-height: 1.4;
}
.band__cell--accent .band__num { color: #1C1C18; }
.band__cell--accent .band__lbl { color: rgba(28, 28, 24, 0.72); }

/* ============================================================
   KEY STATS TABLE — AI-citable, sits below hero
   ============================================================ */
.keystats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.keystats__inner {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  align-items: start;
}
.keystats__head .eyebrow { margin-bottom: var(--s-2); }
.keystats__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.keystats__d {
  margin-top: var(--s-3);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.keystats__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.keystats__table th,
.keystats__table td {
  text-align: left;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.keystats__table tr:last-child th,
.keystats__table tr:last-child td { border-bottom: none; }
.keystats__table th {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  width: 38%;
}
.keystats__table td {
  font-weight: 500;
  color: var(--text);
}
.keystats__table td b {
  font-family: var(--font-display);
  font-weight: 600;
}

/* ============================================================
   SECTION: PROBLEMS WE SOLVE
   ============================================================ */
.solve__list {
  margin-top: var(--s-7);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}
.solve__item {
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2.5rem);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-5);
  align-items: start;
}
.solve__item:nth-child(odd) { border-right: 1px solid var(--border); }
.solve__idx {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-text);
  letter-spacing: 0.04em;
  padding-top: 0.3rem;
}
.solve__body { max-width: 48ch; }
.solve__q {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--text);
}
.solve__a {
  margin-top: var(--s-3);
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.6;
}
.solve__a .solve__lead {
  display: block;
  color: var(--text);
  font-weight: 500;
  margin-bottom: var(--s-2);
}
.solve__matrix {
  margin-top: var(--s-6);
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  background: var(--bg);
}
.solve__matrix th,
.solve__matrix td {
  text-align: left;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.solve__matrix tr:last-child th,
.solve__matrix tr:last-child td { border-bottom: none; }
.solve__matrix thead th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  background: var(--surface);
}
.solve__matrix td:nth-child(1) { color: var(--text-muted); }
.solve__matrix td:nth-child(2) { font-weight: 500; color: var(--text); }
.solve__matrix td:nth-child(3) {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-text);
  font-weight: 500;
  white-space: nowrap;
}

/* ============================================================
   SECTION: CAPABILITIES (the big numbers, editorial)
   ============================================================ */
.cap {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.cap__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  margin-top: var(--s-7);
}
.cap__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.cap__stat {
  background: var(--surface);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.cap__stat--feature {
  background: var(--text);
  color: var(--bg);
  grid-column: span 2;
}
.cap__stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
.cap__stat-num span {
  font-size: 0.5em;
  font-weight: 500;
  color: var(--text-faint);
  margin-left: 0.15em;
}
.cap__stat--feature .cap__stat-num span { color: color-mix(in oklch, var(--bg) 65%, transparent); }
.cap__stat-lbl {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.cap__stat--feature .cap__stat-lbl { color: color-mix(in oklch, var(--bg) 70%, transparent); }
.cap__stat-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: var(--s-1);
}
.cap__stat--feature .cap__stat-desc { color: color-mix(in oklch, var(--bg) 80%, transparent); }

.cap__note {
  margin-top: var(--s-6);
  font-size: 0.9rem;
  color: var(--text-muted);
  border-left: 1px solid var(--accent-line);
  padding-left: var(--s-4);
  line-height: 1.6;
}

/* ============================================================
   SECTION: EQUIPMENT (image-forward, varied grid)
   ============================================================ */
.eq__grid {
  margin-top: var(--s-7);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 180px;
  gap: var(--s-3);
}
.eq__card {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.eq__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.eq__card:hover img { transform: scale(1.04); }
.eq__cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--s-3) var(--s-4);
  background: linear-gradient(to top, color-mix(in oklch, var(--text) 88%, transparent), transparent);
  color: var(--bg);
}
.eq__cap-k {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}
.eq__cap-v {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 2px;
}
/* varied spans to break the grid pattern */
.eq__card--a { grid-column: span 7; grid-row: span 2; }
.eq__card--b { grid-column: span 5; grid-row: span 1; }
.eq__card--c { grid-column: span 5; grid-row: span 1; }
.eq__card--d { grid-column: span 4; grid-row: span 1; }
.eq__card--e { grid-column: span 4; grid-row: span 1; }
.eq__card--f { grid-column: span 4; grid-row: span 1; }
.eq__card--g { grid-column: span 6; grid-row: span 1; }
.eq__card--h { grid-column: span 6; grid-row: span 1; }

/* ============================================================
   SECTION: MATERIALS & PRODUCTS
   ============================================================ */
.mat {
  background: var(--text);
  color: var(--bg);
}
.mat .eyebrow { color: color-mix(in oklch, var(--bg) 85%, transparent); }
.mat .eyebrow::before { background: color-mix(in oklch, var(--bg) 40%, transparent); }
.mat .h2 { color: var(--bg); }
.mat .lead { color: color-mix(in oklch, var(--bg) 75%, transparent); }

.mat__row {
  margin-top: var(--s-7);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: color-mix(in oklch, var(--bg) 18%, transparent);
  border: 1px solid color-mix(in oklch, var(--bg) 18%, transparent);
}
.mat__cell {
  background: var(--text);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.mat__cell-k {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--bg) 55%, transparent);
}
.mat__cell-v {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
}
.mat__cell-d {
  font-size: 0.88rem;
  color: color-mix(in oklch, var(--bg) 70%, transparent);
  line-height: 1.55;
}

.prod-sec {
  background: color-mix(in oklch, var(--accent) 6%, var(--bg));
}
.prod__grid {
  margin-top: var(--s-7);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
}
.prod__card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.prod__card:hover {
  border-color: var(--accent-line);
  box-shadow: 0 12px 26px -18px color-mix(in oklch, var(--accent) 55%, transparent);
  transform: translateY(-2px);
}
.prod__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: var(--s-1);
}
.prod__icon svg { width: 23px; height: 23px; }
.prod__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.prod__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.25;
  color: var(--text);
}
.prod__d {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================================
   SECTION: QUALITY & CERTIFICATION
   ============================================================ */
.qual__grid {
  margin-top: var(--s-7);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.qual__cert {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.cert__card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: var(--s-5);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-4);
  align-items: start;
  transition: border-color 0.25s var(--ease-out);
}
.cert__card:hover { border-color: var(--border-strong); }
.cert__badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--accent-text);
  text-align: center;
  line-height: 1.1;
}
.cert__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.cert__d {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: var(--s-2);
  line-height: 1.55;
}

.qual__qc {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.qual__qc-head {
  padding: var(--s-5);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.qual__qc-head .h3 { font-size: 1.15rem; }
.qual__qc-head p {
  margin-top: var(--s-2);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.qual__qc-list { padding: var(--s-4) 0; }
.qual__qc-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: var(--s-3) var(--s-5);
  border-bottom: 1px solid var(--border);
  gap: var(--s-4);
}
.qual__qc-item:last-child { border-bottom: none; }
.qual__qc-k {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.92rem;
}
.qual__qc-v {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: right;
}

/* ============================================================
   SECTION: PROCESS
   ============================================================ */
.proc {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.proc__steps {
  margin-top: var(--s-7);
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.proc__step {
  padding: clamp(1.25rem, 2vw, 2rem) var(--s-4);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  position: relative;
}
.proc__step:last-child { border-right: none; }
.proc__step-n {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-text);
  letter-spacing: 0.04em;
}
.proc__step-t {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.25;
}
.proc__step-d {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   SECTION: ABOUT — visual company-at-a-glance
   ============================================================ */
.about__lead {
  max-width: 58ch;
  margin-top: var(--s-4);
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}
.about__visuals {
  margin-top: var(--s-7);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-4);
}
.about__chart,
.about__identity {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: var(--s-5);
}
.about__chart {
  grid-column: span 6;
}
.about__identity {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-5);
  align-items: start;
}
.about__chart-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: var(--s-5);
  color: var(--text);
}

/* Timeline */
.about__timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding-top: var(--s-4);
}
.about__timeline::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border);
}
.about__timeline-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  text-align: center;
  flex: 1;
}
.about__timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
}
.about__timeline-year {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: var(--s-2);
}
.about__timeline-event {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
  max-width: 12ch;
}

/* Bar charts */
.about__bars {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.about__bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-3) var(--s-4);
  align-items: center;
}
.about__bar-lbl {
  font-size: 0.86rem;
  color: var(--text-muted);
}
.about__bar-val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  text-align: right;
}
.about__bar-track {
  grid-column: 1 / -1;
  height: 8px;
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
}
.about__bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}

/* Identity facts */
.about__identity p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 48ch;
}
.about__identity p strong { color: var(--text); font-weight: 600; }
.about__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.about__fact {
  background: var(--bg);
  padding: var(--s-4);
}
.about__fact-k {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.about__fact-v {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: var(--s-2);
}

/* ============================================================
   SECTION: BLOG
   ============================================================ */
.blog__grid {
  margin-top: var(--s-7);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.blog__card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.blog__card:hover {
  border-color: var(--accent-line);
  box-shadow: 0 10px 28px color-mix(in oklch, var(--text) 8%, transparent);
}
.blog__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  align-self: flex-start;
}
.blog__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.25;
  color: var(--text);
}
.blog__excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.blog__date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
}

/* ============================================================
   SECTION: CONTACT + FORM
   ============================================================ */
.contact {
  background: var(--text);
  color: var(--bg);
}
.contact .eyebrow { color: color-mix(in oklch, var(--bg) 85%, transparent); }
.contact .eyebrow::before { background: color-mix(in oklch, var(--bg) 40%, transparent); }
.contact .h2 { color: var(--bg); }
.contact .lead { color: color-mix(in oklch, var(--bg) 75%, transparent); }

.contact__grid {
  margin-top: var(--s-7);
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.contact__info-item {
  border-top: 1px solid color-mix(in oklch, var(--bg) 20%, transparent);
  padding-top: var(--s-4);
}
.contact__info-k {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--bg) 55%, transparent);
}
.contact__info-v {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  margin-top: var(--s-2);
  line-height: 1.5;
}
.contact__info-v a:hover { color: color-mix(in oklch, var(--bg) 75%, transparent); }

/* Form */
.form {
  background: color-mix(in oklch, var(--bg) 6%, transparent);
  border: 1px solid color-mix(in oklch, var(--bg) 22%, transparent);
  border-radius: 6px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.form__row {
  display: grid;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}
.form__row--2 { grid-template-columns: 1fr 1fr; }
.form__row--3 { grid-template-columns: 1fr 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--bg) 65%, transparent);
  font-weight: 500;
}
.field label .req { color: color-mix(in oklch, var(--bg) 90%, var(--accent)); }
.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid color-mix(in oklch, var(--bg) 30%, transparent);
  color: var(--bg);
  padding: var(--s-2) 0;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color 0.25s var(--ease-out);
  border-radius: 0;
}
.field input::placeholder,
.field textarea::placeholder { color: color-mix(in oklch, var(--bg) 40%, transparent); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--bg);
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--text); color: var(--bg); }
.field textarea { resize: vertical; min-height: 90px; line-height: 1.5; }
.field__error {
  font-size: 0.78rem;
  color: oklch(0.7 0.15 25);
  display: none;
}
.field--error input,
.field--error select,
.field--error textarea { border-bottom-color: oklch(0.72 0.14 25); }
.field--error .field__error { display: block; }

/* File upload zone */
.dropzone {
  border: 1px dashed color-mix(in oklch, var(--bg) 35%, transparent);
  border-radius: 4px;
  padding: var(--s-5);
  text-align: center;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
  background: color-mix(in oklch, var(--bg) 3%, transparent);
}
.dropzone:hover,
.dropzone--active {
  border-color: color-mix(in oklch, var(--bg) 60%, transparent);
  background: color-mix(in oklch, var(--bg) 8%, transparent);
}
.dropzone__icon {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: color-mix(in oklch, var(--bg) 60%, transparent);
  margin-bottom: var(--s-2);
}
.dropzone__t {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--bg);
}
.dropzone__t strong { color: var(--bg); text-decoration: underline; }
.dropzone__d {
  font-size: 0.8rem;
  color: color-mix(in oklch, var(--bg) 55%, transparent);
  margin-top: var(--s-2);
}
.dropzone input[type="file"] { display: none; }

.filelist {
  margin-top: var(--s-3);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.filelist:empty { display: none; }
.fileitem {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: var(--s-3);
  align-items: center;
  padding: var(--s-2) var(--s-3);
  background: color-mix(in oklch, var(--bg) 8%, transparent);
  border-radius: 3px;
  font-size: 0.85rem;
}
.fileitem__icon {
  font-family: var(--font-mono);
  color: color-mix(in oklch, var(--bg) 60%, transparent);
  font-size: 0.78rem;
}
.fileitem__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fileitem__size {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: color-mix(in oklch, var(--bg) 55%, transparent);
}
.fileitem__rm {
  background: none;
  border: none;
  color: color-mix(in oklch, var(--bg) 55%, transparent);
  font-size: 1rem;
  padding: 0 var(--s-1);
  line-height: 1;
  transition: color 0.2s;
}
.fileitem__rm:hover { color: var(--bg); }

.form__submit {
  margin-top: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  align-items: flex-start;
}
.form__note {
  font-size: 0.78rem;
  color: color-mix(in oklch, var(--bg) 55%, transparent);
  line-height: 1.5;
  max-width: 48ch;
}

/* Success state */
.form__success {
  display: none;
  padding: var(--s-6);
  border: 1px solid color-mix(in oklch, var(--bg) 35%, transparent);
  border-radius: 4px;
  background: color-mix(in oklch, var(--bg) 8%, transparent);
  text-align: center;
}
.form__success--shown { display: block; }
.form__success-t {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--bg);
}
.form__success-d {
  margin-top: var(--s-3);
  font-size: 0.9rem;
  color: color-mix(in oklch, var(--bg) 75%, transparent);
  line-height: 1.6;
}
.form__success-d a {
  color: var(--bg);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-block: var(--s-7) var(--s-5);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-6);
  align-items: start;
}
.footer__brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}
.footer__brand-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: var(--s-2);
}
.footer__motto {
  margin-top: var(--s-4);
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
}
.footer__col-k {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: var(--s-3);
}
.footer__col p,
.footer__col a {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer__col a:hover { color: var(--text); }
.footer__bottom {
  margin-top: var(--s-7);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 0.8rem;
  color: var(--text-faint);
}

/* ============================================================
   SECTION: FAQ (accordion)
   ============================================================ */
.faq {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.faq__cat {
  margin-top: var(--s-6);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--border);
}
.faq__cat:first-of-type { margin-top: var(--s-7); }
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-4) var(--s-1);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-4);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--text);
  transition: color 0.2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent-text);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease-out);
}
.faq__item[open] summary { color: var(--accent-text); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__a {
  padding: 0 var(--s-1) var(--s-5);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 72ch;
}
.faq__a ul {
  margin: var(--s-3) 0 0;
  padding-left: var(--s-4);
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.faq__a li { margin: 0; }
.faq__a strong { color: var(--text); font-weight: 600; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__aside { border-top: 1px solid var(--border); padding-top: var(--s-5); }
  .band__inner { grid-template-columns: repeat(3, 1fr); }
  .band__cell:nth-child(3) { border-right: none; }
  .band__cell:nth-child(1), .band__cell:nth-child(2), .band__cell:nth-child(3) { border-bottom: 1px solid color-mix(in oklch, var(--bg) 14%, transparent); }
  .cap__grid { grid-template-columns: 1fr; }
  .solve__list { grid-template-columns: 1fr; }
  .solve__item:nth-child(odd) { border-right: none; }
  .eq__grid { grid-auto-rows: 160px; }
  .eq__card--a { grid-column: span 12; }
  .eq__card--b, .eq__card--c, .eq__card--d, .eq__card--e, .eq__card--f, .eq__card--g, .eq__card--h { grid-column: span 6; }
  .mat__row { grid-template-columns: 1fr; }
  .prod__grid { grid-template-columns: 1fr 1fr; }
  .qual__grid { grid-template-columns: 1fr; }
  .proc__steps { grid-template-columns: 1fr 1fr; }
  .proc__step { border-bottom: 1px solid var(--border); }
  .about__chart { grid-column: span 12; }
  .about__identity { grid-template-columns: 1fr; }
  .blog__grid { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav__links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem;
    min-width: 220px;
    box-shadow: 0 12px 32px color-mix(in oklch, var(--text) 10%, transparent);
  }
  .nav__links.is-open { display: flex; }
  .nav__item {
    border-bottom: 1px solid var(--border);
  }
  .nav__item:last-child { border-bottom: none; }
  .nav__top {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0.5rem;
    font-size: 0.95rem;
  }
  .nav__top::after {
    transform: rotate(90deg);
  }
  .nav__item.is-open .nav__top::after {
    transform: rotate(-90deg);
  }
  .nav__sub {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0.5rem 0.75rem;
    background: transparent;
    min-width: auto;
  }
  .nav__item.is-open .nav__sub { display: block; }
  .nav__toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--s-2);
  }
  .nav__toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
  }
  .nav__cta .btn--ghost { display: none; }
  .hero__media { aspect-ratio: 4 / 3; }
  .band__inner { grid-template-columns: 1fr 1fr; }
  .band__cell { border-right: 1px solid color-mix(in oklch, var(--bg) 14%, transparent) !important; border-bottom: 1px solid color-mix(in oklch, var(--bg) 14%, transparent); }
  .band__cell:nth-child(even) { border-right: none !important; }
  .cap__stats { grid-template-columns: 1fr; }
  .eq__grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .eq__card--a, .eq__card--b, .eq__card--c, .eq__card--d, .eq__card--e, .eq__card--f, .eq__card--g, .eq__card--h { grid-column: span 1; }
  .prod__grid { grid-template-columns: 1fr; }
  .blog__grid { grid-template-columns: 1fr; }
  .proc__steps { grid-template-columns: 1fr; }
  .proc__step { border-right: none; }
  .form__row--2, .form__row--3 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .about__facts { grid-template-columns: 1fr; }
  .about__timeline { flex-wrap: wrap; gap: var(--s-4) var(--s-5); }
  .about__timeline::before { display: none; }
  .about__timeline-item { flex: 0 0 calc(50% - var(--s-3)); align-items: flex-start; text-align: left; }
  .about__timeline-dot { position: static; transform: none; }
}

/* ============================================================
   MOTION — reveal on scroll (graceful: content visible without JS)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal--in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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