@font-face {
  font-family: "Marcellus";
  src: url("../assets/fonts/marcellus-latin.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* Primitive → semantic → component tokens */
:root {
  --p-purple: oklch(0.42 0.145 325);
  --p-purple-dark: oklch(0.355 0.125 325);
  --p-lavender: oklch(0.84 0.04 325);
  --p-paper: oklch(0.992 0.003 325);
  --p-alt: oklch(0.96 0.012 325);
  --p-ink: oklch(0.32 0.015 45);
  --p-ink-soft: oklch(0.43 0.015 45);
  --p-line: oklch(0.865 0.016 325);
  --p-light: oklch(0.99 0.003 325);
  --surface: var(--p-paper);
  --surface-alt: var(--p-alt);
  --text: var(--p-ink);
  --text-soft: var(--p-ink-soft);
  --accent: var(--p-purple);
  --accent-text: var(--p-purple-dark);
  --header-bg: var(--p-paper);
  --button-bg: var(--p-ink);
  --button-text: var(--p-light);
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-latin: "Marcellus", "Noto Serif SC", "Songti SC", serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-slow: cubic-bezier(0.5, 0, 0.1, 1);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  min-width: 0;
  color: var(--text);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
body.menu-open { overflow: hidden; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; line-height: 1.3; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
button, input, textarea, select { font-family: inherit; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
address { font-style: normal; }
::selection { color: var(--p-light); background: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }

.container { width: calc(100% - 40px); max-width: 80rem; margin-inline: auto; }
.section { padding-block: 88px; scroll-margin-top: 0; }
.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: fixed; z-index: 60; top: 12px; left: 12px; padding: 10px 16px; color: var(--button-text); background: var(--button-bg); transform: translateY(-160%); transition: transform 160ms var(--ease); }
.skip-link:focus { transform: translateY(0); }

/* Header */
.site-header { position: fixed; z-index: 20; inset: 0 0 auto; height: var(--header-h); color: var(--p-light); background: transparent; transition: color 180ms var(--ease), background-color 180ms var(--ease), border-color 180ms var(--ease); }
.site-header.is-scrolled { color: var(--text); background: color-mix(in oklch, var(--header-bg) 96%, transparent); border-bottom: 1px solid var(--p-line); backdrop-filter: blur(14px); }
.header-inner { width: calc(100% - 32px); max-width: 88rem; height: 100%; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; min-height: 48px; flex-shrink: 0; }
.brand-type { display: flex; flex-direction: column; line-height: 1.15; }
.brand-type strong { font-size: 19px; font-weight: 600; letter-spacing: .16em; }
.brand-type > span { margin-top: 6px; font-family: var(--font-latin); font-size: 10px; letter-spacing: .18em; }
.desktop-nav { display: none; }
.menu-toggle { width: 48px; height: 48px; padding: 0; border: 0; background: transparent; display: grid; place-content: center; gap: 8px; }
.menu-toggle span { display: block; width: 26px; height: 1px; background: currentColor; transition: transform 180ms var(--ease); }
.menu-toggle span:last-child { width: 18px; justify-self: end; }
.menu-toggle:hover span:last-child { transform: translateX(-8px); }

/* Mobile drawer */
.mobile-menu { position: fixed; z-index: 40; inset: 0; }
.menu-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: color-mix(in oklch, var(--p-ink) 72%, transparent); opacity: 0; transition: opacity 180ms var(--ease); }
.menu-panel { position: absolute; inset: 0 0 0 auto; width: min(86vw, 26rem); min-height: 100dvh; padding: 20px 24px calc(32px + env(safe-area-inset-bottom)); color: var(--text); background: var(--surface); transform: translateX(100%); transition: transform 220ms var(--ease); overflow-y: auto; }
.mobile-menu.is-open .menu-backdrop { opacity: 1; }
.mobile-menu.is-open .menu-panel { transform: translateX(0); }
.menu-panel-top { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding-bottom: 20px; border-bottom: 1px solid var(--p-line); }
.menu-label { font-family: var(--font-latin); font-size: 13px; letter-spacing: .18em; }
.menu-close { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; }
.menu-close svg { width: 24px; height: 24px; }
.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--p-line); transition: color 160ms var(--ease), padding-left 160ms var(--ease); }
.mobile-nav a:hover { color: var(--accent-text); padding-left: 6px; }
.mobile-nav a > span { font-size: 22px; }
.mobile-nav a small { font-family: var(--font-latin); font-size: 11px; letter-spacing: .1em; color: var(--text-soft); text-align: right; }
.mobile-nav a[aria-current="location"] > span { color: var(--accent-text); }
.menu-company { margin-top: 40px; color: var(--text-soft); font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }

/* Hero */
.hero { position: relative; min-height: 100svh; min-height: 100dvh; display: grid; align-items: center; color: var(--p-light); background: var(--p-ink); overflow: hidden; }
.hero-slides, .hero-slide, .hero-shade { position: absolute; inset: 0; }
.hero-slide { margin: 0; opacity: 0; pointer-events: none; transition: opacity 500ms ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-slide:nth-child(2) img { object-position: 48% 50%; }
.hero-slide:nth-child(3) img { object-position: 62% 50%; }
.hero-shade { background: linear-gradient(90deg, color-mix(in oklch, var(--p-ink) 78%, transparent) 0%, color-mix(in oklch, var(--p-ink) 46%, transparent) 58%, color-mix(in oklch, var(--p-ink) 16%, transparent) 100%); }
.hero-shade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in oklch, var(--p-ink) 68%, transparent), transparent 48%); }
.hero-content { position: relative; z-index: 1; padding-block: calc(var(--header-h) + 56px) 152px; }
.hero-en { margin-bottom: 24px; font-family: var(--font-latin); font-size: 12px; letter-spacing: .2em; }
.hero h1 { max-width: 12em; font-size: clamp(26px, 8.5vw, 64px); font-weight: 500; letter-spacing: 0; line-height: 1.45; text-shadow: 0 2px 24px color-mix(in oklch, var(--p-ink) 28%, transparent); }
.hero-char { display: inline-block; animation: hero-char-in 600ms var(--ease) both; animation-delay: var(--char-delay, 0ms); }
.hero-word,
.hero-phrase { display: inline-block; white-space: nowrap; }
@keyframes hero-char-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.hero-lead { margin-top: 26px; max-width: 34em; color: var(--p-light); font-size: 16px; line-height: 1.9; }
.hero-cta { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 52px; margin-top: 30px; padding: 12px 20px; color: var(--accent-text); background: var(--p-light); border: 1px solid var(--p-light); border-radius: 3px; font-size: 15px; transition: background-color 180ms var(--ease), color 180ms var(--ease); }
.hero-cta svg { width: 28px; height: 16px; transition: transform 180ms var(--ease); }
.hero-cta:hover { color: var(--p-light); background: oklch(0.47 0.05 325); }
.hero-cta:hover svg { transform: translateX(4px); }
.hero-vertical { display: none; }
.hero-bottom { position: absolute; z-index: 2; inset: auto 0 calc(20px + env(safe-area-inset-bottom)); display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.hero-photo-note { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 12px; letter-spacing: .06em; }
.hero-photo-note > span:first-child { padding-right: 12px; border-right: 1px solid color-mix(in oklch, var(--p-light) 45%, transparent); }
.hero-scroll { font-family: var(--font-latin); font-size: 11px; letter-spacing: .24em; writing-mode: vertical-rl; }

/* Opening introduction */
.opening-intro { background: var(--surface); }
.intro-inner { max-width: 72rem; text-align: center; }
.intro-inner h2 { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: clamp(26px, 6vw, 44px); font-weight: 500; line-height: 1.55; letter-spacing: .03em; }
.intro-divider { color: var(--p-lavender); font-family: var(--font-latin); font-weight: 400; }
.intro-copy { max-width: 44em; margin: 40px auto 0; color: var(--text-soft); font-size: 16px; line-height: 2; }
.intro-copy p + p { margin-top: 20px; }

/* Shared headings and imagery */
.section-heading { display: grid; gap: 16px; margin-bottom: 48px; }
.section-en, .subsection-label { font-family: var(--font-latin); font-size: 12px; letter-spacing: .18em; color: var(--accent-text); }
.section-heading h2, .contact h2, .oem-copy > h2 { font-size: clamp(34px, 8vw, 56px); letter-spacing: .05em; }
.section-heading > p:last-child { max-width: 38em; color: var(--text-soft); font-size: 16px; line-height: 1.85; }
.photo-frame { position: relative; }
.photo-frame img { width: 100%; object-fit: cover; }
.photo-frame figcaption, .company-photo figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 12px; color: var(--text-soft); font-size: 12px; line-height: 1.6; }
.photo-frame figcaption > span:first-child, .company-photo figcaption > span:first-child { font-family: var(--font-latin); letter-spacing: .1em; }
.data-note { margin-top: 24px; color: var(--text-soft); font-size: 12px; line-height: 1.7; }

/* OEM */
.oem { background: var(--surface-alt); }
.oem-layout { display: grid; gap: 48px; align-items: center; }
.oem-copy > .section-en { display: block; margin-bottom: 16px; }
.oem-description { display: grid; gap: 20px; margin-top: 32px; color: var(--text-soft); line-height: 1.95; }
.certification { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--p-line); }
.certification h3 { font-size: 20px; letter-spacing: .08em; }
.certification ul { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 20px; }
.certification li { position: relative; padding-left: 18px; font-size: 17px; }
.certification li::before { content: ""; position: absolute; left: 0; top: .75em; width: 8px; height: 1px; background: var(--accent); }
.certification p { margin-top: 12px; color: var(--text-soft); font-size: 12px; }
.oem-photo img { aspect-ratio: 4 / 3.8; }
.oem-photo figcaption { font-size: 12px; }

/* Strengths */
.strengths { background: var(--surface); }
.experience-list { border-top: 1px solid var(--p-line); }
.experience-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 20px; padding-block: 32px; border-bottom: 1px solid var(--p-line); }
.list-number { padding-top: 5px; font-family: var(--font-latin); font-size: 14px; color: var(--accent-text); }
.experience-list h3 { font-size: 22px; letter-spacing: .03em; }
.experience-list p { grid-column: 2; margin-top: -4px; color: var(--text-soft); line-height: 1.9; }

/* Production record */
.production { background: var(--surface-alt); }
.brand-groups { display: grid; gap: 48px; }
.brand-group { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--p-line); }
.brand-group li { min-height: 58px; display: flex; align-items: center; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--p-line); font-family: var(--font-latin); font-size: 13px; letter-spacing: .04em; line-height: 1.55; }
.brand-group li:nth-child(odd) { margin-right: 16px; }

/* Company */
.company { background: var(--surface); }
.company-layout { display: grid; gap: 48px; align-items: center; }
.company-table { border-top: 1px solid var(--p-line); font-size: 15px; }
.company-table > div { display: grid; grid-template-columns: minmax(5.2em, .42fr) minmax(0, 1.58fr); gap: 20px; padding-block: 20px; border-bottom: 1px solid var(--p-line); }
.company-table dt { color: var(--text-soft); }
.company-table dd { overflow-wrap: anywhere; }
.company-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 45%; }

/* Contact */
.contact { color: var(--p-light); background: var(--accent); }
.contact-heading { display: grid; gap: 16px; margin-bottom: 48px; }
.contact .section-en { color: var(--p-lavender); }
.contact-heading > p:last-child { color: var(--p-light); font-size: 16px; line-height: 1.9; }
.contact-list { border-top: 1px solid color-mix(in oklch, var(--p-light) 38%, transparent); }
.contact-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; min-height: 112px; padding-block: 24px; border-bottom: 1px solid color-mix(in oklch, var(--p-light) 38%, transparent); }
.contact-label { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; color: var(--p-lavender); font-size: 13px; }
.contact-label svg { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.4; }
.contact-link { display: inline-block; max-width: 100%; font-family: var(--font-latin); font-size: 24px; line-height: 1.45; letter-spacing: .02em; overflow-wrap: anywhere; transition: color 160ms var(--ease); }
.contact-link:hover { color: var(--p-lavender); }
.copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 72px; min-height: 48px; padding: 10px 12px; border: 1px solid color-mix(in oklch, var(--p-light) 58%, transparent); border-radius: 3px; color: var(--p-light); background: transparent; font-size: 13px; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.copy-button svg { width: 17px; height: 17px; }
.copy-button:hover { color: var(--accent); background: var(--p-light); }
.copy-button.is-copied { color: var(--accent); background: var(--p-light); }
.contact :focus-visible { outline-color: var(--p-light); }
.contact-note { margin-top: 24px; color: var(--p-lavender); font-size: 12px; }

/* Footer and feedback */
.site-footer { padding-block: 40px 64px; color: var(--text-soft); background: var(--surface); }
.footer-inner { display: grid; gap: 20px; font-size: 12px; line-height: 1.8; }
.footer-brand { font-size: 18px; font-weight: 500; letter-spacing: .12em; color: var(--text); }
.back-to-top { position: fixed; z-index: 15; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--p-line); border-radius: 3px; color: var(--accent-text); background: color-mix(in oklch, var(--surface) 94%, transparent); box-shadow: 0 8px 24px color-mix(in oklch, var(--p-ink) 8%, transparent); transition: opacity 180ms var(--ease), transform 180ms var(--ease), background-color 160ms var(--ease); }
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top:hover { color: var(--p-light); background: oklch(0.47 0.05 325); }
.back-to-top.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }
.copy-toast { position: fixed; z-index: 50; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 112px); padding: 12px 18px; border-radius: 3px; color: var(--p-light); background: var(--p-ink); box-shadow: 0 8px 28px color-mix(in oklch, var(--p-ink) 18%, transparent); font-size: 13px; text-align: center; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity 160ms var(--ease), transform 160ms var(--ease); }
.copy-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Progressive one-time reveals: content stays visible without JS or reduced motion. */
.reveal-enabled [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 480ms var(--ease), transform 480ms var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.reveal-enabled [data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 680ms var(--ease-slow); }
.reveal-enabled [data-reveal="mask"] img { transform: scale(1.04); transition: transform 680ms var(--ease-slow); }
.reveal-enabled [data-reveal].is-visible { opacity: 1; transform: none; }
.reveal-enabled [data-reveal="mask"].is-visible { clip-path: inset(0 0 0 0); }
.reveal-enabled [data-reveal="mask"].is-visible img { transform: scale(1); }

@media (min-width: 48rem) {
  :root { --header-h: 80px; }
  .container { width: calc(100% - 80px); }
  .section { padding-block: 120px; }
  .header-inner { width: calc(100% - 64px); }
  .hero-content { padding-block: calc(var(--header-h) + 64px) 144px; }
  .hero-en { margin-bottom: 28px; font-size: 13px; }
  .hero h1 { font-size: clamp(48px, 6.3vw, 64px); line-height: 1.4; }
  .hero-lead { margin-top: 30px; font-size: 17px; }
  .hero-cta { margin-top: 36px; }
  .hero-bottom { bottom: 28px; }
  .intro-inner h2 { gap: 16px; }
  .intro-copy { margin-top: 48px; font-size: 17px; }
  .section-heading { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 48px; margin-bottom: 64px; }
  .section-heading > p:last-child { padding-bottom: 6px; }
  .oem-layout { gap: 64px; }
  .oem-photo img { aspect-ratio: 4 / 3; }
  .experience-list li { grid-template-columns: 48px minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; align-items: start; padding-block: 36px; }
  .experience-list p { grid-column: 3; margin-top: 0; }
  .experience-list h3 { font-size: 24px; }
  .brand-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .brand-group { grid-template-columns: 1fr; }
  .brand-group li { min-height: 54px; padding-right: 8px; font-size: 13px; }
  .brand-group li:nth-child(odd) { margin-right: 0; }
  .company-table > div { padding-block: 22px; }
  .contact-heading { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 48px; margin-bottom: 64px; }
  .contact-heading > p:last-child { padding-bottom: 6px; }
  .contact-row { min-height: 128px; gap: 32px; }
  .contact-link { font-size: 30px; }
  .copy-button { min-width: 88px; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-inner p:last-child { text-align: right; }
  .back-to-top { right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); }
}

@media (min-width: 64rem) {
  .desktop-nav { display: block; }
  .desktop-nav ul { display: flex; align-items: center; gap: clamp(20px, 2.3vw, 40px); }
  .desktop-nav a { position: relative; display: flex; align-items: center; min-height: 48px; font-size: 14px; letter-spacing: .04em; white-space: nowrap; }
  .desktop-nav a::after { content: ""; position: absolute; right: 0; bottom: 5px; left: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 180ms var(--ease); }
  .desktop-nav a:hover::after, .desktop-nav a[aria-current="location"]::after { transform: scaleX(1); transform-origin: left; }
  .menu-toggle { display: none; }
  .hero-vertical { position: absolute; z-index: 2; top: 50%; right: 30px; display: flex; align-items: center; gap: 20px; transform: translateY(-50%); writing-mode: vertical-rl; font-family: var(--font-latin); font-size: 11px; letter-spacing: .2em; }
  .vertical-rule { width: 1px; height: 64px; background: color-mix(in oklch, var(--p-light) 65%, transparent); }
  .intro-inner h2 { flex-direction: row; justify-content: center; gap: .4em; font-size: clamp(30px, 3.2vw, 44px); }
  .oem-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(56px, 6vw, 96px); }
  .oem-copy > h2 { font-size: 52px; }
  .oem-description { margin-top: 36px; }
  .oem-photo img { aspect-ratio: 4 / 3.7; }
  .company-layout { grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: clamp(56px, 7vw, 112px); }
  .brand-groups { gap: clamp(32px, 4vw, 64px); }
}

@media (min-width: 90rem) {
  .hero h1 { font-size: 64px; }
  .hero-lead { font-size: 18px; }
  .contact-link { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .hero-slide { transition: none; }
  .hero-char { animation: none; }
  .reveal-enabled [data-reveal], .reveal-enabled [data-reveal="mask"] { opacity: 1; transform: none; clip-path: none; transition: none; }
  .reveal-enabled [data-reveal="mask"] img { transform: none; transition: none; }
}

/* Layout bindings for the semantic section markup. */
.section-heading { grid-template-areas: "en" "title" "desc"; }
.section-heading .section-en { grid-area: en; }
.section-heading h2 { grid-area: title; }
.section-heading > p:last-child { grid-area: desc; }
.section-heading-stacked { grid-template-columns: minmax(0, 1fr); grid-template-areas: "en" "title" "desc"; }

.experience-list article { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-block: 32px; border-bottom: 1px solid var(--p-line); }
.experience-en { font-family: var(--font-latin); font-size: 11px; letter-spacing: .16em; color: var(--accent-text); }
.experience-list article h3 { font-size: 23px; letter-spacing: .03em; }
.experience-list article > p:last-child { color: var(--text-soft); line-height: 1.9; }

.company-grid { display: grid; gap: 48px; align-items: center; }
.company-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--p-line); font-size: 15px; }
.company-table tbody { display: block; }
.company-table tr { display: grid; grid-template-columns: minmax(5.2em, .42fr) minmax(0, 1.58fr); gap: 20px; padding-block: 20px; border-bottom: 1px solid var(--p-line); }
.company-table th, .company-table td { padding: 0; text-align: left; font-weight: 400; }
.company-table th { color: var(--text-soft); }
.company-table td { overflow-wrap: anywhere; }
.text-link { text-decoration: underline; text-decoration-color: var(--p-line); text-underline-offset: 5px; }
.text-link:hover { color: var(--accent-text); text-decoration-color: currentColor; }

.contact { padding-block: 88px; }
.contact-grid { display: grid; gap: 48px; }
.contact-intro .section-en { margin-bottom: 16px; }
.contact-intro h3 { margin-top: 32px; font-size: clamp(23px, 5.5vw, 32px); font-weight: 400; line-height: 1.65; }
.contact-intro > p:last-child { margin-top: 20px; max-width: 34em; color: var(--p-light); font-size: 15px; line-height: 1.9; }
.contact-details { border-top: 1px solid color-mix(in oklch, var(--p-light) 38%, transparent); }
.contact-row { grid-template-columns: minmax(0, 1fr); grid-template-areas: "label" "value" "actions"; gap: 12px; min-height: 0; padding-block: 28px; }
.contact-label { grid-area: label; margin-bottom: 0; }
.contact-value { grid-area: value; display: inline-block; max-width: 100%; font-family: var(--font-latin); font-size: clamp(23px, 6.5vw, 30px); line-height: 1.45; letter-spacing: .02em; overflow-wrap: anywhere; transition: color 160ms var(--ease); }
.contact-value:hover { color: var(--p-lavender); }
.contact-actions { grid-area: actions; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 8px; }
.contact-action { min-height: 48px; display: inline-flex; align-items: center; gap: 12px; font-size: 13px; }
.contact-action svg { width: 24px; height: 16px; transition: transform 160ms var(--ease); }
.contact-action:hover { color: var(--p-lavender); }
.contact-action:hover svg { transform: translateX(4px); }
.contact .copy-button { margin: 0; }

.footer-brand > div { display: flex; flex-direction: column; gap: 6px; }
.footer-brand strong { font-size: 17px; font-weight: 500; letter-spacing: .08em; color: var(--text); }
.footer-brand span { font-family: var(--font-latin); font-size: 10px; letter-spacing: .14em; }
.copy-feedback { position: fixed; z-index: 50; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100% - 112px); padding: 12px 18px; border-radius: 3px; color: var(--p-light); background: var(--p-ink); box-shadow: 0 8px 28px color-mix(in oklch, var(--p-ink) 18%, transparent); font-size: 13px; text-align: center; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity 160ms var(--ease), transform 160ms var(--ease); }
.copy-feedback:empty { visibility: hidden; }
.copy-feedback.is-visible { visibility: visible; opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 48rem) {
  .section-heading:not(.section-heading-stacked) { grid-template-areas: "en desc" "title desc"; }
  .section-heading-stacked { margin-bottom: 48px; }
  .experience-list article { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px 40px; padding-block: 36px; }
  .experience-en { grid-column: 1 / -1; }
  .experience-list article h3 { grid-column: 1; font-size: 24px; }
  .experience-list article > p:last-child { grid-column: 2; }
  .company-table tr { padding-block: 22px; }
  .contact { padding-block: 120px; }
  .contact-row { grid-template-columns: 112px minmax(0, 1fr) auto; grid-template-areas: "label value actions"; align-items: center; gap: 24px; min-height: 128px; }
  .contact-value { font-size: clamp(22px, 2.4vw, 30px); }
  .contact-actions { flex-direction: column; align-items: stretch; gap: 2px; margin-top: 0; }
  .contact-action { justify-content: space-between; }
  .contact .copy-button { min-width: 104px; }
}

@media (min-width: 64rem) {
  .company-grid { grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: clamp(56px, 7vw, 112px); }
  .contact-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(56px, 6vw, 96px); }
  .contact-intro h3 { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-value, .contact-action svg, .copy-feedback { transition: none !important; }
}

@media (min-width: 64rem) {
  .desktop-nav { display: flex; align-items: center; gap: clamp(20px, 2.3vw, 40px); }
}

/* Keep photography visible on first paint; full-size animated masks can block initial rendering. */
.reveal-enabled [data-reveal="mask"] { opacity: 1; transform: none; clip-path: none; transition: none; }
.reveal-enabled [data-reveal="mask"]::after { content: none; }
.reveal-enabled [data-reveal="mask"] img,
.reveal-enabled [data-reveal="mask"].is-visible img { transform: none; transition: none; }
.experience-list article p { grid-column: auto; margin-top: 0; }

@media (min-width: 48rem) {
  .experience-list article .experience-en { grid-column: 1 / -1; }
  .experience-list article > p:last-child { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-enabled [data-reveal="mask"]::after { transform: scaleY(0); transition: none !important; }
}

@media (min-width: 64rem) {
  .company-photo img { aspect-ratio: 4 / 5; }
}

/* Simplified headings and a quiet light-purple contact section. */
.section-heading { grid-template-areas: "title" "desc"; }
.menu-label { font-family: var(--font-body); letter-spacing: .12em; }
.contact {
  --contact-bg: oklch(0.47 0.05 325);
  color: var(--p-light);
  background: var(--contact-bg);
}
.contact-intro h2 { color: var(--p-light); }
.contact-details { border-top-color: color-mix(in oklch, var(--p-light) 30%, transparent); }
.contact-row { border-bottom-color: color-mix(in oklch, var(--p-light) 30%, transparent); }
.contact-label, .contact-value, .contact-action { color: var(--p-light); }
.contact-value:hover, .contact-action:hover { color: var(--p-light); }
.contact .copy-button { color: var(--p-light); border-color: color-mix(in oklch, var(--p-light) 52%, transparent); background: color-mix(in oklch, var(--p-light) 6%, transparent); }
.contact .copy-button:hover, .contact .copy-button.is-copied { color: var(--contact-bg); background: var(--p-light); }
.contact :focus-visible { outline-color: var(--p-light); }

@media (min-width: 48rem) {
  .section-heading:not(.section-heading-stacked) { grid-template-areas: "title desc"; }
}


/* Language selection and translated-page typography. */
.language-switch { display: none; }
.mobile-language-switch { display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--p-line); }
.mobile-language-switch a { display: inline-flex; align-items: center; min-height: 56px; font-size: 14px; transition: color 160ms var(--ease); }
.mobile-language-switch a:hover { color: var(--accent-text); }
[lang="en"] .hero h1 { max-width: none; font-size: clamp(30px, 4.6vw, 60px); }
[lang="ja"] .hero h1 { max-width: 16em; }
[lang="en"] .section-heading h2,
[lang="en"] .contact h2,
[lang="en"] .oem-copy > h2 { letter-spacing: .02em; }

@media (min-width: 64rem) {
  .desktop-nav { gap: clamp(16px, 1.8vw, 32px); }
  .language-switch { display: flex; align-items: center; flex-shrink: 0; gap: 16px; margin-left: 4px; padding-left: 20px; }
  .language-switch a { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; letter-spacing: .04em; white-space: nowrap; transition: color 160ms var(--ease); }
  .language-switch a:hover { color: var(--p-lavender); }
  .site-header.is-scrolled .language-switch a:hover { color: var(--accent-text); }
  .mobile-language-switch { display: none; }
}


/* Revision: reference-led whitespace, centered hierarchy, and simplified contact details. */
.section { padding-block: 104px; }
.section-heading-centered,
.section-heading-centered:not(.section-heading-stacked) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "title" "desc";
  justify-items: center;
  gap: 20px;
  margin-bottom: 56px;
  text-align: center;
}
.section-heading-centered h2 {
  font-size: clamp(30px, 7vw, 44px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .08em;
}
.section-heading-centered h2::after,
.contact-intro h2::after {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  margin: 22px auto 0;
  background: var(--p-lavender);
}
.section-heading-centered > p:last-child {
  max-width: 44em;
  padding-bottom: 0;
  font-size: 15px;
  line-height: 1.9;
}
.oem-layout { align-items: start; gap: 40px; }
.oem-description { margin-top: 0; font-size: 17px; line-height: 2; }
.certification { margin-top: 36px; padding-top: 28px; }
.certification h3 { font-size: 18px; }
.experience-list { display: grid; gap: 20px; border-top: 0; }
.experience-list article {
  display: block;
  padding: 32px 24px;
  border: 1px solid var(--p-line);
  background: var(--surface);
}
.experience-list article h3 { font-size: 20px; line-height: 1.6; text-align: center; }
.experience-list article h3::after {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  margin: 18px auto 0;
  background: var(--p-lavender);
}
.experience-list article > p:last-child { margin-top: 24px; line-height: 1.9; }
.company-grid { align-items: start; gap: 40px; }
.company-table { font-size: 15px; }
.contact { padding-block: 96px; }
.contact-grid { display: block; }
.contact-intro { margin-bottom: 48px; text-align: center; }
.contact-intro h2 { font-size: clamp(30px, 7vw, 44px); font-weight: 500; letter-spacing: .08em; }
.contact-intro h2::after { background: color-mix(in oklch, var(--p-light) 52%, transparent); }
.contact-details {
  display: grid;
  border-top: 1px solid color-mix(in oklch, var(--p-light) 30%, transparent);
  border-bottom: 1px solid color-mix(in oklch, var(--p-light) 30%, transparent);
}
.contact-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-height: 0;
  padding: 32px 20px;
  border-bottom: 0;
}
.contact-row + .contact-row { border-top: 1px solid color-mix(in oklch, var(--p-light) 30%, transparent); }
.contact-label { justify-content: center; margin: 0; color: var(--p-light); font-size: 14px; }
.contact-value {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--p-light);
  font-size: clamp(22px, 6vw, 30px);
  text-align: center;
}
.contact-value:hover { color: var(--p-light); text-decoration: underline; text-underline-offset: 7px; }

@media (min-width: 48rem) {
  .section { padding-block: 132px; }
  .section-heading-centered,
  .section-heading-centered:not(.section-heading-stacked) { margin-bottom: 72px; }
  .oem-layout { gap: 56px; }
  .experience-list article { padding: 36px 28px; }
  .company-grid { gap: 56px; }
  .contact { padding-block: 120px; }
  .contact-intro { margin-bottom: 56px; }
  .contact-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-row { padding: 40px 24px; }
  .contact-row + .contact-row {
    border-top: 0;
    border-left: 1px solid color-mix(in oklch, var(--p-light) 30%, transparent);
  }
}

@media (min-width: 64rem) {
  .section { padding-block: 144px; }
  .section-heading-centered h2 { font-size: 44px; }
  .oem-copy { padding-top: 12px; }
  .experience-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .experience-list article { padding: 40px 28px; }
  .experience-list article h3 { font-size: 22px; }
  .company-grid { gap: clamp(64px, 7vw, 112px); }
}


/* Calibration to the supplied layout reference. */
.section { padding-block: 64px; }
.section > .container { max-width: 70rem; }
.section-heading-centered,
.section-heading-centered:not(.section-heading-stacked) { gap: 18px; margin-bottom: 50px; }
.section-heading-centered h2 { font-size: clamp(24px, 5vw, 28px); letter-spacing: .13em; }
.section-heading-centered h2::after,
.contact-intro h2::after { height: 2px; margin-top: 17px; }
.section-heading-centered > p:last-child { font-size: 14px; line-height: 2; }
.oem-description { font-size: 14px; line-height: 2.4; }
.oem-photo img { border-radius: 20px; }
.certification { margin-top: 26px; padding-top: 20px; }
.certification h3 { color: var(--text-soft); font-size: 12px; letter-spacing: .08em; }
.certification ul { gap: 12px 24px; margin-top: 10px; }
.certification li { font-size: 16px; }
.experience-list { gap: 28px; }
.experience-list article {
  padding: 12px 0 0;
  border: 0;
  border-top: 2px solid var(--p-line);
  background: transparent;
}
.experience-list article h3 { font-size: 19px; line-height: 1.55; text-align: left; }
.experience-list article h3::after { content: none; }
.experience-list article > p:last-child { margin-top: 10px; font-size: 14px; line-height: 2.2; }
.brand-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 59.375rem;
  margin-inline: auto;
}
.brand-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 22px 10px;
  border-bottom: 1px solid var(--p-line);
  font-family: var(--font-latin);
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}
.production .data-note { max-width: 59.375rem; margin-inline: auto; text-align: center; }
.contact { padding-block: 70px; }
.contact-intro { margin-bottom: 0; }
.contact-intro h2 { font-size: clamp(24px, 5vw, 28px); letter-spacing: .13em; }
.contact-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  border: 0;
}
.contact-row,
.contact-row + .contact-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: var(--p-light);
}
.contact-icon { width: 22px; height: 22px; flex-shrink: 0; }
.contact-value { min-height: 0; font-size: 30px; line-height: 1.8; }
.contact-email-link .contact-value { font-size: clamp(19px, 4.8vw, 26px); }
.contact-row:hover .contact-value { text-decoration: underline; text-underline-offset: 7px; }

@media (min-width: 48rem) {
  .section { padding-block: 88px; }
  .brand-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .brand-list li { padding-block: 24px; font-size: 20px; }
  .contact-row,
  .contact-row + .contact-row { padding: 0; border: 0; }
}

@media (min-width: 64rem) {
  .section { padding-block: 96px; }
  .section-heading-centered h2 { font-size: 28px; }
  .oem-layout { grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: 65px; }
  .experience-list { gap: 40px; }
  .experience-list article { padding: 12px 0 0; }
  .experience-list article h3 { font-size: 19px; }
  .brand-list li { font-size: 22px; }
  .contact { padding-block: 80px; }
  .contact-value { font-size: 36px; }
  .contact-email-link .contact-value { font-size: 28px; }
}

/* Revision: concise intro, balanced OEM media, and five-column production record. */
.oem-photo img { aspect-ratio: 4 / 3; }
.brand-list,
.production .data-note { max-width: 70rem; }

@media (min-width: 64rem) {
  .oem-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: clamp(48px, 5vw, 64px);
  }
  .oem-photo { width: 100%; max-width: 30rem; justify-self: end; }
  .brand-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .brand-list li { padding-inline: 8px; font-size: clamp(15px, 1.45vw, 20px); }
}

/* Final spacing after the content-table revisions. */
.hero-content { padding-block: calc(var(--header-h) + 48px) 72px; }
.oem-layout { align-items: center; }
.company-intro .section-heading-centered,
.company-intro .section-heading-centered:not(.section-heading-stacked) { margin-bottom: 32px; }
.company-intro-lead,
.company-intro-invite {
  max-width: 46rem;
  margin-inline: auto;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 2;
  text-align: center;
}
.company-intro-lead { margin-bottom: 44px; }
.company-intro-invite { margin-top: 44px; }
.site-footer { padding-block: 32px; }
.footer-inner { display: block; text-align: center; }
.footer-inner p:last-child { text-align: center; }

@media (min-width: 48rem) {
  .hero-content { padding-block: calc(var(--header-h) + 64px) 80px; }
  .company-intro .section-heading-centered,
  .company-intro .section-heading-centered:not(.section-heading-stacked) { margin-bottom: 40px; }
  .company-intro-lead { margin-bottom: 56px; }
  .company-intro-invite { margin-top: 56px; }
  .site-footer { padding-block: 36px; }
}

@media (min-width: 64rem) {
  .oem-copy { padding-top: 0; }
}

/* OEM process: supplied SVG artwork with a centered step hierarchy. */
.oem .section-heading-centered,
.oem .section-heading-centered:not(.section-heading-stacked) { margin-bottom: 48px; }
.oem-flow {
  display: grid;
  gap: 52px;
  max-width: 44rem;
  margin-inline: auto;
}
.oem-step {
  position: relative;
  min-width: 0;
  padding-top: 24px;
}
.oem-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 50%;
  color: var(--p-light);
  background: var(--accent);
  font-family: var(--font-latin);
  font-size: 15px;
  line-height: 1;
  letter-spacing: .08em;
}
.oem-sketch {
  width: 140px;
  max-width: 100%;
  height: auto;
  margin: 24px auto;
}
.oem-step > h3 {
  margin-bottom: 16px;
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: .03em;
  text-align: center;
}
.oem-step > p {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.95;
  text-align: left;
}
.oem-step:not(:last-child)::after {
  content: "";
  position: absolute;
  bottom: -39px;
  left: 50%;
  height: 26px;
  border-left: 1px dashed var(--accent-text);
  opacity: .55;
}
.oem-step:not(:last-child)::before {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: -40px;
  left: calc(50% - 3px);
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--accent-text);
  border-bottom: 1px solid var(--accent-text);
  transform: rotate(45deg);
  opacity: .7;
}

@media (min-width: 48rem) {
  .oem .section-heading-centered,
  .oem .section-heading-centered:not(.section-heading-stacked) { margin-bottom: 56px; }
  .oem-step { padding-top: 28px; }
}

@media (min-width: 64rem) {
  .oem .section-heading-centered,
  .oem .section-heading-centered:not(.section-heading-stacked) { margin-bottom: 64px; }
  .oem-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 56px;
    max-width: none;
  }
  .oem-step {
    display: flex;
    flex-direction: column;
  }
  .oem-step > p { margin-bottom: 28px; }
  .oem-sketch {
    width: 180px;
    margin: 28px auto 24px;
  }
  .oem-step:not(:last-child)::after {
    top: 160px;
    right: -46px;
    bottom: auto;
    left: auto;
    width: 36px;
    height: 0;
    border-top: 1px dashed var(--accent-text);
    border-left: 0;
  }
  .oem-step:not(:last-child)::before {
    top: 157px;
    right: -46px;
    bottom: auto;
    left: auto;
    transform: rotate(-45deg);
  }
}

/* Supplied on-site photography paired with each OEM process step. */
.oem-step-photo {
  width: 100%;
  max-width: 22rem;
  margin: 28px auto 0;
  overflow: hidden;
  background: var(--surface);
}
.oem-step-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 64rem) {
  .oem-step-photo { margin-top: auto; }
}

/* Lower hero message and a five-paragraph, image-led company introduction. */
.hero-content { transform: translateY(40px); }
.company-intro .section-heading-centered,
.company-intro .section-heading-centered:not(.section-heading-stacked) { margin-bottom: 48px; }
.company-intro-grid {
  display: grid;
  gap: 32px;
  align-items: start;
}
.company-intro-photo {
  overflow: hidden;
  background: var(--surface-alt);
}
.company-intro-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 50%;
}
.company-intro-copy {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 2;
  text-align: left;
}
.company-intro-copy p + p { margin-top: 18px; }
.company-intro-copy p strong {
  font-weight: 600;
  color: #61496e;
  background: linear-gradient(
    to bottom,
    transparent 70%,
    #efe7f2 70%
  );
}

@media (min-width: 48rem) {
  .hero-content { transform: translateY(48px); }
  .company-intro .section-heading-centered,
  .company-intro .section-heading-centered:not(.section-heading-stacked) { margin-bottom: 56px; }
  .company-intro-grid { gap: 40px; }
}

@media (min-width: 64rem) {
  .company-intro .section-heading-centered,
  .company-intro .section-heading-centered:not(.section-heading-stacked) { margin-bottom: 64px; }
  .company-intro-grid {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: clamp(56px, 6vw, 80px);
  }
  .company-intro-photo img { aspect-ratio: 4 / 5; }
}

/* Supplied SVG artwork and inquiry link for the introduction and company overview. */
.company-intro-copy {
  max-width: 52rem;
  margin-inline: auto;
}
.company-intro-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  max-width: 52rem;
  margin: 32px auto 0;
}
.company-intro-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 0;
  border: 0;
  color: var(--accent-text);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  transition: color 180ms var(--ease), transform 180ms var(--ease);
}
.company-intro-cta-arrow {
  width: 28px;
  height: 16px;
  flex: 0 0 auto;
  transition: transform 180ms var(--ease);
}
.company-intro-cta:hover { color: oklch(0.47 0.05 325); }
.company-intro-cta:hover .company-intro-cta-arrow { transform: translateX(4px); }
.company-intro-cta:active { transform: translateY(1px); }
.company-intro-sketch {
  width: 108px;
  height: auto;
  flex: 0 0 auto;
}
.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.company-floor-plan {
  width: 100%;
  max-width: 37.5rem;
  margin: 0 auto;
}
.company-floor-plan img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: initial;
  background: transparent;
}

@media (min-width: 64rem) {
  .company-intro-footer { gap: 28px; margin-top: 40px; }
  .company-intro-cta { min-height: 52px; font-size: 15px; }
  .company-intro-sketch { width: 150px; }
  .company-grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
    gap: clamp(48px, 5vw, 72px);
  }
}


/* Natural Chinese hero lines and viewport-height primary sections. */
[lang="zh-CN"] .hero h1 {
  max-width: 12em;
  font-size: clamp(24px, 7.8vw, 64px);
  word-break: keep-all;
  overflow-wrap: normal;
}

.section {
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  align-items: center;
}

@media (min-width: 48rem) {
  [lang="zh-CN"] .hero h1 { font-size: clamp(48px, 6.3vw, 64px); }
}


/* Move both slogan lines up by one character height. */
.hero h1,
[lang="zh-CN"] .hero h1,
[lang="en"] .hero h1,
[lang="ja"] .hero h1 { transform: translateY(-1em); }


/* English hero: two fixed lines, scaled from the longer first line and aligned with the brand. */
[lang="en"] .hero-content.container {
  width: calc(100% - 32px);
  max-width: 88rem;
  margin-inline: auto;
}
[lang="en"] .hero h1 {
  max-width: none;
  font-size: clamp(10px, calc((100vw - 32px) / 21.5), 60px);
  white-space: nowrap;
}

@media (min-width: 48rem) {
  [lang="en"] .hero-content.container { width: calc(100% - 64px); }
  [lang="en"] .hero h1 {
    font-size: clamp(12px, calc((100vw - 64px) / 21.5), 60px);
  }
}


[lang="en"] .hero { grid-template-columns: minmax(0, 1fr); }
[lang="en"] .hero-content.container,
[lang="en"] .hero h1 { min-width: 0; }


/* Centered Song-style hero with the supplied fabric-worktable photograph. */
@font-face {
  font-family: "Qihui Serif";
  src: url("../assets/fonts/qihui-serif.woff") format("woff");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.hero { grid-template-columns: minmax(0, 1fr); }
.hero-slide img {
  object-position: 50% 60%;
  filter: blur(1.5px);
  transform: scale(1.025);
}
.hero-shade {
  background: linear-gradient(
    180deg,
    color-mix(in oklch, var(--p-ink) 52%, transparent) 0%,
    color-mix(in oklch, var(--p-ink) 38%, transparent) 46%,
    color-mix(in oklch, var(--p-ink) 48%, transparent) 100%
  );
}
.hero-shade::after { content: none; }
.hero-content.container {
  width: 100%;
  max-width: 80rem;
  min-width: 0;
  min-height: 100svh;
  min-height: 100dvh;
  margin-inline: auto;
  padding: calc(var(--header-h) + 64px) 16px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: none;
  text-align: center;
}
.hero h1,
[lang="zh-CN"] .hero h1,
[lang="en"] .hero h1,
[lang="ja"] .hero h1 {
  min-width: 0;
  max-width: none;
  margin: 0;
  padding-left: .22em;
  font-family: "Qihui Serif", "Noto Serif CJK SC", "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(62px, 18vw, 88px);
  font-weight: 400;
  letter-spacing: .22em;
  line-height: 1.12;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  text-align: center;
  text-shadow: 0 2px 22px color-mix(in oklch, var(--p-ink) 22%, transparent);
  transform: none;
}
.hero-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
  margin: clamp(60px, 9vh, 84px) 0 0;
  color: var(--p-light);
  font-size: clamp(10px, 3.2vw, 14px);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: .06em;
  text-align: center;
  text-shadow: 0 1px 16px color-mix(in oklch, var(--p-ink) 28%, transparent);
}
.hero-tagline::before,
.hero-tagline::after {
  content: "";
  width: 16px;
  height: 1px;
  flex: 0 0 16px;
  background: color-mix(in oklch, var(--p-light) 76%, transparent);
}
[lang="en"] .hero-tagline {
  max-width: none;
  font-size: clamp(10px, 3.2vw, 14px);
  letter-spacing: .035em;
  line-height: 1.7;
  white-space: nowrap;
}
.hero-tagline-break,
.hero-tagline-space { display: none; }
.hero-tagline-line { display: inline; }

@media (max-width: 47.99rem) {
  .hero-tagline-break { display: inline; }
  [lang="en"] .hero-tagline,
  [lang="ja"] .hero-tagline { font-size: clamp(18px, 5.7vw, 25px); }
  [lang="en"] .hero-tagline,
  [lang="ja"] .hero-tagline {
    position: relative;
    letter-spacing: 0;
  }
  [lang="en"] .hero-tagline { white-space: normal; }
  [lang="en"] .hero-tagline-line,
  [lang="ja"] .hero-tagline-line { white-space: nowrap; }
  [lang="en"] .hero-tagline::before,
  [lang="en"] .hero-tagline::after,
  [lang="ja"] .hero-tagline::before,
  [lang="ja"] .hero-tagline::after {
    display: block;
    position: absolute;
    top: calc(50% - .5px);
    width: 12px;
    height: 1px;
    flex: 0 0 12px;
  }
  [lang="en"] .hero-tagline::before,
  [lang="ja"] .hero-tagline::before { right: auto; left: -20px; }
  [lang="en"] .hero-tagline::after,
  [lang="ja"] .hero-tagline::after { right: -20px; left: auto; }
}

@media (min-width: 48rem) {
  .hero-content.container { padding: calc(var(--header-h) + 72px) 32px 72px; }
  .hero h1,
  [lang="zh-CN"] .hero h1,
  [lang="en"] .hero h1,
  [lang="ja"] .hero h1 {
    padding-left: .24em;
    font-size: clamp(96px, 9.2vw, 132px);
    letter-spacing: .24em;
  }
  .hero-tagline {
    gap: 22px;
    margin-top: clamp(76px, 10vh, 108px);
    font-size: clamp(16px, 1.4vw, 20px);
    letter-spacing: .1em;
  }
  .hero-tagline::before,
  .hero-tagline::after { width: 44px; flex-basis: 44px; }
  [lang="en"] .hero-tagline {
    font-size: clamp(20px, calc((100vw - 200px) / 18.5), 40px);
    letter-spacing: .025em;
    white-space: normal;
  }
  [lang="ja"] .hero-tagline {
    font-size: clamp(32px, 2.8vw, 40px);
    letter-spacing: .1em;
  }
  [lang="en"] .hero-tagline-space { display: inline; }
}

@media (max-width: 22.49rem) {
  .hero-tagline { gap: 8px; font-size: 10px; }
  .hero-tagline::before,
  .hero-tagline::after { width: 12px; flex-basis: 12px; }
  [lang="en"] .hero-tagline { font-size: 18px; }
}

/* Double the Chinese hero slogan size while preserving responsive scaling. */
[lang="zh-CN"] .hero-tagline { font-size: clamp(20px, 6.4vw, 28px); }

@media (min-width: 48rem) {
  [lang="zh-CN"] .hero-tagline { font-size: clamp(32px, 2.8vw, 40px); }
}

@media (max-width: 22.49rem) {
  [lang="zh-CN"] .hero-tagline {
    font-size: clamp(16px, 6.2vw, 20px);
    letter-spacing: .04em;
  }
}

/* Contact details supplied as one scalable image. */
.contact-details {
  display: block;
  width: 100%;
  max-width: 46rem;
  margin: 32px auto 0;
  border: 0;
}
.contact-info-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

@media (min-width: 48rem) {
  .contact-details { margin-top: 36px; }
}

/* Keep mobile framing on sewing workers rather than the foreground decoration. */
@media (max-width: 47.99rem) {
  .hero-slide img { object-position: 22% 60%; }
}

/* Coordinated title, slogan and rule entrance. */
.hero-char {
  animation: hero-title-enter 860ms var(--ease) both;
  animation-delay: var(--char-delay, 0ms);
}
.hero-tagline {
  animation: hero-tagline-enter 780ms var(--ease) 520ms both;
}
.hero-tagline::before,
.hero-tagline::after {
  animation: hero-tagline-rule 650ms var(--ease) 900ms both;
}
.hero-tagline::before { transform-origin: right center; }
.hero-tagline::after { transform-origin: left center; }

@keyframes hero-title-enter {
  from { opacity: 0; transform: translateY(26px); filter: blur(5px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes hero-tagline-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-tagline-rule {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-char,
  .hero-tagline,
  .hero-tagline::before,
  .hero-tagline::after { animation: none; }
}

/* Match the desktop's plain-text language navigation on mobile. */
@media (max-width: 63.99rem) {
  .language-switch {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 16px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .language-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    padding: 0;
    font-size: 12px;
    line-height: 1;
    letter-spacing: .04em;
    white-space: nowrap;
  }
}
