/* === MAISON 267 · SIFIR OKUMA ELİT TEMATİK MİMARİ & CANLI MANKEN KARŞILAŞMA SAHNESİ (v11221520) === */
:root {
  --m267-obsidian: #060608;
  --m267-slate: #0C0D11;
  --m267-silver: #D6DCE6;
  --m267-gold-line: #C9A96E;
  --m267-rose-line: #C88771;
  --m267-ivory: #F4EFE6;
  --m267-glow: rgba(201, 169, 110, 0.13);
}

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

html.m267-thematic,
body.m267-thematic {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--m267-obsidian) !important;
  color: var(--m267-ivory) !important;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

body.m267-thematic *,
body.m267-thematic *::before,
body.m267-thematic *::after {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

body.m267-thematic .m267-caption-minimal,
body.m267-thematic .m267-roman,
body.m267-thematic .m267-theme-title,
body.m267-thematic .m267-piece-roman,
body.m267-thematic .m267-mark {
  pointer-events: none !important;
  cursor: default !important;
}

/* 3B Sahne Modalı dahil TÜM okuma/açıklama/eski kürasyon metinlerini sıfırla — saf mücevher kutusu */
body.m267-thematic .stage-bar,
body.m267-thematic .amx-wizard,
body.m267-thematic .amx-monograph,
body.m267-thematic .amx-mono-craft,
body.m267-thematic .amx-mono-more,
body.m267-thematic .amx-mono-trail,
body.m267-thematic .amx-zone-block,
body.m267-thematic .amx-alloy-source-note,
body.m267-thematic .amx-bench-tuning,
body.m267-thematic [data-stage-more],
body.m267-thematic .modal-more,
body.m267-thematic .modal-sub,
body.m267-thematic .stage-hint {
  display: none !important;
}

body.m267-thematic dialog.modal-3d {
  width: min(calc(100vw - 16px), 880px) !important;
  max-width: calc(100vw - 16px) !important;
  margin-inline: auto !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  background: #08090C !important;
  border: 1px solid rgba(201, 169, 110, 0.24) !important;
  border-radius: 16px !important;
  padding: 14px !important;
  color: var(--m267-ivory) !important;
}

body.m267-thematic dialog.modal-3d .modal-3d-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  margin-bottom: 10px !important;
}

body.m267-thematic dialog.modal-3d #modal-3d-title {
  min-width: 0 !important;
  margin: 0 !important;
  font-size: clamp(15px, 4.3vw, 22px) !important;
  letter-spacing: 0.08em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body.m267-thematic dialog.modal-3d .modal-close {
  flex-shrink: 0 !important;
  padding: 0 14px !important;
  height: 36px !important;
  min-height: 36px !important;
  font-size: 11px !important;
  letter-spacing: 0.12em !important;
}

body.m267-thematic dialog.modal-3d .stage-live {
  display: block !important;
}

body.m267-thematic dialog.modal-3d .stage-frame {
  position: relative !important;
  width: 100% !important;
  height: min(72dvh, 620px) !important;
  min-height: 360px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #060608 !important;
}

body.m267-thematic dialog.modal-3d .stage-canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ⚭ Yakın Çekim Canlı Manken Tematik Karşılaşma Sahnesi */
.m267-pair-encounter {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 10px 66px;
  background: radial-gradient(circle at 50% 46%, #111319 0%, #060608 78%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.m267-pair-encounter.is-active {
  opacity: 1;
  pointer-events: auto;
}

.m267-pair-encounter[hidden] {
  display: none !important;
}

.m267-pair-encounter-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.85);
}

.m267-modal-hud {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 9, 12, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(214, 220, 230, 0.14);
}

.m267-modal-hud .m267-stage-mate-btn {
  position: static;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.m267-modal-swatches,
.m267-modal-partners {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.m267-modal-swatches[hidden],
.m267-modal-partners[hidden] {
  display: none !important;
}

.m267-partner-3b-pill {
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(201, 169, 110, 0.36);
  background: rgba(201, 169, 110, 0.10);
  color: var(--m267-ivory);
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-size: 12px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.24s ease, border-color 0.24s ease, color 0.24s ease;
}

.m267-partner-3b-pill:hover {
  background: rgba(201, 169, 110, 0.24);
  border-color: #F2D699;
  color: #FFF6E3;
}

.m267-partner-3b-pill small {
  font-family: var(--sans, -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--m267-gold-line);
}

.m267-modal-weight {
  font-family: var(--sans, -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(244, 239, 230, 0.76);
  white-space: nowrap;
  pointer-events: none;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  body.m267-thematic dialog.modal-3d {
    padding: 10px !important;
  }
  .m267-modal-hud {
    left: 6px;
    right: 6px;
    bottom: 8px;
    gap: 4px;
    padding: 4px 8px;
  }
  .m267-modal-hud .m267-stage-mate-btn {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }
  .m267-modal-hud .m267-swatch-pill {
    height: 28px;
    padding: 0 6px;
    gap: 3px;
  }
  .m267-partner-3b-pill {
    height: 28px;
    padding: 0 7px;
    font-size: 10.5px;
    letter-spacing: 0.04em;
    gap: 3px;
  }
  .m267-partner-3b-pill small {
    font-size: 8.5px;
    letter-spacing: 0.06em;
  }
  .m267-modal-weight {
    font-size: 9.5px;
    letter-spacing: 0.02em;
  }
}

/* Üst Bar: Yalnız Mücevher Evi Mührü ve Tek Dokunuş Dil Geçişi (390px Sıfır Taşma) */
.m267-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(48px, auto) 1fr 48px;
  align-items: center;
  height: 68px;
  padding-inline: clamp(14px, 4vw, 56px);
  background: rgba(6, 6, 8, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(214, 220, 230, 0.05);
  pointer-events: none;
}

.m267-topbar a,
.m267-topbar button {
  pointer-events: auto;
}

.m267-chapter-nav {
  grid-column: 1;
  justify-self: start;
  display: flex;
  gap: 6px;
  align-items: center;
}

.m267-chapter-nav:empty {
  display: none;
}

.m267-ch-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(214, 220, 230, 0.16);
  background: transparent;
  color: rgba(244, 239, 230, 0.56);
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-size: 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.m267-ch-btn[aria-pressed="true"],
.m267-ch-btn:hover {
  color: var(--m267-ivory);
  border-color: var(--m267-gold-line);
  background: rgba(201, 169, 110, 0.14);
}

.m267-mark {
  grid-column: 2;
  justify-self: center;
  text-align: center;
  text-decoration: none;
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-weight: 300;
  font-size: clamp(16px, 2.1vw, 22px);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  color: var(--m267-ivory);
  text-transform: uppercase;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.m267-lang-link {
  grid-column: 3;
  justify-self: end;
  width: 44px;
  height: 44px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans, -apple-system, BlinkMacSystemFont, sans-serif);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-indent: 0.2em;
  color: rgba(244, 239, 230, 0.48);
  border-radius: 50%;
  transition: color 0.35s ease, border-color 0.35s ease;
  border: 1px solid transparent;
}

.m267-lang-link:hover {
  color: var(--m267-ivory);
  border-color: rgba(201, 169, 110, 0.32);
}

/* Tematik Sahne: Sıfır Kelime Anlatımı — Yalnız Işık, Kiral Metal Heykel ve Dokunmatik Kenetlenme */
.m267-theme-stage {
  position: relative;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 76px 20px 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, var(--m267-glow) 0%, rgba(12, 13, 17, 0.42) 44%, rgba(6, 6, 8, 1) 78%),
    var(--m267-obsidian);
}

.m267-sculpture-btn {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  width: min(84vw, 490px);
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.m267-sculpture-btn:focus-visible {
  outline: 1px solid rgba(201, 169, 110, 0.45);
  outline-offset: 8px;
  border-radius: 50%;
}

.m267-sculpture-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.92));
  transform: rotateX(var(--m267-tilt-y, 0deg)) rotateY(var(--m267-tilt-x, 0deg));
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.m267-halo-ring {
  transform-origin: 260px 260px;
  opacity: 0.38;
  transition: opacity 1.5s cubic-bezier(0.22, 1, 0.36, 1), transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.m267-theme-stage.is-interlocked .m267-halo-ring {
  opacity: 0.85;
  transform: scale(0.985);
}

.m267-curve-upper {
  transform-origin: 260px 260px;
  transform: translate3d(-15px, -18px, 0) rotate(-2.8deg);
  transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.m267-curve-lower {
  transform-origin: 260px 260px;
  transform: translate3d(15px, 18px, 0) rotate(2.8deg);
  transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.m267-theme-stage.is-interlocked .m267-curve-upper,
.m267-sculpture-btn:hover .m267-curve-upper {
  transform: translate3d(0, 0, 0) rotate(0deg);
}

.m267-theme-stage.is-interlocked .m267-curve-lower,
.m267-sculpture-btn:hover .m267-curve-lower {
  transform: translate3d(0, 0, 0) rotate(0deg);
}

.m267-seam-glow {
  opacity: 0.14;
  transition: opacity 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.m267-theme-stage.is-interlocked .m267-seam-glow,
.m267-sculpture-btn:hover .m267-seam-glow {
  opacity: 0.96;
}

.m267-caption-minimal {
  margin-top: clamp(4px, 1.5vh, 14px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.m267-roman {
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--m267-gold-line);
}

.m267-theme-title {
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.08;
  letter-spacing: 0.03em;
  color: var(--m267-ivory);
  margin: 0;
}

/* Kelimesiz Çift Kenetlenme Mührü (⚭) */
.m267-sigil-row {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  opacity: 0.62;
  transition: opacity 0.6s ease;
}

.m267-theme-stage.is-interlocked .m267-sigil-row {
  opacity: 1;
}

.m267-sigil-ring {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid var(--m267-silver);
  display: inline-block;
  transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1), border-color 1.2s ease;
}

.m267-sigil-ring--b {
  margin-left: -19px;
  border-color: var(--m267-gold-line);
}

.m267-theme-stage:not(.is-interlocked) .m267-sigil-ring--a {
  transform: translateX(-4px);
}

.m267-theme-stage:not(.is-interlocked) .m267-sigil-ring--b {
  transform: translateX(4px);
}

/* Eser geldiğinde üst amblem zarifçe çekilir, ilk eser doğrudan ilk ekranda (kaydırmadan!) görünür */
body.m267-thematic.has-pieces .m267-theme-stage {
  min-height: auto;
  padding: 68px 20px 18px;
}

body.m267-thematic.has-pieces .m267-sculpture-btn {
  width: min(46vw, 220px);
}

body.m267-thematic.has-pieces .m267-theme-title {
  font-size: clamp(24px, 4.2vw, 38px);
}

/* Ürün Vitrini: Boşken %100 Görünmez, Eser Geldiğinde Saf Diptych Galeri */
.m267-diptych-section[hidden],
.m267-diptych-grid:empty {
  display: none !important;
}

.m267-diptych-section {
  padding: 12px clamp(16px, 4vw, 56px) 88px;
  max-width: 1380px;
  margin: 0 auto;
  width: 100%;
}

.m267-diptych-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: clamp(18px, 2.8vw, 36px);
}

.m267-piece-plinth {
  position: relative;
  background: #060608;
  border: 1px solid rgba(214, 220, 230, 0.09);
  border-radius: 10px;
  aspect-ratio: 16 / 11;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  transition: border-color 0.45s ease;
}

.m267-piece-plinth:hover {
  border-color: rgba(201, 169, 110, 0.34);
}

.m267-piece-plinth img.m267-ed-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.9s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.32s ease;
}

.m267-piece-plinth img.m267-ed-img.m267-ed-img--studio {
  object-fit: cover;
  object-position: center center;
  padding: 0;
  background: #060608;
}

.m267-piece-plinth img.m267-ed-img.is-visible {
  opacity: 1;
}

.m267-piece-plinth:hover img.m267-ed-img.is-visible {
  transform: scale(1.022);
}

.m267-piece-hud {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(180deg, rgba(6, 6, 8, 0) 0%, rgba(6, 6, 8, 0.84) 100%);
}

.m267-piece-roman {
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-weight: 300;
  font-size: 15px;
  letter-spacing: 0.2em;
  white-space: nowrap;
  flex-shrink: 0;
  color: rgba(244, 239, 230, 0.82);
}

.m267-swatches {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px;
  min-width: 0;
  flex-shrink: 1;
  border-radius: 999px;
  background: rgba(10, 11, 15, 0.72);
  border: 1px solid rgba(214, 220, 230, 0.12);
}

.m267-swatch-pill {
  height: 32px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  color: rgba(244, 239, 230, 0.62);
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.m267-swatch-pill[aria-pressed="true"] {
  background: rgba(201, 169, 110, 0.18);
  border-color: rgba(201, 169, 110, 0.55);
  color: #FFF6E3;
}

.m267-swatch-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.34);
  flex-shrink: 0;
}

.m267-swatch-num {
  font-family: var(--serif, "Cormorant Garamond", Georgia, serif);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  line-height: 1;
}

.m267-hud-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.m267-icon-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(214, 220, 230, 0.22);
  background: rgba(12, 13, 17, 0.74);
  backdrop-filter: blur(8px);
  color: var(--m267-ivory);
  font-size: 12px;
  letter-spacing: 0.14em;
  line-height: 1;
  flex-shrink: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

@media (max-width: 480px) {
  .m267-diptych-section {
    padding: 10px 12px 72px;
  }
  .m267-piece-hud {
    padding: 12px 12px;
    gap: 6px;
  }
  .m267-piece-roman {
    font-size: 13px;
    letter-spacing: 0.11em;
  }
  .m267-swatches {
    gap: 2px;
    padding: 2px;
  }
  .m267-swatch-pill {
    height: 30px;
    padding: 0 6.5px;
    gap: 3.5px;
  }
  .m267-swatch-dot {
    width: 11px;
    height: 11px;
  }
  .m267-swatch-num {
    font-size: 10.5px;
    letter-spacing: 0.03em;
  }
  .m267-hud-actions {
    gap: 5px;
  }
  .m267-icon-btn {
    min-width: 38px;
    width: 38px;
    min-height: 38px;
    height: 38px;
    padding: 0;
    font-size: 11px;
    letter-spacing: 0.06em;
  }
  .m267-icon-btn[data-m267-mate-open] {
    font-size: 15px;
    letter-spacing: 0;
  }
}

@media (max-width: 355px) {
  .m267-piece-hud {
    padding: 10px 9px;
    gap: 4px;
  }
  .m267-piece-roman {
    font-size: 12px;
    letter-spacing: 0.08em;
  }
  .m267-swatch-pill {
    height: 28px;
    padding: 0 5px;
    gap: 3px;
  }
  .m267-icon-btn {
    min-width: 34px;
    width: 34px;
    min-height: 34px;
    height: 34px;
  }
}

.m267-icon-btn:hover,
.m267-icon-btn[aria-pressed="true"] {
  border-color: var(--m267-gold-line);
  background: rgba(201, 169, 110, 0.18);
  color: #FFF4DC;
}

/* 3B Sahne İçi Yüzen ⚭ Kenetlenme / Karşılaşma Butonu */
.m267-stage-mate-btn {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 12;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 110, 0.42);
  background: rgba(8, 9, 12, 0.78);
  backdrop-filter: blur(10px);
  color: var(--m267-gold-line);
  font-size: 19px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.m267-stage-mate-btn[hidden] {
  display: none !important;
}

.m267-stage-mate-btn[aria-pressed="true"] {
  background: rgba(201, 169, 110, 0.28);
  border-color: #F2D699;
  color: #FFF6E3;
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .m267-curve-upper, .m267-curve-lower, .m267-seam-glow, .m267-halo-ring, .m267-sculpture-svg, .m267-pair-encounter {
    transition: none !important;
  }
}
