/* hero */
.hero { position: relative; padding-block: var(--s-8) var(--s-8); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 20%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 90% at 70% 20%, #000 20%, transparent 75%);
}
.hero-grid { display: grid; gap: var(--s-7); }
@media (min-width: 64rem) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: var(--s-8); align-items: center; } }
.hero h1 { max-width: 18ch; margin-bottom: var(--s-4); }
.hero .lede { margin-bottom: var(--s-6); }
.hero .badge { margin-bottom: var(--s-5); }

/* product flow */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-5); counter-reset: flow; }
.flow li { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-4); counter-increment: flow; }
.flow li::before { content: counter(flow, decimal-leading-zero); font-family: var(--font-mono); font-size: .75rem; color: var(--accent); letter-spacing: .06em; }
.flow .label { display: block; font-family: var(--font-mono); font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; margin: var(--s-1) 0 var(--s-1); color: var(--text); }
.flow .note { display: block; font-size: .88rem; line-height: 1.45; color: var(--text-2); }
.flow li.external { border-style: dashed; border-color: var(--border-strong); background: transparent; }
.flow li.goal { background: var(--accent-container); border-color: transparent; }
.flow li.goal .label, .flow li.goal::before { color: var(--on-accent-container); }
.flow li.goal .note { color: var(--on-accent-container); opacity: .85; }
.flow li:not(:last-child)::after {
  content: ""; position: absolute; width: 9px; height: 9px;
  border-right: 2px solid var(--border-strong); border-bottom: 2px solid var(--border-strong);
  left: calc(50% - 5px); bottom: calc(var(--s-5) / -1 + 2px); transform: rotate(45deg);
}
@media (min-width: 38rem) and (max-width: 63.99rem) {
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow li:not(:last-child)::after { left: auto; right: calc(var(--s-5) / -2 - 6px); bottom: auto; top: calc(50% - 5px); transform: rotate(-45deg); }
  .flow li:nth-child(3n)::after { display: none; }
}
.flow-key { margin-top: var(--s-5); font-size: .9rem; color: var(--text-2); max-width: 70ch; }
@media (prefers-reduced-motion: no-preference) {
  .flow li { animation: flowIn .5s var(--ease) both; }
  .flow li:nth-child(2) { animation-delay: .06s; } .flow li:nth-child(3) { animation-delay: .12s; }
  .flow li:nth-child(4) { animation-delay: .18s; } .flow li:nth-child(5) { animation-delay: .24s; } .flow li:nth-child(6) { animation-delay: .3s; }
  @keyframes flowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* numbered steps (rows, not cards) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: var(--s-4); padding-block: var(--s-5); border-top: 1px solid var(--border); counter-increment: step; }
.steps li:last-child { border-bottom: 1px solid var(--border); }
.steps li::before { content: counter(step); font-family: var(--font-mono); color: var(--accent); font-size: 1.3rem; line-height: 1.3; }
.steps h3 { margin-bottom: var(--s-1); }
.steps p { margin: 0; color: var(--text-2); max-width: 60ch; }
@media (min-width: 56rem) {
  .steps.four { grid-template-columns: repeat(4, 1fr); column-gap: var(--s-6); }
  .steps.four li { grid-template-columns: 1fr; align-content: start; gap: var(--s-2); border-bottom: 1px solid var(--border); }
}

/* contract */
.contract { font-family: var(--font-mono); font-size: clamp(1.05rem, .8rem + 1.6vw, 1.7rem); line-height: 1.4; margin: 0 0 var(--s-5); }
.contract .op { color: var(--accent); }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); }
.points li { padding-inline-start: var(--s-5); position: relative; max-width: 60ch; }
.points li::before { content: ""; position: absolute; left: 0; top: .7em; width: .5rem; height: 2px; background: var(--accent); }
.two { display: grid; gap: var(--s-6); }
@media (min-width: 56rem) { .two { grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; } }

/* labs home */
.project { display: grid; gap: var(--s-4); padding: var(--s-5); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); max-width: 44rem; }
.project-top { display: flex; align-items: center; gap: var(--s-4); }
.project-top img { width: 56px; height: 56px; border-radius: 14px; border: 1px solid var(--border); }
.project h3 { font-size: 1.35rem; }
.project p { margin: 0; color: var(--text-2); }
.kv { display: grid; gap: var(--s-3); max-width: 40rem; }

/* recovery contract band */
.band { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(var(--s-5), 4vw, var(--s-8)); }
.band .contract { text-wrap: balance; font-size: clamp(1.15rem, .7rem + 2.2vw, 2rem); margin: 0 0 var(--s-3); }
.band .contract .op { color: var(--accent); }
.band .lead { color: var(--text-2); margin: 0 0 var(--s-6); }
.facts { display: grid; gap: var(--s-5); margin: 0; }
@media (min-width: 48rem) { .facts { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }
.facts div { border-top: 1px solid var(--border-strong); padding-top: var(--s-3); }
.facts dt { font-weight: 650; margin-bottom: var(--s-1); }
.facts dd { margin: 0; color: var(--text-2); font-size: .95rem; }
.band .callout { margin-bottom: 0; }
/* slim band */
.slim { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-7); align-items: baseline; justify-content: space-between; }
.slim p { margin: 0; max-width: 62ch; }
.meta { font-size: .9rem; color: var(--text-2); }
