:root {
  --paper: #f7f2ea;
  --ink: #2b2020;
  --muted: #665653;
  --wine: #491d24;
  --wine-hover: #632d35;
  --rule: #cfc0b4;
  --linen: #eee3d7;
  --display: "Instrument Serif", "Times New Roman", serif;
  --sans: "Work Sans", system-ui, sans-serif;
  --edge: clamp(1.25rem, 4.3vw, 4.5rem);
  --page: 91rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
}
img { display: block; width: 100%; }
button, input { font: inherit; }
button { color: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button { border: 0; background: none; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: .95; }
em { font-weight: inherit; }
section[id] { scroll-margin-block-start: 2rem; }

.wrap { width: min(calc(100% - 2 * var(--edge)), var(--page)); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  z-index: 10;
  top: 1rem;
  left: 1rem;
  transform: translateY(-170%);
  padding: .65rem 1rem;
  background: var(--paper);
}
.skip:focus { transform: none; }
.kicker {
  font-size: .7rem;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .21em;
  font-weight: 500;
}

.site-header { border-bottom: 1px solid var(--rule); }
.header-inner {
  width: min(calc(100% - 2 * var(--edge)), var(--page));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 76px;
}
.primary-nav { display: flex; align-items: center; gap: clamp(.8rem, 2.7vw, 2.7rem); }
.primary-nav a, .bag-trigger, .footer-top nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .71rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 180ms ease;
}
.primary-nav a:hover, .bag-trigger:hover { color: var(--wine-hover); }
.primary-nav a:hover, .footer-top nav a:hover { text-decoration: underline; text-underline-offset: .33em; }
.wordmark {
  padding: .22rem 0;
  color: var(--wine);
  font: 400 clamp(2.55rem, 4.3vw, 3.7rem)/.95 var(--display);
  letter-spacing: .12em;
  text-indent: .12em;
}
.header-actions { display: flex; justify-content: end; }
.bag-trigger { gap: .45rem; padding: 0; }
.bag-count {
  display: grid;
  place-items: center;
  min-width: 1.35rem;
  min-height: 1.35rem;
  padding-inline: .23rem;
  border: 1px solid var(--rule);
  border-radius: 99px;
  color: var(--wine);
  letter-spacing: 0;
  font-size: .68rem;
  line-height: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 8;
  background: #251419;
  color: var(--paper);
  border-color: #6e4c4d;
}
.site-header :focus-visible,
.hero :focus-visible,
.runway :focus-visible { outline-color: var(--paper); }
.site-header .wordmark, .site-header .bag-count { color: inherit; }
.site-header .bag-count { border-color: #9a797a; }
.site-header .primary-nav a:hover, .site-header .bag-trigger:hover { color: #f0c8b8; }
.header-inner { min-height: 4.55rem; }
section[id] { scroll-margin-block-start: 4.5rem; }

.hero {
  --camera-x: 0px;
  --camera-y: 0px;
  --camera-scroll: 0px;
  position: relative;
  isolation: isolate;
  min-height: clamp(38rem, calc(100svh - 4.55rem), 64rem);
  overflow: clip;
  background: #2c161c;
  color: var(--paper);
}
.hero-image, .hero-shade { position: absolute; inset: 0; z-index: -1; }
.hero-image {
  inset: -3% -4% -14%;
  background-image: url("./assets/runway-1.webp"), url("./assets/hero.webp");
  background-size: cover;
  background-position: center 35%, center 25%;
  transform: translate3d(var(--camera-x), calc(var(--camera-y) + var(--camera-scroll)), 0);
}
.hero-image::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, rgb(54 18 29 / .38), transparent 78%);
  animation: lighting-in 3s ease-out both;
}
@keyframes lighting-in { from { opacity: 1; } to { opacity: .22; } }
.hero-shade {
  background:
    linear-gradient(0deg, #261318 0%, transparent 32%),
    linear-gradient(91deg, rgb(34 16 23 / .94) 0%, rgb(42 19 25 / .76) 28%, rgb(34 16 23 / .2) 67%, transparent 88%);
}
.hero-content {
  min-height: inherit;
  display: grid;
  align-items: center;
  padding-block: clamp(4.6rem, 12svh, 10rem) clamp(6rem, 15svh, 11rem);
}
.hero-copy { width: min(100%, 42rem); }
.hero-copy .kicker { margin-bottom: clamp(1rem, 3.8svh, 2.35rem); color: #f5dbcf; }
.hero h1 {
  font-size: clamp(5.75rem, 13.3vw, 15rem);
  line-height: .73;
  letter-spacing: -.051em;
  text-shadow: 0 .04em .36em rgb(26 12 17 / .22);
}
.hero h1 > span { display: block; overflow: clip; padding: .07em .12em .09em 0; }
.hero h1 > span > * { display: block; animation: title-in .98s cubic-bezier(.18,.78,.24,1) both; }
.hero h1 > span:nth-child(2) > * { animation-delay: .16s; }
@keyframes title-in {
  from { opacity: 0; transform: translateY(108%); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-description {
  max-width: 28rem;
  margin-top: clamp(1rem, 3.4svh, 2rem);
  color: #f4e4db;
  font-size: clamp(.92rem, 1.35vw, 1.12rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.6rem;
  align-items: center;
  margin-top: 1.45rem;
}
.hero-description, .hero-actions, .hero-copy .kicker, .hero-caption {
  animation: fade-up .8s .27s cubic-bezier(.18,.78,.24,1) both;
}
.hero-actions { animation-delay: .4s; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(1.25rem); }
  to { opacity: 1; transform: translateY(0); }
}
.hero .button { color: #2b171d; background: var(--paper); border-color: var(--paper); }
.hero .button:hover { color: var(--paper); background: #2b171d; }
.hero .button:hover svg { transform: translateY(3px); }
.hero-shop {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-transform: uppercase;
  font-size: .71rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-decoration: underline;
  text-underline-offset: .38em;
}
.hero-shop:hover { color: #f0c8b8; }
.hero-caption {
  position: absolute;
  right: var(--edge);
  bottom: 2.05rem;
  display: grid;
  grid-template-columns: auto auto;
  gap: .3rem .8rem;
  color: #f3ded3;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .095em;
  text-transform: uppercase;
}
.hero-caption-rule { width: 2.2rem; height: 1px; align-self: center; background: currentColor; }
.hero-caption span:last-child { grid-column: 2; color: #dbc3b9; }

.button {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.1rem;
  min-height: 3.4rem;
  padding: .75rem 1.13rem;
  background: var(--wine);
  color: var(--paper);
  border: 1px solid var(--wine);
  font-size: .72rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: .11em;
  text-transform: uppercase;
  transition: background 180ms ease, border-color 180ms ease;
}
.button:hover { background: var(--wine-hover); border-color: var(--wine-hover); }
.button svg { flex: 0 0 auto; transition: transform 180ms ease; }
.button:hover svg { transform: translateX(3px); }
.collection {
  border-top: 1px solid var(--rule);
  padding-block: clamp(2.3rem, 5.6vw, 5.3rem) clamp(4rem, 8.5vw, 8rem);
}
.collection-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: .9rem 1.4rem;
  margin-bottom: clamp(1.55rem, 3.65vw, 3.55rem);
}
.collection-header .kicker { color: var(--muted); margin-bottom: 1rem; }
.collection-header h2, .atelier h2 {
  color: var(--wine);
  font-size: clamp(3.5rem, 6.65vw, 7.2rem);
  letter-spacing: -.045em;
}
.filters {
  display: flex;
  align-items: center;
  gap: clamp(.55rem, 1.55vw, 1.5rem);
  flex-wrap: wrap;
}
.filters button {
  padding: .2rem 0 0;
  min-height: 44px;
  color: var(--muted);
  font-size: .69rem;
  font-weight: 500;
  letter-spacing: .075em;
  line-height: 1.2;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, color 180ms ease;
}
.filters button:hover, .filters button[aria-pressed="true"] { color: var(--wine); border-bottom-color: var(--wine); }
.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .9fr) minmax(0, .95fr);
  gap: clamp(1rem, 3vw, 2.9rem);
  align-items: start;
}
.product-grid:not([data-filtered]) .product-card:nth-child(2) { margin-top: clamp(1.45rem, 5vw, 4.7rem); }
.product-grid:not([data-filtered]) .product-card:nth-child(3) { margin-top: clamp(.6rem, 2.2vw, 2rem); }
.product-grid[data-filtered] { grid-template-columns: minmax(0, min(100%, 29rem)); }
.product-link { display: block; width: 100%; padding: 0; text-align: left; }
.product-image {
  position: relative;
  display: block;
  aspect-ratio: .75;
  overflow: hidden;
  background-color: var(--tone, #ab9080);
}
.product-image img { height: 100%; object-fit: cover; object-position: center; transition: transform 400ms ease; }
.product-link:hover .product-image img, .product-link:focus-visible .product-image img { transform: scale(1.055); }
.product-action {
  position: absolute;
  right: .55rem;
  bottom: .55rem;
  padding: .5rem .7rem;
  background: var(--paper);
  color: var(--wine);
  font-size: .7rem;
  font-weight: 500;
  opacity: 0;
  transform: translateY(.4rem);
  transition: opacity .25s, transform .25s;
}
.product-link:hover .product-action, .product-link:focus-visible .product-action { opacity: 1; transform: none; }
.product-caption {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  align-items: baseline;
  padding-block: .8rem;
  border-bottom: 1px solid var(--rule);
}
.product-name {
  display: block;
  font: 400 clamp(1.65rem, 2.55vw, 2.6rem)/1.1 var(--display);
  color: var(--wine);
}
.product-color {
  display: block;
  margin-top: .24rem;
  font-size: .73rem;
  color: var(--muted);
}
.product-price { font-size: .76rem; font-variant-numeric: tabular-nums; }

.runway {
  padding-block: clamp(3.4rem, 5.2vw, 6rem) clamp(2.7rem, 6.8vw, 6.75rem);
  background:
    radial-gradient(ellipse at 48% 45%, #583039 0%, #301922 51%, transparent 75%),
    #261318;
  color: var(--paper);
}
.runway-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: .9rem 2.2rem;
}
.runway-head h2 {
  font-size: clamp(4.15rem, 8vw, 8.5rem);
  letter-spacing: -.042em;
}
.runway-head p { max-width: 18rem; padding-bottom: .3rem; color: #efdad1; }
@media (min-width: 701px) {
  .runway { padding-block-start: clamp(2rem, 4.6svh, 3.6rem); }
  .runway-head h2 { font-size: clamp(3.5rem, 8.7svh, 7.25rem); }
}
.runway-stage {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --slide: 0px;
  --stage-height: clamp(22rem, min(49vw, 58svh), 44rem);
  position: relative;
  height: var(--stage-height);
  margin-block: .75rem .5rem;
  perspective: clamp(460px, 85vw, 1120px);
  perspective-origin: 50% 44%;
  touch-action: pan-y;
  overflow: clip;
  cursor: grab;
}
.runway-stage:focus-visible { outline-offset: -5px; }
.runway-stage[data-dragging] { cursor: grabbing; }
.runway-world {
  position: absolute;
  inset: 0;
  transform: translateX(var(--slide)) rotateX(var(--tilt-y)) rotateY(var(--tilt-x));
  transform-style: preserve-3d;
  transition: transform .48s cubic-bezier(.17,.68,.25,1);
}
.runway-stage[data-dragging] .runway-world { transition-duration: .06s; }
.runway-stage[data-intro] .runway-world { animation: runway-in 1.45s cubic-bezier(.19,.68,.21,1); }
@keyframes runway-in {
  from { transform: translateZ(-155px) rotateY(-13deg); }
  to { transform: translateZ(0) rotateY(0deg); }
}
.runway-floor {
  position: absolute;
  top: 69%;
  left: -20%;
  width: 140%;
  height: 52%;
  transform: translateZ(-190px) rotateX(70deg);
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(12.5% - 1px), #bb87882d calc(12.5% - 1px) 12.5%),
    repeating-linear-gradient(0deg, transparent 0 38px, #bb878840 39px 40px),
    radial-gradient(ellipse at center, #a97a614d, transparent 74%);
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 69%);
}
.runway-frame {
  --offset: clamp(10rem, 23.7vw, 25rem);
  --runway-x: 0px;
  --runway-depth: 60px;
  --runway-angle: 0deg;
  position: absolute;
  inset: 47.5% auto auto 50%;
  width: calc(var(--stage-height) * .66);
  height: 83%;
  border: 1px solid #edc8ae7d;
  background: #815748;
  box-shadow: 0 1.6rem 3.3rem #140a10a8;
  transform: translate3d(calc(-50% + var(--runway-x)), -50%, var(--runway-depth)) rotateY(var(--runway-angle));
  transition: transform 1.08s cubic-bezier(.18,.72,.21,1), opacity .68s ease;
  user-select: none;
}
.runway-frame::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(165deg, transparent 60%, #21101b40);
  pointer-events: none;
}
.runway-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  pointer-events: none;
  transition: filter .85s ease;
}
.runway-frame[data-position="left"] {
  --runway-x: calc(-1 * var(--offset));
  --runway-depth: -235px;
  --runway-angle: 27deg;
}
.runway-frame[data-position="right"] {
  --runway-x: var(--offset);
  --runway-depth: -235px;
  --runway-angle: -27deg;
}
.runway-frame:not([data-position="front"]) img { filter: brightness(.66) saturate(.77); }
.runway-console {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 3rem);
  padding-block: 1.15rem;
  border-block: 1px solid #8c666a;
}
.runway-controls { display: inline-flex; align-items: center; gap: .5rem; }
.runway-control {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #a98283;
  transition: color .2s, background .2s, border-color .2s;
}
.runway-control:hover { color: #381d26; background: var(--paper); border-color: var(--paper); }
.runway-count {
  min-width: 3.8rem;
  text-align: center;
  font-size: .68rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .07em;
}
.runway-look { display: flex; flex-wrap: wrap; justify-content: center; align-items: end; gap: .45rem 1.65rem; }
.runway-look .kicker { margin-bottom: .3rem; color: #e9c9bf; }
.runway-look h3 { font-size: clamp(1.95rem, 3.15vw, 3.3rem); }
.runway-look .text-link { border-bottom-color: #c29a9c; color: var(--paper); }
.runway-play {
  min-height: 44px;
  padding: .2rem 0;
  color: var(--paper);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.play-icon { display: inline-grid; width: 1.2rem; place-items: center; }
.play-icon::before { content: "▷"; }
.runway-play[data-playing] .play-icon::before { content: "Ⅱ"; }
.runway-play:hover { color: #f0c8b8; }
.runway-instructions { margin-top: .75rem; color: #e2c8c3; font-size: .76rem; }

.atelier { padding-block: clamp(3.8rem, 9vw, 9rem); background: var(--linen); }
.atelier-inner {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 8vw, 9rem);
}
.atelier-copy .kicker { margin-bottom: 1.15rem; color: var(--wine); }
.atelier-copy > p:not(.kicker) { max-width: 28rem; margin-top: 1.35rem; color: var(--muted); }
.atelier-details { margin-top: 2.1rem; border-bottom: 1px solid #b49c90; }
.atelier-details details { border-top: 1px solid #b49c90; }
.atelier-details summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .9rem;
  min-height: 54px;
  padding-block: .55rem;
  list-style: none;
  color: var(--muted);
  font-size: .74rem;
}
.atelier-details summary::-webkit-details-marker { display: none; }
.atelier-details summary::after { content: "+"; font-size: 1.05rem; }
.atelier-details details[open] summary::after { content: "−"; }
.atelier-details summary span { color: var(--wine); font: 400 1.95rem/.95 var(--display); }
.atelier-details details > p { max-width: 25rem; padding: 0 1.6rem .8rem; font-size: .89rem; color: var(--muted); }
.atelier-photos { overflow: hidden; aspect-ratio: .9; background: #8f6c56; }
.atelier-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  animation: cloth-in .66s cubic-bezier(.18,.72,.21,1) both;
}
@keyframes cloth-in { from { opacity: .2; transform: scale(1.07); } to { opacity: 1; transform: scale(1); } }
.atelier-figure figcaption {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding-top: .75rem;
  color: var(--muted);
  font-size: .69rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.atelier-figure figcaption::before { content: ""; width: 1.65rem; height: 1px; background: currentColor; }

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(2.15rem);
  transition: opacity .75s cubic-bezier(.19,.67,.27,1), transform .75s cubic-bezier(.19,.67,.27,1);
}
.motion-ready [data-reveal].in-view, .motion-ready [data-reveal]:focus-within { opacity: 1; transform: none; }
.motion-ready .product-card:nth-child(2) { transition-delay: .1s; }
.motion-ready .product-card:nth-child(3) { transition-delay: .18s; }

.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 44px;
  padding: 0;
  border-bottom: 1px solid currentColor;
  color: var(--wine);
  text-transform: uppercase;
  font-size: .71rem;
  font-weight: 500;
  letter-spacing: .095em;
}
.text-link svg { transition: transform 180ms ease; }
.text-link:hover svg { transform: translateX(3px); }

.site-footer { background: var(--wine); color: var(--paper); }
.site-footer :focus-visible { outline-color: var(--paper); }
.footer-inner { padding-block: clamp(2.1rem, 5.25vw, 5rem) 1.45rem; }
.footer-top, .footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.footer-note { max-width: 22rem; font: 400 clamp(1.65rem, 2.65vw, 2.75rem)/1 var(--display); }
.footer-top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 clamp(.8rem, 2.15vw, 2rem); }
.footer-top nav a { gap: .35rem; }
.footer-mark {
  width: fit-content;
  margin: clamp(1.25rem, 3vw, 2.7rem) auto clamp(.9rem, 2vw, 1.65rem);
  font: 400 clamp(5.65rem, 19.2vw, 18.5rem)/.84 var(--display);
  letter-spacing: .18em;
  text-indent: .18em;
}
.footer-bottom {
  padding-top: 1rem;
  border-top: 1px solid #996c72;
  font-size: .63rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

dialog {
  max-width: calc(100% - 2rem);
  max-height: calc(100dvh - 2rem);
  border: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  overscroll-behavior: contain;
}
dialog::backdrop { background: rgb(37 19 21 / .58); }
dialog[open] { animation: sheet-in 230ms ease-out both; }
@keyframes sheet-in {
  from { opacity: .1; transform: translateY(.45rem); }
  to { opacity: 1; transform: none; }
}
.product-dialog { width: 56rem; }
.product-sheet { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); }
.sheet-image { min-height: 100%; aspect-ratio: .71; }
.sheet-image img { position: absolute; inset: 0; object-position: center 32%; }
.sheet-copy { position: relative; min-width: 0; padding: 3.2rem clamp(1.25rem, 4vw, 3rem) 2rem; }
.icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  color: var(--wine);
  transition: background 180ms ease;
}
.icon-button:hover { background: var(--linen); }
.close-button { position: absolute; z-index: 1; top: .5rem; right: .65rem; background: var(--paper); }
.sheet-copy .kicker { color: var(--muted); }
.sheet-copy h2 { margin-top: .6rem; color: var(--wine); font-size: clamp(2.75rem, 5.4vw, 4.6rem); letter-spacing: -.035em; }
.sheet-price { margin-top: .7rem; font-size: .86rem; }
#product-description { margin-top: .85rem; color: var(--muted); font-size: .9rem; }
.product-details { margin: 1.1rem 0 0; border-top: 1px solid var(--rule); font-size: .77rem; }
.product-details div { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: .45rem; padding: .5rem 0; border-bottom: 1px solid var(--rule); }
.product-details dt { font-weight: 600; color: var(--wine); }
.product-details dd { margin: 0; color: var(--muted); }
.size-field { border: 0; padding: 0; margin: 1.25rem 0 0; }
.size-field legend { padding: 0; font-size: .77rem; font-weight: 600; }
.size-options { display: flex; gap: .35rem; margin-top: .45rem; flex-wrap: wrap; }
.size-option { position: relative; display: grid; place-items: center; min-width: 44px; height: 44px; }
.size-option input { appearance: none; position: absolute; inset: 0; margin: 0; border: 1px solid var(--rule); cursor: pointer; }
.size-option span { position: relative; pointer-events: none; font-size: .74rem; }
.size-option input:checked { background: var(--wine); border-color: var(--wine); }
.size-option input:checked + span { color: var(--paper); }
.size-option input:not(:checked):hover { border-color: var(--wine); }
.size-guide { margin: .35rem 0 .6rem; font-size: .78rem; color: var(--muted); }
.size-guide summary { display: list-item; width: fit-content; padding-block: .71rem; text-decoration: underline; text-underline-offset: 3px; }
.size-guide table { width: 100%; border-collapse: collapse; margin-top: .55rem; text-align: left; }
.size-guide th, .size-guide td { padding: .25rem .25rem .25rem 0; border-bottom: 1px solid var(--rule); }
.size-guide tbody tr:last-child th, .size-guide tbody tr:last-child td { border-bottom: 0; }
.full-button { width: 100%; }

.bag-dialog {
  inset: 0 0 0 auto;
  width: 30rem;
  height: 100dvh;
  max-height: 100dvh;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
}
.bag-dialog[open] { animation-name: bag-in; }
@keyframes bag-in {
  from { opacity: .35; transform: translateX(1.2rem); }
  to { opacity: 1; transform: none; }
}
.bag-sheet { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.bag-header, .bag-body, .bag-footer { padding-inline: clamp(1rem, 5vw, 1.8rem); }
.bag-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 5rem;
  border-bottom: 1px solid var(--rule);
}
.bag-header h2 { font-size: 2.9rem; color: var(--wine); }
.bag-body { min-height: 0; overflow-y: auto; }
.bag-empty { padding-block: 1.65rem; }
.bag-empty p { margin-bottom: .9rem; color: var(--muted); }
.bag-items { list-style: none; padding: 0; margin: 0; }
.bag-item {
  display: grid;
  grid-template-columns: clamp(4.2rem, 21vw, 6rem) minmax(0, 1fr);
  gap: .9rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
}
.bag-image { align-self: start; }
.bag-item-heading, .bag-item-actions, .subtotal { display: flex; justify-content: space-between; gap: .35rem; }
.bag-item-heading { align-items: baseline; }
.bag-item-heading h3 { font-size: clamp(1.6rem, 4vw, 1.95rem); color: var(--wine); }
.bag-item-price { white-space: nowrap; font-size: .8rem; }
.bag-item-variant { margin-top: .27rem; color: var(--muted); font-size: .75rem; }
.bag-item-actions { margin-top: .55rem; align-items: center; flex-wrap: wrap; }
.quantity {
  display: flex;
  align-items: center;
  border: 1px solid var(--rule);
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}
.quantity button { padding: 0; width: 44px; height: 44px; }
.quantity button:hover { background: var(--linen); }
.quantity button:disabled { opacity: .45; cursor: not-allowed; }
.quantity span { min-width: 1.25rem; text-align: center; }
.remove-item { min-height: 44px; padding: 0; font-size: .73rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.bag-footer {
  padding-block: 1rem max(1rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
}
.subtotal { align-items: baseline; margin-bottom: .75rem; font-size: .9rem; }
.subtotal strong { font-weight: 500; }
.checkout-button[aria-disabled="true"] { background: var(--linen); border-color: var(--rule); color: var(--muted); cursor: default; }
.checkout-status { color: var(--muted); font-size: .82rem; }
#checkout-controls:not([hidden]) + .checkout-status:not(:empty) { margin-top: .65rem; }

@media (max-width: 930px) {
  .hero h1 { font-size: clamp(5.6rem, 14.6vw, 8.65rem); }
  .hero-image { background-position: 62% center, 57% center; }
  .runway-stage { --stage-height: clamp(22rem, min(58vw, 58svh), 35rem); }
  .runway-console { gap: 1rem; }
}
@media (max-width: 700px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 3.4rem auto;
  }
  .wordmark { grid-column: 1; grid-row: 1; justify-self: start; text-indent: 0; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    gap: 1.5rem;
    border-top: 1px solid #6e4c4d;
  }
  section[id] { scroll-margin-block-start: 6.2rem; }
  .hero { min-height: clamp(37rem, calc(100svh - 6.2rem), 50rem); }
  .hero-content { align-items: end; padding-block: 7.75rem 2.35rem; }
  .hero h1 { font-size: clamp(4.5rem, 16vw, 6.8rem); }
  .hero-caption { display: none; }
  .hero-copy .kicker { max-width: 13rem; font-size: .64rem; }
  .hero-description { max-width: 22rem; }
  .hero-shade {
    background:
      linear-gradient(0deg, rgb(38 19 24 / .99), rgb(38 19 24 / .82) 35%, rgb(38 19 24 / .36) 68%, transparent 92%),
      linear-gradient(90deg, rgb(38 19 24 / .49), transparent 80%);
  }
  .hero-image { background-position: 90% 36%, 62% 31%; }
  .runway-head { display: block; }
  .runway-head p { margin-top: .8rem; padding-bottom: 0; font-size: .88rem; }
  .runway-stage { --stage-height: clamp(19rem, 82vw, 33rem); }
  .runway-frame { --offset: clamp(6.2rem, 30vw, 11rem); width: clamp(10.5rem, 45vw, 17rem); }
  .runway-frame[data-position="left"], .runway-frame[data-position="right"] { --runway-depth: -150px; }
  .runway-console { grid-template-columns: 1fr auto; gap: .8rem .45rem; }
  .runway-look { grid-row: 1; grid-column: 1 / -1; justify-content: space-between; gap: .4rem; }
  .runway-look .text-link { white-space: nowrap; }
  .runway-control { width: 44px; height: 44px; }
  .collection-header { align-items: start; flex-direction: column; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-grid:not([data-filtered]) .product-card:first-child { grid-column: 1 / -1; }
  .product-grid:not([data-filtered]) .product-card:first-child .product-image { aspect-ratio: .89; }
  .product-grid:not([data-filtered]) .product-card:nth-child(n) { margin-top: 0; }
  .product-caption { flex-wrap: wrap; }
  .atelier-inner { grid-template-columns: minmax(0, 1fr); }
  .atelier-photos { aspect-ratio: .96; }
  .footer-top { align-items: start; flex-direction: column; gap: .65rem; }
}
@media (max-width: 580px) {
  .product-sheet { grid-template-columns: minmax(0, 1fr); }
  .sheet-image { min-height: 0; aspect-ratio: 1; }
  .sheet-copy { padding-top: 1.4rem; }
  .close-button { position: absolute; top: .35rem; right: .45rem; }
}
@media (max-width: 355px) {
  .hero h1 { font-size: 4rem; }
  .footer-mark { font-size: 4.9rem; }
  .footer-bottom { gap: .5rem; font-size: .58rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-image, .runway-world { transform: none; }
  .motion-ready [data-reveal] { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
