/* Home: quote band. Owned by the quote section agent (homepage 100x work).

   Round 3 (2026-09-24), after the user called the reader "too plain": a slider (a sentence, Earlier
   and Later, a ruler of years) reads as a carousel however much it is polished, and the sections
   around it already own the paper (the desk) and the ruler (creds, desk). So the band became a flight:

   Seven sentences hang in depth, one behind another, in the order he wrote them. Only the years show
   up the corridor, 2011, 2013, 2015, receding to the upper right. Scrolling carries the camera
   forward: the next year grows as it comes, lands as the heading of its sentence, and the words
   resolve around it; the sentence just read flies past. Time is the depth. A far year can be clicked
   to fly there, the pointer tilts the view a little, and his point lights in lightbox blue once a
   sentence has landed.

   quote.js does the flight and adds .quote--live. Without it (no script, or reduced motion) this is a
   plain dark band: the 2024 sentence alone with no script, all seven in a column under reduced motion.
   The round 2 reader is in tools/home-100x/quote/round2-snapshot/. */

.quote {
  --quote-flight: 1; /* quote.js reads this: if this file failed to load, it leaves the static line */
  --quote-ease: cubic-bezier(0.28, 0.11, 0.32, 1);
  --quote-step: 56vh;
  position: relative;
  background: var(--ink);
  color: #fff;
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
}
.quote-world { position: relative; }
.quote-line { margin: 0; max-width: 50rem; }
.quote-line + .quote-line { margin-top: clamp(3rem, 6vw, 5rem); }

/* ---------- the words: one face, one weight, sized by the sentence's length ---------- */
.quote-text {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: var(--quote-fs, 2.6rem);
  line-height: 1.2;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}
.quote-line[data-quote-len="s"] { --quote-fs: clamp(2.2rem, 1.2rem + 3vw, 3.9rem); }
.quote-line[data-quote-len="m"] { --quote-fs: clamp(1.6rem, 0.95rem + 2.3vw, 3rem); }
.quote-line[data-quote-len="l"] { --quote-fs: clamp(1.4rem, 0.85rem + 1.9vw, 2.5rem); }
/* the opening mark hangs into the margin, so the words, the year and the source share one edge */
.quote-open { margin-left: -0.44em; color: var(--lightbox); }
/* a gloss in brackets is ours, not his: quieter than his words, never louder */
.quote-gloss { color: rgba(255, 255, 255, 0.6); }
/* his point: lit in lightbox blue (13:1 on ink); in flight it waits for the sentence to land */
.quote-key { color: var(--lightbox); }

/* the source: the editorial's title is the link, the byline under it */
.quote-src { margin-top: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.3; }
.quote-src__t {
  font-family: var(--display); font-weight: 600; font-size: 1.12rem; line-height: 1.3; color: #fff; text-decoration: none;
  background-image: linear-gradient(var(--lightbox), var(--lightbox)); background-size: 0% 1px;
  background-position: 0 calc(100% - 0.66rem); background-repeat: no-repeat;
  padding: 0.72rem 0; transition: background-size 0.45s var(--quote-ease), color 0.3s var(--quote-ease);
}
.quote-src__t::after { content: '\2197'; content: '\2197' / ''; display: inline-block; margin-left: 0.4rem; font-family: var(--sans); font-weight: 500; font-size: 0.9em; color: var(--lightbox); transition: translate 0.35s var(--ease-spring); }
.quote-src__t:hover { color: var(--lightbox); background-size: 100% 1px; }
.quote-src__t:hover::after { translate: 2px -2px; }
.quote-src__m { display: block; margin-top: 0.3rem; font-size: 0.95rem; line-height: 1.5; color: rgba(255, 255, 255, 0.66); }

/* the year each sentence is filed under (quote.js adds it, as a button that flies there) */
.quote-yr {
  display: block;
  margin: 0 0 clamp(0.6rem, 1.4vw, 1.1rem) -0.04em;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(4.25rem, 2.6rem + 5vw, 8.5rem);
  line-height: 0.86;
  letter-spacing: -0.035em;
  font-variant-numeric: lining-nums;
  color: var(--lightbox);
  cursor: pointer;
}
.quote-yr:focus-visible { outline: 2px solid var(--lightbox); outline-offset: 6px; border-radius: 4px; }

/* ---------- the flight (quote.js) ---------- */
.quote--live { padding-block: 0; }
/* the scene's own height, then one step per sentence after the first, and a tail (quote.js sets the units) */
.quote--live .quote-track { position: relative; height: calc(100vh - var(--nav-h) + var(--quote-units, 6.6) * var(--quote-step)); }
.quote--live .quote-scene {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow: hidden;
  overflow: clip; /* clip, not hidden: focus moving to a far sentence must never scroll the scene */
}
.quote--live .quote-wrap { position: relative; height: 100%; }
.quote--live .quote-world { position: absolute; inset: 0; }
.quote--live .quote-line {
  position: absolute;
  left: 0;
  top: 0;
  width: min(50rem, 66%);
  max-width: none;
  margin: 0;
  transform-origin: 0 0;
  pointer-events: none;
}
.quote--live .quote-line + .quote-line { margin-top: 0; }
/* quote.js sets, per sentence: --qa, how present its words are (1 in focus, 0 far or passed), and
   --qy, how bright its year is (quiet over its own words, bright while it is still ahead) */
.quote--live .quote-yr {
  color: rgba(191, 217, 238, var(--qy, 0.2));
  pointer-events: auto;
  transition: color 0.35s var(--quote-ease), scale 0.45s var(--quote-ease);
  transform-origin: 0 100%;
}
.quote--live .quote-text,
.quote--live .quote-src { opacity: var(--qa, 0); }
.quote--live .quote-line.is-near .quote-text,
.quote--live .quote-line.is-near .quote-src { pointer-events: auto; }
/* a year still ahead answers the pointer: it brightens and leans in, and a click flies there */
@media (hover: hover) and (pointer: fine) {
  .quote--live .quote-line.is-ahead .quote-yr:hover { color: var(--lightbox); scale: 1.06; }
}
.quote--live .quote-line.is-gone { visibility: hidden; }

/* what a year ahead holds: its editorial's title, beside it, arriving the Apple way */
.quote-peek {
  position: absolute;
  z-index: 400;
  left: 0;
  top: 0;
  width: max-content;
  max-width: 20rem;
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #fff;
  opacity: 0;
  filter: blur(6px);
  translate: -6px -50%;
  pointer-events: none;
  transition: opacity 0.25s var(--quote-ease), filter 0.3s var(--quote-ease), translate 0.4s var(--quote-ease);
}
.quote-peek.is-on { opacity: 1; filter: blur(0); translate: 0 -50%; }

/* his point waits for its sentence to land, then lights and draws its line of light */
.quote--live .quote-key {
  color: #fff;
  background-image: linear-gradient(var(--lightbox), var(--lightbox));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 0% 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: color 0.6s var(--quote-ease), background-size 0.8s var(--quote-ease) 0.15s;
}
.quote--live .quote-line.is-landed .quote-key { color: var(--lightbox); background-size: 100% 2px; }

@media (max-width: 899px) {
  .quote { --quote-step: 62vh; }
  .quote--live .quote-line { width: 100%; }
  .quote-src__t { font-size: 1.02rem; }
  .quote-src__m { font-size: 0.9rem; margin-top: 0.2rem; }
}

/* reduced motion: no flight; every sentence in a column, each under its year */
.quote--list .quote-yr { font-size: clamp(2.5rem, 1.8rem + 2.5vw, 4rem); color: rgba(191, 217, 238, 0.5); cursor: auto; }
@media (prefers-reduced-motion: reduce) {
  .quote-src__t, .quote-src__t::after { transition: none; }
}
@media (forced-colors: active) {
  .quote--live .quote-text, .quote--live .quote-src { opacity: 1; }
}
