/* ═══════════════════════════════════════
   CLARKCORE — PROJECT PAGE STYLES
   Extends style.css — always load after it.
   ═══════════════════════════════════════ */

/* ── PROJECT HERO ── */
.project-hero {
  min-height: 60vh;
  padding: 140px 6% 80px;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: end;
}

.project-division {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  color: var(--ink-muted);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.project-division::before {
  content: '';
  display: inline-block;
  width: 20px; height: 1px;
  background: var(--ink-muted);
}

.project-hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.project-hero h1 em {
  font-style: italic;
  color: var(--ink-mid);
}

.project-hero p {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.9;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  max-width: 520px;
}

/* ── STATUS ASIDE ── */
.project-aside {
  border-left: 1px solid var(--rule);
  padding-left: 36px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
  padding-bottom: 4px;
}

.aside-item {}
.aside-item-label {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
}
.aside-item-value {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.3;
}
.aside-item-value.mono-val {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

/* status indicator */
.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}
.status-pip {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-pip.active   { background: var(--accent-mid); box-shadow: 0 0 5px var(--accent-mid); animation: pip-pulse 3s ease-in-out infinite; }
.status-pip.observ   { background: var(--warn); }
.status-pip.offline  { background: var(--rule); }
.status-pip.routing  { background: var(--ink-mid); }
.status-pip.integrat { background: var(--accent); opacity: 0.6; animation: pip-pulse 1.5s ease-in-out infinite; }

@keyframes pip-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ── SECTION RULE ── */
.project-section {
  padding: 64px 6%;
  border-bottom: 1px solid var(--rule);
}

/* ── CONTENT BLOCK ── */
.content-block {
  max-width: 720px;
}
.content-block p {
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--ink-mid);
  margin-bottom: 22px;
}
.content-block p:last-child { margin-bottom: 0; }

/* ── CLASSIFIED NOTICE ── */
.classified-notice {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--danger);
  background: var(--danger-pale);
  padding: 18px 22px;
  margin-top: 32px;
  max-width: 600px;
}
.classified-notice-label {
  font-family: var(--mono);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: var(--danger);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.classified-notice p {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-mid);
  line-height: 1.7;
  letter-spacing: 0.03em;
  margin: 0;
}

/* ── DATA TABLE ── */
.data-table {
  width: 100%;
  max-width: 680px;
  border-collapse: collapse;
  margin-top: 8px;
}
.data-table tr {
  border-bottom: 1px solid var(--rule-dim);
}
.data-table tr:first-child {
  border-top: 1px solid var(--rule);
}
.data-table td {
  padding: 14px 0;
  font-size: 0.7rem;
  vertical-align: top;
}
.data-table td:first-child {
  font-family: var(--mono);
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  width: 200px;
  text-transform: uppercase;
  font-size: 0.58rem;
  padding-top: 16px;
}
.data-table td:last-child {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.5;
}

/* ── METRICS in project pages (no animation — already loaded) ── */
.project-section .metrics-grid {
  margin-top: 0;
}
.project-section .metric-card {
  opacity: 1;
  transform: none;
}

/* ── FOOTER ── */
.project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 6% 80px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
}

/* ── ASIDE FIG IMAGE ── */
.aside-fig {
  margin-top: 8px;
  border: 1px solid var(--rule);
}
.aside-fig img {
  width: 100%; display: block;
  filter: saturate(0) brightness(0.9) contrast(1.1);
  opacity: 0.75;
}
.aside-fig-caption {
  font-size: 0.5rem;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  padding: 7px 10px;
  border-top: 1px solid var(--rule-dim);
  background: var(--paper);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .project-hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .project-aside {
    border-left: none;
    border-top: 1px solid var(--rule);
    padding-left: 0;
    padding-top: 28px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }
}