/* Colours and fonts follow the BLISSEA VI manual (see Drive: 公司介绍与VI/VI补充). */
@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* All variables (colours, type scale, spacing, radii, shadows, motion) live in tokens.css, loaded before this file
   (design review 2026-10-22). Add new ones there, not here. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); text-underline-offset: 3px; transition: opacity var(--t-hover) ease; }
/* Phones: no grey tap flash and no double-tap wait; instead every link and button has its own :active
   state. Text links dim while pressed; buttons and cards shrink a little (see Buttons). */
a, button { touch-action: manipulation; }
button, .btn { -webkit-user-select: none; user-select: none; }
a:active { opacity: .6; }
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--sea-dark); }
}
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }

h1, h2, h3, .h3 { font-family: var(--sans); font-weight: var(--w-semibold); line-height: var(--lh-heading); margin: 0 0 .5em; letter-spacing: var(--track-tight); color: var(--navy); }
/* Eight-step scale in tokens.css: page title 3xl, section title 2xl (h2 and .h3), group heading xl, cards 17 / 14 / 12. */
h1 { font-size: var(--text-3xl); }
h2, .h3 { font-size: var(--text-2xl); }
.h4 { font-size: var(--text-xl); }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Eyebrow: now only the breadcrumb above a title (and the "space-saving" label): small grey text, no caps. */
.eyebrow { font-size: var(--text-s); font-weight: var(--w-medium); letter-spacing: 0; text-transform: none; color: var(--muted); margin-bottom: var(--space-3); }
.lede { font-size: var(--text-l); color: var(--muted); max-width: 60ch; }
.note { font-size: 14px; color: var(--muted); margin-top: 24px; }
.pending { color: #8a3b12; font-weight: 600; }

/* Header */
/* Header: white at the top of the page; after 8 px of scroll (site.js adds .is-scrolled) frosted glass with a
   hairline and a light shadow, the logo at 88 %. The height does not change (transform / opacity only). */
.site-header { background: var(--surface); border-bottom: 1px solid transparent; position: sticky; top: 0; z-index: 5; transition: background-color var(--t-lift) var(--ease-out), border-color var(--t-lift) var(--ease-out), box-shadow var(--t-lift) var(--ease-out); }
.site-header.is-scrolled { background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(var(--nav-blur)); backdrop-filter: saturate(180%) blur(var(--nav-blur)); border-bottom-color: var(--hairline); box-shadow: var(--shadow-s); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-header.is-scrolled { background: rgba(255, 255, 255, .96); } }
.header-row { display: flex; align-items: center; gap: 24px; min-height: var(--nav-h); }
.brand { display: block; line-height: 0; transform-origin: left center; transition: transform var(--t-lift) var(--ease-out); }
.is-scrolled .brand { transform: scale(.88); }
.brand img { width: 180px; height: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { display: block; padding: 8px 10px; font-size: 15px; color: var(--ink); text-decoration: none; border-radius: var(--radius-s); transition: color var(--t-hover) ease, background-color var(--t-hover) ease; }
.site-nav a:active { opacity: 1; background: var(--tint); }
.site-nav a[aria-current="page"] { color: var(--sea); box-shadow: inset 0 -2px 0 var(--sea); border-radius: 0; }
.langs { display: flex; gap: 6px; }
.lang-switch { display: inline-flex; align-items: center; min-height: 36px; font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--ink); text-decoration: none; border: 1px solid var(--line); padding: 0 10px; border-radius: var(--radius-s); transition: border-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
/* The "中文" button on the French and English pages: the Chinese fonts of the VI, no tracking. */
.lang-switch:lang(zh) { font-family: "Inter", "Source Han Sans SC", "Noto Sans SC", "Noto Sans CJK SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; letter-spacing: 0; }
.menu-toggle { display: none; }
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { color: var(--navy); }
  .lang-switch:hover { border-color: var(--ink); color: var(--ink); }
}

@media (max-width: 1040px) {
  .header-row { flex-wrap: wrap; gap: 12px; min-height: 64px; }
  .menu-toggle {
    display: inline-flex; align-items: center; min-height: 36px; margin-left: auto; order: 2;
    font: 600 13px var(--sans); letter-spacing: .08em; color: var(--ink); background: none;
    border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0 12px; cursor: pointer;
    transition: transform var(--t-press) var(--ease-out);
  }
  .langs { order: 3; }
  .site-nav { order: 4; flex-basis: 100%; margin: 0; display: none; }
  /* The menu fades and drops in from the header (closing is instant). */
  .site-nav.open { display: block; transition: opacity var(--t-enter) var(--ease-out), transform var(--t-enter) var(--ease-out); }
  .site-nav ul { flex-direction: column; padding: 4px 0 12px; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: none; }
  /* Without JS the menu stays visible. */
  .no-js .site-nav { display: block; }
  .no-js .menu-toggle { display: none; }
  @starting-style {
    .site-nav.open { opacity: 0; transform: var(--rise); }
  }
}
/* Phones up to 440 px (iPhone 12-16 are 390-430): a smaller logo so the logo, the menu button and the two language
   buttons stay on one line (at 381-405 px the French and English headers wrapped, 2026-11 diagnosis). */
@media (max-width: 440px) {
  .header-row { gap: 8px; }
  .brand img { width: 148px; }
}
/* Narrow phones (320 px): a smaller logo and tighter buttons so the logo, the menu button and the two language buttons
   (FR / EN / 中文, since 2026-11-04) stay on one line. */
@media (max-width: 380px) {
  .header-row { gap: 8px; }
  .brand img { width: 120px; }
  .langs { gap: 4px; }
  .lang-switch { padding: 6px 7px; }
  .menu-toggle { padding: 7px 10px; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: var(--radius-s); font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; border: 1px solid transparent;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease, box-shadow var(--t-hover) ease;
}
.btn:focus-visible, .finish:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary { background: var(--c-10); color: var(--on-10); }
.btn-paper { background: #fff; color: var(--navy); }   /* on a photo (home story) */
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-light { background: var(--navy); color: #fff; }
/* Press feedback: buttons, chips and thumbnails shrink a little, cards a little less; they keep full opacity. */
.btn:active, .menu-toggle:active, .lang-switch:active, .finish:active, .gallery-thumbs a:active { opacity: 1; transform: var(--press); }
.collection:active, .series-card:active, .subcat-link a:active, .siblings a:active, .option-tiles a:active, .hw-item:active, .feature-media:active, .details a:active, .rooms a:active, .dl:active,
.model:has(.model-link:active) { opacity: 1; transform: var(--press-card); }
.model-link:active { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--sea-dark); color: #fff; }
  .btn-ghost:hover { background: var(--ink); color: var(--paper); }
  .btn-light:hover { background: var(--sea-dark); color: #fff; }
}

/* Hero (home, design review P0-1 / P1-6, David 2026-10-22): one sentence, one button, one wide room scene;
   on a phone the picture is on the first screen. */
.hero { padding: var(--section-s) 0 var(--section); text-align: center; }
.hero h1 { font-size: var(--text-4xl); line-height: var(--lh-tight); max-width: 22ch; margin: 0 auto var(--space-4); text-wrap: balance; }
.hero .lede { margin: 0 auto var(--space-5); max-width: 52ch; text-wrap: balance; }
.hero .actions { justify-content: center; margin-top: 0; }
.wrap-wide { max-width: var(--wrap-wide); }
/* The picture scrolls slower than the page (site.js writes the figure's progress through the viewport into --p,
   design lab 10-A, David 2026-10-27): 130 % tall, moved by --par-shift and enlarged to 1 + --par-zoom; --motion
   is 0 with reduced motion, and without JS it is a plain picture. */
.hero-media { position: relative; height: clamp(380px, 68svh, 760px); margin: var(--space-7) auto 0; border-radius: var(--radius-l); overflow: hidden; background: var(--tint); }
.hero-media img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; object-position: 50% 60%;
  translate: 0 calc((.5 - var(--p, .5)) * var(--par-shift) * var(--motion)); scale: calc(1 + var(--par-zoom) * var(--p, 0) * var(--motion)); will-change: transform; }
.no-js .hero-media img { translate: none; scale: none; }
@media (max-width: 860px) {
  .hero { padding-top: var(--space-6); }
  .hero-media { margin-top: var(--space-5); border-radius: var(--radius-m); }
  .hero-media { height: clamp(300px, 48svh, 520px); }
}
/* Home top, 2026-11 diagnosis (David 2026-11-09). Tablet and computer: a smaller title, one line of lede, and the
   picture right under it, as tall as the rest of the screen, so the vanity itself is on the first screen (the title
   is not laid over the picture there: the vanity stands in the middle of it; when the new pictures with room for
   text come, design team order 08, it can be). Phone: the title, lede and button over the bottom of the picture,
   white on a navy shade (David chose B); the picture fills the screen below the header, not moving with the scroll. */
@media (min-width: 600px) {
  .hero { padding-top: var(--space-6); }
  .hero h1 { font-size: var(--text-3xl); max-width: none; margin-bottom: var(--space-2); }
  .hero .lede { max-width: none; margin-bottom: var(--space-4); }
  .hero-media { margin-top: var(--space-5); height: clamp(380px, calc(100svh - 300px), 760px); }
  .hero-media img { object-position: 50% 74%; }
}
@media (max-width: 599px) {
  .hero { position: relative; padding: var(--space-3) 0 var(--space-7); text-align: left; }
  .hero-text { position: absolute; z-index: 2; left: 0; right: 0; bottom: calc(var(--space-7) + var(--space-5)); padding-inline: calc(var(--gutter) + 20px); }
  .hero-text h1 { color: #fff; font-size: clamp(25px, 7.7vw, 30px); max-width: none; margin: 0 0 var(--space-2); text-shadow: 0 1px 12px rgba(0, 20, 60, .35); }
  .hero-text .lede { color: rgba(255, 255, 255, .94); font-size: 16px; max-width: none; margin: 0 0 var(--space-4); text-wrap: pretty; }
  .hero-text .actions { justify-content: flex-start; }
  .hero-text .btn-primary { background: #fff; color: var(--navy); }
  .hero-media { margin-top: 0; height: max(460px, calc(100svh - 64px - var(--space-3) - var(--space-7))); }
  .hero-media img { top: 0; height: 100%; translate: none; scale: none; object-position: 50% 85%; }
  .hero-media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 20, 60, 0) 30%, rgba(0, 20, 60, .45) 55%, rgba(0, 20, 60, .78) 100%); }
}

/* Sections */
.section { padding: var(--section) 0; }
.section-flush { padding-top: 0; }
.section-tint { background: var(--c-30); color: var(--on-30); }
.section-lede { color: var(--muted); max-width: 60ch; }

/* Picture tiles (home, category, series and model cards, other models): the product picture on the light
   tint, no frame. White-background renders and drawings blend into the tint (multiply); room scenes
   (.tile-photo) fill the tile, cropped square, keeping the top (tall scenes show a shower head up there). The width
   drawings (.tile-art) are 5:4 and drawn on transparent, so they are not blended. */
.tile { display: block; background: var(--tint); overflow: hidden; border-radius: var(--radius-m); transition: box-shadow var(--t-lift) var(--ease-out); }
.tile img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 5%; mix-blend-mode: multiply; transition: transform var(--t-zoom) var(--ease-out); }
.tile-photo img { object-fit: cover; object-position: 50% 15%; padding: 0; mix-blend-mode: normal; }
.tile-art img { aspect-ratio: 5 / 4; padding: 0; mix-blend-mode: normal; }
/* Under the pointer a card rises 4 px, its picture tile gets the large shadow and the picture grows 3 %
   (design review P0-4, David 2026-10-22; docs/交互与动效规则.md section 1). Phones only get the press. */
@media (hover: hover) and (pointer: fine) {
  a:hover .tile, .model:hover .model-figure { box-shadow: var(--shadow-l); }
  a:hover .tile img, .model:hover .model-figure img { transform: var(--zoom-hover); }
  .collection:hover, .series-card:hover, .subcat-link a:hover, .width-card:hover, .siblings a:hover, .option-tiles a:hover, .sizes a:hover, .hw-item:hover, .feature-media:hover, .model:hover { transform: var(--lift); }
}

.collections { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.collection { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); transition: transform var(--t-lift) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .collection:hover { color: var(--ink); }
  .collection:hover .collection-name { text-decoration: underline; text-underline-offset: 4px; }
}
.collection-name { font-size: 20px; font-weight: 600; line-height: 1.25; color: var(--navy); }
.collection-text { font-size: 15px; color: var(--muted); }
/* The vanities tile spans two rows; its room scene fills the height the four other tiles give it. */
.collection-feature { grid-column: span 2; grid-row: span 2; }
.collection-feature .tile { flex: 1; min-height: 0; }
.collection-feature .tile img { height: 100%; aspect-ratio: auto; object-position: 50% 50%; }
.collection-body { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 900px) {
  .collections { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .collection-feature .tile img { aspect-ratio: 3 / 2; height: auto; }
}
@media (max-width: 560px) {
  .collections { gap: 12px; }
  .collection-name { font-size: 17px; }
  .collection-text { font-size: 14px; }
}

.sizes { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sizes li { display: flex; flex-direction: column; gap: 10px; }
/* Each size links to its width page (every series in that width). */
.sizes a { display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; transition: transform var(--t-lift) var(--ease-out); }
.sizes a:active { opacity: 1; transform: var(--press-card); }
.sizes li > span:last-child { font-size: 15px; font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .sizes a:hover { color: var(--ink); }
  .sizes a:hover > span:last-child { text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 900px) { .sizes { grid-template-columns: 1fr 1fr; } }

.points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.points-3 { grid-template-columns: repeat(3, 1fr); }
.points li { border-top: 2px solid var(--sea); padding-top: 16px; }
.points strong { display: block; font-family: var(--sans); font-weight: 600; font-size: 20px; line-height: 1.25; margin-bottom: 8px; }
.points span { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .points, .points-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .points, .points-3 { grid-template-columns: 1fr; gap: 24px; } }

/* Call to action: light grey, one navy button (design review P0-7: no bright blue block above the navy footer). */
.cta-band { background: var(--c-30); color: var(--on-30); padding: var(--section-s) 0; }
.cta-band h2 { margin-bottom: .25em; }
.cta-band p { margin: 0; color: var(--on-30-muted); }
.cta-band .cta-value { color: var(--on-30); font-weight: 500; margin-bottom: .25em; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Inner pages */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 48px); }
.prose { max-width: 68ch; }
.prose p { color: var(--ink); }
.prose .lede { color: var(--muted); }
.prose-grid { display: grid; grid-template-columns: 1fr 360px; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .prose-grid { grid-template-columns: 1fr; } }

.facts { background: var(--surface-2); border-radius: var(--radius-m); padding: 28px; }
.facts h2 { font-size: var(--text-xl); }
.facts dl { margin: 0; }
.facts dl > div { padding: 12px 0; border-top: 1px solid var(--line); }
.facts dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; }

/* Category pages: one card per product line - picture tile, name, what the line is, model count. */
.subcats { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.subcats li { display: flex; flex-direction: column; }
.subcat-link a { flex: 1; display: flex; flex-direction: column; gap: 6px; color: var(--ink); text-decoration: none; transition: transform var(--t-lift) var(--ease-out); }
.subcat-link .tile { margin-bottom: 8px; }
.subcat-name { font-size: 20px; line-height: 1.25; color: var(--navy); font-weight: 600; }
.subcat-text { font-size: 15px; color: var(--muted); }
.subcat-status { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: auto; padding-top: 6px; }
@media (hover: hover) and (pointer: fine) {
  .subcat-link a:hover .subcat-name { text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 900px) { .subcats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 560px) { .subcats { gap: 12px; } .subcat-name { font-size: 17px; } .subcat-text { font-size: 14px; } }

.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.contact-card { background: var(--surface-2); border-radius: var(--radius-m); padding: 24px; }
.contact-card h2 { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.contact-card p { margin: 0; }
.big-link { font-size: 18px; overflow-wrap: anywhere; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

/* FAQ (2026-11-03): one block per topic, each question a native <details> (opens without JS, keyboard and
   screen readers for free). No open/close animation: the +/− just swaps, so nothing moves on key presses. */
.faq-group { max-width: 860px; scroll-margin-top: 96px; }
.faq-group + .faq-group { margin-top: var(--space-8); }
.faq-group h2 { font-size: var(--text-2xl); margin-bottom: var(--space-4); }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 18px 0; font-weight: var(--w-medium); font-size: var(--text-m); line-height: var(--lh-snug); color: var(--ink);
  transition: color var(--t-hover) var(--ease-out);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; width: 1em; text-align: center; font-size: 22px; line-height: 1; color: var(--navy); }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-s); }
.faq-item summary:active { color: var(--navy); }
.faq-a { padding: 0 40px 20px 0; color: var(--muted); }
.faq-a p { margin: 0; }
.faq-a p + p { margin-top: .75em; }
.faq-a ul { margin: .5em 0 0; padding-left: 1.2em; }
.faq-a li + li { margin-top: .25em; }

/* Contact form (2026-11-03; shown only where CONTACT_FORM is on, see build.sh). Topics are checkboxes drawn as
   pills; the honeypot field is off-screen; the answer messages show on :target (no JS) or .is-shown (JS). */
.contact-form-wrap { max-width: 860px; }
.contact-form { margin-top: var(--space-5); }
.topics { border: 0; padding: 0; margin: 0 0 var(--space-5); display: flex; flex-wrap: wrap; gap: 8px; }
.topics legend { padding: 0; margin-bottom: 10px; font-weight: var(--w-semibold); }
.topic { position: relative; }
.topic input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topic span { display: inline-block; font: 500 14px/1.2 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 12px 16px; cursor: pointer; transition: transform var(--t-press) var(--ease-out); }
.topic input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.topic input:focus-visible + span { box-shadow: var(--ring); }
.topic span:active { transform: var(--press); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: var(--text-s); font-weight: var(--w-medium); }
.field-wide { grid-column: 1 / -1; }
.field input, .field textarea { font: inherit; font-size: 16px; font-weight: var(--w-regular); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 11px 12px; min-height: 44px; width: 100%; }
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--navy); box-shadow: var(--ring); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: var(--space-5) 0 0; font-size: var(--text-s); }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--navy); }
.form-note { font-size: var(--text-s); color: var(--muted); margin: 12px 0 var(--space-5); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 16px 20px; border-radius: var(--radius-m); background: var(--paper); border-left: 4px solid var(--navy); margin: var(--space-5) 0 0; scroll-margin-top: 96px; }
.form-status:focus { outline: none; }
.form-error { border-left-color: #8a3b12; }
.form-status:target, .form-status.is-shown { display: block; }
#form-sent:target ~ .contact-form { display: none; }
@media (hover: hover) and (pointer: fine) {
  .topic span:hover { border-color: var(--ink); }
}
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
@media (hover: hover) and (pointer: fine) {
  .faq-item summary:hover { color: var(--navy); }
}
@media (max-width: 560px) { .faq-a { padding-right: 0; } }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer: part of the 30 % (--c-30, 60 : 30 : 10 scheme 1, David 2026-10-27); it was navy until then. */
.site-footer { background: var(--c-30); color: var(--on-30); padding: 56px 0 24px; font-size: 15px; border-top: 1px solid var(--hairline); }
.site-footer a { color: var(--c-10); }
.site-footer h2 { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-30-muted); font-weight: 600; margin-bottom: 10px; }
.site-footer p { margin: 0; }
.brand-footer { width: 200px; height: auto; display: block; }
.slogan { margin-top: 14px !important; color: var(--c-10); font-weight: 300; font-size: 18px; letter-spacing: .01em; }
/* Chinese pages: the Chinese name under the logo (VI: 碧丽雅卫浴). */
.brand-cn { margin-top: 12px !important; color: var(--c-10); font-weight: 600; font-size: 16px; letter-spacing: .12em; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--hairline); margin-top: 40px; padding-top: 20px; font-size: 13px; color: var(--on-30-muted); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Choose by width (vanities page): one tile per width, with the width's drawing (all at the same scale, see
   tools/width-art.pl), the number and its model and series counts. The width pages switch widths with a row of
   pill links (.finish as a link; the current one is filled). */
.widths { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .widths { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.width-card { display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; transition: transform var(--t-lift) var(--ease-out); }
.width-card .tile { margin-bottom: 8px; }
.width-card:active { opacity: 1; transform: var(--press-card); }
.width-num { font-size: 22px; font-weight: 600; line-height: 1.1; letter-spacing: -.02em; color: var(--navy); font-variant-numeric: tabular-nums; }
.width-num small { font-size: 14px; font-weight: 500; letter-spacing: 0; }
.width-n { font-size: 13px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .width-card:hover { color: var(--ink); }
  .width-card:hover .width-num { text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 560px) {
  .widths { gap: 8px; }
  .width-num { font-size: 17px; }
  .width-n { font-size: 11px; }
}
.width-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 24px; }
a.finish { display: inline-block; text-decoration: none; }
.finish[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
/* Size filter on the product line pages: the pills link to empty #t-<size> targets placed before the cards; the
   page's own style rules hide the other cards and fill the chosen pill (:target); "all sizes" is filled when none is. */
.size-nav { margin: 0 0 20px; }
.size-target { display: block; height: 0; scroll-margin-top: 96px; }
.size-nav .size-all { background: var(--navy); border-color: var(--navy); color: #fff; }
/* Mirrors and countertops: a first row (shape or material, .facet-nav), then the sizes: all sizes (.size-row-all)
   until a shape or material is chosen, then only its sizes (.size-row[data-for], shown by the page's rules).
   Targets: .ts a size, .tf a shape or material, .tfs both. The "all" pill of a row is filled until that row has a choice. */
.facet-nav { margin-bottom: 10px; }
.size-row[data-for] { display: none; }
.ts:target ~ .size-row-all .size-all, .tf:target ~ .facet-nav .size-all, .tfs:target ~ .facet-nav .size-all,
.tfs:target ~ .size-row .size-all { background: var(--paper); border-color: var(--line); color: var(--ink); }
.tf:target ~ .size-row-all, .tfs:target ~ .size-row-all { display: none; }
/* Four cards in a row on the vanities page ("also available": wall-mounted, powder room, countertops, linen towers). */
@media (min-width: 901px) { .subcats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .subcats-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Vanity series */
.series-grid { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
/* Headings inside the grids: material on the vanities page, configuration (with its widths) on a series page. */
.grid-head { grid-column: 1 / -1; margin-top: 12px; scroll-margin-top: 96px; }
.grid-head:first-child { margin-top: 0; }
.grid-head h3 { font-size: var(--text-xl); margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.grid-head h3 span { font-weight: 400; color: var(--muted); font-size: var(--text-s); margin-left: 10px; letter-spacing: 0; }
/* On a width page the heading is the series, linking to its page. */
.grid-head h3 a { color: inherit; text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .grid-head h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
}
.series-card { display: flex; flex-direction: column; gap: 4px; height: 100%; text-decoration: none; color: var(--ink); transition: transform var(--t-lift) var(--ease-out); }
.series-card .tile { margin-bottom: 10px; }
@media (hover: hover) and (pointer: fine) {
  .series-card:hover { color: var(--ink); }
  .series-card:hover .series-name { text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 900px) { .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
/* Page top (2026-11 diagnosis, plan B, David 2026-11-08): one component for the inner pages. A series, product line or
   about page opens with a short, wide room scene (.page-banner), then the breadcrumb and the title, so the products
   start on the first screen; the series / line introduction and facts follow the models (.series-intro). Category,
   width, FAQ and contact pages have no picture: their cards are the pictures. The banner is cropped (cover); a
   portrait or square scene (.is-tall / .is-square, from the original's width) is framed higher. */
.page-banner { padding-top: var(--space-5); }
.page-banner .page-hero { margin: 0 0 var(--space-5); }
.page-hero img { display: block; width: 100%; height: clamp(220px, 29vw, 420px); object-fit: cover; object-position: 50% 64%; border-radius: var(--radius-l); background: var(--tint); }
.page-head h1 { text-wrap: balance; }
.page-banner { padding-bottom: var(--space-6); }
.page-banner h1 { margin-bottom: 0; }
/* A portrait or square scene (mirrors, shower systems, faucets…): on a tablet or computer, whole and right of the title. */
@media (min-width: 600px) {
  .page-banner-split .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto; column-gap: clamp(32px, 5vw, 72px); }
  .page-banner-split .wrap > * { grid-column: 1; align-self: end; }
  .page-banner-split .page-hero { grid-column: 2; grid-row: 1 / -1; margin: 0; }
  .page-banner-split .page-hero img { width: auto; height: clamp(300px, 30vw, 420px); aspect-ratio: 2 / 3; object-position: 50% 50%; }
  .page-banner-split .page-hero.is-square img { aspect-ratio: 1; }
}
@media (max-width: 860px) {
  .page-banner { padding-top: var(--space-3); }
  .page-banner .page-hero { margin-bottom: var(--space-5); }
  .page-hero img { border-radius: var(--radius-m); }
}
/* Phones: the banner is 16:10, a portrait or square scene square. */
@media (max-width: 599px) {
  .page-hero img { height: auto; aspect-ratio: 16 / 10; }
  .page-hero.is-tall img, .page-hero.is-square img { aspect-ratio: 1; object-position: 50% 45%; }
}
/* The introduction of a series or product line, after its models: its name again, the lede and the facts. */
.series-intro h2 { margin-bottom: var(--space-3); }
.series-intro .lede { margin: 0; }
.series-name { font-size: 20px; font-weight: 600; line-height: 1.25; color: var(--navy); }
.series-style { font-size: 15px; color: var(--ink); }
.series-meta { font-size: 14px; color: var(--muted); margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font: 500 12px/1.4 var(--sans); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; }
@media (max-width: 560px) {
  .series-grid { gap: 12px; }
  .series-name { font-size: 17px; }
  .series-style { font-size: 14px; }
}

.h1-sub { display: block; font-size: .45em; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: .3em; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a::before { content: "←\00a0"; }
@media (hover: hover) and (pointer: fine) {
  .eyebrow a:hover { text-decoration: underline; }
}
.series-facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 24px 0 0; }
.series-facts dt { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.series-facts dd { margin: 2px 0 0; }

.models { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.model { display: flex; flex-direction: column; gap: 6px; scroll-margin-top: 96px; transition: transform var(--t-lift) var(--ease-out); }
/* The card's picture is a tile (see .tile); the dimensioned drawing link sits in its corner. */
.model-figure { position: relative; margin: 0 0 10px; background: var(--tint); overflow: hidden; border-radius: var(--radius-m); transition: box-shadow var(--t-lift) var(--ease-out); }
.model-figure img { aspect-ratio: 1; width: 100%; object-fit: contain; padding: 5%; mix-blend-mode: multiply; }
.model-figure a { display: block; cursor: zoom-in; }
.model-figure figcaption { position: absolute; right: 10px; bottom: 8px; font-size: 12px; z-index: 1; }
.model-figure figcaption a { display: inline; color: var(--blue); }
/* Set card (a pull with its matching knob, David 2026-10-19): the knob above the pull, as on his reference sheets. */
.model-figure-set { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; aspect-ratio: 1; padding: 6% 6% 12%; }
.model-figure-set img { padding: 0; aspect-ratio: 2 / 1; }
.model-figure-set .set-main { order: 2; width: 92%; }
.model-figure-set .set-match { order: 1; width: 50%; aspect-ratio: 3 / 2; }
.model-title { font-size: 17px; margin: 0; }
.model-detail { font-size: 14px; color: var(--muted); margin: 0; }
/* Card specs: label and value on one line, no rules (the full table is on the detail page). */
.specs { margin: 2px 0 0; font-size: 14px; }
.specs > div { display: flex; flex-wrap: wrap; gap: 0 8px; padding: 2px 0; }
.specs dt { font-size: 12px; color: var(--muted); }
.specs dd { margin: 0; font-variant-numeric: tabular-nums; }

/* Availability page for dealers (hidden; tools/stock.awk): one table per product family, like a stock sheet.
   The table scrolls sideways inside .stock-scroll (so the page never does), the model column stays stuck on the left.
   Every status is a word next to its dot (colour alone never carries it). No motion on this page. */
.stock-legend { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-size: var(--text-s); color: var(--muted); }
.stock-toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.stock-toc a { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-s); text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 5px 14px 5px 10px; color: var(--ink); }
/* Category icons (David 2026-11-11; symbols in src/icons/stock-categories.svg, written into the page by tools/stock.awk). */
.cat-ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--navy); }
.stock-toc .cat-ico { width: 24px; height: 24px; }
.stock-head { display: flex; align-items: center; gap: .35em; }
.stock-head .cat-ico { stroke-width: 1.4; }
.wrap-full { max-width: none; }   /* the availability tables use the whole window (David 2026-11-03: wider) */
.stock-head { scroll-margin-top: calc(var(--nav-h) + 16px); margin-top: var(--space-6); }
/* Series / width choice above the vanity table: radio pills (the input is hidden, the label is the pill), stuck under the
   site header while the table scrolls by. Without :has() support the pills do nothing and the whole table shows. */
.stock-filter { position: sticky; top: var(--nav-h); z-index: 3; background: var(--surface); padding: var(--space-2) 0 var(--space-3); margin: 0 0 var(--space-3); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.stock-filter fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.stock-filter legend { float: left; font-size: var(--text-s); color: var(--muted); margin-right: 6px; padding: 0; }
.stock-filter label { position: relative; font: 500 13px var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 5px 12px; cursor: pointer; transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.stock-filter input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.stock-filter label:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.stock-filter label:has(input:focus-visible) { box-shadow: var(--ring); }
.stock-filter label:active { transform: var(--press); }
@media (hover: hover) and (pointer: fine) { .stock-filter label:hover { border-color: var(--ink); } }
@media (max-width: 1040px) { .stock-filter { top: 64px; } }
@media (max-width: 700px) { .stock-filter { position: static; } }   /* on a phone the two rows of pills would hide a third of the screen */
@media (prefers-reduced-motion: reduce) { .stock-filter label:active { transform: none; } }
.stock-scroll { position: relative; overflow-x: auto; max-width: 100%; margin: 0 0 var(--space-7); -webkit-overflow-scrolling: touch; }
table.stock { border-collapse: separate; border-spacing: 0; font-size: var(--text-xs); line-height: var(--lh-snug); min-width: 100%; }
.stock th, .stock td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 6px 10px; text-align: left; white-space: nowrap; vertical-align: top; }
.stock thead th { background: var(--surface-2); color: var(--ink); font-weight: var(--w-medium); border-top: 1px solid var(--line); }
.stock thead th[colspan] { text-align: center; }
.stock tbody th { position: sticky; left: 0; z-index: 1; background: var(--surface); font-weight: var(--w-medium); border-left: 1px solid var(--line); }
@media (max-width: 700px) { .stock tbody th { white-space: normal; min-width: 9em; max-width: 42vw; } }
.stock thead tr:first-child th:first-child { position: sticky; left: 0; z-index: 2; border-left: 1px solid var(--line); }
.stock td.na { background: repeating-linear-gradient(135deg, var(--tint) 0 3px, transparent 3px 8px); }
/* Status (David 2026-11-11: make the colours stand out): the whole cell takes a light tint of its status, a solid bar on
   the left, a dot and the status word in a darker shade of the same colour. The word is always there, so colour is never
   the only cue. The legend shows each status as the same coloured chip. */
.st-in { --st: var(--ok); --st-bg: var(--ok-bg); --st-ink: var(--ok-ink); }
.st-low { --st: var(--warn); --st-bg: var(--warn-bg); --st-ink: var(--warn-ink); }
.st-out { --st: var(--bad); --st-bg: var(--bad-bg); --st-ink: var(--bad-ink); }
.st-soon { --st: var(--soon); --st-bg: var(--soon-bg); --st-ink: var(--soon-ink); }
.st-no { --st: var(--off); --st-bg: var(--off-bg); --st-ink: var(--off-ink); }
.stock td.st { background: var(--st-bg); box-shadow: inset 4px 0 0 var(--st); padding-left: 12px; }
.st > span:first-child { color: var(--st-ink); font-weight: var(--w-semibold); }
.st > span:first-child::before, .stock-legend .st::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: var(--st, var(--muted)); vertical-align: 0; }
.stock-legend .st { display: inline-block; background: var(--st-bg); color: var(--st-ink); font-weight: var(--w-semibold); border-radius: var(--radius-pill); padding: 2px 10px 2px 8px; margin-right: 4px; }
.st-none > span:first-child::before, .stock-legend .st-none::before { display: none; }
.stock td.st-none { background: transparent; box-shadow: none; padding-left: 10px; }
.stock .st-none > span:first-child { color: var(--muted); font-weight: var(--w-regular); padding-left: 16px; }
.stock-legend .st-none { background: transparent; color: var(--muted); padding: 2px 0; }
.stock small { display: block; color: var(--muted); font-size: 11px; white-space: normal; max-width: 20ch; }
.stock small.sku { white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: .02em; font-size: 13px; color: var(--ink); font-weight: var(--w-medium); margin-top: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media print { .stock-scroll { overflow: visible; } .stock tbody th { position: static; } }
.finishes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.finish {
  font: 500 13px var(--sans); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, border-color var(--t-hover) ease, color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .finish:hover { border-color: var(--ink); }
}
.finish[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
/* Not made in this combination (e.g. a glass door size without that finish): still clickable, picks the nearest one. */
.finish.finish-na { color: var(--muted); border-style: dashed; }
/* Colour dots (design review P0-3, David 2026-10-22): a 28 px circle showing the finish's swatch (static/img/sw/,
   cut from the SKU's front render by tools/swatches.sh); the chosen one has a navy ring; the chosen finish's name
   sits at the end of the row (.finish-name, site.js). Size and drawer-side buttons stay text buttons (David). */
.finish-dot, .product-info .finish-dot { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: var(--sw) center / cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.finish-dot[aria-pressed="true"] { background: var(--sw) center / cover; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--navy); }
.finish-dot.finish-na { opacity: .4; border: 0; }
.finishes:has(.finish-dot) { align-items: center; gap: 8px; }
.finish-name { font-size: 13px; color: var(--muted); margin-left: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sku { font-size: 15px; letter-spacing: .04em; color: var(--muted); margin: auto 0 0; padding-top: 8px; }
.sku-code { color: var(--ink); font-weight: 600; white-space: nowrap; }
.sku-list { list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--muted); }
/* With JS the finish buttons replace the SKU list; without JS the list is shown. */
.js .sku-list { display: none; }
.no-js .finishes, .no-js .model:has(.sku-list) .sku, .no-js .product-info:has(.sku-list) .sku { display: none; }
.site-nav a[aria-current="true"] { color: var(--sea); box-shadow: inset 0 -2px 0 var(--sea); border-radius: 0; }
@media (max-width: 1040px) { .site-nav a[aria-current="true"] { box-shadow: none; } }
@media (max-width: 560px) {
  /* minmax(0, 1fr): a long SKU (kept on one line) must not widen the columns past the screen. */
  .models { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .model-title { font-size: 16px; }
  .model-detail, .specs { font-size: 14px; }
  .finish { padding: 4px 9px; font-size: 12px; }
  .finish-dot { width: 26px; height: 26px; padding: 0; }
  .model .sku { letter-spacing: 0; }
  .model .sku { font-size: 14px; }
  .model .sku-code { font-size: 14px; }
}
@media (max-width: 359px) {
  .models { grid-template-columns: minmax(0, 1fr); }
}

/* Model cards link to the detail page; the whole card is clickable, the finish buttons stay on top. */
.model { position: relative; }
.model-link { color: inherit; text-decoration: none; }
.model-link::after { content: ""; position: absolute; inset: 0; }
@media (hover: hover) and (pointer: fine) {
  .model-link:hover { text-decoration: underline; }
}
/* The finish buttons and the card's own links (dimensioned drawing) stay above the card-wide link. */
.model .finishes, .model .sku-list, .model .model-figure a { position: relative; z-index: 1; }

/* Product detail page */
.product { padding: clamp(20px, 3vw, 32px) 0 clamp(40px, 5vw, 64px); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: clamp(16px, 2.5vw, 28px); }
.crumbs a { color: var(--blue); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .crumbs a:hover { text-decoration: underline; }
}
.product-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.gallery-main { position: relative; margin: 0; background: var(--tint); border-radius: var(--radius-m); overflow: hidden; }
.gallery-main img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 5%; mix-blend-mode: multiply; }
/* Doors open as the page scrolls (design lab 10-C, David 2026-10-27): the open view (.gallery-open, the same file as
   its thumbnail) fades in over the first picture between 20 % and 40 % of the first screen of scrolling (--p from
   site.js on .product-grid), the closed one fades out at the same time (both are multiply, so they would show
   through each other). Only while the first picture is the one shown (.is-off otherwise, site.js); a crossfade, so
   it stays with reduced motion; without JS the open view is not shown. */
.gallery-open { position: absolute; inset: 0; pointer-events: none; opacity: clamp(0, calc((var(--p, 0) - .2) / .2), 1); }
.has-open:not(.is-off) a img { opacity: clamp(0, calc((.4 - var(--p, 0)) / .2), 1); }
.is-off .gallery-open, .no-js .gallery-open { display: none; }
.gallery-main a { display: block; }
.gallery-main a, .rooms a, .details a { cursor: zoom-in; }
.gallery-thumbs { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.gallery-thumbs + .gallery-thumbs { margin-top: 16px; }
.gallery-thumbs a { display: block; border: 1px solid transparent; border-radius: var(--radius-s); overflow: hidden; background: var(--tint); transition: border-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .gallery-thumbs a:hover { border-color: var(--ink); }
}
.gallery-thumbs a[aria-current="true"] { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.gallery-thumbs img { width: 100%; aspect-ratio: 1; object-fit: contain; padding: 6%; mix-blend-mode: multiply; }
/* A new picture (thumbnail, finish button) fades in from a soft blur instead of jumping in. */
.gallery-main img, .model-figure img { transition: opacity var(--t-enter) var(--ease-out), filter var(--t-enter) var(--ease-out); }
img.swap-in, .img-fade img.swap-in[loading="lazy"] { opacity: .4; filter: blur(2px); transition: none; }
/* Pictures arrive with a fade (design review P1-1): site.js adds html.img-fade, then .in to each lazy picture
   once loaded. Only in these places, so a picture made later (the lightbox) is never held back. */
.img-fade :is(.tile, .model-figure, .gallery, .rooms, .details, .hw-item, .feature-media) img[loading="lazy"]:not(.gallery-open) { transition: opacity var(--t-enter) var(--ease-out), filter var(--t-enter) var(--ease-out); }
.img-fade :is(.tile, .model-figure, .gallery, .rooms, .details, .hw-item, .feature-media) img[loading="lazy"]:not(.in):not(.gallery-open) { opacity: 0; }
.no-js .gallery[hidden] { display: block; margin-top: 24px; }
/* Specs that depend on the drawer side: JS shows the chosen side's value, without JS all of them. */
.no-js [data-side][hidden] { display: inline; }
.no-js [data-side] + [data-side]::before { content: " / "; }
/* The gallery sticks under the header while the product information scrolls (design review P0-6: the information
   column was the sticky one, but taller than the gallery, so it never stuck, and top: 24px hid under the header). */
.product-media { position: sticky; top: calc(var(--nav-h) + 16px); }
.product-kicker { font-size: var(--text-s); font-weight: var(--w-medium); color: var(--muted); margin-bottom: 8px; }
.product-title { font-size: var(--text-3xl); margin-bottom: 8px; }
.product-detail { color: var(--muted); }
.product-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 24px 0 8px; }
.product-info .finishes { margin: 0; }
.product-info .finish { font-size: 14px; padding: 7px 14px; }
.product-info .sku { margin: 14px 0 0; padding: 0; }
.product-specs { margin: 0 0 20px; }
.product-specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; }
.product-specs > div:last-child { border-bottom: 1px solid var(--line); }
.product-specs dt { font-size: 14px; letter-spacing: 0; }
.product-specs dd { text-align: right; }
.wood-note { font-size: 14px; color: var(--muted); margin: -8px 0 20px; }
/* Download links of the dimensioned drawings, in the product information under the specs (David 2026-10-19). */
.downloads { margin: 0 0 20px; }
.downloads .product-label { margin-top: 4px; }
.dl {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 10px 0;
  border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.35;
  transition: color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.dl:last-child { border-bottom: 1px solid var(--line); }
.dl svg { flex: none; color: var(--navy); }
.dl-name { font-weight: 500; min-width: 0; }
.dl-meta { margin-left: auto; font-size: 12px; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .dl:hover { border-color: var(--ink); color: var(--ink); }
}
/* Panes that follow the chosen SKU (downloads, room scenes, details, options): without JS every SKU's is shown. */
.no-js .sku-panes[hidden], .no-js .sku-pane[hidden] { display: block; }
.no-js .sku-pane + .sku-pane { margin-top: 32px; }
.no-js .downloads .sku-pane + .sku-pane { margin-top: 8px; }
/* Room scenes and details (David 2026-10-19: larger, calmer pictures, without the moiré of the fluted doors at
   small sizes, and more to do with them). A picture zooms in slightly under the pointer; a click opens it in
   the lightbox. */
.pane-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.pane-head .h3 { margin: 0; }
.looks { margin: 0; }
.look { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 12px; }
/* With JS the look buttons name the look shown; without JS every look is shown under its name. */
.js .has-looks .look { display: none; }
.no-js .look-set[hidden] { display: block; }
.no-js .look-set + .look-set { margin-top: 32px; }
.rooms, .details { list-style: none; padding: 0; margin: 0; }
.rooms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rooms figure, .details figure { position: relative; margin: 0; }
.rooms figure, .rooms a { height: 100%; }
.rooms a, .details a { display: block; overflow: hidden; border-radius: var(--radius-m); background: var(--tint); transition: transform var(--t-press) var(--ease-out); }
.rooms img, .details img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-zoom) var(--ease-out); }
.rooms img { aspect-ratio: 3 / 2; }
.details img { aspect-ratio: 1; }
@media (hover: hover) and (pointer: fine) {
  .rooms a:hover img, .details a:hover img { transform: var(--zoom-hover); }
}
.rooms figcaption {
  position: absolute; left: 12px; bottom: 12px; margin: 0; padding: 3px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 12px; font-weight: 500; pointer-events: none;
}
/* A look's four views at their own proportions: front view (3:2) and close-up (square) on the first row, in-use
   view (square) and angled view (3:2) on the second. */
.rooms-4 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rooms-4 li:nth-child(1) { grid-area: 1 / 1 / 2 / 4; }
.rooms-4 li:nth-child(2) { grid-area: 2 / 3 / 3 / 6; }
.rooms-4 li:nth-child(3) { grid-area: 1 / 4 / 2 / 6; }
.rooms-4 li:nth-child(4) { grid-area: 2 / 1 / 3 / 3; }
.rooms-4 li:nth-child(n+3) img { aspect-ratio: 1; }
/* Product line room scenes (ROOM-HERO): two looks side by side, uncropped (some are portrait). */
.rooms-hero { align-items: start; }
.rooms-hero a { width: fit-content; max-width: 100%; }
.rooms-hero img { width: auto; height: auto; max-width: 100%; max-height: 720px; aspect-ratio: auto; }
/* Details: without JS a grid; with JS one large picture beside the numbered list, which switches it: the new
   picture fades in from a soft blur over the old one (as in the gallery), then the old one goes. From the
   keyboard it switches at once. */
.detail-view .h3 { margin-bottom: 16px; }
.details { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.details figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.no-js .detail-nav { display: none; }
.js .viewer { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto 1fr; column-gap: clamp(24px, 5vw, 72px); }
.js .viewer .details { grid-area: 1 / 1 / 5 / 2; grid-template-columns: minmax(0, 1fr); gap: 0; }
.js .viewer .h3 { grid-area: 2 / 2; }
.js .viewer .detail-nav { grid-area: 3 / 2; }
.js .viewer .details li {
  grid-area: 1 / 1; opacity: 0; filter: blur(2px); visibility: hidden;
  transition: opacity 0s linear var(--t-enter), filter 0s linear var(--t-enter), visibility 0s linear var(--t-enter);
}
.js .viewer .details li.on { z-index: 1; opacity: 1; filter: none; visibility: visible; transition: opacity var(--t-enter) var(--ease-out), filter var(--t-enter) var(--ease-out); }
.js .viewer figcaption { display: none; }
.detail-nav { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.detail-nav button {
  position: relative; display: flex; align-items: baseline; gap: 16px; width: 100%; padding: 12px 0; margin: 0;
  border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; text-align: left;
  font: 500 18px/1.3 var(--sans); color: var(--muted);
  transition: color var(--t-hover) ease, opacity var(--t-press) var(--ease-out);
}
/* The line under the chosen detail grows from the left. */
.detail-nav button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--navy);
  transform: scaleX(0); transform-origin: left; transition: transform var(--t-enter) var(--ease-out);
}
.detail-nav .num { font-size: 12px; font-weight: 600; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.detail-nav button[aria-pressed="true"] { color: var(--navy); }
.detail-nav button[aria-pressed="true"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .detail-nav button:hover { color: var(--ink); }
  .detail-nav button[aria-pressed="true"]:hover { color: var(--navy); }
}
.detail-nav button:active { opacity: .6; }
.js .viewer.instant .details li, .viewer.instant .detail-nav button::after { transition: none; }
.siblings { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.siblings a { display: block; height: 100%; color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.35; transition: transform var(--t-lift) var(--ease-out); }
.siblings .tile { margin-bottom: 8px; }
.siblings a[aria-current="page"] .tile { box-shadow: inset 0 0 0 2px var(--navy); }
/* Options under a vanity (detail pages), one below the other, full width: the matching quartz countertop (a tile
   per colour), the series' pulls and knobs (a column per finish, knobs above pulls, after David's reference
   sheets 2026-10-19) and, in the series that have them, the matching linen towers. The other detail pages' matching
   products (2026-10-21: a faucet's drain, a countertop's vanities) use the same blocks and tiles. */
.option-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 16px; }
.option { min-width: 0; }
.option + .option { padding-top: 32px; border-top: 1px solid var(--line); }
.option h3 { font-size: var(--text-xl); margin: 0 0 6px; }
.option p { font-size: 14px; color: var(--muted); margin: 0; }
.option-tiles { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.option-tiles a { display: block; height: 100%; color: var(--ink); text-decoration: none; font-size: 14px; line-height: 1.35; transition: transform var(--t-lift) var(--ease-out); }
.option-tiles .tile { margin-bottom: 8px; }
.opt-sub { display: block; font-size: 13px; color: var(--muted); }
.option p a { font-weight: 500; }
.hw-set { margin-top: 24px; }
.hw-set-title { font-size: 15px; margin: 0 0 14px; }
.hw-set-title span { font-weight: 400; color: var(--muted); margin-left: 8px; }
.hw-fins { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px; }
.hw-fins li { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.hw-item { display: block; width: 100%; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: .02em; transition: transform var(--t-lift) var(--ease-out); }
.hw-item img { display: block; width: 84%; aspect-ratio: 2 / 1; object-fit: contain; margin: 0 auto 4px; }
.hw-knob img { width: 50%; aspect-ratio: 3 / 2; }
.hw-fin { font-size: 14px; color: var(--ink); }
/* Feature block on a category page (the powder room vanities on the vanities page): a room scene beside the text. */
.feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.feature-media { display: block; transition: transform var(--t-lift) var(--ease-out), box-shadow var(--t-lift) var(--ease-out); }
.feature-media img { aspect-ratio: 3 / 2; }
.feature-text p { color: var(--muted); }
.feature-text .eyebrow { margin-bottom: 10px; }
.feature-text .feature-sub { margin: -4px 0 12px; font-size: 15px; color: var(--ink); }
@media (max-width: 860px) {
  /* A look's four views: front and angled views across, close-up and in-use views side by side. */
  .rooms-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rooms-4 li:nth-child(n) { grid-area: auto; }
  .rooms-4 li:nth-child(-n+2) { grid-column: span 2; }
  .js .viewer { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .js .viewer .h3 { grid-area: 1 / 1; }
  .js .viewer .details { grid-area: 2 / 1; }
  .js .viewer .detail-nav { grid-area: 3 / 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; margin-top: 16px; }
  .detail-nav button { gap: 10px; padding: 10px 0; font-size: 15px; }
  .feature { grid-template-columns: minmax(0, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .product-media { position: static; }
}
@media (max-width: 560px) {
  .gallery-thumbs { grid-template-columns: repeat(5, 1fr); gap: 6px; }
  .details { grid-template-columns: 1fr 1fr; gap: 10px; }
  .rooms { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .rooms-4, .rooms-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rooms figcaption { left: 8px; bottom: 8px; }
  .siblings { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .siblings a { font-size: 12px; }
  .option-tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hw-fins { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
}

/* Home: scroll story (design lab 10-B, David 2026-10-27; the skeleton of huangbai-scrolling with stills instead of
   video). A tall track (.story, --n scenes, about 0.9 screen each) and a stage that sticks under the header for one
   screen; site.js writes the track's progress 0 → 1 into --p and each scene computes from it its own opacity
   (crossfade --xfade wide), push-in (--push, 1.0 → 1.08) and caption (in from 8 %, out from 92 %; the first holds
   from the start, the last to the end with its button). The route dots on the right mark the scene. Reduced
   motion (--motion 0): only the crossfade. Without JS: pictures and captions in a column. */
.story { position: relative; height: calc(var(--n, 4) * 90svh + 100svh - var(--nav-h)); margin: var(--section) 0 0; }
.story-stage { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); overflow: hidden; background: var(--ink); }
.scene { position: absolute; inset: 0; margin: 0; --local: calc(var(--p, 0) * var(--n, 4) - var(--i, 0));
  opacity: min(clamp(0, calc((var(--local) + var(--xfade)) / var(--xfade)), 1), clamp(0, calc((1 + var(--xfade) - var(--local)) / var(--xfade)), 1)); }
.scene picture, .scene img { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene img { object-fit: cover; object-position: 50% 55%; scale: calc(1 + var(--push) * var(--motion) * clamp(0, var(--local), 1)); will-change: transform; }
.scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; background: linear-gradient(to top, rgba(0, 0, 0, .6), rgba(0, 0, 0, 0)); }
.scene-cap { position: absolute; z-index: 1; left: var(--gutter); right: var(--gutter); bottom: clamp(32px, 9svh, 88px); max-width: 36ch; color: #fff; margin: 0;
  --c: min(clamp(0, calc((var(--local) - .08) / .18 + var(--lead, 0)), 1), clamp(0, calc((.92 - var(--local)) / .18 + var(--hold, 0)), 1));
  opacity: var(--c); translate: 0 calc((1 - var(--c)) * var(--cap-shift) * var(--motion)); }
.scene:first-child { --lead: 10; }
.scene.is-last { --hold: 10; }
.scene-kicker { font-size: var(--text-xs); font-weight: var(--w-semibold); letter-spacing: var(--track-caps); text-transform: uppercase; color: rgba(255, 255, 255, .8); margin: 0 0 var(--space-2); }
.scene-text { font-size: var(--text-2xl); font-weight: var(--w-semibold); line-height: var(--lh-heading); letter-spacing: var(--track-tight); margin: 0 0 var(--space-4); text-wrap: balance; }
.story-route { position: absolute; right: clamp(12px, 2vw, 24px); top: 50%; translate: 0 -50%; display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.story-route li { width: 8px; height: 8px; border-radius: 50%; background: #fff; --local: calc(var(--p, 0) * var(--n, 4) - var(--i, 0));
  opacity: min(clamp(.3, calc((var(--local) + .5) / .5), 1), clamp(.3, calc((1.5 - var(--local)) / .5), 1)); }
.no-js .story { height: auto; }
.no-js .story-stage { position: static; height: auto; overflow: visible; background: none; }
.no-js .scene { position: static; opacity: 1; margin: 0 var(--gutter) var(--space-5); }
.no-js .scene picture, .no-js .scene img { position: static; height: auto; aspect-ratio: 3 / 2; scale: none; border-radius: var(--radius-m); }
.no-js .scene::after { display: none; }
.no-js .scene-cap { position: static; color: var(--ink); opacity: 1; translate: none; margin-top: var(--space-3); }
.no-js .scene-kicker { color: var(--muted); }
.no-js .scene-text { color: var(--navy); }
.no-js .btn-paper { background: var(--navy); color: #fff; }
.no-js .story-route { display: none; }
@media (max-width: 1040px) {
  /* the header is 64 px here (its own rule above) */
  .story { height: calc(var(--n, 4) * 90svh + 100svh - 64px); }
  .story-stage { top: 64px; height: calc(100svh - 64px); }
}
@media (max-width: 860px) { .scene-text { font-size: var(--text-xl); } .scene img { object-position: 50% 50%; } }

/* Scroll reveal (home and about pages): blocks below the first screen wait hidden here, then site.js fades
   and raises them in once (--t-reveal, --reveal-shift), 50 ms apart. */
.reveal { opacity: 0; }
@media print { .reveal { opacity: 1; } }

/* Lightbox (site.js) for the gallery, room scenes, details and dimensioned drawings: a full-screen white
   sheet, one picture per screen; swipe is the browser's own scroll snapping. Opens with a fade and a slight
   zoom (250 ms), closes faster (150 ms); opened or closed from the keyboard it doesn't animate. */
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--paper); color: var(--ink);
  opacity: 0;
  transition: opacity 150ms var(--ease-out), display 150ms allow-discrete, overlay 150ms allow-discrete;
}
.lightbox[open] {
  opacity: 1;
  transition: opacity var(--t-modal) var(--ease-out), display var(--t-modal) allow-discrete, overlay var(--t-modal) allow-discrete;
}
.lightbox::backdrop { background: transparent; }
.lb-track {
  display: flex; height: 100%; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  transition: transform var(--t-modal) var(--ease-out);
}
.lb-track::-webkit-scrollbar { display: none; }
@starting-style {
  .lightbox[open] { opacity: 0; }
  .lightbox[open] .lb-track { transform: var(--zoom-from); }
}
.lightbox.instant, .lightbox.instant .lb-track { transition: none; }
html:has(.lightbox[open]) { overflow: hidden; }
.lb-slide {
  flex: 0 0 100%; margin: 0; padding: 64px 16px 72px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  scroll-snap-align: center; scroll-snap-stop: always;
}
.lb-slide img { width: auto; max-width: 100%; max-height: calc(100dvh - 176px); object-fit: contain; }
.lb-slide figcaption { font-size: 14px; color: var(--muted); text-align: center; }
.lb-btn {
  position: absolute; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); cursor: pointer;
  transition: transform var(--t-press) var(--ease-out), border-color var(--t-hover) ease, opacity var(--t-hover) ease;
}
.lb-btn svg { display: block; }
.lb-btn:active { transform: var(--press); }
.lb-btn[aria-disabled="true"] { opacity: .3; cursor: default; transform: none; }
.lb-close { top: 12px; right: 12px; }
.lb-prev, .lb-next { top: 50%; margin-top: -22px; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-count { position: absolute; top: 22px; left: 50%; translate: -50% 0; margin: 0; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lightbox.single .lb-prev, .lightbox.single .lb-next, .lightbox.single .lb-count { display: none; }
@media (hover: hover) and (pointer: fine) {
  .lb-btn:hover { border-color: var(--ink); }
  .lb-btn[aria-disabled="true"]:hover { border-color: var(--line); }
}
/* Touch screens: swipe; the arrows move to the bottom corners, out of the picture. */
@media (pointer: coarse) {
  .lb-prev, .lb-next { top: auto; bottom: 12px; margin-top: 0; }
}

/* Reduced motion: fewer, gentler animations, not none. Fades and colour changes stay; press shrink and slide go. */
@media (prefers-reduced-motion: reduce) {
  :root { --press: none; --press-card: none; --rise: none; --reveal-shift: none; --zoom-from: none; --zoom-hover: none; }
  .detail-nav button::after { transition: none; }
}

/* Chinese pages (David 2026-11-04): a looser line height for Chinese text, and the small capitals labels (written in
   capitals in French and English) a size up with less tracking, since Chinese has no capitals. */
body:lang(zh) { line-height: 1.75; }
:lang(zh) .facts dt, :lang(zh) .subcat-status, :lang(zh) .contact-card h2, :lang(zh) .site-footer h2,
:lang(zh) .series-facts dt, :lang(zh) .product-label, :lang(zh) .look { font-size: 13px; letter-spacing: .04em; }
