/* Rolling Fun — about page. Uses tokens and components from site.css.
   Everything here is prefixed ab- so it never leaks into other pages. */

/* ---------- Page head ---------- */

.ab-head__title { max-width: 11.5em; }
.ab-tenets {
  max-width: 880px;
  margin: clamp(56px, 8vw, 128px) 0 0 auto;
  border-bottom: 1px solid var(--line);
}
.ab-tenets__row {
  position: relative;
  padding: clamp(18px, 2vw, 26px) 0;
}
.ab-tenets .lede { max-width: none; margin-top: 0; }
/* Numbers inside running text stay in the sentence's own face; mono is for tables and labels. */
.ab-tenets .lede .num,
.ab-spec__focus .num,
.ab-pod__lede .num {
  font-size: 1em;
  letter-spacing: inherit;
  font-variant-numeric: proportional-nums lining-nums;
}
.ab-nw { white-space: nowrap; }

/* ---------- § 01 The vehicle ---------- */

.ab-vehicle { padding-top: clamp(24px, 4vw, 64px); }
.ab-vehicle__head { align-items: end; row-gap: clamp(28px, 4vw, 40px); }
.ab-vehicle__title { grid-column: 1 / span 7; max-width: 11em; }

/* AngelList's own logo file is navy on white with no alpha: invert it and screen it onto the canvas. */
/* The blend sits on the revealed element itself, so its fade-in never shows the black field. */
.ab-al {
  grid-column: 9 / -1;
  justify-self: end;
  width: clamp(168px, 21vw, 300px);
  aspect-ratio: 900 / 236;
  overflow: hidden;
  mix-blend-mode: screen;
}
.ab-al img {
  width: 100%;
  margin-top: -13.6%;
  filter: invert(1) grayscale(1) brightness(0.96);
}

.ab-clauses { margin-top: clamp(64px, 8vw, 128px); row-gap: 56px; }
.ab-clause { position: relative; grid-column: span 4; padding-top: 16px; }
.ab-clause__fig {
  margin: clamp(28px, 3.4vw, 52px) 0 clamp(16px, 1.6vw, 22px);
  font-size: clamp(34px, 3.3vw, 52px);
  font-weight: var(--w-display);
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ab-clause__fig .num { font-family: inherit; letter-spacing: inherit; }
.ab-clause__sep { color: var(--dim); }
.ab-clause .body { max-width: 26em; }
.ab-clause .eyebrow { color: var(--ink); }

/* The roll: a scroll scene. Pinned while eight quarters pass. */
.ab-roll { position: relative; margin-top: clamp(96px, 12vw, 176px); }
.ab-roll__pin { display: flex; flex-direction: column; justify-content: center; gap: clamp(32px, 4.4vw, 64px); }
.motion .ab-roll { height: 280vh; margin-top: clamp(24px, 3vw, 48px); }
.motion .ab-vehicle { padding-bottom: clamp(16px, 2vw, 32px); }
.motion .ab-roll__pin { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; padding: 32px 0; }
@media (max-height: 599px) {
  .motion .ab-roll { height: auto; }
  .motion .ab-roll__pin { position: static; min-height: 0; padding: 0; }
}
.ab-roll__title { max-width: 13em; }

.ab-roll__chart {
  --lab: clamp(68px, 7vw, 112px);
  --cols: var(--lab) repeat(8, minmax(0, 1fr)) minmax(18px, 0.55fr);
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--muted);
  user-select: none;
}
.ab-roll__row { display: grid; grid-template-columns: var(--cols); align-items: center; }
.ab-roll__lab { color: var(--muted); transition: color 0.4s ease; }
.ab-roll__row--years { padding-bottom: 8px; }
.ab-roll__year { grid-column: span 4; padding-left: 8px; border-left: 1px solid var(--line-2); color: var(--ink); }
.ab-roll__row--qs { border-bottom: 1px solid var(--line-2); }
.ab-roll__q { padding: 10px 0 10px 8px; border-left: 1px solid var(--line); transition: color 0.3s ease; }
.ab-roll__q.is-now { color: var(--signal); }
.ab-roll__q--more { color: var(--muted); }

.ab-roll__body { position: relative; padding: 6px 0 10px; }
/* Quarter gridlines share the chart's columns, so they always line up. */
.ab-roll__grid { position: absolute; inset: 0; pointer-events: none; align-items: stretch; }
.ab-roll__grid span + span { border-left: 1px solid var(--line); }
.ab-roll__grid span:last-child { border-left-color: transparent; }

.ab-roll__row--lp { height: 38px; margin-bottom: 4px; }
.ab-roll__commit { grid-column: 2 / 10; position: relative; height: 100%; display: flex; align-items: center; }
.ab-roll__commit-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background-image: linear-gradient(90deg, var(--muted) 0 3px, transparent 3px 7px);
  background-size: 7px 1px;
  transform-origin: 0 50%;
}
.ab-roll__commit-t {
  position: relative;
  z-index: 2;
  padding: 0 10px 0 8px;
  background: var(--bg);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.ab-roll__fund { height: clamp(26px, 2.6vw, 34px); }
.ab-roll__fund .ab-roll__lab { padding-left: 0; }
.ab-roll__blk,
.ab-roll__tail,
.ab-roll__cont { position: relative; height: 100%; display: flex; align-items: center; }
.ab-roll__blk { padding: 0 3px 0 1px; }
.ab-roll__blk i {
  display: block;
  width: 100%;
  height: 46%;
  background: var(--ink);
  transform-origin: 0 50%;
  transition: background-color 0.35s ease;
}
.ab-roll__fund.is-now .ab-roll__blk i { background: var(--signal); }
.ab-roll__fund.is-on .ab-roll__lab { color: var(--ink); }
.ab-roll__tail i {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--muted);
  transform-origin: 0 50%;
}
.ab-roll__cont::before {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--muted), transparent);
}
.ab-roll__fund:nth-child(1) .ab-roll__blk { grid-column: 2; }
.ab-roll__fund:nth-child(2) .ab-roll__blk { grid-column: 3; }
.ab-roll__fund:nth-child(3) .ab-roll__blk { grid-column: 4; }
.ab-roll__fund:nth-child(4) .ab-roll__blk { grid-column: 5; }
.ab-roll__fund:nth-child(5) .ab-roll__blk { grid-column: 6; }
.ab-roll__fund:nth-child(6) .ab-roll__blk { grid-column: 7; }
.ab-roll__fund:nth-child(7) .ab-roll__blk { grid-column: 8; }
.ab-roll__fund:nth-child(8) .ab-roll__blk { grid-column: 9; }
.ab-roll__fund:nth-child(1) .ab-roll__tail { grid-column: 3 / 10; }
.ab-roll__fund:nth-child(2) .ab-roll__tail { grid-column: 4 / 10; }
.ab-roll__fund:nth-child(3) .ab-roll__tail { grid-column: 5 / 10; }
.ab-roll__fund:nth-child(4) .ab-roll__tail { grid-column: 6 / 10; }
.ab-roll__fund:nth-child(5) .ab-roll__tail { grid-column: 7 / 10; }
.ab-roll__fund:nth-child(6) .ab-roll__tail { grid-column: 8 / 10; }
.ab-roll__fund:nth-child(7) .ab-roll__tail { grid-column: 9 / 10; }
.ab-roll__fund:nth-child(8) .ab-roll__tail { display: none; }
.ab-roll__cont { grid-column: 10; grid-row: 1; }
.ab-roll__fund .ab-roll__lab { grid-column: 1; grid-row: 1; }
.ab-roll__fund .ab-roll__blk,
.ab-roll__fund .ab-roll__tail { grid-row: 1; }

/* Playhead: the current quarter. */
.ab-roll__head {
  position: absolute;
  top: -40px;
  bottom: 0;
  left: 0;
  width: 1px;
  background: var(--signal);
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}
.ab-roll__head::before {
  content: "";
  position: absolute;
  top: 0;
  left: -3px;
  width: 7px;
  height: 7px;
  background: var(--signal);
}

.ab-roll__cap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.ab-roll__legend { display: inline-flex; align-items: center; gap: 10px; }
.ab-roll__key { display: inline-block; width: 18px; }
.ab-roll__key--blk { height: 8px; background: var(--ink); }
.ab-roll__key--tail { height: 1px; background: var(--muted); }
.ab-roll__now { margin-left: auto; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }

/* ---------- § 02 Fund Data Summary (paper) ---------- */

.ab-spec__head { align-items: end; row-gap: 28px; margin-bottom: clamp(56px, 7vw, 112px); }
.ab-spec__title { grid-column: 1 / span 6; }
.ab-spec__focus { grid-column: 7 / -1; max-width: 30em; margin-top: 0; }
.ab-spec__groups { row-gap: 56px; }
.ab-spec__group { grid-column: span 4; }
.ab-spec__gh {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.ab-spec .dl { border-top-color: var(--ink); }
.ab-spec .dl__row { padding: 13px 0; }
.ab-spec .dl__row dt { transition: color 0.25s ease; }
.ab-spec .dl__row dd { font-size: 16.5px; }
@media (hover: hover) {
  .ab-spec .dl__row:hover dt { color: var(--ink); }
}

/* One quiet hash under the sheet: the 14 terms, digested (full value in the title). */
.ab-digest {
  display: flex;
  justify-content: flex-end;
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.6;
}
.ab-digest__hash { white-space: nowrap; }

/* ---------- § 03 Carry Share Program ---------- */

.ab-carry__grid { row-gap: 48px; }
.ab-carry__lead { grid-column: 1 / span 7; }
.ab-carry__title { max-width: 9em; }
.ab-carry__lede { margin-top: clamp(28px, 3vw, 40px); color: var(--ink); max-width: 28em; }
.ab-carry__body { grid-column: 9 / -1; align-self: end; }
.ab-carry__karma { color: var(--ink); }

.ab-post {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 24px;
  margin-top: clamp(88px, 11vw, 168px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.ab-post__meta {
  grid-column: 1 / span 4;
  display: grid;
  align-content: start;
  gap: 6px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}
.ab-post__who { display: grid; gap: 2px; }
.ab-post__handle,
.ab-post__when { color: var(--muted); }
.ab-post__q {
  grid-column: 5 / -1;
  font-size: clamp(24px, 2.5vw, 40px);
  font-weight: var(--w-display);
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: pretty;
}
.ab-post__q p + p { margin-top: 0.6em; }
.ab-post__at { color: var(--muted); }

/* ---------- § 04 Podcast ---------- */

.ab-pod__grid { row-gap: 64px; align-items: start; }
.ab-pod__aside { grid-column: 1 / span 5; }
.ab-pod__title { max-width: 8em; }
/* The verbatim headphones, drawn as a monochrome line glyph in ink, not the glossy system emoji. */
.ab-emoji {
  display: inline-block;
  font-family: "Noto Emoji", sans-serif;
  font-weight: 300;
  font-size: 0.62em;
  line-height: 1;
  vertical-align: 0.18em;
  color: var(--muted);
}
.ab-pod__lede { margin-top: clamp(24px, 3vw, 36px); }

.ab-photo { margin-top: clamp(40px, 5vw, 64px); max-width: 460px; }
.ab-photo__frame {
  position: relative;
  aspect-ratio: 521 / 504;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ab-photo__frame img,
.ab-photo__frame canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ab-photo__frame img { z-index: 1; transition: opacity 0.7s ease; }
.ab-photo__frame canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
.ab-photo.is-dithered .ab-photo__frame img { opacity: 0; }
.ab-photo.is-dithered.is-colour .ab-photo__frame img { opacity: 1; }
@media (hover: hover) {
  .ab-photo.is-dithered .ab-photo__frame:hover img { opacity: 1; }
}
.ab-photo__cap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}
.ab-photo__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 2px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.25s ease;
}
.ab-photo__toggle[hidden] { display: none; }
.ab-photo__state {
  padding: 1px 9px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--muted);
}
.ab-photo__toggle[aria-pressed="true"] .ab-photo__state { color: var(--signal); box-shadow: inset 0 0 0 1px currentColor; }
@media (hover: hover) {
  .ab-photo__toggle:hover { color: var(--ink); }
}

.ab-eps { grid-column: 7 / -1; border-top: 1px solid var(--line); counter-reset: ep; }
.ab-eps li { border-bottom: 1px solid var(--line); }
.ab-ep {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(12px, 1.6vw, 24px);
  align-items: baseline;
  min-height: 44px;
  padding: clamp(20px, 2vw, 28px) 0;
  isolation: isolate;
}
.ab-ep::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * clamp(10px, 1.2vw, 18px));
  z-index: -1;
  border-radius: var(--r-sm);
  background: var(--bg-2);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.ab-ep__body { display: grid; gap: 8px; }
.ab-ep__t {
  font-size: 14px;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--muted);
}
.ab-ep__d {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: pretty;
}
.ab-ep__host {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
.ab-ep__arrow { display: inline-block; transition: transform 0.45s var(--ease), color 0.3s ease; }
.ab-ep:focus-visible { outline-offset: 6px; }
@media (hover: hover) {
  .ab-ep:hover::before { opacity: 1; }
  .ab-ep:hover .ab-ep__arrow { color: var(--signal); }
  .ab-ep:hover .ab-ep__arrow { transform: translate3d(3px, -3px, 0); }
}
.ab-ep:focus-visible::before { opacity: 1; }

/* ---------- § 05 CTA ---------- */

.ab-cta { isolation: isolate; }
.ab-cta > :not(.ab-cta__mark) { position: relative; z-index: 1; }
.ab-cta__title { max-width: 9em; }
.ab-cta__mark {
  position: absolute;
  top: 50%;
  right: clamp(-120px, -6vw, -40px);
  width: clamp(240px, 36vw, 560px);
  margin-top: calc(clamp(240px, 36vw, 560px) * -0.476);
  color: color-mix(in srgb, var(--ink) 5%, transparent);
  will-change: transform;
}

/* ---------- Responsive ---------- */

@media (min-width: 1024px) {
  .ab-pod__aside { position: sticky; top: calc(var(--nav-h) + 32px); }
}
@media (max-width: 1099px) {
  .ab-spec__group { grid-column: span 6; }
  .ab-carry__lead { grid-column: 1 / -1; }
  .ab-carry__body { grid-column: 1 / span 9; }
}
@media (max-width: 1023px) {
  .ab-vehicle__title { grid-column: 1 / -1; }
  .ab-al { grid-column: 1 / -1; justify-self: start; }
  .ab-clause { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); column-gap: var(--gap); }
  .ab-clause .eyebrow { grid-column: 1 / -1; }
  .ab-clause__fig { margin: 28px 0 0; white-space: normal; }
  .ab-clause .body { margin-top: 28px; }
  .ab-spec__title,
  .ab-spec__focus { grid-column: 1 / -1; }
  .ab-pod__aside,
  .ab-eps { grid-column: 1 / -1; }
  .ab-photo { max-width: 420px; }
  .ab-post__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; }
  .ab-post__q,
  .ab-post__src { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .ab-clause { display: block; }
  .ab-clause__fig { margin: 24px 0 14px; }
  .ab-clause .body { margin-top: 0; }
  .ab-spec__group,
  .ab-carry__body { grid-column: 1 / -1; }
  .ab-spec .dl__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--gap); }
  .ab-roll__chart { --lab: 34px; font-size: 12px; }
  .ab-roll__row--qs .ab-roll__lab { visibility: hidden; }
  .ab-roll__cap { font-size: 13px; gap: 8px 20px; }
  .ab-roll__row--lp { height: auto; min-height: 38px; padding: 6px 0; }
  .ab-roll__commit-t { white-space: normal; text-overflow: clip; }
  .ab-roll__q { padding-left: 4px; }
  .ab-roll__year { padding-left: 4px; }
  .ab-roll__now { margin-left: 0; width: 100%; }
  .ab-ep { grid-template-columns: minmax(0, 1fr); }
  .ab-ep__host { grid-column: 1; }
  .ab-cta__mark { top: auto; bottom: -56px; right: -56px; margin-top: 0; width: 200px; }
  .ab-cta .cta__actions .btn { flex: 1 1 100%; justify-content: space-between; }
}
@media (max-width: 420px) {
  .ab-carry .index__meta,
  .ab-next .index__meta { display: none; }
}

/* ---------- Choreography ----------
   Blocks arrive whole: the rule draws, then entries print in order (delays set in about.js).
   A block flicked past fast lands complete, with no half-built frame. */
.ab-index { position: relative; border-top-color: transparent; }
.ab-rule { position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--line); }
.ab-tenets__row::before,
.ab-clause::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--line);
  transform-origin: 0 50%;
}
.motion [data-item] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.8s ease, transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.motion .ab-tenets__row[data-item]::before,
.motion .ab-clause[data-item]::before {
  transform: scaleX(0);
  transition: transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.motion .dl__row[data-item] { transform: translate3d(0, 8px, 0); transition-duration: 0.5s, 0.7s; }
.motion [data-block].is-in [data-item] { opacity: 1; transform: none; }
.motion [data-block].is-in .ab-tenets__row[data-item]::before,
.motion [data-block].is-in .ab-clause[data-item]::before { transform: none; }
.motion [data-block].is-instant [data-item],
.motion [data-block].is-instant [data-item]::before { transition: none; }

/* Mona Sans' tabular figures swap in a slashed zero and monospaced digits, which read as code.
   On this page figures stay proportional so they belong to the sans around them. */
#main .num,
.ab-roll__chart,
.ab-roll__now,
.ab-ep__t { font-variant-numeric: proportional-nums lining-nums; }
