:root {
  --ink: #1e1e1a;
  --ink-soft: #555248;
  --gold: #bf9b58;
  --gold-deep: #94723a;
  --gold-pale: #eee6d5;
  --line: #ded9ce;
  --paper: #ffffff;
  --sand: #f6f3ed;
  --radius: 4px;
  --page-gutter: clamp(1.25rem, 4vw, 4.5rem);
  --display: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 20;
  padding: 0.7rem 1rem;
  color: #fff;
  background: var(--ink);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.section-shell { width: min(100%, 1440px); margin: 0 auto; padding-inline: var(--page-gutter); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(255 255 255 / 94%);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 18px rgb(31 29 24 / 4%); }
.header-inner { width: min(100%, 1440px); min-height: 82px; margin: 0 auto; padding-inline: var(--page-gutter); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; flex-shrink: 0; }
.brand-mark { width: 42px; height: 42px; object-fit: cover; mix-blend-mode: multiply; }
.brand-copy { display: grid; gap: 0.08rem; color: var(--gold-deep); line-height: 1; }
.brand-copy strong { font-family: var(--display); font-size: 1.35rem; font-weight: 700; letter-spacing: 0.08em; }
.brand-copy small { font-size: 0.45rem; letter-spacing: 0.2em; }
.main-nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 3.15rem); font-size: 0.82rem; letter-spacing: 0.08em; }
.main-nav > a:not(.nav-contact) { position: relative; padding: 0.55rem 0; }
.main-nav > a:not(.nav-contact)::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform 180ms ease; }
.main-nav > a:not(.nav-contact):hover::after, .main-nav > a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-contact { color: var(--gold-deep); border-left: 1px solid var(--gold); padding-left: clamp(1rem, 2vw, 2rem); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; }
.menu-toggle span { display: block; width: 24px; height: 1px; margin: 6px auto; background: var(--ink); transition: transform 180ms ease; }

.hero { display: grid; grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); align-items: center; gap: clamp(2rem, 5vw, 7rem); padding-top: clamp(4.5rem, 8vw, 9rem); padding-bottom: clamp(5rem, 9vw, 10rem); }
.hero-copy { max-width: 37rem; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: 0.01em; }
h1 { margin-bottom: 1.5rem; font-size: clamp(3rem, 5.25vw, 5.9rem); line-height: 1.13; }
.hero-copy > p { max-width: 28rem; margin-bottom: 2.25rem; color: var(--ink-soft); font-size: 0.96rem; line-height: 2; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 2rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.8rem 1.65rem; border: 1px solid transparent; font-size: 0.83rem; letter-spacing: 0.12em; transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button-gold { color: #fff; background: var(--gold); }
.button-gold:hover { background: var(--gold-deep); }
.button-dark { width: 100%; color: #fff; background: var(--ink); }
.button-dark:hover { background: var(--gold-deep); }
.text-link { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--gold-deep); font-size: 0.82rem; letter-spacing: 0.08em; }
.text-link svg, .product-card > svg { width: 1rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 180ms ease; }
.text-link:hover svg, .product-card:hover > svg { transform: translateX(4px); }
.hero-media { position: relative; margin: 0; min-height: 530px; overflow: hidden; border-radius: var(--radius); background: var(--sand); }
.hero-media img { width: 100%; height: 100%; min-height: 530px; object-fit: cover; object-position: center; }
.hero-media figcaption { position: absolute; bottom: 1.35rem; left: 1.5rem; color: var(--gold-deep); font-size: 0.75rem; letter-spacing: 0.08em; }

.products { padding-bottom: clamp(5rem, 9vw, 9rem); }
.section-heading { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(11rem, 22rem); align-items: end; gap: 1.5rem; padding-top: 1.4rem; margin-bottom: clamp(2.75rem, 5vw, 5rem); border-top: 1px solid var(--line); }
.section-number { align-self: start; color: var(--gold); font-family: var(--display); font-size: 0.9rem; letter-spacing: 0.08em; }
.section-label { margin-bottom: 0.75rem; color: var(--gold-deep); font-size: 0.7rem; letter-spacing: 0.18em; }
h2 { margin-bottom: 0; font-size: clamp(2.5rem, 4.5vw, 5rem); line-height: 1.16; }
.section-intro { margin: 0; color: var(--ink-soft); font-size: 0.88rem; line-height: 1.9; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.product-card { position: relative; min-width: 0; padding: 0 0.9rem 1.4rem 0; color: var(--ink); text-align: left; background: transparent; border: 0; border-right: 1px solid var(--line); transition: color 180ms ease; }
.product-card:not(:first-child) { padding-left: 0.9rem; }
.product-card:last-child { padding-right: 0; border-right: 0; }
.product-card.is-selected .product-meta strong, .product-card:hover .product-meta strong { color: var(--gold-deep); }
.product-swatch { display: block; aspect-ratio: 1 / 0.88; margin-bottom: 1rem; background-image: url("assets/images/fabric-swatch-grid.png"); background-size: 200% 200%; transition: transform 260ms ease; }
.product-card:hover .product-swatch, .product-card.is-selected .product-swatch { transform: translateY(-5px); }
.swatch-cotton { background-position: 0 0; }
.swatch-linen { background-position: 100% 0; }
.swatch-twill { background-position: 0 100%; }
.swatch-jacquard { background-position: 100% 100%; }
.product-meta { display: grid; gap: 0.42rem; padding-right: 1.7rem; }
.product-meta strong { font-family: var(--display); font-size: 1.25rem; font-weight: 700; transition: color 180ms ease; }
.product-meta small { min-height: 2.8em; color: var(--ink-soft); font-size: 0.72rem; line-height: 1.5; }
.product-card > svg { position: absolute; right: 0.7rem; bottom: 1.5rem; color: var(--gold); }
.product-card:last-child > svg { right: 0; }
.selection-status { min-height: 1.7em; margin: 1.1rem 0 0; color: var(--gold-deep); font-size: 0.78rem; text-align: right; }

.strength { display: grid; grid-template-columns: minmax(18rem, 0.78fr) minmax(0, 1.22fr); gap: clamp(3rem, 8vw, 10rem); align-items: center; padding-top: clamp(5rem, 9vw, 10rem); padding-bottom: clamp(5rem, 9vw, 10rem); border-top: 1px solid var(--line); }
.strength-copy { max-width: 31rem; }
.strength-copy .section-number { display: block; margin-bottom: 1.2rem; }
.strength-copy h2 { margin-bottom: 1.6rem; }
.strength-intro { max-width: 25rem; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.95; }
.strength-list { display: grid; gap: 1.35rem; padding: 0; margin: 2.5rem 0; list-style: none; }
.strength-list li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.85rem; }
.strength-list li > span { color: var(--gold); font-size: 0.68rem; letter-spacing: 0.1em; }
.strength-list strong { display: block; margin-bottom: 0.38rem; font-family: var(--display); font-size: 1.1rem; }
.strength-list p { margin: 0; color: var(--ink-soft); font-size: 0.76rem; line-height: 1.7; }
.factory-gallery { min-width: 0; }
.factory-main { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); }
.factory-main img { width: 100%; aspect-ratio: 1.38 / 1; object-fit: cover; }
.factory-main figcaption { position: absolute; bottom: 1rem; left: 1rem; color: #fff; font-size: 0.75rem; letter-spacing: 0.08em; text-shadow: 0 1px 12px rgb(0 0 0 / 42%); }
.gallery-notes { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 0.75rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gallery-notes span { padding: 0.85rem 0.65rem; color: var(--ink-soft); font-size: 0.72rem; text-align: center; }
.gallery-notes span + span { border-left: 1px solid var(--line); }

.about-band { background: var(--sand); }
.about-inner { display: grid; grid-template-columns: 1fr minmax(0, 1.35fr); gap: 2rem; padding-top: clamp(4.5rem, 8vw, 8rem); padding-bottom: clamp(4.5rem, 8vw, 8rem); }
.about-inner .section-label { grid-column: 1 / -1; margin-bottom: 0; }
.about-inner h2 { grid-column: 1; }
.about-inner > p:last-child { align-self: end; max-width: 32rem; margin: 0; color: var(--ink-soft); font-size: 0.95rem; line-height: 2; }

.cooperate { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(21rem, 0.97fr); gap: clamp(3rem, 8vw, 10rem); padding-top: clamp(5rem, 9vw, 10rem); padding-bottom: clamp(5rem, 9vw, 10rem); }
.cooperate-static { grid-template-columns: minmax(0, 1fr); }
.cooperate-static .cooperate-copy { max-width: 48rem; }
.cooperate-static .cooperate-copy > p:not(.section-label) { max-width: 42rem; }
.cooperate-copy .section-number { display: block; margin-bottom: 1.15rem; }
.cooperate-copy h2 { margin-bottom: 1.55rem; }
.cooperate-copy > p:not(.section-label) { max-width: 32rem; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.95; }
.cooperate-detail { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; margin-top: 2rem; color: var(--gold-deep); font-size: 0.75rem; letter-spacing: 0.08em; }
.cooperate-detail span + span::before { content: "/"; margin-right: 1.25rem; color: var(--gold); }
.site-footer { color: #eee9df; background: var(--ink); }
.footer-inner { display: grid; grid-template-columns: minmax(13rem, 1.15fr) 1.1fr auto; gap: 2rem; align-items: center; padding-top: 3rem; padding-bottom: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.7rem; }
.footer-brand img { width: 48px; height: 48px; object-fit: contain; mix-blend-mode: normal; }
.footer-brand div { display: grid; gap: 0.25rem; }
.footer-brand strong { color: var(--gold); font-family: var(--display); font-size: 1.4rem; letter-spacing: 0.08em; }
.footer-brand span { color: var(--gold); font-size: 0.48rem; letter-spacing: 0.18em; }
.footer-inner > p { max-width: 19rem; margin: 0; color: #c4bfb5; font-size: 0.77rem; line-height: 1.7; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.1rem; color: #d1c9bd; font-size: 0.73rem; }
.footer-links a:hover { color: var(--gold); }
.footer-inner small { display: grid; grid-column: 1 / -1; gap: 0.55rem; justify-items: center; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 14%); color: #8d8a83; font-size: 0.64rem; letter-spacing: 0.05em; text-align: center; }
.footer-inner small a { color: inherit; transition: color 160ms ease; }
.footer-inner small a:hover { color: var(--gold); }

.reveal { opacity: 1; transform: none; }
.reveal.is-visible { opacity: 1; transform: none; }

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

@media (max-width: 960px) {
  .main-nav { gap: 1.15rem; }
  .hero { grid-template-columns: 0.95fr 1.05fr; gap: 2.25rem; }
  .hero-media, .hero-media img { min-height: 440px; }
  .section-heading { grid-template-columns: auto 1fr; }
  .section-intro { grid-column: 2; max-width: 28rem; margin-top: 0.5rem; }
  .strength, .cooperate { gap: 3rem; }
}

@media (max-width: 720px) {
  html { scroll-padding-top: 74px; }
  .header-inner { min-height: 70px; }
  .brand-mark { width: 37px; height: 37px; }
  .brand-copy strong { font-size: 1.17rem; }
  .menu-toggle { display: block; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .main-nav { position: absolute; top: 100%; right: 0; left: 0; height: calc(100vh - 70px); height: calc(100dvh - 70px); z-index: 1; display: grid; align-content: start; gap: 0; padding: 1.5rem var(--page-gutter); overflow-y: auto; background: rgb(255 255 255 / 98%); border-top: 1px solid var(--line); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 180ms ease, visibility 180ms ease; }
  .main-nav.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
  .main-nav > a:not(.nav-contact) { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .main-nav > a:not(.nav-contact)::after { display: none; }
  .nav-contact { width: fit-content; margin-top: 1.5rem; padding: 0.8rem 1.1rem; border: 1px solid var(--gold); }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 2.7rem; padding-top: 4.4rem; }
  h1 { font-size: clamp(2.8rem, 13vw, 4.1rem); }
  .hero-copy > p { font-size: 0.9rem; }
  .hero-media, .hero-media img { min-height: 390px; }
  .hero-media figcaption { font-size: 0.68rem; }
  .section-heading { grid-template-columns: auto 1fr; gap: 1rem; }
  .section-heading h2, .about-inner h2 { grid-column: 1 / -1; }
  .section-intro { grid-column: 1 / -1; }
  h2 { font-size: clamp(2.45rem, 12vw, 4rem); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-card { padding: 0 0.55rem 1.2rem 0; border-bottom: 1px solid var(--line); }
  .product-card:nth-child(2n) { padding-right: 0; border-right: 0; }
  .product-card:nth-child(2n + 1):not(:first-child) { padding-left: 0; }
  .product-card:nth-child(3), .product-card:nth-child(4) { padding-top: 1rem; }
  .product-card > svg { display: none; }
  .product-meta { padding-right: 0; }
  .product-meta strong { font-size: 1.07rem; }
  .selection-status { text-align: left; }
  .strength, .cooperate { display: flex; flex-direction: column; align-items: stretch; gap: 3.2rem; }
  .factory-main img { aspect-ratio: 1 / 1; }
  .about-inner { display: block; }
  .about-inner .section-label { margin-bottom: 1.25rem; }
  .about-inner h2 { margin-bottom: 1.5rem; }
  .cooperate-detail { line-height: 1.8; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.35rem; padding-top: 2.5rem; }
  .footer-inner small { margin-top: 0.5rem; }
}

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