/* project-detail.css, shared styles for all project pages */
:root {
  --bg:      #0a0a0b;
  --bg2:     #111114;
  --bg3:     #181820;
  --border:  rgba(255,255,255,0.08);
  --border2: rgba(255,255,255,0.14);
  --text:    #e8e6e0;
  --muted:   #6b6a64;
  --muted2:  #999790;
  --accent:  #00e5a0;
  --accent2: #00b87a;
  --warm:    #f0c060;
  --mono:    'DM Mono', monospace;
  --sans:    'Syne', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.6;
}

body::after {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none; z-index: 0;
}

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 3rem;
  border-bottom: 1px solid var(--border);
  background: rgba(10,10,11,0.85);
  backdrop-filter: blur(12px);
}

.nav-logo { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); letter-spacing: 0.05em; text-decoration: none; }
.nav-back  { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); text-decoration: none; letter-spacing: 0.06em; transition: color 0.2s; display: flex; align-items: center; gap: 0.5rem; }
.nav-back:hover { color: var(--text); }

.page { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; padding: 7rem 3rem 5rem; }

/* ── HEADER ── */
.proj-eyebrow { font-family: var(--mono); font-size: 0.72rem; color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.proj-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--accent); }

.proj-title { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 1.5rem; }

.proj-meta-row {
  display: flex; flex-wrap: wrap; gap: 2rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.meta-item { display: flex; flex-direction: column; gap: 0.3rem; }
.meta-label { font-family: var(--mono); font-size: 0.65rem; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; }
.meta-value { font-family: var(--mono); font-size: 0.82rem; color: var(--text); }

/* ── CONTENT BLOCKS ── */
.block { margin-bottom: 3.5rem; }

.block-title {
  font-size: 1.1rem; font-weight: 700; color: var(--text);
  margin-bottom: 1.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.75rem;
}

.block-title .num { font-family: var(--mono); font-size: 0.7rem; color: var(--accent); }

.prose { font-family: var(--mono); font-size: 0.88rem; color: var(--muted2); line-height: 1.95; }
.prose + .prose { margin-top: 1rem; }
.prose strong { color: var(--text); font-weight: 500; }
.prose em { color: var(--warm); font-style: normal; }

/* ── TAGS ── */
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.tag { font-family: var(--mono); font-size: 0.72rem; color: var(--muted2); background: var(--bg3); border: 1px solid var(--border); padding: 0.3rem 0.65rem; border-radius: 3px; }
.tag.hl { color: var(--warm); border-color: rgba(240,192,96,0.25); background: rgba(240,192,96,0.05); }
.tag.ok { color: var(--accent); border-color: rgba(0,229,160,0.2); background: rgba(0,229,160,0.05); }

/* ── CALLOUT ── */
.callout {
  background: var(--bg2); border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 6px 6px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.callout.warn { border-left-color: var(--warm); }
.callout p { font-family: var(--mono); font-size: 0.82rem; color: var(--muted2); line-height: 1.8; }
.callout p strong { color: var(--text); }

/* ── TWO-COL ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* ── CARD ── */
.info-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; padding: 1.5rem;
}
.info-card-title { font-family: var(--mono); font-size: 0.65rem; color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 1.2rem; }

.kv-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 0.78rem; }
.kv-row:last-child { border-bottom: none; }
.kv-key { color: var(--muted); flex-shrink: 0; }
.kv-val { color: var(--text); text-align: right; }

/* ── TIMELINE ── */
.timeline { display: flex; flex-direction: column; gap: 0; }
.tl-item { display: grid; grid-template-columns: 28px 1fr; gap: 1rem; padding-bottom: 1.75rem; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); margin-top: 5px; flex-shrink: 0; position: relative; z-index: 1; }
.tl-item::before { content: ''; position: absolute; left: 4px; top: 14px; bottom: 0; width: 1px; background: var(--border); }
.tl-item:last-child::before { display: none; }
.tl-label { font-family: var(--mono); font-size: 0.65rem; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.35rem; }
.tl-text { font-family: var(--mono); font-size: 0.82rem; color: var(--muted2); line-height: 1.8; }
.tl-text strong { color: var(--text); }

/* ── ARCH DIAGRAM ── */
.arch-box {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 6px;
  padding: 1.75rem; margin: 1.5rem 0;
  font-family: var(--mono); font-size: 0.78rem;
}
.arch-layer { margin-bottom: 1.25rem; }
.arch-layer:last-child { margin-bottom: 0; }
.arch-layer-name { font-size: 0.65rem; color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.6rem; }
.arch-items { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.arch-item { background: var(--bg3); border: 1px solid var(--border); border-radius: 3px; padding: 0.35rem 0.75rem; color: var(--muted2); font-size: 0.75rem; }
.arch-arrow { text-align: center; color: var(--muted); font-size: 0.9rem; margin: 0.5rem 0; }

/* ── RESULTS ── */
.results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.result-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 6px; padding: 1.25rem; text-align: center; }
.result-num { font-size: 1.8rem; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 0.4rem; }
.result-num.warm { color: var(--warm); }
.result-label { font-family: var(--mono); font-size: 0.7rem; color: var(--muted); letter-spacing: 0.08em; }

/* ── FOOTER ── */
.proj-footer { margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.proj-footer a { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.proj-footer a:hover { color: var(--text); }
.proj-footer-cta { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); border: 1px solid var(--accent2); padding: 0.55rem 1.2rem; border-radius: 3px; text-decoration: none; transition: background 0.2s, color 0.2s; }
.proj-footer-cta:hover { background: var(--accent); color: var(--bg); }

@keyframes fadeUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:translateY(0); } }
.proj-eyebrow { animation: fadeUp 0.4s ease both 0.1s; }
.proj-title   { animation: fadeUp 0.4s ease both 0.2s; }
.proj-meta-row { animation: fadeUp 0.4s ease both 0.3s; }
.block        { animation: fadeUp 0.4s ease both 0.4s; }

@media (max-width: 750px) {
  nav { padding: 1rem 1.5rem; }
  .page { padding: 6rem 1.5rem 4rem; }
  .two-col { grid-template-columns: 1fr; }
  .results-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .results-grid { grid-template-columns: 1fr; }
  .result-num { font-size: 1.4rem; }
  .proj-footer { flex-direction: column; gap: 1rem; align-items: flex-start; }
}
