:root {
  color-scheme: dark;
  --black: #0a0a0a;
  --graphite: #2e2e2e;
  --gold: #b8975a;
  --white: #fff;
  --text-muted: #bab8b4;
  --panel: #111;
  --image-ground: #0c0c0d;
  --body-font: Inter, system-ui, sans-serif;
  --display-font: Michroma, Inter, system-ui, sans-serif;
  --shell: min(100% - 6.5rem, 87rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--white); font: 1rem/1.6 var(--body-font); }
body:has(dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
button:disabled { cursor: default; opacity: .48; }
[hidden] { display: none !important; }
::selection { background: var(--gold); color: var(--black); }

.shell { width: var(--shell); margin-inline: auto; }
.visually-hidden, .icon-library {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link { position: fixed; z-index: 10; top: .5rem; left: .5rem; padding: .8rem 1rem; background: var(--gold); color: var(--black); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 1; border-bottom: 1px solid #b8975a38; background: var(--black); }
.delivery-announcement { margin: 0; padding: .42rem 1rem; background: #17140f; color: #e2c28a; border-bottom: 1px solid #b8975a38; text-align: center; font-size: .875rem; font-weight: 600; line-height: 1.35; }
.delivery-announcement span { padding-inline: .22rem; }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 5rem;
  gap: 1.5rem;
}
.brand-link { display: block; justify-self: start; width: clamp(8rem, 14vw, 12rem); }
.brand-link img { width: 100%; height: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); }
.site-nav a { font-size: .875rem; font-weight: 600; color: #dedbd6; }
.site-nav a:hover { color: var(--gold); }
.bag-trigger {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: .55rem;
  min-height: 2.75rem;
  padding: .25rem 0 .25rem .4rem;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}
.bag-trigger:hover { color: var(--gold); }
.icon { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.bag-count {
  display: grid;
  place-items: center;
  min-width: 1.45rem;
  height: 1.45rem;
  padding-inline: .2rem;
  border: 1px solid #b8975a70;
  border-radius: 99px;
  color: var(--gold);
  font-size: .75rem;
  line-height: 1;
}

.lookbook { background: var(--black); }
.lookbook-stage { position: relative; max-width: 100rem; margin-inline: auto; isolation: isolate; }
.lookbook-frame {
  --lookbook-bottom-fade: linear-gradient(to top, var(--black) 3%, #0a0a0adc 11%, #0a0a0a6b 25%, transparent 45%);
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--black);
}
#lookbook-player { display: block; width: 100%; height: 100%; object-fit: contain; }
.lookbook-frame::after {
  position: absolute;
  inset: 0 0 -2px;
  background:
    var(--lookbook-bottom-fade),
    linear-gradient(90deg, #0a0a0af4, #0a0a0ab3 29%, #0a0a0a35 60%, transparent 83%);
  content: "";
  pointer-events: none;
}
.hero-inner { position: absolute; z-index: 1; inset: 0; display: grid; align-items: center; padding-block: 2rem; pointer-events: none; }
.hero-copy { width: min(100%, 40rem); }
.hero-copy .button { pointer-events: auto; }
.eyebrow { margin: 0; color: var(--gold); font-size: .8125rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
.hero-kicker { display: flex; align-items: center; gap: .85rem; }
.hero-kicker::before { display: block; width: 2.3rem; height: 1px; background: var(--gold); content: ""; }
h1, h2 { margin: 0; font-family: var(--display-font); font-weight: 400; }
.hero-copy h1 {
  margin: 1.45rem 0 1.35rem;
  font-size: clamp(2.75rem, 5.4vw, 5.7rem);
  line-height: 1.12;
  letter-spacing: -.06em;
}
.hero-copy h1 em { color: var(--gold); font-style: normal; }
.hero-description { max-width: 24rem; margin: 0 0 1.95rem; color: #dedbd6; font-size: 1rem; }
.button {
  display: inline-flex;
  min-height: 3.15rem;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.45rem;
  border: 1px solid transparent;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.45;
  transition: background-color .2s, border-color .2s;
  cursor: pointer;
}
.button-primary { background: var(--gold); color: var(--black); }
.button-primary:hover:not(:disabled) { background: #cba86a; }

.collection { padding-block: clamp(3.7rem, 7.1vw, 7rem); }
.section-heading h2, .brand-inner h2 { font-size: clamp(1.65rem, 3.3vw, 3.15rem); line-height: 1.24; letter-spacing: -.05em; }
.section-heading p, .brand-inner p:last-child { margin: .75rem 0 0; color: var(--text-muted); }
.collection-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
  margin: 1.75rem 0 1.2rem;
}
.filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.filters button {
  min-height: 2.5rem;
  padding: .4rem .8rem;
  border: 1px solid var(--graphite);
  background: transparent;
  color: #d5d3ce;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
}
.filters button:hover { border-color: var(--gold); }
.filters button.is-active { border-color: var(--gold); background: #b8975a17; color: #e3bf7b; }
.product-count { flex: none; margin: 0; color: var(--text-muted); font-size: .875rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.8rem 1rem; }
.product-card { min-width: 0; }
.product-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--graphite);
  background: radial-gradient(ellipse at 50% 42%, #202023 0, #101011 64%, #0a0a0a 100%);
  perspective: 950px;
  cursor: pointer;
  transition: border-color .2s;
}
.product-card-media:hover { border-color: var(--gold); }
.product-card-visual { position: absolute; inset: 0; display: block; transform-style: preserve-3d; transition: transform .58s cubic-bezier(.25,.65,.22,1); }
.product-card-face { position: absolute; inset: 0; display: block; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.product-card-face.is-back { transform: rotateY(180deg); background: radial-gradient(ellipse at 50% 46%, #29292c, #0a0a0a 88%); }
.product-card-image-detail { transform: scale(2.05); transform-origin: 50% 26%; }
.product-card-detail-label { position: absolute; right: .6rem; bottom: .6rem; left: .6rem; display: block; padding: .5rem .2rem; border: 1px solid var(--gold); background: #0a0a0aeb; color: var(--white); font-size: .875rem; font-weight: 600; text-align: center; }
.product-card:has(:focus-visible) .product-card-visual { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) {
  .product-card:hover .product-card-visual { transform: rotateY(180deg); }
}
.product-card-image, .product-detail-image, .cart-item-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mask-mode: alpha;
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}
.product-card-body { padding: .85rem .05rem .15rem; }
.product-card-heading { margin: 0 0 .15rem; font: 600 1rem/1.4 var(--body-font); }
.product-card-name { display: inline; padding: 0; border: 0; background: none; color: var(--white); font: inherit; text-align: left; cursor: pointer; }
.product-card-name:hover { color: var(--gold); }
.product-card-meta { margin: 0; color: var(--text-muted); font-size: .875rem; }

.brand-section { border-block: 1px solid #b8975a3a; background: #101010; }
.brand-inner { display: grid; grid-template-columns: auto 1fr; gap: clamp(1.3rem, 6vw, 6rem); align-items: center; padding-block: clamp(2.5rem, 5.6vw, 5.5rem); }
.brand-inner img { width: clamp(5rem, 13vw, 10rem); height: auto; }
.brand-inner h2 { margin-top: .65rem; }
.contact-section { border-bottom: 1px solid #b8975a3a; background: radial-gradient(ellipse at 74% 75%, #1c1710, var(--black) 70%); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: center; padding-block: clamp(2.75rem, 6vw, 6rem); }
.contact-copy h2 { font-size: clamp(1.65rem, 3.3vw, 3.15rem); line-height: 1.24; letter-spacing: -.05em; }
.contact-copy p { max-width: 29rem; margin: .85rem 0 0; color: var(--text-muted); }
.contact-channels { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.contact-channel { display: flex; min-width: 0; min-height: 3.65rem; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding: .8rem .95rem; border: 1px solid var(--graphite); background: #121212; color: var(--white); }
.contact-channel-primary { border-color: #b8975a9e; background: #18140e; }
.contact-channel-name { font-weight: 700; }
.contact-channel-info { color: var(--text-muted); font-size: .875rem; text-align: right; overflow-wrap: anywhere; }
a.contact-channel:hover { border-color: var(--gold); color: var(--gold); }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.1rem; padding-block: 2.2rem; }
.site-footer .brand-link { width: 8.5rem; }
.site-footer p { margin: 0; color: var(--text-muted); font-size: .875rem; }
.lookbook-credits { color: var(--text-muted); font-size: .875rem; }
.lookbook-credits summary { cursor: pointer; }
.lookbook-credits ul { margin: .55rem 0 0; padding-left: 1.15rem; }
.lookbook-credits a { text-decoration: underline; text-underline-offset: .2em; }

dialog { padding: 0; border: 1px solid var(--graphite); background: var(--panel); color: var(--white); }
dialog::backdrop { background: #000b; }
.icon-button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  padding: 0;
  border: 1px solid var(--graphite);
  background: var(--black);
  color: var(--white);
  cursor: pointer;
}
.icon-button:hover { color: var(--gold); border-color: var(--gold); }
.dialog-close { position: absolute; z-index: 1; top: .9rem; right: .9rem; }
.product-dialog { width: min(54rem, 100% - 2rem); max-height: calc(100dvh - 2rem); }
.product-detail-layout { display: grid; grid-template-columns: minmax(15rem, 1fr) minmax(14rem, 1fr); }
.product-detail-media { display: grid; place-items: center; min-width: 0; background: var(--image-ground); }
.product-detail-image { display: block; width: min(100%, 60vh); height: auto; aspect-ratio: 3 / 4; }
.product-detail-content { align-self: center; min-width: 0; padding: 3.4rem clamp(1.2rem, 4vw, 3rem); }
.product-detail-content h2 { font-size: clamp(1.35rem, 3vw, 2.45rem); line-height: 1.3; letter-spacing: -.045em; }
.product-detail-meta { margin: .65rem 0 0; color: var(--gold); font-size: .875rem; }
.product-detail-description { margin: 1rem 0; color: #e0ded8; }
.product-detail-size { margin: .5rem 0; color: var(--text-muted); font-size: .875rem; }
.product-form { margin-top: 1.45rem; }
.size-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.size-legend { margin-bottom: .55rem; padding: 0; font-size: .9rem; font-weight: 600; }
.size-options { display: flex; flex-wrap: wrap; gap: .45rem; }
.size-option { position: relative; display: inline-grid; }
.size-option-input { position: absolute; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.size-option-label { display: grid; min-width: 2.75rem; min-height: 2.75rem; place-items: center; padding: .25rem .55rem; border: 1px solid var(--graphite); color: var(--white); font-size: .9rem; }
.size-option-input:hover + .size-option-label { border-color: var(--gold); }
.size-option-input:checked + .size-option-label { border-color: var(--gold); background: var(--gold); color: var(--black); font-weight: 700; }
.size-option-input:focus-visible + .size-option-label { outline: 2px solid var(--gold); outline-offset: 3px; }
.product-add { width: 100%; margin-top: .9rem; }
.cart-dialog { inset: 0 0 0 auto; width: min(100%, 28rem); height: 100%; max-width: none; max-height: none; margin: 0; border-width: 0 0 0 1px; }
.cart-layout { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.cart-heading, .cart-content, .cart-summary { padding: 1.15rem 1.45rem; }
.cart-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--graphite); }
.cart-heading h2 { font-size: 1.35rem; }
.cart-content { overflow-y: auto; }
.cart-content > p { margin: 0; color: var(--text-muted); }
.cart-summary { border-top: 1px solid var(--graphite); padding-bottom: max(1.15rem, env(safe-area-inset-bottom)); }
.cart-totals { display: flex; gap: 1rem; justify-content: space-between; align-items: center; margin-bottom: .85rem; }
.cart-totals strong { color: var(--gold); }
.cart-summary .button { width: 100%; }
.cart-feedback { margin: .65rem 0 0; color: var(--text-muted); font-size: .875rem; }
.cart-item { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: .75rem; padding-block: .8rem; border-bottom: 1px solid var(--graphite); }
.cart-item:first-child { padding-top: 0; }
.cart-item-image { aspect-ratio: 3 / 4; background: var(--image-ground); }
.cart-item-title { margin: 0; font-size: 1rem; }
.cart-item-meta, .cart-item-price { margin: .2rem 0 .45rem; color: var(--text-muted); font-size: .875rem; }
.cart-item-size-value { margin: -.15rem 0 .4rem; color: var(--gold); font-size: .875rem; }
.cart-item-size { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: .35rem 0 .55rem; }
.cart-item-size-label { flex-basis: 100%; color: var(--text-muted); font-size: .875rem; }
.cart-item-size-select, .cart-item-size-apply { min-height: 2rem; padding: .15rem .4rem; border: 1px solid var(--graphite); background: var(--black); color: var(--white); font: .875rem var(--body-font); }
.cart-item-size-apply { cursor: pointer; }
.cart-item-size-apply:hover { border-color: var(--gold); }
.cart-item-size-select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.cart-item-quantity { display: flex; align-items: center; gap: .5rem; }
.cart-item-quantity-button { width: 2rem; min-height: 2rem; border: 1px solid var(--graphite); background: var(--black); color: var(--white); cursor: pointer; }
.cart-item-remove { padding: .3rem; border: 0; background: transparent; color: var(--text-muted); font-size: .875rem; text-decoration: underline; cursor: pointer; }
.cart-item-quantity-button:hover, .cart-item-remove:hover { color: var(--gold); }

@media (max-width: 61rem) {
  :root { --shell: min(100% - 3.5rem, 87rem); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 43rem) {
  :root { --shell: calc(100% - 2rem); }
  .header-inner { grid-template-columns: 1fr auto; min-height: 4rem; gap: .3rem 1rem; padding-top: .35rem; }
  .header-inner .brand-link { width: 8.6rem; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: clamp(1rem, 6vw, 2rem); border-top: 1px solid #272523; }
  .site-nav a { display: grid; min-height: 2.45rem; align-items: center; }
  .bag-trigger { grid-column: 2; grid-row: 1; }
  .lookbook-frame::after { background: var(--lookbook-bottom-fade); }
  .hero-inner { position: static; padding-block: 1.55rem 1.9rem; }
  .hero-copy h1 { font-size: clamp(2.25rem, 9.5vw, 3.5rem); margin-block: .85rem; }
  .hero-description { margin-bottom: 1.3rem; }
  .collection { padding-block: 3rem; }
  .contact-inner { grid-template-columns: 1fr; }
  .collection-controls { flex-direction: column; align-items: flex-start; gap: .7rem; margin-top: 1.35rem; }
  .filters { gap: .35rem; }
  .filters button { padding-inline: .55rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem .65rem; }
  .product-card-heading { font-size: .95rem; }
  .product-detail-layout { grid-template-columns: 1fr; }
  .product-detail-image { width: min(70%, 37vh); }
  .product-detail-content { padding: 1.25rem; }
}

@media (max-width: 22rem) {
  .hero-copy h1 { font-size: 2rem; }
  .brand-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
