/* Forest Canvas — V3, product-first showroom */

@font-face {
  font-family: "Instrument Sans";
  src: url("../fonts/instrument-sans-normal.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --ivory: #f5f3ee;
  --white: #fbfaf8;
  --stone: #e9e6df;
  --ink: #161614;
  --muted: #67645c;
  --line: rgba(22, 22, 20, 0.14);
  --night: #131417;
  --night-soft: #a9a69e;
  --night-line: rgba(245, 243, 238, 0.16);
  --moss: #5e7445;
  --olive: #7b7541;
  --ochre: #d2a841;
  --burnt: #de5b22;

  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --gutter: clamp(1rem, 4.5vw, 3rem);
  --section: clamp(4.5rem, 14vw, 9rem);
  --header-h: 3.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; }
button { font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure, dl, dd, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 0.5rem; left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--ivory);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Type */

.meta {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 9vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
.title__soft { font-style: italic; color: var(--night-soft); }
.lede { max-width: 30rem; color: var(--muted); font-size: 1rem; }
.caption {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.caption > span:first-child { color: var(--ink); }
.caption--dark { color: var(--night-soft); }
.caption--dark > span:first-child { color: var(--ivory); }

.link {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.3s var(--ease);
}
.link--inline { background-size: 100% 1px; }
@media (hover: hover) {
  .link:hover { background-size: 100% 1px; }
}

.section-head { display: grid; gap: 0.75rem; padding: 0 var(--gutter); margin-bottom: 2rem; }
.section-head--dark .meta { color: var(--night-soft); }

/* Buttons */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0 1.75rem;
  background: var(--ink);
  color: var(--ivory);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.btn--light { background: var(--ivory); color: var(--ink); }
.btn--bag { width: 100%; min-height: 3.5rem; }
.btn--bag[data-state="loading"] { cursor: progress; }
.btn--bag[data-state="loading"] span::after {
  content: "";
  display: inline-block;
  width: 0.75rem; height: 0.75rem;
  margin-left: 0.6rem;
  vertical-align: -0.1rem;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (hover: hover) {
  .btn:hover { background: #2c2c29; }
  .btn--light:hover { background: #fff; }
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 var(--gutter);
  background: rgba(245, 243, 238, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.wordmark {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  text-decoration: none;
}
.header__nav { display: none; }
.header__nav ul, .header__utils { display: flex; gap: 1.75rem; }
.header__utils { gap: 1.25rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.header__nav a { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.header__desktop { display: none; }
@media (min-width: 56em) {
  :root { --header-h: 4rem; }
  .header__nav, .header__desktop { display: block; }
  .header__mobile { display: none; }
}

/* Menu */

.menu {
  width: 100%; max-width: none;
  height: 100%; max-height: none;
  margin: 0;
  padding: 0 var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  border: 0;
  background: var(--ivory);
  color: var(--ink);
}
.menu[open] { display: flex; flex-direction: column; }
.menu::backdrop { background: rgba(22, 22, 20, 0.4); }
.menu__bar { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.menu__primary { display: grid; gap: 0.5rem; margin-top: 2.5rem; }
.menu__primary a { font-family: var(--serif); font-size: 2.75rem; line-height: 1.1; text-decoration: none; }
.menu__search { display: flex; gap: 1rem; margin-top: 2.5rem; padding-bottom: 0.6rem; border-bottom: 1px solid var(--ink); }
.menu__search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 1.125rem; color: inherit; }
.menu__search input:focus { outline: none; }
.menu__search button { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.menu__secondary { display: flex; gap: 1.5rem; margin-top: auto; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }

/* 01 Showroom: gallery + panel */

.showroom { padding-bottom: var(--section); }
.viewer__stage { position: relative; background: var(--night); }
.viewer__track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.viewer__track::-webkit-scrollbar { display: none; }
.viewer__track:focus { outline: none; }
.viewer__slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.viewer__open { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; cursor: zoom-in; }
.viewer__open img { width: 100%; height: 100%; object-fit: cover; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.viewer__open:focus-visible { outline-offset: -4px; outline-color: var(--ivory); }

.viewer__count,
.viewer__hint {
  position: absolute;
  padding: 0.4rem 0.6rem;
  background: rgba(245, 243, 238, 0.92);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.viewer__count { left: 0.75rem; bottom: 0.75rem; }
.viewer__label { margin-left: 0.5rem; font-weight: 500; color: var(--muted); }
.viewer__hint { right: 0.75rem; bottom: 0.75rem; font-weight: 500; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .viewer__hint { display: none; }
}

.viewer__arrow {
  position: absolute;
  top: 50%;
  display: none;
  place-items: center;
  width: 2.75rem; height: 2.75rem;
  margin-top: -1.375rem;
  background: rgba(245, 243, 238, 0.92);
  transition: opacity 0.2s;
}
.viewer__arrow svg, .zoom__arrow svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 1.5; }
.viewer__arrow--prev { left: 0.75rem; }
.viewer__arrow--next { right: 0.75rem; }
.viewer__arrow:disabled { opacity: 0; pointer-events: none; }
@media (min-width: 48em) {
  .viewer__arrow { display: grid; }
}

.viewer__thumbs { display: flex; gap: 0.5rem; padding: 0.75rem var(--gutter) 0; }
.thumb {
  position: relative;
  width: 3.25rem;
  aspect-ratio: 1;
  opacity: 0.55;
  transition: opacity 0.2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -0.4rem;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 0.3s var(--ease);
}
.thumb[aria-current="true"] { opacity: 1; }
.thumb[aria-current="true"]::after { transform: none; }
@media (hover: hover) {
  .thumb:hover { opacity: 1; }
}

.panel { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.5rem var(--gutter) 0; }
.panel__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 10vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
.panel__price { font-family: var(--serif); font-size: 1.625rem; line-height: 1.1; font-variant-numeric: lining-nums; }
.panel__desc { order: 3; margin-top: 1.25rem; max-width: 30rem; color: var(--muted); font-size: 0.9375rem; }
.panel .palette { order: 3; }
.panel .buy { order: 2; margin-top: 1.25rem; }

.palette { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 0.75rem; font-size: 0.75rem; color: var(--muted); }
.palette li { display: inline-flex; align-items: center; gap: 0.45rem; }
.palette__dot { flex: none; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--c); }

/* Size selector + bag button */

.buy { display: grid; gap: 1rem; }
.sizes__legend {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 0.6rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sizes__selected { font-weight: 500; color: var(--muted); }
.sizes__options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.size { position: relative; display: block; }
.size input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.size span {
  display: grid;
  place-items: center;
  height: 3rem;
  border: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.size input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.size input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.size input:disabled { cursor: not-allowed; }
.size input:disabled + span { color: var(--muted); opacity: 0.45; text-decoration: line-through; }
@media (hover: hover) {
  .size input:not(:checked):not(:disabled):hover + span { border-color: var(--ink); }
}
.sizes__error { margin-top: 0.6rem; font-size: 0.8125rem; color: #b23c0f; }
.buy__note { font-size: 0.75rem; color: var(--muted); }

/* 02 Full view */

.fullview { padding: var(--section) 0; background: var(--night); color: var(--ivory); }
.fullview__switch { display: flex; gap: 0.5rem; padding: 0 var(--gutter); margin-bottom: 1.25rem; }
.switch {
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border: 1px solid var(--night-line);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--night-soft);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.switch[aria-pressed="true"] { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
.fullview__figure { max-width: 50rem; margin: 0 auto; }
.fullview__figure .caption { padding: 0 var(--gutter); }
.fullview__frame { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; cursor: zoom-in; }
.fullview__frame:focus-visible { outline-color: var(--ivory); outline-offset: -4px; }
.fullview__img img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.fullview__img.is-active img { opacity: 1; }

/* 03 Artwork */

.artwork { padding: var(--section) 0; }
.artwork__frame { display: block; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; cursor: zoom-in; }
.artwork__frame img { width: 100%; height: 100%; object-fit: cover; }
.artwork__main .caption { padding: 0 var(--gutter); }
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; margin-top: 2.5rem; padding: 0 var(--gutter); }
.swatch img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.swatch__name {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.artwork__note { padding: 0 var(--gutter); margin-top: 1.25rem; }

/* 04 Fabric */

.fabric { padding: var(--section) 0; background: var(--white); }
.fabric__frame { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; cursor: zoom-in; }
.fabric__frame img { width: 100%; height: 100%; object-fit: cover; }
.fabric__main .caption { padding: 0 var(--gutter); }
.fabric__macro { width: min(64%, 360px); margin: 2rem var(--gutter) 0 auto; }
.fabric__macro img { width: 100%; }

/* 05 Details */

.details { padding: var(--section) 0; }
.details__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 0.75rem; padding: 0 var(--gutter); }
.detail__frame { display: block; width: 100%; aspect-ratio: 1; overflow: hidden; cursor: zoom-in; }
.detail__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .detail__frame:hover img { transform: scale(1.04); }
}

/* 06 Silhouette */

.silhouette { padding: var(--section) 0; background: var(--white); }
.silhouette__pair { display: grid; gap: 3rem; }
.anno__frame { position: relative; }
.anno__frame img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.anno__pins li {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  place-items: center;
  width: 1.5rem; height: 1.5rem;
  margin: -0.75rem 0 0 -0.75rem;
  border-radius: 50%;
  background: var(--ivory);
  box-shadow: 0 0 0 4px rgba(245, 243, 238, 0.3);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
}
.anno figcaption { padding: 0 var(--gutter); }
.anno__legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 1rem;
  margin-top: 0.75rem;
  counter-reset: anno;
  font-size: 0.875rem;
}
.anno__legend li { counter-increment: anno; display: flex; gap: 0.5rem; }
.anno__legend li::before {
  content: counter(anno);
  flex: none;
  display: grid;
  place-items: center;
  width: 1.25rem; height: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.625rem;
  font-weight: 600;
}

/* 07 Specs */

.specs { padding: var(--section) 0; }
.spec { margin: 0 var(--gutter); border-top: 1px solid var(--line); }
.spec__row { display: grid; gap: 0.35rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.spec dd { font-family: var(--serif); font-size: clamp(1.5rem, 6vw, 2.25rem); line-height: 1.15; }
.spec__dots { display: flex; gap: 0.35rem; margin-top: 0.6rem; }
.spec__dots span { width: 1.75rem; height: 0.375rem; background: var(--c); }
.spec__sub { display: block; margin-top: 0.5rem; font-family: var(--sans); font-size: 0.75rem; color: var(--muted); }

/* 08 Size guide */

.sizeguide { padding: 0 0 var(--section); }
.sizeguide__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 var(--gutter); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sizeguide__list li {
  display: grid;
  place-items: center;
  padding: 1.5rem 0;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 8vw, 3rem);
  line-height: 1;
}
.sizeguide__list li + li { border-left: 1px solid var(--line); }
.sizeguide__help { display: grid; gap: 0.75rem; margin-top: 1.5rem; padding: 0 var(--gutter); font-size: 0.9375rem; color: var(--muted); }
.sizeguide__help a[href^="tel:"] { white-space: nowrap; }
.inline-links { display: flex; gap: 1.5rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }

/* 09 Purchase */

.purchase {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1.5rem 1.25rem;
  padding: var(--section) var(--gutter);
  background: var(--stone);
}
.purchase__image img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.purchase__body { display: contents; }
.purchase__body > .meta { grid-column: 2; grid-row: 1; align-self: start; }
.purchase__body > .panel__title { grid-column: 2; grid-row: 1; align-self: center; margin-top: 0.75rem; }
.purchase__body > .panel__price { grid-column: 2; grid-row: 1; align-self: end; }
.purchase__image { grid-column: 1; grid-row: 1; }
.purchase .buy,
.purchase .summary { grid-column: 1 / -1; }
.summary { margin-top: 1rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.summary__list { display: grid; gap: 0.6rem; margin-top: 1rem; font-size: 0.9375rem; }
.summary__list li { display: flex; align-items: baseline; gap: 0.75rem; }
.summary__list li::before {
  content: "";
  flex: none;
  width: 0.7rem; height: 0.4rem;
  border-left: 1.5px solid var(--moss);
  border-bottom: 1.5px solid var(--moss);
  transform: translateY(-0.15rem) rotate(-45deg);
}

/* 10 Final hero */

.finale { background: var(--night); color: var(--ivory); padding-bottom: var(--section); }
.finale__figure img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.finale__body { display: grid; justify-items: start; gap: 0.5rem; padding: 2rem var(--gutter) 0; }
.finale__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.5rem, 12vw, 4.5rem); line-height: 1; }
.finale__price { font-family: var(--serif); font-size: 1.625rem; color: var(--night-soft); margin-bottom: 1rem; }

/* Footer */

.footer { padding: 4rem var(--gutter) calc(2rem + env(safe-area-inset-bottom)); background: var(--ink); color: #ece9e2; border-top: 1px solid var(--night-line); }
.footer .meta { color: #9b988f; margin-bottom: 1rem; }
.footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1rem; }
.footer__grid .wordmark { grid-column: 1 / -1; }
.footer__col ul { display: grid; gap: 0.5rem; font-size: 0.9375rem; }
.footer__col--wide { grid-column: 1 / -1; order: 1; }
.footer__col a { overflow-wrap: anywhere; }
.footer__base { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3.5rem; padding-top: 1.25rem; border-top: 1px solid var(--night-line); font-size: 0.75rem; color: #9b988f; }
.footer :focus-visible { outline-color: var(--ivory); }

/* Sticky purchase bar */

.buybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 35;
  padding: 0.625rem var(--gutter) calc(0.625rem + env(safe-area-inset-bottom));
  background: rgba(245, 243, 238, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0s linear 0.4s;
}
.buybar.is-visible { transform: none; visibility: visible; transition: transform 0.4s var(--ease); }
.buybar__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.75rem 1rem; }
.buybar__info { display: grid; line-height: 1.2; }
.buybar__name { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.buybar__price { font-family: var(--serif); font-size: 1.25rem; }
.buybar__btn { min-height: 3rem; padding: 0 1.25rem; }
.buybar__sizes { display: none; grid-column: 1 / -1; grid-row: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; }
.buybar.is-open .buybar__sizes { display: grid; }
.buybar__size {
  height: 2.75rem;
  border: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 500;
}
.buybar__size[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.buybar__size:disabled { opacity: 0.4; text-decoration: line-through; cursor: not-allowed; }

/* Fullscreen viewer */

.zoom {
  width: 100%; max-width: none;
  height: 100%; max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--night);
  color: var(--ivory);
  overflow: hidden;
}
.zoom[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.zoom::backdrop { background: var(--night); }
.zoom__bar,
.zoom__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--gutter);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.zoom__bar { height: 3.5rem; padding-top: env(safe-area-inset-top); box-sizing: content-box; }
.zoom__controls { height: 4rem; padding-bottom: env(safe-area-inset-bottom); box-sizing: content-box; }
.zoom__count { font-variant-numeric: tabular-nums; }
.zoom__label { margin-left: 0.6rem; font-weight: 500; color: var(--night-soft); }
.zoom__close, .zoom__toggle { min-height: 2.75rem; }
.zoom__arrow { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--night-line); }
.zoom__arrow:disabled { opacity: 0.3; cursor: default; }
.zoom :focus-visible { outline-color: var(--ivory); }
.zoom__track {
  display: flex;
  overflow-x: auto;
  overscroll-behavior: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.zoom__track::-webkit-scrollbar { display: none; }
.zoom__track.is-locked { overflow: hidden; }
.zoom__slide {
  flex: 0 0 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  cursor: zoom-in;
}
.zoom__slide img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-select: none; }
.zoom__slide.is-zoomed { display: block; overflow: auto; cursor: zoom-out; touch-action: pan-x pan-y; }
.zoom__slide.is-zoomed img { max-width: none; max-height: none; width: var(--zw, 200%); }

/* Tablet */

@media (min-width: 48em) {
  .viewer__thumbs { gap: 0.75rem; }
  .thumb { width: 4rem; }
  .artwork__main { max-width: 30rem; margin: 0 auto; }
  .artwork__main .caption, .fabric__main .caption, .fullview__figure .caption { padding: 0; }
  .artwork__frame, .fabric__frame { width: 100%; }
  .swatches { max-width: 30rem; margin: 2.5rem auto 0; padding: 0; gap: 1rem; }
  .artwork__note { max-width: 30rem; margin: 1.25rem auto 0; padding: 0; }
  .fabric__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.5rem; align-items: end; padding: 0 var(--gutter); }
  .fabric__macro { width: auto; max-width: 360px; margin: 0; }
  .silhouette__pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; padding: 0 var(--gutter); }
  .anno figcaption { padding: 0; }
  .details__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; }
  .detail--placket { margin-top: 3rem; }
  .detail--hem { margin-top: 4.5rem; }
  .detail--cuff { margin-top: 1.5rem; }
  .spec__row { grid-template-columns: 12rem minmax(0, 1fr); align-items: baseline; padding: 1.75rem 0; }
  .purchase { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 3rem; align-items: start; }
  .purchase__body { display: grid; gap: 0.5rem; align-content: start; }
  .purchase__body > * { grid-column: auto !important; grid-row: auto !important; margin-top: 0 !important; }
  .purchase__image { grid-row: auto; }
  .purchase .buy { margin-top: 1.25rem; }
  .finale__figure { max-width: 50rem; margin: 0 auto; }
  .finale__body { max-width: 50rem; margin: 0 auto; padding: 2rem 0 0; }
  .buybar__inner { grid-template-columns: auto minmax(0, 1fr) auto; max-width: 72rem; margin: 0 auto; }
  .buybar__sizes { display: grid; grid-column: auto; grid-row: auto; max-width: 20rem; justify-self: end; width: 100%; }
}

@media (min-width: 48em) and (max-width: 63.99em) {
  .showroom {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2rem;
    align-items: start;
    padding: 1.25rem var(--gutter) var(--section);
  }
  .viewer__thumbs { padding: 0.75rem 0 0; }
  .panel { position: sticky; top: calc(var(--header-h) + 1.25rem); padding: 0.5rem 0 0; }
  .panel__title { font-size: 2.5rem; }
}

/* Desktop */

@media (min-width: 64em) {
  .section-head { padding: 0; margin-bottom: 3rem; }
  .showroom {
    display: grid;
    grid-template-columns: minmax(0, 13fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    padding: 1.5rem var(--gutter) 3rem;
  }
  .viewer {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
  }
  .viewer__stage {
    grid-column: 2;
    grid-row: 1;
    width: min(100%, calc(100svh - var(--header-h) - 4.5rem));
    justify-self: center;
  }
  .viewer__thumbs { grid-column: 1; grid-row: 1; flex-direction: column; padding: 0; }
  .thumb { width: 100%; }
  .thumb::after { left: auto; top: 0; right: -0.6rem; bottom: 0; width: 2px; height: auto; transform: scaleY(0); }
  .viewer__open { cursor: zoom-in; }
  .viewer__open.is-zooming img { transform: scale(1.6); }

  .panel { position: sticky; top: calc(var(--header-h) + 2rem); padding: 0; max-width: 26rem; }
  .panel .buy, .panel__desc, .panel .palette { order: 0; }
  .panel__desc { margin-top: 1rem; }
  .panel .buy { margin-top: 1.75rem; }

  .fullview { padding-left: var(--gutter); padding-right: var(--gutter); }
  .fullview__switch { padding: 0; }

  .artwork { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem) minmax(0, 1fr); column-gap: 4rem; padding-left: var(--gutter); padding-right: var(--gutter); align-items: start; }
  .artwork .section-head { grid-column: 1; grid-row: 1; }
  .artwork__main { grid-column: 2; grid-row: 1 / span 2; max-width: none; width: 100%; }
  .swatches { grid-column: 3; grid-row: 1 / span 2; grid-template-columns: 1fr; max-width: 11rem; margin: 0; align-self: center; gap: 1.5rem; }
  .artwork__note { grid-column: 1; grid-row: 2; align-self: end; margin: 0; }

  .fabric { padding-left: var(--gutter); padding-right: var(--gutter); }
  .fabric__grid { padding: 0; }
  .fabric__macro { margin-bottom: 2.25rem; }

  .details, .silhouette, .specs { padding-left: var(--gutter); padding-right: var(--gutter); }
  .details__grid { grid-template-columns: 0.8fr 1.1fr 1fr 0.8fr; gap: 2rem; padding: 0; max-width: 84rem; margin: 0 auto; }
  .details .section-head, .silhouette .section-head, .specs .section-head { max-width: 84rem; margin-left: auto; margin-right: auto; }
  .silhouette__pair { max-width: 84rem; margin: 0 auto; padding: 0; gap: 3rem; }
  .spec, .sizeguide__list, .sizeguide__help { max-width: 84rem; margin-left: auto; margin-right: auto; }
  .spec { margin-left: auto; margin-right: auto; }
  .sizeguide { padding-left: var(--gutter); padding-right: var(--gutter); }
  .sizeguide .section-head { max-width: 84rem; margin-left: auto; margin-right: auto; }
  .sizeguide__help { padding: 0; }

  .purchase { grid-template-columns: minmax(0, 36rem) minmax(0, 26rem); justify-content: center; column-gap: 5rem; align-items: center; }

  .finale { padding: var(--section) var(--gutter); }

  .footer__grid { grid-template-columns: 1.4fr 1fr 1.6fr 0.8fr; }
  .footer__grid .wordmark { grid-column: auto; align-self: start; }
  .footer__col--wide { grid-column: auto; order: 0; }
}

/* Wide desktop */

@media (min-width: 80em) {
  .fullview { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(0, 50rem) minmax(0, 1fr); column-gap: 3rem; }
  .fullview .section-head { grid-column: 1; grid-row: 1; align-self: start; margin: 0; }
  .fullview__switch { grid-column: 1; grid-row: 1; align-self: end; margin: 0; flex-direction: column; align-items: flex-start; }
  .fullview__figure { grid-column: 2; grid-row: 1; width: 100%; }

  .fabric { display: grid; grid-template-columns: minmax(14rem, 1fr) minmax(0, 44rem) minmax(0, 22.5rem); column-gap: 3rem; align-items: end; }
  .fabric .section-head { align-self: start; margin: 0; }
  .fabric__grid { display: contents; }

  .finale { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 50rem) minmax(14rem, 1fr); column-gap: 3rem; }
  .finale__figure { grid-column: 2; max-width: none; margin: 0; }
  .finale__body { grid-column: 3; align-self: end; padding: 0; margin: 0; }
  .finale__title { font-size: clamp(2.5rem, 4vw, 4rem); }
}

/* Reveal (motion only) */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(1.25rem) scale(0.98);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
    transition-delay: calc(var(--d, 0) * 0.08s);
  }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  .viewer__open img { transition: transform 0.35s var(--ease); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .fullview__img img { transition-duration: 0.15s; }
  .buybar, .buybar.is-visible { transition: none; }
  .btn--bag[data-state="loading"] span::after { animation: spin 1.6s linear infinite !important; }
}
