/* ==========================================================================
 * SOVEREIGN EMBASSY ARCHITECTURAL DESIGN SYSTEM (`embassy.css` · v6.1)
 * Honed Basalt · Smoked Walnut · Brushed Antique Brass · Illuminated Vellum
 * Sole IP: David Patrick Ward t/a A.Ward Publications (CRO RBN 739404)
 * ========================================================================== */

:root {
  --basalt-void: #090b0c;
  --basalt-deep: #0e1113;
  --basalt-slab: #15191c;
  --walnut-deep: #1b140f;
  --walnut-panel: rgba(25, 19, 15, 0.88);
  --brass: #c89d54;
  --brass-bright: #e7c687;
  --brass-muted: rgba(200, 157, 84, 0.34);
  --brass-faint: rgba(200, 157, 84, 0.16);
  --vellum-light: #f2ead9;
  --vellum-mid: #e5d9c0;
  --vellum-ink: #181410;
  --vellum-muted: #524739;
  --amber-lamp: #df8628;
  --peacock-emerald: #267866;
  --peacock-glow: #4fd1b2;
  --crimson-seal: #a63434;
  --ink-ivory: #f4efe6;
  --ink-stone: #c3bbb0;
  --ink-ash: #8a8277;

  /* Override legacy tokens seamlessly across all rooms */
  --bg-void: #090b0c;
  --bg-deep: #090b0c;
  --bg-obsidian: #07090a;
  --bg-panel: rgba(21, 24, 27, 0.9);
  --bg-card: rgba(26, 22, 19, 0.84);
  --bg-input: rgba(10, 12, 14, 0.94);
  --gold: #c89d54;
  --gold-bright: #e7c687;
  --gold-soft: rgba(200, 157, 84, 0.14);
  --emerald: #4fd1b2;
  --text-main: #f4efe6;
  --text-soft: #c7bfb3;
  --text-dim: #8f8679;
  --border-line: rgba(200, 157, 84, 0.18);
  --border-gold: rgba(200, 157, 84, 0.48);
  --serif: "Cormorant Garamond", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

body.embassy-surface {
  background-color: var(--basalt-void) !important;
  background-image:
    radial-gradient(ellipse 80% 55% at 50% -8%, rgba(168, 122, 52, 0.16) 0%, transparent 62%),
    radial-gradient(ellipse 65% 55% at 12% 22%, rgba(30, 62, 55, 0.22) 0%, transparent 65%),
    radial-gradient(ellipse 65% 55% at 88% 82%, rgba(56, 36, 22, 0.36) 0%, transparent 65%),
    repeating-linear-gradient(90deg, rgba(200, 157, 84, 0.022) 0px, rgba(200, 157, 84, 0.022) 1px, transparent 1px, transparent 96px) !important;
  background-size: auto !important;
  color: var(--ink-ivory);
}

/* Top Horological & Brass Provenance Bar */
.telemetry-strip {
  background: linear-gradient(90deg, #060708 0%, #120e0b 50%, #060708 100%) !important;
  border-bottom: 1px solid rgba(200, 157, 84, 0.28) !important;
}

.os-topbar {
  background: linear-gradient(180deg, rgba(16, 14, 12, 0.96) 0%, rgba(11, 13, 15, 0.95) 100%) !important;
  border-bottom: 1px solid var(--brass-muted) !important;
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.65);
}

.os-monogram, .monogram {
  background: linear-gradient(145deg, #2b2117, #110e0b) !important;
  border: 1px solid var(--brass) !important;
  color: var(--brass-bright) !important;
  box-shadow: inset 0 0 12px rgba(200, 157, 84, 0.22), 0 4px 16px rgba(0, 0, 0, 0.6) !important;
}

.os-dock-wrap {
  background: rgba(14, 12, 10, 0.92) !important;
  border-top: 1px solid rgba(200, 157, 84, 0.16) !important;
}

.dock-tab {
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.dock-tab.active {
  background: linear-gradient(135deg, rgba(48, 35, 22, 0.92), rgba(24, 48, 42, 0.75)) !important;
  border-color: var(--brass) !important;
  color: var(--brass-bright) !important;
  box-shadow: inset 0 1px 0 rgba(255, 232, 189, 0.22), 0 4px 14px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
 * ARCHITECTURAL CHAMBER VIEWPORT HEROES (Museum-Lit Basalt & Brass Frames)
 * ========================================================================== */
.chamber-hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 300px;
  margin-bottom: 24px;
  border: 1px solid rgba(200, 157, 84, 0.52);
  background: #07090a;
  box-shadow:
    0 26px 64px rgba(0, 0, 0, 0.72),
    inset 0 0 0 1px rgba(255, 228, 179, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.chamber-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
  filter: contrast(1.04) saturate(1.03);
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.chamber-hero:hover .chamber-hero-img {
  transform: scale(1.022);
}

.chamber-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 9, 10, 0.18) 0%, rgba(10, 11, 13, 0.56) 52%, rgba(9, 10, 11, 0.94) 100%),
    radial-gradient(circle at 80% 24%, transparent 0%, rgba(8, 9, 10, 0.42) 100%);
  pointer-events: none;
}

.chamber-hero-content {
  position: relative;
  z-index: 2;
  padding: 26px 28px 24px;
}

.chamber-plaque-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.brass-plaque {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(38, 28, 18, 0.92), rgba(20, 16, 12, 0.95));
  border: 1px solid rgba(218, 176, 103, 0.62);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brass-bright);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}

.jewel-amber {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber-lamp);
  box-shadow: 0 0 10px var(--amber-lamp);
}
.jewel-emerald {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--peacock-glow);
  box-shadow: 0 0 10px var(--peacock-glow);
}

.folio-trigger-btn {
  padding: 6px 12px;
  border-radius: 5px;
  background: rgba(14, 16, 18, 0.82);
  border: 1px solid rgba(200, 157, 84, 0.48);
  color: var(--vellum-light);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.16s ease;
}
.folio-trigger-btn:hover {
  background: rgba(200, 157, 84, 0.22);
  border-color: var(--brass-bright);
  color: #fff;
}

/* ==========================================================================
 * ILLUMINATED VELLUM HUMAN-REVIEW SLATE (`DAVID_OS Embassy` Signature Element)
 * ========================================================================== */
.vellum-review-slate {
  position: relative;
  background: linear-gradient(180deg, #f3ecdc 0%, #e4d7bd 100%);
  color: var(--vellum-ink);
  border: 2px solid #b5893d;
  border-radius: 10px;
  padding: 18px 22px;
  margin-bottom: 22px;
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    inset 0 0 24px rgba(166, 120, 46, 0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.vellum-seal-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, #c9973f, #9a6e24);
  color: #120d07;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.vellum-review-slate h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: #15110c;
  line-height: 1.2;
  margin-bottom: 3px;
}

.vellum-review-slate p {
  font-size: 13.5px;
  color: var(--vellum-muted);
  max-width: 780px;
}

.vellum-ready-seal {
  min-width: 112px;
  padding: 11px 16px;
  border-radius: 7px;
  background: linear-gradient(145deg, #193b33, #0f2621);
  border: 1.5px solid #c89d54;
  color: #e7c687;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
 * BRASS TRACK MISSION STAGES (`Mission stages on a brass track-4.png`)
 * ========================================================================== */
.brass-track-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
  position: relative;
}
.brass-stage-slate {
  background: linear-gradient(180deg, rgba(31, 25, 20, 0.92), rgba(17, 19, 22, 0.95));
  border: 1px solid rgba(200, 157, 84, 0.36);
  border-top: 2px solid var(--brass);
  border-radius: 9px;
  padding: 13px 15px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.brass-stage-slate.amber-gate {
  background: linear-gradient(180deg, rgba(58, 36, 14, 0.92), rgba(25, 18, 12, 0.96));
  border-color: var(--amber-lamp);
  box-shadow: 0 0 24px rgba(223, 134, 40, 0.16);
}
.brass-stage-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--brass-bright);
  margin-bottom: 4px;
}
.brass-stage-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--vellum-light);
  margin-bottom: 3px;
}
.brass-stage-desc {
  font-size: 12px;
  color: var(--ink-stone);
  line-height: 1.42;
}

/* ==========================================================================
 * SPATIAL CHAMBER DOOR CARDS (With Recessed Photographic Thumbnails)
 * ========================================================================== */
.spatial-tile {
  background: linear-gradient(180deg, rgba(24, 21, 18, 0.94) 0%, rgba(14, 16, 19, 0.96) 100%) !important;
  border: 1px solid rgba(200, 157, 84, 0.3) !important;
  overflow: hidden;
  padding: 0 !important;
}
.spatial-tile:hover {
  border-color: var(--brass-bright) !important;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.68), 0 0 0 1px rgba(231, 198, 135, 0.25) !important;
}
.tile-chamber-thumb {
  width: 100%;
  height: 138px;
  object-fit: cover;
  border-bottom: 1px solid rgba(200, 157, 84, 0.32);
  display: block;
}
.tile-chamber-body {
  padding: 18px 20px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

/* Architectural Mini-Banner Inside Split Panes */
.pane-chamber-banner {
  position: relative;
  height: 148px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(200, 157, 84, 0.42);
  margin-bottom: 16px;
}
.pane-chamber-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pane-chamber-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 10px 14px;
  background: linear-gradient(180deg, transparent, rgba(8, 9, 11, 0.92));
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--brass-bright);
}

/* Cards & Buttons Refined to Brushed Brass & Smoked Walnut */
.card {
  background: linear-gradient(180deg, rgba(22, 20, 18, 0.92), rgba(14, 17, 19, 0.94)) !important;
  border: 1px solid rgba(200, 157, 84, 0.24) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.48);
}
.card-gold {
  border-color: rgba(200, 157, 84, 0.55) !important;
}
.btn-gold, .cta-btn, .btn-sm {
  background: linear-gradient(135deg, #e7c687 0%, #b98939 100%) !important;
  color: #120d07 !important;
  border: 1px solid rgba(255, 236, 199, 0.45) !important;
  box-shadow: 0 8px 24px rgba(185, 137, 57, 0.26);
}

/* 18-PLATE SOVEREIGN EMBASSY ARCHITECTURAL FOLIO MODAL */
.folio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.folio-card {
  background: #101214;
  border: 1px solid rgba(200, 157, 84, 0.34);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.folio-card:hover {
  transform: translateY(-2px);
  border-color: var(--brass-bright);
}
.folio-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}
.folio-card-body {
  padding: 11px 13px;
}
.folio-card-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--vellum-light);
  margin-bottom: 3px;
}
.folio-card-desc {
  font-size: 11.5px;
  color: var(--ink-stone);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .brass-track-strip { grid-template-columns: 1fr 1fr; }
  .chamber-hero { min-height: 240px; }
  .chamber-hero-content { padding: 18px 16px; }
  .vellum-review-slate { padding: 14px 16px; }
}
@media (max-width: 560px) {
  .brass-track-strip { grid-template-columns: 1fr; }
}
