/* ═══════════════════════════════════════════════════════════════
   TIME CAPSULE — scrollytelling page
   ═══════════════════════════════════════════════════════════════ */

.tc-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px 120px;
  position: relative;
  z-index: 2;
}

.tc-wrapper .at-back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  margin-top: 24px;
}

.tc-wrapper .at-back:hover { color: var(--accent-hover); }

/* ── Header ── */

.tc-header {
  padding: 80px 0 100px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.tc-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.tc-title {
  font-family: var(--sans);
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 300;
  color: var(--text-bright);
  margin: 0 0 16px;
  line-height: 1.2;
}

.tc-subtitle {
  font-size: 15px;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.tc-scroll-cue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
  animation: tc-bob 2s ease-in-out infinite;
}

@keyframes tc-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* ── Era sections ── */

.tc-era {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border-dim);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.tc-era.tc-visible {
  opacity: 1;
  transform: translateY(0);
}

.tc-era-marker {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-accent-dim);
}

.tc-year {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.tc-era-label {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 300;
  color: var(--text-bright);
}

.tc-era-body {
  padding-left: 20px;
  border-left: 1px solid var(--border-dim);
}

/* ── Content blocks ── */

.tc-block {
  margin-bottom: 32px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease 0.1s, transform 0.6s ease 0.1s;
}

.tc-block.tc-visible {
  opacity: 1;
  transform: translateY(0);
}

.tc-block p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-mid);
  margin: 0;
}

.tc-block p code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  background: var(--tint);
  padding: 2px 5px;
  border-radius: 3px;
}

/* ── Artifact blocks ── */

.tc-block--artifact {
  background: rgba(212, 184, 118, 0.03);
  border: 1px solid var(--border-accent-dim);
  border-radius: 4px;
  padding: 16px 20px;
}

.tc-artifact-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.tc-artifact-content {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

.tc-artifact-content pre {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
  overflow-x: auto;
}

.tc-artifact-content code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}

.tc-artifact-content ul {
  margin: 0;
  padding-left: 18px;
  list-style: none;
}

.tc-artifact-content ul li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--text-dim);
}

.tc-artifact-content ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── Quote blocks ── */

.tc-block--quote {
  padding-left: 20px;
  border-left: 2px solid var(--accent);
  margin-left: 0;
}

.tc-block--quote blockquote {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-mid);
  font-style: italic;
}

.tc-block--quote cite {
  display: block;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

/* ── Screenshot blocks ── */

.tc-block--screenshot {
  margin-bottom: 32px;
}

.tc-screenshot-frame {
  border: 1px solid var(--border-accent-dim);
  border-radius: 4px;
  overflow: hidden;
  background: #0a0a0a;
}

.tc-screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.tc-screenshot-caption {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 10px;
  text-align: center;
}

/* ── Route display ── */

.tc-route {
  font-family: var(--mono) !important;
  font-size: 12px !important;
  color: var(--accent) !important;
  letter-spacing: 0.02em;
  word-spacing: 2px;
}

/* ── Table ── */

.tc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.tc-table td {
  padding: 6px 12px 6px 0;
  border-bottom: 1px solid var(--border-faint);
  color: var(--text-dim);
  vertical-align: top;
}

.tc-table td:first-child {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  white-space: nowrap;
  width: 90px;
}

.tc-table td:last-child {
  color: var(--text-faint);
  font-size: 12px;
  text-align: right;
}

/* ── Footer ── */

.tc-footer {
  padding-top: 60px;
  text-align: center;
}

.tc-footer-line {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 24px;
  opacity: 0.5;
}

.tc-footer p {
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.7;
  margin: 0 0 20px;
}

.tc-home-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.tc-home-link:hover { color: var(--accent-hover); }

/* ── Responsive ── */

@media (max-width: 640px) {
  .tc-wrapper { padding: 0 20px 80px; }
  .tc-header { padding: 48px 0 60px; }
  .tc-era { padding: 48px 0 40px; }
  .tc-era-marker { flex-direction: column; gap: 4px; }
  .tc-era-body { padding-left: 14px; }
  .tc-block--artifact { padding: 12px 14px; }
}
