/* ═══════════════════════════════════════════════════════════════
   OpenChronology — Shared Stylesheet
   openchronology.org/css/style.css
   v0.2 Pre-Release
   ═══════════════════════════════════════════════════════════════ */

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg:         #080b12;
  --bg-surface: #0d1120;
  --bg-card:    #111826;

  /* Gold — primary accent */
  --gold:       #c8a45a;
  --gold-dim:   #8a6e35;
  --gold-glow:  rgba(200, 164, 90, 0.12);

  /* Teal — technical/code accent */
  --teal:       #4a9fa8;
  --teal-dim:   rgba(74, 159, 168, 0.15);

  /* Text */
  --text:       #ddd8cc;
  --text-dim:   #8a8880;
  --text-faint: #3d3f48;

  /* Borders */
  --border:     rgba(200, 164, 90, 0.15);
  --border-sub: rgba(255, 255, 255, 0.05);

  /* Typography */
  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'Spectral', Georgia, serif;
  --ff-mono:    'JetBrains Mono', 'Courier New', monospace;
}

/* ── Base ───────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

/* Noise texture overlay */
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.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1000;
  opacity: 0.4;
}

/* ── Typography ─────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

p { font-weight: 300; }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

code, .mono {
  font-family: var(--ff-mono);
  font-size: 0.8em;
  color: var(--teal);
  background: var(--teal-dim);
  padding: 0.1em 0.4em;
  border-radius: 3px;
}

/* ── Logo Mark ──────────────────────────────────────────────────── */
/* Used in the header of every page. Applied via .nav-logo-mark
   (index.html) and .logo-mark (specification.html, sql-schema.html).
   Both class names share these rules via comma selector. */
.nav-logo-mark,
.logo-mark {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.nav-logo-mark::before,
.logo-mark::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}
.nav-logo-mark::after,
.logo-mark::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

/* ── Shared Badge ───────────────────────────────────────────────── */
.nav-badge,
.header-badge {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--gold-dim);
  border: 1px solid var(--gold-dim);
  padding: 0.2em 0.6em;
  border-radius: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Code Blocks ────────────────────────────────────────────────── */
pre {
  background: var(--bg-surface);
  border: 1px solid var(--border-sub);
  border-left: 2px solid var(--gold-dim);
  padding: 1.4rem 1.6rem;
  overflow-x: auto;
  margin: 1.2rem 0 1.5rem;
  border-radius: 0 2px 2px 0;
}
pre code {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  background: none;
  padding: 0;
  line-height: 1.65;
}

/* ── Tables ─────────────────────────────────────────────────────── */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0 1.5rem;
  font-size: 0.875rem;
}
.spec-table thead tr { border-bottom: 1px solid var(--border); }
.spec-table th {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  text-align: left;
  padding: 0.6rem 0.9rem;
  font-weight: 400;
}
.spec-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border-sub);
  color: var(--text-dim);
  vertical-align: top;
  font-weight: 300;
}
.spec-table tr:last-child td { border-bottom: none; }
.spec-table tr:hover td { background: var(--gold-glow); }
.spec-table td strong { color: var(--text); font-weight: 400; }
.spec-table td code { font-size: 0.75em; }

/* ── Callouts ───────────────────────────────────────────────────── */
.callout {
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
  border-radius: 0 2px 2px 0;
  font-size: 0.9rem;
  font-weight: 300;
}
.callout-note {
  background: rgba(200, 164, 90, 0.07);
  border-left: 2px solid var(--gold-dim);
  color: var(--text-dim);
}
.callout-warn {
  background: rgba(74, 159, 168, 0.07);
  border-left: 2px solid var(--teal);
  color: var(--text-dim);
}
.callout-label {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.callout-note .callout-label { color: var(--gold-dim); }
.callout-warn .callout-label { color: var(--teal); }
.callout strong { font-weight: 500; color: var(--text); }

/* ── Section Labels ─────────────────────────────────────────────── */
/* Used on spec, sql, and content pages */
.sec-label,
.section-label {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sec-label::before,
.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--gold-dim);
}

/* ── Section Divider ────────────────────────────────────────────── */
.sec-divider {
  height: 1px;
  background: var(--border-sub);
  margin: 3.5rem 0;
}

/* ── Shared Sidebar Layout ──────────────────────────────────────── */
/* Used by specification.html and sql-schema.html */
.page-layout {
  display: flex;
  padding-top: 64px; /* matches fixed header height */
}
.sidebar {
  flex-shrink: 0;
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  padding: 2.5rem 0 2rem 2rem;
  border-right: 1px solid var(--border-sub);
  scrollbar-width: thin;
  scrollbar-color: var(--text-faint) transparent;
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--text-faint); border-radius: 2px; }

.toc-header {
  font-family: var(--ff-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-sub);
}
.toc-list { list-style: none; }
.toc-list li { margin-bottom: 0.1rem; }
.toc-list a {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  color: var(--text-faint);
  display: block;
  padding: 0.3rem 0.5rem 0.3rem 0;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, padding 0.2s;
  line-height: 1.4;
}
.toc-list a:hover { color: var(--text-dim); text-decoration: none; }
.toc-list a.active { color: var(--gold); border-left-color: var(--gold); padding-left: 0.6rem; }
.toc-list .toc-sub a { font-size: 0.62rem; padding-left: 0.8rem; }
.toc-list .toc-sub a.active { color: var(--gold-dim); border-left-color: var(--gold-dim); padding-left: 1.4rem; }
.toc-divider { height: 1px; background: var(--border-sub); margin: 0.8rem 0.5rem 0.8rem 0; }

.toc-download,
.toc-back {
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-sub);
}
.toc-download a,
.toc-back a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  padding: 0.6rem 0.5rem;
  border: 1px solid var(--border-sub);
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.toc-download a { color: var(--teal); border-color: rgba(74, 159, 168, 0.2); }
.toc-download a:hover { background: var(--teal-dim); text-decoration: none; }
.toc-back a:hover { color: var(--gold); border-color: var(--gold-dim); text-decoration: none; }

/* ── Shared Spec Content Area ───────────────────────────────────── */
.spec-content,
.content {
  flex: 1;
  min-width: 0;
  padding: 3rem 3.5rem 6rem 3.5rem;
  max-width: 860px;
}

/* ── Shared Footer ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border-sub);
  padding: 2.5rem 0;
}
.footer-inner,
footer > * {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--ff-display);
  font-size: 1rem;
  color: var(--text-dim);
}
.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.footer-links a {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); text-decoration: none; }
.footer-meta {
  font-family: var(--ff-mono);
  font-size: 0.62rem;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}

/* ── Animations ─────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulseGold {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

.animate-up  { animation: fadeUp 0.8s ease both; }
.animate-in  { animation: fadeIn 0.8s ease both; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.30s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.60s; }
.delay-5 { animation-delay: 0.75s; }
.delay-6 { animation-delay: 0.90s; }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .spec-content,
  .content { padding: 2rem 1.5rem 4rem; }
  footer { padding: 2rem 1.5rem; }
}


/* ═══════════════════════════════════════════════════════════════
   index.html — Landing Page Styles
   All styles specific to the openchronology.org landing page.
   ═══════════════════════════════════════════════════════════════ */

/* ── Layout ───────────────────────────────────────────────── */
    .container {
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 2rem;
    }

    .container--narrow {
      max-width: 760px;
      margin: 0 auto;
      padding: 0 2rem;
    }

    section { position: relative; }

    /* ── Horizontal rule ──────────────────────────────────────── */
    .rule {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin: 0;
    }
    .rule::before, .rule::after {
      content: '';
      flex: 1;
      height: 1px;
      background: var(--border);
    }
    .rule span {
      font-family: var(--ff-mono);
      font-size: 0.65rem;
      color: var(--gold-dim);
      letter-spacing: 0.15em;
      text-transform: uppercase;
      white-space: nowrap;
    }


    /* ══════════════════════════════════════════════════════════ */
    /* HEADER / NAV                                              */
    /* ══════════════════════════════════════════════════════════ */
    header {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      padding: 1.25rem 0;
      border-bottom: 1px solid transparent;
      transition: border-color 0.3s, background 0.3s;
    }
    header.scrolled {
      background: rgba(8, 11, 18, 0.92);
      backdrop-filter: blur(12px);
      border-color: var(--border-sub);
    }
    .nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .nav-logo {
      font-family: var(--ff-display);
      font-size: 1.2rem;
      font-weight: 500;
      color: var(--text);
      letter-spacing: 0.02em;
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }
    .nav-links {
      display: flex;
      gap: 2rem;
      list-style: none;
    }
    .nav-links a {
      font-family: var(--ff-mono);
      font-size: 0.72rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-dim);
      transition: color 0.2s;
    }
    .nav-links a:hover {
      color: var(--gold);
      text-decoration: none;
    }

    /* ══════════════════════════════════════════════════════════ */
    /* HERO                                                      */
    /* ══════════════════════════════════════════════════════════ */
    .hero {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 8rem 0 5rem;
      position: relative;
      overflow: hidden;
    }

    /* Star field background */
    .hero-bg {
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(74,159,168,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(200,164,90,0.04) 0%, transparent 50%);
    }

    /* Timeline axis line */
    .hero-axis {
      position: absolute;
      left: 50%;
      top: 0;
      bottom: 0;
      width: 1px;
      background: linear-gradient(to bottom, transparent, var(--border) 20%, var(--border) 80%, transparent);
      transform: translateX(-50%);
      opacity: 0.4;
    }

    .hero-content {
      position: relative;
      z-index: 2;
    }

    .hero-eyebrow {
      font-family: var(--ff-mono);
      font-size: 0.7rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 1.5rem;
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }
    .hero-eyebrow::before {
      content: '';
      width: 32px;
      height: 1px;
      background: var(--gold);
    }

    .hero-title {
      font-size: clamp(3.5rem, 8vw, 7.5rem);
      font-weight: 300;
      line-height: 1.0;
      letter-spacing: -0.02em;
      margin-bottom: 0.15em;
      color: #f0ece3;
    }
    .hero-title em {
      font-style: italic;
      color: var(--gold);
    }

    .hero-subtitle {
      font-family: var(--ff-display);
      font-size: clamp(1.2rem, 2.5vw, 1.7rem);
      font-weight: 300;
      font-style: italic;
      color: var(--text-dim);
      margin-bottom: 2.5rem;
      max-width: 640px;
    }

    .hero-statement {
      font-size: 1.05rem;
      font-weight: 300;
      color: var(--text);
      max-width: 580px;
      margin-bottom: 3rem;
      line-height: 1.8;
    }
    .hero-statement strong {
      font-weight: 500;
      color: #f0ece3;
    }

    .hero-links {
      display: flex;
      gap: 1.5rem;
      align-items: center;
      flex-wrap: wrap;
    }
    .btn-primary {
      font-family: var(--ff-mono);
      font-size: 0.75rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--bg);
      background: var(--gold);
      padding: 0.85em 2em;
      border-radius: 2px;
      transition: background 0.2s, transform 0.2s;
      display: inline-block;
    }
    .btn-primary:hover {
      background: #dbb96a;
      text-decoration: none;
      transform: translateY(-1px);
    }
    .btn-secondary {
      font-family: var(--ff-mono);
      font-size: 0.75rem;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--text-dim);
      border: 1px solid var(--border);
      padding: 0.85em 2em;
      border-radius: 2px;
      transition: color 0.2s, border-color 0.2s;
      display: inline-block;
    }
    .btn-secondary:hover {
      color: var(--gold);
      border-color: var(--gold-dim);
      text-decoration: none;
    }

    /* Timeline dots decoration */
    .hero-timeline {
      position: absolute;
      right: 8%;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      flex-direction: column;
      gap: 0;
      align-items: flex-end;
      opacity: 0.5;
    }
    .tl-item {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: 0.6rem 0;
      position: relative;
    }
    .tl-item::before {
      content: '';
      position: absolute;
      right: 6px;
      top: 0;
      bottom: 0;
      width: 1px;
      background: var(--border);
    }
    .tl-item:first-child::before { top: 50%; }
    .tl-item:last-child::before  { bottom: 50%; }
    .tl-label {
      font-family: var(--ff-mono);
      font-size: 0.6rem;
      letter-spacing: 0.1em;
      color: var(--text-faint);
      text-align: right;
      line-height: 1.2;
    }
    .tl-dot {
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--text-faint);
      flex-shrink: 0;
      position: relative;
      z-index: 1;
    }
    .tl-dot.active {
      background: var(--gold);
      box-shadow: 0 0 8px var(--gold);
      animation: pulseGold 2.5s ease-in-out infinite;
    }

    /* ══════════════════════════════════════════════════════════ */
    /* INSIGHT BAND                                              */
    /* ══════════════════════════════════════════════════════════ */
    .insight-band {
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      padding: 4rem 0;
      background: var(--bg-surface);
      overflow: hidden;
    }
    .insight-quote {
      font-family: var(--ff-display);
      font-size: clamp(1.4rem, 3vw, 2.1rem);
      font-weight: 300;
      font-style: italic;
      text-align: center;
      line-height: 1.5;
      color: var(--text);
      max-width: 820px;
      margin: 0 auto;
    }
    .insight-quote em { color: var(--gold); font-style: normal; }
    .insight-source {
      font-family: var(--ff-mono);
      font-size: 0.65rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--text-dim);
      text-align: center;
      margin-top: 1.5rem;
    }

    /* ══════════════════════════════════════════════════════════ */
    /* WHAT IT IS                                               */
    /* ══════════════════════════════════════════════════════════ */
    .what {
      padding: 7rem 0;
    }
    .section-label {
      font-family: var(--ff-mono);
      font-size: 0.65rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: var(--gold-dim);
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }
    .section-label::before {
      content: '';
      width: 20px;
      height: 1px;
      background: var(--gold-dim);
    }
    .section-title {
      font-size: clamp(2rem, 4vw, 3.2rem);
      font-weight: 300;
      margin-bottom: 1.5rem;
      color: #f0ece3;
    }
    .what-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
      align-items: start;
      margin-top: 4rem;
    }
    .what-text p {
      margin-bottom: 1.2rem;
      font-size: 1rem;
      color: var(--text-dim);
    }
    .what-text p strong { color: var(--text); font-weight: 400; }

    .what-pillars {
      display: flex;
      flex-direction: column;
      gap: 0;
      border: 1px solid var(--border);
    }
    .pillar {
      padding: 1.4rem 1.6rem;
      border-bottom: 1px solid var(--border);
      transition: background 0.2s;
    }
    .pillar:last-child { border-bottom: none; }
    .pillar:hover { background: var(--gold-glow); }
    .pillar-label {
      font-family: var(--ff-mono);
      font-size: 0.62rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--gold);
      margin-bottom: 0.3rem;
    }
    .pillar-title {
      font-family: var(--ff-display);
      font-size: 1.2rem;
      font-weight: 500;
      color: #f0ece3;
      margin-bottom: 0.3rem;
    }
    .pillar-desc {
      font-size: 0.875rem;
      color: var(--text-dim);
      font-weight: 300;
    }

    /* ══════════════════════════════════════════════════════════ */
    /* USE CASES                                                */
    /* ══════════════════════════════════════════════════════════ */
    .usecases {
      padding: 6rem 0;
      border-top: 1px solid var(--border-sub);
    }
    .usecases-intro {
      max-width: 600px;
      margin-bottom: 4rem;
    }
    .usecases-intro p {
      font-size: 1rem;
      color: var(--text-dim);
      margin-top: 1rem;
    }
    .cases-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5px;
      background: var(--border);
    }
    .case-card {
      background: var(--bg);
      padding: 2.5rem;
      position: relative;
      overflow: hidden;
      transition: background 0.3s;
    }
    .case-card:hover { background: var(--bg-card); }
    .case-card::before {
      content: '';
      position: absolute;
      top: 0; left: 0;
      width: 2px;
      height: 0;
      background: var(--gold);
      transition: height 0.4s ease;
    }
    .case-card:hover::before { height: 100%; }
    .case-icon {
      position: absolute;
      bottom: -18px;
      right: -18px;
      width: 160px;
      height: 160px;
      color: var(--gold);
      opacity: 0.07;
      pointer-events: none;
      transition: opacity 0.4s ease;
    }
    .case-icon svg {
      width: 160px;
      height: 160px;
    }
    .case-card:hover .case-icon { opacity: 0.13; }
    /* Individual rotations — intentional, not random */
    .case-card:nth-child(1) .case-icon { transform: rotate(10deg); }
    .case-card:nth-child(2) .case-icon { transform: rotate(-8deg);  bottom: -10px; right: -10px; }
    .case-card:nth-child(3) .case-icon { transform: rotate(14deg);  bottom: -22px; right: -12px; }
    .case-card:nth-child(4) .case-icon { transform: rotate(-6deg);  bottom: -8px;  right: -20px; }
    .case-title {
      font-family: var(--ff-display);
      font-size: 1.35rem;
      font-weight: 500;
      color: #f0ece3;
      margin-bottom: 0.6rem;
    }
    .case-body {
      font-size: 0.9rem;
      color: var(--text-dim);
      font-weight: 300;
      line-height: 1.7;
    }
    .case-example {
      margin-top: 1rem;
      font-family: var(--ff-mono);
      font-size: 0.68rem;
      color: var(--teal);
      letter-spacing: 0.05em;
    }

    /* ══════════════════════════════════════════════════════════ */
    /* 1000 YEAR PROJECT                                        */
    /* ══════════════════════════════════════════════════════════ */
    .thousandyear {
      padding: 7rem 0;
      border-top: 1px solid var(--border-sub);
      position: relative;
      overflow: hidden;
    }
    .thousandyear-bg {
      position: absolute;
      right: -100px;
      top: 50%;
      transform: translateY(-50%);
      width: 500px;
      height: 500px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(74,159,168,0.04) 0%, transparent 70%);
      pointer-events: none;
    }
    .thousandyear-inner {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5rem;
      align-items: center;
      position: relative;
      z-index: 1;
    }
    .thousandyear-text .section-title { margin-bottom: 1.5rem; }
    .thousandyear-text p {
      font-size: 1rem;
      color: var(--text-dim);
      margin-bottom: 1.1rem;
      font-weight: 300;
    }
    .thousandyear-text p strong { color: var(--text); font-weight: 400; }
    .thousandyear-link {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      margin-top: 1rem;
      font-family: var(--ff-mono);
      font-size: 0.72rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--teal);
    }
    .thousandyear-link::after { content: '→'; }

    .thousandyear-visual {
      display: flex;
      flex-direction: column;
      gap: 0;
      position: relative;
    }
    .ty-timeline-line {
      position: absolute;
      left: 10px;
      top: 12px;
      bottom: 12px;
      width: 1px;
      background: linear-gradient(to bottom, var(--gold-dim), var(--teal-dim) 50%, var(--gold-dim));
    }
    .ty-event {
      display: flex;
      gap: 1.5rem;
      align-items: flex-start;
      padding: 0.75rem 0;
      position: relative;
    }
    .ty-dot {
      width: 21px;
      height: 21px;
      border-radius: 50%;
      border: 1px solid var(--border);
      background: var(--bg);
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      z-index: 1;
    }
    .ty-dot-inner {
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background: var(--gold-dim);
    }
    .ty-dot.highlight { border-color: var(--gold); }
    .ty-dot.highlight .ty-dot-inner { background: var(--gold); box-shadow: 0 0 6px var(--gold); }
    .ty-dot.future { border-color: var(--text-faint); }
    .ty-dot.future .ty-dot-inner { background: var(--text-faint); }
    .ty-content {}
    .ty-date {
      font-family: var(--ff-mono);
      font-size: 0.6rem;
      letter-spacing: 0.1em;
      color: var(--gold-dim);
      margin-bottom: 0.2rem;
    }
    .ty-label {
      font-family: var(--ff-display);
      font-size: 0.95rem;
      color: var(--text);
      font-weight: 400;
    }
    .ty-sub {
      font-size: 0.78rem;
      color: var(--text-dim);
      font-weight: 300;
    }

    /* ══════════════════════════════════════════════════════════ */
    /* FILE FAMILY                                              */
    /* ══════════════════════════════════════════════════════════ */
    .formats {
      padding: 6rem 0;
      border-top: 1px solid var(--border-sub);
      background: var(--bg-surface);
    }
    .formats-intro {
      max-width: 600px;
      margin-bottom: 3.5rem;
    }
    .formats-intro p { font-size: 1rem; color: var(--text-dim); margin-top: 1rem; }
    .formats-table {
      width: 100%;
      border-collapse: collapse;
    }
    .formats-table thead tr {
      border-bottom: 1px solid var(--border);
    }
    .formats-table th {
      font-family: var(--ff-mono);
      font-size: 0.62rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--gold-dim);
      text-align: left;
      padding: 0.75rem 1rem;
      font-weight: 400;
    }
    .formats-table td {
      padding: 1.1rem 1rem;
      border-bottom: 1px solid var(--border-sub);
      font-size: 0.9rem;
      color: var(--text-dim);
      vertical-align: top;
    }
    .formats-table tr:last-child td { border-bottom: none; }
    .formats-table tr:hover td { background: var(--gold-glow); }
    .ext {
      font-family: var(--ff-mono);
      font-size: 0.8rem;
      color: var(--teal);
      white-space: nowrap;
    }
    .fmt-title { color: var(--text); font-weight: 400; margin-bottom: 0.2rem; }

    /* ══════════════════════════════════════════════════════════ */
    /* SCHEMA REGISTRY                                          */
    /* ══════════════════════════════════════════════════════════ */
    .registry {
      padding: 6rem 0;
      border-top: 1px solid var(--border-sub);
    }
    .registry-intro {
      max-width: 580px;
      margin-bottom: 3rem;
    }
    .registry-intro p { font-size: 1rem; color: var(--text-dim); margin-top: 1rem; }
    .registry-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      background: var(--border-sub);
      margin-bottom: 2rem;
    }
    .schema-card {
      background: var(--bg);
      padding: 1.5rem;
      transition: background 0.2s;
    }
    .schema-card:hover { background: var(--bg-card); }
    .schema-file {
      font-family: var(--ff-mono);
      font-size: 0.72rem;
      color: var(--teal);
      margin-bottom: 0.5rem;
      display: block;
    }
    .schema-title {
      font-family: var(--ff-display);
      font-size: 1rem;
      color: var(--text);
      margin-bottom: 0.3rem;
    }
    .schema-desc {
      font-size: 0.78rem;
      color: var(--text-dim);
      font-weight: 300;
      line-height: 1.5;
    }
    .registry-url {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      font-family: var(--ff-mono);
      font-size: 0.72rem;
      color: var(--text-dim);
      border: 1px solid var(--border-sub);
      padding: 0.75rem 1.25rem;
      border-radius: 2px;
      transition: color 0.2s, border-color 0.2s;
    }
    .registry-url:hover {
      color: var(--teal);
      border-color: var(--teal);
      text-decoration: none;
    }
    .registry-url span { color: var(--teal); }

    /* ══════════════════════════════════════════════════════════ */
    /* STATUS BAND                                              */
    /* ══════════════════════════════════════════════════════════ */
    .status-band {
      padding: 5rem 0;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      background: var(--bg-surface);
    }
    .status-inner {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 3rem;
      text-align: center;
    }
    .stat-item {}
    .stat-value {
      font-family: var(--ff-display);
      font-size: 3rem;
      font-weight: 300;
      color: var(--gold);
      line-height: 1;
      margin-bottom: 0.4rem;
    }
    .stat-label {
      font-family: var(--ff-mono);
      font-size: 0.65rem;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: var(--text-dim);
    }
    .stat-sub {
      font-size: 0.8rem;
      color: var(--text-faint);
      margin-top: 0.3rem;
    }

    /* ══════════════════════════════════════════════════════════ */
    /* FOOTER                                                   */
    /* ══════════════════════════════════════════════════════════ */
    footer {
      padding: 3.5rem 0;
      border-top: 1px solid var(--border-sub);
    }
    .footer-inner {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 1.5rem;
    }
    .footer-logo {
      font-family: var(--ff-display);
      font-size: 1rem;
      color: var(--text-dim);
    }
    .footer-links {
      display: flex;
      gap: 2rem;
      list-style: none;
    }
    .footer-links a {
      font-family: var(--ff-mono);
      font-size: 0.65rem;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--text-faint);
      transition: color 0.2s;
    }
    .footer-links a:hover { color: var(--gold); text-decoration: none; }
    .footer-meta {
      font-family: var(--ff-mono);
      font-size: 0.62rem;
      color: var(--text-faint);
      letter-spacing: 0.05em;
    }

    /* ══════════════════════════════════════════════════════════ */
    /* RESPONSIVE                                               */
    /* ══════════════════════════════════════════════════════════ */
    @media (max-width: 900px) {
      .what-grid { grid-template-columns: 1fr; gap: 2.5rem; }
      .cases-grid { grid-template-columns: 1fr; }
      .thousandyear-inner { grid-template-columns: 1fr; gap: 3rem; }
      .registry-grid { grid-template-columns: repeat(2, 1fr); }
      .status-inner { grid-template-columns: 1fr; gap: 2rem; }
      .hero-timeline { display: none; }
      .footer-inner { flex-direction: column; align-items: flex-start; }
    }
    @media (max-width: 600px) {
      .registry-grid { grid-template-columns: 1fr; }
      .nav-links { display: none; }
      .hero-title { font-size: 3rem; }
    }