/* innerpulse brand layer for footballstatlab.com — loaded after app.css.
   Under 32 px the mark is the small mark: the beat (one damped strike and its echo) as six bare bars in one flat ember
   that follows the ground, #f43a2a on the dark themes and the deep #cf2a1c on the light ones. No tile, gradient, gloss
   or glow on it (innerpulse-brand, 2026-11-11). The favicons and app icons are the product's own steel plate. */

/* Instrument Sans and JetBrains Mono, self-hosted: the interface and label faces shared by every innerpulse site, so the
   app reads the same on every OS instead of in whatever system-ui resolves to. Both carry tabular figures. The chart
   maker (chartkit.css) keeps its own stack, since its image and video exports cannot embed a web font. */
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
:root{--font:"Instrument Sans",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;--mono:"JetBrains Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
/* Instrument Sans sets its bold tighter than the system faces app.css was tuned on: card titles drop their negative
   tracking, and the page title keeps a little with a touch more word space, so "AFC East" never reads "AFCEast". */
h2,h3,h4{letter-spacing:0;word-spacing:.03em}
h1{letter-spacing:-.018em;word-spacing:.05em}
:root{--ip-mark:#f43a2a;--innerpulse-mark:var(--ip-mark)}
:root:is([data-theme="sideline"],[data-theme="pylon"],[data-theme="playbook"]){--ip-mark:#cf2a1c}
:root{--innerpulse-pulse:var(--ip-mark);--innerpulse-hot:#ffd9c2}
/* on paper the deep ember lights to the bright ember (the kit's --innerpulse-working-hot); peach would vanish on white */
:root:is([data-theme="sideline"],[data-theme="pylon"],[data-theme="playbook"]){--innerpulse-hot:#f43a2a}

/* masthead lockup: the innerpulse chrome lockup (innerpulse-brand references/chrome.md). The mark is the small mark (the
   six bars, flat ember); "stats" is brushed steel on the dark themes and gunmetal on the light ones (paints inlined
   once per page by layout.php, from the kit's innerpulse-chrome-defs.svg). Motion is the kit's grammar: the reading is
   taken once, each bar growing from its stub to its rest from the left (0.55 s, 0.09 s apart), on the first page of a
   visit only (html.ip-draw, set by the head script) so moving between pages doesn't replay it; while .ip-busy is on
   <html> or the header, one pulse of light passes through the bars every 2.4 s (each brightens to the lamp color and
   back; the bars never scale); at rest the same pulse passes once every 12 s, the first 2 s after load; one sheen across the wordmark on hover or focus. None of it under reduced motion.
   The footer credit keeps the still mark. */
.brand{gap:10px}
.ip-chrome-mark{display:block;width:30px;height:30px;flex:none}
.ip-chrome-mark svg{display:block;width:100%;height:100%;overflow:visible}
.ip-chrome-mark rect{fill:var(--ip-mark);transform-box:fill-box;transform-origin:center}
.ip-draw .ip-chrome-mark rect{animation:ip-draw-in .55s cubic-bezier(.22,1,.36,1) calc(var(--i,0)*.09s) 1 both}
.ip-glint .ip-chrome-mark rect{animation:ip-glint .46s cubic-bezier(.45,0,.55,1) calc(var(--i,0)*.06s) 1}
.ip-busy .ip-chrome-mark rect{animation:ip-beat 2.4s cubic-bezier(.45,0,.55,1) infinite;animation-delay:calc(var(--i,0)*.06s)}
/* start scale = 12 / h, from the resting heights 12 · 82.22 · 51.83 · 33.34 · 56.13 · 12 */
.ip-chrome-mark rect:nth-child(1),.ip-chrome-mark rect:nth-child(6){--ip-from:1}
.ip-chrome-mark rect:nth-child(2){--ip-from:.146}
.ip-chrome-mark rect:nth-child(3){--ip-from:.232}
.ip-chrome-mark rect:nth-child(4){--ip-from:.360}
.ip-chrome-mark rect:nth-child(5){--ip-from:.214}
@keyframes ip-draw-in{from{transform:scaleY(var(--ip-from,1))}to{transform:scaleY(1)}}
/* the pulse is in a bar for 19 % of the period (0.46 s of 2.4): the bar brightens and settles */
@keyframes ip-beat{0%,19%,100%{fill:var(--ip-mark)}9.5%{fill:var(--innerpulse-hot)}}
/* at rest: the same 0.46 s pulse once every 12 s. app.js puts .ip-glint on <html> for that pulse only: as a looping
   12 s animation it had the browser restyle the page on every frame for as long as the page was open, since fill is
   animated on the main thread even through the 11.5 s when nothing shows */
@keyframes ip-glint{0%,100%{fill:var(--ip-mark)}50%{fill:var(--innerpulse-hot)}}
.ip-paused .ip-chrome-mark rect{animation-play-state:paused}
@media (prefers-reduced-motion:reduce){.ip-chrome-mark rect{animation:none!important}}
/* Football Stat Lab lockup: a spaced mono FOOTBALL kicker in the mark's red over the steel "stat lab" wordmark. Light themes take a
   deeper red so the 9.5px kicker keeps 4.5:1 on every background (Sideline, Playbook). */
.ip-chrome-lock{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.ip-kicker{display:block;font-family:var(--mono);font-size:9.5px;font-weight:600;line-height:1;letter-spacing:.42em;text-transform:uppercase;color:var(--ip-mark);margin-left:1px}
:root:is([data-theme="sideline"],[data-theme="pylon"],[data-theme="playbook"]) .ip-kicker{color:#b8251a}
.ip-chrome-word{position:relative;display:block;line-height:0}
.ip-chrome-word svg{display:block;height:19px;width:auto;overflow:visible}
.ip-chrome-word path{fill:url(#ip-steel-ink) var(--text-strong)}
:root:is([data-theme="primetime"],[data-theme="studio"],[data-theme="blitz"]) .ip-chrome-word path{fill:url(#ip-steel) var(--text-strong);stroke:rgba(255,255,255,.22);stroke-width:.8;paint-order:stroke}
:root:is([data-theme="primetime"],[data-theme="studio"],[data-theme="blitz"]) .ip-chrome-word svg{filter:drop-shadow(0 1px 0 rgba(0,0,0,.6))}
.ip-chrome-word::after{content:"";position:absolute;inset:0;pointer-events:none;-webkit-mask:url(brand/statlab-wordmark-mask.svg) center/100% 100% no-repeat;mask:url(brand/statlab-wordmark-mask.svg) center/100% 100% no-repeat;background:linear-gradient(105deg,transparent 38%,rgba(255,255,255,.85) 50%,transparent 62%) no-repeat;background-size:260% 100%;background-position:130% 0;mix-blend-mode:overlay;opacity:0}
:root:is([data-theme="primetime"],[data-theme="studio"],[data-theme="blitz"]) .ip-chrome-word::after{mix-blend-mode:normal}
.ip-chrome:hover .ip-chrome-word::after,.ip-chrome:focus-visible .ip-chrome-word::after{animation:ip-chrome-sheen 1.1s cubic-bezier(.4,0,.2,1) 1}
@keyframes ip-chrome-sheen{from{background-position:130% 0;opacity:1}to{background-position:-30% 0;opacity:1}}
@media (prefers-reduced-motion:reduce){.ip-chrome:hover .ip-chrome-word::after,.ip-chrome:focus-visible .ip-chrome-word::after{animation:none}}
.brand small{font-family:var(--mono);font-size:10.5px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;margin-left:4px;align-self:flex-end;line-height:1;margin-bottom:2px}
@media (max-width:720px){.ip-chrome-word svg{height:15px}.ip-kicker{font-size:8.5px;letter-spacing:.34em}.ip-chrome-lock{gap:3px}.brand small{font-size:9.5px;letter-spacing:.02em;margin-left:0}}

/* innerpulse credit: a quiet signature in the footer's About column */
.foot a.ip-credit{display:inline-flex;align-items:center;gap:6px;width:fit-content;color:var(--muted);font-family:var(--mono);font-size:11px;letter-spacing:.02em}
.ip-credit .ip-credit-glyph{width:14px;height:14px;flex:none}
.ip-credit .ip-credit-glyph rect{fill:var(--ip-mark)}
.foot a.ip-credit:hover{color:var(--text);opacity:1}
