:root {
  --ink: #171714;
  --ink-soft: #292923;
  --paper: #f5f2ec;
  --paper-deep: #ebe6dc;
  --white: #fff;
  --muted: #6c6a64;
  --line: rgba(23, 23, 20, 0.14);
  --line-light: rgba(255, 255, 255, 0.16);
  --gold: #b88d58;
  --gold-dark: #8f683b;
  --green: #2f453c;
  --shell: min(1180px, calc(100vw - 48px));
  --shadow: 0 24px 70px rgba(24, 20, 14, 0.13);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PingFang HK", "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

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

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.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: 200;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--white);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: fixed;
  z-index: 80;
  inset: 0 0 auto;
  color: var(--white);
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.site-header.scrolled,
.site-header.interior {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(18px);
}

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

.brand {
  min-width: 205px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
}

.brand span {
  display: grid;
  line-height: 1.12;
}

.brand strong {
  font-family: "Songti TC", "STSong", serif;
  font-size: 20px;
  letter-spacing: 0.16em;
}

.brand small {
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: 0.19em;
  opacity: 0.78;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
}

.site-header nav > a:not(.header-contact) {
  position: relative;
  padding: 12px 0;
}

.site-header nav > a:not(.header-contact)::after {
  content: "";
  position: absolute;
  inset: auto 0 4px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s;
}

.site-header nav > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-contact {
  padding: 11px 17px;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.route-loading,
.not-found-page {
  min-height: 75vh;
  padding: 190px 24px 120px;
  display: grid;
  place-items: center;
  text-align: center;
}

.route-loading p {
  margin: 16px 0 0;
  color: var(--muted);
}

.loading-mark {
  width: 34px;
  height: 34px;
  border: 2px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.home-hero {
  position: relative;
  min-height: 760px;
  height: 92vh;
  max-height: 960px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--ink) url("/assets/catalog/category-panel-doors.jpg") center 48% / cover no-repeat;
}

.home-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 14, 12, 0.84) 0%, rgba(18, 18, 15, 0.6) 43%, rgba(18, 18, 15, 0.15) 78%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent 46%);
}

.home-hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 72px;
}

.home-hero h1 {
  max-width: 800px;
  margin: 0;
  font-family: "Songti TC", "STSong", serif;
  font-size: clamp(52px, 7.1vw, 96px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.home-hero-intro {
  max-width: 620px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 17px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: rgba(255, 255, 255, 0.72);
}

.hero-actions,
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--gold);
}

.button-primary:hover {
  background: var(--gold-dark);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.04);
}

.button-light {
  color: var(--ink);
  background: var(--white);
}

.button-light.bordered {
  border-color: var(--line);
}

.button-dark {
  color: var(--white);
  background: var(--ink);
}

.button-reference {
  color: var(--green);
  border-color: var(--green);
  background: transparent;
}

.button-reference.selected {
  color: var(--white);
  background: var(--green);
}

.trust-strip {
  color: var(--white);
  background: var(--ink);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.trust-grid > div {
  min-height: 126px;
  padding: 28px 34px;
  display: grid;
  align-content: center;
  border-left: 1px solid var(--line-light);
}

.trust-grid > div:last-child {
  border-right: 1px solid var(--line-light);
}

.trust-grid strong {
  font-family: "Songti TC", "STSong", serif;
  font-size: 19px;
  font-weight: 500;
}

.trust-grid span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

.section {
  padding: 112px 0;
}

.collection-section {
  background: var(--paper);
}

.home-collections {
  padding-bottom: 126px;
}

.split-heading {
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1fr 390px;
  align-items: end;
  gap: 50px;
}

.split-heading h2,
.guidance-grid h2,
.contact-inner h2 {
  margin: 0;
  font-family: "Songti TC", "STSong", serif;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.split-heading > p {
  margin: 0 0 7px;
  color: var(--muted);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.category-card {
  min-width: 0;
  grid-column: span 4;
  display: grid;
  overflow: hidden;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(23, 23, 20, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.collection-grid > .category-card:nth-child(4),
.collection-grid > .category-card:nth-child(5) {
  grid-column: span 6;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-image {
  position: relative;
  aspect-ratio: 1.18 / 1;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #dedbd4;
}

.collection-grid > .category-card:nth-child(4) .category-image,
.collection-grid > .category-card:nth-child(5) .category-image,
.category-card.is-banner .category-image {
  aspect-ratio: 1.7 / 1;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.2, 0.65, 0.3, 1);
}

.category-card:hover .category-image img {
  transform: scale(1.045);
}

.category-number {
  position: absolute;
  top: 16px;
  left: 17px;
  min-width: 36px;
  padding: 4px 7px;
  color: var(--white);
  background: rgba(23, 23, 20, 0.56);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-align: center;
  backdrop-filter: blur(8px);
}

.category-copy {
  min-height: 178px;
  padding: 25px 25px 27px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.category-copy span:not(.category-arrow) {
  color: var(--gold-dark);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.category-copy h2,
.category-copy h3 {
  margin: 7px 0 5px;
  font-family: "Songti TC", "STSong", serif;
  font-size: 28px;
  line-height: 1.28;
  font-weight: 500;
}

.category-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.category-arrow,
.product-arrow {
  flex: none;
  font-size: 20px;
  transition: transform 0.2s;
}

.category-card:hover .category-arrow,
.product-card:hover .product-arrow {
  transform: translate(3px, -3px);
}

.guidance-section {
  color: var(--white);
  background: var(--green);
}

.guidance-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
  gap: 96px;
  align-items: start;
}

.guidance-grid > div > p:last-child {
  max-width: 520px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.guidance-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-light);
}

.guidance-steps li {
  padding: 25px 0;
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 22px;
  border-bottom: 1px solid var(--line-light);
}

.guidance-steps li > span {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.guidance-steps strong {
  font-family: "Songti TC", "STSong", serif;
  font-size: 21px;
  font-weight: 500;
}

.guidance-steps p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
}

.contact-section {
  padding: 96px 0;
  color: var(--white);
  background: var(--ink);
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.contact-inner > div > p:last-child {
  max-width: 650px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.64);
}

.interior-hero {
  padding: 160px 0 72px;
  color: var(--ink);
  background: var(--paper-deep);
}

.interior-heading {
  margin-top: 42px;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 430px);
  gap: 70px;
  align-items: end;
}

.interior-heading h1 {
  margin: 0;
  font-family: "Songti TC", "STSong", serif;
  font-size: clamp(46px, 6vw, 78px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.interior-heading > p {
  margin: 0 0 8px;
  color: var(--muted);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb a:hover {
  color: var(--gold-dark);
}

.breadcrumb-separator {
  opacity: 0.42;
}

.selection-note {
  padding: 46px 0;
  background: var(--paper-deep);
}

.selection-note-inner {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 34px;
  align-items: center;
}

.selection-note-inner > span {
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.selection-note-inner p {
  margin: 0;
  color: var(--muted);
}

.text-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.text-link.dark:hover {
  color: var(--gold-dark);
}

.swatch-library,
.category-body,
.product-detail-page {
  padding: 78px 0 120px;
}

.library-tools {
  margin-bottom: 18px;
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 12px;
}

.search-field,
.filter-field {
  min-height: 52px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--white);
}

.search-field input,
.filter-field select {
  width: 100%;
  height: 50px;
  padding: 0 17px;
  color: var(--ink);
  border: 0;
  outline: 0;
  background: transparent;
}

.search-field:focus-within,
.filter-field:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

.filter-field > span {
  flex: none;
  padding-left: 15px;
  color: var(--muted);
  font-size: 12px;
}

.category-tabs {
  margin-bottom: 34px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.category-tabs button {
  flex: none;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.category-tabs button:hover,
.category-tabs button.active {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
}

.library-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 34px;
  align-items: start;
}

.result-heading {
  min-height: 31px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.swatch-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(23, 23, 20, 0.06);
}

.swatch-visual {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #dedbd4;
}

.swatch-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.swatch-card:hover .swatch-visual img {
  transform: scale(1.04);
}

.swatch-select {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.swatch-select.selected {
  color: var(--white);
  background: var(--green);
}

.swatch-copy {
  min-height: 130px;
  padding: 17px 16px 18px;
}

.swatch-copy > span:first-child,
.product-copy span,
.product-code {
  color: var(--gold-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.swatch-title {
  margin-top: 4px;
  display: block;
  font-family: "Songti TC", "STSong", serif;
  font-size: 18px;
  line-height: 1.35;
}

.swatch-title:hover {
  color: var(--gold-dark);
}

.swatch-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.reference-panel {
  position: sticky;
  top: 110px;
  overflow: hidden;
  color: var(--white);
  background: var(--green);
}

.reference-heading {
  padding: 23px 22px 18px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.reference-heading span {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.reference-heading h2 {
  margin: 4px 0 0;
  font-family: "Songti TC", "STSong", serif;
  font-size: 23px;
  font-weight: 500;
}

.reference-count {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  font-size: 12px;
}

.reference-body {
  padding: 18px 22px 22px;
}

.reference-empty,
.reference-boundary {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
}

.reference-list {
  max-height: 410px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.reference-list li {
  padding: 10px 0;
  display: grid;
  grid-template-columns: 42px 1fr 25px;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.reference-thumb {
  width: 42px;
  height: 42px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.reference-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reference-item-copy {
  min-width: 0;
  display: grid;
}

.reference-item-copy strong,
.reference-item-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-item-copy strong {
  font-size: 11px;
}

.reference-item-copy span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
}

.reference-list button {
  border: 0;
  color: rgba(255, 255, 255, 0.74);
  background: transparent;
  cursor: pointer;
}

.reference-actions {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.reference-actions button,
.catalog-empty button {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.reference-actions button:last-child {
  color: var(--ink);
  border-color: var(--white);
  background: var(--white);
}

.reference-boundary {
  margin-top: 16px;
  font-size: 10px;
}

.selection-pagination {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.selection-pagination a,
.selection-pagination button,
.selection-pagination span {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: transparent;
}

.selection-pagination button {
  cursor: pointer;
}

.selection-pagination .active {
  color: var(--white);
  border-color: var(--ink);
  background: var(--ink);
}

.selection-pagination .disabled {
  border-color: transparent;
  color: var(--muted);
}

.catalog-empty {
  min-height: 220px;
  padding: 36px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
}

.catalog-empty p {
  margin: 0;
}

.catalog-empty button {
  padding: 0 20px;
  color: var(--ink);
  border-color: var(--line);
}

.material-disclaimer {
  margin-top: 70px;
  padding: 24px 27px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.44);
}

.material-disclaimer strong {
  color: var(--gold-dark);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.material-disclaimer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.category-inner > .section-subheading:first-child {
  margin-top: 0;
}

.section-subheading,
.detail-section-heading {
  margin: 74px 0 26px;
  padding-bottom: 17px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.section-subheading h2,
.detail-section-heading h2 {
  margin: 0;
  font-family: "Songti TC", "STSong", serif;
  font-size: 34px;
  line-height: 1.25;
  font-weight: 500;
}

.section-subheading span,
.detail-section-heading > p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.detail-section-heading > div > span {
  color: var(--gold-dark);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.subcategories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.subcategories-grid .category-card {
  grid-column: auto;
}

.subcategories-grid.banner-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.products-block {
  margin-top: 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.product-card {
  min-width: 0;
  display: block;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(23, 23, 20, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-image {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #dedbd4;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.product-card:hover .product-image img {
  transform: scale(1.04);
}

.product-copy {
  min-height: 105px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.product-copy h2 {
  margin: 4px 0 0;
  font-family: "Songti TC", "STSong", serif;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
}

.product-detail-page {
  padding-top: 130px;
}

.product-overview {
  margin-top: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 68px;
  align-items: center;
}

.product-main-image {
  min-height: 520px;
  aspect-ratio: 1.2 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #dedbd4;
}

.product-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--white);
}

.product-detail-copy h1 {
  margin: 12px 0 0;
  font-family: "Songti TC", "STSong", serif;
  font-size: clamp(42px, 5vw, 66px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.product-description {
  margin: 25px 0 0;
  color: var(--muted);
  white-space: pre-line;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gallery-grid a {
  min-height: 260px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--white);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s;
}

.gallery-grid a:hover img {
  transform: scale(1.025);
}

.spec-stack {
  display: grid;
  gap: 24px;
}

.spec-stack figure {
  margin: 0;
  padding: 18px;
  background: var(--white);
}

.spec-stack a {
  display: grid;
  place-items: center;
}

.spec-stack img {
  width: auto;
  max-height: 860px;
  object-fit: contain;
}

.spec-stack figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.spec-table-wrap {
  overflow-x: auto;
  background: var(--white);
}

.spec-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 13px;
}

.spec-table th,
.spec-table td {
  padding: 15px 17px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  color: var(--white);
  background: var(--green);
}

.image-fallback {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 130px;
  padding: 18px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #e4e0d8;
  font-size: 12px;
  text-align: center;
}

.image-fallback.has-color {
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.image-fallback.has-color svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.image-fallback-label {
  position: absolute;
  inset: auto 10px 10px;
  padding: 4px 7px;
  overflow: hidden;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

.not-found-inner > span {
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.not-found-inner h1 {
  margin: 12px 0 0;
  font-family: "Songti TC", "STSong", serif;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 500;
}

.not-found-inner p {
  margin: 16px 0 28px;
  color: var(--muted);
}

.site-footer {
  padding: 76px 0 26px;
  color: var(--white);
  background: #10100e;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 0.75fr 0.9fr;
  gap: 80px;
}

.footer-brand strong {
  display: block;
  font-family: "Songti TC", "STSong", serif;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.footer-brand > span {
  margin-top: 5px;
  display: block;
  color: rgba(255, 255, 255, 0.45);
  font-size: 8px;
  letter-spacing: 0.19em;
}

.footer-brand p {
  max-width: 440px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

.footer-label {
  margin: 0 0 15px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.footer-grid > div:not(.footer-brand) a {
  margin: 8px 0;
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: rgba(255, 255, 255, 0.38);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 10px;
}

.selection-tray {
  position: fixed;
  z-index: 75;
  right: 20px;
  bottom: 20px;
  width: min(370px, calc(100vw - 40px));
  padding: 15px;
  color: var(--white);
  background: var(--green);
  box-shadow: var(--shadow);
}

.selection-tray-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.selection-tray-heading > div {
  display: grid;
}

.selection-tray-heading > div span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 7px;
  letter-spacing: 0.15em;
}

.selection-tray-heading > div strong {
  font-family: "Songti TC", "STSong", serif;
  font-size: 18px;
  font-weight: 500;
}

.selection-tray-heading > span {
  min-width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--white);
  font-size: 11px;
}

.tray-items {
  margin-top: 11px;
  display: flex;
  gap: 6px;
  overflow: hidden;
}

.tray-item {
  position: relative;
  width: 34px;
  height: 34px;
  flex: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.tray-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tray-item span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: transparent;
  background: transparent;
  transition: color 0.2s, background 0.2s;
}

.tray-item:hover span {
  color: var(--white);
  background: rgba(0, 0, 0, 0.62);
}

.tray-more {
  align-self: center;
  font-size: 10px;
}

.tray-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.tray-actions button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--white);
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

.tray-actions button:last-child {
  color: var(--ink);
  border-color: var(--white);
  background: var(--white);
}

.site-toast {
  position: fixed;
  z-index: 120;
  left: 50%;
  bottom: 30px;
  padding: 11px 18px;
  color: var(--white);
  background: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 0.2s, transform 0.2s;
}

.site-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.clipboard-fallback {
  position: fixed;
  left: -9999px;
}

.noscript {
  position: fixed;
  z-index: 150;
  inset: auto 20px 20px;
  margin: 0;
  padding: 14px 18px;
  color: var(--white);
  background: var(--ink);
  text-align: center;
}

@media (max-width: 1024px) {
  .site-header nav {
    gap: 18px;
  }

  .library-layout {
    grid-template-columns: 1fr;
  }

  .reference-panel {
    position: static;
  }

  .reference-list {
    max-height: 280px;
  }

  .swatch-grid,
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guidance-grid {
    grid-template-columns: 1fr 1fr;
    gap: 55px;
  }

  .product-overview {
    gap: 42px;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: min(1180px, calc(100vw - 32px));
  }

  .header-inner {
    min-height: 74px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand small,
  .site-header nav > a:not(.header-contact) {
    display: none;
  }

  .header-contact {
    padding: 9px 13px;
    font-size: 12px;
  }

  .home-hero {
    min-height: 680px;
    height: 88vh;
    background-position: 61% center;
  }

  .home-hero-copy {
    padding-top: 58px;
  }

  .home-hero h1 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .home-hero-intro {
    font-size: 15px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid > div {
    min-height: 102px;
    padding: 21px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line-light);
  }

  .trust-grid > div:last-child {
    border-right: 0;
    border-bottom: 0;
  }

  .section {
    padding: 78px 0;
  }

  .split-heading,
  .interior-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .split-heading {
    margin-bottom: 30px;
  }

  .collection-grid,
  .subcategories-grid,
  .subcategories-grid.banner-grid {
    grid-template-columns: 1fr;
  }

  .category-card,
  .collection-grid > .category-card:nth-child(4),
  .collection-grid > .category-card:nth-child(5) {
    grid-column: auto;
  }

  .category-image,
  .collection-grid > .category-card:nth-child(4) .category-image,
  .collection-grid > .category-card:nth-child(5) .category-image,
  .category-card.is-banner .category-image {
    aspect-ratio: 1.45 / 1;
  }

  .category-copy {
    min-height: 145px;
  }

  .guidance-grid,
  .product-overview {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .contact-inner {
    display: grid;
    gap: 34px;
  }

  .interior-hero {
    padding: 130px 0 54px;
  }

  .interior-heading {
    margin-top: 27px;
  }

  .interior-heading h1 {
    font-size: clamp(42px, 13vw, 62px);
  }

  .selection-note-inner {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .swatch-library,
  .category-body,
  .product-detail-page {
    padding: 52px 0 88px;
  }

  .product-detail-page {
    padding-top: 110px;
  }

  .library-tools {
    grid-template-columns: 1fr;
  }

  .swatch-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-heading {
    display: grid;
    gap: 2px;
  }

  .material-disclaimer {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .section-subheading,
  .detail-section-heading {
    align-items: start;
    flex-direction: column;
  }

  .product-main-image {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid a {
    min-height: 190px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 42px 26px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    display: grid;
    gap: 8px;
  }

  .selection-tray {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
}

@media (max-width: 480px) {
  .home-hero h1 {
    font-size: 46px;
  }

  .swatch-grid,
  .product-grid,
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .swatch-copy {
    min-height: 118px;
    padding: 13px 12px 15px;
  }

  .swatch-title,
  .product-copy h2 {
    font-size: 16px;
  }

  .product-copy {
    min-height: 96px;
    padding: 13px;
  }

  .product-actions .button {
    width: 100%;
  }

  .gallery-grid a {
    min-height: 145px;
  }

  .reference-actions,
  .tray-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
