/* ============ NIGHT SHIFT — beats.css (night vignettes) ============ */

/* ---------- shared entry typography ---------- */
.entry__body { max-width: 660px; }
.entry__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.4vw, 4.3rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.entry__title em { font-style: italic; color: var(--dim); }
.entry__h {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.entry__lede {
  margin-top: 1.8rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--fg);
  max-width: 52ch;
}
.entry__copy {
  margin-top: 2.2rem;
  color: var(--dim);
  font-size: 13.5px;
  max-width: 56ch;
}
.entry__copy em { color: var(--fg); font-style: italic; }
.entry__tag {
  display: block;
  margin-top: 0.8rem;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--dim);
  text-transform: uppercase;
}
.type::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 0.15em;
  vertical-align: text-bottom;
  background: var(--amber);
  animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ---------- brand eyebrow + service chips (hero) ---------- */
.entry__brand {
  display: inline-block;
  margin-bottom: 1.6rem;
  padding: 0.5em 1em;
  border: 1px solid rgba(214, 226, 244, 0.28);
  border-radius: 999px;
  background: rgba(214, 226, 244, 0.05);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
}
.svc {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.svc li {
  padding: 0.5em 0.95em;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dim);
  white-space: nowrap;
}
.svc li::before {
  content: "\2713";
  color: var(--sig);
  margin-right: 0.55em;
  font-weight: 600;
}

/* ---------- probes (23:47) ---------- */
.probes {
  margin-top: 2.4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
}
.probe {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  background: var(--bg-2);
  padding: 0.8rem 1rem;
}
.probe__name { font-size: 12.5px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.probe__lat { font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.probe__stat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--sig);
  transition: color 0.3s;
}
.probe__stat.chk { color: var(--amber); }

/* ---------- gate / attack log (01:12) ---------- */
.gate { margin-top: 2.4rem; border: 1px solid var(--line); background: var(--bg-2); }
.gate__count {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid var(--line);
}
.gate__num {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.gate__label { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }
.gate__log {
  list-style: none;
  padding: 0.7rem 1.2rem 1rem;
  font-size: 11.5px;
  line-height: 1.9;
  color: var(--dim);
  min-height: 8.6em;
}
.gate__log li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: ripple 0.5s var(--ease) both; }
.gate__log li b { color: var(--red); font-weight: 500; }
@keyframes ripple { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }

/* ---------- ledger (02:35) ---------- */
.ledger { margin-top: 2.4rem; border-top: 1px solid var(--line); }
.ledger__row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0.2rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}
.ledger__pkg { flex: 1; }
.ledger__ver { color: var(--dim); font-variant-numeric: tabular-nums; }
.ledger__stat {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--amber);
  transition: color 0.4s;
}
.ledger__stat.done { color: var(--sig); }

/* ---------- perf (03:47) ---------- */
.perf { margin-top: 2.4rem; }
.perf__row { display: grid; grid-template-columns: 84px 54px 78px 1fr; align-items: center; gap: 0.9rem; padding: 0.7rem 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.perf__label { letter-spacing: 0.12em; font-size: 11px; color: var(--dim); }
.perf__from { color: var(--dim); font-variant-numeric: tabular-nums; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--red) 55%, transparent); }
.perf__to { font-weight: 600; color: var(--sig); font-variant-numeric: tabular-nums; }
.perf__bar { height: 6px; background: var(--line-soft); position: relative; overflow: hidden; }
.perf__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, color-mix(in srgb, var(--sig) 60%, transparent), var(--sig));
  transition: width 1.6s var(--ease);
}

/* ---------- vault (04:58) ---------- */
.vault { margin-top: 2.4rem; border: 1px solid var(--line); background: var(--bg-2); }
.vault__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.vault__row:last-child { border-bottom: 0; }
.vault__k { letter-spacing: 0.1em; }
.vault__v { color: var(--sig); font-variant-numeric: tabular-nums; }

/* ---------- crew (05:30) ---------- */
.crew { margin-top: 2.4rem; }
.crew__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.crew__mono {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: var(--line-soft);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 2px;
  color: var(--amber);
}
.crew__name { flex: 1; font-size: 13.5px; }
.crew__name em { display: block; font-style: normal; font-size: 11px; color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; }
.crew__tenure { color: var(--dim); font-size: 11.5px; font-variant-numeric: tabular-nums; }

/* ---------- responsive: break rail below 760px ---------- */
@media (max-width: 760px) {
  .entry { grid-template-columns: 1fr; padding: clamp(3rem, 8vh, 4.5rem) 0; }
  .entry__rail { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.9rem; padding: 0 0 1.2rem; }
  .entry__rail::after { display: none; }
  .entry__rail time { font-size: 1.45rem; }
  .entry__tag { margin-top: 0; }
  .stamp { margin-top: 0; }
  .probes { grid-template-columns: 1fr; }
  .perf__row { grid-template-columns: 64px 44px 62px 1fr; }
}