/* Site pages. Built on mobii.css and the shared components in case-study.css. */
:root { --app-moments: #F04444; --app-review: #06B6D4; }

/* header with navigation */
.site-header .wrap { grid-template-columns: 1fr auto 1fr; }
.wordmark { color: var(--fg); }
@media (max-width: 900px) {
  .site-header .wrap { grid-template-columns: 1fr auto auto; gap: 8px; }
  .header-cta { grid-column: 2; grid-row: 1; }
  .site-header .pill-nav { grid-column: 3; grid-row: 1; }
}

/* pill navigation, after React Bits PillNav, in the site's own colours; hover is a plain light fill */
.pill-nav {
  --pn-ring: var(--blue);
  --pn-h: 44px; --pn-pad: 4px; --pn-inner: 36px; --pn-x: 14px; --pn-font: 14px; --pn-gap: 8px;
  --pn-item-gap: 2px;
  --pn-radius: 12px; --pn-pill-radius: 8px;
  --pn-hover: rgba(255, 255, 255, 0.08);
  position: relative; display: inline-flex; align-items: center; gap: var(--pn-gap); justify-self: center;
  font-size: var(--pn-font); line-height: 1; -webkit-tap-highlight-color: transparent;
}
:root[data-theme="light"] .pill-nav { --pn-hover: rgba(20, 16, 48, 0.08); }
.pill-nav__surface { background: var(--bg-2); }
.pill-nav__rim { position: absolute; inset: 0; z-index: 4; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line-2); pointer-events: none; }
.pill-nav__bar { position: relative; z-index: 1; display: flex; align-items: center; height: var(--pn-h); padding: var(--pn-pad); border-radius: var(--pn-radius); }
.pill-nav__track { position: relative; height: 100%; }
.pill-nav__list { display: flex; align-items: stretch; gap: var(--pn-item-gap); height: 100%; margin: 0; padding: 0; list-style: none; }
.pill-nav__slot { display: flex; }
.pill-nav__item { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 100%; padding: 0 var(--pn-x);
  border: 0; border-radius: var(--pn-pill-radius); background: none; color: var(--fg-2);
  font: inherit; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap; text-decoration: none; cursor: pointer;
  overflow: hidden; isolation: isolate; transition: color .25s ease, background-color .25s ease; }
.pill-nav__item[aria-current] { background: var(--pn-hover); color: var(--fg); }
.pill-nav__item:focus-visible { outline: 2px solid var(--pn-ring); outline-offset: -2px; border-radius: var(--pn-pill-radius); box-shadow: none; }
.pill-nav__face { display: inline-flex; align-items: center; justify-content: center; gap: .45em; }
.pill-nav__item:hover, .pill-nav[data-drop] #prodBtn { background: var(--pn-hover); color: var(--fg); }
/* the bar is a neutral tray with a faint edge; the open Products button takes the quiet label fill */
.pill-nav__bar.pill-nav__surface { background: var(--nav-tray); }
.pill-nav__bar .pill-nav__rim { box-shadow: inset 0 0 0 1px var(--nav-edge); }
.pill-nav[data-drop] #prodBtn { background: var(--quiet-label); color: var(--fg); font-weight: 600; }
.pill-nav__chev { width: 14px; height: 14px; transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1); }
.pill-nav[data-drop] .pill-nav__item .pill-nav__chev { transform: rotate(180deg); }
.pill-nav__app { display: block; flex: none; width: 18px; height: 18px; border-radius: 4px; }

/* folded menu for narrow screens */
.pill-nav__toggle { position: relative; z-index: 3; display: none; place-items: center; width: var(--pn-h); height: var(--pn-h); padding: 0; border: 0;
  border-radius: var(--pn-radius); color: var(--fg); cursor: pointer; }
.pill-nav__toggle:focus-visible { outline: 2px solid var(--pn-ring); outline-offset: 2px; border-radius: var(--pn-radius); }
.pill-nav__burger { position: relative; width: 16px; height: 10px; }
.pill-nav__line { position: absolute; left: 0; width: 100%; height: 1.5px; border-radius: 2px; background: currentColor;
  transition: transform .45s cubic-bezier(0.22, 1, 0.36, 1), top .45s cubic-bezier(0.22, 1, 0.36, 1); }
.pill-nav__line--top { top: 1.5px; }
.pill-nav__line--bottom { top: 7px; }
.pill-nav[data-open] .pill-nav__line--top { top: 4.25px; transform: rotate(45deg); }
.pill-nav[data-open] .pill-nav__line--bottom { top: 4.25px; transform: rotate(-45deg); }
.pill-nav__panel { position: absolute; top: 0; right: 0; z-index: 2; width: min(360px, calc(100vw - 32px)); padding: calc(var(--pn-h) + 10px) 6px 6px;
  border-radius: var(--pn-radius); background: var(--bg-2); box-shadow: var(--shadow);
  max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px)); overflow-y: auto; overscroll-behavior: contain; }
.pill-nav__menu { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.pill-nav__row { display: flex; align-items: center; gap: 8px; width: 100%; height: calc(var(--pn-h) + 2px); padding: 0 14px;
  border: 0; border-radius: var(--pn-pill-radius); background: none; color: var(--fg-2); font: inherit; font-size: calc(var(--pn-font) + 1px); font-weight: 500;
  text-align: left; text-decoration: none; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.pill-nav__row .pill-nav__chev { margin-left: auto; }
.pill-nav__row:hover { background: var(--pn-hover); color: var(--fg); }
.pill-nav__row:focus-visible { outline: 2px solid var(--pn-ring); outline-offset: -2px; border-radius: var(--pn-pill-radius); box-shadow: none; }
.pill-nav__row[aria-current] { background: var(--pn-hover); color: var(--fg); }
.pill-nav__row[aria-expanded="true"] .pill-nav__chev { transform: rotate(180deg); }
.pill-nav__sub { padding: 6px 0 4px; }
.pill-nav__sub .pn-cards { flex-direction: column; }
.pill-nav__sub .pn-card { flex: none; min-height: 0; gap: 10px; padding: 14px 14px 12px; }
@media (max-width: 900px) {
  .pill-nav__bar, .pn-drop { display: none !important; }
  .pill-nav__toggle { display: inline-grid; }
}

/* products dropdown: cards that rise into a panel under the bar, after React Bits CardNav */
.pn-drop { position: absolute; top: calc(100% + 12px); left: 50%; z-index: 5; width: min(980px, calc(100vw - 32px)); transform: translateX(-50%);
  height: 0; overflow: hidden; border-radius: 0; background: var(--bg); box-shadow: var(--shadow); line-height: 1.4; }
.pn-drop__rim { position: absolute; inset: 0; z-index: 3; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line-2); pointer-events: none; }
.pn-drop__content { padding: 8px; perspective: 900px; }
.pn-cards { display: flex; gap: 8px; }
.pn-card { display: flex; flex: 1 1 0; flex-direction: column; gap: 14px; min-width: 0; padding: 16px 16px 10px;
  color: var(--fg); transform-origin: 50% 0; will-change: transform, opacity; }
.pn-card__head { display: flex; flex-direction: column; gap: 4px; }
.pn-card__label { color: var(--fg-3); font-size: 12px; font-weight: 500; }
.pn-card__desc { margin: 0; color: var(--fg-3); font-size: 13px; line-height: 1.45; }
.pn-links { display: flex; flex-direction: column; gap: 2px; margin: 0 -8px; padding: 0; list-style: none; }
/* menu rows as in the original mega menu: app icon, product name, one-line job */
.pn-link { display: grid; grid-template-columns: 24px 1fr; gap: 0 12px; align-items: start; padding: 8px; border-radius: var(--pn-pill-radius);
  color: var(--fg); font-size: 14px; line-height: 1.35; text-decoration: none; transition: background-color .15s ease; }
.pn-link:hover, .pn-link[aria-current] { background: var(--pn-hover); }
.pn-link:focus-visible { outline: 2px solid var(--pn-ring); outline-offset: -2px; border-radius: var(--pn-pill-radius); box-shadow: none; }
.pn-icon { display: grid; place-items: center; width: 24px; height: 24px; margin-top: 2px; border-radius: 5px; }
.pn-icon img { display: block; width: 24px; height: 24px; border-radius: 5px; }
.pn-icon--tile { background: var(--card-2); color: var(--fg-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.pn-icon--tile .i { width: 14px; height: 14px; }
.pn-link b, .pn-case b { display: block; font-weight: 500; }
/* case studies: the wider third card, one row per case with the thumbnail on the left */
/* the two rows split the card's full height and the thumbnails grow to fill each row */
.pn-card--cases { flex: 1.4 1 0; }
.pn-cases { display: grid; flex: 1; grid-template-rows: 1fr 1fr; gap: 2px; margin: 0 -8px; padding: 0; list-style: none; contain: size; }
.pn-cases li { display: grid; min-height: 0; container-type: size; }
.pn-case { display: grid; grid-template-columns: calc((100cqh - 16px) * 16 / 9) 1fr; grid-template-rows: auto 1fr; gap: 2px 12px; padding: 8px; min-height: 0;
  border-radius: var(--pn-pill-radius); color: var(--fg); font-size: 14px; line-height: 1.35; text-decoration: none; transition: background-color .15s ease; }
.pn-case b { padding-top: 2px; }
a.pn-case:hover, .pn-case[aria-current] { background: var(--pn-hover); }
.pn-case:focus-visible { outline: 2px solid var(--pn-ring); outline-offset: -2px; border-radius: var(--pn-pill-radius); box-shadow: none; }
.pn-case__thumb { grid-row: 1 / 3; display: grid; place-items: center; height: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px;
  background: var(--art-ink); box-shadow: inset 0 0 0 1px var(--line); }
.pn-case__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pn-case small { display: block; color: var(--fg-3); font-size: 12px; }
.pn-case--ph .pn-case__thumb { background: none; border: 1px dashed var(--line-2); box-shadow: none; color: var(--fg-3); font-size: 11px; text-align: center; }
.pill-nav__sub .pn-cases { contain: none; grid-template-rows: none; }
.pill-nav__sub .pn-cases li { container-type: normal; }
.pill-nav__sub .pn-case { grid-template-columns: 96px 1fr; }
.pill-nav__sub .pn-case__thumb { height: auto; }
.pn-case--ph b { color: var(--fg-2); }
.pn-link small { display: block; margin-top: 2px; color: var(--fg-3); font-size: 12px; }
@media (prefers-reduced-motion: reduce) {
  .pill-nav__line, .pill-nav__item, .pill-nav__row, .pn-link { transition: none; }
}

/* review build ribbon */
.ribbon b { color: var(--warn); }

/* placeholders for content still to supply */
.ph { display: grid; place-items: center; text-align: center; min-height: 72px; padding: 16px 20px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--fg-3); font-size: 13px; }

/* page heroes */
.page-hero { padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6vw, 80px); }
.page-hero .lede { margin-top: 4px; }
.lockup-lg { height: 34px; width: auto; }
.hero-grid .art { min-height: 420px; }

/* boards used as product illustrations */
.board .ch .id { font-variant-numeric: tabular-nums; }
.board-cap { margin-top: 10px; color: var(--fg-3); font-size: var(--fs-sm); }

/* ecosystem diagram: four products on a shared base */
.eco { display: grid; gap: 0; }
.eco-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.eco-app { padding: 26px 24px 28px; display: grid; gap: 14px; align-content: start; position: relative; overflow: hidden; text-decoration: none; transition: border-color .1s var(--ease); }
.eco-app:hover { border-color: var(--line-2); }
.eco-app img { height: 28px; width: auto; max-width: 100%; }
.eco-app .line { font-size: 19px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.25; }
.eco-app p { color: var(--fg-2); font-size: 14px; }
.eco-app .more-link { color: var(--blue); font-size: 13px; font-weight: 500; margin-top: 4px; }
.eco-beam { position: relative; display: grid; place-items: center; height: 64px; }
.eco-beam::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--prism-beam); transform: translateY(-50%); }
.eco-beam span { position: relative; padding: 4px 14px; background: var(--bg); color: var(--fg-2); font-size: 13px; }
.eco-base { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.eco-base a { display: grid; grid-template-columns: 1fr; gap: 10px; align-content: start; padding: 26px 28px; text-decoration: none; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r-lg); position: relative; overflow: hidden; transition: border-color .1s var(--ease); }
.eco-base a:hover { border-color: var(--line-2); }
.eco-base img { height: 30px; width: auto; margin-bottom: 6px; }
.eco-base b { font-size: 19px; font-weight: 400; letter-spacing: -0.01em; }
.eco-base b { font-weight: 500; font-size: 16px; }
.eco-base span { color: var(--fg-2); font-size: 14px; }
@media (max-width: 1000px) { .eco-apps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .eco-base { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .eco-apps { grid-template-columns: 1fr; } }

/* capability grid */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cap { padding: 28px 26px; display: grid; gap: 12px; align-content: start; }
.cap h3 { font-size: 21px; font-weight: 400; letter-spacing: -0.015em; }
.cap p { color: var(--fg-2); font-size: 14px; }
.cap .by { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.cap .by img { width: 22px; height: 22px; border-radius: 5px; }
.cap.link-cap { background: transparent; border-style: dashed; text-decoration: none; align-content: center; justify-items: start; }
.cap.link-cap:hover { border-color: var(--blue); }
/* a neutral fill (the dashed link card stays unfilled) */
.cap:not(.link-cap) { background-color: var(--cap-fill); }
/* a Hairline figure at the top of a card (js/hairline): its plates are filled with the card's own colour, so they
   hide what is behind them without showing a box. The figure's 400 × 320 frame has wide margins, so the stage is
   drawn larger than the card and cropped to the drawing; the pointer is read against the stage's own box, so
   hovering still lines up. --fig-zoom sets how much larger, for a drawing that fills more or less of its frame, and
   --fig-y where it sits. */
.cap-fig { --fig-zoom: 1.3; --fig-y: -52%; position: relative; aspect-ratio: 9 / 7; overflow: hidden; margin: -12px -10px 0; }
.cap-fig [data-hairline] { position: absolute; top: 50%; width: calc(var(--fig-zoom) * 100%);
  left: calc((1 - var(--fig-zoom)) * 50%); translate: 0 var(--fig-y);
  --hairline-plate: color-mix(in srgb, #ffffff 4%, var(--bg));
  /* the part a figure is showing (the screen standing up, the ball, the blade, the route under way) is in Mobii red */
  --hl-hi: var(--brand); }
:root[data-theme="light"] .cap-fig [data-hairline] { --hairline-plate: var(--card); }
/* a word a figure names beside its drawing (an event on the pitch): a small solid tag over the point */
.fig-tag { position: absolute; z-index: 1; transform: translate(-50%, calc(-100% - 8px)); padding: 4px 6px; border-radius: 4px;
  background: var(--fg); color: var(--bg); font: 700 9px/1 var(--font-body); letter-spacing: 0;
  white-space: nowrap; pointer-events: none; opacity: 0; }
.fig-read { position: absolute; top: 10px; right: 12px; font: 11px/1 var(--font-body); letter-spacing: 0.02em;
  color: var(--fg-3); pointer-events: none; }
@media (max-width: 960px) { .caps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .caps { grid-template-columns: 1fr; } }

/* ways to work */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.way { padding: clamp(24px, 3vw, 36px); display: grid; gap: 14px; align-content: start; background: var(--card); border-right: 1px solid var(--line); }
.way:last-child { border-right: 0; }
.way .who-for { font-size: 13px; color: var(--brand-text); font-weight: 500; }
.way h3 { font-size: 24px; font-weight: 400; }
.way p { color: var(--fg-2); font-size: 15px; }
@media (max-width: 900px) { .ways { grid-template-columns: 1fr; } .way { border-right: 0; border-bottom: 1px solid var(--line); } .way:last-child { border-bottom: 0; } }

/* sports strip */
.sports { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 26px; border-block: 1px solid var(--line); color: var(--fg-2); font-size: 15px; }
.sports b { color: var(--fg); font-weight: 400; }
.sports ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.sports li { color: var(--fg); }

/* featured case study */
.case { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 4vw, 56px); padding: clamp(24px, 4vw, 48px); align-items: center; }
.case > * { min-width: 0; }
.case h3 { font-size: clamp(28px, 3vw, 38px); }
.case-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px; }
.case-stats div { border-left: 1px solid var(--line-2); padding-left: 14px; display: grid; gap: 4px; }
.case-stats b { font-weight: 300; font-size: 32px; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.case-stats span { color: var(--fg-3); font-size: 12px; }
@media (max-width: 900px) { .case { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .case-stats { grid-template-columns: 1fr 1fr; gap: 16px 12px; } }

/* feature list with icons, used on product pages */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 32px; }
.feat { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line-2); }
.feat h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.feat p { color: var(--fg-2); font-size: 14px; }
.feat .i { color: var(--fg); width: 22px; height: 22px; margin-bottom: 4px; }
@media (max-width: 900px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } }

/* how it connects: product flow */
.flow { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.flow > div { padding: 24px; display: grid; gap: 12px; align-content: start; background: var(--card); border-right: 1px solid var(--line); position: relative; }
.flow > div:last-child { border-right: 0; }
.flow > div.here { background: var(--card-2); }
.flow img { height: 24px; width: auto; }
.flow b { font-weight: 400; font-size: 13px; color: var(--fg-3); }
.flow p { font-size: 15px; color: var(--fg); }
@media (max-width: 760px) { .flow { grid-auto-flow: row; } .flow > div { border-right: 0; border-bottom: 1px solid var(--line); } .flow > div:last-child { border-bottom: 0; } }

/* deployment and proof */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* the same cards, one to a row (a product page's Proof card, on its own under Where it runs) */
.two--single { grid-template-columns: 1fr; }
.two > div { padding: clamp(24px, 3vw, 36px); display: grid; gap: 14px; align-content: start; }
.two h3 { font-size: 24px; font-weight: 400; }
.two p { color: var(--fg-2); }
@media (max-width: 800px) { .two { grid-template-columns: 1fr; } }

/* solutions: no card, straight on the page; the words and the products that deliver it beside its videos, the sides
   alternating down the page (words left on the first, right on the second, and so on) */
/* spacing: one step (--sol-gap) sets the page's rhythm: between one solution and the next, and from the last to the
   closing call to action; the intro's lead-in to the first is a little shorter, so the intro reads as the heading of
   the list rather than one more item in it */
.sols { --sol-gap: clamp(88px, 11vw, 168px); padding-block: clamp(24px, 3vw, 48px) var(--sol-gap); }
/* both sides start on the same line (the title's top and the video's), so every solution begins on a clean edge and the
   space you see between them is the same however tall each side is */
.sol { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5.5vw, 80px); align-items: start; }
/* the icon over each title: a small square neutral tile (no rounded corners) in the theme's ink, and the tile's top is the line both sides start on */
.sol__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 0;
  background: var(--card); border: 1px solid var(--line-2); color: var(--fg); }
/* the icon is a Google Material Symbol (Outlined, light weight), loaded by the page with just the icons it uses */
.sol__icon { font-family: "Material Symbols Outlined"; font-size: 24px; font-weight: normal; font-style: normal; line-height: 1;
  letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr; overflow: hidden;
  font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; }
.sol + .sol { margin-top: var(--sol-gap); }
.sol:nth-child(even) { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.sol:nth-child(even) .sol__text { order: 2; }
/* the words in three groups: the title with its line under it held close, the paragraph a step down, and the
   products a larger step again so they read as their own part */
.sol__text { display: grid; align-content: start; }
.sol h2 { font-size: clamp(28px, 3vw, 38px); }
.sol .big-line { max-width: none; margin-top: 10px; color: var(--fg-3); }
.sol__body { color: var(--fg-2); margin-top: clamp(18px, 2vw, 24px); max-width: 60ch; }
.sol__media { display: grid; gap: 16px; align-content: start; min-width: 0; }
.vslider__slides { display: grid; gap: 24px; }
.roles img { height: 20px; }
.roles > div { grid-template-columns: 160px 1fr; }
/* the products, as plain sentences: each product's lockup stands for its name in the line ("Studio decides what goes
   to air."), set in the run of the text at the height of its letters, with rules only between the lines */
.sol__roles { list-style: none; margin: clamp(28px, 3vw, 40px) 0 0; padding: 0; }
.sol__roles li { padding: 12px 0; color: var(--fg-2); line-height: 1.5; }
.sol__roles li + li { border-top: 1px solid var(--line-2); }
.sol__roles img { height: 0.9em; width: auto; vertical-align: -0.1em; }
.sol__roles .on-dark { display: inline; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .sol__roles .on-light { display: inline; } }
:root[data-theme="light"] .sol__roles .on-light { display: inline; }

/* a solution with more than one video (js/solutions.js): the videos sit in the same place and one shows at a time,
   sliding in from the side it comes from; under them a bar with a tab per video (a line along its top lights for the
   one showing) and two arrows. Without the script they show one under another and the bar stays hidden */
.vslider__bar { display: none; }
.vslider.is-ready .vslider__slides { gap: 0; }
.vslider.is-ready .vidfig { grid-area: 1 / 1; visibility: hidden; opacity: 0; transform: translateX(calc(var(--dir, 1) * 24px));
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility 0s linear .4s; }
.vslider.is-ready .vidfig.is-on { visibility: visible; opacity: 1; transform: none; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.vslider.is-ready .vslider__bar { display: flex; align-items: stretch; gap: 12px; margin-top: 4px; border-top: 1px solid var(--line-2); }
.vslider__tabs { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.vslider__tab { all: unset; box-sizing: border-box; position: relative; display: grid; gap: 2px; align-content: start; padding: 12px 12px 4px 0; cursor: pointer;
  color: var(--fg-3); font-size: 13px; line-height: 1.3; transition: color .2s var(--ease); }
.vslider__tab::before { content: ""; position: absolute; left: 0; right: 12px; top: -1px; height: 2px; background: var(--fg);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .4s var(--ease); }
.vslider__tab[aria-pressed="true"] { color: var(--fg); }
.vslider__tab[aria-pressed="true"]::before { transform: scaleX(1); }
.vslider__tab:hover { color: var(--fg-2); }
.vslider__tab[aria-pressed="true"]:hover { color: var(--fg); }
.vslider__tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.vslider__num { font-family: var(--font-body); font-size: 11px; letter-spacing: 0; }
.vslider__arrows { display: flex; align-items: center; gap: 8px; padding-top: 10px; }
.vslider__arrow { all: unset; box-sizing: border-box; width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r); cursor: pointer;
  border: 1px solid var(--line-2); color: var(--fg-2); transition: border-color .2s var(--ease), color .2s var(--ease); }
.vslider__arrow:hover { border-color: var(--fg-3); color: var(--fg); }
.vslider__arrow:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.vslider__arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .vslider.is-ready .vidfig, .vslider.is-ready .vidfig.is-on { transform: none; transition: none; } }
@media (max-width: 900px) {
  .sol, .sol:nth-child(even) { grid-template-columns: 1fr; gap: 32px; }
  .sol:nth-child(even) .sol__text { order: 0; }
}

/* company */
.values.four { grid-template-columns: 1fr 1fr; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.facts > div { padding: 26px; display: grid; gap: 10px; align-content: start; }
.facts h3 { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.facts p, .facts li { color: var(--fg-2); font-size: 14px; }
.facts ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
@media (max-width: 900px) { .facts { grid-template-columns: 1fr; } .values.four { grid-template-columns: 1fr; } }

/* contact form note */
.form-note { color: var(--fg-3); font-size: 12px; }

.seg label { position: relative; }

/* ===== review build 2 ===== */
/* product pages: neutral like every other page (section labels are the quiet chip) */
body.prod .cta .eyebrow { background: rgba(255,255,255,.14); color: #fff; }
/* case study cards: neutral, with the Prism beam; the label is the quiet chip like every other */
.case { position: relative; overflow: hidden; }
.case::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--prism-beam); }
/* the case study label shares the .case class with its card: keep it a label */
.eyebrow.case { display: inline-flex; padding: 5px 12px; overflow: visible; }
.eyebrow.case::before { content: none; }
.post.case-post { position: relative; overflow: hidden; }
.post.case-post::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--prism-beam); z-index: 1; }

/* client logos */
.clients { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; padding-block: 28px; border-block: 1px solid var(--line); }
.clients .lg { width: 200px; height: 96px; display: grid; place-items: center; padding: 16px 24px; border-radius: var(--r); background: var(--art-ink); border: 1px solid var(--line); }
.clients .lg img { max-width: 100%; max-height: 64px; width: auto; height: auto; }
.clients .ph { width: 200px; height: 96px; min-height: 0; }

/* video players with a poster that loads the player on click */
.vid-play { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.vid-play img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vid-play:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.vid-btn { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; background: rgba(13,12,19,.62); border: 1px solid rgba(255,255,255,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color .1s var(--ease); }
.vid-btn svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.vid-play:hover .vid-btn { background: rgba(255, 255, 255, .22); }
.vid-blank { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--art-fg); font-size: clamp(18px, 2vw, 24px); font-weight: 300; letter-spacing: -0.01em;
  background: radial-gradient(90% 90% at 85% 0%, #3A3A40, transparent 60%), linear-gradient(160deg, #202023, var(--art-ink)); }
.vid-blank span { max-width: 22ch; transform: translateY(54px); }
.vid-blank.sm { position: relative; aspect-ratio: 16 / 9; font-size: 13px; padding: 10px; }
.vid-blank.sm span { transform: none; }
.thumb .vid-blank.sm { opacity: .8; }
.vidfig { margin: 0; display: grid; gap: 12px; align-content: start; }
.vidfig figcaption { color: var(--fg-2); font-size: 14px; max-width: 70ch; }
.vidfig figcaption b { color: var(--fg); font-weight: 500; }
.vid-ph { display: grid; place-items: center; border: 1px dashed var(--line-2); }
.vid-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.vid-soon { position: relative; padding: 6px 14px; border-radius: var(--r-pill); background: rgba(13,12,19,.7); color: #fff; font-size: 13px; }
.vids2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 800px) { .vids2 { grid-template-columns: 1fr; } }
.vstage .thumbs { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.sol .vidfig { margin-top: 6px; }

/* company office */
.office { padding: clamp(24px, 3vw, 36px); display: grid; gap: 10px; max-width: 520px; }
.office address { font-style: normal; color: var(--fg-2); line-height: 1.7; }
.office h3 { font-size: 20px; font-weight: 500; }
.vstage .thumbs { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.vstage .thumb .tl span, .vid-blank.sm span { display: none; }

/* blur text (js/blur-text.js): words or letters that blur in one by one */
.js [data-blur-text]:not(.bt-ready) { visibility: hidden; }
/* section entrances (js/rise.js): hidden until the script picks them up, so nothing shows before it moves */
.js [data-rise]:not(.rise-ready) { opacity: 0; }
.bt-wrap, .bt-piece { display: inline-block; }
.bt-wrap { white-space: nowrap; }
.bt-piece { white-space: pre; will-change: transform, filter, opacity; }
.bt-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* theatre view (js/theatre.js): the clip large over a dimmed page, with a control bar beneath */
/* the motion (clip growing out of its card, text rising out of masks) is in theatre.js */
/* its colours follow the theme: a dark bar over a dark page, a white bar over a light one. The card's play bar
   (home.css .cf-play) grows into the control bar, so it takes the same colours. */
.theatre, .cf-play {
  --th-dim: rgba(6, 6, 9, .9); --th-fg: #fff; --th-fg-2: rgba(255,255,255,.66);
  --th-bar: #1c1c1f; --th-bar-edge: rgba(255,255,255,.08); --th-ink: #fff; --th-ink-2: rgba(255,255,255,.56);
  --th-key: rgba(255,255,255,.08); --th-key-hover: rgba(255,255,255,.14);
  --th-track: rgba(255,255,255,.08); --th-fill: rgba(255,255,255,.24); --th-rest: rgba(16,16,18,.6);
  --th-close: #fff; --th-close-hover: #e9e9ec; --th-close-ink: #000;
  --th-info: rgba(28,28,31,.94); --th-info-2: rgba(255,255,255,.7);
  --th-logo: none;
}
:root[data-theme="light"] .theatre, :root[data-theme="light"] .cf-play {
  --th-dim: rgba(248, 251, 254, .92); --th-fg: #17151F; --th-fg-2: rgba(23,21,31,.66);
  --th-bar: #fff; --th-bar-edge: rgba(20,16,48,.08); --th-ink: #111; --th-ink-2: #6b6b73;
  --th-key: #f1f1f2; --th-key-hover: #e2e2e5;
  --th-track: #e7e7ea; --th-fill: #cfcfd4; --th-rest: rgba(255,255,255,.55);
  --th-close: #17151F; --th-close-hover: #2c2a36; --th-close-ink: #fff;
  --th-info: rgba(255,255,255,.94); --th-info-2: #444;
  --th-logo: invert(1);
}
.theatre { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-rows: auto 1fr auto; padding: 16px 16px 24px; color: var(--th-fg); }
.theatre[hidden] { display: none; }
.th-dim { position: absolute; inset: 0; background: var(--th-dim); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.th-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.th-brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.th-logo { height: 22px; width: auto; max-width: 120px; object-fit: contain; filter: var(--th-logo); }
.th-logo-mask[hidden] { display: none; }
.th-mask { display: block; overflow: hidden; }
.th-line { display: block; }
.th-title { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--th-fg); margin: 0; }
.th-heading { display: grid; gap: 4px; min-width: 0; }
.th-sub { margin: 0; font-size: 13px; line-height: 1.4; color: var(--th-fg-2); max-width: 60ch; }
.th-mask[hidden] { display: none; }
/* Close matches the hero's primary button: white with black text on dark, the reverse on light */
.th-close { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border-radius: 8px; background: var(--th-close); color: var(--th-close-ink); font-size: 14px; font-weight: 500; transition: background-color .15s var(--ease); }
.th-close:hover { background: var(--th-close-hover); }
.th-stage { position: relative; display: grid; place-items: center; min-height: 0; margin: 20px 0; pointer-events: none; container-type: size; }
/* the whole frame always fits the stage, as wide or as tall as it allows, never cropped */
.th-video { position: relative; pointer-events: auto; width: min(100cqw, 100cqh * 16 / 9); aspect-ratio: 16 / 9; background: #000; overflow: hidden; border-radius: 4px; will-change: transform; }
.th-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s var(--ease); }
.theatre.has-started .th-poster { opacity: 0; }
.th-poster:not([src]) { display: none; }
.th-player { position: absolute; inset: 0; cursor: pointer; }
.th-player mobii-player { display: block; width: 100%; height: 100%; }
/* the Mobii player's own controls stay in the page (theatre.js presses them) but out of sight */
.th-player .play-overlay, .th-player .player-controls-container, .th-player .touchable-overlay-blocker { display: none !important; }
.th-player .main-container, .th-player .player-container, .th-player .play-video-container { width: 100%; height: 100%; }
.th-player video { display: block; width: 100%; height: 100%; object-fit: contain; }
.th-info { position: absolute; left: 16px; bottom: 16px; max-width: min(420px, calc(100% - 32px)); padding: 16px 18px; border-radius: 10px; background: var(--th-info); color: var(--th-ink); display: grid; gap: 6px; }
.th-info[hidden] { display: none; }
.th-info h3 { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.th-info p { font-size: 14px; line-height: 1.45; color: var(--th-info-2); }

.th-bar { position: relative; display: flex; align-items: center; gap: 18px; padding: 12px 16px; border-radius: 6px; background: var(--th-bar); color: var(--th-ink); box-shadow: inset 0 0 0 1px var(--th-bar-edge); }
.th-btn { all: unset; flex: none; cursor: pointer; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; background: var(--th-key); color: var(--th-ink); transition: background-color .15s var(--ease); }
.th-btn:hover, .th-btn[aria-pressed="true"] { background: var(--th-key-hover); }
.th-btn:focus-visible, .th-strip:focus-visible, .th-close:focus-visible { outline: 2px solid var(--blue, #4096FF); outline-offset: 2px; }
.th-btn svg { width: 15px; height: 15px; fill: currentColor; }
.th-btn svg .ln { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.th-time { flex: none; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--th-ink); min-width: 56px; text-align: center; }
.th-strip { position: relative; flex: 1; height: 48px; border-radius: 4px; overflow: visible; background: var(--th-track); cursor: pointer; touch-action: none; }
.th-tiles { position: absolute; inset: 0; display: flex; overflow: hidden; border-radius: 4px; }
.th-tiles span { flex: 1; background-size: 2000% 100%; background-repeat: no-repeat; }
.th-rest { position: absolute; top: 0; bottom: 0; right: 0; left: 0; background: var(--th-rest); border-radius: 0 4px 4px 0; pointer-events: none; }
.th-plain .th-strip { background: linear-gradient(var(--th-fill), var(--th-fill)) left / 100% 100% no-repeat, var(--th-track); }
.th-head { position: absolute; top: -4px; bottom: -4px; left: 0; width: 2px; margin-left: -1px; background: var(--th-ink); border-radius: 1px; pointer-events: none; }
.th-tip { position: absolute; bottom: calc(100% + 8px); left: 0; transform: translateX(-50%); padding: 3px 7px; border-radius: 4px; background: var(--th-ink); color: var(--th-bar); font-size: 11px; font-variant-numeric: tabular-nums; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s var(--ease); }
.th-tipping .th-tip { opacity: 1; }
@media (hover: none) { .th-tip { display: none; } }
@media (max-width: 700px) {
  .theatre { padding: 12px 12px 16px; }
  .th-bar { gap: 10px; padding: 10px; }
  .th-dur, .th-info-btn { display: none; }
  .th-strip { height: 40px; }
  .th-time { min-width: 0; }
}

/* product hero (src/components/ProductHero.astro), after the Northstar template: the words centred over the product in
   a large app window, on a field of dotted lines. On wide screens the section is taller than the window and its frame
   holds (sticky) while you scroll through it; js/product-hero.js sets --p (0 to 1) and --shift, and the words drift
   up, shrink and fade while the window settles from 1.06x into place, rising by --shift */
.phero { position: relative; }
.phero__stick { position: relative; overflow: hidden; padding: clamp(96px, 12vh, 140px) 0 64px; }
.phero__copy { position: relative; z-index: 2; display: grid; justify-items: center; gap: 22px; text-align: center; }
.phero__lockup img { margin-inline: auto; }
.phero h1 { font-size: clamp(42px, 5.6vw, 80px); font-weight: 300; letter-spacing: -0.035em; line-height: 1.02; max-width: 14ch; }
.phero__quiet { color: var(--fg-3); }
.phero .lede { max-width: 58ch; margin-inline: auto; }
.phero .row { justify-content: center; }

/* the app window: dark in both themes, as the app is, with a title bar of three dots and the product and view */
.phero__window { position: relative; z-index: 3; width: min(100% - 32px, var(--max)); margin: 56px auto 0; border-radius: 10px;
  overflow: hidden; background: #0b0b0d; box-shadow: 0 0 0 1px var(--line), 0 24px 60px -12px rgba(0, 0, 0, .28), 0 4px 14px rgba(0, 0, 0, .08); }
.phero__chrome { position: relative; display: flex; align-items: center; justify-content: center; height: 34px; padding: 0 14px;
  background: #141416; border-bottom: 1px solid rgba(255, 255, 255, .06); color: rgba(243, 241, 251, .6); font-size: 12px; }
.phero__lights { position: absolute; left: 14px; display: flex; gap: 6px; }
.phero__lights i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
/* the window buttons in the macOS colours: close, minimise, zoom */
.phero__lights i:nth-child(2) { background: #FEBC2E; }
.phero__lights i:nth-child(3) { background: #28C840; }
.phero__screens { position: relative; aspect-ratio: var(--ar); }
/* a plain 16:9 video in place of the app window (the homepage): no title bar, the video fills the frame */
.phero__window--video { aspect-ratio: var(--ar); background: #000; }
.phero__video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* glow carousel (src/components/GlowCarousel.astro, js/glow-carousel.js): the curved wall of video panels across the
   full width, and the glowing bar standing at its middle: a fine bright line, softly lit along its length and fading
   out at both ends, with a halo round it. The videos only feed the wall, so they are not shown themselves */
.gc { position: relative; width: 100%; height: clamp(220px, 24vw, 400px); }
.gc__gl { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.gc video, .gc__still { display: none; }
.gc__bar { position: absolute; z-index: 1; left: 50%; top: 4%; bottom: 4%; width: 2px; margin-left: -1px; pointer-events: none;
  border-radius: 2px; background: linear-gradient(180deg, transparent, var(--fg) 18%, var(--fg) 82%, transparent);
  box-shadow: 0 0 10px 1px color-mix(in srgb, var(--fg) 55%, transparent), 0 0 36px 6px color-mix(in srgb, var(--fg) 22%, transparent); }
/* no WebGL: the right-hand video's still, as one panel */
.gc--nogl .gc__gl, .gc--nogl .gc__bar { display: none; }
.gc--nogl .gc__still { display: block; width: min(100% - 32px, 720px); height: auto; margin: 0 auto; border-radius: 10px; }

/* comparison slider (src/components/CompareSlider.astro, js/compare-slider.js): two videos of the same shot, the left
   one clipped to the handle (--pos). A white line with a round white handle, as on the React Bits Pro slider */
.cmp { --pos: 50%; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; cursor: ew-resize;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.cmp__media { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cmp__media--left { z-index: 1; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp__handle { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--pos); width: 0; outline: none; }
.cmp__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, .35); }
.cmp__knob { position: absolute; top: 50%; left: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  transform: translate(-50%, -50%); background: #fff; color: #0b0b0d; box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
  transition: transform .2s var(--ease); }
.cmp__knob svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cmp.is-dragging .cmp__knob, .cmp__handle:focus-visible .cmp__knob { transform: translate(-50%, -50%) scale(1.08); }
.cmp__handle:focus-visible .cmp__knob { box-shadow: 0 0 0 3px rgba(255, 255, 255, .45), 0 4px 16px rgba(0, 0, 0, .35); }
/* the tags in the top corners, in Inter as written (no capitals, the designer's call), on a dark glass that reads over sky or tarmac; each fades out as the
   handle comes within reach of it (--p, the handle's place as a number) */
.cmp__tag { position: absolute; z-index: 3; top: clamp(10px, 1.6vw, 18px); padding: 6px 10px; border-radius: 6px; pointer-events: none;
  font: 500 12px/1 var(--font-body); letter-spacing: 0; color: #fff;
  background: rgba(11, 11, 13, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: opacity .2s var(--ease); }
.cmp__tag--left { left: clamp(10px, 1.6vw, 18px); opacity: clamp(0, (var(--p, 50) - 12) / 8, 1); }
.cmp__tag--right { right: clamp(10px, 1.6vw, 18px); opacity: clamp(0, (88 - var(--p, 50)) / 8, 1); }
@media (max-width: 600px) { .cmp__knob { width: 36px; height: 36px; } .cmp__knob svg { width: 16px; height: 16px; } }

/* anything under the buttons (the homepage's client logos), the full width of the content */
.phero__below { width: 100%; margin-top: clamp(16px, 3vw, 40px); }
.phero__screen { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left;
  opacity: 0; transition: opacity .6s var(--ease); }
.phero__screen.is-on { opacity: 1; }
/* the output: the programme the product puts to air (a placeholder picture until its video is ready). Still layouts show
   it under the window; on wide screens it rises in front of the window as you scroll (below) */
.phero__output { position: relative; z-index: 4; width: min(100% - 32px, 1120px); margin: 24px auto 0; border-radius: 10px;
  overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line), 0 30px 80px -16px rgba(0, 0, 0, .45), 0 6px 18px rgba(0, 0, 0, .12); }
.phero__output img { display: block; width: 100%; height: auto; }

/* the field of dotted lines behind the window: columns of fine dots, strongest under the window and fading out */
.phero__dots { position: absolute; inset: 30% -10% -10%; z-index: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle, var(--fg-3) 0.8px, transparent 1.1px); background-size: 9px 5px;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 60%, #000 0%, rgba(0, 0, 0, .4) 45%, transparent 75%);
  mask-image: radial-gradient(60% 55% at 50% 60%, #000 0%, rgba(0, 0, 0, .4) 45%, transparent 75%); }

/* the held scroll, on wide screens with motion allowed */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  /* the held frame is the screen's height, or taller where the screen is short: tall enough for the window at full width
     under the header (96px) with a little space below (24px), so it is never cut off; the rest of it shows as the page
     scrolls on. --ar-h is the window's height over its width (set by src/components/ProductHero.astro) */
  .phero { --stick-h: max(100svh, 96px + min(100vw - 64px, var(--max)) * var(--ar-h, 0) + 24px); }
  .phero:not(.phero--still) { height: calc(var(--stick-h) + 75svh); }
  .phero:not(.phero--still) .phero__stick { position: sticky; top: 0; height: var(--stick-h); }
  .phero:not(.phero--still) .phero__copy { opacity: calc(1 - var(--p, 0) * 2.2); transform-origin: 50% 0;
    transform: translateY(calc(var(--p, 0) * -70px)) scale(calc(1 - var(--p, 0) * 0.35)); }
  .phero__window { transform-origin: 50% 0; will-change: transform;
    transform: translateY(calc(var(--p, 0) * var(--shift, 0px) * -1)) scale(calc(1.06 - var(--p, 0) * 0.06)); }
  /* on wide screens the window is as wide as the content column */
  .phero__window { width: min(100% - 64px, var(--max)); }
  /* with an output the hold is longer; as --q runs the window shrinks towards its top edge (as the words above it did)
     and dims, and the output rises from below the frame to take its place. Over the last 40% the window fades away, so
     nothing of it shows round the output */
  .phero--output { height: calc(var(--stick-h) + 200svh); }
  .phero--output .phero__window { filter: brightness(calc(1 - var(--q, 0) * 0.35)); opacity: calc((1 - var(--q, 0)) * 2.5);
    transform: translateY(calc(var(--p, 0) * var(--shift, 0px) * -1)) scale(calc(1.06 - var(--p, 0) * 0.06 - var(--q, 0) * 0.3)); }
  /* at rest its top sits on the frame's foot, so it shows from the first scroll; it rises until its top is just above
     the window's (which settles 96px down, under the header), so it ends covering the window whole: wider and taller */
  .phero__output { position: absolute; left: 50%; top: calc(88px + (1 - var(--q, 0)) * (100% - 88px)); margin: 0;
    width: min(100% - 64px, var(--max), (100svh - 128px) * 16 / 9); transform: translateX(-50%); will-change: top; }
}
/* the still hero (a page that isn't one product's): the words, then its own visual full width under them, with no held
   scroll; the visual keeps its own frame, so the hero ends on it with no padding of its own */
.phero--still .phero__stick { overflow: visible; padding-bottom: 0; }
.phero__visual { position: relative; z-index: 1; margin-top: clamp(48px, 6vw, 72px); }
/* words only (the solutions page): the hero ends with the usual space under its buttons, before the page goes on */
.phero--plain .phero__stick { padding-bottom: clamp(48px, 6vw, 80px); }
@media (max-width: 899px) { .phero__window { margin-top: 40px; border-radius: 8px; } .phero__chrome { height: 26px; } }

/* video carousel (src/components/VideoCarousel.astro, js/coverflow-carousel.js): the homepage's "On air today" and
   the product pages' videos */
/* the row stays inside the page's content column (--cf-wrap, its width, set by the script): the centre card takes
   --cf-share of it, and the neighbours creep in from both sides, cut off at the column's edges and faded out there */
.cf { --cf-share: .66; --cf-card: calc(var(--cf-wrap, 100vw) * var(--cf-share)); --cf-h: calc(var(--cf-card) * 9 / 16);
  --cf-edge: calc((var(--cf-wrap, 100vw) - var(--cf-card)) / 2); }
.cf-stage { position: relative; }
/* the frame clips the row at the sides only in effect: 96px of room above and below (taken back by the margins) leave
   the cards' shadows, and the lifted centre card's, whole */
.cf-frame { overflow: hidden; padding: 96px 0; margin: -56px 0; perspective: calc(var(--cf-card) * 3); touch-action: pan-y; cursor: grab;
  /* the side cards fade into the page on an eased curve across the strip outside the centre card */
  --cf-fade: linear-gradient(90deg, transparent 0, rgba(0,0,0,.06) calc(var(--cf-edge) * .25), rgba(0,0,0,.25) calc(var(--cf-edge) * .5),
    rgba(0,0,0,.6) calc(var(--cf-edge) * .75), #000 var(--cf-edge), #000 calc(100% - var(--cf-edge)),
    rgba(0,0,0,.6) calc(100% - var(--cf-edge) * .75), rgba(0,0,0,.25) calc(100% - var(--cf-edge) * .5),
    rgba(0,0,0,.06) calc(100% - var(--cf-edge) * .25), transparent 100%);
  -webkit-mask-image: var(--cf-fade); mask-image: var(--cf-fade); }
.cf-frame.is-dragging { cursor: grabbing; }
.cf-track { position: relative; height: var(--cf-h); transform-style: preserve-3d; user-select: none; -webkit-user-select: none; }
.cf-card { position: absolute; left: 50%; top: 0; width: var(--cf-card); height: var(--cf-h); overflow: hidden; border-radius: 8px; background: var(--card-2); box-shadow: 0 18px 40px rgba(0,0,0,.35); will-change: transform; }
.cf-hit { all: unset; position: relative; display: block; width: 100%; height: 100%; cursor: inherit; }
.cf-hit > img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.cf-hit:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.cf-card.is-current .cf-hit { cursor: pointer; }
/* the play control: a small bar in the style of the theatre's control bar (it grows into that bar on open).
   Not scoped to .cf-card, because theatre.js clones it over the page while the morph starts. */
/* sized by its contents (a longer title makes a longer bar), up to the card's width */
.cf-play { position: absolute; left: 50%; bottom: 18px; z-index: 1; transform: translateX(-50%); box-sizing: border-box;
  width: max-content; max-width: calc(100% - 32px);
  display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 6px; background: var(--th-bar); color: var(--th-ink);
  box-shadow: inset 0 0 0 1px var(--th-bar-edge), 0 10px 30px -10px rgba(0, 0, 0, .45); white-space: nowrap; }
.cf-play-icon { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; background: var(--th-key); transition: background-color .15s var(--ease); }
.cf-play-icon svg { width: 14px; height: 14px; fill: var(--th-ink); margin-left: 2px; }
/* the logos are cropped to their marks (images/logos/clients/trimmed), so the gaps either side are real */
.cf-play-logo { flex: none; height: 22px; width: auto; max-width: 96px; object-fit: contain; filter: var(--th-logo); }
.cf-play-text { display: grid; min-width: 0; line-height: 1.25; text-align: left; }
.cf-play-text > * { overflow: hidden; text-overflow: ellipsis; }
.cf-play-client { font-size: 12px; color: var(--th-ink-2); }
.cf-play-title { font-size: 14px; font-weight: 500; color: var(--th-ink); }
.cf-card .cf-play { opacity: 0; transform: translateX(-50%) translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.cf-card.is-current .cf-play { opacity: 1; transform: translateX(-50%); }
.cf-card.is-current .cf-hit:hover .cf-play-icon { background: var(--th-key-hover); }
@media (max-width: 560px) { .cf-play { bottom: 10px; gap: 8px; padding: 5px 12px 5px 5px; } .cf-play-logo { height: 18px; } }
@media (max-width: 560px) { .cf { --cf-share: .88; } }

/* the clips either side of the centre step back: darker, a little desaturated and softened, so the playing one leads */
.cf-card .cf-hit > img { transition: filter .45s var(--ease); }
.cf-card:not(.is-current) .cf-hit > img { filter: brightness(.42) saturate(.55) blur(1.5px); }
:root[data-theme="light"] .cf-card:not(.is-current) .cf-hit > img { filter: brightness(.6) saturate(.5) blur(1.5px); }

/* under the row: a segmented progress bar, one segment per clip. The playing clip's segment is the long one and fills
   over a preview loop (js/coverflow-carousel.js); when the next clip comes in, its segment grows as the last one shrinks.
   Segments before the current one are full; any segment jumps to its clip */
.cf-controls { display: flex; justify-content: center; margin-top: 8px; }
/* a single clip: the full width of the content column, with no progress bar under it */
.cf.cf--single { --cf-share: 1; }
.cf--single .cf-controls { display: none; }
.cf-progress { display: flex; align-items: center; gap: 6px; width: min(320px, 70%); }
.cf-seg { all: unset; position: relative; flex: 1 1 0; min-width: 0; height: 16px; cursor: pointer; transition: flex-grow .6s cubic-bezier(0.22, 1, 0.36, 1); }
.cf-seg.is-current { flex-grow: 5; }
.cf-seg::before, .cf-seg > span { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 4px; border-radius: 4px; }
.cf-seg::before { background: var(--line-2); }
.cf-seg > span { background: var(--fg); transform: scaleX(0); transform-origin: left center; }
.cf-seg.is-done > span { transform: scaleX(1); }
.cf-seg:hover::before { background: var(--fg-3); }
.cf-seg:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .cf-seg { transition: none; } .cf-seg.is-current > span { transform: scaleX(1); } }

/* the playing clip answers the pointer: it lifts a little, its shadow deepens and its play bar grows, so it is plain
   that a click opens it with sound */
@media (hover: hover) and (pointer: fine) {
  .cf-card { transition: translate .35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .35s var(--ease); }
  .cf-card.is-current:hover { translate: 0 -6px; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
  .cf-card.is-current .cf-hit:hover .cf-play { transform: translateX(-50%) scale(1.12); }
  .cf-card.is-current .cf-play { transition: opacity .3s var(--ease), transform .35s cubic-bezier(0.22, 1, 0.36, 1); }
}
/* the centre card's muted looping preview fades in over the poster once frames arrive */
.cf-preview { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease); background: #000; }
.cf-preview.is-live { opacity: 1; }
.cf-preview mobii-player, .cf-preview .main-container, .cf-preview .player-container, .cf-preview .play-video-container { display: block; width: 100%; height: 100%; }
.cf-preview video { display: block; width: 100%; height: 100%; object-fit: contain; }
.cf-preview .play-overlay, .cf-preview .player-controls-container, .cf-preview .touchable-overlay-blocker { display: none !important; }

/* problem story (src/components/ProblemStory.astro, js/problem-story.js): the product pages' problem, told in large
   type, beat by beat, ending on what the product does about it. The still layout (phones, reduced motion) stacks the
   beats; on wide screens the section holds and the beats take the screen one at a time */
.pstory { position: relative; }
.pstory__stick { padding: 120px 0; }
.pstory__wrap { display: grid; gap: 48px; }
.pstory__beats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 64px; }
.pstory__beat { min-width: 0; text-align: center; }
/* the beats sit centred: each line, its flourish and the payoff's sentence */
.pstory__line, .pstory__sub { margin-inline: auto; }
.pstory__line { font-size: clamp(34px, 4.8vw, 72px); font-weight: 300; letter-spacing: -0.035em; line-height: 1.04; max-width: 21ch; color: var(--fg); text-wrap: balance; }
.pstory__beat--payoff .pstory__line { max-width: 22ch; }
.pstory__sub { margin-top: 24px; max-width: 46ch; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--fg-2); }
/* the payoff's highlighted words, inverted on a block of ink */
/* each word sits in its own clipping box (room below for descenders), so it can rise into view and lift out of it */
.ps-w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .03em .14em; margin: 0 -.03em -.14em; }
.ps-w > span { display: inline-block; }
.ps-accent { white-space: nowrap; padding: 0 .1em; margin: 0 -.02em; border-radius: .08em; background: var(--fg); color: var(--bg);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* the flourishes under a line: all type, in the theme's inks */
.ps-fx { margin: 32px 0 0; padding: 0; list-style: none; }
.ps-ticker { overflow: hidden; max-width: 960px; margin-inline: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
/* the ticker: the same pills as the stacked words and chain steps, sliding past and fading in and out at the edges.
   Each pill carries its own space after it (not the track's gap), so the second half of the doubled list lines up
   exactly with the first and the loop has no jump */
.ps-ticker__track { display: flex; width: max-content; padding-block: 1px; animation: ps-tick 24s linear infinite; white-space: nowrap; }
.ps-ticker__track span { display: inline-flex; align-items: center; gap: 10px; margin-right: 10px; }
/* a pill's icon (Google Material Symbols, loaded by the component with just the icons it uses), in the quieter ink */
.ps-icon { font-family: "Material Symbols Outlined"; font-style: normal; font-weight: normal; font-size: 1.15em; line-height: 1;
  letter-spacing: normal; text-transform: none; white-space: nowrap; direction: ltr; color: var(--fg-2);
  -webkit-font-feature-settings: "liga"; font-feature-settings: "liga"; -webkit-font-smoothing: antialiased;
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24; }
@keyframes ps-tick { to { transform: translateX(-50%); } }
.ps-stack { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ps-stack li, .ps-chain__step, .ps-ticker__track span { padding: 8px 16px; border: 1px solid var(--line-2); border-radius: 8px; font-size: clamp(17px, 1.6vw, 22px); color: var(--fg); background: var(--cap-fill); }
.ps-clocks { display: grid; gap: 10px; width: max-content; max-width: 100%; margin-inline: auto; text-align: left; font-family: var(--font-body); font-size: 14px; }
.ps-clocks li { display: grid; grid-template-columns: 9.5em 9em 7em; gap: 16px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ps-clocks__label { color: var(--fg-3); letter-spacing: 0; font-size: 12px; }
.ps-clocks__time { color: var(--fg); font-variant-numeric: tabular-nums; }
.ps-clocks__delta { color: var(--fg-3); text-align: right; font-variant-numeric: tabular-nums; }
.ps-chain { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.ps-chain li { display: flex; align-items: center; gap: 12px; }
.ps-chain__join { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; color: var(--fg-3); }
.ps-chain__join em { font-style: normal; font-family: var(--font-body); font-size: 11px; letter-spacing: 0; white-space: nowrap; }
.ps-chain__join i { font-style: normal; font-size: 20px; line-height: 1; }
@media (max-width: 560px) { .ps-clocks li { grid-template-columns: 1fr auto; } .ps-clocks__label { grid-column: 1 / -1; } }

/* the held story, on wide screens with motion allowed: one beat at a time, rising in and lifting away */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .pstory { height: calc(var(--n) * 70svh + 100svh); }
  .pstory__stick { position: sticky; top: 0; height: 100svh; padding: 88px 0; box-sizing: border-box; display: grid; }
  .pstory__wrap { width: 100%; }
  .pstory__beats { gap: 0; align-items: center; }
  /* beats share one place; a beat's words wait below their boxes, rise into them one after another when it comes on,
     and lift out of the top one after another when it goes (back down, scrolling back), the next beat's words rising
     as the last ones clear */
  .pstory__beat { grid-area: 1 / 1; pointer-events: none; }
  .pstory__beat.is-on { pointer-events: auto; }
  .pstory__beat .ps-w > span { transform: translateY(105%);
    transition: transform .5s cubic-bezier(0.7, 0, 0.84, 0); transition-delay: calc(var(--w) * .025s); }
  .pstory__beat.is-past .ps-w > span { transform: translateY(-105%); }
  .pstory__beat.is-on .ps-w > span { transform: none;
    transition: transform .9s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: calc(.6s + var(--w) * .05s); }
  /* the flourish follows its line in; stacked words and chain steps arrive one after another */
  .pstory__beat .ps-fx, .pstory__beat .pstory__sub { opacity: 0; transform: translateY(12px); transition: opacity .3s var(--ease), transform .5s cubic-bezier(0.16, 1, 0.3, 1); }
  .pstory__beat.is-past .ps-fx, .pstory__beat.is-past .pstory__sub { transform: translateY(-12px); }
  .pstory__beat.is-on .ps-fx, .pstory__beat.is-on .pstory__sub { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .8s cubic-bezier(0.16, 1, 0.3, 1); transition-delay: 1.05s; }
  .pstory__beat .ps-stack li, .pstory__beat .ps-chain li { opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .6s cubic-bezier(0.16, 1, 0.3, 1); }
  .pstory__beat.is-on .ps-stack li, .pstory__beat.is-on .ps-chain li { opacity: 1; transform: none; transition-delay: calc(1.15s + var(--i) * .22s); }
  /* the payoff's highlight wipes in behind its words */
  .ps-accent { background: linear-gradient(var(--fg), var(--fg)) no-repeat 0 0 / 0% 100%; color: inherit;
    transition: background-size .8s cubic-bezier(0.7, 0, 0.2, 1), color .3s var(--ease); }
  .pstory__beat.is-on .ps-accent { background-size: 100% 100%; color: var(--bg); transition-delay: 1.25s, 1.6s; }
}
@media (prefers-reduced-motion: reduce) { .ps-ticker__track { animation: none; } }

/* the ecosystem diagram (src/components/EcoFlow.astro, js/eco-flow.js): the homepage's Prism feeding Fusion and the four
   products, and the product pages' "How it connects" chains. Framed like the logo band:
   hairlines above and below run the width of the page, the box between them is the width of the content. The grid and
   the light are drawn on the canvas, the lines in the svg, and each product is a link that opens into a card. */
.ef { --ef-line: rgba(236, 232, 255, 0.2); --ef-card: #19191c; border-block: 1px solid var(--line-2); overflow-x: clip; }
:root[data-theme="light"] .ef { --ef-line: rgba(20, 16, 48, 0.22); --ef-card: #ffffff; }
.ef-box { --ef-icon: 88px; --ef-pad: 12px; --ef-wide: min(460px, calc(36cqw + 48px)); --ef-tall: 240px; container-type: inline-size;
  position: relative; height: var(--ef-h, 560px); border-inline: 1px solid var(--line-2); }
.ef-box.is-pointing { cursor: pointer; }
.ef-gl, .ef-lines { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.ef-lines path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
/* hairline connections, after clerk.com: faint, one pixel, with a small node at each end */
.ef-base { stroke: var(--ef-line); stroke-width: 1; transition: opacity .3s var(--ease); }
.ef-knot { fill: var(--bg); stroke: var(--ef-line); stroke-width: 1; transition: opacity .3s var(--ease); }
.ef-box[data-active] .ef-base, .ef-box[data-active] .ef-knot { opacity: 0.5; }
.ef-knot-lit { fill: url(#ef-beam); }
.ef-lit { stroke: url(#ef-beam); stroke-width: 1.5; }
.ef-glow { stroke: url(#ef-beam); stroke-width: 6; }
.ef-nodes { margin: 0; padding: 0; list-style: none; }

/* a node is its icon at rest; while it is chosen the clip opens to show the card around it. The icon's centre sits on
   the node's point, so a product's card grows to the right, no taller than the icon and its padding, so it never covers
   the icon below; Prism's and Fusion's grow straight down */
.ef-node { position: absolute; left: var(--x); top: var(--y); z-index: 1; isolation: isolate;
  display: flex; align-items: center; gap: 16px; box-sizing: border-box; width: var(--ef-wide); height: calc(var(--ef-icon) + 2 * var(--ef-pad)); padding: var(--ef-pad);
  border-radius: 14px; color: var(--fg); text-decoration: none; outline: none;
  translate: calc(-1 * (var(--ef-pad) + var(--ef-icon) / 2)) calc(-1 * (var(--ef-pad) + var(--ef-icon) / 2));
  clip-path: inset(var(--ef-pad) calc(100% - var(--ef-pad) - var(--ef-icon)) calc(100% - var(--ef-pad) - var(--ef-icon)) var(--ef-pad) round 12px);
  transition: clip-path .5s cubic-bezier(0.22, 1, 0.36, 1); }
.ef-down { flex-direction: column; align-items: flex-start; gap: 12px; width: var(--ef-tall); height: auto; }
.ef-node.is-active { z-index: 3; clip-path: inset(0 0 0 0 round 14px); }
.ef-node::before, .ef-node::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0;
  transition: opacity .25s var(--ease); pointer-events: none; }
.ef-node::before { background: var(--ef-card); box-shadow: inset 0 0 0 1px var(--line-2), 0 28px 56px -28px rgba(0, 0, 0, .7); }
/* the card is solid: the glow stays behind it, on the canvas, with no spotlight over the card itself */
.ef-node::after { display: none; }
:root[data-theme="light"] .ef-node::before { box-shadow: inset 0 0 0 1px var(--line-2), 0 28px 56px -28px rgba(20, 16, 48, .3); }
.ef-node.is-active::before, .ef-node.is-active::after { opacity: 1; }
.ef-icon { position: relative; z-index: 1; flex: none; width: var(--ef-icon); height: var(--ef-icon); }
.ef-icon img { display: block; width: 100%; height: 100%; }
/* Prism's app icon (images/logos/app-icons/prism.svg) is black and white: wherever it appears (the diagram, the
   Products menu and its button, the homepage cards) it is inverted on the dark theme, a white square with a black
   triangle; on the light, black with white. In the diagram its rainbow glow is the diagram's own light (js/eco-flow.js) */
:root:not([data-theme="light"]) img[src$="app-icons/prism.svg"] { filter: invert(1); }
.ef-copy { position: relative; z-index: 1; display: grid; gap: 3px; min-width: 0; opacity: 0; translate: -8px 0;
  transition: opacity .2s var(--ease), translate .5s cubic-bezier(0.22, 1, 0.36, 1); }
.ef-down .ef-copy { translate: 0 -8px; }
.ef-down .ef-desc { -webkit-line-clamp: unset; }
.ef-node.is-active .ef-copy { opacity: 1; translate: 0 0; transition-delay: .08s; }
.ef-copy b { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
/* a short label under the name, where a diagram gives one ("What happened"), on every screen */
.ef-tag { font-family: var(--font-body); font-size: 11px; letter-spacing: 0; color: var(--fg-3); }
/* the cards say what the product does; the one-liner is for the list on narrow screens */
.ef-one { display: none; font-size: 13px; color: var(--fg-2); }
.ef-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 13px; line-height: 1.45; color: var(--fg-2); }
.ef-node:focus-visible::before { box-shadow: inset 0 0 0 2px var(--blue); }

/* without WebGL: the grid in CSS and a plain glow behind the chosen icon */
.ef-nogl .ef-gl { display: none; }
.ef-nogl { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px; background-position: center; }
.ef-nogl .ef-icon::before { content: ""; position: absolute; inset: -50%; z-index: -1; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 45%, transparent), transparent); transition: opacity .3s var(--ease); }
.ef-nogl .is-active .ef-icon::before { opacity: 1; }

@media (max-width: 1100px) {
  .ef-box { height: calc(var(--ef-h, 560px) - 40px); --ef-icon: 76px; --ef-wide: min(440px, calc(42cqw + 30px)); --ef-tall: 200px; }
  /* each node can sit somewhere else on medium screens (--x-md, set by the component, the same as --x unless given) */
  .ef-node { --x: var(--x-md) !important; }
  .ef-desc { font-size: 12px; line-height: 1.4; }
}
/* narrow screens: the same links as a list down a line, Prism first, each with its one-liner */
@media (max-width: 760px) {
  .ef-box { height: auto; padding: 20px 0; --ef-icon: 52px; }
  .ef-lines { display: none; }
  .ef-nodes { position: relative; display: grid; gap: 4px; }
  .ef-nodes::before { content: ""; position: absolute; left: calc(var(--ef-pad) + var(--ef-icon) / 2); top: 40px; bottom: 40px; border-left: 1px solid var(--ef-line); }
  .ef-node, .ef-down { position: relative; left: auto; top: auto; translate: none; clip-path: none; width: auto; height: auto;
    flex-direction: row; align-items: center; gap: 16px; }
  .ef-copy, .ef-down .ef-copy { opacity: 1; translate: none; gap: 2px; }
  .ef-desc { display: none; }
  .ef-one { display: block; }
}

/* where it runs (src/components/WhereItRuns.astro): the homepage's "Runs where you need it" and each product page's
   "Where it runs". The heading on top, then one card laid out like the "What it makes possible" cards but
   on its side, the Zenith encoder (js/hairline/zenith.js) large on the left and the paragraph (and a button, where the page has one) on the right */
.hz-head { margin-bottom: 40px; }
.hz-head h2 { font-size: var(--fs-h2); max-width: 16ch; }
.hz-card { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0; align-items: stretch; padding: 0; overflow: hidden; }
/* the card splits in two: the encoder standing on its isometric grid, then the words */
.hz-fig { --fig-zoom: 1.45; --fig-y: -50%; aspect-ratio: 16 / 10; margin: 0; }
/* the grid panel has its own fill, a light grey in the light theme and darker than the card in the dark one; the
   unit keeps the card's own fill on its plates, so it stands out from the panel and still hides the grid */
.hz-fig { --hz-panel: #0c0c0e; background: var(--hz-panel); }
:root[data-theme="light"] .hz-fig { --hz-panel: #F1F3F6; }
/* the isometric floor grid the figure draws under the unit */
.hz-fig .fig-grid { stroke: var(--line); }
/* the pulses that stream along the encoder's cables at work: short red dashes repeating along each cable, moved
   along by the figure (js/hairline/zenith.js; its PERIOD is the dash plus the gap) */
.hz-fig .cable-pulse { stroke: var(--brand); stroke-width: 2.5px; stroke-dasharray: 0.035 0.185; stroke-dashoffset: 0; opacity: 0; }
.hz-copy { display: grid; gap: 28px; justify-items: start; }
/* the card's own paragraph styles are smaller and quieter; this one keeps the size of the section's big line */
.hz-card p.big-line { font-size: clamp(19px, 1.9vw, 23px); font-weight: 300; line-height: 1.4; letter-spacing: -0.01em; max-width: 34ch; color: var(--fg); }
.hz-btn { height: 36px; padding: 0 16px; border-radius: 8px; background: var(--cta-solid); color: var(--cta-solid-ink); font-size: 14px; font-weight: 500; }
.hz-btn:hover { background: var(--cta-solid-hover); }
/* the product's lockup in the label ("How [Prism] connects it all"), at the height of the words. The button is white on
   the dark theme and black on the light one, so it takes the lockup drawn for that ground: dark letters on the white
   button, light letters on the black one */
.hz-btn__label { white-space: nowrap; }
.hz-btn__mark { height: 0.95em; width: auto; vertical-align: -0.12em; margin-inline: 0.1em; }
.hz-btn__mark--on-black { display: none; }
:root[data-theme="light"] .hz-btn__mark--on-white { display: none; }
:root[data-theme="light"] .hz-btn__mark--on-black { display: inline; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .hz-btn__mark--on-white { display: none; } :root:not([data-theme="dark"]) .hz-btn__mark--on-black { display: inline; } }
.hz-copy { align-content: center; padding: clamp(28px, 4vw, 56px); }
@media (max-width: 900px) { .hz-card { grid-template-columns: 1fr; } .hz-fig { --fig-zoom: 1.55; }
  .hz-copy { padding: 28px 24px; } }

/* client logos (src/components/ClientLogos.astro): on a product page, straight on the page (no card), the product's
   lockup and under it what it does ("automates production for"), over a row of the clients' logos, the same ones as the homepage hero but plain: no dot
   mask. Each logo is sized by its mark alone (its file's empty margins cropped away with --t, --b, --l and --r, as in
   the hero), so the row spaces them evenly. The files are white: muted in the dark theme, a soft grey in the light one */
.cl { display: grid; justify-items: center; gap: clamp(28px, 3vw, 40px); text-align: center;
  /* room above and below, so the band stands on its own between the card before it and the closing section */
  padding-block: clamp(40px, 6vw, 88px); }
/* two lines: the lockup, then under it the tagline in the quieter second ink, its letters as tall as the product name in the
   lockup, and their line exactly as tall as the lockup (--cl-h, the lockup's height; the words are sized from it) */
.cl-line { --cl-h: clamp(22px, 2vw, 26px); display: flex; flex-direction: column; align-items: center; gap: 16px;
  font-size: calc(var(--cl-h) * 1.08); font-weight: 300; letter-spacing: -0.015em; line-height: var(--cl-h); color: var(--fg-2); }
.cl-lockup { display: inline-flex; line-height: 0; }
.cl-lockup img { height: var(--cl-h); width: auto; }
.cl-logos { --logo-h: 30px; display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; gap: 24px;
  width: 100%; margin: 0; padding: 0; list-style: none; }
.cl-logos li { flex: none; line-height: 0; }
.cl-logos img { --ih: calc(var(--logo-h) / (1 - var(--t) - var(--b))); --iw: calc(var(--ih) * 400 / 150);
  display: block; height: var(--ih); width: var(--iw); max-width: none; opacity: .6;
  margin: calc(var(--ih) * var(--t) * -1) calc(var(--iw) * var(--r) * -1) calc(var(--ih) * var(--b) * -1) calc(var(--iw) * var(--l) * -1); }
:root[data-theme="light"] .cl-logos img { filter: invert(1); opacity: .55; }
@media (max-width: 1000px) { .cl-logos { --logo-h: 24px; flex-wrap: wrap; justify-content: center; gap: 24px 36px; } }
@media (max-width: 560px) { .cl-logos { --logo-h: 18px; gap: 20px 26px; } }

/* the product hero's window before a product's app screens are ready: the app's icon, faint, over a line saying so,
   on the window's own dark ground (src/components/ProductHero.astro) */
.phero__placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px;
  color: rgba(243, 241, 251, .4); font-family: var(--font-body); font-size: 12px; letter-spacing: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .07) 1px, transparent 1.4px); background-size: 18px 18px; }
.phero__placeholder img { opacity: .5; border-radius: 12px; }

/* the problem story's skip button (src/components/ProblemStory.astro): the outline button, centred at the foot of the
   held frame, so it is there the whole way through the story; it fades as the story reaches its end. The still
   layout (phones, reduced motion) shows every line at once, so it has no button */
.pstory__skip { display: none; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .pstory__skip { display: inline-flex; position: absolute; left: 50%; bottom: 32px; translate: -50% 0; z-index: 2;
    background: var(--bg); transition: opacity .3s var(--ease), border-color .15s var(--ease); }
  .pstory.is-done .pstory__skip { opacity: 0; pointer-events: none; }
  .pstory__skip span { font-size: 13px; }
  /* the label: the product's lockup stands in for its name ("Skip to what [Studio] does"), in the run of the words at
     the height of their letters; the label keeps the button's size (the 13px is for the arrow) */
  .pstory__skip .pstory__skip-label { font-size: inherit; white-space: nowrap; }
  .pstory__skip-label img { height: 0.95em; width: auto; vertical-align: -0.12em; margin-inline: 0.05em; }
  .pstory__skip-label .on-dark { display: inline; }
  :root[data-theme="light"] .pstory__skip-label .on-light { display: inline; }
}

@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .pstory__skip-label .on-light { display: inline; } }

/* a products list whose rows are links (the ecosystem page's "Each product does one job well"): the whole row opens
   the product's page; on hover or keyboard focus its words brighten and "Explore" slides in at the end of the row.
   Touch screens, with no hover, show "Explore" all the time so the rows still read as links */
/* rules only between the rows (none above the first or under the last); on hover or focus the whole row fills with the
   second card shade (it shows on both themes; the first is white on the light one). The rows reach 16px past the column either side, with 16px inside, so the words stay on the column's line
   and the fill has room round them */
.roles--links { border-top: 0; }
.roles--links > a { display: grid; grid-template-columns: 160px 1fr auto; gap: 16px; align-items: center; padding: 14px 16px; margin-inline: -16px;
  border-bottom: 1px solid var(--line-2); color: inherit; text-decoration: none; transition: background-color .2s var(--ease); }
.roles--links > a:last-child { border-bottom: 0; }
.roles--links > a:hover, .roles--links > a:focus-visible { background: var(--card-2); }
.roles--links > a > span:nth-child(2) { transition: color .2s var(--ease); }
/* "Explore" in Mobii red (the designer's call: an agreed exception to red being only for the nav's button), no arrow */
.roles--links .roles__more { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-size: 13px; font-weight: 500;
  opacity: 0; translate: -6px 0; transition: opacity .2s var(--ease), translate .2s var(--ease); }
.roles--links > a:hover > span:nth-child(2), .roles--links > a:focus-visible > span:nth-child(2) { color: var(--fg); }
.roles--links > a:hover .roles__more, .roles--links > a:focus-visible .roles__more { opacity: 1; translate: 0 0; }
.roles--links > a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: var(--r-sm); }
@media (hover: none) { .roles--links .roles__more { opacity: 1; translate: none; } }
@media (prefers-reduced-motion: reduce) { .roles--links .roles__more { translate: none; } }
/* narrow screens: the product and "Explore" on the first line, what it does under them */
@media (max-width: 700px) {
  .roles--links > a { grid-template-columns: 1fr auto; row-gap: 6px; }
  .roles--links > a > span:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
}

/* ===== company (src/pages/company.astro) ===== */
.co-muted { color: var(--fg-2); }
.co-head { margin-bottom: 40px; align-items: end; }
/* what we do: no heading, just the words, the block centred on the page and the lines left-aligned */
.co-what__text { display: grid; gap: 16px; max-width: 520px; margin-inline: auto; }
.co-what__text .big-line { max-width: none; }
/* under it, who we work with: the clients' logos as the plain row the product pages use (.cl-logos, no dot mask), across
   the full width */
.co-clients { margin-top: clamp(64px, 8vw, 104px); }

/* our roots: the founding year very large on the left, the story on the right */
.co-roots .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.co-roots__year { font-size: clamp(56px, 8.5vw, 128px); font-weight: 300; letter-spacing: -0.04em; line-height: 0.95; max-width: none; }
.co-roots__year span { display: block; color: var(--fg-3); }
.co-roots__story { display: grid; gap: 18px; align-content: start; justify-items: start; padding-top: 0.6em; }
.co-roots__story .big-line { max-width: none; }

/* the six teams: square cards set 8px apart, three to a row on wide screens, each with its Hairline figure */
.co-teams { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.co-team { grid-column: span 2; display: grid; gap: 10px; align-content: start; padding: 28px 26px; background: var(--card); border: 1px solid var(--line); }
.co-team h3 { font-size: 21px; font-weight: 400; letter-spacing: -0.015em; }
.co-team p { color: var(--fg-2); font-size: 14px; }
.co-team__fig { --fig-zoom: 1.02; --fig-y: -50%; }
@media (max-width: 900px) { .co-teams { grid-template-columns: 1fr 1fr; } .co-team { grid-column: span 1; } }
@media (max-width: 600px) { .co-teams { grid-template-columns: 1fr; } }

/* the team tabs (after the React Bits careers block): a row of tabs with a count each, the first (Leadership) chosen; the bar has
   8px corners and the chosen tab 4px, so its corners run parallel to the bar's inside its 4px padding */
.co-tabs { display: flex; flex-wrap: wrap; gap: 4px; width: fit-content; max-width: 100%; padding: 4px; margin-bottom: 24px;
  border: 1px solid var(--line-2); border-radius: var(--r); }
.co-tab { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: var(--r-sm);
  cursor: pointer; color: var(--fg-2); font-size: 14px; font-weight: 500; transition: background-color .2s var(--ease), color .2s var(--ease); }
.co-tab:hover { color: var(--fg); }
.co-tab[aria-selected="true"] { background: var(--card-2); color: var(--fg); }
.co-tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.co-tab__n { color: var(--fg-3); font-size: 12px; font-weight: 400; }
@media (max-width: 700px) { .co-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: auto; } .co-tabs::-webkit-scrollbar { display: none; } .co-tab { flex: none; } }

/* the people: square cards 8px apart, a square portrait in greyscale that takes its colour back on hover, then the
   name, the role and (for the leadership) a short bio; a placeholder card has a dashed edge and a plus */
.co-people { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.co-people[hidden] { display: none; }
.co-person { display: grid; align-content: start; background: var(--card); border: 1px solid var(--line); }
.co-person__photo { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; background: var(--card-2); color: var(--fg-3);
  font-size: 32px; font-weight: 300; letter-spacing: -0.02em; }
.co-person__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .4s var(--ease); }
.co-person:hover .co-person__photo img { filter: none; }
/* a photo that came cropped to a circle: zoomed by the square root of two, so the circle fills the square and none of its corners show */
.co-person__photo img.is-round { scale: 1.42; }
/* a portrait framed out of a larger picture: the page sets its size and place (crop in company.astro) */
.co-person__photo { position: relative; }
.co-person__photo img.is-crop { position: absolute; max-width: none; height: auto; object-fit: initial; }
.co-person__copy { display: grid; gap: 4px; padding: 18px 20px 22px; }
.co-person h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.co-person__role { color: var(--fg-2); font-size: 13px; display: flex; align-items: center; gap: 8px; }
/* a LinkedIn link after the role: the mark in the quiet ink, brightening on hover */
.co-person__in { display: inline-flex; color: var(--fg-3); transition: color .2s var(--ease); }
.co-person__in:hover { color: var(--fg); }
.co-person__in svg { width: 13px; height: 13px; fill: currentColor; }
.co-person__bio { color: var(--fg-3); font-size: 13px; line-height: 1.5; margin-top: 8px; }
.co-person--ph { border-style: dashed; border-color: var(--line-2); background: transparent; }
.co-person--ph .co-person__photo { background: transparent; border-bottom: 1px dashed var(--line-2); }
.co-person--ph h3 { color: var(--fg-3); font-weight: 400; }
@media (max-width: 700px) { .co-people { grid-template-columns: 1fr 1fr; } .co-person__copy { padding: 14px 14px 18px; } }

/* the office strip (after the React Bits about block): two rows of tiles drifting endlessly in opposite directions,
   without pausing under the pointer; with reduced motion the rows sit still and scroll by hand */
.co-strip { display: grid; gap: 8px; margin-top: 8px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.co-strip__row { display: flex; width: max-content; animation: co-drift 60s linear infinite; }
.co-strip__row--back { animation-direction: reverse; animation-duration: 70s; }
.co-strip__set { display: flex; gap: 8px; padding-right: 8px; }
.co-tile { flex: none; width: clamp(220px, 24vw, 340px); height: clamp(160px, 18vw, 240px); display: grid; place-items: center; border-radius: 12px; overflow: hidden; }
.co-tile--wide { width: clamp(320px, 38vw, 540px); }
.co-tile--photo { position: relative; overflow: hidden; background: var(--card); }
.co-tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.co-tile--text { background: var(--card-2); padding: 24px; }
.co-tile--text p { font-size: clamp(20px, 2.2vw, 28px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.2; text-align: center; max-width: 14ch; }
@keyframes co-drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .co-strip { overflow-x: auto; } .co-strip__row { animation: none; } }

@media (max-width: 900px) {
  .co-roots .wrap { grid-template-columns: 1fr; }
  .co-roots__story { padding-top: 0; }
}

/* news list (src/components/NewsList.astro), after bequant.com's announcements: rows between dotted rules, the kind,
   date and publisher at the left in small mono, the cover in the middle, the headline at the right with a Read button
   at its foot */
.nl { margin: 0; padding: 0; list-style: none; border-bottom: 1px dashed var(--line-2); }
.nl-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px) minmax(0, 1.2fr); gap: 24px;
  padding: 20px 0; border-top: 1px dashed var(--line-2); }
.nl-meta { display: grid; align-content: start; gap: 4px; font-family: var(--font-body); font-size: 11px; letter-spacing: 0;
 color: var(--fg-3); }
.nl-kind { color: var(--fg); font-weight: 700; }
/* the publisher's logo in place of its name, in one neutral ink like the words around it */
.nl-source-logo { display: block; height: 18px; width: auto; margin-top: 4px; filter: brightness(0); opacity: .55; }
:root[data-theme="dark"] .nl-source-logo { filter: brightness(0) invert(1); opacity: .6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nl-source-logo { filter: brightness(0) invert(1); opacity: .6; } }
/* the thumbnail: the companies the item is about, "<logo> × Mobii", in white on the red dithered ground (the closing
   section's), darkened a little so the marks read. Client logos are sized by their marks (--t, --b, --l, --r) */
.nl-cover { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: 6px; aspect-ratio: 16 / 9;
  background: #140a0c center / cover; isolation: isolate; }
/* an item with its own ready-made cover shows just that */
.nl-cover--image::before { display: none; }
.nl-cover--image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1); }
.nl-row:hover .nl-cover--image img { transform: scale(1.03); }
.nl-cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 70% at 50% 50%, rgba(8, 4, 6, .62), rgba(8, 4, 6, .2)); }
.nl-logos { --logo-h: clamp(22px, 2.5vw, 34px); display: flex; align-items: center; gap: clamp(12px, 1.4vw, 20px); padding: 0 16px;
  transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1); }
.nl-row:hover .nl-logos { transform: scale(1.04); }
.nl-partner { --ih: calc(var(--logo-h) / (1 - var(--t) - var(--b))); --iw: calc(var(--ih) * 400 / 150);
  display: block; flex: none; height: var(--ih); width: var(--iw); max-width: none;
  margin: calc(var(--ih) * var(--t) * -1) calc(var(--iw) * var(--r) * -1) calc(var(--ih) * var(--b) * -1) calc(var(--iw) * var(--l) * -1); }
.nl-partner-name { color: #fff; font-size: calc(var(--logo-h) * .62); font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.nl-x { color: rgba(255, 255, 255, .7); font-size: calc(var(--logo-h) * .7); font-weight: 300; line-height: 1; }
.nl-mobii { display: block; flex: none; height: calc(var(--logo-h) * .82); width: auto; }
.nl-copy { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 20px; min-width: 0; }
.nl-copy h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 300; letter-spacing: -0.015em; line-height: 1.2; max-width: 22ch; text-wrap: balance; }
.nl-copy h3 a { color: inherit; text-decoration: none; }
.nl-copy h3 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.nl-read svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) { .nl-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } .nl-meta { grid-column: 1 / -1; grid-auto-flow: column; justify-content: start; gap: 14px; } }
@media (max-width: 560px) { .nl-row { grid-template-columns: 1fr; gap: 14px; } .nl-copy { gap: 14px; } }


/* the company page's newsroom heading: the All news button sits at the right, level with the foot of the heading */
.co-news-more { display: flex; justify-content: flex-end; }
@media (max-width: 900px) { .co-news-more { justify-content: flex-start; } }

/* youtube row (src/components/YouTubeRow.astro): three video cards, each a 16:9 thumbnail with a round play button
   (the site's .vid-btn look), its title and its channel under it; the thumbnail turns into the playing video */
.yt-head { margin-bottom: 40px; }
.yt-head h2 { font-size: var(--fs-h2); }
.yt-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.yt-card { display: grid; gap: 10px; align-content: start; }
.yt-frame, .yt-embed { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px;
  background: #0b0b0d; border: 0; }
.yt-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(0.22, 1, 0.36, 1); }
.yt-frame:hover img { transform: scale(1.03); }
.yt-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(13, 12, 19, .62); border: 1px solid rgba(255, 255, 255, .5); backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px); transition: transform .2s var(--ease), background-color .2s var(--ease); }
.yt-play svg { width: 20px; height: 20px; fill: #fff; margin-left: 3px; }
.yt-frame:hover .yt-play { transform: scale(1.08); background: rgba(13, 12, 19, .8); }
.yt-frame:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.yt-card h3 { margin-top: 6px; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.35; text-wrap: balance; }
.yt-channel { font-family: var(--font-body); font-size: 11px; letter-spacing: 0; color: var(--fg-3); }
@media (max-width: 900px) { .yt-row { grid-template-columns: 1fr; gap: 32px; } }

/* the company newsroom's videos, under the two latest stories */
.co-videos { margin-top: clamp(72px, 9vw, 120px); }
/* the newsroom is the page's last section: a longer run of space under it before the closing band */
.co-news { padding-bottom: clamp(120px, 14vw, 200px); }

/* four videos: two by two at every desktop size, so each is large and none sits alone on a row */
.yt-row--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .yt-row--four { grid-template-columns: 1fr; } }

/* ---- the ecosystem page (products.html): "One moment, every product", "Grow at your own pace", "What your next
   product inherits", editions and commitments. Neutral inks only; labels in sentence case ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ed-note { margin-top: 18px; color: var(--fg-2); font-size: 14px; max-width: 80ch; }
.ed-note a { color: var(--blue); }

/* one moment followed through every product, on a single line */
.moment { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); overflow: hidden; }
.moment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px 24px; border-bottom: 1px solid var(--line); background: var(--card-2); }
.moment-head .tc { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--fg); padding: 6px 10px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); }
.moment-head b { font-weight: 500; font-size: 16px; }
.moment-head span.s { color: var(--fg-3); font-size: 13px; margin-left: auto; }
.moment-rows { position: relative; }
.moment-rows::before { content: ""; position: absolute; top: 0; bottom: 0; left: 241px; width: 2px; background: var(--line-2); }
.moment-row { display: grid; grid-template-columns: 212px 48px minmax(0, 1fr); align-items: center; padding: 16px 24px; border-top: 1px solid var(--line); }
.moment-row:first-child { border-top: 0; }
.moment-row img { height: 22px; width: auto; }
.moment-row .dot { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--fg); }
.moment-row p { color: var(--fg-2); font-size: 15px; }
.moment-row p b { color: var(--fg); font-weight: 500; }
.moment-foot { padding: 14px 24px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 13px; }
@media (max-width: 760px) { .moment-rows::before, .moment-row .dot { display: none; } .moment-row { grid-template-columns: 1fr; gap: 8px; } .moment-head span.s { margin-left: 0; } }

/* four stages, each a stack of products on the same foundation; .new marks what that stage adds */
.grow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.grow-col { display: grid; gap: 10px; }
.grow-stack { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; height: 330px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.grow-blk { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card-2); font-size: 13px; color: var(--fg-2); }
.grow-blk small { color: var(--fg-3); font-size: 12px; }
.grow-blk.new { border-color: var(--line-2); color: var(--fg); }
.grow-logo { display: flex; align-items: center; min-height: 18px; }
.grow-logo img { height: 18px; width: auto; }
.grow-base-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; margin-top: 8px; }
.grow-base { padding: 12px; border-radius: var(--r); background: var(--bg); border: 1px dashed var(--line-2); font-size: 12px; color: var(--fg-2); text-align: center; line-height: 1.4; }
.grow-base b { display: block; color: var(--fg); font-weight: 500; font-size: 13px; }
.grow-col .k { font-size: 13px; font-weight: 500; color: var(--fg-3); margin-top: 6px; }
.grow-col h4 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.grow-col p { color: var(--fg-2); font-size: 14px; }
@media (max-width: 960px) { .grow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grow { grid-template-columns: 1fr; } .grow-stack { height: auto; } }

/* six things already in place, in one ruled card */
.inplace { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--card); }
.inplace > div { padding: 22px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.inplace > div:nth-child(3n) { border-right: 0; }
.inplace > div:nth-last-child(-n+3) { border-bottom: 0; }
.inplace h4 { font-size: 16px; font-weight: 500; }
.inplace p { color: var(--fg-2); font-size: 14px; }
@media (max-width: 900px) { .inplace { grid-template-columns: 1fr; } .inplace > div { border-right: 0; border-bottom: 1px solid var(--line) !important; } .inplace > div:last-child { border-bottom: 0 !important; } }

/* editions (Core, Plus, Max) and the commitment table */
.ladder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ladder > div { padding: 26px 24px; display: grid; gap: 10px; align-content: start; }
.ladder h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; }
.ladder p { color: var(--fg-2); font-size: 14px; }
@media (max-width: 900px) { .ladder { grid-template-columns: 1fr; } }
.ctable-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow-x: auto; background: var(--card); }
.ctable { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.ctable th, .ctable td { padding: 14px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ctable thead th { font-weight: 500; font-size: 16px; background: var(--card-2); }
.ctable tbody th { font-weight: 400; color: var(--fg-3); white-space: nowrap; }
.ctable td { color: var(--fg-2); }
.ctable tr:last-child > * { border-bottom: 0; }

/* ---- Prism page: synchronization figure and section parts (neutral inks only; labels in sentence case) ---- */
/* the figure in the hero: centred under the words, the width of a product window */
.prism-hero-fig { width: min(880px, 100%); margin: 0 auto; }
.syncfig { display: block; width: 100%; height: auto; color: var(--fg); font-family: inherit; }
.syncfig .sf-k { font-size: 11.5px; font-weight: 500; fill: var(--fg-3); }
.syncfig .sf-l { font-size: 13px; fill: var(--fg-2); }
.syncfig .sf-tc { font-size: 13px; fill: var(--fg); font-variant-numeric: tabular-nums; }
.syncfig .sf-cap { font-size: 12.5px; fill: var(--fg-2); }
.syncfig .sf-note { font-size: 10.5px; fill: var(--fg-3); }
.syncfig .sf-tick, .syncfig .sf-rule { stroke: var(--line-2); stroke-width: 1; }
.syncfig .sf-run { animation: sfrun 4.2s linear infinite; }
.syncfig .sf-v { fill: color-mix(in srgb, var(--fg) 52%, transparent); }
.syncfig .sf-d, .syncfig .sf-t { fill: color-mix(in srgb, var(--fg) 78%, transparent); }
.syncfig .sf-e .sf-hollow { fill: none; stroke: var(--fg-2); stroke-width: 1.4; }
.syncfig .sf-m { fill: color-mix(in srgb, var(--fg) 32%, transparent); }
.syncfig .sf-hit { fill: var(--card); stroke: var(--fg); stroke-width: 1.6; }
@keyframes sfrun { to { transform: translateX(-112px); } }
@media (prefers-reduced-motion: reduce) { .syncfig .sf-run { animation: none; } }

/* "Synchronization unlocks everything": three numbered points beside six gains */
.sync-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.sync-points { display: grid; }
.sync-points > div { padding: 18px 0; border-top: 1px solid var(--line-2); display: grid; gap: 6px; }
.sync-points > div:first-child { border-top: 0; padding-top: 0; }
.sync-points h4 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.sync-points p { color: var(--fg-2); font-size: 14px; }
.sync-points b.n { font-size: 12px; color: var(--fg-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.flex3.flex3--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) { .sync-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .flex3.flex3--two { grid-template-columns: 1fr; } }
.ed-note__lead { color: var(--fg); font-weight: 500; }

/* four cards in a row (Prism's problem and Enterprise sections) */
.flex3.flex4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .flex3.flex4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .flex3.flex4 { grid-template-columns: 1fr; } }

/* numbered steps in a flow row, and a short worked example under them */
.flow.steps b { font-variant-numeric: tabular-nums; color: var(--fg-3); }
.flow.steps h4 { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; }
.flow.steps p { font-size: 14px; color: var(--fg-2); }
.example { margin-top: 24px; max-width: 80ch; color: var(--fg-2); }
.example b { color: var(--fg); font-weight: 500; }

/* three column comparison table, and local video clips in a feature */
.compare.three th, .compare.three td { width: auto; }
.frame video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r); box-shadow: 0 0 0 1px var(--line-2); background: #000; }

/* Solutions' feature layout (.sol) used inside another page's section: no extra padding round the list, the feature's
   heading one level down (h3) but drawn like Solutions' h2, and a local video in the media column */
.sols.sols--flush { padding-block: 0; }
.sol h3 { font-size: clamp(28px, 3vw, 38px); }
.sol__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--r); background: #000; }
/* frequently asked questions (src/components/Faq.astro): the heading on the left, the questions on the right as an
   accordion with a hairline under each, a chevron that turns when open, and the answer easing open */
.faq1 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq1__head h2 { font-size: var(--fs-h2); }
.faq1__lede { margin-top: 16px; color: var(--fg-2); max-width: 36ch; }
.faq1__lede a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }
.faq1__list { border-top: 1px solid var(--line-2); interpolate-size: allow-keywords; }
.faq1__item { border-bottom: 1px solid var(--line-2); }
.faq1__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 500; color: var(--fg); }
.faq1__q::-webkit-details-marker { display: none; }
.faq1__q:hover span { text-decoration: underline; text-underline-offset: 3px; }
.faq1__q:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.faq1__q svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--fg-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s var(--ease); }
.faq1__item[open] .faq1__q svg { transform: rotate(180deg); }
.faq1__item::details-content { height: 0; overflow: clip; transition: height .2s ease-out, content-visibility .2s ease-out allow-discrete; }
.faq1__item[open]::details-content { height: auto; }
.faq1__a { padding-bottom: 18px; color: var(--fg-2); font-size: 15px; max-width: 64ch; }
@media (max-width: 900px) { .faq1 { grid-template-columns: 1fr; gap: 28px; } }
@media (prefers-reduced-motion: reduce) { .faq1__item::details-content, .faq1__q svg { transition: none; } }

/* "Where it runs" with the globe in place of the encoder (Prism's edge clusters): the whole globe in the panel, standing
   on the same isometric floor the encoder draws for itself (2:1 lines, in the grid's ink) */
.hz-fig.hz-fig--globe { --fig-zoom: 1; --fig-y: -50%;
  background-image: repeating-linear-gradient(26.565deg, var(--line) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(-26.565deg, var(--line) 0 1px, transparent 1px 26px); }
@media (max-width: 900px) { .hz-fig.hz-fig--globe { --fig-zoom: 1; } }

/* editions (src/components/Editions.astro): the homepage's ways to work with Mobii and the product pages' editions, laid out like a pricing table: a heading, then three cards in the fill of the capability
   cards. Under the pointer a card lifts and its button turns solid. No prices and no icons in the lists: the big line
   says what you start with, and each card ends in its own link. */
.wp-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: end; gap: 24px clamp(32px, 5vw, 72px); margin-bottom: 40px; }
.wp-head h2 { font-size: var(--fs-h2); }

.wp-grid { display: grid; grid-template-columns: repeat(var(--wp-cols, 3), minmax(0, 1fr)); gap: 12px; }
.wp-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--cap-fill); transition: background-color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.wp-card:hover, .wp-card:focus-within { background: var(--cap-lift); border-color: var(--line-2); }
:root[data-theme="light"] .wp-card:hover, :root[data-theme="light"] .wp-card:focus-within { box-shadow: 0 20px 50px -24px rgba(20, 16, 48, .28); }
.wp-top { position: relative; display: grid; gap: 8px; padding: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.wp-top h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.wp-top p { font-size: 14px; color: var(--fg-2); }
.wp-big { padding-inline: 24px; margin-bottom: 24px; font-size: clamp(26px, 2.6vw, 32px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.wp-body { display: flex; flex-direction: column; flex: 1; padding: 0 24px 32px; }
.wp-label { margin-bottom: 16px; font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--fg-2); }
.wp-body ul { display: grid; gap: 12px; margin: 0 0 32px; padding: 0; list-style: none; font-size: 14px; line-height: 1.45; color: var(--fg-2); }
.wp-body .btn { width: 100%; height: 36px; margin-top: auto; padding: 0 16px; border-radius: 8px; font-size: 14px; font-weight: 500;
  background: var(--quiet-label); color: var(--fg); transition: background-color .2s var(--ease), color .2s var(--ease); }
.wp-card:hover .btn, .wp-card:focus-within .btn { background: var(--cta-solid); color: var(--cta-solid-ink); }
.wp-card .btn:hover { background: var(--cta-solid-hover); }

@media (max-width: 900px) {
  .wp-head { grid-template-columns: 1fr; }
  .wp-grid { grid-template-columns: 1fr; }
}

.wp-facts { display: grid; gap: 10px; margin: 0 0 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.45; }
.wp-facts dt { color: var(--fg-3); }
.wp-facts dd { margin: 2px 0 0; color: var(--fg-2); }
.wp-box .ed-note { margin-top: 20px; }

/* case study accordion (src/components/CaseAccordion.astro, js/case-accordion.js): one panel open at a time. The open
   one widens and shows its picture in colour with the words; the others narrow, tilt away and turn grey with only the
   client's logos. Same dark picture treatment and stat chips as the old banner, in both themes. Stacks on phones */
.cacc { --cacc-media: 640px; display: flex; gap: 12px; height: clamp(480px, 42vw, 580px); perspective: 1400px; }
.cacc-panel { --grow: 1; --tilt: 0deg; --drift: 0; position: relative; flex: var(--grow) 1 0; min-width: 0; overflow: hidden; isolation: isolate;
  border-radius: var(--r-lg); background: #0e0e10; color: #fff; text-decoration: none; transform: rotateY(var(--tilt));
  transition: flex-grow .6s var(--ease), transform .6s var(--ease); }
.cacc-panel:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.cacc-frame { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.cacc-media { position: absolute; top: 0; left: 50%; width: var(--cacc-media); height: 100%; filter: grayscale(1);
  transform: translateX(calc(-50% + var(--drift) * 18px)); transition: transform .6s var(--ease), filter .6s var(--ease); }
.cacc-media img, .cacc-media video { width: 100%; height: 100%; display: block; object-fit: cover; }
.cacc-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14, 14, 16, .96) 0%, rgba(14, 14, 16, .7) 40%, rgba(14, 14, 16, .15) 75%),
  rgba(14, 14, 16, .35); transition: background-color .6s var(--ease); }
.cacc-panel.is-active .cacc-media { filter: none; transform: translateX(-50%); }
.cacc-panel.is-active .cacc-shade { background-color: rgba(14, 14, 16, 0); }
.cacc-body { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 14px; padding: clamp(20px, 2.6vw, 32px); }
.cacc-logos { display: flex; align-items: center; gap: 14px; min-height: 30px; white-space: nowrap; }
.cacc-logos img { display: block; width: auto; flex: none; }
.cacc-sep { width: 1px; height: 22px; flex: none; background: rgba(255, 255, 255, .3); }
.cacc-name { font-size: 18px; font-weight: 500; }
/* a closed panel shows one logo: the one marked main; the rest of the row appears when the panel opens */
.cacc-panel:not(.is-active) .cacc-logos > :not(.is-main) { display: none; }
.cacc-tag { padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .1); font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .85); }
/* the words keep a fixed width so they never rewrap while the panel grows; they fade in once it is open */
.cacc-copy { display: grid; gap: 10px; width: min(440px, calc(var(--cacc-media) / 1.22 - 64px)); opacity: 0; transform: translateX(-14px);
  transition: opacity .35s var(--ease), transform .35s var(--ease); pointer-events: none; }
.cacc-panel.is-active .cacc-copy { opacity: 1; transform: none; transition-delay: .2s; transition-duration: .6s; }
.cacc h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; color: #fff; }
.cacc-sub { font-size: 15px; line-height: 1.45; text-wrap: pretty; color: rgba(255, 255, 255, .8); }
.cacc-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cacc-stats > span { padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .1); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 13px; color: rgba(255, 255, 255, .8); }
.cacc-stats b { font-weight: 500; font-variant-numeric: tabular-nums; color: #fff; }
.cacc-stats > .cacc-emmy { display: inline-flex; align-items: center; gap: 7px; padding-left: 5px; }
.cacc-trophy { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: rgba(239, 191, 4, .18); color: #EFBF04; }
.cacc-trophy svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cacc-cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 14px; font-weight: 500; transition: gap .2s var(--ease); }
.cacc-panel.is-active:hover .cacc-cta { gap: 7px; }
.cacc-cta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cacc:not(.cacc-ready) .cacc-panel { transition: none; }
@media (max-width: 720px) {
  .cacc { flex-direction: column; height: auto; perspective: none; }
  .cacc-panel { flex: none; min-height: 460px; transform: none; }
  .cacc-media, .cacc-panel.is-active .cacc-media { width: 100%; filter: none; transform: none; left: 0; }
  .cacc-shade { background-color: transparent; }
  .cacc-copy { width: auto; opacity: 1; transform: none; }
  .cacc-panel:not(.is-active) .cacc-logos > :not(.is-main) { display: revert; }
  .cacc-panel:not(.is-active) .cacc-logos > .cacc-sep { display: block; }
}
@media (prefers-reduced-motion: reduce) { .cacc-panel, .cacc-media, .cacc-copy { transition: none; } }


/* FeatureRow (src/components/FeatureRow.astro) extras: a small note under the list, a screenshot as the media (no
   frame round it), several stacked, and a caption under them */
.sol .sol__title { font-size: clamp(28px, 3vw, 38px); }
.sol__note { margin-top: 14px; color: var(--fg-3); font-size: var(--fs-sm); }
.sol__shot { display: block; width: 100%; height: auto; border-radius: var(--r); box-shadow: 0 0 0 1px var(--line-2); }
.sol__shots { display: grid; gap: 12px; }
.sol__cap { color: var(--fg-3); font-size: var(--fs-sm); }

/* three screenshots in a row with a caption under each, and one wide screenshot with its caption (Studio Graphics) */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.shots figure { margin: 0; display: grid; gap: 10px; align-content: start; }
.shots img, .wide-shot img { display: block; width: 100%; height: auto; border-radius: var(--r); box-shadow: 0 0 0 1px var(--line-2); }
.shots figcaption, .wide-shot figcaption { color: var(--fg-3); font-size: var(--fs-sm); }
.shots figcaption b, .wide-shot figcaption b { color: var(--fg); font-weight: 500; }
.shots figcaption b { display: block; }
.wide-shot { margin: 0; display: grid; gap: 10px; }
@media (max-width: 800px) { .shots { grid-template-columns: 1fr; } }

/* an assistant exchange (Studio MCP): your message, the assistant's answer with the rules it wrote, and the check */
.mcp-chat { display: grid; gap: 12px; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); font-size: 14px; align-content: start; }
.mcp-chat .who { font-size: 12px; font-weight: 500; color: var(--fg-3); margin-bottom: 4px; }
.mcp-chat .msg { padding: 12px 14px; border-radius: 10px; line-height: 1.5; }
.mcp-chat .msg.you { background: var(--quiet-label); color: var(--fg); justify-self: end; max-width: 88%; }
.mcp-chat .msg.ai { background: var(--card-2); color: var(--fg-2); max-width: 92%; }
.mcp-chat code { display: block; margin-top: 8px; padding: 10px 12px; border-radius: 6px; background: var(--bg); font-family: inherit; font-size: 13px; line-height: 1.6; color: var(--fg); white-space: pre-wrap; }
.mcp-chat .ok { color: var(--fg); font-weight: 500; }

/* Cards (src/components/Cards.astro): a small number over a card's title */
.flex3 .card-n { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; color: var(--fg-3); font-variant-numeric: tabular-nums; }
/* FeatureRow's lockup over the heading (Zenith) */
.sol__lockup { display: block; margin-bottom: 20px; }
.sol__lockup img { height: 32px; width: auto; }
/* Editions with four cards: two to a row on tablets */
@media (max-width: 1100px) and (min-width: 901px) { .wp-grid { grid-template-columns: repeat(min(var(--wp-cols, 3), 2), minmax(0, 1fr)); } }
/* ---- Fusion's engine figure (src/components/fusion/EngineFigure.astro): neutral inks only, labels in sentence case ---- */
.fusion-hero-fig { width: min(880px, 100%); margin: 0 auto; }
.ffig { display: block; width: 100%; height: auto; font-family: inherit; color: var(--fg); }
.ffig .ff-card { fill: var(--card); stroke: var(--line-2); }
.ffig .ff-core { fill: var(--card-2); stroke: var(--line-2); }
.ffig .ff-k { font-size: 12px; font-weight: 500; fill: var(--fg-3); }
.ffig .ff-s { font-size: 11.5px; fill: var(--fg-3); }
.ffig .ff-eng { font-size: 15px; font-weight: 500; fill: var(--fg); }
.ffig .ff-live { fill: var(--fg); }
.ffig .ff-stage rect { fill: var(--card-2); stroke: var(--line-2); }
.ffig .ff-stage text { font-size: 12px; fill: var(--fg-2); }
.ffig .ff-stage { animation: ffstage 2.8s ease-in-out infinite; }
@keyframes ffstage { 0%, 70%, 100% { opacity: .55; } 20% { opacity: 1; } }
.ffig .ff-link { stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 3 4; }
.ffig .ff-clock { fill: var(--bg); stroke: var(--line-2); }
.ffig .ff-ct { font-size: 12.5px; fill: var(--fg); font-variant-numeric: tabular-nums; }
.ffig .ff-pulse { fill: var(--fg); animation: ffpulse 1.4s linear infinite; opacity: 0; }
@keyframes ffpulse { from { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { transform: translateY(36px); opacity: 0; } }
.ffig .ff-chip { fill: var(--card); stroke: var(--line-2); }
.ffig .ff-chipt { font-size: 12px; fill: var(--fg-2); }
.ffig .ff-flow { fill: none; stroke: var(--fg-3); stroke-width: 1.4; stroke-dasharray: 4 6; animation: ffflow 1.6s linear infinite; }
@keyframes ffflow { to { stroke-dashoffset: -20; } }
.ffig .ff-ring { fill: none; stroke: var(--line-2); stroke-width: 8; }
.ffig .ff-ring-run { fill: none; stroke: var(--fg); stroke-width: 8; stroke-dasharray: 30 221.3; transform-box: fill-box; transform-origin: center; animation: ffring 3s linear infinite; }
@keyframes ffring { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ffig .ff-stage, .ffig .ff-pulse, .ffig .ff-flow, .ffig .ff-ring-run { animation: none; } .ffig .ff-stage { opacity: 1; } }

/* FeatureRow media: two screenshots side by side under a larger one, and a product photograph on its own (no frame) */
.sol__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sol__product { display: block; width: 100%; height: auto; }
.wp-body ul:last-child { margin-bottom: 0; }

/* FeatureRow media: two screenshots side by side under a larger one, and a product photograph on its own (no frame) */
.sol__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sol__product { display: block; width: 100%; height: auto; }
.wp-body ul:last-child { margin-bottom: 0; }

/* four plans in a row: a smaller big line, so it fits the narrower cards */
.wp-grid[style*="--wp-cols:4"] .wp-big { font-size: clamp(20px, 1.8vw, 24px); }

/* two screenshots side by side (tall reports) */
.shots.shots--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 800px) { .shots.shots--two { grid-template-columns: 1fr; } }

/* screenshots cropped to one shape so a row of photos lines up */
.shots.shots--even img { aspect-ratio: 4 / 3; object-fit: cover; }

/* a line under a news list headline (the case studies' results) */
.nl-text { margin-top: 8px; color: var(--fg-2); font-size: 15px; max-width: 60ch; }
.nl-copy:has(.nl-text) { justify-content: flex-start; gap: 0; }
.nl-copy:has(.nl-text) .nl-read { margin-top: auto; }
.nl-copy:has(.nl-text) .nl-text { margin-bottom: 20px; }
