/* ============================================================
   JIAYUN — Global Stylesheet
   Direction: Luxury / refined — Playfair Display (display serif)
   + Jost (body). Dominant deep navy, icy-blue atmosphere,
   a single champagne-gold accent used sparingly.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --navy: #14294F;
  --navy-deep: #0C1B38;
  --navy-soft: #1E3A6E;
  --gold: #B08D4A;
  --gold-soft: #D9C9A6;
  --ice: #EAF1F8;
  --paper: #F8FAFC;
  --white: #FFFFFF;
  --ink: #1B2A44;
  --muted: #56688A;
  --line: #DCE5F0;

  --font-display: "Playfair Display", "Noto Serif SC", Georgia, serif;
  --font-body: "Jost", "Noto Sans SC", "Segoe UI", sans-serif;

  --shadow-1: 0 2px 6px rgba(12, 27, 56, 0.08);
  --shadow-2: 0 8px 24px rgba(12, 27, 56, 0.14);
  --shadow-3: 0 24px 60px rgba(12, 27, 56, 0.22);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 180ms;
  --t-med: 320ms;
  --t-slow: 650ms;

  --maxw: 1180px;
}

/* ---------- Reset / base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: min(var(--maxw), calc(100% - 48px));
  margin: 0 auto;
}

/* ---------- Typography helpers ---------- */
.kicker {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.08;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 74px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img {
  height: 40px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav a {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 0;
  position: relative;
  transition: color var(--t-fast) ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease-out);
}
.nav a:hover { color: var(--navy); }
.nav a.current::after,
.nav a:hover::after { transform: scaleX(1); }
.nav a.current { color: var(--navy); font-weight: 600; }

/* Language switcher */
.lang {
  position: relative;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--navy);
  cursor: pointer;
  min-height: 44px;
  transition: border-color var(--t-fast) ease, background var(--t-fast) ease;
}
.lang-btn:hover { border-color: var(--gold); background: var(--paper); }
.lang-btn .globe { width: 15px; height: 15px; }
.lang-btn .chev { transition: transform var(--t-med) var(--ease-out); }
.lang-btn[aria-expanded="true"] .chev { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  border-radius: 4px;
  min-width: 170px;
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--t-med) var(--ease-out);
}
.lang-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 3px;
  transition: background var(--t-fast) ease;
  min-height: 44px;
  text-align: left;
}
.lang-menu button:hover { background: var(--ice); }
.lang-menu button.active { color: var(--navy); font-weight: 600; }
.lang-menu button.active::after {
  content: "●";
  color: var(--gold);
  font-size: 9px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 10px;
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: all var(--t-med) var(--ease-out);
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -7px; left: 0; }
.nav-toggle span::after { top: 7px; left: 0; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(100deg, rgba(255,255,255,0.98) 36%, rgba(234,241,248,0.85) 52%, rgba(234,241,248,0.25) 68%, rgba(234,241,248,0) 80%),
    url("../img/hero.jpg") center right / cover no-repeat,
    linear-gradient(120deg, var(--ice), #DDE9F5);
  overflow: hidden;
}

.hero-content {
  padding: 90px 0 110px;
  max-width: 620px;
}

.hero h1 {
  font-size: clamp(44px, 6vw, 76px);
  letter-spacing: -0.02em;
  margin: 22px 0 18px;
}

.hero-sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2.2vw, 24px);
  color: var(--navy-soft);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 44px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 34px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--t-med) var(--ease-out);
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.75);
  color: var(--navy);
  border-color: var(--navy);
}
.btn-ghost:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}
.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: #99783B;
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}

/* Hero entrance choreography */
.fx { opacity: 0; transform: translateY(26px); animation: rise var(--t-slow) var(--ease-out) forwards; }
.fx-1 { animation-delay: 80ms; }
.fx-2 { animation-delay: 200ms; }
.fx-3 { animation-delay: 320ms; }
.fx-4 { animation-delay: 460ms; }

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Client logos strip ---------- */
.clients {
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
  background: var(--paper);
}
.clients-label {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.clients-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 5vw, 64px);
  flex-wrap: wrap;
  opacity: 0.8;
}
/* Official brand logos — height tuned per logo aspect ratio */
.clients-row img { width: auto; flex-shrink: 0; }
.b-hct       { height: 36px; }
.b-thebeast  { height: 56px; }
.b-tosummer  { height: 46px; }
.b-proya     { height: 36px; }
.b-herborist { height: 36px; }
.b-tropic    { height: 28px; }
.b-chaling   { height: 58px; }
.b-btn       { height: 48px; }
.b-yoseido   { height: 24px; }
.b-skii      { height: 36px; }

/* ---------- Home feature cards ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--paper); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-1);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-3);
}
.feature-card .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.4s var(--ease-out);
}
.feature-card:hover .bg { transform: scale(1.06); }
.feature-card .shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12,27,56,0) 30%, rgba(12,27,56,0.82) 100%);
}
.feature-card .content {
  position: relative;
  padding: 34px 30px;
  color: var(--white);
}
.feature-card h3 {
  color: var(--white);
  font-size: 27px;
  margin-bottom: 14px;
}
.feature-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 24px;
}
.feature-card .link-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  padding: 13px 22px;
  border-radius: 3px;
  transition: all var(--t-med) var(--ease-out);
  min-height: 44px;
}
.feature-card .link-btn:hover {
  background: var(--white);
  color: var(--navy);
}
.feature-card .link-btn::after {
  content: "→";
  transition: transform var(--t-med) var(--ease-out);
}
.feature-card .link-btn:hover::after { transform: translateX(4px); }

/* ---------- Stats band ---------- */
.stats-band {
  background:
    linear-gradient(rgba(12,27,56,0.92), rgba(12,27,56,0.92)),
    url("../img/factory.png") center / cover no-repeat;
  color: var(--white);
  padding: 84px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.4vw, 58px);
  font-weight: 700;
  color: var(--white);
}
.stat .num .unit { color: var(--gold-soft); }
.stat .label {
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.stat + .stat { border-left: 1px solid rgba(255,255,255,0.14); }

/* ---------- CTA band ---------- */
.cta-band {
  padding: 96px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--ice) 0%, #F4F8FC 100%);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  opacity: 0.5;
}
.cta-band::after {
  content: "";
  position: absolute;
  top: -30px;
  right: -30px;
  width: 320px;
  height: 320px;
  border: 1px solid var(--gold-soft);
  border-radius: 50%;
  opacity: 0.25;
}
.cta-band h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin: 18px 0 16px;
}
.cta-band p {
  max-width: 560px;
  margin: 0 auto 36px;
  color: var(--muted);
}

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  position: relative;
  padding: 96px 0 88px;
  background:
    linear-gradient(rgba(12,27,56,0.88), rgba(12,27,56,0.88)),
    var(--page-img, url("../img/factory.png")) center / cover no-repeat;
  color: var(--white);
  overflow: hidden;
}
.page-hero .kicker { color: var(--gold-soft); }
.page-hero .kicker::before { background: var(--gold-soft); }
.page-hero h1 {
  color: var(--white);
  font-size: clamp(40px, 5vw, 60px);
  letter-spacing: -0.02em;
  margin: 20px 0 16px;
  max-width: 760px;
}
.page-hero .lede {
  max-width: 640px;
  color: rgba(255,255,255,0.82);
  font-size: 17px;
  line-height: 1.7;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), rgba(176,141,74,0));
}

/* ---------- Products page ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
}
.product-card .visual {
  height: 250px;
  background: var(--ice) url("../img/products.png") center / cover no-repeat;
  position: relative;
}
.product-card .visual::after {
  content: attr(data-num);
  position: absolute;
  top: 16px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.6);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(12,27,56,0.28);
}
.product-card .body { padding: 26px 24px 30px; }
.product-card h3 { font-size: 22px; margin-bottom: 10px; }
.product-card p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.product-card .more {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}
.product-card:hover .more { text-decoration: underline; }

/* ---------- Craftsmanship page ---------- */
.intro-block {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  font-size: 18px;
  line-height: 1.75;
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: 0 0 6px 6px;
  padding: 30px 26px 34px;
  position: relative;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
.step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-2);
}
.step .idx {
  font-family: var(--font-display);
  font-size: 46px;
  color: var(--gold-soft);
  line-height: 1;
  margin-bottom: 14px;
}
.step h3 { font-size: 21px; margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* ---------- Certificates fan carousel ---------- */
.cert-section { padding-bottom: 72px; }
.cert-fan { position: relative; }
.cert-stage {
  position: relative;
  height: 460px;
  overflow: hidden;
}
.cert-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 264px;
  height: 372px;
  transform: translate(-50%, -50%);
  transition: transform 520ms var(--ease-out), opacity 420ms ease;
  cursor: pointer;
  will-change: transform;
}
.cert-paper {
  width: 100%;
  height: 100%;
  background: #fbfaf6;
  border-radius: 3px;
  box-shadow: 0 18px 40px rgba(12, 27, 56, 0.18);
  padding: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  position: relative;
}
.cert-paper::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1.5px solid currentColor;
  opacity: 0.55;
  pointer-events: none;
}
/* frame colors echo the reference: blue / green / orange / navy / teal / violet */
.cert-card:nth-child(1) .cert-paper { color: #2f6fd0; }
.cert-card:nth-child(2) .cert-paper { color: #2e9e6b; }
.cert-card:nth-child(3) .cert-paper { color: #d9822b; }
.cert-card:nth-child(4) .cert-paper { color: #1f4e9c; }
.cert-card:nth-child(5) .cert-paper { color: #128f8b; }
.cert-card:nth-child(6) .cert-paper { color: #7d5fc0; }
.cert-seal {
  margin-top: 26px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--gold);
  background: radial-gradient(circle at 35% 30%, #fdf6e3, #f3e3bb);
  box-shadow: inset 0 0 0 2px rgba(176, 141, 87, 0.5);
}
.cert-paper h4 {
  font-family: var(--font-display);
  font-size: 17.5px;
  line-height: 1.35;
  color: var(--navy);
  padding: 0 8px;
  flex: 1;
  display: flex;
  align-items: center;
}
.cert-tag {
  margin-bottom: 22px;
  font-size: 9.5px;
  letter-spacing: 0.28em;
  color: currentColor;
  text-transform: uppercase;
}
.cert-card.is-active .cert-img { box-shadow: 0 26px 54px rgba(12, 27, 56, 0.28); }
.cert-card.is-hidden { pointer-events: none; }
.cert-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 18px 40px rgba(12, 27, 56, 0.18);
  background: #fff;
  display: block;
}

/* landscape certificates (permits / licenses) keep their natural orientation */
.cert-card.landscape {
  width: 388px;
  height: 276px;
}
.cert-card.landscape .cert-img {
  object-fit: contain;
}

.cert-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--navy);
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-2);
  transition: transform var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.cert-arrow:hover { transform: translateY(-50%) scale(1.08); box-shadow: var(--shadow-3); }
.cert-arrow.prev { left: clamp(4px, 6vw, 90px); }
.cert-arrow.next { right: clamp(4px, 6vw, 90px); }

.cert-note {
  margin-top: 26px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .cert-stage { height: 380px; }
  .cert-card { width: 208px; height: 294px; }
  .cert-card.landscape { width: 304px; height: 216px; }
  .cert-paper h4 { font-size: 14.5px; }
  .cert-seal { width: 52px; height: 52px; font-size: 20px; margin-top: 18px; }
}

/* ---------- Decoration process catalog (tabs) ---------- */
.proc-section { position: relative; }
.proc-head { text-align: center; max-width: 720px; margin: 0 auto 42px; }
.proc-title {
  font-size: clamp(30px, 3.8vw, 44px);
  margin: 16px 0 14px;
  letter-spacing: -0.01em;
}
.proc-sub { color: var(--muted); font-size: 16px; line-height: 1.7; }

.proc-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.proc-tab {
  appearance: none;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 14px 22px 16px;
  margin-bottom: -1px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  min-height: 48px;
  transition: color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.proc-tab em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  border-radius: 20px;
  padding: 1px 7px;
}
.proc-tab:hover { color: var(--navy); }
.proc-tab.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.proc-panel { display: none; }
.proc-panel.active { display: block; animation: fadeUp 420ms var(--ease-out) both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.proc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.proc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 0 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out), border-color var(--t-med) ease;
}
.proc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--gold-soft);
}
.proc-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ice);
}
.proc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 600ms var(--ease-out);
}
.proc-card:hover .proc-media img { transform: scale(1.045); }
.proc-media-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), transparent 60%),
    linear-gradient(135deg, var(--ice) 0%, #e8eef5 55%, #f4f7fa 100%);
}
.proc-empty-mark {
  font-family: var(--font-display);
  font-size: 64px;
  color: rgba(12, 27, 56, 0.08);
  letter-spacing: 0.04em;
  user-select: none;
}
.proc-card .proc-top,
.proc-card h3,
.proc-card .proc-en,
.proc-card p {
  margin-left: 22px;
  margin-right: 22px;
}
.proc-card .proc-top { margin-top: 22px; }
.proc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.proc-num {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.proc-finish {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy-soft);
  background: var(--ice);
  border-radius: 2px;
  padding: 3px 8px;
  white-space: nowrap;
}
.proc-card h3 {
  font-size: 19px;
  line-height: 1.25;
  margin-bottom: 6px;
}
.proc-en {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.proc-card p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Factory page ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.split .visual {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-3);
  position: relative;
}
.split .visual img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 18px 0 20px; }
.split .lead { color: var(--muted); font-size: 16.5px; line-height: 1.75; margin-bottom: 26px; }

.cap-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
}
.cap-list li::before {
  content: "—";
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

.factory-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.factory-stat .num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  color: var(--navy);
  font-weight: 700;
}
.factory-stat .label {
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.factory-stat + .factory-stat { border-left: 1px solid var(--line); }

/* ---------- Workshop alternating rows ---------- */
.ws-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.ws-head h2 { margin-top: 14px; font-size: clamp(28px, 3.4vw, 40px); }

.ws-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.ws-row + .ws-row { margin-top: clamp(40px, 6vw, 72px); }
.ws-row.flip .ws-media { order: 2; }
.ws-row.flip .ws-body { order: 1; }

.ws-media {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 25%, rgba(255,255,255,0.95), transparent 55%),
    linear-gradient(135deg, var(--ice) 0%, #e6edf4 55%, #f3f6f9 100%);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-1);
}
.ws-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ws-ph-num {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 110px);
  color: rgba(12, 27, 56, 0.07);
  letter-spacing: 0.06em;
  user-select: none;
}

/* Carousel inside a ws-media */
.ws-carousel { position: relative; padding: 0; border: none; }
.ws-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 480ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.ws-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ws-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.88);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(12, 27, 56, 0.18);
  transition: background var(--t-fast) ease, transform var(--t-fast) ease;
}
.ws-arrow svg { width: 20px; height: 20px; }
.ws-arrow:hover { background: #ffffff; transform: translateY(-50%) scale(1.06); }
.ws-arrow.prev { left: 14px; }
.ws-arrow.next { right: 14px; }
.ws-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.ws-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background var(--t-fast) ease, transform var(--t-fast) ease;
}
.ws-dots button.active {
  background: #ffffff;
  transform: scale(1.25);
}

.ws-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 12px;
}
.ws-body h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.25;
  margin-bottom: 14px;
}
.ws-body p {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 46ch;
}

.qc-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 6px;
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
  box-shadow: var(--shadow-3);
  position: relative;
  overflow: hidden;
}
.qc-card::before {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(176,141,74,0.4);
  border-radius: 50%;
}
.qc-card h2 { color: var(--white); font-size: clamp(26px, 3vw, 36px); }
.qc-card p { color: rgba(255,255,255,0.82); line-height: 1.75; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}

.info-item { margin-bottom: 34px; }
.info-item .k { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 8px; }
.info-item .v { color: var(--ink); font-size: 16px; line-height: 1.6; }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 44px 42px;
  box-shadow: var(--shadow-1);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
  min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176,141,74,0.15);
}
#form-success {
  margin-top: 18px;
  padding: 14px 18px;
  background: var(--ice);
  border-left: 3px solid var(--gold);
  color: var(--navy);
  font-size: 14.5px;
  opacity: 0;
  transform: translateY(6px);
  transition: all var(--t-med) var(--ease-out);
  pointer-events: none;
}
#form-success.show { opacity: 1; transform: translateY(0); }
#form-success.error { background: #fdf2f0; border-left-color: #c0392b; color: #8c2a20; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.75);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 54px;
}
.footer-grid h4 {
  font-family: var(--font-body);
  color: var(--white);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-weight: 600;
}
.footer-grid .flogo {
  margin-bottom: 16px;
  display: block;
}
.footer-grid .flogo img {
  height: 44px;
  width: auto;
  display: block;
}
.footer-grid p { font-size: 14px; line-height: 1.7; max-width: 320px; }
.footer-grid ul li { margin-bottom: 12px; }
.footer-grid ul a {
  font-size: 14px;
  transition: color var(--t-fast) ease;
}
.footer-grid ul a:hover { color: var(--gold-soft); }
.footer-grid .contact-line { font-size: 14px; margin-bottom: 12px; display: flex; gap: 10px; }
.footer-grid .contact-line .ic { color: var(--gold-soft); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0;
  font-size: 12.5px;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 80ms; }
.reveal.d2 { transition-delay: 160ms; }
.reveal.d3 { transition-delay: 240ms; }

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .features-grid, .product-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .stats-grid, .factory-stats { grid-template-columns: repeat(2, 1fr); }
  .stat + .stat, .factory-stat + .factory-stat { border-left: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .qc-card { grid-template-columns: 1fr; padding: 44px 34px; }
  .proc-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .nav {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 6px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: all var(--t-med) var(--ease-out);
  }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a { padding: 12px 0; font-size: 15px; }
  .nav-toggle { display: block; }

  .features-grid, .product-grid, .steps, .proc-grid { grid-template-columns: 1fr; }
  .ws-row, .ws-row.flip { grid-template-columns: 1fr; }
  .ws-row.flip .ws-media { order: 1; }
  .ws-row.flip .ws-body { order: 2; }
  .proc-tabs { gap: 0; }
  .feature-card { min-height: 380px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 480px; }
  .section { padding: 68px 0; }
  .clients-row { gap: 22px 26px; }
  .b-hct, .b-proya, .b-herborist, .b-skii { height: 28px; }
  .b-thebeast, .b-chaling { height: 44px; }
  .b-btn { height: 38px; }
  .b-tosummer { height: 36px; }
  .b-tropic, .b-yoseido { height: 20px; }
}

/* ---------- Product catalog: left menu + right display ---------- */
.pcat-section { padding-top: 24px; }
.pcat-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: start;
  transition: grid-template-columns 0.3s ease;
}
.pcat-layout.menu-hidden {
  grid-template-columns: 1fr;
  gap: 0;
}
.pcat-layout.menu-hidden .pcat-menu { display: none; }
.pcat-menu {
  position: sticky;
  top: 96px;
  border-top: 1.5px solid var(--navy);
}
.pcat-cat { border-bottom: 1px solid rgba(12, 27, 56, 0.12); }
.pcat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  padding: 18px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: color var(--t-fast) ease, background var(--t-fast) ease;
}
.pcat-cat-row .pcat-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}
.pcat-sublist { padding: 2px 0 10px; }
.pcat-sub-row { padding: 13px 4px 13px 26px; position: relative; }
.pcat-sub-row::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(12, 27, 56, 0.25);
  transform: translateY(-50%);
}
.pcat-sub-row .pcat-name { font-size: 15px; color: var(--muted); }
.pcat-sub-row:hover .pcat-name { color: var(--navy); }
.pcat-sub-row.active .pcat-name { color: var(--gold); font-weight: 600; }
.pcat-sub-row.active::before { background: var(--gold); }
.pcat-plus {
  font-size: 18px;
  line-height: 1;
  color: rgba(12, 27, 56, 0.4);
  flex-shrink: 0;
  transition: transform var(--t-fast) ease, color var(--t-fast) ease;
}
.pcat-row:hover .pcat-plus { color: var(--navy); }

.pcat-head { margin-bottom: 30px; }
.pcat-title { font-size: clamp(24px, 3vw, 32px); color: var(--navy); margin-bottom: 8px; }
.pcat-sub { color: var(--muted); font-size: 14.5px; }
.pcat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}
.pcat-card {
  background: var(--white);
  border: 1px solid rgba(12, 27, 56, 0.08);
  border-radius: 6px;
  overflow: hidden;
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}
.pcat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.pcat-media {
  aspect-ratio: 1 / 1;
  background: #fff;
  padding: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pcat-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pcat-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(12, 27, 56, 0.18);
  font-family: var(--font-display);
  font-size: 40px;
}
.pcat-card h3 { font-size: 15.5px; color: var(--navy); padding: 14px 16px 4px; text-align: center; }
.pcat-spec { font-size: 13px; color: var(--muted); padding: 0 16px 16px; text-align: center; }
.pcat-empty {
  border: 1px dashed rgba(12, 27, 56, 0.2);
  border-radius: 6px;
  padding: 64px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.pcat-empty-mark { font-size: 42px; color: rgba(12, 27, 56, 0.2); }
.pcat-empty p { font-size: 18px; font-weight: 600; color: var(--navy); }
.pcat-note { font-size: 13px; color: var(--muted); margin-bottom: 8px; }

@media (max-width: 900px) {
  .pcat-layout { grid-template-columns: 1fr; gap: 32px; }
  .pcat-menu { position: static; }
}

.pcat-cat-row.active { background: rgba(176, 141, 87, 0.06); }
.pcat-cat-row.active .pcat-name { color: var(--gold); }
.pcat-cat-row.active .pcat-plus { color: var(--gold); }

/* product grid: fixed 3 per row */
.pcat-grid.three-col { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .pcat-grid.three-col { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .pcat-grid.three-col { grid-template-columns: 1fr; } }
.pcat-card[data-prod] { cursor: pointer; }
.pcat-card[data-prod]:hover h3 { color: var(--gold); }

/* product detail page (catalog sheet style) */
.pcat-detail { grid-column: 1 / -1; width: 100%; }
.pd-sheet {
  background: #fff;
  border: 1px solid rgba(12, 27, 56, 0.08);
  border-radius: 8px;
  padding: 28px 36px 40px;
  box-shadow: 0 20px 50px rgba(12, 27, 56, 0.06);
}
.pd-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.pd-views-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.pd-view {
  flex: 1;
  min-height: 210px;
  background: #f4f6fa;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-view img { width: 100%; height: 100%; object-fit: contain; }
.pd-view-ph { color: rgba(12, 27, 56, 0.32); font-size: 14px; letter-spacing: 0.12em; }
.pd-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10%;
  background: #fff;
}
.pd-hero img {
  max-height: 420px;
  max-width: 100%;
  object-fit: contain;
}
.pd-icons-row td { padding: 14px 8px 8px; vertical-align: bottom; background: #fff; }
.pd-ico-model { text-align: left; }
.pd-series {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #5b6572;
  display: inline-flex;
  align-items: flex-end;
}
.pd-ico { width: auto; height: 46px; display: block; margin: 0 auto; }
.pd-ico-wrap { display: inline-flex; flex-direction: column; align-items: center; }
.pd-ico-label {
  font-style: normal;
  font-size: 11px;
  color: #5b6572;
  letter-spacing: 0.02em;
  margin-top: 6px;
  white-space: nowrap;
  text-align: center;
}
.pd-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin-top: 14px;
  font-size: 14px;
  color: #3c4654;
}
.pd-table td { text-align: center; }
.pd-table tr td:first-child { text-align: left; font-weight: 700; }
.pd-table td { padding: 9px 14px; }
.pd-table tr.odd td { background: #d9dbdd; }
.pd-table tr.even td { background: #fff; }
.pd-table tr td:first-child { font-weight: 700; }
.pd-table-wrap { overflow-x: auto; }
@media (max-width: 760px) {
  .pd-sheet { padding: 20px 18px 28px; }
  .pd-main { grid-template-columns: 1fr; }
  .pd-view { min-height: 150px; }
  .pd-hero img { max-height: 300px; }
  .pd-icons-row td { padding: 10px 6px 6px; }
  .pd-ico { height: 38px; }
  .pd-ico-label { font-size: 10px; margin-top: 4px; white-space: normal; line-height: 1.2; }
  .pd-series { font-size: 16px; }
  .pd-table { min-width: 620px; }
  .pd-table td { padding: 7px 8px; font-size: 12px; }
  .pd-table tr td:first-child { white-space: nowrap; }
}

/* ---- Series (套系) detail page ---- */
.ps-sheet { background: #fff; border: 1px solid #e3e5e8; border-radius: 14px; padding: 32px 36px; }
.ps-specs-wrap { margin-top: 28px; }
.ps-cover { background: #fff; border: 1px solid #eef0f2; border-radius: 10px; padding: 24px; display: flex; align-items: center; justify-content: center; }
.ps-cover img { max-width: 100%; max-height: 460px; object-fit: contain; }
.ps-sub { margin: 30px 0 16px; font-size: 20px; color: #2a2d31; letter-spacing: 0.04em; }
.ps-members { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ps-member { margin: 0; }
.ps-member[data-prod] { cursor: pointer; transition: transform 0.2s ease; }
.ps-member[data-prod]:hover { transform: translateY(-4px); }
.ps-member[data-prod]:hover .ps-member-media { border-color: #b08d57; }
.ps-member[data-prod]:focus-visible { outline: 2px solid #b08d57; outline-offset: 4px; border-radius: 6px; }
.ps-member-media { background: #fff; border: 1px solid #eef0f2; border-radius: 10px; padding: 10%; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ps-member-media img { max-width: 100%; max-height: 260px; object-fit: contain; }
.ps-member figcaption { text-align: center; margin-top: 10px; font-size: 14px; color: #4a4e55; letter-spacing: 0.03em; }
.ps-member-empty .ps-member-media { border-style: dashed; border-color: #d4d7db; background: #fafbfc; }
.ps-member-empty figcaption { color: #9aa0a8; }
@media (max-width: 900px) {
  .ps-sheet { padding: 20px 16px; }
  .ps-members { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
