/* Bee Builders theme overrides — loaded after the compiled bundle.
   Variant A (Oct 2026): warm concrete floor, honeycomb brought forward, interactive hive in the hero.
   Edit here, not in assets/about.*.css. */

:root {
  --bg: #262219;          --color-bg: #262219;
  --surface: #332d25;     --color-surface: #332d25;
  --line: #4d4438;        --color-line: #4d4438;
  --muted: #b9b0a2;       --color-muted: #b9b0a2;
}

/* Warm glow pools re-tuned for the lighter floor */
.glow-top    { background-image: radial-gradient(70rem 30rem at 72% -8%, #d88a1e2b, #0000 62%), linear-gradient(#352f27bf, #0000 60%); }
.glow-center { background-image: radial-gradient(48rem 24rem at 50% 55%, #d88a1e22, #0000 68%), linear-gradient(#0000, #352f278c 45% 60%, #0000); }
.bg-bg\/95   { background-color: rgba(38, 34, 25, .95); }
.concrete:before { opacity: .1; }

/* Honeycomb: forward, but fading where the text sits so it stays readable */
.honeycomb:after {
  opacity: .14;
  background-size: 64px 111px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 45%, #0000 20%, #000 75%);
          mask-image: radial-gradient(120% 90% at 50% 45%, #0000 20%, #000 75%);
}
.glow-center.honeycomb:after { opacity: .11; }

/* ---- Interactive hive (hero only; built by hive.js) ---- */
.hive {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  /* recede under the text column, fade out at the bottom edge */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, #0000 100%), radial-gradient(60rem 36rem at 22% 52%, #0000 0%, #0003 30%, #000 70%);
          mask-image: linear-gradient(180deg, #000 0%, #000 78%, #0000 100%), radial-gradient(60rem 36rem at 22% 52%, #0000 0%, #0003 30%, #000 70%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
}
@media (max-width: 1023px) {
  .hive { -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, #0000 100%), radial-gradient(40rem 30rem at 50% 38%, #0000 0%, #0004 35%, #000 75%); 
          mask-image: linear-gradient(180deg, #000 0%, #000 78%, #0000 100%), radial-gradient(40rem 30rem at 50% 38%, #0000 0%, #0004 35%, #000 75%); }
}
.hive svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }

/* Back comb: bigger, softer, further away. Drifts against the pointer. */
.hive-back { opacity: .55; filter: blur(1.2px); transition: transform 600ms cubic-bezier(.16,1,.3,1); will-change: transform; }
.hive-back .cell .shadow { fill: none; stroke: #0b0805; stroke-opacity: .55; stroke-width: 2; }
.hive-back .cell .face   { fill: url(#hv-face); }
.hive-back .cell .wall   { fill: none; stroke: #d4a62a; stroke-opacity: .07; stroke-width: 1.2; }
.hive-back .cell .inner  { display: none; }

/* Front comb: each cell is a shallow well — dark edge below, lit rim above, inset lip. */
.hive-front .cell path { transition: fill-opacity 900ms cubic-bezier(.16,1,.3,1), stroke-opacity 900ms cubic-bezier(.16,1,.3,1), opacity 900ms cubic-bezier(.16,1,.3,1); }
.hive-front .cell .shadow { fill: none; stroke: #0b0805; stroke-opacity: .6; stroke-width: 1.6; }
.hive-front .cell .face   { fill: url(#hv-face); }
.hive-front .cell .wall   { fill: none; stroke: url(#hv-wall); stroke-opacity: .16; stroke-width: 1.1; }
.hive-front .cell .inner  { fill: none; stroke: #0b0805; stroke-opacity: .28; stroke-width: 1; }

/* Lit: gold pool in the cell, rim brightens, soft glow. --lit is 0..1 from hive.js */
.hive-front .cell.lit .face  { fill: url(#hv-lit); opacity: calc(var(--lit) * .6); transition-duration: 110ms; }
.hive-front .cell.lit .wall  { stroke-opacity: calc(.16 + var(--lit) * .74); transition-duration: 110ms; }
.hive-front .cell.lit .inner { stroke: #f1d27a; stroke-opacity: calc(var(--lit) * .35); transition-duration: 110ms; }
.hive-front .cell .face      { opacity: 1; }

/* Ambient pulse: one cell at a time */
.hive-front .cell.pulse .face { fill: url(#hv-lit); animation: hive-pulse 3000ms cubic-bezier(.16,1,.3,1) forwards; }
.hive-front .cell.pulse .wall { animation: hive-pulse-wall 3000ms cubic-bezier(.16,1,.3,1) forwards; }
@keyframes hive-pulse      { 0% { opacity: 0 } 16% { opacity: .75 } 100% { opacity: 0 } }
@keyframes hive-pulse-wall { 0% { stroke-opacity: .16 } 16% { stroke-opacity: .8 } 100% { stroke-opacity: .16 } }

/* Hero section stacks above the hive; the flat honeycomb tile is off here so the two don't fight */
.hero-hive { position: relative; }
.hero-hive > :not(.hive) { position: relative; z-index: 1; }
.hero-hive.honeycomb:after { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .hive path, .hive-back { transition: none; }
  .hive-front .cell.pulse .face, .hive-front .cell.pulse .wall { animation: none; }
}

/* Hero logo: forge glow — cast gold catching the forge light (Koby, Impeccable live accept, Oct 2026) */
.hero-logo {
  filter: drop-shadow(0 0 41px rgba(241, 210, 122, .30))
          drop-shadow(0 0 14px rgba(212, 166, 42, .42))
          brightness(1.045);
}

/* Header/footer logo mark: the busy illustration cropped into a deliberate gold
   seal so it reads as a mark, not a muddy thumbnail (Koby, Impeccable live accept, Oct 2026).
   aspect-ratio keeps it circular at both the 44px header and 56px footer sizes. */
.logo-seal {
  aspect-ratio: 1;
  width: auto;
  object-fit: cover;
  object-position: 50% 36%;
  border-radius: 50%;
  border: 1.5px solid var(--gold, #d4a62a);
  background: var(--bg, #262219);
  box-shadow: inset 0 0 0 1px rgba(11, 8, 5, .55), 0 1px 3px rgba(0, 0, 0, .5);
}

/* Floating header: transparent over the hero, solidifies on scroll (the
   beebuilders.construction treatment). The page is dark end to end, so an
   in-flow sticky header with no bar reads as floating over the hero; once the
   body scrolls under it, .scrolled (set by header.js) brings the bar back. */
.site-header {
  background-color: transparent;
  border: 0;
  transition: background-color .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background-color: rgba(38, 34, 25, .95);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.site-header details.menu[open] > summary { color: var(--gold-light); }

/* Credential strip floats with the header — no solid bar stacked above it. */
body > div.bg-surface.text-center {
  background: transparent;
  border-bottom-color: transparent;
}

/* Typographic polish: even out heading line breaks and pull single-word widows up. */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ---- Accessibility floor (detector findings after the lighter floor) ---- */
.text-gold-dark { color: #c9992a; }                 /* was #8e510e: 2.5:1 on the new floor */
.text-\[0\.65rem\] { font-size: .72rem; }            /* tag chips: 10.4px → 11.5px */
.text-\[0\.6rem\]  { font-size: .72rem; }            /* "General Contractor" under the wordmark */
