/* ═══════════════════════════════════════════════════════════════════════════
   VINCULUM — DESIGN SYSTEM
   Extracted from the original minimal site and asset-registry.html.
   Design only. No page content, no copy, no protocol claims.

   FOUR RULES. Break any one and you get a generic dark crypto site:

     1. Dark is a SECTION treatment, never the page background.
     2. Orb colours never leave the orbs. Never text, link, or border.
     3. Section padding never drops below 10rem vertical.
     4. Every heading is Cormorant Garamond 300.

   Fonts required in <head>:
   <link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=DM+Sans:wght@200;300;400&display=swap" rel="stylesheet">
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  /* Surface */
  --white:      #fafaf8;
  --off-white:  #f4f3ef;
  --black:      #0a0a0a;
  --mid:        #6b6b65;

  /* Rules — the only borders in the system */
  --rule:       rgba(0, 0, 0, 0.06);
  --rule-strong:rgba(0, 0, 0, 0.08);

  /* On dark */
  --on-dark:        rgba(255, 255, 255, 0.85);
  --on-dark-mid:    rgba(255, 255, 255, 0.30);
  --on-dark-faint:  rgba(255, 255, 255, 0.25);
  --on-dark-rule:   rgba(255, 255, 255, 0.06);

  /* Orb colours. RULE 2: these appear nowhere except .orb. */
  --orb-cyan:  #00d4ff;
  --orb-blue:  #0066ff;
  --orb-green: #00e887;

  --hero-gradient: linear-gradient(135deg, #060a10 0%, #0d1b2a 40%, #1a1a2e 70%, #060a10 100%);

  /* Type */
  --display: 'Cormorant Garamond', Georgia, serif;
  --body:    'DM Sans', system-ui, sans-serif;

  /* Space */
  --measure:   1400px;
  --section-y: 10rem;
  --section-x: 3rem;
  --gap-wide:  8rem;
  --gap:       6rem;
}

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

body {
  background: var(--white);
  color: var(--black);
  font-family: var(--body);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; }

/* ── Custom cursor ─────────────────────────────────────────────────────────
   Opt in per page with <body class="has-cursor">. Pointer devices only —
   never hide the cursor on touch. */

@media (hover: hover) and (pointer: fine) {
  body.has-cursor { cursor: none; }
  body.has-cursor a,
  body.has-cursor button { cursor: none; }
}

.cursor {
  width: 8px; height: 8px;
  background: var(--black);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .3s ease, height .3s ease, background .3s ease, border-color .3s ease;
}
.cursor.hovering {
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--black);
}
.cursor.on-dark { background: var(--white); }
.cursor.on-dark.hovering { background: transparent; border-color: var(--white); }

@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ── Navigation ───────────────────────────────────────────────────────────
   mix-blend-mode: difference lets one nav sit over both light and dark. */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 2rem var(--section-x);
  mix-blend-mode: difference;
}
.nav-logo {
  font-family: var(--display);
  font-weight: 300; font-size: 1.1rem;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--white); text-decoration: none;
}
.nav-links { display: flex; gap: 3rem; list-style: none; flex-wrap: wrap; }
.nav-links a {
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--white); text-decoration: none; opacity: .8;
  transition: opacity .3s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; }

/* Solid variant for pages without a hero. */
.nav--solid {
  mix-blend-mode: normal;
  background: rgba(250, 250, 248, .95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav--solid .nav-logo, .nav--solid .nav-links a { color: var(--black); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  position: relative; height: 100vh; width: 100%;
  overflow: hidden; background: var(--black);
}
.hero-bg { position: absolute; inset: 0; background: var(--hero-gradient); }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: gridDrift 20s linear infinite;
}
.hero-content {
  position: relative; z-index: 10; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--section-x) 4rem;
}
.hero-eyebrow {
  font-size: .65rem; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-bottom: 1.5rem;
}
.hero h1, .hero-title {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(3.5rem, 8vw, 7rem); line-height: 1;
  color: var(--white); margin-bottom: 2rem;
}
.hero h1 em, .hero-title em { font-style: italic; opacity: .6; }
.hero-sub {
  font-size: .75rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.4);
}

/* Staggered entrance */
.hero-eyebrow, .hero-title, .hero h1, .hero-sub, .hero-scroll {
  opacity: 0; animation: fadeUp 1.2s ease forwards;
}
.hero-eyebrow { animation-delay: .3s; }
.hero-title, .hero h1 { animation-delay: .5s; }
.hero-sub { animation-delay: .8s; }
.hero-scroll { animation-delay: 1.2s; }

.hero-scroll {
  position: absolute; bottom: 3rem; right: var(--section-x);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.3);
  font-size: .6rem; letter-spacing: .15em; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 60px;
  background: rgba(255,255,255,.2);
  position: relative; overflow: hidden;
}
.scroll-line::after {
  content: ''; position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,.6);
  animation: scrollDrop 2s ease infinite;
}

/* ── Orbs. RULE 2 lives here. ─────────────────────────────────────────────── */

.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .15;
  animation: orbFloat 12s ease-in-out infinite;
  pointer-events: none;
}
.orb-1 { width: 600px; height: 600px; background: var(--orb-cyan);  top: -100px; left: -100px; }
.orb-2 { width: 400px; height: 400px; background: var(--orb-blue);  bottom: -50px; right: 10%; animation-delay: -4s; }
.orb-3 { width: 300px; height: 300px; background: var(--orb-green); top: 40%; left: 50%; animation-delay: -8s; }

.section--dark .orb, .manifesto .orb { opacity: .08; }

/* ── Sections ─────────────────────────────────────────────────────────────── */

.section {
  padding: var(--section-y) var(--section-x);
  max-width: var(--measure); margin: 0 auto;
}
.section--tint { background: var(--off-white); max-width: none; }
.section--tint > .inner { max-width: var(--measure); margin-inline: auto; }

.section--dark {
  background: var(--black);
  padding: var(--section-y) var(--section-x);
  position: relative; overflow: hidden;
  max-width: none;
}
.section--dark .inner { max-width: var(--measure); margin: 0 auto; position: relative; z-index: 2; }
.section--dark, .section--dark p { color: var(--on-dark); }

.divider { width: 100%; height: 1px; background: var(--rule); }

.section-header {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: var(--gap);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2rem;
}
.eyebrow, .section-label {
  font-size: .65rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--mid);
}
.section-count { font-family: var(--display); font-size: .9rem; color: var(--mid); font-weight: 300; }

/* ── Type ─────────────────────────────────────────────────────────────────── */

h1, h2, h3, h4 { font-family: var(--display); font-weight: 300; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem);  line-height: 1.1; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem);  line-height: 1.2; }
h3 { font-size: 1.6rem; line-height: 1.3; margin-bottom: 1rem; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--mid); }
.section--dark h1 em, .section--dark h2 em { color: inherit; opacity: .4; }

.headline--dark {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.15;
  color: var(--white); max-width: 800px; margin-bottom: var(--gap);
}

.body, .prose { font-size: .95rem; line-height: 1.9; color: var(--mid); max-width: 62ch; }
.prose p + p { margin-top: 1.5rem; }
.section--dark .body { color: var(--on-dark-mid); }

.tagline--dark {
  font-size: .7rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--on-dark-mid);
  border-top: 1px solid var(--on-dark-rule); padding-top: 3rem;
}

/* ── Grids ────────────────────────────────────────────────────────────────── */

.split      { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: start; }
.split--wide{ gap: var(--gap-wide); align-items: center; }
.split--offset > :last-child { padding-top: 4rem; }

/* Full-bleed cell grids. Hairlines, no cards, no shadows. */
.cells { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.cells--3 { grid-template-columns: repeat(3, 1fr); }
.cells--5 { grid-template-columns: repeat(5, 1fr); }
.cell {
  padding: 3rem;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  transition: background .4s ease;
}
.cell:hover { background: var(--off-white); }
.cells--3 .cell:nth-child(3n) { border-right: none; }
.cells--5 .cell { padding: 2rem 1.5rem; }
.cells--5 .cell:nth-child(5n) { border-right: none; }

.cell-num {
  font-family: var(--display); font-size: 4rem; font-weight: 300;
  color: rgba(0,0,0,.06); line-height: 1; margin-bottom: 2rem;
}

/* Dark cell grid — 1px gaps show the backing through. */
.cells--dark {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: rgba(255,255,255,.05);
  border: none; margin-bottom: var(--gap);
}
.cells--dark .cell {
  background: var(--black); border: none; padding: 2rem;
  transition: background .3s ease;
}
.cells--dark .cell:hover { background: rgba(255,255,255,.04); }
.cell-label--dark {
  font-size: .55rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--on-dark-faint); margin-bottom: .75rem;
}
.cell-title--dark { font-family: var(--display); font-size: 1.4rem; font-weight: 300; color: var(--white); }

/* ── Statistics ───────────────────────────────────────────────────────────── */

.stat { display: flex; flex-direction: column;
        border-top: 1px solid var(--rule-strong); padding-top: 2rem; margin-top: 2rem; }
.stat-number { font-family: var(--display); font-weight: 300; font-size: 3rem; line-height: 1; }
.stat-label  { font-size: .65rem; letter-spacing: .15em; text-transform: uppercase;
               color: var(--mid); margin-top: .5rem; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
             margin-top: 4rem; border-top: 1px solid var(--rule); padding-top: 3rem; }
.stat-grid .stat-number { font-size: 2.2rem; }
.stat-grid .stat-label  { font-size: .6rem; }

/* ── Manifesto ────────────────────────────────────────────────────────────── */

.manifesto {
  padding: 12rem var(--section-x);
  background: var(--black); text-align: center;
  position: relative; overflow: hidden;
}
.manifesto-inner { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.manifesto-label {
  font-size: .6rem; letter-spacing: .25em; text-transform: uppercase;
  color: var(--on-dark-faint); margin-bottom: 3rem;
}
.manifesto-text {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 3.5rem); line-height: 1.3;
  color: var(--white); margin-bottom: 4rem;
}
.manifesto-text em { font-style: italic; opacity: .4; }
.manifesto-rules {
  display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap;
  border-top: 1px solid var(--on-dark-rule); padding-top: 3rem;
}
.rule-item {
  font-size: .65rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--on-dark-mid);
}

/* ── Data tables ──────────────────────────────────────────────────────────── */

.data-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.data-table th {
  text-align: left; font-weight: 400;
  font-size: .65rem; letter-spacing: .15em; text-transform: uppercase;
  color: var(--mid); padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid var(--rule-strong);
}
.data-table td { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--rule); }
.data-table td.num { font-variant-numeric: tabular-nums; }
.data-table tbody tr { transition: background .3s ease; }
.data-table tbody tr:hover { background: var(--off-white); }

.state-empty { text-align: center; padding: 4rem 2rem; color: var(--mid);
               font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }

/* ── Footer ───────────────────────────────────────────────────────────────── */

.footer {
  padding: 4rem var(--section-x);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 2rem;
  border-top: 1px solid var(--rule);
}
.footer-logo {
  font-family: var(--display); font-weight: 300; font-size: 1rem;
  letter-spacing: .15em; text-transform: uppercase; text-decoration: none;
}
.footer-links { display: flex; gap: 2.5rem; list-style: none; flex-wrap: wrap; }
.footer-links a {
  font-size: .65rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--mid); text-decoration: none; transition: color .3s;
}
.footer-links a:hover { color: var(--black); }
.footer-copy { font-size: .65rem; color: var(--mid); letter-spacing: .05em; }

/* ── Scroll reveal ────────────────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(40px);
          transition: opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* Without JavaScript the page must still be readable. */
.no-js .reveal { opacity: 1; transform: none; }

/* ── Keyframes ────────────────────────────────────────────────────────────── */

@keyframes fadeUp    { from { opacity: 0; transform: translateY(30px); }
                       to   { opacity: 1; transform: translateY(0); } }
@keyframes gridDrift { from { transform: translateY(0); } to { transform: translateY(80px); } }
@keyframes scrollDrop{ from { top: -100%; } to { top: 100%; } }
@keyframes orbFloat  {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -40px) scale(1.05); }
  66%      { transform: translate(-20px, 20px) scale(.95); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-eyebrow, .hero-title, .hero h1, .hero-sub, .hero-scroll { opacity: 1; }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  :root { --section-y: 5rem; --section-x: 1.5rem; --gap: 3rem; --gap-wide: 3rem; }
  .nav { padding: 1.5rem; }
  .nav-links { gap: 1.25rem; }
  .split, .split--wide { grid-template-columns: 1fr; }
  .split--offset > :last-child { padding-top: 0; }
  .cells--3, .cells--5 { grid-template-columns: 1fr; }
  .cell { border-right: none; }
  .cells--dark { grid-template-columns: repeat(2, 1fr); }
  .manifesto { padding: 6rem 1.5rem; }
  .manifesto-rules { gap: 2rem; }
  .footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
