:root {
  --cream: #f7f4ed;
  --paper: #fffdf8;
  --sand: #ddd4c4;
  --stone: #716d65;
  --ink: #272a27;
  --sage: #697d6a;
  --sage-dark: #3f5544;
  --gold: #a88a4d;
  --line: rgba(86, 82, 73, 0.19);
  --shadow: 0 24px 70px rgba(55, 51, 43, 0.14);
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-weight: 300; }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 1000; transform: translateY(-150%); background: var(--ink); color: white; padding: 10px 14px; }
.skip-link:focus { transform: translateY(0); }
.eyebrow { margin: 0 0 12px; color: var(--sage-dark); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
h1, h2, h3, .footer-brand { font-family: "Cormorant Garamond", serif; font-weight: 500; line-height: 0.98; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(247, 244, 237, 0.94); backdrop-filter: blur(16px); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: "Cormorant Garamond", serif; font-size: 1.3rem; font-weight: 600; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 34px); }
.site-nav a { position: relative; text-decoration: none; font-size: 0.78rem; letter-spacing: 0.06em; color: var(--stone); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 1px; background: var(--sage); }
.menu-toggle { display: none; background: none; border: 0; color: var(--ink); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.7rem; }

.hero { overflow: hidden; padding: clamp(72px, 9vw, 132px) 0 clamp(80px, 10vw, 150px); background: radial-gradient(circle at 80% 20%, rgba(162, 180, 163, 0.2), transparent 34%), var(--cream); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(430px, 1.08fr); gap: clamp(50px, 8vw, 110px); align-items: center; }
.hero-copy h1 { max-width: 690px; margin: 0; font-size: clamp(3.5rem, 6.2vw, 6.7rem); letter-spacing: -0.035em; }
.hero-lede { max-width: 590px; margin: 28px 0 0; color: var(--stone); font-size: clamp(1rem, 1.4vw, 1.16rem); line-height: 1.8; }
.hero-zh { max-width: 560px; margin: 12px 0 0; color: var(--stone); font-size: 0.82rem; line-height: 1.8; letter-spacing: 0.04em; }
.hero-link { display: inline-flex; gap: 11px; margin-top: 32px; color: var(--sage-dark); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 5px; font-size: 0.82rem; font-weight: 500; letter-spacing: 0.07em; }
.hero-visual { position: relative; min-height: 590px; }
.hero-image { position: absolute; margin: 0; overflow: hidden; box-shadow: var(--shadow); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-main { inset: 0 0 60px 76px; }
.hero-image-small { width: 42%; aspect-ratio: 1; left: 0; bottom: 0; border: 10px solid var(--cream); }
.hero-seal { position: absolute; right: -20px; bottom: 18px; width: 126px; height: 126px; border-radius: 50%; background: var(--sage-dark); color: white; display: grid; place-content: center; text-align: center; box-shadow: var(--shadow); }
.hero-seal strong { font-family: "Cormorant Garamond", serif; font-size: 2.8rem; font-weight: 500; line-height: 0.75; }
.hero-seal span { margin-top: 8px; font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; }

.explore { padding: clamp(80px, 10vw, 138px) 0; scroll-margin-top: 76px; }
.section-heading { max-width: 720px; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-size: clamp(2.8rem, 5vw, 5rem); letter-spacing: -0.025em; }
.intention-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 38px; }
.intention-chip { border: 1px solid var(--line); background: rgba(255, 255, 255, 0.45); color: var(--stone); padding: 10px 15px; font-size: 0.72rem; letter-spacing: 0.04em; transition: 180ms ease; }
.intention-chip:hover, .intention-chip[aria-pressed="true"] { border-color: var(--sage); color: white; background: var(--sage); }

.catalog-toolbar { position: sticky; top: 76px; z-index: 30; display: grid; grid-template-columns: minmax(270px, 1.65fr) repeat(3, minmax(120px, 0.72fr)) auto; gap: 12px; align-items: end; padding: 19px; border: 1px solid var(--line); background: rgba(255, 253, 248, 0.94); backdrop-filter: blur(18px); box-shadow: 0 12px 34px rgba(65, 60, 50, 0.07); }
.catalog-toolbar label { display: grid; gap: 7px; }
.catalog-toolbar label > span { font-size: 0.58rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone); }
.catalog-toolbar input, .catalog-toolbar select { width: 100%; min-height: 43px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); padding: 0 7px; outline: none; font-size: 0.78rem; }
.catalog-toolbar input:focus, .catalog-toolbar select:focus { border-color: var(--sage); }
.clear-button { min-height: 43px; border: 1px solid var(--line); background: transparent; color: var(--stone); padding: 0 14px; font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.clear-button:hover { border-color: var(--ink); color: var(--ink); }
.catalog-meta { display: flex; justify-content: space-between; gap: 20px; margin: 26px 0; color: var(--stone); font-size: 0.72rem; letter-spacing: 0.04em; }
.catalog-meta p { margin: 0; }

.library-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 54px 22px; }
.crystal-card { min-width: 0; }
.card-button { width: 100%; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; }
.card-image { position: relative; aspect-ratio: 1; overflow: hidden; background: #e6e0d5; }
.card-image::after { content: "View profile"; position: absolute; inset: auto 0 0; padding: 17px; color: white; background: linear-gradient(transparent, rgba(25, 29, 26, 0.67)); font-size: 0.61rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; transform: translateY(100%); transition: 260ms ease; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.card-button:hover .card-image img, .card-button:focus-visible .card-image img { transform: scale(1.045); }
.card-button:hover .card-image::after, .card-button:focus-visible .card-image::after { transform: translateY(0); }
.card-body { padding-top: 16px; }
.card-name { margin: 0; font-size: 1.65rem; }
.card-zh { margin: 3px 0 0; color: var(--stone); font-size: 0.72rem; letter-spacing: 0.06em; }
.card-family { margin: 8px 0 0; color: var(--stone); font-size: 0.66rem; line-height: 1.45; }
.card-tags, .dialog-tags, .dialog-forms { display: flex; flex-wrap: wrap; gap: 6px; }
.card-tags { margin-top: 12px; }
.tag { display: inline-block; background: rgba(105, 125, 106, 0.1); color: var(--sage-dark); padding: 5px 8px; font-size: 0.58rem; letter-spacing: 0.03em; }
.stock-status { margin: 12px 0 0; color: var(--stone); font-size: .62rem; line-height: 1.45; }
.stock-status.is-stocked { color: var(--sage-dark); font-weight: 500; }
.empty-state { padding: 80px 20px; text-align: center; border: 1px solid var(--line); background: var(--paper); }
.empty-state h3 { margin: 0; font-size: 2.3rem; }
.empty-state p { color: var(--stone); }
.empty-state button { border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--sage-dark); padding: 5px; }

.guide-note { padding: clamp(72px, 9vw, 120px) 0; background: var(--sage-dark); color: #f5f0e5; }
.guide-note .eyebrow { color: #c9d2c7; }
.guide-note-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(50px, 10vw, 150px); }
.guide-note h2 { margin: 0; font-size: clamp(2.8rem, 5vw, 5rem); }
.guide-note-grid > div:last-child { align-self: end; color: rgba(255, 255, 255, 0.76); font-size: 0.9rem; line-height: 1.9; }
.guide-note-grid p { margin: 0 0 14px; }
.disclaimer { padding: 54px 0 64px; color: var(--stone); }
.disclaimer h2 { margin: 0 0 15px; color: var(--ink); font-size: 1.45rem; line-height: 1.2; }
.disclaimer p { max-width: 1050px; margin: 8px 0; font-size: 0.66rem; line-height: 1.65; }
.wholesale-cta { padding: clamp(76px, 9vw, 120px) 0; text-align: center; background: #e9e1d3; }
.wholesale-cta h2 { margin: 0; font-size: clamp(3rem, 6vw, 5.8rem); }
.wholesale-cta p:not(.eyebrow) { color: var(--stone); }
.wholesale-cta a { display: inline-block; margin-top: 18px; padding-bottom: 6px; border-bottom: 1px solid currentColor; text-decoration: none; color: var(--sage-dark); font-size: 0.82rem; letter-spacing: 0.05em; }

.site-footer { padding: 70px 0 24px; background: #252824; color: rgba(255, 255, 255, 0.72); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 0.7fr 0.9fr; gap: 70px; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-grid p { margin: 0; max-width: 380px; font-size: 0.74rem; line-height: 1.75; }
.footer-brand { color: white; font-size: 2rem !important; }
.footer-grid h2 { margin: 0 0 7px; color: white; font-family: "DM Sans", sans-serif; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; }
.footer-grid a { color: inherit; text-decoration: none; font-size: 0.74rem; }
.footer-grid a:hover { color: white; }
.footer-bottom { margin-top: 50px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.62rem; }

.crystal-dialog { width: min(1000px, calc(100% - 30px)); max-height: min(860px, calc(100vh - 30px)); padding: 0; border: 0; background: var(--paper); box-shadow: 0 30px 100px rgba(20, 22, 20, 0.34); }
.crystal-dialog::backdrop { background: rgba(30, 32, 28, 0.72); backdrop-filter: blur(8px); }
.dialog-card { position: relative; display: grid; grid-template-columns: 0.92fr 1.08fr; min-height: 630px; }
.dialog-close { position: absolute; z-index: 2; top: 14px; right: 17px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 253, 248, 0.9); color: var(--ink); font-size: 1.6rem; line-height: 1; }
.dialog-image-wrap { position: sticky; top: 0; height: min(860px, calc(100vh - 30px)); background: #e3ded4; }
.dialog-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.dialog-content { padding: 52px 46px; overflow-y: auto; }
.language-toggle { display: inline-flex; margin-bottom: 24px; border: 1px solid var(--line); }
.language-toggle button { border: 0; background: transparent; color: var(--stone); padding: 7px 12px; font-size: 0.62rem; letter-spacing: 0.08em; }
.language-toggle button[aria-pressed="true"] { background: var(--sage); color: white; }
.dialog-content h2 { margin: 0; font-size: clamp(2.8rem, 4.5vw, 4.4rem); line-height: 0.92; }
.dialog-subtitle { margin: 9px 0 0; color: var(--stone); font-size: 0.9rem; }
.dialog-nickname { margin: 14px 0 0; color: var(--sage-dark); font-family: "Cormorant Garamond", serif; font-size: 1.1rem; font-style: italic; }
.dialog-tags { margin-top: 18px; }
.dialog-details { margin-top: 26px; display: grid; gap: 23px; }
.detail-block h3 { margin: 0 0 7px; font-family: "DM Sans", sans-serif; color: var(--sage-dark); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.detail-block p { margin: 0; color: var(--stone); font-size: 0.78rem; line-height: 1.75; }
.dialog-forms { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.form-tag { padding: 5px 9px; border: 1px solid var(--line); color: var(--stone); font-size: 0.6rem; text-transform: capitalize; }
.dialog-forms strong { width: 100%; margin-bottom: 3px; color: var(--sage-dark); font-size: .58rem; letter-spacing: .13em; text-transform: uppercase; }
.library-shop-link { margin-top: 24px; }
.library-shop-link a, .library-shop-link span { display: inline-block; padding: 12px 15px; border: 1px solid var(--sage-dark); color: var(--sage-dark); text-decoration: none; font-size: .68rem; font-weight: 500; }
.library-shop-link a { background: var(--sage-dark); color: white; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-visual { min-height: 650px; max-width: 720px; }
  .catalog-toolbar { grid-template-columns: 1.5fr repeat(2, 1fr); }
  .catalog-toolbar label:nth-of-type(4), .clear-button { grid-row: 2; }
  .library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1200px); }
  .header-inner { min-height: 66px; }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; padding: 22px; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; }
  .site-nav[data-open="true"] { display: flex; }
  .hero { padding-top: 58px; }
  .hero-copy h1 { font-size: clamp(3.2rem, 14vw, 5.3rem); }
  .hero-visual { min-height: 500px; }
  .hero-image-main { left: 32px; bottom: 45px; }
  .hero-seal { right: -4px; width: 105px; height: 105px; }
  .catalog-toolbar { position: static; grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .catalog-toolbar label:nth-of-type(4), .clear-button { grid-row: auto; }
  .clear-button { align-self: end; }
  .catalog-meta { align-items: flex-end; }
  .catalog-meta p:last-child { text-align: right; }
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 14px; }
  .card-name { font-size: 1.35rem; }
  .guide-note-grid, .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .dialog-card { grid-template-columns: 1fr; }
  .dialog-image-wrap { position: relative; height: 340px; }
  .dialog-content { padding: 34px 24px 46px; }
}

@media (max-width: 480px) {
  .brand span { display: none; }
  .hero-visual { min-height: 400px; }
  .hero-image-main { inset: 0 0 38px 20px; }
  .hero-image-small { border-width: 6px; }
  .hero-seal { bottom: 2px; width: 88px; height: 88px; }
  .hero-seal strong { font-size: 2.2rem; }
  .hero-seal span { font-size: 0.47rem; }
  .catalog-toolbar { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .catalog-meta p:last-child { display: none; }
  .card-family { min-height: 2.9em; }
  .card-tags .tag:nth-child(n + 2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.001ms !important; }
}
