/* ==========================================================================
   MAISON ATELIER — Luxury Fashion Brand Showcase Stylesheet (Photographic Edition)
   Desktop 100% Original · Mobile & Touch Layout Deeply Optimized
   ========================================================================== */

:root {
  --bg-primary: #F7F5F0;
  --bg-secondary: #EFECE5;
  --bg-elevated: #FDFCFA;
  --bg-inverse: #141312;
  --text-primary: #141312;
  --text-secondary: #57534E;
  --text-muted: #8A847C;
  --text-inverse: #F7F5F0;
  --accent: #8C7355;
  --accent-soft: rgba(140, 115, 85, 0.14);
  --border-hairline: rgba(20, 19, 18, 0.12);
  --border-strong: rgba(20, 19, 18, 0.28);
  --header-bg: rgba(247, 245, 240, 0.88);
  --shadow-soft: 0 24px 60px rgba(20, 19, 18, 0.09);
  --font-serif: "Cormorant Garamond", "Didot", "Bodoni MT", "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  --font-sans: "Helvetica Neue", "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --ease-luxury: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="obsidian"] {
  --bg-primary: #11100F;
  --bg-secondary: #1A1917;
  --bg-elevated: #211F1C;
  --bg-inverse: #F5F2EB;
  --text-primary: #F5F2EB;
  --text-secondary: #B8B2A8;
  --text-muted: #7D776E;
  --text-inverse: #11100F;
  --accent: #C5A882;
  --accent-soft: rgba(197, 168, 130, 0.16);
  --border-hairline: rgba(245, 242, 235, 0.12);
  --border-strong: rgba(245, 242, 235, 0.28);
  --header-bg: rgba(17, 16, 15, 0.88);
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.45);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.55s var(--ease-luxury), color 0.55s var(--ease-luxury);
}

a { color: inherit; text-decoration: none; }
button { background: none; border: none; color: inherit; font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.editorial-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.85s var(--ease-luxury), filter 0.55s var(--ease-luxury);
}

/* 1. LV-Inspired Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 76px;
  padding: 0 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-hairline);
  transition: height 0.4s var(--ease-luxury), background-color 0.4s var(--ease-luxury);
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.header-right {
  justify-content: flex-end;
}

.nav-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.4rem 0;
  position: relative;
  white-space: nowrap;
}

.nav-trigger-btn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-luxury);
}

.nav-trigger-btn:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hamburger-lines {
  width: 18px;
  height: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
}

.hamburger-lines span {
  display: block;
  height: 1px;
  width: 100%;
  background: currentColor;
  transition: transform 0.4s var(--ease-luxury);
}

.brand-wordmark {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  text-align: center;
  padding-left: 0.36em;
  white-space: nowrap;
}

.brand-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.56rem;
  letter-spacing: 0.32em;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 2. Curved Full-Screen Split Mega Menu + Interactive List Preview */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 11, 10, 0.52);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  transition: opacity 0.55s var(--ease-luxury);
}

.menu-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.curved-mega-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(1140px, 94vw);
  height: 100vh;
  height: 100dvh;
  background: var(--bg-elevated);
  z-index: 100;
  transform: translateX(-106%);
  transition: transform 0.72s var(--ease-luxury);
  display: grid;
  grid-template-columns: 1.12fr 1fr 1.18fr;
  border-right: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-soft);
}

.curved-mega-drawer.is-open {
  transform: translateX(0);
}

.drawer-curve-svg {
  position: absolute;
  top: 0;
  right: -79px;
  width: 80px;
  height: 100%;
  fill: var(--bg-elevated);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.curved-mega-drawer.is-open .drawer-curve-svg {
  opacity: 0;
}

.drawer-col {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-hairline);
  overflow-y: auto;
}

.drawer-col:last-of-type {
  border-right: none;
  background: var(--bg-secondary);
  justify-content: space-between;
}

.drawer-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-hairline);
}

.mobile-drawer-utilities {
  display: none;
}

.drawer-advisor-note {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-hairline);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.menu-primary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.menu-primary-item {
  border-bottom: 1px solid var(--border-hairline);
}

.menu-primary-btn {
  width: 100%;
  padding: 1.15rem 0.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: padding-left 0.4s var(--ease-luxury), color 0.35s ease;
}

.menu-primary-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--text-primary);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.42s var(--ease-luxury);
  z-index: 0;
}

.menu-primary-btn:hover::before,
.menu-primary-btn.is-active::before {
  transform: scaleY(1);
  transform-origin: top;
}

.menu-primary-btn > * {
  position: relative;
  z-index: 1;
  transition: color 0.35s ease;
}

.menu-primary-btn:hover > *,
.menu-primary-btn.is-active > * {
  color: var(--text-inverse);
}

.menu-primary-btn:hover,
.menu-primary-btn.is-active {
  padding-left: 1rem;
  padding-right: 1rem;
}

.menu-item-index {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  opacity: 0.65;
  margin-right: 0.85rem;
}

.menu-item-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  flex: 1;
}

.menu-sub-links {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.menu-sub-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-bottom: 1px dashed var(--border-hairline);
  transition: color 0.3s ease, transform 0.3s var(--ease-luxury);
}

.menu-sub-links a:hover {
  color: var(--text-primary);
  transform: translateX(6px);
}

.capsule-tags {
  margin-top: auto;
  padding-top: 2rem;
}

.capsule-pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.capsule-pill {
  border: 1px solid var(--border-strong);
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
}

.capsule-pill:hover {
  background: var(--text-primary);
  color: var(--text-inverse);
}

.menu-preview-card {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.menu-preview-visual {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--border-hairline);
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.menu-preview-card:hover .editorial-photo {
  transform: scale(1.045);
}

/* 3. Scroll Media Expansion Hero */
.hero-scroll-stage {
  height: 205vh;
  position: relative;
}

.hero-sticky-viewport {
  position: sticky;
  top: 76px;
  height: calc(100vh - 76px);
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-ambient-caption {
  position: absolute;
  top: 1.9rem;
  text-align: center;
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.hero-expanding-frame {
  width: 72vw;
  height: 70vh;
  max-width: 100vw;
  max-height: 100%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-hairline);
  background: #1B1917;
  color: #F7F5F0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: width, height;
  box-shadow: var(--shadow-soft);
}

.hero-bg-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
  animation: subtleBreathe 18s ease-in-out infinite alternate;
}

@keyframes subtleBreathe {
  0% { transform: scale(1.02); }
  100% { transform: scale(1.08); }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 15, 13, 0.34) 0%,
    rgba(16, 15, 13, 0.48) 52%,
    rgba(16, 15, 13, 0.68) 100%
  );
  z-index: 1;
}

.hero-overlay-copy {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem;
  max-width: 820px;
}

.hero-season-tag {
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.88);
  margin-bottom: 1.1rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5.4vw, 4.8rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.06em;
  margin-bottom: 1.35rem;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.45);
}

.hero-subcopy {
  font-size: 0.94rem;
  letter-spacing: 0.08em;
  color: rgba(247, 245, 240, 0.9);
  max-width: 560px;
  margin: 0 auto 2rem;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.hero-cta-row {
  display: inline-flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-luxury {
  padding: 0.85rem 2rem;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid rgba(247, 245, 240, 0.82);
  color: #F7F5F0;
  background: rgba(20, 19, 18, 0.36);
  backdrop-filter: blur(8px);
  transition: all 0.4s var(--ease-luxury);
}

.btn-luxury:hover {
  background: #F7F5F0;
  color: #141312;
}

.btn-luxury-solid {
  background: var(--text-primary);
  color: var(--text-inverse);
  border: 1px solid var(--text-primary);
  padding: 0.88rem 2.1rem;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition: all 0.4s var(--ease-luxury);
}

.btn-luxury-solid:hover {
  background: transparent;
  color: var(--text-primary);
}

.scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  z-index: 4;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.scroll-cue-bar {
  width: 1px;
  height: 32px;
  background: rgba(247, 245, 240, 0.28);
  position: relative;
  overflow: hidden;
}

.scroll-cue-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: #F7F5F0;
  animation: scrollPulse 2s infinite var(--ease-luxury);
}

@keyframes scrollPulse {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(220%); }
}

.section-wrap {
  max-width: 1440px;
  margin: 0 auto;
  padding: 6.5rem 2.5rem;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-hairline);
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-top: 0.5rem;
}

.section-desc {
  max-width: 440px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* 4. Hover-Expand Lookbook Rail Gallery */
.hover-expand-gallery {
  display: flex;
  width: 100%;
  height: 640px;
  border: 1px solid var(--border-hairline);
  background: #181715;
  overflow: hidden;
}

.lookbook-panel {
  flex: 1;
  min-width: 74px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.68s var(--ease-luxury);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #F7F5F0;
}

.lookbook-panel:last-child {
  border-right: none;
}

.lookbook-panel.is-expanded {
  flex: 5.2;
}

.panel-artwork {
  position: absolute;
  inset: 0;
}

.panel-artwork .editorial-photo {
  filter: brightness(0.62) saturate(0.84);
  transition: filter 0.65s var(--ease-luxury), transform 0.9s var(--ease-luxury);
}

.lookbook-panel.is-expanded .panel-artwork .editorial-photo {
  filter: brightness(0.96) saturate(1.02);
  transform: scale(1.03);
}

.panel-rail-label {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: linear-gradient(to bottom, rgba(16, 15, 13, 0.55), transparent);
}

.panel-index {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  color: #F7F5F0;
}

.panel-vertical-tag {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(247, 245, 240, 0.85);
  transition: opacity 0.35s ease;
}

.lookbook-panel.is-expanded .panel-vertical-tag {
  opacity: 0;
}

.panel-expanded-details {
  position: relative;
  z-index: 2;
  padding: 2.25rem 2rem 2rem;
  background: linear-gradient(to top, rgba(15, 14, 13, 0.88) 0%, rgba(15, 14, 13, 0.58) 65%, transparent 100%);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s var(--ease-luxury), transform 0.45s var(--ease-luxury);
  pointer-events: none;
  color: #F7F5F0;
}

.lookbook-panel.is-expanded .panel-expanded-details {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Desktop-only hover expansion (avoids sticky hover conflicts on mobile touch screens) */
@media (min-width: 1025px) and (hover: hover) {
  .hover-expand-gallery:hover .lookbook-panel:hover {
    flex: 5.2;
  }
  .hover-expand-gallery:hover .lookbook-panel:not(:hover) {
    flex: 0.85;
  }
  .hover-expand-gallery:hover .lookbook-panel:hover .panel-artwork .editorial-photo {
    filter: brightness(0.96) saturate(1.02);
    transform: scale(1.03);
  }
  .hover-expand-gallery:hover .lookbook-panel:not(:hover) .panel-artwork .editorial-photo {
    filter: brightness(0.5) saturate(0.75);
  }
  .hover-expand-gallery:hover .lookbook-panel:hover .panel-vertical-tag {
    opacity: 0;
  }
  .hover-expand-gallery:hover .lookbook-panel:hover .panel-expanded-details {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .hover-expand-gallery:hover .lookbook-panel:not(:hover) .panel-expanded-details {
    opacity: 0;
    pointer-events: none;
  }
}

.panel-look-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  margin: 0.3rem 0 0.4rem;
  color: #F7F5F0;
}

.panel-look-meta {
  font-size: 0.8rem;
  color: rgba(247, 245, 240, 0.82);
  margin-bottom: 1.15rem;
  max-width: 420px;
}

/* 5. LV-Style Modular Creation Grid & Filter Tabs */
.filter-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.75rem;
}

.filter-tab {
  padding: 0.55rem 1.25rem;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.35s var(--ease-luxury);
}

.filter-tab.is-active,
.filter-tab:hover {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: var(--text-inverse);
}

.creation-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.garment-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.45s var(--ease-luxury), border-color 0.35s ease;
}

.garment-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.garment-visual-box {
  aspect-ratio: 3 / 4;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.garment-card:hover .garment-visual-box .editorial-photo {
  transform: scale(1.05);
}

.wishlist-heart-btn {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  z-index: 2;
  transition: transform 0.3s ease;
}

.wishlist-heart-btn:hover { transform: scale(1.1); }

.wishlist-heart-btn.is-saved {
  background: var(--text-primary);
  color: var(--text-inverse);
}

.garment-tag-pill {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-hairline);
  z-index: 2;
}

.swatch-caption-pill {
  position: absolute;
  bottom: 0.8rem;
  left: 0.9rem;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  padding: 0.2rem 0.55rem;
  background: rgba(20, 19, 18, 0.62);
  color: #F7F5F0;
  backdrop-filter: blur(6px);
  z-index: 2;
}

.garment-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
}

.garment-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
}

.garment-fabric {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.garment-bottom-row {
  margin-top: auto;
  padding-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-top: 1px solid var(--border-hairline);
}

.swatch-row {
  display: flex;
  gap: 0.4rem;
}

.swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  transition: transform 0.25s ease;
}

.swatch-dot.is-selected,
.swatch-dot:hover {
  transform: scale(1.22);
  outline: 1px solid var(--text-primary);
  outline-offset: 2px;
}

/* 6. Sticky Scroll Cards — Savoir-Faire Craftsmanship */
.savoir-faire-stack {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.sticky-craft-card {
  position: sticky;
  top: 108px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--shadow-soft);
}

.sticky-craft-card:nth-child(2) { top: 136px; }
.sticky-craft-card:nth-child(3) { top: 164px; }

.craft-chapter-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}

.craft-card-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin: 0.5rem 0 1rem;
}

.craft-card-desc {
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.craft-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-hairline);
}

.metric-val {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  display: block;
}

.metric-lbl {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.craft-art-frame {
  aspect-ratio: 4 / 3;
  background: var(--bg-secondary);
  border: 1px solid var(--border-hairline);
  overflow: hidden;
}

.sticky-craft-card:hover .craft-art-frame .editorial-photo {
  transform: scale(1.04);
}

/* 7. Drawers & Modals */
.right-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(500px, 94vw);
  height: 100vh;
  height: 100dvh;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border-hairline);
  z-index: 110;
  transform: translateX(104%);
  transition: transform 0.55s var(--ease-luxury);
  padding: 2.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.right-drawer.is-open {
  transform: translateX(0);
  box-shadow: var(--shadow-soft);
}

.spec-list {
  list-style: none;
  border-top: 1px solid var(--border-hairline);
}

.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 0.84rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.form-field label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.75rem 0.9rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.88rem;
  border-radius: 0;
  outline: none;
}

/* 8. Monumental Wordmark Footer & Design Reference Colophon */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-hairline);
  padding: 5rem 2.5rem 2.5rem;
}

.footer-grid {
  max-width: 1440px;
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}

.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.85rem;
}

.footer-col a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.giant-wordmark {
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-hairline);
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 9.2vw, 8.2rem);
  letter-spacing: 0.26em;
  text-align: center;
  text-transform: uppercase;
  line-height: 1;
  opacity: 0.9;
  padding-left: 0.26em;
  overflow: hidden;
}

.colophon-bar {
  max-width: 1440px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.colophon-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.colophon-links a {
  border-bottom: 1px solid var(--border-strong);
}

/* ==========================================================================
   Tablet & Mobile Deep Layout Optimization (<= 1024px & <= 640px)
   ========================================================================== */
@media (max-width: 1024px) {
  .curved-mega-drawer {
    grid-template-columns: 1fr;
    width: min(520px, 100vw);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .drawer-curve-svg {
    display: none;
  }
  .drawer-col {
    border-right: none;
    border-bottom: 1px solid var(--border-hairline);
    overflow-y: visible;
    padding: 1.75rem 1.5rem;
  }
  .drawer-col:last-of-type {
    display: none;
  }
  .capsule-tags {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }
  .drawer-advisor-note {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }

  /* Lookbook vertical touch accordion */
  .hover-expand-gallery {
    flex-direction: column;
    height: auto;
  }
  .lookbook-panel {
    flex: none !important;
    height: 64px;
    min-height: 64px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    transition: height 0.52s var(--ease-luxury);
  }
  .lookbook-panel.is-expanded {
    height: 430px;
    min-height: 430px;
  }
  .panel-rail-label {
    padding: 1.15rem 1.25rem;
    align-items: center;
  }
  .panel-index {
    font-size: 1.05rem;
  }
  .panel-vertical-tag {
    writing-mode: horizontal-tb;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 72%;
  }
  .panel-expanded-details {
    padding: 1.5rem 1.25rem 1.35rem;
  }
  .panel-look-title {
    font-size: 1.35rem;
  }
  .panel-look-meta {
    font-size: 0.76rem;
    margin-bottom: 0.9rem;
  }

  .creation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .sticky-craft-card {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 1.75rem;
    position: relative;
    top: 0 !important;
  }
  .sticky-craft-card .craft-art-frame {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .hide-mobile,
  .hide-xs {
    display: none !important;
  }

  /* 2. Spacious, collision-free mobile header */
  .site-header {
    height: 62px;
    padding: 0 1rem;
  }
  .nav-trigger-btn {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    gap: 0.45rem;
  }
  .brand-wordmark {
    font-size: 1.18rem;
    letter-spacing: 0.26em;
    padding-left: 0.26em;
  }
  .brand-sub {
    display: none;
  }

  /* 3. Mobile Drawer Quick Utilities */
  .curved-mega-drawer {
    width: 100vw;
  }
  .drawer-col {
    padding: 1.35rem 1.15rem;
  }
  .drawer-top-bar {
    margin-bottom: 1.1rem;
    padding-bottom: 0.75rem;
  }
  .mobile-drawer-utilities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.15rem;
  }
  .mobile-drawer-utilities button {
    border: 1px solid var(--border-strong);
    padding: 0.48rem 0.35rem;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-align: center;
    background: var(--bg-primary);
  }
  .menu-primary-btn {
    padding: 0.85rem 0.35rem;
  }
  .menu-item-title {
    font-size: 1.2rem;
  }

  /* 4. Uncrowded Mobile Hero Stage */
  .hero-scroll-stage {
    height: 145vh;
  }
  .hero-sticky-viewport {
    top: 62px;
    height: calc(100vh - 62px);
    height: calc(100svh - 62px);
  }
  .hero-ambient-caption {
    display: none;
  }
  .hero-expanding-frame {
    width: 92vw;
    height: 78vh;
    height: 78svh;
  }
  .hero-overlay-copy {
    padding: 1.35rem 1.15rem;
    width: 100%;
  }
  .hero-season-tag {
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    margin-bottom: 0.75rem;
  }
  .hero-headline {
    font-size: clamp(1.68rem, 7vw, 2.15rem);
    line-height: 1.2;
    margin-bottom: 0.85rem;
  }
  .hero-subcopy {
    font-size: 0.8rem;
    line-height: 1.6;
    letter-spacing: 0.03em;
    margin-bottom: 1.35rem;
    padding: 0 0.25rem;
  }
  .hero-cta-row {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
  }
  .hero-cta-row .btn-luxury {
    width: 100%;
    max-width: 236px;
    padding: 0.72rem 1rem;
    font-size: 0.68rem;
    letter-spacing: 0.15em;
  }
  .scroll-cue {
    bottom: 0.75rem;
    font-size: 0.56rem;
    gap: 0.25rem;
  }
  .scroll-cue-bar {
    height: 18px;
  }

  /* 5. Section Spacing & Typography on Phone */
  .section-wrap {
    padding: 3.75rem 1rem;
  }
  .section-header {
    gap: 0.75rem;
    margin-bottom: 1.85rem;
    padding-bottom: 1rem;
  }
  .eyebrow {
    font-size: 0.6rem;
    letter-spacing: 0.16em;
  }
  .section-title {
    font-size: 1.55rem;
    margin-top: 0.3rem;
  }
  .section-desc {
    font-size: 0.8rem;
    line-height: 1.55;
  }

  /* 6. Single-Row Horizontal Swipe Filter Pills + Clean LV 2-Up Mobile Product Grid */
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -1rem 1.65rem;
    padding: 0 1rem 0.25rem;
    gap: 0.45rem;
  }
  .filter-bar::-webkit-scrollbar {
    display: none;
  }
  .filter-tab {
    padding: 0.48rem 0.9rem;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .creation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 0.65rem;
  }
  .garment-tag-pill {
    display: none;
  }
  .wishlist-heart-btn {
    top: 0.55rem;
    right: 0.55rem;
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
  }
  .swatch-caption-pill {
    bottom: 0.5rem;
    left: 0.5rem;
    font-size: 0.55rem;
    padding: 0.14rem 0.4rem;
    letter-spacing: 0.06em;
  }
  .garment-info {
    padding: 0.75rem 0.6rem 0.7rem;
    gap: 0.25rem;
  }
  .garment-info .eyebrow {
    font-size: 0.55rem;
    letter-spacing: 0.12em;
  }
  .garment-title {
    font-size: 0.94rem;
    line-height: 1.32;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .garment-fabric {
    font-size: 0.68rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .garment-bottom-row {
    padding-top: 0.55rem;
    margin-top: 0.35rem;
  }
  .swatch-row {
    gap: 0.3rem;
  }
  .swatch-dot {
    width: 12px;
    height: 12px;
  }
  .garment-bottom-row .nav-trigger-btn {
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    padding: 0.2rem 0;
  }

  /* 7. Clean Magazine Stack for Savoir-Faire Craft Cards */
  .savoir-faire-stack {
    gap: 1.5rem;
  }
  .sticky-craft-card {
    padding: 1.35rem 1.15rem 1.5rem;
    gap: 1.25rem;
  }
  .craft-chapter-num {
    font-size: 1.85rem;
    margin-bottom: 0.45rem;
  }
  .craft-card-title {
    font-size: 1.35rem;
    margin: 0.35rem 0 0.65rem;
  }
  .craft-card-desc {
    font-size: 0.82rem;
    line-height: 1.65;
  }
  .craft-metrics {
    margin-top: 1.25rem;
    padding-top: 1rem;
    gap: 0.5rem;
  }
  .metric-val {
    font-size: 1.15rem;
  }
  .metric-lbl {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }
  .craft-cta-btn {
    width: 100%;
    text-align: center;
  }

  /* 8. Full-width Mobile Right Drawers & Spec Table */
  .right-drawer {
    width: 100vw;
    padding: 1.35rem 1.15rem 2rem;
    gap: 1.15rem;
  }
  .spec-list li {
    display: grid;
    grid-template-columns: 4.6rem 1fr;
    align-items: start;
    gap: 0.65rem;
    font-size: 0.8rem;
  }

  /* 9. Balanced 2-Column Mobile Footer */
  .site-footer {
    padding: 3.25rem 1rem 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1rem;
    margin-bottom: 2.5rem;
  }
  .footer-col-wide {
    grid-column: 1 / -1;
  }
  .footer-col h4 {
    margin-bottom: 0.75rem;
    font-size: 0.66rem;
  }
  .footer-col ul {
    gap: 0.5rem;
    font-size: 0.8rem;
  }
  .giant-wordmark {
    padding-top: 1.75rem;
    font-size: clamp(2rem, 11vw, 3.4rem);
    letter-spacing: 0.18em;
    padding-left: 0.18em;
  }
  .colophon-bar {
    margin-top: 1.5rem;
    font-size: 0.68rem;
    gap: 0.75rem;
  }
  .colophon-links {
    gap: 0.65rem;
  }
}

@media (max-width: 359px) {
  .creation-grid {
    grid-template-columns: 1fr;
  }
}

/* Editorial chapters: seasonal photographs with garment notes, and the fitting room. */
.editorial-chapter {
  --editorial-paper: #efeee9;
  --editorial-ink: #242320;
  --editorial-muted: #55524d;
  --editorial-line: #b6b2aa;
  --editorial-accent: #71364a;
  --editorial-placeholder: #dedbd3;
  background: var(--editorial-paper);
  color: var(--editorial-ink);
  padding: 4rem 2.5rem 4.5rem;
  scroll-margin-top: 5rem;
  letter-spacing: 0;
}

[data-theme="obsidian"] .editorial-journal {
  --editorial-paper: #252422;
  --editorial-ink: #f2f2eb;
  --editorial-muted: #cdc8bf;
  --editorial-line: #77716a;
  --editorial-accent: #edbacc;
  --editorial-placeholder: #3b3835;
}

.editorial-salon {
  --editorial-paper: var(--bg-primary);
  --editorial-ink: var(--text-primary);
  --editorial-muted: var(--text-secondary);
  --editorial-line: var(--border-strong);
  --editorial-accent: #71364a;
  --editorial-placeholder: var(--bg-secondary);
}

[data-theme="obsidian"] .editorial-salon {
  --editorial-accent: #edbacc;
}

.editorial-frame {
  max-width: 1280px;
  margin-inline: auto;
}

.editorial-chapter.editorial-salon {
  --salon-gutter: 2.5rem;
  padding-inline: 0;
}

.editorial-salon .editorial-frame { max-width: none; }
.editorial-salon :is(.editorial-masthead, .salon-intro, .wardrobe-caption, .salon-notes) {
  width: min(1280px, calc(100% - 2 * var(--salon-gutter)));
  margin-inline: auto;
}

.editorial-masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  column-gap: 1.5rem;
  row-gap: 0.25rem;
  padding-bottom: 0.8rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--editorial-line);
  color: var(--editorial-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.editorial-masthead > span {
  overflow-wrap: anywhere;
}

.journal-spread,
.salon-spread {
  display: grid;
  align-items: start;
  gap: 1.5rem 3.5rem;
}

.journal-spread {
  grid-template:
    "feature intro" auto
    "feature notes" 1fr
    / minmax(0, 1.68fr) minmax(0, 1fr);
}

.journal-intro,
.salon-intro { grid-area: intro; }
.journal-feature { grid-area: feature; }
.journal-notes {
  grid-area: notes;
  scroll-margin-top: 5rem;
}
.salon-notes {
  grid-area: notes;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem 3rem;
}

.salon-notes > .editorial-primary-action { margin-top: 0; }

.salon-spread {
  grid-template: "intro" "wardrobe" "notes" / minmax(0, 1fr);
  row-gap: 2rem;
}

.wardrobe {
  grid-area: wardrobe;
  min-width: 0;
}

.wardrobe-stage {
  --rail-top: 14%;
  --rail-gauge: 6px;
  --rail-inset: 14%;
  --piece-step: 18%;
  position: relative;
  width: 100%;
  height: clamp(27rem, 47vw, 39rem);
  overflow: hidden;
  isolation: isolate;
  background: #dfd8ca;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  cursor: grab;
}

.wardrobe-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 65%;
  pointer-events: none;
}

[data-theme="obsidian"] .wardrobe-backdrop {
  filter: brightness(0.82);
}

.wardrobe-rail {
  position: absolute;
  inset: var(--rail-top) var(--rail-inset) 6%;
  pointer-events: none;
}

.wardrobe-rail::before,
.wardrobe-rail::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: var(--rail-gauge);
  background: linear-gradient(90deg, #826d4e, #c7b08a 45%, #9c825c);
  box-shadow: 2px 4px 5px #62513726;
}

.wardrobe-rail::before { left: 0; }
.wardrobe-rail::after { right: 0; }

.wardrobe-rail-top,
.wardrobe-rail-base {
  position: absolute;
  z-index: 1;
  inset-inline: 0;
  height: var(--rail-gauge);
  background: linear-gradient(#d0bc95, #8b724c);
}

.wardrobe-rail-top {
  top: 0;
  box-shadow: 0 2px 3px #54442c24;
}

.wardrobe-rail-base { bottom: 0; }

.wardrobe-piece {
  --piece-slot: 0;
  --piece-lean: 1deg;
  --piece-width: 0.74;
  position: absolute;
  z-index: 2;
  top: calc(var(--rail-top) - 2px);
  left: calc(50% + var(--piece-slot) * var(--piece-step));
  height: 72%;
  max-width: 38%;
  transform: translateX(calc(-50% + var(--wardrobe-drag-x, 0px))) rotate(var(--piece-lean)) scaleX(var(--piece-width));
  transform-origin: 50% 2px;
  transition: transform 360ms var(--ease-luxury);
}

.wardrobe-piece[data-wardrobe-piece="g3"] {
  --piece-slot: -1;
  --piece-lean: 2deg;
  height: 51%;
  aspect-ratio: 0.64;
}

.wardrobe-piece[data-wardrobe-piece="g1"] {
  aspect-ratio: 0.45;
}

.wardrobe-piece[data-wardrobe-piece="g4"] {
  --piece-slot: 1;
  --piece-lean: -2deg;
  height: 71%;
  aspect-ratio: 0.45;
}

.wardrobe-piece[aria-pressed="true"] {
  --piece-lean: 0deg;
  --piece-width: 1;
  z-index: 3;
}

.wardrobe-piece img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(6px 7px 6px #52463236);
  pointer-events: none;
}

.wardrobe-piece:focus-visible {
  outline: 2px solid #71364a;
  outline-offset: 4px;
}

.wardrobe-stage[data-dragging],
.wardrobe-stage[data-dragging] .wardrobe-piece {
  cursor: grabbing;
}

.wardrobe-stage[data-dragging] .wardrobe-piece { transition: none; }

.wardrobe-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wardrobe-stage[data-renderer="webgl"] .wardrobe-rail,
.wardrobe-stage[data-renderer="webgl"] .wardrobe-piece img,
.wardrobe-angle[hidden] { display: none; }

.wardrobe-stage[data-renderer="webgl"] .wardrobe-piece {
  top: var(--hit-y);
  left: var(--hit-x);
  width: var(--hit-w);
  height: var(--hit-h);
  min-width: 44px;
  max-width: none;
  transform: none;
  transition: none;
  cursor: grab;
  background: transparent;
}

.wardrobe-stage[data-renderer="webgl"][data-dragging] .wardrobe-piece { cursor: grabbing; }

.wardrobe-stage[data-renderer="webgl"] .wardrobe-piece:focus-visible {
  outline-offset: -2px;
  outline-color: #753e4d;
  box-shadow: inset 0 0 0 4px #fffcf0bb;
}

.wardrobe-caption,
.wardrobe-actions,
.wardrobe-pagination {
  display: flex;
  align-items: center;
}

.wardrobe-caption {
  justify-content: space-between;
  gap: 0.625rem 1.5rem;
  padding-block: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--editorial-line);
}

.wardrobe-identity {
  min-width: 0;
}

.wardrobe-label {
  color: var(--editorial-accent);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  text-transform: uppercase;
}

.wardrobe-identity h3 {
  margin-top: 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.wardrobe-actions {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.wardrobe-actions .editorial-text-action {
  gap: 0.45rem;
}

.wardrobe-actions svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wardrobe-pagination {
  gap: 0.15rem;
}

.wardrobe-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--editorial-line);
  touch-action: manipulation;
}

.wardrobe-arrow:hover,
.wardrobe-arrow:active,
.wardrobe-angle[aria-pressed="true"] {
  color: var(--editorial-accent);
  border-color: currentColor;
}

.wardrobe-angle { margin-inline-end: .45rem; }
.wardrobe-angle[aria-pressed="true"] { box-shadow: inset 0 -2px currentColor; }
.wardrobe-actions button:focus-visible { outline: 2px solid var(--editorial-accent); outline-offset: 2px; }

.wardrobe-count {
  min-width: 3.25rem;
  color: var(--editorial-muted);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: center;
}

@media (hover: hover) and (pointer: fine) {
  .wardrobe-piece[aria-pressed="false"]:hover { --piece-width: 0.84; }
}

.editorial-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 400;
  line-height: 1.15;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.editorial-deck {
  max-width: 32rem;
  margin-top: 1rem;
  color: var(--editorial-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.editorial-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--editorial-placeholder);
}

.editorial-figure figcaption {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-top: 0.7rem;
  color: var(--editorial-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.editorial-figure-number {
  color: var(--editorial-accent);
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  flex: none;
}

.journal-detail img {
  aspect-ratio: 2.2;
  object-position: 50% 13%;
}

.coat-study-drawer .drawer-top-bar {
  margin-bottom: 0;
}

.coat-study-drawer h2 {
  font: 400 1.75rem/1.25 var(--font-serif);
  overflow-wrap: anywhere;
}

.coat-study-drawer img {
  width: auto;
  height: auto;
  max-height: 70vh;
  max-height: 70dvh;
  object-fit: contain;
  align-self: center;
  min-height: 0;
}

.coat-study-drawer [data-close-drawer] {
  min-height: 44px;
}

.coat-archive-link {
  align-self: flex-start;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.journal-studies {
  display: grid;
  gap: 4rem;
  margin-top: 4.5rem;
}

.journal-study {
  scroll-margin-top: 5rem;
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-top: 3.5rem;
  border-top: 1px solid var(--editorial-line);
  display: grid;
  grid-template: "copy photo" / minmax(0, 0.85fr) minmax(0, 1fr);
  gap: 2rem 5.5rem;
  align-items: center;
  justify-items: center;
}

.journal-study:nth-child(even) {
  grid-template: "photo copy" / minmax(0, 1fr) minmax(0, 0.85fr);
}

.journal-study-photo {
  grid-area: photo;
  width: 100%;
  max-width: 29rem;
}

.journal-study-photo img {
  aspect-ratio: 3 / 4;
}

.journal-study-copy {
  grid-area: copy;
  width: 100%;
  min-width: 0;
  max-width: 28rem;
}

.journal-study-kicker {
  color: var(--editorial-accent);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
}

.journal-study h3 {
  margin-top: 0.65rem;
  font-family: var(--font-serif);
  font-size: 2.375rem;
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.journal-fabric {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--editorial-line);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.journal-fabric-inline {
  margin-top: 1rem;
  padding-top: 0.8rem;
}

.journal-fabric dt {
  font-weight: 600;
}

.journal-fabric dd {
  margin-top: 0.375rem;
  color: var(--editorial-muted);
}

.journal-study-copy > .editorial-text-action,
.journal-notes > .editorial-text-action {
  margin-top: 0.5rem;
}

.editorial-text-action,
.editorial-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  text-align: start;
  touch-action: manipulation;
}

.editorial-text-action {
  padding-block: 0.5rem;
  color: var(--editorial-ink);
  text-decoration: underline;
  text-decoration-color: var(--editorial-line);
  text-underline-offset: 0.3em;
}

.editorial-text-action:hover {
  color: var(--editorial-accent);
  text-decoration-color: currentColor;
}

.editorial-chapter button:focus-visible {
  outline: 2px solid var(--editorial-accent);
  outline-offset: 4px;
}

.salon-fitting-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  border-block: 1px solid var(--editorial-line);
  padding-block: 1rem;
}

.salon-fitting-list dt {
  font-size: 0.9375rem;
  font-weight: 600;
}

.salon-fitting-list dd {
  color: var(--editorial-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-top: 0.25rem;
}

.editorial-primary-action {
  min-height: 48px;
  margin-top: 1.5rem;
  padding: 0.65rem 1.25rem;
  color: var(--editorial-paper);
  background: var(--editorial-ink);
}

.editorial-primary-action:hover {
  background: var(--editorial-accent);
}

@media (max-width: 1024px) {
  .editorial-chapter { padding-inline: 1.75rem; }
  .editorial-chapter.editorial-salon { --salon-gutter: 1.75rem; }
  .journal-spread { column-gap: 2rem; }
  .journal-study { column-gap: 3rem; }
  .editorial-title { font-size: 2.5rem; }
}

@media (max-width: 860px) {
  .editorial-chapter { padding-block: 3rem 3.5rem; }
  .journal-spread { grid-template: "intro" "feature" "notes" / minmax(0, 1fr); }
  .journal-studies { gap: 3.5rem; margin-top: 3.5rem; }
  .journal-study,
  .journal-study:nth-child(even) {
    grid-template: "photo" "copy" / minmax(0, 1fr);
    padding-top: 2.5rem;
    justify-items: start;
  }
  .wardrobe-stage {
    --rail-inset: 8%;
    --piece-step: 22%;
  }
}

@media (max-width: 640px) {
  .editorial-chapter { padding-inline: 1.25rem; }
  .editorial-chapter.editorial-salon { --salon-gutter: 1.25rem; }
  .editorial-masthead { margin-bottom: 1.5rem; }
  .editorial-title { font-size: 2.125rem; }
  .journal-study h3 { font-size: 1.875rem; }
  .journal-feature img { aspect-ratio: 4 / 3; }
  .salon-spread { row-gap: 1.5rem; }
  .wardrobe-stage {
    --rail-inset: 5%;
    --rail-gauge: 4px;
    --piece-step: 25%;
    height: clamp(19rem, 99vw, 29rem);
  }
  .wardrobe-caption {
    flex-direction: column;
    align-items: stretch;
  }
  .wardrobe-identity h3 { font-size: 1.375rem; }
  .wardrobe-actions { column-gap: 0.65rem; }
  .salon-notes {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wardrobe-piece { transition: none; }
}

/* Private fitting: the form scrolls independently of its close and preview controls. */
html.salon-open,
html.salon-open body {
  overflow: hidden;
}

.salon-sheet {
  container: salon / inline-size;
  --salon-gutter: 2.5rem;
  --salon-accent: #71364a;
  --salon-rule: #908b82;
  --salon-fine-rule: var(--border-hairline);
  --salon-paper: var(--bg-primary);
  width: min(39rem, 100%);
  height: 100vh;
  height: 100dvh;
  padding: 0;
  gap: 0;
  display: grid;
  grid-template: auto minmax(0, 1fr) auto / minmax(0, 1fr);
  overflow: hidden;
  background: var(--salon-paper);
  color: var(--text-primary);
  color-scheme: light;
  letter-spacing: 0;
}

[data-theme="obsidian"] .salon-sheet {
  --salon-accent: #edbacc;
  --salon-rule: #79736c;
  --salon-paper: var(--bg-secondary);
  color-scheme: dark;
}

.salon-sheet [hidden] { display: none !important; }
.salon-sheet :is(button, label) { -webkit-tap-highlight-color: transparent; }

.salon-sheet-top, .salon-sheet-bottom {
  position: relative;
  padding-inline: var(--salon-gutter);
  background: var(--salon-paper);
}

.salon-sheet-top {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding-top: max(0.8rem, env(safe-area-inset-top));
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--salon-fine-rule);
}

.salon-signature {
  font: 500 1.375rem/1 var(--font-serif);
}

.salon-imprint, .salon-reference {
  font-size: 0.75rem;
  line-height: 1.35;
  font-weight: 600;
}

.salon-imprint {
  padding-left: 0.875rem;
  border-left: 1px solid var(--salon-rule);
  color: var(--text-secondary);
}

.salon-icon {
  display: block;
  flex: none;
  pointer-events: none;
  filter: var(--salon-icon-filter, none);
}

[data-theme="obsidian"] .salon-sheet { --salon-icon-filter: invert(1); }

.salon-icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  margin-right: -0.625rem;
}

.salon-icon-button:hover { background: var(--accent-soft); }

.salon-sheet :is(button, input):focus-visible {
  outline: 2px solid var(--salon-accent);
  outline-offset: 3px;
}

.salon-sheet-scroll {
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-padding-block: 1rem;
  min-height: 0;
  padding: 2.25rem var(--salon-gutter) 2rem;
}

#salonPanelTitle {
  margin: 0 0 2rem;
  font: 400 2.5rem/1.18 var(--font-serif);
  text-wrap: balance;
}

.salon-group {
  width: 100%;
  min-width: 0;
  border: 0;
}

.salon-group + .salon-group { margin-top: 2.3rem; }

.salon-group-title {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  width: 100%;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--salon-rule);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.salon-number, .salon-reference {
  color: var(--salon-accent);
  font-variant-numeric: tabular-nums;
}

.salon-number {
  font-size: 0.75rem;
  font-weight: 600;
}

.salon-selection {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 35%) minmax(0, 1fr);
  align-items: center;
  gap: 1.75rem;
  padding-top: 1.25rem;
  text-align: start;
  touch-action: manipulation;
}

.salon-selection-art {
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-secondary);
}

#salonSelectionPhoto { width: 100%; height: 100%; object-fit: cover; }
#salonSelectionPhoto[data-view="piece"] { object-fit: contain; }
.salon-selection-copy { min-width: 0; }
.salon-selection-copy > span { display: block; }

#salonSelectionTitle {
  margin: 0.35rem 0 0.2rem;
  font: 400 1.65rem/1.25 var(--font-serif);
  text-wrap: pretty;
  overflow-wrap: anywhere;
}

#salonSelectionDetail {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

.salon-selection-copy > .salon-change-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  margin-top: 0.8rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.salon-change-link > span {
  text-decoration: underline;
  text-underline-offset: 0.25em;
  text-decoration-color: var(--salon-rule);
}

.salon-change-link .salon-icon { transition: transform 160ms var(--ease-luxury); }
@media (hover: hover) {
  .salon-selection:hover .salon-change-link { color: var(--salon-accent); }
  .salon-selection:hover .salon-change-link .salon-icon { transform: translateX(3px); }
}

.salon-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(9rem, 40%)), 1fr));
  gap: 1.3rem 1.5rem;
  padding-top: 1.25rem;
}

.salon-field { min-width: 0; }
.salon-field-wide { grid-column: 1 / -1; }

.salon-field label, .salon-space-field legend {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.salon-field-aside { margin-left: 0.15rem; font-size: 0.75rem; }
.salon-required { color: var(--salon-accent); }
.salon-space-field { min-width: 0; border: 0; }
.salon-space-options { display: flex; flex-wrap: wrap; gap: 0 1.6rem; margin-top: 0.2rem; }
.salon-space-options label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  font-size: 1rem;
  cursor: pointer;
}
.salon-space-options input { flex: none; width: 1.05rem; height: 1.05rem; accent-color: var(--salon-accent); }

.salon-field input {
  display: block;
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.125rem;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid var(--salon-rule);
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
}

.salon-field input:hover, .salon-field input:focus { border-color: var(--text-primary); }
.salon-field input::placeholder { color: var(--text-secondary); }
.salon-field input[type="date"] { text-align: left; }
.salon-field input::-webkit-date-and-time-value { text-align: left; }

.salon-field input[aria-invalid="true"] { border-color: var(--salon-accent); }
.salon-field-error { margin-top: 0.35rem; color: var(--salon-accent); font-size: 0.8125rem; }

.salon-sheet-bottom {
  padding-block: 1rem max(1.5rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--salon-fine-rule);
}

.salon-preview-note {
  margin: 0 0 0.7rem;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.salon-primary-button, .salon-edit-button {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 50px;
  font-size: 0.9375rem;
  line-height: 1.4;
  touch-action: manipulation;
}

.salon-primary-button {
  --salon-icon-filter: invert(1);
  justify-content: space-between;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: var(--text-primary);
  color: var(--text-inverse);
}

.salon-primary-button:hover { background: var(--salon-accent); }
[data-theme="obsidian"] .salon-primary-button { --salon-icon-filter: none; }
.salon-edit-button { color: var(--text-primary); }
.salon-edit-button:hover { text-decoration: underline; }
.salon-review-actions { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1rem; }

.salon-review h3 { font: 400 1.5rem/1.35 var(--font-serif); }
.salon-review:focus { outline: none; }
.salon-review-list { margin-top: 1.1rem; border-top: 1px solid var(--salon-rule); }
.salon-review-list div {
  display: grid;
  grid-template-columns: minmax(5rem, 1fr) minmax(0, 2fr);
  gap: 1rem;
  align-items: baseline;
  padding-block: 1rem;
  border-bottom: 1px solid var(--salon-fine-rule);
}
.salon-review-list dt { color: var(--text-secondary); font-size: 0.8125rem; }
.salon-review-list dd { overflow-wrap: anywhere; }

.salon-sheet[data-view="picker"] .salon-sheet-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}
.salon-sheet[data-view="picker"] .salon-imprint { display: none; }
.salon-back, .salon-any-choice {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  font-size: 0.875rem;
  text-align: start;
}
.salon-back:hover, .salon-any-choice:hover { color: var(--salon-accent); }
.salon-sheet :is(.salon-back, .salon-any-choice, .salon-icon-button, .salon-space-options label):active,
.salon-picker-filters button:active { background: var(--accent-soft); }
.salon-picker-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  margin: 0.35rem 0 1.15rem;
}
#salonPickerTitle {
  font: 400 2.25rem/1.2 var(--font-serif);
  text-wrap: balance;
}
#salonPickerTitle:focus { outline: none; }
.salon-any-choice { color: var(--text-secondary); }
.salon-any-mark {
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  flex: none;
  border: 1px solid var(--salon-rule);
  border-radius: 50%;
}
.salon-any-choice[aria-pressed="true"] .salon-any-mark { border-color: var(--salon-accent); }
.salon-any-choice[aria-pressed="true"] .salon-any-mark::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  background: var(--salon-accent);
  border-radius: 50%;
}
.salon-picker-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0 1.6rem;
  border-bottom: 1px solid var(--salon-fine-rule);
  margin-bottom: 1.35rem;
}
.salon-picker-filters button {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.6rem 0.1rem;
  margin-bottom: -1px;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}
.salon-picker-filters [data-salon-count] { font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.salon-picker-filters button[aria-pressed="true"] { color: var(--text-primary); border-bottom-color: var(--salon-accent); font-weight: 600; }

.salon-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(7.75rem, 36%)), 1fr));
  gap: 1.75rem 1.15rem;
}
.salon-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  text-align: start;
  touch-action: manipulation;
}
.salon-tile-art { display: block; position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-secondary); }
.salon-tile-art > img { width: 100%; height: 100%; object-fit: contain; transition: transform 220ms var(--ease-luxury); }
.salon-tile-check {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: #71364a;
  opacity: 0;
}
.salon-tile-check img { filter: invert(1); }
.salon-tile[aria-pressed="true"] .salon-tile-check { opacity: 1; }
.salon-tile[aria-pressed="true"] .salon-tile-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--salon-accent);
  pointer-events: none;
}
.salon-tile-code { margin: 0.55rem 0 0.15rem; font-size: 0.75rem; line-height: 1.4; font-weight: 600; color: var(--salon-accent); }
.salon-tile-title { font: 400 1.0625rem/1.4 var(--font-serif); overflow-wrap: anywhere; text-wrap: balance; }
@media (hover: hover) {
  .salon-tile:hover .salon-tile-art > img { transform: scale(1.018); }
  .salon-tile:hover .salon-tile-title { text-decoration: underline; text-underline-offset: 0.18em; }
}
.salon-tile:active { opacity: 0.88; }
.salon-picker-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
}
.salon-pending { display: grid; align-content: center; gap: 0.1rem; min-width: 0; }
.salon-pending > span { color: var(--text-secondary); font-size: 0.75rem; }
.salon-pending strong { font: 400 1.125rem/1.3 var(--font-serif); overflow-wrap: anywhere; }
#salonPendingCode { display: none; }
.salon-picker-actions .salon-primary-button { gap: 1.5rem; }

@media (max-width: 640px) {
  .salon-sheet { --salon-gutter: 1.375rem; width: 100%; border-left: 0; }
  .salon-sheet-top { padding-block: max(0.3rem, env(safe-area-inset-top)) 0.3rem; }
  .salon-sheet-scroll { padding-block: 1.55rem 1.75rem; }
  #salonPanelTitle { font-size: 2rem; margin-bottom: 1.5rem; }
  .salon-selection { grid-template-columns: minmax(0, 34%) minmax(0, 1fr); gap: 1.1rem; padding-top: 1rem; }
  #salonSelectionTitle { font-size: 1.35rem; }
  .salon-group + .salon-group { margin-top: 1.55rem; }
  .salon-fields { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding-top: 1rem; }
  .salon-sheet-bottom { padding-block: 0.7rem max(0.875rem, env(safe-area-inset-bottom)); }
  #salonPickerTitle { font-size: 1.875rem; }
  .salon-picker-heading { margin-bottom: 0.55rem; }
  .salon-picker-grid { gap: 1.25rem 0.8rem; }
  .salon-picker-filters { gap: 0 1.15rem; margin-bottom: 1rem; }
  .salon-picker-actions { gap: 0.75rem; }
  .salon-pending strong, .salon-tile-title { font-size: 1rem; }
  .salon-picker-actions .salon-primary-button { gap: 0.7rem; padding-inline: 1rem; }
}

@media (max-width: 374px) {
  .salon-sheet { --salon-gutter: 1rem; }
  .salon-selection { gap: 0.8rem; }
}

@media (max-height: 520px) {
  .salon-sheet-top { padding-block: max(0.2rem, env(safe-area-inset-top)) 0.2rem; }
  .salon-sheet-scroll { padding-block: 1rem 1.5rem; }
  .salon-sheet-bottom { padding-block: 0.5rem max(0.5rem, env(safe-area-inset-bottom)); }
  .salon-preview-note { margin-bottom: 0.35rem; }
}

/* At large text sizes keep the action visible; the full name remains on its photograph. */
@container salon (max-width: 18em) {
  .salon-sheet[data-view="picker"] .salon-sheet-top { display: flex; }
  .salon-sheet[data-view="picker"] .salon-signature { display: none; }
  .salon-picker-actions { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  .salon-pending { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.45rem; }
  #salonPendingCode { display: inline; color: var(--text-primary); font-weight: 600; }
  #salonPendingLabel {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
    overflow: hidden;
    white-space: nowrap;
  }
  .salon-picker-actions .salon-primary-button { min-width: 0; padding-block: 0.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .salon-sheet, html.salon-open .menu-backdrop, .salon-change-link .salon-icon, .salon-tile-art > img { transition: none; }
  .salon-tile:hover .salon-tile-art > img, .salon-selection:hover .salon-change-link .salon-icon { transform: none; }
}
