:root {
  --ocean: #03161d;
  --abyss: #08252f;
  --deep: #0e3340;
  --slate: #20505d;
  --steel: #8fa8b0;
  --cloud: #c5d5d8;
  --mist: #eaf2f2;
  --live: #2dd4bf;
  --coral: #f0625b;
  --line: rgba(143, 168, 176, 0.22);
  --line-soft: rgba(143, 168, 176, 0.13);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ocean);
  color: var(--cloud);
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.shell { max-width: 1020px; margin: 0 auto; padding: 0 28px; }

.mono { font-family: "IBM Plex Mono", monospace; }

/* nav */

nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(3, 22, 29, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.nav-mark img { display: block; }

.nav-links { display: flex; align-items: center; gap: 26px; }

.nav-links a:not(.btn) {
  color: var(--cloud);
  text-decoration: none;
  font-size: 15px;
}

.nav-links a:not(.btn):hover { color: var(--mist); }

@media (max-width: 680px) { .nav-links a:not(.btn) { display: none; } }

/* buttons and links */

.btn {
  display: inline-block;
  background: var(--live);
  color: var(--ocean);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 6px;
}

.btn:hover { background: #5dcaa5; }

.btn-lg { padding: 14px 26px; font-size: 17px; }

.textlink { color: var(--mist); text-decoration: none; font-size: 15.5px; border-bottom: 1px solid var(--slate); padding-bottom: 2px; }

.textlink:hover { border-color: var(--live); }

/* hero */

header { padding: 88px 0 0; }

.kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--steel);
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 44px;
}

.kicker #clock { color: var(--live); }

h1 {
  color: var(--mist);
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 600;
  line-height: 0.99;
  letter-spacing: -0.028em;
}

h1 em { font-style: normal; color: var(--live); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 48px;
  align-items: end;
  margin-top: 44px;
}

@media (max-width: 680px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }

.lede { font-size: 18px; max-width: 58ch; }

.cta-col { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-bottom: 4px; }

.cta-row { display: flex; gap: 16px; align-items: center; margin-top: 36px; }

/* credential record */

.record {
  margin: 64px 0 0;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.record-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--steel);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
}

.strip { display: flex; gap: 5px; padding: 20px 16px 8px; }

.strip span {
  flex: 1;
  height: 30px;
  border-radius: 2px;
  background: rgba(234, 242, 242, 0.07);
  transition: background 0.3s ease;
}

.strip span.on { background: var(--live); }

.record-fields {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--steel);
  padding: 10px 16px 16px;
}

.record-fields .readout { color: var(--live); margin-left: auto; }

/* ruled caption strip */

.rule-caption { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 84px; }

.rule-caption .shell {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--steel);
  padding-top: 14px;
  padding-bottom: 14px;
}

/* sections */

section { padding: 108px 0 0; }

h2 {
  color: var(--mist);
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
}

h3 { color: var(--mist); font-size: 20px; font-weight: 500; margin-bottom: 8px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.split h2 { margin-bottom: 0; max-width: 14ch; }

.split p + p { margin-top: 18px; }

@media (max-width: 680px) { .split { grid-template-columns: 1fr; gap: 24px; } }

/* ledger */

.ledger { margin-top: 56px; border-top: 1px solid var(--line); }

.ledger div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 32px;
  padding: 18px 2px;
  border-bottom: 1px solid var(--line);
}

.ledger dt { font-size: 16px; max-width: 60ch; }

.ledger dd { font-size: 20px; color: var(--live); white-space: nowrap; }

.roles { margin-top: 8px; }

.roles dt strong { color: var(--mist); font-weight: 500; }

.roles dd { font-size: 16px; color: var(--steel); }

/* clauses */

.clauses { list-style: none; border-top: 1px solid var(--line); }

.clause {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 34px 2px;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 680px) { .clause { grid-template-columns: 56px 1fr; } }

.clause-num {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--steel);
  padding-top: 6px;
}

.clause-body { max-width: 58ch; }

.clause-body p { font-size: 16px; }

.aside { margin-top: 32px; color: var(--steel); font-size: 15px; }

.aside a { color: var(--live); }

/* tiers */

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 680px) { .tiers { grid-template-columns: 1fr; gap: 28px; } }

.tier { border-top: 2px solid var(--slate); padding-top: 18px; }

.tier-live { border-top-color: var(--live); }

.tier-num { font-size: 12px; letter-spacing: 0.1em; color: var(--steel); margin-bottom: 14px; }

.tier-live .tier-num { color: var(--live); }

.tier p { font-size: 15.5px; }

.tier-tag { margin-top: 16px; font-size: 12px; letter-spacing: 0.08em; color: var(--live); }


/* ledger citations */

.ledger sup { font-size: 11px; margin-left: 3px; }

.ledger sup a { color: var(--live); text-decoration: none; }

/* record header mark */

.record-id { display: inline-flex; align-items: center; gap: 9px; }

/* claim note under the ladder */

.claim-note {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--steel);
  max-width: 64ch;
}

/* contact */

#contact h2 { max-width: 26ch; }

#contact .kicker { margin-bottom: 36px; }

/* footer */

footer { margin-top: 112px; border-top: 1px solid var(--line); }

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  padding-top: 34px;
  padding-bottom: 56px;
}

.footer-mark { opacity: 0.65; }

.sources {
  list-style: none;
  counter-reset: src;
  font-size: 11.5px;
  color: var(--steel);
  max-width: 72ch;
}

.sources li {
  counter-increment: src;
  padding: 3px 0;
}

.sources li::before { content: counter(src) ". "; color: var(--slate); }

.sources a { color: var(--steel); text-decoration: none; border-bottom: 1px solid var(--line); }

.sources a:hover { color: var(--cloud); border-color: var(--steel); }

.legal { font-size: 9.5px; letter-spacing: 0.12em; color: var(--slate); }

/* reveal */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .strip span { transition: none; }
}
