.page-hero {
  padding: 80px 0 30px;
  position: relative;
}
.page-hero-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}
.page-hero h1 {
  margin: 16px 0 24px;
  font-size: clamp(56px, 9vw, 140px);
  line-height: 0.9;
}
.page-hero h1 .red { color: var(--red); }

/* Progress bar — phase tracker */
.phase-bar {
  margin: 40px 0 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 22px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.phase-cell {
  padding: 0 24px;
  border-right: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.phase-cell:last-child { border-right: none; }
.phase-cell .ph-label {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--mute);
  display: flex; justify-content: space-between;
}
.phase-cell .ph-name {
  font-family: var(--f-display);
  font-size: 18px;
  letter-spacing: -0.01em;
}
.phase-cell .ph-track {
  position: relative;
  height: 4px;
  background: var(--paper-2);
  margin-top: 4px;
}
.phase-cell .ph-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--red);
}
.phase-cell.active .ph-fill { background: var(--red); }
.phase-cell.done .ph-fill { background: var(--ink); }
@media (max-width: 800px) {
  .phase-bar { grid-template-columns: 1fr 1fr; }
  .phase-cell { border-bottom: 1px solid var(--ink); padding: 16px 20px; }
  .phase-cell:nth-child(2n) { border-right: none; }
}

/* Filter strip */
.filter-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 28px 0 24px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.filter-strip .lbl { color: var(--mute); }
.chip {
  padding: 8px 14px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  transition: background 0.15s, color 0.15s;
}
.chip:hover { background: var(--paper-2); }
.chip.active { background: var(--ink); color: var(--paper); }

/* Log entries */
.log {
  border-top: 2px solid var(--ink);
}
.entry {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--ink);
  position: relative;
}
@media (max-width: 800px) {
  .entry { grid-template-columns: 1fr; gap: 20px; }
}
.entry-meta {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.entry-meta .date { color: var(--ink); font-size: 13px; }
.entry-meta .phase-tag {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  width: fit-content;
}
.entry-meta .cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
}
.entry-meta .cat-tag::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
}
.entry-meta .cat-tag[data-cat="hardware"]::before { background: var(--red); }
.entry-meta .cat-tag[data-cat="software"]::before { background: var(--ink); }
.entry-meta .cat-tag[data-cat="research"]::before { background: var(--red); outline: 1px solid var(--ink); outline-offset: 1px; }
.entry-meta .cat-tag[data-cat="milestone"]::before { background: var(--ink); outline: 2px solid var(--red); outline-offset: 1px; }
.entry-meta .cat-tag[data-cat="ops"]::before { background: transparent; border: 1px solid var(--ink); }

.entry-body h3 {
  font-family: var(--f-display);
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 14px;
}
.entry-body p { margin: 0 0 12px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; max-width: 68ch; }
.entry-body ul { margin: 10px 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.entry-body ul li { margin: 4px 0; }

.entry-body .artifact {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 18px;
}
.entry-body .artifact span {
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 10px;
  background: var(--paper-2);
  border: 1px solid var(--ink);
  border-radius: 999px;
}

/* Featured entry */
.entry.featured {
  background: var(--ink);
  color: var(--paper);
  margin: 0 calc(-1 * var(--pad));
  padding: 56px var(--pad);
  border-bottom: 2px solid var(--ink);
}
.entry.featured .entry-body h3 { color: var(--paper); }
.entry.featured .entry-body p { color: #c9c7bf; }
.entry.featured .entry-meta { color: #c9c7bf; }
.entry.featured .entry-meta .phase-tag,
.entry.featured .entry-meta .date { color: var(--paper); border-color: #3a3a38; }
.entry.featured .artifact span { background: transparent; border-color: #3a3a38; color: #c9c7bf; }
.entry.featured .entry-body .now-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 6px 14px;
  background: var(--red); color: var(--paper);
  border-radius: 999px;
  margin-bottom: 18px;
}
.entry.featured .entry-body .now-pill::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--paper);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* Subscribe */
.subscribe {
  border: 1px solid var(--ink);
  padding: 48px;
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  background: var(--paper);
  position: relative;
  overflow: hidden;
}
.subscribe::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  --d: 3px; --g: 18px;
  background-image: radial-gradient(circle, var(--red) 0 var(--d), transparent calc(var(--d) + 0.5px));
  background-size: var(--g) var(--g);
  opacity: 0.2;
  transform: rotate(8deg);
}
.subscribe h3 {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 12px;
}
.subscribe p { margin: 0; color: var(--ink-2); max-width: 42ch; }
.sub-form { display: flex; gap: 0; align-items: stretch; }
.sub-form input {
  flex: 1;
  border: 1px solid var(--ink);
  border-right: none;
  padding: 14px 18px;
  background: var(--paper);
  font: inherit;
  font-size: 14px;
  outline: none;
}
.sub-form input:focus { background: var(--paper-2); }
.sub-form button {
  padding: 14px 22px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}
.sub-form button:hover { background: var(--red); border-color: var(--red); }
.sub-thanks {
  display: none;
  margin-top: 12px;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red);
}
.sub-thanks.show { display: block; }
@media (max-width: 800px) {
  .subscribe { grid-template-columns: 1fr; padding: 32px; }
}

.empty-state {
  padding: 80px 0;
  text-align: center;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  display: none;
}
.empty-state.show { display: block; }