/* ============================================================
   KAMEGEMZ — BUILD STATUS  (styles)
   Used by: dashboard.html (full board) + index.html (teaser).
   Namespaced under .bs-* / .build-status so it cannot collide
   with the global style.css.
   ============================================================ */
.build-status, .bs-teaser {
  --bs-panel:       #0c1016;
  --bs-panel-2:     #0f141c;
  --bs-edge:        rgba(127, 255, 239, 0.14);
  --bs-cyan:        #3fb9a6;   /* oxidized cyan — fill body */
  --bs-cyan-bright: #7fffef;   /* stardust cyan — glow */
  --bs-gold:        #e2b96f;   /* matches site --gold */
  --bs-bone:        #eef4f0;   /* matches site --bone */
  --bs-bone-dim:    rgba(238, 244, 240, 0.55);
  --bs-bone-faint:  rgba(238, 244, 240, 0.32);
  --bs-track:       #11161e;
  --bs-radius:      14px;
  --bs-ease:        cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== FULL BOARD ===== */
.build-status {
  position: relative; display: block; max-width: 880px; margin: 0 auto;
  padding: clamp(28px, 5vw, 48px); color: var(--bs-bone);
  font-family: 'DM Sans', system-ui, sans-serif;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(63,185,166,0.07), transparent 60%),
    linear-gradient(180deg, var(--bs-panel-2), var(--bs-panel));
  border: 1px solid var(--bs-edge); border-radius: var(--bs-radius); overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), inset 0 0 60px rgba(0,0,0,0.6), 0 24px 60px rgba(0,0,0,0.45);
}
.build-status::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(115deg, rgba(127,255,239,0.022) 0 2px, transparent 2px 9px),
    repeating-linear-gradient(-60deg, rgba(226,185,111,0.018) 0 1px, transparent 1px 14px);
  mix-blend-mode: screen;
}
.build-status__particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.build-status > * { position: relative; z-index: 1; }

.build-status__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.68rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--bs-cyan-bright); margin: 0 0 14px;
}
.build-status__eyebrow::before {
  content: ""; width: 9px; height: 9px; background: var(--bs-cyan-bright);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); box-shadow: 0 0 10px var(--bs-cyan-bright);
}
.build-status__title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(2rem, 7vw, 3.1rem); line-height: 0.98; margin: 0;
  text-transform: uppercase; color: var(--bs-bone); text-shadow: 0 0 28px rgba(127,255,239,0.12);
}
.build-status__subtitle { margin: 12px 0 0; max-width: 46ch; font-size: 0.98rem; color: var(--bs-bone-dim); line-height: 1.5; }

.build-status__bars { margin-top: clamp(28px, 4vw, 40px); display: flex; flex-direction: column; gap: 24px; }
.bs-bar { display: block; }
.bs-bar__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.bs-bar__label { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.02rem; color: var(--bs-bone); }
.bs-bar__phase { margin-left: 10px; font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--bs-bone-faint); }
.bs-bar__pct { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 0.95rem; font-variant-numeric: tabular-nums; color: var(--bs-cyan-bright); text-shadow: 0 0 12px rgba(127,255,239,0.35); }

.bs-bar__track { position: relative; height: 12px; border-radius: 7px; background: var(--bs-track); border: 1px solid var(--bs-edge); box-shadow: inset 0 1px 3px rgba(0,0,0,0.7); overflow: hidden; }
.bs-bar__fill {
  position: absolute; inset: 0 auto 0 0; width: 0%; border-radius: 7px;
  background: linear-gradient(90deg, var(--bs-cyan) 0%, var(--bs-cyan-bright) 100%);
  box-shadow: 0 0 14px rgba(63,185,166,0.45), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: width 1.5s var(--bs-ease);
}
.bs-bar__fill::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(105deg, rgba(255,255,255,0.10) 0 1px, transparent 1px 7px); opacity: 0.6; }
.bs-bar__fill::after { content: ""; position: absolute; top: -1px; bottom: -1px; right: 0; width: 3px; background: var(--bs-cyan-bright); box-shadow: 0 0 12px 2px var(--bs-cyan-bright); animation: bs-pulse 2.6s ease-in-out infinite; }
@keyframes bs-pulse { 0%,100% { opacity: 0.55; } 50% { opacity: 1; } }
.bs-bar:hover .bs-bar__fill { box-shadow: 0 0 22px rgba(127,255,239,0.55), inset 0 1px 0 rgba(255,255,255,0.3); }
.bs-bar:hover .bs-bar__label { color: var(--bs-cyan-bright); }

.bs-bar__toggle { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 4px 2px; background: none; border: 0; cursor: pointer; font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 0.72rem; letter-spacing: 0.06em; color: var(--bs-bone-dim); transition: color 0.2s ease; }
.bs-bar__toggle:hover { color: var(--bs-cyan-bright); }
.bs-bar__ratio { color: var(--bs-bone); font-variant-numeric: tabular-nums; }
.bs-bar__toggle:hover .bs-bar__ratio { color: var(--bs-cyan-bright); }
.bs-bar__toggle-word { text-transform: uppercase; letter-spacing: 0.18em; }
.bs-bar__chev { display: inline-block; transition: transform 0.3s var(--bs-ease); font-size: 0.7rem; }
.bs-bar__toggle[aria-expanded="true"] .bs-bar__chev { transform: rotate(180deg); }

.bs-bar__beats { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s var(--bs-ease); }
.bs-bar__beats[data-open="true"] { grid-template-rows: 1fr; }
.bs-bar__beats-inner { overflow: hidden; }
.bs-bar__beat-list { list-style: none; margin: 12px 0 2px; padding: 14px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 22px; background: rgba(0,0,0,0.25); border: 1px solid var(--bs-edge); border-radius: 9px; }
.bs-beat { display: flex; align-items: center; gap: 9px; font-size: 0.82rem; line-height: 1.3; }
.bs-beat__mark { flex: 0 0 auto; width: 11px; height: 11px; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); border: 1px solid var(--bs-bone-faint); background: transparent; }
.bs-beat--done .bs-beat__mark { background: var(--bs-cyan-bright); border-color: var(--bs-cyan-bright); box-shadow: 0 0 8px rgba(127,255,239,0.7); }
.bs-beat--done .bs-beat__label { color: var(--bs-bone); }
.bs-beat__label { color: var(--bs-bone-faint); }
.bs-beat__shared { margin-left: 4px; font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bs-gold); opacity: 0.85; }

.build-status__goal { margin-top: clamp(30px, 4vw, 42px); padding: 20px 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; background: linear-gradient(180deg, rgba(226,185,111,0.05), rgba(226,185,111,0.01)); border: 1px solid rgba(226,185,111,0.22); border-radius: 11px; }
.build-status__goal-label { font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--bs-gold); margin: 0 0 6px; }
.build-status__goal-date { font-family: 'Syne', sans-serif; font-weight: 700; font-size: clamp(1.15rem, 4vw, 1.5rem); color: var(--bs-bone); margin: 0; }
.build-status__countdown { text-align: right; line-height: 1; }
.build-status__count-num { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: clamp(2rem, 8vw, 2.8rem); font-variant-numeric: tabular-nums; color: var(--bs-gold); text-shadow: 0 0 18px rgba(226,185,111,0.35); display: block; }
.build-status__count-unit { font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--bs-bone-dim); }

@media (max-width: 560px) {
  .build-status__goal { flex-direction: column; align-items: flex-start; }
  .build-status__countdown { text-align: left; }
  .bs-bar__phase { display: block; margin: 4px 0 0; }
  .bs-bar__beat-list { grid-template-columns: 1fr; }
}

/* ===== HOMEPAGE TEASER ===== */
.bs-teaser {
  max-width: 920px; margin: 0 auto; padding: clamp(22px, 4vw, 30px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px 34px;
  font-family: 'DM Sans', system-ui, sans-serif; color: var(--bs-bone);
  background: linear-gradient(180deg, var(--bs-panel-2), var(--bs-panel));
  border: 1px solid var(--bs-edge); border-radius: var(--bs-radius);
}
.bs-teaser__bars { flex: 1 1 380px; min-width: 280px; display: flex; flex-direction: column; gap: 16px; }
.bs-teaser__eyebrow { flex-basis: 100%; font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--bs-cyan-bright); margin: 0; }
.bs-teaser__side { flex: 0 0 auto; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.bs-teaser__days-num { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: clamp(1.8rem, 7vw, 2.4rem); font-variant-numeric: tabular-nums; color: var(--bs-gold); text-shadow: 0 0 16px rgba(226,185,111,0.3); line-height: 1; }
.bs-teaser__days-unit { font-size: 0.58rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--bs-bone-dim); }
.bs-teaser__link {
  display: inline-flex; align-items: center; gap: 7px; font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 0.82rem; letter-spacing: 0.04em; color: var(--bs-cyan-bright);
  padding: 9px 16px; border: 1px solid var(--bs-edge); border-radius: 8px; transition: all 0.2s ease;
}
.bs-teaser__link:hover { border-color: var(--bs-cyan-bright); box-shadow: 0 0 18px rgba(127,255,239,0.25); }
@media (max-width: 560px) { .bs-teaser__side { flex-basis: 100%; flex-direction: row; align-items: center; justify-content: space-between; } }

@media (prefers-reduced-motion: reduce) {
  .bs-bar__fill { transition: none; }
  .bs-bar__fill::after { animation: none; opacity: 0.8; }
  .bs-bar__beats, .bs-bar__chev { transition: none; }
}
