/* Dahli Studio (copied from Dahli & Co., Nov 17). Colors and spacing come from assets/tokens.css, built from brand/tokens.json.
   Editorial direction: images run edge to edge, type is large, and bone and dark grounds alternate. */

:root {
  --gutter: var(--space-14);
  --section: var(--space-24);
  --header-h: 73px;
  --seam: 4px;
  --scrim: linear-gradient(to top, rgba(28, 27, 25, 0.72) 0%, rgba(28, 27, 25, 0.28) 34%, rgba(28, 27, 25, 0) 62%);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 17px/29px var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
a:hover { color: var(--accent); }
p { margin: 0; }
button, input { font: inherit; color: inherit; border-radius: 0; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

h1 {
  margin: 0;
  font: 600 clamp(38px, 5.4vw, 76px) / 1.02 var(--font-display);
}
h2 {
  margin: 0;
  font: 600 clamp(30px, 3.8vw, 52px) / 1.04 var(--font-display);
}

.label {
  font: 400 13px/18px var(--font-sans);
  letter-spacing: 3px;
  text-transform: uppercase;
}
.caption { font: 500 22px/30px var(--font-display); }
.product-name { font: 600 24px/30px var(--font-display); }
.meta { font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.eyebrow { color: var(--accent); }
.lede { max-width: 58ch; }
.text-link { text-underline-offset: 6px; white-space: nowrap; }

.skip {
  position: absolute;
  left: var(--space-4);
  top: -60px;
  z-index: 60;
  padding: var(--space-2) var(--space-4);
  background: var(--charcoal);
  color: var(--bone);
}
.skip:focus { top: var(--space-2); color: var(--bone); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* An empty image slot: says what belongs here and the filename to use. */
.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  height: 100%;
  min-height: 240px;
  padding: var(--space-8);
  background: var(--linen);
  color: var(--ink-muted);
  text-align: center;
}
.placeholder-title { font: 500 26px/32px var(--font-display); color: var(--ink); }
.placeholder-hint { max-width: 38ch; font-size: 15px; line-height: 24px; }
.placeholder-file { margin-top: var(--space-2); font-size: 13px; line-height: 18px; letter-spacing: 1px; }

/* Header */
.site-header {
  position: sticky; /* stays at the top while the page scrolls (Corey, Nov 14) */
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-h);
  padding: var(--space-3) var(--gutter);
  background: var(--surface);
}
.menu-toggle {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 44px;
}
.wordmark img { width: 175px; height: auto; }
.header-actions {
  justify-self: end;
  display: flex;
  gap: 28px;
}
.header-actions a { padding: var(--space-3) 0; text-decoration: none; }

/* Menu overlay */
.menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--surface-inverse);
  color: var(--on-inverse);
}
.menu[hidden] { display: none; }
.menu a { color: inherit; text-decoration: none; }
.menu a:hover { color: var(--tan); }
.menu-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-h);
  padding: var(--space-3) var(--gutter);
}
.menu-close { justify-self: start; min-height: 44px; }
.menu-top img { width: 175px; height: auto; }
.menu-nav {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-12);
  padding: var(--space-12) var(--gutter);
}
.menu-primary a { display: block; font: 600 clamp(38px, 5.4vw, 76px) / 1.1 var(--font-display); }
.menu-secondary { display: flex; flex-direction: column; gap: var(--space-4); }
.menu-secondary a { display: block; padding: var(--space-1) 0; }

/* Film */
.film { position: relative; background: var(--charcoal); }
.film video, .film img { width: 100%; height: 100%; object-fit: cover; }
.film-control {
  position: absolute;
  z-index: 3;
  right: var(--space-6);
  bottom: var(--space-6);
  min-width: 96px;
  min-height: 44px;
  padding: 0 var(--space-4);
  background: var(--charcoal);
  color: var(--bone);
  border-radius: 2px;
}
.film-control:hover { background: var(--surface-inverse); color: var(--tan); }

/* Hero: the headline sits on the image. The media is taller than its frame so it can
   drift as the page scrolls (see site.js). */
.hero { position: relative; }
.film-hero {
  height: calc(100vh - var(--header-h));
  min-height: 560px;
  overflow: hidden;
}
.film-hero > img, .film-hero > video, .film-hero > .placeholder {
  position: absolute;
  left: 0;
  top: -25%;
  width: 100%;
  height: 125%;
  will-change: transform;
}
.film-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--scrim);
  pointer-events: none;
}
.hero-text {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--space-12);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  color: var(--bone);
  animation: rise 1.4s var(--ease) both;
}
.hero-text a { color: var(--bone); margin-top: var(--space-2); }
.hero-text a:hover { color: var(--tan); }
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

/* Statement */
.statement {
  max-width: 1120px;
  margin: 0 auto;
  padding: var(--space-14) var(--gutter);
  text-align: center;
  font: 600 44px/58px var(--font-display);
}

/* Categories: edge to edge, with text on the image */
/* Zigzag (Corey, Nov 13): each row is one large tile and one small one, the large one switching sides. */
.categories-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--seam);
  height: 640px;
}
.categories-row.is-flipped { grid-template-columns: 1fr 2fr; }
.categories-row + .categories-row { margin-top: var(--seam); }
.tile {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: var(--bone);
  background: var(--charcoal);
}
.tile:hover { color: var(--bone); }
.tile > img, .tile > .placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}
.tile:hover > img { transform: scale(1.03); }
/* Homepage category tiles (Corey, Nov 18): a second photo fades in over the first on hover. */
.tile > img.tile-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 1.6s var(--ease);
}
.tile:hover > img.tile-hover, .tile:focus-visible > img.tile-hover { opacity: 1; }
@media (hover: none) { .tile > img.tile-hover { display: none; } }
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--scrim);
  pointer-events: none;
}
.tile-text {
  position: absolute;
  z-index: 1;
  left: var(--space-8);
  right: var(--space-8);
  bottom: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
/* The greyhound sits right of center in its photo, so the narrow tile keeps him in frame. */
.tile-leather > img { object-position: 62% center; }

/* Film band */
.film-band .film { aspect-ratio: 16 / 9; margin-top: var(--seam); }

/* Section heads */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
  padding: 0 var(--gutter);
}
.section-head > div { display: flex; flex-direction: column; gap: var(--space-4); max-width: 880px; }

/* Card captions */
.card-text { display: flex; flex-direction: column; padding: var(--space-4) var(--gutter) var(--space-8) var(--space-4); }

/* The Cognac Set */
.set { padding-top: var(--section); }
.set-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--seam);
}
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.card:hover { color: var(--ink); }
.card > img, .card > .placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  background: var(--surface-raised);
}

/* Materials */
/* One image beside charcoal copy, using the split layout (Corey, Nov 11). The four material names sit under the
   copy as a quiet line, since there are no material pages to link to. */
.materials-list { color: var(--tan); }
/* The photo fills its half instead of setting the height, so a tall photo can't stretch the section (Corey, Nov 11). */
#materials .split-media { position: relative; overflow: hidden; }
#materials .split-media img { position: absolute; inset: 0; }

/* Atelier and The Designer */
.split { display: grid; grid-template-columns: 1.4fr 1fr; }
.split-media { min-height: 640px; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--space-6);
  padding: var(--space-14) var(--gutter);
}
.split-reverse { grid-template-columns: 1fr 1.4fr; }
.split-reverse .split-media { order: 2; }
.split-reverse .split-text { order: 1; }
.split-dark { background: var(--surface-inverse); color: var(--on-inverse); }
.split-dark .eyebrow { color: var(--tan); }
.split-dark a:hover { color: var(--tan); }

/* About page */
.about { min-height: calc(100vh - var(--header-h)); border-bottom: 1px solid #3a3733; }
.about h1 { font-size: clamp(44px, 5.6vw, 84px); }
.about .lede a { text-underline-offset: 4px; }
.record { width: 100%; max-width: 58ch; border-top: 1px solid #3a3733; }
.record li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: baseline;
  padding: var(--space-4) 0;
  border-bottom: 1px solid #3a3733;
  font-size: 15px;
  line-height: 24px;
}
.record-figure { font: 600 40px/1 var(--font-display); font-variant-numeric: lining-nums; color: var(--tan); }

/* Product page: images on the left, buying details held in view on the right.
   Images show whole at 3:2, the shape of the renders (Corey, Nov 9). A single image is no longer
   stretched to the screen's height, so nothing is cropped; plain page shows below it instead. */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); /* was 1.55fr; images scaled down a little (Corey, Nov 9) */
  align-items: start;
}
.gallery {
  display: flex;
  flex-direction: column;
  gap: var(--seam);
}
.gallery[hidden] { display: none; }
.gallery-item {
  position: relative;
  flex: none;
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  background: var(--linen);
}
.gallery-item img, .gallery-item .placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-dots { display: none; }
.product-panel {
  position: sticky;
  top: var(--header-h); /* sits below the sticky header */
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-8) var(--gutter) var(--space-12) var(--space-12);
}
.trail { color: var(--ink-muted); }
.trail a { text-decoration: none; }
.product-heading { display: flex; flex-direction: column; gap: var(--space-2); }
.product-panel h1 { font-size: clamp(40px, 3.6vw, 56px); line-height: 1.06; }
.product-price { font-size: 19px; line-height: 28px; }
.product-description { max-width: 46ch; }
.choice { min-width: 0; margin: 0; padding: 0; border: 0; }
.choice legend { padding: 0 0 var(--space-3); }
.choice-value { color: var(--ink-muted); }
.swatches, .sizes { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.swatch { display: block; padding: 6px; cursor: pointer; }
.swatch span:not(.visually-hidden) {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--ink); }
.swatch input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 6px; }
.size { cursor: pointer; }
.size span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 44px;
  padding: 0 var(--space-3);
  border: 1px solid var(--control-border);
  font-size: 15px;
  line-height: 24px;
}
.size input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.size input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.engraving, .form-field { display: flex; flex-direction: column; gap: var(--space-2); }
.engraving-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-1) var(--space-4); }
.engraving-head a { text-underline-offset: 4px; }
.engraving input, .form-field input {
  height: 44px;
  padding: 0 var(--space-1);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--control-border);
}
.form-field textarea {
  min-height: 96px;
  padding: var(--space-2) var(--space-3);
  background: transparent;
  border: 1px solid var(--control-border);
  border-radius: 0;
  color: inherit;
  font: inherit;
  font-size: 15px;
  line-height: 24px;
  resize: vertical;
}
.engraving input::placeholder, .form-field input::placeholder, .form-field textarea::placeholder { color: var(--ink-muted); }
/* Panel tidy (Corey, Nov 11): the quote is one quiet line under the sizes, a hairline starts the personal
   touches, and the note folds away until it is wanted. */
.quote-line a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.quote-line a:hover { color: var(--accent); }
.product-panel .engraving { border-top: 1px solid var(--hairline); padding-top: var(--space-6); }
.note-toggle summary { display: inline-flex; gap: var(--space-2); cursor: pointer; list-style: none; }
.note-toggle summary::-webkit-details-marker { display: none; }
.note-toggle summary::before { content: "+"; }
.note-toggle[open] summary::before { content: "\2212"; }
.note-toggle[open] summary { margin-bottom: var(--space-3); }
.purchase { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.availability { font-size: 15px; line-height: 24px; color: var(--in-stock); }
.availability[data-stocked="false"] { color: var(--made-to-order); }
.alt-option {
  min-height: 24px;
  font-size: 15px;
  line-height: 24px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.alt-option[hidden] { display: none; }
.alt-option:hover { color: var(--accent); }
.buy-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  background: var(--ink);
  color: var(--surface);
  text-decoration: none;
  transition: background 0.3s var(--ease);
}
.buy-button:hover { background: var(--cognac); color: var(--surface); }
.shipping-note { color: var(--ink-muted); }
.share-button {
  min-height: 24px;
  color: var(--ink-muted);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}
.share-button:hover { color: var(--accent); }
.added-note { min-height: 24px; font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.specs { border-top: 1px solid var(--hairline); }
.spec { border-bottom: 1px solid var(--hairline); }
.spec summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 56px;
  cursor: pointer;
  list-style: none;
}
.spec summary::-webkit-details-marker { display: none; }
.spec summary::after { content: "+"; font-size: 18px; letter-spacing: 0; }
.spec[open] summary::after { content: "\2212"; }
.spec-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-bottom: var(--space-6);
  font-size: 15px;
  line-height: 24px;
  color: var(--ink-muted);
}
.related h2 { font-size: clamp(36px, 3.6vw, 56px); }
@media (min-width: 768px) {
  .related-grid { grid-template-columns: repeat(var(--count), minmax(0, 1fr)); }
}

/* Category page: a short image heading, a filter row, then large images edge to edge */
.category-hero {
  position: relative;
  height: 62vh;
  min-height: 420px;
  overflow: hidden;
  background: var(--charcoal);
}
.category-hero > img, .category-hero > .placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}
.category-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* A tint from the left edge (Corey, Nov 9) on top of the bottom scrim, so the heading at lower left stays readable. */
  background:
    linear-gradient(to right, rgba(28, 27, 25, 0.62) 0%, rgba(28, 27, 25, 0.3) 32%, rgba(28, 27, 25, 0) 58%),
    var(--scrim);
  pointer-events: none;
}
.category-hero-text {
  position: absolute;
  z-index: 1;
  left: var(--gutter);
  right: var(--gutter);
  bottom: var(--space-12);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  color: var(--bone);
}
.category-hero h1 { font-size: clamp(44px, 5.6vw, 84px); }
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-6);
  padding: var(--space-3) var(--gutter);
  border-bottom: 1px solid var(--hairline);
}
.filter-buttons { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.filter-count { margin-left: auto; }
.filter-button {
  min-height: 44px;
  color: var(--ink-muted);
  border-bottom: 1px solid transparent;
}
.filter-button:hover { color: var(--ink); }
.filter-button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--seam);
  padding-top: var(--seam);
}
.category-card[hidden] { display: none; }
.category-card.is-wide { grid-column: 1 / -1; }
.card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-raised);
}
.category-card.is-wide .card-media { aspect-ratio: 21 / 9; }
/* Furniture tiles match the 3:2 product photos (Corey, Nov 19). */
.category-grid.cat-furniture .card-media { aspect-ratio: 3 / 2; }
/* Three across with tall portrait cards (trial on Play). */
.category-grid.is-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.category-grid.is-three .card-media { aspect-ratio: 4 / 5; }
.category-grid.is-three .category-card .card-text { padding: var(--space-4) var(--space-6) var(--space-8); }
@media (max-width: 1024px) {
  .category-grid.is-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .category-grid.is-three { grid-template-columns: minmax(0, 1fr); }
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease);
}
.category-card .card-media:hover img { transform: scale(1.03); }
/* Only the visible photo zooms; the others wait off to the right in the strip, and zooming them let a sliver of
   the next photo show at the card's right edge (Corey, Nov 11). */
.category-card .card-media:hover .card-strip img + img { transform: none; }
.card-media { position: relative; }
.card-media-tall { aspect-ratio: 4 / 5; }
.card-media .card-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s var(--ease), transform 1.6s var(--ease);
}
@media (hover: hover) {
  a:hover .card-media .card-hover, a:focus-visible .card-media .card-hover,
  .category-card .card-media:hover .card-hover { opacity: 1; }
}
.category-card .card-text {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6) var(--space-12);
}
.card-title { display: flex; flex-direction: column; }
.card-options { display: flex; align-items: center; gap: var(--space-2); padding-top: var(--space-2); }
.dot { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--swatch, transparent); }

/* Bag drawer */
.bag-toggle {
  padding: var(--space-3) 0;
  letter-spacing: inherit;
  text-transform: inherit;
  white-space: nowrap;
}
.bag-toggle:hover { color: var(--accent); }
.bag-backdrop {
  position: fixed;
  inset: 0;
  z-index: 54;
  background: rgba(28, 27, 25, 0.48);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.bag-backdrop.is-open { opacity: 1; visibility: visible; }
.bag {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  width: min(480px, 100%);
  background: var(--surface);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0.5s;
}
.bag.is-open { transform: none; visibility: visible; }
.bag-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: var(--header-h);
  padding: var(--space-3) var(--space-8);
  border-bottom: 1px solid var(--hairline);
}
.bag-head h2 { font-size: 28px; line-height: 34px; }
.bag-close { min-height: 44px; }
.bag-close:hover { color: var(--accent); }
.bag-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 var(--space-8); }
.bag-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-8) 0;
}
.bag-empty p { font: 600 26px/32px var(--font-display); }
.bag-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: var(--space-4);
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--hairline);
}
.bag-item:last-child { border-bottom: 0; }
.bag-thumb {
  display: block;
  width: 112px;
  height: 112px;
  overflow: hidden;
  background: var(--linen);
}
.bag-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bag-item-text { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.bag-item-head { display: flex; justify-content: space-between; gap: var(--space-3); }
.bag-item-name { font: 600 22px/28px var(--font-display); text-decoration: none; }
.bag-item-price { flex: none; font-size: 15px; line-height: 28px; }
.bag-item .meta { overflow-wrap: anywhere; }
.bag-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-2);
}
.bag-quantity { display: flex; align-items: center; border: 1px solid var(--control-border); }
.bag-quantity button { width: 36px; height: 36px; }
.bag-quantity button:hover { color: var(--accent); }
.bag-quantity span { min-width: 24px; font-size: 15px; line-height: 24px; text-align: center; }
.bag-remove {
  min-height: 36px;
  font-size: 15px;
  line-height: 24px;
  color: var(--ink-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.bag-remove:hover { color: var(--accent); }
.bag-foot {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-8) var(--space-8);
  border-top: 1px solid var(--hairline);
}
.bag-total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); }
.bag-subtotal, .checkout-subtotal { font: 600 26px/32px var(--font-display); font-variant-numeric: lining-nums; }
.bag-empty[hidden], .bag-foot[hidden], .checkout-empty[hidden], .checkout-total[hidden] { display: none; }

/* Back to top: appears once the visitor has scrolled well down a page */
.to-top {
  position: fixed;
  right: var(--gutter);
  bottom: var(--space-6);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--charcoal);
  border: 1px solid rgba(243, 240, 234, 0.28);
  color: var(--bone);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s, background 0.3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { background: var(--cognac); }

/* Trade page */
.trade-section { padding: var(--space-24) var(--gutter); border-top: 1px solid var(--hairline); }
.trade-section-dark { background: var(--surface-inverse); color: var(--on-inverse); border-top: 0; }
.trade-section-dark .eyebrow { color: var(--tan); }
.trade-section-dark .trade-grid p { color: var(--on-inverse-muted); }
.trade-section-head { display: flex; flex-direction: column; gap: var(--space-4); margin-bottom: var(--space-12); }
.trade-section-head h2 { font-size: clamp(36px, 3.6vw, 56px); }
.trade-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-12) var(--space-8);
  margin: 0;
  padding: 0;
  list-style: none;
}
.trade-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trade-grid li { display: flex; flex-direction: column; gap: var(--space-2); }
.trade-grid h3 { margin: 0; font: 600 26px/32px var(--font-display); }
.trade-grid p { max-width: 36ch; font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.trade-steps .record-figure { color: var(--accent); }
.trade-apply {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: var(--space-8);
  padding: var(--space-24) var(--gutter);
  background: var(--surface-raised);
}
.trade-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6) var(--space-8);
}
.form-field-wide { grid-column: 1 / -1; }
.form-field select {
  height: 44px;
  padding: 0 var(--space-1);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--control-border);
  border-radius: 0;
  color: inherit;
  font: inherit;
}
.trade-form-foot { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.trade-form-foot .buy-button { max-width: 320px; }
.trade-note[hidden] { display: none; }
.trade-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--seam); padding-top: var(--seam); }
.trade-links .tile { height: 560px; }

/* Client Care */
.care-head { display: flex; flex-direction: column; gap: var(--space-4); }
.care-head h1 { font-size: clamp(44px, 5.6vw, 84px); }
.care-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--seam); }
.care-option {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-8);
  background: var(--surface-raised);
  text-decoration: none;
  transition: background 0.3s var(--ease);
}
.care-option:hover { background: var(--hairline); color: inherit; }
.care-option h3 { margin: 0; font: 600 32px/38px var(--font-display); }
.care-option p { font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.care-sizing { background: var(--surface-raised); scroll-margin-top: var(--space-4); }
.care-sizing .trade-grid p { max-width: none; }
.care-measures { margin-bottom: var(--space-12); }
.size-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-12) var(--space-14); }
.size-chart h3 { margin: 0 0 var(--space-3); font: 600 26px/32px var(--font-display); }
.size-chart table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 24px; }
.size-chart th, .size-chart td { padding: var(--space-2) var(--space-3) var(--space-2) 0; border-bottom: 1px solid var(--control-border); text-align: left; font-weight: 400; }
.size-chart thead th { font: 400 13px/18px var(--font-sans); letter-spacing: 3px; text-transform: uppercase; color: var(--ink-muted); }
.size-chart td { color: var(--ink-muted); }
/* Drawings: thin lines in the brand colors. Measurements are marked in cognac. */
.drawing-label { font: 400 13px var(--font-sans); letter-spacing: 3px; text-transform: uppercase; fill: var(--ink-muted); }
.drawing-mark { font: 400 15px var(--font-sans); fill: var(--accent); }
.drawing-letter { font: 600 24px var(--font-display); fill: var(--accent); }
.size-drawing, .measure-drawing { display: block; width: 100%; height: auto; }
.product-size { padding: var(--space-14) var(--gutter); background: var(--surface-raised); }
.product-size-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-14);
}
/* The dog drawing is wide, so on product pages it is capped to sit level with the table (Corey, Nov 8). */
.product-size .measure-drawing { max-width: 520px; margin: 0 auto; }
.product-size .size-chart { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.measure-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-14);
  margin-bottom: var(--space-14);
}
.measure-list { display: flex; flex-direction: column; gap: var(--space-6); }
.measure-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--space-2); }
.measure-letter { font: 600 26px/32px var(--font-display); color: var(--accent); }
.measure-list h3 { margin: 0 0 var(--space-1); font: 600 26px/32px var(--font-display); }
.measure-list p { font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.size-guide { display: inline-block; margin-top: var(--space-2); text-underline-offset: 4px; }
.care-questions .spec-body a { color: inherit; text-underline-offset: 4px; }
.care-more { text-align: center; }
.care-more a { text-underline-offset: 4px; }

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  min-height: calc(100vh - var(--header-h));
  border-bottom: 1px solid #3a3733;
}
.contact-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-6);
  padding: var(--space-14) var(--gutter);
  background: var(--surface-inverse);
  color: var(--on-inverse);
}
.contact-intro .eyebrow, .contact-press .label, .contact-direct .label { color: var(--tan); }
.contact-intro h1 { font-size: clamp(44px, 5.6vw, 84px); }
.contact-press, .contact-direct {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  width: 100%;
  padding-top: var(--space-4);
  border-top: 1px solid #3a3733;
}
.contact-press p:not(.label) { font-size: 15px; line-height: 24px; }
.contact-direct a { font: 600 26px/32px var(--font-display); text-underline-offset: 6px; }
.contact-direct a:hover { color: var(--tan); }
.contact-form { align-content: center; padding: var(--space-14) var(--gutter); }

/* Press */
.press-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-14) var(--gutter);
}
.press-head h1 { font-size: clamp(44px, 5.6vw, 84px); }
.press-record {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: var(--space-12);
  padding: var(--space-24) var(--gutter);
  background: var(--surface-inverse);
  color: var(--on-inverse);
}
.press-record-intro { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); }
.press-record .eyebrow { color: var(--tan); }
.press-record a:hover { color: var(--tan); }
.press-record .record { max-width: none; }
.press-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-24) var(--gutter);
  text-align: center;
}
.statement-small { max-width: 24ch; font: 600 clamp(30px, 3.4vw, 44px) / 1.25 var(--font-display); }

/* Preview checkout */
.checkout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: calc(100vh - var(--header-h));
  border-bottom: 1px solid #3a3733;
}
.checkout-message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-6);
  padding: var(--space-14) var(--gutter);
  background: var(--surface-inverse);
  color: var(--on-inverse);
}
.checkout-message .eyebrow { color: var(--tan); }
.checkout-message h1 { font-size: clamp(44px, 5.6vw, 84px); }
.checkout-message a:hover { color: var(--tan); }
.checkout-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
  padding: var(--space-14) var(--gutter);
}
.checkout-summary h2 { font: 400 13px/18px var(--font-sans); }
.checkout-items { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.checkout-empty { font: 600 26px/32px var(--font-display); }

/* Trade */
.trade { position: relative; background: var(--surface-inverse); }
.trade > img, .trade > .placeholder { width: 100%; height: 820px; object-fit: cover; object-position: center 62%; }
.trade-panel {
  position: absolute;
  right: var(--gutter);
  bottom: var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  max-width: 480px;
  padding: var(--space-12);
  background: var(--surface);
}
.trade-panel h2 { font-size: 44px; line-height: 50px; }

/* Correspondence */
.correspondence {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  padding: var(--section) var(--gutter);
  background: var(--surface-raised);
  text-align: center;
}
.signup {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  width: 100%;
  max-width: 600px;
  margin-top: var(--space-4);
}
.signup input {
  flex: 1 1 280px;
  height: 52px;
  padding: 0 var(--space-1);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--control-border);
}
.signup input::placeholder { color: var(--ink-muted); }
.signup button {
  height: 52px;
  padding: 0 var(--space-6);
  background: var(--ink);
  color: var(--surface);
  font-weight: 500;
  font-size: 14px;
  line-height: 20px;
}
.signup button:hover { background: var(--cognac); }
.signup-note { color: var(--ink-muted); font-size: 15px; line-height: 24px; }

/* Footer */
.site-footer { background: var(--surface-inverse); color: var(--on-inverse-muted); }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-14);
  padding: var(--space-14) var(--gutter) var(--space-8);
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-12);
}
/* The wordmark file carries its own clear space; pull it back so the ink lines up with the page edge. */
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); align-self: flex-start; margin-left: -9px; }
.footer-brand img { width: 198px; height: auto; }
/* Logo above the wordmark (Corey, Nov 9), centred over it. */
.footer-brand .footer-mark { width: 96px; }
.footer-columns { display: flex; flex-wrap: wrap; gap: var(--space-12) 72px; }
.footer-columns div { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-columns .label { color: var(--tan); }
.footer-columns a { color: var(--on-inverse); font-size: 15px; line-height: 24px; text-decoration: none; }
.footer-columns a:hover { color: var(--tan); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid #3a3733;
}
.footer-legal {
  font-size: 13px;
  line-height: 18px;
}
.footer-social { display: flex; gap: var(--space-2); margin-right: -12px; }
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--on-inverse);
}
.footer-social a:hover { color: var(--tan); }

/* Fade-ins, added by site.js only when motion is welcome */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Tablet */
@media (max-width: 1100px) {
  .statement { font-size: 36px; line-height: 48px; }
  .categories-row { height: 480px; grid-template-columns: 1.4fr 1fr; }
  .categories-row.is-flipped { grid-template-columns: 1fr 1.4fr; }
  .split-media { min-height: 520px; }
  .trade > img, .trade > .placeholder { height: 640px; }
}

/* Phone */
@media (max-width: 767px) {
  :root { --gutter: var(--space-4); --section: var(--space-14); }
  body { font-size: 16px; line-height: 27px; }
  .caption { font-size: 20px; line-height: 28px; }

  .site-header { gap: var(--space-2); }
  .menu-toggle span { display: none; }
  .menu-toggle { min-width: 44px; }
  .wordmark img { width: 112px; }
  .header-actions { gap: 10px; letter-spacing: 1px; font-size: 11px; white-space: nowrap; }
  .menu-top img { width: 112px; } /* same as the header wordmark, so it doesn't jump when the menu opens */

  /* Phones: the home hero fills the screen below the top bar (Corey, Nov 10). svh is the screen with the
     browser's own bars showing, so the bottom never hides under them. */
  .film-hero { height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); min-height: 480px; aspect-ratio: auto; }
  .hero-text { bottom: var(--space-8); }
  .film-band .film { aspect-ratio: 4 / 5; }
  .film-control { right: var(--space-3); bottom: var(--space-3); }

  .statement { padding: var(--space-12) var(--gutter); font-size: 30px; line-height: 40px; }

  .set-grid { grid-template-columns: minmax(0, 1fr); }
  .categories-row, .categories-row.is-flipped { grid-template-columns: minmax(0, 1fr); height: auto; }
  .categories-row .tile { height: 440px; }
  .tile-text { left: var(--space-4); right: var(--space-4); bottom: var(--space-4); }
  .card-text { padding: var(--space-3) var(--gutter) var(--space-6); }

  .section-head { margin-bottom: var(--space-8); }

  .split, .split-reverse { grid-template-columns: minmax(0, 1fr); }
  .split-reverse .split-media, .split-reverse .split-text { order: 0; }
  .split-media { min-height: 0; height: 400px; }
  .split-text { padding: var(--space-12) var(--gutter); }
  .about { min-height: 0; }

  .trade > img, .trade > .placeholder { height: 420px; }
  .trade-panel { position: static; max-width: none; padding: var(--space-12) var(--gutter); }
  .trade-panel h2 { font-size: 34px; line-height: 40px; }

  .footer-top { flex-direction: column; }
  .footer-social { margin-left: -12px; margin-right: 0; }
}

/* Product page on tablets and phones */
@media (max-width: 1100px) {
  .trade-grid, .trade-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .product-panel { padding-left: var(--space-8); }
  .size span { min-width: 72px; }
}
@media (max-width: 767px) {
  .product { grid-template-columns: minmax(0, 1fr); }
  .gallery {
    flex-direction: row;
    min-height: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery-item { flex: 0 0 100%; scroll-snap-align: start; }
  /* Thin dash markers under the swipe gallery (replaced the black "1 / 2" box, Corey, Nov 10). */
  .gallery-dots { display: flex; justify-content: center; gap: 6px; padding: var(--space-3) 0 0; }
  .gallery-dots[hidden] { display: none; }
  .gallery-dots span { width: 20px; height: 2px; background: var(--ink); opacity: 0.2; transition: opacity 0.3s var(--ease); }
  .gallery-dots span.is-on { opacity: 0.85; }
  .product-size { padding: var(--space-14) var(--gutter); }
  .size-drawing .drawing-label { font-size: 22px; letter-spacing: 2px; }
  .size-drawing .drawing-mark { font-size: 26px; }
  .measure-drawing .drawing-letter { font-size: 30px; }
  .product-size-grid, .measure-guide { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
  .care-options, .size-charts { grid-template-columns: minmax(0, 1fr); }
  .size-charts { gap: var(--space-8); }
  .contact { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .contact-intro, .contact-form { padding: var(--space-12) var(--gutter); }
  .trade-section, .trade-apply { padding: var(--space-14) var(--gutter); }
  .trade-apply { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .category-hero.trade-page-hero > img { object-position: 30% center; }
  .trade-section-head { margin-bottom: var(--space-8); }
  .trade-grid, .trade-grid-four, .trade-form, .trade-links { grid-template-columns: minmax(0, 1fr); }
  .trade-grid { gap: var(--space-8); }
  .trade-form-foot .buy-button { max-width: none; }
  .trade-links .tile { height: 420px; }
  .press-head { padding: var(--space-12) var(--gutter); }
  .press-record { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); padding: var(--space-14) var(--gutter); }
  .press-contact { padding: var(--space-14) var(--gutter); }
  .bag-head, .bag-foot { padding-left: var(--gutter); padding-right: var(--gutter); }
  .bag-body { padding: 0 var(--gutter); }
  .bag-item { grid-template-columns: 88px minmax(0, 1fr); }
  .bag-thumb { width: 88px; height: 88px; }
  .checkout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .checkout-message, .checkout-summary { padding: var(--space-12) var(--gutter); }
  .category-hero { height: 52vh; min-height: 340px; }
  .category-hero > img { object-position: 72% center; }
  .category-hero-text { bottom: var(--space-8); }
  .filter-buttons { gap: var(--space-6); }
  .category-grid { grid-template-columns: minmax(0, 1fr); }
  .category-card.is-wide .card-media { aspect-ratio: 16 / 10; }
  .category-card .card-text { padding: var(--space-3) var(--gutter) var(--space-8); }
  .product-panel { position: static; padding: var(--space-8) var(--gutter) var(--space-12); }
  .size { flex: 1 1 0; }
  .size span { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile > img { transition: none; }
  .hero-text { animation: none; }
  .film-hero > img, .film-hero > video, .film-hero > .placeholder { top: 0; height: 100%; }
}

/* Lookbook (Nov 8). Each story is a heading and one line, then its images: "wide" ones run the full
   width, "half" ones sit two across. The caption under an image links to the pieces in it. */
.lookbook-head { padding-bottom: 0; }
.lookbook-story { padding-top: var(--section); }
.lookbook-story:last-child { padding-bottom: var(--section); }
.lookbook-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--seam); }
.lookbook-figure { margin: 0; display: flex; flex-direction: column; }
.lookbook-figure.is-wide { grid-column: 1 / -1; }
.lookbook-figure img { width: 100%; height: auto; object-fit: cover; background: var(--surface-raised); }
.lookbook-figure.is-wide img { aspect-ratio: 16 / 9; }
.lookbook-figure.is-half img { aspect-ratio: 4 / 5; }
.lookbook-figure figcaption { padding: var(--space-4) var(--gutter) var(--space-4) var(--space-4); }
.lookbook-figure figcaption a { color: var(--ink-muted); }
.lookbook-figure figcaption a:hover { color: var(--accent); }
@media (max-width: 767px) {
  .lookbook-grid { grid-template-columns: minmax(0, 1fr); }
  .lookbook-figure.is-wide img { aspect-ratio: 4 / 3; }
}
/* Warranty page (Nov 9): the four terms in a 2 x 2 grid, styled like the Client Care cards. */
.warranty-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--seam); }
.warranty-terms > div { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-8); background: var(--surface-raised); }
.warranty-terms h3 { margin: 0; font: 600 32px/38px var(--font-display); }
.warranty-terms p { font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.warranty-terms a, .spec-body a { color: inherit; text-underline-offset: 4px; }
@media (max-width: 767px) {
  .warranty-terms { grid-template-columns: minmax(0, 1fr); }
}
/* Sets (Nov 9): a set's own page. The text sits left and the Add the set panel right; one column on phones. */
.category-hero-text a { color: inherit; text-decoration: none; }
.set-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--space-14);
  align-items: start;
  padding: var(--space-14) var(--gutter);
}
.set-intro-text { display: flex; flex-direction: column; gap: var(--space-4); }
.set-intro-text .lede { max-width: 52ch; }
.set-panel { display: flex; flex-direction: column; gap: var(--space-4); }
.set-panel .meta { color: var(--ink-muted); }
@media (max-width: 767px) {
  .set-intro { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); padding: var(--space-12) var(--gutter); }
}
/* Add-on on a product page (Corey, Nov 9): refills on the Valet, with a counter that starts at 0. Matches the bag's stepper. */
.add-on { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) 0; border-top: 1px solid var(--control-border); border-bottom: 1px solid var(--control-border); }
.add-on-text { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.add-on-name { font-size: 16px; line-height: 24px; }
.add-on-count { display: flex; flex: none; align-items: center; border: 1px solid var(--control-border); }
.add-on-step { width: 44px; height: 44px; background: none; border: 0; cursor: pointer; }
.add-on-step:hover { color: var(--accent); }
.add-on-value { min-width: 28px; font-size: 15px; line-height: 24px; text-align: center; }
/* Checkout: gift message and order notes for the whole order (Corey, Nov 10). */
.checkout-notes { display: flex; flex-direction: column; gap: var(--space-6); padding-top: var(--space-4); }

/* Home hero on phones (Corey, Nov 10): the portrait crop keeps the NYC coat shot's head and coat in frame (the tail is cropped). */
@media (max-width: 767px) {
  .film-hero > img { object-position: 53% center; }
}

/* Card sizes under the color dots (Corey, Nov 10). */
.card-variants { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-1); flex: none; }
.card-sizes { white-space: nowrap; }

/* Featured row (Corey, Nov 10): on a category's All view, pieces with "feature: 1-3" sit three across in tall
   portrait cards; the rest follow two across in 3:2 landscape cards. The filter script removes has-featured
   on the single-type views, which keep the usual layout. */
.category-grid.has-featured { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.category-grid.has-featured > .category-card { grid-column: span 3; }
.category-grid.has-featured > .category-card.is-featured { grid-column: span 2; }
.category-grid.has-featured > .category-card.is-wide { grid-column: 1 / -1; }
.category-grid.has-featured .category-card.is-featured .card-media { aspect-ratio: 4 / 5; }
.category-grid.has-featured .category-card:not(.is-featured):not(.is-wide) .card-media { aspect-ratio: 3 / 2; }
@media (max-width: 767px) {
  .category-grid.has-featured { grid-template-columns: minmax(0, 1fr); }
  .category-grid.has-featured > .category-card,
  .category-grid.has-featured > .category-card.is-featured { grid-column: auto; }
}

/* Home hero slides (Corey, Nov 10). The first slide sets the height; the others sit on top of it and
   cross-fade in. Each slide's text belongs to its photo. */
.hero-slides { overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.6s var(--ease), visibility 0s linear 1.6s; }
.hero-slide:first-child { position: relative; }
.hero-slide.is-active { z-index: 1; opacity: 1; visibility: visible; transition: opacity 1.6s var(--ease); }
.hero-slide .film-hero { position: relative; }
/* The second slide's headline is styled like the first's, which stays the page's only h1. */
.hero-title { margin: 0; font: 600 clamp(38px, 5.4vw, 76px) / 1.02 var(--font-display); }
/* Tint: darkens the lower left, under the text, on every slide, over the usual scrim. */
.hero-slides .film-hero::after {
  background:
    linear-gradient(to top right, rgba(28, 27, 25, 0.62) 0%, rgba(28, 27, 25, 0.28) 34%, rgba(28, 27, 25, 0) 62%),
    var(--scrim);
}
/* Slide markers: thin lines at the lower right. */
.hero-dots { position: absolute; z-index: 3; right: var(--gutter); bottom: var(--space-12); display: flex; gap: var(--space-2); }
.hero-dot { display: flex; align-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; }
.hero-dot span { display: block; width: 100%; height: 2px; background: var(--bone); opacity: 0.4; transition: opacity 0.4s var(--ease); }
.hero-dot:hover span, .hero-dot[aria-current="true"] span { opacity: 1; }
@media (max-width: 767px) {
  .hero-dots { bottom: auto; top: var(--space-4); }
  .hero-dot { width: 32px; }
}
/* Home slides show their photo top to bottom (the jumping dog in the play shot was cut off). The scroll drift
   only moves the image down while its top is already above the screen, so no gap shows. */
.hero-slides .film-hero > img, .hero-slides .film-hero > video, .hero-slides .film-hero > .placeholder { top: 0; height: 100%; }
/* Play slide on phones: the tall crop follows the jumping Papillon and the mosquito rather than the seated dogs. */
@media (max-width: 767px) {
  .slide-play .film-hero > img { object-position: 24% center; }
}

/* Card color cycle (Corey, Nov 10): each other color's first image waits on top, hidden, and fades in in turn. */
.card-media .card-cycle { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s var(--ease); }
.card-media .card-cycle.is-on { opacity: 1; }

/* Something special (Corey, Nov 10): the only page visitors see before launch. The hero photos fill the
   screen and cross-fade with a slow drift; a gradient darkens the lower left and the top for the type. */
.soon-page { background: var(--surface-inverse); color: var(--bone); }
.soon-film { position: fixed; inset: 0; overflow: hidden; background: var(--surface-inverse); }
/* The incoming photo fades in on top while the outgoing one stays fully visible beneath it and keeps drifting,
   so there's no dark dip and no jump (Corey, Nov 10). */
.soon-slide { position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity 2.4s var(--ease); }
.soon-slide.is-on { z-index: 2; opacity: 1; }
.soon-slide.was-on { z-index: 1; opacity: 1; transition: none; }
.soon-slide { will-change: opacity; }
.soon-slide img { will-change: transform; backface-visibility: hidden; }
.soon-slide img, .soon-slide .placeholder { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.soon-slide.is-on img, .soon-slide.was-on img { animation: soon-drift 14s linear both; }
@keyframes soon-drift { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.soon-film::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3; /* above the photo layers (1 and 2) */
  background:
    linear-gradient(to top right, rgba(28, 27, 25, 0.82) 0%, rgba(28, 27, 25, 0.45) 38%, rgba(28, 27, 25, 0) 68%),
    linear-gradient(to bottom, rgba(28, 27, 25, 0.55) 0%, rgba(28, 27, 25, 0) 22%);
}
.soon {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  padding: var(--space-8) var(--gutter);
}
.soon-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.soon-brand { display: flex; align-items: center; gap: var(--space-4); }
.soon-mark { width: 84px; height: auto; } /* larger logo and wordmark (Corey, Nov 10) */
.soon-wordmark { width: 340px; height: auto; }
/* The wordmark file has empty space before the D (43.6 of 902 units); shift it so the D lines up with the
   text below at any size (Corey, Nov 10). */
.soon-wordmark { transform: translateX(-4.83%); }
.soon-season { color: rgba(243, 240, 234, 0.75); }
.soon-body { align-self: end; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-6); max-width: 820px; padding-bottom: var(--space-8); }
.soon-body > .label { color: var(--tan); }
.soon-body h1 { font-size: clamp(48px, 7vw, 108px); line-height: 1.02; }
.soon-body .lede { max-width: 46ch; color: rgba(243, 240, 234, 0.85); }
.soon-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-4); width: 100%; max-width: 560px; }
.soon-form input {
  flex: 1 1 260px;
  min-width: 0;
  height: 52px;
  padding: 0 var(--space-1);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(243, 240, 234, 0.6);
  color: var(--bone);
  font-size: 17px;
}
.soon-form input::placeholder { color: rgba(243, 240, 234, 0.7); }
.soon-form input:focus { outline: none; border-bottom-color: var(--tan); }
.soon-form button { flex: 0 0 auto; min-height: 52px; padding: 0 var(--space-6); background: var(--bone); color: var(--charcoal); border: 0; cursor: pointer; }
.soon-form button:hover { background: var(--tan); }
.soon-form button:disabled { opacity: 0.6; cursor: default; }
.soon-note { flex-basis: 100%; min-height: 24px; color: rgba(243, 240, 234, 0.75); }
.soon-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
.soon-legal { color: rgba(243, 240, 234, 0.65); }
.soon-enter-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-3); }
.soon-enter { min-height: 44px; padding: 0 var(--space-1); background: none; border: 0; color: rgba(243, 240, 234, 0.8); text-decoration: underline; text-underline-offset: 6px; cursor: pointer; }
.soon-enter:hover { color: var(--tan); }
.soon-password[hidden] { display: none; }
.soon-password { max-width: 360px; }
@media (max-width: 767px) {
  .soon { padding: var(--space-6) var(--gutter); }
  .soon-wordmark { width: 240px; }
  .soon-season { display: none; }
  .soon-body { padding-bottom: var(--space-6); gap: var(--space-4); }
  .soon-form button { flex: 1 1 100%; }
  .soon-film::after {
    background:
      linear-gradient(to top, rgba(28, 27, 25, 0.88) 0%, rgba(28, 27, 25, 0.55) 45%, rgba(28, 27, 25, 0.1) 75%),
      linear-gradient(to bottom, rgba(28, 27, 25, 0.72) 0%, rgba(28, 27, 25, 0.35) 12%, rgba(28, 27, 25, 0) 26%); /* darker top so the wordmark reads over a bright sky */
  }
  .soon-slide:nth-child(1) img { object-position: 70% center; }
  .soon-slide:nth-child(2) img { object-position: 66% center; }
  .soon-slide:nth-child(3) img { object-position: 24% center; }
  .soon-foot { flex-direction: column-reverse; align-items: flex-start; }
  .soon-enter-wrap { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .soon-slide, .soon-slide.is-on img { transition: none; animation: none; }
}
/* The password box opens upward into the empty right side, out of the layout, so the copy on the left
   doesn't move when it appears (Corey, Nov 10). On phones there is no empty side, so it stays in place
   and the page simply grows (the keyboard opens there anyway). */
@media (min-width: 768px) {
  .soon-enter-wrap { position: relative; }
  .soon-password { position: absolute; right: 0; bottom: calc(100% + var(--space-2)); width: 360px; }
}
/* Leather slide on phones: the Weimaraner sits right of centre, so the tall crop follows it (Corey, Nov 10). */
@media (max-width: 767px) {
  .slide-leather .film-hero > img { object-position: 66% center; }
}

/* Portrait product photos on phones, per category (Corey, Nov 10). Starting with Play; add a category here
   to try it elsewhere. Desktop keeps 3:2. */
@media (max-width: 767px) {
  /* Tried 4:5 for Play, Leather and Wear; it cropped the 3:2 renders too much, so every category is back to 3:2
     (Corey, Nov 10). To try portrait again for photos shot portrait, add a rule here, e.g.
     .product[data-category="wear"] .gallery-item { aspect-ratio: 4 / 5; } */
}

/* Category cards with color buttons and a phone swipe strip (Corey, Nov 10). The photo and the name are links;
   the dots are buttons that switch the card to that color. */
.category-card a.card-media, .category-card a.card-title { color: inherit; text-decoration: none; }
.card-strip { display: flex; width: 100%; height: 100%; overflow: hidden; }
.card-strip img { flex: 0 0 100%; min-width: 0; }
.card-dashes { display: none; }
.category-card .dot {
  position: relative;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--swatch);
  cursor: pointer;
}
.category-card .dot::after { content: ""; position: absolute; inset: -9px; } /* a 32px tap area around the 14px dot */
.category-card .dot[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--ink-muted); }
.category-card .dot:disabled { cursor: default; }
@media (max-width: 767px) {
  .card-strip { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .card-strip::-webkit-scrollbar { display: none; }
  .card-strip img { scroll-snap-align: start; }
  .card-media .card-hover, .card-media .card-cycle { display: none; }
  .card-dashes { position: absolute; left: 0; right: 0; bottom: var(--space-3); display: flex; justify-content: center; gap: 5px; pointer-events: none; }
  .card-dashes span { width: 18px; height: 2px; background: var(--bone); opacity: 0.45; box-shadow: 0 0 2px rgba(28, 27, 25, 0.35); }
  .card-dashes span.is-on { opacity: 1; }
  /* Portrait cards on phones for every category but Furniture, which stays landscape. */
  .category-grid:not(.cat-furniture) .category-card .card-media { aspect-ratio: 4 / 5 !important; }
}

/* Pull the menu's top row in by the page's scrollbar width, so its wordmark lines up with the header's. */
.menu-top { margin-right: var(--scrollbar, 0px); }

/* ==========================================================================
   Dahli Studio layer (Nov 17). Same engine as Dahli & Co., less fashion house:
   a sturdy sans for headings, plain-case labels, small rounded corners, solid
   buttons, cards on a white ground, and the shop categories always in view.
   ========================================================================== */
:root { --radius: 6px; --seam: 16px; --gutter: clamp(16px, 4vw, 56px); --section: clamp(64px, 8vw, 112px); }
body { font: 400 16px/26px var(--font-sans); }
h1, h2, .hero-title, .menu-primary a { letter-spacing: -0.015em; }
h3 { font-family: var(--font-display); font-weight: 600; }
.label { font: 500 13px/18px var(--font-sans); letter-spacing: 0.06em; text-transform: uppercase; }
.caption, .placeholder-title { font-style: normal; }
.product-name { font: 600 19px/26px var(--font-display); }
.text-link { font-weight: 500; text-underline-offset: 5px; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--space-6);
  background: var(--ink); color: var(--surface);
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  font: 500 15px/20px var(--font-sans); text-decoration: none;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.button:hover { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.button-light { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.button-light:hover { background: var(--tan); border-color: var(--tan); color: var(--ink); }
.button-outline { background: transparent; color: var(--ink); }
.buy-button, .signup button, .film-control { border-radius: var(--radius); }
.buy-button.label, .signup button { font: 500 15px/20px var(--font-sans); letter-spacing: 0; text-transform: none; }
.signup input { border: 1.5px solid var(--control-border); border-radius: var(--radius); padding: 0 var(--space-4); background: var(--card); }
input, select, textarea { border-radius: var(--radius); }

/* Promo bar and header */
.promo-bar { padding: 8px var(--gutter); background: var(--olive); color: var(--bone); font-size: 13px; line-height: 18px; text-align: center; }
.site-header { grid-template-columns: 1fr auto 1fr; gap: var(--space-8); background: var(--card); border-bottom: 1px solid var(--hairline); }
/* Wordmark centred, categories on the left, Search and Bag on the right (Corey, Nov 17).
   The two side columns are equal, so the wordmark sits in the true centre of the page. */
.site-header .wordmark { grid-column: 2; grid-row: 1; justify-self: center; }
.site-header .header-nav { grid-column: 1; grid-row: 1; justify-content: flex-start; }
.site-header .header-actions { grid-column: 3; grid-row: 1; }
.wordmark { text-decoration: none; color: var(--ink); }
.wordmark:hover { color: var(--ink); }
.wordmark-stack, .footer-wordmark { --font-wordmark: "Josefin Sans", "DM Sans", sans-serif; }
/* Stacked wordmark (Corey, Nov 17): DAHLI large, STUDIO small between two thin rules, in Josefin Sans capitals.
   Everything is sized in em, so changing font-size scales the whole lockup. Letter-spacing adds space after the
   last letter; the negative margins take it back so each line is truly centred. */
.wordmark-stack { display: flex; flex-direction: column; align-items: stretch; min-width: max-content; font: 700 32px/1 var(--font-wordmark); text-transform: uppercase; text-align: center; }
.wordmark-stack .wm-top { letter-spacing: 0.2em; margin-right: -0.2em; padding-top: 0.12em; }
.wordmark-stack .wm-bot { display: flex; align-items: center; gap: 0.3em; margin-top: 0.22em; }
.wordmark-stack .wm-bot i { flex: 1; height: max(1px, 0.04em); background: currentColor; }
.wordmark-stack .wm-bot span { font-weight: 600; font-size: 0.3em; letter-spacing: 0.42em; margin-right: -0.42em; padding-top: 0.15em; }
.header-nav { display: flex; justify-content: center; gap: var(--space-8); }
.header-nav a { padding: var(--space-3) 0; font-weight: 500; font-size: 15px; text-decoration: none; }
.header-actions { gap: var(--space-6); font-size: 15px; font-weight: 500; }
.menu-toggle { display: none; }
/* Search is a word on larger screens and a magnifier icon on phones, to make room for the wordmark (Corey, Nov 17). */
.search-link { display: inline-flex; align-items: center; }
.search-icon { display: none; }
.menu-wordmark { justify-self: center; }
/* Between the phone layout and wide screens, step the wordmark down so the categories keep their room. */
@media (max-width: 1100px) {
  .header-nav { gap: var(--space-6); }
  .wordmark-stack { font-size: 28px; }
}
@media (max-width: 900px) {
  .menu-toggle { display: flex; grid-column: 1; grid-row: 1; }
  .header-nav { display: none; }
  .wordmark { justify-self: center; }
  .wordmark-stack { font-size: 26px; }
}
@media (max-width: 480px) {
  .site-header { gap: 12px; }
  .header-actions { gap: 16px; }
  .search-icon { display: block; }
  .search-text { display: none; }
  .wordmark-stack { font-size: 22px; }
}

/* Hero */
/* Hero fills the screen to the bottom edge (Corey, Nov 19). --hero-top is the promo bar plus header, measured
   in site.js; 110px is the fallback before it runs. */
.studio-hero .film-hero { height: calc(100vh - var(--hero-top, 110px)); height: calc(100svh - var(--hero-top, 110px)); min-height: 480px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.hero-text .button-light { color: var(--ink); }

/* Promise strip */
.promise { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); padding: var(--space-12) var(--gutter); background: var(--card); border-bottom: 1px solid var(--hairline); }
.promise h3 { margin: 0 0 var(--space-1); font-size: 18px; line-height: 24px; }
.promise p { color: var(--ink-muted); font-size: 15px; line-height: 23px; }
@media (max-width: 900px) { .promise { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Shop by category */
.shop-categories, .featured { padding: var(--section) 0 0; }
.shop-categories .section-head, .featured .section-head { margin-bottom: var(--space-8); }
/* Tighter gap under the promise strip (Corey, Nov 20): was 64px. */
.promise + .shop-categories { padding-top: var(--space-8); }
/* Category tiles: 2 x 2 in landscape 3:2 (Corey, Nov 17); one per row on phones. */
.category-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--seam); padding: 0 var(--gutter); }
.category-tiles .tile { aspect-ratio: 3 / 2; border-radius: var(--radius); }
.tile-name { font: 600 30px/34px var(--font-display); }
.tile-line { font-size: 16px; line-height: 24px; opacity: 0.9; }
.tile-text { left: var(--space-8); right: var(--space-8); bottom: var(--space-8); }
@media (max-width: 900px) {
  .tile-name { font-size: 24px; line-height: 28px; }
  .tile-line { font-size: 15px; line-height: 22px; }
  .tile-text { left: var(--space-6); right: var(--space-6); bottom: var(--space-6); }
}
@media (max-width: 600px) { .category-tiles { grid-template-columns: minmax(0, 1fr); } }

/* Featured products and category grids: cards on a white ground */
.featured-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--seam); padding: 0 var(--gutter); }
.featured-grid .category-card:only-child { grid-column: span 2; }
@media (max-width: 900px) { .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .featured-grid { grid-template-columns: minmax(0, 1fr); } .featured-grid .category-card:only-child { grid-column: auto; } }
.category-grid { gap: var(--seam); padding: var(--seam) var(--gutter) 0; }
.category-card { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; }
.category-card .card-media { background: var(--linen); }
.category-card .card-text { padding: var(--space-4) var(--space-4) var(--space-6); }

/* Story, retailer band and newsletter */
#story { margin-top: var(--section); }
.split-dark { background: var(--surface-inverse); }
.retail-band { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-8); margin: var(--section) var(--gutter); padding: var(--space-12); background: var(--tan); border-radius: var(--radius); }
.retail-band > div { display: flex; flex-direction: column; gap: var(--space-3); max-width: 640px; }
.retail-band .eyebrow { color: var(--ink); }
.correspondence { background: var(--linen); }

/* Simple page intro (Where to buy) */
.page-intro { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); max-width: 880px; padding: var(--section) var(--gutter); }

/* Footer */
.footer-brand { align-items: center; margin-left: 0; }
/* Footer seal (Corey, Nov 17): DAHLI STUDIO on the top arc, EST. 2026 on the bottom, a serif D in the centre. */
.footer-seal { width: 120px; height: 120px; color: var(--on-inverse); }
/* Both arc lines are the same size, with their capitals centred on one ring (r = 73.5) halfway between the two circles. */
.footer-seal .seal-top, .footer-seal .seal-bottom { font: 700 18px "Josefin Sans", sans-serif; text-transform: uppercase; }
.footer-seal .seal-d { font: 500 54px "Fraunces", Georgia, serif; }
.footer-line { font-size: 15px; text-align: center; }
.footer-columns .label { color: var(--tan); }

/* Corners on photos and panels */
.category-hero, .split-media img { border-radius: 0; }
.placeholder { border-radius: inherit; }

/* Refinements (Nov 17) */
.studio-hero .film-hero > img { object-position: center 38%; }
/* Hero video (Corey, Nov 19): fills the band from the top, so faces near the top of the frame stay in view.
   The scroll drift still works; the gap it opens at the top is always scrolled out of sight. */
.studio-hero .film-hero > video { top: 0; height: 100%; object-fit: cover; object-position: center 15%; }
.promise { padding: var(--space-12) var(--gutter) var(--space-14); }
.promise > div { display: flex; flex-direction: column; gap: var(--space-1); }
.promise-icon { width: 32px; height: 32px; margin-bottom: var(--space-2); color: var(--olive); }
.category-hero { height: min(46vh, 460px); min-height: 300px; }
.category-hero > img { object-position: center 45%; }
.category-hero h1 { font-size: clamp(34px, 4.2vw, 60px); }
.featured-grid { align-items: stretch; }
.collection-panel {
  grid-column: span 2;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: var(--space-3);
  min-height: 360px; padding: var(--space-10, 40px);
  background: var(--olive); color: var(--bone); border-radius: var(--radius);
}
.collection-panel .label { color: var(--tan); }
.collection-panel h3 { margin: 0; font: 700 clamp(40px, 4.4vw, 64px)/1 var(--font-display); letter-spacing: -0.02em; }
.collection-panel p:not(.label) { max-width: 40ch; color: var(--on-inverse-muted); }
.collection-panel .button { margin-top: var(--space-3); }
.collection-panel + .category-card:last-child { grid-column: span 2; }
@media (max-width: 900px) { .collection-panel, .collection-panel + .category-card:last-child { grid-column: 1 / -1; } }
.category-card { transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.category-card:hover { border-color: var(--control-border); box-shadow: 0 6px 24px rgba(35, 36, 31, 0.08); }
.retail-band { margin-bottom: 0; }
.retail-band > div { max-width: 760px; }
.correspondence { margin-top: var(--section); }
.size span { border-radius: var(--radius); }
.spec summary { letter-spacing: 0.06em; }
.product-heading h1 { font-size: clamp(32px, 3.4vw, 48px); }
.trail { color: var(--ink-muted); }

/* Related row (Studio, Nov 17): one or two related pieces keep a three-column card size instead of stretching full width. */
@media (min-width: 768px) {
  .related-grid[style*="--count:1"], .related-grid[style*="--count:2"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Card color dots (Studio, Nov 17): a color with no second photo hides the hover photo; the general img rule
   was overriding [hidden], so the previous color's hover photo stayed up until the cursor left the card. */
.card-media .card-hover[hidden] { display: none; }

/* Set page choices (Corey, Nov 18): collar or harness, sizes, the optional jacket and one shared color. */
.set-panel [hidden] { display: none !important; }
.set-panel .set-was { color: var(--charcoal); opacity: 0.55; font-weight: 400; margin-right: 6px; }
.set-panel .set-was:empty { display: none; }
.set-panel .set-save { margin-top: -6px; }
.set-panel .set-shipping { margin: 4px 0 -4px; }
.set-panel .set-shipping:empty { display: none; }
.set-panel .set-shipping.is-free { color: var(--olive); }
.set-optional { display: flex; align-items: center; gap: 10px; margin: 4px 0 2px; cursor: pointer; font-size: 15px; }
.set-optional input { width: 18px; height: 18px; accent-color: var(--olive); margin: 0; flex: none; }

/* Complete the look (Corey, Nov 18): small thumbnails of the pieces that pair with this one, under Add to bag. */
.look { margin-top: 0; padding-top: 18px; border-top: 1px solid var(--hairline); }
.look > .label { margin: 0 0 12px; }
.look-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.look-item { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; padding: 6px; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--card); transition: border-color 0.2s; }
.look-item:hover, .look-item:focus-visible { border-color: var(--control-border); }
.look-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; flex: none; }
.look-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.look-name { font-size: 14px; line-height: 1.3; }
.look-set { margin: 14px 0 0; }
/* Homepage set banner (Corey, Nov 18). */
/* Arden Set band (Corey, Nov 20): deeper sand #EBE5D8 to separate it from the #F4F1EA page. */
.home-set { background: var(--surface-raised); margin-top: var(--section); }
.home-set .meta { margin-top: calc(-1 * var(--space-3)); }
@media (max-width: 600px) {
  .look-items { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .look-item { flex: 0 0 72%; scroll-snap-align: start; }
}

/* Set page photo under the description (Corey, Nov 18): editorial/<set>-detail.jpg, landscape 4:3. */
.set-detail { margin: var(--space-4) 0 0; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--linen); }
.set-detail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.set-detail .placeholder { width: 100%; height: 100%; }
/* The set photo fills the left column so its bottom lines up with the Add the set button (Corey, Nov 18).
   It grows when the jacket's sizes open. Phones keep the 4:3 shape. */
@media (min-width: 768px) {
  .set-intro { align-items: stretch; }
  .set-detail { flex: 1 1 auto; aspect-ratio: auto; min-height: 240px; }
}
.set-panel .added-note:empty { display: none; }
