@font-face {
  font-family: "ZCOOL XiaoWei";
  src: url("../fonts/zcool-xiaowei-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "ZCOOL XiaoWei";
  src: url("../fonts/zcool-xiaowei-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F;
}
@font-face {
  font-family: "Noto Serif SC";
  src: url("../fonts/noto-serif-sc-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif SC";
  src: url("../fonts/noto-serif-sc-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-latin-vf.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-latin-vf.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F;
}

:root {
  color-scheme: light;
  --paper: #f4efe4;
  --paper-2: #ebe3d4;
  --ink: #1c1916;
  --ink-soft: #5c5348;
  --wash: #e6dfd2;
  --line: rgb(28 25 22 / 0.16);
  --cinnabar: #bb4101;
  --cinnabar-ink: #f4efe4;
  --silk: #0b0b0b;
  --silk-type: #f4efe4;
  --silk-line: rgb(244 239 228 / 0.16);
  --silk-muted: rgb(244 239 228 / 0.72);
  --shadow: 0 18px 40px rgb(28 25 22 / 0.12);
  --display: "ZCOOL XiaoWei", "Noto Serif SC", "Songti SC", "STSong", serif;
  --ui: "Noto Serif SC", "Source Serif 4", "Songti SC", "STSong", serif;
  --max: 1240px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --paper: #161412;
  --paper-2: #1f1c19;
  --ink: #f4efe4;
  --ink-soft: #c9c0b3;
  --wash: #2a2622;
  --line: rgb(244 239 228 / 0.16);
  --cinnabar: #d65a18;
  --cinnabar-ink: #161412;
  --silk: #050505;
  --silk-type: #f4efe4;
  --silk-line: rgb(244 239 228 / 0.16);
  --silk-muted: rgb(244 239 228 / 0.72);
  --shadow: 0 18px 40px rgb(0 0 0 / 0.4);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--silk);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
}
img { display: block; width: 100%; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 3px;
}
::selection {
  background: var(--cinnabar);
  color: var(--cinnabar-ink);
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 80;
  background: var(--cinnabar);
  color: var(--cinnabar-ink);
  padding: 8px 12px;
}
.skip:focus { top: 12px; }

.silk {
  background:
    radial-gradient(ellipse 70% 40% at 0% 0%, rgb(28 25 22 / 0.06), transparent 55%),
    radial-gradient(ellipse 40% 28% at 100% 0%, rgb(187 65 1 / 0.04), transparent 55%),
    var(--paper);
  min-height: 100dvh;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--silk-type);
  background: #0b0b0b;
  padding-top: env(safe-area-inset-top);
}
.nav::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  background: #0b0b0b url("../images/nav-bar.png") no-repeat center bottom / 100% var(--nav-h);
  pointer-events: none;
}
.nav-row {
  position: relative;
  z-index: 1;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  margin-right: auto;
  display: flex;
  align-items: center;
  min-height: 44px;
}
.brand-lockup {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(240px, 46vw);
  object-fit: contain;
  object-position: left center;
}
.links {
  display: flex;
  gap: 22px;
  font-family: var(--display);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.links a:hover { color: var(--cinnabar); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn, .lang {
  width: 44px;
  height: 44px;
  border: 1px solid var(--silk-line);
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.icon-btn svg { width: 18px; height: 18px; }
.lang {
  width: auto;
  padding: 0 12px;
  font-family: "Source Sans 3", sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.icon-btn:active, .lang:active, .btn:active { transform: scale(0.98); }
[data-theme="light"] .i-moon, [data-theme="dark"] .i-sun { display: none; }
html:not([data-theme]) .i-moon { display: none; }
.menu { display: none; }
.menu-lines {
  width: 16px;
  height: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.menu-lines i {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  transition: transform 200ms var(--ease);
}
.menu[aria-expanded="true"] .menu-lines i:first-child {
  transform: translateY(5.25px) rotate(45deg);
}
.menu[aria-expanded="true"] .menu-lines i:last-child {
  transform: translateY(-5.25px) rotate(-45deg);
}
.mobile {
  display: none;
  position: relative;
  z-index: 1;
  background: #0b0b0b;
  padding: 8px 20px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid rgb(244 239 228 / 0.12);
}
.mobile a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--silk-line);
  color: var(--silk-type);
  font-family: var(--display);
  letter-spacing: 0.12em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: transform 180ms var(--ease), background 180ms, color 180ms, border-color 180ms;
}
.btn.seal {
  background: var(--cinnabar);
  color: var(--cinnabar-ink);
  box-shadow: 0 10px 24px rgb(187 65 1 / 0.28);
}
.btn.seal:hover { filter: brightness(1.08); }
.btn.ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}
.btn.ghost:hover { background: var(--wash); }

.hero { padding: 0; }
.hero-scene {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--nav-h));
  overflow: hidden;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 58%;
}
.hero-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(255 250 241 / 0.28) 0%, rgb(255 250 241 / 0.08) 38%, transparent 58%);
}
.hero-copy {
  position: relative;
  z-index: 2;
  width: min(36rem, 46vw);
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 7vh, 72px) 0;
  margin-left: max(20px, calc((100% - var(--max)) / 2));
  color: #1c1916;
}
.hero-lockup {
  width: min(320px, 88%);
  height: auto;
  margin-bottom: 22px;
  filter: drop-shadow(0 1px 0 rgb(255 250 241 / 0.55));
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.85rem, 3.2vw, 3.05rem);
  line-height: 1.22;
  letter-spacing: 0.08em;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgb(255 250 241 / 0.55);
}
.lede {
  margin: 18px 0 0;
  max-width: 28ch;
  font-size: 1.08rem;
  color: #5c5348;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .btn.seal {
  background: var(--cinnabar);
  color: var(--cinnabar-ink);
}
.hero .btn.ghost {
  border-color: rgb(28 25 22 / 0.35);
  color: #1c1916;
  background: rgb(255 250 241 / 0.35);
}
.hero .btn.ghost:hover { background: rgb(255 250 241 / 0.7); }

@media (prefers-reduced-motion: no-preference) {
  .hero-photo {
    animation: ink-bloom 1.6s var(--ease) both;
  }
  .brand-lockup, .hero-lockup {
    animation: stamp 0.7s var(--ease) 0.2s both;
  }
}
@keyframes ink-bloom {
  from {
    clip-path: circle(72% at 68% 58%);
    filter: grayscale(0.28) contrast(1.08);
  }
  to {
    clip-path: circle(160% at 68% 58%);
    filter: grayscale(0) contrast(1);
  }
}
@keyframes stamp {
  from { transform: scale(0.72) rotate(-8deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

.collections { padding: 96px 0 32px; }
.collections h2,
.craft h2,
.story h2,
.products h2,
.contact h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 1.22;
  letter-spacing: 0.06em;
  margin: 0 0 28px;
  max-width: 18ch;
}
.album {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
}
.leaf {
  display: grid;
  background: var(--paper-2);
  color: inherit;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 280ms var(--ease);
}
.leaf:hover { transform: translateY(-4px); }
.leaf img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.leaf-hero { grid-row: span 2; }
.leaf-hero img { aspect-ratio: 3 / 4; height: 100%; }
.leaf-meta { padding: 18px 18px 20px; }
.leaf-meta h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  margin: 0 0 8px;
}
.leaf-meta p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 42ch;
}

.craft {
  padding: 88px 0 72px;
}
.craft-lead { margin-bottom: 48px; }
.craft-lead h2 { max-width: 12ch; }
html[lang="en"] .craft-lead h2 { max-width: 18ch; }
.craft-lead p {
  margin: 0;
  max-width: 46ch;
  color: var(--ink-soft);
  line-height: 1.85;
}
.wrap-steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: min(1180px, calc(100% - 40px));
  display: grid;
  gap: clamp(40px, 6vw, 72px);
}
.wrap-step {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(20px, 4vw, 52px);
  align-items: center;
  min-width: 0;
}
.wrap-step:nth-child(even) {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}
.wrap-step:nth-child(even) figure { order: 1; }
.wrap-step figure {
  margin: 0;
  min-width: 0;
  background: var(--paper-2);
  padding: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.wrap-step img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 42%;
}
.wrap-copy { max-width: 38ch; }
.step-num {
  margin: 0 0 8px;
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cinnabar);
}
.wrap-copy h3 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}
.step-lead {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1.02rem;
  line-height: 1.7;
}
.wrap-copy p:last-child {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.8;
}
.craft-foot {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.craft-foot p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 42ch;
}

.story { padding: 0; }
.story-scene {
  position: relative;
  isolation: isolate;
  min-height: min(88svh, 860px);
  overflow: hidden;
  color: #1c1916;
}
.story-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 48%;
}
.story-panel {
  position: relative;
  z-index: 1;
  min-height: min(88svh, 860px);
  display: grid;
  align-content: center;
  gap: 32px;
  padding: clamp(48px, 8vh, 96px) 0;
}
.inscription {
  margin: 0;
  max-width: none;
}
.inscription p {
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.6vw, 3.15rem);
  line-height: 1.35;
  margin: 0;
  letter-spacing: 0.22em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  height: min(22em, 62vh);
}
html[lang="en"] .inscription p {
  writing-mode: horizontal-tb;
  letter-spacing: 0.02em;
  height: auto;
  max-width: 14em;
}
.story-body { max-width: 36ch; }
.story-body h2 { margin-bottom: 14px; }
.story-body p {
  color: #5c5348;
  line-height: 1.9;
  margin: 0;
}

.products { padding: 24px 0 96px; }
.products-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.products-head h2 { margin: 0; }
.text-link {
  color: var(--cinnabar);
  font-family: var(--display);
  font-weight: 400;
  width: fit-content;
  border-bottom: 1px solid var(--cinnabar);
}
.filterbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.filter {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  min-height: 44px;
  padding: 0 14px;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.08em;
}
.filter.active, .filter:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.product {
  background: var(--paper-2);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.product img {
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--wash);
}
.product-body { padding: 14px 14px 16px; }
.product .spec {
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--cinnabar);
  margin-top: 10px;
}
.product h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0 0 4px;
}
.product .en {
  font-size: 0.78rem;
  color: var(--ink-soft);
  min-height: 2.4em;
  line-height: 1.4;
}
.product-grid[data-empty="true"] {
  display: block;
  padding: 48px 0;
  color: var(--ink-soft);
}
.note {
  margin-top: 22px;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.7;
  max-width: 75ch;
}

.contact { padding: 0 0 96px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: end;
  padding: 48px 0 0;
  border-top: 1px solid var(--line);
}
.contact p {
  max-width: 52ch;
  color: var(--ink-soft);
  line-height: 1.85;
}
.phone {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--display);
  font-size: clamp(1.55rem, 7.2vw, 3.2rem);
  letter-spacing: 0.02em;
  color: var(--cinnabar);
  overflow-wrap: anywhere;
}
.colophon-block {
  font-style: normal;
  display: grid;
  gap: 22px;
}
.colophon-block span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.colophon-block strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.15rem;
}

.footer {
  background: var(--silk);
  color: var(--silk-type);
  padding: 48px 0 calc(28px + env(safe-area-inset-bottom));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.footer-lockup {
  width: min(380px, 100%);
  height: auto;
  background: transparent;
}
.footer h2 {
  font-family: var(--ui);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  max-width: none;
}
.footer p, .footer a { color: var(--silk-muted); font-size: 0.9rem; line-height: 1.8; }
.copyright {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--silk-line);
  color: var(--silk-muted);
  font-size: 0.75rem;
}

.js-motion [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
}
.js-motion [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

@media (max-width: 1024px) {
  .links { display: none; }
  .menu { display: grid; }
  .mobile.open { display: block; }
  .craft-foot, .contact-grid { grid-template-columns: 1fr; }
  .hero-copy {
    width: min(34rem, calc(100% - 40px));
  }
  .album {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin-inline: -20px;
    padding: 4px 20px 16px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .leaf, .leaf-hero {
    flex: 0 0 min(78vw, 340px);
    scroll-snap-align: start;
    grid-row: auto;
    min-width: 0;
  }
  .leaf-hero img, .leaf img {
    aspect-ratio: 4 / 5;
    height: auto;
  }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  :root { --nav-h: 64px; }
  .container { width: min(100% - 24px, var(--max)); }
  .nav-row { gap: 10px; }
  .nav-tools { gap: 6px; }
  .brand-lockup {
    height: 40px;
    max-width: min(168px, 46vw);
  }
  .hero-lockup { width: min(220px, 82%); margin-bottom: 12px; }
  .hero-scene {
    min-height: calc(100svh - var(--nav-h) - env(safe-area-inset-top));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
  .hero-photo { object-position: 82% 62%; }
  .hero-wash {
    background:
      linear-gradient(180deg, transparent 22%, rgb(255 250 241 / 0.52) 58%, rgb(255 250 241 / 0.96) 100%);
  }
  .hero-copy {
    width: min(100% - 24px, 36rem);
    margin-left: 12px;
    min-height: 0;
    justify-content: flex-end;
    padding: 40px 0 calc(20px + env(safe-area-inset-bottom));
  }
  .hero h1 {
    font-size: clamp(1.55rem, 6.6vw, 2.05rem);
    max-width: none;
    letter-spacing: 0.04em;
  }
  .lede {
    max-width: 34ch;
    font-size: 0.98rem;
  }
  .collections { padding: 56px 0 24px; }
  .collections h2,
  .craft h2,
  .story h2,
  .products h2,
  .contact h2 {
    font-size: clamp(1.55rem, 7vw, 2.2rem);
    max-width: 12ch;
    margin-bottom: 18px;
  }
  html[lang="en"] .collections h2,
  html[lang="en"] .craft h2,
  html[lang="en"] .story h2,
  html[lang="en"] .products h2,
  html[lang="en"] .contact h2 {
    max-width: 16ch;
  }
  .album {
    margin-inline: -12px;
    padding: 4px 12px 16px;
  }
  .leaf, .leaf-hero { flex-basis: min(82vw, 320px); }
  .story-scene,
  .story-panel { min-height: min(88svh, 680px); }
  .story-bg { object-position: 88% 42%; }
  .inscription p {
    height: min(14em, 42vh);
    font-size: 1.45rem;
    letter-spacing: 0.14em;
  }
  .story-body { max-width: 34ch; }
  .craft { padding: 56px 0 48px; }
  .craft-lead { margin-bottom: 28px; }
  .wrap-steps { width: min(100% - 24px, 1180px); gap: 36px; }
  .wrap-step,
  .wrap-step:nth-child(even) {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .wrap-step:nth-child(even) figure { order: 0; }
  .wrap-copy { max-width: none; }
  .wrap-step figure { padding: 6px; }
  .craft-foot { margin-top: 36px; gap: 16px; }
  .products { padding: 16px 0 64px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-body { padding: 12px 12px 14px; }
  .product h3 { font-size: 0.98rem; }
  .product .en { min-height: 0; }
  .contact { padding: 0 0 64px; }
  .contact-grid { gap: 28px; padding-top: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero-actions { width: 100%; }
  .hero .btn { flex: 1; min-width: 0; }
  .filter { flex: 1 1 calc(50% - 8px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .leaf:hover, .btn:active, .icon-btn:active { transform: none; }
  .hero-photo, .brand-lockup, .hero-lockup { animation: none; }
  .js-motion [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
