/* LIVE: What I run. One organized ledger, seven rows on hairlines, then Before. Normal scroll, no pin.
   The CSS default is the finished state; live.js arms the start states and scrubs them with the scroll. */
#live { --mute: rgba(243, 245, 248, .68); --soft: rgba(243, 245, 248, .8); overflow-x: clip; padding: 11vh var(--pad) 12vh; }
#live .ledger { max-width: 1480px; margin: 0 auto; }
#live .mask { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
#live .mi { display: block; }

/* a solid strip under the fixed nav so its text never prints over the ledger; shown only inside this scene */
#live .navback { position: fixed; top: 0; left: 0; right: 0; height: 66px; z-index: 5; background: var(--black); border-bottom: 1px solid var(--line); opacity: 0; pointer-events: none; transition: opacity .3s; }
#live .navback.on { opacity: 1; }

#live .live-h { font-size: clamp(56px, 9.4vw, 150px); letter-spacing: -0.045em; line-height: .95; padding-bottom: clamp(30px, 5vh, 60px); }
#live .live-h-t { display: inline-block; white-space: nowrap; }
#live .ch { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .16em; margin-bottom: -.16em; }
#live .ch.sp { margin-right: .04em; }
#live .ch > i { display: inline-block; font-style: normal; will-change: transform; }

/* ---- rows ---- */
#live .rows { position: relative; }
#live .hair { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); transform-origin: left center; transition: background-color .35s var(--spring); }
#live .hair-end { position: relative; display: block; top: auto; }
/* the light that runs along a hairline: a short bright segment, 3px tall, flat */
#live .pin { position: absolute; left: 0; top: -1px; width: 90px; height: 3px; background: #fff; opacity: 0; pointer-events: none; will-change: transform; }
#live .row {
  --lw: 224px;
  position: relative; display: grid; align-items: center;
  grid-template-columns: 60px var(--lw) minmax(0, 300px) minmax(0, 1fr) 190px;
  column-gap: clamp(16px, 2.3vw, 36px);
  min-height: 90px; padding: 9px 0;
  color: var(--ink); -webkit-tap-highlight-color: transparent;
  transition: opacity .35s var(--spring);
}
@media (hover: hover) {
  #live .rows:not(.rows-q):hover > .row:not(:hover) { opacity: .42; }
}
#live a.row:hover .hair, #live a.row:focus-visible .hair { background: rgba(255, 255, 255, .85); }
#live a.row:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

#live .ix { display: flex; align-items: center; gap: 9px; }
#live .bulb { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--bulb); flex: none; }
#live .row-x .bulb { background: var(--bulb-red); }
#live .ix b { font-weight: 500; font-size: 13px; letter-spacing: .02em; color: var(--mute); font-variant-numeric: tabular-nums; }

#live .logo { display: flex; align-items: center; height: 72px; }
#live .lg { display: flex; align-items: center; gap: 10px; will-change: transform; }
#live .logo img { display: block; max-width: none; transition: translate .5s var(--spring); }
#live a.row:hover .logo img, #live a.row:focus-visible .logo img { translate: 7px 0; }
#live .l-tn { width: 200px; height: auto; }
#live .l-sy { width: 74px; height: auto; }
#live .l-ju { width: 120px; height: auto; }
#live .l-sr { width: 42px; height: 42px; }
#live .l-sr-t { font-weight: 700; font-size: 27px; letter-spacing: -0.03em; color: var(--ink); transition: translate .5s var(--spring); white-space: nowrap; }
#live a.row:hover .l-sr-t { translate: 7px 0; }
#live .l-cl { width: 138px; height: auto; }
#live .l-om { width: 36px; height: 36px; }
#live .l-ow { width: 172px; height: auto; }

/* Classified: a hard redaction bar with a thin red edge */
#live .bar { position: relative; display: block; width: 224px; height: 44px; background: #000; border: 1px solid rgba(255, 74, 94, .8); transform-origin: left center; }

#live .who { display: block; min-width: 0; }
#live .name { display: block; font-weight: 700; font-size: clamp(26px, 2.5vw, 38px); letter-spacing: -0.035em; line-height: 1.1; }
#live .role { display: block; margin-top: 5px; font-size: 14px; font-weight: 500; color: var(--mute); line-height: 1.35; }
#live .what { display: block; font-size: clamp(17px, 1.3vw, 20px); font-weight: 500; letter-spacing: -0.012em; line-height: 1.35; color: var(--soft); max-width: 40ch; }
#live .what .w { display: inline-block; }
#live .go { display: flex; justify-content: flex-end; align-items: center; gap: 10px; min-width: 0; }
#live .dom { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; color: var(--soft); white-space: nowrap; transition: color .3s; }
#live a.row:hover .dom { color: var(--ink); }
#live .arr { display: inline-block; font-size: 20px; line-height: 1; font-weight: 600; transition: translate .5s var(--spring); }
#live a.row:hover .arr, #live a.row:focus-visible .arr { translate: 5px -5px; }
#live .clock { font-size: 15px; font-weight: 500; color: var(--mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
#live .clock b { font-weight: 600; color: var(--soft); }

/* ---- Before: quieter, same grid, same left edge ---- */
#live .before { margin-top: clamp(48px, 8vh, 96px); }
#live .before-h { font-size: clamp(26px, 2.4vw, 38px); color: var(--soft); font-weight: 700; padding-bottom: clamp(16px, 2.6vh, 26px); }
#live .row-q { min-height: 64px; padding: 12px 0; }
#live .q-name { grid-column: 1 / 3; font-size: clamp(19px, 1.5vw, 23px); font-weight: 600; letter-spacing: -0.02em; color: var(--soft); }
#live .q-role { grid-column: 3 / 5; font-size: 16px; font-weight: 500; color: var(--mute); }
#live .q-year { grid-column: 5; text-align: right; font-size: 16px; font-weight: 500; color: var(--mute); }
#live .q-note { grid-column: 1 / 5; grid-row: 2; margin-top: 8px; max-width: 62ch; font-size: clamp(17px, 1.3vw, 20px); font-weight: 500; letter-spacing: -0.012em; line-height: 1.35; color: var(--soft); }

/* ---- tablet and small laptop (821 to 1360): two lines per row, the sentence gets the full width ---- */
@media (max-width: 1360px) and (min-width: 821px) {
  #live .row {
    --lw: 200px;
    grid-template-columns: 44px var(--lw) minmax(0, 1fr) auto;
    grid-template-areas: "ix logo who go" ". what what what";
    row-gap: 10px; padding: 16px 0 18px;
  }
  #live .ix { grid-area: ix; } #live .logo { grid-area: logo; height: 56px; }
  #live .who { grid-area: who; } #live .what { grid-area: what; max-width: 60ch; } #live .go { grid-area: go; }
  #live .l-tn { width: 172px; } #live .l-cl { width: 132px; } #live .l-ow { width: 140px; } #live .bar { width: 180px; }
  #live .l-ju { width: 104px; } #live .l-sr-t { font-size: 22px; } #live .l-sy { width: 62px; }
  #live .name { font-size: 28px; }
  #live .dom { font-size: 15px; }
  #live .row-q { grid-template-columns: 44px var(--lw) minmax(0, 1fr) auto; }
  #live .q-name { grid-column: 1 / 3; } #live .q-role { grid-column: 3; } #live .q-year { grid-column: 4; }
  #live .q-note { grid-column: 1 / 5; }
}

/* ---- phone: every row stacks, compact ---- */
@media (max-width: 820px) {
  #live { padding: 12vh var(--pad) 12vh; }
  #live .navback { height: 60px; }
  #live .live-h { font-size: clamp(52px, 17vw, 84px); padding-bottom: 24px; }
  #live .row {
    grid-template-columns: minmax(0, 1fr); row-gap: 6px; align-items: start;
    padding: 18px 0 16px; min-height: 0;
  }
  #live .ix { display: none; }
  #live .logo { height: 48px; }
  #live .l-tn { width: auto; height: 28px; } #live .l-sy { width: auto; height: 46px; } #live .l-ju { width: auto; height: 46px; }
  #live .l-sr { width: 34px; height: 34px; } #live .l-sr-t { font-size: 23px; }
  #live .l-cl { width: auto; height: 27px; } #live .l-om { width: 30px; height: 30px; } #live .l-ow { width: auto; height: 21px; }
  #live .bar { width: 168px; height: 36px; }
  #live .who { margin-top: 4px; }
  #live .name { font-size: 26px; }
  #live .role { margin-top: 3px; font-size: 14px; }
  #live .what { font-size: 17px; max-width: none; }
  #live .go { justify-content: flex-start; min-height: 24px; }
  #live .dom { font-size: 15px; }
  #live .row-q { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; min-height: 0; padding: 14px 0; }
  #live .q-name { grid-column: 1; grid-row: 1; font-size: 19px; }
  #live .q-year { grid-column: 2; grid-row: 1; }
  #live .q-role { grid-column: 1 / 3; grid-row: 2; font-size: 15px; }
  #live .q-note { grid-column: 1 / 3; grid-row: 3; margin-top: 6px; font-size: 17px; max-width: none; }
  #live .before { margin-top: 48px; }
}
