/* =============================================================
   Yi'en Industrial — Design System v1.0
   Design tokens → foundations → components → pages → responsive
   Accessibility target: WCAG 2.1 AA (4.5:1 text contrast, visible focus)
   ============================================================= */

/* ---------- 1. Design Tokens ---------- */
:root {
  /* Brand / steel blue */
  --brand-900: #0B2C4B;
  --brand-800: #103A5E;
  --brand-700: #14508C;
  --brand-600: #185FA5;
  --brand-500: #2169AE;
  --brand-300: #8FC0EE;
  --brand-100: #E6F1FB;
  --brand-50:  #F2F8FD;

  /* Accent / molten amber */
  --accent-600: #B9791C;
  --accent-500: #E9A63F;
  --accent-400: #F2BB67;
  --accent-100: #FDF3E2;

  /* Neutrals */
  --ink-900: #0E1F2F;
  --ink-700: #2C3E50;
  --ink-500: #4E6073;
  --ink-400: #66758A;
  --line:    #DDE3EA;
  --line-soft: #EBEFF4;
  --surface: #FFFFFF;
  --surface-2: #F5F7FA;
  --surface-3: #ECF1F6;
  --paper:   #F7F9FB;

  /* Semantic */
  --success: #1E8A5A;
  --warning: #9A6510;
  --error:   #C0392B;

  /* Typography */
  --font-zh: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --font-en: Inter, "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, "SFMono-Regular", "Courier New", monospace;
  --fs-xs: 0.75rem;    /* 12 */
  --fs-sm: 0.8125rem;  /* 13 */
  --fs-base: 0.9375rem;/* 15 */
  --fs-md: 1rem;       /* 16 */
  --fs-lg: 1.125rem;   /* 18 */
  --fs-xl: 1.25rem;    /* 20 */
  --fs-2xl: 1.5rem;    /* 24 */
  --fs-3xl: 1.875rem;  /* 30 */
  --fs-4xl: 2.25rem;   /* 36 */
  --fs-5xl: 3rem;      /* 48 */
  --fs-6xl: 3.75rem;   /* 60 */
  --lh-tight: 1.18;
  --lh-body: 1.75;

  /* Spacing — 4px base */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px;
  --s-16: 64px; --s-20: 80px; --s-24: 96px; --s-30: 120px;

  /* Radii */
  --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-xl: 18px; --r-pill: 999px;

  /* Elevation */
  --sh-sm: 0 1px 2px rgb(11 44 75 / 0.06);
  --sh-md: 0 6px 18px -4px rgb(11 44 75 / 0.12), 0 2px 6px rgb(11 44 75 / 0.05);
  --sh-lg: 0 20px 46px -12px rgb(11 44 75 / 0.22);

  /* Motion */
  --t-fast: 150ms ease;
  --t-normal: 300ms cubic-bezier(.22,.61,.36,1);
  --t-slow: 600ms cubic-bezier(.22,.61,.36,1);

  /* Layout */
  --container: 1200px;
  --header-h: 76px;
}

/* ---------- 2. Reset & Foundations ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink-700);
  font-family: var(--font-zh);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html[lang="en"] body { font-family: var(--font-en); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
table { border-collapse: collapse; }
:focus-visible { outline: 3px solid var(--brand-500); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--brand-300); color: var(--brand-900); }

/* Fonts for grade/part numbers */
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: .2px; }

/* ---------- 3. Layout Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-6); }
.section { padding-block: var(--s-20); position: relative; }
.section--tight { padding-block: var(--s-16); }
.section--paper { background: var(--paper); }
.section--tint { background: var(--brand-50); }
.section--dark { background: var(--brand-900); color: #fff; }
.grid { display: grid; gap: var(--s-6); }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }

/* Technical grid backdrop */
.grid-bg {
  background-image: linear-gradient(rgb(24 95 165 / .045) 1px, transparent 1px),
                    linear-gradient(90deg, rgb(24 95 165 / .045) 1px, transparent 1px);
  background-size: 40px 40px;
}
.grid-bg--dark {
  background-image: linear-gradient(rgb(255 255 255 / .045) 1px, transparent 1px),
                    linear-gradient(90deg, rgb(255 255 255 / .045) 1px, transparent 1px);
}

/* Eyebrow + section headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-en); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--brand-600);
  margin-bottom: var(--s-4);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent-500); }
.section--dark .eyebrow { color: var(--brand-300); }
.section-title {
  font-size: var(--fs-3xl); line-height: var(--lh-tight); font-weight: 700;
  letter-spacing: -.01em; color: var(--ink-900);
}
.section--dark .section-title { color: #fff; }
.section-desc { margin-top: var(--s-4); font-size: var(--fs-md); color: var(--ink-500); max-width: 68ch; }
.section--dark .section-desc { color: #C4D4E3; }
.section-head { margin-bottom: var(--s-12); }
.section-head--split { display: flex; justify-content: space-between; align-items: end; gap: var(--s-10); flex-wrap: wrap; }
.text-accent { color: var(--accent-500); }

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 999;
  background: #fff; color: var(--brand-900); padding: 10px 18px;
  border: 2px solid var(--brand-600); border-radius: var(--r-md); font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--s-3); }

/* ---------- 5. Header & Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgb(255 255 255 / .92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow var(--t-normal), background var(--t-normal);
}
.site-header.is-scrolled { box-shadow: var(--sh-sm); }
.header-inner { height: 100%; display: flex; align-items: center; gap: var(--s-8); }
.brand-link { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-link img { width: 42px; height: 42px; }
.brand-word { display: flex; flex-direction: column; line-height: 1.15; }
.brand-word strong { font-size: 17px; font-weight: 700; letter-spacing: .08em; color: var(--brand-900); }
.brand-word span { font-family: var(--font-en); font-size: 9px; font-weight: 700; letter-spacing: .2em; color: var(--brand-600); margin-top: 3px; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: var(--s-2); list-style: none; }
.main-nav a {
  display: inline-flex; align-items: center; height: 44px; padding: 0 14px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-700);
  border-radius: var(--r-sm); position: relative; transition: color var(--t-fast), background var(--t-fast);
}
.main-nav a:hover { color: var(--brand-600); background: var(--brand-50); }
.main-nav a[aria-current="page"] { color: var(--brand-600); }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px;
  height: 2px; background: var(--accent-500); border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: var(--s-3); }

.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px;
  background: var(--surface-3); border-radius: var(--r-pill);
  border: 1px solid var(--line);
}
.lang-switch button {
  min-width: 44px; height: 30px; padding: 0 10px; border: 0; background: transparent;
  border-radius: var(--r-pill); font-family: var(--font-en); font-size: 11px;
  font-weight: 700; letter-spacing: .04em; color: var(--ink-500);
  transition: all var(--t-fast);
}
.lang-switch button:hover { color: var(--brand-700); }
.lang-switch button[aria-pressed="true"] { background: var(--brand-600); color: #fff; box-shadow: var(--sh-sm); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: var(--r-md); align-items: center; justify-content: center;
  color: var(--brand-900);
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 22px; border: 1px solid transparent;
  border-radius: var(--r-md); font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: .02em; white-space: nowrap;
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn--primary { background: var(--brand-600); color: #fff; box-shadow: 0 6px 16px -6px rgb(24 95 165 / .6); }
.btn--primary:hover { background: var(--brand-700); box-shadow: var(--sh-md); }
.btn--accent { background: var(--accent-500); color: var(--brand-900); }
.btn--accent:hover { background: var(--accent-400); box-shadow: var(--sh-md); }
.btn--outline { background: transparent; color: var(--brand-700); border-color: var(--brand-600); }
.btn--outline:hover { background: var(--brand-600); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgb(255 255 255 / .45); }
.btn--ghost-light:hover { background: rgb(255 255 255 / .12); border-color: #fff; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: var(--fs-xs); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; min-height: 620px; display: flex; align-items: center;
  background: var(--brand-900); color: #fff; overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgb(9 32 55 / .96) 0%, rgb(9 32 55 / .86) 42%, rgb(9 32 55 / .42) 78%, rgb(9 32 55 / .28) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px),
                    linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%);
}
.hero__inner { padding-block: var(--s-20) var(--s-16); width: 100%; max-width: 100%; min-width: 0; }
.hero__content { max-width: min(720px, 100%); }
.hero__tag {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px;
  border: 1px solid rgb(233 166 63 / .5); border-radius: var(--r-pill);
  background: rgb(233 166 63 / .1); color: var(--accent-400);
  font-family: var(--font-en); font-size: 11px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; margin-bottom: var(--s-8);
}
.hero__tag i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-500); }
.hero h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.75rem); line-height: 1.16;
  font-weight: 700; letter-spacing: -.02em; text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--accent-400); }
.hero__sub {
  margin-top: var(--s-6); max-width: min(60ch, 100%); font-size: var(--fs-lg);
  color: #D3E1EE; line-height: 1.8; overflow-wrap: anywhere;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-10); }
.hero__rule { width: 64px; height: 3px; background: var(--accent-500); margin-top: var(--s-12); border-radius: 2px; }

/* Stat strip */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px;
  background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .16);
  border-radius: var(--r-lg); overflow: hidden; margin-top: var(--s-16);
  backdrop-filter: blur(6px);
}
.hero-stat { background: rgb(9 32 55 / .62); padding: var(--s-6) var(--s-6); }
.hero-stat b { display: block; font-family: var(--font-en); font-size: var(--fs-2xl); font-weight: 700; color: #fff; letter-spacing: -.02em; }
.hero-stat b span { color: var(--accent-400); }
.hero-stat small { display: block; margin-top: 4px; font-size: var(--fs-xs); color: #AFC6DA; letter-spacing: .04em; overflow-wrap: anywhere; }

/* ---------- 8. Cards & generic blocks ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); overflow: hidden;
  transition: transform var(--t-normal), box-shadow var(--t-normal), border-color var(--t-normal);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--brand-300); }

.feature-card { padding: var(--s-8); position: relative; }
.feature-card__index {
  font-family: var(--font-en); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .12em; color: var(--brand-600); opacity: .7;
}
.feature-card__icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--brand-100); color: var(--brand-600);
  display: grid; place-items: center; margin-block: var(--s-5) var(--s-5);
}
.feature-card__icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: var(--fs-lg); font-weight: 700; color: var(--ink-900); margin-bottom: var(--s-3); }
.feature-card p { font-size: var(--fs-base); color: var(--ink-500); line-height: 1.85; }

/* Product cards with image */
.product-card { display: flex; flex-direction: column; height: 100%; }
.product-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__code {
  position: absolute; left: var(--s-3); bottom: var(--s-3);
  padding: 5px 10px; border-radius: var(--r-sm);
  background: rgb(11 44 75 / .82); color: #fff;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: .04em;
  backdrop-filter: blur(4px);
}
.product-card__body { padding: var(--s-6); flex: 1; display: flex; flex-direction: column; }
.product-card__body h3 { font-size: var(--fs-lg); font-weight: 700; color: var(--ink-900); margin-bottom: var(--s-2); }
.product-card__body .en { font-family: var(--font-en); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-600); }
.product-card__body p { font-size: var(--fs-sm); color: var(--ink-500); margin-top: var(--s-3); }
.product-card__spec { margin-top: auto; padding-top: var(--s-4); border-top: 1px solid var(--line-soft); font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-400); }

/* Numbered advantage rows */
.advantage-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.advantage {
  background: #fff; padding: var(--s-6) var(--s-8); display: grid;
  grid-template-columns: 56px 200px minmax(0,1fr); gap: var(--s-6); align-items: baseline;
  transition: background var(--t-fast);
}
.advantage:hover { background: var(--brand-50); }
.advantage__no { font-family: var(--font-en); font-size: var(--fs-xl); font-weight: 700; color: var(--brand-300); }
.advantage__title { font-size: var(--fs-md); font-weight: 700; color: var(--ink-900); }
.advantage p { font-size: var(--fs-sm); color: var(--ink-500); }

/* Two-column editorial block */
.editorial { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: var(--s-16); align-items: center; }
.editorial__figure { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-lg); }
.editorial__figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.editorial__figure figcaption {
  position: absolute; left: 0; bottom: 0; right: 0; padding: var(--s-4) var(--s-6);
  background: linear-gradient(transparent, rgb(9 32 55 / .9)); color: #fff;
  font-family: var(--font-en); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
}
.editorial__body p { color: var(--ink-500); margin-bottom: var(--s-4); }
.check-list { list-style: none; margin-top: var(--s-6); display: grid; gap: var(--s-3); }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); color: var(--ink-700); }
.check-list svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--success); margin-top: 4px; }

/* Supply chain / steps */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: var(--s-4); counter-reset: flow; }
.flow-step {
  position: relative; padding: var(--s-6); border: 1px solid rgb(255 255 255 / .16);
  background: rgb(255 255 255 / .05); border-radius: var(--r-lg);
}
.flow-step::after {
  content: ""; position: absolute; top: 50%; right: -18px; width: 18px; height: 1px;
  background: var(--accent-500);
}
.flow-step:last-child::after { display: none; }
.flow-step__no { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--accent-400); letter-spacing: .1em; }
.flow-step h3 { font-size: var(--fs-md); font-weight: 700; color: #fff; margin-block: var(--s-3) var(--s-2); }
.flow-step p { font-size: var(--fs-xs); color: #B9CCDD; line-height: 1.7; }

/* Badges / tags */
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: var(--r-pill); background: var(--brand-100); color: var(--brand-700);
  font-size: 11px; font-weight: 700; letter-spacing: .03em;
}
.tag--amber { background: var(--accent-100); color: var(--warning); }
.tag--line { background: transparent; border: 1px solid var(--line); color: var(--ink-500); }

/* ---------- 9. Grades table ---------- */
.page-hero {
  background: var(--brand-900); color: #fff; padding-block: var(--s-16) var(--s-12);
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -8%; top: -60%; width: 46%; aspect-ratio: 1;
  border-radius: 50%; background: radial-gradient(circle, rgb(33 105 174 / .35), transparent 65%);
}
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); font-weight: 700; line-height: 1.22; }
.page-hero p { margin-top: var(--s-4); color: #C4D6E6; max-width: 70ch; }
.page-hero .eyebrow { color: var(--accent-400); }
.page-hero .eyebrow::before { background: var(--accent-500); }

.breadcrumb { display: flex; gap: 10px; align-items: center; font-size: var(--fs-xs); color: #9DB6CC; margin-bottom: var(--s-6); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

.capability-strip { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s-4); }
.capability { padding: var(--s-6); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.capability h3 { font-size: var(--fs-sm); font-weight: 700; color: var(--brand-600); margin-bottom: var(--s-2); }
.capability p { font-size: var(--fs-sm); color: var(--ink-500); }

.table-tools { display: flex; gap: var(--s-4); align-items: center; flex-wrap: wrap; margin-bottom: var(--s-4); }
.search-field { position: relative; flex: 1; min-width: 260px; }
.search-field svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-400); pointer-events: none; }
.search-field input {
  width: 100%; height: 46px; padding: 0 16px 0 44px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
  color: var(--ink-900); font-size: var(--fs-base);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.search-field input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px rgb(33 105 174 / .14); }
.search-field input::placeholder { color: #8B9AA9; }
.legend { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--ink-500); }
.legend i { width: 16px; height: 16px; border-radius: 3px; background: #FBEFD0; border: 1px solid #E4C77A; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s-4); }
.chip {
  min-height: 34px; padding: 0 14px; border: 1px solid var(--line); background: #fff;
  border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 600; color: var(--ink-500);
  transition: all var(--t-fast);
}
.chip:hover { border-color: var(--brand-500); color: var(--brand-700); }
.chip[aria-pressed="true"] { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }

.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; min-width: 860px; font-size: var(--fs-sm); }
.data-table thead th {
  background: var(--brand-900); color: #fff; padding: 14px 16px;
  text-align: left; font-weight: 700; white-space: nowrap; font-size: var(--fs-xs);
  letter-spacing: .04em; position: sticky; top: 0;
}
.data-table td { padding: 11px 16px; border-bottom: 1px solid var(--line-soft); color: var(--ink-700); vertical-align: middle; }
.data-table tbody tr:nth-child(even) td { background: #FAFBFD; }
.data-table tbody tr:hover td { background: var(--brand-50); }
.data-table tr.group td {
  background: var(--brand-600) !important; color: #fff; font-weight: 700;
  font-size: var(--fs-sm); letter-spacing: .04em; padding: 10px 16px;
}
.data-table tr.stock td { background: #FFF8E9; }
.data-table tr.stock:nth-child(even) td { background: #FBF1D9; }
.data-table tr.stock:hover td { background: #F9EAC4; }
.data-table .grade { font-family: var(--font-mono); font-weight: 700; color: var(--brand-900); letter-spacing: .2px; }
.data-table .flag { color: var(--error); font-weight: 700; }
.data-table .dash { color: #A9B4BF; }
.table-empty { display: none; padding: var(--s-10); text-align: center; color: var(--ink-500); font-size: var(--fs-sm); }
.notes-box { margin-top: var(--s-8); padding: var(--s-8); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.notes-box h3 { font-size: var(--fs-md); font-weight: 700; color: var(--brand-700); margin-bottom: var(--s-4); }
.notes-box ol { padding-left: 20px; display: grid; gap: 8px; }
.notes-box li { font-size: var(--fs-sm); color: var(--ink-500); }
.notes-box li b { color: var(--ink-900); }
.table-foot { margin-top: var(--s-4); font-size: var(--fs-xs); color: var(--ink-400); text-align: center; }

/* ---------- 10. Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: var(--s-12); }
.contact-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: var(--s-10); box-shadow: var(--sh-md);
}
.contact-panel h3 { font-size: var(--fs-xl); font-weight: 700; color: var(--ink-900); margin-bottom: var(--s-2); }
.contact-panel > p { font-size: var(--fs-sm); color: var(--ink-500); margin-bottom: var(--s-8); }
.contact-row { display: flex; gap: var(--s-4); align-items: flex-start; padding-block: var(--s-4); border-top: 1px solid var(--line-soft); }
.contact-row__icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: var(--r-md); background: var(--brand-50); color: var(--brand-600); display: grid; place-items: center; }
.contact-row__icon svg { width: 19px; height: 19px; }
.contact-row small { display: block; font-family: var(--font-en); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-400); }
.contact-row a, .contact-row span { font-size: var(--fs-md); font-weight: 600; color: var(--brand-900); word-break: break-all; }
.contact-row a:hover { color: var(--brand-600); text-decoration: underline; }
.contact-aside { display: flex; flex-direction: column; justify-content: center; }
.contact-aside .section-desc { max-width: 52ch; }
.contact-highlight {
  margin-top: var(--s-8); padding: var(--s-6); border-left: 3px solid var(--accent-500);
  background: var(--brand-50); border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: var(--fs-sm); color: var(--ink-700);
}
.contact-qr { display: flex; gap: var(--s-3); flex-wrap: wrap; margin-top: var(--s-8); }

/* ---------- 11. Footer ---------- */
.site-footer { background: var(--brand-900); color: #B9CCDD; padding-top: var(--s-16); }
.footer-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.2fr); gap: var(--s-10); padding-bottom: var(--s-12); }
.footer-brand img { width: 200px; margin-bottom: var(--s-5); }
.footer-brand p { font-size: var(--fs-sm); max-width: 34ch; line-height: 1.9; }
.footer-col h4 { font-size: var(--fs-sm); font-weight: 700; color: #fff; margin-bottom: var(--s-5); letter-spacing: .04em; }
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-col a, .footer-col li { font-size: var(--fs-sm); color: #B9CCDD; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col .mono { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgb(255 255 255 / .12); padding-block: var(--s-5);
  display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap;
  font-size: var(--fs-xs); color: #8EA8BF;
}
.footer-bottom a:hover { color: #fff; }

/* ---------- 12. Brand guideline page ---------- */
.brand-page { background: var(--paper); }
.brand-hero { padding-block: var(--s-16); background: #fff; border-bottom: 1px solid var(--line); }
.brand-hero h1 { font-size: var(--fs-4xl); color: var(--ink-900); font-weight: 700; margin-top: var(--s-3); }
.brand-hero p { color: var(--ink-500); margin-top: var(--s-4); max-width: 70ch; }
.spec-block { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-10); margin-bottom: var(--s-6); box-shadow: var(--sh-sm); }
.spec-block h2 { font-size: var(--fs-xl); font-weight: 700; color: var(--ink-900); margin-bottom: var(--s-2); }
.spec-block > p { font-size: var(--fs-sm); color: var(--ink-500); margin-bottom: var(--s-8); max-width: 76ch; }
.logo-stage { display: grid; place-items: center; min-height: 190px; border-radius: var(--r-lg); border: 1px solid var(--line-soft); padding: var(--s-8); background: #fff; }
.logo-stage--dark { background: var(--brand-900); border-color: var(--brand-900); }
.logo-stage--grid {
  background-color: #fff;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 20px 20px;
}
.logo-stage img { max-height: 96px; width: auto; }
.logo-stage--dark img { max-height: 96px; }
.logo-stage img.mark-only { max-height: 110px; }
.stage-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.stage-label { font-family: var(--font-en); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-400); margin-bottom: var(--s-2); }
.swatches { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: var(--s-3); }
.swatch { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.swatch__color { height: 76px; }
.swatch__meta { padding: 10px 12px; }
.swatch__meta b { display: block; font-size: var(--fs-xs); color: var(--ink-900); }
.swatch__meta span { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-400); }
.spec-table { width: 100%; font-size: var(--fs-sm); }
.spec-table th { text-align: left; color: var(--ink-400); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.spec-table td { padding: 12px; border-bottom: 1px solid var(--line-soft); }
.spec-table td:first-child { font-weight: 600; color: var(--ink-900); width: 30%; }
.misuse-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--s-4); }
.misuse {
  border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-6);
  min-height: 130px; display: grid; place-items: center; background: #fff; position: relative;
}
.misuse span { position: absolute; bottom: 10px; left: 12px; font-size: 11px; font-weight: 700; color: var(--error); }
.misuse--stretch img { transform: scaleX(1.7); }
.misuse--rotate img { transform: rotate(18deg); }
.misuse--faded img { filter: grayscale(1) opacity(.35); }
.misuse--lowcontrast { background: #F2F2F2; }

/* ---------- 13. Motion & reveal ---------- */
/* Progressive enhancement: content stays visible unless JS explicitly hides
   a below-the-fold element. Prevents blank sections if scripts fail or when
   the whole page is rendered in one viewport (e.g. screenshots / print). */
.reveal { transition: opacity var(--t-slow), transform var(--t-slow); }
.reveal.is-pending:not(.is-visible) { opacity: 0; transform: translateY(22px); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 80ms; }
.reveal[data-delay="2"] { transition-delay: 160ms; }
.reveal[data-delay="3"] { transition-delay: 240ms; }

/* ---------- 14. Responsive ---------- */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .advantage { grid-template-columns: 44px 170px minmax(0,1fr); }
  .flow { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .flow-step:nth-child(2)::after { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--sh-md);
    padding: var(--s-3) var(--s-6) var(--s-5);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { height: 48px; width: 100%; padding-inline: 12px; }
  .main-nav a[aria-current="page"]::after { display: none; }
  .main-nav a[aria-current="page"] { background: var(--brand-50); }
  .editorial { grid-template-columns: 1fr; gap: var(--s-10); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-10); }
  .capability-strip { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero { min-height: 560px; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .swatches { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  :root { --s-20: 56px; --s-16: 48px; }
  .container { padding-inline: var(--s-4); }
  .section-title { font-size: var(--fs-2xl); }
  .hero h1 { font-size: 2.05rem; }
  .hero__sub { font-size: var(--fs-md); }
  .hero__actions .btn { width: 100%; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-stat { padding: var(--s-4); }
  .hero-stat b { font-size: var(--fs-xl); }
  .advantage { grid-template-columns: 1fr; gap: var(--s-2); padding: var(--s-6); }
  .advantage__no { font-size: var(--fs-sm); }
  .flow { grid-template-columns: 1fr; }
  .flow-step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .contact-panel { padding: var(--s-6); }
  .spec-block { padding: var(--s-6); }
  .stage-grid { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .misuse-grid { grid-template-columns: 1fr; }
  .brand-word span { display: none; }
  .header-actions .btn { display: none; }
  .section-head--split { align-items: start; }
}

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

/* ---------- 15. Print (grade chart) ---------- */
@media print {
  .site-header, .site-footer, .table-tools, .filter-chips, .hero__actions, .skip-link { display: none !important; }
  body { background: #fff; font-size: 10.5px; }
  .section { padding-block: 10px; }
  .page-hero { background: #fff; color: #000; padding: 0 0 10px; }
  .page-hero h1 { color: #000; font-size: 18px; }
  .page-hero p { color: #333; }
  .data-table { min-width: 0; font-size: 9px; }
  .data-table thead th { background: #2C3E50 !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; padding: 5px 6px; }
  .data-table td { padding: 3px 6px; }
  .data-table tr.group td { background: #185FA5 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .data-table tr.stock td { background: #FBEFD0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .table-wrap { box-shadow: none; border: 0; }
  @page { size: A4 landscape; margin: 8mm; }
}
