/* =========================================================
   梦之来（嘉兴）进出口有限公司 · Mengzhilai official site
   ---------------------------------------------------------
   Palette: ecru paper + ink + cobalt (a nod to 蔚蓝 / Weilan)
   No web fonts or CDNs — system fonts only, so the site loads
   fast inside mainland China.
   ========================================================= */

:root {
  --paper: #F4F1EA;
  --paper-2: #EBE6DB;
  --card: #FBFAF7;
  --ink: #15171C;
  --ink-2: #4A4D56;
  --ink-3: #868891;
  --line: rgba(21, 23, 28, .11);
  --line-2: rgba(21, 23, 28, .22);
  --blue: #1F3FD1;
  --blue-soft: #8FA4FF;
  --night: #0D1330;
  --navy: #141B33;     /* logo navy */
  --gold: #B8955A;     /* logo champagne gold */

  --wrap: 1280px;
  --pad: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --r-lg: 22px;
  --r: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  /* colours of the <symbol id="mark"> logo (folded-ribbon M, see brand/) */
  --mark-front: var(--gold);
  --mark-back: var(--navy);
}

/* ---------- language switch: both languages live in the HTML ---------- */
:root[data-lang="zh"] [lang="en"],
:root[data-lang="en"] [lang="zh"] { display: none !important; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* faint paper grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .25 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--blue); color: #fff; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 400;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

.ico { width: 18px; height: 18px; flex: none; transition: transform .35s var(--ease); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; letter-spacing: .02em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--blue); }
.btn-line { border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); background: var(--card); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .35s, box-shadow .35s;
}
.site-header.is-scrolled,
.nav-open .site-header {
  background: rgba(244, 241, 234, .84);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-mark { width: 38px; height: 30px; }
.brand-word { width: 74px; height: 32px; color: var(--navy); }

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 999px;
  font-size: 15px; color: var(--ink-2); text-decoration: none;
  transition: color .25s, background .25s;
}
.nav a:hover, .nav a.is-current { color: var(--ink); background: rgba(21, 23, 28, .06); }

.header-tools { display: flex; align-items: center; gap: 12px; }

.lang-switch { display: flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.lang-switch button {
  border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-3);
  padding: 4px 11px; border-radius: 999px;
  transition: color .25s, background .25s;
}
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.nav-toggle {
  display: none; position: relative;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line-2); background: none; cursor: pointer;
}
.nav-toggle i {
  position: absolute; left: 12px; right: 12px; height: 1.6px; background: var(--ink);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav-toggle i:nth-of-type(1) { top: 16px; }
.nav-toggle i:nth-of-type(2) { top: 24px; }
.nav-toggle[aria-expanded="true"] i:nth-of-type(1) { top: 20px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-of-type(2) { top: 20px; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; padding: calc(var(--header-h) + clamp(40px, 7vh, 88px)) 0 clamp(56px, 8vw, 104px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 28px; padding: 7px 15px 7px 12px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255, 255, 255, .35);
  font-size: 13px; letter-spacing: .05em; color: var(--ink-2);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(31, 63, 209, .15); }

.hero-title {
  margin: 0 0 28px;
  font-size: clamp(44px, 6.2vw, 92px);
  line-height: 1.1; letter-spacing: -.02em; font-weight: 700;
}
.hero-title [lang="en"] { display: block; font-size: .86em; line-height: 1.02; letter-spacing: -.035em; }
.hero-title em { position: relative; font-style: normal; color: var(--blue); white-space: nowrap; }
.hero-title [lang="en"] em { font-family: var(--font-serif); font-style: italic; font-weight: 500; letter-spacing: -.01em; }
/* a stitched underline */
.hero-title em::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: -.04em; height: .055em;
  background: repeating-linear-gradient(90deg, var(--blue) 0 .2em, transparent .2em .34em);
  opacity: .55;
}

.hero-lead { margin: 0 0 36px; max-width: 34em; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.9; color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(40px, 5vw, 56px); }

.hero-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; margin: 0; border-top: 1px solid var(--line-2); }
.hero-facts div { padding: 18px 28px 0 0; }
.hero-facts div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.hero-facts dt { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.hero-facts sup { font-size: .55em; color: var(--blue); margin-left: 1px; }
.hero-facts dd { margin: 4px 0 0; font-size: 13px; color: var(--ink-3); }

/* ----- still life: a label set built in CSS ----- */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.06;
  container-type: inline-size;
}
.mat {
  position: absolute; inset: 0; border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(120% 80% at 25% 10%, rgba(255, 255, 255, .55), transparent 60%),
    linear-gradient(rgba(21, 23, 28, .07) 1px, transparent 1px) 0 0 / 10% 10%,
    linear-gradient(90deg, rgba(21, 23, 28, .07) 1px, transparent 1px) 0 0 / 10% 10%,
    linear-gradient(rgba(21, 23, 28, .035) 1px, transparent 1px) 0 0 / 2.5% 2.5%,
    linear-gradient(90deg, rgba(21, 23, 28, .035) 1px, transparent 1px) 0 0 / 2.5% 2.5%,
    #E6DFD0;
  box-shadow: inset 0 0 0 1px var(--line);
}

.piece {
  position: absolute;
  transform: translate3d(calc(var(--mx, 0) * var(--depth) * 1px), calc(var(--my, 0) * var(--depth) * 1px), 0);
  transition: transform .8s var(--ease);
}
.p-tag     { left: 8%;  top: 8%;  width: 37%; z-index: 2; }
.p-care    { right: 9%; top: 7%;  width: 19%; z-index: 1; }
.p-leather { left: 7%;  bottom: 8%; width: 44%; z-index: 1; }
.p-woven   { right: 4%; top: 53%; width: 56%; z-index: 3; }

@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -1.4cqw; } }

/* hang tag */
.hangtag {
  position: relative; rotate: -7deg;
  filter: drop-shadow(0 2.6cqw 3cqw rgba(21, 23, 28, .2)) drop-shadow(0 2px 2px rgba(21, 23, 28, .12));
  animation: float 7s ease-in-out infinite;
}
.tag-string { position: absolute; left: 22%; bottom: 88%; width: 60%; height: auto; z-index: 2; overflow: visible; }
.tag-body {
  position: relative; aspect-ratio: 5 / 8;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 33% 12% 9%;
  background: linear-gradient(160deg, #FFFDF8 10%, #F0E9DA 100%);
  clip-path: polygon(24% 0, 76% 0, 100% 13%, 100% 100%, 0 100%, 0 13%);
}
.tag-hole {
  position: absolute; top: 8%; left: 50%; width: 10%; aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%;
  background: #E6DFD0;
  box-shadow: 0 0 0 .7cqw #C9A65B, inset 0 1px 2px rgba(0, 0, 0, .35);
}
.tag-mark { width: 6.4cqw; height: 5.1cqw; margin-bottom: 2.6cqw; }
.tag-word { width: 66%; height: auto; color: var(--navy); }
.tag-rule { width: 28%; height: 1px; margin: 2.6cqw 0 2.2cqw; background: var(--ink); opacity: .35; }
.tag-meta { font-size: 1.15cqw; line-height: 1.9; letter-spacing: .22em; color: var(--ink-2); }
.tag-barcode {
  width: 66%; height: 4.2cqw; margin-top: auto;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 1px, transparent 1px 3px, var(--ink) 3px 5px, transparent 5px 6px,
    var(--ink) 6px 7px, transparent 7px 10px, var(--ink) 10px 13px, transparent 13px 14px);
  opacity: .85;
}
.tag-foot { margin-top: 1.2cqw; font-size: 1cqw; letter-spacing: .3em; color: var(--ink-3); }

/* care label */
.carelabel {
  position: relative; rotate: 9deg; aspect-ratio: 9 / 20;
  display: flex; flex-direction: column; align-items: center; gap: 2.2cqw;
  padding: 3.4cqw 1.8cqw 2.6cqw; text-align: center;
  font-size: 1.12cqw; line-height: 1.6; letter-spacing: .12em; color: #3B3E46;
  background: linear-gradient(100deg, #FFFFFF 0%, #F1F0EC 38%, #FFFFFF 55%, #EAE8E2 100%);
  box-shadow: 0 2.2cqw 3cqw rgba(21, 23, 28, .17), 0 1px 2px rgba(21, 23, 28, .15);
  animation: float 8s -2s ease-in-out infinite;
}
.carelabel::before { /* folded top edge */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7%;
  background: linear-gradient(180deg, rgba(0, 0, 0, .09), rgba(0, 0, 0, 0));
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.carelabel b { font-size: 1.9cqw; letter-spacing: .26em; padding-left: .26em; }
.care-icons { display: grid; grid-template-columns: 1fr 1fr; gap: 1cqw; width: 72%; }
.care-icons svg { width: 100%; height: auto; color: #3B3E46; }
.carelabel em { margin-top: auto; padding: 0 .7em; border: 1px solid currentColor; font-style: normal; font-weight: 700; font-size: 1.9cqw; }

/* leather patch */
.leather {
  position: relative; rotate: -5deg; aspect-ratio: 16 / 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2cqw;
  border-radius: 1.6cqw;
  background:
    radial-gradient(90% 70% at 28% 22%, rgba(255, 236, 210, .22), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='l'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .1 0 0 0 0 .03 0 0 0 .35 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23l)'/%3E%3C/svg%3E"),
    linear-gradient(135deg, #BE8A57 0%, #9A6438 60%, #84522B 100%);
  box-shadow: 0 2.6cqw 3.4cqw rgba(70, 36, 12, .28), inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 -.6cqw 1.2cqw rgba(0, 0, 0, .15);
  animation: float 9s -4s ease-in-out infinite;
}
.leather::before { /* stitching */
  content: ""; position: absolute; inset: 7%;
  border: .3cqw dashed rgba(255, 228, 196, .5); border-radius: 1cqw;
}
.leather-word {   /* debossed */
  width: 50%; height: auto; color: #74421F;
  filter: drop-shadow(0 1px 0 rgba(255, 222, 186, .35)) drop-shadow(0 -1px 0 rgba(40, 18, 4, .45));
}
.leather span {
  font-size: 1.2cqw; letter-spacing: .36em; padding-left: .36em; font-weight: 600; color: #74421F;
  text-shadow: 0 1px 0 rgba(255, 222, 186, .35), 0 -1px 0 rgba(40, 18, 4, .45);
}

/* woven label */
.woven {
  position: relative; rotate: 5deg; aspect-ratio: 5 / 1.12;
  display: flex; align-items: center; justify-content: center; gap: 2.6cqw;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 2px),
    linear-gradient(180deg, #252831, #111217);
  box-shadow: 0 2.4cqw 3.2cqw rgba(21, 23, 28, .28), 0 1px 2px rgba(21, 23, 28, .3);
  animation: float 7.5s -1s ease-in-out infinite;
}
.woven::before, .woven::after { /* end folds */
  content: ""; position: absolute; top: 0; bottom: 0; width: 6%;
}
.woven::before { left: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .55), rgba(255, 255, 255, .07)); }
.woven::after  { right: 0; background: linear-gradient(270deg, rgba(0, 0, 0, .55), rgba(255, 255, 255, .07)); }
.woven-mark { width: 4.8cqw; height: 3.85cqw; --mark-front: #EBCF8D; --mark-back: #B48D3E; }
.woven span {
  font-size: 3.4cqw; font-weight: 600; letter-spacing: .44em; padding-left: .44em;
  color: #D9B970;
  background: repeating-linear-gradient(90deg, #EBCF8D 0 1px, #B48D3E 1px 2px);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.visual-note {
  position: absolute; right: 5%; bottom: 4.5%; margin: 0;
  font-size: max(11px, 1.6cqw); letter-spacing: .12em; color: var(--ink-3);
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee { overflow: hidden; padding: 20px 0; background: var(--ink); color: var(--paper); }
.marquee-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex: none; }
.marquee span {
  display: inline-flex; align-items: baseline; gap: 10px; padding: 0 26px;
  white-space: nowrap; font-size: 13px; letter-spacing: .08em; color: rgba(244, 241, 234, .5);
}
.marquee span b { font-size: 21px; font-weight: 600; letter-spacing: .1em; color: var(--paper); }
.marquee span::after {
  content: ""; width: 6px; height: 6px; margin-left: 26px; align-self: center;
  background: var(--gold); transform: rotate(45deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   SECTIONS — shared
   ========================================================= */
.section { position: relative; padding: clamp(84px, 11vw, 152px) 0; }
.section-tint { background: var(--paper-2); }

.sec-head { margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head-split {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(24px, 5vw, 72px); align-items: end;
}

.sec-index {
  display: flex; align-items: center; gap: 14px; margin: 0 0 24px;
  font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.sec-index > span:first-child {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-serif); font-style: italic; font-size: 16px; letter-spacing: 0;
  color: var(--blue); text-transform: none;
}
.sec-index > span:first-child::after { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .55; }

.sec-title { margin: 0; font-size: clamp(34px, 4.4vw, 62px); line-height: 1.16; letter-spacing: -.02em; font-weight: 700; }
.sec-title [lang="en"] { line-height: 1.06; letter-spacing: -.03em; }
.sec-intro { justify-self: end; max-width: 30em; margin: 0; font-size: 17px; line-height: 1.9; color: var(--ink-2); }

/* =========================================================
   ABOUT
   ========================================================= */
.statement {
  max-width: 23em; margin: 0;
  font-size: clamp(26px, 3.3vw, 46px); line-height: 1.5; letter-spacing: -.01em; font-weight: 600;
}
.statement [lang="en"] { line-height: 1.28; letter-spacing: -.02em; }
.statement em { font-style: normal; color: var(--blue); }
.statement [lang="en"] em { font-family: var(--font-serif); font-style: italic; font-weight: 500; }

.about-grid {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(32px, 6vw, 96px);
  padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line-2);
}
.about-copy p { margin: 0 0 1.3em; font-size: 17px; line-height: 1.95; color: var(--ink-2); }
.about-copy strong { color: var(--ink); font-weight: 600; }

.facts { margin: 0; border-top: 1px solid var(--ink); }
.facts div { display: grid; grid-template-columns: 6.5em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 13px; color: var(--ink-3); padding-top: 2px; }
.facts dd { margin: 0; font-size: 15px; font-weight: 500; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(48px, 6vw, 80px); }
.pillar {
  position: relative; padding: 32px 30px 34px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  outline: 1px dashed rgba(21, 23, 28, .13); outline-offset: -10px;   /* stitched edge */
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -26px rgba(21, 23, 28, .4); }
.pillar-no { display: block; margin-bottom: 44px; font-family: var(--font-serif); font-style: italic; font-size: 22px; color: var(--blue); }
.pillar h3 { margin: 0 0 10px; font-size: 22px; font-weight: 700; }
.pillar p { margin: 0; font-size: 15px; line-height: 1.85; color: var(--ink-2); }

/* =========================================================
   PRODUCTS
   ========================================================= */
.cat-nav {
  position: sticky; top: var(--header-h); z-index: 5;
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 24px; padding: 12px 0;
  background: linear-gradient(var(--paper) 75%, rgba(244, 241, 234, 0));
}
.cat-nav a {
  padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--paper); font-size: 14px; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s;
}
.cat-nav a:hover, .cat-nav a.is-current { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.cats { display: grid; gap: 16px; }
.cat {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  overflow: hidden; scroll-margin-top: calc(var(--header-h) + 76px);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.cat-media { position: relative; min-height: 360px; overflow: hidden; background: var(--paper-2); }
.cat-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  cursor: zoom-in; transition: transform 1.4s var(--ease);
}
.cat:hover .cat-media img { transform: scale(1.04); }
.cat-badge {
  position: absolute; left: 16px; top: 16px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(21, 23, 28, .74); color: #fff; font-size: 12px; letter-spacing: .06em;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

.cat-body { padding: clamp(28px, 3.4vw, 48px); }
.cat-head { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: baseline; margin-bottom: 26px; }
.cat-no { grid-row: span 2; font-family: var(--font-serif); font-style: italic; font-size: 20px; color: var(--blue); }
.cat-head h3 { margin: 0; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -.01em; font-weight: 700; }
.cat-head p { grid-column: 2; margin: 8px 0 0; font-size: 15px; color: var(--ink-2); }

/* one running counter across every category, so adding/removing an item renumbers the rest */
.cats { counter-reset: item; }
.items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; margin: 0; padding: 0; list-style: none; }
.items li {
  counter-increment: item;
  display: flex; align-items: baseline; gap: 12px; padding: 13px 0;
  border-top: 1px solid var(--line);
  transition: padding .35s var(--ease);
}
.items li::before {
  content: counter(item, decimal-leading-zero);
  min-width: 1.7em; font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums;
  transition: color .25s;
}
.items li:hover { padding-left: 6px; }
.items li:hover::before { color: var(--blue); }
.items b { font-size: 16px; font-weight: 600; }
.items i { margin-left: auto; font-style: normal; font-size: 13px; color: var(--ink-3); text-align: right; }
/* English mode: English name leads */
:root[data-lang="en"] .items b { order: 2; margin-left: auto; font-size: 13px; font-weight: 400; color: var(--ink-3); }
:root[data-lang="en"] .items i { order: 1; margin-left: 0; font-size: 16px; font-weight: 600; color: var(--ink); text-align: left; }

.custom-note {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  margin-top: 24px; padding: 26px 32px;
  border: 1px dashed var(--line-2); border-radius: var(--r-lg);
}
.custom-note p { margin: 0; font-size: 18px; font-weight: 600; }

/* =========================================================
   PRINTING — product explorer
   ========================================================= */
.explorer { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }

.ex-list { display: flex; flex-direction: column; border-top: 1px solid var(--line-2); }
.ex-list button {
  position: relative;
  display: grid; grid-template-columns: 2.2em 1fr auto; align-items: baseline; gap: 8px;
  padding: 15px 4px; border: 0; border-bottom: 1px solid var(--line-2);
  background: none; color: var(--ink-2); font: inherit; text-align: left; cursor: pointer;
  transition: color .25s, padding .35s var(--ease);
}
.ex-list button::before {
  content: ""; position: absolute; left: 0; top: 15px; bottom: 15px; width: 3px; border-radius: 3px;
  background: var(--blue); transform: scaleY(0); transition: transform .35s var(--ease);
}
.ex-list button:hover { color: var(--ink); }
.ex-list button[aria-selected="true"] { padding-left: 16px; color: var(--ink); }
.ex-list button[aria-selected="true"]::before { transform: scaleY(1); }
.ex-list button[aria-selected="true"] b { color: var(--blue); }
.ex-list .n { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ex-list b { font-size: 17px; font-weight: 600; transition: color .25s; }
.ex-list i { font-style: normal; font-size: 12px; color: var(--ink-3); }
:root[data-lang="en"] .ex-list b { order: 2; font-size: 12px; font-weight: 400; color: var(--ink-3) !important; }
:root[data-lang="en"] .ex-list i { order: 1; font-size: 16px; font-weight: 600; color: inherit; }
:root[data-lang="en"] .ex-list button[aria-selected="true"] i { color: var(--blue); }

.ex-panel {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(24px, 3.4vw, 48px); align-items: center;
  animation: exIn .55s var(--ease);
}
.ex-panel[hidden] { display: none; }
@keyframes exIn { from { opacity: 0; transform: translateY(12px); } }

.ex-media {
  position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: var(--r-lg); background: var(--bg, #D9D4C8);
  box-shadow: 0 30px 60px -40px rgba(21, 23, 28, .45);
}
.ex-media img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.ex-media.fit-contain img { object-fit: contain; padding: 7%; }

.ex-text h3 { display: flex; flex-direction: column; margin: 0 0 16px; font-size: clamp(30px, 3vw, 42px); line-height: 1.15; letter-spacing: -.01em; font-weight: 700; }
.ex-text h3 small { order: -1; margin-bottom: 8px; font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 17px; letter-spacing: 0; color: var(--blue); }
.ex-text p { margin: 0; font-size: 16px; line-height: 1.95; color: var(--ink-2); }
.ex-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; padding: 0; list-style: none; }
.ex-tags li { padding: 6px 13px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card); font-size: 13px; }

/* =========================================================
   FACTORY (dark)
   ========================================================= */
.section-dark {
  background:
    radial-gradient(900px 500px at 90% 0%, rgba(31, 63, 209, .35), transparent 60%),
    var(--night);
  color: #E8E7F0;
}
.section-dark .sec-head-split { align-items: start; }
.section-dark .sec-index { color: rgba(232, 231, 240, .55); }
.section-dark .sec-index > span:first-child { color: var(--blue-soft); }
.section-dark .sec-title { color: #fff; }

.badge-line { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 14px; font-weight: 600; color: #fff; }
.badge-line::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.factory-intro > p:not(.badge-line) { margin: 0; font-size: 16px; line-height: 1.95; color: rgba(232, 231, 240, .7); }

.spec-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 0 0 clamp(32px, 4vw, 48px);
  border-top: 1px solid rgba(255, 255, 255, .14); border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.spec-row div { padding: 28px 24px 28px 0; }
.spec-row div + div { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .14); }
.spec-row dt { font-size: clamp(26px, 2.8vw, 40px); line-height: 1.2; letter-spacing: -.02em; font-weight: 700; color: #fff; }
.spec-row dt small { margin-left: 4px; font-size: .5em; color: var(--blue-soft); }
.spec-row dd { margin: 8px 0 0; font-size: 14px; color: rgba(232, 231, 240, .6); }

.equip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.equip {
  position: relative; margin: 0; aspect-ratio: 4 / 3;
  overflow: hidden; border-radius: var(--r); background: #19204A;
}
.equip-lg { grid-column: span 2; aspect-ratio: 16 / 10; }
.equip img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; transition: transform 1.4s var(--ease); }
.equip:hover img { transform: scale(1.05); }
.equip-light { background: #fff; }
.equip-light img { object-fit: contain; padding: 4% 3% 14%; }
.equip figcaption {
  position: absolute; left: 12px; bottom: 12px;
  display: flex; align-items: center; gap: 10px; max-width: calc(100% - 24px);
  padding: 7px 14px; border-radius: 999px;
  background: rgba(13, 19, 48, .62); color: #fff; font-size: 14px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.equip .n { font-family: var(--font-serif); font-style: italic; color: var(--blue-soft); }

/* =========================================================
   PROCESS
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.step { position: relative; padding: 30px 22px 0 0; }
.step::before {
  content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--blue);
}
.step-no { display: block; margin-bottom: 30px; font-family: var(--font-serif); font-style: italic; font-size: 15px; color: var(--blue); }
.step h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.step p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--ink-2); }

/* =========================================================
   VALUES (cobalt)
   ========================================================= */
.section-blue {
  overflow: hidden; color: #fff;
  background:
    radial-gradient(1100px 600px at 88% -10%, #4363F2, transparent 60%),
    radial-gradient(700px 500px at 0% 110%, #1730A8, transparent 60%),
    var(--blue);
}
.section-blue::after { /* oversized outline of the ribbon-M mark */
  content: ""; position: absolute; right: -40px; top: 50%; width: 560px; height: 448px;
  transform: translateY(-50%); opacity: .1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-1 -1 102 82'%3E%3Cpath d='M0 0H20L50 46.5L80 0H100V80L90 73L80 80V31L60 62H40L20 31V80L10 73L0 80Z' fill='none' stroke='white' stroke-width='.35'/%3E%3C/svg%3E") center / contain no-repeat;
}
.section-blue .sec-index { color: rgba(255, 255, 255, .7); }
.section-blue .sec-index > span:first-child { color: #fff; }
.values-quote { position: relative; z-index: 1; margin: 0 0 clamp(48px, 7vw, 96px); font-size: clamp(42px, 6.4vw, 96px); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
.values-quote [lang="en"] { line-height: 1.02; letter-spacing: -.035em; }
.values { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255, 255, 255, .32); }
.value { padding: 30px 26px 0 0; }
.value + .value { padding-left: 26px; border-left: 1px solid rgba(255, 255, 255, .2); }
.value-no { display: block; margin-bottom: 40px; font-family: var(--font-serif); font-style: italic; font-size: 15px; opacity: .7; }
.value h3 { margin: 0 0 12px; font-size: 20px; font-weight: 700; }
.value p { margin: 0; font-size: 14.5px; line-height: 1.85; color: rgba(255, 255, 255, .78); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-title { margin: 0; font-size: clamp(36px, 5.6vw, 82px); line-height: 1.12; letter-spacing: -.02em; font-weight: 700; }
.contact-title [lang="en"] { line-height: 1.04; letter-spacing: -.035em; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-people { border-top: 1px solid var(--ink); }
.person {
  display: grid; grid-template-columns: 1fr auto 26px; align-items: center; gap: 18px;
  padding: 22px 0; border-bottom: 1px solid var(--line-2); text-decoration: none;
  transition: padding .4s var(--ease), color .25s;
}
.person-role { font-size: 14px; color: var(--ink-3); }
.person-num { font-size: clamp(20px, 2.4vw, 32px); font-weight: 600; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.person .ico { width: 22px; height: 22px; }
a.person:hover { padding-left: 12px; color: var(--blue); }
a.person:hover .ico { transform: translate(3px, -3px); }

.contact-side { display: flex; flex-direction: column; gap: 16px; }
.addr {
  padding: 28px 30px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line);
  outline: 1px dashed rgba(21, 23, 28, .13); outline-offset: -10px;
}
.addr h3 { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--ink-3); }
.addr p { margin: 0; font-size: 16px; line-height: 1.8; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  padding: 72px 0 28px; background: var(--ink); color: rgba(244, 241, 234, .62);
  --mark-front: var(--gold); --mark-back: var(--paper);
}
.footer-top {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand .brand-mark { width: 45px; height: 36px; }
.footer-brand strong { display: block; font-size: 18px; color: #fff; }
.footer-brand span { display: block; margin-top: 4px; font-size: 11px; letter-spacing: .18em; }
.footer-slogan { margin: 0; font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; color: #fff; }

.footer-cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; padding: 32px 0; }
.footer-cols nav { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px 26px; }
.footer-cols nav a { font-size: 14px; text-decoration: none; transition: color .2s; }
.footer-cols nav a:hover { color: #fff; }
.footer-meta p { margin: 0 0 6px; font-size: 13px; text-align: right; }

.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 12px;
}
.footer-bottom p { margin: 0; }
.to-top-link { text-decoration: none; }
.to-top-link:hover { color: #fff; }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 250;
  display: grid; place-items: center; padding: 5vmin;
  background: rgba(10, 12, 18, .92); cursor: zoom-out;
  animation: lbIn .3s ease;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lb-close {
  position: absolute; top: 16px; right: 16px; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06);
  color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
@keyframes lbIn { from { opacity: 0; } }

/* =========================================================
   REVEAL ON SCROLL (only when JS is running)
   ========================================================= */
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1120px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { width: 100%; max-width: 620px; margin: 8px auto 0; }
  .explorer { grid-template-columns: 1fr; }
  .ex-list {
    flex-direction: row; gap: 8px; overflow-x: auto; border: 0;
    margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad) 6px;
    scrollbar-width: none;
  }
  .ex-list::-webkit-scrollbar { display: none; }
  .ex-list button {
    display: flex; flex: none; gap: 8px; padding: 10px 18px;
    border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper);
  }
  .ex-list button::before, .ex-list .n { display: none; }
  .ex-list button[aria-selected="true"] { padding-left: 18px; background: var(--ink); border-color: var(--ink); color: var(--paper); }
  .ex-list button[aria-selected="true"] b,
  :root[data-lang="en"] .ex-list button[aria-selected="true"] i { color: var(--paper); }
  .ex-list b { font-size: 15px; }
}

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; gap: 0; margin: 0;
    padding: 8px var(--pad) 28px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(21, 23, 28, .3);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s, transform .35s var(--ease), visibility 0s .35s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s, transform .35s var(--ease); }
  .nav a { padding: 16px 2px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 19px; color: var(--ink); }
  .nav a:hover, .nav a.is-current { background: none; color: var(--blue); }
  .header-tools { margin-left: auto; }

  .cat-nav {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1);
    padding: 10px var(--pad);
  }
  .cat-nav::-webkit-scrollbar { display: none; }

  .sec-head-split, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .sec-intro { justify-self: start; }
  .pillars { grid-template-columns: 1fr; }
  .pillar-no { margin-bottom: 20px; }
  .cat { grid-template-columns: 1fr; }
  .cat-media { min-height: 0; aspect-ratio: 16 / 10; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 40px; border-top: 0; }
  .step { border-top: 1px solid var(--line-2); }
  .values { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .value:nth-child(3) { padding-left: 0; border-left: 0; }
  .spec-row { grid-template-columns: 1fr 1fr; }
  .spec-row div:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
  .spec-row div:nth-child(4) { border-top: 1px solid rgba(255, 255, 255, .14); }
  .equip-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .equip, .equip-lg { grid-column: span 1; aspect-ratio: 4 / 3; }
  .footer-meta p { text-align: left; }
}

@media (max-width: 640px) {
  .header-cta { display: none; }
  .brand-mark { width: 34px; height: 27px; }
  .brand-word { width: 64px; height: 28px; }
  .hero-facts div { padding-right: 16px; }
  .hero-facts div + div { padding-left: 16px; }
  .hero-facts dd { font-size: 12px; }
  .btn { height: 50px; padding: 0 22px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .items { grid-template-columns: 1fr; }
  .custom-note { flex-direction: column; align-items: flex-start; padding: 24px; }
  .ex-panel { grid-template-columns: 1fr; }
  .ex-media { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr; }
  .value, .value + .value { padding-left: 0; border-left: 0; }
  .value-no { margin-bottom: 16px; }
  .spec-row div { padding-right: 12px; }
  .spec-row div + div { padding-left: 12px; }
  .spec-row div:nth-child(3) { padding-left: 0; }
  .equip-grid { grid-template-columns: 1fr; }
  .equip figcaption { font-size: 13px; }
  .person { gap: 12px; padding: 18px 0; }
  .addr { padding: 24px; }
  .contact-actions .btn { flex: 1 1 auto; }
}

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