/* VENTRA Black Gold — mockup art (v3) + real header/contacts */
/* Fonts loaded once from index.html — no extra @import round-trip */

body[data-page="home"].page-blackgold {
  --ink: #000000;
  --gold: #d4af37;
  --gold-2: #f0d78c;
  --gold-bright: #ffe9a8;
  --text: #f7f3e8;
  --muted: rgba(247, 243, 232, 0.78);
  --display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: Manrope, system-ui, sans-serif;
  background: var(--ink) !important;
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

/* Light themes must not stay forced black from page-blackgold */
body[data-page="home"].page-blackgold[data-studio-theme="sky"],
body[data-page="home"].page-blackgold[data-studio-theme="beige"],
body[data-page="home"].page-blackgold[data-studio-theme="light"] {
  background: var(--studio-bg, #f7f5f0) !important;
  color: var(--studio-ink, #161412);
}

body[data-page="home"].page-blackgold .cursor-glow { display: none !important; }

body[data-page="home"].page-blackgold .mobile-preview-frame,
body[data-page="home"].page-blackgold main {
  background: #000 !important;
}

body[data-page="home"].page-blackgold[data-studio-theme="sky"] .mobile-preview-frame,
body[data-page="home"].page-blackgold[data-studio-theme="beige"] .mobile-preview-frame,
body[data-page="home"].page-blackgold[data-studio-theme="light"] .mobile-preview-frame,
body[data-page="home"].page-blackgold[data-studio-theme="sky"] main,
body[data-page="home"].page-blackgold[data-studio-theme="beige"] main,
body[data-page="home"].page-blackgold[data-studio-theme="light"] main {
  background: transparent !important;
}

body[data-page="home"].page-blackgold main {
  padding-top: 88px;
}

/* ——— Header + shiny gold line (mockup glint) ——— */
body[data-page="home"].page-blackgold .header,
body[data-page="home"].page-blackgold .header.scrolled {
  background: #000 !important;
  border-bottom: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  position: fixed;
  overflow: visible !important;
}

/* Thin, sharp gold line with crisp center glint */
body[data-page="home"].page-blackgold .header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  z-index: 30;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent 0%,
    #a67c1a 14%,
    #d4af37 36%,
    #ffe9a8 48%,
    #ffffff 50%,
    #ffe9a8 52%,
    #d4af37 64%,
    #a67c1a 86%,
    transparent 100%
  );
  box-shadow: 0 0 4px rgba(240, 215, 140, 0.45);
}

/* Small sharp glint — no blur smear */
body[data-page="home"].page-blackgold .header::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 56px;
  height: 3px;
  z-index: 31;
  pointer-events: none;
  transform: translateX(-50%);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.95) 50%,
    transparent 100%
  );
  box-shadow: 0 0 6px rgba(255, 244, 196, 0.7);
}

body[data-page="home"].page-blackgold .nav a {
  color: rgba(255, 255, 255, 0.92) !important;
  font-family: var(--sans) !important;
  font-size: 0.7rem !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  font-weight: 600 !important;
}

body[data-page="home"].page-blackgold .nav a:hover,
body[data-page="home"].page-blackgold .nav a.active {
  color: var(--gold-bright) !important;
}

body[data-page="home"].page-blackgold .nav a.active::after {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  box-shadow: 0 0 8px rgba(240, 215, 140, 0.7) !important;
}

body[data-page="home"].page-blackgold .nav a.active {
  border-color: transparent !important;
  box-shadow: none !important;
}

body[data-page="home"].page-blackgold .header__phone {
  color: #fff !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

body[data-page="home"].page-blackgold .header__email {
  display: inline !important;
  color: var(--gold-bright) !important;
  font-size: 0.76rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
}

body[data-page="home"].page-blackgold .header__email:hover { color: #fff !important; }

body[data-page="home"].page-blackgold .header__order-btn,
body[data-page="home"].page-blackgold .btn--primary.header__order-btn {
  background: linear-gradient(105deg, #9d174d, #f472b6) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  box-shadow: 0 0 22px rgba(244, 114, 182, 0.4) !important;
  font-family: var(--sans) !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  font-size: 0.64rem !important;
  padding: 0.7rem 1.2rem !important;
}

body[data-page="home"].page-blackgold .header__order-btn:hover {
  filter: brightness(1.06);
  color: #fff !important;
}

body[data-page="home"].page-blackgold .lang-select {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.85) !important;
  border: 1px solid rgba(212, 175, 55, 0.4) !important;
  border-radius: 999px;
}

body[data-page="home"].page-blackgold .burger span { background: var(--gold) !important; }

/* Sharp logo — no glow smear */
body[data-page="home"].page-blackgold .logo__img--light { display: none !important; }
body[data-page="home"].page-blackgold .logo__img--dark {
  display: block !important;
  filter: none !important;
  image-rendering: auto !important;
  -ms-interpolation-mode: bicubic;
  transform: translateZ(0);
}
body[data-page="home"].page-blackgold .header .logo--ventra .logo__img {
  height: 68px !important;
  max-width: min(300px, 58vw) !important;
  image-rendering: auto !important;
}
body[data-page="home"].page-blackgold .logo__name {
  color: var(--gold-bright) !important;
  font-family: var(--display) !important;
  letter-spacing: 0.28em !important;
  font-weight: 600 !important;
}

/* ——— Footer: clear, high-contrast ——— */
body[data-page="home"].page-blackgold .footer {
  background: #000 !important;
  border-top: 1px solid rgba(212, 175, 55, 0.35) !important;
  color: rgba(255, 255, 255, 0.88) !important;
}

body[data-page="home"].page-blackgold .footer a {
  color: var(--gold-bright) !important;
  font-weight: 500 !important;
}

body[data-page="home"].page-blackgold .footer__contact-main {
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
}

body[data-page="home"].page-blackgold .footer__brand p,
body[data-page="home"].page-blackgold .footer__tagline,
body[data-page="home"].page-blackgold .footer__col a,
body[data-page="home"].page-blackgold .footer__bottom,
body[data-page="home"].page-blackgold .footer__bottom a,
body[data-page="home"].page-blackgold .footer__payments-label,
body[data-page="home"].page-blackgold .footer__pay-mini-label {
  color: rgba(255, 255, 255, 0.86) !important;
  opacity: 1 !important;
}

body[data-page="home"].page-blackgold .footer__col h4 {
  color: var(--gold-bright) !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

body[data-page="home"].page-blackgold .footer .logo--ventra .logo__img,
body[data-page="home"].page-blackgold .footer .logo__img--dark {
  filter: none !important;
  height: 62px !important;
  image-rendering: auto !important;
}

/* ——— Mockup stage ——— */
.bg-mock {
  position: relative;
  background: #000;
  overflow: hidden;
}

.bg-mock__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bg-mock__frame {
  position: relative;
  /* Keep art near native sharpness (mock source ~1536px) */
  width: min(1280px, 100%);
  margin: 0 auto;
}

.bg-mock__art {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
  user-select: none;
  pointer-events: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
}

.bg-mock__parts {
  display: none;
}

.bg-mock__light-copy,
.bg-mock__light-pills,
.bg-mock__light-cta {
  display: none;
}

.bg-mock__part {
  position: absolute;
  display: block;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(15, 23, 42, 0.16));
  pointer-events: none;
  user-select: none;
}

html[data-site-theme="sky"] .bg-mock,
body[data-site-theme="sky"] .bg-mock,
html[data-site-theme="beige"] .bg-mock,
body[data-site-theme="beige"] .bg-mock {
  background:
    radial-gradient(circle at 50% 18%, rgba(212, 175, 55, 0.18), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 48%, #eef3f9 100%);
}

html[data-site-theme="beige"] .bg-mock,
body[data-site-theme="beige"] .bg-mock {
  background:
    radial-gradient(circle at 50% 18%, rgba(212, 175, 55, 0.22), transparent 28%),
    linear-gradient(180deg, #fffdf8 0%, #fbf6ec 50%, #efe4d2 100%);
}

html[data-live-theme="light"] .bg-mock__art,
body[data-live-theme="light"] .bg-mock__art {
  opacity: 1;
}

html[data-live-theme="light"] .bg-mock__parts,
body[data-live-theme="light"] .bg-mock__parts {
  position: absolute;
  inset: 0;
  display: none;
  z-index: 1;
}

html[data-live-theme="light"] .bg-mock__light-copy,
body[data-live-theme="light"] .bg-mock__light-copy {
  position: absolute;
  top: 3.7%;
  left: 8%;
  right: 8%;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  pointer-events: none;
}

html[data-live-theme="light"] .bg-mock__light-copy span,
body[data-live-theme="light"] .bg-mock__light-copy span {
  color: #a57921;
  font-size: clamp(0.72rem, 1vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

html[data-live-theme="light"] .bg-mock__light-copy strong,
body[data-live-theme="light"] .bg-mock__light-copy strong {
  max-width: 920px;
  color: #12100c;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.75rem, 3.6vw, 3.45rem);
  font-weight: 600;
  line-height: 0.98;
  text-transform: uppercase;
}

html[data-live-theme="light"] .bg-mock__light-copy em,
body[data-live-theme="light"] .bg-mock__light-copy em {
  color: rgba(18, 16, 12, 0.62);
  font-size: clamp(0.85rem, 1.2vw, 1.05rem);
  font-style: normal;
  font-weight: 700;
}

html[data-live-theme="light"] .bg-mock__parts::before,
body[data-live-theme="light"] .bg-mock__parts::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 9%;
  height: 18%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(214, 178, 88, 0.08), rgba(255, 255, 255, 0.72), rgba(91, 141, 192, 0.11));
  filter: blur(6px);
}

.bg-mock__part--store {
  left: 3.5%;
  top: 34%;
  width: 34%;
}

.bg-mock__part--restaurant {
  left: 36.5%;
  top: 35%;
  width: 20%;
}

.bg-mock__part--medical {
  left: 55%;
  top: 31%;
  width: 17%;
}

.bg-mock__part--estate {
  left: 68%;
  top: 34%;
  width: 30%;
}

html[data-live-theme="light"] .bg-mock__light-pills,
body[data-live-theme="light"] .bg-mock__light-pills {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 21.5%;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  pointer-events: none;
}

html[data-live-theme="light"] .bg-mock__light-pills span,
body[data-live-theme="light"] .bg-mock__light-pills span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184, 137, 44, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #5b4318;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  font-size: clamp(0.62rem, 1vw, 0.9rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-live-theme="light"] .bg-mock__light-cta,
body[data-live-theme="light"] .bg-mock__light-cta {
  position: absolute;
  left: 50%;
  bottom: 8.5%;
  z-index: 2;
  display: grid;
  width: min(360px, 32%);
  min-height: 50px;
  transform: translateX(-50%);
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #9b6a19, #f5d77f);
  color: #111;
  box-shadow: 0 20px 40px rgba(184, 137, 44, 0.22);
  font-size: clamp(0.74rem, 1.1vw, 0.95rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

  .bg-mock__hotspots {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.bg-mock__hot {
  position: absolute;
  display: block;
  border-radius: 999px;
  z-index: 2;
}

.bg-mock__hot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.bg-mock__hot--types {
  left: 8%;
  top: 52%;
  width: 84%;
  height: 7%;
  border-radius: 16px;
}

.bg-mock__hot--cta {
  left: 58%;
  top: 86%;
  width: 28%;
  height: 7%;
}

.bg-mock__hot--portfolio {
  left: 6%;
  top: 14%;
  width: 88%;
  height: 34%;
  border-radius: 12px;
}

.bg-m-hero__custom-art {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 18px;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
}

.bg-contact {
  padding: 22px 0 28px;
  border-top: 1px solid rgba(212, 175, 55, 0.28);
  background: #000;
}

.bg-contact__row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.bg-contact a {
  color: var(--gold-bright);
  text-decoration: none;
  font-weight: 600;
}

.bg-contact a:hover { color: #fff; }

body[data-page="home"].page-blackgold .whatsapp-btn {
  background: #111 !important;
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
}

/* Phone: new editorial home v2 — no old template blocks */
.bg-m { display: none; }
.bg-mock--mobile,
.bg-contact--mobile { display: none !important; }

@media (max-width: 900px) {
  body[data-page="home"].page-blackgold .header__email { display: none !important; }
}

@media (max-width: 768px) {
  .bg-mock--desktop,
  .bg-contact--desktop,
  .bg-mock--mobile {
    display: none !important;
  }

  .bg-m { display: block; }

  body[data-page="home"].page-blackgold {
    --gold: #d6b56a;
    --gold-deep: #9a7428;
    --paper: #f4efe4;
    --ink: #070707;
    --soft: rgba(244, 239, 228, 0.62);
  }

  /* Nuke old site leftovers under the new app screen (theme lives in #bg-m-themes) */
  body[data-page="home"].page-blackgold .header__actions,
  body[data-page="home"].page-blackgold .header__actions > *,
  body[data-page="home"].page-blackgold .header .logo,
  body[data-page="home"].page-blackgold .burger,
  html.mob-app body[data-page="home"].page-blackgold .burger,
  body[data-page="home"].page-blackgold .mob-header-bar,
  html.mob-app body[data-page="home"].page-blackgold .mob-header-bar,
  body[data-page="home"].page-blackgold .footer,
  body[data-page="home"].page-blackgold #site-footer,
  body[data-page="home"].page-blackgold #site-footer .footer,
  body[data-page="home"].page-blackgold .whatsapp-btn,
  html.mob-app body[data-page="home"].page-blackgold .mob-tabbar,
  body[data-page="home"].page-blackgold .mob-tabbar,
  body[data-page="home"].page-blackgold #mob-tabbar,
  body[data-page="home"].page-blackgold #site-mobile-nav,
  body[data-page="home"].page-blackgold .mob-agency,
  body[data-page="home"].page-blackgold .bg-mock__sr,
  body[data-page="home"].page-blackgold .bg-contact,
  body[data-page="home"].page-blackgold .sticky-quote {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
  }

  body[data-page="home"].page-blackgold main {
    padding: 0 !important;
    background: var(--ink) !important;
  }

  body[data-page="home"].page-blackgold .header,
  body[data-page="home"].page-blackgold .header.scrolled {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    pointer-events: none !important;
    z-index: 180 !important;
    overflow: visible !important;
  }

  body[data-page="home"].page-blackgold .header::before,
  body[data-page="home"].page-blackgold .header::after { display: none !important; }

  body[data-page="home"].page-blackgold .header__inner {
    height: 0 !important;
    overflow: visible !important;
    pointer-events: none !important;
  }

  /* Site drawer unused on phone home — top links only */
  html.mob-app body[data-page="home"].page-blackgold .nav-backdrop,
  body[data-page="home"].page-blackgold .nav-backdrop,
  html.mob-app body[data-page="home"].page-blackgold .nav-backdrop.is-visible,
  body[data-page="home"].page-blackgold .nav-backdrop.is-visible,
  html.mob-app body[data-page="home"].page-blackgold .nav,
  html.mob-app body[data-page="home"].page-blackgold .nav.open,
  html.mob-app body[data-page="home"].page-blackgold #nav,
  html.mob-app body[data-page="home"].page-blackgold #nav.open,
  body[data-page="home"].page-blackgold .nav,
  body[data-page="home"].page-blackgold .nav.open,
  body[data-page="home"].page-blackgold #nav,
  body[data-page="home"].page-blackgold #nav.open,
  body[data-page="home"].page-blackgold .burger {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  /* ——— New screen ——— */
  .bg-m {
    min-height: 100dvh;
    color: var(--paper);
    background:
      radial-gradient(90% 55% at 100% 0%, rgba(214, 181, 106, 0.18), transparent 58%),
      radial-gradient(70% 40% at 0% 30%, rgba(214, 181, 106, 0.08), transparent 55%),
      #070707;
    font-family: var(--sans);
    padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  }

  .bg-m-top {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
    background: rgba(7, 7, 7, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .bg-m-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(214, 181, 106, 0.28);
  }

  .bg-m-brand__logo {
    display: none !important;
  }

  .bg-m-brand__home {
    display: block;
    width: 26px;
    height: 26px;
    color: #e2c57a;
  }

  .bg-m-brand__mark,
  .bg-m-brand__text {
    display: none !important;
  }

  .bg-m-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-left: auto;
    flex: 0 0 auto;
    min-width: 0;
  }

  .bg-m-lang {
    position: relative;
    flex: 0 0 auto;
    order: 3;
    font-size: 0;
    line-height: 0;
    color: transparent;
  }
  .bg-m-lang > span,
  .bg-m-lang .visually-hidden {
    display: none !important;
  }

  .bg-m-lang__select {
    appearance: none;
    -webkit-appearance: none;
    min-width: 58px;
    max-width: 72px;
    height: 36px;
    padding: 0 22px 0 10px;
    border: 1px solid rgba(214, 181, 106, 0.4);
    border-radius: 12px;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23d6b56a' d='M1 1l4 4 4-4'/%3E%3C/svg%3E") right 10px center / 10px no-repeat,
      rgba(255, 255, 255, 0.06);
    color: #f4efe4;
    font-size: 0.82rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
  }

  .bg-m-lang__select:focus {
    outline: none;
    border-color: rgba(214, 181, 106, 0.75);
    box-shadow: 0 0 0 3px rgba(214, 181, 106, 0.2);
  }

  .bg-m-lang__select option {
    background: #141414;
    color: #f4efe4;
    font-weight: 700;
  }

  .bg-m-links > a,
  .bg-m-links__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 32px;
    padding: 0 11px;
    text-decoration: none;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(244, 239, 228, 0.95);
    border-radius: 999px;
    flex: 0 0 auto;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(214, 181, 106, 0.28);
  }

  .bg-m-links__ico {
    display: block;
    flex: 0 0 auto;
    color: #e2c57a;
  }

  .bg-m-links__item--portfolio,
  .bg-m-links > a[href="studio-portfolio.html"],
  .bg-m-links > a[href="portfolio.html"] {
    order: 1;
  }

  .bg-m-links__item--pricing,
  .bg-m-links > a[href="pricing.html"],
  .bg-m-links > a[href="studio-pricing.html"] {
    order: 2;
  }

  /* Theme dots: right edge, vertical, middle of phone — not in top bar */
  .bg-m-themes {
    position: fixed;
    top: 50%;
    right: max(8px, env(safe-area-inset-right, 0px));
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    pointer-events: none;
  }

  .bg-m-themes .home-theme-switch,
  body[data-page="home"].page-blackgold .bg-m-themes #home-theme-switch {
    display: inline-flex !important;
    flex-direction: column !important;
    visibility: visible !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 10px 7px !important;
    pointer-events: auto !important;
    gap: 10px !important;
    border-radius: 999px;
    border: 1px solid rgba(214, 181, 106, 0.4);
    background: rgba(12, 17, 24, 0.92);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  }

  .bg-m-themes .home-theme-switch__dot {
    width: 16px;
    height: 16px;
    pointer-events: auto !important;
  }

  html[data-site-theme="sky"] .bg-m-themes .home-theme-switch,
  html[data-site-theme="beige"] .bg-m-themes .home-theme-switch,
  body.home-theme-sky .bg-m-themes .home-theme-switch,
  body.home-theme-beige .bg-m-themes .home-theme-switch {
    border-color: rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 0.92);
  }

  html[data-site-theme="beige"] .bg-m-themes .home-theme-switch,
  body.home-theme-beige .bg-m-themes .home-theme-switch {
    border-color: rgba(139, 105, 20, 0.28);
    background: rgba(255, 253, 248, 0.94);
  }

  @media (max-width: 400px) {
    .bg-m-brand__text { display: none; }
    .bg-m-links > a { padding: 0 7px; letter-spacing: 0.05em; }
  }

  /* Light themes for phone home app UI */
  html[data-site-theme="sky"] body[data-page="home"].page-blackgold,
  body[data-page="home"].page-blackgold.home-theme-sky {
    --gold: #1d4ed8;
    --gold-deep: #1e40af;
    --paper: #0f172a;
    --ink: #f3f6fb;
    --soft: rgba(15, 23, 42, 0.62);
  }

  html[data-site-theme="beige"] body[data-page="home"].page-blackgold,
  body[data-page="home"].page-blackgold.home-theme-beige {
    --gold: #8b6914;
    --gold-deep: #6b5010;
    --paper: #1c140a;
    --ink: #f6f1e8;
    --soft: rgba(28, 20, 10, 0.58);
  }

  html[data-site-theme="sky"] .bg-m,
  body.home-theme-sky .bg-m {
    color: var(--paper);
    background:
      radial-gradient(90% 55% at 100% 0%, rgba(59, 130, 246, 0.18), transparent 58%),
      linear-gradient(180deg, #f8fafc, #eef2ff 55%, #f3f6fb);
  }

  html[data-site-theme="beige"] .bg-m,
  body.home-theme-beige .bg-m {
    color: var(--paper);
    background:
      radial-gradient(90% 55% at 100% 0%, rgba(212, 175, 55, 0.18), transparent 58%),
      linear-gradient(180deg, #fffdf8, #f6f1e8 55%, #f3ebe0);
  }

  html[data-site-theme="sky"] body[data-page="home"].page-blackgold main,
  html[data-site-theme="beige"] body[data-page="home"].page-blackgold main,
  body.home-theme-sky[data-page="home"].page-blackgold main,
  body.home-theme-beige[data-page="home"].page-blackgold main {
    background: var(--ink) !important;
  }

  html[data-site-theme="sky"] .bg-m-top,
  html[data-site-theme="beige"] .bg-m-top,
  body.home-theme-sky .bg-m-top,
  body.home-theme-beige .bg-m-top {
    background: rgba(255, 255, 255, 0.9);
  }

  html[data-site-theme="sky"] .bg-m-brand__text strong,
  html[data-site-theme="beige"] .bg-m-brand__text strong,
  body.home-theme-sky .bg-m-brand__text strong,
  body.home-theme-beige .bg-m-brand__text strong {
    color: var(--gold);
  }

  html[data-site-theme="sky"] .bg-m-lang__select,
  html[data-site-theme="beige"] .bg-m-lang__select,
  body.home-theme-sky .bg-m-lang__select,
  body.home-theme-beige .bg-m-lang__select {
    border-color: rgba(15, 23, 42, 0.14);
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%230f172a' d='M1 1l4 4 4-4'/%3E%3C/svg%3E") right 10px center / 10px no-repeat,
      #fff;
    color: #0f172a;
  }

  html[data-site-theme="beige"] .bg-m-lang__select,
  body.home-theme-beige .bg-m-lang__select {
    border-color: rgba(139, 105, 20, 0.28);
    color: #1c140a;
  }

  html[data-site-theme="sky"] .bg-m-lang__select option,
  html[data-site-theme="beige"] .bg-m-lang__select option,
  body.home-theme-sky .bg-m-lang__select option,
  body.home-theme-beige .bg-m-lang__select option {
    background: #fff;
    color: #0f172a;
  }

  html[data-site-theme="sky"] .bg-m-links > a,
  html[data-site-theme="beige"] .bg-m-links > a,
  body.home-theme-sky .bg-m-links > a,
  body.home-theme-beige .bg-m-links > a {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.14);
  }
  html[data-site-theme="sky"] .bg-m-links__ico,
  html[data-site-theme="beige"] .bg-m-links__ico,
  body.home-theme-sky .bg-m-links__ico,
  body.home-theme-beige .bg-m-links__ico {
    color: #8a6a22;
  }
  html[data-site-theme="sky"] .bg-m-links__ico,
  body.home-theme-sky .bg-m-links__ico {
    color: #1d4ed8;
  }

  html[data-site-theme="sky"] .bg-m-stage__title,
  html[data-site-theme="beige"] .bg-m-stage__title,
  body.home-theme-sky .bg-m-stage__title,
  body.home-theme-beige .bg-m-stage__title {
    color: #0f172a;
  }

  html[data-site-theme="beige"] .bg-m-stage__title,
  body.home-theme-beige .bg-m-stage__title {
    color: #1c140a;
  }

  html[data-site-theme="sky"] .bg-m-stage__title em,
  body.home-theme-sky .bg-m-stage__title em {
    background: linear-gradient(180deg, #60a5fa, #1d4ed8 55%, #1e3a8a);
    -webkit-background-clip: text;
    background-clip: text;
  }

  html[data-site-theme="beige"] .bg-m-stage__title em,
  body.home-theme-beige .bg-m-stage__title em {
    background: linear-gradient(180deg, #e2c57a, #8b6914 55%, #6b5010);
    -webkit-background-clip: text;
    background-clip: text;
  }

  html[data-site-theme="sky"] .bg-m-cta,
  body.home-theme-sky .bg-m-cta {
    color: #fff;
    background: linear-gradient(105deg, #1d4ed8, #3b82f6 55%, #60a5fa);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.25);
  }

  html[data-site-theme="sky"] .bg-m-rail__head h2,
  html[data-site-theme="beige"] .bg-m-rail__head h2,
  html[data-site-theme="sky"] .bg-m-book h2,
  html[data-site-theme="beige"] .bg-m-book h2,
  body.home-theme-sky .bg-m-rail__head h2,
  body.home-theme-beige .bg-m-rail__head h2,
  body.home-theme-sky .bg-m-book h2,
  body.home-theme-beige .bg-m-book h2 {
    color: #0f172a;
  }

  html[data-site-theme="beige"] .bg-m-rail__head h2,
  html[data-site-theme="beige"] .bg-m-book h2,
  body.home-theme-beige .bg-m-rail__head h2,
  body.home-theme-beige .bg-m-book h2 {
    color: #1c140a;
  }

  html[data-site-theme="sky"] .bg-m-note,
  html[data-site-theme="beige"] .bg-m-note,
  html[data-site-theme="sky"] .bg-m-book,
  html[data-site-theme="beige"] .bg-m-book,
  body.home-theme-sky .bg-m-note,
  body.home-theme-beige .bg-m-note,
  body.home-theme-sky .bg-m-book,
  body.home-theme-beige .bg-m-book {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.1);
  }

  html[data-site-theme="beige"] .bg-m-note,
  html[data-site-theme="beige"] .bg-m-book,
  body.home-theme-beige .bg-m-note,
  body.home-theme-beige .bg-m-book {
    background: #fffdf8;
    border-color: rgba(139, 105, 20, 0.2);
  }

  html[data-site-theme="sky"] .bg-m-note p,
  html[data-site-theme="beige"] .bg-m-note p,
  body.home-theme-sky .bg-m-note p,
  body.home-theme-beige .bg-m-note p {
    color: rgba(15, 23, 42, 0.78);
  }

  html[data-site-theme="sky"] .bg-m-book__btn,
  body.home-theme-sky .bg-m-book__btn {
    color: #fff;
    background: linear-gradient(105deg, #1d4ed8, #3b82f6 55%, #60a5fa);
  }

  .bg-m-stage {
    position: relative;
    padding: 22px 18px 20px;
    padding-right: max(18px, calc(18px + env(safe-area-inset-right, 0px)));
    overflow: hidden;
  }

  .bg-m-stage__orb {
    position: absolute;
    width: 280px;
    height: 280px;
    right: -80px;
    top: -40px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(214, 181, 106, 0.22), transparent 68%);
    filter: blur(2px);
    animation: bgMOrbBreathe 10s ease-in-out infinite alternate;
  }

  @keyframes bgMOrbBreathe {
    from { opacity: 0.55; transform: scale(1); }
    to { opacity: 0.95; transform: scale(1.06); }
  }

  @media (prefers-reduced-motion: reduce) {
    .bg-m-stage__orb { animation: none; }
  }

  .bg-m-stage__tag {
    position: relative;
    margin: 0 0 18px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(214, 181, 106, 0.9);
  }

  .bg-m-stage__title {
    position: relative;
    margin: 0;
    font-family: var(--display);
    font-size: clamp(2.35rem, 10.5vw, 3.1rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.01em;
    color: #fff;
    max-width: 14ch;
  }

  .bg-m-stage__title em {
    display: block;
    margin-top: 0.08em;
    font-style: italic;
    color: transparent;
    background: linear-gradient(180deg, #fff1c2, #d6b56a 50%, #8a641f);
    -webkit-background-clip: text;
    background-clip: text;
  }

  .bg-m-stage__text {
    position: relative;
    margin: 12px 0 0;
    max-width: 20rem;
    font-size: 0.98rem;
    line-height: 1.45;
    color: var(--soft);
  }

  .bg-m-cta {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(105deg, #9d174d, #f472b6);
    box-shadow: 0 10px 28px rgba(244, 114, 182, 0.4);
  }

  .bg-m-cta i {
    font-style: normal;
    font-size: 1.1rem;
  }

  .bg-m-rail {
    padding: 8px 0 10px;
  }

  .bg-m-rail__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 0 18px 12px;
    padding-right: 52px;
  }

  .bg-m-rail__head h2 {
    margin: 0;
    font-family: var(--display);
    font-size: 1.7rem;
    font-weight: 600;
    color: #fff;
  }

  .bg-m-rail__head a {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .bg-m-rail__more {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: 0 18px 10px;
    padding: 0;
  }
  .bg-m-rail__more a {
    color: var(--soft, rgba(255, 255, 255, 0.72));
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(214, 181, 106, 0.35);
    padding-bottom: 1px;
  }

  .bg-m-rail__track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 18px 14px;
    padding-right: 56px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .bg-m-rail__track::-webkit-scrollbar { display: none; }

  .bg-m-tile {
    flex: 0 0 72%;
    max-width: 280px;
    scroll-snap-align: start;
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 26px;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(214, 181, 106, 0.28);
    background: #101010;
    aspect-ratio: 3 / 4;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  }

  .bg-m-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.05) 20%, rgba(0, 0, 0, 0.78) 100%),
      radial-gradient(120% 80% at 50% 0%, rgba(214, 181, 106, 0.12), transparent 55%);
  }

  .bg-m-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transform: scale(1.03);
    filter: saturate(1.05) contrast(1.04);
  }

  .bg-m-tile span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 22px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .bg-m-tile em {
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(214, 181, 106, 0.95);
  }

  .bg-m-tile b {
    font-family: var(--display);
    font-size: 1.55rem;
    font-weight: 600;
    letter-spacing: 0.01em;
  }

  .bg-m-tile small {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(244, 239, 228, 0.72);
  }

  /* Freelance / additional services — phone home */
  .bg-m-fl {
    margin: 28px 0 0;
    padding: 26px 0 8px;
    border-top: 1px solid rgba(214, 181, 106, 0.18);
  }

  .bg-m-fl__head {
    padding: 0 22px;
  }

  .bg-m-fl__head small {
    display: block;
    margin-bottom: 8px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
  }

  .bg-m-fl__head h2 {
    margin: 0 0 8px;
    font-family: var(--font-display, Georgia, serif);
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--paper);
  }

  .bg-m-fl__head p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: rgba(244, 239, 228, 0.72);
  }

  .bg-m-fl__rail {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding: 0 22px 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
  }

  .bg-m-fl__card {
    flex: 0 0 min(72vw, 240px);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 14px;
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(214, 181, 106, 0.3);
    background: rgba(214, 181, 106, 0.08);
  }

  .bg-m-fl__card b {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--paper);
  }

  .bg-m-fl__card span {
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(244, 239, 228, 0.7);
  }

  .bg-m-fl__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 22px 0;
    min-height: 46px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #151515;
    background: linear-gradient(105deg, #b8892a, #e2c57a 55%, #f5e3ad);
  }

  .bg-m-note {
    margin: 30px 22px 0;
    padding: 24px 22px;
    border-radius: 22px;
    border: 1px solid rgba(214, 181, 106, 0.16);
    background:
      linear-gradient(145deg, rgba(214, 181, 106, 0.08), transparent 55%),
      rgba(255, 255, 255, 0.03);
  }

  .bg-m-note p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(244, 239, 228, 0.86);
  }

  .bg-m-note__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
  }

  .bg-m-note__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(214, 181, 106, 0.35);
    background: rgba(214, 181, 106, 0.06);
  }

  .bg-m-book {
    margin: 30px 22px 0;
    padding: 32px 22px 28px;
    border-radius: 26px;
    text-align: center;
    background:
      radial-gradient(90% 80% at 50% 0%, rgba(214, 181, 106, 0.22), transparent 60%),
      linear-gradient(180deg, #14120e, #0a0a0a);
    border: 1px solid rgba(214, 181, 106, 0.34);
  }

  .bg-m-book h2 {
    margin: 0;
    font-family: var(--display);
    font-size: 2.15rem;
    font-weight: 600;
    color: #fff;
  }

  .bg-m-book__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    margin-top: 18px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #141414;
    background: linear-gradient(105deg, #b8892a, #e2c57a 55%, #f5e3ad);
  }

  .bg-m-book__tel {
    display: inline-flex;
    margin-top: 14px;
    min-height: 44px;
    align-items: center;
    color: var(--gold);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.04em;
  }

  /* No chat on phone home */
  body[data-page="home"].page-blackgold .ventra-chat {
    display: none !important;
  }

  /* Bottom dock — Call / Email / Quote */
  .bg-m-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 170;
    display: grid;
    grid-template-columns: 1fr 1fr 1.25fr;
    gap: 6px;
    padding: 7px;
    border-radius: 16px;
    border: 1px solid rgba(214, 181, 106, 0.32);
    background: rgba(8, 8, 8, 0.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  }
  .bg-m-dock a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 11px;
    text-decoration: none;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
  }
  .bg-m-dock__call {
    color: var(--gold);
    border: 1px solid rgba(214, 181, 106, 0.45);
    background: rgba(214, 181, 106, 0.1);
  }
  .bg-m-dock__mail {
    color: #f4efe4;
    border: 1px solid rgba(244, 239, 228, 0.18);
    background: rgba(255, 255, 255, 0.06);
  }
  .bg-m-dock__quote {
    color: #141414;
    background: linear-gradient(105deg, #b8892a, #e2c57a 55%, #f5e3ad);
  }
  .bg-m {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  /* Theme stars — smaller, less grabby */
  .bg-m-themes {
    right: max(4px, env(safe-area-inset-right, 0px));
  }
  .bg-m-themes .home-theme-switch,
  body[data-page="home"].page-blackgold .bg-m-themes #home-theme-switch {
    padding: 8px 5px !important;
    gap: 8px !important;
    opacity: 0.92;
  }
  .bg-m-themes .home-theme-switch__dot {
    width: 13px;
    height: 13px;
  }

  /* Keep content clear of theme stars */
  .bg-m-stage,
  .bg-m-fl__head,
  .bg-m-note,
  .bg-m-book {
    padding-right: 44px;
  }
  .bg-m-fl__head { padding-left: 18px; }
  .bg-m-note { margin-left: 18px; margin-right: 18px; }

  /* Work rail: clearer edge fade */
  .bg-m-rail__track {
    mask-image: linear-gradient(90deg, #000 0%, #000 88%, transparent 100%);
  }

  /* Coffee phone dock — keep dark surface; brighten Call gold */
  html[data-site-theme="coffee"] .bg-m-dock,
  body.home-theme-coffee .bg-m-dock,
  body[data-page="home"].page-blackgold[data-studio-theme="coffee"] .bg-m-dock {
    background: rgba(24, 15, 10, 0.97);
    border-color: rgba(224, 168, 106, 0.42);
  }
  html[data-site-theme="coffee"] .bg-m-dock__call,
  body.home-theme-coffee .bg-m-dock__call,
  body[data-page="home"].page-blackgold[data-studio-theme="coffee"] .bg-m-dock__call {
    color: #f5d6a8;
    border-color: rgba(245, 214, 168, 0.55);
    background: rgba(224, 168, 106, 0.14);
  }
  html[data-site-theme="coffee"] .bg-m-dock__mail,
  body.home-theme-coffee .bg-m-dock__mail,
  body[data-page="home"].page-blackgold[data-studio-theme="coffee"] .bg-m-dock__mail {
    color: #fff4e4;
    border-color: rgba(255, 244, 228, 0.28);
    background: rgba(255, 255, 255, 0.08);
  }

  /* Light themes: dock readability (sky / beige / platinum light) */
  html[data-site-theme="sky"] .bg-m-dock,
  html[data-site-theme="beige"] .bg-m-dock,
  html[data-site-theme="light"] .bg-m-dock,
  body.home-theme-sky .bg-m-dock,
  body.home-theme-beige .bg-m-dock,
  body.home-theme-light .bg-m-dock,
  body[data-page="home"].page-blackgold[data-studio-theme="light"] .bg-m-dock {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(15, 23, 42, 0.12);
  }
  /* Beige + light: dark gold Call (AA) — not pale #8a6a22 on gold wash */
  html[data-site-theme="beige"] .bg-m-dock__call,
  html[data-site-theme="light"] .bg-m-dock__call,
  body.home-theme-beige .bg-m-dock__call,
  body.home-theme-light .bg-m-dock__call,
  body[data-page="home"].page-blackgold[data-studio-theme="light"] .bg-m-dock__call {
    color: #5c440e;
    border-color: rgba(122, 90, 18, 0.5);
    background: rgba(122, 90, 18, 0.08);
  }
  html[data-site-theme="sky"] .bg-m-dock__mail,
  html[data-site-theme="beige"] .bg-m-dock__mail,
  html[data-site-theme="light"] .bg-m-dock__mail,
  body.home-theme-sky .bg-m-dock__mail,
  body.home-theme-beige .bg-m-dock__mail,
  body.home-theme-light .bg-m-dock__mail,
  body[data-page="home"].page-blackgold[data-studio-theme="light"] .bg-m-dock__mail {
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(15, 23, 42, 0.04);
  }
  html[data-site-theme="sky"] .bg-m-brand,
  html[data-site-theme="beige"] .bg-m-brand,
  html[data-site-theme="light"] .bg-m-brand,
  body.home-theme-sky .bg-m-brand,
  body.home-theme-beige .bg-m-brand,
  body.home-theme-light .bg-m-brand,
  body[data-page="home"].page-blackgold[data-studio-theme="light"] .bg-m-brand {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(15, 23, 42, 0.12);
  }
  html[data-site-theme="beige"] .bg-m-brand,
  html[data-site-theme="light"] .bg-m-brand,
  body.home-theme-beige .bg-m-brand,
  body.home-theme-light .bg-m-brand,
  body[data-page="home"].page-blackgold[data-studio-theme="light"] .bg-m-brand {
    color: #5c440e;
  }
  html[data-site-theme="sky"] .bg-m-brand,
  body.home-theme-sky .bg-m-brand {
    color: #1d4ed8;
  }
  html[data-site-theme="beige"] .bg-m-brand__home,
  html[data-site-theme="light"] .bg-m-brand__home,
  body.home-theme-beige .bg-m-brand__home,
  body.home-theme-light .bg-m-brand__home,
  body[data-page="home"].page-blackgold[data-studio-theme="light"] .bg-m-brand__home {
    color: #5c440e;
  }
  html[data-site-theme="sky"] .bg-m-brand__home,
  body.home-theme-sky .bg-m-brand__home {
    color: #1d4ed8;
  }
  html[data-site-theme="sky"] .bg-m-dock__call,
  body.home-theme-sky .bg-m-dock__call {
    color: #1d4ed8;
    border-color: rgba(29, 78, 216, 0.35) !important;
    background: rgba(29, 78, 216, 0.08);
  }

  /* Light themes: freelance / UX copy must stay readable */
  html[data-site-theme="sky"] .bg-m-fl,
  html[data-site-theme="beige"] .bg-m-fl,
  html[data-site-theme="light"] .bg-m-fl,
  body.home-theme-sky .bg-m-fl,
  body.home-theme-beige .bg-m-fl,
  body.home-theme-light .bg-m-fl {
    border-top-color: rgba(15, 23, 42, 0.1);
  }
  html[data-site-theme="sky"] .bg-m-fl__head h2,
  html[data-site-theme="beige"] .bg-m-fl__head h2,
  html[data-site-theme="light"] .bg-m-fl__head h2,
  html[data-site-theme="sky"] .bg-m-fl__card b,
  html[data-site-theme="beige"] .bg-m-fl__card b,
  html[data-site-theme="light"] .bg-m-fl__card b,
  body.home-theme-sky .bg-m-fl__head h2,
  body.home-theme-beige .bg-m-fl__head h2,
  body.home-theme-light .bg-m-fl__head h2,
  body.home-theme-sky .bg-m-fl__card b,
  body.home-theme-beige .bg-m-fl__card b,
  body.home-theme-light .bg-m-fl__card b {
    color: #0f172a;
  }
  html[data-site-theme="beige"] .bg-m-fl__head h2,
  html[data-site-theme="beige"] .bg-m-fl__card b,
  html[data-site-theme="light"] .bg-m-fl__head h2,
  html[data-site-theme="light"] .bg-m-fl__card b,
  body.home-theme-beige .bg-m-fl__head h2,
  body.home-theme-beige .bg-m-fl__card b,
  body.home-theme-light .bg-m-fl__head h2,
  body.home-theme-light .bg-m-fl__card b {
    color: #1c140a;
  }
  html[data-site-theme="sky"] .bg-m-fl__head p,
  html[data-site-theme="beige"] .bg-m-fl__head p,
  html[data-site-theme="light"] .bg-m-fl__head p,
  html[data-site-theme="sky"] .bg-m-fl__card span,
  html[data-site-theme="beige"] .bg-m-fl__card span,
  html[data-site-theme="light"] .bg-m-fl__card span,
  body.home-theme-sky .bg-m-fl__head p,
  body.home-theme-beige .bg-m-fl__head p,
  body.home-theme-light .bg-m-fl__head p,
  body.home-theme-sky .bg-m-fl__card span,
  body.home-theme-beige .bg-m-fl__card span,
  body.home-theme-light .bg-m-fl__card span {
    color: rgba(15, 23, 42, 0.72);
  }
  html[data-site-theme="beige"] .bg-m-fl__head p,
  html[data-site-theme="beige"] .bg-m-fl__card span,
  html[data-site-theme="light"] .bg-m-fl__head p,
  html[data-site-theme="light"] .bg-m-fl__card span,
  body.home-theme-beige .bg-m-fl__head p,
  body.home-theme-beige .bg-m-fl__card span,
  body.home-theme-light .bg-m-fl__head p,
  body.home-theme-light .bg-m-fl__card span {
    color: rgba(28, 20, 10, 0.72);
  }
  html[data-site-theme="sky"] .bg-m-fl__card,
  html[data-site-theme="beige"] .bg-m-fl__card,
  html[data-site-theme="light"] .bg-m-fl__card,
  body.home-theme-sky .bg-m-fl__card,
  body.home-theme-beige .bg-m-fl__card,
  body.home-theme-light .bg-m-fl__card {
    border-color: rgba(15, 23, 42, 0.12);
    background: rgba(255, 255, 255, 0.78);
  }
  html[data-site-theme="beige"] .bg-m-fl__card,
  html[data-site-theme="light"] .bg-m-fl__card,
  body.home-theme-beige .bg-m-fl__card,
  body.home-theme-light .bg-m-fl__card {
    border-color: rgba(139, 105, 20, 0.22);
    background: rgba(255, 253, 248, 0.9);
  }
  html[data-site-theme="sky"] .bg-m-stage__tag,
  body.home-theme-sky .bg-m-stage__tag {
    color: rgba(29, 78, 216, 0.9);
  }
  html[data-site-theme="beige"] .bg-m-stage__tag,
  body.home-theme-beige .bg-m-stage__tag {
    color: rgba(139, 105, 20, 0.95);
  }
  html[data-site-theme="sky"] .bg-m-rail__head h2,
  html[data-site-theme="beige"] .bg-m-rail__head h2,
  html[data-site-theme="light"] .bg-m-rail__head h2,
  body.home-theme-sky .bg-m-rail__head h2,
  body.home-theme-beige .bg-m-rail__head h2,
  body.home-theme-light .bg-m-rail__head h2 {
    color: #0f172a !important;
  }
  html[data-site-theme="beige"] .bg-m-rail__head h2,
  html[data-site-theme="light"] .bg-m-rail__head h2,
  body.home-theme-beige .bg-m-rail__head h2,
  body.home-theme-light .bg-m-rail__head h2 {
    color: #1c140a !important;
  }
  html[data-site-theme="sky"] .bg-m-rail__more a,
  html[data-site-theme="beige"] .bg-m-rail__more a,
  html[data-site-theme="light"] .bg-m-rail__more a,
  body.home-theme-sky .bg-m-rail__more a,
  body.home-theme-beige .bg-m-rail__more a,
  body.home-theme-light .bg-m-rail__more a {
    color: rgba(15, 23, 42, 0.78);
    border-bottom-color: rgba(15, 23, 42, 0.28);
  }
  html[data-site-theme="beige"] .bg-m-rail__more a,
  html[data-site-theme="light"] .bg-m-rail__more a,
  body.home-theme-beige .bg-m-rail__more a,
  body.home-theme-light .bg-m-rail__more a {
    color: rgba(28, 20, 10, 0.78);
    border-bottom-color: rgba(139, 105, 20, 0.35);
  }
  html[data-site-theme="sky"] .bg-m-stage__text,
  html[data-site-theme="beige"] .bg-m-stage__text,
  html[data-site-theme="light"] .bg-m-stage__text,
  body.home-theme-sky .bg-m-stage__text,
  body.home-theme-beige .bg-m-stage__text,
  body.home-theme-light .bg-m-stage__text {
    color: rgba(15, 23, 42, 0.72);
  }
  html[data-site-theme="beige"] .bg-m-stage__text,
  html[data-site-theme="light"] .bg-m-stage__text,
  body.home-theme-beige .bg-m-stage__text,
  body.home-theme-light .bg-m-stage__text {
    color: rgba(28, 20, 10, 0.72);
  }
}


/* Light theme phone home — warm platinum (mirrors beige readability, cooler gold) */
@media (max-width: 768px) {
  body[data-page="home"].page-blackgold.home-theme-light {
    --ink: #161412;
    --gold: #9a7420;
    --gold-2: #c4a45a;
    --gold-bright: #dcc889;
    --text: #161412;
    --muted: rgba(22, 20, 18, 0.72);
    background: #f7f5f0 !important;
    color: #161412;
  }
  body.home-theme-light .bg-m {
    background: linear-gradient(180deg, #fffcf7 0%, #f7f5f0 55%, #efe8da 100%);
    color: #161412;
  }
  body.home-theme-light[data-page="home"].page-blackgold main {
    background: transparent !important;
  }
  body.home-theme-light .bg-m-top {
    background: rgba(255, 252, 247, 0.92);
    border-bottom: 1px solid rgba(154, 116, 32, 0.22);
  }
  body.home-theme-light .bg-m-brand__text strong {
    color: #161412;
  }
  body.home-theme-light .bg-m-lang__select {
    background: #ffffff;
    color: #161412;
    border-color: rgba(154, 116, 32, 0.35);
  }
  body.home-theme-light .bg-m-lang__select option {
    background: #ffffff;
    color: #161412;
  }
  body.home-theme-light .bg-m-links > a {
    color: #161412;
  }
  body.home-theme-light .bg-m-links__ico {
    color: #9a7420;
    border-color: rgba(154, 116, 32, 0.35);
  }
  body.home-theme-light .bg-m-stage__title {
    color: #161412;
  }
  body.home-theme-light .bg-m-stage__title em {
    background: linear-gradient(105deg, #7a5a12 0%, #b8922a 40%, #8a6914 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
  body.home-theme-light .bg-m-cta {
    background: linear-gradient(135deg, #9b6a19, #f5d77f);
    color: #111;
  }
  body.home-theme-light .bg-m-rail__head h2,
  body.home-theme-light .bg-m-fl__head h2 {
    color: #161412;
  }
  body.home-theme-light .bg-m-dock__quote {
    color: #141414;
  }
  body.home-theme-light .bg-m-themes .home-theme-switch {
    background: #ffffff;
    border-color: rgba(154, 116, 32, 0.3);
  }
}
