/* Is the AI trade about to crack? We asked EZRA: the typed-question hero with range rails, and the post's
   board, Fed-day timeline and DIX blocks. Loaded only on that post ({% blog_post_assets %}), after
   blog-fedweek.css (editorial skin, stat strip, CTA, EZRA replay views). Site tokens only, so both themes work.
   Motion runs only when html has .ait-motion (set by blog-aitrade.js when reduced motion is off); without it
   every element shows in its final state. */

.lpb-cover--ait { aspect-ratio: auto; overflow: hidden; padding: 0; border-radius: var(--lp-r-xl, 24px); background: var(--lp-bg); }

.ait-hero, .ait-day, .ait-dix, .ait-board {
  --ait-mono: ui-monospace, 'JetBrains Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --ait-ease: cubic-bezier(.22, 1, .36, 1);
  --ait-gold: var(--lp-amber);
  --ait-neg: var(--lp-red);
  --ait-pos: var(--lp-green);
}

/* ================= hero ================= */
.ait-hero {
  position: relative; isolation: isolate; margin: 0; display: grid; gap: 18px;
  padding: clamp(20px, 4.4vw, 52px) clamp(16px, 4.4vw, 52px) clamp(18px, 3.2vw, 36px);
  text-align: left; color: var(--lp-text);
  background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--lp-primary) 22%, transparent), transparent 60%),
              radial-gradient(90% 70% at 100% 100%, color-mix(in srgb, var(--lp-amber) 10%, transparent), transparent 60%),
              linear-gradient(180deg, var(--lp-bg-2), var(--lp-bg));
  border: 1px solid var(--lp-border); border-radius: inherit;
}
.ait-hero::before { /* fine grid, faded toward the edges */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--lp-border) 1px, transparent 1px), linear-gradient(90deg, var(--lp-border) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .35;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 30%, transparent 80%);
}
.ait-aura { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; border-radius: inherit; }
.ait-aura i { position: absolute; width: 46%; aspect-ratio: 1; border-radius: 50%; filter: blur(60px); opacity: .32; }
.ait-aura i:nth-child(1) { top: -18%; left: -10%; background: var(--lp-primary); }
.ait-aura i:nth-child(2) { top: 30%; right: -14%; background: var(--lp-accent); opacity: .18; }
.ait-aura i:nth-child(3) { bottom: -30%; left: 30%; background: var(--lp-amber); opacity: .12; }

.ait-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ait-eyebrow { 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); }
.ait-eyebrow-mark { width: 26px; height: 2px; background: linear-gradient(90deg, var(--ait-neg), var(--lp-primary), var(--ait-gold)); }
.ait-live { margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid var(--lp-border-strong); border-radius: 999px; font-size: var(--lp-fs-xs); font-weight: 600; letter-spacing: .04em; color: var(--lp-accent); background: var(--lp-surface-2); }
.ait-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ait-pos); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ait-pos) 60%, transparent); }

.ait-q {
  margin: 4px 0 0; max-width: 18ch; font-family: var(--lp-font-title); font-weight: 600;
  font-size: clamp(30px, 6.2vw, 64px); line-height: 1.04; letter-spacing: -.035em;
  background: var(--lp-title-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ait-caret { display: inline-block; width: .07em; height: .9em; margin-left: .06em; vertical-align: -.08em; background: var(--lp-accent); opacity: 0; }

.ait-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.ait-step { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 7px; border: 1px solid var(--lp-border); border-radius: 999px; background: var(--lp-surface); font-family: var(--ait-mono); font-size: 11.5px; color: var(--lp-muted); }
.ait-step-i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-size: 10px; color: var(--lp-bg); background: var(--ait-pos); }

.ait-stamp { margin: 2px 0 0; }
.ait-stamp span { display: inline-block; padding: 8px 14px; border-left: 2px solid var(--ait-gold); font-family: var(--lp-font-title); font-size: clamp(16px, 2vw, 20px); font-weight: 500; letter-spacing: -.01em; color: var(--lp-text); background: linear-gradient(90deg, color-mix(in srgb, var(--ait-gold) 12%, transparent), transparent); }

/* ---------------- rails panel ---------------- */
.ait-panel {
  display: grid; gap: 18px; margin-top: 6px; padding: clamp(14px, 2.4vw, 24px);
  border: 1px solid var(--lp-border); border-radius: var(--lp-r-lg, 18px);
  background: linear-gradient(160deg, color-mix(in srgb, var(--lp-surface) 92%, transparent), color-mix(in srgb, var(--lp-bg) 80%, transparent));
  box-shadow: 0 30px 80px -40px color-mix(in srgb, var(--lp-primary) 55%, transparent), inset 0 1px 0 color-mix(in srgb, #fff 6%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.ait-group { display: grid; gap: 4px; }
.ait-group-h { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; font-size: var(--lp-fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--lp-faint); }
.ait-group-h b { font-weight: 700; color: var(--lp-text); letter-spacing: .08em; }
.ait-group--neg .ait-group-h b { color: color-mix(in srgb, var(--ait-neg) 80%, var(--lp-text)); }
.ait-group--pos .ait-group-h b { color: color-mix(in srgb, var(--ait-pos) 80%, var(--lp-text)); }
.ait-dot { width: 8px; height: 8px; border-radius: 50%; }
.ait-dot--neg { background: var(--ait-neg); box-shadow: 0 0 12px var(--ait-neg); }
.ait-dot--pos { background: var(--ait-pos); box-shadow: 0 0 12px var(--ait-pos); }

.ait-rails { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ait-rail { display: grid; grid-template-columns: minmax(118px, 1.1fr) minmax(0, 4fr) minmax(76px, auto); align-items: center; gap: 14px; padding: 10px 6px; border-radius: 12px; transition: background-color .3s var(--ait-ease); }
.ait-rail:hover { background: var(--lp-surface-2); }
.ait-rail-id { display: grid; gap: 1px; min-width: 0; }
.ait-rail-t { font-family: var(--lp-font-title); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.ait-rail-n { font-size: 12px; color: var(--lp-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ait-rail-n em { font-style: normal; color: var(--ait-gold); }
.ait-rail-v { display: grid; justify-items: end; gap: 2px; font-family: var(--ait-mono); font-variant-numeric: tabular-nums; }
.ait-rail-m { font-size: 15px; font-weight: 700; color: var(--lp-text); }
.ait-rail-g { font-size: 11.5px; }
.ait-rail--neg .ait-rail-g { color: var(--ait-neg); }
.ait-rail--pos .ait-rail-g { color: var(--ait-pos); }

.ait-track { position: relative; height: 44px; }
.ait-track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--lp-border-strong) 12%, var(--lp-border-strong) 88%, transparent); }
.ait-band {
  position: absolute; top: 50%; height: 14px; margin-top: -7px; border-radius: 999px; transform-origin: center;
  background: linear-gradient(90deg, color-mix(in srgb, var(--lp-primary) 30%, transparent), color-mix(in srgb, var(--lp-accent) 55%, transparent), color-mix(in srgb, var(--lp-primary) 30%, transparent));
  box-shadow: 0 0 22px -2px color-mix(in srgb, var(--lp-primary) 70%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--lp-accent) 50%, transparent);
}
.ait-rail--neg .ait-band { background: linear-gradient(90deg, color-mix(in srgb, var(--ait-neg) 26%, transparent), color-mix(in srgb, var(--lp-accent) 45%, transparent), color-mix(in srgb, var(--ait-neg) 26%, transparent)); }
.ait-wall { position: absolute; top: 50%; width: 2px; height: 20px; margin: -10px 0 0 -1px; border-radius: 2px; background: var(--lp-muted); opacity: .55; }
.ait-flip { position: absolute; top: 50%; width: 2px; height: 30px; margin: -15px 0 0 -1px; background: var(--ait-gold); box-shadow: 0 0 10px var(--ait-gold); }
.ait-flip b { position: absolute; bottom: calc(100% + 1px); left: 50%; transform: translateX(-50%); font-family: var(--ait-mono); font-size: 10.5px; font-weight: 600; white-space: nowrap; color: var(--ait-gold); }
.ait-close { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--lp-bg) 70%, transparent), 0 0 18px 2px color-mix(in srgb, #fff 55%, transparent); }
.ait-close b { position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-family: var(--ait-mono); font-size: 10.5px; font-weight: 600; white-space: nowrap; color: var(--lp-text); }
.ait-end { position: absolute; bottom: -2px; font-family: var(--ait-mono); font-size: 10px; color: var(--lp-faint); display: none; }
.ait-end--lo { left: 0; } .ait-end--hi { right: 0; }

.ait-key { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 12px; border-top: 1px solid var(--lp-border); font-size: 12px; color: var(--lp-muted); }
.ait-key span { display: inline-flex; align-items: center; gap: 8px; }
.ait-key i { display: inline-block; }
.ait-key-band { width: 22px; height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--lp-accent) 50%, transparent); box-shadow: 0 0 10px color-mix(in srgb, var(--lp-primary) 70%, transparent); }
.ait-key-close { width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.ait-key-flip { width: 2px; height: 14px; background: var(--ait-gold); box-shadow: 0 0 8px var(--ait-gold); }
.ait-key-wall { width: 2px; height: 12px; background: var(--lp-muted); opacity: .6; }

/* ---------------- clock ---------------- */
.ait-clock { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border: 1px solid var(--lp-border); border-radius: var(--lp-r-lg, 18px); overflow: hidden; background: var(--lp-surface); }
.ait-clock-item { display: grid; gap: 2px; padding: 12px 12px 11px; border-left: 1px solid var(--lp-border); }
.ait-clock-item:first-child { border-left: 0; }
.ait-clock-item--fed { background: linear-gradient(180deg, color-mix(in srgb, var(--ait-gold) 12%, transparent), transparent); }
.ait-clock-item--msft, .ait-clock-item--amzn { background: linear-gradient(180deg, color-mix(in srgb, var(--lp-primary) 12%, transparent), transparent); }
.ait-clock-t { font-family: var(--ait-mono); font-size: 13px; font-weight: 700; color: var(--lp-text); }
.ait-clock-item--fed .ait-clock-t { color: var(--ait-gold); }
.ait-clock-l { font-size: 12px; color: var(--lp-muted); }
.ait-clock-c { min-height: 1.3em; font-family: var(--ait-mono); font-size: 11px; color: var(--lp-accent); font-variant-numeric: tabular-nums; }
.ait-cap { margin: 0; font-size: 12px; line-height: 1.55; color: var(--lp-faint); }

/* ---------------- hero motion (only with .ait-motion) ---------------- */
.ait-motion .ait-hero .ait-caret { animation: ait-blink 1s steps(1) infinite; }
.ait-motion .ait-hero.is-typed .ait-caret { animation: ait-blink 1s steps(1) 2 forwards; }
.ait-motion .ait-hero:not(.is-play) :is(.ait-step, .ait-stamp, .ait-panel, .ait-clock, .ait-cap) { opacity: 0; }
.ait-motion .ait-hero.is-play .ait-step { animation: ait-pop .5s var(--ait-ease) both; animation-delay: calc(.2s + var(--i) * .22s); }
.ait-motion .ait-hero.is-play .ait-stamp { animation: ait-rise .7s var(--ait-ease) 1.5s both; }
.ait-motion .ait-hero.is-play .ait-panel { animation: ait-rise .9s var(--ait-ease) 1.9s both; }
.ait-motion .ait-hero.is-play .ait-band { animation: ait-grow 1.1s var(--ait-ease) both; animation-delay: calc(2.3s + var(--d) * .12s); }
.ait-motion .ait-hero.is-play :is(.ait-flip, .ait-wall) { animation: ait-drop .6s var(--ait-ease) both; animation-delay: calc(2.9s + var(--d) * .12s); }
.ait-motion .ait-hero.is-play .ait-close { animation: ait-dot .7s var(--ait-ease) both; animation-delay: calc(3.2s + var(--d) * .12s); }
.ait-motion .ait-hero.is-play :is(.ait-clock, .ait-cap) { animation: ait-rise .8s var(--ait-ease) 3.8s both; }
.ait-motion .ait-hero.is-play .ait-live i { animation: ait-ping 2.4s ease-out 4.5s infinite; }
.ait-motion .ait-hero.is-play .ait-aura i { animation: ait-drift 18s ease-in-out infinite alternate; }
.ait-motion .ait-hero.is-play .ait-aura i:nth-child(2) { animation-duration: 23s; animation-direction: alternate-reverse; }
.ait-motion .ait-hero.is-play .ait-aura i:nth-child(3) { animation-duration: 27s; }
.ait-motion .ait-hero.is-play .ait-band::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, transparent, color-mix(in srgb, #fff 45%, transparent), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: ait-sheen 7s ease-in-out infinite; animation-delay: calc(4.6s + var(--d) * .35s); opacity: .55; }

@keyframes ait-blink { 50% { opacity: 1; } }
@keyframes ait-pop { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes ait-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ait-grow { from { opacity: 0; transform: scaleX(.04); } to { opacity: 1; transform: scaleX(1); } }
@keyframes ait-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes ait-dot { 0% { opacity: 0; transform: scale(0); } 70% { opacity: 1; transform: scale(1.35); } 100% { opacity: 1; transform: scale(1); } }
@keyframes ait-ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lp-green) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes ait-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(8%, 6%, 0) scale(1.12); } }
@keyframes ait-sheen { 0%, 70% { background-position: -60% 0; } 100% { background-position: 160% 0; } }

/* ================= board ================= */
.ait-board { margin: 28px 0; }
.ait-board-scroll { overflow-x: auto; border-radius: var(--lp-r-lg, 18px); }
.ait-board-scroll:focus-visible { outline: 2px solid var(--lp-primary); outline-offset: 2px; }
.lpb-prose .ait-board table { min-width: 760px; margin: 0; font-size: 14px; }
.lpb-prose .ait-board th[scope="row"] { text-align: left; }
.ait-board-id { display: grid; gap: 0; }
.ait-board-t { font-family: var(--lp-font-title); font-weight: 700; }
.ait-board-n { font-size: 11.5px; font-weight: 400; color: var(--lp-faint); }
.lpb-prose .ait-board td { font-family: var(--ait-mono); font-size: 13px; white-space: nowrap; }
.lpb-prose .ait-board td:first-child { font-weight: 400; }
.ait-chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-weight: 700; }
.ait-chip--neg { color: var(--ait-neg); background: color-mix(in srgb, var(--ait-neg) 14%, transparent); }
.ait-chip--pos { color: var(--ait-pos); background: color-mix(in srgb, var(--ait-pos) 14%, transparent); }
.ait-board-row--neg th { box-shadow: inset 3px 0 0 var(--ait-neg); }
.ait-board-row--pos th { box-shadow: inset 3px 0 0 var(--ait-pos); }
:is(.lpb-prose, .lp-prose) .ait-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--lp-faint); }

/* ================= Fed day ================= */
.ait-day, .ait-dix { margin: 32px 0; padding: clamp(16px, 3vw, 28px); border: 1px solid var(--lp-border); border-radius: var(--lp-r-xl, 24px); background: linear-gradient(170deg, var(--lp-surface), var(--lp-bg)); }
:is(.lpb-prose, .lp-prose) :is(.ait-day-head, .ait-dix-head) { margin: 0 0 16px; padding: 0; text-align: left; }
.ait-day-k { margin: 0; font-size: var(--lp-fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--lp-muted); }
.ait-day-title { margin: 6px 0 0; font-family: var(--lp-font-title); font-weight: 600; font-size: clamp(19px, 2.4vw, 24px); letter-spacing: -.015em; color: var(--lp-text); }
:is(.lpb-prose, .lp-prose) .ait-line { position: relative; list-style: none; margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.ait-line::before { content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 2px; background: linear-gradient(90deg, var(--lp-border-strong), var(--ait-gold) 30%, var(--lp-primary) 70%, var(--lp-border-strong)); }
.ait-line-i { position: relative; display: grid; gap: 2px; padding-top: 22px; }
.ait-line-dot { position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--lp-bg); border: 2px solid var(--lp-border-strong); }
.ait-line-i--fed .ait-line-dot { border-color: var(--ait-gold); box-shadow: 0 0 14px var(--ait-gold); }
.ait-line-i--msft .ait-line-dot, .ait-line-i--amzn .ait-line-dot { border-color: var(--lp-primary); box-shadow: 0 0 14px var(--lp-primary); }
.ait-line-t { font-family: var(--ait-mono); font-size: 13px; font-weight: 700; color: var(--lp-text); }
.ait-line-l { font-size: 12.5px; color: var(--lp-muted); line-height: 1.35; }
.ait-line-c { min-height: 1.3em; font-family: var(--ait-mono); font-size: 11px; color: var(--lp-accent); }
.ait-day-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ait-day-card { display: grid; align-content: start; gap: 4px; padding: 14px 16px; border: 1px solid var(--lp-border); border-radius: var(--lp-r-lg, 18px); background: var(--lp-surface-2); }
.lpb-prose .ait-day-card p { margin: 0; }
.ait-day-card-k { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--lp-faint); }
.ait-day-card-n { font-family: var(--lp-font-title); font-weight: 700; font-size: 30px; letter-spacing: -.02em; color: var(--lp-text); }
.ait-day-card-s { font-size: 13px; line-height: 1.5; color: var(--lp-muted); }
.lpb-prose .ait-earn { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; }
.lpb-prose .ait-earn li { margin: 0; display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: baseline; gap: 10px; }
.ait-earn b { font-family: var(--lp-font-title); }
.ait-earn span { font-family: var(--ait-mono); font-weight: 700; color: var(--lp-text); }
.ait-earn em { overflow-wrap: anywhere; font-style: normal; font-size: 12px; color: var(--ait-gold); }

/* ================= DIX ================= */
.ait-dix-svg { display: block; width: 100%; height: auto; }
.ait-dix-s0 { stop-color: var(--lp-primary); stop-opacity: .35; }
.ait-dix-s1 { stop-color: var(--lp-primary); stop-opacity: 0; }
.ait-dix-line { fill: none; stroke: var(--lp-accent); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.ait-dix-avg { stroke: var(--ait-gold); stroke-width: 1.2; stroke-dasharray: 5 5; opacity: .8; }
.ait-dix-last { fill: #fff; stroke: var(--lp-primary); stroke-width: 3; }
.ait-motion .ait-dix.is-in .ait-dix-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ait-draw 1.8s var(--ait-ease) .2s forwards; }
.ait-motion .ait-dix.is-armed:not(.is-in) .ait-dix-last { opacity: 0; }
.ait-motion .ait-dix.is-in .ait-dix-last { animation: ait-dot .6s var(--ait-ease) 1.9s both; transform-box: fill-box; transform-origin: center; }
@keyframes ait-draw { to { stroke-dashoffset: 0; } }
.ait-dix-stats { margin: 14px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ait-dix-stats div { padding: 10px 12px; border: 1px solid var(--lp-border); border-radius: var(--lp-r, 12px); }
.ait-dix-stats dt { font-size: 11.5px; color: var(--lp-faint); }
.ait-dix-stats dd { margin: 2px 0 0; font-family: var(--ait-mono); font-weight: 700; color: var(--lp-text); }
.ait-dix-table { margin-top: 12px; font-size: 13px; color: var(--lp-muted); }
.ait-dix-table summary { cursor: pointer; }
.lpb-prose .ait-dix-table table { margin-top: 8px; max-width: 320px; }

/* ================= small screens ================= */
@media (max-width: 759.98px) {
  .ait-rail { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "id v" "track track"; gap: 4px 12px; padding: 10px 2px 16px; }
  .ait-rail-id { grid-area: id; } .ait-rail-v { grid-area: v; } .ait-track { grid-area: track; height: 50px; }
  .ait-end { display: block; }
  .ait-clock { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ait-clock-item:nth-child(4) { border-left: 0; }
  .ait-clock-item:nth-child(n+4) { border-top: 1px solid var(--lp-border); }
  :is(.lpb-prose, .lp-prose) .ait-line { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 16px; }
  .ait-line::before { display: none; }
  .ait-day-grid, .ait-dix-stats { grid-template-columns: minmax(0, 1fr); }
  .ait-dix-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .ait-hero *, .ait-dix * { animation: none !important; }
}

/* ================= compact desktop hero: two columns, about 16:9 ================= */
@media (min-width: 980px) {
  .ait-hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "top top" "q panel" "steps panel" "stamp panel" "clock panel" "cap cap";
    grid-template-rows: auto auto auto auto 1fr auto;
    column-gap: clamp(20px, 2.6vw, 34px); row-gap: 12px;
    padding: clamp(20px, 2.4vw, 30px) clamp(20px, 2.6vw, 32px) 16px;
  }
  .ait-top { grid-area: top; }
  .ait-q { grid-area: q; margin: 2px 0 0; max-width: none; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.06; }
  .ait-steps { grid-area: steps; flex-direction: column; align-items: flex-start; gap: 5px; }
  .ait-step { font-size: 11px; padding: 3px 10px 3px 5px; }
  .ait-stamp { grid-area: stamp; margin: 0; }
  .ait-stamp span { font-size: 15px; padding: 6px 12px; }
  .ait-panel { grid-area: panel; align-self: stretch; margin: 0; gap: 8px; padding: 12px 14px 10px; }
  .ait-group { gap: 0; }
  .ait-group-h { margin: 0 0 2px; font-size: 11px; }
  .ait-rail { grid-template-columns: 136px minmax(0, 1fr) 66px; gap: 10px; padding: 0 4px; }
  .ait-rail-t { font-size: 15px; }
  .ait-rail-n { font-size: 11px; }
  .ait-rail-m { font-size: 13.5px; }
  .ait-rail-g { font-size: 11px; }
  .ait-track { height: 50px; }
  .ait-band { height: 11px; margin-top: -5.5px; }
  .ait-flip { height: 22px; margin-top: -11px; }
  .ait-flip b, .ait-close b { font-size: 10px; }
  .ait-close { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
  .ait-close b { top: calc(100% + 3px); }
  .ait-wall { height: 16px; margin-top: -8px; }
  .ait-key { padding-top: 8px; gap: 6px 14px; font-size: 11px; }
  .ait-clock { grid-area: clock; align-self: end; margin: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ait-clock-item { padding: 7px 10px; border-left: 1px solid var(--lp-border); border-top: 1px solid var(--lp-border); }
  .ait-clock-item:nth-child(odd) { border-left: 0; }
  .ait-clock-item:nth-child(-n+2) { border-top: 0; }
  .ait-clock-t { font-size: 12px; }
  .ait-clock-l { font-size: 11px; }
  .ait-clock-c { font-size: 10.5px; min-height: 1.2em; }
  .ait-cap { grid-area: cap; font-size: 11px; }
}

/* ================= film mode (?film=hero): only the hero, centred and scaled to the screen ================= */
html.ait-film, html.ait-film body { overflow: hidden !important; background: var(--lp-bg, #0c0520); }
html.ait-film body { visibility: hidden; }
html.ait-film .ait-hero { visibility: visible; position: fixed; z-index: 9999; top: 50%; left: 50%; width: 1180px; margin: 0; border-radius: 24px; transform-origin: center; transform: translate(-50%, -50%) scale(var(--ait-film-scale, 1)); }
html.ait-film .fw-progress, html.ait-film .lpb-progress { display: none !important; }
