/* =========================================================
   博亚娱乐 /assets/site.css
   夜间控制台 × 潮流杂志 共享外壳样式
   ========================================================= */

/* ---------- 1. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
  overflow-x: hidden;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd, fieldset {
  margin: 0;
}
ul, ol { padding: 0; list-style: none; }
img, svg, picture, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
hr { border: 0; height: 1px; background: #0E2A47; }

/* ---------- 2. Tokens ---------- */
:root {
  color-scheme: dark;

  --deep: #040A14;
  --cabin: #081827;
  --trench: #0E2A47;
  --mist: #EAF6FF;
  --cyan: #22D3EE;
  --ice: #9BEAFF;
  --amber: #F5A524;
  --violet: #8B5CF6;
  --gray: #8296A8;
  --coral: #FF6B6B;

  --mist-70: rgba(234, 246, 255, .70);
  --mist-45: rgba(234, 246, 255, .45);
  --amber-14: rgba(245, 165, 36, .14);

  --f-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --rail-w: 88px;
  --utility-h: 46px;
  --shell: 1440px;
  --pad: clamp(16px, 3.2vw, 48px);
  --ease: cubic-bezier(.22, .8, .3, 1);
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  font-family: var(--f-cn);
  font-size: 16px;
  line-height: 1.75;
  color: var(--mist);
  background:
    radial-gradient(120% 70% at 78% -6%, rgba(34, 211, 238, .10), transparent 58%),
    radial-gradient(90% 60% at -10% 22%, rgba(139, 92, 246, .10), transparent 60%),
    var(--deep);
  background-attachment: fixed;
  padding-left: var(--rail-w);
  padding-top: var(--utility-h);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--cyan); color: #00141C; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.mono {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .08em;
}

/* ---------- 4. Layout helpers ---------- */
.bh-shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.bh-section { padding-block: clamp(34px, 5vw, 64px); }

.bh-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 26px);
}
.bh-grid > * { grid-column: span 12; min-width: 0; }

.bh-prose { max-width: 68ch; }
.bh-prose p + p { margin-top: 1em; }
.bh-prose h2 {
  margin-top: 1.8em;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.3;
}
.bh-prose ul, .bh-prose ol { margin-top: .8em; padding-left: 1.2em; list-style: disc; }
.bh-prose li + li { margin-top: .4em; }

.bh-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.bh-kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--cyan);
  flex: none;
}

.bh-h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.24;
}

.bh-lead {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--mist-70);
  line-height: 1.75;
  max-width: 60ch;
}

.bh-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-block: clamp(28px, 4vw, 48px);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gray);
}
.bh-rule::before,
.bh-rule::after { content: ""; flex: 1; height: 1px; }
.bh-rule::before { background: linear-gradient(90deg, rgba(14, 42, 71, 0), var(--trench)); }
.bh-rule::after { background: linear-gradient(90deg, var(--trench), rgba(14, 42, 71, 0)); }

/* ---------- 5. Skip link ---------- */
.bh-skip {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 300;
  transform: translate(-50%, -180%);
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--cyan);
  color: #00131A;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  transition: transform .24s var(--ease);
}
.bh-skip:focus { transform: translate(-50%, 0); }

/* ---------- 6. Buttons ---------- */
.bh-btn {
  --btn-bg: transparent;
  --btn-fg: var(--mist);
  --btn-bd: var(--trench);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .03em;
  white-space: nowrap;
  transition: transform .2s var(--ease), background .22s, color .22s, border-color .22s, box-shadow .22s;
}
.bh-btn:hover { transform: translateY(-1px); }

.bh-btn--amber {
  --btn-bg: var(--amber);
  --btn-fg: #170D00;
  --btn-bd: var(--amber);
  box-shadow: 0 10px 26px rgba(245, 165, 36, .22);
}
.bh-btn--amber:hover {
  background: #FFB733;
  box-shadow: 0 14px 34px rgba(245, 165, 36, .34);
}

.bh-btn--cyan {
  --btn-bg: var(--cyan);
  --btn-fg: #00141C;
  --btn-bd: var(--cyan);
  box-shadow: 0 10px 26px rgba(34, 211, 238, .22);
}

.bh-btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(34, 211, 238, .08);
}

.bh-btn--sm {
  min-height: 36px;
  padding: 0 15px;
  font-size: 13px;
}

/* ---------- 7. Header / top utility strip ---------- */
.bh-header { display: block; }

.bh-utility {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: var(--utility-h);
  z-index: 100;
  background: linear-gradient(90deg, rgba(8, 24, 39, .97) 0%, rgba(4, 10, 20, .97) 100%);
  border-bottom: 1px solid var(--trench);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.bh-utility::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), rgba(34, 211, 238, 0) 46%);
  opacity: .55;
}

.bh-utility__bar {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.4vw, 18px);
  height: 100%;
  padding-inline: var(--pad);
  overflow: hidden;
}

.bh-utility__kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--ice);
  white-space: nowrap;
  flex: none;
}
.bh-utility__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .16);
  animation: bh-pulse 2.4s ease-in-out infinite;
}
@keyframes bh-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.78); }
}

.bh-utility__div { width: 1px; height: 16px; background: var(--trench); flex: none; }

.bh-utility__note {
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.bh-utility__quick { display: flex; gap: 4px; flex: none; }
.bh-utility__quick a {
  font-size: 12px;
  color: var(--gray);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color .2s, border-color .2s, background .2s;
}
.bh-utility__quick a:hover {
  color: var(--cyan);
  border-color: var(--trench);
  background: rgba(34, 211, 238, .07);
}

.bh-utility__stamp {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--amber);
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid rgba(245, 165, 36, .34);
  background: var(--amber-14);
  white-space: nowrap;
  flex: none;
}

.bh-utility__toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mist-70);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--trench);
  transition: color .2s, border-color .2s, background .2s;
}
.bh-utility__toggle:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(34, 211, 238, .08);
}
.bh-utility__toggle-text { display: inline; }

.bh-utility__chev {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform .3s var(--ease);
}
.bh-utility[data-open] .bh-utility__chev { transform: rotate(-135deg) translateY(-1px); }

.bh-utility__panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding: 24px var(--pad) 28px;
  background: linear-gradient(180deg, rgba(8, 24, 39, .99), rgba(4, 10, 20, .99));
  border-bottom: 1px solid var(--trench);
  box-shadow: 0 28px 60px rgba(0, 0, 0, .6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .26s var(--ease), transform .26s var(--ease), visibility 0s linear .26s;
}
.bh-utility[data-open] .bh-utility__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .26s var(--ease), transform .26s var(--ease), visibility 0s;
}

.bh-utility__col { min-width: 0; }
.bh-utility__col p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist-70);
  max-width: 36ch;
}
.bh-utility__label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .24em;
  color: var(--cyan);
  margin-bottom: 6px;
}

/* ---------- 8. Brand bar ---------- */
.bh-brandbar {
  position: relative;
  padding-block: clamp(14px, 2.4vw, 26px) clamp(10px, 1.6vw, 16px);
}
.bh-brandbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.bh-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.bh-brand__mark {
  position: relative;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  background: conic-gradient(from 210deg, #22D3EE, #8B5CF6 52%, #F5A524 84%, #22D3EE);
  box-shadow: 0 0 0 1px rgba(234, 246, 255, .16), 0 10px 24px rgba(34, 211, 238, .22);
  transition: transform .4s var(--ease);
}
.bh-brand:hover .bh-brand__mark { transform: rotate(-8deg); }
.bh-brand__mark::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 7px;
  background: var(--deep);
}
.bh-brand__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--cyan);
  transform: rotate(45deg);
}
.bh-brand__text { display: flex; flex-direction: column; line-height: 1.22; min-width: 0; }
.bh-brand__text strong {
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 800;
  letter-spacing: -.02em;
}
.bh-brand__text small {
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--gray);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bh-brandbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.bh-week {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--ice);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--trench);
  background: rgba(14, 42, 71, .42);
  white-space: nowrap;
}

.bh-brandbar__cta { white-space: nowrap; }

.bh-burger {
  display: none;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--trench);
  background: rgba(14, 42, 71, .42);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--mist);
  transition: border-color .2s, background .2s;
}
.bh-burger:hover { border-color: var(--cyan); background: rgba(34, 211, 238, .1); }
.bh-burger__box { display: block; width: 16px; height: 12px; position: relative; flex: none; }
.bh-burger__box i {
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .3s var(--ease);
}
.bh-burger__box i:nth-child(1) { top: 0; }
.bh-burger__box i:nth-child(2) { bottom: 0; }
.bh-burger[aria-expanded="true"] .bh-burger__box i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.bh-burger[aria-expanded="true"] .bh-burger__box i:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }
.bh-burger__label { line-height: 1; }

/* ---------- 9. Side rail navigation ---------- */
.bh-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 110;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 0 18px;
  background:
    linear-gradient(180deg, rgba(34, 211, 238, .09), rgba(34, 211, 238, 0) 38%),
    var(--cabin);
  border-right: 1px solid var(--trench);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.bh-rail::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 64px;
  background: linear-gradient(180deg, var(--cyan), rgba(34, 211, 238, 0));
}

.bh-rail__cap {
  writing-mode: vertical-rl;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .34em;
  color: var(--gray);
  padding: 6px 0;
  flex: none;
}

.bh-rail__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding-inline: 6px;
  flex: 1 1 auto;
}
.bh-rail__list li { width: 100%; }
.bh-rail__list a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 9px 2px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: .04em;
  text-align: center;
  color: var(--gray);
  transition: color .2s, background .2s;
}
.bh-rail__list a:hover { color: var(--mist); background: rgba(34, 211, 238, .08); }

.bh-rail__num {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .16em;
  color: #2A5170;
  transition: color .2s;
}
.bh-rail__list a:hover .bh-rail__num { color: var(--ice); }

.bh-rail__txt { font-weight: 500; }

.bh-rail__list a[aria-current="page"] {
  color: var(--cyan);
  background: rgba(34, 211, 238, .1);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, .3);
}
.bh-rail__list a[aria-current="page"] .bh-rail__num { color: var(--cyan); }
.bh-rail__list a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 22px;
  border-radius: 0 3px 3px 0;
  background: var(--cyan);
}

.bh-rail__cta { display: none; }

.bh-rail__foot {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .22em;
  color: #20415C;
  flex: none;
  padding-bottom: 4px;
}

.bh-scrim { display: none; }

body.bh-nav-lock { overflow: hidden; }

/* ---------- 10. Footer ---------- */
.bh-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 110px);
  padding: clamp(40px, 6vw, 76px) 0 26px;
  background:
    radial-gradient(120% 90% at 8% 0%, rgba(34, 211, 238, .12), transparent 56%),
    radial-gradient(100% 80% at 96% 4%, rgba(139, 92, 246, .14), transparent 58%),
    var(--cabin);
  border-top: 1px solid var(--trench);
  overflow: hidden;
}
.bh-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: .5;
}

.bh-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}
.bh-footer__intro { min-width: 0; }

.bh-footer__kicker {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--cyan);
  margin-bottom: 14px;
}
.bh-footer__tagline {
  font-size: clamp(24px, 3.2vw, 42px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.3;
  max-width: 18ch;
  margin-bottom: 22px;
  background: linear-gradient(100deg, var(--mist), var(--ice) 60%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bh-footer__contacts {
  display: grid;
  gap: 14px;
  border-left: 1px solid var(--trench);
  padding-left: clamp(16px, 3vw, 32px);
  align-content: start;
}
.bh-footer__contact span {
  display: block;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: .24em;
  color: var(--gray);
  margin-bottom: 3px;
}
.bh-footer__contact p {
  font-size: 14.5px;
  letter-spacing: .01em;
  color: var(--mist);
  word-break: break-word;
}

.bh-footer__rule {
  position: relative;
  height: 1px;
  margin: clamp(28px, 4vw, 48px) 0 clamp(24px, 3vw, 36px);
  background: linear-gradient(90deg, var(--trench), rgba(14, 42, 71, .25) 62%, transparent);
}
.bh-footer__rule::before,
.bh-footer__rule::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 1px;
  height: 7px;
  background: var(--trench);
}
.bh-footer__rule::before { left: 0; }
.bh-footer__rule::after { left: 22%; }

.bh-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
}
.bh-footer__col h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--ice);
  margin-bottom: 14px;
}
.bh-footer__col h3::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--cyan);
  flex: none;
}
.bh-footer__col li + li { margin-top: 9px; }
.bh-footer__col a {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: var(--mist-70);
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.bh-footer__col a:hover {
  color: var(--mist);
  border-bottom-color: var(--amber);
}

.bh-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 20px;
  border-top: 1px solid rgba(14, 42, 71, .7);
  font-size: 12px;
  color: var(--gray);
}
.bh-footer__copy {
  font-family: var(--f-mono);
  letter-spacing: .05em;
}
.bh-footer__note {
  max-width: 54ch;
  line-height: 1.6;
}

/* ---------- 11. Shared content components ---------- */
.bh-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--gray);
}
.bh-crumbs li { display: inline-flex; align-items: center; gap: 8px; }
.bh-crumbs li + li::before {
  content: "/";
  color: var(--trench);
}
.bh-crumbs a {
  color: var(--gray);
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.bh-crumbs a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }
.bh-crumbs [aria-current="page"] { color: var(--ice); }

.bh-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bh-pills--scroll {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.bh-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--trench);
  background: rgba(14, 42, 71, .35);
  color: var(--gray);
  font-size: 12.5px;
  letter-spacing: .02em;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s, box-shadow .2s;
}
.bh-pill:hover { color: var(--ice); border-color: var(--cyan); }
.bh-pill[aria-selected="true"] {
  color: var(--deep);
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, .16);
}
.bh-pill[data-accent="violet"]:hover { border-color: var(--violet); color: var(--ice); }
.bh-pill[data-accent="violet"][aria-selected="true"] { background: var(--violet); border-color: var(--violet); color: #F6F1FF; }

.bh-media {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--trench);
  isolation: isolate;
  background:
    radial-gradient(140% 100% at 18% 0%, rgba(34, 211, 238, .22), transparent 58%),
    radial-gradient(120% 110% at 88% 100%, rgba(139, 92, 246, .22), transparent 60%),
    linear-gradient(160deg, #0B2136, #050D18 70%);
}
.bh-media img,
.bh-media picture,
.bh-media > picture > img,
.bh-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bh-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background:
    linear-gradient(var(--cyan), var(--cyan)) left top / 16px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) left top / 1px 16px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) right bottom / 16px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) right bottom / 1px 16px no-repeat;
}
.bh-media--16x9 { aspect-ratio: 16 / 9; }
.bh-media--4x3 { aspect-ratio: 4 / 3; }
.bh-media--1x1 { aspect-ratio: 1 / 1; }
.bh-media--21x9 { aspect-ratio: 21 / 9; }
.bh-media__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--trench);
  background: rgba(4, 10, 20, .74);
  color: var(--ice);
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .16em;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.bh-frame {
  position: relative;
  border: 1px solid var(--trench);
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(14, 42, 71, .55), rgba(4, 10, 20, .22));
}
.bh-frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  pointer-events: none;
  opacity: .7;
  background:
    linear-gradient(var(--cyan), var(--cyan)) left top / 20px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) left top / 1px 20px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) right bottom / 20px 1px no-repeat,
    linear-gradient(var(--cyan), var(--cyan)) right bottom / 1px 20px no-repeat;
}

/* ---------- 12. Reveal ---------- */
[data-reveal] { transition: opacity .6s var(--ease), transform .6s var(--ease); }
.bh-reveal [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(20px);
}

/* ---------- 13. Tablet / mobile ---------- */
@media (max-width: 1023px) {
  body { padding-left: 0; }

  .bh-utility { left: 0; }
  .bh-utility__note { display: none; }
  .bh-utility__div { display: none; }
  .bh-utility__panel { grid-template-columns: 1fr; gap: 18px; }

  .bh-brandbar__cta { display: none; }
  .bh-burger { display: inline-flex; }

  .bh-rail {
    width: min(80vw, 300px);
    align-items: stretch;
    gap: 6px;
    padding: 18px 14px 24px;
    transform: translateX(-104%);
    transition: transform .36s var(--ease);
    box-shadow: 22px 0 60px rgba(0, 0, 0, .55);
    z-index: 130;
  }
  .bh-rail[data-open] { transform: translateX(0); }

  .bh-rail__cap {
    writing-mode: horizontal-tb;
    letter-spacing: .34em;
    padding: 0 0 12px 2px;
  }
  .bh-rail__list { padding-inline: 0; gap: 4px; }
  .bh-rail__list a {
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    text-align: left;
  }
  .bh-rail__num { font-size: 10px; }
  .bh-rail__list a[aria-current="page"]::before {
    left: 0;
    top: 9px;
    bottom: 9px;
    height: auto;
    width: 3px;
    transform: none;
    border-radius: 3px;
  }
  .bh-rail__cta {
    display: inline-flex;
    width: 100%;
    margin-top: 14px;
  }
  .bh-rail__foot { padding: 16px 0 0 2px; }

  .bh-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 125;
    background: rgba(2, 6, 12, .74);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility 0s linear .3s;
  }
  .bh-scrim[data-open] {
    opacity: 1;
    visibility: visible;
    transition: opacity .3s var(--ease), visibility 0s;
  }

  .bh-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }

  .bh-footer__top { grid-template-columns: 1fr; }
  .bh-footer__contacts {
    border-left: 0;
    padding-left: 0;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .bh-footer__tagline { max-width: 22ch; }
}

@media (max-width: 639px) {
  :root { --utility-h: 44px; }

  .bh-utility__quick { display: none; }
  .bh-week { display: none; }
  .bh-utility__stamp { font-size: 10px; padding: 3px 7px; }
  .bh-utility__toggle { padding: 4px 9px; }
  .bh-utility__toggle-text { display: none; }

  .bh-brand__text small { display: none; }
  .bh-brandbar__actions { gap: 8px; }

  .bh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .bh-footer__cols { grid-template-columns: 1fr 1fr; }
  .bh-footer__bottom { flex-direction: column; }
  .bh-footer__note { max-width: none; }

  .bh-btn { min-height: 42px; padding: 0 16px; font-size: 13.5px; }
  .bh-btn--sm { min-height: 36px; padding: 0 13px; }
}

/* ---------- 14. Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .bh-reveal [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
  .bh-brand:hover .bh-brand__mark { transform: none; }
  .bh-btn:hover { transform: none; }
}
