/* =========================================================================
   Slingshot v5 · Home (copy/home.md, SPEC-V5 §4)
   Eleven sections, dark-first; Warm Stone for #who; the one heat band is
   #start. The figures' own styles live in css/figures.css; their drawing
   in js/figures.js. Heat per tools/heat.py: peach and amber text on dark,
   rust on light.
   ========================================================================= */

.alias {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* ================================================================ 1 HERO */
.hero {
  position: relative;
  min-height: max(100svh, 680px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
}
/* F1 fills the hero behind the copy; the engine erases the copy's text
   boxes from the canvas after every frame */
.hero .v5fig.f1 {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: auto;
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--bar-h) + 56px);
  padding-bottom: clamp(48px, 9svh, 112px);
  pointer-events: none;
}
.hero-copy > * {
  pointer-events: auto;
  width: fit-content;
}
.hero-h {
  max-width: 9.6em;
  margin-bottom: 28px;
  font: 700 clamp(2.75rem, 1.2rem + 4.6vw, 5.5rem) / 0.98 var(--f-display);
  letter-spacing: -0.04em;
  text-wrap: balance;
  color: var(--stone);
}
.hero-lede {
  max-width: 34ch;
  margin-bottom: 12px;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.4375rem);
  line-height: 1.4;
  color: var(--stone);
}
.dark .hero-lede {
  color: var(--stone);
}
.hero-who {
  max-width: 46ch;
  margin-bottom: 36px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--on-d-82);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
/* the loudest control in the first viewport (SPEC-V5 §8.8) */
.hero-btn {
  min-height: 64px;
  padding: 0 40px;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--carbon);
  background: var(--amber-d);
  box-shadow:
    0 0 0 1px rgba(245, 158, 11, 0.4),
    0 10px 40px -12px rgba(245, 158, 11, 0.55);
}
.hero-btn:hover {
  background: #ffae2b;
}
.hero-btn::after {
  background: var(--carbon);
  left: 40px;
  right: 40px;
  bottom: 16px;
}
.hero-btn:focus-visible {
  outline: 2px solid var(--stone);
  outline-offset: 4px;
}
html:not(.js) .hero .v5still {
  object-position: 100% 50%;
}

/* ============================================================= sections */
.sec {
  position: relative;
  padding-block: clamp(80px, 8.5vw, 136px);
}
.sec-head {
  display: grid;
  gap: 20px;
  max-width: 900px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.sec-h {
  max-width: 20ch;
}
.dark .sec-h,
.dark-1 .sec-h {
  color: var(--stone);
}
.sec-body {
  max-width: 58ch;
}
#infrastructure .sec-h,
#auditable .sec-h,
#one-ledger .sec-h {
  max-width: 22ch;
}

/* ===================================================== 4 · capabilities */
.cap-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--rule-d);
}
@media (min-width: 640px) {
  .cap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--gut);
  }
}
@media (min-width: 1024px) {
  .cap-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.cap-item {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px 16px 40px 0;
  border-bottom: 1px solid var(--rule-d);
}
.cap-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cap-no {
  font: 400 clamp(1.75rem, 1.2rem + 1.2vw, 2.5rem) / 1 var(--f-mono);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--heat-amber-d);
}
.cap-glyph {
  width: 72px;
  height: 72px;
  overflow: visible;
}
.cap-glyph * {
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.gl-rust-f {
  fill: var(--heat-rust);
  stroke: none;
}
.gl-amber-f {
  fill: var(--heat-amber-d);
  stroke: none;
}
.gl-peach-f {
  fill: var(--heat-peach);
  stroke: none;
}
.gl-ink {
  fill: none;
  stroke: var(--bg);
  stroke-width: 2.5 !important;
}
.gl-line {
  fill: none;
  stroke: var(--heat-peach);
}
.gl-thick {
  stroke-width: 3 !important;
}
.cap-h {
  font: 600 1.25rem / 1.2 var(--f-display);
  letter-spacing: -0.01em;
  color: var(--stone);
}
.cap-item p {
  max-width: 36ch;
  line-height: 1.55;
  color: var(--on-d-82);
}

/* ================================================ 3 to 7 · figure frames */
.f3,
.f6,
.f7,
.f8 {
  margin-top: 8px;
}

/* =================================================== 8 · who it serves (dark) */
.who .sec-h {
  margin-bottom: clamp(40px, 5vw, 64px);
}
.who-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gut);
}
@media (min-width: 768px) {
  .who-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.who-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px 28px 32px;
  background: var(--s1);
  border: 1px solid var(--rule-d);
  border-top: 3px solid var(--heat-amber-d);
  border-radius: 2px;
}
.who-glyph {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--heat-peach);
  stroke-width: 1.5;
}
.who-glyph rect {
  fill: var(--heat-amber-d);
  stroke: none;
}
.who-h {
  font: 600 var(--fs-h3) / 1.15 var(--f-display);
  letter-spacing: -0.01em;
  color: var(--stone);
}
.who-card p {
  max-width: 44ch;
  line-height: 1.55;
  color: var(--on-d-82);
}

/* ======================================================= 10 · people */
.team-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 28px 16px;
  margin: 0 0 40px;
  padding: 0;
}
.team-strip a {
  display: grid;
  justify-items: start;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
}
.team-strip img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--s2);
  transition: box-shadow var(--dur-fast) var(--ease-out);
}
.team-strip span {
  font: 500 0.75rem / 1.35 var(--f-mono);
  letter-spacing: 0.02em;
  color: var(--on-d-82);
}
.team-strip a:hover img,
.team-strip a:focus-visible img {
  box-shadow: 0 0 0 2px var(--heat-peach);
}
.team-strip a:hover span {
  color: var(--stone);
}
@media (max-width: 699px) {
  .team-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 12px;
  }
  .team-strip img {
    width: 56px;
    height: 56px;
  }
  .team-strip span {
    font-size: 0.6875rem;
    letter-spacing: 0;
  }
}

/* ===================================================== 11 · start (band) */
.start {
  position: relative;
  overflow: hidden;
  padding-block: clamp(88px, 9vw, 136px) clamp(160px, 14vw, 200px);
  background: var(--heat-band);
  color: var(--stone);
}
.start-traj {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.start-traj path {
  fill: none;
  stroke: rgba(245, 240, 235, 0.55);
  stroke-width: 1;
}
.start-grid {
  position: relative;
  z-index: 1;
}
@media (min-width: 900px) {
  .start-copy {
    grid-column: 1 / 7;
  }
}
.start .t-d1,
.start .t-lede {
  color: var(--carbon);
}
.start-copy .t-d1 {
  margin-bottom: 24px;
}
.start-copy .t-lede {
  max-width: 40ch;
}
.start-cta {
  display: grid;
  justify-items: start;
  gap: 16px;
  margin-top: 40px;
}
.start-btn {
  min-height: 56px;
  padding-inline: 32px;
  font-size: 1rem;
  background: var(--carbon);
  color: var(--stone);
}
.start-btn:hover {
  background: #2c2c2e;
}
.start-mail {
  /* v5.3: a 44px target */
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 400 0.875rem / 1.4 var(--f-mono);
  font-variant-ligatures: none;
  color: var(--carbon);
  text-decoration: underline;
  text-decoration-color: rgba(28, 28, 30, 0.5);
  text-underline-offset: 4px;
}
.start-node {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  background: var(--stone);
  box-shadow:
    0 0 0 3px var(--heat-rust),
    0 0 0 4px var(--stone);
  opacity: 0;
  pointer-events: none;
}
.start-mark {
  position: absolute;
  z-index: 1;
  left: max(var(--pad), (100% - var(--max)) / 2);
  bottom: clamp(36px, 4vw, 56px);
  width: clamp(120px, 11vw, 168px);
  height: auto;
}
.band :focus-visible {
  outline-color: var(--stone);
}
@media (max-width: 899px) {
  .start {
    padding-bottom: 96px;
    background: linear-gradient(180deg, #f7ae2e 0%, #f59e0b 40%, #e57a0b 78%, #d9590a 100%);
  }
  .start-mark {
    position: relative;
    left: auto;
    bottom: auto;
    display: block;
    margin: 48px var(--pad) 0;
  }
}

.nw {
  white-space: nowrap;
}

/* v5 · figure sections: Libby's two-column head on desktop (title left,
   the sentence or two right, on one baseline), so the figure starts high
   in the view and carries it */
@media (min-width: 1024px) {
  .sec {
    padding-block: clamp(72px, 6.5vw, 112px);
  }
  .sec-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    column-gap: clamp(32px, 4vw, 72px);
    max-width: none;
    align-items: end;
  }
  .sec-head > .kicker,
  .sec-head > .sec-h {
    grid-column: 1;
  }
  .sec-head > .sec-body {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
    margin-bottom: 6px;
  }
  .sec-head > .sec-h {
    font-size: clamp(2.5rem, 1.2rem + 2.4vw, 3.75rem);
    max-width: 18ch;
  }
}

/* the smallest phones: room for the mark above the copy (the CTA follows
   after a short scroll; its prominence is held at 390 and 1440) */
@media (max-width: 359px) {
  .hero {
    min-height: max(100svh, 780px);
  }
}

/* F9 in the band (v5.1): the right side on desktop, below the words on
   phones; the pointer anywhere over the band dents it */
.start .start-fig {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 58%;
  height: auto;
  aspect-ratio: auto;
  z-index: 0;
}
@media (max-width: 899px) {
  .start .start-fig {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    margin-top: 24px;
  }
}

/* Source line under a section lede (2026-10-20, Nick: the BCG forecast citation) */
.sec-src {
  display: block;
  max-width: 58ch;
  margin-top: 14px;
  font-family: var(--f-mono);
  font-variant-ligatures: none;
  font-size: var(--fs-tag);
  letter-spacing: 0.02em;
  line-height: 1.5;
  opacity: 0.62;
}
.sec-src a { color: inherit; text-decoration: underline; text-underline-offset: 0.18em; }
.fn-ref { font-size: 0.6em; line-height: 0; vertical-align: super; margin-left: 0.15em; }
.fn-ref a { color: inherit; text-decoration: none; }

/* 2026-10-20 (Nick, #website): two-line names, photo centered over the name */
.team-strip li a { display: flex; flex-direction: column; align-items: center; text-align: center; }
.team-strip li a > span { display: flex; flex-direction: column; align-items: center; }
.team-strip .ts-first, .team-strip .ts-last { display: block; white-space: nowrap; }
