/* Amicus Data 2.0 — mobile first. Brand tokens are the bx4 set (DECISIONS.md #9, red #C8102E).
   Native scroll on purpose: this is a three-level linked site, not bx4's one-page virtual-scroll engine.
   Anything that moves uses transform and opacity only, so iOS Safari composites it. */

@font-face { font-family: 'Geist'; src: url('/fonts/Geist-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/fonts/Geist-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --red: #C8102E; --ink: #1D1D1D; --bar: #111; --white: #fff;
  --panel: #F2F2EF; --mist: #D8DFDC; --body: #3F3C35;
  --rule: rgba(20,20,20,.12);
  --bar-h: 56px; --gutter: 16px; --radius: 10px;
  --font: 'Geist', Inter, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --max: 64rem;
}
@media (min-width: 760px) { :root { --bar-h: 64px; --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 12px); }
body {
  margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); font-weight: 400;
  font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }

/* ---------- header ---------- */
.bar {
  position: sticky; top: 0; z-index: 60; height: var(--bar-h); background: var(--bar);
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--gutter);
}
.bar__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.bar__mark { height: 24px; width: auto; }
.bar__word { height: 17px; width: auto; }
.bar__menu {
  width: 44px; height: 44px; margin-right: -10px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-content: center; gap: 6px; padding: 0;
}
.bar__menu span { display: block; width: 24px; height: 2px; background: var(--white); }

/* ---------- menu drawer: closes three ways (X, Cancel, click outside) ---------- */
.scrim {
  position: fixed; inset: 0; z-index: 70; background: rgba(10,10,10,.55);
  opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s;
}
.scrim[data-open='true'] { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; z-index: 80; width: min(22rem, 86vw); height: 100%;
  background: var(--white); padding: var(--gutter); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .22s ease;
}
.scrim[data-open='true'] .drawer { transform: translateX(0); }
.drawer__top { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.drawer__title { margin: 0; font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; color: var(--body); }
.drawer__x {
  width: 44px; height: 44px; margin-right: -10px; border: 0; background: transparent; cursor: pointer;
  font-size: 1.5rem; line-height: 1; color: var(--ink);
}
.drawer__list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .25rem; }
.drawer__list a { display: block; padding: .6rem 0; text-decoration: none; font-size: 1.15rem; letter-spacing: -.02em; border-bottom: 1px solid var(--rule); }
.drawer__list a:hover { color: var(--red); }
.drawer__cancel {
  margin-top: auto; height: 44px; border: 1px solid var(--ink); border-radius: 999px; background: transparent;
  font: inherit; font-size: .95rem; cursor: pointer;
}
.drawer__cancel:hover { background: var(--ink); color: var(--white); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: 2.25rem 0; }
@media (min-width: 760px) { section { padding: 3.25rem 0; } }
section + section { padding-top: 0; }
.band--panel, .band--mist { padding-top: 2.25rem; }
@media (min-width: 760px) { .band--panel, .band--mist { padding-top: 3.25rem; } }
section + .band--panel, section + .band--mist { padding-top: 2.25rem; }
@media (min-width: 760px) { section + .band--panel, section + .band--mist { padding-top: 3.25rem; } }
.band--panel { background: var(--panel); }
.band--mist { background: var(--mist); }
.eyebrow { margin: 0 0 .9rem; font-size: .75rem; letter-spacing: .11em; text-transform: uppercase; color: var(--body); }
h1, h2, h3 { font-weight: 500; letter-spacing: -.035em; line-height: 1.04; margin: 0; }
h1 { font-size: clamp(2.1rem, 8.5vw, 4.2rem); letter-spacing: -.05em; }
h2 { font-size: clamp(1.6rem, 5.4vw, 2.5rem); }
h3 { font-size: 1.12rem; letter-spacing: -.02em; line-height: 1.25; }
p { margin: 0 0 1.1rem; }
.lede { font-size: clamp(1.05rem, 4.2vw, 1.3rem); color: var(--body); max-width: 34rem; }

/* ---------- hero ---------- */
.hero { padding-top: 2.5rem; }
.hero h1 { max-width: 22rem; margin-bottom: .9rem; }
@media (min-width: 760px) { .hero h1 { max-width: 34rem; } }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.6rem; }
.btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px;
  text-decoration: none; font-size: .95rem; border: 1px solid transparent;
}
.btn--dark { background: var(--ink); color: var(--white); }
.btn--ghost { border-color: var(--ink); }
.btn:hover { background: var(--red); color: var(--white); border-color: var(--red); }

/* ---------- the four stages ---------- */
.stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--rule); border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .stages { grid-template-columns: repeat(4, 1fr); } }
.stage { background: var(--white); padding: 1.3rem 0 1.5rem; }
@media (min-width: 900px) { .stage { padding: 1.4rem 1.2rem 1.8rem; } .stage:first-child { padding-left: 0; } }
.stage__n { font-size: .72rem; letter-spacing: .12em; color: var(--red); }
.stage__verb { margin: .35rem 0 .4rem; font-size: 1.35rem; font-weight: 500; letter-spacing: -.03em; }
.stage__line { margin: 0; color: var(--body); font-size: .97rem; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 14px; }
@media (min-width: 680px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.25rem; text-decoration: none; display: flex; flex-direction: column; gap: .55rem;
  transition: transform .16s ease, border-color .16s ease;
}
a.card:hover { border-color: var(--red); transform: translateY(-2px); }
.card__tag { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.card__body { margin: 0; color: var(--body); font-size: .97rem; }
.card__more { margin-top: auto; padding-top: .5rem; font-size: .9rem; }
.card--soon { opacity: .62; }
.card__soon { font-size: .8rem; color: var(--body); margin: 0; }

/* base package */
.base { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.base li { padding: 1rem 0; border-bottom: 1px solid var(--rule); display: grid; gap: .2rem; }
@media (min-width: 760px) { .base li { grid-template-columns: 14rem 1fr; gap: 1.5rem; align-items: baseline; } }
.base__n { font-weight: 500; }
.base__line { color: var(--body); font-size: .97rem; }
.note { color: var(--body); font-size: .92rem; }

/* ---------- filter chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.chip {
  min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--rule);
  background: transparent; font: inherit; font-size: .9rem; cursor: pointer;
}
.chip[aria-pressed='true'] { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- level 2: flow infographic ---------- */
.flow { display: grid; gap: 0; margin: 1.6rem 0 0; padding: 0; list-style: none; }
@media (min-width: 860px) { .flow { grid-auto-flow: column; grid-auto-columns: 1fr; } }
.flow__node { position: relative; padding: 0 0 2.6rem; display: flex; flex-direction: column; }
@media (min-width: 860px) { .flow { align-items: stretch; } .flow__node { padding: 0 1.5rem 0 0; } .flow__node:last-child { padding-right: 0; } }
.flow__box {
  flex: 1 1 auto;
  border: 1px solid var(--ink); border-radius: var(--radius); padding: .85rem .9rem; background: var(--white);
  font-size: .97rem; min-height: 64px; display: flex; align-items: center;
}
.flow__node[data-s='ours'] .flow__box { border-color: var(--red); }
.flow__node[data-s='human'] .flow__box { border-style: dashed; border-color: var(--red); background: #FFF6F7; }
.flow__node[data-s='bridge'] .flow__box { border-color: var(--red); border-style: dotted; }
.flow__node[data-s='theirs'] .flow__box { border-color: rgba(20,20,20,.3); background: var(--panel); }
.flow__who { display: block; margin-top: .45rem; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; color: var(--body); }
/* the line between boxes, and the pulse that travels it */
.flow__node:not(:last-child)::before {
  content: ''; position: absolute; left: 22px; bottom: .5rem; width: 2px; height: 1.7rem; background: var(--rule);
}
@media (min-width: 860px) {
  .flow__node:not(:last-child)::before { left: auto; right: .45rem; top: 32px; bottom: auto; width: 1.1rem; height: 2px; }
}
.flow__node:not(:last-child)::after {
  content: ''; position: absolute; left: 19px; bottom: 1.45rem; width: 8px; height: 8px; border-radius: 50%;
  background: var(--red); opacity: 0; will-change: transform, opacity;
}
@media (min-width: 860px) {
  .flow__node:not(:last-child)::after { left: auto; right: 1.4rem; top: 29px; bottom: auto; }
}
.flow[data-run='true'] .flow__node:not(:last-child)::after { animation: ad2-pulse 2.4s linear infinite; }
.flow[data-run='true'] .flow__node:nth-child(2)::after { animation-delay: .3s; }
.flow[data-run='true'] .flow__node:nth-child(3)::after { animation-delay: .6s; }
.flow[data-run='true'] .flow__node:nth-child(4)::after { animation-delay: .9s; }
@keyframes ad2-pulse {
  0%   { opacity: 0; transform: translateY(-14px); }
  12%  { opacity: 1; transform: translateY(-10px); }
  38%  { opacity: 1; transform: translateY(12px); }
  50%, 100% { opacity: 0; transform: translateY(16px); }
}
@media (min-width: 860px) {
  @keyframes ad2-pulse {
    0%   { opacity: 0; transform: translateX(-10px); }
    12%  { opacity: 1; transform: translateX(-6px); }
    34%  { opacity: 1; transform: translateX(8px); }
    46%, 100% { opacity: 0; transform: translateX(10px); }
  }
}
.runbar { display: flex; align-items: center; gap: 12px; margin-top: 1.4rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.runbar__btn { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; font: inherit; font-size: .92rem; cursor: pointer; }
.runbar__btn[aria-pressed='true'] { background: var(--ink); color: var(--white); }
.runbar__note { margin: 0; font-size: .85rem; color: var(--body); }
@media (prefers-reduced-motion: reduce) {
  .flow[data-run='true'] .flow__node::after { animation: none; opacity: .9; }
  html { scroll-behavior: auto; }
}

/* numbers */
.nums { list-style: none; margin: 1.8rem 0 0; padding: 0; display: grid; gap: 1px; background: var(--rule); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
@media (min-width: 560px) { .nums { grid-auto-flow: column; grid-auto-columns: 1fr; } }
.nums li { background: var(--white); padding: 1rem 0; }
@media (min-width: 560px) { .nums li { padding: 1rem 1.1rem; } .nums li:first-child { padding-left: 0; } }
.nums__v { display: block; font-size: 1.9rem; font-weight: 500; letter-spacing: -.045em; line-height: 1; }
.nums__l { display: block; margin-top: .35rem; font-size: .85rem; color: var(--body); }

/* lists */
.ticks { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.ticks li { position: relative; padding: .6rem 0 .6rem 1.6rem; border-bottom: 1px solid var(--rule); color: var(--body); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 1.15rem; width: 8px; height: 8px; background: var(--red); border-radius: 2px; }

/* level 3 prose */
.prose { max-width: 38rem; }
.prose h2 { margin: 2.4rem 0 .8rem; font-size: clamp(1.35rem, 4.6vw, 1.85rem); }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--body); }

/* breadcrumb */
.crumb { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0 0 1.2rem; font-size: .85rem; color: var(--body); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--red); }

/* draft banner — removed when the owner approves copy */
.draft { background: #FFF6F7; border-bottom: 1px solid var(--red); padding: .6rem var(--gutter); font-size: .82rem; color: var(--ink); text-align: center; }

/* footer */
.foot { background: var(--bar); color: #DADADA; padding: 2.5rem 0 3rem; font-size: .9rem; }
.foot a { color: var(--white); }
.foot__note { color: #9A9A9A; margin: .8rem 0 0; }
