/* Page styles: /station/segues/ (segues). Owned by this page's agent. Shared styles live in /assets/css/site.css. */

/* Hero: "capability to be confirmed" marker */
.segues-confirm { margin-top: 14px; color: var(--muted); }
/* a placeholder note under a lead: leave room for its tag, which sits above the outline */
.segues-note { margin-top: 16px; }

/* ---------------------------------------------------------------------------
   Chores: every row is struck through and tagged "Automatic".
   The shared strike line is drawn across the middle of the whole item, which
   falls between the lines once the text wraps on a phone. Here the line is
   drawn on the inline text instead, so it follows each line of a wrapped row.
--------------------------------------------------------------------------- */
.segues-chores li > span { display: flex; flex: 1 1 auto; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; }
.segues-chores li > span::after { display: none; }
.segues-chores__t { min-width: 0; }
.segues-chores__t span { background: linear-gradient(var(--muted), var(--muted)) no-repeat 0 56% / 0% 2px; transition: background-size 0.5s steps(10); }
.segues-chores li.is-struck .segues-chores__t span,
html:not(.js) .segues-chores__t span { background-size: 100% 2px; }
.segues-chores__tag { flex: none; }
html.js:not(.no-reveal) .segues-chores__tag { opacity: 0; transition: opacity 0.3s steps(3) 0.4s; }
html.js .segues-chores li.is-struck .segues-chores__tag { opacity: 1; }

/* ---------------------------------------------------------------------------
   Hero widget: one transition (listen, mix, play)
--------------------------------------------------------------------------- */
.segues-tl { --g: 78px; }
.segues-tl .panel__bar,
.segues-break .panel__bar { flex-wrap: wrap; }
.segues-tl__read { display: inline-flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--muted); }
.segues-tl__read b { min-width: 3.2em; font-family: var(--font-display); font-weight: 400; text-align: right; color: var(--accent); font-variant-numeric: tabular-nums; }
.segues-tl__cells { display: inline-flex; gap: 2px; }
.segues-tl__cells i { width: 5px; height: 10px; background: var(--panel-line-strong); border-radius: 1px; }
.segues-tl__cells i.is-on { background: var(--accent); }

.segues-tl__stage { padding: 34px 16px 18px calc(16px + var(--g)); }
.segues-tl__tracks { position: relative; }
.segues-tl__lane { position: relative; padding-top: 26px; }
.segues-tl__name { position: absolute; left: calc(-1 * var(--g)); top: 26px; display: flex; align-items: center; height: 42px; color: var(--subtle); }
.segues-tl__tag { position: absolute; right: 0; top: 3px; opacity: 0; transition: opacity 0.3s steps(3); }
.segues-tl__tag.is-on { opacity: 1; }
.segues-tl__track {
  position: relative;
  height: 42px;
  background-color: var(--panel);
  background-image: linear-gradient(to right, var(--panel-line) 1px, transparent 1px);
  background-size: 5% 100%;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
}
.segues-tl__clip {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: var(--l, 0%);
  width: var(--w, 40%);
  padding: 3px;
  overflow: hidden;
  background: var(--panel-raised);
  border: 1px solid var(--panel-line-strong);
  border-radius: var(--radius);
  transition: left 1.2s steps(12), width 1.2s steps(12), opacity 0.6s steps(4), border-color 0.4s steps(2);
}
.segues-tl__clip .wave { height: 100%; gap: 1px; }
.segues-tl__clip--voice { opacity: 0.55; }
.segues-tl__clip--voice .wave i.is-on { background: var(--text); }
.segues-tl__clip--bed { opacity: 0; }
.segues-tl__clip--bed .wave i.is-on { background: var(--accent-dim); }
.segues-tl__cliplabel { position: absolute; left: 3px; bottom: 2px; padding: 0 4px; font-size: 0.625rem; line-height: 1.5; white-space: nowrap; color: var(--muted); background: var(--panel-black); border-radius: 1px; }
.segues-tl.is-mixed .segues-tl__clip { border-color: var(--accent-dim); }
.segues-tl.is-mixed .segues-tl__clip--voice,
.segues-tl.is-mixed .segues-tl__clip--bed { opacity: 1; }

.segues-tl__post {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--post, 58%);
  width: 2px;
  margin-left: -1px;
  background: repeating-linear-gradient(to bottom, var(--accent) 0 4px, transparent 4px 8px);
  opacity: 0;
  transition: left 1.2s steps(12), opacity 0.3s steps(3);
}
.segues-tl__post.is-on { opacity: 1; }
.segues-tl__post .tag { position: absolute; left: 50%; bottom: 100%; margin-bottom: 4px; transform: translateX(-50%); background: var(--panel-black); }
.segues-tl__scan,
.segues-tl__playhead { position: absolute; top: 22px; bottom: 0; left: var(--x, 0%); opacity: 0; pointer-events: none; }
.segues-tl__scan { width: 6px; margin-left: -3px; background: repeating-linear-gradient(to bottom, var(--text) 0 6px, transparent 6px 8px); }
.segues-tl__playhead { width: 2px; margin-left: -1px; background: var(--text); }
.segues-tl__playhead::before { content: ''; position: absolute; top: -6px; left: -3px; width: 8px; height: 6px; background: var(--text); }
.segues-tl__scan.is-on,
.segues-tl__playhead.is-on { opacity: 1; }
.segues-tl.is-snap .segues-tl__clip,
.segues-tl.is-snap .segues-tl__post,
.segues-tl.is-snap .segues-tl__tag { transition: none; }
.segues-tl .live.is-done { color: var(--accent); }

@media (max-width: 600px) {
  .segues-tl { --g: 0px; }
  .segues-tl__stage { padding-inline: 12px; }
  .segues-tl__name { left: 0; top: 4px; height: auto; }
  .segues-tl__cells { display: none; }
}

/* ---------------------------------------------------------------------------
   Card glyphs: 24 x 8 LED matrix, drawn in segues.js
--------------------------------------------------------------------------- */
.segues-glyph { display: block; width: 168px; height: 56px; }

/* ---------------------------------------------------------------------------
   Demo: one break, layer by layer
--------------------------------------------------------------------------- */
.segues-break { min-width: 0; }
.segues-break__layers { display: inline-flex; align-items: center; gap: 8px; }
.segues-break__layers b { font-family: var(--font-display); font-weight: 400; font-size: 1.125rem; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.segues-break__spec { width: 44px; height: 18px; gap: 1px; }
.segues-break__spec i { background: var(--muted); transition: none; }
.segues-break__view {
  position: relative;
  height: 216px;
  overflow: hidden;
  background-color: var(--panel);
  background-image:
    linear-gradient(to right, var(--panel-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--panel-line) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid var(--panel-line);
  border-radius: var(--radius);
}
.segues-break__track { position: absolute; top: 6px; bottom: 6px; left: 0; width: 100%; }
.segues-break__track.is-zooming { transition: width 0.5s steps(6), left 0.5s steps(6); }
.segues-break__clip {
  position: absolute;
  top: calc(var(--lane) * 23px);
  left: var(--a);
  width: var(--w);
  height: 20px;
  padding: 2px;
  background: var(--panel-raised);
  border: 1px solid var(--panel-line-strong);
  border-radius: var(--radius);
  opacity: 0.18;
  transition: opacity 0.2s steps(2), border-color 0.2s steps(2);
}
.segues-break__clip.is-on { opacity: 1; }
.segues-break__clip.is-live { border-color: var(--accent); }
.segues-break__clip .wave { height: 100%; gap: 1px; }
.segues-break__clip.is-live .wave i.is-on { background: var(--text); }
.segues-break__name { position: absolute; top: 50%; left: 100%; margin-left: 6px; transform: translateY(-50%); font-size: 0.625rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; color: var(--subtle); }
.segues-break__clip.is-live .segues-break__name { color: var(--accent); }
.segues-break__clip--left .segues-break__name { left: auto; right: 100%; margin: 0 6px 0 0; }
.segues-break__playhead { position: absolute; top: -6px; bottom: -6px; left: var(--x, 0%); z-index: 2; width: 2px; margin-left: -1px; background: var(--text); opacity: 0; }
.segues-break__playhead.is-on { opacity: 1; }
.segues-break .demo__caption b { font-weight: 500; color: var(--accent); }
.segues-break .demo__caption { min-height: 3.2em; }
/* The key names its action (Play, Pause, Replay), so it carries no pressed state; the glyph follows the class. */
.segues-break__key { min-width: 108px; }
.segues-break__key.is-pressed > .key__glyph { clip-path: polygon(0 0, 35% 0, 35% 100%, 0 100%, 0 0, 65% 0, 100% 0, 100% 100%, 65% 100%, 65% 0); }

/* ---------------------------------------------------------------------------
   At scale: placeholder figure and a live counter that is off until the figure exists
--------------------------------------------------------------------------- */
.segues-scale { gap: clamp(18px, 3vw, 28px); }
.segues-scale__stat { display: block; width: fit-content; margin: 18px auto clamp(14px, 2vw, 22px); }
.segues-scale__digits { display: flex; align-items: flex-end; justify-content: center; gap: clamp(4px, 0.8vw, 8px); }
.segues-scale__digits i { width: clamp(26px, 6.4vw, 72px); height: clamp(40px, 10vw, 112px); background: var(--panel-raised); border: 1px solid var(--panel-line-strong); border-radius: var(--radius); }
.segues-scale__digits b { width: clamp(6px, 1.2vw, 12px); height: clamp(10px, 2.4vw, 24px); background: var(--subtle); border-radius: 1px; }
.segues-ticker { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 12px; padding: clamp(20px, 3vw, 32px) clamp(24px, 5vw, 56px); text-align: center; }
.segues-ticker__n { font-family: var(--font-display); color: var(--accent); }
/* off: unlit digits, until Ether's monthly figure is in data-monthly */
.segues-ticker.is-off .segues-ticker__n { color: var(--panel-line-strong); }
.segues-ticker.is-off .small { color: var(--subtle); }
.segues-ticker:not(.is-off) .segues-ticker__off { display: none; }

/* Chain: keep inline links readable inside the centred steps */
body[data-page='segues'] .chain__body .inline { white-space: nowrap; }
