/* ==========================================================================
   Lineage Collections — Global styles
   ========================================================================== */

:root {
  --color-bg: #f7f5f0;
  --color-surface: #fdfcf9;
  --color-ink: #1d1a17;
  --color-ink-soft: #4a4540;
  --color-muted: #7a736b;
  --color-line: #e2ddd5;
  --color-dark: #26221f;
  --color-sand: #e7e2db;
  --color-olive: #5d5a3e;
  --color-white: #ffffff;
  --color-product-bg: #ece7e0; /* frame behind product photos; the photos' white blends into it */

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(16px, 3.8vw, 56px);
  --max-width: 1600px;
  --header-top-h: 68px;
  --header-nav-h: 44px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

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

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

button { font: inherit; color: inherit; cursor: pointer; }

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3 { margin: 0; font-weight: 400; }

p { margin: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

/* Buttons ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border: 0;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

.btn-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.btn-light { background: var(--color-white); color: var(--color-ink); }
.btn-light:hover { background: var(--color-dark); color: var(--color-white); }
.btn-raised { box-shadow: 0 2px 10px rgba(0, 0, 0, .07); }

.link-underline {
  font-size: 14px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.link-underline:hover { color: var(--color-muted); }

/* ==========================================================================
   Announcement bar
   ========================================================================== */

.announcement {
  background: var(--color-dark);
  color: #ece7e0;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  padding: 9px var(--gutter);
}

.announcement a { text-decoration: underline; text-underline-offset: 2px; }
.announcement a:hover { color: var(--color-white); }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-ink);
  transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease);
  box-shadow: 0 1px 0 var(--color-line), 0 4px 14px rgba(0, 0, 0, .04);
}

.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-top-h);
  padding-inline: var(--gutter);
  border-bottom: 1px solid var(--color-line);
  transition: border-color .35s var(--ease);
}

.utility-nav { display: flex; gap: 32px; font-size: 14px; font-weight: 400; }
.utility-nav a:hover { opacity: .65; }

.logo { position: relative; display: block; width: 140px; justify-self: center; }
.logo img { width: 100%; height: auto; transition: opacity .35s var(--ease); }
.logo .logo-light { position: absolute; inset: 0; opacity: 0; }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.header-actions svg,
.icon-btn svg {
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.action-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 400;
}

.action-search span { color: var(--color-muted); }
.action-dealer span,
.action-login span {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.action-link:hover span,
.icon-btn:hover { opacity: .65; }

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  padding: 0;
  background: none;
  border: 0;
}

.cart-count {
  position: absolute;
  top: -6px; right: -8px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--color-ink);
  color: var(--color-bg);
  font-size: 10px;
  font-weight: 500;
  line-height: 16px;
  text-align: center;
}

.menu-toggle { display: none; }

.main-nav {
  height: var(--header-nav-h);
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease);
}
.main-nav > ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 2.6vw, 48px);
  height: 100%;
}
.main-nav > ul > li > a {
  position: relative;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 400;
  padding: 6px 0;
}
.main-nav > ul > li > a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}

.main-nav > ul > li > a:hover::after { transform: scaleX(1); }

/* Mega menu ---------------------------------------------------------------- */

/* Make each top-level item fill the nav height so the cursor can move into the panel without it closing */
.main-nav > ul > li { display: flex; align-items: center; height: 100%; }

.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-white);
  color: var(--color-ink);
  border-top: 1px solid var(--color-line);
  box-shadow: 0 18px 30px rgba(0, 0, 0, .06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}

.has-mega:not(.is-closed):hover > .mega,
.has-mega:not(.is-closed):focus-within > .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: .08s, .08s, 0s;
}

.has-mega:hover > a::after,
.has-mega:focus-within > a::after { transform: scaleX(1); }

.mega-inner {
  display: grid;
  grid-template-columns: 1.1fr repeat(3, 2fr);
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px var(--gutter) 32px;
}

.mega-title {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.1;
  margin-bottom: 18px;
}

.mega-list ul { display: grid; gap: 12px; }
.mega-list a { font-size: 17px; font-weight: 400; }
.mega-list a:hover { color: var(--color-muted); }

.mega-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 250px;
  background: #f4f2ee;
  overflow: hidden;
}

.mega-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.mega-card:hover .mega-card-img { transform: scale(1.04); }

.mega-card-body { padding: 36px 26px; }

.mega-card-logo {
  width: auto;
  max-width: 100%;
  height: 34px;
  object-fit: contain;
  object-position: left;
  margin-bottom: 18px;
}

.mega-card-body p { font-size: 15px; font-weight: 400; line-height: 1.45; }

/* Brands mega menu: four cards, so each is a photo with the logo and line below it */
.mega-brands { grid-template-columns: 1.1fr repeat(4, minmax(0, 2fr)); gap: 28px; }
.mega-brands .mega-card { grid-template-columns: 1fr; grid-template-rows: 140px 1fr; height: auto; }
.mega-brands .mega-card-img { min-height: 0; }
.mega-brands .mega-card-body { padding: 18px 20px 20px; }
.mega-brands .mega-card-logo { margin-bottom: 14px; }

/* Shop mega menu: four link columns + a featured image */
.mega-shop { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.6fr); gap: 32px; }
.mega-heading {
  margin-bottom: 18px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.mega-col ul { display: grid; gap: 10px; }
.mega-col a { font-size: 15px; font-weight: 400; }
.mega-col a:hover { color: var(--color-muted); text-decoration: underline; text-underline-offset: 4px; }
.mega-col .mega-all { font-weight: 500; }

.mega-feature { position: relative; display: block; min-height: 230px; overflow: hidden; color: var(--color-white); }
.mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mega-feature:hover img { transform: scale(1.04); }
.mega-feature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 16, 12, .55), rgba(20, 16, 12, 0) 60%); }
.mega-feature-text { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; display: grid; gap: 4px; }
.mega-feature-eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.mega-feature-title { font-family: var(--font-display); font-size: 30px; line-height: 1.1; }
.mega-feature-link { margin-top: 6px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }

/* Room mega menus (Bedroom … Office): intro, two link columns, a featured photo */
.mega-room { grid-template-columns: minmax(0, 1.35fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.5fr); gap: 48px; }
.mega-intro { display: flex; flex-direction: column; align-items: flex-start; }
.mega-intro .mega-heading { margin-bottom: 14px; }
.mega-intro-title { font-family: var(--font-display); font-size: 30px; line-height: 1.1; }
.mega-intro-text { max-width: 300px; margin: 12px 0 20px; font-size: 14px; line-height: 1.65; color: var(--color-ink-soft); }
.mega-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding: 13px 22px;
  background: var(--color-dark);
  color: var(--color-white);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background-color .3s var(--ease);
}
.mega-cta:hover { background: var(--color-olive); }
.mega-cta span { transition: transform .3s var(--ease); }
.mega-cta:hover span { transform: translateX(4px); }

/* Text card in place of a photo (Office) */
.mega-help {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: 230px;
  padding: 24px 24px;
  background: var(--color-olive);
  color: var(--color-white);
  transition: background-color .3s var(--ease);
}
.mega-help:hover { background: var(--color-dark); }

/* Coming Soon / Closeouts menus: intro + up to four live products (filled by js/main.js) */
.mega-list-menu { grid-template-columns: minmax(0, 1.35fr) minmax(0, 4.5fr); }
.mega-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-content: start; }
.mega-product { display: grid; align-content: start; gap: 8px; }
.mega-product-media { display: block; aspect-ratio: 5 / 4; overflow: hidden; background: var(--color-product-bg); }
.mega-product-media img { width: 100%; height: 100%; object-fit: contain; padding: 10%; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.mega-product:hover .mega-product-media img { transform: scale(1.04); }
.mega-product-name { font-size: 14px; line-height: 1.4; }
.mega-product:hover .mega-product-name { text-decoration: underline; text-underline-offset: 4px; }
.mega-product-price { font-size: 13px; color: var(--color-muted); }
.mega-product.is-loading .mega-product-media { animation: shimmer 1.4s ease-in-out infinite; }
.mega-products-empty {
  grid-column: 1 / -1;
  align-self: start;
  max-width: 460px;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.3;
  color: var(--color-ink-soft);
}

/* Panel contents fade up in turn as a menu opens */
.mega-inner > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.has-mega:not(.is-closed):hover .mega-inner > *,
.has-mega:not(.is-closed):focus-within .mega-inner > * {
  opacity: 1;
  transform: none;
  transition-duration: .5s;
  transition-delay: calc(var(--n, 0) * 60ms + 80ms);
}
.mega-inner > :nth-child(2) { --n: 1; }
.mega-inner > :nth-child(3) { --n: 2; }
.mega-inner > :nth-child(4) { --n: 3; }
.mega-inner > :nth-child(n+5) { --n: 4; }

/* Moving from one tab to the next swaps panels at once instead of cross-fading two */
.main-nav > ul:has(.has-mega:hover) > .has-mega:not(:hover) > .mega { transition: none; }


/* Clear header: see-through at the top of every page, white on hover */
.site-header.is-transparent:not(:hover):not(:has(:focus-visible)) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

/* Over a photo (homepage hero, page banners) the text and logo turn white */
.has-hero .site-header.is-transparent:not(:hover):not(:has(:focus-visible)) { color: var(--color-white); }
.has-hero .site-header.is-transparent:not(:hover):not(:has(:focus-visible)) .header-top { border-bottom-color: rgba(255, 255, 255, .35); }
.has-hero .site-header.is-transparent:not(:hover):not(:has(:focus-visible)) .main-nav { border-bottom-color: rgba(255, 255, 255, .35); }
.has-hero .site-header.is-transparent:not(:hover):not(:has(:focus-visible)) .logo-dark { opacity: 0; }
.has-hero .site-header.is-transparent:not(:hover):not(:has(:focus-visible)) .logo-light { opacity: 1; }
.has-hero .site-header.is-transparent:not(:hover):not(:has(:focus-visible)) .action-search span,
.has-hero .site-header.is-transparent:not(:hover):not(:has(:focus-visible)) .action-dealer span,
.has-hero .site-header.is-transparent:not(:hover):not(:has(:focus-visible)) .action-login span { color: rgba(255, 255, 255, .9); }
.has-hero .site-header.is-transparent:not(:hover):not(:has(:focus-visible)) .cart-count { background: var(--color-white); color: var(--color-ink); }

/* Hovering the header reveals a solid white bar */
.site-header.is-transparent:hover,
.site-header.is-transparent:has(:focus-visible) { background: var(--color-white); }

/* Pull the hero / page banner up underneath the header */
.has-hero .hero,
.cb-page .cb-hero,
.has-hero .page-banner { margin-top: calc(-1 * (var(--header-top-h) + var(--header-nav-h))); }

/* Mobile navigation drawer ------------------------------------------------- */

.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(29, 26, 23, .4);
}
.mobile-nav[hidden] { display: none; }

.mobile-nav-panel {
  width: min(360px, 88vw);
  height: 100%;
  overflow-y: auto;
  background: var(--color-bg);
  padding: 22px var(--gutter) 40px;
  animation: slide-in .35s var(--ease);
}

@keyframes slide-in { from { transform: translateX(-100%); } to { transform: none; } }

.mobile-nav-close { margin-bottom: 24px; }
.mobile-nav-primary li { border-bottom: 1px solid var(--color-line); }
.mobile-nav-primary a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.1;
}
.mobile-nav-row { display: flex; align-items: center; }
.mobile-nav-row a { flex: 1; }
/* The "+" that opens a tab's own links (a "−" once open) */
.mobile-nav-more {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  margin-right: -12px;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}
.mobile-nav-more::before,
.mobile-nav-more::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .25s var(--ease);
}
.mobile-nav-more::after { transform: translate(-50%, -50%) rotate(90deg); }
.mobile-nav-more[aria-expanded="true"]::after { transform: translate(-50%, -50%) rotate(0deg); }
.mobile-nav-sub { padding: 0 0 18px; }
.mobile-nav-sub[hidden] { display: none; }
.mobile-nav-sub li { border-bottom: 0; }
.mobile-nav-sub a { padding: 7px 0; font-family: inherit; font-size: 15px; line-height: 1.4; }
.mobile-nav-heading {
  margin: 12px 0 4px;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .6;
}
.mobile-nav-sub .mobile-nav-heading:first-child { margin-top: 0; }
.mobile-nav-secondary { margin-top: 28px; display: grid; gap: 14px; font-size: 14px; font-weight: 400; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  height: clamp(520px, 80vh, 900px);
  overflow: hidden;
  background: #cfc6ba;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 220px;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .32), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
}

/* ==========================================================================
   Collections carousel
   ========================================================================== */

.collections { padding: 60px 0 64px; overflow: hidden; }

.carousel { position: relative; }

.carousel-track {
  display: flex;
  gap: 2%;
  padding-inline: 1.1%;
  transition: transform .8s var(--ease);
  will-change: transform;
}

.slide {
  position: relative;
  flex: 0 0 77.5%;
  height: clamp(420px, 41vw, 720px);
  overflow: hidden;
  background: #d8cfc4;
}

.slide:not(.is-active) { cursor: pointer; }

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.slide.is-active:hover img { transform: scale(1.015); }

.slide::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 45%;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.slide-caption {
  position: absolute;
  top: clamp(24px, 3vw, 44px);
  left: clamp(24px, 3vw, 44px);
  z-index: 2;
  color: var(--color-white);
}

.slide-caption h2 { font-size: clamp(30px, 3vw, 44px); }
.slide-caption p { margin-top: 10px; font-size: 15px; font-weight: 400; }

/* Hotspots */
.hotspot {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity .4s var(--ease) .3s;
}
.slide.is-active .hotspot { opacity: 1; }

.hotspot-btn {
  position: relative;
  width: 18px; height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 0 0 14px rgba(255, 255, 255, .28);
}

.hotspot-btn::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .6);
  animation: pulse 2.4s var(--ease) infinite;
}

@keyframes pulse {
  0% { transform: scale(.7); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* The card: the product's photo, name, live price, Add to cart and View. It opens above the dot,
   or below it near the top of the slide, and inwards near the sides (js/main.js sets the classes) */
.hotspot-card {
  --tx: -50%;
  position: absolute;
  left: 50%;
  bottom: calc(100% + 18px);
  z-index: 2;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  width: 320px;
  padding: 12px;
  border-radius: 14px;
  background: var(--color-white);
  color: var(--color-ink);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .2);
  opacity: 0;
  transform: translate(var(--tx), 8px);
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .3s var(--ease);
}
/* An invisible bridge to the dot, so the card stays open as the pointer moves onto it */
.hotspot-card::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 22px; }
.hotspot.is-below .hotspot-card { bottom: auto; top: calc(100% + 18px); transform: translate(var(--tx), -8px); }
.hotspot.is-below .hotspot-card::after { top: auto; bottom: 100%; }
.hotspot.is-left .hotspot-card { --tx: 0%; left: -16px; }
.hotspot.is-right .hotspot-card { --tx: 0%; left: auto; right: -16px; }
.hotspot:hover,
.hotspot:focus-within,
.hotspot.is-open { z-index: 6; }
.hotspot:hover .hotspot-card,
.hotspot:focus-within .hotspot-card,
.hotspot.is-open .hotspot-card {
  opacity: 1;
  transform: translate(var(--tx), 0);
  pointer-events: auto;
}
/* Closed after Add to cart, even while the pointer is still over it */
.hotspot.is-dismissed .hotspot-card { opacity: 0; transform: translate(var(--tx), 8px); pointer-events: none; }
.hs-media { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: #f3eee7; }
.hs-media img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.hs-body { display: grid; gap: 4px; min-width: 0; }
.hs-name { font-size: 14px; line-height: 1.3; }
.hs-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.hs-price { font-family: var(--font-display); font-size: 20px; }
.hs-actions { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.hs-add {
  padding: 8px 12px;
  border: 0;
  background: var(--color-ink);
  color: var(--color-white);
  font: inherit;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s var(--ease);
}
.hs-add:hover { background: #3a3a3a; }
.hs-add:disabled { opacity: .4; cursor: default; }
.hs-added-text { display: none; }
.hs-add.is-added .hs-add-text { display: none; }
.hs-add.is-added .hs-added-text { display: inline; }
.hs-view { font-size: 12px; white-space: nowrap; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
@media (max-width: 600px) {
  .hotspot-card { width: 250px; grid-template-columns: 70px 1fr; gap: 10px; padding: 10px; }
  .hs-price { font-size: 18px; }
}

/* Arrows + dots */
.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-ink);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
  transform: translateY(-50%);
  transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.carousel-arrow:hover { transform: translateY(-50%) scale(1.06); }
.carousel-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.carousel-arrow.prev { left: calc(1.1% + clamp(16px, 2.2vw, 32px)); }
.carousel-arrow.next { right: calc(1.1% + clamp(16px, 4vw, 80px)); }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}
.carousel-dots button {
  width: 7px; height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c9c3bb;
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.carousel-dots button[aria-selected="true"] { background: var(--color-ink); transform: scale(1.3); }

/* ==========================================================================
   Dealer CTA
   ========================================================================== */

.dealer-cta {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(420px, 32vw, 520px);
  overflow: hidden;
  color: var(--color-white);
  /* Acts as a window: clips the fixed image below to this box */
  clip-path: inset(0);
}

/* Pinned to the viewport, so the page scrolls past it (works on iOS, unlike background-attachment: fixed) */
.dealer-cta-img {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

.dealer-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(20, 16, 12, .62) 0%, rgba(20, 16, 12, .35) 45%, rgba(20, 16, 12, .05) 75%);
}

.dealer-cta-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  padding: 56px clamp(24px, 4vw, 56px);
}

.dealer-cta h2 { font-size: clamp(40px, 3.1vw, 60px); }
.dealer-cta p { margin: 26px 0 36px; font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .9); }

/* ==========================================================================
   New Intros
   ========================================================================== */

.new-intros { padding-top: clamp(64px, 7vw, 104px); padding-bottom: clamp(64px, 7vw, 104px); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}
.section-head h2 { font-size: clamp(44px, 2.4vw, 64px); }

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

.product-media {
  display: block;
  aspect-ratio: 4 / 5;
  background: var(--color-product-bg);
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10%;
  mix-blend-mode: multiply;
  transition: transform .6s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.035); }

/* Loading placeholder while products come in from BigCommerce */
.product-card.is-loading .product-media { animation: shimmer 1.4s ease-in-out infinite; }
.product-card.is-loading::after {
  content: '';
  display: block;
  width: 70%;
  height: 14px;
  margin-top: 18px;
  background: var(--color-sand);
}
@keyframes shimmer { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* Products without a photo yet (most of the BigCommerce catalog for now) */
.product-media:not(:has(img)),
.search-product-media:not(:has(img)),
.cart-line-media:not(:has(img)) {
  display: grid;
  place-items: center;
  background: var(--color-product-bg);
}
.product-media:not(:has(img))::after,
.search-product-media:not(:has(img))::after {
  content: 'Image coming soon';
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.product-card.is-loading .product-media::after { content: none; }

.product-name {
  margin-top: 18px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.product-price { font-size: 15px; font-weight: 400; }

.btn-add {
  min-width: 60px;
  padding: 10px 16px;
  border: 0;
  background: var(--color-ink);
  color: var(--color-white);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  transition: background-color .25s var(--ease);
}
.btn-add:hover { background: #4a433d; }
.btn-add:disabled { background: var(--color-olive); cursor: default; }

/* ==========================================================================
   Social
   ========================================================================== */

.social {
  border-top: 1px solid var(--color-line);
  padding: clamp(56px, 6vw, 88px) 0 clamp(64px, 7vw, 104px);
}

.social-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 2.3vw, 40px);
  line-height: 1.1;
  text-align: center;
  text-transform: uppercase;
  padding-inline: var(--gutter);
}
.social-title a { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.social-title a:hover { color: var(--color-muted); }

.social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: clamp(36px, 4vw, 56px);
}

.social-tile { display: block; aspect-ratio: 1; overflow: hidden; }
.social-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease), opacity .3s var(--ease);
}
.social-tile:hover img { transform: scale(1.04); opacity: .9; }

/* ==========================================================================
   Virtual showroom
   ========================================================================== */

.showroom {
  display: grid;
  grid-template-columns: 42.5fr 57.5fr;
  min-height: clamp(480px, 46vw, 680px);
  margin-bottom: clamp(64px, 7vw, 104px);
  background: var(--color-surface);
}

.showroom-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 56px clamp(24px, 2.4vw, 40px) 56px clamp(24px, 5.8vw, 86px);
}

.showroom-title { font-size: clamp(36px, 3.1vw, 50px); color: var(--color-olive); }
.showroom-copy p { margin: 26px 0 40px; max-width: 440px; color: var(--color-ink-soft); line-height: 1.7; }

.showroom-media { position: relative; overflow: hidden; }
.showroom-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Newsletter
   ========================================================================== */

.newsletter {
  background: var(--color-sand);
  padding: clamp(64px, 7vw, 96px) var(--gutter);
  text-align: center;
}

.newsletter h2 { font-size: clamp(38px, 3.4vw, 50px); }
.newsletter > p { margin-top: 18px; font-size: 14px; font-weight: 400; color: var(--color-ink-soft); }

.newsletter-form {
  display: flex;
  align-items: center;
  max-width: 446px;
  margin: 30px auto 0;
  border-bottom: 1px solid #bdb6ad;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--color-ink);
}
.newsletter-form input::placeholder { color: var(--color-muted); }
.newsletter-form input:focus { outline: none; }
.newsletter-form:focus-within { border-bottom-color: var(--color-ink); }

.newsletter-form button {
  padding: 12px 0 12px 16px;
  border: 0;
  background: none;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.newsletter-form button:hover { color: var(--color-muted); }

.newsletter-status { min-height: 22px; margin-top: 14px; font-size: 13px; color: var(--color-ink-soft); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--color-surface); padding: 64px 0 40px; }

.footer-logo { display: block; width: 130px; margin: 0 auto; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 40px;
  padding: 48px 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.footer-col h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 26px;
}

.footer-col ul { display: grid; gap: 14px; }
.footer-col a { font-size: 14px; color: var(--color-ink-soft); }
.footer-col a:hover { color: var(--color-ink); }

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  gap: 24px;
  padding-top: 36px;
  font-size: 13px;
  color: var(--color-ink-soft);
}
.footer-bottom p:last-child { text-align: right; }
.footer-contact a { text-decoration: underline; text-underline-offset: 2px; }
.footer-contact a.plain { text-decoration: none; }

/* ==========================================================================
   Dealer portal
   ========================================================================== */

.portal-page { background: var(--color-surface); }

.portal-frame {
  display: block;
  width: 100%;
  height: calc(100vh - var(--header-top-h) - var(--header-nav-h));
  height: calc(100dvh - var(--header-top-h) - var(--header-nav-h));
  min-height: 640px;
  border: 0;
}

/* Header is hidden on the portal page until the toggle opens it */
.portal-mode .announcement { display: none; }
.portal-mode:not(.header-open) .site-header { display: none; }
.portal-mode:not(.header-open) .portal-frame { height: 100vh; height: 100dvh; }

.portal-header-toggle {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px 7px;
  border: 0;
  border-radius: 0 0 8px 8px;
  background: var(--color-dark);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  transform: translateX(-50%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.portal-header-toggle:hover { background: #3a342f; }
.portal-header-toggle svg {
  width: 14px; height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s var(--ease);
}

/* When open, the tab hangs just below the header and the arrow flips */
.portal-mode.header-open .portal-header-toggle { top: calc(var(--header-top-h) + var(--header-nav-h)); }
.portal-mode.header-open .portal-header-toggle svg { transform: rotate(180deg); }


/* ==========================================================================
   Cart (drawer + cart page)
   ========================================================================== */

.btn-dark { background: var(--color-ink); color: var(--color-white); justify-content: center; }
.btn-dark:hover { background: #4a433d; }
.btn-block { display: flex; width: 100%; }

/* Drawer */
.cart-drawer { position: fixed; inset: 0; z-index: 200; }
.cart-drawer[hidden] { display: none; }

.cart-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 26, 23, .4);
  opacity: 0;
  transition: opacity .35s var(--ease);
}

.cart-drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  background: var(--color-bg);
  box-shadow: -12px 0 40px rgba(0, 0, 0, .12);
  transform: translateX(100%);
  transition: transform .35s var(--ease);
}

.cart-drawer.is-open .cart-drawer-backdrop { opacity: 1; }
.cart-drawer.is-open .cart-drawer-panel { transform: none; }

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--color-line);
}
.cart-drawer-head h2 { font-size: 30px; }

.cart-drawer-body { flex: 1; overflow-y: auto; padding: 0 24px; }

.cart-drawer-foot {
  display: grid;
  gap: 14px;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--color-line);
}

/* Cart lines (shared by drawer and page) */
.cart-lines { display: grid; }

.cart-line {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-line);
}
.cart-line:last-child { border-bottom: 0; }

.cart-line-media { aspect-ratio: 4 / 5; background: var(--color-product-bg); }
.cart-line-media img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }

.cart-line-name { font-size: 14px; font-weight: 400; line-height: 1.4; }
.cart-line-name a:hover { color: var(--color-muted); }
.cart-line-sku { margin-top: 4px; font-size: 12px; color: var(--color-muted); }
.cart-line-price { font-size: 14px; font-weight: 400; white-space: nowrap; }

.cart-line-controls { display: flex; align-items: center; gap: 16px; margin-top: 12px; }

.qty { display: inline-flex; align-items: center; border: 1px solid #cfc8bf; }
.qty button {
  width: 32px; height: 32px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 16px;
}
.qty button:hover { background: var(--color-sand); }
.qty input {
  width: 38px; height: 32px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  text-align: center;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cart-line-remove {
  padding: 0;
  border: 0;
  background: none;
  font-size: 12px;
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cart-line-remove:hover { color: var(--color-ink); }

.cart-empty { padding: 48px 0; text-align: center; color: var(--color-ink-soft); }

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 500;
}

.cart-note { font-size: 12px; line-height: 1.6; color: var(--color-muted); }

.cart-view-link {
  justify-self: center;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cart-view-link:hover { color: var(--color-muted); }

/* Cart page */
.cart-page { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(64px, 7vw, 104px); min-height: 60vh; }
.cart-page-title { font-size: clamp(44px, 2.4vw, 64px); margin-bottom: 32px; }

.cart-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.cart-lines-lg { border-top: 1px solid var(--color-line); }
.cart-lines-lg .cart-line { grid-template-columns: 120px 1fr auto; gap: 24px; padding: 28px 0; }
.cart-lines-lg .cart-line:last-child { border-bottom: 1px solid var(--color-line); }
.cart-lines-lg .cart-line-name { font-size: 16px; }
.cart-lines-lg .cart-line-price { font-size: 15px; }

.cart-summary {
  position: sticky;
  top: calc(var(--header-top-h) + var(--header-nav-h) + 24px);
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
}
.cart-summary h2 { font-size: 28px; }

.cart-page-empty { display: grid; justify-items: start; gap: 24px; color: var(--color-ink-soft); }

/* ==========================================================================
   Contact page
   ========================================================================== */

/* Image banner with title, reusable on other inner pages */
.page-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(280px, 30vw, 420px);
  overflow: hidden;
  color: var(--color-white);
  /* Acts as a window: clips the fixed image below to this box */
  clip-path: inset(0);
}

/* When the header sits over the banner, add its height so the visible banner stays the same size */
.has-hero .page-banner { min-height: calc(clamp(280px, 30vw, 420px) + var(--header-top-h) + var(--header-nav-h)); }

/* Pinned to the viewport so the page scrolls over it (same effect as the dealer banner) */
.page-banner-img {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center 55%;
}

.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(20, 16, 12, .6) 0%, rgba(20, 16, 12, .2) 55%, rgba(20, 16, 12, .1) 75%, rgba(20, 16, 12, .38) 100%);
}

.page-banner-content {
  position: relative;
  z-index: 2;
  padding-top: 48px;
  padding-bottom: clamp(36px, 4vw, 56px);
}
.page-banner h1 { font-size: clamp(48px, 5.4vw, 80px); }
.page-banner p { max-width: 520px; margin-top: 14px; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .9); }

/* Details + form */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  padding-top: clamp(56px, 6vw, 96px);
  padding-bottom: clamp(56px, 6vw, 96px);
}

.contact-details h2 { font-size: clamp(36px, 2.4vw, 50px); }
.contact-intro { margin-top: 18px; max-width: 420px; color: var(--color-ink-soft); line-height: 1.7; }

.contact-list { display: grid; gap: 28px; margin: 40px 0 0; }
.contact-list div { padding-top: 22px; border-top: 1px solid var(--color-line); }
.contact-list dt {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.contact-list dd { margin: 0; font-size: 16px; line-height: 1.7; }
.contact-list a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.contact-list a:hover { color: var(--color-muted); }

.contact-form-wrap {
  padding: clamp(28px, 3.5vw, 48px);
  background: var(--color-surface);
  border: 1px solid var(--color-line);
}

.contact-form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.field { display: grid; gap: 8px; }
.field label { font-size: 13px; font-weight: 400; }
.field label span { color: var(--color-muted); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 8px 14px;
  border: 1px solid #d6d0c7;
  border-radius: 0;
  background: var(--color-white);
  color: var(--color-ink);
  font: inherit;
  font-size: 15px;
  transition: border-color .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1a17' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--color-ink); }

.field [aria-invalid="true"] { border-color: #a2412f; }
.field-error { font-size: 12px; color: #a2412f; }

.contact-form .btn { justify-self: start; }
.contact-form .btn:disabled { opacity: .6; cursor: default; }

.form-status { min-height: 20px; font-size: 14px; color: var(--color-ink-soft); }
.form-status.is-error { color: #a2412f; }
.form-status a { text-decoration: underline; }

/* Help cards */
.help-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: clamp(64px, 7vw, 104px);
}

.help-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 36px 32px;
  background: var(--color-sand);
  transition: background-color .3s var(--ease);
}
.help-card:hover { background: #ddd6cc; }
.help-card h3 { font-size: 30px; }
.help-card p { color: var(--color-ink-soft); line-height: 1.6; }
.help-card .link-underline { justify-self: start; margin-top: 6px; }

/* ==========================================================================
   Search (header panel + results page)
   ========================================================================== */

.search-panel { position: fixed; inset: 0; z-index: 190; }
.search-panel[hidden] { display: none; }

.search-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 26, 23, .4);
  opacity: 0;
  transition: opacity .3s var(--ease);
}

.search-panel-sheet {
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
  padding: 28px 0 40px;
  background: var(--color-white);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .1);
  transform: translateY(-100%);
  transition: transform .3s var(--ease);
}

.search-panel.is-open .search-panel-backdrop { opacity: 1; }
.search-panel.is-open .search-panel-sheet { transform: none; }

.search-form {
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--color-ink);
}
.search-form > svg {
  flex: none;
  width: 20px; height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}
.search-form input {
  flex: 1;
  min-width: 0;
  padding: 10px 0;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 26px);
  color: var(--color-ink);
}
.search-form input::placeholder { color: #b3aca3; }
.search-form input:focus { outline: none; }
.search-form input::-webkit-search-cancel-button { display: none; }

.search-panel-results:not(:empty) { padding-top: 32px; }
.search-panel-results.is-loading { opacity: .5; transition: opacity .2s; }

.search-results-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
.search-results-grid:not(:has(.search-products)) { grid-template-columns: 1fr; }

.search-side { display: grid; gap: 32px; }

.search-group-title {
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.search-group-title span { margin-left: 6px; }

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

.search-product { display: grid; gap: 8px; align-content: start; }
.search-product-media { display: block; aspect-ratio: 4 / 5; background: var(--color-product-bg); overflow: hidden; }
.search-product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10%;
  mix-blend-mode: multiply;
  transition: transform .5s var(--ease);
}
.search-product:hover img { transform: scale(1.04); }
.search-product-name { font-size: 13px; font-weight: 400; line-height: 1.4; }
.search-product-meta { font-size: 12px; color: var(--color-ink-soft); }

.search-links { display: grid; gap: 2px; }
.search-link {
  display: flex;
  flex-direction: column;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 400;
}
.search-link small { font-size: 11px; font-weight: 300; color: var(--color-muted); }
.search-link:hover span { text-decoration: underline; text-underline-offset: 3px; }

.search-empty { font-size: 14px; color: var(--color-ink-soft); }
.search-empty a { text-decoration: underline; }

.search-all { display: inline-block; margin-top: 24px; font-size: 13px; }

/* Results page */
.search-page { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(64px, 7vw, 104px); min-height: 60vh; }
.search-page-title { font-size: clamp(30px, 2.8vw, 42px); margin-bottom: 24px; }
.search-form-page { margin-bottom: 48px; }
.search-form-page .btn { flex: none; padding: 10px 18px; font-size: 12px; }
.search-page .search-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.search-page .search-product-media { background: var(--color-product-bg); }

/* ==========================================================================
   Shop page
   ========================================================================== */

/* Listing-page banner: shorter than other banners. Like every page banner, the photo is fixed
   while the page scrolls over it. object-position picks which part of the photo is in view. */
.has-hero .page-banner-compact { min-height: calc(clamp(220px, 21vw, 320px) + var(--header-top-h) + var(--header-nav-h)); }
.page-banner-compact .page-banner-img { object-position: center 72%; transform: translateY(-24%); }

.page-banner-compact .page-banner-content { padding-bottom: clamp(28px, 3vw, 44px); }
.page-banner-compact h1 { font-size: clamp(44px, 4.6vw, 68px); }
.page-banner-compact p { margin-top: 8px; font-size: 14px; letter-spacing: .02em; }

.shop-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .8);
}
.shop-crumb a:hover { color: var(--color-white); text-decoration: underline; text-underline-offset: 3px; }
.shop-crumb span { opacity: .6; }

/* Highlight the current room in the main menu */
.main-nav > ul > li > a[aria-current="page"]::after { transform: scaleX(1); }

/* Room tabs */
.room-tabs {
  display: flex;
  gap: 8px;
  padding: 28px 0 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.room-tabs::-webkit-scrollbar { display: none; }

.room-tab {
  flex: none;
  padding: 9px 18px;
  border: 1px solid #d6d0c7;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.room-tab span { margin-left: 4px; font-size: 11px; color: var(--color-muted); }
.room-tab:hover { border-color: var(--color-ink); }
.room-tab[aria-current="true"] { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-white); }
.room-tab[aria-current="true"] span { color: rgba(255, 255, 255, .7); }

/* Toolbar (sticks below the header) */
.shop-toolbar {
  position: sticky;
  top: calc(var(--header-top-h) + var(--header-nav-h));
  z-index: 30;
  margin-top: 20px;
  background: rgba(247, 245, 240, .96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.shop-toolbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 60px;
}

.shop-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--color-ink);
  background: transparent;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.shop-filter-toggle:hover { background: var(--color-ink); color: var(--color-white); }
.shop-filter-toggle svg,
.shop-search svg {
  width: 16px; height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.shop-count { margin-right: auto; font-size: 13px; color: var(--color-ink-soft); }
.shop-count strong { font-weight: 500; color: var(--color-ink); }
/* While the rest of the catalog is still loading on a first visit */
.shop-page.is-partial .shop-count::after { content: ' · loading more…'; color: var(--color-muted); }

.shop-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 220px;
  border-bottom: 1px solid #cfc8bf;
  transition: border-color .2s var(--ease);
}
.shop-search:focus-within { border-color: var(--color-ink); }
.shop-search input {
  flex: 1;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
}
.shop-search input:focus { outline: none; }

.shop-sort { display: flex; align-items: center; gap: 8px; }
.shop-sort span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-muted); }
.shop-sort select {
  appearance: none;
  -webkit-appearance: none;
  padding: 6px 22px 6px 0;
  border: 0;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d1a17' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  color: var(--color-ink);
  cursor: pointer;
}

.shop-views { display: flex; gap: 2px; }
.shop-views button {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  padding: 0;
  border: 0;
  background: none;
  color: #b3aca3;
  transition: color .2s var(--ease);
}
.shop-views button:hover,
.shop-views button[aria-pressed="true"] { color: var(--color-ink); }
.shop-views svg { width: 18px; height: 18px; fill: currentColor; }

/* Active filter chips */
.shop-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-chips:not(:empty) { padding: 0 0 14px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--color-sand);
  font-size: 12px;
  font-weight: 400;
  transition: background-color .2s var(--ease);
}
.chip span { font-size: 14px; line-height: 1; color: var(--color-muted); }
.chip:hover { background: #ddd6cc; }

.chip-clear {
  padding: 6px 4px;
  border: 0;
  background: none;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--color-ink-soft);
}
.chip-clear:hover { color: var(--color-ink); }

/* Filters + grid layout */
.shop-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(28px, 3.5vw, 56px);
  padding-top: 32px;
  padding-bottom: clamp(64px, 7vw, 104px);
}
.shop-layout.filters-hidden { grid-template-columns: minmax(0, 1fr); }
.shop-layout.filters-hidden .shop-filters { display: none; }

.shop-filters {
  position: sticky;
  top: calc(var(--header-top-h) + var(--header-nav-h) + 84px);
  align-self: start;
  max-height: calc(100vh - var(--header-top-h) - var(--header-nav-h) - 104px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.shop-filters-head,
.shop-filters-foot { display: none; }

.filter-toggles { display: grid; gap: 4px; padding-bottom: 12px; }

.toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 14px;
  cursor: pointer;
}
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-track {
  position: relative;
  flex: none;
  width: 34px; height: 20px;
  border-radius: 999px;
  background: #d6d0c7;
  transition: background-color .2s var(--ease);
}
.toggle-track::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .15);
  transition: transform .2s var(--ease);
}
.toggle input:checked + .toggle-track { background: var(--color-ink); }
.toggle input:checked + .toggle-track::after { transform: translateX(14px); }
.toggle input:focus-visible + .toggle-track { outline: 2px solid var(--color-ink); outline-offset: 2px; }

.filter-group { border-top: 1px solid var(--color-line); }
.filter-group summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary::after {
  content: '';
  width: 7px; height: 7px;
  margin-left: auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s var(--ease);
}
.filter-group[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.filter-group-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--color-ink);
  color: var(--color-white);
  font-size: 10px;
  letter-spacing: 0;
}

.filter-options { display: grid; gap: 2px; padding-bottom: 12px; }

.check {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 14px;
  cursor: pointer;
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check-box {
  position: relative;
  width: 16px; height: 16px;
  border: 1px solid #b9b2a8;
  background: var(--color-white);
  transition: background-color .15s var(--ease), border-color .15s var(--ease);
}
.check input:checked + .check-box { background: var(--color-ink); border-color: var(--color-ink); }
.check input:checked + .check-box::after {
  content: '';
  position: absolute;
  left: 5px; top: 2px;
  width: 4px; height: 8px;
  border-right: 1.5px solid var(--color-white);
  border-bottom: 1.5px solid var(--color-white);
  transform: rotate(45deg);
}
.check input:focus-visible + .check-box { outline: 2px solid var(--color-ink); outline-offset: 2px; }
.check:hover .check-box { border-color: var(--color-ink); }
.check:has(input:disabled) { opacity: .4; cursor: default; }
.check-count { font-size: 12px; color: var(--color-muted); }

.filter-find {
  width: 100%;
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid #d6d0c7;
  background: var(--color-white);
  font: inherit;
  font-size: 13px;
}
.filter-find:focus { outline: none; border-color: var(--color-ink); }

.filter-more {
  margin: -4px 0 14px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--color-ink-soft);
}

/* Dual price slider */
.price-range { position: relative; height: 28px; margin: 4px 8px 12px; }
.price-track {
  position: absolute;
  top: 13px; left: 0; right: 0;
  height: 2px;
  background: #d6d0c7;
}
.price-fill {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--lo);
  right: calc(100% - var(--hi));
  background: var(--color-ink);
}
.price-range input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
.price-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--color-ink);
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
  pointer-events: auto;
  cursor: grab;
}
.price-range input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border: 1.5px solid var(--color-ink);
  border-radius: 50%;
  background: var(--color-white);
  pointer-events: auto;
  cursor: grab;
}
.price-range input[type="range"]::-moz-range-track { background: none; }
.price-range input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--color-ink); outline-offset: 2px; }

.price-inputs { display: flex; align-items: flex-end; gap: 10px; padding-bottom: 18px; }
.price-inputs label { flex: 1; display: grid; gap: 4px; }
.price-inputs span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-muted); }
.price-inputs input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d6d0c7;
  background: var(--color-white);
  font: inherit;
  font-size: 13px;
}
.price-inputs input:focus { outline: none; border-color: var(--color-ink); }
.price-dash { padding-bottom: 9px; }

/* Product grid */
.shop-layout { --cols: 3; }
.shop-layout[data-view="2"] { --cols: 2; }
.shop-layout[data-view="4"] { --cols: 4; }
.shop-layout.filters-hidden[data-view="3"] { --cols: 4; }
.shop-layout.filters-hidden[data-view="4"] { --cols: 5; }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 40px 16px;
}

.shop-card { display: grid; align-content: start; gap: 14px; }

.shop-card-media-wrap { position: relative; overflow: hidden; }

.shop-card-media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  background: var(--color-product-bg);
}
.shop-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 9%;
  mix-blend-mode: multiply;
  transition: transform .7s var(--ease);
}
.shop-card:hover .shop-card-media img { transform: scale(1.05); }

/* Every product frame keeps its exact 4:5 shape: the photo is pinned inside it,
   so a tall or wide image is scaled to fit instead of stretching the frame */
.shop-card-media,
.mega-product-media,
.product-media,
.cart-line-media,
.search-product-media,
.product-main {
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.shop-card-media img,
.mega-product-media img,
.product-media img,
.cart-line-media img,
.search-product-media img,
.product-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.shop-card-media:not(:has(img)) { background: var(--color-product-bg); }
.shop-card-placeholder {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.shop-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 9px;
  background: var(--color-white);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

/* Coming Soon / Closeouts pages label every card */
.shop-badge-coming-soon { background: var(--color-dark); color: var(--color-white); }
.shop-badge-closeouts { background: var(--color-olive); color: var(--color-white); }
/* Special Buys with a second line under the badge ("Manufacturing Change" on ZZZ SKUs) */
.shop-badge.shop-badge-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 0; background: none; }
.shop-badge-stack > span { padding: 4px 9px; }
.shop-badge-note { background: var(--color-white); color: var(--color-ink-soft); }
/* Closeouts keep their badge on every product card site-wide, and on their own product page */
.room-sku-media, .dine-option-media, .search-product-media, .sto-doors { position: relative; }
.room-sku-media .shop-badge, .dine-option-media .shop-badge, .lit-card-media .shop-badge, .sto-doors .shop-badge { z-index: 2; }
.search-product-media .shop-badge { top: 8px; left: 8px; }
.product-flags { margin: 0 0 10px; }
.product-flags .shop-badge { position: static; display: inline-block; }
.product-flags .shop-badge.shop-badge-stack { display: inline-flex; flex-direction: row; }

.shop-card-add {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  padding: 11px 12px;
  border: 0;
  background: var(--color-ink);
  color: var(--color-white);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), background-color .2s var(--ease);
}
.shop-card:hover .shop-card-add,
.shop-card:focus-within .shop-card-add { opacity: 1; transform: none; }
.shop-card-add:hover { background: #4a433d; }
.shop-card-add.is-added { background: var(--color-olive); opacity: 1; transform: none; }

@media (hover: none) {
  .shop-card-add { position: static; width: 100%; margin-top: 8px; opacity: 1; transform: none; }
}

.shop-card-body { display: grid; gap: 4px; }
.shop-card-eyebrow { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-muted); }
.shop-card-name { font-size: 14px; font-weight: 400; line-height: 1.45; }
.shop-card-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.shop-card-price { font-size: 14px; color: var(--color-ink-soft); }

.shop-card.is-loading .shop-card-media { background: #ece7e0; animation: shimmer 1.4s ease-in-out infinite; }
.shop-card.is-loading .shop-card-name { width: 70%; background: #ece7e0; }

/* Load more */
.shop-more { display: grid; justify-items: center; gap: 14px; margin-top: 56px; }
.shop-progress-text { font-size: 13px; color: var(--color-ink-soft); }
.shop-progress { width: 200px; height: 2px; background: #d6d0c7; }
.shop-progress span { display: block; height: 100%; background: var(--color-ink); transition: width .4s var(--ease); }
.btn-outline { border: 1px solid var(--color-ink); background: transparent; margin-top: 8px; }

.shop-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 80px 0;
  text-align: center;
  color: var(--color-ink-soft);
}
.shop-empty .display { font-size: 32px; color: var(--color-ink); }
.shop-empty a:not(.btn) { text-decoration: underline; }

/* ==========================================================================
   Product page
   ========================================================================== */

.product-page { padding-bottom: clamp(48px, 6vw, 88px); }

/* Cabinet bed product pages: a silent, looping film across the top */
.product-film { position: relative; height: clamp(240px, 48vh, 540px); overflow: hidden; background: var(--color-dark); }
.product-film[hidden] { display: none; }
.product-film-video { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; display: block; pointer-events: none; }
.product-film::after { content: ''; position: absolute; inset: 40% 0 0; background: linear-gradient(to top, rgba(0, 0, 0, .5), transparent); pointer-events: none; }
.product-film-text { position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(18px, 3vw, 36px); display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; color: var(--color-white); }
.product-film-title { font-size: clamp(24px, 3vw, 44px); line-height: 1.1; }
.product-film-link { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.product-film-link:hover { opacity: .8; }

.product-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0 20px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--color-muted);
}
.product-crumb a:hover { color: var(--color-ink); text-decoration: underline; text-underline-offset: 3px; }
.product-crumb span { opacity: .6; }

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

/* Gallery */
.product-gallery { position: sticky; top: calc(var(--header-top-h) + var(--header-nav-h) + 24px); }
.product-gallery.has-thumbs { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }

/* Thumbnails: exactly as tall as the main photo, scrolling on their own when there are many */
.product-thumbs {
  position: relative;
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 10px;
  height: 0;
  min-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.product-thumbs::-webkit-scrollbar { display: none; }
.product-thumb {
  display: block;
  padding: 0;
  border: 1px solid transparent;
  background: var(--color-product-bg);
  opacity: .65;
  transition: border-color .2s var(--ease), opacity .2s var(--ease);
}
/* The photo sets the thumbnail's 4:5 shape, so the strip can't squash the rows */
.product-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.product-thumb.is-photo img { object-fit: cover; padding: 0; mix-blend-mode: normal; }
.product-thumb[aria-selected="true"],
.product-thumb:hover { border-color: var(--color-ink); opacity: 1; }

/* Main photos: a swipeable slider */
.product-stage { position: relative; min-width: 0; }
.product-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.product-track::-webkit-scrollbar { display: none; }
.product-track:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 4px; }
.product-track > .product-main { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }

.product-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--color-bg);
  color: var(--color-ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity .25s var(--ease), background-color .2s var(--ease);
}
.product-nav.prev { left: 14px; }
.product-nav.next { right: 14px; }
.product-stage:hover .product-nav,
.product-nav:focus-visible { opacity: 1; }
.product-nav:hover { background: var(--color-white); }
.product-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.product-count {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(247, 245, 240, .9);
  font-size: 12px;
  letter-spacing: .08em;
  pointer-events: none;
}

/* Touch screens swipe, so the arrows aren't needed */
@media (hover: none) { .product-nav { display: none; } }


.product-main {
  --zx: 50%;
  --zy: 50%;
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: calc(100vh - var(--header-top-h) - var(--header-nav-h) - 48px);
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--color-product-bg);
  cursor: zoom-in;
}
.product-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7%;
  mix-blend-mode: multiply;
  transform-origin: var(--zx) var(--zy);
  transition: transform .35s var(--ease);
}
.product-main.is-zoomed img { transform: scale(1.9); }

/* Room photos fill the frame instead of the cut-out padding + blend */
.product-main.is-photo img { padding: 0; mix-blend-mode: normal; }

.product-main-hint {
  position: absolute;
  right: 16px; bottom: 16px;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-bg);
  opacity: .9;
  transition: opacity .2s var(--ease);
}
.product-main.is-zoomed .product-main-hint { opacity: 0; }
.product-main-hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }

.product-main-empty { cursor: default; background: var(--color-product-bg); }
.product-main-empty span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--color-muted); }
.product-main.is-loading { cursor: default; background: #ece7e0; animation: shimmer 1.4s ease-in-out infinite; }

/* Info column */
.product-info { display: grid; align-content: start; gap: 14px; padding-top: 8px; }
.product-info.is-loading > * { width: 60%; background: #ece7e0; animation: shimmer 1.4s ease-in-out infinite; }

.product-eyebrow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.product-eyebrow a:hover { color: var(--color-ink); }

.product-title { font-size: clamp(34px, 3.2vw, 48px); line-height: 1.08; }
.product-sku { font-size: 12px; letter-spacing: .06em; color: var(--color-muted); }

.product-detail-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 6px;
  font-size: 22px;
  font-weight: 400;
}
.product-detail-price s { font-size: 15px; color: var(--color-muted); }
.product-detail-price-note { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-muted); }

.stock { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-ink-soft); }
.stock span { width: 8px; height: 8px; border-radius: 50%; }
.stock-in span { background: #5f7d55; box-shadow: 0 0 0 3px rgba(95, 125, 85, .18); }
.stock-out span { background: #b98a3e; box-shadow: 0 0 0 3px rgba(185, 138, 62, .18); }

.product-buy { display: flex; gap: 10px; margin-top: 12px; }
.qty-lg button { width: 44px; height: 52px; font-size: 18px; }
.qty-lg input { width: 48px; height: 52px; font-size: 15px; }
.product-add { flex: 1; justify-content: center; height: 54px; letter-spacing: .12em; }
.product-add.is-added,
.product-bar .btn.is-added { background: var(--color-olive); }

.product-quote {
  justify-self: start;
  padding: 4px 0;
  border: 0;
  background: none;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.product-quote:hover { color: var(--color-muted); }

.product-assurances {
  display: grid;
  gap: 12px;
  margin: 14px 0 6px;
  padding: 20px 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  font-size: 13px;
  color: var(--color-ink-soft);
}
.product-assurances li { display: flex; align-items: center; gap: 12px; }
.product-assurances svg {
  flex: none;
  width: 18px; height: 18px;
  fill: none;
  stroke: var(--color-ink);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.product-assurances a { text-decoration: underline; text-underline-offset: 3px; }

.product-acc { border-bottom: 1px solid var(--color-line); }
.product-acc summary {
  display: flex;
  align-items: center;
  padding: 18px 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}
.product-acc summary::-webkit-details-marker { display: none; }
.product-acc summary::after {
  content: '+';
  margin-left: auto;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0;
  transition: transform .2s var(--ease);
}
.product-acc[open] summary::after { transform: rotate(45deg); }
/* A section that isn't available yet: same row as a summary, with a tag and nothing to open */
.product-acc-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.product-acc-tag { font-size: 11px; letter-spacing: .14em; color: var(--color-muted); white-space: nowrap; }
.product-acc-body { padding-bottom: 20px; font-size: 14px; line-height: 1.75; color: var(--color-ink-soft); }
.product-acc-body p + p { margin-top: 10px; }
.product-acc-body a { text-decoration: underline; text-underline-offset: 3px; }
.product-acc-body ul { padding-left: 18px; list-style: disc; }

.spec-list { display: grid; margin: 0; }
.spec-list div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-top: 1px solid var(--color-line); }
.spec-list div:first-child { border-top: 0; }
.spec-list dt { color: var(--color-muted); }
.spec-list dd { margin: 0; text-align: right; color: var(--color-ink); }

.product-share {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 6px 0;
  border: 0;
  background: none;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}
.product-share:hover { color: var(--color-ink); }
.product-share svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.product-missing { grid-column: 1 / -1; display: grid; justify-items: start; gap: 18px; padding: 64px 0 40px; max-width: 560px; color: var(--color-ink-soft); }
.product-missing h1 { font-size: clamp(36px, 3.4vw, 50px); color: var(--color-ink); }
.product-missing a:not(.btn) { text-decoration: underline; }

/* Product rows (collection / related / recently viewed) */
.product-section { padding-top: clamp(56px, 6vw, 96px); }
.product-section .section-head h2 { font-size: clamp(30px, 2.8vw, 42px); }
.product-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 16px;
}

/* Sticky add-to-cart bar */
.product-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  background: rgba(253, 252, 249, .97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--color-line);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .05);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}
.product-bar.is-visible { transform: none; }
.product-bar-inner { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.product-bar-img { width: 48px; height: 56px; object-fit: contain; background: var(--color-product-bg); mix-blend-mode: multiply; }
.product-bar-text { flex: 1; min-width: 0; }
.product-bar-name { font-size: 14px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-bar-price { font-size: 13px; color: var(--color-ink-soft); }
.product-bar .btn { padding: 14px 28px; }

/* Full-screen photo view */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(253, 252, 249, .98);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility 0s linear .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
/* The stage has a fixed size, so the photo always fits whole until zoomed */
.lightbox-stage {
  position: absolute;
  inset: 84px 96px 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}
.lightbox-stage img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  mix-blend-mode: multiply;
  cursor: zoom-in;
  transform-origin: center center;
  transition: transform .25s var(--ease);
  -webkit-user-drag: none;
}
.lightbox.is-zoomed .lightbox-stage img { cursor: grab; }
.lightbox.is-dragging .lightbox-stage img { cursor: grabbing; transition: none; }
.lightbox-zoom {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--color-white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}
.lightbox-zoom button {
  width: 36px; height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 20px;
  line-height: 1;
}
.lightbox-zoom button:hover:not(:disabled) { background: rgba(0, 0, 0, .05); }
.lightbox-zoom button:disabled { opacity: .35; cursor: default; }
.lightbox-zoom .lightbox-zoom-level { width: auto; min-width: 52px; padding: 0 8px; border-radius: 999px; font-size: 13px; }
.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
  font-size: 26px;
  line-height: 1;
}
.lightbox-close { top: 20px; right: 20px; }
.lightbox-nav.prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close,
.lightbox-nav { z-index: 1; }
.lightbox-count { position: absolute; top: 34px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 13px; color: var(--color-muted); }

/* ==========================================================================
   Wishlist
   ========================================================================== */

/* Header badge (same look as the cart count) */
.wish-count {
  position: absolute;
  top: -6px; right: -8px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--color-ink);
  color: var(--color-bg);
  font-size: 10px;
  font-weight: 500;
  line-height: 16px;
  text-align: center;
}
.has-hero .site-header.is-transparent:not(:hover):not(:has(:focus-visible)) .wish-count { background: var(--color-white); color: var(--color-ink); }

/* Heart button on product cards */
.product-card { position: relative; }
.wish-toggle {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .85);
  color: var(--color-ink);
  transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.wish-toggle:hover { background: var(--color-white); transform: scale(1.06); }
.wish-toggle svg {
  width: 18px; height: 18px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
  transition: fill .2s var(--ease);
}
.wish-toggle[aria-pressed="true"] svg { fill: currentColor; }
.wish-toggle[aria-pressed="true"] { animation: wish-pop .3s var(--ease); }
@keyframes wish-pop { 50% { transform: scale(1.18); } }

/* Larger heart beside Add to cart on the product page */
.wish-toggle-lg {
  position: static;
  flex: none;
  width: 54px; height: 54px;
  border: 1px solid #cfc8bf;
  border-radius: 0;
  background: transparent;
}
.wish-toggle-lg:hover { background: transparent; border-color: var(--color-ink); transform: none; }
.wish-toggle-lg svg { width: 20px; height: 20px; }

/* Wishlist page */
.wishlist-page { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(64px, 7vw, 104px); min-height: 60vh; }
.wishlist-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  margin-bottom: 32px;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.wishlist-count { font-size: 14px; color: var(--color-ink-soft); }
.wishlist-count strong { font-weight: 500; color: var(--color-ink); }
.wishlist-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.wishlist-actions .btn { padding: 12px 20px; }
.wishlist-actions .btn-outline { margin-top: 0; }
.wishlist-grid { --cols: 4; }
.wishlist-add { margin-top: 10px; padding: 11px 12px; font-size: 11px; letter-spacing: .16em; }
.wishlist-empty { display: grid; justify-items: start; gap: 24px; color: var(--color-ink-soft); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1100px) {
  .utility-nav,
  .main-nav { display: none; }

  .menu-toggle { display: inline-grid; justify-self: start; }

  .action-search span,
  .action-dealer span,
  .action-login span { display: none; }

  .header-actions { gap: 18px; }

  .has-hero .site-header.is-transparent:not(:hover):not(:has(:focus-visible)) .header-top { border-bottom-color: transparent; }

  .has-hero .hero,
  .cb-page .cb-hero,
  .has-hero .page-banner { margin-top: calc(-1 * var(--header-top-h)); }
  .has-hero .page-banner { min-height: calc(clamp(280px, 30vw, 420px) + var(--header-top-h)); }

  .portal-frame { height: calc(100dvh - var(--header-top-h)); }

  .has-hero .page-banner-compact { min-height: calc(clamp(200px, 30vw, 300px) + var(--header-top-h)); }
  .shop-toolbar { top: var(--header-top-h); }
  .shop-layout,
  .shop-layout.filters-hidden { grid-template-columns: minmax(0, 1fr); }
  .shop-layout.filters-hidden .shop-filters { display: block; }
  .shop-layout[data-view] { --cols: min(var(--view-cols, 3), 3); }
  .shop-layout[data-view="2"] { --view-cols: 2; }

  .product-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .product-gallery { top: calc(var(--header-top-h) + 16px); }
  .product-main { max-height: none; }
  .product-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-row .shop-card:nth-child(4) { display: none; }
  .shop-views button[data-view="4"] { display: none; }

  .shop-filters {
    position: fixed;
    inset: 0;
    z-index: 160;
    align-self: stretch;
    max-height: none;
    overflow: hidden;
    background: rgba(29, 26, 23, .4);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility 0s linear .3s;
  }
  .shop-filters.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
  .shop-filters-panel {
    display: flex;
    flex-direction: column;
    width: min(380px, 90vw);
    height: 100%;
    background: var(--color-bg);
    transform: translateX(-100%);
    transition: transform .3s var(--ease);
  }
  .shop-filters.is-open .shop-filters-panel { transform: none; }
  .shop-filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--color-line);
  }
  .shop-filters-head h2 { font-size: 28px; }
  .shop-filters-body { flex: 1; overflow-y: auto; padding: 16px 22px; }
  .shop-filters-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 22px;
    border-top: 1px solid var(--color-line);
  }
  .shop-filters-foot .btn { flex: 1; justify-content: center; }
  
  .portal-mode.header-open .portal-header-toggle { top: var(--header-top-h); }
  

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }

  .footer-cols { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
}

@media (max-width: 760px) {
  :root { --header-top-h: 60px; }

  .logo { width: 116px; }

  .announcement { font-size: 11px; }

  .header-actions { gap: 14px; }
  .header-actions .icon-btn[aria-label="Wishlist"] { display: none; }

  .hero { height: 70vh; min-height: 420px; }

  .collections { padding-bottom: 48px; }
  .carousel-track { gap: 3%; padding-inline: var(--gutter); }
  .slide { flex-basis: 86%; height: 118vw; max-height: 560px; }
  .carousel-arrow { width: 42px; height: 42px; }
  .carousel-arrow.prev { left: calc(var(--gutter) + 12px); }
  .carousel-arrow.next { right: calc(14% + 12px); }

  .dealer-cta { min-height: 520px; align-items: flex-end; }
  .dealer-cta::before { background: linear-gradient(0deg, rgba(20, 16, 12, .72) 0%, rgba(20, 16, 12, .3) 70%, rgba(20, 16, 12, .1) 100%); }
  .dealer-cta-content { padding: 32px 24px; }

  .section-head { margin-bottom: 24px; }

  .product-grid { gap: 10px; row-gap: 32px; }
  .product-name { font-size: 14px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .product-meta { flex-wrap: wrap; gap: 10px; }
  .product-price { font-size: 14px; }

  .social-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }

  .cart-page-grid { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-lines-lg .cart-line { grid-template-columns: 84px 1fr; gap: 16px; }
  .cart-lines-lg .cart-line-price { grid-column: 2; }

  .contact-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .help-cards { grid-template-columns: 1fr; }
  .contact-form .btn { justify-self: stretch; justify-content: center; }

  .search-results-grid { grid-template-columns: 1fr; }
  .search-products,
  .search-page .search-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-form-page .btn { display: none; }


  .shop-toolbar-inner { flex-wrap: wrap; gap: 10px 14px; padding-top: 10px; padding-bottom: 10px; }
  .shop-count { order: 1; width: 100%; margin: 0; font-size: 12px; }
  .shop-filter-toggle { order: 2; }
  .shop-sort { order: 3; margin-left: auto; }
  .shop-sort span { display: none; }
  .shop-views { display: none; }
  .shop-search { order: 5; width: 100%; }
  .shop-layout[data-view] { --cols: 2; }
  .shop-grid { gap: 32px 10px; }
  .shop-card-name, .shop-card-price { font-size: 13px; }
  .shop-filters { top: 0; }

  .product-layout { grid-template-columns: 1fr; gap: 24px; }
  .product-gallery { position: static; }
  .product-gallery.has-thumbs .product-thumbs { order: 2; grid-auto-flow: column; grid-auto-columns: 64px; height: auto; min-height: 0; overflow-x: auto; overflow-y: hidden; }
  .product-gallery.has-thumbs .product-thumbs { order: 2; grid-auto-flow: column; grid-auto-columns: 64px; overflow-x: auto; }
  .product-crumb { padding: 16px 0 14px; }
  .product-title { font-size: 32px; }
  .product-row {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-right: calc(-1 * var(--gutter));
    padding-right: var(--gutter);
    scrollbar-width: none;
  }
  .product-row::-webkit-scrollbar { display: none; }
  .product-row .shop-card { scroll-snap-align: start; }
  .product-row .shop-card:nth-child(4) { display: grid; }
  .product-bar-img { display: none; }
  .product-bar .btn { padding: 13px 18px; }
  .lightbox-stage { inset: 80px 12px 88px; }
  .lightbox-nav.prev, .lightbox-nav.next { top: auto; bottom: 24px; transform: none; width: 44px; height: 44px; }
  .lightbox-nav.prev { left: 16px; }
  .lightbox-nav.next { right: 16px; }

  .wishlist-grid { --cols: 2; }
  .wishlist-actions { width: 100%; }
  .wishlist-actions .btn { flex: 1; justify-content: center; }

  .showroom { grid-template-columns: 1fr; }
  .showroom-media { order: -1; aspect-ratio: 4 / 3; }
  .showroom-copy { padding: 40px 24px 48px; }

  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }

  .footer-bottom { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-bottom p:last-child { text-align: center; }
}

/* ==========================================================================
   Dealer application
   ========================================================================== */

.dealer-steps { padding-top: clamp(56px, 6vw, 96px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { padding-top: 22px; border-top: 1px solid var(--color-line); }
.step-num { font-size: 11px; letter-spacing: .16em; color: var(--color-muted); }
.steps h2 { margin: 10px 0 8px; font-family: var(--font-display); font-size: 30px; font-weight: 400; }
.steps p { color: var(--color-ink-soft); line-height: 1.6; }

.doc-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; }
.doc-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.doc-card:hover { border-color: var(--color-ink); transform: translateY(-2px); }
.doc-tag {
  justify-self: start;
  padding: 4px 10px;
  background: var(--color-dark);
  color: var(--color-white);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.doc-card + .doc-card .doc-tag { background: var(--color-sand); color: var(--color-ink); }
.doc-card h3 { font-family: var(--font-display); font-size: 28px; font-weight: 400; }
.doc-card p { color: var(--color-ink-soft); line-height: 1.6; }
.doc-link { margin-top: 6px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }

.dealer-form-section { padding: clamp(56px, 6vw, 96px) 0 clamp(64px, 7vw, 104px); }
.dealer-form-section .contact-form-wrap { max-width: 760px; margin: 0 auto; }
.dealer-form-section h2 { margin-bottom: 32px; font-size: clamp(36px, 2.4vw, 50px); }

/* Radio / checkbox options */
.choice-group { margin: 0; padding: 0; border: 0; }
.choice-group legend { margin-bottom: 10px; font-size: 13px; }
.field .choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #d6d0c7;
  background: var(--color-white);
  font-size: 15px;
  cursor: pointer;
  transition: border-color .2s var(--ease);
}
.field .choice:has(input:checked) { border-color: var(--color-ink); }
/* Radios and checkboxes: undo the full-width text-box styles from `.field input` */
.field .choice input {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  border: 1px solid #b9b2a8;
  border-radius: 50%;
  background: var(--color-white);
  cursor: pointer;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field .choice input[type="checkbox"] { border-radius: 0; }
.field .choice input:checked {
  border-color: var(--color-dark);
  background: var(--color-dark);
  box-shadow: inset 0 0 0 4px var(--color-white);
}
.field .choice input:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; }

.choice small { display: block; margin-top: 4px; font-size: 12px; color: var(--color-muted); }

.dealer-note { padding: 16px 18px; background: var(--color-sand); font-size: 14px; line-height: 1.6; }
.dealer-note a { text-decoration: underline; }

/* File uploads */
.field-hint { font-size: 12px; line-height: 1.5; color: var(--color-muted); }
.field input[type="file"] { padding: 12px 14px; border-style: dashed; background: var(--color-surface); cursor: pointer; }
.field input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 8px 14px;
  border: 0;
  background: var(--color-dark);
  color: var(--color-white);
  font: inherit;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}
.file-list { display: grid; gap: 4px; font-size: 13px; color: var(--color-ink-soft); }
.file-list:empty { display: none; }

/* New Account Application: sections, grouped rows and the associates list */
.form-section-title {
  margin-top: 14px;
  padding-top: 30px;
  border-top: 1px solid var(--color-line);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
}
.form-section-title.is-first { margin-top: 0; padding-top: 0; border-top: 0; }
.form-subtitle { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-muted); }
.form-intro { font-size: 14px; line-height: 1.6; color: var(--color-ink-soft); }
.form-group { display: grid; gap: 22px; }
.form-group-tight { gap: 10px; }
.form-group[hidden] { display: none; }
.dealer-form-section .form-row { align-items: start; }
.form-row-3 { grid-template-columns: 2fr 1fr 1fr; }
.form-row-rsa { grid-template-columns: 1fr 1fr 1.4fr; gap: 10px; }
.choice-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.choice-row-2 { grid-template-columns: 1fr 1fr; }
.form-add {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-ink);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.form-add[hidden] { display: none; }

/* The application one section at a time (js/dealer-application.js adds .is-stepped) */
.form-step[hidden] { display: none; }
.form-step-count {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-body, inherit);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-muted);
}
form:not(.is-stepped) .form-step-count { display: none; }
.is-stepped .form-section-title { margin-top: 0; padding-top: 0; border-top: 0; outline: none; }
.form-progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.form-progress[hidden] { display: none; }
.form-progress li {
  padding-top: 10px;
  border-top: 2px solid #d6d0c7;
  font-size: 12px;
  line-height: 1.4;
  color: var(--color-muted);
}
.form-progress li.is-done { border-color: var(--color-ink-soft); color: var(--color-ink-soft); }
.form-progress li.is-current { border-color: var(--color-ink); color: var(--color-ink); }
.form-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.form-nav .btn[hidden] { display: none; }
.form-nav #dealerBack { border: 1px solid var(--color-ink); background: none; color: var(--color-ink); justify-content: center; }
.form-nav #dealerBack:hover { background: var(--color-ink); color: var(--color-white); }

/* The Terms of Sale and Credit, read above the signature */
.terms-box {
  max-height: 360px;
  overflow-y: auto;
  padding: 20px 22px;
  border: 1px solid #d6d0c7;
  background: var(--color-white);
}
.terms-box:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; }
.terms-box ol { display: grid; gap: 12px; margin: 0; padding-left: 22px; list-style: decimal; }
.terms-box li { font-size: 14px; line-height: 1.65; color: var(--color-ink-soft); }
.terms-box a { text-decoration: underline; }

@media (max-width: 760px) {
  .steps, .doc-cards { grid-template-columns: 1fr; }
  .form-row-3, .form-row-rsa, .choice-row-2 { grid-template-columns: 1fr; }
  .choice-row { grid-template-columns: 1fr 1fr; }
  .form-row-rsa { padding-bottom: 12px; }
  .form-progress li { font-size: 0; }
  .form-progress li.is-current { font-size: 12px; grid-column: auto; white-space: nowrap; }
  .form-nav .btn { flex: 1; }
}

/* ==========================================================================
   Motion (driven by js/motion.js; the <head> script adds .motion / .intro to <html>)
   ========================================================================== */

/* ---------- Smooth scroll (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------- Intro: logo draws in, then the curtain lifts (first visit per session) ---------- */
.intro::before,
.intro::after {
  content: '';
  position: fixed;
  z-index: 1001;
  pointer-events: none;
}
.intro::before {
  inset: 0;
  background: var(--color-bg);
  clip-path: inset(0 0 0 0);
  animation: intro-curtain 1s cubic-bezier(.76, 0, .24, 1) 1.2s forwards;
}
.intro::after {
  left: 50%;
  top: 50%;
  width: min(260px, 56vw);
  aspect-ratio: 190 / 66;
  translate: -50% -50%;
  background: url(../assets/logo/lineage-logo-black.svg) center / contain no-repeat;
  animation: intro-logo 1.5s var(--ease) both;
}
@keyframes intro-curtain { to { clip-path: inset(0 0 100% 0); } }
@keyframes intro-logo {
  0%       { opacity: 0; clip-path: inset(0 100% 0 0); }
  50%, 72% { opacity: 1; clip-path: inset(0 0 0 0); transform: none; }
  100%     { opacity: 0; clip-path: inset(0 0 0 0); transform: translateY(-24px); }
}
.intro .hero-img { animation: hero-in 2.2s var(--ease) 1.25s backwards; }
@keyframes hero-in { from { transform: scale(1.25); } }

/* ---------- Reveals ---------- */
/* Hidden until revealed */
.motion [data-reveal]:not(.is-visible),
.motion [data-reveal-stagger]:not(.is-visible) > :not([data-split]) { opacity: 0; }

.motion [data-reveal].is-visible,
.motion [data-reveal-stagger].is-visible > :not([data-split]) {
  animation: rise 1.1s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 90ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }

/* Stagger: each child starts a little after the one before it */
[data-reveal-stagger] > :nth-child(2) { --i: 1; }
[data-reveal-stagger] > :nth-child(3) { --i: 2; }
[data-reveal-stagger] > :nth-child(4) { --i: 3; }
[data-reveal-stagger] > :nth-child(5) { --i: 4; }
[data-reveal-stagger] > :nth-child(6) { --i: 5; }
[data-reveal-stagger] > :nth-child(7) { --i: 6; }
[data-reveal-stagger] > :nth-child(n+8) { --i: 7; }

/* Split headings: each word rises out of its own mask */
.motion [data-split] .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .1em;
  margin-bottom: -.1em;
}
.motion [data-split] .wi {
  display: inline-block;
  transform: translateY(110%) rotate(5deg);
  transform-origin: left bottom;
}
.motion [data-split].is-visible .wi {
  transform: none;
  transition: transform 1.2s var(--ease) calc(var(--wi) * 80ms);
}

/* Images: wiped in while the photo settles from a zoom */
.motion [data-reveal="image"].is-visible { animation: wipe 1.4s var(--ease) backwards; }
.motion [data-reveal="image"].is-visible img { animation: settle 1.8s var(--ease) backwards; }
@keyframes wipe { from { clip-path: inset(0 0 0 100%); } }
@keyframes settle { from { transform: scale(1.15); } }

/* ---------- Hero: pulls back into a framed panel as you scroll (--hero-p 0 → 1) ---------- */
.motion .hero {
  clip-path: inset(0 calc(var(--hero-p, 0) * 3%) 0 round 0 0 calc(var(--hero-p, 0) * 48px) calc(var(--hero-p, 0) * 48px));
}
.motion .hero-img {
  transform: translateY(calc(var(--hero-p, 0) * 22%)) scale(calc(1.02 + var(--hero-p, 0) * .12));
  will-change: transform;
}
.hero-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 3vw, 36px);
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 12px;
  translate: -50% 0;
  color: var(--color-white);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: calc(1 - var(--hero-p, 0) * 5);
  pointer-events: none;
}
.hero-cue i {
  position: relative;
  width: 1px;
  height: 52px;
  overflow: hidden;
  background: rgba(255, 255, 255, .3);
}
.hero-cue i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-white);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue {
  0%        { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ---------- Carousel: inactive slides sit zoomed in and ease out when they arrive ---------- */
.motion .slide:not(.is-active) img { transform: scale(1.12); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding: clamp(8px, 1.5vw, 24px) 0 clamp(40px, 5vw, 72px);
  user-select: none;
}
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-item {
  padding: 0 .3em;
  font-family: var(--font-display);
  font-size: clamp(40px, 2.5vw, 96px);
  font-weight: 400;
  line-height: 1.05;
  white-space: nowrap;
  color: var(--color-ink);
}
.marquee-item.is-outline {
  font-style: italic;
  color: transparent;
  -webkit-text-stroke: 1px var(--color-ink);
}
.marquee-star { font-size: clamp(14px, 1.3vw, 22px); color: var(--color-olive); }

/* ---------- Scroll progress line ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 55;
  height: 2px;
  background: var(--color-olive);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* ---------- Carousel drag ---------- */
.has-cursor .carousel-track { transition: transform .8s var(--ease), translate .8s var(--ease); }
.has-cursor .carousel-track.is-dragging { transition: transform .8s var(--ease); user-select: none; }
.slide img { -webkit-user-drag: none; }

/* ---------- 3D tilt + glare on photos (mouse only) ---------- */
.has-cursor :is(.product-media, .social-tile) {
  position: relative;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .7s var(--ease);
}
.has-cursor :is(.product-media, .social-tile).is-tilting { transition-duration: .2s; }
.has-cursor :is(.product-media, .social-tile)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 55%);
  mix-blend-mode: soft-light;
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.has-cursor :is(.product-media, .social-tile).is-tilting::after { opacity: 1; }

/* ---------- Parallax: give the showroom photo room to drift inside its frame ---------- */
.motion .showroom-media img { top: -12%; height: 124%; }

/* ---------- Page transitions between pages (browsers that support them) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: page-out .45s cubic-bezier(.76, 0, .24, 1) both; }
  ::view-transition-new(root) { animation: page-in .7s var(--ease) .1s both; }
}
@keyframes page-out { to { opacity: 0; transform: translateY(-28px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(28px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================================================
   Brand pages (brands.html, brand-*.html) — scripts in js/brand.js
   Each brand page sets its own --brand-accent / --brand-tint / --brand-deep on <main>.
   ========================================================================== */

.brand-page {
  --brand-accent: var(--color-olive);
  --brand-tint: var(--color-sand);
  --brand-deep: var(--color-dark);
  --header-h: calc(var(--header-top-h) + var(--header-nav-h));
  --intro-delay: 0s;
  overflow-x: clip;
}
.intro .brand-page { --intro-delay: 1.3s; }

.brand-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.brand-eyebrow::before { content: ''; width: 36px; height: 1px; background: currentColor; opacity: .6; }

/* ---------- Hero ---------- */
.brand-hero.hero {
  height: max(640px, calc(100svh - 36px)); /* full screen below the announcement bar */
  background: var(--brand-deep);
  color: var(--color-white);
}
.brand-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to top, rgba(12, 10, 8, .72) 0%, rgba(12, 10, 8, .25) 45%, rgba(12, 10, 8, 0) 70%),
    linear-gradient(to right, rgba(12, 10, 8, .35), rgba(12, 10, 8, 0) 60%);
  pointer-events: none;
}
.brand-hero .hero-img { position: absolute; inset: 0; object-position: center 55%; }
.brand-hero-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: grid;
  gap: clamp(18px, 2vw, 28px);
  padding-bottom: clamp(56px, 8vh, 110px);
}
.brand-hero-logo {
  width: auto;
  height: clamp(30px, 3.2vw, 46px);
  filter: brightness(0) invert(1);
}
.brand-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 11.5vw, 210px);
  font-weight: 400;
  line-height: .86;
  letter-spacing: -0.035em;
}
.brand-title .bw { display: inline-block; white-space: nowrap; }
.brand-title .l { display: inline-block; overflow: hidden; padding: 0 .02em .08em; margin-bottom: -.08em; vertical-align: top; }
.brand-title .l > span { display: inline-block; }
.brand-title em { font-style: italic; }
.brand-hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 24px 48px;
}
.brand-tagline { max-width: 460px; font-size: clamp(15px, 1.15vw, 18px); line-height: 1.6; color: rgba(255, 255, 255, .88); }
.brand-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, .55); color: var(--color-white); background: transparent; }
.btn-ghost:hover { background: var(--color-white); color: var(--color-ink); }
.brand-hero .hero-cue { z-index: 3; }

/* Hero entrance: the photo opens out of a framed window, then the title rises letter by letter */
.motion .brand-hero .hero-img-wrap { animation: brand-window 1.8s cubic-bezier(.76, 0, .24, 1) var(--intro-delay) backwards; }
.motion .brand-hero .hero-img { animation: brand-zoom 2.6s var(--ease) var(--intro-delay) backwards; }
.motion .brand-hero .brand-title .l > span { animation: brand-letter 1.3s var(--ease) calc(var(--intro-delay) + .55s + var(--li) * 45ms) backwards; }
.motion .brand-hero .brand-hero-logo { animation: brand-wipe 1.2s var(--ease) calc(var(--intro-delay) + .45s) backwards; }
.motion .brand-hero .brand-eyebrow,
.motion .brand-hero .brand-hero-foot > * { animation: rise 1.2s var(--ease) calc(var(--intro-delay) + 1.1s + var(--i, 0) * 120ms) backwards; }
.hero-img-wrap { position: absolute; inset: 0; overflow: hidden; }
@keyframes brand-window { from { clip-path: inset(18% 22% 18% 22% round 4px); } to { clip-path: inset(0 0 0 0 round 0); } }
@keyframes brand-zoom { from { scale: 1.35; } }
@keyframes brand-letter { from { transform: translateY(105%) rotate(6deg); } }
@keyframes brand-wipe { from { clip-path: inset(0 100% 0 0); opacity: 0; } }

/* ---------- Manifesto: words fill in as you scroll ---------- */
.brand-manifesto {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(0, 4fr);
  gap: 32px clamp(32px, 5vw, 96px);
  padding-block: clamp(96px, 13vw, 200px);
}
.brand-manifesto .brand-eyebrow { color: var(--brand-accent); align-self: start; padding-top: 1.1em; }
.brand-manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(32px, 3.9vw, 66px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.brand-manifesto-text .fw { opacity: calc(.16 + var(--f, 1) * .84); transition: opacity .25s linear; }
.brand-manifesto-text em { color: var(--brand-accent); }

/* ---------- Stats ---------- */
.brand-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.brand-stat { padding: clamp(28px, 3.4vw, 52px) clamp(16px, 2vw, 32px); }
.brand-stat + .brand-stat { border-left: 1px solid var(--color-line); }
.brand-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(54px, 6.4vw, 112px);
  line-height: .9;
  color: var(--brand-accent);
  font-variant-numeric: tabular-nums;
}
.brand-stat-label { display: block; margin-top: 12px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--color-muted); }

/* ---------- Wave divider (Sea Winds) ---------- */
.brand-wave { overflow: hidden; height: 28px; color: var(--brand-accent); opacity: .55; }
.brand-wave svg { width: 200%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.motion .brand-wave svg { animation: wave-drift 14s linear infinite; }
@keyframes wave-drift { to { transform: translateX(-50%); } }

/* ---------- Collections / pieces rail: pinned and scrolled sideways on large screens ---------- */
.brand-rail { position: relative; padding-block: clamp(80px, 9vw, 140px) 0; background: var(--brand-tint); }
.brand-rail-sticky { overflow: hidden; }
.brand-rail-track {
  display: flex;
  gap: clamp(20px, 2.4vw, 40px);
  padding: 0 var(--gutter) clamp(80px, 9vw, 140px);
  will-change: transform;
}
.brand-rail-intro {
  flex: 0 0 min(420px, 80vw);
  display: grid;
  align-content: center;
  gap: 22px;
}
.brand-rail-intro .brand-eyebrow { color: var(--brand-accent); }
.brand-rail-intro h2 { font-size: clamp(48px, 5vw, 88px); }
.brand-rail-intro p { max-width: 340px; color: var(--color-ink-soft); }
.brand-rail-hint { display: inline-flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--color-muted); }
.brand-rail-hint i { position: relative; width: 56px; height: 1px; overflow: hidden; background: var(--color-line); }
.brand-rail-hint i::after { content: ''; position: absolute; inset: 0; background: var(--color-ink); animation: hint-run 2.2s var(--ease) infinite; }
@keyframes hint-run { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

.rail-card {
  flex: 0 0 clamp(280px, 34vw, 560px);
  display: grid;
  align-content: start;
  gap: 18px;
}
.rail-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-product-bg);
}
.rail-card-media img {
  position: absolute;
  inset: 0 -8%;
  width: 116%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  transform: translateX(var(--px, 0%));
  transition: scale 1.2s var(--ease);
}
.rail-card-media.is-cutout img { inset: 0; width: 100%; padding: 12%; object-fit: contain; mix-blend-mode: multiply; }
.rail-card:hover .rail-card-media img { scale: 1.06; }
.rail-card-num {
  position: absolute;
  top: 16px; left: 18px;
  z-index: 1;
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--color-ink);
  mix-blend-mode: difference;
  filter: invert(1);
}
.rail-card-name { font-family: var(--font-display); font-size: clamp(30px, 2.6vw, 46px); line-height: 1; }
.rail-card-name a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .6s var(--ease); }
.rail-card:hover .rail-card-name a { background-size: 100% 1px; }
.rail-card-meta { font-size: 13px; color: var(--color-muted); letter-spacing: .02em; }
.rail-card.is-end .rail-card-media {
  display: grid;
  place-items: center;
  background: var(--brand-deep);
  color: var(--color-white);
  text-align: center;
}
.rail-card.is-end .rail-card-media span { font-family: var(--font-display); font-size: clamp(34px, 3vw, 52px); line-height: 1.05; padding: 24px; transition: transform .6s var(--ease); }
.rail-card.is-end:hover .rail-card-media span { transform: scale(1.05); }
.rail-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(40px, 4vw, 64px); height: 1px; background: var(--color-line); }
.rail-progress span { display: block; height: 100%; background: var(--brand-accent); transform: scaleX(var(--rp, 0)); transform-origin: left; }

.brand-rail.is-pinned .brand-rail-sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}
.brand-rail.is-pinned .brand-rail-track { padding-bottom: 0; }
.brand-rail:not(.is-pinned) .brand-rail-track { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.brand-rail:not(.is-pinned) .brand-rail-track::-webkit-scrollbar { display: none; }
.brand-rail:not(.is-pinned) .rail-card,
.brand-rail:not(.is-pinned) .brand-rail-intro { scroll-snap-align: start; }
.brand-rail:not(.is-pinned) .rail-progress { display: none; }
.brand-rail.is-pinned .rail-card { flex-basis: clamp(280px, 27vw, 440px); }
.brand-rail.is-pinned .rail-card-media { aspect-ratio: auto; height: min(56vh, 600px); }

/* ---------- Shop by piece: big type list ---------- */
.brand-types { padding-block: clamp(96px, 11vw, 170px); }
.brand-types-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(32px, 4vw, 56px); }
.brand-types-head h2 { font-size: clamp(44px, 4.4vw, 76px); }
.brand-types-head .brand-eyebrow { color: var(--brand-accent); margin-bottom: 18px; }
.brand-types-list { border-top: 1px solid var(--color-ink); }
.brand-type {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: clamp(18px, 2vw, 28px) 0;
  border-bottom: 1px solid var(--color-line);
  transition: opacity .4s var(--ease);
}
.brand-type-i { font-size: 12px; letter-spacing: .16em; color: var(--color-muted); }
.brand-type-name {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 76px);
  line-height: 1;
  transition: transform .6s var(--ease), color .4s var(--ease);
}
.brand-type-count { font-size: 13px; color: var(--color-muted); }
.brand-type-arrow {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .6s var(--ease);
}
.brand-type-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.brand-types-list:hover .brand-type { opacity: .32; }
.brand-types-list:hover .brand-type:hover { opacity: 1; }
.brand-type:hover .brand-type-name { transform: translateX(clamp(12px, 2vw, 32px)); font-style: italic; color: var(--brand-accent); }
.brand-type:hover .brand-type-arrow { background: var(--brand-deep); border-color: var(--brand-deep); color: var(--color-white); transform: rotate(-45deg); }

/* ---------- Feature: lifestyle photos + a line in the brand's voice ---------- */
.brand-feature {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(32px, 6vw, 112px);
  padding-block: clamp(40px, 5vw, 80px) clamp(96px, 11vw, 170px);
}
.brand-feature-media { position: relative; aspect-ratio: 5 / 6; }
.brand-feature-media figure { position: absolute; margin: 0; overflow: hidden; }
.brand-feature-media figure img { width: 100%; height: 124%; object-fit: cover; margin-top: -12%; }
.brand-feature-media .f-main { inset: 0 18% 14% 0; }
.brand-feature-media .f-inset { right: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 5; border: clamp(6px, .8vw, 12px) solid var(--color-bg); }
.brand-feature-copy { display: grid; gap: 28px; }
.brand-feature-copy .brand-eyebrow { color: var(--brand-accent); }
.brand-quote { font-family: var(--font-display); font-size: clamp(34px, 3.4vw, 58px); line-height: 1.08; }
.brand-feature-copy p:not(.brand-quote) { max-width: 440px; color: var(--color-ink-soft); line-height: 1.75; }

/* ---------- Signature pieces ---------- */
.brand-products { padding-block: clamp(80px, 9vw, 140px); background: var(--color-surface); }
.brand-products .shop-grid { --cols: 4; }
.brand-products-foot { display: flex; justify-content: center; margin-top: clamp(48px, 5vw, 72px); }
.btn-brand { background: var(--brand-deep); color: var(--color-white); }
.btn-brand:hover { background: var(--color-ink); }

/* ---------- Spotlight (Lux Lighting): the cursor is the lamp ---------- */
@property --sx { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --sy { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
.brand-spotlight {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(460px, 80vh, 820px);
  padding: 80px var(--gutter);
  overflow: hidden;
  background: #14110e;
  color: #3a332b;
  text-align: center;
  cursor: none;
}
.brand-spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle clamp(180px, 22vw, 360px) at var(--sx) var(--sy), rgba(255, 196, 120, .30), rgba(255, 170, 80, .08) 45%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}
.brand-spotlight:not(.is-pointer) { animation: spot-drift 9s ease-in-out infinite alternate; }
@keyframes spot-drift {
  0%   { --sx: 22%; --sy: 40%; }
  50%  { --sx: 60%; --sy: 62%; }
  100% { --sx: 82%; --sy: 38%; }
}
.spot-line { position: relative; display: grid; gap: 22px; justify-items: center; }
.spot-text {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 168px);
  line-height: .95;
  letter-spacing: -0.02em;
}
.spot-text::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: #f7e3c0;
  text-shadow: 0 0 40px rgba(255, 190, 110, .45);
  -webkit-mask-image: radial-gradient(circle clamp(160px, 18vw, 300px) at var(--tx, 50%) var(--ty, 50%), #000 25%, transparent 75%);
  mask-image: radial-gradient(circle clamp(160px, 18vw, 300px) at var(--tx, 50%) var(--ty, 50%), #000 25%, transparent 75%);
}
.spot-sub { max-width: 460px; font-size: 14px; letter-spacing: .04em; color: #8a7d6c; }
.spot-glow {
  position: absolute;
  left: var(--sx); top: var(--sy);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #ffd9a0;
  box-shadow: 0 0 24px 8px rgba(255, 200, 130, .7);
  translate: -50% -50%;
  pointer-events: none;
}

/* ---------- Other brands ---------- */
.brand-others { padding-block: clamp(80px, 9vw, 140px); }
.brand-others h2 { font-size: clamp(40px, 3.6vw, 64px); margin-bottom: clamp(28px, 3vw, 44px); }
.brand-others-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.brand-other {
  position: relative;
  display: grid;
  align-content: end;
  min-height: clamp(360px, 36vw, 560px);
  padding: clamp(24px, 3vw, 44px);
  overflow: hidden;
  color: var(--color-white);
  isolation: isolate;
}
.brand-other img.bo-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s var(--ease); }
.brand-other::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(12, 10, 8, .7), rgba(12, 10, 8, 0) 60%); transition: background-color .6s var(--ease); }
.brand-other:hover img.bo-img { scale: 1.07; }
.brand-other:hover::before { background-color: rgba(12, 10, 8, .15); }
.brand-other .bo-logo { height: clamp(26px, 2.4vw, 36px); width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; }
.brand-other p { max-width: 380px; font-size: 15px; color: rgba(255, 255, 255, .9); }
.brand-other .bo-link { margin-top: 18px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; display: inline-flex; gap: 10px; align-items: center; }
.brand-other .bo-link span { transition: transform .5s var(--ease); }
.brand-other:hover .bo-link span { transform: translateX(8px); }

/* ---------- Brands overview (brands.html): three panels that open on hover ---------- */
.brands-hero.hero {
  height: max(640px, calc(100svh - 36px)); /* full screen below the announcement bar */
  display: flex;
  background: var(--color-dark);
}
.brands-hero::before { z-index: 3; }
.brands-panel {
  position: relative;
  flex: 1 1 0;
  display: grid;
  align-content: end;
  min-width: 0;
  padding: clamp(24px, 3vw, 48px);
  overflow: hidden;
  color: var(--color-white);
  isolation: isolate;
  transition: flex-grow 1.1s cubic-bezier(.76, 0, .24, 1);
}
.brands-panel + .brands-panel { border-left: 1px solid rgba(255, 255, 255, .25); }
.brands-panel > img:not(.brands-panel-logo) { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; scale: 1.08; transition: scale 1.6s var(--ease), filter 1s var(--ease); }
.brands-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(12, 10, 8, .78), rgba(12, 10, 8, .1) 65%); }
.brands-hero:hover .brands-panel > img:not(.brands-panel-logo) { filter: saturate(.5) brightness(.75); }
.brands-hero .brands-panel:hover { flex-grow: 2.3; }
.brands-hero .brands-panel:hover > img:not(.brands-panel-logo) { scale: 1; filter: none; }
.brands-panel-logo { height: clamp(24px, 2.2vw, 34px); width: auto; max-width: 100%; object-fit: contain; object-position: left; filter: brightness(0) invert(1); }
.brands-panel-name { margin-top: 14px; font-family: var(--font-display); font-size: clamp(40px, 4.2vw, 76px); line-height: .95; white-space: nowrap; }
.brands-panel-text {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows .9s var(--ease), opacity .6s var(--ease);
}
.brands-panel-text > div { overflow: hidden; }
.brands-panel-text p { max-width: 380px; padding-top: 14px; color: rgba(255, 255, 255, .88); }
.brands-panel-text span { display: inline-flex; margin-top: 16px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.brands-panel:hover .brands-panel-text,
.brands-panel:focus-visible .brands-panel-text { grid-template-rows: 1fr; opacity: 1; }
.motion .brands-panel { animation: rise-panel 1.4s cubic-bezier(.76, 0, .24, 1) calc(var(--intro-delay) + var(--i, 0) * 140ms) backwards; }
@keyframes rise-panel { from { clip-path: inset(100% 0 0 0); } }
.brands-intro { padding-block: clamp(96px, 12vw, 180px) clamp(48px, 6vw, 96px); text-align: center; }
.brands-intro h1 { font-size: clamp(54px, 7.4vw, 132px); }
.brands-intro p { max-width: 600px; margin: 26px auto 0; font-size: clamp(15px, 1.1vw, 18px); color: var(--color-ink-soft); line-height: 1.7; }

/* Stacked cards: each brand slides up over the one before it */
.brands-stack { padding-bottom: clamp(80px, 9vw, 140px); }
.brands-stack-card {
  position: sticky;
  top: calc(var(--header-h) + 24px + var(--i, 0) * 18px);
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  min-height: min(72vh, 680px);
  margin-bottom: clamp(24px, 4vw, 56px);
  overflow: hidden;
  background: var(--brand-tint);
  box-shadow: 0 -20px 50px rgba(20, 16, 12, .08);
  transform-origin: center top;
}
.brands-stack-card > figure { position: relative; margin: 0; overflow: hidden; }
.brands-stack-card > figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 1.4s var(--ease); }
.brands-stack-card:hover > figure img { scale: 1.05; }
.brands-stack-body { display: grid; align-content: center; gap: 22px; padding: clamp(32px, 5vw, 88px); }
.brands-stack-body .brand-eyebrow { color: var(--brand-accent); }
.brands-stack-body img { height: clamp(30px, 3vw, 44px); width: auto; max-width: 100%; object-fit: contain; object-position: left; }
.brands-stack-body h2 { font-size: clamp(44px, 4.6vw, 82px); }
.brands-stack-body p { max-width: 440px; color: var(--color-ink-soft); line-height: 1.75; }
.brands-stack-body .btn { justify-self: start; }

@media (max-width: 1100px) {
  .brand-page { --header-h: var(--header-top-h); }
  .brand-products .shop-grid { --cols: 3; }
}

@media (max-width: 760px) {
  .brand-manifesto { grid-template-columns: 1fr; }
  .brand-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-stat:nth-child(3) { border-left: 0; }
  .brand-stat:nth-child(n+3) { border-top: 1px solid var(--color-line); }
  .brand-type { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; }
  .brand-type-arrow { display: none; }
  .brand-feature { grid-template-columns: 1fr; }
  .brand-products .shop-grid { --cols: 2; }
  .brand-others-grid { grid-template-columns: 1fr; }
  .brand-spotlight { cursor: auto; }
  .brand-hero .hero-cue,
  .brands-hero .hero-cue { display: none; }
  .brands-hero.hero { flex-direction: column; }
  .brands-panel + .brands-panel { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .25); }
  .brands-panel-name { font-size: 40px; }
  .brands-panel-text { display: none; }
  .brands-stack-card { position: relative; top: auto; grid-template-columns: 1fr; }
  .brands-stack-card > figure { aspect-ratio: 4 / 3; }
}

/* Brand pages without the live catalog (BigCommerce unreachable): hide the empty live sections */
.brand-page.is-offline [data-live] { display: none; }

/* ==========================================================================
   Room pages (bedroom.html) — scripts in js/room.js
   The bedroom page is a night in the bedroom: lights on, build the room, a clock running
   from evening to morning, then the collections and the morning sun.
   ========================================================================== */

/* ---------- Hero: lights on, by scrolling (--hero-p from js/motion.js) or with the switch ---------- */
@property --lights { syntax: '<number>'; inherits: true; initial-value: 0; }
.room-hero.hero {
  --night: max(clamp(0, calc(var(--hero-p, 0) * 2.8), 1), var(--lights));
  height: max(640px, calc(100svh - 36px));
  background: var(--brand-deep);
  color: var(--color-white);
  transition: --lights 1.4s var(--ease);
}
.room-hero.is-lit { --lights: 1; }
.room-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(10, 14, 24, .6) 0%, rgba(10, 14, 24, .18) 38%, rgba(10, 14, 24, 0) 60%, rgba(10, 14, 24, .5) 100%);
  pointer-events: none;
}
.room-hero-frame { position: absolute; inset: 0; overflow: hidden; }
/* The photo, the darkness and the lamp glows share one box shaped like the photo (3:2) and sized
   to cover the hero, so the glows stay on the lamps at every screen size */
.room-hero .room-hero-stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100%, calc(max(640px, 100svh - 36px) * 1.5));
  height: auto;
  aspect-ratio: 3 / 2;
  translate: -50% -50%;
}
.room-hero-stage img { display: block; width: 100%; height: 100%; object-fit: cover; }
.room-night {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0b1424 0%, #16203a 55%, #1d1a26 100%);
  mix-blend-mode: multiply;
  opacity: calc(var(--night) * .88);
}
.room-glow {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 30%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 228, 175, .95) 0%, rgba(255, 198, 122, .55) 9%, rgba(255, 172, 92, .2) 30%, rgba(255, 160, 80, 0) 62%);
  mix-blend-mode: screen;
  opacity: var(--night);
  animation: room-breathe 5s ease-in-out infinite;
}
.room-glow-cove {
  --x: 50%;
  --y: 19%;
  width: 72%;
  aspect-ratio: 5 / 1;
  background: radial-gradient(closest-side, rgba(255, 214, 160, .6), rgba(255, 200, 140, 0));
}
@keyframes room-breathe { 50% { scale: 1.06; } }


/* Title in the middle of the room; it picks up the lamplight */
.room-hero-content {
  position: absolute;
  inset: 0 0 auto;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding-top: calc(var(--header-h) + clamp(36px, 7vh, 96px));
  text-align: center;
}
.room-hero-title {
  font-family: var(--font-display);
  font-size: clamp(56px, 8.4vw, 148px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -0.02em;
  text-shadow: 0 0 calc(var(--night) * 48px) rgba(255, 200, 130, calc(var(--night) * .5));
}
.room-hero-tagline { font-family: var(--font-display); font-size: clamp(20px, 1.9vw, 30px); font-style: italic; color: rgba(255, 255, 255, .9); }
.room-hero-foot {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: clamp(28px, 5vh, 56px);
}
.room-hero-link,
.room-switch { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--color-white); }
.room-hero-link span { display: inline-block; margin-left: 6px; animation: room-nudge 2s var(--ease) infinite; }
@keyframes room-nudge { 50% { transform: translateY(4px); } }

/* A real wall switch: the rocker flips, and the room lights up */
.room-switch { display: inline-flex; align-items: center; gap: 16px; padding: 0; border: 0; background: none; font-family: inherit; cursor: pointer; }
.room-switch-plate {
  display: grid;
  place-items: center;
  width: 44px;
  height: 66px;
  border-radius: 8px;
  background: linear-gradient(#f8f5ef, #e6e0d5);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35), inset 0 1px 0 #fff;
  transition: box-shadow .5s var(--ease);
}
.room-switch-toggle {
  width: 16px;
  height: 30px;
  border-radius: 4px;
  background: linear-gradient(#fff, #ddd5c8);
  box-shadow: 0 4px 0 #cbc1b2, 0 5px 8px rgba(0, 0, 0, .22);
  transform: perspective(60px) rotateX(20deg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.room-switch[aria-pressed="true"] .room-switch-toggle { transform: perspective(60px) rotateX(-20deg); box-shadow: 0 -4px 0 #cbc1b2, 0 -3px 8px rgba(0, 0, 0, .22); }
.room-switch:hover .room-switch-plate,
.room-switch[aria-pressed="true"] .room-switch-plate { box-shadow: 0 8px 30px rgba(255, 196, 120, .5), inset 0 1px 0 #fff; }

/* Entrance: the title closes up from wide letter spacing as if coming into focus */
.motion .room-hero-title { animation: room-focus 2s var(--ease) calc(var(--intro-delay) + .2s) backwards; }
.motion .room-hero-content .brand-eyebrow,
.motion .room-hero-tagline,
.motion .room-hero-foot { animation: rise 1.2s var(--ease) calc(var(--intro-delay) + .9s) backwards; }
@keyframes room-focus { from { opacity: 0; letter-spacing: .32em; filter: blur(12px); } }

/* ---------- Build your bedroom: the collection, photographed in the studio ---------- */
.room-build { position: relative; background: #e9e1d6; }
.room-build-sticky { position: relative; height: max(640px, 100vh); overflow: hidden; }
/* Scrolling through the section brings the pieces in one by one (js/room.js) */
.room-build.is-pinned { height: 340vh; }
.room-build.is-pinned .room-build-sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); }
.room-back { padding-block: 16px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.room-back a { color: var(--color-ink-soft); transition: color .3s var(--ease); }
.room-back a:hover { color: var(--brand-accent); }

/* Seamless studio backdrop: a soft spotlight that follows the mouse, and a floor that fades in */
.room-studio {
  --mx: 0;
  --my: 0;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at calc(50% + var(--mx) * 12%) calc(38% + var(--my) * 8%), #fffdf8 0%, #f3ece2 42%, #e3d8c9 100%);
}
.room-studio::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 36%;
  background: linear-gradient(rgba(214, 199, 178, 0), rgba(196, 178, 152, .45));
  pointer-events: none;
}

/* The collection's name, huge, behind the furniture; it moves a little against the mouse */
.room-studio-name {
  position: absolute;
  left: 50%;
  top: 12%;
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(96px, 15.5vw, 280px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: rgba(26, 33, 48, .08);
  translate: calc(-50% + var(--mx) * -26px) calc(var(--my) * -10px);
  pointer-events: none;
}
.room-studio-name span { display: inline-block; }
.room-studio-name.is-in span { animation: room-sweep 1.1s var(--ease) calc(var(--li) * 45ms) backwards; }
@keyframes room-sweep { from { opacity: 0; transform: translateY(40%) rotate(4deg); filter: blur(6px); } }

/* The set: the pieces stand in a 16:9 box resting on the floor */
.room-studio-set {
  position: absolute;
  left: 50%;
  bottom: 9%;
  z-index: 1;
  width: min(94%, calc((100vh - var(--header-h)) * 1.5));
  aspect-ratio: 16 / 9;
  translate: -50% 0;
}
.room-piece {
  --t: 1;
  position: absolute;
  left: var(--x);
  bottom: var(--b);
  width: var(--w);
  opacity: var(--t);
  /* Front pieces (low --d) move more with the mouse than the ones at the back: depth */
  translate:
    calc(-50% + var(--mx) * (1 - var(--d)) * 34px)
    calc((1 - var(--t)) * 80px + var(--my) * (1 - var(--d)) * 10px);
  scale: calc(.82 + var(--t) * .18);
  transform-origin: 50% 100%;
  filter: blur(calc((1 - var(--t)) * 12px)) drop-shadow(0 26px 26px rgba(70, 50, 30, .16));
  transition: bottom .4s var(--ease);
}
.room-piece img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .6s var(--ease);
}
.room-piece:hover img { transform: translateY(-8px); }
/* A soft shadow where each piece meets the floor */
.room-piece::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -2%;
  z-index: -1;
  height: 8%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(60, 42, 25, .34), rgba(60, 42, 25, 0));
}
.room-piece[data-type="Mirrors"]::after { display: none; }
/* Switching collection: the new pieces fly in one after another */
.room-studio.is-swapping .room-piece { animation: room-arrive 1s var(--ease) calc(var(--o) * 110ms) backwards; }
@keyframes room-arrive { from { opacity: 0; translate: -50% 60px; scale: .8; filter: blur(12px); } }

/* Price tags: drop in once the set is complete (and on hover) */
.room-tag {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 16px);
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 8px 12px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px rgba(40, 30, 20, .1);
  color: var(--color-ink);
  text-align: center;
  white-space: nowrap;
  opacity: 0;
  translate: -50% 8px;
  transition: opacity .5s var(--ease), translate .5s var(--ease);
  pointer-events: none;
}
.room-tag::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 16px;
  background: rgba(26, 33, 48, .3);
}
.room-tag.is-below { bottom: auto; top: calc(100% + 22px); }
.room-tag.is-below::after { top: auto; bottom: 100%; height: 22px; }
.room-tag.is-side { left: calc(100% + 26px); bottom: auto; top: 22%; translate: 0 8px; }
.room-tag.is-side::after { left: auto; right: 100%; top: 50%; width: 26px; height: 1px; }
.room-build.is-complete .room-tag.is-side,
.room-piece:hover .room-tag.is-side { translate: 0 0; }
.room-tag-type { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--brand-accent); }
.room-tag-name { max-width: 180px; font-size: 12px; line-height: 1.35; white-space: normal; }
.room-tag-price { font-family: var(--font-display); font-size: 18px; line-height: 1.1; }
.room-tag-price small { font-family: var(--font-body); font-size: 11px; color: var(--color-muted); }
.room-build.is-complete .room-tag,
.room-piece:hover .room-tag { opacity: 1; translate: -50% 0; transition-delay: calc(var(--o) * 90ms); }
.room-piece:hover .room-tag { transition-delay: 0s; }

/* Words and controls over the studio */
.room-build-ui {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding-block: clamp(28px, 4vh, 48px) clamp(24px, 3.5vh, 40px);
  pointer-events: none;
}
.room-build-ui a,
.room-build-ui button { pointer-events: auto; }
.room-build-intro { display: grid; gap: 12px; }
.room-build-intro .brand-eyebrow { color: var(--brand-accent); }
.room-build-intro h2 { font-size: clamp(34px, 3vw, 52px); line-height: 1.05; }
.room-build-intro h2 em { font-style: italic; color: var(--brand-accent); }
.room-build-foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }
/* One row of collections that scrolls sideways, fading out at the edge */
.room-build-sets { display: flex; gap: 8px; max-width: min(720px, 100%); overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.room-build-sets::-webkit-scrollbar { display: none; }
.room-set { flex: 0 0 auto; white-space: nowrap; }
.room-set {
  padding: 9px 16px;
  border: 1px solid rgba(26, 33, 48, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--color-ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.room-set:hover { border-color: var(--brand-deep); }
.room-set[aria-selected="true"] { background: var(--brand-deep); border-color: var(--brand-deep); color: var(--color-white); }
.room-build-buy { display: grid; justify-items: end; gap: 10px; }
.room-build-total { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-ink-soft); }

/* ---------- Will it fit? A wall at real scale; drag to your width (js/room.js) ---------- */
.room-fit { padding-block: clamp(90px, 10vw, 150px) clamp(70px, 8vw, 120px); background: #efe8de; overflow: hidden; }
.room-fit-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px 60px; }
.room-fit-head .brand-eyebrow { color: var(--brand-accent); }
.room-fit-head h2 { margin-top: 12px; font-size: clamp(50px, 5.4vw, 96px); line-height: 1; }
.room-fit-head h2 em { color: var(--brand-accent); }
.room-fit-intro { max-width: 440px; font-size: 16px; line-height: 1.65; color: var(--color-ink-soft); }
.room-fit-controls { display: grid; grid-template-columns: minmax(260px, 420px) 1fr; gap: 24px 60px; align-items: end; margin-top: clamp(36px, 4vw, 56px); }
.room-fit-label { display: block; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--color-ink-soft); }
.room-fit-wall-out { display: block; margin: 4px 0 12px; font-size: clamp(40px, 4vw, 64px); line-height: 1; font-variant-numeric: tabular-nums; }
.room-fit-range { width: 100%; height: 28px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: ew-resize; }
.room-fit-range::-webkit-slider-runnable-track { height: 2px; background: rgba(26, 33, 48, .25); }
.room-fit-range::-moz-range-track { height: 2px; background: rgba(26, 33, 48, .25); }
.room-fit-range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -12px; border-radius: 50%; background: var(--brand-deep); box-shadow: 0 0 0 6px rgba(176, 138, 82, .25); }
.room-fit-range::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--brand-deep); box-shadow: 0 0 0 6px rgba(176, 138, 82, .25); }
.room-fit-range-ends { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-muted); }
.room-fit-sets { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
.room-fit-sets::-webkit-scrollbar { display: none; }
.room-fit-sets .room-set { flex: 0 0 auto; white-space: nowrap; }
.room-fit-sets .room-set[aria-pressed="true"] { background: var(--brand-deep); border-color: var(--brand-deep); color: var(--color-white); }

.room-fit-stage { position: relative; height: clamp(380px, 38vw, 560px); margin-top: clamp(28px, 3vw, 44px); }
/* The floor: a soft band under the wall */
.room-fit-stage::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 18%; background: linear-gradient(180deg, #e2d7c7, #efe8de); }
/* The wall: plaster, with the side walls as shaded returns; it widens and narrows with the slider */
.room-fit-wall {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  z-index: 1;
  background: linear-gradient(180deg, #f6f1e9 0%, #ebe2d5 100%);
  box-shadow: inset 14px 0 18px -10px rgba(60, 42, 25, .22), inset -14px 0 18px -10px rgba(60, 42, 25, .22);
  border-inline: 2px solid #c7b49a;
  transition: width .6s cubic-bezier(.22, .61, .36, 1), border-color .4s var(--ease);
}
.room-fit-wall.is-tight { border-color: #b4563f; }
/* Too short: the bracket runs past the walls in red and says how much more is needed */
.room-fit-need.is-short { border-color: #b4563f; }
.room-fit-need.is-short b { color: #b4563f; }
/* A brass bracket over the row: the width it needs */
.room-fit-need {
  position: absolute;
  top: 14%;
  left: 50%;
  translate: -50% 0;
  height: 12px;
  border-inline: 1px solid var(--brand-accent);
  border-top: 1px solid var(--brand-accent);
  transition: width .6s cubic-bezier(.22, .61, .36, 1);
}
.room-fit-need b {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  translate: -50% 0;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-accent);
}
/* The ruler along the floor: a tick every foot, numbered every two */
.room-fit-ruler { position: absolute; left: 0; right: 0; bottom: -26px; height: 10px; border-top: 1px solid rgba(26, 33, 48, .35); }
.room-fit-ruler i { position: absolute; top: 0; width: 1px; height: 7px; background: rgba(26, 33, 48, .35); transition: left .6s cubic-bezier(.22, .61, .36, 1); }
.room-fit-ruler i[data-ft]::after { content: attr(data-ft) "\2032"; position: absolute; top: 10px; left: 0; translate: -50% 0; font-size: 10px; font-style: normal; color: var(--color-muted); }

.room-fit-row { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.room-fit-piece {
  position: absolute;
  transition: left .6s cubic-bezier(.22, .61, .36, 1), width .6s cubic-bezier(.22, .61, .36, 1), bottom .6s cubic-bezier(.22, .61, .36, 1), opacity .5s var(--ease), translate .6s var(--ease), filter .5s var(--ease);
  filter: drop-shadow(0 16px 14px rgba(70, 50, 30, .16));
}
.room-fit-piece img { display: block; width: 100%; height: auto; }
/* The bed in front of the nightstands, as its footboard is */
.room-fit-piece[data-fit-type="Beds"] { z-index: 2; }
/* Squeezed out: it slips down and fades where the walls passed it */
.room-fit-piece.is-out { opacity: .14; translate: 0 18px; filter: grayscale(1) blur(1px); }
.room-fit.is-loading .room-fit-row { opacity: .35; transition: opacity .3s; }

.room-fit-foot { display: grid; justify-items: center; gap: 18px; margin-top: clamp(48px, 5vw, 70px); text-align: center; }
.room-fit-verdict { max-width: 820px; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.15; }
.room-fit-note { max-width: 620px; font-size: 13px; line-height: 1.6; color: var(--color-muted); }

/* ---------- In your room: a photo of the visitor's room, furnished to scale (js/room-view.js) ---------- */
.room-view { margin-top: clamp(80px, 9vw, 140px); padding-top: clamp(60px, 7vw, 100px); border-top: 1px solid rgba(26, 33, 48, .14); }
.room-view [hidden] { display: none !important; }
.room-view[hidden] { display: none !important; }
.room-view-head h3 { margin-top: 12px; font-size: clamp(40px, 4.2vw, 72px); line-height: 1; }
.room-view-head h3 em { color: var(--brand-accent); }
.room-view-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: clamp(24px, 3vw, 48px); align-items: start; margin-top: clamp(32px, 4vw, 56px); }
.room-view-frame { display: grid; justify-items: center; }
.room-view-drop {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  width: 100%;
  min-height: clamp(320px, 36vw, 520px);
  padding: 32px;
  border: 1px dashed var(--brand-accent);
  background: rgba(255, 255, 255, .45);
  text-align: center;
  color: var(--color-ink-soft);
  cursor: pointer;
  transition: background-color .3s var(--ease);
}
.room-view-drop:hover,
.room-view-drop:focus-within,
.room-view-frame.is-over .room-view-drop { background: rgba(255, 255, 255, .85); }
.room-view-drop svg { width: 34px; height: 34px; fill: none; stroke: var(--brand-accent); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.room-view-drop .display { font-size: clamp(28px, 2.6vw, 40px); color: var(--color-ink); }
.room-view-drop span:last-child { max-width: 380px; font-size: 14px; }
.room-view-stage { position: relative; overflow: hidden; background: #ddd4c6; user-select: none; -webkit-user-select: none; }
.room-view-stage > img { display: block; width: 100%; height: 100%; object-fit: fill; }
/* The furniture, standing on the floor line and toned to the photo's light */
.room-view-plane { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.room-view-body[data-step="mark"] .room-view-plane { opacity: .45; }
.room-view-piece { position: absolute; padding: 0; border: 0; background: none; cursor: grab; touch-action: none; pointer-events: auto; outline-offset: 6px; }
.room-view-piece:active { cursor: grabbing; }
.room-view-piece img { display: block; width: 100%; height: auto; max-width: none; pointer-events: none; }
/* Where it meets the floor */
.room-view-piece::before { content: ''; position: absolute; left: 2%; right: 2%; bottom: -4%; height: 10%; background: radial-gradient(ellipse at center, rgba(20, 14, 8, .5), transparent 70%); filter: blur(3px); z-index: -1; }
.room-view-piece.is-hung::before { display: none; }
.room-view-piece.is-hung { filter: drop-shadow(0 4px 6px rgba(20, 14, 8, .35)); }
.room-view-piece:focus { outline: none; }
.room-view-piece.is-selected { outline: 1px dashed rgba(255, 255, 255, .9); }
.room-view-outline { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.room-view-outline path { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 1; }
.room-view-body[data-step="mark"] .room-view-outline path { stroke: #fff; stroke-width: 2.5; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .6)); }
.room-view-handle { position: absolute; z-index: 3; width: 26px; height: 26px; margin: -13px 0 0 -13px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: var(--brand-accent); box-shadow: 0 2px 10px rgba(0, 0, 0, .45); cursor: grab; touch-action: none; display: none; }
.room-view-handle::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; }
.room-view-handle.is-dragging { cursor: grabbing; scale: 1.2; }
.room-view-body[data-step="mark"] .room-view-handle { display: block; }
.room-view-error { margin-top: 12px; font-size: 14px; color: #b4563f; }
.room-view-rooms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.room-view-thumb { width: 76px; height: 56px; padding: 0; border: 1px solid rgba(26, 33, 48, .2); background: rgba(255, 255, 255, .5); overflow: hidden; opacity: .65; transition: opacity .3s var(--ease); }
.room-view-thumb img { width: 100%; height: 100%; object-fit: cover; }
.room-view-thumb:hover,
.room-view-thumb[aria-pressed="true"] { opacity: 1; }
.room-view-thumb[aria-pressed="true"] { outline: 2px solid var(--brand-deep); outline-offset: 2px; }
.room-view-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 16px; }
.room-view-tools .room-fit-note { flex: 1 1 280px; max-width: none; }
.room-view-tools .room-set:disabled { opacity: .5; cursor: progress; }
/* While the AI redraws the room: the photo dims under a slow sweep of light */
.room-view-stage.is-clearing > img { filter: saturate(.4) brightness(.8); transition: filter .6s var(--ease); }
.room-view-stage.is-clearing .room-view-plane { opacity: .3; }
.room-view-stage.is-clearing::after { content: 'Clearing the room\2026'; position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; font-family: var(--font-display); font-size: clamp(26px, 3vw, 40px); color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%) 0 0 / 300% 100%; animation: room-view-sweep 2.2s linear infinite; }
@keyframes room-view-sweep { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .room-view-stage.is-clearing::after { animation: none; } }
.room-view-thumb.is-add { font-size: 24px; font-weight: 300; line-height: 1; opacity: 1; }

.room-view-panel { padding: clamp(22px, 2.4vw, 34px); background: rgba(255, 255, 255, .6); border: 1px solid rgba(26, 33, 48, .1); }
.room-view-panel > div { display: grid; gap: 16px; }
.room-view-panel h4 { margin: -6px 0 0; font-size: clamp(30px, 2.6vw, 40px); font-weight: 400; }
.room-view-text { font-size: 14px; line-height: 1.65; color: var(--color-ink-soft); }
.room-view-how { display: grid; gap: 14px; margin: 0; padding: 0; counter-reset: how; list-style: none; }
.room-view-how li { position: relative; padding-left: 44px; font-size: 14px; line-height: 1.55; color: var(--color-ink-soft); counter-increment: how; }
.room-view-how li::before { content: counter(how); position: absolute; left: 0; top: -4px; font-family: var(--font-display); font-size: 34px; line-height: 1; color: var(--brand-accent); }
.room-view-how b { display: block; font-weight: 500; color: var(--color-ink); }
.room-view-dims { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; border: 0; }
.room-view-dims legend { width: 100%; padding: 0 0 8px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-ink-soft); }
.room-view-dims label { display: flex; align-items: baseline; gap: 6px; font-size: 13px; color: var(--color-muted); }
.room-view-dims input { width: 76px; padding: 10px 12px; border: 1px solid rgba(26, 33, 48, .25); border-radius: 0; background: var(--color-white); font: inherit; font-size: 16px; color: var(--color-ink); }
.room-view-panel .btn { justify-self: start; }
.room-view-link { justify-self: start; padding: 0; border: 0; background: none; font-size: 13px; color: var(--color-ink-soft); text-decoration: underline; text-underline-offset: 4px; }
.room-view-link:hover { color: var(--color-ink); }
.room-view-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.room-view-filters label { display: grid; gap: 6px; min-width: 0; }
.room-view-filters span { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-ink-soft); }
.room-view-filters select { width: 100%; padding: 10px 12px; border: 1px solid rgba(26, 33, 48, .25); border-radius: 0; background: var(--color-white); font: inherit; font-size: 14px; color: var(--color-ink); }
.room-view-set.is-busy,
.room-view-card.is-busy { opacity: .5; cursor: progress; }
.room-view-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-height: 330px; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.room-view-card { display: grid; gap: 6px; align-content: start; padding: 8px; border: 1px solid transparent; background: var(--color-white); text-align: left; transition: border-color .3s var(--ease), opacity .3s var(--ease); }
.room-view-card:hover { border-color: var(--brand-deep); }
.room-view-card-media { display: block; aspect-ratio: 1; }
.room-view-card-media img { width: 100%; height: 100%; object-fit: contain; }
.room-view-card-name { font-size: 11.5px; line-height: 1.3; color: var(--color-ink-soft); }
.room-view-empty { grid-column: 1 / -1; padding: 20px 0; font-size: 14px; color: var(--color-muted); }
.room-view-verdict { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.2; }
.room-view-placed { display: grid; }
.room-view-placed-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid rgba(26, 33, 48, .12); font-size: 13px; }
.room-view-placed-row.is-selected { box-shadow: inset 3px 0 0 var(--brand-accent); padding-left: 12px; }
.room-view-placed-name { padding: 0; border: 0; background: none; text-align: left; font-size: 14px; line-height: 1.35; }
.room-view-placed-name small { display: block; font-size: 12px; color: var(--color-muted); }
.room-view-remove { width: 30px; height: 30px; padding: 0; border: 1px solid rgba(26, 33, 48, .2); border-radius: 50%; background: none; font-size: 18px; line-height: 1; }
.room-view-remove:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: var(--color-white); }
.room-view-actions { display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (max-width: 960px) {
  .room-view-body { grid-template-columns: 1fr; }
  .room-view-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); max-height: 300px; }
}

/* ---------- Shop by piece ---------- */
.room-pieces { padding-block: clamp(80px, 9vw, 140px) clamp(48px, 6vw, 96px); }
.room-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.room-tile {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto auto;
  aspect-ratio: 4 / 5;
  padding: clamp(16px, 1.6vw, 24px);
  overflow: hidden;
  background: var(--brand-tint);
}
/* A soft light opens behind the piece on hover */
.room-tile::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: -1;
  width: 150%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, #fffaf3, rgba(255, 250, 243, 0));
  opacity: 0;
  scale: .2;
  transition: scale .8s var(--ease), opacity .5s var(--ease);
}
.room-tile:hover::before { opacity: 1; scale: 1; }
.room-tile-media { display: grid; place-items: center; min-height: 0; }
.room-tile-media img {
  width: 84%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .8s var(--ease);
}
.room-tile:hover .room-tile-media img { transform: translateY(-10px) scale(1.07) rotate(-1.5deg); }
.room-tile-name { font-family: var(--font-display); font-size: clamp(22px, 1.9vw, 30px); line-height: 1.1; }
.room-tile-count { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-muted); }
.room-tile-arrow {
  position: absolute;
  right: clamp(16px, 1.6vw, 24px);
  bottom: clamp(16px, 1.6vw, 24px);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(26, 33, 48, .2);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), translate .4s var(--ease);
}
.room-tile-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.room-tile:hover .room-tile-arrow { background: var(--brand-deep); border-color: var(--brand-deep); color: var(--color-white); translate: 4px 0; }

/* ---------- Pick your mood: the collections fanned out like a hand of cards ---------- */
.room-fan-section { overflow: hidden; padding-block: clamp(96px, 11vw, 170px); background: var(--color-surface); }
.room-fan-head { display: grid; justify-items: center; gap: 14px; max-width: 680px; text-align: center; }
.room-fan-head .brand-eyebrow { color: var(--brand-accent); }
.room-fan-head h2 { font-size: clamp(46px, 4.6vw, 80px); line-height: 1; }
.room-fan-head p { color: var(--color-ink-soft); line-height: 1.65; }
/* One hand of cards per brand, each under its logo */
.room-fans { display: grid; gap: clamp(28px, 3vw, 44px); margin-top: clamp(28px, 3vw, 48px); }
.room-fan-brand { display: grid; justify-items: center; }
.room-fan-brand .room-fan { justify-self: stretch; }
.room-fan-brand-head { display: inline-flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--color-muted); transition: color .3s var(--ease); }
.room-fan-brand-head img { height: 34px; width: auto; }
.room-fan-brand-head img[src*="finn"] { height: 44px; }
.room-fan-brand-head:hover { color: var(--brand-accent); }
/* As tall as a card (3:4), plus room for the hover lift and the tilt of the outer cards */
.room-fan { position: relative; height: calc(clamp(200px, 19vw, 272px) * 4 / 3 + 64px); margin-top: clamp(16px, 2vw, 32px); }
.fan-card {
  --spread: var(--fan-spread, clamp(74px, 9.4vw, 156px));
  position: absolute;
  left: 50%;
  bottom: 0;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 4px;
  width: clamp(200px, 19vw, 272px);
  aspect-ratio: 3 / 4;
  padding: 18px 20px 22px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 18px 40px rgba(40, 30, 20, .14);
  translate: -50% 0;
  transform-origin: 50% 130%;
  transition: transform 1s var(--ease) calc(var(--i) * 80ms), box-shadow .4s var(--ease), filter .4s var(--ease), background-color .8s var(--ease);
}
/* Dealt: each card swings out to its place in the fan */
.room-fan.is-dealt .fan-card { transform: translateX(calc(var(--k) * var(--spread))) rotate(calc(var(--k) * var(--fan-rot, 6deg))); }
.room-fan.is-settled .fan-card { transition-delay: 0s; }
.room-fan.is-dealt .fan-card:hover,
.room-fan.is-dealt .fan-card:focus-visible {
  z-index: 50 !important;
  transform: translateX(calc(var(--k) * var(--spread))) translateY(-48px) rotate(0deg);
  box-shadow: 0 34px 64px rgba(40, 30, 20, .26);
}
.room-fan:hover .fan-card:not(:hover) { filter: brightness(.96) saturate(.85); }
/* Cards on the right of the fan are covered on their left, so their names sit on the right */
.fan-card.is-right { justify-items: end; text-align: right; }
/* The brand's logo, top left of every card */
.fan-card-logo { position: absolute; top: 14px; left: 18px; width: auto; height: 24px; max-width: 46%; object-fit: contain; object-position: left center; opacity: .85; pointer-events: none; }
.fan-card { padding-top: 48px; }
.fan-card-logo[src*="finn"] { height: 32px; top: 10px; }
.fan-card-media { display: grid; place-items: center; min-height: 0; }
.fan-card-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.fan-card-media img.is-cut { mix-blend-mode: normal; }
/* A room photo in place of a cut-out: shown as a small framed picture */
.fan-card-media.is-photo img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; mix-blend-mode: normal; border-radius: 6px; }
.fan-card-name { font-family: var(--font-display); font-size: clamp(24px, 2vw, 32px); line-height: 1.05; }
.fan-card-count { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-muted); }
/* A full hand (many collections): smaller cards */
.room-fan.is-full { height: calc(clamp(170px, 13.5vw, 214px) * 4 / 3 + 64px); }
.room-fan.is-full .fan-card { width: clamp(170px, 13.5vw, 214px); padding: 14px 14px 16px; }
.room-fan.is-full .fan-card-name { font-size: clamp(19px, 1.5vw, 24px); }
.room-fan.is-full .fan-card-count { font-size: 10px; letter-spacing: .12em; }

/* ---------- Every piece in the picked collection ---------- */
.room-skus { padding-block: clamp(80px, 9vw, 140px); }
.room-skus-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: clamp(32px, 4vw, 56px); }
.room-skus-head .brand-eyebrow { color: var(--brand-accent); }
.room-skus-head h2 { margin-top: 12px; font-size: clamp(38px, 3.8vw, 64px); line-height: 1.02; }
.room-skus-head h2 em { color: var(--brand-accent); }
.room-skus-count { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-muted); }
.room-skus-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px) clamp(14px, 1.6vw, 22px); }
.room-sku { display: grid; align-content: start; gap: 6px; }
.room-skus-grid.is-in .room-sku { animation: rise .9s var(--ease) calc(min(var(--i), 12) * 60ms) backwards; }
.room-sku-media { display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 10px; overflow: hidden; border-radius: 14px; background: #f3eee7; }
.room-sku-media img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; transition: transform .7s var(--ease); }
.room-sku:hover .room-sku-media img { transform: scale(1.05); }
.room-sku-type { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-accent); }
.room-sku-name { font-size: 15px; font-weight: 400; line-height: 1.4; }
.room-sku-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.room-sku-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.room-sku-price { font-family: var(--font-display); font-size: 22px; }
.room-sku-add { padding: 10px 16px; border: 0; background: var(--brand-deep); color: #fff; font: inherit; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background-color .3s var(--ease); }
.room-sku-add:hover { background: var(--color-ink); }
.room-sku-added-text { display: none; }
.room-sku-add.is-added .room-sku-add-text { display: none; }
.room-sku-add.is-added .room-sku-added-text { display: inline; }

/* ---------- Closing: the sun is up ---------- */
.room-wake {
  position: relative;
  overflow: hidden;
  padding-block: clamp(110px, 13vw, 210px);
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg) 0%, #f6e7d8 55%, #f2d5bb 100%);
}
.room-wake::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -62%;
  width: min(1100px, 130vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 196, 132, .8), rgba(255, 190, 130, 0));
  translate: -50% 0;
}
.room-wake-inner { position: relative; display: grid; justify-items: center; gap: 22px; }
.room-wake .brand-eyebrow { color: var(--brand-accent); }
.room-wake h2 { font-size: clamp(56px, 6.6vw, 116px); line-height: 1; }

/* ---------- Shop page in a room's look (shop.html?room=bedroom…, see roomPages in js/data.js) ---------- */
/* Dusk over the banner photo, with warm lamplight coming in from the side */
.is-room-mode .page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(45% 70% at 78% 55%, rgba(255, 196, 128, .28), rgba(255, 196, 128, 0) 70%),
    linear-gradient(180deg, rgba(14, 22, 40, .45), rgba(14, 22, 40, .15));
  pointer-events: none;
}
.banner-link { margin-left: 6px; color: var(--color-white); text-decoration: underline; text-underline-offset: 4px; white-space: nowrap; }
.banner-link:hover { opacity: .8; }

@media (prefers-reduced-motion: no-preference) {
  .is-room-mode .page-banner-img { animation: room-drift 22s ease-in-out infinite alternate; }
  /* The title rises letter by letter, the cards one after another */
  .is-room-mode #shopTitle .tw { display: inline-block; white-space: nowrap; }
  .is-room-mode #shopTitle .tl { display: inline-block; animation: room-letter 1s var(--ease) calc(var(--li) * 40ms) backwards; }
  .is-room-mode .shop-card:not(.is-loading) { animation: rise .8s var(--ease) calc(var(--ci, 0) * 45ms) backwards; }
}
@keyframes room-drift { to { transform: scale(1.08) translateX(-1.5%); } }
@keyframes room-letter { from { opacity: 0; transform: translateY(45%) rotate(5deg); filter: blur(4px); } }

@media (max-width: 900px) {
  /* The studio stacks: words, then the set, then the controls */
  .room-build-sticky { height: auto; padding-bottom: 8px; }
  .room-studio { position: relative; inset: auto; height: 68vw; order: 2; }
  .room-studio-set { width: 96%; bottom: 6%; }
  .room-build-sticky { display: flex; flex-direction: column; }
  .room-build-ui { display: contents; }
  .room-build-intro { order: 1; padding: 56px var(--gutter) 8px; }
  .room-build-foot { order: 3; padding: 20px var(--gutter) 40px; }
  .room-build-buy { justify-items: start; }
  .room-tag { display: none; }
  .room-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-fit-controls { grid-template-columns: 1fr; }
  .room-fit-stage { height: 300px; }
  /* The fan becomes a row of cards to swipe through */
  .room-fan { display: flex; gap: 14px; height: auto; padding: 0 var(--gutter) 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .fan-card,
  .room-fan.is-dealt .fan-card { position: relative; left: auto; flex: 0 0 72%; translate: none; transform: none; scroll-snap-align: center; }
  .room-hero-foot { flex-direction: column; gap: 20px; }
  .room-skus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-sku-foot { flex-direction: column; align-items: stretch; }
  .room-sku-add { width: 100%; }
}

/* ==========================================================================
   Dining room page (dining-room.html) — scripts in js/dining.js (and js/room.js for the tiles)
   A dinner party: French doors open onto the room, you set the table for your guests, then
   the collections are served as a menu.
   ========================================================================== */

/* ---------- Hero: frosted French doors that swing open ---------- */
@property --door-base { syntax: '<number>'; inherits: true; initial-value: 0; }
.dine-hero.hero {
  --door-open: max(clamp(0, calc(var(--hero-p, 0) * 2.4), 1), var(--door-base));
  height: max(640px, calc(100svh - 36px));
  background: #1d1814;
  color: var(--color-white);
  transition: --door-base 1.6s cubic-bezier(.65, 0, .25, 1);
}
.dine-hero.is-ajar { --door-base: .14; }
.dine-hero.is-open { --door-base: 1; }
.dine-hero-photo { position: absolute; inset: 0; overflow: hidden; }
.dine-hero-photo .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.dine-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(20, 15, 11, .5) 0%, rgba(20, 15, 11, 0) 30%, rgba(20, 15, 11, 0) 50%, rgba(20, 15, 11, .62) 100%);
  pointer-events: none;
}

/* Two doors, each a painted frame around six frosted glass panes; they turn on their hinges */
.dine-doors { position: absolute; inset: 0; z-index: 1; perspective: 1800px; pointer-events: none; }
.dine-door {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 16px;
  /* The painted frame is the border and the shadows around each pane, so the panes themselves
     look through to the room (a background here would be all they could show) */
  border: solid #f1ebe2;
  border-width: clamp(28px, 4vw, 64px) clamp(22px, 3vw, 48px);
  transition: transform .15s linear;
  backface-visibility: hidden;
}
.dine-door.is-left { left: 0; transform-origin: 0 50%; transform: rotateY(calc(var(--door-open) * -100deg)); }
.dine-door.is-right { right: 0; transform-origin: 100% 50%; transform: rotateY(calc(var(--door-open) * 100deg)); }
/* Frosted panes: the room shows through, softly blurred */
.dine-door i {
  border-radius: 2px;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(10px) brightness(1.08) saturate(.85);
  -webkit-backdrop-filter: blur(10px) brightness(1.08) saturate(.85);
  box-shadow: 0 0 0 9px #f1ebe2, inset 0 0 0 1px rgba(0, 0, 0, .1), inset 0 3px 8px rgba(0, 0, 0, .14);
}
/* Brass handles where the two doors meet */
.dine-door b {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 64px;
  border-radius: 4px;
  background: linear-gradient(90deg, #8c6b3d, #d8b47a 50%, #8c6b3d);
  box-shadow: 0 3px 8px rgba(0, 0, 0, .3);
  translate: 0 -50%;
}
.dine-door.is-left b { right: -14px; z-index: 1; }
.dine-door.is-right b { left: -14px; z-index: 1; }
/* The doors darken as they turn away from you */
.dine-door::after {
  content: '';
  position: absolute;
  inset: -1px;
  background: #000;
  opacity: calc(var(--door-open) * .35);
  pointer-events: none;
}

.dine-hero-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding-bottom: clamp(48px, 9vh, 110px);
  text-align: center;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
}
.dine-hero-title { font-family: var(--font-display); font-size: clamp(60px, 9vw, 160px); font-weight: 400; line-height: .92; letter-spacing: -0.02em; }
.dine-hero-tagline { font-family: var(--font-display); font-size: clamp(22px, 2vw, 32px); font-style: italic; }
.dine-enter {
  margin-top: 8px;
  padding: 13px 26px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--color-white);
  font: inherit;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.dine-enter:hover { background: var(--color-white); color: var(--color-ink); text-shadow: none; }
.dine-hero.is-open .dine-enter { opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); }
.motion .dine-hero-title { animation: room-focus 2s var(--ease) calc(var(--intro-delay) + .2s) backwards; }
.motion .dine-hero-content .brand-eyebrow,
.motion .dine-hero-tagline,
.motion .dine-enter { animation: rise 1.2s var(--ease) calc(var(--intro-delay) + .9s) backwards; }

/* ---------- Set the table: candlelit, seen from above ---------- */
.dine-plan {
  position: relative;
  padding-block: clamp(80px, 9vw, 140px);
  background: radial-gradient(60% 70% at 70% 40%, #3a2e25 0%, #241d18 55%, #1a1511 100%);
  color: #f3ece2;
  overflow: hidden;
}
.dine-plan-inner {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1.9fr);
  gap: clamp(32px, 5vw, 90px);
  align-items: center;
}
.dine-plan-copy { display: grid; gap: 20px; align-content: center; }
.dine-plan-copy .brand-eyebrow { color: var(--brand-accent); }
.dine-plan-copy h2 { font-size: clamp(44px, 4.4vw, 76px); line-height: 1; }
.dine-plan-copy h2 em { font-style: italic; color: #e2b77c; }
.dine-plan-copy p { max-width: 400px; line-height: 1.7; color: rgba(243, 236, 226, .72); }
.dine-guests { display: flex; gap: 10px; }
.dine-guests button {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(243, 236, 226, .28);
  border-radius: 50%;
  background: transparent;
  color: #f3ece2;
  font-family: var(--font-display);
  font-size: 24px;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.dine-guests button:hover { border-color: #e2b77c; transform: translateY(-2px); }
.dine-guests button[aria-checked="true"] { background: #e2b77c; border-color: #e2b77c; color: #241d18; }

.dine-stage { position: relative; aspect-ratio: 16 / 10; container-type: inline-size; }
/* A warm pool of light on the floor under the table */
.dine-stage::before {
  content: '';
  position: absolute;
  inset: 8% 6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 190, 120, .16), rgba(255, 190, 120, 0));
}
.dine-table {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background:
    radial-gradient(70% 90% at 50% 40%, rgba(255, 220, 170, .22), rgba(255, 220, 170, 0) 70%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .05) 0 2px, rgba(255, 255, 255, .03) 2px 9px, rgba(0, 0, 0, .02) 9px 14px),
    linear-gradient(180deg, #8a5d3b, #6d4529);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .5), inset 0 0 0 4px rgba(0, 0, 0, .12), inset 0 2px 0 rgba(255, 255, 255, .15);
  transition: left .9s cubic-bezier(.65, 0, .25, 1), top .9s cubic-bezier(.65, 0, .25, 1), width .9s cubic-bezier(.65, 0, .25, 1), height .9s cubic-bezier(.65, 0, .25, 1), border-radius .9s var(--ease);
}
.dine-table.is-round { border-radius: 50%; }
/* Linen runner down the middle */
.dine-runner {
  position: absolute;
  left: 16%;
  right: 16%;
  top: 34%;
  bottom: 34%;
  border-radius: 3px;
  background: linear-gradient(180deg, #ece4d7, #ddd2c1);
  opacity: .9;
  transition: opacity .6s var(--ease);
}
.dine-table.is-round .dine-runner { opacity: 0; }
/* Candles: a few on a long table, one on a round one; they flicker */
.dine-candles { position: relative; z-index: 1; display: flex; gap: clamp(14px, 2.4vw, 40px); }
.dine-candles i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff6df 0 30%, #f4d7a0 31% 60%, #e9e0d0 61%);
  box-shadow: 0 0 18px 8px rgba(255, 196, 110, .38), 0 0 60px 26px rgba(255, 180, 90, .14);
  animation: dine-flicker 2.6s ease-in-out infinite;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.dine-candles i:nth-child(2) { animation-delay: -.7s; }
.dine-candles i:nth-child(3) { animation-delay: -1.3s; }
.dine-candles i:nth-child(4) { animation-delay: -.4s; }
.dine-candles i:nth-child(5) { animation-delay: -1.9s; }
.dine-candles i:nth-child(n+2) { display: none; }
.dine-table:not(.is-round) .dine-candles i:nth-child(-n+3) { display: block; }
@keyframes dine-flicker {
  0%, 100% { box-shadow: 0 0 18px 8px rgba(255, 196, 110, .38), 0 0 60px 26px rgba(255, 180, 90, .14); }
  40% { box-shadow: 0 0 14px 6px rgba(255, 196, 110, .3), 0 0 46px 20px rgba(255, 180, 90, .1); }
  70% { box-shadow: 0 0 22px 10px rgba(255, 200, 120, .44), 0 0 70px 30px rgba(255, 180, 90, .17); }
}

/* Each guest: a chair pulled up to the table and a place setting in front of it */
.dine-seat {
  position: absolute;
  z-index: 3;
  width: 0;
  height: 0;
  opacity: 0;
  rotate: var(--a, 0deg);
  scale: .4;
  transition:
    left .9s cubic-bezier(.65, 0, .25, 1), top .9s cubic-bezier(.65, 0, .25, 1),
    rotate .9s cubic-bezier(.65, 0, .25, 1), opacity .5s var(--ease), scale .6s var(--ease);
}
.dine-seat.is-on { opacity: 1; scale: 1; transition-delay: calc(var(--i) * 45ms); }
.dine-chair {
  position: absolute;
  left: 0;
  top: 0;
  /* Sized to the stage (cqw = % of its width), so the setting scales from phone to desktop */
  width: 6.2cqw;
  aspect-ratio: 1 / 1.05;
  translate: -50% -50%;
  border-radius: 8px 8px 10px 10px;
  background: radial-gradient(70% 60% at 50% 60%, #e8e0d2, #cdbfa9);
  box-shadow: 0 10px 18px rgba(0, 0, 0, .45), inset 0 0 0 3px #6d4529;
}
/* The chair back, on the guest's side (away from the table) */
.dine-chair::before {
  content: '';
  position: absolute;
  left: -4%;
  right: -4%;
  top: -14%;
  height: 22%;
  border-radius: 4px;
  background: linear-gradient(180deg, #7b5133, #5f3c24);
  box-shadow: 0 4px 6px rgba(0, 0, 0, .35);
}
/* The setting sits on the table, in front of the chair */
.dine-setting {
  position: absolute;
  left: 0;
  top: 0;
  width: 4.8cqw;
  aspect-ratio: 1;
  translate: -50% calc(-50% + 6cqw);
  opacity: 0;
  scale: .6;
  transition: opacity .5s var(--ease), scale .5s var(--ease);
}
.dine-seat.is-on .dine-setting { opacity: 1; scale: 1; transition-delay: calc(.55s + var(--i) * 70ms); }
.dine-setting .plate {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, #fbf8f2 0 52%, #e9e2d6 53% 58%, #faf6ef 59%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .3);
}
.dine-setting .glass {
  position: absolute;
  right: -22%;
  bottom: -24%;
  width: 30%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .7), rgba(220, 230, 235, .25));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .4);
}
.dine-setting .fork,
.dine-setting .knife {
  position: absolute;
  top: 8%;
  bottom: 8%;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, #d9d4cb, #a9a39a);
}
.dine-setting .fork { left: -16%; }
.dine-setting .knife { right: -16%; }

/* Tables that seat that many */
.dine-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(48px, 6vw, 80px);
}
.dine-option {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px 16px 20px;
  border-radius: 14px;
  background: rgba(255, 248, 238, .06);
  border: 1px solid rgba(243, 236, 226, .1);
  animation: rise .8s var(--ease) calc(var(--i) * 90ms) backwards;
  transition: background-color .3s var(--ease), transform .4s var(--ease);
}
.dine-option:hover { background: rgba(255, 248, 238, .1); transform: translateY(-4px); }
.dine-option-media { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 10px; background: #f4efe7; overflow: hidden; }
.dine-option-media img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.dine-option:hover .dine-option-media img { transform: scale(1.06); }
.dine-option-eyebrow { margin-top: 6px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #e2b77c; }
.dine-option-name { font-family: var(--font-display); font-size: 22px; font-weight: 400; line-height: 1.15; }
.dine-option-chairs { font-size: 13px; line-height: 1.5; color: rgba(243, 236, 226, .7); }
.dine-option-chairs a,
.dine-option-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.dine-option-total { display: grid; margin-top: 6px; font-family: var(--font-display); font-size: 30px; line-height: 1.05; }
.dine-option-total span { font-family: var(--font-body); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(243, 236, 226, .6); }
.dine-option-link { justify-self: start; margin-top: 4px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.dine-options-empty { grid-column: 1 / -1; font-family: var(--font-display); font-size: 26px; color: rgba(243, 236, 226, .8); }
.dine-options-empty a { text-decoration: underline; }

/* ---------- The collections, as a dinner menu ---------- */
.dine-menu-section { padding-block: clamp(90px, 10vw, 160px); background: #f6f1ea; }
.dine-menu-wrap { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2.6fr); gap: clamp(32px, 5vw, 96px); }
.dine-menu-head { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; display: grid; gap: 14px; }
.dine-menu-head .brand-eyebrow { color: var(--brand-accent); }
.dine-menu-head h2 { font-size: clamp(44px, 4.2vw, 72px); line-height: 1; }
.dine-menu { display: grid; border-top: 1px solid var(--color-line); }
.dine-course {
  display: grid;
  grid-template-columns: 56px auto 1fr auto;
  align-items: baseline;
  gap: 18px;
  padding: clamp(18px, 2vw, 28px) 4px;
  border-bottom: 1px solid var(--color-line);
  transition: padding-left .5s var(--ease), color .3s var(--ease);
}
.dine-course-n { font-family: var(--font-display); font-size: 18px; font-style: italic; color: var(--brand-accent); }
.dine-course-name { font-family: var(--font-display); font-size: clamp(34px, 3.4vw, 58px); line-height: 1; letter-spacing: -0.01em; }
.dine-course-dots { align-self: end; margin-bottom: .45em; border-bottom: 2px dotted rgba(42, 33, 28, .22); }
.dine-course-meta { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-muted); white-space: nowrap; }
.dine-course:hover { padding-left: 22px; }
.dine-course:hover .dine-course-name { font-style: italic; }
.dine-menu:hover .dine-course:not(:hover) { color: rgba(29, 26, 23, .35); }
/* Room photo of the collection you point at, crossfading in the heading column */
.dine-menu-preview {
  position: relative;
  margin-top: 18px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 14px;
  background: #e9e1d6;
  box-shadow: 0 24px 50px rgba(40, 30, 20, .14);
}
.dine-menu-preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  scale: 1.08;
  transition: opacity .7s var(--ease), scale 1.4s var(--ease);
}
.dine-menu-preview img.is-on { opacity: 1; scale: 1; }
.dine-menu-caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.dine-menu-caption:empty { display: none; }

/* ---------- Closing: dinner is served ---------- */
.dine-served {
  position: relative;
  overflow: hidden;
  padding-block: clamp(120px, 14vw, 220px);
  text-align: center;
  background: radial-gradient(50% 80% at 50% 100%, #5a3d27 0%, #2a211c 60%, #1a1511 100%);
  color: #f3ece2;
}
.dine-served::before {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 22%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  translate: -50% 0;
  background: radial-gradient(circle, #fff6df 0 30%, #f4d7a0 31% 60%, #e9e0d0 61%);
  box-shadow: 0 0 30px 14px rgba(255, 196, 110, .4), 0 0 120px 60px rgba(255, 180, 90, .16);
  animation: dine-flicker 2.6s ease-in-out infinite;
}
.dine-served-inner { position: relative; display: grid; justify-items: center; gap: 22px; padding-bottom: 60px; }
.dine-served .brand-eyebrow { color: #e2b77c; }
.dine-served h2 { font-size: clamp(56px, 7vw, 124px); line-height: 1; font-style: italic; }

@media (max-width: 900px) {
  .dine-door { padding: 22px 14px; gap: 8px; }
  .dine-plan-inner { grid-template-columns: 1fr; }
  .dine-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dine-menu-wrap { grid-template-columns: 1fr; }
  .dine-menu-head { position: static; }
  .dine-course { grid-template-columns: 36px 1fr; }
  .dine-course-dots { display: none; }
  .dine-course-meta { grid-column: 2; white-space: normal; }
  .dine-menu-preview { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
  .dine-options { grid-template-columns: 1fr; }
  .dine-guests button { width: 46px; height: 46px; font-size: 20px; }
}

/* ==========================================================================
   Living room page (living-room.html) — scripts in js/living.js (and js/room.js)
   Make yourself at home: fly through the word into the room, style the sofa your way,
   discover the hidden talents, then throw through the collections.
   ========================================================================== */

/* ---------- Hero: the room through the letters of LIVING ---------- */
.liv-hero.hero { height: 260vh; overflow: visible; background: #1f2620; color: var(--color-white); }
.motion .liv-hero.hero { clip-path: none; }
.liv-hero-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.liv-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  scale: calc(1.18 - var(--zp, 0) * .18);
}
.liv-hero-mask { position: absolute; inset: 0; width: 100%; height: 100%; opacity: clamp(0, calc((.76 - var(--zp, 0)) * 10), 1); }
.liv-hero-mask text {
  font-family: var(--font-display);
  font-size: 400px;
  font-weight: 600;
  letter-spacing: -6px;
}
.liv-hero-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9vh;
  text-align: center;
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  opacity: calc(1 - var(--zp, 0) * 6);
  animation: room-nudge 2.4s var(--ease) infinite;
}
.liv-hero-content {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-bottom: clamp(56px, 10vh, 120px);
  text-align: center;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
  opacity: clamp(0, calc((var(--zp, 0) - .72) * 6), 1);
  translate: 0 calc((1 - clamp(0, calc((var(--zp, 0) - .72) * 6), 1)) * 40px);
}
.liv-hero-sticky::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 20, 16, .35), rgba(15, 20, 16, 0) 30%, rgba(15, 20, 16, 0) 55%, rgba(15, 20, 16, .55));
  opacity: clamp(0, calc((var(--zp, 0) - .6) * 4), 1);
  pointer-events: none;
}
.liv-hero-content { z-index: 1; }
.liv-hero-title { font-family: var(--font-display); font-size: clamp(60px, 9vw, 160px); font-weight: 400; line-height: .92; letter-spacing: -0.02em; }
.liv-hero-tagline { font-family: var(--font-display); font-size: clamp(22px, 2vw, 32px); font-style: italic; }

/* ---------- Shop the room: real room photos with hotspots ---------- */
.liv-shop { padding-block: clamp(80px, 9vw, 140px); background: #ebe6dd; }
.liv-shop-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(28px, 3.2vw, 48px); }
.liv-shop-head .brand-eyebrow { color: var(--brand-accent); }
.liv-shop-head h2 { margin-top: 12px; font-size: clamp(40px, 4vw, 70px); line-height: 1.02; }
.liv-shop-intro { max-width: 300px; font-size: 15px; line-height: 1.6; color: var(--color-ink-soft); }

.liv-room {
  position: relative;
  aspect-ratio: 3 / 2;
  max-height: calc(100vh - var(--header-h) - 120px);
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: #d9d2c6;
}
.liv-room-photos img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  scale: 1.06;
  transition: opacity .9s var(--ease), scale 1.8s var(--ease);
}
.liv-room-photos img.is-on { opacity: 1; scale: 1; }
/* Dim the room a touch while a piece is open, so it stands out */
.liv-room::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 20, .28);
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.liv-room:has(.liv-panel.is-open)::after { opacity: 1; }

/* Hotspots: a white dot with a ring that breathes */
.liv-room-spots { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.liv-spot {
  position: absolute;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  translate: -50% -50%;
  cursor: pointer;
  pointer-events: auto;
  animation: liv-spot-in .6s var(--ease) calc(.5s + var(--i) * 140ms) backwards;
}
@keyframes liv-spot-in { from { opacity: 0; scale: .3; } }
.liv-spot-dot {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
  transition: inset .3s var(--ease), background-color .3s var(--ease);
}
.liv-spot-dot::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .85);
  animation: liv-breathe 2.4s ease-out infinite;
}
@keyframes liv-breathe { 0% { scale: .6; opacity: 1; } 100% { scale: 1.5; opacity: 0; } }
.liv-spot:hover .liv-spot-dot,
.liv-spot.is-open .liv-spot-dot { inset: 9px; background: var(--brand-deep); box-shadow: 0 0 0 3px #fff, 0 4px 14px rgba(0, 0, 0, .35); }
.liv-spot.is-open .liv-spot-dot::after { animation: none; opacity: 0; }
/* Name label next to the dot on hover */
.liv-spot-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  padding: 7px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-ink);
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
  opacity: 0;
  translate: -50% 6px;
  transition: opacity .3s var(--ease), translate .3s var(--ease);
  pointer-events: none;
}
.liv-spot:hover .liv-spot-label { opacity: 1; translate: -50% 0; }
.liv-spot.is-open .liv-spot-label { opacity: 0; }

/* The product panel: slides in from the side away from the piece */
.liv-panel {
  position: absolute;
  top: 16px;
  bottom: 16px;
  right: 16px;
  z-index: 3;
  display: grid;
  grid-template-rows: 1fr auto auto auto auto;
  gap: 8px;
  width: min(340px, 42%);
  padding: 20px 22px 22px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .25);
  opacity: 0;
  translate: 30px 0;
  transition: opacity .45s var(--ease), translate .45s var(--ease);
}
.liv-panel.is-left { right: auto; left: 16px; translate: -30px 0; }
.liv-panel.is-open { opacity: 1; translate: 0 0; }
.liv-panel-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f2efe9;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.liv-panel-close:hover { background: var(--brand-deep); color: #fff; }
.liv-panel-media { display: grid; place-items: center; min-height: 0; padding: 8px 0; }
.liv-panel-media img { width: 100%; height: 100%; max-height: 260px; object-fit: contain; }
.liv-panel-eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-accent); }
.liv-panel-name { font-family: var(--font-display); font-size: 26px; font-weight: 400; line-height: 1.12; }
.liv-panel-name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.liv-panel-price { font-family: var(--font-display); font-size: 28px; }
.liv-panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px; }
.liv-panel-view { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.liv-added-text { display: none; }
[data-panel-add].is-added .liv-add-text { display: none; }
[data-panel-add].is-added .liv-added-text { display: inline; }

/* Previous / next room */
.liv-room-nav {
  position: absolute;
  bottom: 18px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  font-size: 18px;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.liv-room-nav.is-prev { right: 74px; }
.liv-room-nav.is-next { right: 18px; }
.liv-room-nav:hover { background: var(--brand-deep); color: #fff; }

.liv-room-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 18px; }
.liv-room-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.liv-room-tabs button {
  padding: 9px 16px;
  border: 1px solid rgba(31, 38, 32, .2);
  border-radius: 999px;
  background: transparent;
  color: var(--color-ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.liv-room-tabs button:hover { border-color: var(--brand-deep); }
.liv-room-tabs button[aria-selected="true"] { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.liv-room-pieces { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: 13px; color: var(--color-ink-soft); }
.liv-room-all { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-ink); border-bottom: 1px solid currentColor; padding-bottom: 3px; }

@media (max-width: 760px) {
  .liv-room { aspect-ratio: 4 / 5; max-height: none; }
  .liv-panel,
  .liv-panel.is-left { left: 10px; right: 10px; top: auto; bottom: 10px; width: auto; grid-template-rows: auto; grid-template-columns: 96px 1fr; translate: 0 30px; }
  .liv-panel.is-open { translate: 0 0; }
  .liv-panel-media { grid-row: span 4; }
  .liv-panel-media img { max-height: 110px; }
  .liv-panel-name { font-size: 20px; }
  .liv-panel-price { font-size: 22px; }
  .liv-panel-actions { grid-column: 1 / -1; }
  .liv-room-nav { top: 14px; bottom: auto; }
}

/* ---------- Hidden talents: the piece, then its feature, in real photos ---------- */
.liv-talents { padding-block: clamp(90px, 10vw, 150px) clamp(40px, 5vw, 70px); }
.liv-talent-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.liv-talent { display: grid; align-content: start; gap: 8px; }
.liv-talent-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}
.liv-talent-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .7s var(--ease), transform 1.2s var(--ease);
}
.liv-talent-media img.is-cut { object-fit: contain; padding: 12%; }
.liv-talent-media img.is-after { opacity: 0; transform: scale(1.06); }
.liv-talent:hover .liv-talent-media img.is-after,
.liv-talent:focus-visible .liv-talent-media img.is-after,
.liv-talent.is-showing .liv-talent-media img.is-after { opacity: 1; transform: none; }
.liv-talent:hover .liv-talent-media img:not(.is-after) { transform: scale(1.04); }
/* A hint that the photo changes */
.liv-talent-media::after {
  content: 'Hover to see';
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 0 0 1px rgba(31, 38, 32, .12);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: opacity .4s var(--ease);
}
.liv-talent:hover .liv-talent-media::after,
.liv-talent.is-showing .liv-talent-media::after { opacity: 0; }
@media (hover: none) { .liv-talent-media::after { content: 'See it'; } }
.liv-talent-n { margin-top: 8px; font-family: var(--font-display); font-size: 48px; line-height: 1; color: var(--brand-accent); }
.liv-talent-name { font-family: var(--font-display); font-size: 26px; line-height: 1.1; }
.liv-talent-text { font-size: 14px; line-height: 1.6; color: var(--color-ink-soft); }

/* ---------- The collections: a strip to drag and throw ---------- */
.liv-strip-section { padding-block: clamp(80px, 9vw, 140px); background: #1f2620; color: #eef0e8; overflow: hidden; }
.liv-strip-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: clamp(28px, 3vw, 48px); }
.liv-strip-head .brand-eyebrow { color: #b8c4a2; }
.liv-strip-head h2 { margin-top: 12px; font-size: clamp(44px, 4.4vw, 76px); line-height: 1; }
.liv-strip-hint { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: rgba(238, 240, 232, .6); }
.liv-strip-hint span { display: inline-block; margin-left: 8px; animation: liv-hint 2.4s ease-in-out infinite; }
@keyframes liv-hint { 50% { translate: 8px 0; } }
.liv-strip {
  display: flex;
  gap: 18px;
  padding: 10px var(--gutter) 20px;
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}
.liv-strip::-webkit-scrollbar { display: none; }
.liv-strip.is-dragging { cursor: grabbing; }
.liv-card {
  flex: 0 0 clamp(250px, 24vw, 360px);
  display: grid;
  gap: 8px;
  transform: skewX(var(--lean, 0deg));
  transform-origin: 50% 100%;
}
.liv-card-media { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 14px; background: #2c352d; }
.liv-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); pointer-events: none; }
.liv-card:hover .liv-card-media img { transform: scale(1.06); }
.liv-card-name { margin-top: 6px; font-family: var(--font-display); font-size: 30px; line-height: 1.05; }
.liv-card-meta { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(238, 240, 232, .62); }

/* ---------- Closing: put your feet up ---------- */
.liv-feet {
  padding-block: clamp(110px, 13vw, 200px);
  text-align: center;
  background: radial-gradient(60% 90% at 50% 100%, #e3e8d8 0%, #f4f2ec 70%);
}
.liv-feet-inner { display: grid; justify-items: center; gap: 22px; }
.liv-feet .brand-eyebrow { color: var(--brand-accent); }
.liv-feet h2 { font-size: clamp(56px, 7vw, 124px); line-height: 1; font-style: italic; }

@media (max-width: 900px) {
  .liv-hero.hero { height: 200vh; }
  .liv-hero-mask text { font-size: 300px; }
  .liv-talent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .liv-talent-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   Lighting page (lighting.html) — scripts in js/lighting.js
   Lamps photographed lit on black switch on in the dark, then every lamp, then the rooms
   they light at night, and one last switch.
   ========================================================================== */

.lit-page { --warm: 255, 196, 120; }

/* ---------- Hero ---------- */
.lit-hero.hero {
  --hp: 0;
  height: max(680px, calc(100svh - 36px));
  background: #000;
  color: #f4ede2;
}
.motion .lit-hero.hero { clip-path: none; }
.lit-hero-head {
  position: absolute;
  inset: calc(var(--header-h) + clamp(28px, 6vh, 70px)) 0 auto;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  opacity: calc(1 - var(--hp) * 2.4);
}
.lit-hero-head .brand-eyebrow { color: rgba(var(--warm), .8); }
.lit-hero-title {
  font-family: var(--font-display);
  font-size: clamp(72px, 11vw, 190px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -0.02em;
  /* The title catches the lamplight as the lamps come on */
  background: linear-gradient(180deg, #fff6e6 20%, #d9b17a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lit-hero-tagline { font-size: 15px; letter-spacing: .04em; color: rgba(244, 237, 226, .7); }
.motion .lit-hero-title { animation: lit-title 2.6s var(--ease) .2s backwards; }
.motion .lit-hero-head .brand-eyebrow,
.motion .lit-hero-tagline { animation: rise 1.2s var(--ease) 2.2s backwards; }
@keyframes lit-title { from { opacity: 0; filter: blur(14px); letter-spacing: .1em; } }

/* The lamps: their photos are lit on pure black, so on the black page they need no cut-out */
.lit-row {
  position: absolute;
  left: 50%;
  bottom: 9%;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: min(1500px, 100%);
  height: 58%;
  translate: -50% 0;
}
.lit-lamp {
  position: relative;
  flex: 0 0 auto;
  height: 58%;
  margin-inline: -1.8%;
  /* Scrolling spreads the row and lifts it slightly */
  translate: calc(var(--k) * var(--hp) * 60px) calc(var(--hp) * -30px);
}
.lit-lamp.is-floor { height: 100%; margin-inline: -6.5%; }
.lit-lamp img {
  display: block;
  height: 100%;
  width: auto;
  mix-blend-mode: lighten;
  /* Off: barely there. On: full brightness, with a short flicker */
  filter: brightness(.1) saturate(.4);
  transition: filter .4s ease;
}
.lit-lamp.is-on img { filter: none; animation: lit-flicker .5s steps(1) 1; }
@keyframes lit-flicker { 0% { filter: brightness(.9); } 20% { filter: brightness(.25); } 35% { filter: none; } 55% { filter: brightness(.55); } 70% { filter: none; } }
/* Warm light thrown onto the wall and floor around each lamp */
.lit-glow {
  position: absolute;
  left: 50%;
  top: 28%;
  z-index: -1;
  width: 260%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--warm), .26), rgba(var(--warm), .08) 45%, rgba(var(--warm), 0));
  opacity: 0;
  transition: opacity 1.4s var(--ease) .2s;
  pointer-events: none;
}
.lit-lamp.is-floor .lit-glow { top: 14%; }
.lit-lamp.is-on .lit-glow { opacity: 1; }
.lit-lamp:hover .lit-glow { opacity: 1; background: radial-gradient(closest-side, rgba(var(--warm), .4), rgba(var(--warm), .12) 45%, rgba(var(--warm), 0)); }
.lit-lamp-tag {
  position: absolute;
  left: 50%;
  bottom: -8px;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #f4ede2;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  translate: -50% 10px;
  transition: opacity .3s var(--ease), translate .3s var(--ease);
  pointer-events: none;
}
.lit-lamp-tag b { font-family: var(--font-display); font-size: 18px; font-weight: 400; }
.lit-lamp:hover .lit-lamp-tag { opacity: 1; translate: -50% 0; }
.lit-floor {
  position: absolute;
  inset: auto 0 0;
  height: 14%;
  background: linear-gradient(180deg, rgba(var(--warm), .05), rgba(0, 0, 0, 0));
  border-top: 1px solid rgba(var(--warm), .12);
}
.lit-hero .hero-cue { z-index: 3; color: rgba(244, 237, 226, .7); }

/* ---------- Find your lamp ---------- */
/* ---------- Collection summary: three styles; pointing at one switches its lamps on ---------- */
.lit-styles { padding-block: clamp(80px, 9vw, 140px); background: #16130f; color: #f4ede2; }
.lit-styles-head { display: grid; gap: 12px; margin-bottom: clamp(36px, 4vw, 60px); }
.lit-styles-head .brand-eyebrow { color: var(--brand-accent); }
.lit-styles-head h2 { font-size: clamp(40px, 4.2vw, 72px); line-height: 1.02; }
.lit-styles-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); }
.lit-style {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  gap: 10px;
  min-height: clamp(460px, 42vw, 600px);
  padding: clamp(22px, 2.2vw, 32px);
  overflow: hidden;
  border-radius: 18px;
  background: #221d17;
  isolation: isolate;
  transition: background-color .6s var(--ease), transform .6s var(--ease);
}
/* The warm glow behind the lamps, as if they've just been switched on */
.lit-style-glow {
  position: absolute;
  left: 50%;
  top: 34%;
  z-index: -1;
  width: 120%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 214, 150, .55), rgba(255, 190, 110, .14) 55%, transparent 72%);
  opacity: .18;
  scale: .7;
  transition: opacity .7s var(--ease), scale .9s var(--ease);
}
/* Each lamp sits on its own white plate, so the photos read cleanly on the dark card */
.lit-style-lamps { display: flex; justify-content: center; align-items: flex-end; height: clamp(190px, 18vw, 250px); }
.lit-style-lamps img {
  width: 34%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  padding: 8px;
  margin-inline: -2%;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  filter: brightness(.62) saturate(.7);
  translate: 0 calc(var(--k) * 6px);
  rotate: calc((var(--k) - 1) * 4deg);
  transition: filter .6s var(--ease) calc(var(--k) * 90ms), translate .7s var(--ease) calc(var(--k) * 60ms), rotate .7s var(--ease);
}
.lit-style-lamps img:nth-child(2) { z-index: 1; width: 38%; }
.lit-style-n { margin-top: 8px; font-size: 11px; letter-spacing: .2em; color: var(--brand-accent); }
.lit-style-name { font-size: clamp(34px, 3vw, 50px); line-height: 1; }
.lit-style-blurb { max-width: 32ch; font-size: 15px; line-height: 1.6; color: rgba(244, 237, 226, .72); }
.lit-style-count { align-self: end; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(244, 237, 226, .85); }
.lit-style:hover,
.lit-style:focus-visible { background: #2e261d; transform: translateY(-6px); }
.lit-style:hover .lit-style-glow,
.lit-style:focus-visible .lit-style-glow { opacity: 1; scale: 1; }
.lit-style:hover .lit-style-lamps img,
.lit-style:focus-visible .lit-style-lamps img { filter: none; translate: 0 -8px; rotate: 0deg; }
/* Touch screens can't point: the lamps are on */
@media (hover: none) {
  .lit-style .lit-style-glow { opacity: .7; scale: .9; }
  .lit-style .lit-style-lamps img { filter: none; }
}
@media (max-width: 900px) {
  .lit-styles-grid { grid-template-columns: 1fr; }
  .lit-style { min-height: 0; }
}

.lit-find { padding-block: clamp(80px, 9vw, 140px); background: #f6f2ec; }
.lit-find-head { display: grid; gap: 22px; margin-bottom: clamp(28px, 3vw, 44px); }
.lit-find-head .brand-eyebrow { color: #a07a45; }
.lit-find-head h2 { margin-top: 12px; font-size: clamp(42px, 4.2vw, 72px); line-height: 1; }
.lit-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.lit-filters button {
  padding: 10px 16px;
  border: 1px solid rgba(22, 19, 15, .18);
  border-radius: 999px;
  background: transparent;
  color: var(--color-ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.lit-filters button span { margin-left: 4px; color: var(--color-muted); }
.lit-filters button:hover { border-color: #16130f; }
.lit-filters button[aria-pressed="true"] { background: #16130f; border-color: #16130f; color: #fff; }
.lit-filters button[aria-pressed="true"] span { color: rgba(255, 255, 255, .6); }
/* One card per design, its finishes as swatches */
.lit-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 18px; }
.lit-card { display: grid; align-content: start; gap: 14px; }
.lit-card-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  isolation: isolate;
}
/* Warm light rising behind the lamp on hover */
.lit-card-media::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 32%;
  z-index: -1;
  width: 120%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--warm), .34), rgba(var(--warm), .1) 50%, rgba(var(--warm), 0));
  opacity: 0;
  scale: .5;
  transition: opacity .7s var(--ease), scale 1s var(--ease);
}
.lit-card:hover .lit-card-media::before { opacity: 1; scale: 1; }
.lit-card-media img {
  width: 78%;
  height: 86%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform .8s var(--ease), opacity .3s var(--ease), filter .3s var(--ease);
}
.lit-card:hover .lit-card-media img { transform: translateY(-8px) scale(1.03); }
.lit-card-media img.is-swapping { opacity: 0; filter: blur(6px); transform: scale(.96); }
.lit-card-body { display: grid; gap: 4px; }
.lit-card-name { font-family: var(--font-display); font-size: 24px; font-weight: 400; line-height: 1.1; }
.lit-card-name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.lit-card-meta { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-muted); }
.lit-card-price { font-size: 15px; }
/* Finishes */
.lit-swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.lit-swatch {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14);
  cursor: pointer;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.lit-swatch:hover { transform: scale(1.12); }
.lit-swatch[aria-checked="true"] { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), 0 0 0 2px #f6f2ec, 0 0 0 3px #16130f; }
.lit-finish { margin-left: 4px; font-size: 12px; color: var(--color-muted); }
.lit-finish.is-single { margin: 6px 0 0; }
.lit-more-wrap { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }
.lit-more {
  padding: 15px 30px;
  border: 1px solid #16130f;
  border-radius: 999px;
  background: transparent;
  color: #16130f;
  font: inherit;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.lit-more:hover { background: #16130f; color: #fff; }

/* ---------- After dark ---------- */
.lit-dark { padding-block: clamp(90px, 10vw, 160px); background: #0d0b09; color: #f4ede2; }
.lit-dark-head { display: grid; justify-items: center; gap: 12px; margin-bottom: clamp(36px, 4vw, 64px); text-align: center; }
.lit-dark-head .brand-eyebrow { color: rgba(var(--warm), .8); }
.lit-dark-head h2 { font-size: clamp(44px, 4.6vw, 80px); line-height: 1; }
.lit-dark-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lit-night { --on: 1; display: grid; gap: 12px; }
.lit-night:nth-child(3n+2) { margin-top: 80px; }
.lit-night:nth-child(3n) { margin-top: 30px; }
.lit-night-media { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: #1b1714; }
.lit-night-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Dim until it reaches the middle of the screen, then the room is lit */
  filter: brightness(calc(.35 + var(--on) * .7)) saturate(calc(.5 + var(--on) * .6));
  scale: calc(1.08 - var(--on) * .08);
}
.lit-night-cap { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; opacity: calc(.4 + var(--on) * .6); }
.lit-night-cap b { font-family: var(--font-display); font-size: 24px; font-weight: 400; }
.lit-night-cap span { font-size: 13px; color: rgba(244, 237, 226, .7); }

/* ---------- Lights out ---------- */
.lit-out {
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  padding-block: clamp(90px, 10vw, 150px);
  background: #000;
  color: #f4ede2;
  transition: background-color 1s var(--ease);
}
.lit-out-lamp { position: absolute; right: 12%; bottom: 0; z-index: 0; height: 82%; }
.lit-out-lamp img { position: relative; height: 100%; width: auto; mix-blend-mode: lighten; transition: filter .25s ease; }
.lit-out-lamp .lit-glow { opacity: 1; width: 320%; top: 25%; transition: opacity .25s ease; }
.lit-out.is-off .lit-out-lamp img { filter: brightness(.08) saturate(.3); }
.lit-out.is-off .lit-out-lamp .lit-glow { opacity: 0; }
.lit-out-inner { position: relative; display: grid; gap: 22px; }
.lit-out .brand-eyebrow { color: rgba(var(--warm), .8); }
.lit-out .brand-eyebrow a { text-decoration: underline; text-underline-offset: 3px; }
.lit-out h2 { font-size: clamp(56px, 7vw, 124px); line-height: 1; font-style: italic; }
.lit-out .is-off-text { display: none; }
.lit-out.is-off .is-on-text { display: none; }
.lit-out.is-off .is-off-text { display: inline; }
.lit-out-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.lit-out-switch { display: inline-flex; align-items: center; gap: 14px; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; cursor: pointer; }
.lit-out-switch span {
  position: relative;
  width: 30px;
  height: 46px;
  border-radius: 6px;
  background: linear-gradient(#f8f5ef, #e6e0d5);
}
.lit-out-switch span::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 8px;
  width: 12px;
  height: 18px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 3px 0 #cbc1b2;
  transition: top .25s var(--ease), box-shadow .25s var(--ease);
}
.lit-out.is-off .lit-out-switch span::after { top: 20px; box-shadow: 0 -3px 0 #cbc1b2; }

@media (max-width: 1100px) { .lit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .lit-row { height: 40%; bottom: 10%; }
  .lit-lamp:nth-child(-n+2), .lit-lamp:nth-child(n+6) { display: none; }
  .lit-hero .hero-cue { display: none; }
  .lit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
    .lit-dark-grid { grid-template-columns: 1fr 1fr; }
  .lit-night:nth-child(n) { margin-top: 0; }
  .lit-night:nth-child(even) { margin-top: 40px; }
  .lit-out-lamp { right: -10%; opacity: .7; }
}

/* ==========================================================================
   Storage page (storage.html) — scripts in js/storage.js
   Open up: the doors swing open on the hero piece, then on every piece, then the rooms.
   ========================================================================== */

/* ---------- Hero: X-ray. The cursor is a lens that sees through the doors (js/storage.js) ----------
   --lx/--ly: the lens centre, --r: its radius (px, on .sto-xray-piece); --open: 0 → 1 as it widens. */
.sto-hero { --open: 0; --hp: 0; position: relative; height: 260vh; background: #efe8de; }
/* (its own background: a sticky element blends its children against itself, not the page) */
/* This page's hero starts below the header (not under it), so it pins just beneath it */
.sto-hero-sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow: hidden; display: flex; flex-direction: column; align-items: center; padding-top: clamp(10px, 3vh, 36px); background: #efe8de; }
.sto-hero-head { position: relative; display: grid; justify-items: center; gap: 8px; text-align: center; z-index: 2; pointer-events: none; }
.sto-hero-head .brand-eyebrow { color: var(--brand-accent); }
.sto-xray-title {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 150px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -0.02em;
  opacity: calc(1 - var(--open) * .85);
  translate: 0 calc(var(--open) * -24px);
}
.sto-xray-hint { margin-top: 14px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--color-ink-soft); opacity: calc(1 - var(--open) * 3); transition: color .4s var(--ease); }
.sto-hero.is-looking .sto-xray-hint { color: var(--brand-accent); }
/* The space for the piece: everything between the heading and the closing line */
.sto-xray-stage { flex: 1 1 0; min-height: 0; width: 100%; display: grid; grid-template-rows: minmax(0, 1fr); place-items: center; padding-block: clamp(14px, 3vh, 40px) clamp(80px, 13vh, 130px); }
/* The piece: the two photos stacked; the whole group is multiplied onto the page, so the photos'
   white disappears into the background while the open photo still covers the closed one */
.sto-xray-piece {
  position: relative;
  /* As big as the space between the heading and the closing line allows */
  width: min(80vw, 1060px);
  max-height: 100%;
  aspect-ratio: 1600 / 719;
  mix-blend-mode: multiply;
  isolation: isolate;
  cursor: none;
  touch-action: pan-y;
  scale: calc(1 + var(--open) * .06);
}
.sto-xray-piece img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; }
.sto-xray-open {
  -webkit-mask-image: radial-gradient(circle var(--r, 0px) at var(--lx, 50%) var(--ly, 50%), #000 calc(100% - 2px), transparent 100%);
  mask-image: radial-gradient(circle var(--r, 0px) at var(--lx, 50%) var(--ly, 50%), #000 calc(100% - 2px), transparent 100%);
}
/* The lens: a brass ring with a soft glow; it fades away as it opens the whole piece */
.sto-xray-lens {
  position: absolute;
  left: var(--lx, 50%);
  top: var(--ly, 50%);
  width: calc(var(--r, 0px) * 2);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(176, 138, 82, .9), 0 0 0 7px rgba(176, 138, 82, .12), inset 0 0 40px rgba(176, 138, 82, .18);
  opacity: calc(1 - var(--open) * 1.4);
  pointer-events: none;
}
/* A tiny crosshair at the centre while pointing */
.sto-xray-lens::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  translate: -50% -50%;
  border-radius: 50%;
  background: rgba(176, 138, 82, .9);
}
.sto-hero-line {
  position: absolute;
  bottom: clamp(36px, 7vh, 80px);
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(28px, 2.8vw, 46px);
  font-style: italic;
  opacity: clamp(0, calc((var(--open) - .55) * 3), 1);
  translate: 0 calc((1 - var(--open)) * 20px);
}
.sto-hero .hero-cue { color: var(--color-ink-soft); opacity: calc(1 - var(--hp) * 6); }
.sto-hero .hero-cue i { background: rgba(43, 36, 30, .2); }
.sto-hero .hero-cue i::after { background: var(--brand-deep); }
.motion .sto-xray-title { animation: room-focus 1.8s var(--ease) .2s backwards; }
.motion .sto-xray-piece { animation: rise 1.6s var(--ease) .3s backwards; }
@media (hover: none) {
  .sto-xray-piece { cursor: auto; }
}

/* ---------- Look inside ---------- */
/* ---------- Small, big or tall?: three pieces on one floor, at real relative heights ---------- */
.sto-sizes { padding-block: clamp(80px, 9vw, 140px); background: #efe8de; overflow: hidden; }
.sto-sizes-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(30px, 4vw, 56px); }
.sto-sizes-head .brand-eyebrow { color: var(--brand-accent); }
.sto-sizes-head h2 { margin-top: 12px; font-size: clamp(44px, 4.4vw, 76px); line-height: 1; }
.sto-sizes-head > p { max-width: 360px; font-size: 15px; line-height: 1.65; color: var(--color-ink-soft); }
.sto-sizes-stage { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 32px); }
.sto-size {
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: 0 0 8px;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
/* The floor: every figure stands on the same line; its height is --h% of the tallest */
.sto-size-figure {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: clamp(220px, 24vw, 360px);
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(26, 33, 48, .25);
}
.sto-size-figure img {
  height: calc(var(--h) * 1%);
  max-width: 92%;
  width: auto;
  object-fit: contain;
  object-position: bottom;
  mix-blend-mode: multiply;
  transform-origin: 50% 100%;
  transition: transform .5s var(--ease);
}
/* A soft shadow on the floor (a filter on the photo would stop its white blending away) */
.sto-size-figure::after { content: ''; position: absolute; bottom: -6px; left: 30%; right: 30%; height: 12px; border-radius: 50%; background: radial-gradient(closest-side, rgba(60, 42, 25, .22), transparent); z-index: -1; }
.sto-size-figure { isolation: isolate; background: #efe8de; } /* the section's colour, for the photo's white to blend into */
/* A measuring line beside each piece, as tall as the piece */
.sto-size-rule {
  position: absolute;
  bottom: 0;
  right: 4%;
  width: 9px;
  height: calc(var(--h) * 1%);
  border-block: 1px solid var(--brand-accent);
  background: linear-gradient(var(--brand-accent), var(--brand-accent)) center / 1px 100% no-repeat;
  transform-origin: 50% 100%;
}
.sto-size-name { font-size: clamp(36px, 3.4vw, 58px); line-height: 1; }
.sto-size-label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-accent); }
.sto-size-blurb { max-width: 34ch; font-size: 15px; line-height: 1.6; color: var(--color-ink-soft); }
.sto-size-count { margin-top: 6px; font-size: 13px; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.sto-size:hover .sto-size-figure img,
.sto-size:focus-visible .sto-size-figure img { transform: translateY(-8px); }
.sto-size.is-on .sto-size-count { color: var(--brand-accent); }
/* Rising into place: small, then big, then tall, each with its measuring line growing up beside it */
.motion .sto-sizes .sto-size-figure img { opacity: 0; transform: translateY(40px) scale(.94); transition: opacity .9s var(--ease) calc(var(--i) * 220ms), transform 1.1s var(--ease) calc(var(--i) * 220ms); }
.motion .sto-sizes .sto-size-rule { transform: scaleY(0); transition: transform 1.1s var(--ease) calc(var(--i) * 220ms + 400ms); }
.motion .sto-sizes.is-in .sto-size-figure img { opacity: 1; transform: none; }
.motion .sto-sizes.is-in .sto-size-rule { transform: none; }
.motion .sto-sizes.is-in .sto-size:hover .sto-size-figure img { transform: translateY(-8px); transition-delay: 0s; }
/* Size tabs above the Look inside grid */
.sto-size-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 40px); }
.sto-size-tabs button { padding: 10px 18px; border: 1px solid rgba(26, 33, 48, .18); border-radius: 999px; background: transparent; font: inherit; font-size: 13px; color: var(--color-ink); cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease); }
.sto-size-tabs button span { margin-left: 4px; opacity: .55; }
.sto-size-tabs button[aria-pressed="true"] { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.sto-card[hidden] { display: none; }
@media (max-width: 900px) {
  .sto-sizes-stage { grid-template-columns: 1fr; gap: 44px; }
}

.sto-inside { padding-block: clamp(90px, 10vw, 150px); background: #f7f3ed; }
.sto-inside-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(36px, 4vw, 60px); }
.sto-inside-head .brand-eyebrow { color: var(--brand-accent); }
.sto-inside-head h2 { margin-top: 12px; font-size: clamp(44px, 4.4vw, 76px); line-height: 1; }
.sto-inside-head > p { max-width: 380px; font-size: 15px; line-height: 1.65; color: var(--color-ink-soft); }
.sto-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 22px; }
.sto-card { display: grid; align-content: start; gap: 18px; }
.sto-doors {
  position: relative;
  display: grid;
  place-items: end center;
  aspect-ratio: 5 / 4;
  padding: 10% 8% 9%;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
}
.sto-doors::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 7%;
  height: 6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(70, 50, 30, .16), rgba(70, 50, 30, 0));
}
.sto-doors img {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 9%;
  width: 84%;
  height: 78%;
  object-fit: contain;
  object-position: bottom;
  z-index: 1;
}
.sto-doors img { transition: opacity .55s var(--ease), filter .55s var(--ease), transform .8s var(--ease); }
.sto-doors .is-open { opacity: 0; filter: blur(6px); transform: scale(.96); }
.sto-doors:hover .is-open,
.sto-doors:focus-visible .is-open,
.sto-doors.is-open .is-open { opacity: 1; filter: none; transform: scale(1.03); }
.sto-doors:hover .is-closed,
.sto-doors:focus-visible .is-closed,
.sto-doors.is-open .is-closed { opacity: 0; filter: blur(6px); transform: scale(1.04); }
.sto-doors-hint {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(43, 36, 30, .14);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  transition: opacity .3s var(--ease);
}
.sto-doors:hover .sto-doors-hint,
.sto-doors.is-open .sto-doors-hint { opacity: 0; }
.sto-card-body { display: grid; gap: 4px; }
.sto-card-col { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-accent); }
.sto-card-name { font-family: var(--font-display); font-size: 26px; font-weight: 400; line-height: 1.1; }
.sto-card-name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.sto-card-features { font-size: 13px; color: var(--color-ink-soft); }
.sto-card-price { margin-top: 4px; font-size: 15px; }
.motion .sto-card { animation: rise .9s var(--ease) calc(var(--i) * 50ms) backwards; }

/* ---------- Where it lives ---------- */
.sto-rooms { padding-block: clamp(90px, 10vw, 150px); background: #2b241e; color: #f3ece2; }
.sto-rooms-head { display: grid; justify-items: center; gap: 12px; margin-bottom: clamp(48px, 6vw, 90px); text-align: center; }
.sto-rooms-head .brand-eyebrow { color: #d6b48a; }
.sto-rooms-head h2 { font-size: clamp(44px, 4.6vw, 80px); line-height: 1; }
.sto-room { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); align-items: center; }
.sto-room + .sto-room { margin-top: clamp(64px, 8vw, 120px); }
.sto-room.is-flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
.sto-room.is-flip .sto-room-media { order: 2; }
.sto-room-media { --drift: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 18px; }
.sto-room-media img { width: 100%; height: 116%; object-fit: cover; translate: 0 calc(-8% + var(--drift) * -6%); }
.sto-room-copy { display: grid; gap: 16px; }
.sto-room-n { font-family: var(--font-display); font-size: 20px; font-style: italic; color: #d6b48a; }
.sto-room-copy h3 { font-size: clamp(38px, 3.4vw, 58px); line-height: 1; }
.sto-room-copy > p:not(.sto-room-n) { max-width: 380px; font-size: 16px; line-height: 1.7; color: rgba(243, 236, 226, .72); }
.sto-room-link {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: 400px;
  padding: 16px 0;
  border-top: 1px solid rgba(243, 236, 226, .2);
  border-bottom: 1px solid rgba(243, 236, 226, .2);
  font-size: 14px;
  transition: padding-left .4s var(--ease);
}
.sto-room-link:hover { padding-left: 10px; }

/* ---------- Closing ---------- */
.sto-close { padding-block: clamp(110px, 13vw, 200px); text-align: center; background: #efe8de; }
.sto-close-inner { display: grid; justify-items: center; gap: 22px; }
.sto-close .brand-eyebrow { color: var(--brand-accent); }
.sto-close h2 { font-size: clamp(56px, 7vw, 124px); line-height: 1; font-style: italic; color: var(--brand-deep); }

@media (max-width: 900px) {
  .sto-hero { height: 200vh; }
  .sto-xray-piece { width: 94vw; }
  .sto-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 12px; }
  .sto-room,
  .sto-room.is-flip { grid-template-columns: 1fr; }
  .sto-room.is-flip .sto-room-media { order: 0; }
}
@media (max-width: 560px) { .sto-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Office page (office.html) — scripts in js/office.js
   Working from home: one console as a desk and as a living room piece, the desk in detail,
   consoles with built-in power, and lamps that charge your phone.
   ========================================================================== */

/* ---------- Hero: work / home, split by a divider ---------- */
.off-hero { position: relative; height: 230vh; background: #e9e6e1; }
.off-hero-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.off-split { --x: 88%; position: absolute; inset: 0; }
.off-split img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.off-split-home { object-position: center 60%; }
/* The work photo covers everything left of the divider */
.off-split-work { clip-path: inset(0 calc(100% - var(--x)) 0 0); object-position: center 55%; }
.off-split::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 26, 32, 0) 45%, rgba(20, 26, 32, .55));
  pointer-events: none;
}
.off-split-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x);
  z-index: 2;
  width: 64px;
  padding: 0;
  border: 0;
  background: none;
  translate: -50% 0;
  cursor: ew-resize;
  touch-action: none;
}
.off-split-handle::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, .2);
  translate: -50% 0;
}
.off-split-handle span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand-deep);
  font-size: 13px;
  letter-spacing: .1em;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  translate: -50% -50%;
  transition: scale .3s var(--ease);
}
.off-split-handle:hover span,
.off-split-handle:focus-visible span { scale: 1.1; }
.off-split-label {
  position: absolute;
  top: calc(var(--header-h) + 40px);
  z-index: 1;
  display: grid;
  gap: 2px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: opacity .5s var(--ease), translate .5s var(--ease);
}
.off-split-label b { font-family: var(--font-display); font-size: 28px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--brand-deep); }
.off-split-label.is-work { left: var(--gutter); }
.off-split-label.is-home { right: var(--gutter); text-align: right; }
.off-hero:not(.is-home) .off-split-label.is-home,
.off-hero.is-home .off-split-label.is-work { opacity: .35; }
.off-hero-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  display: grid;
  gap: 10px;
  /* + the announcement bar's height, so the title clears the bottom on arrival */
  padding-bottom: calc(clamp(48px, 9vh, 100px) + 64px);
  color: #fff;
  pointer-events: none;
}
.off-hero-content .brand-eyebrow { color: rgba(255, 255, 255, .85); }
.off-hero-title { font-family: var(--font-display); font-size: clamp(80px, 12vw, 210px); font-weight: 400; line-height: .9; letter-spacing: -0.02em; }
.off-hero-tagline { font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 34px); font-style: italic; }
.motion .off-hero-title { animation: room-focus 2s var(--ease) .2s backwards; }
.motion .off-hero-content .brand-eyebrow,
.motion .off-hero-tagline,
.motion .off-split-label { animation: rise 1.2s var(--ease) 1s backwards; }

/* ---------- The desk ---------- */
.off-desk { padding-block: clamp(90px, 10vw, 150px); background: #f5f4f1; }
.off-desk-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.off-desk-media { position: sticky; top: calc(var(--header-h) + 32px); }
.off-desk-photos { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 18px; background: #fff; }
.off-desk-photos img {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
  object-fit: contain;
  opacity: 0;
  scale: .96;
  filter: blur(6px);
  transition: opacity .7s var(--ease), scale 1s var(--ease), filter .7s var(--ease);
}
.off-desk-photos img.is-on { opacity: 1; scale: 1; filter: none; }
.off-desk-progress { --p: 25%; display: block; height: 2px; margin-top: 14px; background: rgba(31, 42, 53, .12); }
.off-desk-progress::after { content: ''; display: block; width: var(--p); height: 100%; background: var(--brand-deep); transition: width .6s var(--ease); }
.off-desk-head { display: grid; gap: 14px; padding-bottom: 6vh; }
.off-desk-head .brand-eyebrow { color: var(--brand-accent); }
.off-desk-head h2 { font-size: clamp(40px, 3.8vw, 64px); line-height: 1.02; }
.off-desk-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.off-desk-price { font-family: var(--font-display); font-size: 32px; }
.off-desk-view { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.off-added-text { display: none; }
[data-desk-add].is-added .off-add-text { display: none; }
[data-desk-add].is-added .off-added-text { display: inline; }
.off-step { display: grid; align-content: center; gap: 14px; min-height: 62vh; padding-block: 6vh; opacity: .25; transition: opacity .6s var(--ease); }
.off-step.is-active { opacity: 1; }
.off-step-n { font-family: var(--font-display); font-size: 20px; font-style: italic; color: var(--brand-accent); }
.off-step h3 { font-size: clamp(32px, 2.8vw, 46px); line-height: 1.05; }
.off-step p:not(.off-step-n) { max-width: 420px; font-size: 16px; line-height: 1.7; color: var(--color-ink-soft); }

/* ---------- Shared section heads ---------- */
.off-section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(32px, 4vw, 56px); }
.off-section-head .brand-eyebrow { color: var(--brand-accent); }
.off-section-head h2 { max-width: 720px; margin-top: 12px; font-size: clamp(40px, 4vw, 68px); line-height: 1.02; }
.off-section-head > p { max-width: 380px; font-size: 15px; line-height: 1.65; color: var(--color-ink-soft); }

/* ---------- Consoles with built-in power ---------- */
.off-consoles-section { padding-block: clamp(90px, 10vw, 150px); background: var(--brand-deep); color: #eef0f1; }
.off-consoles-section .off-section-head .brand-eyebrow { color: #a9bccf; }
.off-consoles-section .off-section-head > p { color: rgba(238, 240, 241, .7); }
.off-consoles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.off-console { display: grid; align-content: start; gap: 6px; }
.off-console-media { position: relative; display: block; aspect-ratio: 4 / 5; margin-bottom: 10px; overflow: hidden; border-radius: 16px; background: #2b3845; }
.off-console-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.off-console-media img.is-home { opacity: 0; transform: scale(1.06); }
.off-console:hover .off-console-media img.is-home { opacity: 1; transform: none; }
.off-console:hover .off-console-media img:not(.is-home) { transform: scale(1.04); }
/* A small Desk / Console toggle showing which photo you're on */
.off-console-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.off-console-tag b { padding: 6px 12px; border-radius: 999px; font-weight: 400; color: var(--color-ink-soft); transition: background-color .4s var(--ease), color .4s var(--ease); }
.off-console-tag b:first-child,
.off-console:hover .off-console-tag b:last-child { background: var(--brand-deep); color: #fff; }
.off-console:hover .off-console-tag b:first-child { background: transparent; color: var(--color-ink-soft); }
.off-console-col { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #a9bccf; }
.off-console-name { font-family: var(--font-display); font-size: 28px; line-height: 1.1; }
.off-console-meta { font-size: 13px; color: rgba(238, 240, 241, .65); }
.off-console-price { font-size: 15px; }

/* ---------- Lamps with USB ---------- */
.off-lamps-section { padding-block: clamp(90px, 10vw, 150px); background: #f5f4f1; }
.off-lamps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.off-lamp { display: grid; align-content: start; gap: 4px; }
.off-lamp-media { position: relative; display: grid; place-items: center; aspect-ratio: 3 / 4; margin-bottom: 10px; overflow: hidden; border-radius: 14px; background: #fff; isolation: isolate; }
.off-lamp-media::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 30%;
  z-index: -1;
  width: 130%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 196, 120, .32), rgba(255, 196, 120, 0));
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.off-lamp:hover .off-lamp-media::before { opacity: 1; }
.off-lamp-media img { width: 82%; height: 88%; object-fit: contain; mix-blend-mode: multiply; transition: transform .7s var(--ease); }
.off-lamp:hover .off-lamp-media img { transform: translateY(-6px); }
.off-usb { position: absolute; top: 12px; left: 12px; padding: 4px 9px; border-radius: 999px; background: var(--brand-deep); color: #fff; font-size: 10px; letter-spacing: .16em; }
.off-lamp-name { font-family: var(--font-display); font-size: 22px; line-height: 1.1; }
.off-lamp-price { font-size: 13px; color: var(--color-ink-soft); }

/* ---------- Closing ---------- */
.off-close { padding-block: clamp(110px, 13vw, 200px); text-align: center; background: var(--brand-deep); color: #eef0f1; }
.off-close-inner { display: grid; justify-items: center; gap: 22px; }
.off-close .brand-eyebrow { color: #a9bccf; }
.off-close h2 { font-size: clamp(56px, 7vw, 124px); line-height: 1; font-style: italic; }

@media (max-width: 900px) {
  .off-hero { height: 180vh; }
  .off-desk-inner { grid-template-columns: 1fr; }
  .off-desk-media { top: calc(var(--header-h) + 12px); z-index: 1; }
  .off-desk-photos { aspect-ratio: 4 / 3; }
  .off-step { min-height: 46vh; }
  .off-consoles { grid-template-columns: 1fr 1fr; }
  .off-lamps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .off-consoles { grid-template-columns: 1fr; }
  .off-lamps { grid-template-columns: 1fr 1fr; }
  .off-split-label { top: calc(var(--header-h) + 16px); padding: 8px 12px; }
  .off-split-label b { font-size: 20px; }
}

/* ==========================================================================
   Home page (index.html) — scripts in js/home.js
   ========================================================================== */

/* ---------- Hero headline over the video; it lifts and fades as the hero pulls back ---------- */
.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(15, 12, 9, 0) 40%, rgba(15, 12, 9, .5));
  pointer-events: none;
}
.home-hero-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: grid;
  justify-items: start;
  gap: 16px;
  padding-bottom: clamp(64px, 12vh, 140px);
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
  opacity: calc(1 - var(--hero-p, 0) * 2.2);
  translate: 0 calc(var(--hero-p, 0) * -60px);
}
.home-hero-content .brand-eyebrow { color: rgba(255, 255, 255, .85); }
.home-hero-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.6vw, 96px);
  font-weight: 400;
  line-height: .9;
  letter-spacing: -0.025em;
}
.home-hero-title span,
.home-hero-title em { display: inline-block; }
.home-hero-title em { font-style: italic; }
.home-hero-link {
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-shadow: none;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.home-hero-link:hover { background: #fff; color: var(--color-ink); }
.home-hero-link span { display: inline-block; margin-left: 6px; animation: room-nudge 2s var(--ease) infinite; }
/* Each word comes into focus in turn */
.motion .home-hero-title > * { animation: room-focus 1.8s var(--ease) backwards; }
.motion .home-hero-title > :nth-child(1) { animation-delay: calc(var(--intro-delay, 0s) + .3s); }
.motion .home-hero-title > :nth-child(2) { animation-delay: calc(var(--intro-delay, 0s) + .55s); }
.motion .home-hero-title > :nth-child(3) { animation-delay: calc(var(--intro-delay, 0s) + .8s); }
.intro .home-hero-title > * { --intro-delay: 1.3s; }
.motion .home-hero-content .brand-eyebrow,
.motion .home-hero-link { animation: rise 1.2s var(--ease) 1.6s backwards; }

/* ---------- Shop by room: the room's photo fills the section ---------- */
.home-rooms { position: relative; overflow: hidden; min-height: 100vh; margin-top: clamp(56px, 7vw, 104px); background: #15120f; color: #f6f1ea; }
.home-rooms-photos img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  scale: 1.08;
  transition: opacity .9s var(--ease), scale 2.4s var(--ease);
}
.home-rooms-photos img.is-on { opacity: 1; scale: 1; }
.home-rooms::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(15, 12, 9, .78) 0%, rgba(15, 12, 9, .5) 45%, rgba(15, 12, 9, .15) 100%);
  pointer-events: none;
}
.home-rooms-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(32px, 6vw, 110px);
  align-items: center;
  min-height: 100vh;
  padding-block: clamp(80px, 10vw, 140px);
}
.home-rooms-head { display: grid; gap: 14px; align-self: start; }
.home-rooms-head .brand-eyebrow { color: #e2c393; }
.home-rooms-head h2 { font-size: clamp(42px, 4.2vw, 72px); line-height: 1.02; }
.home-rooms-list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(246, 241, 234, .22); }
.home-room {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  grid-template-areas: 'n name arrow' 'n line arrow';
  align-items: baseline;
  column-gap: 18px;
  padding: clamp(14px, 1.8vw, 22px) 4px;
  border-bottom: 1px solid rgba(246, 241, 234, .22);
  color: rgba(246, 241, 234, .5);
  transition: color .4s var(--ease), padding-left .5s var(--ease);
}
.home-room-n { grid-area: n; font-family: var(--font-display); font-size: 18px; font-style: italic; color: #e2c393; }
.home-room-name { grid-area: name; font-family: var(--font-display); font-size: clamp(36px, 4vw, 68px); line-height: 1; letter-spacing: -0.01em; }
.home-room-line {
  grid-area: line;
  max-height: 0;
  overflow: hidden;
  font-size: 14px;
  opacity: 0;
  transition: max-height .5s var(--ease), opacity .4s var(--ease), margin-top .5s var(--ease);
}
.home-room-arrow { grid-area: arrow; align-self: center; font-size: 22px; opacity: 0; translate: -10px 0; transition: opacity .4s var(--ease), translate .4s var(--ease); }
.home-room.is-on { color: #fff; padding-left: 14px; }
.home-room.is-on .home-room-name { font-style: italic; }
.home-room.is-on .home-room-line { max-height: 2em; margin-top: 8px; opacity: .85; }
.home-room.is-on .home-room-arrow { opacity: 1; translate: 0 0; }

@media (max-width: 900px) {
  .home-rooms-inner { grid-template-columns: 1fr; align-items: start; }
  .home-room { grid-template-columns: 34px minmax(0, 1fr) auto; }
}

/* ==========================================================================
   Cabinet beds page (cabinet-beds.html) — scripts in js/cabinet-beds.js
   A cabinet by day, a bed by night: the hero itself unfolds like one.
   ========================================================================== */

/* ---------- Hero: the living room splits, the lid lifts, the front folds down ---------- */
.cb-hero { --fold: 0; position: relative; height: 300vh; background: #12161f; }
.cb-hero-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; perspective: 1600px; color: #fff; }
.cb-hero-night {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* The room behind starts dim and pushed back, and comes forward as the halves open */
  filter: brightness(calc(.45 + var(--fold) * .55));
  scale: calc(1.12 - var(--fold) * .12);
}
.cb-hero-fold { position: absolute; inset: 0; transform-style: preserve-3d; pointer-events: none; }
.cb-lid,
.cb-front { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; backface-visibility: hidden; }
/* Each half shows its half of the same full-size photo */
.cb-lid::before,
.cb-front::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 200%;
  background: var(--day) center / cover no-repeat;
}
.cb-lid { top: 0; transform-origin: 50% 0; transform: rotateX(calc(var(--fold) * 105deg)) translateZ(0); }
.cb-lid::before { top: 0; }
.cb-front { bottom: 0; transform-origin: 50% 100%; transform: rotateX(calc(var(--fold) * -105deg)) translateZ(0); }
.cb-front::before { top: -100%; }
/* Shade on each half as it turns, and a hairline where they part */
.cb-lid::after,
.cb-front::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #0b0e14;
  opacity: calc(var(--fold) * .7);
}
.cb-lid { box-shadow: inset 0 -1px 0 rgba(255, 255, 255, calc(var(--fold) * 6)); }
.cb-hero-sticky::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 13, 20, .55) 0%, rgba(10, 13, 20, 0) 26%, rgba(10, 13, 20, 0) 55%, rgba(10, 13, 20, .6) 100%);
  pointer-events: none;
}
.cb-hero-content {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  display: grid;
  gap: 12px;
  padding-bottom: calc(clamp(48px, 9vh, 100px) + 64px);
  text-shadow: 0 2px 30px rgba(0, 0, 0, .3);
}
.cb-hero-content .brand-eyebrow { color: rgba(255, 255, 255, .85); }
.cb-hero-title {
  position: relative;
  display: grid;
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 140px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -0.02em;
  perspective: 800px;
}
/* The two titles turn over like a flap as day becomes night */
.cb-word { grid-area: 1 / 1; transform-origin: 50% 50% -.4em; transition: transform .9s cubic-bezier(.65, 0, .25, 1), opacity .5s var(--ease); }
.cb-word.is-night { font-style: italic; transform: rotateX(-90deg); opacity: 0; }
.cb-hero.is-night .cb-word.is-day { transform: rotateX(90deg); opacity: 0; }
.cb-hero.is-night .cb-word.is-night { transform: none; opacity: 1; }
.cb-hero-tagline { font-family: var(--font-display); font-size: clamp(22px, 2vw, 32px); font-style: italic; }
.cb-hero .hero-cue { z-index: 3; opacity: calc(1 - var(--fold) * 4); }
.motion .cb-hero-title { animation: room-focus 2s var(--ease) .2s backwards; }
.motion .cb-hero-content .brand-eyebrow,
.motion .cb-hero-tagline { animation: rise 1.2s var(--ease) 1s backwards; }

/* ---------- Shared heads ---------- */
.cb-section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px 40px; margin-bottom: clamp(32px, 4vw, 56px); }
.cb-section-head .brand-eyebrow { color: var(--brand-accent); }
.cb-section-head h2 { max-width: 760px; margin-top: 12px; font-size: clamp(40px, 4vw, 68px); line-height: 1.02; }
.cb-hint { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--color-muted); }

/* ---------- Choose your finish ---------- */
.cb-finishes-section { padding-block: clamp(90px, 10vw, 150px); background: #f4f1ec; }
.cb-finishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 40px 22px; }
.cb-finish { display: grid; align-content: start; gap: 6px; }
.cb-finish-media { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 12px; overflow: hidden; border-radius: 18px; background: #fff; }
.cb-finish-media img { width: 78%; height: 80%; object-fit: contain; transition: transform .9s var(--ease); }
.cb-finish:hover .cb-finish-media img { transform: scale(1.04); }
.cb-finish-col { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-accent); }
.cb-finish-name { font-family: var(--font-display); font-size: clamp(28px, 2.6vw, 40px); font-weight: 400; line-height: 1.08; }
.cb-finish-name a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cb-finish-price { font-family: var(--font-display); font-size: 28px; }
.cb-finish-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 8px; }
.cb-finish-view { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.cb-added-text { display: none; }
[data-add].is-added .cb-add-text { display: none; }
[data-add].is-added .cb-added-text { display: inline; }

/* ---------- Closing ---------- */
.cb-close { padding-block: clamp(110px, 13vw, 200px); text-align: center; background: #141a26; color: #eef0f4; }
.cb-close-inner { display: grid; justify-items: center; gap: 22px; }
.cb-close .brand-eyebrow { color: #c9a874; }
.cb-close h2 { font-size: clamp(56px, 7vw, 124px); line-height: 1; font-style: italic; }

@media (max-width: 900px) {
  .cb-hero { height: 220vh; }
  .cb-finishes { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Cabinet beds page, continued — real footage, a day in one room, and what's hidden
   inside (cabinet-beds.html, js/cabinet-beds.js)
   ========================================================================== */

.cb2-page { --bone: #f2ede4; --ink2: #1b1f27; --sea: #2f5d7c; background: var(--bone); }
.cb2-eyebrow { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--sea); }

/* ---------- Real footage ---------- */
.cb2-film { position: relative; height: 520vh; background: #0e1116; }
.cb2-film-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; color: #fff; }
.cb2-film-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  filter: saturate(.92) contrast(1.06) brightness(.94);
  /* Comes up out of black as the section arrives */
  opacity: clamp(0, calc(var(--p, 0) * 14), 1);
  scale: calc(1.08 - min(var(--p, 0) * 1.2, .08));
}
.cb2-film-sticky::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 14, .45) 0%, rgba(8, 10, 14, 0) 22%, rgba(8, 10, 14, 0) 50%, rgba(8, 10, 14, .75) 100%),
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(8, 10, 14, .45) 100%);
  pointer-events: none;
}
.cb2-film-intro {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  text-align: center;
  opacity: clamp(0, calc(1 - (var(--p, 0) - .03) * 22), 1);
  scale: calc(1 + var(--p, 0) * 1.5);
}
.cb2-film-intro .cb2-eyebrow { color: #c9d8e4; }
.cb2-film-intro h2 { font-size: clamp(56px, 8vw, 140px); line-height: .95; }
.cb2-film-hud {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(28px, 6vh, 64px);
  z-index: 2;
  display: grid;
  gap: 22px;
  opacity: clamp(0, calc((var(--p, 0) - .06) * 20), 1);
}
.cb2-film-chapter { min-height: 1.1em; font-size: clamp(44px, 6vw, 104px); line-height: 1; overflow: hidden; }
.cb2-film-chapter span { display: inline-block; animation: cb2-chapter .9s var(--ease) both; }
@keyframes cb2-chapter { from { opacity: 0; translate: 0 70%; filter: blur(6px); } }
.cb2-film-meta { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 24px; }
.cb2-film-time { font-size: 12px; letter-spacing: .16em; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .8); padding-top: 1px; }
.cb2-film-bar { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cb2-film-bar li { display: grid; gap: 10px; min-width: 0; }
.cb2-film-bar i { display: block; height: 2px; background: #fff; transform-origin: 0 50%; transform: scaleX(0); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.cb2-film-bar li { background: linear-gradient(rgba(255, 255, 255, .25), rgba(255, 255, 255, .25)) top / 100% 2px no-repeat; }
.cb2-film-bar span { overflow: hidden; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; text-overflow: ellipsis; color: rgba(255, 255, 255, .45); transition: color .4s var(--ease); }
.cb2-film-bar li.is-on span { color: #fff; }
html:not(.motion) .cb2-film { height: auto; }
html:not(.motion) .cb2-film-sticky { position: relative; height: 70vh; }
html:not(.motion) .cb2-film-intro,
html:not(.motion) .cb2-film-hud { display: none; }

/* ---------- 24 hours ---------- */
.cb2-day { --sky: var(--bone); --card: min(30vw, 440px); position: relative; height: 500vh; background: var(--sky); color: var(--ink2); }
.cb2-day.is-dark { color: #eef1f6; }
.cb2-day-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; grid-template-rows: auto 1fr; grid-template-columns: minmax(0, 1fr); padding-top: calc(var(--header-h, 112px) + 12px); }
.cb2-day-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.cb2-day.is-dark .cb2-eyebrow { color: #9fbdd3; }
.cb2-clock {
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 156px);
  line-height: .85;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.cb2-clock small { margin-left: .12em; font-size: .3em; font-style: italic; letter-spacing: 0; }
.cb2-day-track {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 90px);
  justify-self: start;
  width: max-content;
  padding-inline: calc(50vw - var(--card) / 2);
  will-change: transform;
}
.cb2-beat { width: var(--card); display: grid; gap: 10px; opacity: .38; scale: .9; transition: opacity .7s var(--ease), scale .9s var(--ease); }
.cb2-beat.is-on { opacity: 1; scale: 1; }
.cb2-beat-media { height: min(52vh, 560px); overflow: hidden; border-radius: 3px; background: rgba(0, 0, 0, .06); }
.cb2-beat-media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.cb2-beat-time { margin-top: 8px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .65; }
.cb2-beat-title { font-size: clamp(28px, 2.6vw, 42px); line-height: 1.05; }
.cb2-beat-text { max-width: 34ch; font-size: 15px; line-height: 1.6; opacity: .75; }
html:not(.motion) .cb2-day { height: auto; }
html:not(.motion) .cb2-day-sticky { position: relative; height: auto; padding-block: 120px 80px; }
html:not(.motion) .cb2-day-track { width: auto; overflow-x: auto; padding-inline: var(--gutter); }

/* ---------- Hidden in plain sight ---------- */
.cb2-hidden { position: relative; height: 420vh; background: #fff; }
.cb2-hidden-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-top: var(--header-h, 112px); }
.cb2-hidden-inner { display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 100px); align-items: center; width: 100%; }
.cb2-hidden-copy { display: grid; gap: 18px; }
.cb2-hidden-n { font-family: var(--font-display); font-size: 22px; font-style: italic; color: rgba(27, 31, 39, .5); }
.cb2-hidden-texts { display: grid; }
.cb2-hidden-text { grid-area: 1 / 1; display: grid; gap: 14px; opacity: 0; translate: 0 30px; transition: opacity .6s var(--ease), translate .8s var(--ease); pointer-events: none; }
.cb2-hidden-text.is-past { translate: 0 -30px; }
.cb2-hidden-text.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }
.cb2-hidden-text h2 { font-size: clamp(36px, 3.6vw, 60px); line-height: 1.02; }
.cb2-hidden-text p { max-width: 36ch; font-size: 16px; line-height: 1.65; color: rgba(27, 31, 39, .72); }
.cb2-hidden-stage { position: relative; width: min(100%, 72vh); justify-self: center; aspect-ratio: 1000 / 1010; }
.cb2-hidden-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cb2-hidden-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cb2-hidden-lines line { stroke: var(--sea); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .7s var(--ease); }
.cb2-hidden-lines line.is-on { stroke-dashoffset: 0; transition-delay: .1s; }
.cb2-spot {
  position: absolute;
  width: 18px;
  height: 18px;
  translate: -50% -50%;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(47, 93, 124, .5), 0 2px 10px rgba(0, 0, 0, .15);
  transition: background-color .4s var(--ease), scale .5s var(--ease);
}
.cb2-spot::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid var(--sea); opacity: 0; }
.cb2-spot.is-on { background: var(--sea); scale: 1.15; }
.cb2-spot.is-on::after { animation: cb2-ping 1.8s var(--ease) infinite; }
@keyframes cb2-ping { from { opacity: .8; scale: .6; } to { opacity: 0; scale: 1.9; } }
.cb2-lens {
  position: absolute;
  width: 36%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 6px #fff, 0 0 0 7px rgba(47, 93, 124, .35), 0 30px 60px rgba(0, 0, 0, .18);
  clip-path: circle(0 at 50% 50%);
  opacity: 0;
  scale: .7;
  transition: clip-path .8s var(--ease), opacity .4s var(--ease), scale .9s var(--ease);
}
.cb2-lens.is-on { clip-path: circle(60% at 50% 50%); opacity: 1; scale: 1; transition-delay: .25s; }
html:not(.motion) .cb2-hidden { height: auto; }
html:not(.motion) .cb2-hidden-sticky { position: relative; height: auto; padding-block: 120px; }

@media (max-width: 900px) {
  .cb2-film { height: 420vh; }
  .cb2-film-video { object-position: 64% 50%; }
  .cb2-film-bar span { display: none; }
  .cb2-day { --card: 78vw; }
  .cb2-day-sticky { padding-top: calc(var(--header-top-h) + 16px); }
  .cb2-day-head { display: grid; gap: 4px; align-items: start; }
  .cb2-clock { font-size: 64px; }
  .cb2-beat-media { height: 44vh; }
  .cb2-hidden-inner { grid-template-columns: 1fr; gap: 12px; }
  .cb2-hidden-sticky { padding-top: calc(var(--header-top-h) + 8px); }
  .cb2-hidden-stage { width: min(100%, 46vh); order: -1; }
  .cb2-hidden-text h2 { font-size: 30px; }
  .cb2-hidden-text p { font-size: 15px; }
}

/* Pieces added automatically from BigCommerce, with one photo: no doors to open */
.sto-card.is-single .is-open,
.sto-card.is-single .sto-doors-hint { display: none; }
.sto-card.is-single .sto-doors .is-closed { opacity: 1; filter: none; transform: none; }


/* ==========================================================================
   Find a Dealer page (dealers.html, js/dealers.js)
   ========================================================================== */
/* The request form (js/find-dealer.js), here and on every product page. It is the contact
   page's layout (.contact-layout): words on the left, the form in its panel on the right. */
.find-dealer-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.find-dealer .contact-form textarea { min-height: 110px; }
.product-section .find-dealer { padding-top: clamp(56px, 6vw, 96px); padding-bottom: 0; border-top: 1px solid var(--color-line); }
.dealers-page { padding-top: 0; min-height: 0; }
.dealers-page .dealers-layout { padding-bottom: clamp(56px, 6vw, 96px); }
.dealers-page .dealers-layout:has(.dealers-finder:empty) { display: none; }

.dealers-layout { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
/* Step 7 adds .has-map once the map is showing: list on the left, map on the right */
.dealers-layout.has-map { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); }

.dealers-finder { display: grid; gap: 24px; max-width: 560px; }
.dealers-note { font-size: 14px; line-height: 1.6; color: var(--color-ink-soft); }
.dealers-note a { text-decoration: underline; text-underline-offset: 2px; }
.dealers-error { font-size: 14px; color: #a2412f; }

.dealers-current { font-size: 14px; color: var(--color-ink-soft); }
.dealers-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.dealers-search-row { display: flex; gap: 8px; }
.dealers-search-row input { flex: 1; min-width: 0; }

.dealers-results { display: grid; gap: 16px; }
.dealers-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-line); }
.dealer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-line);
}
.dealer-card-name { font-family: var(--font-display); font-size: 24px; line-height: 1.2; }
.dealer-card-location { margin-top: 4px; font-size: 14px; color: var(--color-muted); }
.dealer-card-chosen { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-olive); }

.dealers-map { min-height: 480px; background: var(--color-sand); }

/* Map: approximate area for dealers who show their city only, and the popup */
.dealer-area {
  width: 72px;
  height: 72px;
  border: 1px solid var(--color-olive);
  border-radius: 50%;
  background: rgba(93, 90, 62, .18);
  cursor: pointer;
}
.dealers-map .mapboxgl-popup-content { padding: 14px 18px; border-radius: 0; font-family: var(--font-body); }
.dealer-popup { display: grid; gap: 4px; padding-right: 12px; }
.dealer-popup-name { font-family: var(--font-display); font-size: 18px; line-height: 1.2; }
.dealer-popup-location { font-size: 13px; color: var(--color-muted); }
.dealer-popup .dealers-link,
.dealer-popup .dealer-card-chosen { justify-self: start; margin-top: 6px; font-size: 13px; }

@media (max-width: 760px) {
  .dealers-layout.has-map { grid-template-columns: 1fr; }
  .dealer-card { flex-direction: column; align-items: flex-start; gap: 16px; }
  .dealers-map { min-height: 320px; }
}

/* ==========================================================================
   Cart: buy from a local dealer (cart.html, js/cart-dealer.js)
   ========================================================================== */
.cart-dealer {
  display: grid;
  gap: 20px;
  max-width: 760px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--color-line);
}
.cart-dealer[hidden],
.cart-dealer-zip[hidden] { display: none; }

.cart-dealer-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cart-dealer-head h2 { font-size: clamp(28px, 2vw, 36px); }
.cart-dealer-tag {
  padding: 2px 8px;
  border: 1px solid currentColor;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-olive);
}
.cart-dealer-note { font-size: 14px; line-height: 1.6; color: var(--color-ink-soft); }
.cart-dealer-note a { text-decoration: underline; text-underline-offset: 2px; }
.cart-dealer-body { display: grid; gap: 16px; }

.cart-dealer-chosen { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 15px; }
.cart-dealer-chosen .dealers-link { font-size: 14px; }

.cart-dealer-lines { border-top: 1px solid var(--color-line); }
.cart-dealer-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-line);
}
.cart-dealer-line-name { font-size: 15px; }
.cart-dealer-line-name span { color: var(--color-muted); }
.cart-dealer-line-price { font-size: 15px; font-variant-numeric: tabular-nums; text-align: right; }
.cart-dealer-line-status { grid-column: 1 / -1; font-size: 13px; color: var(--color-muted); }
.cart-dealer-line-note { grid-column: 1 / -1; font-size: 13px; line-height: 1.5; color: var(--color-muted); }
.cart-dealer-line.is-unavailable .cart-dealer-line-note { color: #a2412f; }

.cart-dealer-totals { display: grid; gap: 8px; margin: 0; }
.cart-dealer-totals div { display: flex; justify-content: space-between; gap: 16px; }
.cart-dealer-totals dt { color: var(--color-ink-soft); }
.cart-dealer-totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.cart-dealer-total { padding-top: 10px; border-top: 1px solid var(--color-line); font-weight: 500; }
.cart-dealer-offer { margin-top: 6px; font-size: 14px; color: var(--color-ink-soft); }

/* Availability tags (cart and product page): in stock, partly in stock, special order, not available */
.avail-tag {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 8px;
  border: 1px solid currentColor;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.avail-in_stock { color: #5f7d55; }      /* the green of the site's "In stock" dot */
.avail-partial,
.avail-special_order { color: #8a6526; } /* a darker take on the amber dot, readable as text */
.avail-unavailable { color: #a2412f; }

/* Product page: the chosen dealer's availability */
.product-dealer { display: grid; gap: 6px; margin-top: 16px; }
.product-dealer-status { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 14px; }
.product-dealer-text { font-size: 13px; line-height: 1.6; color: var(--color-ink-soft); }
.product-dealer a { text-decoration: underline; text-underline-offset: 2px; }
/* The generic "In stock" line is Lineage's own stock: hide it while the dealer's availability shows */
.product-info.has-dealer > .stock { display: none; }


/* ---------- Living room collection page (living-collection.html) ---------- */
.liv-collection-page .liv-shop { padding-top: clamp(24px, 3vw, 44px); }
.liv-collection-page .liv-shop h1 { font-size: clamp(44px, 4.6vw, 80px); line-height: 1.02; }
/* A collection with one room photo: no arrows or tabs */
.liv-shop.is-single .liv-room-nav { display: none; }
/* One collection: the tabs would all have its name, so the arrows are enough */
.liv-collection-page .liv-room-tabs { display: none; }

/* ---------- Shop switched off (js/data.js shopOpen: false) ---------- */
/* Wishlist switched off (wishlistOpen in js/data.js) */
.wishlist-off .wish-btn,
.wishlist-off .wish-toggle,
.wishlist-off .wishlist-add,
.wishlist-off li:has(> a[href="wishlist.html"]),
.wishlist-off a[href="wishlist.html"] { display: none !important; }

/* Coming Soon and Closeouts switched off (listPagesOpen in js/data.js) */
.lists-off .has-mega:has([data-product-list]),
.lists-off li:has(> a[href^="shop.html?list="]),
.lists-off a[href^="shop.html?list="] { display: none !important; }

.shop-off .shop-only,
.shop-off .cart-btn,
.shop-off [data-add],
.shop-off .shop-card-add,
.shop-off .hs-add,
.shop-off [data-panel-add],
.shop-off .product-buy .qty,
.shop-off [data-quote],
.shop-off [data-desk-add],
.shop-off [data-wish-add],
.shop-off [data-wish-all],
.shop-off [data-wish-quote],
.shop-off .lit-filters [data-filter="under"] { display: none !important; }

.shop-off .shop-card-price,
.shop-off .product-detail-price,
.shop-off .product-bar-price,
.shop-off .room-sku-price,
.shop-off .room-tag-price,
.shop-off .room-build-total,
.shop-off .hs-price,
.shop-off .mega-product-price,
.shop-off .cb-finish-price,
.shop-off .sto-card-price,
.shop-off .off-console-price,
.shop-off .off-lamp-price,
.shop-off .lit-card-price,
.shop-off .liv-panel-price,
.shop-off .off-desk-price,
.shop-off .dine-option-total,
.shop-off .sto-room-price,
.shop-off .lit-night-price,
.shop-off .price-range { display: none !important; }

/* ---------- Shop Lux Lighting (brand-lux-lighting.html) — scripts in js/lux.js ---------- */
.lux-shop { padding-block: clamp(24px, 3vw, 44px) clamp(80px, 9vw, 140px); }
.lux-shop-head { display: grid; grid-template-columns: auto 1fr auto; align-items: end; gap: 20px 32px; margin-bottom: clamp(28px, 3vw, 44px); }
.lux-shop-logo { height: 54px; width: auto; }
.lux-shop-head .brand-eyebrow { color: var(--brand-accent); }
.lux-shop-head h1 { margin-top: 8px; font-size: clamp(40px, 4.2vw, 72px); line-height: 1; }
.lux-shop-count { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--color-muted); }
.lux-shop-filters { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 24px; padding-block: 18px; margin-bottom: clamp(24px, 3vw, 40px); border-block: 1px solid rgba(28, 23, 18, .12); }
.lux-tabs, .lux-types { display: flex; flex-wrap: wrap; gap: 8px; }
.lux-tabs button, .lux-types button {
  padding: 10px 18px;
  border: 1px solid rgba(28, 23, 18, .18);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--color-ink);
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.lux-tabs button span { margin-left: 4px; opacity: .55; }
.lux-tabs button:hover, .lux-types button:hover { border-color: var(--brand-deep); }
.lux-tabs button[aria-selected="true"],
.lux-types button[aria-pressed="true"] { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
@media (max-width: 700px) {
  .lux-shop-head { grid-template-columns: 1fr; }
  .lux-shop-logo { height: 42px; }
}

/* ---------- Showcase (showcase.html): a room or a collection in the Lux layout — js/showcase.js ---------- */
/* The heading only; the shop page's toolbar, filters and grid follow */
.show-head { padding-bottom: 0; }
.show-head .lux-shop-head { margin-bottom: clamp(20px, 2.4vw, 36px); }
/* A room has no brand logo: the title alone */
.lux-shop-head.is-plain { grid-template-columns: 1fr; }

/* ---------- Hospitality (hospitality.html) — scripts in js/hospitality.js ---------- */
.hos-page { background: var(--color-bg); }
.hos-eyebrow { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--brand-accent); }
.hos-eyebrow::before { content: ''; width: 44px; height: 1px; background: currentColor; }
.hos-head { margin-bottom: clamp(32px, 4vw, 60px); }
.hos-head h2 { margin-top: 14px; font-size: clamp(40px, 5vw, 80px); line-height: 1; }
.hos-link { display: inline-block; padding-bottom: 3px; border-bottom: 1px solid currentColor; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.hos-link:hover { color: var(--brand-accent); }

/* Hero: the keyhole. The photo is masked by a keyhole whose size and place js/hospitality.js sets
   (--kw, --kh, --kx, --ky); --p is the scroll through the hero (0-1), --open how far it has opened. */
.hos-hero { --p: 0; --open: 0; position: relative; height: 280vh; background: var(--brand-deep); color: #fff; }
.has-hero .hos-hero { margin-top: calc(-1 * (var(--header-top-h) + var(--header-nav-h))); }
.hos-hero-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.hos-hero-photo {
  position: absolute;
  inset: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 160'%3E%3Ccircle cx='50' cy='50' r='34'/%3E%3Cpath d='M39 66h22l13 86H26z'/%3E%3C/svg%3E") no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 160'%3E%3Ccircle cx='50' cy='50' r='34'/%3E%3Cpath d='M39 66h22l13 86H26z'/%3E%3C/svg%3E") no-repeat;
  -webkit-mask-size: var(--kw, 30vh) var(--kh, 48vh);
  mask-size: var(--kw, 30vh) var(--kh, 48vh);
  -webkit-mask-position: var(--kx, 50%) var(--ky, 30%);
  mask-position: var(--kx, 50%) var(--ky, 30%);
}
.hos-hero.is-open .hos-hero-photo { -webkit-mask: none; mask: none; }
.hos-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 60%; transform: scale(calc(1.25 - var(--open) * .25)); }
/* Darkens as the outro text arrives */
.hos-hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 17, 15, .86), rgba(20, 17, 15, .35) 55%, rgba(20, 17, 15, 0) 80%); opacity: clamp(0, calc((var(--p) - .7) * 4), 1); }
/* Keeps the white header readable over the bright ceiling */
.hos-hero-photo::before { content: ''; position: absolute; inset: 0 0 auto; z-index: 1; height: 30vh; background: linear-gradient(rgba(20, 17, 15, .55), rgba(20, 17, 15, 0)); }

.hos-hero-intro {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 12vh;
  pointer-events: none;
}
.hos-hero-logo {
  position: absolute;
  top: calc(var(--header-top-h) + var(--header-nav-h) + clamp(20px, 4vh, 44px));
  height: clamp(40px, 6vh, 64px);
  width: auto;
  filter: invert(1);
  opacity: calc(1 - var(--open) * 3);
}
.hos-hero-title { display: flex; align-items: center; justify-content: center; width: 100%; font-size: clamp(34px, 4.6vw, 84px); line-height: 1.02; }
.hos-hero-left, .hos-hero-right { flex: 1; opacity: calc(1 - var(--open) * 2.4); }
.hos-hero-left { text-align: right; transform: translateX(calc(var(--open) * -40vw)); }
.hos-hero-right { transform: translateX(calc(var(--open) * 40vw)); }
.hos-hero-gap { flex: none; width: calc(min(50vh, 62vw) * .625 + clamp(24px, 3vw, 56px) * 2); height: 1px; }
.hos-hero-cue { position: absolute; bottom: 5vh; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; opacity: calc(.7 - var(--p) * 5); }
.hos-hero-cue::after { content: ''; display: block; width: 1px; height: 38px; margin: 12px auto 0; background: currentColor; animation: hos-cue 2s var(--ease) infinite; transform-origin: top; }
@keyframes hos-cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

.hos-hero-outro {
  position: absolute;
  inset: auto 0 0;
  padding-bottom: clamp(36px, 8vh, 90px);
  opacity: clamp(0, calc((var(--p) - .78) * 6), 1);
  transform: translateY(calc((1 - clamp(0, calc((var(--p) - .78) * 6), 1)) * 40px));
}
.hos-hero-outro .hos-eyebrow { color: #f0d6c0; }
.hos-hero-big { margin-top: 10px; font-size: clamp(64px, 11vw, 190px); line-height: .9; }
.hos-hero-lede { max-width: 46ch; margin-top: 18px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; color: rgba(255, 255, 255, .86); }
.hos-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 28px; }
.hos-hero:not(.is-open) .hos-hero-outro { pointer-events: none; }
@media (max-width: 760px) {
  .hos-hero-title { flex-direction: column; font-size: clamp(30px, 8.5vw, 44px); text-align: center; }
  .hos-hero-left, .hos-hero-right { flex: none; text-align: center; transform: translateY(calc(var(--open) * -30vh)); }
  .hos-hero-right { transform: translateY(calc(var(--open) * 30vh)); }
  .hos-hero-gap { width: 1px; height: calc(min(50vh, 62vw) + 28px); }
}

/* In numbers */
.hos-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 clamp(20px, 3vw, 48px); padding-block: clamp(70px, 9vw, 130px); }
.hos-stat { padding-top: 22px; border-top: 1px solid rgba(29, 26, 23, .16); }
.hos-stat-n { font-family: var(--font-display); font-size: clamp(56px, 6.4vw, 108px); line-height: 1; color: var(--brand-deep); }
.hos-stat-n small { display: block; margin-bottom: 4px; font-family: var(--font-body); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--color-muted); }
.hos-stat-n:not(:has(small))::before { content: ''; display: block; height: 19px; }
.hos-stat > p:last-child { margin-top: 12px; max-width: 24ch; color: var(--color-ink-soft); line-height: 1.5; }
.hos-for { grid-column: 1 / -1; margin-top: clamp(40px, 5vw, 70px); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--color-muted); }
.hos-for span { color: var(--color-ink); }
.hos-for span:not(:first-child)::before { content: '·'; margin: 0 12px; color: var(--brand-accent); }
@media (max-width: 900px) { .hos-stats { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; } .hos-for { line-height: 2; } }

/* Three ways */
.hos-ways { padding-block: clamp(70px, 9vw, 130px); background: var(--brand-tint); }
.hos-ways-tabs { position: relative; display: flex; flex-wrap: wrap; gap: clamp(18px, 4vw, 64px); margin-bottom: clamp(36px, 4vw, 60px); border-bottom: 1px solid rgba(29, 26, 23, .14); }
.hos-ways-tabs button { display: flex; align-items: baseline; gap: 10px; padding: 0 0 18px; border: 0; background: none; font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 40px); color: var(--color-muted); cursor: pointer; transition: color .3s var(--ease); }
.hos-ways-tabs button span { font-family: var(--font-body); font-size: 11px; letter-spacing: .16em; }
.hos-ways-tabs button[aria-selected="true"], .hos-ways-tabs button:hover { color: var(--brand-deep); }
.hos-ways-bar { position: absolute; left: 0; bottom: -1px; width: var(--bw, 0); height: 2px; background: var(--brand-accent); transform: translateX(var(--bx, 0)); transition: transform .55s var(--ease), width .55s var(--ease); }
.hos-way { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 90px); align-items: center; }
.hos-way[hidden] { display: none; }
.hos-way.is-active > * { animation: hos-rise .8s var(--ease) both; }
.hos-way.is-active > :nth-child(2) { animation-delay: .1s; }
@keyframes hos-rise { from { opacity: 0; transform: translateY(26px); } }
.hos-way-copy h3 { font-size: clamp(32px, 3.4vw, 56px); line-height: 1.05; }
.hos-way-copy p { margin: 18px 0 26px; max-width: 42ch; font-size: 17px; line-height: 1.7; color: var(--color-ink-soft); }
.hos-way-pair { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; align-items: end; }
.hos-cut { position: relative; display: grid; place-items: center; aspect-ratio: 1; padding: 8%; background: var(--color-product-bg); }
.hos-cut img { grid-area: 1 / 1; max-height: 100%; width: auto; max-width: 100%; mix-blend-mode: multiply; }
.hos-cut-small { aspect-ratio: 3 / 4; padding: 12%; }
.hos-swap .hos-cut img { opacity: 0; transform: scale(.96); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.hos-swap .hos-cut img.is-on { opacity: 1; transform: none; }
.hos-swap .hos-cut { background: var(--color-product-bg); isolation: auto; }
.hos-swatches { display: flex; gap: 12px; margin-top: 16px; }
.hos-swatches button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); cursor: pointer; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.hos-swatches button:hover { transform: scale(1.08); }
.hos-swatches button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), 0 0 0 3px var(--brand-tint), 0 0 0 4px var(--brand-deep); }
.hos-photo { overflow: hidden; aspect-ratio: 4 / 5; max-height: 640px; margin-left: auto; }
.hos-photo img { width: 100%; height: 100%; object-fit: cover; }
.hos-photo-cut { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 2; max-height: none; padding: 6%; background: var(--color-product-bg); }
.hos-photo-cut img { height: auto; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
@media (max-width: 860px) { .hos-way { grid-template-columns: 1fr; } }

/* Built to last */
.hos-built { padding-block: clamp(70px, 9vw, 130px); }
.hos-built-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 90px); align-items: start; }
.hos-built-copy h2 { margin: 14px 0 clamp(26px, 3vw, 44px); font-size: clamp(40px, 4.6vw, 76px); line-height: 1; }
.hos-built-list { list-style: none; }
.hos-built-list button { position: relative; display: block; width: 100%; padding: 18px 0 18px 26px; border: 0; border-top: 1px solid rgba(29, 26, 23, .12); background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.hos-built-list li:last-child button { border-bottom: 1px solid rgba(29, 26, 23, .12); }
.hos-built-list button::before { content: ''; position: absolute; left: 0; top: 26px; width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(29, 26, 23, .3); transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.hos-built-list b { display: block; font-family: var(--font-display); font-weight: 400; font-size: clamp(21px, 1.8vw, 28px); transition: color .3s var(--ease); }
.hos-built-list span { display: block; max-height: 0; overflow: hidden; color: var(--color-ink-soft); line-height: 1.6; opacity: 0; transition: max-height .5s var(--ease), opacity .4s var(--ease), margin .5s var(--ease); }
.hos-built-list button[aria-pressed="true"] b { color: var(--brand-accent); }
.hos-built-list button[aria-pressed="true"]::before { background: var(--brand-accent); border-color: var(--brand-accent); transform: scale(1.2); }
.hos-built-list button[aria-pressed="true"] span { max-height: 80px; margin-top: 6px; opacity: 1; }
.hos-built-more { margin-top: 22px; font-size: 13px; color: var(--color-muted); }
.hos-built-stage { position: sticky; top: calc(var(--header-h) + 30px); overflow: hidden; aspect-ratio: 1; background: var(--color-product-bg); cursor: crosshair; }
.hos-built-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--zoom, 1.4));
  transform-origin: var(--at, 50% 50%);
  clip-path: inset(0 0 0 100%);
  transition: transform 1.4s var(--ease), transform-origin 1.4s var(--ease), clip-path .9s var(--ease);
}
.hos-built-stage img.is-on { clip-path: inset(0); }
.hos-lens {
  position: absolute;
  left: var(--lx, 50%);
  top: var(--ly, 50%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
  background-repeat: no-repeat;
  transform: translate(-50%, -50%) scale(.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.hos-built-stage.is-looking .hos-lens { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hos-built-hint { position: absolute; left: 18px; bottom: 16px; padding: 7px 12px; background: rgba(255, 255, 255, .9); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; transition: opacity .3s var(--ease); }
.hos-built-stage.is-looking .hos-built-hint { opacity: 0; }
@media (hover: none) { .hos-built-hint, .hos-lens { display: none; } .hos-built-stage { cursor: auto; } }
@media (max-width: 860px) { .hos-built-inner { grid-template-columns: 1fr; } .hos-built-stage { position: relative; top: 0; order: -1; } }

/* Projects accordion */
.hos-projects { padding-block: clamp(70px, 9vw, 130px); background: var(--brand-deep); color: #fff; }
.hos-projects .hos-eyebrow { color: #e3c3a9; }
.hos-acc { display: flex; gap: 12px; height: clamp(440px, 62vh, 640px); }
.hos-acc-item { position: relative; flex: 1; min-width: 0; overflow: hidden; cursor: pointer; outline: none; transition: flex-grow .8s var(--ease); }
.hos-acc-item.is-open { flex-grow: 4.2; cursor: default; }
.hos-acc-item:focus-visible { box-shadow: inset 0 0 0 2px #e3c3a9; }
.hos-acc-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); filter: saturate(.75) brightness(.7); transition: transform 1.2s var(--ease), filter .8s var(--ease); }
.hos-acc-item.is-open img { transform: none; filter: none; }
.hos-acc-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 17, 15, .88), rgba(20, 17, 15, 0) 62%); }
.hos-acc-body { position: absolute; inset: auto 0 0; z-index: 1; padding: clamp(18px, 2.4vw, 36px); }
.hos-acc-kind { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #e3c3a9; white-space: nowrap; }
.hos-acc-n { margin-top: 8px; font-size: clamp(34px, 3.6vw, 58px); line-height: 1; white-space: nowrap; }
.hos-acc-text { max-width: 44ch; margin-top: 14px; line-height: 1.6; color: rgba(255, 255, 255, .86); }
.hos-acc-item:not(.is-open) .hos-acc-n,
.hos-acc-item:not(.is-open) .hos-acc-text { opacity: 0; transform: translateY(16px); }
.hos-acc-n, .hos-acc-text { transition: opacity .5s var(--ease) .25s, transform .6s var(--ease) .25s; }
.hos-acc-item:not(.is-open) .hos-acc-kind { position: absolute; left: clamp(18px, 2vw, 30px); bottom: clamp(24px, 3vw, 40px); writing-mode: vertical-rl; transform: rotate(180deg); }
@media (max-width: 760px) {
  .hos-acc { flex-direction: column; height: auto; }
  .hos-acc-item { flex: none; height: 96px; transition: height .7s var(--ease); }
  .hos-acc-item.is-open { height: 440px; }
  .hos-acc-item:not(.is-open) .hos-acc-kind { writing-mode: horizontal-tb; transform: none; bottom: 38px; }
}

/* In the field: photos drift by */
.hos-field { overflow: hidden; padding-block: clamp(14px, 2vw, 24px); background: var(--brand-deep); }
.hos-field-track { display: flex; gap: 14px; width: max-content; animation: hos-drift 70s linear infinite; }
.hos-field:hover .hos-field-track { animation-play-state: paused; }
.hos-field-track img { height: clamp(220px, 30vw, 380px); width: auto; object-fit: cover; }
@keyframes hos-drift { to { transform: translateX(calc(-50% - 7px)); } }

/* Ready to ship */
.hos-ready { position: relative; padding-block: clamp(70px, 9vw, 130px); }
.hos-ready-list { list-style: none; columns: 3; column-gap: clamp(20px, 4vw, 60px); }
.hos-ready-list li { break-inside: avoid; border-top: 1px solid rgba(29, 26, 23, .12); }
.hos-ready-list a { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 0; font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 38px); line-height: 1.1; transition: color .3s var(--ease), padding .4s var(--ease); }
.hos-ready-list a:hover { color: var(--brand-accent); padding-left: 14px; }
.hos-ready-list sup { font-family: var(--font-body); font-size: 11px; color: var(--color-muted); }
.hos-ready-thumb { display: none; flex: none; order: -1; width: 52px; height: 52px; background: var(--color-product-bg); }
.hos-ready-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.hos-ready-peek { position: absolute; left: 0; top: 0; z-index: 2; width: clamp(220px, 20vw, 300px); aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 18px; background: var(--color-product-bg); box-shadow: 0 30px 60px rgba(29, 26, 23, .22); pointer-events: none; opacity: 0; scale: .7; transition: opacity .3s var(--ease), scale .4s var(--ease); }
.hos-ready-peek.is-on { opacity: 1; scale: 1; }
.hos-ready-peek img { max-width: 100%; max-height: 100%; mix-blend-mode: multiply; }
@media (hover: none) { .hos-ready-thumb { display: block; } .hos-ready-peek { display: none; } }
@media (max-width: 1000px) { .hos-ready-list { columns: 2; } }
@media (max-width: 560px) { .hos-ready-list { columns: 1; } }

/* How a project runs */
.hos-process { padding-block: clamp(70px, 9vw, 130px); background: var(--brand-tint); }
.hos-steps { --fill: 0; position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(16px, 2.4vw, 36px); list-style: none; padding-top: 40px; }
.hos-steps::before, .hos-steps::after { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: rgba(29, 26, 23, .18); }
.hos-steps::after { height: 2px; top: 6px; background: var(--brand-accent); transform: scaleX(var(--fill)); transform-origin: left; }
.hos-steps li { position: relative; opacity: .38; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.hos-steps li::before { content: ''; position: absolute; top: -40px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--brand-tint); border: 1px solid rgba(29, 26, 23, .3); transition: background-color .4s var(--ease), border-color .4s var(--ease); }
.hos-steps li.is-done { opacity: 1; transform: none; }
.hos-steps li.is-done::before { background: var(--brand-accent); border-color: var(--brand-accent); }
.hos-step-n { font-size: 11px; letter-spacing: .2em; color: var(--brand-accent); }
.hos-steps h3 { margin: 8px 0 10px; font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2vw, 32px); }
.hos-steps p { line-height: 1.6; color: var(--color-ink-soft); }
@media (max-width: 860px) {
  .hos-steps { grid-template-columns: 1fr; padding: 0 0 0 40px; gap: 34px; }
  .hos-steps::before, .hos-steps::after { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .hos-steps::after { width: 2px; left: 6px; transform: scaleY(var(--fill)); transform-origin: top; }
  .hos-steps li::before { top: 4px; left: -40px; }
}

/* Start a project */
.hos-cta { position: relative; overflow: hidden; padding-block: clamp(90px, 12vw, 180px); background: var(--brand-deep); color: #fff; }
.hos-cta-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.hos-cta-inner { position: relative; }
.hos-cta-logo { height: 54px; width: auto; filter: invert(1); margin-bottom: 30px; }
.hos-cta h2 { font-size: clamp(44px, 6vw, 100px); line-height: 1; max-width: 12ch; }
.hos-cta p { max-width: 46ch; margin-top: 18px; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, .86); }
.hos-cta .hos-cta-small { margin-top: 34px; font-size: 13px; color: rgba(255, 255, 255, .6); }

@media (prefers-reduced-motion: reduce) {
  .hos-field-track { animation: none; }
  .hos-hero { height: 100vh; }
}

/* Inventory page */
.inventory-doc {padding-top: 48px; padding-bottom: 80px; }
.inventory-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.inventory-download { display: inline-block; padding: 12px 26px; background: #1f1f1f; color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.inventory-download:hover { opacity: .85; }
.inventory-frame { display: block; width: 100%; height: 85vh; min-height: 600px; border: 1px solid #ddd; background: #f4f4f4; }
.inventory-fallback { margin-top: 14px; font-size: 14px; }

/* ==========================================================================
   Footer pages: About, Collections, Trade Services, Delivery & Returns,
   Track Your Order, Terms & Conditions, Privacy Policy
   ========================================================================== */

.info-page { --info-accent: #9a7658; }
.info-eyebrow { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--info-accent); }
.info-eyebrow::before { content: ''; width: 44px; height: 1px; background: currentColor; }
.info-section { padding-block: clamp(56px, 7vw, 120px); }
.info-section + .info-section { padding-top: 0; }
.info-section-head { margin-bottom: clamp(28px, 3.4vw, 52px); }
.info-section-head h2 { margin-top: 14px; font-size: clamp(36px, 4.2vw, 68px); line-height: 1.02; }
.info-link { display: inline-block; padding-bottom: 3px; border-bottom: 1px solid currentColor; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; transition: color .3s var(--ease); }
.info-link:hover { color: var(--info-accent); }
.info-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 32px; }

/* Text-only page header (policy pages) */
.info-head { padding-top: clamp(48px, 6vw, 104px); padding-bottom: clamp(36px, 4vw, 64px); border-bottom: 1px solid var(--color-line); }
.info-head h1 { margin-top: 18px; font-size: clamp(48px, 6.4vw, 104px); line-height: .98; }
.info-head-lede { max-width: 640px; margin-top: 22px; font-size: 17px; line-height: 1.65; color: var(--color-ink-soft); }
.info-head-meta { margin-top: 18px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted); }

/* Opening statement */
.info-statement { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 96px); align-items: end; }
.info-statement .display { font-size: clamp(30px, 3.5vw, 56px); line-height: 1.12; }
.info-statement p + p { margin-top: 16px; }
.info-statement-copy { color: var(--color-ink-soft); font-size: 16px; line-height: 1.7; }

/* Numbers */
.info-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--color-line); }
.info-stat { padding: clamp(24px, 3vw, 44px) clamp(16px, 2vw, 32px); border-left: 1px solid var(--color-line); }
.info-stat:first-child { border-left: 0; padding-left: 0; }
.info-stat-n { font-family: var(--font-display); font-size: clamp(44px, 5vw, 84px); line-height: 1; }
.info-stat-n small { font-family: var(--font-body); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--color-muted); }
.info-stat p + p { margin-top: 10px; max-width: 220px; color: var(--color-ink-soft); font-size: 14px; }

/* Photo cards (the four brands) */
.info-brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.info-brand { position: relative; display: flex; align-items: flex-end; aspect-ratio: 3 / 4.2; overflow: hidden; color: var(--color-white); }
.info-brand img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.info-brand::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 17, 15, .82), rgba(20, 17, 15, 0) 60%); }
.info-brand:hover img { transform: scale(1.05); }
.info-brand-body { position: relative; z-index: 1; padding: clamp(18px, 2vw, 30px); }
.info-brand-body span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.info-brand-body h3 { margin: 8px 0 8px; font-family: var(--font-display); font-size: clamp(26px, 2.2vw, 36px); line-height: 1.05; }
.info-brand-body p { font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .86); }

/* Numbered cards (services, principles) */
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--color-line); border-left: 1px solid var(--color-line); }
.info-cards-4 { grid-template-columns: repeat(4, 1fr); }
.info-card { display: grid; align-content: start; gap: 12px; padding: clamp(24px, 2.6vw, 40px); border-right: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); background: var(--color-bg); transition: background-color .4s var(--ease); }
.info-card:hover { background: var(--color-surface); }
.info-card-num { font-size: 11px; letter-spacing: .16em; color: var(--color-muted); }
.info-card h3 { font-family: var(--font-display); font-size: clamp(24px, 2vw, 32px); line-height: 1.1; }
.info-card p { color: var(--color-ink-soft); line-height: 1.65; }
.info-card .info-link { justify-self: start; margin-top: 8px; font-size: 12px; }

/* Photo beside copy */
.info-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 96px); align-items: center; }
.info-split-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-product-bg); }
.info-split-media img { width: 100%; height: 100%; object-fit: cover; }
.info-split-copy h2 { margin-top: 14px; font-size: clamp(34px, 3.6vw, 60px); line-height: 1.04; }
.info-split-copy > p { margin-top: 18px; max-width: 460px; color: var(--color-ink-soft); font-size: 16px; line-height: 1.7; }
.info-split-copy address { margin-top: 22px; font-style: normal; font-family: var(--font-display); font-size: 24px; line-height: 1.25; }

/* Short facts list (payment terms and the like) */
.info-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 3vw, 56px); }
.info-facts div { padding: 22px 0; border-top: 1px solid var(--color-ink); }
.info-facts dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--color-muted); }
.info-facts dd { margin: 10px 0 0; font-family: var(--font-display); font-size: clamp(22px, 1.9vw, 30px); line-height: 1.2; }
.info-facts dd small { display: block; margin-top: 8px; font-family: var(--font-body); font-size: 14px; line-height: 1.55; color: var(--color-ink-soft); }

/* Closing band */
.info-cta { background: var(--color-dark); color: var(--color-white); }
.info-cta-inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px; padding-block: clamp(56px, 6vw, 104px); }
.info-cta h2 { font-size: clamp(36px, 4.4vw, 72px); line-height: 1; max-width: 12em; }
.info-cta p { margin-top: 16px; max-width: 460px; color: rgba(255, 255, 255, .78); line-height: 1.65; }
.info-cta .info-actions { margin-top: 0; }
.info-cta .info-link:hover { color: #e3c3a9; }

/* Policy documents: contents on the left, text on the right */
.info-doc { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: clamp(32px, 6vw, 120px); padding-block: clamp(40px, 5vw, 80px) clamp(72px, 8vw, 128px); }
.info-toc { position: sticky; top: calc(var(--header-top-h) + var(--header-nav-h) + 28px); align-self: start; }
.info-toc p { margin-bottom: 16px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--color-muted); }
.info-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: toc; border-left: 1px solid var(--color-line); }
.info-toc a { display: block; margin-left: -1px; padding: 7px 0 7px 16px; border-left: 1px solid transparent; font-size: 14px; color: var(--color-ink-soft); transition: color .3s var(--ease), border-color .3s var(--ease); }
.info-toc a:hover, .info-toc a.is-current { color: var(--color-ink); border-left-color: var(--color-ink); }
.info-body { max-width: 760px; counter-reset: sec; }
.info-body > section { padding-block: clamp(28px, 3vw, 44px); border-top: 1px solid var(--color-line); scroll-margin-top: calc(var(--header-top-h) + var(--header-nav-h) + 16px); }
.info-body > section:first-child { padding-top: 0; border-top: 0; }
.info-body h2 { display: flex; align-items: baseline; gap: 16px; font-family: var(--font-display); font-size: clamp(28px, 2.6vw, 40px); line-height: 1.1; }
.info-body h2::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); font-family: var(--font-body); font-size: 11px; letter-spacing: .16em; color: var(--color-muted); }
.info-body h3 { margin-top: 26px; font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.info-body p, .info-body li { color: var(--color-ink-soft); font-size: 16px; line-height: 1.75; }
.info-body p { margin-top: 14px; }
.info-body ul, .info-body ol { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; }
.info-body ul li { position: relative; padding-left: 22px; }
.info-body ul li::before { content: ''; position: absolute; left: 0; top: .78em; width: 10px; height: 1px; background: var(--info-accent); }
.info-body ol { counter-reset: clause; list-style: none; }
.info-body ol li { position: relative; padding-left: 40px; counter-increment: clause; }
.info-body ol li::before { content: counter(clause) '.'; position: absolute; left: 0; top: 0; font-family: var(--font-display); font-size: 20px; color: var(--color-ink); }
.info-body a { color: var(--color-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.info-body a:hover { color: var(--info-accent); }
.info-body strong { font-weight: 500; color: var(--color-ink); }
.info-note { margin-top: 22px; padding: 20px 24px; background: var(--color-sand); border-left: 2px solid var(--info-accent); }
.info-note p { margin: 0; font-size: 15px; color: var(--color-ink); }
.info-note p + p { margin-top: 8px; }

/* Receiving checklist */
.info-checks { display: grid; gap: 0; margin-top: 22px; border-top: 1px solid var(--color-ink); }
.info-check { display: grid; grid-template-columns: 56px 1fr; gap: 0 12px; padding: 22px 0; border-bottom: 1px solid var(--color-line); }
.info-check > span { font-family: var(--font-display); font-size: 34px; line-height: 1; color: var(--info-accent); }
.info-check h3 { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.2; }
.info-check p { margin-top: 8px; }

/* Collections index */
.coll-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-block: clamp(28px, 3vw, 48px) clamp(20px, 2vw, 32px); }
.coll-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.coll-filters button { padding: 10px 18px; border: 1px solid var(--color-line); background: transparent; font-size: 13px; letter-spacing: .04em; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.coll-filters button:hover { border-color: var(--color-ink); }
.coll-filters button[aria-pressed="true"] { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-white); }
.coll-count { font-size: 13px; color: var(--color-muted); }
.coll-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 52px) 16px; padding-bottom: clamp(72px, 8vw, 128px); }
.coll-card { display: block; }
.coll-card[hidden] { display: none; }
.coll-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-product-bg); }
.coll-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.coll-card-media img.is-cutout { object-fit: contain; padding: 9%; mix-blend-mode: multiply; }
.coll-card:hover .coll-card-media img { transform: scale(1.04); }
.coll-card-body { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 16px; }
.coll-card h2 { font-family: var(--font-display); font-size: clamp(26px, 2.2vw, 36px); line-height: 1.05; }
.coll-card-meta { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); white-space: nowrap; }
.coll-card-arrow { display: inline-block; margin-left: 6px; transition: transform .4s var(--ease); }
.coll-card:hover .coll-card-arrow { transform: translateX(5px); }

/* Track your order */
.track-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 112px); padding-block: clamp(40px, 5vw, 80px) clamp(72px, 8vw, 128px); }
.track-routes { display: grid; gap: 0; border-top: 1px solid var(--color-ink); }
.track-route { display: grid; grid-template-columns: 44px 1fr; gap: 0 14px; padding: 26px 0; border-bottom: 1px solid var(--color-line); }
.track-route > span { font-size: 11px; letter-spacing: .16em; color: var(--color-muted); padding-top: 10px; }
.track-route h2 { font-family: var(--font-display); font-size: clamp(26px, 2.2vw, 34px); line-height: 1.1; }
.track-route p { margin-top: 10px; max-width: 440px; color: var(--color-ink-soft); line-height: 1.7; }
.track-route .info-link { margin-top: 16px; font-size: 12px; }
.track-form-wrap { padding: clamp(24px, 3vw, 48px); background: var(--color-surface); border: 1px solid var(--color-line); align-self: start; }
.track-form-wrap h2 { font-family: var(--font-display); font-size: clamp(28px, 2.4vw, 38px); line-height: 1.1; }
.track-form-wrap > p { margin-top: 10px; color: var(--color-ink-soft); line-height: 1.65; }
.track-form { display: grid; gap: 20px; margin-top: 26px; }

@media (max-width: 1100px) {
  .info-brands { grid-template-columns: repeat(2, 1fr); }
  .info-brand { aspect-ratio: 4 / 3.4; }
  .info-cards-4 { grid-template-columns: repeat(2, 1fr); }
  .coll-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .info-statement, .info-split, .track-layout { grid-template-columns: 1fr; }
  .info-stats { grid-template-columns: repeat(2, 1fr); }
  .info-stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .info-stat:nth-child(n+3) { border-top: 1px solid var(--color-line); }
  .info-cards { grid-template-columns: 1fr; }
  .info-facts { grid-template-columns: 1fr; }
  .info-doc { grid-template-columns: 1fr; }
  .info-toc { position: static; }
  .info-toc ol { grid-auto-flow: row; }
}
@media (max-width: 560px) {
  .info-brands, .info-cards-4, .coll-grid { grid-template-columns: 1fr; }
  .info-stats { grid-template-columns: 1fr; }
  .info-stat, .info-stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .info-stat + .info-stat { border-top: 1px solid var(--color-line); }
  .info-check { grid-template-columns: 40px 1fr; }
  .track-form .form-row { grid-template-columns: 1fr; }
}
.info-page .steps { margin: 0; padding: 0; list-style: none; }

/* ---------- Collection group shots (showcase.html?collection=…): collectionScenes in js/data.js — js/showcase.js ---------- */
.show-scenes { margin-top: 8px; margin-bottom: 28px; }
.show-scenes[hidden] { display: none; }
.show-scenes-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.show-scenes-head h2 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; }
.show-scenes-nav { display: flex; gap: 8px; }
.show-scenes-nav[hidden] { display: none; }
.show-scenes-nav button,
.show-lightbox-arrow,
.show-lightbox-close {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--color-line);
  background: var(--color-surface); color: var(--color-ink); font-size: 18px; line-height: 1; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease);
}
.show-scenes-nav button:hover:not(:disabled),
.show-lightbox-arrow:hover,
.show-lightbox-close:hover { background: var(--color-dark); color: var(--color-white); }
.show-scenes-nav button:disabled { opacity: .35; cursor: default; }
.show-scenes-strip {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity;
  height: clamp(220px, 30vw, 440px); scrollbar-width: thin; padding-bottom: 6px;
}
.show-scene {
  position: relative; flex: none; height: 100%; padding: 0; border: 0; cursor: zoom-in;
  background: var(--color-product-bg); scroll-snap-align: start; overflow: hidden; min-width: 160px;
}
.show-scene img { display: block; height: 100%; width: auto; max-width: none; transition: transform .6s var(--ease); }
.show-scene:hover img { transform: scale(1.03); }
.show-scene span {
  position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; background: rgba(253, 252, 249, .92);
  color: var(--color-ink); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
}
.show-scene:focus-visible, .show-scenes-strip:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 2px; }

.show-lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh;
  align-items: center; justify-content: center; gap: 12px;
}
.show-lightbox[open] { display: flex; }
.show-lightbox::backdrop { background: rgba(20, 17, 15, .88); }
.show-lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.show-lightbox img { display: block; max-width: min(86vw, 1600px); max-height: 84vh; width: auto; height: auto; }
.show-lightbox figcaption { color: var(--color-white); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.show-lightbox-arrow, .show-lightbox-close { flex: none; }
.show-lightbox-close { position: absolute; top: 16px; right: 16px; font-size: 22px; }
.show-lightbox.is-single .show-lightbox-arrow { display: none; }
@media (max-width: 700px) {
  .show-lightbox { gap: 0; }
  .show-lightbox img { max-width: 100vw; }
  .show-lightbox-arrow { position: absolute; bottom: 18px; }
  .show-lightbox-arrow.is-prev { left: calc(50% - 48px); }
  .show-lightbox-arrow.is-next { left: calc(50% + 8px); }
}

/* ---------- Inventory page: what the report means for a shopper (inventory.html) ---------- */
.inventory-note { margin-bottom: 32px; padding: clamp(20px, 3vw, 36px); background: var(--color-surface); border: 1px solid var(--color-line); border-left: 4px solid var(--color-olive); }
.inventory-note h2 { margin: 0 0 10px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; }
.inventory-note-lead { margin: 0 0 20px; max-width: 76ch; font-size: 16px; line-height: 1.6; color: var(--color-ink); }
.inventory-note-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; margin: 0 0 20px; }
.inventory-note-list dt { margin-bottom: 6px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--color-ink); }
.inventory-note-list dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--color-ink-soft); }
.inventory-note-foot { margin: 0; padding-top: 16px; border-top: 1px solid var(--color-line); font-size: 14px; color: var(--color-ink-soft); }
.inventory-note-foot a { color: var(--color-ink); font-weight: 500; text-underline-offset: 3px; }
@media (max-width: 700px) { .inventory-note-list { grid-template-columns: 1fr; } }
