/* ============================================================
   RAIN · BioData Initiative page
   Builds on rain.css. Everything here is scoped to dc-* classes
   or to body.dc-page, so the shared design system stays as is.
============================================================ */

/* Motion, one rule per element so nothing doubles up:
   - Entrances run once. The hero cascades on load (rain.css for the copy,
     this file for the stage panel); everything below rises once through
     rain.js's .reveal observer. Children of a rising block only fade or
     draw, they never add a second slide of their own.
   - Ambient loops, one per region: the light running through the hero
     panel, the light running along the stage rail, the pilot status dot,
     the "in progress" ping on the rollout, and the shimmer on the record
     fields still being designed. Each runs only while it is on screen.
   - Every one of them stands down under prefers-reduced-motion. */

/* Anchor jumps glide on touch screens, where Lenis does not run. The JS adds
   this class only there, and only without reduced motion; with Lenis the JS
   routes the jump through Lenis instead. */
html.dc-smooth { scroll-behavior: smooth; }
.dc-page [id] { scroll-margin-top: 92px; }
.dc-nowrap { white-space: nowrap; }
/* Even line lengths, so no headline ends on a lone word. */
.dc-page .h-display, .dc-page .h-1 { text-wrap: balance; }
.dc-page .lead, .dc-page .lead-lg, .dc-stage-d, .dc-card-now, .dc-door-d, .dc-prin-d, .dc-pipe-d { text-wrap: pretty; }

/* ============================ STATUS CHIPS ============================
   One vocabulary for where each stage stands, used in the hero panel and
   on the stage cards: running (gold), in conversation (quiet), in
   progress (blue). */
.dc-chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font-family: var(--mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; line-height: 1;
  padding: 5px 9px 6px; border-radius: var(--r-pill);
  white-space: nowrap;
}
.dc-chip.is-live { background: rgba(204,156,79,0.16); color: var(--gold-deep); }
.dc-chip.is-live::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 6px rgba(204,156,79,0.85);
}
.dc-chip.is-talk { background: rgba(10,10,10,0.04); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.dc-chip.is-progress { background: rgba(39,69,214,0.09); color: var(--accent); }

/* ============================ HERO ============================
   Thesis on the left, the three stages on the right. The hero only
   pins (the site's deck-of-cards move) once the JS has checked that it
   fits the viewport: a pinned hero taller than the screen would hide its
   own lower half under the next card. */
.dc-hero {
  position: relative;
  padding: 128px 0 76px;
}
/* Sticky on wide screens; the top offset comes from .hero in rain.css, so a
   hero taller than the screen sticks by its bottom edge. */
.dc-hero.is-pinned { position: sticky; }

.dc-hero-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 5vw, 88px);
  align-items: center;
}
.dc-hero .h-display {
  font-size: clamp(2.625rem, 2.9vw + 1.55rem, 4.5rem);
  line-height: 0.99;
  max-width: 12.5ch;
}
.dc-hero .lead-lg {
  font-size: clamp(16.5px, 1.22vw, 19px);
  line-height: 1.55;
  max-width: 50ch;
  color: rgba(246,243,236,0.7);
}
.dc-hero .hero-cta-row { margin-top: 32px; }

/* RAIN lockup at the top of the hero: the seal, the name and what it
   stands for, so the page reads as RAIN's before it reads as the
   initiative's. Same gold and seal treatment as the nav brand, larger. */
.dc-host {
  display: inline-flex; align-items: center; gap: 18px;
  width: fit-content; max-width: 100%;
  text-decoration: none; color: inherit;
}
.dc-host-seal {
  width: 64px; height: 64px;
  box-shadow: 0 2px 6px rgba(8,19,42,0.45), 0 0 0 1px rgba(204,156,79,0.45), 0 0 22px rgba(204,156,79,0.28);
}
.dc-host:hover .dc-host-seal { transform: rotate(8deg) scale(1.04); }
.dc-host-text { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.dc-host-name {
  display: flex; align-items: baseline; flex-wrap: wrap; row-gap: 4px;
  font-family: var(--display);
  font-variation-settings: "opsz" 48, "SOFT" 60, "wght" 500;
  font-weight: 500; font-style: italic;
  font-size: 38px; line-height: 0.9; letter-spacing: 0.01em;
  color: #cc9c4f;
  text-shadow: 0 0 18px rgba(204,156,79,0.3);
}
.dc-host-full {
  margin-left: 14px; padding-left: 14px;
  border-left: 1px solid rgba(204,156,79,0.45);
  font-style: normal;
  font-variation-settings: "opsz" 36, "SOFT" 40, "wght" 400;
  font-weight: 400; font-size: 23px; letter-spacing: -0.01em;
  color: #f6f3ec; text-shadow: none;
}
.dc-host-sub {
  font-family: var(--mono); font-size: 11.5px; line-height: 1;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent-soft, #f4a23a);
}
.dc-host-at { color: rgba(246,243,236,0.5); }
.btn:hover .arr.dc-arr-down { transform: translateY(3px); }

/* Pilot status line. Reuses the site's gold "next up" pill; its pulse
   rests once the stages card has covered the hero. */
.dc-status { margin-top: 30px; }
.dc-status .event { font-size: 14.5px; }

/* ---- The stage panel ---- */
.dc-flow {
  position: relative;
  border-radius: var(--r-lg);
  padding: 20px 22px 22px;
  /* Tinted glass without backdrop-filter: the blobs behind it animate, and a
     live blur over them would re-rasterise every frame. */
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(39,69,214,0.16) 0%, transparent 60%),
    linear-gradient(180deg, rgba(15,31,68,0.78) 0%, rgba(8,19,42,0.7) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 0 0 1px rgba(255,255,255,0.07),
    0 30px 70px -30px rgba(0,0,0,0.7),
    0 0 60px -20px rgba(39,69,214,0.35);
  color: #f6f3ec;
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.3s,
              transform 1s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
body.is-loaded .dc-flow { opacity: 1; transform: none; }

.dc-flow-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 0 2px 14px; margin-bottom: 12px;
  border-bottom: 1px solid rgba(246,243,236,0.1);
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.dc-flow-title { color: var(--gold); display: inline-flex; align-items: center; gap: 9px; }
.dc-flow-title::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(204,156,79,0.8);
}
.dc-flow-meta { color: rgba(246,243,236,0.42); }

.dc-flow-list {
  --node: 22px;
  --gap: 8px;
  list-style: none; margin: 0; padding: 0;
  position: relative;
  display: flex; flex-direction: column; gap: var(--gap);
}
.dc-stage {
  position: relative;
  display: grid; grid-template-columns: var(--node) minmax(0, 1fr); column-gap: 16px;
  padding: 10px 12px 10px 10px;
  border-radius: 14px;
  opacity: 0;
  transition: opacity 0.6s ease;
}
body.is-loaded .dc-stage { opacity: 1; }
body.is-loaded .dc-stage:nth-child(1) { transition-delay: 0.55s; }
body.is-loaded .dc-stage:nth-child(2) { transition-delay: 0.65s; }
body.is-loaded .dc-stage:nth-child(3) { transition-delay: 0.75s; }
body.is-loaded .dc-stage:nth-child(4) { transition-delay: 0.85s; }

/* Hover wash for the row. It lives on a pseudo-element because the row
   itself carries the staggered entrance delay, which would lag the hover. */
.dc-stage::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: rgba(246,243,236,0.05);
  box-shadow: inset 0 0 0 1px rgba(246,243,236,0.08);
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.dc-stage:hover::before { opacity: 1; }
.dc-stage-body { display: block; color: inherit; outline: none; }
/* The whole row is the link target, so the focus ring wraps the row. */
.dc-stage-body::after { content: ''; position: absolute; inset: 0; border-radius: 14px; }
.dc-stage-body:focus-visible::after { box-shadow: 0 0 0 2px var(--gold); }

/* Connector from this stage's node down to the next one. The stage's own
   height plus the list gap is exactly the distance between the two nodes.
   :last-of-type, because the JS appends its light pulse to the same list. */
.dc-stage:not(:last-of-type)::after {
  content: '';
  position: absolute;
  left: calc(10px + var(--node) / 2 - 0.5px);
  top: calc(10px + var(--node));
  width: 1px;
  height: calc(100% + var(--gap) - var(--node));
  background: linear-gradient(180deg, rgba(246,243,236,0.28), rgba(204,156,79,0.3));
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
body.is-loaded .dc-stage:not(:last-of-type)::after { transform: scaleY(1); }
body.is-loaded .dc-stage:nth-child(1)::after { transition-delay: 0.75s; }
body.is-loaded .dc-stage:nth-child(2)::after { transition-delay: 0.85s; }
body.is-loaded .dc-stage:nth-child(3)::after { transition-delay: 0.95s; }

.dc-node {
  position: relative;
  width: var(--node); height: var(--node); border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #213566 0%, #0b1733 75%);
  box-shadow: inset 0 0 0 1px rgba(246,243,236,0.24), 0 0 0 4px rgba(8,19,42,0.55);
  z-index: 1;
}
.dc-node::after {
  content: ''; position: absolute; inset: 7px; border-radius: 50%;
  background: rgba(246,243,236,0.6);
}
/* Halo the JS fires once each time the light reaches a stage. Only
   opacity and transform animate, so it stays on the compositor. */
.dc-ring {
  position: absolute; inset: -6px; border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(224,180,97,0.9), 0 0 18px 2px rgba(224,180,97,0.55);
  opacity: 0; pointer-events: none;
}

.dc-stage-k {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px;
  font-family: var(--mono); font-size: 10.5px; line-height: var(--node);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(246,243,236,0.5);
}
.dc-stage-k b { color: var(--gold); font-weight: 500; }
.dc-stage-k .dc-chip { margin-left: auto; }
.dc-stage-t {
  display: block;
  font-family: var(--display);
  font-variation-settings: "opsz" 36, "SOFT" 40, "wght" 450;
  font-weight: 450; font-size: 18.5px; line-height: 1.22;
  letter-spacing: -0.01em; color: #f6f3ec;
  margin: 2px 0 4px;
}
.dc-stage-d {
  display: block;
  font-family: var(--sans); font-size: 13.5px; line-height: 1.45;
  color: rgba(246,243,236,0.62);
  max-width: 54ch;
}

/* Chips on the dark panel. */
.dc-flow .dc-chip.is-live { background: rgba(204,156,79,0.16); color: #f0cf8e; }
.dc-flow .dc-chip.is-talk { background: rgba(246,243,236,0.06); color: rgba(246,243,236,0.66); box-shadow: inset 0 0 0 1px rgba(246,243,236,0.14); }
.dc-flow .dc-chip.is-progress { background: rgba(80,110,240,0.24); color: #c8d1fb; }

/* The last row is the catalog that links the three: the gold seat. */
.dc-stage.is-link {
  background: linear-gradient(90deg, rgba(204,156,79,0.15) 0%, rgba(204,156,79,0.03) 75%);
  box-shadow: inset 0 0 0 1px rgba(204,156,79,0.3);
}
.dc-stage.is-link .dc-stage-k { color: var(--gold); }
.dc-stage.is-link .dc-node {
  background: radial-gradient(circle at 35% 30%, #f3cf86 0%, #b98a3c 80%);
  box-shadow: 0 0 0 4px rgba(204,156,79,0.16), 0 0 20px rgba(204,156,79,0.55);
}
.dc-stage.is-link .dc-node::after { inset: 8px; background: #08132a; }

/* The light that runs the length of a chain (positioned by JS). Down the
   hero panel its tail trails above it; along a horizontal rail, to its left. */
.dc-dot {
  position: absolute; top: 0; left: 0;
  width: 6px; height: 6px; border-radius: 50%;
  background: #f6e2b6;
  box-shadow: 0 0 10px 2px rgba(224,180,97,0.75), 0 0 2px rgba(255,255,255,0.9);
  opacity: 0; pointer-events: none;
  will-change: transform, opacity;
  z-index: 2;
}
.dc-dot::before {
  content: ''; position: absolute; left: 2px; bottom: 4px;
  width: 2px; height: 30px; border-radius: 2px;
  background: linear-gradient(0deg, rgba(224,180,97,0.75), rgba(224,180,97,0));
}
.dc-dot.is-h::before {
  left: auto; bottom: auto; right: 4px; top: 2px;
  width: 38px; height: 2px;
  background: linear-gradient(270deg, rgba(204,156,79,0.8), rgba(204,156,79,0));
}

/* ============================ STAGES ============================ */
.dc-stages { padding: clamp(80px, 10vh, 120px) 0 clamp(88px, 11vh, 128px); }
/* Pinned to the shade the deck-of-cards alternation gives it, so the node
   halos below can match it. */
.hero ~ section.dc-stages { background: var(--bg-sunken); }
.dc-stages-head { max-width: 860px; }
.dc-stages .h-1,
.dc-how .h-1,
.dc-principles .h-1,
.dc-ask .h-1 {
  font-size: clamp(34px, 4.1vw, 58px);
  line-height: 1;
}
.dc-stages .h-1 { max-width: 16ch; }
.dc-stages .lead { max-width: 62ch; }

/* The chain: three cards on a rail. On wide screens the rail runs above
   the cards and each node sits over its card's centre; on narrow screens
   it runs down a gutter on the left. The JS measures the nodes, lays the
   track between the first and the last, draws it once, then runs a light
   along it while it is on screen. */
.dc-chain {
  --rail: 52px;
  --node: 18px;
  --field: var(--bg-sunken);
  --gap: 18px;
  position: relative;
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: var(--rail);
}
.dc-chain-track {
  position: absolute; left: 0; top: 0;
  width: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(204,156,79,0.85), rgba(204,156,79,0.5) 50%, rgba(39,69,214,0.45));
  transform: scaleX(0); transform-origin: left center;
  opacity: 0;
}
.dc-chain-track.is-v {
  width: 2px; height: 0;
  background: linear-gradient(180deg, rgba(204,156,79,0.85), rgba(204,156,79,0.5) 50%, rgba(39,69,214,0.45));
  transform: scaleY(0); transform-origin: center top;
}
.dc-chain.is-measured .dc-chain-track { opacity: 1; }
.dc-chain.is-drawn .dc-chain-track {
  transform: none;
  transition: transform 1.3s linear;
}

.dc-cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
  align-items: stretch;
}
.dc-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 24px 26px 26px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f6f4ef 100%);
  box-shadow: var(--shadow-card);
}
/* Hover and arrival ring on a pseudo-element: the card itself carries the
   staggered reveal transition from rain.css. */
.dc-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(204,156,79,0.5), 0 0 36px -10px rgba(204,156,79,0.4);
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.dc-card:hover::after { opacity: 1; }
.dc-card.is-flash::after { animation: dc-flash 1.8s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes dc-flash {
  0%, 35% { opacity: 1; }
  100% { opacity: 0; }
}

.dc-chain-node {
  position: absolute; z-index: 1;
  left: calc(50% - var(--node) / 2);
  top: calc(var(--rail) / -2 - var(--node) / 2);
  width: var(--node); height: var(--node); border-radius: 50%;
  background: var(--bg-elev);
  box-shadow: inset 0 0 0 2px var(--ink-4), 0 0 0 5px var(--field);
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.5, 1);
}
/* Stem from the node down to its card. */
.dc-chain-node::before {
  content: ''; position: absolute;
  left: calc(50% - 0.5px); top: calc(100% + 5px);
  width: 1px; height: calc(var(--rail) / 2 - var(--node) / 2 - 5px);
  background: linear-gradient(180deg, rgba(204,156,79,0.45), rgba(204,156,79,0));
}
.dc-card.is-live .dc-chain-node {
  background: var(--gold);
  box-shadow: 0 0 0 5px var(--field), 0 0 0 9px rgba(204,156,79,0.16), 0 0 16px rgba(204,156,79,0.55);
}
.dc-card.is-talk .dc-chain-node { box-shadow: inset 0 0 0 2px var(--gold), 0 0 0 5px var(--field); }
.dc-card.is-progress .dc-chain-node { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 5px var(--field); }
.dc-card:hover .dc-chain-node { transform: scale(1.18); }
.dc-chain .dc-ring {
  inset: -7px;
  box-shadow: 0 0 0 1.5px rgba(204,156,79,0.9), 0 0 16px 2px rgba(204,156,79,0.45);
}
.dc-chain .dc-dot {
  background: var(--gold-bright);
  box-shadow: 0 0 10px 2px rgba(204,156,79,0.6), 0 0 2px rgba(255,255,255,0.95);
}

/* Side by side, the cards share row lines, so each card's title, school
   and blocks start at the same height as its neighbours'. */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 980px) {
    .dc-cards { grid-template-rows: repeat(5, auto); row-gap: 0; }
    .dc-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
  }
}

.dc-card-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dc-card-k {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2);
}
.dc-card-k b { color: var(--gold-deep); font-weight: 500; margin-right: 8px; }
.dc-card-t {
  font-family: var(--display);
  font-variation-settings: "opsz" 48, "SOFT" 40, "wght" 430;
  font-weight: 430; font-size: clamp(21px, 1.75vw, 25.5px); line-height: 1.14;
  letter-spacing: -0.015em; color: var(--ink);
  margin: 20px 0 6px;
  text-wrap: balance;
}
.dc-card-org {
  font-family: var(--sans); font-size: 14px; line-height: 1.4;
  color: var(--ink-3);
}
.dc-card-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.dc-card-l {
  display: block; margin-bottom: 10px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-4);
}
.dc-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dc-tags li {
  font-family: var(--sans); font-size: 12.5px; line-height: 1;
  padding: 7px 10px 8px; border-radius: var(--r-pill);
  background: var(--bg-sunken); color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.dc-card-now {
  font-family: var(--sans); font-size: 14.5px; line-height: 1.55;
  color: var(--ink-2);
}

/* ---- What adds the most value ---- */
.dc-wanted {
  margin-top: clamp(28px, 3.4vw, 40px);
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  gap: 18px clamp(28px, 4vw, 64px);
  padding: 26px 28px 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(204,156,79,0.09) 0%, rgba(204,156,79,0.03) 100%);
  box-shadow: inset 0 0 0 1px rgba(204,156,79,0.26);
}
.dc-wanted-k {
  display: block;
  font-family: var(--mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-deep);
}
.dc-wanted-note {
  margin-top: 10px;
  font-family: var(--sans); font-size: 14px; line-height: 1.5;
  color: var(--ink-3);
}
.dc-wanted-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px;
}
.dc-wanted-list li {
  display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: baseline;
  padding: 11px 0;
  border-top: 1px solid rgba(156,122,48,0.2);
  font-family: var(--display);
  font-variation-settings: "opsz" 36, "SOFT" 40, "wght" 420;
  font-size: 17px; line-height: 1.32; letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
}
.dc-wanted-list li:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.dc-wanted-list b {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; color: var(--gold-deep);
}

/* ============================ HOW ============================ */
.dc-how { padding: clamp(80px, 10vh, 120px) 0 clamp(96px, 11vh, 128px); }
.dc-how-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: start;
}
.dc-how .h-1 { max-width: 14ch; }
.dc-how .lead { max-width: 50ch; }

/* The method, five rows on hairlines. */
.dc-pipe { list-style: none; margin: 36px 0 0; padding: 0; }
.dc-pipe-step {
  display: grid; grid-template-columns: 112px minmax(0, 1fr);
  column-gap: 18px; row-gap: 3px;
  padding: 15px 0 16px;
  border-top: 1px solid var(--line-2);
}
.dc-pipe-step:last-child { border-bottom: 1px solid var(--line-2); }
.dc-pipe-k {
  grid-row: 1 / span 2;
  font-family: var(--mono); font-size: 10.5px; line-height: 1.9;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
}
.dc-pipe-k b { color: var(--gold-deep); font-weight: 500; margin-right: 8px; }
.dc-pipe-t {
  font-family: var(--display);
  font-variation-settings: "opsz" 36, "SOFT" 40, "wght" 450;
  font-weight: 450; font-size: 18px; line-height: 1.3;
  letter-spacing: -0.01em; color: var(--ink);
}
.dc-pipe-d {
  font-family: var(--sans); font-size: 14.5px; line-height: 1.5;
  color: var(--ink-2);
}

/* ---- The record card: what every record holds, then the fields to come ---- */
/* The #record anchor sits on this still wrapper, so a jump lands on the
   card's final position rather than wherever it is mid-rise. */
.dc-record-anchor { min-width: 0; }
@media (min-width: 980px) {
  /* biodata.js writes --rec-h; a card taller than the screen sticks by its
     bottom edge so none of it is cut off. */
  .dc-how .dc-record-anchor {
    position: sticky;
    top: 104px;
    top: min(104px, calc(100vh - var(--rec-h, 0px) - 24px));
    top: min(104px, calc(100dvh - var(--rec-h, 0px) - 24px));
  }
}
.dc-record {
  position: relative; overflow: hidden;
  margin: 0;
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 34px);
  background:
    radial-gradient(110% 80% at 100% 0%, rgba(39,69,214,0.24) 0%, transparent 58%),
    linear-gradient(180deg, #0f1f44 0%, #08132a 100%);
  color: #f3f2ee;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.09),
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 2px 4px rgba(8,19,42,0.12),
    0 24px 48px -18px rgba(8,19,42,0.5),
    0 60px 100px -40px rgba(8,19,42,0.5);
}
.dc-record-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dc-record-kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold);
}
.dc-record-kicker::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px rgba(204,156,79,0.8);
}
.dc-record-tag {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--r-pill);
  color: rgba(243,242,238,0.72);
  box-shadow: inset 0 0 0 1px rgba(243,242,238,0.18);
  white-space: nowrap;
}
.dc-record-title {
  font-family: var(--display);
  font-variation-settings: "opsz" 48, "SOFT" 40, "wght" 420;
  font-size: clamp(20px, 1.9vw, 25px); line-height: 1.15;
  letter-spacing: -0.015em;
  margin-top: 18px;
}
.dc-record-sub {
  font-family: var(--sans); font-size: 13px; line-height: 1.45;
  color: rgba(243,242,238,0.55);
  margin-top: 6px;
}
.dc-fields { margin: 18px 0 0; padding: 0; }
.dc-field {
  display: grid; grid-template-columns: 172px minmax(0, 1fr); column-gap: 16px;
  align-items: baseline;
  padding: 8px 0;
  border-top: 1px solid rgba(243,242,238,0.07);
}
.dc-field dt {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.5;
  color: rgba(224,180,97,0.88);
}
.dc-field dd {
  margin: 0;
  font-family: var(--sans); font-size: 14px; line-height: 1.45;
  color: rgba(243,242,238,0.78);
}

.dc-record-split {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px dashed rgba(224,180,97,0.45);
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
}
.dc-record-split-note { color: rgba(243,242,238,0.45); letter-spacing: 0.12em; }
.dc-fields-next { margin-top: 6px; }
.dc-fields-next .dc-field dt { color: rgba(243,242,238,0.5); }
.dc-ghost {
  position: relative; overflow: hidden;
  display: block; height: 8px; margin-top: 6px;
  width: var(--w, 50%); border-radius: var(--r-pill);
  background: rgba(224,180,97,0.12);
}
/* The shimmer is a moving layer (transform), not a moving background, so it
   runs on the compositor instead of repainting every frame. */
.dc-ghost::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(224,180,97,0) 0%, rgba(224,180,97,0.36) 50%, rgba(224,180,97,0) 100%);
  transform: translateX(-100%);
  animation: dc-shimmer 2.6s linear infinite;
  animation-play-state: paused;
}
/* Ambient loops only run while their block is on screen (.dc-live, set
   by the JS), so nothing keeps painting where nobody can see it. */
.dc-record.dc-live .dc-ghost::after { animation-play-state: running; }
@keyframes dc-shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}
.dc-field dd.dc-planned {
  font-family: var(--mono); font-size: 12.5px;
  color: rgba(224,180,97,0.92);
}
.dc-record figcaption {
  margin-top: 16px;
  font-family: var(--sans); font-size: 12.5px; line-height: 1.5;
  color: rgba(243,242,238,0.5);
}

/* The card rises once (rain.js .reveal); its rows then fill in place, top
   to bottom, without a second slide. */
.dc-record .dc-field,
.dc-record .dc-record-split {
  opacity: 0;
  transition: opacity 0.5s ease calc(var(--i, 0) * 40ms + 0.25s);
}
.dc-record.is-in .dc-field,
.dc-record.is-in .dc-record-split { opacity: 1; }

/* ============================ PRINCIPLES ============================ */
.dc-principles { padding: clamp(80px, 10vh, 120px) 0 clamp(96px, 11vh, 128px); }
.dc-prin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: start;
}
.dc-principles .h-1 { max-width: 13ch; }
.dc-prin {
  list-style: none; margin: 36px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}
.dc-prin li {
  display: grid; grid-template-columns: 30px minmax(0, 1fr);
  align-content: start;
  padding: 17px 0 19px;
  border-top: 1px solid var(--line-2);
}
.dc-prin-n {
  grid-row: 1 / span 2;
  font-family: var(--mono); font-size: 11px; line-height: 1.75;
  letter-spacing: 0.08em; color: var(--gold-deep);
}
.dc-prin-t {
  font-family: var(--display);
  font-variation-settings: "opsz" 36, "SOFT" 40, "wght" 460;
  font-weight: 460; font-size: 19px; line-height: 1.25;
  letter-spacing: -0.01em; color: var(--ink);
}
.dc-prin-d {
  margin-top: 5px;
  font-family: var(--sans); font-size: 14.5px; line-height: 1.5;
  color: var(--ink-2);
}

/* ---- Rollout: a vertical track beside the principles ---- */
.dc-rollout {
  padding: 26px 26px 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, #ffffff 0%, #f6f4ef 100%);
  box-shadow: var(--shadow-card);
}
.dc-rollout-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 18px;
  border-bottom: 1px solid var(--line-2);
}
.dc-rollout-k {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-deep);
}
.dc-rollout-note {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-4);
}
.dc-steps { list-style: none; margin: 0; padding: 0; }
.dc-step {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 14px; row-gap: 3px; align-items: baseline;
  padding: 0 0 20px 34px;
}
.dc-step:last-child { padding-bottom: 0; }
.dc-step-dot {
  position: absolute; top: 1px; left: 0; z-index: 1;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-elev);
  box-shadow: inset 0 0 0 2px var(--ink-4);
}
/* Connector down to the next step: solid gold through the finished steps,
   dashed for what is ahead. The JS draws the track top to bottom once it
   is on screen (.is-drawn); the card it sits in has already risen, so the
   track itself never slides. */
.dc-step::before {
  content: ''; position: absolute; left: 6px; top: 20px; bottom: 4px; width: 2px;
  background: repeating-linear-gradient(180deg, var(--line-2) 0 5px, transparent 5px 10px);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.dc-step:last-child::before { display: none; }
.dc-rollout.is-drawn .dc-step::before { transform: scaleY(1); }
.dc-rollout.is-drawn .dc-step:nth-child(1)::before { transition-delay: 0.15s; }
.dc-rollout.is-drawn .dc-step:nth-child(2)::before { transition-delay: 0.4s; }
.dc-rollout.is-drawn .dc-step:nth-child(3)::before { transition-delay: 0.65s; }
.dc-rollout.is-drawn .dc-step:nth-child(4)::before { transition-delay: 0.9s; }

.dc-step.is-done .dc-step-dot {
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(204,156,79,0.2), 0 0 12px rgba(204,156,79,0.5);
}
.dc-step.is-done::before { background: linear-gradient(180deg, var(--gold), rgba(204,156,79,0.55)); }
.dc-step.is-next .dc-step-dot { box-shadow: inset 0 0 0 2px var(--gold); }
/* The one "we are here" signal on the track, on the site's 2.6s pulse beat. */
.dc-step.is-next .dc-step-dot::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(204,156,79,0.55);
  opacity: 0;
}
.dc-rollout.is-drawn .dc-step.is-next .dc-step-dot::after {
  animation: dc-ping 2.6s cubic-bezier(0.22, 1, 0.36, 1) 0.9s infinite;
  animation-play-state: paused;
}
.dc-rollout.is-drawn.dc-live .dc-step.is-next .dc-step-dot::after { animation-play-state: running; }
@keyframes dc-ping {
  0%   { transform: scale(0.7); opacity: 0.9; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}
.dc-step-when {
  grid-column: 1; grid-row: 1;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.dc-step-what {
  grid-column: 1 / -1; grid-row: 2;
  font-family: var(--display);
  font-variation-settings: "opsz" 36, "SOFT" 40, "wght" 450;
  font-weight: 450; font-size: 17.5px; line-height: 1.3;
  letter-spacing: -0.01em; color: var(--ink);
  text-wrap: pretty;
}
.dc-step-state {
  grid-column: 2; grid-row: 1;
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 3px 8px; border-radius: var(--r-pill);
  background: var(--bg-sunken); color: var(--ink-3);
  white-space: nowrap;
}
.dc-step.is-done .dc-step-state { background: rgba(204,156,79,0.16); color: var(--gold-deep); }
.dc-step.is-next .dc-step-state { background: rgba(39,69,214,0.09); color: var(--accent); }

/* ============================ GET INVOLVED ============================ */
/* clip, not hidden: the footer still clips its glow, but stops being a
   scroll container, so a jump to #involved keeps its scroll margin. */
.dc-page .footer { overflow: clip; }
.dc-footer .footer-cta {
  padding: clamp(84px, 11vh, 124px) 0 clamp(64px, 9vh, 96px);
}
/* Same content edge as .container in the sections above. */
.dc-footer .footer-cta-inner { padding: 0 var(--pad-x); }
.dc-ask-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(40px, 5vw, 88px);
  align-items: start;
}
.dc-ask .h-1 { max-width: 15ch; margin: 0 0 22px; }
.dc-ask .eyebrow { margin-bottom: 24px; color: var(--gold); }
.dc-ask .eyebrow::before { background: var(--gold); box-shadow: 0 0 10px rgba(204,156,79,0.75), 0 0 4px rgba(204,156,79,1); }
.dc-ask .lead { margin: 0 0 30px; max-width: 46ch; }
.dc-mail {
  margin-top: 16px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
  color: rgba(246,243,236,0.5);
}
.dc-mail a { color: var(--gold); transition: color 0.3s; }
.dc-mail a:hover { color: var(--gold-bright); }

.dc-people { margin-top: 38px; }
.dc-people-k,
.dc-network-k {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
}
.dc-people ul { list-style: none; margin: 12px 0 0; padding: 0; }
.dc-people li {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline;
  gap: 4px 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(246,243,236,0.1);
}
.dc-people li:last-child { border-bottom: 1px solid rgba(246,243,236,0.1); }
.dc-people .nm { font-family: var(--sans); font-size: 15px; font-weight: 600; color: #f6f3ec; }
.dc-people .ro { font-family: var(--sans); font-size: 13.5px; color: rgba(246,243,236,0.55); margin-left: auto; text-align: right; }

/* Three ways in. The link inside each card stretches over the whole card. */
.dc-doors { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.dc-door {
  position: relative;
  padding: 22px 24px 22px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255,255,255,0.065) 0%, rgba(255,255,255,0.025) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 0 0 1px rgba(255,255,255,0.07),
    0 18px 40px -26px rgba(0,0,0,0.7);
}
/* The hover ring lives on a pseudo-element: the card itself carries the
   staggered reveal delay from rain.js, which would otherwise lag the hover. */
.dc-door::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(204,156,79,0.4), 0 0 32px -10px rgba(204,156,79,0.3);
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.dc-door:hover::after, .dc-door:focus-within::after { opacity: 1; }
.dc-door-k {
  display: block;
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
}
.dc-door-k b { color: rgba(246,243,236,0.42); font-weight: 500; margin-right: 8px; }
.dc-door-t {
  margin-top: 10px;
  font-family: var(--display);
  font-variation-settings: "opsz" 36, "SOFT" 40, "wght" 400;
  font-size: clamp(19px, 1.5vw, 21px); line-height: 1.25;
  letter-spacing: -0.01em; color: #f6f3ec;
  text-wrap: balance;
}
.dc-door-d {
  margin-top: 6px; max-width: 56ch;
  font-family: var(--sans); font-size: 14.5px; line-height: 1.5;
  color: rgba(246,243,236,0.62);
}
.dc-door-a {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  color: var(--gold);
  transition: color 0.3s;
  outline: none;
}
.dc-door-a::before { content: ''; position: absolute; inset: 0; border-radius: var(--r-md); }
.dc-door-a:focus-visible::before { box-shadow: 0 0 0 2px var(--gold); }
.dc-door-a .arr { transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.dc-door:hover .dc-door-a { color: var(--gold-bright); }
.dc-door:hover .dc-door-a .arr { transform: translateX(4px); }

.dc-network {
  margin-top: 24px;
  padding: 22px 24px 24px;
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px rgba(204,156,79,0.22);
  background: linear-gradient(180deg, rgba(204,156,79,0.07) 0%, rgba(204,156,79,0.02) 100%);
}
.dc-network-stats { display: flex; gap: 10px 30px; flex-wrap: wrap; margin-top: 14px; }
.dc-network-stats span {
  display: inline-flex; align-items: baseline; gap: 7px;
  font-family: var(--sans); font-size: 14px; color: rgba(246,243,236,0.6);
}
.dc-network-stats b {
  font-family: var(--display);
  font-variation-settings: "opsz" 72, "SOFT" 40, "wght" 400;
  font-weight: 400; font-size: 30px; letter-spacing: -0.02em; line-height: 1;
  color: #f6f3ec;
}
.dc-network p {
  margin-top: 14px; max-width: 52ch;
  font-family: var(--sans); font-size: 14px; line-height: 1.5;
  color: rgba(246,243,236,0.58);
}

/* ============================ RESPONSIVE ============================ */
/* Laptop screens around 800px tall: tighten the hero just enough that it
   still fits, so it keeps the pin. */
@media (min-width: 1100px) and (max-height: 900px) {
  .dc-hero { padding: 108px 0 52px; }
  .dc-flow { padding: 18px 20px 18px; }
  .dc-flow-head { margin-bottom: 8px; }
  .dc-flow-list { --gap: 6px; }
  .dc-stage { padding-top: 7px; padding-bottom: 7px; }
  .dc-stage:not(:last-of-type)::after { top: calc(7px + var(--node)); }
  .dc-status { margin-top: 26px; }
}
/* 720 to 800px tall laptops: the RAIN lockup costs about 40px, so win it
   back here and the hero still pins. */
@media (min-width: 1100px) and (max-height: 800px) {
  .dc-hero { padding: 100px 0 44px; }
  .dc-host { gap: 16px; }
  .dc-host-seal { width: 52px; height: 52px; }
  .dc-host-text { gap: 7px; }
  .dc-host-name { font-size: 33px; }
  .dc-host-full { font-size: 20px; }
  .dc-hero .h-display.mt-6 { margin-top: 18px; }
  .dc-hero .lead-lg.mt-6 { margin-top: 20px; }
  .dc-hero .hero-cta-row { margin-top: 26px; }
  .dc-status { margin-top: 20px; }
}
@media (max-width: 1099px) {
  .dc-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .dc-hero .h-display { max-width: 15ch; }
  .dc-flow { max-width: 660px; }
}
@media (max-width: 1199px) and (min-width: 980px) {
  .dc-card { padding: 22px 20px 24px; }
  .dc-card-now { font-size: 14px; }
}
@media (max-width: 979px) {
  .dc-how-grid,
  .dc-prin-grid,
  .dc-ask-grid { grid-template-columns: minmax(0, 1fr); }
  .dc-record-anchor, .dc-rollout { max-width: 660px; }

  /* The rail moves to a gutter on the left and the cards stack. */
  .dc-chain { --gutter: 34px; --gap: 16px; padding-top: 0; padding-left: var(--gutter); }
  .dc-cards { grid-template-columns: minmax(0, 1fr); }
  .dc-chain-node {
    left: calc(var(--gutter) / -2 - var(--node) / 2);
    top: calc(24px + 10px - var(--node) / 2);
  }
  .dc-chain-node::before {
    left: calc(100% + 5px); top: calc(50% - 0.5px);
    width: calc(var(--gutter) / 2 - var(--node) / 2 - 5px); height: 1px;
    background: linear-gradient(90deg, rgba(204,156,79,0.45), rgba(204,156,79,0));
  }
  .dc-wanted { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .dc-hero { padding: 112px 0 64px; }
  .dc-hero .h-display { font-size: clamp(34px, 9.6vw, 46px); line-height: 1.04; max-width: none; }
  .dc-host { gap: 14px; align-items: flex-start; }
  .dc-host-seal { width: 56px; height: 56px; }
  .dc-host-text { gap: 8px; }
  .dc-host-name { flex-direction: column; align-items: flex-start; font-size: 32px; }
  .dc-host-full { margin-left: 0; padding-left: 0; border-left: 0; font-size: 18px; line-height: 1.1; }
  .dc-host-sub { font-size: 10.5px; letter-spacing: 0.16em; }
  .dc-host-at { display: none; }
  .dc-status .event { font-size: 13.5px; }
  .dc-flow { padding: 16px 14px 16px; border-radius: var(--r-md); }
  .dc-flow-meta { display: none; }
  .dc-flow-list { --gap: 6px; }
  .dc-stage { column-gap: 12px; padding: 9px 8px 9px 6px; }
  .dc-stage:not(:last-of-type)::after { left: calc(6px + var(--node) / 2 - 0.5px); top: calc(9px + var(--node)); }
  .dc-stage-k { letter-spacing: 0.12em; }
  .dc-stage-k .dc-chip { font-size: 9px; letter-spacing: 0.08em; padding: 4px 7px 5px; }
  .dc-stage-t { font-size: 17px; }

  .dc-chain { --gutter: 26px; }
  .dc-card { padding: 20px 18px 22px; border-radius: var(--r-md); }
  .dc-chain-node { top: calc(20px + 10px - var(--node) / 2); }
  .dc-card-t { margin-top: 16px; }
  .dc-card-k { font-size: 10.5px; letter-spacing: 0.12em; }
  .dc-card-top .dc-chip { font-size: 9px; letter-spacing: 0.08em; padding: 4px 7px 5px; }
  .dc-wanted { padding: 20px 18px 22px; border-radius: var(--r-md); }
  .dc-wanted-list { grid-template-columns: minmax(0, 1fr); }
  .dc-wanted-list li:nth-child(2) { border-top: 1px solid rgba(156,122,48,0.2); padding-top: 11px; }
  .dc-wanted-list li { font-size: 16px; }

  .dc-pipe-step { grid-template-columns: minmax(0, 1fr); }
  .dc-pipe-k { grid-row: auto; margin-bottom: 2px; }
  .dc-prin { grid-template-columns: minmax(0, 1fr); }
  .dc-rollout { padding: 20px 18px 22px; border-radius: var(--r-md); }

  .dc-field { grid-template-columns: minmax(0, 1fr); row-gap: 2px; padding: 9px 0; }
  .dc-record-head { flex-wrap: wrap; }
  .dc-record-split { flex-direction: column; align-items: flex-start; gap: 4px; }

  .dc-hide-sm { display: none; }
  .dc-door { padding: 18px 18px 20px; }
  .dc-people li { flex-direction: column; gap: 2px; }
  .dc-people .ro { margin-left: 0; text-align: left; }
  .dc-network { padding: 18px 18px 20px; }
  .dc-network-stats { gap: 8px 18px; }
  .dc-network-stats b { font-size: 25px; }
  .dc-network-stats span { font-size: 13px; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html.dc-smooth { scroll-behavior: auto; }
  .dc-flow, .dc-stage,
  .dc-record .dc-field, .dc-record .dc-record-split {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .dc-stage::after, .dc-step::before, .dc-chain-track { transform: none !important; transition: none !important; }
  .dc-ghost::after { animation: none; }
  .dc-rollout.is-drawn .dc-step.is-next .dc-step-dot::after { animation: none; }
  .dc-card.is-flash::after { animation: none; }
}
