/* Hero film: the homepage hero stage (js/home-film.js). One canvas draws eight short
   chapters of the service desk; the top bar, caption, readout card and chapter strip
   are DOM. The stage keeps the box of the artwork it replaces: its size, radius and
   frame come from .hero__stage in homepage-v2.css. Everything inside sizes from the
   stage's width. Every class is prefixed hf-, so nothing here meets the page's own. */
.hero__stage.hero-film {
  --stage: #080706; --surface: #141311; --raise: #1c1b19;
  --text: #f0ede5; --muted: #a3a097; --faint: #8a877f;
  --line: rgb(240 237 229 / .08); --line-2: rgb(240 237 229 / .16);
  --signal: #22d3b7; --signal-rgb: 34 211 183; --warm: #f2a360;
  --hf-glass: rgb(20 19 17 / .74); --hf-glass-edge: rgb(255 255 255 / .07); --hf-shadow: rgb(0 0 0 / .8);
  /* The site's colour families (css/redesign-common.css), for the Live Universe's galaxies and stars in the
     readout card (js/home-universe.js); sky is the page glows' partner hue 215 at the families' lightness */
  --hf-teal: #22d3b7; --hf-sky: #69cee6; --hf-blue: #7bc2f3; --hf-violet: #bdacf3; --hf-brass: #d3bb83; --hf-amber: #f2a360; --hf-coral: #ed8079; --hf-grey: #8a877f;
  --hf-ease: cubic-bezier(.2, .8, .2, 1);
  --hf-sans: 'Geist', 'Segoe UI', Arial, sans-serif; --hf-mono: 'Geist Mono', ui-monospace, Consolas, monospace;
  display: flex; flex-direction: column; container: herofilm / inline-size;
  background: var(--stage); color: var(--text); font-family: var(--hf-sans);
  /* A sideways swipe turns the chapter (js/home-film.js); the page still scrolls up and down under a finger */
  touch-action: pan-y;
}
/* Light mode keeps the page radius and no stroke, as the stage it replaces did. */
[data-theme='light'] .home-page .hero__stage.hero-film, [data-theme='light'] .hero__stage.hero-film {
  --stage: #f5f2eb; --surface: #fdfcfa; --raise: #fff;
  --text: #0c0b09; --muted: #55534d; --faint: #67645e;
  --line: rgb(12 11 9 / .1); --line-2: rgb(12 11 9 / .18);
  --signal: #046d5f; --signal-rgb: 4 109 95; --warm: #97571c;
  --hf-glass: rgb(255 255 255 / .8); --hf-glass-edge: rgb(255 255 255 / .9); --hf-shadow: rgb(60 48 30 / .3);
  --hf-teal: #046d5f; --hf-sky: #007083; --hf-blue: #2f6892; --hf-violet: #665796; --hf-brass: #7d6229; --hf-amber: #97571c; --hf-coral: #af3c3a; --hf-grey: #67645e;
  color-scheme: only light; background-image: none; border-width: 0; box-shadow: 0 22px 40px -28px rgb(46 36 22 / .35); filter: none;
}
/* Browsers with a forced dark mode (Samsung Internet, Chrome's auto dark, some Android browsers)
   recolour a light page's text and boxes but not its canvas, so the light theme came out as white
   text on a dark stage around a light drawing. "only light" tells them the light theme is meant:
   the page stays as designed. js/theme.js sets color-scheme inline, hence !important. */
:root[data-theme='light'] { color-scheme: only light !important; }
/* Stacked layouts: the heights the earlier stage had there (660px on tablets, 595px on a
   390px phone). Above 960px the stage keeps its 1904 / 2544 box from homepage-v2.css. */
@media (max-width: 960px) {
  .hero__stage.hero-film { min-height: 660px; }
}
@media (max-width: 700px) {
  .hero__stage.hero-film { min-height: 595px; }
}

.hero-film > * { font-size: clamp(11px, 2.3cqw, 13px); line-height: 1.45; }
.hero-film :where(p, ul) { margin: 0; }
.hero-film :where(ul) { padding: 0; list-style: none; }
.hero-film :where(button) { font: inherit; color: inherit; }
.hero-film :where(button):focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; }

.hf-field { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.hf-grain, .hf-vig, .hf-scrim { position: absolute; z-index: 1; pointer-events: none; }
.hf-grain, .hf-vig { inset: 0; }
/* Living grain: the tile steps to a new place about six times a second while the film runs on screen (is-live), as
   film grain does; a transform only, so it never repaints the stage */
.hf-grain { inset: -48px; animation: hf-grain .8s steps(1) infinite; animation-play-state: paused; }
.hero-film.is-live .hf-grain { animation-play-state: running; }
@keyframes hf-grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-23px, 11px); } 40% { transform: translate(17px, -19px); } 60% { transform: translate(-9px, -27px); } 80% { transform: translate(29px, 13px); } }
.hf-grain { opacity: .5; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hf-vig { background: radial-gradient(115% 85% at 50% 44%, transparent 58%, color-mix(in srgb, var(--hf-shadow) 22%, transparent) 100%); }
.hf-scrim { inset: 0 0 auto; height: 27%; background: linear-gradient(180deg, var(--stage) 0%, color-mix(in srgb, var(--stage) 88%, transparent) 62%, transparent 100%); }

.hf-top { position: relative; z-index: 2; display: flex; align-items: center; gap: .8em; padding: 1.05em 1.35em; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--muted); }
.hf-top b { font-weight: 500; color: var(--text); }
.hf-view { padding: .1em .6em; border: 1px solid var(--line-2); border-radius: 99px; font: 400 11px/1.5 var(--hf-mono); }
.hf-local { margin-left: auto; display: inline-flex; align-items: center; gap: .6em; white-space: nowrap; }
.hf-local i { width: .46em; height: .46em; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 .23em rgb(var(--signal-rgb) / .18); animation: hf-beat 1.1111s cubic-bezier(.2, .8, .2, 1) infinite; }
/* The live dot beats with #4182's pulse on the canvas (js/home-film.js sets its delay to keep the two in step) */
@keyframes hf-beat { from { box-shadow: 0 0 0 .23em rgb(var(--signal-rgb) / .18), 0 0 0 0 rgb(var(--signal-rgb) / .45); } to { box-shadow: 0 0 0 .23em rgb(var(--signal-rgb) / .18), 0 0 0 .75em rgb(var(--signal-rgb) / 0); } }

.hf-cap { position: relative; z-index: 2; padding: 1.2em 1.35em 0; transition: opacity .3s, transform .5s var(--hf-ease); }
.hf-cap.is-out { opacity: 0; transform: translateY(.6em); }
/* At a cut the title comes into focus word by word, its description rises after it, and the chapter's number and
   name (here and in the top bar) roll in (js/home-film.js words and roll) */
.hf-w { display: inline-block; animation: hf-word .75s var(--hf-ease) both; animation-delay: calc(.04s + var(--w, 0) * .05s); }
@keyframes hf-word { from { opacity: 0; transform: translateY(.42em); filter: blur(6px); } }
.hf-cap.is-in .hf-text { animation: hf-rise .7s var(--hf-ease) .24s both; }
@keyframes hf-rise { from { opacity: 0; transform: translateY(.45em); } }
.hf-roll { display: inline-block; animation: hf-roll .55s var(--hf-ease) both; }
@keyframes hf-roll { from { opacity: 0; transform: translateY(.7em); filter: blur(3px); } }
.hf-no { display: flex; gap: .45em; font: 400 11px/1.4 var(--hf-mono); color: var(--faint); }
.hf-no b { font-weight: 500; color: var(--signal); }
.hf-title { margin-top: .2em; font-size: 1.72em; font-weight: 500; letter-spacing: -.035em; line-height: 1.12; text-wrap: balance; color: var(--text); }
.hf-text { margin-top: .45em; max-width: 34em; color: var(--muted); }
.hf-tag { position: absolute; left: 0; top: 0; z-index: 1; padding: .1em .5em; border: 1px solid rgb(var(--signal-rgb) / .5); border-radius: .4em; background: color-mix(in srgb, var(--stage) 72%, transparent); font: 500 11px/1.4 var(--hf-mono); color: var(--signal); pointer-events: none; will-change: transform; transition: opacity .25s; }
/* At the opening #4182 has not lit yet: its tag waits for it */
.hero-film.is-opening .hf-tag { opacity: 0; }

/* Readout card: nine panels share one grid cell, so the stage never changes height. */
.hf-card { position: relative; z-index: 2; display: grid; margin: auto 1.1em 1.1em; }
.hf-panel { position: relative; grid-area: 1 / 1; align-self: end; min-width: 0; display: flex; flex-direction: column; gap: .65em; padding: .95em 1.1em 1em; border: 1px solid var(--line-2); border-radius: .8em; background: var(--hf-glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 var(--hf-glass-edge), 0 1.6em 3.2em -1.6em var(--hf-shadow); opacity: 0; visibility: hidden; transform: translateY(.9em) scale(.985); transition: opacity .3s, transform .5s var(--hf-ease), visibility 0s .3s; }
.hf-panel.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s .28s, transform .6s var(--hf-ease) .28s, visibility 0s; }
.hf-panel > * { opacity: 0; transform: translateY(.5em); transition: opacity .4s, transform .5s var(--hf-ease); }
.hf-panel.is-on > * { opacity: 1; transform: none; transition-delay: calc(.4s + var(--i, 0) * .13s); }
.hf-panel > :nth-child(2) { --i: 1; } .hf-panel > :nth-child(3) { --i: 2; } .hf-panel > :nth-child(4) { --i: 3; } .hf-panel > :nth-child(5) { --i: 4; }
/* The card's edge catches the film's key light: a soft highlight on its border, above the point the light stands
   over (--lx, set by js/home-film.js on .hf-card). A border-only mask, so the glass itself is untouched. */
.hf-panel::after { content: ''; position: absolute; inset: -1px; padding: 1px; border-radius: inherit; pointer-events: none; background: radial-gradient(42% 150% at var(--lx, 32%) 0%, rgb(255 248 232 / .34), transparent 72%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
[data-theme='light'] .hero-film .hf-panel::after { background: radial-gradient(42% 150% at var(--lx, 32%) 0%, rgb(255 255 255 / 1), transparent 72%); }
/* Arriving at a cut, the Live Universe's cells come in one after another (is-enter, js/home-film.js) */
.hf-panel.is-enter .hf-uni-g { animation: hf-cell .55s var(--hf-ease) both; animation-delay: calc(.6s + var(--n, 0) * .05s); }
.hf-uni-g:nth-child(2) { --n: 1; } .hf-uni-g:nth-child(3) { --n: 2; } .hf-uni-g:nth-child(4) { --n: 3; } .hf-uni-g:nth-child(5) { --n: 4; } .hf-uni-g:nth-child(6) { --n: 5; } .hf-uni-g:nth-child(7) { --n: 6; } .hf-uni-g:nth-child(8) { --n: 7; } .hf-uni-g:nth-child(9) { --n: 8; }
@keyframes hf-cell { from { opacity: 0; transform: translateY(.4em) scale(.97); } }
.hf-ph { display: flex; align-items: center; gap: .7em; font: 400 11px/1.4 var(--hf-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.hf-ph b { font-weight: 500; color: var(--signal); }
.hf-ph span { margin-left: auto; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.hf-note { font-size: 11px; color: var(--faint); }
.hf-chips { display: flex; flex-wrap: wrap; gap: .45em; }
.hf-chips li { padding: .22em .7em; border: 1px solid var(--line-2); border-radius: 99px; font-size: 11px; color: var(--muted); }
.hf-row { display: grid; grid-template-columns: 5.4em minmax(0, 1fr) auto; align-items: center; gap: .9em; padding: .42em 0; border-top: 1px solid var(--line); }
.hf-row--c { grid-template-columns: 5.2em minmax(0, 1fr) 5.6em 2.5em; }
.hf-k { font-size: 11px; color: var(--faint); }
.hf-v { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf-x { font: 400 11px/1 var(--hf-mono); text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.hf-row.is-low .hf-v { color: var(--muted); }
.hf-bar { position: relative; height: .3em; border-radius: 1em; background: color-mix(in srgb, var(--text) 10%, transparent); }
.hf-bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--c) * 1%); border-radius: inherit; background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.hf-panel.is-on .hf-bar i { transform: none; transition: transform 1s var(--hf-ease) calc(.75s + var(--j, 0) * .13s); }
/* Once filled, a glint runs along each bar */
.hf-bar i::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, transparent, rgb(255 255 255 / .6), transparent) no-repeat; background-size: 38% 100%; background-position: -60% 0; opacity: 0; }
.hf-panel.is-on .hf-bar i::after { animation: hf-glint .9s var(--hf-ease) calc(1.55s + var(--j, 0) * .13s) both; }
@keyframes hf-glint { from { opacity: 1; background-position: -60% 0; } to { opacity: 1; background-position: 160% 0; } }
.hf-row.is-low .hf-bar i { background: color-mix(in srgb, var(--text) 32%, transparent); }
.hf-bar b { position: absolute; left: 60%; top: -.3em; bottom: -.3em; width: 1px; background: var(--muted); opacity: .7; }
.hf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6em; }
.hf-stat { min-width: 0; padding: .6em .75em; border: 1px solid var(--line); border-radius: .6em; }
.hf-stat span { display: block; font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hf-stat b { display: block; margin-top: .1em; font-size: 1.42em; font-weight: 500; line-height: 1.2; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hf-stat b small { margin-left: .3em; font: 400 11px/1 var(--hf-mono); letter-spacing: 0; color: var(--muted); }
.hf-stat.is-sig b { color: var(--signal); }
.hf-stat.is-warm b { color: var(--warm); }
.hf-mail { display: grid; grid-template-columns: 2.5em minmax(0, 1fr) auto; gap: .1em .85em; align-items: center; }
.hf-av { grid-row: span 2; display: grid; place-items: center; width: 2.5em; height: 2.5em; border-radius: 50%; background: color-mix(in srgb, var(--text) 12%, var(--raise)); font-size: 11px; font-weight: 600; }
.hf-from { font-weight: 500; }
.hf-from em { margin-left: .45em; font-style: normal; font-weight: 400; color: var(--faint); }
.hf-time { font: 400 11px/1 var(--hf-mono); color: var(--faint); }
.hf-subj { grid-column: 2 / 4; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hf-became { display: flex; align-items: center; gap: .7em; color: var(--muted); }
.hf-became i { flex: none; width: 1.6em; height: 1px; background: linear-gradient(90deg, rgb(var(--signal-rgb) / .15), var(--signal)); }
.hf-became b { font: 500 11px var(--hf-mono); color: var(--signal); }
.hf-said { color: var(--muted); }
.hf-said mark { background: none; color: var(--text); box-shadow: inset 0 -.13em 0 rgb(var(--signal-rgb) / .75); }
.hf-none { padding: .05em .55em; border: 1px dashed var(--line-2); border-radius: 99px; font-size: 11px; color: var(--faint); }
.hf-sbox { display: flex; align-items: center; gap: .7em; padding: .55em .8em; border: 1px solid var(--line-2); border-radius: .6em; background: color-mix(in srgb, var(--surface) 70%, transparent); }
.hf-sbox svg { flex: none; width: 1.15em; height: 1.15em; color: var(--faint); }
.hf-q { display: inline-block; width: 0; overflow: hidden; white-space: nowrap; vertical-align: bottom; font-family: var(--hf-mono); }
.hf-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -.2em; background: var(--signal); }
.hf-panel.is-on .hf-q { animation: hf-type .95s steps(14) .7s forwards; }
@keyframes hf-type { to { width: 14ch; } }
.hf-res { display: grid; grid-template-columns: 3.3em minmax(0, 1fr) auto; align-items: baseline; gap: .8em; padding: .42em 0; border-top: 1px solid var(--line); }
.hf-id { font: 400 11px/1 var(--hf-mono); color: var(--faint); }
.hf-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf-kind { padding: .1em .6em; border: 1px solid var(--line-2); border-radius: 99px; font-size: 11px; white-space: nowrap; color: var(--muted); }
.hf-kind--m { border-color: rgb(var(--signal-rgb) / .45); color: var(--signal); }

/* Chapter 1, the live window (js/home-universe.js): the app's Live Universe laid over its dot drawing, on the
   drawing's box. css/live-universe.css (the app's own) styles what is inside; these are the tokens it reads,
   set to the site's dark palette (19 November 2026, the user's request: the app's cyan theme clashed with the
   page), so the window, its galaxy names and its tooltip share the page's warm graphite, teal accent and
   status hues. Deep space in every theme, as in the app. */
.hero-film .hf-uni {
  position: absolute; left: 0; top: 0; z-index: 1; margin: 0;
  border-radius: .8em; opacity: 0; visibility: hidden; pointer-events: none;
  /* It opens as a circle from #4182's star and, leaving the chapter, closes back into it, following #4182: the circle
     is the inline clip-path js/home-film.js sets each frame (no transition here, so it keeps the film's own curve).
     Closing, the last of it fades as it reaches the star. */
  transition: opacity .25s var(--hf-ease) .3s, visibility 0s .56s;
  --uni-accent: #22d3b7; --uni-space: #080706;
  --bg-card: #1c1b19; --text-main: #f0ede5; --text-muted: #a3a097; --text-secondary: #d8d4cc; --border-color: #3b3731;
  --status-success: #22d3b7; --status-warning: #f2a360; --status-danger: #ed8079;
  font-family: var(--hf-sans);
}
/* The app's stylesheet writes a few of the window's colours directly; these restate them on the same palette */
.hero-film .hf-uni .uni-label { color: #d8d4cc; }
.hero-film .hf-uni .uni-label b { color: #f0ede5; }
.hero-film .hf-uni .uni-label span { color: rgb(216 212 204 / .62); }
.hero-film .hf-uni .uni-label em.is-warning { color: #f2a360; }
.hero-film .hf-uni .uni-label em.is-breached { color: #ed8079; }
.hero-film .hf-uni .uni-label.is-hot b { color: #fff; }
.hero-film .hf-uni .uni-reticle { color: #22d3b7; }
.hero-film .hf-uni .uni-mix-bar { background: rgb(240 237 229 / .08); }
.hero-film .hf-uni .uni-mix-more { color: #8a877f; }
.hero-film .hf-uni .uni-dot { background: #a3a097; }
.hero-film .hf-uni .uni-pill { --uni-pill: #a3a097; }
.hero-film .hf-uni.is-on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .25s var(--hf-ease), visibility 0s; }
html.xomea-motion-paused .hero-film .hf-uni { transition-duration: .01s; transition-delay: 0s; }
/* #4182's tag follows its star in the window, and steps aside while the pointer is in it, so it never covers the tooltip */
.hero-film .hf-uni.is-on:hover ~ .hf-tag { opacity: 0; }
/* The window's edge: one thin line at the card's own strength, and a deep fall of shadow, in place of the app card's lit border.
   On paper it is a dark pane set into the page. */
.hero-film .hf-uni.uni-stage { border: 1px solid rgb(240 237 229 / .17); box-shadow: inset 0 1px 0 rgb(255 255 255 / .04), 0 1.5em 3em -1.3em var(--hf-shadow), 0 0 2.8em -.8em rgb(34 211 183 / .1); }
[data-theme='light'] .hero-film .hf-uni.uni-stage { border-color: rgb(12 11 9 / .3); box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 1.5em 2.6em -1.3em rgb(46 36 22 / .5), 0 .25em .6em rgb(46 36 22 / .14); }
/* Its corner line (js/home-universe.js): what the galaxies stand for, or for a moment, what just happened.
   The dot beats with each live moment, in that moment's colour. */
.hf-uni-hud { position: absolute; left: 10px; top: 10px; z-index: 3; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 20px); padding: 4px 11px 4px 9px; border: 1px solid rgb(240 237 229 / .1); border-radius: 99px; background: rgb(8 7 6 / .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #d8d4cc; font: 500 11px/1.35 var(--hf-sans); pointer-events: none; transition: border-color .4s, color .4s; }
.hf-uni-hud span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hf-uni-hud i { --tone: #22d3b7; position: relative; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--tone); box-shadow: 0 0 7px var(--tone); }
.hf-uni-hud i::after { content: ''; position: absolute; inset: -5px; border: 1px solid var(--tone); border-radius: 50%; opacity: 0; }
.hf-uni-hud.is-new i::after { animation: hf-uni-ping 1.2s ease-out; }
.hf-uni-hud.is-new span { animation: hf-uni-line .5s var(--hf-ease); }
.hf-uni-hud[data-tone='new'] i { --tone: #7bc2f3; }
.hf-uni-hud[data-tone='touch'] i { --tone: #bdacf3; }
.hf-uni-hud[data-tone='move'] i { --tone: #f0ede5; }
.hf-uni-hud[data-tone='breach'] { border-color: rgb(237 128 121 / .4); color: #eac8c4; }
.hf-uni-hud[data-tone='breach'] i { --tone: #ed8079; }
@keyframes hf-uni-ping { from { opacity: .85; transform: scale(.5); } to { opacity: 0; transform: scale(1.7); } }
@keyframes hf-uni-line { from { opacity: 0; transform: translateY(3px); } }

/* Its readout card: the view's counts, what the galaxies stand for, then the galaxies (or the one in focus).
   The body keeps one height either way, so the card never resizes the stage. */
.hf-uni-panel { --hf-red: var(--hf-coral); gap: .8em; }
.hf-uni-stats { display: inline-flex; gap: 1em; }
.hf-ph .hf-uni-stats span { margin-left: 0; }
.hf-uni-stats b { font-weight: 500; color: var(--text); }
.hf-uni-stats .is-risk b { color: var(--warm); }
.hf-uni-stats .is-breach b { color: var(--hf-red); }

/* What the galaxies stand for: one track, and a thumb that slides to the choice */
.hf-uni-seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 3px; border: 1px solid var(--line-2); border-radius: .75em; background: color-mix(in srgb, var(--text) 4%, transparent); }
.hf-uni-seg button { position: relative; z-index: 1; min-width: 0; padding: .48em .3em; overflow: hidden; border: 0; border-radius: .55em; background: none; font: 400 11.5px/1.2 var(--hf-sans); text-overflow: ellipsis; white-space: nowrap; color: var(--muted); cursor: pointer; transition: color .25s; }
.hf-uni-seg button[aria-pressed='true'] { font-weight: 500; }
.hf-uni-seg button:hover, .hf-uni-seg button[aria-pressed='true'] { color: var(--text); }
.hf-uni-thumb { position: absolute; top: 3px; bottom: 3px; left: calc(3px + var(--i, 0) * (100% - 6px) / 5); width: calc((100% - 6px) / 5); border-radius: .55em; background: color-mix(in srgb, var(--signal) 13%, var(--raise)); box-shadow: inset 0 0 0 1px rgb(var(--signal-rgb) / .5), 0 .35em .9em -.35em var(--hf-shadow); transition: left .5s var(--hf-ease); }

/* The galaxies: an even grid of cells, each shaded by its share of the view and underlined by its SLA
   health (breached, critical, warning, on track), as the app's legend chips are */
.hf-uni-body { height: 78px; overflow: hidden; }
.hf-uni-legend { display: grid; grid-template-columns: repeat(var(--c2, 3), minmax(0, 1fr)); grid-auto-rows: 36px; gap: 6px; }
.hf-uni-g { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: .6em; min-width: 0; padding: 0 .75em 3px; overflow: hidden; border: 1px solid var(--line); border-radius: .55em; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 16%, transparent) var(--s), transparent calc(var(--s) + 7%)); font: 400 11.5px/1.3 var(--hf-sans); text-align: left; color: var(--muted); cursor: pointer; transition: border-color .2s; }
.hf-uni-gn { display: flex; align-items: center; gap: .55em; min-width: 0; }
.hf-uni-gn i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--c) 24%, transparent); }
.hf-uni-gn b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 450; letter-spacing: -.005em; color: var(--text); }
.hf-uni-gc { font: 400 11px/1 var(--hf-mono); font-variant-numeric: tabular-nums; color: var(--muted); }
.hf-uni-gh { position: absolute; left: .75em; right: .75em; bottom: 5px; height: 2px; border-radius: 2px; background: var(--h, color-mix(in srgb, var(--text) 12%, transparent)); }
.hf-uni-g:hover, .hf-uni-g.is-hot, .hf-uni-g:focus-visible { border-color: color-mix(in srgb, var(--c) 75%, transparent); }
.hf-uni-g:hover .hf-uni-gc, .hf-uni-g.is-hot .hf-uni-gc { color: var(--text); }

/* The galaxy in focus: back, its name and size; its SLA health; the ticket to look at first */
.hf-uni-detail { display: grid; grid-template-rows: 24px 14px 26px; grid-auto-rows: 26px; gap: 7px; }
.hf-uni-first + .hf-uni-first { display: none; }
.hf-uni-dhead { display: flex; align-items: center; gap: .6em; min-width: 0; }
.hf-uni-back { flex: none; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 1px solid var(--line-2); border-radius: 50%; background: none; color: var(--muted); cursor: pointer; transition: color .2s, border-color .2s; }
.hf-uni-back svg { width: 14px; height: 14px; }
.hf-uni-back:hover { border-color: rgb(var(--signal-rgb) / .55); color: var(--signal); }
.hf-uni-dhead i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 24%, transparent); }
.hf-uni-dhead b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.06em; font-weight: 500; letter-spacing: -.01em; }
.hf-uni-dhead span { flex: none; margin-left: auto; font: 400 11px/1 var(--hf-mono); color: var(--faint); }
.hf-uni-hrow { display: flex; align-items: center; gap: .9em; font-size: 11px; white-space: nowrap; color: var(--faint); }
.hf-uni-hrow .is-risk { color: var(--warm); }
.hf-uni-hrow .is-breach { color: var(--hf-red); }
.hf-uni-health { flex: 1; display: flex; gap: 2px; height: 4px; overflow: hidden; border-radius: 4px; background: color-mix(in srgb, var(--text) 10%, transparent); }
.hf-uni-health span { min-width: 3px; }
.hf-uni-first { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .8em; padding: 0 .75em 0 .8em; border: 1px solid var(--line); border-left: 2px solid var(--sla); border-radius: .5em; background: color-mix(in srgb, var(--text) 3%, transparent); font-size: 11.5px; }
.hf-uni-fid { font: 400 11px/1 var(--hf-mono); color: var(--faint); }
.hf-uni-ft { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.hf-uni-fdue { font: 500 11px/1 var(--hf-mono); white-space: nowrap; color: var(--muted); }
.hf-uni-fdue.is-warning { color: var(--warm); }
.hf-uni-fdue.is-critical, .hf-uni-fdue.is-breached { color: var(--hf-red); }

/* A phone's stage: the counts stay (without breached), the switch tightens, and the galaxies take three rows */
@container herofilm (max-width: 430px) {
  .hf-uni-panel .hf-ph .hf-uni-stats { display: inline-flex; }
  .hf-uni-panel .hf-ph .hf-uni-stats span { display: inline; }
  .hf-uni-panel .hf-ph .hf-uni-stats .is-breach { display: none; }
  /* The card gives its room to the window: no hint line (the cells read as buttons), lower cells, tighter rows */
  .hf-uni-panel { gap: .85em; padding-top: 1.05em; padding-bottom: 1.1em; }
  .hf-uni-panel .hf-note { display: none; }
  .hf-uni-seg button { padding: .55em .1em; font-size: 11px; }
  .hf-uni-body { height: 106px; }
  .hf-uni-legend { grid-template-columns: repeat(var(--c3, 2), minmax(0, 1fr)); grid-auto-rows: 32px; gap: 5px; }
  /* Cells keep a tighter inset so "Access and identity" reads whole from a 360px phone up */
  .hf-uni-g { column-gap: .35em; padding: 0 .5em 3px; font-size: 11px; }
  .hf-uni-gn { gap: .4em; }
  .hf-uni-gh { left: .5em; right: .5em; bottom: 4px; }
  .hf-uni-detail { grid-template-rows: 22px 12px 26px; gap: 6px; }
  .hf-uni-first + .hf-uni-first { display: grid; }
  .hf-uni-hud { left: 8px; top: 8px; max-width: calc(100% - 16px); padding: 3px 9px 3px 7px; font-size: 10px; }
}
/* A 320px phone: the card's inset, its header's gaps and the switch's track tighten, so "18 at risk"
   stays on the card and "Category" reads whole. The thumb follows the track's 2px inset. */
@container herofilm (max-width: 340px) {
  .hf-uni-panel { padding-inline: .8em; }
  .hf-uni-panel .hf-ph { gap: .45em; letter-spacing: .02em; }
  .hf-uni-panel .hf-ph .hf-uni-stats { gap: .55em; }
  .hf-uni-seg { padding: 2px; }
  .hf-uni-seg button { padding-inline: 0; }
  .hf-uni-thumb { top: 2px; bottom: 2px; left: calc(2px + var(--i, 0) * (100% - 4px) / 5); width: calc((100% - 4px) / 5); }
}
html.xomea-motion-paused .hf-uni-thumb, html.xomea-motion-paused .hf-uni-hud span, html.xomea-motion-paused .hf-uni-hud i::after { transition: none; animation: none; }

/* Chapter strip, in the place of the stage controls it replaces. Each button carries its
   number and its name; a narrow stage shows the name of the playing chapter only. */
.hf-strip { position: relative; z-index: 2; display: flex; border-top: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 82%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
/* Cells share the strip evenly, but none is narrower than its name: "Universe" and "Insight" ran into their
   neighbours on laptop-height stages (about 430 to 540px wide) */
.hf-step { position: relative; z-index: 1; flex: 1 1 0; min-width: max-content; min-height: 3.7em; padding: .5em .4em; border: 0; border-left: 1px solid var(--line); background: none; font: 400 11px/1.2 var(--hf-mono); text-align: center; color: var(--faint); cursor: pointer; transition: color .5s, background-color .5s; }
.hf-step:first-child { border-left: 0; }
/* The strip's progress, active cell and hover are brass (19 November 2026, the user's request: a warm
   partner to the film's teal rather than more of it). The active cell takes the family's wash: one wash that
   slides from chapter to chapter (.hf-wash, placed by js/home-film.js), under the buttons. */
.hf-step i { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--hf-brass); transform: scaleX(0); transform-origin: left; transition: opacity .5s; }
.hf-step b { display: none; font-weight: 400; }
.hf-step.is-done i { transform: none; opacity: .35; }
.hf-step.is-on { color: var(--text); }
.hf-wash { position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; width: var(--ww, 0); transform: translateX(var(--wx, 0)); background: var(--brass-wash, rgb(211 187 131 / .08)); pointer-events: none; }
.hf-wash.is-set { transition: transform .55s var(--hf-ease), width .55s var(--hf-ease); }
/* The progress bar's leading end glows (--p, the chapter's progress); while the film waits on a pointer it breathes */
.hf-step.is-on::after { content: ''; position: absolute; left: 0; right: 0; top: -3px; height: 6px; pointer-events: none; background: radial-gradient(7px 3px at calc(var(--p, 0) * 100%) 50%, rgb(255 242 212 / .95), rgb(211 187 131 / .5) 55%, transparent); }
[data-theme='light'] .hero-film .hf-step.is-on::after { background: radial-gradient(7px 3px at calc(var(--p, 0) * 100%) 50%, var(--hf-brass), color-mix(in srgb, var(--hf-brass) 45%, transparent) 55%, transparent); }
.hero-film.is-held .hf-step.is-on::after { animation: hf-breathe 1.2s ease-in-out infinite alternate; }
@keyframes hf-breathe { to { opacity: .25; } }
.hf-step:hover { color: var(--hf-brass); }
.hf-pause { flex: none; display: grid; place-items: center; width: 3.4em; padding: 0; border: 0; border-left: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; }
.hf-pause:hover { color: var(--hf-brass); }
.hf-pause svg { width: 1.15em; height: 1.15em; fill: currentColor; }
.hf-pause .hf-play, .hf-pause.is-paused .hf-bars { display: none; }
.hf-pause.is-paused .hf-play { display: block; }

@container herofilm (max-width: 430px) {
  .hf-view, .hf-text, .hf-ph span { display: none; }
  /* Three figures across a phone's card: their labels wrap rather than end in an ellipsis, and the figures
     stay level. The card keeps its height: the tallest panel is still the call. */
  /* (One subgrid across the three: the labels share a row and the figures start on one line) */
  .hf-stats { grid-template-rows: auto auto; gap: 0 .45em; }
  .hf-stat { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: .3em; align-content: start; padding: .55em; }
  .hf-stat span { overflow: visible; white-space: normal; text-wrap: balance; }
  .hf-stat b { margin-top: 0; }
  /* A unit goes under its figure ("Daily" over "14 kept"), so no figure runs past its box */
  .hf-stat b small { display: block; margin: .2em 0 0; }
}
@container herofilm (max-width: 300px) {
  .hf-stat b { font-size: 1.25em; }
}
/* Every chapter's name needs about 470px of strip; narrower, only the playing chapter shows its name */
@container herofilm (max-width: 470px) {
  .hf-step b { display: inline; }
  .hf-step span { display: none; }
  .hf-step.is-on { flex-grow: 3.4; }
  .hf-step.is-on b { display: none; }
  .hf-step.is-on span { display: inline; }
}

/* Paused motion: the still frame arrives at once. */
html.xomea-motion-paused .hf-panel, html.xomea-motion-paused .hf-panel > *, html.xomea-motion-paused .hf-cap, html.xomea-motion-paused .hf-bar i { transition-duration: .01s; transition-delay: 0s; }
html.xomea-motion-paused .hf-panel.is-on .hf-q { animation-duration: .01s; animation-delay: 0s; }
/* (css/redesign-common.css stops every animation while motion is paused, the query's typing with it: the still
   frame shows the query typed in full) */
html.xomea-motion-paused .hf-panel.is-on .hf-q { width: 14ch; }
html.xomea-motion-paused :is(.hf-grain, .hf-w, .hf-roll, .hf-cap .hf-text, .hf-local i, .hf-panel .hf-uni-g) { animation: none; }
html.xomea-motion-paused .hero-film .hf-step.is-on::after, html.xomea-motion-paused .hf-panel .hf-bar i::after { animation: none; }
html.xomea-motion-paused .hf-wash { transition: none; }
