/* Home — the tide pool page. */

/* ── hero ──────────────────────────────────── */

.hero {
  display: grid;
  min-height: max(640px, min(94svh, 1040px));
}

.hero .tank__poster {
  transition: opacity 1.2s var(--ease-out);
}

.hero.has-webgl.is-live .tank__poster {
  opacity: 0;
}

.hero.has-webgl.is-settled .tank__poster {
  display: none;
}

.tank__poster--dark,
[data-theme="dark"] .tank__poster--light {
  display: none;
}

[data-theme="dark"] .tank__poster--dark {
  display: block;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 58% 70% at 18% 52%, color-mix(in oklab, var(--bg-deep) 72%, transparent) 0%, transparent 70%),
    linear-gradient(to bottom, color-mix(in oklab, var(--bg-deep) 40%, transparent), transparent 24%);
}

[data-theme="dark"] .hero__scrim {
  background:
    radial-gradient(ellipse 58% 70% at 18% 52%, rgb(5 17 25 / 0.72) 0%, transparent 72%),
    linear-gradient(to bottom, rgb(5 17 25 / 0.6), transparent 26%);
}

.hero__content {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: end;
  gap: 40px;
  padding-top: calc(var(--header-h) + clamp(64px, 11vh, 140px));
  padding-bottom: clamp(32px, 5vh, 56px);
  pointer-events: none;
}

.hero__copy {
  pointer-events: auto;
  max-width: 720px;
  align-self: center;
}

.hero__title {
  display: grid;
  margin: 0 0 clamp(20px, 2.6vw, 30px);
}

.hero__brand {
  font-size: 1rem;
  font-weight: 640;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  margin-bottom: 18px;
}

.hero__line {
  display: block;
  color: var(--ink);
}

.hero__line + .hero__line {
  color: color-mix(in oklab, var(--ink) 82%, var(--current));
}

.hero__lede {
  max-width: 46ch;
  color: var(--ink);
  opacity: 0.86;
}

.intake {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-top: clamp(24px, 3vw, 36px);
  padding: 8px 8px 8px 22px;
  max-width: 640px;
  border-radius: 30px;
  /* solid glass, not backdrop-filter: blurring over a live WebGL canvas re-reads it every
     frame and flickers on some GPUs */
  background: var(--surface-glass-solid);
  box-shadow: var(--shadow-float), 0 0 0 1px color-mix(in oklab, var(--line) 70%, transparent) inset;
  transition: box-shadow var(--t-med) var(--ease-out);
}

.intake:focus-within {
  box-shadow: var(--shadow-float), 0 0 0 1.5px var(--focus) inset, 0 0 0 6px color-mix(in oklab, var(--focus) 16%, transparent);
}

.intake__input {
  flex: 1;
  /* the one-line placeholder below makes its min-content as wide as the example: let the
     row shrink it instead of pushing the submit button out of the pill */
  min-width: 0;
  min-height: 56px;
  max-height: 180px;
  padding: 16px 0 12px;
  border: 0;
  background: transparent;
  resize: none;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
  field-sizing: content;
}

.intake__input::placeholder {
  color: var(--ink-3);
  transition: opacity var(--t-med);
  /* one line: with field-sizing: content an empty textarea takes the placeholder's height,
     so a rotating example that wrapped differently resized the hero, and the tide pool's
     canvas resize showed a blank frame every few seconds */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.intake__input.is-swapping::placeholder {
  opacity: 0;
}

.intake__input:focus-visible {
  outline: none;
}

.intake__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.intake__chips .chip {
  background: var(--surface-glass-solid);
}

.hero__promises {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 22px;
  font-size: 0.875rem;
  font-weight: 540;
  color: var(--ink-2);
}

.hero__promises li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__tick {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--held);
  position: relative;
}

.hero__tick::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 3.6px;
  width: 6px;
  height: 3.6px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg);
}

/* the signed contract figure, pinned to the tank where the live board used to be */
.hero__card {
  container-type: inline-size;
  pointer-events: auto;
  justify-self: end;
  width: min(520px, 100%);
  padding: 24px 30px 22px;
  border-radius: 24px;
  background: var(--surface-glass-solid);
  box-shadow: var(--shadow-float), 0 0 0 1px color-mix(in oklab, var(--line) 60%, transparent) inset;
}

.hero__card-k {
  margin: 0;
}

.hero__card-v {
  margin: 16px 0 12px;
  /* the figure is about 5.3em wide: sized from the card, it fills most of the line at every width */
  font-size: clamp(2.5rem, 5.2vw, 4.75rem);
  font-size: clamp(2.25rem, 16.4cqi, 4.75rem);
  line-height: 0.95;
  font-weight: 360;
  font-stretch: 86%;
  letter-spacing: -0.04em;
  color: var(--ink);
  white-space: nowrap;
}

.hero__card-note {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero__card-note time {
  white-space: nowrap;
}

.hero__card-hint {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid color-mix(in oklab, var(--line) 70%, transparent);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-3);
  text-wrap: pretty;
}

/* "point at one" needs a pointer that can hover; on a phone the card is just the figure */
@media (max-width: 640px), (hover: none) {
  .hero__card-hint {
    display: none;
  }
}

/* specimen annotation: a card tied to the orb by a coral hairline */
.specimen-card {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  width: 280px;
  padding: 14px 16px 12px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-pop), 0 0 0 1px var(--line-soft) inset;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(0.97);
  transition: opacity var(--t-fast) var(--ease-out), transform 60ms linear;
}

.specimen-card.is-on {
  opacity: 1;
  transform: translate3d(var(--x, 0), var(--y, 0), 0) scale(1);
}

.specimen-card__cat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 620;
  color: var(--ink-3);
}

.specimen-card__cat::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot, var(--accent));
}

.specimen-card__title {
  margin: 6px 0 10px;
  font-weight: 620;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.specimen-card__meta {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.specimen-card__budget {
  font-size: 1.25rem;
  font-weight: 520;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.specimen-card__open {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.75rem;
  color: var(--ink-3);
}

.hero .leader {
  z-index: 5;
  opacity: 0;
  transition: opacity var(--t-fast);
}

.hero .leader.is-on {
  opacity: 1;
}

@media (max-width: 1100px) {
  .hero__content {
    /* minmax(0, …), not 1fr (= minmax(auto, 1fr)): an auto minimum lets the intake's one-line
       placeholder widen the whole column past a phone screen on every long example */
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
  }

  .hero__card {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .hero__content {
    padding-top: calc(var(--header-h) + 72px);
  }

  .hero__card {
    padding: 18px 20px 16px;
    border-radius: 20px;
  }

  .hero__card-v {
    margin: 12px 0 10px;
  }

  .intake {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 8px 8px 16px;
    border-radius: 24px;
  }

  .intake .btn {
    width: 100%;
  }
}

/* ── lifecycle rail ────────────────────────── */

.lifecycle__title {
  max-width: 18ch;
}

.lifecycle__lede {
  margin-top: 18px;
}

.rail {
  --n: 6;
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 26px;
}

.rail::before {
  /* the hairline track */
  content: "";
  position: absolute;
  top: 44px;
  left: 18px;
  right: 18px;
  height: 1px;
  background: var(--line-strong);
}

.rail::after {
  /* progress up to the selected stop */
  content: "";
  position: absolute;
  top: 44px;
  left: 18px;
  height: 1.5px;
  width: calc((100% - 36px) * var(--progress, 0.6));
  background: var(--accent);
  transition: width var(--t-slow) var(--ease-out);
}

.rail__stop {
  position: relative;
  padding-right: 18px;
}

.rail__node {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  justify-items: start;
  text-align: left;
}

.rail__n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--line-strong) inset;
  font-size: 0.8125rem;
  font-weight: 620;
  transition: background-color var(--t-med), color var(--t-med), box-shadow var(--t-med);
}

.rail__state {
  font-size: 1.1875rem;
  font-weight: 640;
  font-stretch: 90%;
  letter-spacing: -0.015em;
}

.rail__node:hover .rail__n {
  box-shadow: 0 0 0 1px var(--ink) inset;
}

.rail__node[aria-pressed="true"] .rail__n,
.rail__stop.is-past .rail__n {
  background: var(--ink);
  color: var(--ink-inverse);
  box-shadow: none;
}

.rail__node[aria-pressed="true"] .rail__n {
  background: var(--accent);
  color: #0b2230;
}

.rail__body {
  margin-top: 12px;
  max-width: 24ch;
}

.rail__who {
  font-size: 0.8125rem;
  font-weight: 620;
  color: var(--current);
  margin-bottom: 6px;
}

.rail__what {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-2);
}

@media (max-width: 1100px) {
  .rail {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 0;
    padding-left: 56px;
  }

  .rail::before,
  .rail::after {
    top: 18px;
    bottom: 18px;
    left: 18px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .rail::after {
    width: 1.5px;
    height: calc((100% - 36px) * var(--progress, 0.6));
    bottom: auto;
  }

  .rail__stop {
    padding: 0;
  }

  .rail__node {
    grid-auto-flow: column;
    align-items: center;
    margin-left: -56px;
    gap: 20px;
  }

  .rail__body {
    margin-top: 6px;
    max-width: 52ch;
  }
}

/* worked example */
.ledger {
  margin-top: clamp(40px, 5vw, 56px);
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--r-panel);
  background: var(--surface);
  display: grid;
  gap: 22px;
}

.ledger__cap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.ledger__tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ledger__tile {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface-2);
  transition: background-color var(--t-med), box-shadow var(--t-med);
}

.ledger__tile.is-lit {
  background: var(--held-soft);
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--held) 40%, transparent) inset;
}

.ledger__k {
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.ledger__v {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 420;
  font-stretch: 86%;
  letter-spacing: -0.035em;
}

.ledger__bids {
  display: grid;
}

.ledger__bids li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 14px 4px;
  border-top: 1px solid var(--line-soft);
}

.ledger__bids li.is-chosen .ledger__bid-name {
  font-weight: 640;
}

.ledger__bid-meta {
  font-size: 0.8125rem;
  color: var(--ink-3);
}

.ledger__bid-price {
  font-weight: 600;
  font-size: 1.0625rem;
  min-width: 5.5ch;
  text-align: right;
}

.ledger__note {
  margin: 0;
  font-size: 0.8125rem;
}

@media (max-width: 640px) {
  .ledger__tiles {
    grid-template-columns: 1fr;
  }

  .ledger__bids li {
    grid-template-columns: 1fr auto;
  }

  .ledger__bid-meta {
    grid-column: 1;
    grid-row: 2;
  }
}

/* ── open right now: task "specimen tags" ─── */

.open-now__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px 28px;
  margin-bottom: 32px;
}

.open-now__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.open-now__all {
  margin-left: auto;
  font-weight: 560;
}


/* ── delivered reel ─────────────────────────── */

.reel {
  margin-top: clamp(36px, 4vw, 56px);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.reel__track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 8px var(--margin) 24px;
  animation: ch-reel 90s linear infinite;
}

.reel:hover .reel__track,
.reel:focus-within .reel__track,
.reel.is-offscreen .reel__track,
.ecosystem.is-offscreen .strip__track {
  animation-play-state: paused;
}

@keyframes ch-reel {
  to {
    transform: translateX(-50%);
  }
}

@keyframes ch-strip {
  to {
    transform: translateX(calc(-100% / 3));
  }
}

.work {
  position: relative;
  flex: none;
  width: clamp(220px, 20vw, 300px);
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface);
  transform: perspective(900px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
}

.work:hover {
  box-shadow: var(--shadow-float);
}

.work__media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--surface-2);
}

.work__media img,
.work__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work__dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: rgb(7 22 31 / 0.64);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: lining-nums proportional-nums;
}

.work__body {
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
}

.work__title {
  font-weight: 620;
  font-size: 0.9375rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.work__evidence {
  font-size: 0.75rem;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.work__evidence::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ev, var(--line-strong));
}

.work__evidence--settled {
  --ev: var(--ok);
}

.delivered__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 8px;
}

/* ── numbers ───────────────────────────────── */

.numbers {
  background: var(--surface);
  margin-inline: var(--tank-inset);
  border-radius: var(--r-tank);
}

.numbers__title {
  margin-bottom: clamp(36px, 5vw, 64px);
}

.numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px var(--gutter);
}

.numbers__grid .stat {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.numbers__grid .stat__label {
  order: 2;
  font-weight: 560;
  color: var(--ink-2);
}

.numbers__grid .stat__value {
  order: 1;
  margin: 0;
}

.numbers__grid .stat__note {
  order: 3;
  margin: 0;
}

/* the week's growth reads as a tag, so it is seen next to the big numeral */
.numbers__grid .stat__note[data-stat-delta]:not(:empty) {
  justify-self: start;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
}

.numbers__grid dd {
  margin: 0;
}

.numbers__asof {
  margin-top: 40px;
}

@media (max-width: 900px) {
  .numbers__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── protection ────────────────────────────── */

.protect__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.protect__copy .t-lede {
  margin: 20px 0 32px;
}

.protect__steps {
  display: grid;
  margin-bottom: 32px;
  counter-reset: step;
}

.protect__steps li {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.protect__steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.protect__when {
  font-weight: 640;
}

.protect__what {
  color: var(--ink-2);
}

.protect__art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, color-mix(in oklab, var(--held-soft) 90%, transparent), transparent 66%);
}

.protect__art img {
  width: 82%;
  filter: drop-shadow(0 40px 60px rgb(11 34 48 / 0.18));
}

.protect__cap {
  position: absolute;
  right: 4%;
  bottom: 12%;
}

.annot-inline {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-float);
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.annot-inline .t-num {
  font-size: 1.4rem;
  font-weight: 460;
  color: var(--ink);
  letter-spacing: -0.03em;
}

@media (max-width: 960px) {
  /* keep the object beside the steps on tablets instead of stacking a 440px circle */
  .protect__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 260px);
    align-items: start;
  }

  .protect__steps li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  /* the note hangs under the object rather than covering it */
  .protect__art {
    margin-bottom: 64px;
  }

  .protect__cap {
    left: 50%;
    right: auto;
    bottom: -56px;
    width: max-content;
    max-width: 100%;
    transform: translateX(-50%);
  }
}

@media (max-width: 640px) {
  .protect__grid {
    grid-template-columns: 1fr;
  }

  .protect__art {
    width: min(100%, 320px);
    margin-inline: auto;
  }
}

/* ── builders ──────────────────────────────── */

.builders__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.builders__art {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.builders__art::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.builders__art::after {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 1px dashed color-mix(in oklab, var(--line-strong) 70%, transparent);
}

.builders__art img {
  position: relative;
  z-index: 1;
  width: 88%;
  filter: drop-shadow(0 30px 50px rgb(240 88 79 / 0.18));
  transform: rotate(-8deg);
}

.builders__kicker {
  font-weight: 620;
  color: var(--current);
  margin-bottom: 14px;
}

.builders__copy .t-lede {
  margin: 20px 0 28px;
}

.builders__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0;
}

.builders__facts li {
  display: grid;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-2);
}

.builders__fact {
  font-size: 2rem;
  font-weight: 420;
  font-stretch: 86%;
  letter-spacing: -0.035em;
  color: var(--ink);
}

@media (max-width: 960px) {
  .builders__grid {
    grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
    align-items: start;
  }
}

@media (max-width: 640px) {
  .builders__grid {
    grid-template-columns: 1fr;
  }

  .builders__art {
    width: min(100%, 280px);
    margin-inline: auto;
  }

  .builders__facts {
    grid-template-columns: 1fr;
  }
}

/* ── night chapter (AwwO) ──────────────────── */

.night {
  margin: var(--section-tight) var(--tank-inset) 0;
  border-radius: var(--r-tank);
  overflow: hidden;
  background: #041219;
  color: #e7eef0;
  isolation: isolate;
}

.night__inner {
  position: relative;
  min-height: min(88svh, 860px);
  display: grid;
  align-items: end;
}

.night__plate {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  z-index: -1;
}

.night__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(4 18 25 / 0.92) 0%, rgb(4 18 25 / 0.5) 46%, transparent 72%);
}

.night__content {
  padding-block: clamp(56px, 9vw, 120px);
  max-width: calc(760px + var(--margin) * 2);
  margin-inline: 0;
}

.night__kicker {
  font-weight: 640;
  color: #6cc6c8;
  margin-bottom: 18px;
}

.night__title {
  color: #f3f7f8;
  max-width: 14ch;
}

.night__lede {
  margin: 24px 0 32px;
  max-width: 50ch;
  font-size: var(--fs-body-l);
  line-height: 1.55;
  color: #b8c9cf;
}

.night__link {
  color: #cfe0e4;
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-color: rgb(207 224 228 / 0.4);
}

/* made with AwwO: concept cases on the night field, each labelled illustrative */
.made {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  padding-bottom: clamp(36px, 5vw, 64px);
}

.made__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 14px;
}

.made__title {
  font-weight: 650;
  font-size: 1.125rem;
  color: #f3f8f9;
}

.made__label {
  font-size: 0.8125rem;
  color: #9fd9ea;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  border: 1px solid rgb(159 217 234 / 0.35);
}

.made__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.made__case a {
  display: grid;
  gap: 8px;
  color: #e7eef0;
}

.made__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #0c2230;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.08);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}

.made__media img,
.made__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.made__media video {
  opacity: 0;
  transition: opacity var(--t-med) var(--ease-out);
}

.made__case.is-playing .made__media video {
  opacity: 1;
}

.made__case a:hover .made__media,
.made__case a:focus-visible .made__media {
  transform: translateY(-3px);
  box-shadow: 0 0 0 1px rgb(95 208 242 / 0.6), 0 18px 40px -18px rgb(0 0 0 / 0.6);
}

.made__name {
  font-weight: 620;
  font-size: 0.9375rem;
}

.made__brief {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #a9bdc4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.made__note {
  font-size: 0.8125rem;
  color: #8aa1a9;
}

@media (max-width: 1100px) {
  .made__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .made__list {
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }

  .made__case {
    scroll-snap-align: start;
  }
}

.night__note {
  margin-top: 28px;
  font-size: 0.8125rem;
  color: #7f9aa3;
}

/* ── film ──────────────────────────────────── */

.film__player {
  position: relative;
  margin-top: 32px;
  border-radius: var(--r-panel);
  overflow: hidden;
  background: #0b2230;
  aspect-ratio: 16 / 9;
}

.film__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  color: #fff;
  background: linear-gradient(to top, rgb(7 22 31 / 0.5), transparent 60%);
  transition: opacity var(--t-med);
}

.film__play-disc {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--accent);
  color: #0b2230;
  transition: transform var(--t-med) var(--ease-spring);
}

.film__play:hover .film__play-disc {
  transform: scale(1.06);
}

.film__play-disc .icon {
  fill: currentColor;
  width: 30px;
  height: 30px;
  margin-left: 4px;
}

.film__len {
  font-weight: 620;
  font-size: 0.875rem;
}

.film.is-playing .film__play {
  opacity: 0;
  pointer-events: none;
}

.film__cap {
  margin-top: 14px;
}

/* ── use cases ─────────────────────────────── */

.usecases__title {
  margin-bottom: clamp(36px, 5vw, 60px);
}

.usecases__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.usecase {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  padding: 28px 28px 30px 0;
  border-bottom: 1px solid var(--line);
}

.usecase:not(:nth-child(3n + 1)) {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.usecase__pic {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

.usecase__pic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--t-slow) var(--ease-out);
}

.usecase:hover .usecase__pic img {
  transform: translateY(-4px) rotate(-4deg);
}

.usecase__pic--icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--surface);
  color: var(--current);
  box-shadow: 0 0 0 1px var(--line-soft) inset;
}

.usecase__body {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.usecase__try {
  justify-self: start;
  font-size: 0.875rem;
  font-weight: 560;
}

@media (max-width: 960px) {
  .usecases__list {
    grid-template-columns: 1fr 1fr;
  }

  .usecase,
  .usecase:not(:nth-child(3n + 1)) {
    padding: 24px 20px 24px 0;
    border-left: 0;
  }

  .usecase:nth-child(even) {
    padding-left: 20px;
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 600px) {
  .usecases__list {
    grid-template-columns: 1fr;
  }

  .usecase:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
}

/* ── difference ────────────────────────────── */

.difference__title {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.difference__rows {
  display: grid;
}

.difference__rows > div {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.difference__rows dt {
  font-size: 1.1875rem;
  font-weight: 640;
}

.difference__rows dd {
  margin: 0;
  color: var(--ink-2);
}

.difference__close {
  margin-top: 32px;
  font-style: italic;
  color: var(--ink-2);
  max-width: 52ch;
}

@media (max-width: 760px) {
  .difference__rows > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ── incubator ─────────────────────────────── */

.incubator__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: 28px;
}

.incubator__list a {
  display: grid;
  gap: 8px;
  height: 100%;
  padding: 22px;
  border-radius: var(--r-card);
  background: var(--surface);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med);
}

.incubator__list a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
}

.incubator__name {
  font-weight: 660;
  font-size: 1.0625rem;
}

.incubator__desc {
  color: var(--ink-2);
  font-size: 0.9rem;
}

.incubator__host {
  margin-top: auto;
  font-size: 0.8125rem;
  color: var(--link);
}

@media (max-width: 960px) {
  .incubator__list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .incubator__list {
    grid-template-columns: 1fr;
  }
}

/* ── ecosystem (logo strips live on the night field they were made for) ── */

.ecosystem {
  margin: var(--section-tight) var(--tank-inset) 0;
  border-radius: var(--r-tank);
  background: #07161f;
  color: #e7eef0;
  padding-block: clamp(56px, 7vw, 96px);
  overflow: hidden;
}

.ecosystem__lede {
  color: #9db0b8;
  margin: 12px 0 36px;
}

.strip + .strip {
  margin-top: 28px;
}

.strip__label {
  font-size: 0.8125rem;
  font-weight: 620;
  color: #7f9aa3;
  margin-bottom: 10px;
}

.strip__mask {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.strip__track {
  display: flex;
  width: max-content;
  /* three copies of each strip: one loop moves exactly one copy, so it never snaps back */
  animation: ch-strip 70s linear infinite;
}

.strip:nth-child(odd) .strip__track {
  animation-direction: reverse;
  animation-duration: 80s;
}

.strip__track img {
  height: clamp(44px, 5vw, 64px);
  width: auto;
  max-width: none;
  opacity: 0.9;
}

.ecosystem__investors {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid #1f3a4b;
  color: #b8c9cf;
}

.ecosystem__k {
  font-weight: 640;
  color: #e7eef0;
  margin-right: 10px;
}

.ecosystem .link {
  color: #6cc6c8;
}

/* ── FAQ & closer ──────────────────────────── */

.faq-home__side {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.faq-home__side .t-h2 {
  color: var(--ink);
  font-size: var(--fs-h2);
  font-weight: 640;
}

.closer {
  margin: 0 var(--tank-inset);
  border-radius: var(--r-tank);
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 80% 10%, color-mix(in oklab, var(--lilac) 26%, transparent), transparent 60%),
    radial-gradient(ellipse 50% 60% at 10% 100%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 70%),
    var(--surface);
}

.closer__inner {
  max-width: 1100px;
  margin-inline: auto;
  padding: clamp(72px, 10vw, 144px) var(--margin);
  text-align: center;
}

.closer__title {
  margin-inline: auto;
  max-width: 12ch;
}

.closer__lede {
  margin: 22px auto 34px;
  font-size: var(--fs-body-l);
  color: var(--ink-2);
}

.closer__actions {
  justify-content: center;
}
