/* ══════════════════════════════════════════════════════════
   PROJECTS PAGE — projects.css
   Uses design tokens from style.css :root
══════════════════════════════════════════════════════════ */

/* ── Page shell ─────────────────────────────────────────── */
body.proj-page {
  background-color: var(--color-dark-espresso);
  transition: background-color 300ms ease;
  color: var(--color-ivory);
  /* prevent vertical scrollbar from page overflow */
  overflow-x: hidden;
}

/* Force ivory on all text — override style.css body { color: black } */
.proj-page h1,
.proj-page h2,
.proj-page h3,
.proj-page p,
.proj-page span,
.proj-page a {
  color: var(--color-ivory);
}

/* VisualModal: title spans must inherit from their h2 color, not the global ivory override */
.vm-title span { color: inherit !important; }

/* ── Main container — fits in one viewport ───────────────── */
.proj-main {
  max-width: 1380px;
  margin: 0 auto;
  padding: 150px 2rem 3rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Page header — two-column grid layout ───────────────── */
.proj-header {
  display: grid;
  grid-template-areas:
    "heading"
    "subtext"
    "tabs";
  grid-template-columns: 1fr;
  row-gap: 1.25rem;
  padding: 0 0 1.5rem;
  flex-shrink: 0;
}

.proj-heading-wrap { grid-area: heading; }
.proj-header-right { grid-area: subtext; }
.tab-group         { grid-area: tabs; align-self: start; }

@media (min-width: 1024px) {
  .proj-header {
    grid-template-areas:
      "heading subtext"
      "tabs    subtext";
    grid-template-columns: 1fr min(400px, 32%);
    grid-template-rows: auto 1fr;
    column-gap: 3rem;
    row-gap: 1.5rem;
  }
  .proj-header-right { align-self: start; padding-top: 0.75rem; }
}

.proj-heading {
  font-family: 'Parisienne', cursive;
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  color: var(--color-ivory);
  line-height: 1.05;
  margin: 0;
}

.proj-subtext {
  font-size: clamp(0.82rem, 1.1vw, 0.92rem);
  color: rgba(250, 246, 237, 0.52);
  margin: 0;
  line-height: 1.75;
}

@media (min-width: 1024px) {
  .proj-subtext { text-align: right; }
}

/* ── Filter tabs — bordered segmented style ──────────────── */
.tab-group {
  display: flex;
  width: 100%;
  align-items: stretch;
  border: 1.5px solid rgba(250, 246, 237, 0.22);
  border-radius: 999px;
  background: none;
  padding: 0;
  gap: 0;
  overflow: hidden;
  flex-shrink: 0;
}

.tab-pill {
  flex: 1;
  border-radius: 0;
  border: none;
  border-right: 1.5px solid rgba(250, 246, 237, 0.22);
  padding: 0.7rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
  font-family: 'Rethink Sans', sans-serif;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.tab-pill:last-child { border-right: none; }

/* Base active/inactive */
.tab-pill--active   { background: var(--color-lilac-main); color: var(--color-near-black); }
.tab-pill--inactive { background: transparent; color: rgba(250,246,237,0.42); }
.tab-pill--inactive:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(250,246,237,0.82);
}

/* UI/UX tab — deep purple when active */
.tab-pill--uiux.tab-pill--active {
  background: var(--color-deep-purple);
  color: var(--color-ivory);
}
.tab-pill--uiux.tab-pill--inactive { color: var(--color-soft-lavender); }
.tab-pill--uiux.tab-pill--inactive:hover {
  background: rgba(72,72,112,0.20);
  color: var(--color-lilac-main);
}

/* Creative tabs — lilac when active */
.tab-pill--creative.tab-pill--active {
  background: var(--color-lilac-main);
  color: var(--color-near-black);
}

/* ── Project grid ────────────────────────────────────────── */
.proj-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  flex: 1; /* stretch to fill remaining viewport height */
}

@media (min-width: 640px)  { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .proj-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .proj-grid--3 { grid-template-columns: repeat(3, 1fr); }

  /* 3-col tabs (Motion Graphics, Visual) — fit within viewport with breathing room */
  .proj-grid--3 .proj-card {
    aspect-ratio: unset;
    min-height: auto;
    height: clamp(240px, calc(100svh - 420px), 500px);
  }
}

/* ── Magazine-cover project card ────────────────────────── */
.proj-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-20);
  aspect-ratio: 3 / 4;
  min-height: 280px;
  cursor: pointer;
  transition: transform 320ms ease, box-shadow 320ms ease;
  display: block;
}

.proj-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

/* Full-bleed background image */
.proj-card-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 420ms ease;
}

.proj-card:hover .proj-card-bg {
  transform: scale(1.05);
}

/* Gradient vignette — deepens toward bottom */
.proj-card-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(6,4,16,0.08) 0%,
    transparent 22%,
    rgba(6,4,16,0.5) 58%,
    rgba(6,4,16,0.92) 100%
  );
  pointer-events: none;
}

/* Category badge — top-left frosted pill */
.proj-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 100px;
  padding: 0.32rem 0.8rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
  font-family: 'Rethink Sans', sans-serif;
}

/* Bottom glass overlay — diffuses to transparent at the top */
.proj-card-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(8,6,20,0.55) 28%,
    rgba(8,6,20,0.82) 60%,
    rgba(8,6,20,0.95) 100%
  );
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 30%);
  mask-image: linear-gradient(to bottom, transparent 0%, black 30%);
  border-top: none;
  padding: 2.5rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* Logo wrapper */
.proj-card-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

/* Coming-soon pill */
.proj-card-coming-soon {
  display: inline-block;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,246,237,0.55);
  border: 1px solid rgba(250,246,237,0.18);
  border-radius: 100px;
  padding: 0.18rem 0.6rem;
  background: rgba(250,246,237,0.05);
}

/* Logo image in overlay */
.proj-card-logo {
  max-height: 44px;
  width: auto;
  max-width: 85%;
  object-fit: contain;
  display: block;
}
.proj-card-logo--lg { max-height: 64px; max-width: 90%; }
.proj-card-logo--dark { filter: brightness(0) invert(1); }

/* Name text (no logo) */
.proj-card-name {
  font-family: 'Rethink Sans', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--color-ivory);
  margin: 0;
  line-height: 1.1;
  text-align: left;
}

/* Description */
.proj-card-desc {
  font-size: 0.7rem;
  font-style: italic;
  color: rgba(250,246,237,0.52);
  line-height: 1.5;
  margin: 0;
  text-align: left;
}

/* CTA row */
.proj-card-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.1rem;
}

/* View Blueprint pill */
.btn-blueprint {
  flex: 1;
  display: block;
  background: rgba(255,255,255,0.88);
  color: var(--color-near-black);
  border-radius: var(--radius-pill);
  padding: 0.72rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'Rethink Sans', sans-serif;
  text-align: center;
  transition: background 200ms ease, transform 200ms ease;
}

.btn-blueprint:hover {
  background: #fff;
  transform: translateY(-1px);
}

/* Arrow circle */
.proj-card-arrow {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
  font-family: inherit;
}

.proj-card-arrow:hover {
  background: rgba(255,255,255,0.22);
  transform: translateX(2px);
}

/* ── Visual collection cards ─────────────────────────────── */
.visual-card {
  background: rgba(44, 43, 58, 0.62);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-20);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  height: 100%;
  position: relative;
  border: 1px solid rgba(255,255,255,0.10);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.visual-card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 16px 48px rgba(96,96,160,0.20);
}

.visual-card-glow   { position: absolute; inset: 0; pointer-events: none; }

.visual-card-icon {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.75;
}

.visual-card-content {
  position: relative;
  z-index: 10;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.visual-card-name {
  font-family: 'Rethink Sans', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-ivory);
  line-height: 1.2;
  margin: 0;
  text-align: center;
}

/* ── Tab-switch animations ───────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeFast {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-grid    { animation: fadeSlideUp 0.42s cubic-bezier(0.22,1,0.36,1) both; }
.animate-heading { animation: fadeFast 0.32s ease both; }

/* ── Tab-specific backgrounds ────────────────────────────── */
body.proj-page[data-tab="UI-UX"]          { background-color: var(--color-ivory); }
body.proj-page[data-tab="Branding"]       { background-color: var(--color-deep-purple); }
body.proj-page[data-tab="Motion-Graphics"]{ background-color: var(--color-dark-espresso); }
body.proj-page[data-tab="Visual"]         { background-color: #2C2B3A; }

/* UI/UX has a light (ivory) bg — flip heading + subtext to dark */
body.proj-page[data-tab="UI-UX"] .proj-heading { color: var(--color-near-black); }
body.proj-page[data-tab="UI-UX"] .proj-subtext { color: rgba(44, 43, 58, 0.55); }

/* Flip tab group borders + inactive text to dark on ivory */
body.proj-page[data-tab="UI-UX"] .tab-group { border-color: rgba(44, 43, 58, 0.20); }
body.proj-page[data-tab="UI-UX"] .tab-pill  { border-right-color: rgba(44, 43, 58, 0.20); }
body.proj-page[data-tab="UI-UX"] .tab-pill--inactive { color: rgba(44, 43, 58, 0.45); }
body.proj-page[data-tab="UI-UX"] .tab-pill--inactive:hover { background: rgba(44,43,58,0.07); color: rgba(44,43,58,0.80); }

/* ── Colour overrides ────────────────────────────────────── */
.proj-page .btn-blueprint,
.proj-page .btn-blueprint:hover { color: var(--color-near-black); }

/* ── Responsive ──────────────────────────────────────────── */

/* Tablet (768–1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .vm-left { flex: 0 0 36%; padding: 2rem 2rem; }
  .vm-right { padding: 2rem 2rem 1.75rem; }
  .bm2-sec { padding: 1.75rem 2rem; }
  .bm2-hero-left { padding: 2rem; }
  .bm2-logo-cards { grid-template-columns: repeat(2, 1fr); }
}

/* ── Projects header — center + larger heading on tablet ── */
@media (max-width: 1023px) {
  .proj-heading      { text-align: center; font-size: clamp(2.8rem, 6vw, 3.6rem); }
  .proj-heading-wrap { text-align: center; }
  .proj-subtext      { text-align: center; }
}

@media (max-width: 1023px) {
  .proj-main { padding: 150px 1.5rem 2.5rem; }
}

@media (max-width: 639px) {
  .proj-main { padding: 7.5rem 1.25rem 2.5rem; }
  .tab-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 14px;
    overflow: hidden;
    max-width: 100%;
  }
  .tab-pill {
    white-space: normal;
    border-bottom: 1.5px solid rgba(250, 246, 237, 0.22);
    padding: 0.6rem 0.5rem;
    font-size: 0.65rem;
    min-height: 2.5rem;
  }
  .tab-pill:nth-child(2n) { border-right: none; }
  .tab-pill:nth-last-child(-n+2) { border-bottom: none; }
  body.proj-page[data-tab="UI-UX"] .tab-pill { border-bottom-color: rgba(44, 43, 58, 0.20); }
  .proj-grid { flex: none; }
}


/* ══════════════════════════════════════════════════════════
   BRANDING MODAL — bm-*
══════════════════════════════════════════════════════════ */

.bm-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10, 9, 8, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: bmFadeIn 0.2s ease;
}

@keyframes bmFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.bm-panel {
  position: relative;
  width: min(1300px, 96%);
  max-height: 92vh;
  background: #faf6ed;
  color: #1a1612;
  border-radius: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  animation: bmSlideIn 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  scrollbar-width: thin;
  scrollbar-color: rgba(96,96,160,0.25) transparent;
}

@keyframes bmSlideIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.bm-close {
  position: sticky;
  top: 0;
  align-self: flex-end;
  margin: 1rem 1rem 0;
  z-index: 10;
  background: rgba(250,246,237,0.9);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #3a3530;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
.bm-close:hover { background: #ede8df; transform: rotate(90deg); }

/* Override proj-page color cascade inside modal */
.bm-panel h2,
.bm-panel h3,
.bm-panel p,
.bm-panel span,
.bm-panel strong,
.bm-panel div { color: inherit !important; }

/* Dark logo on card — make white for dark card backgrounds */
.proj-card-logo--dark { filter: brightness(0) invert(1); }

/* ── Editorial modal — bm2-* ─────────────────────────────── */

/* HERO */
.bm2-hero {
  display: grid;
  grid-template-columns: 1fr 190px;
  min-height: 260px;
  flex-shrink: 0;
}
.bm2-hero-left {
  background: #1f3d20;
  padding: 2.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}
.bm2-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #5a8a50 !important;
  margin-bottom: 0.875rem;
  display: block;
}
.bm2-title {
  font-family: 'Rethink Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #f0ead8 !important;
  line-height: 1;
  margin: 0 0 0.625rem;
  letter-spacing: -0.02em;
}
.bm2-tagline {
  font-size: 0.95rem;
  color: #7aaa6a !important;
  font-weight: 300;
  line-height: 1.65;
  max-width: 380px;
  margin: 0;
}
.bm2-meta { display: flex; flex-direction: column; gap: 5px; }
.bm2-meta-item {
  font-size: 13px;
  color: #5a8a50 !important;
  font-weight: 300;
}
.bm2-meta-item b { color: #8ac870 !important; font-weight: 600; }

.bm2-hero-right {
  background: #2e5a2e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  padding: 2rem 1.25rem;
}
.bm2-logo {
  width: 120px;
  max-width: 140px;
  height: auto;
  object-fit: contain;
  display: block;
  filter: invert(65%) sepia(40%) saturate(400%) hue-rotate(75deg) brightness(1.1);
}
.bm2-stat-chip {
  background: rgba(0,0,0,0.2);
  border-radius: 8px;
  padding: 8px 12px;
  text-align: center;
  width: 100%;
}
.bm2-stat-num {
  font-size: 1.15rem;
  font-weight: 700;
  color: #f0ead8 !important;
  line-height: 1;
}
.bm2-stat-lab {
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a8a50 !important;
  margin-top: 3px;
}

/* ABOUT */
.bm2-about {
  background: #f0ead8;
  padding: 1.5rem 2.5rem;
  border-bottom: 0.5px solid #ddd5c0;
}
.bm2-about-text {
  font-size: 1rem;
  font-style: italic;
  color: #3a4a30 !important;
  line-height: 1.75;
  margin: 0;
}
.bm2-about-text em { color: #3a7030 !important; font-style: normal; font-weight: 600; }

/* PROCESS BAR */
.bm2-proc-bar {
  display: flex;
  border-bottom: 0.5px solid #e0d8c8;
  background: #f8f4ed;
}
.bm2-proc-item {
  flex: 1;
  padding: 1.5rem 1.25rem;
  border-right: 0.5px solid #e0d8c8;
  text-align: center;
}
.bm2-proc-item:last-child { border-right: none; }
.bm2-proc-name {
  font-size: 14px;
  font-weight: 600;
  color: #2a4a20 !important;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}
.bm2-proc-desc {
  font-size: 12px;
  color: #7a8a70 !important;
  font-weight: 300;
  line-height: 1.4;
}

/* SECTIONS */
.bm2-sec {
  padding: 2rem 2.5rem;
  border-bottom: 0.5px solid #e0d8c8;
  background: #f8f4ed;
}
.bm2-sec--alt { background: #f0ece0; }
.bm2-sec-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.bm2-sec-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e0ecd8;
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 0.5rem;
}
.bm2-sec-num  { font-size: 9px; color: #3a7030 !important; letter-spacing: 0.1em; font-weight: 500; }
.bm2-sec-dot  { width: 3px; height: 3px; border-radius: 50%; background: #6aaa50; display: inline-block; }
.bm2-sec-cat  { font-size: 9px; color: #5a8a50 !important; letter-spacing: 0.06em; text-transform: uppercase; }
.bm2-sec-title {
  font-family: 'Rethink Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #1f3d20 !important;
  margin: 0 0 0.35rem;
}
.bm2-sec-sub {
  font-size: 0.78rem;
  color: #6a7a60 !important;
  font-weight: 300;
  line-height: 1.65;
  margin: 0;
}
.bm2-tags { display: flex; flex-wrap: wrap; gap: 5px; align-items: flex-start; flex-shrink: 0; }
.bm2-tag {
  font-size: 10px;
  color: #3a6030 !important;
  border: 0.5px solid #8ab870;
  border-radius: 20px;
  padding: 3px 10px;
  background: rgba(100,160,80,0.08);
  white-space: nowrap;
}
.bm2-img-wrap { border-radius: 10px; overflow: hidden; background: #e4ddd0; }
.bm2-img { width: 100%; height: auto; display: block; }
.bm2-pdf-wrap { border-radius: 10px; overflow: hidden; background: #f5f3ef; }
.bm2-pdf-frame { width: 100%; height: 560px; border: none; display: block; }

/* ── Logo card grid (3-up) ───────────────────────────────── */
.bm2-logo-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.bm2-logo-card {
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.07);
  padding: 1.75rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.bm2-logo-card-img {
  width: 100%;
  max-height: 100px;
  object-fit: contain;
  display: block;
}
.bm2-logo-card-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  height: 100px;
  justify-content: center;
  opacity: 0.45;
}
.bm2-logo-card-placeholder span {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(18,36,90,0.6);
}
.bm2-logo-card-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(18,36,90,0.5);
  margin: 0;
  text-align: center;
}
/* 2-card variant — wider, taller */
.bm2-logo-cards--2 {
  grid-template-columns: repeat(2, 1fr);
}
.bm2-logo-cards--2 .bm2-logo-card-img {
  max-height: 160px;
  width: 100%;
  object-fit: contain;
}
/* tall 3-card variant */
.bm2-logo-cards--tall .bm2-logo-card {
  padding: 2.25rem 1.5rem 1.25rem;
  min-height: 240px;
  justify-content: center;
}
.bm2-logo-cards--tall .bm2-logo-card-img {
  max-height: 180px;
  width: 100%;
  object-fit: contain;
}
@media (max-width: 560px) {
  .bm2-logo-cards { grid-template-columns: 1fr; }
  .bm2-logo-cards--2 { grid-template-columns: 1fr; }
  .bm2-logo-cards--tall { grid-template-columns: 1fr; }
}

/* ── 2×2 image grid ─────────────────────────────────────── */
.bm2-img-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.bm2-img-grid-item {
  border-radius: 10px;
  overflow: hidden;
  background: #e4ddd0;
}
.bm2-img-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 560px) {
  .bm2-img-grid-2x2 { grid-template-columns: 1fr; }
}

/* ── Logo anatomy (coded) ────────────────────────────────── */
.bm2-anatomy {
  border-radius: 12px;
  background: #6b3520;
  padding: 2.25rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.bm2-anatomy-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
}
.bm2-anatomy-side {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.bm2-anatomy-ann {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.bm2-anatomy-ann--left {
  border-left: 2px solid rgba(255,255,255,0.25);
  padding-left: 0.7rem;
}
.bm2-anatomy-ann--right {
  border-right: 2px solid rgba(255,255,255,0.25);
  padding-right: 0.7rem;
  text-align: right;
  align-items: flex-end;
}
.bm2-anatomy-ann-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  font-family: 'Rethink Sans', sans-serif;
}
.bm2-anatomy-ann-desc {
  font-size: 0.64rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  font-family: 'Rethink Sans', sans-serif;
}
.bm2-anatomy-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.bm2-anatomy-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  flex-shrink: 0;
}
.bm2-anatomy-logo-bg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #2a361b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.bm2-anatomy-logo-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}
.bm2-anatomy-note {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.75);
  text-align: center;
  line-height: 1.8;
  margin: 0;
  font-family: 'Rethink Sans', sans-serif;
  max-width: 560px;
  align-self: center;
}
.bm2-anatomy-note strong {
  color: #fff;
  font-weight: 700;
}
@media (max-width: 640px) {
  .bm2-anatomy-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .bm2-anatomy-center { order: -1; }
  .bm2-anatomy-ann--right { border-right: none; border-left: 2px solid rgba(255,255,255,0.25); padding-right: 0; padding-left: 0.7rem; text-align: left; align-items: flex-start; }
  .bm2-anatomy-ring { width: 160px; height: 160px; }
}

/* ── Color & Typography system ───────────────────────────── */
.bm2-color-system {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-radius: 12px;
  background: #f9f7f4;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 1.75rem;
}
.bm2-cs-colors { display: flex; flex-direction: column; gap: 1rem; }
.bm2-cs-group  { display: flex; flex-direction: column; gap: 0.5rem; }
.bm2-cs-group-label {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(0,0,0,0.35);
}
.bm2-cs-swatches { display: flex; gap: 0.5rem; }
.bm2-cs-swatch {
  flex: 1; height: 52px; border-radius: 10px;
  display: flex; align-items: flex-end;
  padding: 0.35rem 0.5rem;
  min-width: 0;
}
.bm2-cs-hex {
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.05em;
  color: rgba(255,255,255,0.75); font-family: monospace;
}
.bm2-cs-fonts { display: flex; flex-direction: column; gap: 0.75rem; padding-top: 0.25rem; border-top: 1px solid rgba(0,0,0,0.07); }
.bm2-cs-font-row {
  display: flex; align-items: baseline; gap: 1.5rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.bm2-cs-font-meta { flex-shrink: 0; width: 130px; display: flex; flex-direction: column; gap: 0.15rem; }
.bm2-cs-font-role {
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(0,0,0,0.35);
}
.bm2-cs-font-name { font-size: 0.72rem; font-weight: 700; color: rgba(0,0,0,0.65); }
.bm2-cs-font-sample { margin: 0; font-size: 0.88rem; color: rgba(0,0,0,0.55); line-height: 1.4; }

/* ── Instagram official embed wrapper ───────────────────── */
.bm2-ig-wrap {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
  background: #f9f7f4;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
}

/* ── External link card ──────────────────────────────────── */
.bm2-external-wrap {
  border-radius: 12px; overflow: hidden;
  background: #f9f7f4; border: 1px solid rgba(0,0,0,0.06);
  min-height: 160px; display: flex;
}
.bm2-external-card {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.6rem; padding: 2.5rem 2rem;
  color: rgba(0,0,0,0.45);
}
.bm2-external-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin: 0; color: rgba(0,0,0,0.55); }
.bm2-external-sub { font-size: 0.72rem; margin: 0; color: rgba(0,0,0,0.4); }
.bm2-external-btn {
  margin-top: 0.35rem; padding: 0.45rem 1.1rem;
  border-radius: 100px; border: 1.5px solid currentColor;
  font-size: 0.72rem; font-weight: 600; text-decoration: none;
  color: rgba(0,0,0,0.55); transition: background 0.2s ease, color 0.2s ease;
}
.bm2-external-btn:hover { background: rgba(0,0,0,0.06); color: rgba(0,0,0,0.8); }

/* ── Image + "More to come" row ──────────────────────────── */
.bm2-img-more-row { display: flex; gap: 0.75rem; align-items: stretch; }
.bm2-img-more-row .bm2-img-wrap { flex: 1; min-width: 0; }
.bm2-more-card {
  width: 140px; flex-shrink: 0; border-radius: 10px;
  border: 1.5px dashed rgba(0,0,0,0.18);
  background: rgba(0,0,0,0.02);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0.5rem; padding: 1.25rem 0.75rem;
}
.bm2-more-star { font-size: 1.25rem; opacity: 0.3; }
.bm2-more-text { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(0,0,0,0.35); margin: 0; text-align: center; }
.bm2-more-note { font-size: 0.62rem; color: rgba(0,0,0,0.25); margin: 0.2rem 0 0; text-align: center; font-style: italic; }

/* embed + video side by side */
.bm2-ig-video-col { display: flex; flex-direction: row; gap: 0.75rem; align-items: flex-start; }
.bm2-ig-video-col .bm2-ig-wrap { flex: 1; min-width: 0; }
.bm2-more-video { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.bm2-more-video-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(0,0,0,0.35); margin: 0; }
.bm2-more-video-el { width: 100%; border-radius: 10px; display: block; background: #000; }
@media (max-width: 560px) {
  .bm2-ig-video-col { flex-direction: column; }
  .bm2-more-video { flex: none; width: 100%; }
}

/* embed + more-card side by side */
.bm2-ig-more-row { display: flex; gap: 0.75rem; align-items: flex-start; }
.bm2-ig-more-row .bm2-ig-wrap { flex: 1; min-width: 0; }
.bm2-ig-more-row .bm2-more-card { width: 130px; flex-shrink: 0; align-self: stretch; min-height: 200px; }
@media (max-width: 560px) {
  .bm2-ig-more-row { flex-direction: column; }
  .bm2-ig-more-row .bm2-more-card { width: 100%; min-height: 80px; }
}
@media (max-width: 560px) {
  .bm2-img-more-row { flex-direction: column; }
  .bm2-more-card { width: 100%; height: 80px; }
  .bm2-cs-swatches { flex-wrap: wrap; }
}

/* QUOTE */
.bm2-quote {
  background: #1f3d20;
  padding: 2rem 2.5rem;
  text-align: center;
}
.bm2-quote-text {
  font-size: 1.1rem;
  font-style: italic;
  color: #d8f0c8 !important;
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto 0.625rem;
}
.bm2-quote-attr {
  font-size: 10px;
  color: #5a8a50 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* FOOTER */
.bm2-footer {
  background: #162e17;
  padding: 0.875rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.bm2-footer-brand {
  font-size: 10px;
  color: #3a6030 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.bm2-footer-tags { display: flex; gap: 6px; }
.bm2-footer-tag {
  font-size: 9px;
  color: #3a6030 !important;
  border: 0.5px solid #2a5020;
  border-radius: 20px;
  padding: 2px 8px;
}

/* ── LINAWA theme — #F3EFE4 · #FFFFFF · #75AF6E · #F1B540 ── */
.bm2-theme-linawa .bm2-hero-left         { background: #75AF6E; }
.bm2-theme-linawa .bm2-hero-right        { background: #F3EFE4; }
.bm2-theme-linawa .bm2-eyebrow           { color: #000000 !important; }
.bm2-theme-linawa .bm2-title             { color: #FFFFFF !important; }
.bm2-theme-linawa .bm2-tagline           { color: rgba(255,255,255,0.88) !important; }
.bm2-theme-linawa .bm2-meta-item         { color: rgba(255,255,255,0.75) !important; }
.bm2-theme-linawa .bm2-meta-item b       { color: #000000 !important; }
.bm2-theme-linawa .bm2-logo              { filter: invert(52%) sepia(30%) saturate(500%) hue-rotate(80deg) brightness(0.75); width: 130px; height: auto; }
.bm2-theme-linawa .bm2-stat-chip         { background: #75AF6E; border: 0.5px solid rgba(255,255,255,0.25); }
.bm2-theme-linawa .bm2-stat-num          { color: #FFFFFF !important; }
.bm2-theme-linawa .bm2-stat-lab          { color: #000000 !important; }
.bm2-theme-linawa .bm2-about             { background: #F3EFE4; border-bottom-color: #d8d0b8; }
.bm2-theme-linawa .bm2-about-text        { color: #2a3a20 !important; }
.bm2-theme-linawa .bm2-about-text em     { color: #75AF6E !important; }
.bm2-theme-linawa .bm2-proc-bar          { background: #FFFFFF; border-bottom-color: #e0d8c8; }
.bm2-theme-linawa .bm2-proc-name         { color: #2a4a20 !important; }
.bm2-theme-linawa .bm2-proc-desc         { color: #8a9a80 !important; }
.bm2-theme-linawa .bm2-sec               { background: #FFFFFF; border-bottom-color: #e4ddd0; }
.bm2-theme-linawa .bm2-sec--alt          { background: #F3EFE4; }
.bm2-theme-linawa .bm2-sec-badge         { background: rgba(117,175,110,0.15); }
.bm2-theme-linawa .bm2-sec-num           { color: #3a7030 !important; }
.bm2-theme-linawa .bm2-sec-dot           { background: #000000; }
.bm2-theme-linawa .bm2-sec-cat           { color: #75AF6E !important; }
.bm2-theme-linawa .bm2-sec-title         { color: #1f3d20 !important; }
.bm2-theme-linawa .bm2-sec-sub           { color: #5a7050 !important; }
.bm2-theme-linawa .bm2-tag               { color: #2a5a20 !important; border-color: #75AF6E; background: rgba(117,175,110,0.10); }
.bm2-theme-linawa .bm2-quote             { background: #75AF6E; }
.bm2-theme-linawa .bm2-quote-text        { color: #FFFFFF !important; }
.bm2-theme-linawa .bm2-quote-attr        { color: #000000 !important; }
.bm2-theme-linawa .bm2-footer            { background: #3a6a34; }
.bm2-theme-linawa .bm2-footer-brand      { color: rgba(243,239,228,0.6) !important; }
.bm2-theme-linawa .bm2-footer-tag        { color: rgba(243,239,228,0.6) !important; border-color: rgba(117,175,110,0.4); }

/* ── MORI theme — deep navy precision ──────────────────────── */
/* Palette: #001051 navy · #1b4f93 blue · #d9d9d9 light gray · #f7f0e0 cream · #16171c near-black · #d6d4c9 warm gray */
.bm2-theme-mori .bm2-hero-left         { background: #001051; }
.bm2-theme-mori .bm2-hero-right        { background: #16171c; }
.bm2-theme-mori .bm2-eyebrow           { color: #1b4f93 !important; }
.bm2-theme-mori .bm2-title             { color: #f7f0e0 !important; }
.bm2-theme-mori .bm2-tagline           { color: #d9d9d9 !important; }
.bm2-theme-mori .bm2-meta-item         { color: #d6d4c9 !important; }
.bm2-theme-mori .bm2-meta-item b       { color: #1b4f93 !important; }
.bm2-theme-mori .bm2-logo              { filter: brightness(0) invert(1); width: 130px; height: auto; }
.bm2-theme-mori .bm2-stat-chip         { background: rgba(27,79,147,0.18); border: 0.5px solid rgba(217,217,217,0.18); }
.bm2-theme-mori .bm2-stat-num          { color: #f7f0e0 !important; }
.bm2-theme-mori .bm2-stat-lab          { color: #1b4f93 !important; }
.bm2-theme-mori .bm2-about             { background: #f7f0e0; border-bottom-color: #d6d4c9; }
.bm2-theme-mori .bm2-about-text        { color: #001051 !important; }
.bm2-theme-mori .bm2-about-text em     { color: #1b4f93 !important; }
.bm2-theme-mori .bm2-proc-bar          { background: #f7f0e0; border-bottom-color: #d6d4c9; }
.bm2-theme-mori .bm2-proc-name         { color: #001051 !important; }
.bm2-theme-mori .bm2-proc-desc         { color: #1b4f93 !important; }
.bm2-theme-mori .bm2-sec               { background: #f7f0e0; border-bottom-color: #d6d4c9; }
.bm2-theme-mori .bm2-sec--alt          { background: #d6d4c9; }
.bm2-theme-mori .bm2-sec-badge         { background: rgba(27,79,147,0.10); }
.bm2-theme-mori .bm2-sec-num           { color: #001051 !important; }
.bm2-theme-mori .bm2-sec-dot           { background: #1b4f93; }
.bm2-theme-mori .bm2-sec-cat           { color: #1b4f93 !important; }
.bm2-theme-mori .bm2-sec-title         { color: #001051 !important; }
.bm2-theme-mori .bm2-sec-sub           { color: #16171c !important; }
.bm2-theme-mori .bm2-tag               { color: #001051 !important; border-color: #1b4f93; background: rgba(27,79,147,0.08); }
.bm2-theme-mori .bm2-quote             { background: #001051; }
.bm2-theme-mori .bm2-quote-text        { color: #f7f0e0 !important; }
.bm2-theme-mori .bm2-quote-attr        { color: #1b4f93 !important; }
.bm2-theme-mori .bm2-footer            { background: #16171c; }
.bm2-theme-mori .bm2-footer-brand      { color: #d6d4c9 !important; }
.bm2-theme-mori .bm2-footer-tag        { color: #d6d4c9 !important; border-color: rgba(27,79,147,0.4); }

/* ── Kusinafy theme — #efe8d8 · #2e5136 · #5a3312 · #9a7550 · #7c922d ── */
.bm2-theme-kusinafy .bm2-hero-left         { background: #2e5136; }
.bm2-theme-kusinafy .bm2-hero-right        { background: #efe8d8; }
.bm2-theme-kusinafy .bm2-eyebrow           { color: #7c922d !important; }
.bm2-theme-kusinafy .bm2-title             { color: #efe8d8 !important; }
.bm2-theme-kusinafy .bm2-tagline           { color: rgba(239,232,216,0.85) !important; }
.bm2-theme-kusinafy .bm2-meta-item         { color: rgba(239,232,216,0.70) !important; }
.bm2-theme-kusinafy .bm2-meta-item b       { color: #7c922d !important; }
.bm2-theme-kusinafy .bm2-logo              { width: 110px; height: auto; filter: none; }
.bm2-theme-kusinafy .bm2-stat-chip         { background: rgba(90,51,18,0.08); border: 0.5px solid rgba(90,51,18,0.18); }
.bm2-theme-kusinafy .bm2-stat-num          { color: #2e5136 !important; }
.bm2-theme-kusinafy .bm2-stat-lab          { color: #9a7550 !important; }
.bm2-theme-kusinafy .bm2-about             { background: #efe8d8; border-bottom-color: #d4c8b0; }
.bm2-theme-kusinafy .bm2-about-text        { color: #5a3312 !important; }
.bm2-theme-kusinafy .bm2-about-text em     { color: #2e5136 !important; }
.bm2-theme-kusinafy .bm2-proc-bar          { background: #efe8d8; border-bottom-color: #d4c8b0; }
.bm2-theme-kusinafy .bm2-proc-name         { color: #2e5136 !important; }
.bm2-theme-kusinafy .bm2-proc-desc         { color: #9a7550 !important; }
.bm2-theme-kusinafy .bm2-sec               { background: #efe8d8; border-bottom-color: #d4c8b0; }
.bm2-theme-kusinafy .bm2-sec--alt          { background: #e0d8c4; }
.bm2-theme-kusinafy .bm2-sec-badge         { background: rgba(124,146,45,0.12); }
.bm2-theme-kusinafy .bm2-sec-num           { color: #2e5136 !important; }
.bm2-theme-kusinafy .bm2-sec-dot           { background: #7c922d; }
.bm2-theme-kusinafy .bm2-sec-cat           { color: #7c922d !important; }
.bm2-theme-kusinafy .bm2-sec-title         { color: #5a3312 !important; }
.bm2-theme-kusinafy .bm2-sec-sub           { color: #9a7550 !important; }
.bm2-theme-kusinafy .bm2-tag               { color: #2e5136 !important; border-color: #7c922d; background: rgba(124,146,45,0.09); }
.bm2-theme-kusinafy .bm2-quote             { background: #2e5136; }
.bm2-theme-kusinafy .bm2-quote-text        { color: #efe8d8 !important; }
.bm2-theme-kusinafy .bm2-quote-attr        { color: #7c922d !important; }
.bm2-theme-kusinafy .bm2-footer            { background: #5a3312; }
.bm2-theme-kusinafy .bm2-footer-brand      { color: rgba(239,232,216,0.55) !important; }
.bm2-theme-kusinafy .bm2-footer-tag        { color: rgba(239,232,216,0.55) !important; border-color: rgba(124,146,45,0.35); }

/* ── Aetheria Botanicals theme — #2a361b dark green · #823a1b rustic ember ── */
.bm2-theme-aetheria .bm2-hero-left         { background: #2a361b; }
.bm2-theme-aetheria .bm2-hero-right        { background: #f1efeb; }
.bm2-theme-aetheria .bm2-eyebrow           { color: #823a1b !important; }
.bm2-theme-aetheria .bm2-title             { color: #f1efeb !important; }
.bm2-theme-aetheria .bm2-tagline           { color: rgba(241,239,235,0.78) !important; }
.bm2-theme-aetheria .bm2-meta-item         { color: rgba(241,239,235,0.65) !important; }
.bm2-theme-aetheria .bm2-meta-item b       { color: #b9b7a5 !important; }
.bm2-theme-aetheria .bm2-logo              { width: 140px; height: auto; filter: none; }
.bm2-theme-aetheria .bm2-stat-chip         { background: rgba(42,54,27,0.08); border: 0.5px solid rgba(42,54,27,0.18); }
.bm2-theme-aetheria .bm2-stat-num          { color: #2a361b !important; }
.bm2-theme-aetheria .bm2-stat-lab          { color: #823a1b !important; }
.bm2-theme-aetheria .bm2-about             { background: #f1efeb; border-bottom-color: #d8d5cc; }
.bm2-theme-aetheria .bm2-about-text        { color: #2a361b !important; }
.bm2-theme-aetheria .bm2-about-text em     { color: #823a1b !important; }
.bm2-theme-aetheria .bm2-proc-bar          { background: #f1efeb; border-bottom-color: #d8d5cc; }
.bm2-theme-aetheria .bm2-proc-name         { color: #2a361b !important; }
.bm2-theme-aetheria .bm2-proc-desc         { color: #823a1b !important; }
.bm2-theme-aetheria .bm2-sec               { background: #f1efeb; border-bottom-color: #d8d5cc; }
.bm2-theme-aetheria .bm2-sec--alt          { background: #e8e5dc; }
.bm2-theme-aetheria .bm2-sec-badge         { background: rgba(42,54,27,0.08); }
.bm2-theme-aetheria .bm2-sec-num           { color: #2a361b !important; }
.bm2-theme-aetheria .bm2-sec-dot           { background: #823a1b; }
.bm2-theme-aetheria .bm2-sec-cat           { color: #823a1b !important; }
.bm2-theme-aetheria .bm2-sec-title         { color: #2a361b !important; }
.bm2-theme-aetheria .bm2-sec-sub           { color: rgba(42,54,27,0.65) !important; }
.bm2-theme-aetheria .bm2-tag               { background: rgba(42,54,27,0.10); color: #2a361b !important; border-color: rgba(130,58,27,0.3); }
.bm2-theme-aetheria .bm2-quote             { background: #2a361b; }
.bm2-theme-aetheria .bm2-quote-text        { color: #f1efeb !important; }
.bm2-theme-aetheria .bm2-quote-attr        { color: #b9b7a5 !important; }
.bm2-theme-aetheria .bm2-footer            { background: #1a2412; }
.bm2-theme-aetheria .bm2-footer-brand      { color: rgba(241,239,235,0.55) !important; }
.bm2-theme-aetheria .bm2-footer-tag        { color: rgba(241,239,235,0.55) !important; border-color: rgba(130,58,27,0.4); }
/* Color system swatches — light swatch text override */
.bm2-theme-aetheria .bm2-color-system      { background: #f1efeb; border-color: #d8d5cc; }
.bm2-theme-aetheria .bm2-cs-fonts          { border-top-color: #d8d5cc; }
.bm2-theme-aetheria .bm2-logo-card         { border-color: rgba(255,255,255,0.1); }
.bm2-theme-aetheria .bm2-logo-card-label  { color: rgba(255,255,255,0.55) !important; }

/* ── SoS PH Motion theme — peach · dark ─────────────────── */
.bm2-theme-sosph-motion .bm2-hero-left         { background: #1e1210; }
.bm2-theme-sosph-motion .bm2-hero-right        { background: #f5c4b0; }
.bm2-theme-sosph-motion .bm2-eyebrow           { color: #eb8664 !important; }
.bm2-theme-sosph-motion .bm2-title             { color: #f5ede8 !important; }
.bm2-theme-sosph-motion .bm2-tagline           { color: rgba(245,237,232,0.78) !important; }
.bm2-theme-sosph-motion .bm2-meta-item         { color: rgba(245,237,232,0.65) !important; }
.bm2-theme-sosph-motion .bm2-meta-item b       { color: #eb8664 !important; }
.bm2-theme-sosph-motion .bm2-logo              { filter: brightness(0) invert(1); width: 110px; height: auto; }
.bm2-theme-sosph-motion .bm2-stat-chip         { background: rgba(235,134,100,0.18); border: 0.5px solid rgba(235,134,100,0.30); }
.bm2-theme-sosph-motion .bm2-stat-num          { color: #f5ede8 !important; }
.bm2-theme-sosph-motion .bm2-stat-lab          { color: #eb8664 !important; }
.bm2-theme-sosph-motion .bm2-about             { background: #f9f0ea; border-bottom-color: #e8d4c8; }
.bm2-theme-sosph-motion .bm2-about-text        { color: #3a1f12 !important; }
.bm2-theme-sosph-motion .bm2-about-text em     { color: #c04a22 !important; }
.bm2-theme-sosph-motion .bm2-proc-bar          { background: #f9f0ea; border-bottom-color: #e8d4c8; }
.bm2-theme-sosph-motion .bm2-proc-name         { color: #3a1f12 !important; }
.bm2-theme-sosph-motion .bm2-proc-desc         { color: #c04a22 !important; }
.bm2-theme-sosph-motion .bm2-sec               { background: #f9f0ea; border-bottom-color: #e8d4c8; }
.bm2-theme-sosph-motion .bm2-sec--alt          { background: #f0e4da; }
.bm2-theme-sosph-motion .bm2-sec-badge         { background: rgba(235,134,100,0.12); }
.bm2-theme-sosph-motion .bm2-sec-num           { color: #3a1f12 !important; }
.bm2-theme-sosph-motion .bm2-sec-dot           { background: #eb8664; }
.bm2-theme-sosph-motion .bm2-sec-cat           { color: #c04a22 !important; }
.bm2-theme-sosph-motion .bm2-sec-title         { color: #3a1f12 !important; }
.bm2-theme-sosph-motion .bm2-sec-sub           { color: rgba(58,31,18,0.65) !important; }
.bm2-theme-sosph-motion .bm2-tag               { background: rgba(235,134,100,0.12); color: #3a1f12 !important; border-color: rgba(235,134,100,0.35); }
.bm2-theme-sosph-motion .bm2-quote             { background: #1e1210; }
.bm2-theme-sosph-motion .bm2-quote-text        { color: #f5ede8 !important; }
.bm2-theme-sosph-motion .bm2-quote-attr        { color: #eb8664 !important; }
.bm2-theme-sosph-motion .bm2-footer            { background: #110a08; }
.bm2-theme-sosph-motion .bm2-footer-brand      { color: rgba(245,237,232,0.55) !important; }
.bm2-theme-sosph-motion .bm2-footer-tag        { color: rgba(245,237,232,0.55) !important; border-color: rgba(235,134,100,0.35); }
.bm2-theme-sosph-motion .bm2-related-btn       { border-color: rgba(235,134,100,0.45); color: #eb8664 !important; }
.bm2-theme-sosph-motion .bm2-related-btn:hover { background: rgba(235,134,100,0.12); }

/* ── Related project link ────────────────────────────────── */
.bm2-related { margin-top: 1rem; }
.bm2-related-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.30);
  color: rgba(255,255,255,0.75);
  background: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  font-family: 'Rethink Sans', sans-serif;
}
.bm2-related-btn:hover { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.9); }

/* ── Papemelroti theme — Philippine-inspired vibrant ─────── */
/* Palette: #1A2E56 deep navy · #C8312A Philippine red · #F5C742 jeepney gold · #FEF6E4 warm paper · #F0E4C0 golden tan */
.bm2-theme-papemelroti .bm2-hero-left         { background: #1A2E56; }
.bm2-theme-papemelroti .bm2-hero-right        { background: #C8312A; }
.bm2-theme-papemelroti .bm2-eyebrow           { color: #F5C742 !important; }
.bm2-theme-papemelroti .bm2-title             { color: #FEF6E4 !important; }
.bm2-theme-papemelroti .bm2-tagline           { color: rgba(254,246,228,0.85) !important; }
.bm2-theme-papemelroti .bm2-meta-item         { color: rgba(254,246,228,0.70) !important; }
.bm2-theme-papemelroti .bm2-meta-item b       { color: #F5C742 !important; }
.bm2-theme-papemelroti .bm2-logo              { filter: none; width: 180px; height: auto; }
.bm2-theme-papemelroti .bm2-stat-chip         { background: rgba(254,246,228,0.12); border: 0.5px solid rgba(245,199,66,0.30); }
.bm2-theme-papemelroti .bm2-stat-num          { color: #FEF6E4 !important; }
.bm2-theme-papemelroti .bm2-stat-lab          { color: #F5C742 !important; }
.bm2-theme-papemelroti .bm2-about             { background: #FEF6E4; border-bottom-color: #E8D8A8; }
.bm2-theme-papemelroti .bm2-about-text        { color: #1A2E56 !important; }
.bm2-theme-papemelroti .bm2-about-text em     { color: #C8312A !important; }
.bm2-theme-papemelroti .bm2-proc-bar          { background: #FEF6E4; border-bottom-color: #E8D8A8; }
.bm2-theme-papemelroti .bm2-proc-name         { color: #1A2E56 !important; }
.bm2-theme-papemelroti .bm2-proc-desc         { color: #8A6A30 !important; }
.bm2-theme-papemelroti .bm2-sec               { background: #FEF6E4; border-bottom-color: #E8D8A8; }
.bm2-theme-papemelroti .bm2-sec--alt          { background: #F0E4C0; }
.bm2-theme-papemelroti .bm2-sec-badge         { background: rgba(26,46,86,0.10); }
.bm2-theme-papemelroti .bm2-sec-num           { color: #1A2E56 !important; }
.bm2-theme-papemelroti .bm2-sec-dot           { background: #C8312A; }
.bm2-theme-papemelroti .bm2-sec-cat           { color: #C8312A !important; }
.bm2-theme-papemelroti .bm2-sec-title         { color: #1A2E56 !important; }
.bm2-theme-papemelroti .bm2-sec-sub           { color: #5A4820 !important; }
.bm2-theme-papemelroti .bm2-tag               { color: #1A2E56 !important; border-color: #F5C742; background: rgba(245,199,66,0.12); }
.bm2-theme-papemelroti .bm2-quote             { background: #1A2E56; }
.bm2-theme-papemelroti .bm2-quote-text        { color: #FEF6E4 !important; }
.bm2-theme-papemelroti .bm2-quote-attr        { color: #F5C742 !important; }
.bm2-theme-papemelroti .bm2-footer            { background: #C8312A; }
.bm2-theme-papemelroti .bm2-footer-brand      { color: rgba(254,246,228,0.55) !important; }
.bm2-theme-papemelroti .bm2-footer-tag        { color: rgba(254,246,228,0.55) !important; border-color: rgba(245,199,66,0.35); }

@media (max-width: 640px) {
  .bm-overlay { padding: 0.75rem; }
  .bm-panel { max-height: 95vh; border-radius: 14px; }
  .bm2-hero { grid-template-columns: 1fr; }
  .bm2-hero-right { flex-direction: row; flex-wrap: wrap; justify-content: flex-start; padding: 1rem 1.5rem; gap: 0.5rem; }
  .bm2-stat-chip { width: auto; flex: 1; min-width: 80px; }
  .bm2-hero-left { padding: 1.5rem; }
  .bm2-sec { padding: 1.5rem; }
  .bm2-about { padding: 1rem 1.5rem; }
  .bm2-sec-top { flex-direction: column; }
  .bm2-footer { flex-direction: column; gap: 0.5rem; text-align: center; }
  /* Process bar — stack vertically on mobile */
  .bm2-proc-bar { flex-direction: column; }
  .bm2-proc-item { border-right: none; border-bottom: 0.5px solid #e0d8c8; }
  .bm2-proc-item:last-child { border-bottom: none; }
  /* PDF embed — shorter height on mobile */
  .bm2-pdf-frame { height: 320px; }
}


/* ══════════════════════════════════════════════════════════
   VISUAL MODAL (.vm-*)
══════════════════════════════════════════════════════════ */

.vm-card {
  display: flex;
  width: 100%;
  max-width: min(1260px, 94vw);
  height: min(88vh, 780px);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 32px 100px rgba(0,0,0,0.55);
  transform: translateY(32px);
  animation: vmSlideIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes vmSlideIn {
  to { transform: translateY(0); }
}

/* ── Left panel ──────────────────────────────────────────── */
.vm-left {
  flex: 0 0 38%;
  padding: 3rem 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.vm-left-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.vm-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.vm-role, .vm-biz {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(122,173,156,0.70);
}
.vm-sep { color: rgba(122,173,156,0.35); font-size: 0.65rem; }

.vm-title {
  font-family: 'Rethink Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  line-height: 1.2;
  margin: 0;
}
.vm-title-dark  { color: #faf6ed !important; }
.vm-title-light { color: #1a1a1a !important; }

.vm-desc {
  font-size: 0.84rem;
  line-height: 1.82;
  color: rgba(250,246,237,0.58);
  margin: 0;
}

.vm-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(122,173,156,0.80);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s ease;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(122,173,156,0.25);
  align-self: flex-start;
}
.vm-link:hover { color: #7aad9c; border-bottom-color: rgba(122,173,156,0.60); }

.vm-back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  font-family: 'Rethink Sans', sans-serif;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1.5rem;
  opacity: 0.65;
  transition: opacity 0.2s;
  flex-shrink: 0;
}
.vm-back:hover { opacity: 1; }

/* Sub-collection picker — 2 cards stacked */
.vm-subpicker {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  height: 100%;
  justify-content: center;
}
.vm-subpicker-card {
  flex: 1;
  border: none;
  border-radius: 14px;
  padding: 2rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.3rem;
  transition: transform 0.2s ease, filter 0.2s ease;
  text-align: left;
  max-height: 180px;
}
.vm-subpicker-card:hover { transform: translateY(-3px); filter: brightness(1.08); }
.vm-subpicker-title {
  font-family: 'Rethink Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
}
.vm-subpicker-sub {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

/* ── Right panel ─────────────────────────────────────────── */
.vm-right {
  flex: 1;
  background: var(--color-ivory);
  padding: 3rem 2.75rem 2.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
  min-height: 0;
}

/* ── Gallery (per-item mockup cards) ─────────────────────── */
.vm-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
  min-height: 0;
}

.vm-gallery-card {
  border-radius: 13px;
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
}

.vm-gallery-img {
  width: 100%;
  height: auto;
  display: block;
}

.vm-gallery-placeholder {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
}

/* ── Sub-cards grid (multiple images per category) ────────── */
.vm-subcards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  padding: 0.65rem;
  width: 100%;
  box-sizing: border-box;
}

.vm-subcard {
  border-radius: 7px;
  overflow: hidden;
  aspect-ratio: 1;
}

.vm-subcard-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── PDF link card ───────────────────────────────────────── */
.bm2-pdf-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 3rem 2rem;
  background: rgba(0,0,0,0.04);
  border-radius: 10px;
  border: 1.5px dashed rgba(0,0,0,0.15);
  color: rgba(26,26,26,0.5);
  text-align: center;
}
.bm2-pdf-label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(26,26,26,0.65); margin: 0; }
.bm2-pdf-sub   { font-size: 0.72rem; color: rgba(26,26,26,0.4); margin: 0; }
.bm2-pdf-btn {
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  background: rgba(26,26,26,0.08);
  color: rgba(26,26,26,0.75);
  text-decoration: none;
  transition: background 0.2s ease;
}
.bm2-pdf-btn:hover { background: rgba(26,26,26,0.15); }

.vm-gallery-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.60) 0%, transparent 100%);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 767px) {
  .vm-card {
    flex-direction: column;
    height: auto;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 20px;
    width: 100%;
  }
  .vm-left {
    flex: 0 0 auto;
    padding: 1.75rem 1.5rem;
    overflow: visible;
  }
  .vm-desc { font-size: 0.8rem; line-height: 1.65; }
  .vm-right {
    overflow-y: visible;
    padding: 1.5rem 1.5rem 2rem;
  }
  .vm-title { font-size: clamp(1.2rem, 5vw, 1.6rem); }
  .vm-gallery-card { border-radius: 10px; }
  .vm-subcards { grid-template-columns: repeat(2, 1fr); }
  /* Subpicker: natural flow on mobile, no centering tricks */
  .vm-subpicker {
    height: auto;
    justify-content: flex-start;
    padding: 1.5rem;
  }
  .vm-subpicker-card {
    flex: 0 0 auto;
    max-height: none;
    min-height: 120px;
  }
  .vm-back { margin-bottom: 1rem; }
}

/* ── Footer — restore landing-page colors inside proj-page ── */
.proj-page .new-footer-heading   { color: var(--color-dark-espresso); }
.proj-page .new-footer-accent    { color: var(--color-dark-espresso); }
.proj-page .new-footer-kry       { color: var(--color-deep-purple);   font-family: 'Parisienne', cursive; }
.proj-page .new-footer-tagline   { color: var(--color-ivory); }
.proj-page .new-footer-col-label { color: var(--color-deep-purple); }
.proj-page .new-footer-link      { color: var(--color-dark-espresso); }
.proj-page .new-footer-link:hover{ color: var(--color-deep-purple); }
.proj-page .new-footer-info      { color: var(--color-dark-espresso); }
.proj-page .new-footer-copy      { color: var(--color-ivory); }
.proj-page .footer-find-email    { color: var(--color-dark-espresso); }
