/* Homepage: the stage (number, capsule, queue), the shelf of capsule cards, the record teaser. */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 5fr) auto minmax(0, 4fr); gap: clamp(12px, 2.5vw, 48px); align-items: center; padding: 76px var(--pad) 0; overflow: hidden; }
.left { align-self: stretch; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-bottom: 7vh; position: relative; z-index: 2; }
.bignum { font-size: clamp(150px, 21vw, 340px); line-height: .78; margin-left: -.05em; display: flex; align-items: flex-start; }
.bignum sup { font: 300 .2em/1 var(--sans); letter-spacing: 0; margin: .22em 0 0 .12em; color: var(--dim); }
.what { margin-top: clamp(20px, 3.6vh, 40px); transition: opacity .3s; }
.bignum { transition: opacity .28s; }
.what.swap, .bignum.swap { opacity: 0; }
.what h2 { font-size: clamp(26px, 2.5vw, 40px); }
.what h2 small { font: 400 12px var(--mono); letter-spacing: .08em; color: var(--glow); vertical-align: .55em; margin-right: 12px; }
.what p { color: var(--dim); margin-top: 8px; max-width: 32em; }
.left .facts { margin-top: clamp(20px, 3.6vh, 36px); width: min(100%, 520px); }
.left .go { margin-top: clamp(18px, 3vh, 30px); }
#stage { height: min(84vh, 880px); align-self: center; }

.queue { align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding-bottom: 4vh; position: relative; z-index: 2; }
.queue .h { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.queue ol { list-style: none; padding: 0; }
.row { position: relative; display: grid; grid-template-columns: 3.6em 4.4em 1fr auto; gap: 10px; align-items: baseline; padding: clamp(7px, 1.25vh, 12px) 0; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 14px; transition: color .3s, padding .5s var(--ease); }
.row .d, .row .t { font: 400 12px var(--mono); letter-spacing: .04em; }
.row .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .p { font: 400 14px var(--mono); font-variant-numeric: tabular-nums; }
.row:hover, .row:focus-visible { color: var(--fg); }
.row.on { color: var(--fg); padding-left: 16px; }
.row.on::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 12px var(--glow); }
.row::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--glow); transform: scaleX(0); transform-origin: left; }
.row.on.run::after { transform: scaleX(1); transition: transform 7s linear; }

.queue .more { padding: 14px 0 0; transition: color .3s; }
.queue .more:hover { color: var(--fg); }
.say { position: absolute; left: var(--pad); bottom: 26px; z-index: 2; max-width: 32em; color: var(--dim); font-size: 13px; }
.say h1 { color: var(--fg); font-size: clamp(16px, 1.3vw, 19px); letter-spacing: -.01em; line-height: 1.4; margin-bottom: 4px; }
.scroll { position: absolute; right: var(--pad); bottom: 26px; z-index: 2; }
.scroll:hover { color: var(--fg); }

.band { padding: clamp(70px, 12vh, 150px) var(--pad) 0; }
.sechead { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
.sechead .hint { white-space: nowrap; flex: none; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(190px, 17vw, 250px); gap: 1px; background: var(--line); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; cursor: grab; }
.strip::-webkit-scrollbar { display: none; }
.strip.dragging { cursor: grabbing; }
.strip.dragging .card { pointer-events: none; }
.card { position: relative; background: var(--bg); padding: 16px 16px 18px; display: flex; flex-direction: column; min-height: 420px; transition: background .4s; user-select: none; }
.card:hover, .card:focus-visible { background: var(--bg-2); }
.card:focus-visible { outline-offset: -3px; }        /* inside the card: the strip would clip a ring drawn outside */
.card-top { display: flex; justify-content: space-between; }
.card .mini { height: 250px; margin: 8px auto 0; transition: transform .7s var(--ease); }
.card:hover .mini { transform: translateY(-8px) scale(1.03); }
.card .pct { font-size: 56px; line-height: 1; letter-spacing: -.05em; margin-top: auto; }
.card .pct sup { font: 300 .32em var(--sans); color: var(--dim); vertical-align: 1.5em; margin-left: .15em; letter-spacing: 0; }
.card h3 { font-size: 16px; margin-top: 8px; letter-spacing: -.01em; }
.card p { color: var(--dim); font-size: 13px; line-height: 1.4; margin-top: 2px; min-height: 2.8em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.record { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--pad); align-items: end; }
.zero { font-size: clamp(130px, 19vw, 300px); line-height: .8; view-transition-name: vt-tally; }   /* morphs into the track record's figure */
.zero span { color: var(--dim); }                      /* the total carries meaning: not --faint */
.line { position: relative; height: 150px; margin-top: 24px; border-bottom: 1px solid var(--line); }
.line i { position: absolute; bottom: -4px; width: 7px; height: 7px; margin-left: -3px; border-radius: 50%; border: 1px solid var(--fg); background: var(--bg); }
.line i.first { background: var(--glow); border-color: var(--glow); box-shadow: 0 0 14px var(--glow); }
.line span { position: absolute; transform: translateX(-50%); white-space: nowrap; background: var(--bg); padding: 0 4px; z-index: 1; }
.line span.end { transform: translateX(-100%); padding-right: 0; }      /* a label near the end stays on the line */
.line .stem { position: absolute; bottom: 0; width: 1px; background: var(--line); }
.line .today { left: 0; bottom: -26px; transform: none; }
.notes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--pad); margin-top: 44px; }
.notes li { border-top: 1px solid var(--line); padding-top: 12px; color: var(--dim); font-size: 14px; }
.notes b { display: block; color: var(--fg); font-weight: 400; margin-bottom: 4px; }

/* room for the statement and the scroll cue under the centred columns, also on short laptop screens */
@media (min-width: 1021px) {
  .left { padding-bottom: max(7vh, 116px); }
  .queue { padding-bottom: max(4vh, 60px); }
}
@media (max-width: 1020px) {
  .hero { grid-template-columns: minmax(0, 1fr) auto; padding-bottom: 28px; align-items: start; }
  .left { padding: 3vh 0 0; }
  #stage { height: min(56vh, 520px); margin-right: -4%; }
  .queue { grid-column: 1 / -1; padding: 12px 0 0; }
  .row { padding: 13px 0; }                             /* 44px tap height on touch layouts */
  .say { position: static; grid-column: 1 / -1; margin-top: 12px; }
  .scroll { display: none; }
  .record { grid-template-columns: 1fr; }
  .notes { grid-template-columns: 1fr; gap: 18px; }
}
@media (hover: none) { .sechead .hint { display: none; } }       /* touch screens swipe the strip anyway */
@media (max-width: 560px) {
  .bignum { font-size: 38vw; }
  .left .facts { grid-auto-flow: row; grid-template-columns: auto 1fr; gap: 14px 24px; }
  .left .facts > :first-child { grid-column: 1 / -1; }
  #stage { height: 46vh; margin-right: -9%; }
  .tick { display: none; }
}
