/* ==========================================================================
   ESWAN OPTICAL — Design System
   Editorial / precision-manufacturing aesthetic for premium eyewear OEM
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #14130f;
  --ink-soft: #26241d;
  --ink-70: rgba(20, 19, 15, 0.7);
  --bone: #f4f1ea;
  --paper: #fbf9f4;
  --white: #ffffff;
  --line: #ddd7c9;
  --line-soft: rgba(20, 19, 15, 0.08);
  --line-light: rgba(244, 241, 234, 0.18);
  --muted: #6e695c;
  --accent: #9a7b4a;
  --accent-light: #c9ad80;
  --accent-wash: #efe7d8;

  --max: 1360px;
  --pad: clamp(20px, 4.4vw, 68px);
  --nav-h: 72px;

  --font-display: "Instrument Serif", "Songti SC", "Times New Roman", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; background: none; border: 0; }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--ink); color: var(--bone); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- 3. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: clamp(72px, 8vw, 132px); }
.section--tight { padding-block: clamp(52px, 5.5vw, 88px); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--bone); }
.section--line { border-top: 1px solid var(--line); }

.grid {
  display: grid;
  gap: clamp(20px, 2.4vw, 36px);
}
.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)); }

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

/* ---------- 4. Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.section--ink .eyebrow { color: var(--accent-light); }
.eyebrow--plain::before { display: none; }

.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 6.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h3, .h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.lead {
  font-size: clamp(16px, 1.25vw, 18.5px);
  line-height: 1.75;
  color: var(--muted);
  max-width: 62ch;
}
.section--ink .lead { color: rgba(244, 241, 234, 0.68); }

.body-sm {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.section--ink .body-sm { color: rgba(244, 241, 234, 0.6); }

.serif-num {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}
.section--ink .rule { background: var(--line-light); }

/* ---------- 5. Buttons & links ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--bone);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 54px;
  padding: 0 28px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: background 0.35s var(--ease), color 0.35s var(--ease),
    border-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn:hover .arrow { transform: translateX(4px); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: rgba(20, 19, 15, 0.28);
}
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--bone); }

.btn--light {
  --btn-bg: var(--bone);
  --btn-fg: var(--ink);
  border-color: var(--bone);
}
.btn--light:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.btn--line-light {
  --btn-bg: transparent;
  --btn-fg: var(--bone);
  border-color: rgba(244, 241, 234, 0.32);
}
.btn--line-light:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }

.btn--sm { height: 44px; padding: 0 20px; font-size: 10.5px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  transition: color 0.3s var(--ease), gap 0.3s var(--ease);
}
.link-arrow:hover { color: var(--accent); gap: 16px; }

.arrow { display: inline-block; width: 16px; height: 8px; flex: none; }

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(244, 241, 234, 0.82);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(244, 241, 234, 0.94);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: var(--nav-h);
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-right: auto;
  flex: none;
}
.brand__mark {
  font-family: var(--font-display);
  font-size: 25px;
  letter-spacing: 0.16em;
  line-height: 1;
}
.brand__sub {
  font-size: 8.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
  padding-bottom: 2px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.1vw, 34px);
}
.nav__links a {
  position: relative;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--ink-70);
  padding-block: 4px;
  transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--ink); }

.nav__actions { display: flex; align-items: center; gap: 14px; flex: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: transform 0.3s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 0;
  background: var(--bone);
  z-index: 85;
  padding: 28px var(--pad) 40px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateY(-8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
body.nav-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.mobile-menu__links { display: flex; flex-direction: column; }
.mobile-menu__links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 30px;
  letter-spacing: -0.01em;
}
.mobile-menu__links a span {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.mobile-menu__foot { display: grid; gap: 18px; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(520px, 82vh, 780px);
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  transform: scale(1.03);
  animation: heroIn 1.6s var(--ease-out) forwards;
}
@keyframes heroIn {
  from { transform: scale(1.08); opacity: 0.4; }
  to { transform: scale(1.03); opacity: 1; }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 9, 7, 0.62) 0%, rgba(10, 9, 7, 0.12) 38%, rgba(10, 9, 7, 0.86) 100%),
    linear-gradient(90deg, rgba(10, 9, 7, 0.72) 0%, rgba(10, 9, 7, 0) 62%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: clamp(56px, 8vw, 96px) 0;
}
.hero__content { max-width: 760px; }
.hero .eyebrow { color: var(--accent-light); }
.hero h1 {
  margin-top: 22px;
  font-size: clamp(40px, 5.4vw, 82px);
  color: #fbf9f4;
  max-width: 17ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent-light);
}
.hero__lead {
  margin-top: 24px;
  max-width: 46ch;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.72;
  color: rgba(251, 249, 244, 0.74);
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}
.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(48px, 6vw, 76px);
  padding-block: 26px;
  border-top: 1px solid rgba(244, 241, 234, 0.22);
}
.hero__meta div { display: flex; flex-direction: column; gap: 4px; }
.hero__meta dt {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.5);
}
.hero__meta dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 26px);
}

/* Page hero (inner pages) */
.page-hero {
  padding-block: clamp(56px, 7vw, 108px) clamp(40px, 4.5vw, 64px);
  border-bottom: 1px solid var(--line);
}
.page-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
}
.page-hero h1 { margin-top: 20px; max-width: 20ch; }
.page-hero .lead { margin-top: 0; }
.crumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
}
.crumbs a:hover { color: var(--ink); }
.crumbs span { opacity: 0.5; }

/* ---------- 8. Marquee ---------- */
.marquee {
  background: var(--ink);
  color: rgba(244, 241, 234, 0.82);
  overflow: hidden;
  padding-block: 15px;
  border-block: 1px solid rgba(244, 241, 234, 0.12);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: 0;
  flex: none;
}
.marquee__group span {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  padding-inline: 26px;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__group span::after {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--accent);
  transform: rotate(45deg);
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- 9. Section headers ---------- */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.sec-head__text { max-width: 46ch; }
.sec-head h2 { margin-top: 18px; }
.sec-head .lead { margin-top: 18px; }
.sec-head__aside { flex: none; padding-bottom: 6px; }

/* ---------- 10. Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.stat {
  background: var(--bone);
  padding: clamp(18px, 2.2vw, 28px);
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat__num sup {
  font-size: 0.42em;
  color: var(--accent);
  top: -0.7em;
  margin-left: 2px;
}
.stat__label {
  margin-top: 10px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 11. Material / collection cards ---------- */
.material-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(300px, 32vw, 420px);
  padding: 22px;
  color: #fbf9f4;
  overflow: hidden;
  isolation: isolate;
  border: 0;
  text-align: left;
  width: 100%;
}
.material-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  transition: transform 0.9s var(--ease-out);
}
.material-card:hover::before { transform: scale(1.06); }
.material-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(0, 0, 0, 0.34), transparent 62%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.46) 0%, rgba(0, 0, 0, 0.06) 42%, rgba(0, 0, 0, 0.58) 76%, rgba(0, 0, 0, 0.74) 100%);
}
.material-card--acetate::before {
  background:
    radial-gradient(60% 50% at 24% 22%, rgba(196, 150, 92, 0.55), transparent 62%),
    radial-gradient(45% 40% at 76% 68%, rgba(232, 205, 160, 0.35), transparent 60%),
    radial-gradient(55% 60% at 62% 30%, rgba(72, 44, 24, 0.85), transparent 65%),
    conic-gradient(from 200deg at 50% 50%, #7b5330, #3c2917, #a5763f, #4a3120, #8b6035);
}
.material-card--titanium::before {
  background:
    repeating-linear-gradient(102deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 3px),
    linear-gradient(148deg, #6f757a 0%, #b9bec3 32%, #d9dde0 46%, #8b9197 62%, #5b6167 100%);
}
.material-card--metal::before {
  background:
    repeating-linear-gradient(75deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 4px),
    linear-gradient(140deg, #5c4319 0%, #9a7538 30%, #c2a470 48%, #7d5c28 68%, #4a3514 100%);
}
.material-card--sun::before {
  background:
    radial-gradient(70% 55% at 70% 22%, rgba(255, 196, 128, 0.28), transparent 62%),
    linear-gradient(160deg, #3a3a3c 0%, #1d1d20 45%, #0d0d0f 100%);
}
.material-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251, 249, 244, 0.78);
}
.material-card__art {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 26px;
  z-index: -1;
}
.material-card__art svg {
  width: 82%;
  max-width: 300px;
  height: auto;
  opacity: 0.92;
  transition: transform 0.9s var(--ease-out);
}
.material-card:hover .material-card__art svg { transform: translateY(-6px) scale(1.02); }
.material-card__foot { display: grid; gap: 8px; }
.material-card__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.1;
}
.material-card__desc {
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(251, 249, 244, 0.72);
  max-width: 30ch;
}
.material-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
}

/* ---------- 12. Product cards ---------- */
.frames-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
.frame-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  text-align: left;
  width: 100%;
  transition: border-color 0.4s var(--ease), background 0.4s var(--ease),
    transform 0.5s var(--ease-out);
}
.frame-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
}
.frame-card__media {
  position: relative;
  aspect-ratio: 5 / 3.55;
  display: grid;
  place-items: center;
  padding: 14px 16px;
  overflow: hidden;
  background: linear-gradient(170deg, #ffffff 0%, #f2eee4 100%);
}
.frame-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 70%, rgba(20, 19, 15, 0.07), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.frame-card:hover .frame-card__media::after { opacity: 1; }
.frame-card__media svg,
.frame-card__media img {
  width: 96%;
  height: auto;
  object-fit: contain;
  transition: transform 0.7s var(--ease-out);
}
.frame-card:hover .frame-card__media svg,
.frame-card:hover .frame-card__media img { transform: scale(1.045); }
.frame-card__body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 18px;
  border-top: 1px solid var(--line);
}
.frame-card__name {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.frame-card__meta {
  margin-top: 4px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.frame-card__code {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.frame-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(251, 249, 244, 0.9);
  border: 1px solid var(--line);
  padding: 4px 8px;
}

/* Filter chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: all 0.3s var(--ease);
  background: transparent;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bone);
}

/* ---------- 13. Capability rows ---------- */
.cap-list { border-top: 1px solid var(--line-light); }
.cap-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.05fr) minmax(0, 1.35fr) 30px;
  gap: clamp(16px, 3vw, 48px);
  align-items: start;
  padding-block: clamp(26px, 3vw, 40px);
  border-bottom: 1px solid var(--line-light);
  transition: background 0.4s var(--ease), padding-inline 0.4s var(--ease);
}
.cap-row:hover { background: rgba(244, 241, 234, 0.04); padding-inline: 16px; }
.cap-row__num {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--accent-light);
  padding-top: 6px;
}
.cap-row h3 { color: var(--bone); font-size: clamp(19px, 1.7vw, 24px); }
.cap-row__desc { color: rgba(244, 241, 234, 0.64); font-size: 14px; line-height: 1.7; }
.cap-row__arrow { color: rgba(244, 241, 234, 0.4); justify-self: end; padding-top: 4px; }
.cap-row:hover .cap-row__arrow { color: var(--accent-light); }

/* ---------- 14. Feature split ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
}
.feature__media { position: relative; overflow: hidden; min-height: 380px; }
.feature--reverse .feature__media { order: 2; }
.feature--reverse .feature__body { order: 1; }
.feature__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.feature:hover .feature__media img { transform: scale(1.03); }
.feature__body {
  padding: clamp(28px, 4vw, 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.feature__body h2 { max-width: 22ch; }
.spec-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.spec-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 13px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; font-weight: 500; text-align: right; }

/* ---------- 14b. Overlap feature (wide image + raised panel) ---------- */
.overlap { position: relative; }
.overlap__media {
  position: relative;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: var(--ink);
}
.overlap__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transition: transform 1.4s var(--ease-out);
}
.overlap:hover .overlap__media img { transform: scale(1.025); }
.overlap__panel {
  position: relative;
  z-index: 2;
  width: min(660px, 100%);
  margin: -160px 0 0 auto;
  padding: clamp(28px, 4vw, 56px);
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  gap: 18px;
}
.overlap__panel .spec-list { margin-top: 4px; }
.overlap__caption {
  position: absolute;
  left: 0;
  bottom: -42px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 15. Quality / cert cards ---------- */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.cert {
  padding: clamp(22px, 2.4vw, 32px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  transition: background 0.4s var(--ease);
}
.cert:hover { background: var(--white); }
.cert__k {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.cert h3 { margin-top: 14px; font-size: 17px; }
.cert p { margin-top: 8px; font-size: 13px; line-height: 1.65; color: var(--muted); }

/* ---------- 16. Journal ---------- */
.post-list { border-top: 1px solid var(--line); }
.post-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 150px 30px;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
  transition: background 0.35s var(--ease), padding-inline 0.35s var(--ease);
}
.post-row:hover { background: var(--paper); padding-inline: 14px; }
.post-row__date {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-row h3 { font-family: var(--font-display); font-size: clamp(19px, 1.8vw, 25px); font-weight: 400; }
.post-row p { margin-top: 6px; font-size: 13px; color: var(--muted); }
.post-row__cat {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  justify-self: end;
}
.post-row__arrow { justify-self: end; color: var(--muted); }
.post-row:hover .post-row__arrow { color: var(--ink); }

/* ---------- 17. CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: var(--bone);
  padding-block: clamp(64px, 7vw, 110px);
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -220px;
  top: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(154, 123, 74, 0.22), transparent 66%);
  pointer-events: none;
}
.cta-band__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
}
.cta-band h2 { max-width: 22ch; }
.cta-band .lead { margin-top: 20px; color: rgba(244, 241, 234, 0.7); }
.cta-band__actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

/* ---------- 18. Footer ---------- */
.site-footer {
  background: #0e0d0a;
  color: rgba(244, 241, 234, 0.72);
  padding-top: clamp(52px, 6vw, 84px);
  font-size: 13px;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 0.8fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(40px, 5vw, 64px);
}
.footer__brand .brand__mark { color: var(--bone); font-size: 30px; }
.footer__brand .brand__sub { color: rgba(244, 241, 234, 0.45); }
.footer__about {
  margin-top: 20px;
  max-width: 34ch;
  line-height: 1.75;
  color: rgba(244, 241, 234, 0.55);
}
.footer__col h4 {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.42);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer__col li { margin-bottom: 11px; }
.footer__col a { transition: color 0.25s var(--ease); }
.footer__col a:hover { color: var(--accent-light); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
  padding-block: 22px;
  border-top: 1px solid rgba(244, 241, 234, 0.12);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(244, 241, 234, 0.42);
}
.footer__wordmark {
  font-family: var(--font-display);
  font-size: clamp(56px, 15vw, 210px);
  line-height: 0.82;
  letter-spacing: 0.02em;
  color: rgba(244, 241, 234, 0.055);
  text-align: center;
  padding-block: 10px 24px;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
}

/* ---------- 19. Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field label .req { color: var(--accent); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 14px;
  border-radius: 0;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field textarea { resize: vertical; min-height: 118px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(154, 123, 74, 0.12);
}
.field input::placeholder,
.field textarea::placeholder { color: #a9a496; }
.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
}
.field--check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--ink); }

.form-note { font-size: 12px; color: var(--muted); }
.form-ok {
  display: none;
  padding: 16px 18px;
  border: 1px solid #9a7b4a;
  background: var(--accent-wash);
  font-size: 13.5px;
  line-height: 1.6;
}
.form-ok.is-visible { display: block; }

.form-fail {
  padding: 14px 16px;
  border: 1px solid #b3261e;
  background: rgba(179, 38, 30, 0.05);
  font-size: 13px;
  line-height: 1.6;
  color: #7d1a15;
}
.form-fail a { color: #7d1a15; text-decoration: underline; }

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #b3261e; }

/* ---------- 20. Tables / spec blocks ---------- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table th {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  border-bottom-color: var(--ink);
}
.data-table tr:hover td { background: var(--paper); }

/* ---------- 21. Process steps ---------- */
.steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: 90px minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(18px, 3vw, 48px);
  padding-block: clamp(26px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}
.step__num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  color: var(--accent);
  line-height: 1;
}
.step h3 { font-size: clamp(18px, 1.6vw, 22px); }
.step p { color: var(--muted); font-size: 14px; line-height: 1.72; max-width: 56ch; }
.step ul { margin-top: 14px; display: grid; gap: 7px; }
.step ul li {
  position: relative;
  padding-left: 16px;
  font-size: 12.5px;
  color: var(--muted);
}
.step ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  transform: rotate(45deg);
}

/* ---------- 21b. Timeline ---------- */
.timeline { border-top: 1px solid var(--line); }
.timeline__row {
  display: grid;
  grid-template-columns: 110px minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(16px, 3vw, 44px);
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.timeline__year {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.timeline__row h3 { font-size: 17px; }
.timeline__row p { color: var(--muted); font-size: 13.5px; line-height: 1.7; }

@media (max-width: 960px) {
  .timeline__row { grid-template-columns: 74px minmax(0, 1fr); }
  .timeline__row p { grid-column: 2; }
}

/* ---------- 21c. Article body ---------- */
.post-body { max-width: 68ch; }
.post-body p {
  font-size: clamp(15.5px, 1.2vw, 17.5px);
  line-height: 1.82;
  color: #2f2d26;
  margin-bottom: 26px;
}
.post-body p:first-child {
  font-family: var(--font-display);
  font-size: clamp(21px, 2vw, 26px);
  line-height: 1.5;
  color: var(--ink);
}
.post-body strong { font-weight: 600; color: var(--ink); }

/* ---------- 21d. Contact aside ---------- */
.contact-aside { display: grid; gap: 28px; }
.contact-block {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.contact-block h4 {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 10px;
}
.contact-block p, .contact-block a { font-size: 14.5px; line-height: 1.7; }
.contact-block a:hover { color: var(--accent); }
.next-steps { display: grid; gap: 14px; }
.next-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: 13px; line-height: 1.65; color: var(--muted); }
.next-steps span { color: var(--accent); font-family: var(--font-display); font-size: 15px; }

/* ---------- 22. Reveal animation (progressive enhancement) ----------
   Content is visible by default; the `.js-reveal` hook is added by script,
   so a JS failure degrades to a fully readable page. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  will-change: opacity, transform;
}
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
.js-reveal [data-reveal][data-delay="1"] { transition-delay: 0.08s; }
.js-reveal [data-reveal][data-delay="2"] { transition-delay: 0.16s; }
.js-reveal [data-reveal][data-delay="3"] { transition-delay: 0.24s; }
.js-reveal [data-reveal][data-delay="4"] { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- 23. Drawer (product detail) ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 13, 10, 0.55);
  backdrop-filter: blur(3px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.drawer-overlay.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(520px, 100%);
  background: var(--paper);
  z-index: 201;
  transform: translateX(101%);
  transition: transform 0.5s var(--ease-out);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.drawer.is-open { transform: none; }
.drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--paper);
  z-index: 2;
}
.drawer__close {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  font-size: 18px;
  line-height: 1;
}
.drawer__close:hover { background: var(--ink); color: var(--bone); }
.drawer__media {
  aspect-ratio: 5 / 3.4;
  display: grid;
  place-items: center;
  padding: 28px;
  background: linear-gradient(160deg, #fff, #efeade);
  border-bottom: 1px solid var(--line);
}
.drawer__media svg, .drawer__media img { width: 80%; }
.drawer__body { padding: 26px 24px 40px; display: grid; gap: 20px; }
.drawer__body h2 { font-size: clamp(26px, 3vw, 34px); }
.drawer__specs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.drawer__specs div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-block: 11px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.drawer__specs dt { color: var(--muted); }
.drawer__specs dd { margin: 0; text-align: right; }

/* ---------- 24. Utility ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0 !important; }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.nowrap { white-space: nowrap; }
.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;
}
.empty-state {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  font-size: 14px;
}

/* ---------- 25. Responsive ---------- */
@media (max-width: 1180px) {
  .nav__links { gap: 16px; }
  .nav__links a { font-size: 12px; }
  .frames-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu { display: flex; padding: 20px var(--pad) 24px; }
  .nav__actions > .lang-select { display: inline-flex; }
  .nav__actions > .lang-select .lang-select__input { font-size: 12px; padding-right: 16px; }
  /* The open menu carries its own full-width selector — avoid showing two. */
  body.nav-open .nav__actions > .lang-select { opacity: 0; pointer-events: none; }
  .mobile-menu__links a { padding-block: 13px; font-size: 27px; }
  .mobile-menu__foot { gap: 13px; }
  .lang-select--menu { margin-top: 14px; padding-top: 13px; }
  .nav__actions .btn { display: none; }

  .split,
  .feature,
  .cta-band__inner,
  .page-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-hero__inner { gap: 24px; align-items: start; }
  .feature__media { min-height: 300px; }
  .overlap__media { aspect-ratio: 4 / 3; }
  .overlap__panel { margin-top: -48px; width: 100%; }
  .overlap__caption { display: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap-row {
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    gap: 14px;
  }
  .cap-row__desc { grid-column: 2 / 4; }
  .post-row {
    grid-template-columns: minmax(0, 1fr) 24px;
    gap: 8px;
  }
  .post-row__date, .post-row__cat { display: none; }
  .step { grid-template-columns: 54px minmax(0, 1fr); }
  .step p, .step ul { grid-column: 2; }
  .footer__wordmark { font-size: 15vw; }
}

@media (max-width: 640px) {
  :root { --nav-h: 62px; }
  .brand__sub { display: none; }
  .brand__mark { font-size: 21px; }

  .hero { min-height: 78vh; }
  .hero h1 { font-size: clamp(34px, 9.6vw, 46px); }
  .hero__meta { grid-template-columns: 1fr; gap: 14px; }
  .hero__meta div { flex-direction: row; justify-content: space-between; align-items: baseline; }
  .hero__cta .btn { flex: 1 1 100%; }

  .frames-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .grid-3, .grid-4, .cert-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat__num { font-size: 30px; }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
  .footer__bottom { justify-content: flex-start; }
  .material-card { min-height: 280px; }
  .drawer__body { padding-bottom: 60px; }
  .post-row h3 { font-size: 18px; }
  .data-table { font-size: 12px; }
  .data-table th, .data-table td { padding: 10px 8px; }
}

@media (max-width: 400px) {
  .frames-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 24. Language switcher (dropdown) ---------- */
.lang-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: none;
}
.lang-select__input {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: none;
  margin: 0;
  padding: 5px 17px 5px 6px;
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--ink-70);
  cursor: pointer;
  border-radius: 2px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.lang-select__input:hover { color: var(--ink); background: rgba(20, 19, 15, 0.045); }
.lang-select__input:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }
.lang-select__input option { color: var(--ink); background: #fff; letter-spacing: 0; }
.lang-select__icon {
  position: absolute;
  right: 4px;
  top: 50%;
  width: 8px;
  height: 5px;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--ink-70);
  opacity: 0.7;
}
.site-header.is-scrolled .lang-select__input { color: var(--ink-70); }
.site-header.is-scrolled .lang-select__icon { color: var(--ink-70); }

/* Menu variant: full-width field above the closing rule */
.lang-select--menu {
  display: flex;
  width: 100%;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.lang-select--menu .lang-select__input {
  width: 100%;
  padding: 12px 38px 12px 12px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 1px;
}
.lang-select--menu .lang-select__input:hover { background: rgba(20, 19, 15, 0.03); }
.lang-select--menu .lang-select__icon { right: 14px; width: 10px; height: 6px; color: var(--ink); }
/* Mid-width band only: the nav links are still shown there, so the selector
   folds into the menu. Below 960 the links collapse and it stays in the bar. */
@media (max-width: 1180px) and (min-width: 961px) {
  .nav__actions > .lang-select { display: none; }
}

/* ---------- 25. CJK typography ---------- */
html[lang="zh-CN"] body,
html[lang="ja"] body,
html[lang="ko"] body {
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo",
    "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
}
html[lang="zh-CN"] h1, html[lang="zh-CN"] h2, html[lang="zh-CN"] h3, html[lang="zh-CN"] .brand__mark,
html[lang="ja"] h1, html[lang="ja"] h2, html[lang="ja"] h3, html[lang="ja"] .brand__mark,
html[lang="ko"] h1, html[lang="ko"] h2, html[lang="ko"] h3, html[lang="ko"] .brand__mark {
  font-family: "Instrument Serif", "Songti SC", "Source Han Serif SC", "Noto Serif SC",
    "Hiragino Mincho ProN", "Yu Mincho", "Nanum Myeongjo", "Batang", Georgia, serif;
}
html[lang="zh-CN"] .eyebrow,
html[lang="ja"] .eyebrow,
html[lang="ko"] .eyebrow {
  letter-spacing: 0.06em;
  text-transform: none;
}
html[lang="zh-CN"] .hero h1,
html[lang="ja"] .hero h1,
html[lang="ko"] .hero h1 { letter-spacing: -0.01em; line-height: 1.28; }
html[lang="zh-CN"] h2, html[lang="ja"] h2, html[lang="ko"] h2 { line-height: 1.35; letter-spacing: 0; }
html[lang="zh-CN"] .lead, html[lang="ja"] .lead, html[lang="ko"] .lead { line-height: 1.95; }
html[lang="zh-CN"] p, html[lang="ja"] p, html[lang="ko"] p { line-height: 1.95; }
html[lang="zh-CN"] .brand__mark,
html[lang="ja"] .brand__mark,
html[lang="ko"] .brand__mark { letter-spacing: 0.02em; }
html[lang="zh-CN"] .material-card__title,
html[lang="ja"] .material-card__title,
html[lang="ko"] .material-card__title { letter-spacing: 0; }
html[lang="zh-CN"] .footer__wordmark,
html[lang="ja"] .footer__wordmark,
html[lang="ko"] .footer__wordmark { letter-spacing: 0.04em; }
html[lang="ja"] .step__num, html[lang="ko"] .step__num, html[lang="zh-CN"] .step__num { font-family: "Inter", sans-serif; }

/* ---------- 26. CJK scaling refinements ---------- */
html[lang="zh-CN"] .hero h1,
html[lang="ja"] .hero h1,
html[lang="ko"] .hero h1 {
  font-size: clamp(30px, 3.5vw, 58px);
  line-height: 1.34;
  max-width: 20ch;
}
html[lang="zh-CN"] .hero__lead,
html[lang="ja"] .hero__lead,
html[lang="ko"] .hero__lead { max-width: 34em; line-height: 1.95; }
html[lang="zh-CN"] .page-hero h1,
html[lang="ja"] .page-hero h1,
html[lang="ko"] .page-hero h1 {
  font-size: clamp(28px, 3.2vw, 52px); line-height: 1.34;
  max-width: 28ch; text-wrap: balance;
}
html[lang="zh-CN"] .hero h1,
html[lang="ja"] .hero h1,
html[lang="ko"] .hero h1 { text-wrap: balance; }
html[lang="zh-CN"] .sec-head h2,
html[lang="ja"] .sec-head h2,
html[lang="ko"] .sec-head h2,
html[lang="zh-CN"] .cta-band h2,
html[lang="ja"] .cta-band h2,
html[lang="ko"] .cta-band h2 { font-size: clamp(26px, 3vw, 46px); line-height: 1.4; text-wrap: balance; max-width: min(620px, 100%); }
/* 46ch on .sec-head__text is measured against the 16px body face (~370px),
   which is far too narrow for a 40px+ CJK heading — widen the text column. */
html[lang="zh-CN"] .sec-head__text,
html[lang="ja"] .sec-head__text,
html[lang="ko"] .sec-head__text { max-width: min(780px, 100%); }
html[lang="zh-CN"] .sec-head .lead,
html[lang="ja"] .sec-head .lead,
html[lang="ko"] .sec-head .lead { max-width: 40em; }
html[lang="zh-CN"] .cap-row h3,
html[lang="ja"] .cap-row h3,
html[lang="ko"] .cap-row h3 { letter-spacing: 0; }
/* Korean breaks at spaces only — prevents particles (을/를/다) being
   orphaned onto their own line. overflow-wrap keeps long tokens safe. */
/* CJK display headings occupy more width per character than Latin, so the
   .split column pair is re-balanced to stop single-character orphan lines. */
html[lang="zh-CN"] .split,
html[lang="ja"] .split,
html[lang="ko"] .split { grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr); }
html[lang="ko"] body { word-break: keep-all; overflow-wrap: break-word; }

html[lang="zh-CN"] .nav__links,
html[lang="ja"] .nav__links,
html[lang="ko"] .nav__links { gap: 19px; }
@media (max-width: 900px) {
  html[lang="zh-CN"] .mobile-menu__links a,
  html[lang="ja"] .mobile-menu__links a,
  html[lang="ko"] .mobile-menu__links a { font-size: 22px; padding-block: 12px; }
  html[lang="zh-CN"] .mobile-menu .lang-select--menu,
  html[lang="ja"] .mobile-menu .lang-select--menu,
  html[lang="ko"] .mobile-menu .lang-select--menu { margin-top: 14px; padding-top: 12px; }
}
