/* ============================================================
   LOOM & LINE — Bespoke tailoring
   Libre Baskerville + Manrope · Ivory workshop · Thread gold
   ============================================================ */

:root {
  --ivory: #f7f4ef;
  --ivory-deep: #ede8df;
  --charcoal: #1c1b19;
  --charcoal-soft: #2a2926;
  --gold: #c4a574;
  --gold-light: #dbc49a;
  --gold-dim: rgba(196, 165, 116, 0.35);
  --slate: #6e6a63;
  --slate-light: #9a958c;
  --border: rgba(28, 27, 25, 0.1);
  --border-strong: rgba(28, 27, 25, 0.18);
  --fabric: #1a2332;
  --lining: #5c2430;
  --font-display: "Libre Baskerville", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --container: 1180px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(196, 165, 116, 0.25); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--ivory-deep);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── SCROLL PROGRESS ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 500;
  background: transparent;
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}

.scroll-progress::after {
  content: "";
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

/* ── WEAVE CANVAS ── */
.weave-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.45;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: var(--nav-h);
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease);
}

.nav.scrolled {
  background: rgba(247, 244, 239, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-mark {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--charcoal);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 15px;
  border-radius: 4px;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.logo-text em { font-style: italic; color: var(--slate); }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--slate);
  transition: color 0.25s;
}

.nav-links a:hover { color: var(--charcoal); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 1.5px;
  background: var(--charcoal);
  transition: transform 0.3s;
}

.nav-toggle span:first-child { top: 14px; }
.nav-toggle span:last-child { top: 22px; }

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--ivory);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px 28px;
  flex-direction: column;
  gap: 16px;
  z-index: 290;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a { font-size: 15px; font-weight: 500; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s;
}

.btn:hover { transform: translateY(-1px); }

.btn-gold {
  background: var(--charcoal);
  color: var(--ivory);
  border-color: var(--charcoal);
}

.btn-gold:hover {
  background: var(--charcoal-soft);
  box-shadow: 0 8px 24px rgba(28, 27, 25, 0.18);
}

.btn-sm { padding: 10px 18px; font-size: 12px; }
.btn-full { width: 100%; }

/* ── TYPOGRAPHY ── */
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.body {
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.7;
  max-width: 42ch;
}

.body.center { text-align: center; margin-left: auto; margin-right: auto; }
.body.wide { max-width: 58ch; }

.section {
  position: relative;
  z-index: 1;
  padding: 96px 24px;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

/* ── REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── HERO ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 48px) 24px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-title em { font-style: italic; color: var(--slate); }

.hero-lead {
  font-size: 1.05rem;
  color: var(--slate);
  line-height: 1.65;
  max-width: 40ch;
  margin-bottom: 28px;
}

.hero-meta {
  display: flex;
  gap: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hero-meta-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 4px;
}

.hero-meta-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-light);
}

/* ── GARMENT STAGE ── */
.hero-stage {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.garment-viewport {
  position: relative;
  aspect-ratio: 4/5;
  max-height: 520px;
  background: linear-gradient(165deg, var(--ivory-deep) 0%, #e8e2d8 100%);
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow:
    0 24px 64px rgba(28, 27, 25, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
}

.garment-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, var(--gold-dim), transparent 70%);
  pointer-events: none;
  transition: opacity 0.5s;
}

.garment-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.garment-photo:not([hidden]) + .garment-svg { opacity: 0; }

.garment-svg {
  width: 72%;
  max-height: 88%;
  filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.15));
  transition: opacity 0.4s;
}

.garment-fill {
  fill: var(--fabric);
  stroke: rgba(0, 0, 0, 0.12);
  stroke-width: 0.5;
  transition: fill 0.55s var(--ease-spring);
}

.garment-lining {
  fill: var(--lining);
  opacity: 0.85;
  transition: fill 0.55s var(--ease-spring);
}

.garment-btn {
  fill: var(--gold);
  stroke: rgba(0, 0, 0, 0.2);
  stroke-width: 0.5;
}

.garment-label {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  background: rgba(247, 244, 239, 0.92);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  white-space: nowrap;
  z-index: 3;
}

/* Fabric themes on body */
body[data-fabric="midnight"] { --fabric: #1a2332; --lining: #5c2430; }
body[data-fabric="charcoal"] { --fabric: #3d3d3d; --lining: #2a2926; }
body[data-fabric="slate"] { --fabric: #3d4f5f; --lining: #1a2332; }
body[data-fabric="camel"] { --fabric: #b8956b; --lining: #5c4030; }
body[data-fabric="forest"] { --fabric: #2a4035; --lining: #1c1b19; }
body[data-fabric="burgundy"] { --fabric: #5c2430; --lining: #1a2332; }

/* ── CONFIG PANEL ── */
.config-panel {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 8px 32px rgba(28, 27, 25, 0.04);
}

.config-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-bottom: 10px;
}

.config-group { margin-bottom: 14px; }
.config-group:last-child { margin-bottom: 0; }

.config-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.swatch-rail {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}

.swatch:hover { transform: translateY(-2px); }

.swatch.is-active {
  background: var(--ivory);
  border-color: var(--border-strong);
  box-shadow: 0 4px 12px rgba(28, 27, 25, 0.06);
}

.swatch-chip {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.swatch-name {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
}

.toggle-group {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--ivory-deep);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.toggle {
  flex: 1;
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
  cursor: pointer;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.toggle.is-active {
  background: var(--charcoal);
  color: var(--ivory);
  box-shadow: 0 2px 8px rgba(28, 27, 25, 0.15);
}

.config-detail {
  font-size: 13px;
  color: var(--slate);
  line-height: 1.55;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  min-height: 3.2em;
  transition: opacity 0.3s;
}

.hero-hint {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-top: 32px;
}

/* ── MARQUEE ── */
.marquee-band {
  position: relative;
  z-index: 1;
  background: var(--charcoal);
  color: var(--gold-light);
  padding: 14px 0;
  overflow: hidden;
  border-block: 1px solid rgba(196, 165, 116, 0.15);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee-track span { padding-right: 48px; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── FABRICS ── */
.fabrics { background: var(--ivory); }

.fabric-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.fabric-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}

.fabric-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(28, 27, 25, 0.08);
}

.fabric-card.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold-dim), 0 12px 32px rgba(28, 27, 25, 0.06);
}

.fabric-card__chip {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--swatch);
  margin-bottom: 16px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.12);
}

.fabric-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.fabric-card p {
  font-size: 13px;
  color: var(--slate);
  margin-bottom: 12px;
}

.fabric-card__price {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gold);
}

/* ── JOURNEY ── */
.journey {
  position: relative;
  z-index: 1;
  background: var(--charcoal);
  color: var(--ivory);
}

.journey-pin {
  height: 320vh;
  position: relative;
}

.journey-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: calc(var(--nav-h) + 32px) 24px 48px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  max-width: calc(var(--container) + 48px);
  margin: 0 auto;
  align-items: start;
}

.journey-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.journey-intro .kicker { color: var(--gold-light); }
.journey-intro .h2 { color: var(--ivory); }
.journey-intro .body { color: rgba(247, 244, 239, 0.65); }

.journey-progress-wrap {
  margin-top: 28px;
}

.journey-progress {
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}

.journey-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transition: width 0.15s linear;
}

.journey-step-readout {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.journey-steps {
  position: relative;
  min-height: 280px;
}

.journey-step {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}

.journey-step.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.journey-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--gold);
  display: block;
  margin-bottom: 10px;
}

.journey-step h3 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 400;
  margin-bottom: 12px;
}

.journey-step p {
  font-size: 0.95rem;
  color: rgba(247, 244, 239, 0.72);
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 48ch;
}

.journey-measures {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.journey-measures li {
  font-size: 13px;
  color: rgba(247, 244, 239, 0.55);
  padding-left: 16px;
  position: relative;
}

.journey-measures li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.media-slot--journey {
  position: sticky;
  top: calc(var(--nav-h) + 48px);
}

.media-slot--journey .media-slot__frame {
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--charcoal-soft);
}

/* ── CRAFT ── */
.craft { background: var(--ivory-deep); }

.craft-split {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.craft-callouts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 28px 0 20px;
}

.craft-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}

.craft-callout:hover { transform: translateX(4px); }

.craft-callout.is-active {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 27, 25, 0.06);
}

.craft-callout__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 6px;
}

.craft-callout span:last-child {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.5;
}

.craft-callout strong { color: var(--charcoal); font-weight: 600; }

.craft-detail {
  font-size: 14px;
  color: var(--slate);
  line-height: 1.65;
  min-height: 4.5em;
  transition: opacity 0.3s;
}

/* ── LOOKBOOK ── */
.lookbook { background: var(--ivory); }

.lookbook-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.lookbook-grid .media-slot:first-child {
  grid-row: span 2;
}

/* ── HOUSE ── */
.house {
  background: var(--charcoal);
  color: var(--ivory);
  padding-bottom: 0;
}

.house-inner {
  max-width: var(--container);
  margin: 0 auto 48px;
  text-align: center;
}

.house .kicker { color: var(--gold-light); }
.house .h2 { color: var(--ivory); }
.house .body { color: rgba(247, 244, 239, 0.65); margin: 0 auto; }

.house-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.house-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.house-stats span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 244, 239, 0.45);
}

.media-slot--house {
  max-width: var(--container);
  margin: 0 auto;
}

.media-slot--house .media-slot__frame {
  border-radius: 20px 20px 0 0;
  border-bottom: none;
}

/* ── VOICES ── */
.voices {
  background: var(--ivory-deep);
  padding: 80px 24px;
}

.voices-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.voices-grid blockquote {
  padding: 28px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.voices-grid p {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.55;
  color: var(--charcoal);
  margin-bottom: 16px;
}

.voices-grid footer {
  font-size: 12px;
  color: var(--slate-light);
}

/* ── FITTING ── */
.fitting { background: var(--ivory); }

.fitting-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.fitting-list {
  list-style: none;
  margin-top: 20px;
}

.fitting-list li {
  font-size: 14px;
  color: var(--slate);
  padding: 8px 0;
  padding-left: 18px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.fitting-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.fitting-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(28, 27, 25, 0.06);
}

.fitting-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--slate);
}

.fitting-form label.full { grid-column: 1 / -1; }

.fitting-form input,
.fitting-form select,
.fitting-form textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--ivory);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fitting-form input:focus,
.fitting-form select:focus,
.fitting-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}

.fitting-form button { grid-column: 1 / -1; margin-top: 8px; }

/* ── MEDIA SLOTS (image-ready) ── */
.media-slot__frame {
  position: relative;
  min-height: 280px;
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
  background: linear-gradient(135deg, var(--ivory-deep) 0%, #e5dfd4 100%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}

.media-slot__frame--wide { aspect-ratio: 4/3; min-height: auto; }
.media-slot__frame--tall { aspect-ratio: 4/5; min-height: auto; }
.media-slot__frame--cinema { aspect-ratio: 16/9; min-height: auto; }

.media-slot__frame:has(.media-slot__img:not([hidden])) {
  padding: 0;
  border-style: solid;
  border-color: var(--border);
}

.media-slot__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.media-slot__img:not([hidden]) ~ .media-slot__badge,
.media-slot__img:not([hidden]) ~ .media-slot__title,
.media-slot__img:not([hidden]) ~ .media-slot__use,
.media-slot__img:not([hidden]) ~ .media-slot__copy,
.media-slot__img:not([hidden]) ~ .media-slot__prompt {
  display: none;
}

.media-slot__badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(196, 165, 116, 0.15);
  padding: 4px 10px;
  border-radius: 999px;
}

.media-slot__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--charcoal);
}

.media-slot__use {
  font-size: 12px;
  color: var(--slate-light);
}

.media-slot__copy {
  align-self: flex-start;
  margin-top: auto;
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.media-slot__copy:hover { background: #fff; border-color: var(--gold); }
.media-slot__copy.copied { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }

.media-slot__prompt {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  color: var(--slate);
  resize: vertical;
  min-height: 72px;
}

/* ── FOOTER ── */
.footer {
  position: relative;
  z-index: 1;
  background: var(--charcoal-soft);
  color: rgba(247, 244, 239, 0.55);
  padding: 56px 24px 32px;
}

.footer-grid {
  max-width: var(--container);
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand .logo-text {
  color: var(--ivory);
  display: block;
  margin-bottom: 8px;
}

.footer-brand p { font-size: 13px; }

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.footer-col p,
.footer-col a {
  display: block;
  font-size: 13px;
  padding: 3px 0;
}

.footer-col a:hover { color: var(--ivory); }

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 600;
  padding: 14px 24px;
  background: var(--charcoal);
  color: var(--ivory);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  transition: transform 0.5s var(--ease-spring);
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .garment-viewport { max-height: 420px; }
  .journey-pin { height: auto; }
  .journey-sticky {
    position: relative;
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .journey-steps {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
  }
  .journey-step {
    position: relative;
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .journey-progress-wrap { display: none; }
  .media-slot--journey { position: relative; top: 0; }
  .craft-split,
  .fitting-inner { grid-template-columns: 1fr; }
  .fabric-grid { grid-template-columns: repeat(2, 1fr); }
  .house-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-inner > .btn { display: none; }
  .nav-toggle { display: block; margin-left: auto; }
  .hero-meta { flex-direction: column; gap: 16px; }
  .fabric-grid,
  .lookbook-grid,
  .voices-grid { grid-template-columns: 1fr; }
  .lookbook-grid .media-slot:first-child { grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .fitting-form { grid-template-columns: 1fr; }
  .config-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .reveal { transition: opacity 0.4s; transform: none; }
  .journey-step { transition: opacity 0.3s; transform: none; }
}
