/* Fed day meets Big Tech: the gamma ladder hero and the post's two body blocks (the Wednesday
   timeline and "Built with EZPZ"). Loaded only on that post ({% blog_post_assets %}). Site tokens only;
   green and red are the site's own --lp-green / --lp-red, so both themes work without a branch. */

.lpb-cover--fw { aspect-ratio: auto; overflow: visible; padding: clamp(16px, 3.2vw, 32px); background: linear-gradient(180deg, var(--lp-bg-2), var(--lp-bg)); }

.fw-figure, .fw-block { --fw-mono: ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, Consolas, monospace; --fw-ease: cubic-bezier(.22, 1, .36, 1); }
.fw-figure { margin: 0; display: grid; gap: 18px; text-align: left; color: var(--lp-text); }
.fw-figure [hidden] { display: none !important; }

.fw-eyebrow, .fw-kicker { margin: 0; display: flex; align-items: center; gap: 10px; font-size: var(--lp-fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--lp-muted); }
.fw-eyebrow-mark { width: 22px; height: 2px; background: linear-gradient(90deg, var(--lp-red), var(--lp-primary), var(--lp-green)); }
.fw-title { margin: 12px 0 8px; font-family: var(--lp-font-title); font-weight: 600; font-size: clamp(22px, 3vw, var(--lp-fs-xl)); line-height: 1.2; letter-spacing: -.02em; }
.fw-sub { margin: 0; max-width: 64ch; font-size: var(--lp-fs-base); line-height: 1.6; color: var(--lp-muted); }

/* ---------------- countdown ---------------- */
.fw-clock { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.fw-clock-item { margin: 0; display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--lp-border); border-radius: var(--lp-r); background: var(--lp-surface); }
.fw-clock-k { font-size: var(--lp-fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--lp-muted); }
.fw-clock-v { font-weight: 600; }
.fw-clock-c { font-family: var(--fw-mono); font-size: var(--lp-fs-sm); color: var(--lp-primary); font-variant-numeric: tabular-nums; min-height: 1.4em; }

/* ---------------- tabs ---------------- */
.fw-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 4px; border: 1px solid var(--lp-border); border-radius: var(--lp-r-lg); background: var(--lp-surface); }
.fw-tab { display: grid; gap: 2px; justify-items: center; padding: 10px 6px; border: 0; border-radius: var(--lp-r); background: transparent; color: var(--lp-muted); font: inherit; cursor: pointer; transition: background-color var(--lp-dur, .2s) var(--fw-ease), color var(--lp-dur, .2s) var(--fw-ease); }
.fw-tab:hover { color: var(--lp-text); background: var(--lp-surface-2); }
.fw-tab.is-active { color: var(--lp-text); background: var(--lp-surface-3); box-shadow: inset 0 0 0 1px var(--lp-border-strong); }
.fw-tab:focus-visible { outline: 2px solid var(--lp-primary); outline-offset: 2px; }
.fw-tab-t { font-weight: 700; }
.fw-tab-m { font-family: var(--fw-mono); font-size: var(--lp-fs-xs); }

/* ---------------- panel ---------------- */
.fw-panel { display: grid; gap: 14px; }
.fw-stats { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px; }
.fw-stats div { padding: 10px 12px; border-radius: var(--lp-r); background: var(--lp-surface); border: 1px solid var(--lp-border); }
.fw-stats dt { font-size: var(--lp-fs-xs); color: var(--lp-muted); }
.fw-stats dd { margin: 2px 0 0; font-family: var(--fw-mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.fw-pos { color: var(--lp-green); }
.fw-neg { color: var(--lp-red); }
.fw-chip { display: inline-block; padding: 1px 8px; border-radius: var(--lp-r-pill); font-family: var(--lp-font); font-size: var(--lp-fs-sm); }
.fw-chip--neg { color: var(--lp-red); background: color-mix(in srgb, var(--lp-red) 14%, transparent); }
.fw-chip--pos { color: var(--lp-green); background: color-mix(in srgb, var(--lp-green) 14%, transparent); }
.fw-chip--flat { color: var(--lp-muted); background: var(--lp-surface-2); }

.fw-ladder { display: block; width: 100%; height: auto; border: 1px solid var(--lp-border); border-radius: var(--lp-r-lg); background: var(--lp-surface); }
.fw-band--fri { fill: color-mix(in srgb, var(--lp-primary) 10%, transparent); }
.fw-band--fed { fill: color-mix(in srgb, var(--lp-primary) 16%, transparent); stroke: color-mix(in srgb, var(--lp-primary) 45%, transparent); stroke-dasharray: 3 3; }
.fw-zero { stroke: var(--lp-border-strong); stroke-width: 1; }
.fw-bar--pos { fill: var(--lp-green); }
.fw-bar--neg { fill: var(--lp-red); }
.fw-close { stroke: var(--lp-text); stroke-width: 1.2; stroke-dasharray: 4 3; opacity: .7; }
.fw-close-t, .fw-tick, .fw-mark { font-family: var(--fw-mono); font-size: 10px; }
.fw-close-t { fill: var(--lp-text); }
.fw-tick { fill: var(--lp-muted); }
.fw-mark { font-weight: 700; }
.fw-mark--pos { fill: var(--lp-green); }
.fw-mark--neg { fill: var(--lp-red); }

.fw-read { margin: 0; font-size: var(--lp-fs-base); line-height: 1.6; color: var(--lp-muted); }
.fw-read strong { color: var(--lp-text); }
.fw-links { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.fw-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--lp-primary); text-decoration: none; }
.fw-link:hover { text-decoration: underline; }
.fw-link--quiet { font-weight: 500; color: var(--lp-muted); }

.fw-cap { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: var(--lp-fs-xs); color: var(--lp-muted); }
.fw-key { display: inline-flex; align-items: center; gap: 6px; }
.fw-sw { width: 12px; height: 12px; border-radius: 3px; }
.fw-sw--pos { background: var(--lp-green); }
.fw-sw--neg { background: var(--lp-red); }
.fw-sw--band { background: color-mix(in srgb, var(--lp-primary) 22%, transparent); }
.fw-cap-note { flex-basis: 100%; line-height: 1.5; }

/* ---------------- body blocks ---------------- */
.fw-block { margin: 28px 0; padding: clamp(16px, 3vw, 24px); border: 1px solid var(--lp-border); border-radius: var(--lp-r-lg); background: var(--lp-surface); }
.fw-block-head { margin-bottom: 14px; }
.fw-block-title { margin: 6px 0 0; font-family: var(--lp-font-title); font-weight: 600; font-size: var(--lp-fs-lg); }
.fw-block-cap { margin-top: 14px; font-size: var(--lp-fs-sm); color: var(--lp-muted); line-height: 1.55; }

.fw-rail { list-style: none; margin: 0; padding: 0 0 0 18px; display: grid; gap: 12px; border-left: 2px solid var(--lp-border-strong); }
.fw-stop { position: relative; display: grid; grid-template-columns: 7.5em 1fr; gap: 2px 12px; }
.fw-stop::before { content: ""; position: absolute; left: -25px; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--lp-surface); border: 2px solid var(--lp-border-strong); }
.fw-stop.is-key::before { background: var(--lp-primary); border-color: var(--lp-primary); }
.fw-stop-time { font-family: var(--fw-mono); font-size: var(--lp-fs-sm); color: var(--lp-muted); grid-row: span 2; }
.fw-stop-what { font-weight: 600; }
.fw-stop.is-key .fw-stop-what { color: var(--lp-primary); }
.fw-stop-covers { font-size: var(--lp-fs-sm); color: var(--lp-muted); }

.fw-tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.fw-tool { display: grid; gap: 6px; align-content: start; padding: 14px; border: 1px solid var(--lp-border); border-radius: var(--lp-r); background: var(--lp-bg); }
.fw-tool p { margin: 0; }
.fw-tool-name { font-weight: 700; }
.fw-tool-name a { color: var(--lp-text); text-decoration: none; }
.fw-tool-name a:hover { color: var(--lp-primary); }
.fw-plan { margin-left: 6px; padding: 1px 8px; border-radius: var(--lp-r-pill); font-size: var(--lp-fs-xs); font-weight: 600; color: var(--lp-primary); background: color-mix(in srgb, var(--lp-primary) 12%, transparent); }
.fw-tool-gave { font-size: var(--lp-fs-sm); color: var(--lp-muted); line-height: 1.5; }
.fw-tool-free { font-size: var(--lp-fs-sm); font-weight: 600; color: var(--lp-primary); }

@media (max-width: 560px) {
  .fw-tabs { grid-template-columns: repeat(2, 1fr); }
  .fw-stop { grid-template-columns: 1fr; }
  .fw-stop-time { grid-row: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .fw-tab { transition: none; }
}

/* ================= premium layer =================
   A gold hairline (--lp-amber) and a soft primary glow frame the hero; bars grow in once, staggered,
   and only with JS (html.js) and motion allowed; otherwise everything is static and complete. */
.lpb-cover--fw { position: relative; isolation: isolate; border: 1px solid color-mix(in srgb, var(--lp-amber) 35%, var(--lp-border)); border-radius: calc(var(--lp-r-lg) + 6px); }
.lpb-cover--fw::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 50% at 85% 0%, color-mix(in srgb, var(--lp-primary) 16%, transparent), transparent 70%),
              radial-gradient(40% 40% at 0% 100%, color-mix(in srgb, var(--lp-amber) 10%, transparent), transparent 70%); }
.fw-eyebrow-mark { background: linear-gradient(90deg, var(--lp-amber), var(--lp-primary)); }
.fw-eyebrow, .fw-kicker { color: color-mix(in srgb, var(--lp-amber) 70%, var(--lp-muted)); }
.fw-title { font-size: clamp(26px, 3.6vw, var(--lp-fs-2xl)); background: var(--lp-title-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fw-clock-item, .fw-stats div, .fw-ladder, .fw-tabs { backdrop-filter: none; box-shadow: 0 1px 0 color-mix(in srgb, var(--lp-text) 4%, transparent) inset; }
.fw-clock-c { font-size: var(--lp-fs-md); font-weight: 600; }
.fw-readout { margin: -6px 0 0; min-height: 1.4em; font-family: var(--fw-mono); font-size: var(--lp-fs-xs); color: var(--lp-muted); }
.fw-bar { transition: opacity .2s; }
.fw-ladder:hover .fw-bar { opacity: .55; }
.fw-ladder .fw-bar:hover { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  html.js .fw-figure[data-lp-reveal] .fw-bar { transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 100%;
    transition: transform .8s var(--fw-ease) calc(var(--d, 0) * 9ms), opacity .2s; }
  html.js .fw-figure[data-lp-reveal] .fw-bar--neg { transform-origin: 50% 0; }
  html.js .fw-figure[data-lp-reveal].is-in .fw-bar { transform: none; }
  html.js .fw-figure[data-lp-reveal] .fw-band { opacity: 0; transition: opacity .9s ease .35s; }
  html.js .fw-figure[data-lp-reveal].is-in .fw-band { opacity: 1; }
  .fw-panel:not([hidden]) { animation: fw-in .45s var(--fw-ease); }
  @keyframes fw-in { from { opacity: 0; transform: translateY(6px); } }
}

/* ---------------- article typography (this post only) ---------------- */
.lpb-prose { counter-reset: fw-sec; }
.lpb-prose > h2 { counter-increment: fw-sec; position: relative; padding-top: 22px; margin-top: 56px; }
.lpb-prose > h2::before { content: counter(fw-sec, decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: var(--fw-mono, ui-monospace, monospace); font-size: var(--lp-fs-xs); letter-spacing: .14em; color: var(--lp-amber); }
.lpb-prose > h2::after { content: ""; position: absolute; top: 7px; left: 34px; width: 40px; height: 1px; background: linear-gradient(90deg, var(--lp-amber), transparent); }
.lpb-prose .fw-lead { font-size: clamp(18px, 2vw, 21px); line-height: 1.6; color: var(--lp-text); }
.lpb-prose .fw-lead::first-letter { float: left; margin: 6px 10px 0 0; font-family: var(--lp-font-title); font-size: 3.4em; line-height: .8; font-weight: 700; color: var(--lp-amber); }
.lpb-prose .fw-quote { margin: 36px 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--lp-amber); font-family: var(--lp-font-title); font-size: clamp(20px, 2.4vw, 26px); line-height: 1.35; letter-spacing: -.01em; color: var(--lp-text); }
.lpb-prose .fw-quote p { margin: 0; }
.lpb-prose table { border-collapse: separate; border-spacing: 0; width: 100%; border: 1px solid var(--lp-border); border-radius: var(--lp-r-lg); overflow: hidden; font-variant-numeric: tabular-nums; }
.lpb-prose thead th { background: var(--lp-surface-2); font-size: var(--lp-fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--lp-muted); }
.lpb-prose tbody tr:hover td { background: color-mix(in srgb, var(--lp-primary) 5%, transparent); }
.lpb-prose td:first-child { font-weight: 700; }

/* ---------------- stat strip ---------------- */
.fw-stats-strip { margin: 32px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid color-mix(in srgb, var(--lp-amber) 30%, var(--lp-border)); border-radius: var(--lp-r-lg); overflow: hidden; background: var(--lp-border); }
.fw-stat { padding: 20px 16px; background: var(--lp-surface); }
.fw-stat p { margin: 0; }
.fw-stat-n { font-family: var(--lp-font-title); font-weight: 700; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--lp-text); }
.fw-stat-l { margin-top: 4px !important; font-size: var(--lp-fs-sm); color: var(--lp-muted); line-height: 1.4; }
.fw-stats-note { grid-column: 1 / -1; margin: 0; padding: 8px 16px; font-size: var(--lp-fs-xs); color: var(--lp-muted); background: var(--lp-surface); }

/* ---------------- long vs short gamma ---------------- */
.fw-hedge-btns { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 12px; border: 1px solid var(--lp-border); border-radius: var(--lp-r-pill); background: var(--lp-bg); }
.fw-hedge-btn { padding: 8px 16px; border: 0; border-radius: var(--lp-r-pill); background: transparent; color: var(--lp-muted); font: inherit; font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s; }
.fw-hedge-btn[aria-pressed="true"].fw-hedge-btn--neg { color: var(--lp-red); background: color-mix(in srgb, var(--lp-red) 13%, transparent); }
.fw-hedge-btn[aria-pressed="true"].fw-hedge-btn--pos { color: var(--lp-green); background: color-mix(in srgb, var(--lp-green) 13%, transparent); }
.fw-hedge-btn:focus-visible { outline: 2px solid var(--lp-primary); outline-offset: 2px; }
.fw-now { margin-left: 6px; padding: 1px 6px; border-radius: var(--lp-r-pill); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--lp-amber); border: 1px solid color-mix(in srgb, var(--lp-amber) 50%, transparent); }
.fw-hedge-svg { display: block; width: 100%; height: auto; }
.fw-hedge-base { stroke: var(--lp-border-strong); stroke-dasharray: 4 4; }
.fw-hedge-shock { fill: color-mix(in srgb, var(--lp-amber) 18%, transparent); stroke: var(--lp-amber); }
.fw-hedge-tag { font-family: var(--fw-mono); font-size: 11px; fill: var(--lp-amber); }
.fw-hedge-path { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .18; }
.fw-hedge-path--neg { stroke: var(--lp-red); }
.fw-hedge-path--pos { stroke: var(--lp-green); }
.fw-hedge-path.is-on { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .fw-hedge-path { transition: opacity .3s; }
  .fw-hedge-path.is-on { stroke-dasharray: 1; stroke-dashoffset: 0; animation: fw-draw 1.1s var(--fw-ease); }
  @keyframes fw-draw { from { stroke-dashoffset: 1; } }
}
.fw-hedge-text p { margin: 6px 0 0; color: var(--lp-muted); line-height: 1.6; }
.fw-hedge-title { font-weight: 700; color: inherit; }
.fw-hedge-text .fw-hedge-title.fw-neg { color: var(--lp-red); }
.fw-hedge-text .fw-hedge-title.fw-pos { color: var(--lp-green); }

/* ---------------- heatmap ---------------- */
.fw-heat-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; }
.fw-heat-label { margin: 0; font-family: var(--fw-mono); font-size: var(--lp-fs-xs); color: var(--lp-muted); white-space: nowrap; }
.fw-heat-row { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 2px; height: 46px; }
.fw-cell { border-radius: 2px; background: var(--lp-surface-2); }
.fw-cell--pos { background: color-mix(in srgb, var(--lp-green) calc(var(--a) * 100%), var(--lp-surface-2)); }
.fw-cell--neg { background: color-mix(in srgb, var(--lp-red) calc(var(--a) * 100%), var(--lp-surface-2)); }
.fw-cell.is-atm { outline: 1.5px solid var(--lp-amber); outline-offset: 1px; }
.fw-heat-ticks { display: flex; justify-content: space-between; font-family: var(--fw-mono); font-size: 10px; color: var(--lp-muted); }
.fw-heat-grid--mini { display: grid; grid-template-columns: 1fr; gap: 3px; }
.fw-heat-grid--mini .fw-heat-row { height: 26px; gap: 1px; }

/* ---------------- tool previews ---------------- */
.fw-tool { transition: border-color .25s, transform .25s var(--fw-ease, ease), box-shadow .25s; }
.fw-tool:hover { border-color: color-mix(in srgb, var(--lp-amber) 45%, var(--lp-border)); box-shadow: 0 10px 30px -18px color-mix(in srgb, var(--lp-primary) 60%, transparent); }
@media (prefers-reduced-motion: no-preference) { .fw-tool:hover { transform: translateY(-2px); } }
.fw-prev { height: 92px; margin-bottom: 6px; padding: 8px; display: grid; align-items: center; border-radius: var(--lp-r-sm); background: var(--lp-surface); border: 1px solid var(--lp-border); overflow: hidden; }
.fw-prev svg { width: 100%; height: 76px; }
.fw-range { display: grid; gap: 6px; }
.fw-range-move { font-family: var(--lp-font-title); font-weight: 700; font-size: 20px; }
.fw-range-bar { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, color-mix(in srgb, var(--lp-red) 50%, transparent), color-mix(in srgb, var(--lp-primary) 40%, transparent), color-mix(in srgb, var(--lp-green) 50%, transparent)); }
.fw-range-dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--lp-text); box-shadow: 0 0 0 3px var(--lp-surface); }
.fw-range-ends { display: flex; justify-content: space-between; font-family: var(--fw-mono); font-size: 10px; color: var(--lp-muted); }
.fw-levels { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-family: var(--fw-mono); font-size: 11px; }
.fw-level { display: flex; justify-content: space-between; gap: 8px; padding: 1px 6px; border-left: 2px solid var(--lp-border-strong); }
.fw-level span:last-child { color: var(--lp-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fw-level--pos { border-color: var(--lp-green); }
.fw-level--neg { border-color: var(--lp-red); }
.fw-level--close { border-color: var(--lp-amber); font-weight: 700; }

/* ---------------- closing offer ---------------- */
.fw-cta { margin: 44px 0 28px; padding: clamp(24px, 4vw, 40px); text-align: center; display: grid; justify-items: center; gap: 12px; border-radius: calc(var(--lp-r-lg) + 6px);
  border: 1px solid color-mix(in srgb, var(--lp-amber) 40%, var(--lp-border));
  background: radial-gradient(80% 120% at 50% 0%, color-mix(in srgb, var(--lp-primary) 18%, transparent), transparent 70%), var(--lp-surface); }
.fw-cta .fw-kicker { justify-content: center; }
.fw-cta-title { margin: 0; font-family: var(--lp-font-title); font-weight: 700; font-size: clamp(24px, 3.2vw, 34px); letter-spacing: -.02em; color: var(--lp-text); }
.fw-cta-sub { margin: 0; max-width: 52ch; color: var(--lp-muted); line-height: 1.6; }
.fw-cta-chips { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.fw-cta-chips li { padding: 4px 12px; border-radius: var(--lp-r-pill); border: 1px solid var(--lp-border-strong); font-size: var(--lp-fs-sm); color: var(--lp-text); background: var(--lp-bg); }
.fw-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 20px; margin-top: 6px; }

@media (max-width: 720px) { .fw-stats-strip { grid-template-columns: repeat(2, 1fr); } }

/* ================= hero stage: "Fed day, played" =================
   blog-fedweek.js sets data-scene (0..5) on .fw-stage once it is live; every visual state below is
   CSS. Without JS (no .is-live) the stage shows the whole day at once and every caption as a list. */
.fw-stage { position: relative; display: grid; gap: 12px; padding: clamp(10px, 2vw, 18px); border-radius: var(--lp-r-lg);
  border: 1px solid color-mix(in srgb, var(--lp-amber) 28%, var(--lp-border));
  background: linear-gradient(180deg, color-mix(in srgb, var(--lp-surface) 92%, var(--lp-primary)), var(--lp-bg)); overflow: hidden; }
.fw-stage-svg { display: block; width: 100%; height: auto; }
.fw-glow-a { stop-color: var(--lp-primary); stop-opacity: .2; }
.fw-glow-b { stop-color: var(--lp-primary); stop-opacity: 0; }
.fw-s-grid { stroke: color-mix(in srgb, var(--lp-text) 6%, transparent); stroke-width: 1; }
.fw-s-band rect { fill: color-mix(in srgb, var(--lp-primary) 11%, transparent); stroke: color-mix(in srgb, var(--lp-primary) 40%, transparent); stroke-dasharray: 4 4; }
.fw-s-band--fri rect { fill: color-mix(in srgb, var(--lp-amber) 8%, transparent); stroke: color-mix(in srgb, var(--lp-amber) 45%, transparent); }
.fw-s-band text { font-family: var(--fw-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; fill: var(--lp-muted); }
.fw-s-close-t { font-family: var(--fw-mono); font-size: 13px; font-weight: 700; fill: var(--lp-text); }
.fw-stage .fw-tick { font-size: 12px; }
.fw-s-shock circle { fill: none; stroke: var(--lp-amber); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.fw-s-arrow { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.fw-s-arrow--l { stroke: var(--lp-red); }
.fw-s-arrow--r { stroke: var(--lp-green); }

.fw-scenes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fw-scene { display: flex; gap: 12px; align-items: baseline; }
.fw-scene-t { flex: none; min-width: 6.5em; font-family: var(--fw-mono); font-size: var(--lp-fs-sm); color: var(--lp-amber); }
.fw-scene-c { font-family: var(--lp-font-title); font-size: clamp(16px, 2vw, 21px); line-height: 1.35; color: var(--lp-text); }

/* live: one caption at a time, cross-faded in one grid cell */
.fw-stage.is-live .fw-scenes { grid-template-areas: "s"; min-height: 3.2em; }
.fw-stage.is-live .fw-scene { grid-area: s; opacity: 0; transform: translateY(8px); visibility: hidden; transition: opacity .5s var(--fw-ease), transform .5s var(--fw-ease), visibility 0s .5s; }
.fw-stage.is-live .fw-scene.is-on { opacity: 1; transform: none; visibility: visible; transition: opacity .6s var(--fw-ease) .1s, transform .6s var(--fw-ease) .1s; }
.fw-stage.is-live .fw-s-band { opacity: 0; transition: opacity .8s var(--fw-ease); }
.fw-stage.is-live:is([data-scene="1"], [data-scene="2"], [data-scene="3"]) .fw-s-band--fed { opacity: 1; }
.fw-stage.is-live[data-scene="4"] .fw-s-band--fed { opacity: .25; }
.fw-stage.is-live[data-scene="5"] .fw-s-band--fri { opacity: 1; }
.fw-stage.is-live[data-scene="3"] .fw-s-arrow { opacity: 1; }
.fw-stage.is-live[data-scene="3"] .fw-bar--neg { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--lp-red) 70%, transparent)); }
.fw-stage.is-live[data-scene="0"] .fw-close, .fw-stage.is-live[data-scene="0"] .fw-s-close-t { opacity: 1; }

/* progress rail */
.fw-track { position: relative; height: 40px; margin: 4px 8px 0; }
.fw-track-line { position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--lp-border-strong); border-radius: 2px; }
.fw-track-line i { position: absolute; inset: 0 auto 0 0; width: var(--fill, 0%); background: linear-gradient(90deg, var(--lp-amber), var(--lp-primary)); border-radius: 2px; transition: width .5s var(--fw-ease); }
.fw-track-stop { position: absolute; top: 0; transform: translateX(-50%); display: grid; justify-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--lp-muted); font: inherit; font-size: 11px; font-family: var(--fw-mono); cursor: pointer; white-space: nowrap; }
.fw-track-stop::before { content: ""; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: var(--lp-bg); border: 2px solid var(--lp-border-strong); transition: background-color .3s, border-color .3s, box-shadow .3s; }
.fw-track-stop.is-past::before { border-color: var(--lp-amber); background: var(--lp-amber); }
.fw-track-stop.is-on { color: var(--lp-text); }
.fw-track-stop.is-on::before { border-color: var(--lp-amber); background: var(--lp-amber); box-shadow: 0 0 0 5px color-mix(in srgb, var(--lp-amber) 22%, transparent); }
.fw-track-stop:focus-visible { outline: 2px solid var(--lp-primary); outline-offset: 3px; border-radius: 4px; }
.fw-stage-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.fw-stage-note { font-size: var(--lp-fs-xs); color: var(--lp-muted); }
@media (max-width: 560px) { .fw-track-stop span { display: none; } .fw-track-stop.is-on span { display: block; } }

@media (prefers-reduced-motion: no-preference) {
  .fw-stage.is-live[data-scene="2"] .fw-s-shock circle { animation: fw-ring 2.4s cubic-bezier(.2, .7, .3, 1) infinite; }
  .fw-stage.is-live[data-scene="2"] .fw-s-shock circle:nth-child(2) { animation-delay: .6s; }
  .fw-stage.is-live[data-scene="2"] .fw-s-shock circle:nth-child(3) { animation-delay: 1.2s; }
  @keyframes fw-ring { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(7); } }
  .fw-stage.is-live[data-scene="2"] .fw-s-bars { animation: fw-quake .9s ease-in-out 2; transform-box: fill-box; transform-origin: 50% 50%; }
  @keyframes fw-quake { 0%, 100% { transform: scaleY(1); } 40% { transform: scaleY(1.14); } 70% { transform: scaleY(.95); } }
  .fw-stage.is-live[data-scene="3"] .fw-s-arrow { stroke-dasharray: 160; animation: fw-reach 1.2s var(--fw-ease) both; }
  @keyframes fw-reach { from { stroke-dashoffset: 160; } to { stroke-dashoffset: 0; } }
  .fw-stage .fw-s-glow { animation: fw-breathe 6s ease-in-out infinite; }
  @keyframes fw-breathe { 50% { opacity: .55; } }
}

/* gold reading progress (this post only) */
.fw-progress { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 2px; pointer-events: none; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--lp-amber), var(--lp-primary)); }

/* ================= EZRA replay (copied from blog-blackmonday.css, .bm-ez -> .fw-ez) ================= */
.fw-ezra-wrap { margin: 32px 0; }
.fw-ez.ez { padding: 0; --ez-h: 660px; }
.fw-ez .ez-window { margin: 0; }
.lp-main .fw-ez .fw-ez-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 560px; margin-inline: auto; }
@media (max-width: 479.98px) { .lp-main .fw-ez .fw-ez-grid { grid-template-columns: minmax(0, 1fr); } }

/* One screen, like the app (blog-blackmonday.js sets the view). Two rows: the screen (welcome or
   chat, each scrolling inside itself) and the composer docked under it, so they never overlap.
   .ez-chat becomes display:contents so its thread and composer join the grid. Without JS both show. */
.fw-ez:is(.fw-view-home, .fw-view-chat) .ez-split {
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; height: var(--ez-h);
}
.fw-ez:is(.fw-view-home, .fw-view-chat) .ez-chat { display: contents; }
.fw-ez:is(.fw-view-home, .fw-view-chat) :is(.ez-home, .ez-thread, .fw-ez-back) { grid-row: 1; grid-column: 1; }
.fw-ez:is(.fw-view-home, .fw-view-chat) .ez-compose {
  grid-row: 2; grid-column: 1; position: relative; z-index: 3; margin: 0;
  border-top: 1px solid var(--ez-border); background: var(--ez-bg);
}
.fw-ez:is(.fw-view-home, .fw-view-chat) .ez-home { border-right: 0; min-height: 0; overflow-y: auto; padding: 22px 20px 18px; justify-content: flex-start; justify-content: safe center; }
.fw-ez:is(.fw-view-home, .fw-view-chat) .ez-thread { min-height: 0; overflow-y: auto; padding-top: 54px; background: var(--ez-bg); }

/* Welcome screen, tightened so the four cards fit above the composer. */
.fw-ez .ez-home-logo { width: 46px; height: 46px; }
.fw-ez .ez-live { margin-top: 10px; }
.fw-ez .ez-home-title { margin-top: 10px; font-size: clamp(20px, 3vw, 26px); }
.fw-ez .ez-home-sub { margin: 8px 0 14px; }
.fw-ez .ez-tabs { margin-bottom: 12px; }

/* Switching views. */
.fw-ez.fw-view-home .ez-thread, .fw-ez.fw-view-home .fw-ez-back { visibility: hidden; }
.fw-ez.fw-view-home .ez-home { opacity: 1; transform: none; transition: opacity .45s var(--fw-ease), transform .45s var(--fw-ease); }
.fw-ez.fw-view-chat .ez-home { opacity: 0; transform: translateY(-14px) scale(.985); visibility: hidden; transition: opacity .35s, transform .35s var(--fw-ease), visibility 0s .35s; }
.fw-ez.fw-view-chat .ez-thread { animation: fw-ez-in .5s var(--fw-ease) both; }
@keyframes fw-ez-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fw-ez * { animation: none !important; transition: none !important; } }

/* "All four questions": a small pill pinned over the top of the chat. */
.lp-main .fw-ez .fw-ez-back {
  position: relative; z-index: 2; align-self: start; justify-self: start; display: inline-flex; align-items: center; gap: 6px;
  margin: 12px 0 0 14px; padding: 6px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  color: var(--ez-muted); border: 1px solid var(--ez-border2); background: color-mix(in srgb, var(--ez-bg2) 88%, transparent); backdrop-filter: blur(8px);
}
.lp-main .fw-ez .fw-ez-back:hover { color: var(--ez-bright); border-color: rgba(103, 89, 209, .45); }
.fw-ez .fw-ez-back[hidden] { display: none; }
.fw-ez .ez-card-go { text-transform: none; }
.fw-ez .ez-controls { margin-top: 12px; }
.fw-ez .ez-sample-note { font-size: 12.5px; }
@media (max-width: 999px) { .fw-ez.ez { --ez-h: 640px; } }
@media (max-width: 479.98px) { .fw-ez.ez { --ez-h: 700px; } }

/* ================= AiPe replay: the /how-it-works/ AiPe window (showcase/aipe-demo.css) with a real
   Gamma Exposure page inside. Both AI replays break out of the text column on wide screens. ========== */
.fw-ap-wrap, .fw-ezra-wrap { margin: 40px calc(50% - min(560px, 50vw - 24px)); }
.fw-ap.ap { --ap-h: 600px; display: grid; gap: 12px; }
.fw-ap-qs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.fw-ap-q { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 12px 14px; border-radius: var(--lp-r); border: 1px solid var(--lp-border); background: var(--lp-surface); color: var(--lp-muted); font: inherit; font-size: var(--lp-fs-sm); line-height: 1.45; cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.fw-ap-q span { flex: none; font-family: var(--fw-mono); font-weight: 700; color: var(--lp-amber); }
.fw-ap-q:hover, .fw-ap-q.is-on { color: var(--lp-text); border-color: color-mix(in srgb, var(--lp-amber) 50%, var(--lp-border)); }
.fw-ap-q.is-on { background: color-mix(in srgb, var(--lp-amber) 7%, var(--lp-surface)); }
.fw-ap-q:focus-visible { outline: 2px solid var(--lp-primary); outline-offset: 2px; }
.fw-ap-pg { display: grid; gap: 12px; color: var(--ap-text); }
.fw-ap-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.fw-ap-name { font-weight: 700; color: var(--ap-bright); }
.fw-ap-tk { font-family: var(--ap-mono); font-size: 12px; color: var(--ap-muted); }
.fw-ap-tk b { color: var(--ap-bright); }
.fw-ap-exp { padding: 2px 8px; border-radius: 999px; font-size: 11px; border: 1px solid var(--ap-line); color: var(--ap-muted); }
.fw-ap-kpis { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fw-ap-kpis div { padding: 8px 10px; border-radius: 8px; background: var(--ap-card); border: 1px solid var(--ap-line); }
.fw-ap-kpis dt { font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ap-muted); }
.fw-ap-kpis dd { margin: 2px 0 0; font-family: var(--ap-mono); font-weight: 700; color: var(--ap-bright); }
.fw-ap-kpis dd.fw-neg { color: var(--ap-put); }
.fw-ap-regime { margin: 0; font-size: 12px; color: var(--ap-muted); }
.fw-ap-chart { display: block; width: 100%; height: auto; border-radius: 10px; background: var(--ap-card); border: 1px solid var(--ap-line); }
.fw-ap-chart .fw-bar--pos { fill: var(--ap-call); }
.fw-ap-chart .fw-bar--neg { fill: var(--ap-put); }
.fw-ap-chart .fw-close { stroke: var(--ap-bright); }
.fw-ap-chart .fw-tick { fill: var(--ap-muted); }
.fw-ap-chart .fw-zero { stroke: var(--ap-line); }
.fw-ap .ap-chip { cursor: default; }
.fw-ap-disc { font-size: 12px; opacity: .75; font-style: italic; }
.fw-ap-cap { margin: 0; font-size: var(--lp-fs-xs); color: var(--lp-muted); line-height: 1.55; }
.fw-ap .ap-bubble ul { margin: 6px 0; padding-left: 18px; }
.fw-ap .ap-bubble li { margin: 4px 0; }
@media (max-width: 560px) { .fw-ap-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ================= film (demo video only, ?film=) =================
   One figure fills the 1920x1080 capture. Visitors never hit these query strings.
   Animations here are not gated on prefers-reduced-motion: the capture has to move. */
html.fw-film, html.fw-film body { overflow: hidden !important; background: var(--lp-bg, #0c0520); }
html.fw-film body { visibility: hidden; }
html.fw-film .fw-stage-host, html.fw-film .is-staged { visibility: visible; }
html.fw-film .is-staged {
  opacity: 1 !important; position: fixed; z-index: 2147483000; margin: 0;
  left: 50%; top: 50%; transform: translate(-50%, -50%) !important;
}
html.fw-film .fw-progress { display: none !important; }

html.fw-film-fed .is-staged, html.fw-film-msft .is-staged {
  inset: 0; left: 0; top: 0; width: 100vw; height: 100vh; max-height: none;
  transform: none !important; display: flex; flex-direction: column; justify-content: center;
  padding: 36px 64px 24px; border: 0; border-radius: 0; background: var(--lp-bg, #0c0520);
}
html.fw-film-fed .fw-stage-ctl, html.fw-film-msft .fw-stage-ctl { display: none !important; }
html.fw-film-fed .fw-stage-svg, html.fw-film-msft .fw-stage-svg { width: min(1680px, 94vw); margin: 0 auto; }
html.fw-film-fed .fw-scene-c, html.fw-film-msft .fw-scene-c { font-size: 32px; }
html.fw-film-fed .fw-scene-t, html.fw-film-msft .fw-scene-t { font-size: 18px; }
html.fw-film-fed .fw-stage.is-live[data-scene="2"] .fw-s-shock circle,
html.fw-film-msft .fw-stage.is-live[data-scene="2"] .fw-s-shock circle { animation: fw-ring 2.4s cubic-bezier(.2, .7, .3, 1) infinite; }
html.fw-film-fed .fw-stage.is-live[data-scene="2"] .fw-s-shock circle:nth-child(2) { animation-delay: .6s; }
html.fw-film-fed .fw-stage.is-live[data-scene="2"] .fw-s-shock circle:nth-child(3) { animation-delay: 1.2s; }
html.fw-film-fed .fw-stage.is-live[data-scene="2"] .fw-s-bars { animation: fw-quake .9s ease-in-out 2; transform-box: fill-box; transform-origin: 50% 50%; }
@keyframes fw-ring { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(7); } }
@keyframes fw-quake { 0%, 100% { transform: scaleY(1); } 40% { transform: scaleY(1.14); } 70% { transform: scaleY(.95); } }

html.fw-film-ladder .is-staged {
  width: 1280px; padding: 28px 36px; border-radius: 20px; background: var(--lp-bg, #0c0520);
  transform: translate(-50%, -50%) scale(1.32) !important;
}
html.fw-film-ladder .fw-links, html.fw-film-ladder .fw-readout, html.fw-film-ladder .fw-read { display: none !important; }
html.fw-film-ladder .fw-bar--neg { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--lp-red) 70%, transparent)); }
html.fw-film-ladder .fw-chip { opacity: 0; }
html.fw-film-ladder .fw-chip.is-pop { opacity: 1; animation: fw-pop .65s var(--fw-ease) both; }
@keyframes fw-pop { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: none; } }

html.fw-film-hedge .is-staged {
  width: 1040px; padding: 28px 36px; border-radius: 20px; background: var(--lp-bg, #0c0520);
  transform: translate(-50%, -50%) scale(1.45) !important;
}
html.fw-film-hedge .fw-block-cap { display: none !important; }
html.fw-film-hedge .fw-hedge-path.is-on { stroke-dasharray: 1; stroke-dashoffset: 0; animation: fw-draw 1.1s var(--fw-ease); }
@keyframes fw-draw { from { stroke-dashoffset: 1; } }

html.fw-film-stats .is-staged {
  width: 1500px; transform: translate(-50%, -50%) scale(1) !important;
}
html.fw-film-stats .fw-stat-n { font-size: 72px; }
html.fw-film-stats .fw-stat-l { font-size: 20px; }

html.fw-film-ezra .is-staged { width: 920px; max-height: none; overflow: visible; transform: translate(-50%, -50%) scale(1.58) !important; }
html.fw-film-ezra .ez-controls { display: none !important; }
html.fw-film-ezra .is-line { border-radius: 8px; box-shadow: inset 3px 0 0 var(--lp-amber); background: color-mix(in srgb, var(--lp-amber) 18%, transparent); }

html.fw-film-aipe .is-staged { width: 1500px; max-height: none; overflow: visible; transform: translate(-50%, -50%) scale(1.12) !important; }
html.fw-film-aipe .fw-ap-qs, html.fw-film-aipe .fw-ap-cap { display: none !important; }
html.fw-film-aipe .fw-ap-kpis div.is-wall { animation: fw-wall .55s var(--fw-ease) 2.2s both; }
@keyframes fw-wall {
  from { box-shadow: none; }
  to { box-shadow: 0 0 0 2px var(--lp-amber), 0 0 18px color-mix(in srgb, var(--lp-amber) 45%, transparent); }
}
