/* CreditMarkit — marketing site
   Editorial and spatial: a display serif over a geometric sans, a cool paper-to-ink
   grayscale, soft rounded cards, and isometric illustrations (site/art/, generated by
   scripts/site-art/build-art.mjs) carrying the visual weight. Colour is held back for
   meaning: green passes and the closing call to action, amber flags, blue for focus. */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Figtree:wght@400;500;600&family=Gilda+Display&display=swap');

:root {
  --paper: #F9F9FB;
  --card: #FFFFFF;
  --ink: #2E2E38;
  --ink-2: #5F5F75;      /* prose, nav — 5.9:1 on paper */
  --ink-3: #9494A8;      /* decoration and large display text only */
  --line: #E3E3E8;
  --line-strong: #CFCFD7;
  --wash: #F1F1F4;
  --night: #111111;
  --night-2: #1B1B20;
  --night-line: #2C2C34;
  --night-text: #F9F9FB;
  --night-muted: #A9A9BA;
  --blue: #2A679C;
  --blue-deep: #1D4D77;
  --green-deep: #1B5434;
  --green: #2E7D4F;
  --green-soft: #E3F1E8;
  --amber: #9A6420;
  --amber-soft: #F8EBD7;

  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 3px rgba(17, 17, 24, 0.08), 0 1px 2px rgba(17, 17, 24, 0.04);
  --shadow-lift: 0 24px 60px -24px rgba(17, 17, 24, 0.28), 0 2px 6px rgba(17, 17, 24, 0.06);

  --display: "Gilda Display", Georgia, "Times New Roman", serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
p { margin: 0; }
img { max-width: 100%; height: auto; }
figure { margin: 0; }

h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
h1, h2 { font-family: var(--display); letter-spacing: -0.035em; }
h1 .soft, h2 .soft { color: var(--ink-3); }
h2 em, h1 em { font-style: normal; color: var(--ink-3); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 40px; }

/* ---------- shared furniture ---------- */

.eyebrow {
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink);
}

.label {
  font: 500 10.5px/1.4 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.num { font-variant-numeric: tabular-nums; }

.section { padding: 128px 0; }

.section-head { max-width: 760px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1.04; }
.section-head p.lead,
.lead {
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 620px;
}

/* the circle-arrow glyph used on every action */
.arrow {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 12h8M12 8l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M8 12h8M12 8l4 4-4 4'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 200ms var(--ease);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  min-height: 46px;
  font: 500 15px/1 var(--sans);
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: transform 160ms var(--ease), background-color 160ms ease, box-shadow 160ms ease;
}
.button.primary, .button.dark { background: var(--ink); color: var(--paper); }
.button.light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.button:hover { box-shadow: var(--shadow-lift); }
.button:hover .arrow, .header-action:hover .arrow, .ledger-link:hover .arrow { transform: translateX(3px); }
.button:active { transform: scale(0.98); }
.button span { font-size: 16px; }

.text-link {
  font: 500 15px/1 var(--sans);
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 4px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: border-color 160ms ease;
}
.text-link:hover { border-bottom-color: var(--ink); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--card);
}

/* ---------- announcement + header ---------- */

.announce {
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 9px 16px;
  font-size: 13px;
}
.announce p { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.announce b { font-weight: 600; }
.announce span { color: #C9C9D6; }
.announce a {
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 40px;
  font-size: 14px;
  background: rgba(249, 249, 251, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
          backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
}

.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }

.brand-mark {
  width: 28px;
  height: 28px;
  background: url("logo.svg") center/contain no-repeat;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 28px;
}

.site-header nav { display: flex; align-items: center; gap: 30px; color: var(--ink-2); }
.site-header nav > a, .nav-trigger { transition: color 140ms ease; }
.site-header nav > a:hover, .site-header nav > a.active, .nav-trigger:hover, .nav-trigger.active { color: var(--ink); }
.site-header nav > a.active, .nav-trigger.active { font-weight: 600; }

/* Customers menu: a full-width panel under the header. It opens on hover and keyboard focus
   without JS; nav.js adds click/tap, Escape and aria-expanded. */
.nav-menu { position: static; }
.nav-trigger {
  padding: 6px 10px;
  margin: 0 -10px;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease;
}
.nav-menu:hover .nav-trigger, .nav-menu:focus-within .nav-trigger, .nav-menu.open .nav-trigger { color: var(--ink); background: var(--wash); }
.nav-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  padding: 28px 40px 36px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -28px rgba(17, 17, 24, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms var(--ease), visibility 0s linear 160ms;
}
/* Bridges the space between the trigger and the panel so the hover does not drop on the way down. */
.nav-panel::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 26px; }
.nav-menu:hover .nav-panel, .nav-menu:focus-within .nav-panel, .nav-menu.open .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 160ms ease, transform 160ms var(--ease), visibility 0s;
}
.nav-panel-label { margin: 0 0 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--ink-2); }
.nav-panel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 290px)); gap: 8px 32px; }
.nav-panel-grid a {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
  margin: 0 -12px;
  padding: 12px;
  border-radius: 12px;
  transition: background 140ms ease;
}
.nav-panel-grid a:hover, .nav-panel-grid a:focus-visible, .nav-panel-grid a.active { background: var(--wash); }
.nav-icon {
  grid-row: span 2;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  padding: 9px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.nav-panel-grid b { font-size: 15px; font-weight: 500; color: var(--ink); }
.nav-panel-grid small { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }

@media (max-width: 1100px) {
  .nav-panel-grid { grid-template-columns: repeat(2, minmax(0, 290px)); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-panel { transition: none !important; }
}


.header-action {
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  padding: 0 16px;
  min-height: 40px;
  font-weight: 500;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.header-action span { font-size: 15px; }

/* ---------- hero ---------- */

.hero { padding: 72px 0 40px; overflow: hidden; }

.hero .wrap:first-child {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.hero h1 { font-size: clamp(52px, 6.4vw, 96px); line-height: 0.98; }

.hero-text {
  margin: 28px 0 34px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 520px;
}

.hero-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }

.hero-art { position: relative; margin-right: -40px; }
.hero-art img { display: block; width: 100%; }

.hero-note {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.hero-note div {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}
.hero-note b { display: block; font: 500 11px/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-bottom: 6px; }
.hero-note span { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }

/* ---------- showcase: the run, floated over a drafting grid ---------- */

.showcase { padding: 40px 0 0; }

.stage {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 72px 6% 64px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(42, 103, 156, 0.12), transparent 60%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--wash);
  overflow: hidden;
}
.stage::after {
  /* fade the grid out toward the bottom edge */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(transparent, var(--wash));
  pointer-events: none;
}

.stage-tag {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  padding: 6px 12px;
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 1;
}

.run-panel {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  min-width: 0;
  overflow: hidden;
}

.run-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.run-dots { display: inline-flex; gap: 6px; }
.run-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.run-head .run-badge { margin-left: auto; }

.run-badge {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--ink-2);
  letter-spacing: 0.1em;
}

.run-stages { list-style: none; margin: 0; padding: 6px 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }

.run-stages li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 18px 20px;
}
.run-stages li + li { border-left: 1px solid var(--line); }
.run-stages li::before {
  /* the progress rail: filled for complete stages */
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
}
.run-stages li:has(.run-state:not(.pending):not(.hold))::before { background: var(--green); }
.run-stages li:has(.pending)::before { background: linear-gradient(90deg, #C98A33 55%, var(--line) 55%); }

.run-stages .run-code { font: 500 11px/1.5 var(--mono); color: var(--ink-3); }
.run-stages b { font: 500 16px/1.3 var(--sans); display: block; }
.run-stages p { font-size: 13px; color: var(--ink-2); line-height: 1.45; margin-top: 4px; }

.run-state {
  align-self: flex-start;
  margin-top: auto;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 5px 9px;
  white-space: nowrap;
}
.run-state.pending { color: var(--amber); background: var(--amber-soft); }
.run-state.hold { color: var(--ink-2); background: var(--wash); }

.run-grid { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.run-grid > div { padding: 20px 22px; min-width: 0; }
.run-grid > div + div { border-left: 1px solid var(--line); }

.run-checks, .run-artifacts { margin-top: 10px; }
.run-checks p {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.run-checks p:last-child, .run-artifacts p:last-child { border-bottom: 0; }
.run-checks i {
  font-style: normal;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font: 600 10px/1 var(--sans);
}
.run-checks i.watch { background: var(--amber-soft); color: var(--amber); }
.run-checks span { color: var(--ink-2); font: 400 11px/1 var(--mono); margin-left: auto; }

.run-artifacts p {
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.run-artifacts em { font-style: normal; font: 400 11px/1.6 var(--mono); color: var(--ink-2); }

.run-foot { padding: 13px 22px; font: 400 11px/1.5 var(--mono); color: var(--ink-2); background: var(--paper); }

/* ---------- facts ---------- */

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 56px; }
.facts div { padding: 4px 32px; border-left: 1px solid var(--line-strong); }
.facts div:first-child { border-left: 0; padding-left: 0; }
.facts b { display: block; font: 400 clamp(26px, 2.6vw, 36px)/1.1 var(--display); letter-spacing: -0.03em; margin-bottom: 10px; }
.facts span { font-size: 14.5px; color: var(--ink-2); }

/* ---------- traceability: art card + statement card ---------- */

.pair { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 20px; }

.art-card {
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), transparent 55%),
    linear-gradient(160deg, #E6EEF6, #D9E4EF 60%, #CFDCEA);
}
.art-card img { width: 100%; display: block; }

.statement-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(32px, 6vw, 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.statement-card h2 { font-size: clamp(38px, 4.4vw, 58px); line-height: 1.08; }
.statement-card .lead { margin-bottom: 32px; }

.trace {
  margin-top: 20px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.trace-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.trace-row {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 120px minmax(0, 1.1fr) 190px;
  gap: 22px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: 15px;
  transition: background-color 140ms ease;
}
.trace-row:not(.head):hover { background: var(--paper); }
.trace-row.head {
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding: 12px 24px;
  background: var(--paper);
}

.trace-row .value { font: 400 22px/1.2 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.trace-row .source { font: 400 12px/1.5 var(--mono); color: var(--ink-2); }
.trace-row .check {
  justify-self: start;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 6px 10px;
}
.trace-row .check.flag { color: var(--amber); background: var(--amber-soft); }

.trace-foot { padding: 14px 24px; background: var(--paper); font: 400 11px/1.55 var(--mono); color: var(--ink-2); }

/* ---------- spec table (signup: what the waitlist stores) ---------- */

.spec {
  margin-top: 48px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.spec-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.4fr) minmax(0, 0.6fr) minmax(0, 1fr);
  gap: 24px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.spec-row:last-child { border-bottom: 0; }
.spec-row.head {
  padding: 12px 24px;
  background: var(--paper);
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.spec-row .spec-code { font: 500 11px/1.8 var(--mono); color: var(--ink-3); }
.spec-row h3 { font: 400 22px/1.2 var(--display); letter-spacing: -0.02em; }
.spec-row p { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; margin-top: 6px; }
.spec-emit { font: 400 12.5px/1.7 var(--mono); color: var(--ink); }
.spec-emit span { display: block; color: var(--ink-2); }

/* ---------- the four layers: accordion + exploded stack ---------- */

.layers-body {
  margin-top: 64px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
}

.layer-list details { border-bottom: 1px solid var(--line); }
.layer-list details:first-child { border-top: 1px solid var(--line); }
.layer-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 18px 0;
  font: 400 26px/1.2 var(--display);
  letter-spacing: -0.02em;
  color: var(--ink-3);
  transition: color 160ms ease;
}
.layer-list summary::-webkit-details-marker { display: none; }
.layer-list summary:hover, .layer-list details[open] summary { color: var(--ink); }
.layer-list .spec-code { font: 500 11px/1 var(--mono); letter-spacing: 0.1em; color: var(--ink-3); position: relative; top: -3px; }
.layer-list details[open] .spec-code { color: var(--paper); background: var(--ink); border-radius: 999px; padding: 5px 8px; }
.layer-detail { padding: 0 0 22px; }
.layer-detail > p { font-size: 16px; color: var(--ink-2); max-width: 46ch; }
.layer-detail dl { margin: 16px 0 0; display: grid; gap: 10px; }
.layer-detail dl div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; }
.layer-detail dt { font: 500 10.5px/1.8 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.layer-detail dd { margin: 0; font-size: 14.5px; line-height: 1.5; }
.layer-list .button { margin-top: 32px; }

.stack {
  position: relative;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 50% 60%, #FFFFFF, transparent 70%),
    var(--wash);
  padding: 32px 20%;
}
.stack img { display: block; width: 100%; }
.stack .plate {
  position: absolute;
  top: 32px;
  left: 20%;
  width: 60%;
  transition: transform 520ms var(--ease), opacity 420ms ease, filter 420ms ease;
}

/* the open layer lifts; every plate above it ghosts so the open one can be seen */
.layers:has(details[data-layer="1"][open]) .p1,
.layers:has(details[data-layer="2"][open]) .p2,
.layers:has(details[data-layer="3"][open]) .p3,
.layers:has(details[data-layer="4"][open]) .p4 { transform: translateY(-14px); filter: drop-shadow(0 18px 18px rgba(17, 17, 24, 0.18)); }

.layers:has(details[data-layer="1"][open]) :is(.p2, .p3, .p4),
.layers:has(details[data-layer="2"][open]) :is(.p3, .p4),
.layers:has(details[data-layer="3"][open]) .p4 { opacity: 0.14; transform: translateY(-36px); }

/* ---------- marketplace: the dark band ---------- */

.section.dark { background: var(--night); color: var(--night-text); }
.dark .eyebrow { color: var(--night-muted); }
.dark .eyebrow::before { background: var(--night-text); }
.dark .section-head .soft { color: #6E6E80; }
.dark .lead { color: var(--night-muted); }

.ledger {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ledger-col {
  border-radius: var(--radius);
  background: var(--night-2);
  border: 1px solid var(--night-line);
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  transition: transform 260ms var(--ease), border-color 260ms ease;
}
.ledger-col:hover { transform: translateY(-4px); border-color: #45454F; }

.ledger-art {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  padding: 20px 26px;
  background:
    radial-gradient(ellipse at 50% 70%, rgba(249, 249, 251, 0.12), transparent 62%),
    linear-gradient(180deg, #24242B, #18181D);
}
.ledger-col.mid .ledger-art {
  background:
    radial-gradient(ellipse at 50% 65%, rgba(42, 103, 156, 0.5), transparent 62%),
    linear-gradient(180deg, #1A2633, #14181E);
}
.ledger-art img { position: absolute; inset: 18px 24px; width: calc(100% - 48px); height: calc(100% - 36px); object-fit: contain; transition: transform 500ms var(--ease); }
.ledger-col:hover .ledger-art img { transform: scale(1.04) translateY(-4px); }

.ledger-text { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.ledger-text > .label {
  align-self: flex-start;
  color: var(--night-muted);
  border: 1px solid var(--night-line);
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 16px;
}
.ledger-col h3 { font: 400 28px/1.15 var(--display); letter-spacing: -0.02em; }
.ledger-col ul { list-style: none; margin: 18px 0 0; padding: 0; }
.ledger-col li {
  font-size: 14.5px;
  line-height: 1.5;
  padding: 10px 0;
  border-top: 1px solid var(--night-line);
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: #D9D9E3;
}
.ledger-col li i { font-style: normal; font: 500 10.5px/1.6 var(--mono); color: var(--night-muted); flex: 0 0 auto; }
/* the notes and links sit on one line across all three cards: `margin-top: auto` pins them */
.ledger-col .ledger-note { margin-top: auto; padding-top: 20px; font: 400 11.5px/1.55 var(--mono); color: var(--night-muted); }
.ledger-link {
  margin-top: 18px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  background: var(--night-text);
  color: var(--night);
  border-radius: 999px;
  padding: 8px 14px;
}

/* ---------- who it's for: an interactive flow graphic.
   State lives in a radio group (which side), so the interaction is CSS via :has(). ---------- */

.flow { margin-top: 48px; }

.flow-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 6px;
  background: var(--wash);
  border-radius: 999px;
}
.flow-tab { position: relative; display: inline-flex; cursor: pointer; }
.flow-tab input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.flow-tab span {
  padding: 10px 18px;
  border-radius: 999px;
  font: 500 14px/1.2 var(--sans);
  color: var(--ink-2);
  transition: color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}
.flow-tab:hover span { color: var(--ink); }
.flow-tab input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.flow-tab input:checked + span { color: var(--ink); background: var(--card); box-shadow: var(--shadow); }

.flow-map-wrap {
  margin-top: 32px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
}
.flow-map { display: block; width: 100%; height: auto; }
.flow-map text { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; fill: var(--ink); }
.flow-map .lane-doc { fill: var(--ink-2); font-size: 11.5px; letter-spacing: 0.02em; }
.flow-map .chip text { font-size: 11.5px; }
.flow-map .check text, .flow-map .decision text { text-anchor: middle; }

.lane rect { fill: var(--paper); stroke: var(--line-strong); transition: fill 160ms ease, stroke 160ms ease; }
.lane text { fill: var(--ink-2); transition: fill 160ms ease; }
.wires path { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dashoffset: 0; }

/* the chosen side lights up; hovering a lane previews it */
.flow:has(input[value="borrower"]:checked) .lane-borrower rect,
.flow:has(input[value="allocator"]:checked) .lane-allocator rect,
.flow:has(input[value="advisor"]:checked) .lane-advisor rect { fill: #E8EFF6; stroke: var(--blue); }
.flow:has(input[value="borrower"]:checked) .lane-borrower text,
.flow:has(input[value="allocator"]:checked) .lane-allocator text,
.flow:has(input[value="advisor"]:checked) .lane-advisor text { fill: var(--ink); }
.lane:hover rect { stroke: var(--blue); }

.check rect { fill: var(--ink); stroke: var(--ink); }
/* scoped past `.flow-map text` (0-1-1) — a bare class selector (0-1-0) loses to it and
   the node label renders dark-on-dark */
.flow-map .check-name { fill: var(--paper); font-family: var(--display); font-size: 24px; letter-spacing: -0.01em; }
.flow-map .check-sub { fill: var(--night-muted); font-size: 11.5px; letter-spacing: 0.04em; }
.flow-map .check-sub.lead { fill: #9CC0DD; }

.exceptions .chip text { font-size: 11.5px; }
.chip rect { fill: var(--paper); stroke: var(--line-strong); }
.chip-critical rect { fill: var(--amber-soft); stroke: #E2C49A; }
.chip-critical text { fill: var(--amber); }
.chip-material text { fill: var(--ink); }
.chip-resolved text { fill: var(--ink-2); }

.decision rect { fill: var(--card); stroke: var(--ink); stroke-width: 1.5; }
.decision text { fill: var(--ink); font-family: var(--display); font-size: 17px; letter-spacing: 0; }

.flow-foot { display: flex; justify-content: center; margin-top: 28px; text-align: center; }
/* the run: flow.js arms the diagram when it scrolls into view (data-live), so the wires
   draw left to right, the exceptions land, then the decision node lights. Transitions live
   on the LIVE state only — arming is instant, so there is no flash of a finished diagram
   fading back to dim on load. Without JS nothing arms it and it renders finished. */
.flow[data-armed]:not([data-live]) .wires path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: none;
}
.flow[data-armed]:not([data-live]) .chip { opacity: 0.2; transition: none; }
.flow[data-armed]:not([data-live]) .decision rect { stroke: var(--ink); }
.flow[data-armed]:not([data-live]) .decision-wires path { stroke: var(--line-strong); }

.flow[data-live] .in-wires path { stroke-dashoffset: 0; }
.flow[data-live] .out-wires path { stroke-dashoffset: 0; }
.flow[data-live] .decision-wires path { stroke-dashoffset: 0; }
.flow[data-live] .in-wires path:nth-child(1) { transition: stroke-dashoffset 480ms ease 0ms; }
.flow[data-live] .in-wires path:nth-child(2) { transition: stroke-dashoffset 480ms ease 90ms; }
.flow[data-live] .in-wires path:nth-child(3) { transition: stroke-dashoffset 480ms ease 180ms; }
.flow[data-live] .out-wires path:nth-child(1) { transition: stroke-dashoffset 480ms ease 460ms; }
.flow[data-live] .out-wires path:nth-child(2) { transition: stroke-dashoffset 480ms ease 540ms; }
.flow[data-live] .out-wires path:nth-child(3) { transition: stroke-dashoffset 480ms ease 620ms; }
.flow[data-live] .chip { opacity: 1; }
.flow[data-live] .chip-critical { transition: opacity 320ms ease 780ms; }
.flow[data-live] .chip-material { transition: opacity 320ms ease 920ms; }
.flow[data-live] .chip-resolved { transition: opacity 320ms ease 1060ms; }
.flow[data-live] .decision rect { stroke: var(--green); stroke-width: 2.5; transition: stroke 240ms ease 1180ms; }
.flow[data-live] .decision-wires path { stroke: var(--green); transition: stroke 240ms ease 1180ms; }

.flow-readout { max-width: 860px; }
.flow-readout .ro { display: none; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.flow-readout .ro b { color: var(--ink); font-weight: 600; }
.flow-readout .ro a { color: var(--ink); border-bottom: 1px solid var(--line-strong); }
.flow:has(input[value="borrower"]:checked) .ro-borrower,
.flow:has(input[value="allocator"]:checked) .ro-allocator,
.flow:has(input[value="advisor"]:checked) .ro-advisor { display: block; }

/* ---------- waitlist: the green closing block ---------- */

.closing { padding: 40px 0 24px; }

.closing .wrap > .closing-block,
.closing .wrap:not(:has(.closing-block)) {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 6%;
  align-items: center;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 80px);
  color: var(--night-text);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(170deg, #3E9466 0%, var(--green) 45%, var(--green-deep) 100%);
  overflow: hidden;
}
/* pages without the block (signup) give the wrap itself the green treatment */
.closing .wrap:not(:has(.closing-block)) { max-width: calc(1320px - 80px); margin: 0 auto; }

.closing-art {
  position: absolute;
  left: 2%;
  bottom: -12%;
  width: min(44%, 520px);
  opacity: 0.95;
  pointer-events: none;
}
.closing-copy { position: relative; align-self: start; }
.closing-block .closing-copy { padding-bottom: clamp(220px, 30vw, 380px); }
.closing h2 { font-size: clamp(44px, 6vw, 88px); line-height: 1; }
.closing h2 em { font-style: normal; color: #BFE3CC; }
.closing .eyebrow { color: #D5EDDD; }
.closing .eyebrow::before { background: var(--night-text); }
.closing-copy > p:not(.eyebrow, .closing-contact) { margin-top: 24px; font-size: 18px; line-height: 1.55; color: #E4F3E9; max-width: 460px; }
.closing-contact { margin-top: 26px; font: 500 13px/1.5 var(--mono); }
.closing-contact a { color: var(--night-text); border-bottom: 1px solid rgba(249, 249, 251, 0.5); }

.waitlist-card {
  position: relative;
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 40px 80px -30px rgba(10, 40, 25, 0.6);
}
.waitlist-card h3 { font: 400 30px/1.15 var(--display); letter-spacing: -0.02em; }
.waitlist-card > p { color: var(--ink-2); font-size: 13px; line-height: 1.6; margin-top: 12px; }
.waitlist-card fieldset { border: 0; margin: 22px 0 0; padding: 0; min-width: 0; }
.waitlist-card label { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 8px; }
.waitlist-card label span { color: var(--ink-2); font-weight: 400; font-size: 11px; font-family: var(--mono); }
.waitlist-card input,
.waitlist-card select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  padding: 13px 14px;
  font: inherit;
  font-size: 16px;
  border-radius: 10px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.waitlist-card input:focus,
.waitlist-card select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42, 103, 156, 0.18); }
.waitlist-card select {
  margin: 0 0 20px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235F5F75' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.waitlist-card input::placeholder { color: var(--ink-3); }
.waitlist-card select option[value=""] { color: var(--ink-2); }
.waitlist-card select:has(option:checked[value=""]) { color: var(--ink-2); }
.waitlist-card .waitlist-role-other { margin: -8px 0 20px; }
.waitlist-role-other[hidden] { display: none; }
.waitlist-optional { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.waitlist-card button { width: 100%; justify-content: center; font-family: inherit; }
.waitlist-card .waitlist-note { margin-top: 16px; font-size: 12.5px; }
.waitlist-card .waitlist-status { margin-top: 16px; color: var(--ink); }
.waitlist-card .waitlist-status:empty { margin: 0; }
.waitlist-card a { text-decoration: underline; overflow-wrap: anywhere; }

/* ---------- audience pages ---------- */

.audience-hero { padding: 72px 0 96px; }
.audience-hero .wrap { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 64px; align-items: center; }
.audience-hero h1 { font-size: clamp(46px, 5.4vw, 80px); line-height: 1; max-width: 15ch; }
.audience-hero .hero-text { margin: 28px 0 32px; }
.careers-hero .wrap { grid-template-columns: minmax(0, 1fr); }
.careers-hero h1 { max-width: 22ch; }

.panel {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  min-width: 0;
  overflow: hidden;
}
.panel-art {
  display: grid;
  place-items: center;
  padding: 24px 18%;
  background:
    radial-gradient(ellipse at 50% 70%, #FFFFFF, transparent 65%),
    linear-gradient(160deg, #E6EEF6, #D9E4EF 60%, #CFDCEA);
}
.panel-art img { display: block; width: 100%; }
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font: 500 10.5px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.panel-body { padding: 8px 22px 12px; }
.panel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.panel-row:last-child { border-bottom: 0; }
.panel-row span { font-size: 13px; color: var(--ink-2); display: block; margin-top: 3px; line-height: 1.5; }
.panel-row em {
  font-style: normal;
  font: 500 10px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  border-radius: 999px;
  padding: 6px 10px;
  white-space: nowrap;
}
.panel-row em.hold, .panel-row em.pending { color: var(--amber); background: var(--amber-soft); }
.panel-row em.muted { color: var(--ink-2); background: var(--wash); }
.panel-foot { padding: 14px 22px 16px; background: var(--paper); font: 400 11px/1.55 var(--mono); color: var(--ink-2); }

.steps { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step > .label {
  align-self: flex-start;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
  padding: 5px 9px;
}
.step h3 { font: 400 26px/1.15 var(--display); letter-spacing: -0.02em; }
.step p { font-size: 15px; color: var(--ink-2); line-height: 1.55; margin-top: 8px; }
.step .step-out { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); font: 400 12.5px/1.7 var(--mono); color: var(--ink); }

.cta-band { padding: 24px 0 24px; }
.cta-band .wrap > * { position: relative; }
.cta-band .wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  max-width: calc(1320px - 80px);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 6vw, 72px);
  color: var(--night-text);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(170deg, #3E9466 0%, var(--green) 45%, var(--green-deep) 100%);
}
.cta-band h2 { font-size: clamp(38px, 4.6vw, 64px); line-height: 1.04; }

/* ---------- security page ---------- */

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  color: var(--green-deep);
  background: linear-gradient(160deg, var(--green-soft), #D5EDDD);
  box-shadow: inset 0 0 0 1px rgba(27, 84, 52, 0.08);
}
.icon-tile.large { display: grid; width: 60px; height: 60px; border-radius: 18px; margin-bottom: 24px; }
.icon-tile.large .icon { width: 28px; height: 28px; }

/* hero: copy beside the glass-case drawing, then a status strip */
.sec-hero { padding: 64px 0 40px; }
.sec-hero .wrap:first-child { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.sec-hero h1 { font-size: clamp(44px, 5vw, 76px); line-height: 1.02; max-width: 14ch; }
.sec-hero h1 em { font-style: italic; color: var(--green); }
.sec-hero .hero-text { margin: 28px 0 32px; max-width: 52ch; }
.sec-hero-art { position: relative; }
.sec-hero-art::before {
  content: "";
  position: absolute;
  inset: 6% 0 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(42, 103, 156, 0.14), transparent);
}
.sec-hero-art img { position: relative; display: block; width: 100%; height: auto; }

.status-strip {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
}
.status-strip li { display: flex; gap: 12px; padding: 20px 22px; border-left: 1px solid var(--line); }
.status-strip li:first-child { border-left: 0; }
.status-strip b { display: block; font-size: 15px; font-weight: 600; }
.status-strip span:not(.dot) { display: block; margin-top: 4px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.dot { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; }
.dot.ok { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.dot.open { background: #C98A33; box-shadow: 0 0 0 4px var(--amber-soft); }

/* protections: a bento of small scenes */
.bento { margin-top: 56px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.tile {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}
.tile-wide { grid-column: span 4; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; }
.tile-tall { grid-row: span 2; }
.tile h3 { margin-top: 18px; font: 400 26px/1.15 var(--display); letter-spacing: -0.02em; }
.tile p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.tile .vig-cap { margin-top: 12px; font: 400 11px/1.5 var(--mono); color: var(--ink-2); }

.vig { margin-top: auto; padding: 18px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); min-width: 0; }
.tile-wide .vig { margin-top: 0; }
.vig code, .vig pre { font: 400 12.5px/1.6 var(--mono); }
.vig pre { margin: 0; white-space: pre-wrap; word-break: break-word; }
.vig .k { color: var(--blue); }
.vig .v { color: var(--green); font-weight: 500; }
.vig .c { color: var(--ink-3); }

.req { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.req + .req { margin-top: 10px; }
.req .who { font-size: 13.5px; font-weight: 600; }
.req code { grid-column: 1; color: var(--ink-2); font-size: 12px; }
.req b { grid-column: 2; grid-row: 1 / 3; font: 500 10.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; }
.req.ok b { color: var(--green); background: var(--green-soft); }
.req.no b { color: var(--amber); background: var(--amber-soft); }

.struck { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 6px 12px 6px 8px; border-radius: 999px; border: 1px dashed var(--line-strong); font: 400 12px/1 var(--mono); color: var(--ink-2); text-decoration: line-through; }
.struck .icon, .never li::before { color: #A5402F; }
.struck .icon { width: 14px; height: 14px; }

.purge-head { display: block; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); color: #A5402F; }
.purge { list-style: none; margin: 0; padding: 0; counter-reset: purge; }
.purge li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.purge li:last-child { border-bottom: 0; }
.purge li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8.5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.purge li { text-decoration: line-through; text-decoration-color: rgba(46, 46, 56, 0.35); color: var(--ink-2); }
/* motion.js adds .reveal before the tile is seen and .in once it is; without it the list shows finished */
.tile.reveal .purge li { text-decoration-color: transparent; color: var(--ink); }
.tile.reveal .purge li::before { transform: scale(0); }
.tile.reveal.in .purge li { animation: purge-strike 0.4s var(--ease) forwards; }
.tile.reveal.in .purge li::before { animation: purge-tick 0.4s var(--ease) forwards; }
.purge li:nth-child(1), .purge li:nth-child(1)::before { animation-delay: 0.5s !important; }
.purge li:nth-child(2), .purge li:nth-child(2)::before { animation-delay: 0.85s !important; }
.purge li:nth-child(3), .purge li:nth-child(3)::before { animation-delay: 1.2s !important; }
.purge li:nth-child(4), .purge li:nth-child(4)::before { animation-delay: 1.55s !important; }
.purge li:nth-child(5), .purge li:nth-child(5)::before { animation-delay: 1.9s !important; }
.purge li:nth-child(6), .purge li:nth-child(6)::before { animation-delay: 2.25s !important; }
@keyframes purge-tick { to { transform: scale(1); } }
@keyframes purge-strike { to { text-decoration-color: rgba(46, 46, 56, 0.35); color: var(--ink-2); } }

.urlbar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font: 400 12.5px/1 var(--mono); overflow: hidden; white-space: nowrap; }
.urlbar s { color: #A5402F; }
.urlbar .icon { width: 15px; height: 15px; color: var(--green); }
.chips { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 6px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green-deep); font: 500 10.5px/1 var(--mono); letter-spacing: 0.04em; }

.never { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.never li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px dashed var(--line-strong); font: 400 11.5px/1 var(--mono); color: var(--ink-2); text-decoration: line-through; }
.never li::before { content: "\00D7"; font-size: 14px; text-decoration: none; }

.scr-flow { display: flex; align-items: center; gap: 0; flex-wrap: wrap; row-gap: 10px; }
.scr-node { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600; white-space: nowrap; }
.scr-node .icon { width: 15px; height: 15px; }
.scr-node.list { color: var(--blue-deep); }
.scr-node.pass { color: var(--green); background: var(--green-soft); border-color: transparent; }
.scr-wire { flex: 1 1 16px; min-width: 16px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 10px); }
.scr-out { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); font: 400 12px/1.4 var(--mono); color: var(--ink-2); }
.scr-out .icon { width: 15px; height: 15px; color: #A5402F; }
.scr-out b { color: var(--ink); font-weight: 500; }

/* data map: browser, the Cloudflare boundary, and the one outside call */
.boundary { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 2.2fr) 88px minmax(0, 1fr); align-items: center; }
.node { padding: 22px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.node h3 { margin-top: 14px; font: 400 22px/1.2 var(--display); letter-spacing: -0.02em; }
.node h3 small { display: block; margin-top: 4px; font: 400 10.5px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.node p { margin-top: 8px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.node p b { color: var(--ink); font-weight: 600; }
.node .kept { display: inline-block; margin-top: 14px; padding: 6px 10px; border-radius: 999px; background: var(--wash); font: 500 10.5px/1.3 var(--mono); letter-spacing: 0.04em; color: var(--ink); }
.node.outside { background: transparent; box-shadow: none; border: 1.5px dashed var(--line-strong); }
.map-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: var(--blue-deep); background: linear-gradient(160deg, #E8EFF6, #D9E4EF); }
.node.outside .map-icon { color: var(--amber); background: var(--amber-soft); }
.map-icon .icon { width: 20px; height: 20px; }

.zone { position: relative; padding: 52px 20px 20px; border-radius: var(--radius-lg); background: linear-gradient(160deg, #E8EFF6, #D9E4EF 70%, #CFDCEA); box-shadow: inset 0 0 0 1.5px rgba(42, 103, 156, 0.35); }
.zone-label { position: absolute; top: 16px; left: 22px; display: flex; align-items: center; gap: 8px; margin: 0; font: 500 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-deep); }
.zone-label .icon { width: 15px; height: 15px; }
.zone-nodes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.wire { position: relative; height: 2px; background: var(--ink); opacity: 0.85; }
.wire.dashed { background: repeating-linear-gradient(90deg, var(--ink-3) 0 6px, transparent 6px 11px); }
.wire i { position: absolute; top: -4px; left: 0; width: 10px; height: 10px; border-radius: 3px; background: var(--green); box-shadow: 0 0 0 2px var(--paper); animation: wire-x 2.4s linear infinite; }
.wire i + i { animation-delay: -1.2s; }
.wire.dashed i { background: var(--amber); animation-duration: 3.6s; }
.wire em { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font: 500 9.5px/1.2 var(--mono); font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); white-space: nowrap; }
@keyframes wire-x { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 10px); opacity: 0; } }
@keyframes wire-y { from { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: calc(100% - 10px); opacity: 0; } }

.never-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; padding: 18px 22px; border-radius: var(--radius); border: 1.5px dashed rgba(165, 64, 47, 0.35); background: #FBF3F1; }
.never-row p { margin: 0; font: 500 10.5px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: #A5402F; }
.never-row ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.never-row li { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 500; }
.never-row .icon { width: 16px; height: 16px; color: #A5402F; }

/* disclosure beside the published security.txt */
.disclose { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.disclose h2 { font-size: clamp(40px, 5vw, 64px); line-height: 1.04; }
.disclose .lead { margin-top: 20px; }
.disclose .lead a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.txt-file { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--night); box-shadow: var(--shadow-lift); }
.txt-file figcaption { padding: 12px 18px; border-bottom: 1px solid var(--night-line); font: 500 11px/1 var(--mono); letter-spacing: 0.06em; }
.txt-file figcaption a { color: var(--night-muted); text-decoration: none; }
.txt-file figcaption a:hover { color: var(--night-text); }
.txt-file pre { margin: 0; padding: 20px 18px; font: 400 12.5px/1.8 var(--mono); color: var(--night-text); white-space: pre-wrap; word-break: break-all; }
.txt-file .k { color: #79B793; }

@media (max-width: 1080px) {
  .status-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-strip li:nth-child(3) { border-left: 0; }
  .status-strip li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile, .tile-tall { grid-column: span 1; grid-row: auto; }
  .tile-wide { grid-column: span 2; }
  .boundary { grid-template-columns: 1fr; justify-items: stretch; }
  .wire { justify-self: center; width: 2px; height: 48px; background: var(--ink); }
  .wire.dashed { background: repeating-linear-gradient(180deg, var(--ink-3) 0 6px, transparent 6px 11px); }
  .wire i { top: 0; left: -4px; animation-name: wire-y; }
  .wire em { top: 50%; bottom: auto; left: 14px; transform: translateY(-50%); }
}

@media (max-width: 960px) {
  .sec-hero .wrap:first-child, .disclose { grid-template-columns: 1fr; gap: 32px; }
  .sec-hero-art { max-width: 520px; }
}

@media (max-width: 720px) {
  .status-strip { grid-template-columns: 1fr; }
  .status-strip li { border-left: 0; }
  .status-strip li + li { border-top: 1px solid var(--line); }
  .bento { grid-template-columns: 1fr; }
  .tile, .tile-wide { grid-column: auto; }
  .tile-wide { grid-template-columns: 1fr; }
  .zone-nodes { grid-template-columns: 1fr; }
  .tile, .node { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .wire i { display: none; }
}
.cta-band .button.dark { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* ---------- footer ---------- */

footer { padding: 56px 40px 40px; max-width: 1320px; margin: 0 auto; }
footer .footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
footer .brand { font-size: 18px; }
footer nav { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 40px; }
footer nav a, footer .footer-contact a { font-size: 14px; color: var(--ink-2); transition: color 140ms ease; }
footer nav a:hover, footer .footer-contact a:hover { color: var(--ink); }
footer .footer-contact { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
footer small { display: block; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font: 400 11px/1.6 var(--mono); color: var(--ink-2); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- scroll reveal (motion.js adds .reveal, then .in when on screen) ---------- */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .run-stages { grid-template-columns: 1fr; padding: 0; }
  .run-stages li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 20px; }
  .run-stages li + li { border-left: 0; border-top: 1px solid var(--line); }
  .run-stages li::before { left: 0; right: auto; top: 14px; bottom: 14px; width: 3px; height: auto; }
  .run-stages li:has(.pending)::before { background: linear-gradient(180deg, #C98A33 55%, var(--line) 55%); }
  .run-state { margin-top: 0; align-self: center; }
}

@media (max-width: 960px) {
  .wrap { padding: 0 24px; }
  .site-header { padding: 0 24px; }
  .section { padding: 96px 0; }
  .hero .wrap:first-child, .audience-hero .wrap, .pair, .layers-body { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { margin-right: 0; }
  .hero-note { grid-template-columns: 1fr; }
  .layers-body .stack { order: -1; }
  .ledger { grid-template-columns: 1fr; }
  .ledger-art { aspect-ratio: 16 / 9; }
  .steps { grid-template-columns: 1fr; }
  .closing .wrap > .closing-block, .closing .wrap:not(:has(.closing-block)) { grid-template-columns: 1fr; }
  .closing .wrap:not(:has(.closing-block)) { max-width: calc(100% - 48px); }
  .closing-block .closing-copy { padding-bottom: 0; }
  .closing-art { position: relative; left: auto; bottom: auto; width: min(70%, 360px); margin: 0 auto -8px; order: 2; }
  .closing-block .waitlist-card { order: 3; }
  .cta-band .wrap { max-width: calc(100% - 48px); }
  .spec-row { grid-template-columns: 48px minmax(0, 1fr); gap: 12px 16px; }
  .spec-row > *:nth-child(3), .spec-row > *:nth-child(4) { grid-column: 2; }
  .spec-row.head > *:nth-child(3), .spec-row.head > *:nth-child(4) { display: none; }
  .trace-row { grid-template-columns: minmax(0, 1fr) auto; }
  .trace-row > *:nth-child(3), .trace-row > *:nth-child(4) { grid-column: 1 / -1; }
  .trace-row.head > *:nth-child(3), .trace-row.head > *:nth-child(4) { display: none; }
  .flow-map-wrap { overflow-x: auto; padding: 20px 16px; }
  .flow-map { min-width: 660px; }
  footer { padding: 48px 24px 32px; }
}

@media (max-width: 720px) {
  .site-header { height: 64px; }
  .site-header nav { display: none; }
  .announce span { display: none; }
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 24px; }
  .stage { padding: 64px 14px 40px; }
  .facts { grid-template-columns: 1fr; gap: 20px; }
  .facts div { border-left: 0; padding: 0 0 20px; border-bottom: 1px solid var(--line-strong); }
  .facts div:last-child { border-bottom: 0; }
  .run-grid { grid-template-columns: 1fr; }
  .run-grid > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .layer-list summary { font-size: 22px; }
}

@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .site-header { padding: 0 16px; }
  .hero h1 { font-size: 48px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 18px; }
  .waitlist-card { padding: 24px 20px; }
  .waitlist-optional { grid-template-columns: 1fr; }
  .run-stages li { grid-template-columns: 28px minmax(0, 1fr); }
  .run-stages .run-state { grid-column: 2; justify-self: start; }
  .trace-row { grid-template-columns: 1fr; gap: 8px; }
  .closing .wrap:not(:has(.closing-block)), .cta-band .wrap { max-width: calc(100% - 32px); }
  footer nav { grid-template-columns: 1fr; }
  footer { padding: 40px 16px 28px; }
  .flow-tabs { border-radius: 18px; }
  .flow-map { min-width: 580px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button:active { transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ledger-col, .ledger-col:hover, .ledger-col .ledger-art img, .ledger-col:hover .ledger-art img, .stack .plate { transition: none; transform: none; }
  .layers:has(details[open]) .plate { transform: none; }
  .chip, .lane rect, .lane text, .decision rect, .decision-wires path, .wires path { transition: none; }
}
