:root {
  --red: #870102;
  --red-deep: #5c0a0c;
  --red-ink: #3a0708;
  --cream: #f7f1e8;
  --paper: #fffdf9;
  --sand: #ece2d3;
  --gold: #b88a4a;
  --ink: #241a17;
  --muted: #6e615a;
  --line: rgba(36, 26, 23, .12);
  --serif: "Cormorant Garamond", "Noto Serif SC", Georgia, serif;
  --sans: "Inter", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --shadow: 0 18px 40px -22px rgba(58, 7, 8, .45);
}
html[lang="zh-CN"] {
  --serif: "Noto Serif SC", "Songti SC", serif;
  --sans: "Noto Sans SC", "PingFang SC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
html[lang="zh-CN"] h1, html[lang="zh-CN"] h2, html[lang="zh-CN"] h3 { letter-spacing: .02em; line-height: 1.3; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
html[lang="zh-CN"] h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }

.eyebrow {
  font: 600 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  color: var(--red); margin-bottom: 1.1rem; display: flex; align-items: center; gap: .7rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: #f0d9b5; }
html[lang="zh-CN"] .eyebrow { letter-spacing: .3em; font-size: .8rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  font: 500 .95rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--red); color: #fff; }
.btn--solid:hover { background: var(--red-deep); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--light { background: #fff; color: var(--red-ink); }
.btn--light:hover { background: var(--sand); }
.btn--sm { padding: .6rem 1.1rem; font-size: .85rem; }
.btn--block { width: 100%; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 253, 249, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { width: min(1280px, 100% - 32px); margin-inline: auto; height: 72px; display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; flex-shrink: 0; }
.brand img { width: 52px; height: auto; border-radius: 3px; }
.brand__name { display: flex; flex-direction: column; line-height: 1.15; }
.brand__zh { font: 700 1rem "Noto Serif SC", serif; color: var(--red); letter-spacing: .08em; white-space: nowrap; }
.brand__en { font: 600 .6rem var(--sans); letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
.nav__links { display: flex; gap: 1.8rem; margin-left: auto; }
.nav__links a { text-decoration: none; font-size: .93rem; color: var(--ink); position: relative; padding: .3rem 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--red); transition: right .25s; }
.nav__links a:hover::after { right: 0; }
.nav__tools { display: flex; align-items: center; gap: .9rem; flex-shrink: 0; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; }
.lang button {
  border: 0; background: none; font: 500 .8rem var(--sans); padding: .38rem .7rem; border-radius: 999px; white-space: nowrap;
  color: var(--muted); cursor: pointer;
}
.lang button.is-on { background: var(--red); color: #fff; }
.nav__burger { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; padding: 10px 8px; }
.nav__burger span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .25s; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: min(88vh, 820px); display: flex; align-items: flex-end; overflow: hidden; background: var(--red-ink); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(40,5,6,.88) 0%, rgba(58,7,8,.62) 42%, rgba(58,7,8,.08) 75%), linear-gradient(0deg, rgba(30,4,5,.55), transparent 45%); }
.hero__content { position: relative; color: #fff; padding: 6rem 0 5.5rem; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); max-width: 11ch; margin-bottom: 1.4rem; }
html[lang="zh-CN"] .hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 5.6em; }
.hero__lead { font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 34rem; color: rgba(255,255,255,.86); margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Facts */
.facts { background: var(--paper); border-bottom: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 2.2rem 1.6rem; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { display: block; font: 600 2.3rem/1 var(--serif); color: var(--red); margin-bottom: .55rem; }
.fact span { font-size: .9rem; color: var(--muted); }

/* Sections */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section__head { max-width: 46rem; margin-bottom: 3rem; }
.section__lead { color: var(--muted); font-size: 1.05rem; }
.section__head--light h2 { color: #fff; }
.section__head--light .section__lead { color: rgba(255,255,255,.72); }

/* About */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about__media { position: relative; aspect-ratio: 1 / 1.05; }
.about__img { position: absolute; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about__img--a { inset: 0 22% 22% 0; width: 78%; height: 78%; }
.about__img--b { right: 0; bottom: 0; width: 56%; height: 52%; border: 8px solid var(--cream); }
.about__text p { color: var(--muted); }
.about__text h2 { font-size: clamp(1.8rem, 3.3vw, 2.6rem); }
.motto {
  margin: 2rem 0 0; padding: 1.4rem 1.6rem; background: var(--paper); border-left: 3px solid var(--red);
  font: 600 1.35rem/1.4 var(--serif); color: var(--red-ink); border-radius: 0 var(--radius) var(--radius) 0;
}

/* Collections */
.collections { background: var(--paper); }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 3.5rem; }
.cat {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; cursor: pointer;
  border: 0; padding: 0; text-align: left; color: #fff; background: var(--sand); font: inherit;
}
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(30,4,5,.85), rgba(30,4,5,0) 58%); }
.cat:hover img { transform: scale(1.05); }
.cat__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.3rem; z-index: 1; }
.cat__body h3 { font-size: 1.45rem; margin: 0 0 .3rem; }
html[lang="zh-CN"] .cat__body h3 { font-size: 1.2rem; }
.cat__body p { font-size: .82rem; line-height: 1.5; color: rgba(255,255,255,.82); margin: 0 0 .7rem; }
.cat__count { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #f0d9b5; }

.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; scroll-margin-top: 96px; }
.filters button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .55rem 1.1rem;
  font: 500 .88rem var(--sans); color: var(--ink); cursor: pointer;
}
.filters button span { color: var(--muted); margin-left: .35rem; font-size: .78rem; }
.filters button.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters button.is-on span { color: rgba(255,255,255,.6); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); animation: rise .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.card__img { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; cursor: zoom-in; background: var(--sand); overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__img img { transform: scale(1.04); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .75rem .9rem; }
.card__code { font: 600 .9rem var(--sans); letter-spacing: .04em; }
.card__cat { display: block; font-size: .74rem; color: var(--muted); }
.add {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  font-size: 1.15rem; line-height: 1; color: var(--red); cursor: pointer; transition: .2s;
}
.add:hover { border-color: var(--red); }
.add.is-on { background: var(--red); color: #fff; border-color: var(--red); }

/* Factory */
.factory { background: var(--red-ink); color: #fff; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 1rem; }
.step { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; }
.step--wide { grid-column: span 2; }
.step img { width: 100%; height: 100%; object-fit: cover; }
.step figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.1rem 1rem; display: flex; gap: .7rem; align-items: baseline;
  background: linear-gradient(0deg, rgba(20,3,4,.85), transparent); font-weight: 500;
}
.step figcaption b { font: 600 .78rem var(--sans); color: #f0d9b5; letter-spacing: .1em; }

/* Showroom */
.showroom__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.showroom__text p { color: var(--muted); margin-bottom: 1.8rem; }
.showroom__media { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.showroom__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.showroom__media img:last-child { margin-top: 3rem; }

/* Contact */
.contact { background: var(--paper); border-top: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact__info > p { color: var(--muted); }
.contact__list { list-style: none; margin: 2rem 0 0; padding: 0; }
.contact__list li { padding: 1rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; }
.contact__list span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: .15rem; }
.contact__list a { text-decoration: none; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--red); }

.form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.form h3 { font-size: 1.8rem; }
.form label { display: block; margin-bottom: 1rem; }
.form label > span { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); margin-bottom: .35rem; }
.form input, .form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: .75rem .9rem; font: inherit; font-size: .95rem;
  background: var(--cream); color: var(--ink); transition: border-color .2s, background .2s;
}
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--red); background: #fff; }
.form input.is-bad { border-color: #c0392b; background: #fff5f4; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form__note { font-size: .78rem; color: var(--muted); text-align: center; margin: .8rem 0 0; }
.picked { background: var(--cream); border-radius: 12px; padding: .9rem 1rem; margin-bottom: 1.2rem; }
.picked__label { font-size: .78rem; color: var(--muted); margin: 0 0 .5rem; }
.picked__list { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .25rem .3rem .25rem .7rem; font-size: .8rem; font-weight: 600; }
.chip button { border: 0; background: var(--sand); border-radius: 50%; width: 20px; height: 20px; cursor: pointer; line-height: 1; color: var(--ink); }

/* Footer */
.footer { background: var(--red-ink); color: rgba(255,255,255,.75); padding: 2.4rem 0; font-size: .88rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.footer__brand { display: flex; gap: .9rem; align-items: center; }
.footer__brand img { border-radius: 3px; }
.footer__brand strong { display: block; color: #fff; font-weight: 500; }
.footer__copy { margin: 0; }

/* Inquiry tray */
.tray {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 45;
  display: flex; align-items: center; gap: 1rem; background: var(--ink); color: #fff;
  padding: .55rem .6rem .55rem 1.3rem; border-radius: 999px; box-shadow: 0 14px 40px -12px rgba(0,0,0,.5);
  font-size: .9rem; white-space: nowrap; animation: rise .3s ease both;
}
.tray[hidden] { display: none; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 60; background: rgba(18, 8, 8, .94); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.lb[hidden] { display: none; }
.lb__fig { margin: 0; max-width: min(1100px, 100%); display: flex; flex-direction: column; align-items: center; }
.lb__fig img { max-height: calc(100vh - 140px); width: auto; max-width: 100%; border-radius: 10px; object-fit: contain; }
.lb__fig figcaption { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; color: #fff; padding: 1rem .2rem 0; }
.lb__fig figcaption span { color: rgba(255,255,255,.6); margin-left: .5rem; font-size: .9rem; }
.lb__close, .lb__nav { position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; }
.lb__close:hover, .lb__nav:hover { background: rgba(255,255,255,.22); }
.lb__close { top: 16px; right: 16px; }
.lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 16px; top: 50%; transform: translateY(-50%); }

/* Responsive */
@media (max-width: 1200px) {
  .nav__cta { display: none; }
}
@media (max-width: 1080px) {
  .nav__links { gap: 1.2rem; }
  .cats, .grid { grid-template-columns: repeat(3, 1fr); }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .cat { aspect-ratio: 4 / 3; }
}
@media (max-width: 860px) {
  .nav__burger { display: block; }
  .nav__links {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .5rem 16px 1rem;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav__links a::after { display: none; }
  .nav__tools { margin-left: auto; }
  .about__grid, .showroom__grid, .contact__grid { grid-template-columns: 1fr; }
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .fact { padding: 1.5rem 1rem; border-left: 0; border-top: 1px solid var(--line); }
  .fact:nth-child(odd) { padding-left: 0; }
  .fact:nth-child(-n+2) { border-top: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .steps { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .lb__nav { top: auto; bottom: 16px; transform: none; }
}
@media (max-width: 520px) {
  .brand { gap: .5rem; min-width: 0; flex-shrink: 1; }
  .brand img { width: 44px; }
  .brand__name { min-width: 0; }
  .brand__zh { font-size: .8rem; letter-spacing: 0; white-space: normal; }
  .brand__en { font-size: .5rem; letter-spacing: 0; white-space: normal; line-height: 1.25; margin-top: 2px; }
  .cats { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .cat { aspect-ratio: 3 / 4; }
  .cat__body { padding: .9rem; }
  .cat__body p { display: none; }
  .cat__body h3 { font-size: 1.1rem; }
  .form__row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .step--wide { grid-column: auto; }
  .contact__list li { grid-template-columns: 1fr; gap: .2rem; }
  .card__foot { padding: .6rem .65rem; }
  .card__cat { display: none; }
  .hero__content { padding: 4rem 0 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
