/* ==========================================================================
   HALFWAKE STUDIO — POLESTAR / LEICA NORDIC STUDIO WHITE DESIGN SYSTEM
   Palette:
     --bg:          #FFFFFF (Pure Gallery Studio White)
     --bg-deep:     #F5F5F4 (Architectural Alabaster)
     --surface:     #F7F7F5 (Precision Card Surface)
     --silk:        #0A0A0A (Deep Leica Black Ink)
     --sand:        #5C5C61 (Graphite Muted Copy)
     --brass:       #FF5500 (Rationed Leica Precision Orange Accent)
     --line:        #E2E2DF (Architectural 1px Hairline)
     --line-strong: #C6C6C1 (Emphasized Hairline)
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --bg-deep: #F5F5F4;
  --surface: #F7F7F5;
  --silk: #0A0A0A;
  --sand: #5C5C61;
  --dim: #8A8A90;
  --brass: #FF5500;
  --line: #E2E2DF;
  --line-strong: #C6C6C1;
  --serif: 'Space Grotesk', 'Plus Jakarta Sans', 'Noto Sans SC', -apple-system, sans-serif;
  --sans: 'Plus Jakarta Sans', 'Inter', 'Noto Sans SC', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

html, body {
  background-color: var(--bg) !important;
  color: var(--silk) !important;
  font-family: var(--sans) !important;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden !important;
  -webkit-font-smoothing: antialiased;
}

/* Crisp Architectural Grotesque Typography */
.font-serif, h1, h2, h3, .maison-serif {
  font-family: var(--serif) !important;
  font-weight: 400 !important;
  letter-spacing: -0.025em;
  color: var(--silk);
}

.font-mono, .maison-mono {
  font-family: var(--mono) !important;
  letter-spacing: 0.14em !important;
}

/* ==========================================================================
   SEMANTIC UTILITY REMAPPING -> POLESTAR / LEICA STUDIO WHITE
   ========================================================================== */
.bg-obsidian { background-color: var(--bg) !important; }
.bg-obsidian\/95, .bg-obsidian\/98, .bg-obsidian\/90, .bg-obsidian\/85, .bg-obsidian\/80 {
  background-color: rgba(255, 255, 255, 0.96) !important;
}
.bg-charcoal, .bg-charcoal\/90 { background-color: var(--surface) !important; }
.bg-charcoal\/30, .bg-charcoal\/50 { background-color: var(--bg-deep) !important; }
.bg-velvet { background-color: #EFEFED !important; }
.bg-white\/5, .bg-white\/10 { background-color: var(--bg-deep) !important; }
.hover\:bg-white\/10:hover, .hover\:bg-white\/20:hover { background-color: #EAEAE6 !important; }
.hover\:bg-velvet:hover { background-color: #EAEAE6 !important; }

.text-ivory, .text-ivory\/90, .text-ivory\/85, .text-ivory\/80 { color: var(--silk) !important; }
.text-pewter, .text-pewter\/80 { color: var(--sand) !important; }
.text-gold, .text-gold-light, .text-gold-light\/90, .text-gold-light\/95 { color: var(--brass) !important; }
.text-obsidian { color: #FFFFFF !important; }
.text-white\/20 { color: var(--line-strong) !important; }
.hover\:text-ivory:hover { color: var(--silk) !important; }
.hover\:text-gold-light:hover, .group:hover .group-hover\:text-gold-light { color: var(--brass) !important; }

.border-white\/10, .border-white\/15, .border-white\/20, .border-white\/5, .border-white\/30 {
  border-color: var(--line) !important;
}
.border-gold, .border-gold\/45, .border-gold\/40, .border-gold\/50, .border-gold\/35, .border-gold\/30 {
  border-color: var(--line-strong) !important;
}
.group:hover .group-hover\:border-gold { border-color: var(--silk) !important; }

/* Preserve high-contrast white ink inside dark video/media overlays */
.bg-black .text-ivory,
.bg-black\/80,
.bg-black\/80 .text-ivory,
.bg-black\/75,
.bg-black\/75 .text-ivory {
  color: #FFFFFF !important;
}
.bg-black .text-gold-light,
.bg-black\/75.text-gold-light {
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}
.bg-black .border-white\/20,
.bg-black .border-white\/15 {
  border-color: rgba(255, 255, 255, 0.24) !important;
}

.gold-gradient-text {
  background: none !important;
  -webkit-text-fill-color: var(--dim) !important;
  color: var(--dim) !important;
  font-style: normal !important;
}

.gold-border-glow {
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
  border-radius: 2px !important;
  background-color: var(--surface);
  transition: border-color 0.22s ease !important;
}
article.gold-border-glow:hover {
  border-color: var(--silk) !important;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border-color: var(--line) !important;
}

/* Crisp Polestar Architectural Corners */
.rounded-3xl, .rounded-2xl, .rounded-xl, .rounded-lg {
  border-radius: 2px !important;
}

/* Primary Buttons -> Solid Leica Black (#0A0A0A) -> Charcoal Hover */
.bg-gold, .btn-gold, .btn-silk {
  background: var(--silk) !important;
  color: #FFFFFF !important;
  border: 1px solid var(--silk) !important;
  border-radius: 2px !important;
  font-family: var(--sans) !important;
  font-weight: 500 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease !important;
  box-shadow: none !important;
}
.bg-gold:hover, .btn-gold:hover, .btn-silk:hover {
  background: #262628 !important;
  border-color: #262628 !important;
  color: #FFFFFF !important;
  filter: none !important;
  transform: none !important;
}

/* Secondary Outline Buttons on Pricing & Subpages */
button.bg-obsidian.border,
a.bg-obsidian.border {
  background-color: #FFFFFF !important;
  color: var(--silk) !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 2px !important;
  transition: all 0.2s ease !important;
}
button.bg-obsidian.border:hover,
a.bg-obsidian.border:hover {
  background-color: var(--silk) !important;
  color: #FFFFFF !important;
  border-color: var(--silk) !important;
}

/* Language Switcher */
.lang-pill-btn {
  border-radius: 2px !important;
  color: var(--sand);
}
.lang-pill-btn.active {
  background: var(--silk) !important;
  color: #FFFFFF !important;
  font-weight: 500 !important;
}

/* Top Announcement Bar */
.maison-topbar {
  padding: 9px 24px;
  text-align: center;
  font-family: var(--mono) !important;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--silk) !important;
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep) !important;
}

/* Symmetrical 3-Column Architectural Header */
.maison-header-inner {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 5vw;
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.maison-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
}
.maison-nav a {
  color: var(--sand);
  transition: color 0.18s ease;
  white-space: nowrap;
}
.maison-nav a:hover, .maison-nav a.active {
  color: var(--silk);
}
.maison-crest {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}
.maison-crest-title {
  font-family: var(--serif) !important;
  font-size: 21px;
  font-weight: 600 !important;
  letter-spacing: 0.28em;
  color: var(--silk);
  line-height: 1;
}
.maison-crest-sub {
  font-family: var(--mono) !important;
  font-size: 8.5px;
  letter-spacing: 0.24em;
  color: var(--dim);
  margin-top: 5px;
  text-transform: uppercase;
}
.maison-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

/* Centered Studio Gallery Hero */
.maison-hero {
  padding: 68px 5vw 80px;
  text-align: center;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
}
.maison-eyebrow {
  font-family: var(--mono) !important;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--brass) !important;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.maison-hero-h1 {
  font-family: var(--serif) !important;
  font-size: clamp(36px, 4.8vw, 68px);
  font-weight: 400 !important;
  line-height: 1.06;
  letter-spacing: -0.036em;
  max-width: 1020px;
  margin: 0 auto 20px;
  color: var(--silk);
}
.maison-hero-h1 em {
  font-style: normal;
  color: var(--dim);
  display: block;
  margin-top: 6px;
}
.maison-hero-sub {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--sand);
  font-weight: 400;
}
.maison-pillars {
  max-width: 780px;
  margin: 34px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.maison-stage {
  width: 100%;
  max-width: 1380px;
  min-width: 0;
  margin: 44px auto 0;
  border: 1px solid var(--silk);
  padding: 6px;
  background: #050505;
  box-shadow: none;
  box-sizing: border-box;
  overflow: hidden;
}
.maison-stage video {
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 21 / 9;
  height: auto !important;
  object-fit: cover;
  display: block;
}

/* Asymmetric Staggered Lookbook */
.lookbook-head {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 68px;
}
.look-item-flagship {
  width: 100%;
  max-width: 1320px;
  min-width: 0;
  margin: 0 auto 76px;
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.82fr);
  gap: 44px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 34px;
  box-sizing: border-box;
  overflow: hidden;
}
.look-item-flagship > * {
  min-width: 0;
  max-width: 100%;
}
.look-pair {
  width: 100%;
  max-width: 1320px;
  min-width: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 52px 44px;
  align-items: stretch;
  box-sizing: border-box;
}
.look-pair > * {
  min-width: 0;
  max-width: 100%;
}
.look-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
  overflow: hidden;
}
.look-card > * {
  min-width: 0;
  max-width: 100%;
}
.look-card.offset {
  margin-top: 0;
}
.look-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.look-card-actions {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.look-video {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  padding: 6px;
  background: #FFFFFF;
  cursor: pointer;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
  overflow: hidden;
}
.look-video:hover {
  border-color: var(--silk);
}
.look-video video,
.aspect-video > video {
  width: 100% !important;
  max-width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  object-fit: cover;
  display: block;
  background: #050505;
}
.aspect-video {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
}
.look-raw-tag {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  width: 100%;
  max-width: 100%;
  min-height: 58px;
  box-sizing: border-box;
}
.look-raw-thumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.look-raw-tag img {
  width: 40px !important;
  height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  object-fit: cover;
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
  display: block;
}
.look-raw-more {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--silk);
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  flex-shrink: 0;
}
.look-raw-tag span {
  font-size: 12px;
  line-height: 1.4;
  color: var(--sand);
  min-width: 0;
  flex: 1;
}

/* Before/After Matted Frame */
.maison-ba-stage {
  border: 1px solid var(--line-strong) !important;
  padding: 6px;
  background: #FFFFFF !important;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.maison-ba-stage > div {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.maison-ba-stage video,
.maison-ba-stage img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: cover;
}
#baDividerLine {
  background-color: var(--brass) !important;
}

/* Form Inputs in Crisp Studio White */
input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
  background-color: #FFFFFF !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 2px !important;
  color: var(--silk) !important;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--silk) !important;
  outline: none !important;
}
input::placeholder, textarea::placeholder {
  color: var(--dim) !important;
}

/* Floating Shopify Widget Restyle -> Polestar Crisp Black Frame */
#hw-live-pill-demo .hw-mini {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14), 0 0 0 1px #0a0a0a !important;
  border-radius: 2px !important;
}
#hw-live-pill-demo .hw-dot {
  background: #ff5500 !important;
  box-shadow: none !important;
}

@media (max-width: 1023px) {
  .maison-topbar {
    font-size: 9px;
    letter-spacing: 0.14em;
    padding: 8px 12px;
    line-height: 1.4;
  }
  .maison-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    height: 66px;
    padding: 0 16px;
    gap: 12px;
  }
  .maison-nav {
    display: none;
  }
  .maison-crest {
    align-items: flex-start;
    text-align: left;
    min-width: 0;
  }
  .maison-crest-title {
    font-size: 17px;
    letter-spacing: 0.2em;
  }
  .maison-crest-sub {
    font-size: 8px;
    letter-spacing: 0.14em;
    white-space: nowrap;
  }
  .maison-hero {
    padding: 44px 16px 52px;
  }
  .maison-hero-h1 {
    font-size: clamp(30px, 8vw, 44px);
    word-break: break-word;
  }
  .maison-stage {
    padding: 4px;
    margin-top: 30px;
  }
  .maison-stage video {
    aspect-ratio: 16 / 9;
  }
  .lookbook-head {
    margin-bottom: 44px;
  }
  .look-item-flagship,
  .look-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .look-item-flagship {
    padding: 18px;
    margin-bottom: 44px;
  }
  .look-card.offset {
    margin-top: 0;
  }
}

/* Tailwind Grid & Modal Utilities */
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.flex-shrink-0, .shrink-0 {
  flex-shrink: 0 !important;
}
.order-1 { order: 1; }
.order-2 { order: 2; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-\[1320px\] { max-width: 1320px; }
.max-w-\[1600px\] { max-width: 1600px; }
.max-h-\[520px\] { max-height: 520px; }
.max-h-\[76vh\] { max-height: 76vh; }
.max-h-\[78vh\] { max-height: 78vh; }
.w-11 { width: 2.75rem; }
.w-12 { width: 3rem; }
.gap-7 { gap: 1.75rem; }

.maison-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}
.maison-modal-video-col {
  order: 1;
  min-width: 0;
}
.maison-modal-info-col {
  order: 2;
  min-width: 0;
}

@media (min-width: 1024px) {
  .lg\:grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
  }
  .lg\:col-span-4 {
    grid-column: span 4 / span 4 !important;
  }
  .lg\:col-span-8 {
    grid-column: span 8 / span 8 !important;
  }
  .lg\:order-1 { order: 1 !important; }
  .lg\:order-2 { order: 2 !important; }
  .maison-modal-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 2rem;
  }
  .maison-modal-info-col {
    grid-column: span 4 / span 4 !important;
    order: 1 !important;
  }
  .maison-modal-video-col {
    grid-column: span 8 / span 8 !important;
    order: 2 !important;
  }
}

