/* The home page's case: four stages built from the platform's own components (platform.css), on the site's colour chapters. Then the cast. */

/* ── the box in the headline. It blinks, and flips when it first arrives. ── */
.sai { position: relative; display: inline-block; width: 0.84em; height: 0.84em; vertical-align: -0.09em; margin-inline: 0.02em 0.08em; color: #1428CC; }
.sai-j, .sai-s { display: block; width: 100%; height: 100%; }
.sai svg { display: block; width: 100%; height: 100%; overflow: visible; }
.sai-lid { transform-box: fill-box; transform-origin: center; transform: scaleY(0); }
.sai-d { position: absolute; bottom: 0; left: 50%; width: 0.07em; height: 0.07em; background: currentColor; opacity: 0; }
.display.is-open .line { overflow: visible; }
@media (prefers-reduced-motion: no-preference) {
  .sai-lid { animation: sai-blink 6.5s linear 2.4s infinite; }
  .sai.is-flip .sai-j { animation: sai-jump 1500ms linear; transform-origin: 50% 100%; }
  .sai.is-flip .sai-s { animation: sai-spin 1500ms linear; transform-origin: 50% 50%; }
  .sai.is-flip .sai-d { animation: sai-dust 1500ms linear; }
  .sai-d1 { --dx: -0.34em; --dy: -0.1em; } .sai-d2 { --dx: -0.2em; --dy: -0.24em; } .sai-d3 { --dx: 0.34em; --dy: -0.1em; } .sai-d4 { --dx: 0.2em; --dy: -0.24em; }
  @media (hover: hover) and (pointer: fine) { .sai { cursor: pointer; } }
}
@keyframes sai-blink { 0%, 94%, 100% { transform: scaleY(0); } 96%, 98% { transform: scaleY(1); } }
@keyframes sai-jump {
  0% { translate: 0 0; scale: 1 1; animation-timing-function: ease-out; }
  10% { translate: 0 0; scale: 1.16 0.78; animation-timing-function: ease-out; }
  16% { translate: 0 -12%; scale: 0.88 1.14; animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); }
  38% { translate: 0 -74%; scale: 1 1; animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.4); }
  58% { translate: 0 0; scale: 0.92 1.1; animation-timing-function: ease-out; }
  63% { translate: 0 0; scale: 1.22 0.72; animation-timing-function: ease-out; }
  72% { translate: 0 -12%; scale: 0.96 1.05; animation-timing-function: ease-in; }
  80% { translate: 0 0; scale: 1.06 0.94; animation-timing-function: ease-out; }
  88%, 100% { translate: 0 0; scale: 1 1; }
}
@keyframes sai-spin { 0%, 15% { rotate: 0deg; animation-timing-function: cubic-bezier(0.35, 0, 0.5, 1); } 56%, 100% { rotate: 360deg; } }
@keyframes sai-dust { 0%, 58% { opacity: 0; translate: 0 0; } 61% { opacity: 0.95; translate: 0 0; } 84%, 100% { opacity: 0; translate: var(--dx) var(--dy); } }

/* ── hero tiles: the real screens, drifting ── */
.tile { color: var(--fg); }
.tile-win { position: absolute; inset-inline: 18px; top: 48px; bottom: -40px; overflow: hidden; background: #fff; border-radius: 12px 12px 0 0; box-shadow: 0 18px 44px rgba(3, 6, 40, 0.28); }
.tile-win { --tz: 0.62; }
/* a real scale, not CSS zoom: iPhone Safari keeps the text size under zoom and the lines collide */
.tile-win .psheet { width: calc(100% / var(--tz)); transform: scale(var(--tz)); transform-origin: 0 0; box-shadow: none; border-radius: 0; color: var(--text); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html[dir="rtl"] .tile-win .psheet { transform-origin: 100% 0; }
.tile-win .el-band-text { flex-basis: 300px; }
.tile-win .el-money { min-width: 200px; flex-basis: 220px; }
.tile-win .f-agent { border-radius: 0; }
@media (hover: hover) and (pointer: fine) { .tile-win { transition: transform 420ms var(--ease-out); } .tile:hover .tile-win { transform: translateY(-8px); } }

/* ── the chapters, stacked: no motion, no script, or a very short phone ── */
.beats { position: relative; }
.ground, #flowHost { display: none; }
.beat { display: grid; grid-template-columns: 4fr 8fr; background: var(--g); color: var(--fg); }
.beat[data-g="peri"], .tile[data-g="peri"] { --g: #8492FF; --fg: #111318; }
.beat[data-g="gold"], .tile[data-g="gold"] { --g: #E9C766; --fg: #111318; }
.beat[data-g="navy"], .tile[data-g="navy"] { --g: #0A1150; --fg: #FFFFFF; }
.beat[data-g="blue"], .tile[data-g="blue"] { --g: #1428CC; --fg: #FFFFFF; }
.beat-text { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 64px var(--m); }
.beat-text .head { font-size: clamp(34px, 3.6vw, 56px); line-height: 1.03; letter-spacing: -0.035em; }
.beat-text p { max-width: 24em; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.36; }
.beat-stage { min-width: 0; padding-top: 40px; display: flex; }
.psheet { width: 100%; overflow: hidden; background: #fff; color: var(--text); border-start-start-radius: 12px; box-shadow: 0 24px 60px rgba(10, 17, 80, 0.28); }
.f-body { display: flex; flex-direction: column; gap: 14px; padding: 18px 28px 26px; }
.f-agent { border-radius: var(--r-card); }
.f-agent .el-agent-name img { display: block; flex: none; width: 18px; height: 18px; }
.f-agent .el-agent-name .is-work { width: 30px; height: 30px; margin: -8px -6px; }
.f-agent .el-agent-text { position: relative; flex: 1 1 200px; }
.f-pane { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.f-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--r-tag); background: var(--tone); font: 500 12px/1 var(--font); white-space: nowrap; }
.f-tag.f-done { display: none; }
.f-tag.pos { background: var(--pos-bg); color: var(--pos-ink); }
.f-tag.blue { background: var(--tint-1); color: var(--tint-text); }
.f-tag.neg { background: var(--neg-bg); color: var(--neg-ink); }
.f-tag.warn { background: var(--warn-bg); color: var(--warn-ink); }

/* stock, contract or RFP */

/* source and vet */
.f-invited { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; color: var(--muted); }
.f-sq { display: flex; gap: 3px; }
.f-sq i { width: 12px; height: 12px; background: var(--track); }
.f-sq i.on { background: #1428CC; }
.f-offers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.f-offer { position: relative; padding: 12px 14px 14px; border: 1px solid var(--border); border-radius: var(--r-card); font-size: 13px; line-height: 20px; transition: background-color 320ms ease, border-color 320ms ease; }
.f-offer.top { background: var(--tint-1); border-color: var(--tint-2); }
.f-nm { font-weight: 600; font-size: 14px; }
.f-fig { font: 600 24px/30px var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin: 4px 0; }
.f-checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; color: var(--muted); }
.f-checks li { display: flex; align-items: baseline; gap: 7px; transition: opacity 240ms ease; }
.f-checks i { flex: none; width: 9px; height: 9px; background: var(--positive); transition: background-color 200ms ease; }
.f-checks .warn i { background: var(--amber); }
.f-checks .is-wait { opacity: 0.35; }
.f-checks .is-wait i { background: var(--track); }
.f-pick { display: none; position: absolute; inset-block-end: 14px; inset-inline-end: 12px; background: #fff; }
.f-offer.top .f-pick { display: inline-flex; }

/* negotiate and sign */
.f-round { font-weight: 600; }
.f-key { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--muted); }
.f-key span { display: inline-flex; align-items: center; gap: 6px; }
.f-key i { width: 10px; height: 10px; }
.f-key .k-you { background: #1428CC; } .f-key .k-them { background: #0C1238; }
.f-key b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.f-pane .el-next-body { padding: 14px 16px; gap: 10px 20px; }
.f-pane .el-next-title { font-size: 22px; line-height: 28px; }
.el-money-note del { color: var(--muted); font-weight: 500; }

/* match and finance */
.f-days { display: grid; grid-template-columns: repeat(45, minmax(0, 1fr)); gap: 2px; }
.f-days i { height: 12px; background: var(--track); }
.f-days i.on { background: var(--positive); }
.f-lanes { display: grid; gap: 8px; margin-top: 12px; }
.f-lane { display: grid; grid-template-columns: 112px minmax(0, 1fr) 52px; gap: 10px; align-items: center; font-size: 13px; line-height: 18px; color: var(--muted); }
.f-lane b { color: var(--text); font-weight: 600; text-align: end; font-variant-numeric: tabular-nums; }
.f-pass { padding: 10px 14px 12px; border: 1px solid var(--border); border-radius: var(--r-card); }
.f-pass-head { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.f-pass-head b { color: var(--text); font-weight: 600; font-size: 14px; }
.f-pass-head .f-tag { margin-inline-start: auto; }
.f-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 8px 0 0; }
.f-facts dt { color: var(--muted); font-size: 12px; line-height: 16px; }
.f-facts dd { margin: 0; font-weight: 600; font-size: 14px; line-height: 20px; }

/* ── the live stage: one case page stays while the chapters change around it ── */
html.js .scene.is-live > .scene-stage { background: #8492FF; }
html.js .scene.is-live .hero { position: absolute; inset: var(--bar) 0 var(--gap, 0px) 0; min-height: 0; z-index: 8; pointer-events: none; box-shadow: 0 24px 70px rgba(3, 6, 40, 0.34); }
html.js .scene.is-live .hero a, html.js .scene.is-live .hero .sai { pointer-events: auto; }
html.js .scene.is-live .beats { position: absolute; inset: var(--bar) 0 var(--gap, 0px) 0; overflow: hidden; }
html.js .scene.is-live .ground { display: block; position: absolute; inset: 0; z-index: 1; visibility: visible; }
.ground i { position: absolute; inset: 0; display: block; }
.ground-wave { background: url("assets/wave.svg") center / 100% 100% no-repeat; opacity: 0.9; }
html.js .scene.is-live .beat { position: absolute; inset: 0; display: block; z-index: 3; background: none; pointer-events: none; }
html.js .scene.is-live .beat-text { position: absolute; inset-block: 0; inset-inline-start: 0; width: 33.4%; padding-block: 0; padding-inline: var(--m) clamp(16px, 2vw, 32px); }
html.js .scene.is-live .beat-stage { display: none; }
html.js .scene.is-live #flowHost { display: block; position: absolute; z-index: 5; inset-block: clamp(20px, 4.4vh, 40px) 0; inset-inline: 33.4% 0; }
html.js .scene.is-live #flowHost .psheet { position: absolute; top: 0; inset-inline-start: 0; transform-origin: 0 0; }
html[dir="rtl"].js .scene.is-live #flowHost .psheet { transform-origin: 100% 0; }
.f-panes { position: relative; flex: 1; min-height: 0; }
.f-panes .f-pane { position: absolute; inset: 0; visibility: hidden; opacity: 0; }
.f-panes .f-pane.is-on { visibility: visible; }
.f-panes .f-offers { flex: 1; }
#flowHost .psheet { display: flex; flex-direction: column; }
#flowHost .f-body { flex: 1; min-height: 0; }
/* nothing jumps: the struck-out price and a long sentence have their room from the start */
#flowHost .el-money-note { min-height: 16px; }
#flowHost .f-agent { flex-wrap: nowrap; }
#flowHost .f-act.is-gone { display: none; }
#flowHost .f-tag.f-done.is-on { display: inline-flex; }
@keyframes f-pulse { from { opacity: 1; } to { opacity: 0.45; } }
.f-cur { position: absolute; left: 0; top: 0; z-index: 30; display: flex; align-items: flex-start; pointer-events: none; opacity: 0; }
.f-cur svg { width: 20px; height: 20px; fill: #0C1238; stroke: #fff; stroke-width: 1.4; }
.f-cur span { margin: 13px 0 0 -3px; padding: 2px 7px; background: #0C1238; color: #fff; font: 500 12px/16px var(--font); white-space: nowrap; border-radius: var(--r-tag); }

/* ── the cast ── */
.cast { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 3vw, 56px); align-items: center; padding: clamp(64px, 8vw, 112px) var(--m); background: #0C1238; color: #fff; }
.cast-copy p { margin-top: 18px; max-width: 24em; font-size: var(--step-lead); line-height: 1.32; color: #C7CBD4; }
.cast-team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cast-team li { padding: clamp(14px, 1.5vw, 22px); background: #141C4E; font: 500 15px/1.3 var(--font-text); }
.cast-team img { display: block; width: clamp(72px, 7.4vw, 112px); height: auto; aspect-ratio: 1; margin-bottom: 12px; }
.cast-team b { display: block; font: 600 clamp(18px, 1.5vw, 22px)/1.2 var(--font-display); letter-spacing: -0.015em; }
.cast-team span { display: block; margin-top: 3px; color: #C7CBD4; font-size: clamp(14px, 1.1vw, 16px); }
@media (prefers-reduced-motion: no-preference) {
  .js .cast-team li { opacity: 0; transform: translateY(20px); transition: opacity 620ms var(--ease-out) calc(var(--n) * 80ms), transform 820ms var(--ease-expo) calc(var(--n) * 80ms); }
  .js .cast-team.is-in li { opacity: 1; transform: none; }
  .cast-team img { transform-origin: 50% 100%; }
  .cast-team.is-seen img { animation: cast-hop 9s ease-out infinite; animation-delay: calc(var(--n) * 1.5s); }
  @media (hover: hover) and (pointer: fine) { .cast-team li:hover img { animation: cast-hop-now 620ms ease-out; } }
}
@keyframes cast-hop { 0%, 8%, 100% { transform: none; } 1.4% { transform: scale(1.1, 0.86); } 3.4% { transform: translateY(-16%) scale(0.95, 1.05); } 5.6% { transform: scale(1.05, 0.94); } }
@keyframes cast-hop-now { 0%, 100% { transform: none; } 18% { transform: scale(1.1, 0.86); } 46% { transform: translateY(-16%) scale(0.95, 1.05); } 74% { transform: scale(1.05, 0.94); } }

/* ── tablet ── */
@media (max-width: 1000px) {
  .beat { grid-template-columns: 1fr; }
  .beat-text { padding: 48px var(--m) 8px; }
  .beat-stage { padding-top: 24px; padding-inline-start: var(--m); }
  html.js .scene.is-live .beat-text { width: auto; inset-inline: 0; inset-block: 0 auto; padding: 18px var(--m) 0; gap: 8px; }
  html.js .scene.is-live .beat-text .head { font-size: 34px; }
  html.js .scene.is-live .beat-text p { font-size: 17px; max-width: 40em; }
  html.js .scene.is-live #flowHost { inset-block: 150px 0; inset-inline: var(--m) 0; }
  .cast { grid-template-columns: 1fr; }
}

/* ── phone: the same page, tighter ── */
@media (max-width: 767px) {
  html.js .scene.is-live .beat-text { padding: 12px var(--m) 0; gap: 4px; }
  html.js .scene.is-live .beat-text .head { font-size: 25px; line-height: 1.06; }
  html.js .scene.is-live .beat-text p { font-size: 14.5px; line-height: 1.3; }
  html.js .scene.is-live #flowHost { inset-block: 116px 0; inset-inline: 10px 0; }
  .beat-stage { padding-inline-start: 10px; }
  .psheet .el-band { padding: 12px 14px 14px; gap: 12px; }
  .psheet .el-band-main { gap: 10px; }
  .psheet .ds-title { font-size: 24px; line-height: 30px; }
  .psheet .el-band-finding { font-size: 14px; line-height: 19px; }
  .psheet .el-money { padding: 8px 12px; min-width: 0; }
  .psheet .el-money-fig { font-size: 24px; line-height: 30px; }
  .psheet .el-stops { min-width: 0; }
  .psheet .el-stop { font-size: 10.5px; line-height: 14px; padding-block-start: 20px; }
  .psheet .el-stop-sub { display: none; }
  .f-body { padding: 10px 12px 14px; gap: 8px; }
  .f-pane { gap: 8px; }
  .f-agent { padding: 7px 10px; font-size: 12px; line-height: 16px; }
  #flowHost .f-agent .el-agent-text { min-height: 32px; display: flex; flex-direction: column; justify-content: center; }
  .f-pane .el-next-body { padding: 9px 10px; }
  .f-pane .el-next-title { font-size: 17px; line-height: 22px; }
  .f-pane .el-next-sub { font-size: 12px; line-height: 16px; }
  .f-offers { grid-template-columns: 1fr; gap: 5px; }
  .f-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; padding: 6px 10px; font-size: 12px; line-height: 16px; }
  .f-nm { font-size: 13px; line-height: 18px; }
  .f-offer .f-fig { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; font-size: 18px; line-height: 24px; }
  .f-offer .f-checks { display: none; }
  .f-pick { display: none !important; }
  .f-invited { font-size: 12px; gap: 4px 8px; }
  .f-sq i { width: 9px; height: 9px; }
  .f-pane .el-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .f-pane .el-stat { padding: 7px 8px; }
  .f-pane .el-stat-label { font-size: 11px; line-height: 14px; }
  .f-pane .el-stat-value { font-size: 15px; line-height: 20px; }
  .f-pane .el-stat-sub { display: none; }
  .f-pane .el-stats.f-two { grid-template-columns: 1fr 1fr; }
  .f-key { font-size: 11.5px; gap: 2px 10px; }
  .f-pass { display: none; }
  .f-lanes { margin-top: 6px; gap: 3px; }
  .f-lane { grid-template-columns: 86px minmax(0, 1fr) 40px; gap: 6px; font-size: 11px; line-height: 14px; }
  .f-days i { height: 8px; }
  .f-days { gap: 1px; }
  .cast { padding: 48px var(--m); }
  .cast-copy p { margin-top: 10px; font-size: 16.5px; line-height: 1.36; }
  .cast-team { grid-template-columns: 1fr 1fr; gap: 6px; }
  .cast-team li { padding: 12px; }
  .cast-team img { width: 64px; margin-bottom: 8px; }
  .tile-win { inset-inline: 10px; top: 36px; }
  .tile-win { --tz: 0.5; }
  .tile-name { font-size: 15.5px; top: 10px; }
}
/* a short phone keeps the stage but drops what it can */
@media (max-width: 767px) and (max-height: 720px) {
  html.js .scene.is-live .beat-text p { display: none; }
  html.js .scene.is-live #flowHost { inset-block-start: 56px; }
}

/* ── every stage has its own picture, so skimming tells them apart ── */
.psheet .el-band { padding: 16px 28px 18px; gap: 16px; }
.psheet .el-stops-wrap { overflow: hidden; }
.psheet .el-stops { min-width: 0; }

/* stock, contract or RFP: each line travels until something can fill it, and lands as a staircase */
.f-ask { display: flex; align-items: flex-start; gap: 10px; }
.f-ask p { margin: 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.f-ask b { color: var(--text); font-weight: 600; }
.f-avatar { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #E9C766; color: #111318; font-size: 11px; font-weight: 600; }
.f-board { display: grid; gap: 6px; --lab: minmax(0, 150px); }
.f-bhead { display: grid; grid-template-columns: 150px repeat(3, minmax(0, 1fr)); gap: 8px; font-weight: 600; font-size: 13px; line-height: 18px; }
.f-bhead span:not(:first-child) { padding: 5px 10px; border-radius: var(--r-ctl); }
.h-stock { background: var(--cream); color: var(--cream-ink); }
.h-con { background: var(--tint-2); color: var(--tint-text); }
.h-mkt { background: #1428CC; color: #fff; }
.f-rt { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px; min-height: 58px; }
.f-rt-label { align-self: center; }
.f-rt-label b { display: block; font-weight: 600; }
.f-rt-label small { display: block; color: var(--muted); font-size: 12px; line-height: 16px; }
.f-rt-cells { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.f-rt-track { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.f-rt-line { position: absolute; inset-inline: 0; top: calc(50% - 1px); height: 2px; background: #1428CC; transform: scaleX(var(--go)); transform-origin: 0 50%; }
html[dir="rtl"] .f-rt-line { transform-origin: 100% 50%; }
.f-rt-dot { position: absolute; top: calc(50% - 6px); width: 12px; height: 12px; background: #1428CC; inset-inline-start: calc(var(--go) * 100%); margin-inline-start: -6px; }
.f-cell { position: relative; min-width: 0; padding: 6px 10px; border-radius: var(--r-ctl); }
.f-cell:not(.f-hit) { border: 1px dashed var(--border); }
.f-miss { color: var(--muted); font-size: 12px; line-height: 16px; }
.f-hit { z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; }
.f-hit b { font-weight: 600; font-size: 13px; line-height: 17px; }
.f-hit .f-tag { height: 20px; }
.f-hit .f-tag.pos { background: #fff; }
.f-hit .f-tag.blue { background: #fff; color: #1428CC; }

/* negotiate and sign: two lines closing on one price, beside a contract being signed */
.f-deal { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; }
.f-room { display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 300px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-card); }
.f-room-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; }
.f-chart { position: relative; flex: 1; min-height: 130px; margin-block: 6px; margin-inline: 6px 22px; }
.f-zone { position: absolute; inset-block: 40% 0; inset-inline: -6px -16px; background: var(--tint-1); }
.f-ceil { position: absolute; inset-inline: -6px -16px; top: 40%; height: 0; border-top: 2px dashed var(--text); }
.f-ceil span { position: absolute; bottom: 3px; inset-inline-start: 0; font: 500 12px/14px var(--font); white-space: nowrap; }
.f-plot { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
html[dir="rtl"] .f-plot { transform: scaleX(-1); }
.f-plot polyline { fill: none; stroke-width: 3; vector-effect: non-scaling-stroke; }
.l-you { stroke: #1428CC; } .l-them { stroke: #0C1238; }
.f-points { position: absolute; inset: 0; }
.f-pt { position: absolute; top: calc(var(--y) * 1%); inset-inline-start: calc(var(--x) * 1%); width: 10px; height: 10px; margin: -5px 0 0; margin-inline-start: -5px; background: #0C1238; }
.f-pt.you { background: #1428CC; }
.f-pt:not(.on) { opacity: 0; }
.f-lab { position: absolute; top: calc(var(--y) * 1%); inset-inline-start: calc(var(--x) * 1%); padding: 1px 6px; font: 600 13px/18px var(--font); font-variant-numeric: tabular-nums; color: #fff; background: #0C1238; border-radius: var(--r-tag); transform: translate(-50%, -150%); transition: inset-inline-start 700ms var(--ease-travel), top 700ms var(--ease-travel); }
html[dir="rtl"] .f-lab { transform: translate(50%, -150%); }
.f-lab-you { background: #1428CC; transform: translate(-50%, 50%); }
html[dir="rtl"] .f-lab-you { transform: translate(50%, 50%); }
.f-chart.is-met .f-lab-them { display: none; }
.f-chart.is-met .f-lab-you { background: var(--positive); font-size: 15px; line-height: 22px; transform: translate(-50%, 45%); }
html[dir="rtl"] .f-chart.is-met .f-lab-you { transform: translate(50%, 45%); }
.f-says { display: grid; gap: 4px; }
.f-say { display: flex; align-items: baseline; gap: 7px; margin: 0; font-size: 13px; line-height: 18px; color: var(--muted); }
.f-say i { flex: none; width: 10px; height: 10px; }
.f-say .k-you { background: #1428CC; } .f-say .k-them { background: #0C1238; }
.f-desk { display: flex; min-width: 0; padding: 12px; background: var(--frame); border-radius: var(--r-card); }
.f-paper { flex: 1; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px 16px; background: #fff; box-shadow: 0 6px 20px rgba(10, 17, 80, 0.14); }
.f-paper-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.f-paper h4 { margin: 0; font: 600 18px/24px var(--display); letter-spacing: -0.015em; }
.f-terms { display: grid; gap: 3px; margin: 0; font-size: 13px; line-height: 18px; }
.f-terms > div { display: flex; justify-content: space-between; gap: 10px; padding: 1px 3px; }
.f-terms dt { color: var(--muted); }
.f-terms dd { margin: 0; font-weight: 500; text-align: end; }
.f-clauses { margin: 0; padding-top: 8px; border-top: 1px solid var(--rule); font-size: 12px; line-height: 17px; }
.f-signs { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f-sign { position: relative; display: flex; align-items: flex-end; height: 38px; border-bottom: 1px solid var(--text); }
.f-ink { font: 400 26px/34px "Mrs Saint Delafield", cursive; color: #0C1238; white-space: nowrap; }
.f-tab { position: absolute; bottom: 6px; left: 0; padding: 2px 7px; background: #1428CC; color: #fff; font: 600 12px/16px var(--font); border-radius: var(--r-tag); opacity: 0; }

/* match and finance: a table that catches the wrong number, then money laid out in days */
.f-match { gap: 14px; }
.f-mx { position: relative; flex: none; border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; }
.f-mx-row { display: grid; grid-template-columns: minmax(0, 1.05fr) repeat(3, minmax(0, 1fr)) 34px; align-items: center; min-height: 42px; border-top: 1px solid var(--rule); }
.f-mx-row:first-of-type { border-top: 0; }
.f-mx-head { min-height: 34px; font-weight: 600; font-size: 13px; }
.f-mx-row > * { padding: 4px 12px; min-width: 0; }
.f-mx-head > span { align-self: stretch; display: flex; align-items: center; }
.h-po { background: var(--tint-3); } .h-gr { background: var(--cream); } .h-inv { background: var(--tone); display: block !important; line-height: 26px; }
.f-mx-row > span:first-child { color: var(--muted); font-size: 13px; }
.f-mx-row b { font: 600 18px/26px var(--display); letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.f-mx-row b[dir="ltr"] { text-align: start; }
html[dir="rtl"] .f-mx-row b[dir="ltr"] { text-align: right; }
.f-mx-row b.f-na { font: 400 12px/16px var(--font); letter-spacing: 0; color: var(--muted); }
.f-inv { transition: background-color 280ms ease, color 280ms ease; }
.f-inv.is-bad { background: var(--neg-bg); color: var(--negative); align-self: stretch; display: flex; align-items: center; }
.f-ok { justify-self: center; width: 14px; height: 14px; padding: 0 !important; background: var(--positive); transition: background-color 200ms ease; }
#flowHost .f-ok:not(.on) { background: var(--track); }
#flowHost .f-ok.no { background: var(--negative); }
.f-scan { position: absolute; inset-inline: 0; top: 0; z-index: 3; height: 3px; padding: 0 !important; background: #1428CC; opacity: 0; }
.f-reissued.is-off { display: none; }
.f-fin { flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.f-seg { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 3px; background: var(--tone); border-radius: var(--r-ctl); font-weight: 500; font-size: 13px; line-height: 18px; }
.f-seg span { position: relative; z-index: 1; padding: 6px 8px; text-align: center; transition: color 240ms ease; }
.f-seg span.is-on { color: #fff; font-weight: 600; }
.f-thumb { position: absolute; top: 3px; bottom: 3px; inset-inline-start: 3px; width: calc((100% - 6px) / 3); background: #1428CC; border-radius: var(--r-tag); transform: translateX(calc(var(--s) * 100%)); transition: transform 460ms var(--ease-travel); }
html[dir="rtl"] .f-thumb { transform: translateX(calc(var(--s) * -100%)); }
.f-fin .f-lanes { margin-top: 0; gap: 8px; }
.f-fin .f-lane { grid-template-columns: 96px minmax(0, 1fr) 56px; }
.f-fin .f-days i { height: 20px; transition: background-color 180ms ease calc(var(--i, 0) * 9ms); }
.f-fin .f-you-d i.on { background: #0C1238; }
.f-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: auto 0 0; }
.f-cap-a { font: 600 26px/32px var(--display); letter-spacing: -0.02em; color: var(--pos-ink); }
.f-cap-b { font-size: 14px; line-height: 20px; color: var(--muted); }

/* the hero's box: the outfits sit on the same box, a poof covers the change */
.sai { margin-inline: 0.1em 0.12em; }
.sai-s { position: relative; }
.sai-plain, .sai-lids { position: absolute; inset: 0; }
.sai-lids { pointer-events: none; }
.sai-lid { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); }
.sai-fit { position: absolute; left: -16.667%; top: -25%; width: 133.333%; height: 133.333%; max-width: none; visibility: hidden; }
.sai.is-dressed .sai-plain { visibility: hidden; }
.sai-fit.is-on { visibility: visible; }
.sai-p { position: absolute; top: 50%; left: 50%; z-index: 2; width: var(--sz); height: var(--sz); margin: calc(var(--sz) / -2) 0 0 calc(var(--sz) / -2); border-radius: 22%; background: var(--c); opacity: 0; pointer-events: none; }
.sai-p0 { --sz: 1.02em; --c: #D9DEFF; --dx: 0; --dy: 0; }
.sai-p1 { --sz: 0.5em; --c: #8492FF; --dx: -0.46em; --dy: -0.3em; }
.sai-p2 { --sz: 0.56em; --c: #E3E7FF; --dx: 0.46em; --dy: -0.32em; }
.sai-p3 { --sz: 0.44em; --c: #D9DEFF; --dx: -0.52em; --dy: 0.26em; }
.sai-p4 { --sz: 0.48em; --c: #8492FF; --dx: 0.5em; --dy: 0.3em; }
.sai-p5 { --sz: 0.28em; --c: #E9C766; --dx: 0; --dy: -0.66em; }
.sai-p6 { --sz: 0.24em; --c: #1428CC; --dx: 0.08em; --dy: 0.62em; }
@media (prefers-reduced-motion: no-preference) {
  .sai-lid { animation: sai-blink 5.5s linear 2.4s infinite; }
  .sai.is-flip .sai-p { animation: sai-poof 760ms cubic-bezier(0.2, 0.8, 0.3, 1) 360ms; }
}
@keyframes sai-blink { 0%, 95.4%, 100% { transform: scaleY(0); } 97% { transform: scaleY(1); } 97.6% { transform: scaleY(1); } }
@keyframes sai-poof { 0% { opacity: 0; transform: translate(0, 0) scale(0.2); } 26% { opacity: 1; transform: translate(calc(var(--dx) * 0.55), calc(var(--dy) * 0.55)) scale(1); } 58% { opacity: 1; transform: translate(calc(var(--dx) * 0.8), calc(var(--dy) * 0.8)) scale(1.04); } 100% { opacity: 0; transform: translate(calc(var(--dx) * 1.25), calc(var(--dy) * 1.25)) scale(0.5); } }
@keyframes sai-jump {
  0% { translate: 0 0; scale: 1 1; animation-timing-function: ease-out; }
  10% { translate: 0 0; scale: 1.16 0.78; animation-timing-function: ease-out; }
  16% { translate: 0 -8%; scale: 0.88 1.14; animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); }
  38% { translate: 0 -40%; scale: 1 1; animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.4); }
  58% { translate: 0 0; scale: 0.92 1.1; animation-timing-function: ease-out; }
  63% { translate: 0 0; scale: 1.22 0.72; animation-timing-function: ease-out; }
  72% { translate: 0 -8%; scale: 0.96 1.05; animation-timing-function: ease-in; }
  80% { translate: 0 0; scale: 1.06 0.94; animation-timing-function: ease-out; }
  88%, 100% { translate: 0 0; scale: 1 1; }
}

/* the live page keeps the room it needs */
.f-panes .f-board { flex: 1; grid-template-rows: auto 1fr 1fr 1fr; }
.f-panes .f-rt { min-height: 0; }
.f-panes .f-deal { display: grid; }
.f-panes .f-room { min-height: 0; }

@media (max-width: 767px) {
  .psheet .el-band { padding: 12px 14px 14px; gap: 12px; }
  .f-ask { display: none; }
  .f-bhead { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; font-size: 11px; line-height: 14px; }
  .f-bhead span:first-child { display: none; }
  .f-bhead span:not(:first-child) { padding: 3px 6px; }
  .f-rt { grid-template-columns: 1fr; gap: 2px; }
  .f-rt-label b { display: inline; font-size: 12px; line-height: 16px; }
  .f-rt-label small { display: inline; margin-inline-start: 6px; font-size: 11px; }
  .f-rt-cells { gap: 4px; min-height: 46px; }
  .f-cell { padding: 4px 6px; }
  .f-miss { font-size: 11px; line-height: 14px; }
  .f-hit { gap: 2px; }
  .f-hit b { font-size: 11px; line-height: 14px; }
  .f-hit .f-tag { height: 16px; padding: 0 4px; font-size: 10px; }
  .f-pane .el-next-body { flex-wrap: nowrap; }
  .f-deal, .f-panes .f-deal { display: flex; flex-direction: column; gap: 8px; }
  .f-room { flex: 1; padding: 8px 10px; gap: 4px; }
  .f-room-head { font-size: 12px; }
  .f-chart { min-height: 90px; margin-block: 4px; margin-inline: 4px 14px; }
  .f-says { display: none; }
  .f-ceil span { font-size: 11px; }
  .f-desk { padding: 6px; }
  .f-paper { padding: 8px 10px; gap: 6px; }
  .f-paper h4 { font-size: 14px; line-height: 18px; }
  .f-terms { grid-template-columns: 1fr 1fr; font-size: 11px; line-height: 14px; gap: 2px 8px; }
  .f-clauses { display: none; }
  .f-sign { height: 28px; }
  .f-ink { font-size: 20px; line-height: 26px; }
  .f-match { gap: 8px; }
  .f-mx-row { grid-template-columns: minmax(0, 0.9fr) repeat(3, minmax(0, 1fr)) 20px; min-height: 30px; }
  .f-mx-head { min-height: 26px; font-size: 10.5px; line-height: 13px; }
  .f-mx-row > * { padding: 2px 5px; }
  .f-mx-row > span:first-child { font-size: 10.5px; line-height: 13px; }
  .f-mx-row b { font-size: 13px; line-height: 18px; }
  .f-mx-row b.f-na { font-size: 10px; line-height: 12px; }
  .h-inv { line-height: 13px; }
  .f-ok { width: 10px; height: 10px; }
  .f-fin { gap: 6px; }
  .f-seg { font-size: 11px; line-height: 14px; }
  .f-seg span { padding: 4px 3px; }
  .f-fin .f-lane { grid-template-columns: 62px minmax(0, 1fr) 38px; gap: 5px; font-size: 11px; line-height: 14px; }
  .f-fin .f-lanes { gap: 4px; }
  .f-fin .f-days { gap: 1px; }
  .f-fin .f-days i { height: 12px; }
  .f-cap-a { font-size: 19px; line-height: 24px; }
  .f-cap-b { font-size: 12px; line-height: 16px; }
}

/* the money gets the room: the day bars grow to fill the stage */
.f-fin .f-lanes { flex: 1; min-height: 0; grid-auto-rows: 1fr; }
.f-fin .f-lane { align-items: stretch; }
.f-fin .f-lane > span, .f-fin .f-lane > b { align-self: center; }
.f-fin .f-days { align-items: stretch; }
.f-fin .f-days i { height: auto; min-height: 20px; }
.f-cap { margin-top: 0; }
.tile-win .f-pick { display: none !important; }
@media (max-width: 767px) {
  .f-fin .f-days i { min-height: 12px; }
  .f-pane:not(.f-deal):not(.f-match) .el-next-sub { display: none; }
}

/* ── the agents: who owns the stage beside its headline, and the same one at work inside the page ── */
.f-who { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 8px; }
.f-who-i { display: flex; flex-direction: column; gap: 4px; font: 600 clamp(14px, 1.1vw, 16px)/1.2 var(--font-text); }
.f-face { position: relative; display: block; width: 1em; height: 1em; font-size: clamp(84px, 7.6vw, 120px); margin-inline-start: -0.1em; }
.f-face img { display: block; width: 100%; height: 100%; }
html.js .scene.is-live .f-who { margin-top: 14px; }
html.js .scene.is-live .f-who-i { display: none; }
html.js .scene.is-live .f-who-i.is-on { display: flex; }
.f-rider { position: absolute; left: 0; top: 0; z-index: 25; width: 1em; height: 1em; font-size: 58px; pointer-events: none; opacity: 0; }
.f-rider-j { position: absolute; inset: 0; transform-origin: 50% 94%; }
.f-rider img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; visibility: hidden; }
.f-rider img.is-on { visibility: visible; }
#flowHost .f-rt-dot { display: none; }
.f-offer .f-pick { inset-block: 10px auto; inset-inline-end: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .is-poof > .sai-p { animation: sai-poof 620ms cubic-bezier(0.2, 0.8, 0.3, 1); }
  .f-who-i.is-on .f-face img { animation: f-arrive 460ms var(--ease-arrive); transform-origin: 50% 94%; }
}
@keyframes f-arrive { 0% { transform: translateY(-16%) scale(0.9, 1.08); } 60% { transform: scale(1.1, 0.88); } 100% { transform: none; } }
@media (max-width: 1000px) {
  html.js .scene.is-live .f-who { position: absolute; inset-inline-end: var(--m); top: 12px; margin: 0; }
  html.js .scene.is-live .f-who-i b { display: none; }
  html.js .scene.is-live .f-face { font-size: 64px; margin: 0; }
  html.js .scene.is-live .beat-text .head, html.js .scene.is-live .beat-text p { padding-inline-end: 70px; }
}
@media (max-width: 767px) {
  .f-face { font-size: 72px; }
  .f-rider { font-size: 44px; }
  html.js .scene.is-live .f-who { top: 6px; }
  html.js .scene.is-live .f-face { font-size: 52px; }
  html.js .scene.is-live .beat-text .head, html.js .scene.is-live .beat-text p { padding-inline-end: 56px; }
}
@media (max-width: 767px) and (max-height: 720px) {
  html.js .scene.is-live .f-face { font-size: 42px; }
  html.js .scene.is-live .f-who { top: 4px; }
}
