/* ============================================================
   THE SYMMETRO — BLUEPRINT
   Scoped styles. All selectors are prefixed with .bp- to avoid
   colliding with the existing site.css homepage styles.
   ============================================================ */

.bp-body {
  --bg: #070707;
  --surface: #101010;
  --surface-elevated: #161616;
  --text: #f2eee5;
  --muted: #aaa69d;
  --muted-dim: #6f6c64;
  --line: #2d2b27;
  --line-active: #c7b28a;
  --accent: #b9945f;
  --accent-soft: rgba(185, 148, 95, 0.16);
  --commercial: #c7a165;
  --radius: 16px;
  --radius-sm: 11px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 360ms;

  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.bp-body [hidden] { display: none !important; }

.bp-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.bp-skip {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--text); color: var(--bg);
  padding: 10px 16px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
  z-index: 1000; transition: top var(--dur) var(--ease);
}
.bp-skip:focus { top: 12px; }

.bp-eyebrow {
  letter-spacing: 0.34em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0;
}

/* Focus visibility across interactive elements */
.bp-body a:focus-visible,
.bp-body button:focus-visible,
.bp-body input:focus-visible,
.bp-node__body:focus-visible {
  outline: 2px solid var(--line-active);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Top navigation ---------- */
.bp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 44px);
  background: rgba(7, 7, 7, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bp-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.bp-nav__axis { width: 26px; height: 26px; }
.bp-nav__links {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  list-style: none;
  margin: 0; padding: 0;
}
.bp-nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 6px 2px;
  transition: color var(--dur) var(--ease);
}
.bp-nav__links a:hover { color: var(--text); }
.bp-nav__links a[aria-current="page"] {
  color: var(--text);
  border-bottom: 1px solid var(--accent);
}

/* ---------- Hero ---------- */
.bp-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(56px, 10vh, 120px) 24px clamp(48px, 8vh, 96px);
  border-bottom: 1px solid var(--line);
}
.bp-hero__axis {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px;
  margin-bottom: 22px;
  border-radius: 50%;
  transition: transform var(--dur) var(--ease);
}
.bp-hero__axis img { width: min(150px, 34vw); display: block; }
.bp-hero__axis:hover { transform: scale(1.03); }
.bp-hero__title {
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0.24em 0 0.16em;
}
.bp-hero__lede {
  font-size: clamp(1.02rem, 2vw, 1.3rem);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}
.bp-hero__tag {
  margin: 18px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.bp-button {
  margin-top: 30px;
  font: inherit;
  font-weight: 700;
  color: var(--bg);
  background: var(--text);
  border: 0;
  padding: 14px 26px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.bp-button:hover { transform: translateY(-1px); background: #fffdf6; }

/* ---------- App shell ---------- */
.bp-app {
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 34px) clamp(16px, 3vw, 40px) 60px;
  animation: bp-fade-up var(--dur) var(--ease) both;
}

@keyframes bp-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Toolbar ---------- */
.bp-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.bp-axis-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  padding: 8px 16px 8px 10px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.bp-axis-home img { width: 24px; height: 24px; }
.bp-axis-home:hover {
  border-color: var(--line-active);
  background: var(--accent-soft);
}

.bp-search { min-width: 0; }
.bp-search__label {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin: 0 0 5px 4px;
}
.bp-search__field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  transition: border-color var(--dur) var(--ease);
}
.bp-search__field:focus-within { border-color: var(--line-active); }
.bp-search__icon {
  width: 17px; height: 17px;
  flex: none;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
}
.bp-search__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  padding: 11px 0;
}
.bp-search__input::placeholder { color: var(--muted-dim); }
.bp-search__input:focus { outline: none; }
.bp-search__clear {
  background: none; border: 0;
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.bp-search__clear:hover { color: var(--text); }

.bp-toolbar__actions { display: flex; gap: 8px; }
.bp-chip {
  font: inherit;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.bp-chip:hover { color: var(--text); border-color: var(--line-active); }

/* ---------- Breadcrumbs ---------- */
.bp-breadcrumbs {
  margin: 18px 2px 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.bp-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0; padding: 0;
}
.bp-breadcrumbs__list li {
  display: inline-flex;
  align-items: center;
}
.bp-breadcrumbs__list li::after {
  content: "→";
  color: var(--muted-dim);
  margin: 0 8px;
  font-size: 0.85rem;
}
.bp-breadcrumbs__list li:last-child::after { content: ""; margin: 0; }
.bp-crumb {
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  padding: 3px 4px;
  white-space: nowrap;
  transition: color var(--dur) var(--ease);
}
.bp-crumb:hover { color: var(--text); }
.bp-crumb[aria-current="true"] { color: var(--text); font-weight: 600; }

/* ---------- Body grid ---------- */
.bp-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  margin-top: 14px;
}

/* ---------- Canvas ---------- */
.bp-canvas-wrap {
  background:
    radial-gradient(1200px 500px at 20% -10%, rgba(185,148,95,0.05), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: auto;
  max-height: calc(100vh - 150px);
  min-height: 520px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.bp-canvas {
  padding: 30px 26px 40px;
  min-width: min-content;
}
.bp-canvas::-webkit-scrollbar,
.bp-canvas-wrap::-webkit-scrollbar { width: 10px; height: 10px; }
.bp-canvas-wrap::-webkit-scrollbar-thumb {
  background: var(--line); border-radius: 999px;
}

.bp-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 360px;
  color: var(--muted);
}
.bp-loading__mark {
  width: 34px; height: 34px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: bp-spin 900ms linear infinite;
}
@keyframes bp-spin { to { transform: rotate(360deg); } }

.bp-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  min-height: 360px;
  justify-content: center;
  padding: 40px;
  color: var(--muted);
}
.bp-error h2 { color: var(--text); font-weight: 500; margin: 0; }
.bp-error code {
  background: var(--surface-elevated);
  padding: 3px 8px; border-radius: 6px;
  color: var(--accent); font-size: 0.85rem;
}

/* ---------- Tree ---------- */
.bp-tree, .bp-subtree {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bp-subtree {
  margin-left: 26px;
  padding-left: 22px;
  border-left: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.bp-node:not(.bp-node--open) > .bp-subtree { display: none; }
/* connector-line drawing on expand */
.bp-node--open > .bp-subtree { animation: bp-expand var(--dur) var(--ease); }
@keyframes bp-expand {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.bp-node { position: relative; padding: 5px 0; }
.bp-node::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 27px;
  width: 18px;
  height: 1px;
  background: var(--line);
}
.bp-tree > .bp-node::before { display: none; }

.bp-node__row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.bp-node__body {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  text-align: left;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  padding: 12px 15px;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease),
              background var(--dur) var(--ease),
              transform 200ms var(--ease),
              box-shadow var(--dur) var(--ease);
}
.bp-node__body:hover {
  border-color: var(--line-active);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.bp-node__caret {
  flex: none;
  width: 16px; height: 16px;
  color: var(--muted);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}
.bp-node__caret svg { width: 100%; height: 100%; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bp-node--open > .bp-node__row .bp-node__caret { transform: rotate(90deg); color: var(--accent); }
.bp-node__caret--leaf { opacity: 0.28; }

.bp-node__text { min-width: 0; flex: 1; }
.bp-node__name {
  display: block;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.bp-node__cat {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-top: 2px;
  white-space: nowrap;
}

/* status dot */
.bp-status {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.bp-status__dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  flex: none;
}
.bp-status--published { color: #9ec7a0; }
.bp-status--published .bp-status__dot { background: currentColor; }
.bp-status--active { color: var(--line-active); }
.bp-status--active .bp-status__dot { background: currentColor; }
.bp-status--development { color: var(--accent); }
.bp-status--development .bp-status__dot {
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}
.bp-status--planned { color: var(--muted); }
.bp-status--research { color: #9aa9c7; }
.bp-status--research .bp-status__dot { border-radius: 2px; transform: rotate(45deg); }
.bp-status--internal { color: #c79ac0; }
.bp-status--internal .bp-status__dot { border-radius: 2px; }
.bp-status--internal .bp-status__dot { background: currentColor; }
.bp-status--archived { color: var(--muted-dim); }
.bp-status--archived .bp-status__dot {
  border: 0;
  background:
    linear-gradient(45deg, transparent 44%, currentColor 44%, currentColor 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, currentColor 44%, currentColor 56%, transparent 56%);
}

/* commercial branch emphasis (restrained gold) */
.bp-node--commercial > .bp-node__row .bp-node__body {
  border-color: rgba(199, 161, 101, 0.4);
  background: linear-gradient(180deg, rgba(185,148,95,0.08), var(--surface-elevated));
}
.bp-node--commercial > .bp-node__row .bp-node__name { color: #f4e9d5; }

/* selected + active path */
.bp-node--selected > .bp-node__row .bp-node__body {
  border-color: var(--line-active);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px rgba(199, 178, 138, 0.35);
}
.bp-node--onpath > .bp-node__row .bp-node__body {
  border-color: rgba(199, 178, 138, 0.45);
}
.bp-node--onpath > .bp-subtree { border-left-color: rgba(199, 178, 138, 0.4); }

/* external link button */
.bp-node__link {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.bp-node__link:hover {
  color: var(--text);
  border-color: var(--line-active);
  background: var(--accent-soft);
}
.bp-node__link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* search flash highlight */
.bp-node--flash > .bp-node__row .bp-node__body {
  animation: bp-flash 1600ms var(--ease);
}
@keyframes bp-flash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(199,178,138,0); }
  25% { box-shadow: 0 0 0 3px rgba(199,178,138,0.5); }
}

/* ---------- Information panel ---------- */
.bp-panel {
  position: sticky;
  top: 84px;
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.bp-panel__empty h2 { font-weight: 500; font-size: 1.5rem; margin: 10px 0 12px; }
.bp-panel__hint { color: var(--muted); font-size: 0.92rem; }

.bp-panel__content { animation: bp-fade-up 300ms var(--ease) both; }
.bp-panel__cat {
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
}
.bp-panel__title {
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 14px;
}
.bp-panel__desc { color: #d6d2c9; margin: 0 0 20px; }

.bp-field { margin: 0 0 16px; }
.bp-field__label {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin: 0 0 4px;
}
.bp-field__value { color: var(--text); margin: 0; font-size: 0.95rem; }
.bp-field__value--muted { color: var(--muted); }
.bp-field__path { color: var(--muted); font-size: 0.9rem; }
.bp-field__path b { color: var(--text); font-weight: 600; }

.bp-panel__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
}

.bp-panel__children { list-style: none; margin: 6px 0 0; padding: 0; }
.bp-panel__children li { margin: 0; }
.bp-child-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  padding: 9px 12px;
  margin-top: 6px;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.bp-child-link:hover { border-color: var(--line-active); background: var(--accent-soft); }
.bp-child-link__arrow { margin-left: auto; color: var(--muted); }

.bp-panel__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.bp-panel__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 11px 18px;
  border-radius: 999px;
  transition: transform var(--dur) var(--ease);
}
.bp-panel__link:hover { transform: translateY(-1px); }
.bp-panel__link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bp-panel__link--disabled {
  background: var(--surface-elevated);
  color: var(--muted-dim);
  border: 1px solid var(--line);
  cursor: not-allowed;
}
.bp-repo-note {
  display: block;
  margin-top: 12px;
  color: var(--muted-dim);
  font-size: 0.8rem;
}
.bp-repo-note code {
  color: var(--muted);
  background: var(--surface-elevated);
  padding: 2px 7px; border-radius: 6px;
}

/* ---------- Legend ---------- */
.bp-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 20px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.bp-legend__title {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.bp-legend__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 0; padding: 0;
}

/* ---------- Search overlay ---------- */
.bp-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(40px, 10vh, 110px) 18px 40px;
  background: rgba(4, 4, 4, 0.72);
  backdrop-filter: blur(6px);
  animation: bp-fade 200ms var(--ease);
}
@keyframes bp-fade { from { opacity: 0; } to { opacity: 1; } }
.bp-overlay__panel {
  width: min(720px, 100%);
  max-height: 76vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.bp-overlay__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.bp-overlay__head h2 { font-size: 1.15rem; font-weight: 500; margin: 0; }
.bp-overlay__close {
  background: none; border: 0;
  color: var(--muted); font-size: 1.6rem;
  line-height: 1; cursor: pointer;
}
.bp-overlay__close:hover { color: var(--text); }
.bp-overlay__count {
  padding: 12px 22px 0;
  margin: 0;
  color: var(--muted-dim);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.bp-results {
  list-style: none;
  margin: 0;
  padding: 10px 14px 18px;
  overflow-y: auto;
}
.bp-result {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
  cursor: pointer;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.bp-result:hover, .bp-result:focus-visible {
  background: var(--surface-elevated);
  border-color: var(--line);
}
.bp-result__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.bp-result__name { font-weight: 500; }
.bp-result__name mark { background: var(--accent-soft); color: var(--line-active); border-radius: 3px; padding: 0 2px; }
.bp-body mark { background: var(--accent-soft); color: var(--line-active); border-radius: 3px; padding: 0 2px; }
.bp-result__path { color: var(--muted-dim); font-size: 0.78rem; margin: 4px 0 0; }
.bp-result__desc { color: var(--muted); font-size: 0.85rem; margin: 6px 0 0; }
.bp-result__empty { color: var(--muted); padding: 30px 16px; text-align: center; }

.bp-mobile-hint { position: absolute; }

/* ============================================================
   MOBILE — hierarchical navigator
   ============================================================ */
.bp-body.is-mobile .bp-body-grid { grid-template-columns: 1fr; }

@media (max-width: 900px) {
  .bp-body-grid { grid-template-columns: 1fr; }
  .bp-panel {
    position: static;
    max-height: none;
    order: -1;
  }
  .bp-toolbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .bp-toolbar__actions { justify-content: flex-start; }
  .bp-canvas-wrap { max-height: none; }
}

/* Mobile navigator list (rendered by JS when narrow) */
.bp-mobile-nav { display: none; }
.bp-body.is-mobile .bp-canvas { display: none; }
.bp-body.is-mobile .bp-mobile-nav {
  display: block;
  padding: 8px;
}
.bp-mnav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bp-mnav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
  padding: 15px 16px;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.bp-mnav__item:hover, .bp-mnav__item:focus-visible {
  border-color: var(--line-active);
  background: var(--accent-soft);
}
.bp-mnav__item--commercial {
  border-color: rgba(199, 161, 101, 0.4);
  background: linear-gradient(180deg, rgba(185,148,95,0.08), var(--surface-elevated));
}
.bp-mnav__text { flex: 1; min-width: 0; }
.bp-mnav__name { display: block; font-weight: 500; }
.bp-mnav__cat { display: block; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-dim); margin-top: 2px; }
.bp-mnav__chevron { color: var(--muted); flex: none; font-size: 1.2rem; }
.bp-mnav__leaf .bp-mnav__chevron { opacity: 0.3; }
.bp-mnav__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  padding: 9px 16px;
  margin-bottom: 12px;
  cursor: pointer;
}
.bp-mnav__back:hover { color: var(--text); border-color: var(--line-active); }
.bp-mnav__title { font-size: 1.2rem; font-weight: 500; margin: 0 0 4px; }

@media (max-width: 560px) {
  .bp-nav__brand span { display: none; }
  .bp-hero__title { font-size: clamp(2.4rem, 12vw, 3.4rem); }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .bp-body *,
  .bp-body *::before,
  .bp-body *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
