/* ============================================================
   Trays page  (/trays/)
   The first block ("Shared product-page parts") is also loaded by the
   canopies page: product hero, segmented control, lazy 3D stage, swatches,
   data tables. Page-only styles follow.
   ============================================================ */

/* ============================================================
   SHARED PRODUCT-PAGE PARTS
   ============================================================ */

/* ---------------- Product hero (full-bleed real photo) ---------------- */
.ph {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  max-height: 1180px;
  display: grid;
  overflow: hidden;
  isolation: isolate;
  background: #0b0c0e;
}
.ph__media { position: absolute; inset: 0; z-index: -1; }
.ph__media img, .ph__media picture { width: 100%; height: 100%; }
.ph__img { object-fit: cover; object-position: 50% 42%; transform-origin: 50% 40%; }
.ph__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(11, 11, 12, .62) 0%, rgba(11, 11, 12, 0) 22%, rgba(11, 11, 12, 0) 38%, rgba(11, 11, 12, .72) 70%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11, 11, 12, .72) 0%, rgba(11, 11, 12, .25) 45%, rgba(11, 11, 12, 0) 70%);
}
.ph__inner {
  display: grid; grid-template-rows: auto 1fr auto; gap: 32px;
  padding-top: calc(var(--site-header-h) + 20px);
  padding-bottom: clamp(28px, 4vw, 48px);
}
/* Desktop: the photo sits right of the copy and feathers into the page */
@media (min-width: 1000px) {
  .ph__media { left: var(--ph-left, 34%); }
  .ph__media img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
  }
  .ph__media::after {
    background:
      linear-gradient(180deg, rgba(11, 11, 12, .55) 0%, rgba(11, 11, 12, 0) 20%, rgba(11, 11, 12, 0) 62%, rgba(11, 11, 12, .7) 86%, var(--bg) 100%);
  }
  .ph__img { object-position: var(--ph-pos, 50% 45%); }
}
.ph__crumb ol { color: rgba(244, 244, 242, .7); }
.ph__crumb a { color: rgba(244, 244, 242, .8); }
.ph__copy { align-self: end; max-width: 760px; }
.ph__eyebrow { color: rgba(244, 244, 242, .82); }
.ph__title { margin-top: 20px; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.ph__line { display: block; }
.ph__line--accent { color: var(--accent); }
.ph__lead { margin-top: 24px; max-width: 36em; color: rgba(244, 244, 242, .84); }
.ph__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.ph__stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  margin: 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16);
}
.ph__stat { display: grid; gap: 6px; padding-right: 24px; }
.ph__stat + .ph__stat { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .1); }
.ph__stat dt { font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: rgba(244, 244, 242, .62); }
.ph__stat dd {
  margin: 0; font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(1.25rem, 1rem + .8vw, 1.75rem); line-height: 1.05; color: var(--text); font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: no-preference) {
  .ph__img { animation: ph-zoom 1.8s var(--ease-out) both; }
  .ph__crumb, .ph__eyebrow, .ph__lead, .ph__actions, .ph__stats { animation: ph-in 1.1s var(--ease-out) both; }
  .ph__eyebrow { animation-delay: .08s; }
  .ph__line { animation: ph-line 1.2s var(--ease-out) both; }
  .ph__line:nth-child(1) { animation-delay: .14s; }
  .ph__line:nth-child(2) { animation-delay: .26s; }
  .ph__lead { animation-delay: .42s; }
  .ph__actions { animation-delay: .54s; }
  .ph__stats { animation-delay: .7s; }
}
@keyframes ph-zoom { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
@keyframes ph-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes ph-line { from { opacity: 0; transform: translateY(40%); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 -10% 0); } }

@media (max-width: 999px) {
  /* Stacked: photo on top, copy below on the page background */
  .ph { --ph-media-h: clamp(320px, 96vw, 600px); min-height: 0; max-height: none; }
  .ph__media { bottom: auto; height: var(--ph-media-h); }
  .ph__img { object-position: var(--ph-pos-m, 32% 45%); }
  .ph__inner { gap: 24px; grid-template-rows: auto auto auto; }
  .ph__copy { padding-top: calc(var(--ph-media-h) - var(--site-header-h) - 150px); }
}
@media (max-width: 900px) {
  .ph__inner { gap: 24px; }
  .ph__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .ph__stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .ph__actions .btn { flex: 1 1 240px; }
}
@media (max-width: 999px) {
  .ph__media::after {
    background: linear-gradient(180deg, rgba(11, 11, 12, .6) 0%, rgba(11, 11, 12, 0) 22%, rgba(11, 11, 12, 0) 50%, rgba(11, 11, 12, .75) 80%, var(--bg) 100%);
  }
}
@media (max-width: 420px) {
  .ph__stat { padding-right: 12px; }
  .ph__stat + .ph__stat { padding-left: 12px; }
  .ph__stat:nth-child(3) { padding-left: 0; }
}

/* ---------------- Segmented control (role=radiogroup of buttons) ---------------- */
.seg {
  display: inline-flex; gap: 4px; padding: 4px; max-width: 100%;
  border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line);
}
.seg--block { display: flex; width: 100%; }
.seg--block .seg__btn { flex: 1 1 0; }
.seg--wrap { flex-wrap: wrap; }
.seg__btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 14px; border-radius: 10px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums;
  transition: background var(--t-med) var(--ease-out), color var(--t-fast), box-shadow var(--t-med);
}
.seg__btn:hover:not(:disabled) { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.seg__btn[aria-checked="true"], .seg__btn[aria-pressed="true"] {
  background: var(--text); color: var(--text-inverse);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .6);
}
.seg__btn:disabled { opacity: .38; cursor: not-allowed; }
.seg__btn small { font-weight: 500; opacity: .7; font-size: var(--fs-xs); }
.seg__placeholder { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--text-3); font-size: var(--fs-sm); }

/* ---------------- Lazy 3D stage ---------------- */
.pv-layout { display: grid; gap: 20px; align-items: stretch; }
.pv-layout > * { min-width: 0; }
.seg--block .seg__btn { padding: 0 8px; min-width: 0; }
@media (min-width: 1040px) {
  .pv-layout { grid-template-columns: minmax(0, 8.4fr) minmax(320px, 3.6fr); gap: 24px; }
}
.pv {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--r-xl);
  background: radial-gradient(120% 100% at 50% 35%, #26272b 0%, #151518 55%, #0d0d0f 100%);
  border: 1px solid var(--line);
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 300px;
}
.pv__stage { position: absolute; inset: 0; }
.pv__poster, .pv__mount { position: absolute; inset: 0; width: 100%; height: 100%; }
.pv__poster { object-fit: cover; object-position: var(--pv-poster-pos, 60% 50%); transition: opacity 1s var(--ease-out) .15s; }
.pv__mount { opacity: 0; transition: opacity 1s var(--ease-out); }
.pv__mount canvas { cursor: grab; }
.pv__mount canvas:active { cursor: grabbing; }
.pv.is-live .pv__mount { opacity: 1; }
.pv.is-live .pv__poster { opacity: 0; }

.pv__load {
  position: absolute; left: 50%; top: 50%; z-index: 4; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 14px; text-align: left;
  padding: 10px 22px 10px 10px; border-radius: var(--r-pill);
  background: rgba(11, 11, 12, .66); color: #f4f4f2; border: 1px solid rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  transition: background var(--t-med), border-color var(--t-med);
}
.pv__load:hover { background: rgba(11, 11, 12, .84); border-color: var(--accent-line); }
.pv__load strong { display: block; font-size: var(--fs-md); white-space: nowrap; }
.pv__load small { display: block; color: #b4b4b9; font-size: var(--fs-xs); white-space: nowrap; }
.pv__load-icon {
  position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); flex: none;
}
.pv__load-icon::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--accent-line);
  animation: pv-pulse 2.4s var(--ease-out) infinite;
}
@keyframes pv-pulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

.pv__progress {
  position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 16px 8px 8px; border-radius: var(--r-pill);
  background: rgba(11, 11, 12, .66); border: 1px solid rgba(255, 255, 255, .14); color: #b4b4b9;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: var(--fs-xs); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pv__ring { width: 30px; height: 30px; transform: rotate(-90deg); }
.pv__ring circle { fill: none; stroke-width: 3; stroke: rgba(255, 255, 255, .14); }
.pv__ring .pv__ring-fill { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p, 0) * 100); transition: stroke-dashoffset .25s linear; }

.pv::after {
  content: ""; position: absolute; z-index: 5; right: 18px; top: 18px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .2); border-top-color: var(--accent);
  opacity: 0; transition: opacity var(--t-med); pointer-events: none;
}
.pv.is-busy::after { opacity: 1; animation: spin .8s linear infinite; }
.pv__fallback {
  position: absolute; z-index: 4; left: 16px; right: 16px; bottom: 16px; margin: 0;
  padding: 10px 14px; border-radius: var(--r-md); background: rgba(11, 11, 12, .72); color: #b4b4b9; font-size: var(--fs-sm);
}

.pv__hud {
  position: absolute; z-index: 3; left: 14px; right: 14px; bottom: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  pointer-events: none;
}
.pv__hud > * { pointer-events: auto; }
.pv__hint {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--r-pill);
  background: rgba(11, 11, 12, .55); color: #b4b4b9; font-size: var(--fs-xs);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pv__views {
  display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-pill);
  background: rgba(11, 11, 12, .6); border: 1px solid rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.pv__views::-webkit-scrollbar { display: none; }
.pv__chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 14px; border-radius: var(--r-pill); flex: none;
  font-size: var(--fs-xs); font-weight: 600; color: #d6d6d8; white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast);
}
.pv__chip:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.pv__chip.is-active, .pv__chip[aria-pressed="true"] { background: #f4f4f2; color: #0b0b0c; }
.pv__chip .icon { width: 15px; height: 15px; }

.pv__tag {
  position: absolute; z-index: 2; left: clamp(16px, 2.4vw, 32px); top: clamp(14px, 2vw, 26px); margin: 0;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(1.75rem, 1rem + 2.4vw, 3.5rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .28);
  pointer-events: none; user-select: none;
}
.pv__caption {
  position: absolute; z-index: 3; right: 14px; top: 14px; max-width: min(320px, 70%);
  padding: 10px 14px; border-radius: var(--r-md);
  background: rgba(11, 11, 12, .7); border: 1px solid rgba(255, 255, 255, .12); color: #f4f4f2;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: var(--fs-sm); line-height: 1.35;
}
.pv__caption small { display: block; color: #b4b4b9; font-size: var(--fs-xs); }
.pv__caption strong { color: #f4f4f2; }

@media (min-width: 1040px) {
  .pv-layout > .pv { aspect-ratio: auto; width: 100%; min-height: clamp(520px, 64vh, 720px); }
}
@media (max-width: 700px) {
  .pv { aspect-ratio: 4 / 3.4; }
  .pv__hint { display: none; }
  .pv__hud { left: 10px; right: 10px; bottom: 10px; justify-content: center; }
}

/* Side panel next to a 3D stage */
.pv-panel {
  display: grid; gap: 22px; align-content: start;
  padding: clamp(20px, 2vw, 28px);
  border-radius: var(--r-xl); background: var(--surface-1); border: 1px solid var(--line);
}
.pv-panel__group { display: grid; gap: 10px; }
.pv-panel__label {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-3);
}
.pv-panel__value { color: var(--text); letter-spacing: .02em; text-transform: none; font-weight: 600; font-size: var(--fs-sm); }
.pv-panel__help { font-size: var(--fs-xs); color: var(--text-3); }
.pv-panel__readout { display: grid; gap: 10px; padding-block: 18px; border-block: 1px solid var(--line); }
.pv-panel__name { color: var(--text-2); font-size: var(--fs-small); }

/* ---------------- Finish swatches ---------------- */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  --sw: #1b1c1e;
  position: relative; width: 48px; height: 48px; border-radius: 50%; flex: none;
  background: var(--sw);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 0 0 0 var(--accent);
  transition: box-shadow var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}
.swatch::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.swatch--light { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18), 0 0 0 0 var(--accent); }
.swatch:hover { transform: scale(1.06); }
.swatch[aria-checked="true"] { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.swatch:focus-visible { outline-offset: 6px; border-radius: 50%; }

/* Paint rendering shared by swatches and finish tiles */
.paint--texture::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 120px; mix-blend-mode: overlay; opacity: .9;
}
.paint--gloss::before {
  background: radial-gradient(120% 70% at 30% 18%, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .08) 32%, rgba(255, 255, 255, 0) 55%),
              linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(0, 0, 0, .18));
}

/* ---------------- Data table ---------------- */
.data-table { width: 100%; font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table thead th {
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-3);
  border-bottom-color: var(--line-2); white-space: nowrap;
}
.data-table tbody th { font-weight: 600; color: var(--text); }
.data-table td { color: var(--text-2); }
.data-table .num { text-align: right; white-space: nowrap; }
.data-table .price-cell { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: .01em; color: var(--text); }
.data-table .group-row th {
  padding-top: 26px; font-family: var(--font-display); font-size: 1.125rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text);
  border-bottom-color: var(--line-2);
}
.data-table tbody tr { transition: background var(--t-fast); }
.data-table tbody tr:not(.group-row):hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
.data-table .badge { vertical-align: middle; }
/* position: relative keeps absolutely positioned .sr-only text inside the scroller (no page overflow) */
.table-scroll, .fit-table__scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); }
.table-scroll:focus-visible { outline-offset: 4px; }

/* ---------------- Chip list (inclusions) ---------------- */
.incl-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.incl-chips li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--surface-1);
  font-size: var(--fs-sm); color: var(--text-2);
}
.incl-chips .icon { color: var(--ok); }
.section--studio .incl-chips .icon, .theme-studio .incl-chips .icon { color: #1d6b3d; }

/* Live price (tweens between values) */
.live-price { font-variant-numeric: tabular-nums; }

/* ============================================================
   TRAYS PAGE
   ============================================================ */

/* ---------------- Standard inclusions chips ---------------- */
.tr-included {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 clamp(40px, 5vw, 72px); list-style: none;
}
.tr-included li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--surface-1);
  font-size: var(--fs-sm); color: var(--text);
}
.tr-included .icon { color: var(--accent); }

/* ---------------- Scroll story ---------------- */
.tr-story__grid { display: grid; gap: 56px; }
.tr-story__stage { display: none; }
.tr-step { display: grid; gap: 16px; align-content: start; }
.tr-step__media { --ratio: 16 / 9; margin-bottom: 8px; }
.tr-step__media img { object-fit: cover; }
.tr-step__num {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2.75rem, 2rem + 2.4vw, 4.5rem); line-height: .9;
  color: transparent; -webkit-text-stroke: 1px var(--accent-line);
}
.tr-step > p:not(.tr-step__num) { color: var(--text-2); max-width: 54ch; }
.tr-step .feature-list { margin-top: 6px; }
.tr-step .feature-list > li > span { display: block; }

@media (min-width: 1000px) {
  .tr-story__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 96px); align-items: start; }
  .tr-story__stage {
    display: flex; align-items: center; position: sticky; top: 0; height: 100vh; height: 100svh;
    margin-top: -18vh;
  }
  .tr-story__frame { --ratio: 16 / 11; width: 100%; max-height: 78vh; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
  .tr-story__frame img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transform: scale(1.04);
    transition: opacity .8s var(--ease-out), transform 1.4s var(--ease-out);
  }
  .tr-story__frame img.is-active { opacity: 1; transform: none; }
  .tr-story__dots {
    position: absolute; z-index: 2; left: 20px; bottom: 20px; display: flex; gap: 6px; padding: 0; margin: 0; list-style: none;
  }
  .tr-story__dots li { width: 22px; height: 3px; border-radius: 3px; background: rgba(15, 15, 16, .18); transition: background var(--t-med), width var(--t-med) var(--ease-out); }
  .tr-story__dots li.is-active { width: 40px; background: var(--studio-ink); }
  .tr-story__steps { display: grid; }
  .tr-step {
    min-height: 74vh; align-content: center; padding-block: 6vh;
    opacity: .28; transition: opacity .6s var(--ease-out);
  }
  .tr-step:first-child { min-height: 60vh; padding-top: 0; align-content: start; }
  .tr-step:last-child { min-height: 62vh; }
  .tr-step.is-active { opacity: 1; }
  .tr-step__media { display: none; }
  .no-story .tr-step { opacity: 1; }
}
@media (min-width: 1000px) and (prefers-reduced-motion: reduce) {
  .tr-step { opacity: 1; }
}

/* ---------------- Real-world moment ---------------- */
.tr-moment { position: relative; background: var(--bg); }
.tr-moment__figure { position: relative; margin: 0; }
.tr-moment__frame { position: relative; overflow: hidden; aspect-ratio: 21 / 9; max-height: 86vh; width: 100%; }
.tr-moment__frame img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; object-position: 50% 62%; will-change: transform; }
.tr-moment__frame::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(11, 11, 12, 0) 22%, rgba(11, 11, 12, 0) 52%, rgba(11, 11, 12, .85) 92%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11, 11, 12, .78) 0%, rgba(11, 11, 12, .35) 30%, rgba(11, 11, 12, 0) 55%);
}
.tr-moment__caption {
  position: absolute; left: 0; right: 0; bottom: clamp(20px, 4vw, 56px);
  display: grid; gap: 14px; justify-items: start;
}
.tr-moment__quote { max-width: 16ch; font-size: clamp(1.75rem, 1.2rem + 2vw, 3.25rem); line-height: 1; text-shadow: 0 2px 24px rgba(0, 0, 0, .6); }
@media (max-width: 760px) {
  .tr-moment__frame { aspect-ratio: 4 / 3.6; }
}

/* ---------------- Fitment explorer ---------------- */
.fit { display: grid; gap: 16px; }
@media (min-width: 1000px) {
  .fit { grid-template-columns: minmax(300px, 4fr) minmax(0, 8fr); gap: 24px; align-items: stretch; }
}
.fit__controls {
  display: grid; gap: 20px; align-content: start;
  padding: clamp(20px, 2.2vw, 32px); border-radius: var(--r-xl);
  background: var(--surface-2); border: 1px solid var(--line);
}
.fit__step { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: .03em; text-transform: uppercase; }
.fit__step span {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-size: .95rem;
}
.fit__controls .select:disabled { opacity: .5; cursor: not-allowed; }
.fit__cabs { padding: 0; border: 0; margin: 0; min-width: 0; }
.fit__cabs legend { margin-bottom: 8px; }
.fit__cabs:disabled { opacity: .55; }
.fit__note { padding-top: 16px; border-top: 1px solid var(--line); }

.fit__result {
  position: relative; min-height: 420px;
  padding: clamp(20px, 2.2vw, 32px); border-radius: var(--r-xl);
  background: var(--surface-2); border: 1px solid var(--line);
  overflow: hidden;
}
.fit__empty { display: grid; gap: 12px; justify-items: center; text-align: center; padding-block: 12px; }
.fit__empty-media { width: min(560px, 100%); opacity: .6; filter: grayscale(.4); }
.fit__empty .muted { font-size: var(--fs-small); }
.fit__picks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; max-width: 560px; }
.fit__pick {
  min-height: 40px; padding: 0 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); background: var(--surface-1);
  font-size: var(--fs-sm); font-weight: 600; color: var(--text-2);
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.fit__pick:hover { border-color: var(--accent-line); color: var(--text); background: var(--accent-soft); }

.fit-res { display: grid; gap: 24px; }
@media (min-width: 760px) {
  .fit-res { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; gap: 32px; }
}
.fit-res.is-entering { animation: ph-in .6s var(--ease-out) both; }
.fit-res__media { --ratio: 4 / 3; }
.fit-res__media img { transition: opacity .35s var(--ease-out), transform .6s var(--ease-out); }
.fit-res__media img.is-swapping { opacity: 0; transform: translateX(-12px); }
.fit-res__media .frame__badge { left: auto; right: 14px; }
.fit-res__body { display: grid; gap: 16px; align-content: start; }
.fit-res__vehicle { color: var(--accent-text); }
.fit-res__title { font-size: var(--fs-h3); }
.fit-res__body > p { color: var(--text-2); }

.fit-opts { display: grid; gap: 8px; }
.fit-opt {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 16px;
  width: 100%; padding: 14px 16px; border-radius: var(--r-lg); text-align: left;
  background: var(--surface-1); border: 1px solid var(--line-2);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-med);
}
.fit-opt:hover { border-color: var(--line-3); }
.fit-opt[aria-checked="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: color-mix(in srgb, var(--accent) 6%, var(--surface-1)); }
.fit-opt__len { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; line-height: 1; letter-spacing: .01em; }
.fit-opt__len small { font-size: .9rem; margin-left: 2px; color: var(--text-3); font-weight: 600; }
.fit-opt__name { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.35; }
.fit-opt__price { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.fit-opt__price .badge { font-family: var(--font-ui); }
.fit-res__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.fit-res__actions .btn { flex: 1 1 auto; }
.fit-res .notice { font-size: var(--fs-sm); }

.fit-quote { display: grid; gap: 18px; max-width: 640px; padding-block: 8px; }
.fit-quote__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(242, 163, 58, .22); }
.fit-quote__icon .icon { width: 28px; height: 28px; }
.fit-quote p { color: var(--text-2); }

.fit-table { margin-top: clamp(40px, 4vw, 64px); }
.fit-table__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 12px; }
.fit-table__scroll { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-2); }
.fit-table__scroll .data-table tr:last-child > * { border-bottom: 0; }
.fit-table__foot { margin-top: 12px; }
.data-table tr.is-match { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.data-table tr.is-match th { color: var(--accent-text); }

/* ---------------- 3D viewer section ---------------- */
.tr-viewer .pv-panel .btn--primary { margin-top: 2px; }

/* ---------------- Finishes ---------------- */
.finish-grid {
  display: grid; gap: var(--grid-gap); padding: 0; margin: 0; list-style: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 900px) { .finish-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.finish-tile {
  display: grid; gap: 14px; width: 100%; text-align: left;
  padding: 10px 10px 18px; border-radius: var(--r-xl);
  background: var(--surface-1); border: 1px solid var(--line);
  transition: border-color var(--t-med), transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
}
.finish-tile:hover { border-color: var(--line-3); transform: translateY(-2px); }
.finish-tile[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.finish-tile__paint {
  --sw: #1b1c1e;
  position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, 0) 40%, rgba(0, 0, 0, .25) 100%),
    var(--sw);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.finish-tile__paint::before { content: ""; position: absolute; inset: 0; }
.finish-tile__paint.is-light { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.finish-tile__paint::after {
  /* a folded "panel edge" so the light catches the coat */
  content: ""; position: absolute; left: 0; right: 0; top: 58%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
}
.finish-tile__paint.is-light::after { background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .18), transparent); }
.finish-tile__body { display: grid; gap: 4px; padding-inline: 8px; }
.finish-tile__name { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; }
.finish-tile__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text-3); font-size: var(--fs-sm); }
.finish-tile__check {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line-2); color: transparent; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.finish-tile__check .icon { width: 14px; height: 14px; }
.finish-tile[aria-pressed="true"] .finish-tile__check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------------- Accessories ---------------- */
.tr-acc__intro { margin-bottom: var(--space-stack); }
.acc-rail {
  display: grid; gap: var(--grid-gap); padding: 0; margin: 0; list-style: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.acc-card { display: grid; gap: 10px; align-content: start; }
.acc-card .frame { margin-bottom: 6px; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 24px 50px -30px rgba(20, 20, 24, .4); }
.acc-card__title { font-size: var(--fs-h4); }
.acc-card__text { color: var(--text-2); font-size: var(--fs-small); max-width: 38ch; }
.acc-card .price { margin-top: 4px; }
.acc-card .price__value { font-size: 1.5rem; }
@media (max-width: 999px) {
  .acc-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .acc-rail {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
    gap: 14px; padding-bottom: 6px;
  }
  .acc-rail::-webkit-scrollbar { display: none; }
  .acc-card { flex: 0 0 76%; scroll-snap-align: start; }
}

/* ---------------- Good to know ---------------- */
.tr-know__grid { display: grid; gap: var(--grid-gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.tr-know__item {
  padding: clamp(22px, 2.2vw, 32px); border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--surface-1), rgba(17, 17, 19, .4)); border: 1px solid var(--line);
}
.tr-know__item .icon-feature__icon { margin-bottom: 10px; }
.tr-know__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: var(--space-stack); }

/* ---------------- Canopies-page format (owner markup m39) ----------------
   The page uses the Canopies page's sticky sub-nav, intro grid, inclusion strip and
   card grid (canopies.css is loaded on this page too). */
#tray, #fit, #finishes, #accessories, #know { scroll-margin-top: 58px; }
.tr-built { margin-top: clamp(64px, 7vw, 112px); }
.tr-fit__foot { margin-top: 20px; color: var(--text-3); max-width: 90ch; }
