/* ==========================================================================
   smart-pi.info — website layer over SmartPi.UI
   Loaded after assets/smartpi-ui/css/smartpi-ui.css (synced, never edited).

   The products use a dark control-room theme. The website is a marketing surface,
   so it re-maps the same --sp-* tokens to a light palette and keeps the family
   resemblance through IBM Plex Sans, the orange banner, 10px cards and the status
   colours. Sections that show the software (.spw-dark) switch the tokens back.
   Website-only classes use the .spw- prefix.
   ========================================================================== */

:root {
  --spw-max: 1240px;
  --spw-gutter: clamp(16px, 4vw, 45px);
  --spw-section: clamp(64px, 9vw, 128px);
  --spw-ease: cubic-bezier(.2, .7, .2, 1);
  /* Brand colours taken from the Smart pi logo */
  --spw-orange: #f37021;
  --spw-blue: #0054a6;
  --spw-cyan: #00acc9;
  --spw-mist: #eef1f0;
  --spw-shadow: 0 1px 2px rgba(18,24,27,.05), 0 12px 32px rgba(18,24,27,.08);
  --spw-shadow-lift: 0 2px 4px rgba(18,24,27,.06), 0 24px 48px rgba(18,24,27,.14);
}

body.sp-site {
  --sp-bg: #ffffff;
  --sp-surface: #ffffff;
  --sp-surface-raised: #f6f8f7;
  --sp-well: var(--spw-mist);
  --sp-border: #dde3e1;
  --sp-border-soft: #e9edeb;
  --sp-border-strong: #b7c1be;
  --sp-text: #3d474c;
  --sp-text-strong: #12181b;
  --sp-text-dim: #4b565b;
  --sp-muted: #667277;
  --sp-muted-2: #8a9499;
  --spw-link: var(--spw-blue);
  --spw-code-bg: #eaf3fb;
  --spw-code-ink: var(--spw-blue);
  --spw-code-border: #c9dff2;
}
/* Dark sections: the product look, for showing the software itself. */
.sp-site .spw-dark {
  --sp-bg: #1b1b1b;
  --sp-surface: #2b2b2b;
  --sp-surface-raised: #353535;
  --sp-well: #333333;
  --sp-border: #484848;
  --sp-border-soft: #3a3a3a;
  --sp-border-strong: #656565;
  --sp-text: #cccccc;
  --sp-text-strong: #f1f3f4;
  --sp-text-dim: #cdd0d2;
  --sp-muted: #a0a0a0;
  --sp-muted-2: #7d7d7d;
  --spw-link: var(--sp-cyan);
  --spw-code-bg: #151718;
  --spw-code-ink: var(--sp-cyan);
  --spw-code-border: #34383a;
  color-scheme: dark;
  color: var(--sp-text);
}

/* --- base ---------------------------------------------------------------- */
html { scroll-padding-top: calc(var(--sp-topbar-h) + 16px); }
body.sp-site {
  margin: 0;
  background: var(--sp-bg);
  color: var(--sp-text);
  font-family: var(--sp-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.sp-site .wp-site-blocks { padding-top: var(--sp-topbar-h); }
.sp-site .wp-site-blocks > *, .spw-main > * { margin-block-start: 0; }
.sp-site :focus-visible { outline: 2px solid var(--spw-blue); outline-offset: 2px; border-radius: 4px; }
.sp-site .spw-dark :focus-visible { outline-color: var(--sp-cyan); }
.sp-site h1, .sp-site h2, .sp-site h3, .sp-site h4 { color: var(--sp-text-strong); }
.spw-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; }
.spw-main { padding-bottom: var(--spw-section); }
.spw-content > :first-child:not(.alignfull):not(.spw-section) { margin-top: var(--spw-section); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- buttons ------------------------------------------------------------- */
.spw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 42px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--sp-radius-control);
  font: 600 14px/1 var(--sp-font); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: filter .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .2s ease;
}
.spw-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.spw-btn:active { transform: none; }
.spw-btn--lg { height: 54px; padding: 0 26px; font-size: 16px; }
.spw-btn--sm { height: 32px; padding: 0 12px; font-size: 12px; }
.spw-btn--orange { background: linear-gradient(180deg, var(--sp-header-from), var(--sp-header-to)); border-color: var(--sp-header-border); color: #fff !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 8px 20px rgba(233,98,37,.28); }
.spw-btn--blue { background: var(--spw-blue); color: #fff !important; }
.spw-btn--ghost { background: transparent; border-color: var(--sp-border-strong); color: var(--sp-text-strong) !important; }
.spw-btn--ghost:hover { border-color: var(--sp-text-strong); filter: none; }
.spw-btn--dark { background: var(--sp-surface-raised); border-color: var(--sp-border); color: var(--sp-text-strong) !important; }
.spw-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- topbar ------------------------------------------------------------- */
.spw-topbar {
  position: fixed; inset: 0 0 auto; z-index: 1000;
  height: var(--sp-topbar-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.spw-topbar.is-scrolled { border-bottom-color: var(--sp-border-soft); box-shadow: 0 6px 24px rgba(18,24,27,.06); }
.admin-bar .spw-topbar { top: 32px; }
.spw-topbar__inner {
  max-width: calc(var(--spw-max) + 2 * var(--spw-gutter)); margin: 0 auto; height: 100%;
  padding: 0 var(--spw-gutter);
  display: flex; align-items: center; gap: 28px;
}
.spw-brand img { display: block; height: 46px; width: auto; }
.spw-nav { flex: 1; display: flex; justify-content: center; }
.spw-nav > ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.spw-nav > ul > li > a,
.spw-nav__mega > button {
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px;
  border: 0; border-radius: var(--sp-radius-control); background: none;
  color: var(--sp-text-strong); font: 500 15px var(--sp-font); text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.spw-nav > ul > li > a:hover, .spw-nav__mega > button:hover,
.spw-nav__mega > button[aria-expanded="true"] { background: var(--spw-mist); }
.spw-nav > ul > li.current-menu-item > a { color: var(--sp-orange); }
.spw-nav__mega > button i { font-size: 10px; transition: transform .15s ease; }
.spw-nav__mega > button[aria-expanded="true"] i { transform: rotate(180deg); }
.spw-topbar__meta { display: flex; align-items: center; gap: 10px; }
.spw-hamburger { display: none; background: var(--sp-surface); color: var(--sp-text-strong); border-color: var(--sp-border); height: 42px; width: 42px; }

/* mega menu */
.spw-mega {
  position: absolute; left: 50%; top: calc(var(--sp-topbar-h) - 4px); transform: translateX(-50%);
  width: min(1080px, calc(100vw - 2 * var(--spw-gutter)));
  padding: 26px; background: var(--sp-surface); border: 1px solid var(--sp-border); border-radius: var(--sp-radius-card);
  box-shadow: var(--spw-shadow-lift);
  animation: spw-drop .18s var(--spw-ease);
}
.spw-mega[hidden] { display: none; }
.spw-mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.spw-mega__family { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; color: var(--sp-orange) !important; font-weight: 600; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; }
.spw-mega ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.spw-mega li a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--sp-radius-control); color: var(--sp-text) !important; font-size: 14px; line-height: 1.25; text-decoration: none; }
.spw-mega li a:hover { background: var(--spw-mist); color: var(--sp-text-strong) !important; }
.spw-mega__all { display: inline-flex; gap: 8px; align-items: center; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--sp-border-soft); width: 100%; color: var(--spw-blue) !important; font-size: 14px; font-weight: 600; text-decoration: none; }
@keyframes spw-drop { from { opacity: 0; transform: translate(-50%, -6px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* product code chip (e.g. DVA) */
.spw-code {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 24px; padding: 0 8px;
  background: var(--spw-code-bg); border: 1px solid var(--spw-code-border); border-radius: var(--sp-radius-chip);
  color: var(--spw-code-ink) !important; font: 700 11px var(--sp-font); letter-spacing: .06em; white-space: nowrap; text-decoration: none;
}
.spw-codes { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }

/* language switcher */
.spw-lang { position: relative; }
.spw-lang__trigger { height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; background: none; border: 1px solid var(--sp-border); border-radius: var(--sp-radius-control); color: var(--sp-text-strong); font: 600 13px var(--sp-font); cursor: pointer; }
.spw-lang__trigger:hover { background: var(--spw-mist); }
.spw-lang__menu { position: absolute; right: 0; top: calc(100% + 7px); min-width: 180px; margin: 0; padding: 6px; list-style: none; background: var(--sp-surface); border: 1px solid var(--sp-border); border-radius: var(--sp-radius-control); box-shadow: var(--spw-shadow-lift); }
.spw-lang__menu[hidden] { display: none; }
.spw-lang__menu a { display: block; padding: 9px 11px; border-radius: 5px; color: var(--sp-text) !important; font-size: 14px; text-decoration: none; }
.spw-lang__menu a:hover { background: var(--spw-mist); }
.spw-lang__menu a[aria-current] { color: var(--sp-orange) !important; font-weight: 600; }

/* drawer (SmartPi.UI .sp-drawer, kept in the dark product look) */
.sp-drawer a { text-decoration: none; }
.spw-drawer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.spw-drawer__menu a { padding-left: 44px !important; }
.spw-drawer__langs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--sp-border-soft); }
.spw-drawer__langs .is-active { border-color: var(--sp-cyan); color: var(--sp-cyan); }
.sp-nav-backdrop[hidden] { display: none; }

/* --- hero --------------------------------------------------------------- */
.spw-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--sp-bg); }
/* Angled panels echo the brand's diagonal shapes. */
.spw-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--spw-mist);
  clip-path: polygon(46% 0, 100% 0, 100% 100%, 34% 100%);
}
.spw-hero::after {
  content: ""; position: absolute; left: 0; bottom: 0; z-index: -1; width: 30%; height: 14px;
  background: linear-gradient(90deg, var(--sp-header-to), var(--sp-header-from));
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 100%, 0 100%);
}
.spw-hero__inner {
  max-width: calc(var(--spw-max) + 2 * var(--spw-gutter)); margin: 0 auto;
  padding: clamp(48px, 7vw, 104px) var(--spw-gutter) clamp(64px, 8vw, 120px);
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 80px); align-items: center;
}
.spw-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--sp-orange); font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.spw-eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: currentColor; }
.spw-hero__title { margin: 0; color: var(--sp-text-strong); font-size: clamp(2.5rem, 1.3rem + 3.9vw, 4.5rem); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.spw-hero__title em { font-style: normal; color: var(--sp-orange); }
.spw-hero__lead { max-width: 54ch; margin: 26px 0 34px; color: var(--sp-muted); font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); line-height: 1.6; }

/* information flow */
.spw-flow {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: clamp(20px, 5vw, 70px);
  --flow-tone: var(--spw-blue);
}
.spw-flow[data-tone="alert"] { --flow-tone: var(--sp-red); }
.spw-flow[data-tone="brand"] { --flow-tone: var(--sp-orange); }
.spw-flow__wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.spw-flow__lines path { fill: none; stroke: #c9d2cf; stroke-width: 1.5; stroke-dasharray: 2 7; stroke-linecap: round; transition: stroke .3s ease; }
.spw-flow__lines path.is-hot { stroke: var(--flow-tone); stroke-dasharray: none; stroke-width: 2; }
.spw-flow__packets circle { fill: var(--flow-tone); filter: drop-shadow(0 0 6px var(--flow-tone)); }
.spw-flow__col { position: relative; }
.spw-flow__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.spw-flow__heading { margin: 0 0 16px; color: var(--sp-muted-2); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.spw-flow__col--in .spw-flow__heading { text-align: right; padding-right: 62px; }
.spw-flow__col--out .spw-flow__heading { padding-left: 62px; }
.spw-flow__node { display: flex; align-items: center; gap: 12px; }
.spw-flow__col--in .spw-flow__node { flex-direction: row-reverse; text-align: right; }
.spw-flow__icon {
  position: relative; z-index: 1;
  flex: 0 0 auto; width: 50px; height: 50px; display: grid; place-items: center;
  background: var(--sp-surface); border: 1px solid var(--sp-border); border-radius: 14px; box-shadow: var(--spw-shadow);
  color: var(--sp-muted); font-size: 19px;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s var(--spw-ease), box-shadow .3s ease;
}
.spw-flow__text { min-width: 0; display: grid; gap: 1px; }
.spw-flow__text strong { color: var(--sp-text-strong); font-size: 14px; font-weight: 600; line-height: 1.25; }
.spw-flow__text small { color: var(--sp-muted); font-size: 12.5px; line-height: 1.3; transition: color .3s ease; }
.spw-flow__node.is-active .spw-flow__icon { background: var(--flow-tone); border-color: var(--flow-tone); color: #fff; transform: scale(1.08); box-shadow: 0 10px 24px color-mix(in srgb, var(--flow-tone) 35%, transparent); }
.spw-flow__node.is-active small { color: var(--flow-tone); font-weight: 600; }
.spw-flow__core {
  position: relative; z-index: 1; width: clamp(128px, 15vw, 176px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center; line-height: 1;
  background: radial-gradient(circle at 36% 28%, #ffa53d, var(--spw-orange) 55%, #d9530c);
  box-shadow: 0 20px 44px rgba(233,98,37,.38), inset 0 2px 0 rgba(255,255,255,.3);
  color: #fff;
}
.spw-flow__core strong { font-size: clamp(22px, 2.6vw, 31px); font-weight: 700; font-style: italic; letter-spacing: -0.02em; }
.spw-flow__core strong em { font-weight: 700; }
.spw-flow__core > span:last-child { margin-top: 6px; font-size: clamp(13px, 1.5vw, 18px); font-style: italic; font-weight: 400; letter-spacing: .02em; }
.spw-flow__core b { font-weight: 700; }
.spw-flow__ring { position: absolute; inset: -14px; border-radius: 50%; border: 2px solid rgba(243,112,33,.35); animation: spw-ring 3.2s ease-out infinite; }
.spw-flow__core.is-active { animation: spw-think .55s var(--spw-ease); }
.spw-flow__caption {
  grid-column: 1 / -1; justify-self: center; display: inline-flex; align-items: center; gap: 12px;
  margin: clamp(24px, 3vw, 40px) 0 0; padding: 12px 20px 12px 16px; max-width: 100%;
  background: var(--sp-surface); border: 1px solid var(--sp-border); border-radius: 999px; box-shadow: var(--spw-shadow);
  color: var(--sp-text-strong); font-size: 15px; font-weight: 500; line-height: 1.3;
}
.spw-flow__dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--flow-tone); box-shadow: 0 0 0 5px color-mix(in srgb, var(--flow-tone) 18%, transparent); transition: background-color .3s ease, box-shadow .3s ease; }
@keyframes spw-ring { 0% { transform: scale(.92); opacity: .9; } 100% { transform: scale(1.28); opacity: 0; } }
@keyframes spw-think { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.07); } }

/* --- ecosystem diagram --------------------------------------------------- */
.spw-eco { max-width: 760px; margin-inline: auto; }
.spw-eco__svg { display: block; width: 100%; height: auto; overflow: visible; }
.spw-eco__links path { stroke: var(--spw-orange); stroke-width: 5; stroke-linecap: round; opacity: .85; transition: opacity .25s ease, stroke-width .25s ease; }
.spw-eco.is-filtered .spw-eco__links path:not(.is-hot) { opacity: .18; }
.spw-eco__links path.is-hot { stroke-width: 7; opacity: 1; }
.spw-eco__halo { fill: none; stroke: var(--spw-orange); stroke-opacity: .25; stroke-width: 2; }
.spw-eco__brand { fill: #fff; font: italic 700 44px var(--sp-font); letter-spacing: -0.02em; text-anchor: middle; }
.spw-eco__brand-sub { fill: #fff; font: italic 400 26px var(--sp-font); text-anchor: middle; }
.spw-eco__eco { font-weight: 700; }
.spw-node { cursor: pointer; }
.spw-node circle { transition: transform .25s var(--spw-ease), opacity .25s ease; transform-box: fill-box; transform-origin: center; }
.spw-node text { fill: #fff; font-family: var(--sp-font); font-style: italic; font-weight: 700; letter-spacing: .01em; text-anchor: middle; pointer-events: none; }
.spw-node:hover circle, .spw-node:focus-visible circle, .spw-node.is-hot circle { transform: scale(1.14); }
/* Out-of-focus bubbles switch to a pale solid fill (never transparency, so links behind
   don't show through; works in every browser, unlike CSS filters on SVG shapes). */
.spw-node__disc { fill: url(#spw-bubble); }
.spw-eco.is-filtered .spw-node:not(.is-hot) .spw-node__disc { fill: url(#spw-bubble-dim); }
.spw-eco.is-filtered .spw-node:not(.is-hot) text { fill: #5a7ea6; }
.spw-eco.is-filtered .spw-node:not(.is-hot) .spw-node__icon { color: #5a7ea6; }
.spw-node:focus { outline: none; }
.spw-eco__readout { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; margin: 12px 0 16px; color: var(--sp-text); font-size: 17px; text-align: center; }
.spw-eco__readout strong:not(:empty) { padding: 3px 10px; border-radius: var(--sp-radius-chip); background: var(--spw-blue); color: #fff; font-style: italic; font-size: 14px; letter-spacing: .04em; }
.spw-eco__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.spw-pill { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; background: var(--sp-surface); border: 1px solid var(--sp-border); border-radius: 999px; color: var(--sp-text); font: 500 14px var(--sp-font); cursor: pointer; transition: border-color .15s ease, color .15s ease, background-color .15s ease; }
.spw-pill:hover { border-color: var(--spw-blue); color: var(--spw-blue); }
.spw-pill[aria-pressed="true"] { background: var(--spw-blue); border-color: var(--spw-blue); color: #fff; }

/* --- inner page banner -------------------------------------------------- */
.spw-banner { position: relative; overflow: hidden; isolation: isolate; background: var(--spw-mist); }
.spw-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sp-bg); clip-path: polygon(0 0, 58% 0, 44% 100%, 0 100%); }
.spw-banner__inner { max-width: calc(var(--spw-max) + 2 * var(--spw-gutter)); margin: 0 auto; padding: clamp(20px, 2.5vw, 28px) var(--spw-gutter) clamp(32px, 4vw, 52px); }
.spw-banner .app-breadcrumb { display: flex; width: fit-content; margin-bottom: 18px; background: var(--sp-surface); border-color: var(--sp-border); color: var(--sp-muted); box-shadow: none; font-size: 12px; }
.spw-banner .app-breadcrumb-link { color: var(--spw-blue) !important; }
.spw-banner .app-breadcrumb-sep { color: var(--sp-muted-2); }
.spw-banner .app-breadcrumb-current { color: var(--sp-text-strong); }
.spw-banner .spw-eyebrow { display: flex; width: fit-content; margin-bottom: 12px; }
.spw-banner__title { margin: 0; max-width: 24ch; font-size: clamp(2rem, 1.2rem + 2vw, 3rem); font-weight: 600; line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.spw-banner .spw-hero__lead { margin-bottom: 0; }
.spw-banner__edge { height: 6px; background: linear-gradient(90deg, var(--sp-header-to), var(--sp-header-from)); }

/* --- sections ----------------------------------------------------------- */
.spw-wrap { max-width: calc(var(--spw-max) + 2 * var(--spw-gutter)); margin-inline: auto !important; padding-inline: var(--spw-gutter); }
.spw-wrap > * { margin-block-start: 0; }
.spw-section { padding-block: var(--spw-section) 0; }
.spw-section.spw-band, .spw-section.spw-dark { margin-top: var(--spw-section); padding-block: var(--spw-section); }
.spw-band { background: var(--spw-mist); }
.spw-section.spw-dark { background: var(--sp-bg); }
.spw-section.spw-band + .spw-section.spw-dark, .spw-section.spw-dark + .spw-section.spw-band { margin-top: 0; }
.spw-section h2 { margin: 0 0 12px; max-width: 22ch; font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3rem); letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
.spw-section .spw-intro { max-width: 62ch; margin: 0 0 40px; color: var(--sp-muted); font-size: 1.125rem; }
.spw-section-title { margin: var(--spw-section) 0 20px; }
.spw-kicker { margin: 0 0 14px !important; color: var(--sp-orange); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.spw-center { text-align: center; }
.spw-center h2, .spw-center .spw-intro { margin-inline: auto; }

/* capability cards: the product header banner, used as a card top */
.spw-caps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.spw-caps > * { margin: 0 !important; }
.spw-cap { background: var(--sp-surface); border: 1px solid var(--sp-border); border-radius: var(--sp-radius-card); overflow: hidden; box-shadow: var(--spw-shadow); transition: transform .25s var(--spw-ease), box-shadow .25s ease; }
.spw-cap:hover { transform: translateY(-4px); box-shadow: var(--spw-shadow-lift); }
.spw-cap h3 { margin: 0; padding: 18px 20px; min-height: 84px; display: flex; align-items: center; background: linear-gradient(180deg, var(--sp-header-from), var(--sp-header-to)); box-shadow: inset 0 1px 0 rgba(255,255,255,.2); color: #fff !important; font-size: 18px; font-weight: 600; line-height: 1.25; }
.spw-cap p { margin: 0; padding: 18px 20px 22px; color: var(--sp-text); font-size: 15px; }

/* product cards */
.spw-families { display: grid; gap: clamp(48px, 6vw, 80px); padding-top: var(--spw-section); }
.spw-family__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.spw-family__head h2 { margin: 0; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); letter-spacing: -0.02em; }
.spw-family__head p { margin: 4px 0 0; color: var(--sp-muted); }
.spw-family__icon, .spw-hub__icon {
  flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--spw-blue); border-radius: 12px; color: #fff; font-size: 19px;
}
.spw-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.spw-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--sp-surface); border: 1px solid var(--sp-border); border-radius: var(--sp-radius-card); overflow: hidden; box-shadow: var(--spw-shadow);
  transition: transform .25s var(--spw-ease), box-shadow .25s ease;
}
.spw-card:has(.spw-card__link):hover { transform: translateY(-4px); box-shadow: var(--spw-shadow-lift); }
.spw-card .sp-page-header { border-radius: 0; }
.spw-card .sp-page-header h3 { margin: 0; color: #fff; font-size: 18px; font-weight: 700; font-style: italic; letter-spacing: .03em; }
.spw-card .sp-page-header__title > div > span { color: rgba(255,255,255,.85); font-size: 12px; }
.spw-card__body { padding: 18px; flex: 1; }
.spw-card__body h4 { margin: 0 0 14px; font-size: 17px; font-weight: 600; line-height: 1.35; }
.spw-card__link { color: var(--sp-text-strong) !important; text-decoration: none; }
.spw-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.spw-card__more { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--sp-border-soft); color: var(--spw-link); font-size: 14px; font-weight: 600; }
.spw-card__more i { transition: transform .2s var(--spw-ease); }
.spw-card:hover .spw-card__more i { transform: translateX(4px); }

/* key-value rows */
.spw-rows { margin: 0; display: grid; }
.spw-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--sp-border-soft); font-size: 14px; }
.spw-rows > div:last-child { border-bottom: 0; }
.spw-rows dt { color: var(--sp-muted); }
.spw-rows dd { margin: 0; color: var(--sp-text-strong); text-align: right; }
.spw-rows a { color: var(--spw-link); }

/* solutions and projects: photo cards */
.spw-solutions, .spw-projects { display: grid; gap: 20px; margin: 0; padding: var(--spw-section) 0 0; list-style: none; }
.spw-section .spw-solutions, .spw-section .spw-projects, .spw-section .spw-families { padding-top: 0; }
.spw-solutions { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.spw-projects { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.spw-solution, .spw-project { position: relative; display: flex; flex-direction: column; background: var(--sp-surface); border: 1px solid var(--sp-border); border-radius: var(--sp-radius-card); box-shadow: var(--spw-shadow); transition: transform .3s var(--spw-ease), box-shadow .3s ease; }
.spw-solution:hover, .spw-project:hover { transform: translateY(-5px); box-shadow: var(--spw-shadow-lift); }
.spw-solution__media, .spw-project__media { position: relative; aspect-ratio: 4 / 3; border-radius: 9px 9px 0 0; background: linear-gradient(135deg, var(--spw-blue), var(--spw-cyan)); }
.spw-project__media { aspect-ratio: 16 / 10; overflow: hidden; }
.spw-solution__media img, .spw-project__media img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 9px 9px 0 0; }
.spw-project__media img { transition: transform .6s var(--spw-ease); }
.spw-project:hover img { transform: scale(1.05); }
.spw-project__media.is-portrait { isolation: isolate; }
.spw-project__media.is-portrait::before { content: ""; position: absolute; inset: -20px; z-index: -1; background: var(--photo) center / cover; filter: blur(18px) saturate(1.1); opacity: .75; }
.spw-project__media.is-portrait img { object-fit: contain; border-radius: 0; }
.spw-project:hover .is-portrait img { transform: scale(1.02); }
.spw-solution__icon { position: absolute; left: 18px; bottom: -22px; z-index: 2; width: 48px; height: 48px; display: grid; place-items: center; background: linear-gradient(180deg, var(--sp-header-from), var(--sp-header-to)); border-radius: 12px; color: #fff; font-size: 19px; box-shadow: 0 8px 18px rgba(233,98,37,.35); }
.spw-solution__body { display: flex; flex-direction: column; gap: 10px; padding: 38px 20px 22px; flex: 1; }
.spw-project__body { display: flex; flex-direction: column; gap: 10px; padding: 22px; flex: 1; }
.spw-solution h3, .spw-project h3 { margin: 0; font-size: 21px; letter-spacing: -0.01em; }
.spw-solution p, .spw-project p { margin: 0; color: var(--sp-muted); font-size: 15px; flex: 1; }
.spw-project__place { flex: 0 !important; color: var(--sp-orange) !important; font-size: 12px !important; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* media + text feature rows (core Media & Text block) */
.spw-feature.wp-block-media-text { gap: clamp(28px, 5vw, 72px); align-items: center; }
.spw-feature .wp-block-media-text__content { padding: 0; }
.spw-feature .wp-block-media-text__media img { border-radius: var(--sp-radius-card); box-shadow: var(--spw-shadow-lift); }
.spw-dark .spw-feature .wp-block-media-text__media img { border: 1px solid var(--sp-border); box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.spw-feature p { color: var(--sp-muted); font-size: 1.125rem; }
.spw-feature ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.spw-feature li { position: relative; padding-left: 32px; color: var(--sp-text); }
.spw-feature li::before { content: "\f00c"; font: 900 11px "Font Awesome 6 Free"; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--sp-green); color: #fff; }

/* tables */
.spw-panel { background: var(--sp-surface); border: 1px solid var(--sp-border); border-radius: var(--sp-radius-card); box-shadow: var(--spw-shadow); overflow: hidden; }
.spw-panel > .sp-page-header { border-radius: 0; }
.spw-panel .sp-page-header h2 { color: #fff; font-size: 17px; font-weight: 600; max-width: none; letter-spacing: 0; margin: 0 0 3px; }
.spw-panel .sp-page-header__title > div > span { color: rgba(255,255,255,.85); font-size: 12px; }
.spw-panel .sp-metric { color: #fff; }
.spw-releases__body { overflow-x: auto; }
.spw-table-wrap { overflow-x: auto; border: 1px solid var(--sp-border); border-radius: var(--sp-radius-card); background: var(--sp-surface); }
.spw-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px; }
.spw-table th { padding: 12px 18px; background: var(--sp-surface-raised); color: var(--sp-muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.spw-table td { padding: 14px 18px; border-top: 1px solid var(--sp-border-soft); color: var(--sp-text); }
.spw-table tbody tr:hover td { background: var(--sp-surface-raised); }
.spw-table td a:not(.spw-code):not(.spw-btn) { color: var(--sp-text-strong); text-decoration: none; font-weight: 500; }
.spw-table td a:not(.spw-code):not(.spw-btn):hover { color: var(--spw-link); }
.spw-badge { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: var(--sp-radius-chip); font: 600 10px var(--sp-font); letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
.spw-badge--new { background: rgba(49,204,75,.14); color: #1d8a31; border: 1px solid rgba(49,204,75,.45); }

/* client hub */
.spw-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.spw-hub__tile { position: relative; display: flex; align-items: center; gap: 16px; padding: 22px; background: var(--sp-surface); border: 1px solid var(--sp-border); border-radius: var(--sp-radius-card); box-shadow: var(--spw-shadow); transition: border-color .2s ease, transform .25s var(--spw-ease), box-shadow .25s ease; }
.spw-hub__tile:hover { border-color: var(--spw-blue); transform: translateY(-3px); box-shadow: var(--spw-shadow-lift); }
.spw-hub__tile h3 { margin: 0 0 3px; font-size: 17px; }
.spw-hub__tile p { margin: 0; color: var(--sp-muted); font-size: 14px; }
.spw-hub__tile.is-primary .spw-hub__icon { background: linear-gradient(180deg, var(--sp-header-from), var(--sp-header-to)); }
.spw-hub__arrow { margin-left: auto; color: var(--sp-muted-2); transition: transform .2s var(--spw-ease), color .2s ease; }
.spw-hub__tile:hover .spw-hub__arrow { color: var(--spw-blue); transform: translateX(4px); }

/* contact */
.spw-contact { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.spw-contact__info .spw-card__body { display: grid; gap: 16px; align-content: start; }
.spw-contact__info p { margin: 0; color: var(--sp-muted); font-size: 15px; }

/* product panel */
.spw-product-panel { margin-top: calc(-1 * clamp(24px, 4vw, 48px)); position: relative; z-index: 1; }
.spw-product-panel__body { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px 32px; padding: 26px; }
.spw-product-panel__id { display: flex; gap: 18px; align-items: center; grid-column: 1 / -1; padding-bottom: 20px; border-bottom: 1px solid var(--sp-border-soft); }
.spw-product-panel__id strong { display: block; color: var(--sp-text-strong); font-size: 22px; font-weight: 600; line-height: 1.3; }
.spw-label { display: block; margin-bottom: 4px; color: var(--sp-muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.spw-monogram { flex: 0 0 auto; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #2b9be0, #0a6dbe 60%, var(--spw-blue)); color: #fff; font-size: 20px; font-weight: 700; font-style: italic; box-shadow: 0 10px 22px rgba(0,84,166,.3); }
.spw-features { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15px; }
.spw-features i { width: 22px; color: #1d8a31; }
.spw-product-panel .spw-actions { grid-column: 1 / -1; }

/* pillars and call to action */
.spw-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.spw-pillars > * { margin: 0 !important; }
.spw-pillar { position: relative; padding: 22px 22px 22px 26px; background: var(--sp-surface); border: 1px solid var(--sp-border); border-radius: var(--sp-radius-card); overflow: hidden; }
.spw-pillar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--sp-orange); }
.spw-pillar h3 { margin: 0 0 6px; font-size: 18px; }
.spw-pillar p { margin: 0; color: var(--sp-muted); font-size: 15px; }
.spw-cta { position: relative; overflow: hidden; padding: clamp(32px, 6vw, 72px); background: linear-gradient(135deg, var(--sp-header-from), var(--sp-header-to)); border-radius: 18px; color: #fff; }
.spw-cta::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.1); clip-path: polygon(62% 0, 100% 0, 100% 100%, 48% 100%); pointer-events: none; }
.spw-cta > * { position: relative; z-index: 1; }
.spw-cta h2 { color: #fff !important; max-width: 18ch; }
.spw-cta p { color: rgba(255,255,255,.92); font-size: 1.125rem; max-width: 46ch; }
.spw-cta .wp-block-button__link { background: #fff !important; color: var(--sp-header-to) !important; font-weight: 600; padding: 1rem 1.6rem; font-size: 1rem; }
.spw-404 { padding-top: var(--spw-section); text-align: center; }
.spw-404 h1 { font-size: clamp(5rem, 15vw, 10rem); color: var(--sp-orange); margin: 0; }
.spw-card--post { padding: 20px; }

/* --- footer (dark, like the product chrome) ------------------------------ */
.spw-footer { background: #111416; color: #b8c0c4; }
.spw-footer__inner { max-width: calc(var(--spw-max) + 2 * var(--spw-gutter)); margin: 0 auto; padding: 64px var(--spw-gutter) 44px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.spw-footer__brand p { max-width: 34ch; margin: 16px 0; color: #8f999e; font-size: 15px; }
.spw-footer__email { display: inline-flex; gap: 8px; align-items: center; color: #fff !important; text-decoration: none; font-weight: 500; }
.spw-footer h2 { margin: 0 0 16px; color: #7d878c !important; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.spw-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.spw-footer__col a { color: #d5dadd !important; font-size: 15px; text-decoration: none; }
.spw-footer__col a:hover { color: var(--spw-orange) !important; }
.spw-footer__legal { max-width: calc(var(--spw-max) + 2 * var(--spw-gutter)); margin: 0 auto; padding: 20px var(--spw-gutter); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; border-top: 1px solid #23282b; color: #7d878c; font-size: 13px; }
.spw-footer__legal ul { display: flex; gap: 18px; }
.spw-footer__legal a { color: #a9b2b6 !important; text-decoration: none; }

/* --- reveal on scroll (site.js adds .is-in) ------------------------------ */
.js .spw-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--spw-ease), transform .7s var(--spw-ease), box-shadow .3s ease; transition-delay: calc(var(--spw-i, 0) * 70ms); }
.js .spw-reveal.is-in { opacity: 1; transform: none; }

/* --- responsive --------------------------------------------------------- */
@media (max-width: 1100px) {
  .spw-hero__inner { grid-template-columns: 1fr; }
  .spw-hero::before { clip-path: polygon(0 52%, 100% 44%, 100% 100%, 0 100%); }
  .spw-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .spw-nav, .spw-hub-link { display: none; }
  .spw-hamburger { display: inline-flex; }
  .spw-topbar__meta { margin-left: auto; }
  .spw-product-panel__body { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .spw-brand img { height: 38px; }
  .spw-footer__inner { grid-template-columns: 1fr; }
  .spw-hub { grid-template-columns: 1fr; }
  .admin-bar .spw-topbar { top: 46px; }
  /* flow: icons with labels underneath so three columns still fit a phone */
  .spw-flow { column-gap: 14px; }
  .spw-flow__node, .spw-flow__col--in .spw-flow__node { flex-direction: column; text-align: center; gap: 6px; }
  .spw-flow__text small { display: none; }
  .spw-flow__node.is-active small { display: block; font-size: 11px; }
  .spw-flow__text strong { font-size: 12px; }
  .spw-flow__icon { width: 44px; height: 44px; font-size: 17px; }
  .spw-flow__col .spw-flow__heading { padding: 0; text-align: center; font-size: 10px; }
  .spw-flow__core { width: 104px; }
  .spw-flow__core strong { font-size: 19px; }
  .spw-flow__core > span:last-child { font-size: 12px; }
  .spw-flow__caption { font-size: 13.5px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .spw-reveal { opacity: 1; transform: none; }
  .spw-flow__ring { display: none; }
}
.spw-node, .spw-node text { text-decoration: none; }
body:not(.sp-nav-open) .sp-drawer { box-shadow: none; }

/* ==========================================================================
   Hero scene slider
   ========================================================================== */
.spw-hero .spw-hero__inner { display: block; padding: clamp(24px, 3vw, 40px) var(--spw-gutter) clamp(36px, 4.5vw, 64px); }
.spw-hero::before { clip-path: polygon(0 62%, 100% 38%, 100% 100%, 0 100%); }
.spw-hero__intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 24px clamp(32px, 5vw, 80px); align-items: end; }
.spw-hero__intro .spw-hero__title { font-size: clamp(2.1rem, 1.2rem + 2.4vw, 3.25rem); }
.spw-hero__intro .spw-hero__lead { margin: 0 0 22px; font-size: clamp(1rem, .96rem + .25vw, 1.125rem); }
.spw-scenes { margin-top: clamp(32px, 4vw, 52px); }
.spw-scenes__stage { position: relative; display: grid; border-radius: 20px; overflow: hidden; background: #eef3f1; box-shadow: var(--spw-shadow-lift); isolation: isolate; }
.spw-scene { grid-area: 1 / 1; position: relative; margin: 0; aspect-ratio: 2 / 1; opacity: 0; visibility: hidden; transition: opacity .7s var(--spw-ease), visibility 0s linear .7s; }
.spw-scene.is-active { opacity: 1; visibility: visible; transition: opacity .7s var(--spw-ease), visibility 0s; }
.spw-scene__art { display: block; width: 100%; height: 100%; }

/* caption panel with the story steps */
.spw-scene__caption {
  position: absolute; top: clamp(14px, 2vw, 28px); left: clamp(14px, 2vw, 28px); width: min(380px, 34%);
  padding: 20px 22px; border-radius: 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.9); box-shadow: var(--spw-shadow);
  transform: translateY(10px); opacity: 0; transition: opacity .6s var(--spw-ease) .15s, transform .6s var(--spw-ease) .15s;
}
.spw-scene.is-active .spw-scene__caption { transform: none; opacity: 1; }
.spw-scene__kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--sp-orange); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.spw-scene__title { margin: 0 0 14px; font-size: clamp(1.2rem, 1rem + .8vw, 1.65rem); line-height: 1.15; letter-spacing: -0.02em; }
.spw-scene__steps { display: grid; gap: 2px; margin: 0 0 14px; padding: 0; list-style: none; }
.spw-scene__step { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: 8px; background: none; color: var(--sp-muted-2); font: 400 13.5px/1.4 var(--sp-font); text-align: left; cursor: pointer; transition: color .3s ease, background-color .3s ease; }
.spw-scene__step:hover { background: var(--spw-mist); }
.spw-scene__num { flex: 0 0 auto; width: 20px; height: 20px; display: grid; place-items: center; margin-top: 1px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 11px; font-weight: 700; }
.spw-scene__step.is-done { color: var(--sp-muted); }
.spw-scene__step.is-done .spw-scene__num { background: var(--sp-muted-2); border-color: var(--sp-muted-2); color: #fff; }
.spw-scene__step.is-active { color: var(--sp-text-strong); font-weight: 500; background: var(--spw-mist); }
.spw-scene__step.is-active .spw-scene__num { background: var(--spw-blue); border-color: var(--spw-blue); color: #fff; }
.spw-scene[data-tone="alert"] .spw-scene__step.is-active .spw-scene__num { background: var(--sp-red); border-color: var(--sp-red); }
.spw-scene[data-tone="brand"] .spw-scene__step.is-active .spw-scene__num { background: var(--sp-orange); border-color: var(--sp-orange); }

/* illustration palette */
.sc-far { fill: #e1e8e6; } .sc-mid { fill: #d0dad7; } .sc-near { fill: #bfcbc8; } .sc-dark { fill: #8f9d9a; }
.sc-ground { fill: #dde4e2; } .sc-path { fill: #eaefed; } .sc-road { fill: #c3cdca; } .sc-runway { fill: #b8c3c0; } .sc-lane { fill: #f4f7f6; } .sc-lawn { fill: #c9dfcf; }
.sc-glass { fill: #cfe2f0; } .sc-vehicle { fill: #fff; stroke: #c9d3d0; stroke-width: 1; } .sc-blue { fill: var(--spw-blue); } .sc-orange { fill: var(--spw-orange); } .sc-red { fill: #d93b3b; } .sc-yellow { fill: #f2c94c; }
.sc-pole { fill: #9aa8a5; } .sc-device { fill: #5d6b70; } .sc-help { fill: #3b474c; } .sc-rib { fill: #aebbb8; } .sc-led { fill: #1f6fc0; } .sc-paper { fill: #fff; }
.sc-screen { fill: #1b2328; } .sc-screen-head { fill: var(--spw-orange); } .sc-screen-line { fill: #7fd3ec; } .sc-screen-time { fill: #fff; opacity: .75; }
.sc-arrow, .sc-arrow-w { fill: none; stroke: #7fd3ec; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.sc-arrow-w { stroke: #fff; stroke-width: 2.5; }
.sc-tree { fill: #b7d3c1; } .sc-tree2 { fill: #a7c8b3; } .sc-trunk { fill: #9aa8a5; }
/* people: five skin tones, hair colours, walking sticks and wheelchairs */
.sc-skin--0 .sc-skin { fill: #f1d3bb; } .sc-skin--1 .sc-skin { fill: #e3b995; } .sc-skin--2 .sc-skin { fill: #c48a5e; } .sc-skin--3 .sc-skin { fill: #8d5a3b; } .sc-skin--4 .sc-skin { fill: #5c3a26; }
.sc-hair--black, .sc-hair--black * { fill: #231b16; } .sc-hair--dark, .sc-hair--dark * { fill: #4a3a30; } .sc-hair--brown, .sc-hair--brown * { fill: #8b5a2b; } .sc-hair--fair, .sc-hair--fair * { fill: #d4ab62; } .sc-hair--grey, .sc-hair--grey * { fill: #d6dadc; }
.sc-cane { fill: none; stroke: #6c5a48; stroke-width: 2; stroke-linecap: round; }
.sc-chair__wheel circle { fill: none; stroke: #3d474c; stroke-width: 2.5; }
.sc-chair__wheel path { fill: none; stroke: #8a9499; stroke-width: 1; }
.sc-chair__caster { fill: #3d474c; }
.sc-chair__frame { fill: none; stroke: #5d6b70; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.sc-chair__wheel { transform-box: fill-box; transform-origin: center; }
.spw-scene.is-active .is-chair.is-walker .sc-chair__wheel { animation: sc-roll 1.6s linear infinite; }
@keyframes sc-roll { to { transform: rotate(360deg); } }
.sc-skin { fill: #e3b995; } .sc-legs { fill: #3d474c; } .sc-phone { fill: #12181b; } .sc-bud { fill: #fff; stroke: #5d6b70; }
.sc-p1 { fill: var(--spw-blue); } .sc-p2 { fill: var(--spw-orange); } .sc-p3 { fill: #6c7a7f; } .sc-p4 { fill: var(--spw-cyan); } .sc-p5 { fill: #8a5fbf; }
.sc-wave { fill: none; stroke: var(--spw-blue); stroke-width: 2; stroke-linecap: round; }
.sc-wave--red { stroke: #d93b3b; }
.sc-plane-body { fill: #fff; stroke: #c3cdca; stroke-width: 1.2; }
.sc-plane-tail { fill: var(--spw-orange); } .sc-plane-wing { fill: #d9e1df; stroke: #b9c4c1; } .sc-plane-shade { fill: #c3cdca; } .sc-plane-engine { fill: #e9eeec; stroke: #b9c4c1; }
.sc-plane-win { fill: #6f8fa8; } .sc-plane-glass { fill: #3e5566; } .sc-plane-door { fill: none; stroke: #c3cdca; } .sc-wheel { fill: #2f3a3f; }
.sc-train-door { fill: #eef2f1; stroke: #c3cdca; } .sc-train-gap { fill: #c3cdca; }
.sc-hull { fill: #24486b; } .sc-rail { fill: none; stroke: #9aa8a5; stroke-width: 2; }
.sc-steps { fill: none; stroke: #8f9d9a; stroke-width: 6; stroke-dasharray: 2 5; }
.spw-scene.is-active .sc-steps { animation: sc-steps .6s linear infinite; }
@keyframes sc-steps { to { stroke-dashoffset: -7; } }
.sc-sign { fill: #1f2a36; }
.sc-sign__text { fill: #fff; font: 700 14px var(--sp-font); }
.sc-sign__small { fill: #fff; font: 600 10px var(--sp-font); text-anchor: middle; }
.sc-sign__num { fill: #fff; font: 700 9px var(--sp-font); text-anchor: middle; }
.sc-line-1 { fill: #0455a1; } /* line marker, Metrô Linha 1 blue */
.sc-pile { fill: #8a7a66; } .sc-deck { fill: #b49a7c; } .sc-wave-line { fill: none; stroke: #fff; stroke-opacity: .45; stroke-width: 2; stroke-linecap: round; }
.sc-cloud { fill: #9aa3ad; opacity: .85; }
.sc-siren { fill: #d93b3b; } .sc-siren--b { fill: var(--spw-blue); }
.sc-sand { fill: #efe4c8; } .sc-green { fill: #1d8a31; } /* evacuation-route green */
.sc-route { fill: none; stroke: #cfd8d5; stroke-width: 22; stroke-linecap: round; }
.sc-route-line { fill: none; stroke: #1d8a31; stroke-width: 3; stroke-dasharray: 10 10; stroke-linecap: round; opacity: .55; }

/* actors: vehicles and ambient motion, only while the slide is showing */
.sc-actor { transform-box: fill-box; }
.spw-scene.is-active .sc-actor--takeoff { transform-origin: 58% 100%; animation: sc-takeoff var(--scene, 24s) linear infinite; }
.spw-scene.is-active .sc-actor--landing { transform-origin: 58% 100%; animation: sc-landing var(--scene, 24s) linear infinite; }
.sc-actor--landing { transform: translate(-700px, -200px); }
.spw-scene.is-active .sc-actor--arrive { animation: sc-arrive var(--train, 16s) ease-in-out infinite; }
.spw-scene.is-active .sc-actor--dock { animation: sc-dock 16s ease-in-out infinite; }
.spw-scene.is-active .sc-actor--drive { animation: sc-drive 16s linear infinite; }
.spw-scene.is-active .sc-actor--drive-slow { animation: sc-drive 22s linear infinite; }
.spw-scene.is-active .sc-actor--ambulance { animation: sc-ambulance 16s ease-in-out infinite; }
.spw-scene.is-active .sc-actor--waves { animation: sc-waves 6s linear infinite; }
.spw-scene.is-active .sc-actor--clouds { animation: sc-clouds 18s ease-in-out infinite alternate; }
.spw-scene.is-active .sc-actor--crowd { animation: sc-crowd 3s ease-in-out infinite alternate; }
.spw-scene.is-active .sc-actor--walk { animation: sc-walk 9s ease-in-out infinite alternate; }
.spw-scene.is-active .sc-actor--escalator { animation: sc-escalator 7.8s linear infinite; }
.sc-actor--escalator { opacity: 0; }
@keyframes sc-escalator { 0% { transform: translate(0, 0); opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translate(156px, -144px); opacity: 0; } }
/* people: a gentle idle sway; walkers stroll back and forth with swinging legs */
.sc-person__body { transform-box: view-box; }
.spw-scene.is-active .sc-person__body { animation: sc-idle var(--t, 3s) ease-in-out var(--d, 0s) infinite alternate; }
.spw-scene.is-active .is-walker .sc-person__body { animation: sc-stroll var(--w, 6s) ease-in-out var(--d, 0s) infinite alternate; }
.sc-legs { transform-box: fill-box; transform-origin: 50% 0; }
.spw-scene.is-active .is-walker .sc-leg--l { animation: sc-leg .45s ease-in-out infinite alternate; }
.spw-scene.is-active .is-walker .sc-leg--r { animation: sc-leg .45s ease-in-out infinite alternate-reverse; }
@keyframes sc-idle { from { transform: translateY(0); } to { transform: translateY(-1.5px); } }
@keyframes sc-stroll { from { transform: translateX(0); } to { transform: translateX(var(--dx, 30px)); } }
@keyframes sc-leg { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
/* headphones: music notes by default; a muted badge when they miss an announcement; lit up when Auracast reaches them */
.sc-hp-band { fill: none; stroke: #2f3a3f; stroke-width: 2.5; stroke-linecap: round; }
.sc-hp-cup { fill: #2f3a3f; transition: fill .3s ease; }
.sc-notes text { fill: #8a9499; font: 700 10px var(--sp-font); }
.spw-scene.is-active .sc-notes { animation: sc-notes 2.4s ease-in-out infinite; }
.sc-badge { opacity: 0; transition: opacity .3s ease; }
.sc-badge circle { stroke-width: 1.5; }
.sc-badge text { font: 900 11px "Font Awesome 6 Free"; text-anchor: middle; }
.sc-badge--miss circle { fill: #fff; stroke: #b7c1be; } .sc-badge--miss text { fill: #8a9499; }
.sc-badge--aura circle { fill: var(--spw-blue); stroke: #fff; } .sc-badge--aura text { fill: #fff; }
.sc-person.is-missing .sc-badge--miss { opacity: 1; }
.sc-person.is-on .sc-badge--aura { opacity: 1; }
.sc-person.is-on .sc-hp-cup { fill: var(--spw-blue); }
.sc-person.is-on .sc-notes, .sc-person.is-missing .sc-notes { opacity: 0; }
.spw-scene.is-active .sc-person.is-on .sc-badge--aura circle { animation: sc-badge-pulse 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes sc-notes { 0% { transform: translateY(2px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-6px); opacity: 0; } }
@keyframes sc-badge-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
.spw-scene.is-active .sc-actor--sail { animation: sc-sail var(--scene, 20s) ease-in-out infinite; }
.spw-scene.is-active .sc-actor--bus-stop { animation: sc-bus-stop var(--scene, 20s) ease-in-out infinite; }
/* tsunami trigger: the undersea tremor, shown only during the first step */
.sc-seabed { fill: #6f93a8; opacity: .55; }
.sc-quake__fault { fill: none; stroke: #d93b3b; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .35; }
.sc-quake__ripples ellipse, .sc-quake__waves path { fill: none; stroke: #fff; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.sc-quake__waves path { stroke: #d93b3b; }
.spw-scene[data-beat="0"] .sc-quake__fault { opacity: 1; animation: sc-tremor .18s linear infinite alternate; }
.spw-scene[data-beat="0"] .sc-quake__ripples ellipse { animation: sc-ripple 3s ease-out infinite; }
.spw-scene[data-beat="0"] .sc-quake__ripples ellipse:nth-child(2) { animation-delay: 1s; }
.spw-scene[data-beat="0"] .sc-quake__ripples ellipse:nth-child(3) { animation-delay: 2s; }
.spw-scene[data-beat="0"] .sc-quake__waves path { animation: sc-ripple 1.6s ease-out infinite; }
.spw-scene[data-beat="0"] .sc-quake__waves path:nth-child(2) { animation-delay: .8s; }
@keyframes sc-tremor { from { transform: translateX(-2px); } to { transform: translateX(2px); } }
@keyframes sc-ripple { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(3); opacity: 0; } }
.spw-scene.is-active .sc-siren--a { animation: sc-flash .5s steps(2, jump-none) infinite; }
.spw-scene.is-active .sc-siren--b { animation: sc-flash .5s steps(2, jump-none) infinite reverse; }
/* Take-off: taxi onto the runway, pause, accelerate, rotate gently and climb away.
   Landing: a shallow approach, flare, touchdown and roll-out, timed for the arrivals step. */
@keyframes sc-takeoff {
  0% { transform: translate(-460px, 0) rotate(0); animation-timing-function: ease-out; }
  7%, 9% { transform: translate(0, 0) rotate(0); animation-timing-function: cubic-bezier(.55, 0, 1, 1); }
  27% { transform: translate(640px, 0) rotate(0); animation-timing-function: linear; }
  31% { transform: translate(860px, -8px) rotate(-5deg); animation-timing-function: linear; }
  36% { transform: translate(1110px, -70px) rotate(-9deg); animation-timing-function: ease-in; }
  44% { transform: translate(1480px, -240px) rotate(-10deg); }
  44.1%, 100% { transform: translate(1480px, -240px) rotate(-10deg); opacity: 0; }
}
@keyframes sc-landing {
  0%, 54% { transform: translate(-700px, -200px) rotate(-3deg); animation-timing-function: linear; }
  70% { transform: translate(180px, -26px) rotate(-3deg); animation-timing-function: ease-out; }
  74% { transform: translate(380px, 0) rotate(-5deg); animation-timing-function: ease-out; }
  77% { transform: translate(480px, 0) rotate(0); animation-timing-function: cubic-bezier(0, 0, .3, 1); }
  100% { transform: translate(1300px, 0) rotate(0); }
}
@keyframes sc-arrive {
  0% { transform: translateX(1000px); }
  22%, 70% { transform: translateX(0); }
  92%, 100% { transform: translateX(-1300px); }
}
@keyframes sc-dock {
  0% { transform: translateX(-760px); }
  26%, 72% { transform: translateX(0); }
  96%, 100% { transform: translateX(-760px); }
}
@keyframes sc-drive { from { transform: translateX(0); } to { transform: translateX(2100px); } }
@keyframes sc-ambulance {
  0% { transform: translateX(0); }
  24%, 76% { transform: translateX(-560px); }
  100% { transform: translateX(-1500px); }
}
@keyframes sc-waves { from { transform: translateX(0); } to { transform: translateX(120px); } }
@keyframes sc-clouds { from { transform: translateX(0); } to { transform: translateX(-160px); } }
@keyframes sc-crowd { from { transform: translateX(0); } to { transform: translateX(10px); } }
/* hub ferry: sails in from behind the concourse, waits at the wharf, then departs */
@keyframes sc-sail { 0% { transform: translateX(-720px); } 18%, 66% { transform: translateX(0); } 90%, 100% { transform: translateX(760px); } }
/* the late bus pulls into its stand partway through the story, waits, then leaves */
@keyframes sc-bus-stop { 0%, 30% { transform: translateX(-900px); } 45%, 80% { transform: translateX(0); } 100% { transform: translateX(1100px); } }
@keyframes sc-walk { from { transform: translate(0, 0); } to { transform: translate(34px, -16px); } }
@keyframes sc-flash { 0% { opacity: 1; } 100% { opacity: .15; } }

/* links, pulses, hub and devices: only the devices in the current step light up */
.sc-link path { fill: none; stroke: var(--spw-blue); stroke-width: 2.5; stroke-dasharray: 5 7; stroke-linecap: round; opacity: 0; transition: opacity .4s ease; }
.sc-pulse { opacity: 0; transition: opacity .3s ease; }
.sc-pulse--out { fill: var(--spw-blue); filter: drop-shadow(0 0 5px rgba(0,84,166,.7)); }
.sc-pulse--in { fill: var(--spw-orange); filter: drop-shadow(0 0 5px rgba(243,112,33,.7)); }
.sc-link.is-on path { opacity: .7; animation: sc-dash 1s linear infinite; }
.sc-link.is-on.dir-out .sc-pulse--out, .sc-link.is-on.dir-both .sc-pulse--out,
.sc-link.is-on.dir-in .sc-pulse--in, .sc-link.is-on.dir-both .sc-pulse--in { opacity: 1; }
.sc-link.is-on.dir-in path { stroke: var(--spw-orange); }
.spw-scene[data-tone="alert"] .sc-link.is-on path { stroke: #d93b3b; }
.spw-scene[data-tone="alert"] .sc-pulse--out { fill: #d93b3b; filter: drop-shadow(0 0 5px rgba(217,59,59,.7)); }
.sc-hub__disc { fill: var(--spw-orange); }
.sc-hub__halo { fill: none; stroke: var(--spw-orange); stroke-width: 2; stroke-opacity: .5; transform-box: fill-box; transform-origin: center; animation: sc-ping 2.6s ease-out infinite; }
.sc-hub__brand { fill: #fff; font: italic 700 16px var(--sp-font); text-anchor: middle; }
.sc-hub__sub { fill: #fff; font: italic 400 10px var(--sp-font); text-anchor: middle; }
.sc-dev__ring { fill: none; stroke: var(--spw-blue); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.sc-dev__disc { fill: #fff; stroke: var(--spw-blue); stroke-width: 2; transition: fill .3s ease, stroke .3s ease; }
.sc-dev__icon { fill: var(--spw-blue); font: 900 12px "Font Awesome 6 Free"; text-anchor: middle; pointer-events: none; transition: fill .3s ease; }
.sc-dev { opacity: .75; transition: opacity .3s ease; }
.sc-dev.is-on { opacity: 1; }
.sc-dev.is-on .sc-dev__disc { fill: var(--spw-blue); }
.sc-dev.is-on .sc-dev__icon { fill: #fff; }
.sc-dev.is-on .sc-dev__ring { opacity: 1; animation: sc-ping 1.6s ease-out infinite; }
.sc-dev.is-on.dir-in .sc-dev__disc { fill: var(--spw-orange); stroke: var(--spw-orange); }
.sc-dev.is-on.dir-in .sc-dev__ring { stroke: var(--spw-orange); }
.spw-scene[data-tone="alert"] .sc-dev.is-on .sc-dev__disc { fill: #d93b3b; stroke: #d93b3b; }
.spw-scene[data-tone="alert"] .sc-dev.is-on .sc-dev__ring { stroke: #d93b3b; }
/* warning sirens: sound rings only while that siren is broadcasting */
.sc-rings circle { fill: none; stroke: #d93b3b; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.sc-rings.is-on.dir-out circle { animation: sc-ring 2.4s ease-out infinite; }
.sc-rings.is-on.dir-out circle:nth-child(2) { animation-delay: .8s; }
.sc-rings.is-on.dir-out circle:nth-child(3) { animation-delay: 1.6s; }
@keyframes sc-ring { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes sc-dash { to { stroke-dashoffset: -24; } }
@keyframes sc-ping { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

/* realtime data feed: always connected, statuses use the SmartPi.UI status colours */
.sc-feedlink path { fill: none; stroke: var(--sp-green); stroke-width: 2.5; stroke-dasharray: 5 7; stroke-linecap: round; opacity: .6; }
.spw-scene.is-active .sc-feedlink path { animation: sc-dash-in 1s linear infinite; }
.sc-pulse--feed { fill: var(--sp-green); filter: drop-shadow(0 0 4px rgba(49,204,75,.7)); }
.sc-feed__disc { fill: #1b2328; stroke: var(--sp-green); stroke-width: 2.5; }
.sc-feed__ring { fill: none; stroke: var(--sp-green); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: sc-ping 2.2s ease-out infinite; }
.sc-feed__icon { fill: #7ee08f; font: 900 14px "Font Awesome 6 Free"; text-anchor: middle; }
@keyframes sc-dash-in { to { stroke-dashoffset: 24; } }
.spw-feed { position: absolute; z-index: 1; left: 0; top: 0; min-width: 214px; padding: 8px 12px 10px; border-radius: 12px; background: #1b2328; color: #fff; box-shadow: 0 10px 28px rgba(11,42,74,.25); pointer-events: none; }
.spw-feed p { margin: 0; }
.spw-feed__head { display: flex; align-items: center; gap: 7px; margin-bottom: 6px !important; color: #a9b4b8; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.spw-feed__live { width: 8px; height: 8px; border-radius: 50%; background: var(--sp-green); box-shadow: 0 0 0 0 rgba(49,204,75,.6); animation: sc-live 1.6s ease-out infinite; }
.spw-feed__row { display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; }
.spw-feed__row.is-in { animation: sc-fade-in .4s ease; }
.spw-feed__route { padding: 1px 6px; border-radius: 4px; background: #2d3a40; color: #7fd3ec; font-weight: 700; }
.spw-feed__dest { flex: 1; color: #e6eaec; }
.spw-feed__status, .spw-bubble__row .is-ok, .spw-bubble__row .is-late, .spw-bubble__row .is-early { font-weight: 700; }
.spw-feed__status.is-ok, .spw-bubble__row span.is-ok { color: #5fdc74; }
.spw-feed__status.is-late, .spw-bubble__row span.is-late { color: #ff9a5a; }
.spw-feed__status.is-early, .spw-bubble__row span.is-early { color: #5fd2f0; }
@keyframes sc-live { 0% { box-shadow: 0 0 0 0 rgba(49,204,75,.6); } 100% { box-shadow: 0 0 0 8px rgba(49,204,75,0); } }
/* status tags carried by vehicles */
.sc-tag rect { fill: #fff; stroke-width: 2; filter: drop-shadow(0 3px 6px rgba(11,42,74,.18)); }
.sc-tag text { fill: var(--sp-text-strong); font: 600 13px var(--sp-font); }
.sc-tag--ok rect { stroke: var(--sp-green); } .sc-tag--ok circle { fill: var(--sp-green); }
.sc-tag--late rect { stroke: var(--spw-orange); } .sc-tag--late circle { fill: var(--spw-orange); }
.sc-tag--early rect { stroke: var(--spw-cyan); } .sc-tag--early circle { fill: var(--spw-cyan); }

/* bubbles: what the device in the current step is doing */
.spw-bubble { position: absolute; z-index: 2; left: 0; top: 0; max-width: 300px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: 0 14px 36px rgba(11,42,74,.2); color: var(--sp-text-strong); font-size: 14px; line-height: 1.35; opacity: 0; transform: translateY(6px) scale(.97); transition: opacity .35s ease, transform .35s var(--spw-ease); pointer-events: none; }
.spw-bubble.is-in { opacity: 1; transform: none; }
.spw-bubble::after { content: ""; position: absolute; left: calc(var(--tail, 50%) - 8px); bottom: -7px; width: 16px; height: 16px; background: inherit; transform: rotate(45deg); border-radius: 3px; }
.spw-bubble.is-below::after { bottom: auto; top: -7px; }
.spw-bubble p { margin: 0; }
.spw-bubble__head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px !important; color: var(--spw-blue); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.spw-bubble__text { color: var(--sp-text-strong); font-weight: 500; }
.spw-bubble--screen { min-width: 230px; padding: 0 0 8px; overflow: visible; background: #1b2328; color: #fff; }
.spw-bubble__bar { padding: 7px 12px; margin-bottom: 6px !important; border-radius: 14px 14px 0 0; background: var(--spw-orange); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.spw-bubble__row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; padding: 3px 12px; font-size: 13px; }
.spw-bubble__row span:first-child { color: #7fd3ec; font-weight: 700; }
.spw-bubble__row span:last-child { color: #ffd166; }
.spw-bubble--speech, .spw-bubble--auracast { width: 300px; }
.spw-bubble__brand { display: flex; align-items: center; gap: 7px; margin-bottom: 6px !important; color: #1d1d1b; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.spw-bubble__brand i { color: var(--spw-blue); }
.spw-bubble__logo { display: block; height: 20px; width: auto; }
.spw-bubble--assist { width: 320px; }
.spw-bubble__also { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; color: var(--sp-text-strong); }
.spw-bubble__also i { color: var(--spw-blue); }
.spw-bubble__plus { color: var(--sp-muted-2); font-weight: 400; }
/* hearing-loop zone marked on the floor */
.sc-loop { fill: rgba(0,84,166,.08); stroke: var(--spw-blue); stroke-width: 2; stroke-dasharray: 6 6; }
.spw-bubble__line { display: flex; gap: 8px; align-items: baseline; }
.spw-bubble__line.is-in { animation: sc-fade-in .45s ease; }
.spw-bubble__lang { flex: 0 0 auto; padding: 2px 6px; border-radius: 4px; background: var(--spw-blue); color: #fff; font-size: 11px; font-weight: 700; }
.spw-bubble__line .spw-bubble__text { font-size: 15px; }
.spw-bubble--phone { padding: 6px; border-radius: 22px; background: #12181b; }
.spw-bubble--phone::after { display: none; }
.spw-bubble__screen { width: 190px; padding: 10px 8px 14px; border-radius: 17px; background: linear-gradient(160deg, #2b6fb6, #0b2f55); }
.spw-bubble__clock { display: block; margin-bottom: 10px; color: #fff; font-size: 11px; font-weight: 600; text-align: center; }
.spw-bubble__note { display: flex; gap: 8px; padding: 8px; border-radius: 12px; background: rgba(255,255,255,.92); animation: sc-drop-in .5s var(--spw-ease); }
.spw-bubble__note strong { display: block; font-size: 12.5px; }
.spw-bubble__note span:not(.spw-bubble__app) { display: block; color: var(--sp-muted); font-size: 12px; }
.spw-bubble__app { flex: 0 0 auto; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: var(--spw-orange); color: #fff; font-weight: 700; font-style: italic; }
.spw-bubble__waves { display: block; height: 18px; margin-top: 6px; background: repeating-linear-gradient(90deg, var(--spw-blue) 0 3px, transparent 3px 7px); mask: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); animation: sc-waves-css 1s linear infinite; }
.spw-bubble__sign { display: flex; align-items: center; gap: 10px; margin-bottom: 4px !important; padding: 8px 12px; border-radius: 8px; background: #1b2328; color: #fff; font-size: 16px; }
.spw-bubble__sign i { color: #7fd3ec; }
.spw-bubble--green .spw-bubble__sign { background: #1d8a31; }
.spw-bubble--green .spw-bubble__sign i { color: #fff; }
.spw-bubble__meter { display: flex; align-items: flex-end; gap: 3px; height: 22px; margin: 4px 0 6px; }
.spw-bubble__meter i { flex: 1; background: var(--sp-green); border-radius: 2px; animation: sc-meter .9s ease-in-out infinite alternate; }
.spw-bubble__meter i:nth-child(n+6) { background: var(--spw-orange); }
.spw-bubble__meter i:nth-child(2n) { animation-delay: -.3s; } .spw-bubble__meter i:nth-child(3n) { animation-delay: -.6s; }
.spw-bubble--alert { background: #fff4f4; box-shadow: 0 14px 36px rgba(217,59,59,.25); }
.spw-bubble--alert .spw-bubble__head { color: #c42f2f; }
.spw-bubble--check .spw-bubble__head, .spw-bubble--call .spw-bubble__head { color: #1d8a31; }
@keyframes sc-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes sc-drop-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes sc-waves-css { to { background-position: 7px 0; } }
@keyframes sc-meter { from { height: 25%; } to { height: 100%; } }

/* tabs and controls */
.spw-scenes__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.spw-scenes__tabs { display: flex; gap: 4px; padding: 5px; background: var(--sp-surface); border: 1px solid var(--sp-border); border-radius: 999px; box-shadow: var(--spw-shadow); overflow-x: auto; scrollbar-width: none; min-width: 0; }
.spw-scenes__tab { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; overflow: hidden; border: 0; border-radius: 999px; background: none; color: var(--sp-text); font: 500 14px var(--sp-font); cursor: pointer; white-space: nowrap; transition: background-color .2s ease, color .2s ease; }
.spw-scenes__tab:hover { background: var(--spw-mist); }
.spw-scenes__tab.is-active { background: var(--spw-blue); color: #fff; }
.spw-scenes__progress { position: absolute; left: 14px; right: 14px; bottom: 5px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.9); transform: scaleX(0); transform-origin: left; }
.is-playing .spw-scenes__tab.is-active .spw-scenes__progress { animation: sc-progress var(--dur, 15s) linear forwards; }
.spw-scenes__controls { display: flex; flex: 0 0 auto; gap: 8px; }
.spw-scenes__ctrl { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--sp-border); border-radius: 50%; background: var(--sp-surface); color: var(--sp-text-strong); cursor: pointer; box-shadow: var(--spw-shadow); transition: border-color .15s ease, color .15s ease; }
.spw-scenes__ctrl:hover { border-color: var(--spw-blue); color: var(--spw-blue); }
@keyframes sc-progress { to { transform: scaleX(1); } }

@media (max-width: 1100px) {
  .spw-scenes__tab span:not(.spw-scenes__progress) { display: none; }
  .spw-scenes__tab { padding: 0 14px; }
  .spw-scenes__tab.is-active span:not(.spw-scenes__progress) { display: inline; }
}
@media (max-width: 960px) {
  .spw-hero__intro { grid-template-columns: 1fr; }
  .spw-scene__caption { width: min(340px, 44%); padding: 14px 16px; }
  .spw-scene__step:not(.is-active) { display: none; }
}
@media (max-width: 767px) {
  .spw-scene { aspect-ratio: auto; display: flex; flex-direction: column; }
  .spw-feed { min-width: 0; padding: 6px 9px 8px; }
  .spw-feed__row { font-size: 11.5px; gap: 6px; }
  .spw-feed__dest { display: none; }
  .spw-scene__art { height: auto; aspect-ratio: 820 / 560; }
  .spw-scene__caption { position: static; width: auto; border-radius: 0; border: 0; border-top: 1px solid var(--sp-border); background: var(--sp-surface); box-shadow: none; backdrop-filter: none; }
  .spw-scene__step:not(.is-active) { display: flex; }
  .spw-bubble { max-width: 220px; padding: 9px 11px; font-size: 12.5px; }
  .spw-bubble--speech, .spw-bubble--auracast, .spw-bubble--assist { width: 220px; }
  .spw-bubble__line .spw-bubble__text { font-size: 13px; }
  .spw-bubble__screen { width: 150px; }
  .spw-bubble--screen { min-width: 180px; }
  .spw-bubble__row { font-size: 11.5px; gap: 6px; padding: 2px 10px; }
  .spw-scenes__bar { flex-direction: column; align-items: stretch; }
  .spw-scenes__tabs { border-radius: 14px; }
  .spw-scenes__controls { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .sc-pulse { display: none; }
  .sc-actor { animation: none !important; }
}

/* product icons (assets/icons/products, currentColor line icons) */
.spw-picon { display: inline-block; width: 1.25em; height: 1.25em; flex: 0 0 auto; vertical-align: middle; }
.sp-page-header__icon .spw-picon { width: 20px; height: 20px; color: #f3a06f; }
.spw-mega__icon { width: 22px; height: 22px; color: var(--spw-blue); }
.spw-node__icon { color: #fff; pointer-events: none; }
.spw-monogram { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 13px; }
.spw-monogram__icon { width: 34px; height: 34px; color: #fff; }

/* product panel with a product photo: details on the left, photo on the right */
.spw-product-panel__body.has-photo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-flow: dense; }
.spw-product-panel__body.has-photo > :not(.spw-product-panel__photo) { grid-column: 1; }
.spw-product-panel__photo { grid-column: 2; grid-row: 1 / span 4; margin: 0; display: grid; place-items: center; padding: 18px; border-radius: var(--sp-radius-card); background: #fff; border: 1px solid var(--sp-border-soft); }
.spw-product-panel__photo img { width: 100%; height: auto; max-height: 360px; object-fit: contain; }
@media (max-width: 960px) {
  .spw-product-panel__body.has-photo { grid-template-columns: 1fr; }
  .spw-product-panel__photo { grid-column: 1; grid-row: auto; }
}

/* product page content from the brochure: lead text, spec tables, two-column lists, figures */
.spw-content .spw-lead { font-size: 1.125rem; color: var(--sp-text); line-height: 1.7; }
.spw-content h2 { margin-top: 2.2em; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -0.02em; }
.spw-content h3 { margin: 0 0 .5em; font-size: 1.1rem; color: var(--spw-blue); }
.spw-content ul.wp-block-list { padding-left: 1.2em; }
.spw-content ul.wp-block-list li { margin: .35em 0; }
.spw-content ul.wp-block-list li::marker { color: var(--sp-orange); }
.spw-spec-columns { gap: 18px; }
.spw-spec-columns .wp-block-column { padding: 20px 22px; background: var(--spw-mist); border-radius: var(--sp-radius-card); }
.spw-specs { margin: 0; overflow-x: auto; }
.spw-specs table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--sp-border); border-radius: var(--sp-radius-card); overflow: hidden; font-size: 14.5px; }
.spw-specs th, .spw-specs td { padding: 11px 14px; border: 0; border-top: 1px solid var(--sp-border-soft); text-align: left; vertical-align: top; }
.spw-specs thead th { border-top: 0; background: var(--spw-blue); color: #fff; font-weight: 600; }
.spw-specs tbody tr:first-child th, .spw-specs tbody tr:first-child td { border-top: 0; }
.spw-specs tbody th { width: 34%; background: var(--sp-surface-raised); color: var(--sp-text-strong); font-weight: 600; }
.spw-figure { margin: 2em 0; }
.spw-figure img { border-radius: var(--sp-radius-card); border: 1px solid var(--sp-border-soft); }
.spw-figure figcaption { margin-top: 8px; color: var(--sp-muted); font-size: 13.5px; text-align: center; }

/* compact caption: the current step's sentence, then numbered step buttons */
.spw-scene__caption { width: min(340px, 30%); padding: 18px 20px; }
.spw-scene__title { margin: 0 0 10px !important; font-size: clamp(1.1rem, .95rem + .6vw, 1.45rem); }
.spw-scene__now { min-height: 3.1em; margin: 0 0 12px; color: var(--sp-text-strong); font-size: 15px; font-weight: 500; line-height: 1.45; }
.spw-scene__now.is-in { animation: sc-fade-in .45s ease; }
.spw-scene__steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.spw-scene__step { width: auto; padding: 0; background: none !important; }
.spw-scene__step .spw-scene__num { width: 28px; height: 28px; margin: 0; font-size: 12px; }
.spw-scene__step:hover .spw-scene__num { border-color: var(--spw-blue); color: var(--spw-blue); }
.spw-scene__story { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 960px) {
  .spw-scene__caption { width: min(320px, 42%); }
  .spw-scene__step:not(.is-active) { display: flex; }
}
@media (max-width: 767px) {
  .spw-scene__caption { width: auto; }
}

/* bubble tail follows whichever side of the device the bubble was placed on */
.spw-bubble[data-side="right"]::after { left: -7px; bottom: auto; top: calc(var(--tail-y, 50%) - 8px); }
.spw-bubble[data-side="left"]::after { left: auto; right: -7px; bottom: auto; top: calc(var(--tail-y, 50%) - 8px); }

/* passenger load: green empty, amber busy, red full */
.spw-feed__load { display: inline-flex; align-items: flex-end; gap: 2px; margin-left: 4px; }
.spw-feed__load i { width: 7px; border-radius: 2px; background: #5fdc74; height: 6px; }
.spw-feed__load i.is-load-2 { height: 10px; background: #ffc84a; }
.spw-feed__load i.is-load-3 { height: 14px; background: #ff7a6b; }
.spw-bubble--load { min-width: 250px; padding: 0 0 10px; background: #1b2328; color: #fff; }
.spw-bubble__cars { display: flex; gap: 4px; padding: 6px 12px 2px; }
.spw-bubble__car { flex: 1; display: flex; align-items: center; justify-content: center; gap: 2px; height: 30px; border-radius: 7px 7px 3px 3px; color: #12181b; font-size: 12px; }
.spw-bubble__car.is-load-1 { background: #5fdc74; }
.spw-bubble__car.is-load-2 { background: #ffc84a; }
.spw-bubble__car.is-load-3 { background: #ff7a6b; }
.spw-bubble__hint { padding: 6px 12px 0; color: #5fdc74; font-size: 13px; font-weight: 700; }
/* the crowd walks along the platform to the emptier carriages, then stays there */
.sc-shift { transition: transform 4s ease-in-out; }
.spw-scene.is-crowd-moved .sc-shift { transform: translateX(300px); }
.spw-scene.is-active.is-crowd-moved .sc-shift .sc-leg--l { animation: sc-leg .45s ease-in-out 9 alternate; }
.spw-scene.is-active.is-crowd-moved .sc-shift .sc-leg--r { animation: sc-leg .45s ease-in-out 9 alternate-reverse; }
.sc-load-1 { fill: #5fdc74; } .sc-load-2 { fill: #ffc84a; } .sc-load-3 { fill: #ff7a6b; }

/* time of day on the station: morning peak (default), evening peak, after hours */
.sc-pm, .sc-night { opacity: 0; }
.sc-am, .sc-pm, .sc-night { transition: opacity .8s ease; }
.is-evening .sc-am { opacity: 0; } .is-evening .sc-pm { opacity: 1; }
.is-night .sc-am, .is-night .sc-pm { opacity: 0; } .is-night .sc-night { opacity: 1; }
.sc-sign__text--sm { font-size: 12px; }
.sc-tint { pointer-events: none; opacity: 0; transition: opacity 2s ease; }
.sc-tint--eve { fill: #f39a4a; mix-blend-mode: multiply; }
.sc-tint--night { fill: #14233a; }
.is-evening .sc-tint--eve { opacity: .22; }
.is-night .sc-tint--eve { opacity: 0; } .is-night .sc-tint--night { opacity: .55; }
.sc-lit { opacity: 0; transition: opacity 2s ease; }
.is-night .sc-lit--glow { opacity: 1; filter: drop-shadow(0 0 3px rgba(255, 211, 107, .8)); }
.sc-clock rect { fill: #12181b; stroke: #3d474c; stroke-width: 2; }
.sc-clock text { fill: #ffd36b; font: 700 15px ui-monospace, Menlo, Consolas, monospace; text-anchor: middle; }
.sc-spk-waves path { fill: none; stroke: var(--spw-blue); stroke-width: 2.5; stroke-linecap: round; opacity: .55; transition: opacity .8s ease; }
.is-night .sc-spk-waves path:nth-child(n+2) { opacity: 0; }
/* escalator reverses in the evening; the rush thins out after hours */
.spw-scene.is-active.is-evening .sc-actor--escalator { animation-direction: reverse; }
.spw-scene.is-active.is-evening .sc-steps { animation-direction: reverse; }
.is-night .sc-actor--escalator { display: none; }
.spw-bubble__meter.is-fixed i { animation: none; height: 100%; }
.spw-bubble__meter i.is-off { background: #c9d2cf !important; height: 30% !important; }
/* passengers in the windows follow the live carriage loads */
.sc-pax { transition: opacity 1.6s ease; }
.sc-car-load { transition: fill .8s ease; }

/* platform crowd follows the time of day: data-crowd 0 (night) to 3 (peak) */
.sc-crowd { transition: opacity 1.8s ease; }
.spw-scene[data-crowd="0"] .sc-crowd,
.spw-scene[data-crowd="1"] .sc-crowd--2, .spw-scene[data-crowd="1"] .sc-crowd--3,
.spw-scene[data-crowd="2"] .sc-crowd--3 { opacity: 0; }

/* train doors slide open while the train is stopped (in step with sc-arrive) */
.sc-doorway { fill: #2f3a3f; }
.spw-scene.is-active .sc-door--l { animation: sc-door-l var(--train, 16s) linear infinite; }
.spw-scene.is-active .sc-door--r { animation: sc-door-r var(--train, 16s) linear infinite; }
@keyframes sc-door-l { 0%, 28% { transform: translateX(0); } 31%, 60% { transform: translateX(-13px); } 63%, 100% { transform: translateX(0); } }
@keyframes sc-door-r { 0%, 28% { transform: translateX(0); } 31%, 60% { transform: translateX(13px); } 63%, 100% { transform: translateX(0); } }

/* people board through the open doors, others step off and walk away */
.spw-scene.is-active .sc-actor--board { animation: sc-board var(--train, 16s) linear infinite; }
.spw-scene.is-active .sc-actor--alight { animation: sc-alight var(--train, 16s) linear infinite; }
.sc-actor--alight { opacity: 0; }
@keyframes sc-board {
  0%, 33% { transform: translateX(0); opacity: 1; }
  45% { transform: translateX(var(--to, 0)); opacity: 1; }
  48%, 94% { transform: translateX(var(--to, 0)); opacity: 0; }
  95% { transform: translateX(0); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}
@keyframes sc-alight {
  0%, 34% { transform: translateX(0); opacity: 0; }
  37% { transform: translateX(0); opacity: 1; }
  55% { transform: translateX(var(--to, 0)); opacity: 1; }
  88% { transform: translateX(var(--to, 0)); opacity: 1; }
  93%, 100% { transform: translateX(var(--to, 0)); opacity: 0; }
}

/* ---------------------------------------------------------------------------
   Scene bubbles as liquid glass: translucent, blurred, with a bright rim and a
   soft sheen, so the scene still reads through them. Smaller than before.
   --------------------------------------------------------------------------- */
.spw-bubble {
  --glass: rgba(255,255,255,.52);
  --rim: rgba(255,255,255,.85);
  max-width: 270px; padding: 10px 13px; border-radius: 18px;
  background: linear-gradient(155deg, rgba(255,255,255,.34), rgba(255,255,255,0) 55%), var(--glass);
  border: 1px solid var(--rim);
  -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(255,255,255,.25), 0 10px 30px rgba(11,42,74,.14), 0 1px 2px rgba(11,42,74,.08);
  font-size: 13px;
}
/* the tail is a glass triangle: only the half outside the bubble is drawn, so it doesn't double up */
.spw-bubble::after {
  width: 14px; height: 14px; bottom: -8px; left: calc(var(--tail, 50%) - 7px);
  background: var(--glass); border: 1px solid var(--rim); border-radius: 0 0 3px 0;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.spw-bubble.is-below::after { top: -8px; bottom: auto; border-radius: 3px 0 0 0; clip-path: polygon(0 0, 100% 0, 0 100%); }
.spw-bubble[data-side="right"]::after { left: -8px; top: calc(var(--tail-y, 50%) - 7px); bottom: auto; border-radius: 0 0 0 3px; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.spw-bubble[data-side="left"]::after { left: auto; right: -8px; top: calc(var(--tail-y, 50%) - 7px); bottom: auto; border-radius: 0 3px 0 0; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.spw-bubble.is-lifted::after { display: none; }
/* zoom cone from a lifted bubble down to the screen it shows */
.spw-bubble__zoom { position: absolute; left: -1px; top: -1px; width: 1px; height: 1px; overflow: visible; z-index: -1; pointer-events: none; }
.spw-bubble__zoom polygon { fill: rgba(27,35,40,.12); stroke: var(--spw-blue); stroke-opacity: .55; stroke-width: 1.5; stroke-dasharray: 4 3; stroke-linejoin: round; }
.spw-bubble--speech, .spw-bubble--auracast { width: 250px; }
.spw-bubble--assist { width: 270px; }
.spw-bubble__line .spw-bubble__text { font-size: 13.5px; }
.spw-bubble__brand { font-size: 13.5px; margin-bottom: 4px !important; }
.spw-bubble__head { font-size: 11px; }
/* screens, phones and live load stay dark, as smoked glass */
.spw-bubble--screen, .spw-bubble--load, .spw-bubble--phone {
  --glass: rgba(22,30,35,.72); --rim: rgba(255,255,255,.22);
  background: linear-gradient(155deg, rgba(255,255,255,.12), rgba(255,255,255,0) 50%), var(--glass);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 30px rgba(11,42,74,.2);
}
.spw-bubble--screen { min-width: 210px; }
.spw-bubble--load { min-width: 220px; }
.spw-bubble__bar { border-radius: 17px 17px 0 0; background: rgba(236,116,52,.92); }
.spw-bubble--phone { padding: 5px; border-radius: 22px; }
.spw-bubble__screen { width: 170px; }
.spw-bubble--alert { --glass: rgba(255,236,236,.6); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 30px rgba(217,59,59,.18); }
.spw-bubble__sign { padding: 6px 10px; font-size: 14px; }
/* without backdrop blur, fall back to a near-solid fill so text stays readable */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .spw-bubble { --glass: rgba(255,255,255,.94); }
  .spw-bubble--screen, .spw-bubble--load, .spw-bubble--phone { --glass: rgba(22,30,35,.95); }
}
@media (max-width: 767px) {
  .spw-bubble { max-width: 210px; padding: 8px 10px; font-size: 12px; }
  .spw-bubble--speech, .spw-bubble--auracast, .spw-bubble--assist { width: 210px; }
  .spw-bubble__line .spw-bubble__text { font-size: 12.5px; }
}

/* ---------------------------------------------------------------------------
   Products in the scenes: markers carry the product icon, a code tag appears
   under the marker when it is working or pointed at, and the caption chips
   (icon + code) light up for the products in the current step.
   --------------------------------------------------------------------------- */
.sc-dev { cursor: pointer; }
.sc-dev__picon { color: var(--spw-blue); stroke-width: 3.6; pointer-events: none; transition: color .3s ease; }
.sc-dev.is-on .sc-dev__picon, .sc-dev.is-spot .sc-dev__picon { color: #fff; }
.sc-dev__tag { opacity: 0; transform-box: fill-box; transition: opacity .3s ease; pointer-events: none; }
.sc-dev__tag rect { fill: rgba(255,255,255,.92); stroke: var(--spw-blue); stroke-width: 1.2; }
.sc-dev__tag text { fill: var(--spw-blue); font: 700 11px var(--sp-font); letter-spacing: .05em; }
.sc-dev__tagicon { color: var(--spw-blue); stroke-width: 3.6; }
.sc-dev.is-on .sc-dev__tag, .sc-dev.is-spot .sc-dev__tag { opacity: 1; }
.sc-dev.is-spot { opacity: 1; }
.sc-dev.is-spot .sc-dev__disc { fill: var(--spw-blue); }
.sc-dev.is-spot .sc-dev__icon { fill: #fff; }
.sc-dev.is-spot .sc-dev__ring { opacity: 1; animation: sc-ping 1.6s ease-out infinite; }
.spw-scene.is-spotlit .sc-dev:not(.is-spot) { opacity: .3; }
.spw-scene.is-spotlit .sc-dev:not(.is-spot) .sc-dev__tag { opacity: 0; }

.spw-code--icon { gap: 5px; padding: 0 8px 0 6px; cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.spw-code__icon { width: 16px; height: 16px; flex: 0 0 auto; stroke-width: 3.4; }
.spw-code--icon.is-on { background: var(--spw-blue); border-color: var(--spw-blue); color: #fff !important; }
.spw-code--icon:hover, .spw-code--icon:focus-visible, .spw-code--icon.is-spot { border-color: var(--spw-blue); box-shadow: 0 0 0 2px rgba(31,111,192,.18); }
.spw-code--icon:focus-visible { outline: 2px solid var(--spw-blue); outline-offset: 2px; }

/* Airport paging zones: each gate is a zone that lights up only when it is paged; Gate 14's
   display swaps carrier from the "swap" step on. */
.sc-zone { fill: var(--spw-blue); opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.sc-zone { stroke: var(--spw-blue); stroke-width: 3; }
.sc-zone.is-on { opacity: .22; }
.sc-zone-label { opacity: .55; transition: opacity .4s ease; }
.sc-zone-label rect { fill: rgba(255,255,255,.85); stroke: #b9c6cc; stroke-width: 1; transition: fill .4s ease, stroke .4s ease; }
.sc-zone-label text { fill: #5d6b70; font: 700 10px var(--sp-font); letter-spacing: .04em; text-anchor: middle; }
.sc-zone-label.is-on { opacity: 1; }
.sc-zone-label.is-on rect { fill: var(--spw-blue); stroke: var(--spw-blue); }
.sc-zone-label.is-on text { fill: #fff; }
.sc-gate-num { fill: #fff; font: 700 9px var(--sp-font); letter-spacing: .06em; text-transform: uppercase; }
.sc-gate-line { fill: #e8f1f5; font: 600 10.5px var(--sp-font); }
.sc-carrier-a .sc-gate-head { fill: #ec7434; }
.sc-carrier-b .sc-gate-head { fill: #b8323c; }
.sc-swap-a, .sc-swap-b { transition: opacity .6s ease; }
.sc-swap-b { opacity: 0; }
.spw-scene.is-swap .sc-swap-a { opacity: 0; }
.spw-scene.is-swap .sc-swap-b { opacity: 1; }

/* cabin luggage on travellers */
.sc-bag--0 { fill: #2f4858; } .sc-bag--1 { fill: #c8553d; } .sc-bag--2 { fill: #2a8c82; } .sc-bag--3 { fill: #6b5b95; }
.sc-bag-rib { fill: rgba(255,255,255,.22); }
.sc-bag-wheel { fill: #1f2528; }
.sc-bag-handle { fill: none; stroke: #4a5357; stroke-width: 1.6; stroke-linejoin: round; }
.sc-bag-strap { fill: none; stroke: #3a4246; stroke-width: 1.6; stroke-linecap: round; }

/* stadium precinct shops and cafés */
.sc-shop-sign { fill: #263238; }
.sc-shop-name { fill: #fff; font: 700 9px var(--sp-font); letter-spacing: .08em; text-anchor: middle; text-transform: uppercase; }
.sc-awning--a { fill: #ec7434; } .sc-awning--b { fill: #2a8c82; } .sc-awning--c { fill: #1f6fc0; }

/* ---------------------------------------------------------------------------
   The core: the servers behind each scene sit just under the Smart pi hub (the
   heart of the ecosystem). Devices in the scene link up to the server that
   drives them; a server lights up while it is doing the work in a step.
   --------------------------------------------------------------------------- */
.sc-link--core path { opacity: .45; stroke: #aebfc9; stroke-width: 2; stroke-dasharray: none; }
.sc-link--core.is-on path { opacity: .8; stroke: var(--spw-blue); stroke-dasharray: 5 7; }
.sc-core-tile { cursor: pointer; transition: opacity .3s ease; }
.sc-core-tile__box { fill: #fff; stroke: var(--spw-blue); stroke-width: 1.6; filter: drop-shadow(0 4px 8px rgba(11,42,74,.12)); transition: fill .3s ease; }
.sc-core-tile__icon { color: var(--spw-blue); stroke-width: 3.2; transition: color .3s ease; }
.sc-core-tile__code { fill: var(--spw-blue); font: 700 12px var(--sp-font); letter-spacing: .05em; transition: fill .3s ease; }
.sc-core-tile__led { fill: #c6d3da; }
.sc-core-tile.is-on .sc-core-tile__box, .sc-core-tile.is-spot .sc-core-tile__box { fill: var(--spw-blue); }
.sc-core-tile.is-on .sc-core-tile__icon, .sc-core-tile.is-spot .sc-core-tile__icon { color: #fff; }
.sc-core-tile.is-on .sc-core-tile__code, .sc-core-tile.is-spot .sc-core-tile__code { fill: #fff; }
.sc-core-tile.is-on .sc-core-tile__led { fill: #5fdc74; animation: sc-led .9s steps(2) infinite; }
.sc-core-tile.is-on .sc-core-tile__led + .sc-core-tile__led { animation-delay: -.45s; }
.spw-scene.is-spotlit .sc-core-tile:not(.is-spot) { opacity: .35; }
@keyframes sc-led { 50% { fill: #2f9e44; } }

/* Focus: each step shows only the products doing the work (and those working with them).
   The rest fade out, and come back while their chip or marker is pointed at. */
.sc-dev, .sc-core-tile, .sc-link--core, .sc-feed, .sc-feedlink, .spw-feed { transition: opacity .45s ease; }
.spw-scene .sc-dev:not(.is-on):not(.is-spot),
.spw-scene .sc-core-tile:not(.is-on):not(.is-spot),
.spw-scene .sc-link--core:not(.is-on),
.spw-scene .sc-feed[data-dev]:not(.is-on),
.spw-scene .sc-feedlink[data-dev]:not(.is-on),
.spw-scene .spw-feed[data-dev]:not(.is-on) { opacity: 0; pointer-events: none; }
.spw-scene .sc-dev.is-on, .spw-scene .sc-dev.is-spot { opacity: 1; }
/* the caption chips: the products in this step stand out, the rest step back */
.spw-scene .spw-code--icon:not(.is-on):not(:hover):not(:focus-visible) { opacity: .5; }

/* RTA hands live data up to the ecosystem: its link runs in the data-feed green */
.sc-link--core[data-dev="core-rta"].is-on path { stroke: var(--sp-green); opacity: .7; }
.sc-link--core[data-dev="core-rta"] .sc-pulse--in { fill: var(--sp-green); filter: drop-shadow(0 0 4px rgba(49,204,75,.7)); }

/* roadside dot-matrix message sign (Smart city): amber text, switches to the warning */
.sc-vms__board { fill: #12181b; stroke: #3d474c; stroke-width: 3; }
.sc-vms__text { fill: #ffb020; font: 700 13px ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; text-anchor: middle; }
.sc-vms__normal, .sc-vms__alert { transition: opacity .4s ease; }
.sc-vms__alert { opacity: 0; }
.sc-vms.is-on .sc-vms__normal { opacity: 0; }
.sc-vms.is-on .sc-vms__alert { opacity: 1; animation: sc-vms-flash 1.2s steps(2) infinite; }
@keyframes sc-vms-flash { 50% { opacity: .35; } }

/* ==========================================================================
   Product pages (v2): marketing header, sticky section links, overview beside
   key features, specification cards, works with, updates and the portal band.
   ========================================================================== */
.spw-product .spw-product-panel { display: none; }

/* header */
.spw-phero { position: relative; overflow: hidden; isolation: isolate; background: var(--spw-mist); }
.spw-phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sp-bg); clip-path: polygon(0 0, 64% 0, 52% 100%, 0 100%); }
.spw-phero__inner {
  max-width: calc(var(--spw-max) + 2 * var(--spw-gutter)); margin: 0 auto;
  padding: clamp(28px, 4vw, 44px) var(--spw-gutter) clamp(40px, 5vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 72px); align-items: center;
}
.spw-phero .app-breadcrumb { display: flex; width: fit-content; margin-bottom: 28px; background: var(--sp-surface); border-color: var(--sp-border); color: var(--sp-muted); box-shadow: none; font-size: 12px; }
.spw-phero .app-breadcrumb-link { color: var(--spw-blue) !important; }
.spw-phero .app-breadcrumb-sep { color: var(--sp-muted-2); }
.spw-phero .spw-eyebrow { display: flex; width: fit-content; }
.spw-phero__title { margin: 0; font-size: clamp(2.4rem, 1.3rem + 3.2vw, 4rem); font-weight: 600; line-height: 1.03; letter-spacing: -0.035em; text-wrap: balance; }
.spw-phero__lead { max-width: 46ch; margin: 18px 0 30px; color: var(--sp-muted); font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); line-height: 1.5; }
.spw-phero__media { margin: 0; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: clamp(16px, 3vw, 32px); background: #fff; border: 1px solid var(--sp-border-soft); border-radius: 18px; box-shadow: var(--spw-shadow-lift); }
.spw-phero__media img { width: 100%; height: 100%; object-fit: contain; }
.spw-phero__media.is-empty { background: linear-gradient(135deg, var(--spw-blue), var(--spw-cyan)); border: 0; color: #fff; align-content: center; gap: 10px; }
.spw-phero__icon .spw-picon, .spw-phero__icon i { width: 96px; height: 96px; font-size: 72px; color: #fff; }
.spw-phero__code { font-size: 28px; font-weight: 700; font-style: italic; letter-spacing: .04em; }

/* sticky section links */
.spw-pnav { position: sticky; top: var(--sp-topbar-h); z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--sp-border); }
.spw-pnav__inner { max-width: calc(var(--spw-max) + 2 * var(--spw-gutter)); margin: 0 auto; padding: 0 var(--spw-gutter); display: flex; align-items: center; gap: 22px; min-height: 56px; }
.spw-pnav__name { color: var(--sp-text-strong); font-size: 15px; font-style: italic; letter-spacing: .03em; }
.spw-pnav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; flex: 1; }
.spw-pnav ul::-webkit-scrollbar { display: none; }
.spw-pnav a:not(.spw-btn) { display: block; padding: 18px 12px; color: var(--sp-muted); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.spw-pnav a:not(.spw-btn):hover, .spw-pnav a.is-active { color: var(--sp-text-strong); border-bottom-color: var(--sp-orange); }

/* overview */
.spw-pcontent > .spw-poverview { margin-top: clamp(44px, 6vw, 80px) !important; }
.spw-poverview { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.spw-poverview > * { margin: 0 !important; }
.spw-poverview__text .spw-lead:first-child { margin-top: 0; font-size: 1.2rem; color: var(--sp-text-strong); }
.spw-keyfeatures { padding: 24px 26px; background: var(--sp-surface-raised); border: 1px solid var(--sp-border-soft); border-radius: var(--sp-radius-card); }
.spw-keyfeatures__title { margin: 0 0 16px !important; font-size: 13px !important; font-weight: 600; letter-spacing: .1em !important; text-transform: uppercase; color: var(--sp-orange) !important; }
.spw-keyfeatures .spw-features { gap: 12px; }
.spw-keyfeatures .spw-features li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.spw-keyfeatures .spw-features i { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; display: grid; place-items: center; border-radius: 50%; background: var(--sp-green); color: #fff; font-size: 10px; }

/* specifications */
.spw-pspecs { margin-top: clamp(56px, 7vw, 96px) !important; }
.spw-pspecs > h2 { margin: 0 0 22px !important; }
.spw-pspecs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.spw-pspecs__grid > * { margin: 0 !important; }
.spw-spec { padding: 20px 22px; background: var(--sp-surface); border: 1px solid var(--sp-border); border-radius: var(--sp-radius-card); }
.spw-spec.is-wide { grid-column: 1 / -1; }
.spw-spec > h3 { margin: 0 0 12px !important; color: var(--sp-text-strong) !important; font-size: 1.05rem !important; }
.spw-spec h4 { margin: 0 0 8px; color: var(--spw-blue); font-size: 15px; }
.spw-spec ul.wp-block-list { margin: 0; }
.spw-spec .spw-specs table { border: 0; border-radius: 0; }
.spw-spec .spw-specs th, .spw-spec .spw-specs td { padding: 9px 10px; }
.spw-spec .spw-specs tbody th { width: 38%; background: transparent; color: var(--sp-muted); font-weight: 500; }
.spw-spec .spw-spec-columns { margin: 0; gap: 24px; }
figure.spw-spec { padding: 14px; background: #fff; }
figure.spw-spec img { border: 0; width: 100%; height: auto; }

/* sections after the content */
.spw-pfoot { margin-top: clamp(56px, 7vw, 96px) !important; display: grid; gap: clamp(48px, 6vw, 80px); }
.spw-pfoot > * { margin: 0 !important; }
.spw-psection { scroll-margin-top: calc(var(--sp-topbar-h) + 72px); }
.spw-pcontent [id] { scroll-margin-top: calc(var(--sp-topbar-h) + 72px); }
.spw-psection h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -0.02em; }
.spw-psection__intro { margin: 0 0 22px; color: var(--sp-muted); }
.spw-psection__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 14px; }
.spw-psection__head h2 { margin: 0; }
.spw-link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--spw-link); font-weight: 600; font-size: 14px; text-decoration: none; }
.spw-link-arrow i { transition: transform .2s var(--spw-ease); }
.spw-link-arrow:hover i { transform: translateX(4px); }

/* works with */
.spw-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.spw-related__item { display: flex; align-items: center; gap: 14px; height: 100%; padding: 14px 16px; background: var(--sp-surface); border: 1px solid var(--sp-border); border-radius: var(--sp-radius-card); text-decoration: none; transition: border-color .2s ease, transform .25s var(--spw-ease), box-shadow .25s ease; }
.spw-related__item:hover { border-color: var(--spw-blue); transform: translateY(-2px); box-shadow: var(--spw-shadow); }
.spw-related__icon { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--spw-code-bg); color: var(--spw-blue); font-size: 18px; }
.spw-related__icon .spw-picon { width: 26px; height: 26px; }
.spw-related__item strong { display: block; color: var(--sp-text-strong); font-size: 15px; font-style: italic; letter-spacing: .02em; }
.spw-related__item small { display: block; color: var(--sp-muted); font-size: 13px; line-height: 1.35; }
.spw-related__solutions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 0; }
.spw-related__solutions > span { margin-right: 4px; color: var(--sp-muted); font-size: 14px; }
.spw-related__solutions .spw-pill { height: 32px; font-size: 13px; text-decoration: none; }

/* updates list */
.spw-updates { margin: 0; padding: 0; list-style: none; border: 1px solid var(--sp-border); border-radius: var(--sp-radius-card); background: var(--sp-surface); overflow: hidden; }
.spw-update { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--sp-border-soft); }
.spw-update:first-child { border-top: 0; }
.spw-update:hover { background: var(--sp-surface-raised); }
.spw-update__tag { justify-self: start; padding: 3px 9px; border-radius: var(--sp-radius-chip); background: var(--spw-code-bg); border: 1px solid var(--spw-code-border); color: var(--spw-code-ink); font: 700 11px var(--sp-font); letter-spacing: .04em; white-space: nowrap; }
.spw-update.is-news .spw-update__tag { background: rgba(243,112,33,.1); border-color: rgba(243,112,33,.35); color: #b8501a; }
.spw-update__title { color: var(--sp-text-strong); font-weight: 500; text-decoration: none; }
.spw-update__title:hover { color: var(--spw-link); }
.spw-update__date { color: var(--sp-muted); font-size: 13px; white-space: nowrap; }

/* client portal band */
.spw-portalband { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px; padding: 22px 26px; background: var(--spw-mist); border: 1px solid var(--sp-border-soft); border-radius: var(--sp-radius-card); }
.spw-portalband__icon { flex: 0 0 auto; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--spw-blue); color: #fff; font-size: 18px; }
.spw-portalband__text { flex: 1 1 320px; }
.spw-portalband__text strong { display: block; color: var(--sp-text-strong); font-size: 17px; }
.spw-portalband__text span { color: var(--sp-muted); font-size: 15px; }
.spw-article .spw-portalband { margin-top: 48px; }

/* news hub, homepage strip and article pages */
.spw-news__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; }
.spw-news__filters .spw-pill { height: 34px; font-size: 13px; text-decoration: none; }
.spw-pill[aria-current="true"] { background: var(--spw-blue); border-color: var(--spw-blue); color: #fff; }
.spw-news__sep { width: 1px; height: 22px; margin: 0 6px; background: var(--sp-border); }
.spw-news__empty { color: var(--sp-muted); }
.spw-newsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.spw-newscard { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; background: var(--sp-surface); border: 1px solid var(--sp-border); border-top: 4px solid var(--spw-cyan); border-radius: var(--sp-radius-card); box-shadow: var(--spw-shadow); transition: transform .25s var(--spw-ease), box-shadow .25s ease; }
.spw-newscard.is-news { border-top-color: var(--sp-orange); }
.spw-newscard:hover { transform: translateY(-3px); box-shadow: var(--spw-shadow-lift); }
.spw-newscard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.spw-newscard__kind { color: var(--sp-muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.spw-newscard.is-news .spw-newscard__kind { color: var(--sp-orange); }
.spw-newscard h3 { margin: 0; font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
.spw-newscard p { margin: 0; color: var(--sp-muted); font-size: 14.5px; flex: 1; }
.spw-newscard time { color: var(--sp-muted-2); font-size: 13px; }
.spw-news__pages { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 32px; color: var(--sp-muted); font-size: 14px; }
.spw-newsstrip__more { margin: 24px 0 0; }
.spw-articlemeta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: clamp(32px, 5vw, 56px) 0 24px; padding-bottom: 18px; border-bottom: 1px solid var(--sp-border-soft); color: var(--sp-muted); font-size: 14px; }
.spw-articlemeta__back { color: var(--spw-link); font-weight: 600; text-decoration: none; margin-right: auto; }
.spw-article { overflow-wrap: anywhere; }
/* Some older posts from the previous site hold plain release notes in <pre class="code"> blocks. */
.spw-article pre.code { white-space: pre-wrap; font: inherit; background: none; border: 0; padding: 0; }
.spw-article img { max-width: 100%; height: auto; border-radius: 8px; }

@media (max-width: 960px) {
  .spw-phero__inner, .spw-poverview { grid-template-columns: minmax(0, 1fr); }
  .spw-phero__media { max-width: 520px; }
  .spw-pspecs__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .spw-phero::before { clip-path: none; }
  .spw-pnav__name, .spw-pnav__cta { display: none; }
  .spw-pnav__inner { gap: 0; }
  .spw-update { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .spw-keyfeatures { padding: 20px; }
}

/* news hub: endless scrolling (see site.js) */
.spw-news__more { display: flex; justify-content: center; margin-top: 32px; min-height: 48px; }
.spw-news__more.is-loading button { color: transparent !important; position: relative; }
.spw-news__more.is-loading button::after { content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border: 2px solid var(--sp-border); border-top-color: var(--sp-orange); border-radius: 50%; animation: spw-spin .7s linear infinite; }
.spw-news__end { margin: 0; color: var(--sp-muted); font-size: 14px; }
@keyframes spw-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spw-news__more.is-loading button::after { animation-duration: 2s; } }

/* ==========================================================================
   Audio signal flow (blocks/signal-flow.php): simple and calm, but technical.
   Orange audio path with a gentle flowing signal, soft rounded blocks with
   their standard symbols in brand blue, cyan dashed noise sensing.
   ========================================================================== */
.spw-sf { --sf-audio: var(--sp-orange); --sf-ink: var(--sp-text-strong); --sf-mute: var(--sp-muted); --sf-sym: var(--spw-blue); --sf-ctl: #0a9cba; --sf-tint: #f2f6f9; margin: 0; }
.spw-sf__legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 10px; padding: 0; list-style: none; color: var(--sf-mute); font-size: 13px; }
.spw-sf__legend li { display: inline-flex; align-items: center; gap: 8px; }
.spw-sf__legend svg { width: 30px; height: 12px; overflow: visible; }
.spw-sf__scroll { overflow-x: auto; }
.spw-sf__svg { display: block; width: 100%; min-width: 860px; height: auto; font-family: var(--sp-font); }
.spw-sf__wire { fill: none; stroke: var(--sf-audio); stroke-width: 2.2; stroke-linecap: round; }
.spw-sf__wire.is-bus { stroke-width: 3.5; }
.spw-sf__fill { fill: var(--sf-audio); }
.spw-sf__node { fill: var(--sf-audio); }
.spw-sf__flow { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 0.1 26; opacity: .9; animation: spw-sf-flow 1.6s linear infinite; }
@keyframes spw-sf-flow { to { stroke-dashoffset: -26.1; } }
@media (prefers-reduced-motion: reduce) { .spw-sf__flow { animation: none; display: none; } }
.spw-sf__ctl { fill: none; stroke: var(--sf-ctl); stroke-width: 2; stroke-dasharray: 5 5; stroke-linecap: round; }
.spw-sf__ctlfill { fill: var(--sf-ctl); }
.spw-sf__frame { fill: var(--sf-tint); stroke: none; }
.spw-sf__stack { fill: #e6edf2; stroke: none; }
.spw-sf__pill { fill: #fff; }
.spw-sf__block rect { fill: #fff; stroke: #dbe4ea; stroke-width: 1; filter: drop-shadow(0 4px 10px rgba(11,42,74,.08)); }
.spw-sf__block.has-sidechain rect { stroke: var(--sf-ctl); stroke-width: 1.6; }
.spw-sf__sym { fill: none; stroke: var(--sf-sym); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.spw-sf__sym .spw-sf__fill { fill: var(--sf-sym); stroke: none; }
.spw-sf__axis { stroke: #c6d3dc !important; stroke-width: 1.2 !important; }
.spw-sf__glyph { fill: var(--sf-sym); stroke: none; font: 600 17px var(--sp-font); text-anchor: middle; }
.spw-sf__tiny { fill: var(--sf-mute); stroke: none; font: 600 7.5px var(--sp-font); }
.spw-sf__meter rect { fill: var(--sp-green); }
.spw-sf__port { fill: none; stroke: var(--sf-sym); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.spw-sf__portbg { fill: #eaf3fb; stroke: none; }
.spw-sf__port.is-ctl { stroke: var(--sf-ctl); }
.spw-sf__port.is-ctl .spw-sf__portbg { fill: #e3f5f9; }
.spw-sf__colhead { fill: var(--sf-mute); font: 700 10.5px var(--sp-font); letter-spacing: .14em; }
.spw-sf__repeat { fill: var(--sf-ink); font: 600 11px var(--sp-font); }
.spw-sf__label { fill: var(--sf-ink); font: 600 12px var(--sp-font); }
.spw-sf__label.is-ctl { fill: #007b90; }
.spw-sf__param { fill: var(--sf-mute); font: 400 10.5px var(--sp-font); }
.spw-sf__modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 14px 0 0; }
.spw-sf__modes > div { padding: 10px 14px; border-radius: 10px; background: var(--sf-tint); }
.spw-sf__modes dt { color: var(--sf-ink); font-weight: 700; font-size: 14px; }
.spw-sf__modes dd { margin: 2px 0 0; color: var(--sf-mute); font-size: 13px; }
.spw-sf__note { margin: 12px 0 0; color: var(--sf-mute); font-size: 13px; }
.spw-spec.is-flow { padding: 24px 26px 26px; }
.spw-spec.is-flow > h3 { margin-bottom: 16px !important; }

/* ==========================================================================
   News v2: stories (image cards) and product updates (compact changelog),
   plus the homepage "Latest" band under the hero.
   ========================================================================== */
.spw-news__section + .spw-news__section { margin-top: clamp(48px, 6vw, 80px); }
.spw-news__section h2 { margin: 0; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -0.02em; }
.spw-news__count { color: var(--sp-muted); font-size: 14px; }
.spw-more { margin: 28px 0 0 !important; }

/* story cards */
.spw-story { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--sp-surface); border: 1px solid var(--sp-border); border-radius: var(--sp-radius-card); overflow: hidden; box-shadow: var(--spw-shadow); transition: transform .25s var(--spw-ease), box-shadow .25s ease; }
.spw-story:hover { transform: translateY(-3px); box-shadow: var(--spw-shadow-lift); }
.spw-story__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, var(--spw-blue), var(--spw-cyan)); }
.spw-story__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--spw-ease); }
.spw-story:hover .spw-story__media img { transform: scale(1.04); }
.spw-story__placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: clamp(22px, 3vw, 34px); font-weight: 700; font-style: italic; letter-spacing: .04em; }
.spw-story__body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; flex: 1; }
.spw-story__meta { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--sp-orange); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.spw-story h3 { margin: 0; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.spw-story__summary { margin: 0; color: var(--sp-muted); font-size: 15px; flex: 1; }
.spw-story time { color: var(--sp-muted-2); font-size: 13px; }
.spw-story.is-featured { flex-direction: row; margin-bottom: 20px; }
.spw-story.is-featured .spw-story__media { flex: 0 0 56%; aspect-ratio: auto; min-height: 320px; }
.spw-story.is-featured .spw-story__body { justify-content: center; padding: clamp(24px, 3vw, 40px); }
.spw-story.is-featured h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); letter-spacing: -0.02em; }
.spw-story.is-featured .spw-story__summary { flex: 0; font-size: 16px; }
.spw-stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(260px, calc((100% - 40px) / 3)), 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }

/* product updates: compact changelog */
.spw-ulog { margin: 0; padding: 0; list-style: none; border: 1px solid var(--sp-border); border-radius: var(--sp-radius-card); background: var(--sp-surface); overflow: hidden; }
.spw-ulog__month { padding: 10px 18px; background: var(--sp-surface-raised); border-top: 1px solid var(--sp-border-soft); color: var(--sp-muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.spw-ulog__month:first-child { border-top: 0; }
.spw-ulog__row { position: relative; display: grid; grid-template-columns: 64px 92px 84px minmax(0, 1fr); align-items: center; gap: 14px; padding: 12px 18px; border-top: 1px solid var(--sp-border-soft); }
.spw-ulog__row:hover { background: var(--sp-surface-raised); }
.spw-ulog__row time { color: var(--sp-muted); font-size: 13px; white-space: nowrap; }
.spw-ulog__row .spw-code { justify-self: start; }
.spw-ulog__version { color: var(--sp-text-strong); font: 600 13px var(--sp-font-mono, ui-monospace, monospace); }
.spw-ulog__row a { color: var(--sp-text-strong); font-weight: 500; text-decoration: none; }
.spw-ulog__row a::after { content: ""; position: absolute; inset: 0; }
.spw-ulog__row:hover a { color: var(--spw-link); }
.spw-ulog.is-compact .spw-ulog__month { display: none; }
.spw-ulog.is-compact .spw-ulog__row { grid-template-columns: 56px 84px minmax(0, 1fr); padding: 11px 16px; }
.spw-ulog.is-compact .spw-ulog__month:first-child + .spw-ulog__row { border-top: 0; }
.spw-ulog.is-compact .spw-ulog__version { display: none; }

/* homepage Latest band */
.spw-section.spw-latestband { padding-block: clamp(44px, 6vw, 72px); margin-top: 0; }
.spw-latestband h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem) !important; margin-bottom: 26px !important; }
.spw-latest { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 36px); align-items: stretch; }
.spw-story.is-compact .spw-story__summary { flex: 0; }
.spw-latest__updates { display: flex; flex-direction: column; }
.spw-latest__title { margin: 0 0 12px; color: var(--sp-text-strong); font-size: 17px; }
.spw-latest__updates .spw-ulog { flex: 1; }
.spw-latest__more { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 16px 0 0; }

@media (max-width: 960px) {
  .spw-latest { grid-template-columns: minmax(0, 1fr); }
  .spw-story.is-featured { flex-direction: column; }
  .spw-story.is-featured .spw-story__media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
}
@media (max-width: 767px) {
  .spw-ulog__row { grid-template-columns: auto auto minmax(0, 1fr); gap: 4px 10px; }
  .spw-ulog__row a { grid-column: 1 / -1; }
  .spw-ulog.is-compact .spw-ulog__row { grid-template-columns: auto auto; }
}
@media (max-width: 767px) {
  /* one swipeable row of filters instead of three wrapped rows */
  .spw-news__filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--spw-gutter)); padding: 2px var(--spw-gutter); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .spw-news__filters::-webkit-scrollbar { display: none; }
  .spw-news__filters .spw-pill { flex: 0 0 auto; }
}

/* ---------- Downloads ---------------------------------------------------- */
.spw-downloads { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(40px, 6vw, 72px); }
.spw-downloads__filters .spw-pill i { font-size: 12px; opacity: .8; }

.spw-dlcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.spw-dlcard { display: grid; grid-template-columns: minmax(120px, 38%) minmax(0, 1fr); min-width: 0; overflow: hidden; background: var(--sp-surface); border: 1px solid var(--sp-border); border-radius: var(--sp-radius-card); box-shadow: var(--spw-shadow); transition: box-shadow .2s var(--spw-ease), transform .2s var(--spw-ease); }
.spw-dlcard:hover { box-shadow: var(--spw-shadow-lift); transform: translateY(-2px); }
.spw-dlcard__cover { display: grid; place-items: center; padding: 22px; background: var(--spw-mist); border-right: 1px solid var(--sp-border-soft); color: var(--sp-muted); font-size: 40px; }
.spw-dlcard__cover img { display: block; width: auto; height: auto; max-width: 100%; max-height: 220px; border-radius: 4px; box-shadow: 0 1px 2px rgba(18,24,27,.08), 0 10px 24px rgba(18,24,27,.16); transition: transform .25s var(--spw-ease); }
.spw-dlcard:hover .spw-dlcard__cover img { transform: translateY(-3px) rotate(-1deg); }
.spw-dlcard__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 22px 24px; }
.spw-dlcard__body h3 { margin: 0; font-size: 19px; }
.spw-dlcard__body p { margin: 0; color: var(--sp-muted); font-size: 15px; }
.spw-dlcard__body .spw-btn { margin-top: auto; }
.spw-dlcard__body .spw-dl__meta { margin-bottom: 10px; }

.spw-dls { margin: 0; padding: 0; list-style: none; background: var(--sp-surface); border: 1px solid var(--sp-border); border-radius: var(--sp-radius-card); overflow: hidden; }
.spw-dl { display: grid; grid-template-columns: 40px 1fr auto auto; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--sp-border-soft); margin-bottom: -1px; } /* the list clips the last row's line */
.spw-dl[hidden] { display: none; }
.spw-dl:hover { background: var(--sp-surface-raised); }
.spw-dl__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--spw-code-bg); color: var(--spw-code-ink); }
.spw-dl__icon svg { width: 24px; height: 24px; }
.spw-dl__text { display: grid; gap: 3px; min-width: 0; }
.spw-dl__title { font-weight: 600; color: var(--sp-text-strong) !important; text-decoration: none; }
.spw-dl__title:hover { color: var(--spw-blue) !important; text-decoration: underline; }
.spw-dl__meta { color: var(--sp-muted); font-size: 13.5px; }
.spw-dl__date { color: var(--sp-muted); font-size: 13px; white-space: nowrap; }
.spw-dl__get { white-space: nowrap; }

@media (max-width: 640px) {
  .spw-dlcard { grid-template-columns: minmax(0, 1fr); }
  .spw-dlcard__cover { padding: 18px; border-right: 0; border-bottom: 1px solid var(--sp-border-soft); }
  .spw-dlcard__cover img { max-height: 170px; }
  .spw-dlcard__body { padding: 18px 20px; }
  .spw-dl { grid-template-columns: 36px 1fr auto; gap: 12px; padding: 12px 14px; }
  .spw-dl__icon { width: 36px; height: 36px; }
  .spw-dl__date { display: none; }
  .spw-dl__get { width: 40px; padding: 0; justify-content: center; }
  .spw-dl__get > span:not(.screen-reader-text) { display: none; }
}

/* ---------- Contact: world map + region cards ---------- */
.spw-reach { --map-land: rgba(255,255,255,.2); --map-ink: #f37021; display: grid; }
.spw-map {
  position: relative; margin: 0; padding: clamp(20px, 4vw, 48px) clamp(12px, 3vw, 40px) clamp(90px, 10vw, 140px);
  border-radius: 20px; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 88% 85%, rgba(243,112,33,.18), transparent 55%), radial-gradient(90% 80% at 15% 10%, rgba(0,172,201,.12), transparent 60%), #13181b;
  box-shadow: 0 30px 70px rgba(18,24,27,.22);
}
.spw-map::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 0 60%, rgba(0,0,0,.25)); pointer-events: none; }
.spw-map__stage { position: relative; max-width: 1100px; margin-inline: auto; }
.spw-map__svg { display: block; width: 100%; height: auto; overflow: visible; }
.spw-map__land { stroke: var(--map-land); stroke-width: .95; stroke-linecap: round; fill: none; transition: stroke .4s ease; }
.spw-map__anz { stroke: var(--map-ink); stroke-width: 1.15; stroke-linecap: round; fill: none; filter: drop-shadow(0 0 1.2px rgba(243,112,33,.9)); transition: opacity .4s ease; }
.spw-map__arc { fill: none; stroke: rgba(0,172,201,.35); stroke-width: .35; stroke-dasharray: 1 1.2; transition: stroke .4s ease; }
.spw-map__packet { fill: none; stroke: #5fe3f5; stroke-width: .7; stroke-linecap: round; stroke-dasharray: 7 93; stroke-dashoffset: 100; opacity: 0; animation: spw-packet 4.2s var(--spw-ease) infinite; animation-delay: calc(var(--i) * .6s); }
.spw-map__city { fill: #5fe3f5; }
.spw-map__ping { fill: none; stroke: #5fe3f5; stroke-width: .4; transform-box: fill-box; transform-origin: center; opacity: 0; animation: spw-ping 4.2s ease-out infinite; animation-delay: calc(var(--i) * .6s + 1.6s); }
.spw-map__home { fill: #fff; stroke: var(--map-ink); stroke-width: 1; }
.spw-map__home-ping { fill: var(--map-ink); transform-box: fill-box; transform-origin: center; animation: spw-home 2.4s ease-out infinite; }
.spw-map__glow { transition: opacity .4s ease; }
@keyframes spw-packet { 0% { stroke-dashoffset: 100; opacity: 0; } 8% { opacity: 1; } 45% { stroke-dashoffset: 7; opacity: 1; } 55%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes spw-ping { 0% { transform: scale(1); opacity: .9; } 30%, 100% { transform: scale(5); opacity: 0; } }
@keyframes spw-home { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(5.5); opacity: 0; } }

.spw-map__tag {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; white-space: nowrap;
  background: rgba(19,24,27,.78); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px);
  color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .01em; transition: border-color .4s ease, box-shadow .4s ease;
}
.spw-map__tag--anz { transform: translate(calc(-100% + 24px), 16px); }
.spw-map__tag--anz i { color: var(--map-ink); }
.spw-map__tag--world { transform: translate(-50%, calc(-100% - 14px)); }
.spw-map__tag--world i { color: #5fe3f5; }

/* Hovering a card lights up its region. */
.spw-reach[data-focus="anz"] .spw-map__land { stroke: rgba(255,255,255,.1); }
.spw-reach[data-focus="anz"] .spw-map__arcs { opacity: .25; }
.spw-reach[data-focus="anz"] .spw-map__tag--anz { border-color: var(--map-ink); box-shadow: 0 0 0 4px rgba(243,112,33,.2); }
.spw-reach[data-focus="world"] .spw-map__land { stroke: rgba(95,227,245,.42); }
.spw-reach[data-focus="world"] .spw-map__anz { opacity: .45; }
.spw-reach[data-focus="world"] .spw-map__arc { stroke: rgba(95,227,245,.7); }
.spw-reach[data-focus="world"] .spw-map__tag--world { border-color: #5fe3f5; box-shadow: 0 0 0 4px rgba(95,227,245,.18); }
.spw-map__arcs { transition: opacity .4s ease; }

.spw-reach__cards { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 22px; margin: calc(-1 * clamp(60px, 7vw, 100px)) clamp(0px, 3vw, 40px) 0; }
.spw-reach__card {
  position: relative; display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: clamp(22px, 3vw, 32px);
  background: var(--sp-surface); border: 1px solid var(--sp-border-soft); border-radius: 18px; box-shadow: var(--spw-shadow-lift);
  transition: transform .35s var(--spw-ease), box-shadow .35s ease;
}
.spw-reach__card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; border-radius: 18px 18px 0 0; background: linear-gradient(90deg, #f37021, #e04e1b); }
.spw-reach__card--world::before { background: linear-gradient(90deg, #00acc9, var(--spw-blue)); }
.js .spw-reach__card.spw-reveal.is-in:hover, .spw-reach__card:hover { transform: translateY(-4px); }
.spw-reach__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; min-height: 56px; }
.spw-reach__logo img { display: block; width: auto; height: 46px; max-width: 220px; object-fit: contain; }
.spw-reach__logo strong { color: var(--spw-orange); font-size: 30px; font-weight: 800; }
.spw-reach__globe {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; font-size: 26px; color: #fff;
  background: radial-gradient(circle at 30% 25%, #5fe3f5, #00acc9 45%, var(--spw-blue)); box-shadow: 0 10px 24px rgba(0,84,166,.3);
}
.spw-reach__globe i { animation: spw-spin 24s linear infinite; }
@keyframes spw-spin { to { transform: rotate(360deg); } }
.spw-reach__badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: rgba(243,112,33,.1); color: #c4521a; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.spw-reach__badge--world { background: rgba(0,172,201,.1); color: #00728a; }
.spw-reach .spw-reach__region { margin: 0; color: var(--sp-text-strong); font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
.spw-reach__lead { margin: -6px 0 0; color: var(--sp-muted); font-size: 16px; line-height: 1.6; }
.spw-reach__rows { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--sp-border-soft); }
.spw-reach__rows li { display: grid; grid-template-columns: 20px 70px minmax(0, 1fr); align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--sp-border-soft); font-size: 15px; }
.spw-reach__rows i { color: var(--spw-orange); text-align: center; }
.spw-reach__rows span { color: var(--sp-muted); }
.spw-reach__rows a, .spw-reach__rows .spw-reach__val { color: var(--sp-text-strong); font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.spw-reach__rows a:hover { color: var(--spw-orange); }
.spw-reach__help { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.spw-reach__help li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--sp-surface-raised); border: 1px solid var(--sp-border-soft); color: var(--sp-text-strong); font-size: 14px; font-weight: 500; }
.spw-reach__help i { width: 18px; color: #00a0bc; text-align: center; }
.spw-reach__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.spw-reach__actions .spw-btn { flex: 1 1 auto; justify-content: center; }

@media (max-width: 760px) {
  .spw-map { padding-bottom: 70px; border-radius: 16px; }
  .spw-map__tag { display: none; }
  .spw-reach__cards { margin: -48px 8px 0; }
  .spw-reach__help { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .spw-map__packet, .spw-map__ping, .spw-map__home-ping, .spw-reach__globe i { animation: none; }
}

/* Home intro: the paragraph starts level with the label, so both columns start at the top. */
.spw-hero__intro { align-items: start; }
.spw-hero__intro .spw-eyebrow { margin-bottom: 14px; }
.spw-hero__intro .spw-hero__lead { margin-top: 0; }

/* Page headers: tighter, and the first section after a header starts closer to it. */
.spw-banner .spw-hero__lead { max-width: 72ch; margin-top: 10px; font-size: clamp(1rem, .95rem + .2vw, 1.0625rem); line-height: 1.55; }
.spw-banner__title + .spw-hero__lead { margin-top: 10px; }
:is(.spw-banner, .wp-block-smartpi-page-banner) + .spw-content > .spw-section:first-child,
:is(.spw-banner, .wp-block-smartpi-page-banner) + .spw-section,
:is(.spw-banner, .wp-block-smartpi-page-banner) + .spw-content.spw-article { padding-top: clamp(28px, 3.5vw, 48px); margin-top: 0; }
.wp-block-smartpi-page-banner + .wp-block-smartpi-product-grid .spw-families { padding-top: clamp(28px, 3.5vw, 48px); }
.wp-block-smartpi-page-banner + .wp-block-smartpi-solution-grid .spw-solutions { padding-top: clamp(28px, 3.5vw, 48px); }
.wp-block-smartpi-page-banner + .spw-article > .entry-content:first-child { margin-top: 0; }

/* Product pages: compact header, in line with the other page headers. */
.spw-phero .spw-phero__inner { padding-top: clamp(20px, 2.5vw, 28px); padding-bottom: clamp(28px, 3.5vw, 44px); gap: clamp(24px, 4vw, 56px); }
@media (min-width: 961px) { .spw-phero .spw-phero__inner { grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); } }
@media (max-width: 960px) { .spw-phero__media { max-height: 220px; width: 100%; } }
.spw-phero .app-breadcrumb { margin-bottom: 18px; }
.spw-phero .spw-eyebrow { margin-bottom: 12px; }
.spw-phero__title { font-size: clamp(2rem, 1.2rem + 2vw, 3rem); line-height: 1.08; }
.spw-phero__lead { max-width: 60ch; margin: 12px 0 22px; font-size: clamp(1rem, .95rem + .25vw, 1.125rem); }
.spw-phero__media { aspect-ratio: 16 / 11; max-height: 300px; padding: clamp(12px, 2vw, 22px); border-radius: 16px; }
.spw-phero__icon .spw-picon, .spw-phero__icon i { width: 72px; height: 72px; font-size: 54px; }
.spw-phero__code { font-size: 22px; }
.spw-pcontent > .spw-poverview { margin-top: clamp(28px, 3.5vw, 48px) !important; }
/* Text starts at the top, like every other page header, so the breadcrumb lines up across the site. */
.spw-phero .spw-phero__inner { align-items: start; }
.spw-phero .spw-phero__media { align-self: center; }
/* Software dashboard previews fill their tile without a padded photo mount. */
.spw-phero .spw-phero__media--dashboard { padding: 0; aspect-ratio: 8 / 5; overflow: hidden; }
.spw-phero__media--dashboard img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* Contact map: the world in Smart Pi cyan (direct), Australia and New Zealand orange (QVEST). No arcs. */
.spw-map__land { stroke: rgba(0,172,201,.62); }
.spw-reach[data-focus="anz"] .spw-map__land { stroke: rgba(0,172,201,.22); }
.spw-reach[data-focus="world"] .spw-map__land { stroke: #5fe3f5; }
.spw-reach[data-focus="world"] .spw-map__anz { opacity: .35; }
/* Smaller map so the header, map and both cards fit on one screen. */
.spw-map { padding: clamp(14px, 2vw, 24px) clamp(12px, 3vw, 40px) clamp(70px, 7vw, 96px); }
.spw-map__stage { max-width: 620px; }
.spw-reach__cards { margin-top: calc(-1 * clamp(50px, 5vw, 72px)); }
.spw-reach__card { gap: 14px; padding: clamp(18px, 2.4vw, 26px); }
.spw-reach__rows li { padding: 10px 0; }
.spw-reach__help li { padding: 9px 12px; }
@media (max-width: 760px) { .spw-reach__cards { margin-top: -40px; } }
.spw-map__stage { max-width: 520px; }
.spw-map { padding-bottom: clamp(90px, 9vw, 120px); }
.spw-reach__cards { margin-top: calc(-1 * clamp(70px, 8vw, 110px)); }
.spw-reach__head { min-height: 44px; }
.spw-reach__logo img { height: 38px; }
.spw-reach__globe { width: 44px; height: 44px; border-radius: 13px; font-size: 21px; }
.spw-reach__lead { margin-top: -4px; font-size: 15px; }
.spw-reach__help { display: flex; flex-wrap: wrap; gap: 8px; }
.spw-reach__help li { padding: 6px 12px; border-radius: 999px; font-size: 13px; }
@media (max-width: 760px) { .spw-reach__cards { margin-top: -50px; } .spw-map { padding-bottom: 70px; } }
.spw-map__stage { max-width: 440px; }
.spw-map { padding-top: 16px; padding-bottom: clamp(84px, 8vw, 104px); }
.spw-reach__card { gap: 10px; padding: clamp(16px, 2vw, 22px); }
.spw-reach .spw-reach__region { font-size: clamp(21px, 1.8vw, 24px); }
.spw-reach__rows li { padding: 7px 0; font-size: 14.5px; }
.spw-reach__actions { margin-top: 6px; }
:is(.spw-banner, .wp-block-smartpi-page-banner) + .spw-content > .spw-section:first-child .spw-reach { margin-top: -12px; }

/* Contact, final layout: Worldwide card | map | QVEST card, all on one screen. */
.spw-reach { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.spw-reach__cards { display: contents; }
.spw-reach__card--world { order: 1; }
.spw-reach .spw-map { order: 2; }
.spw-reach__card--partner { order: 3; }
.spw-reach .spw-map { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: clamp(18px, 2vw, 26px); border-radius: 18px; }
.spw-reach .spw-map__stage { max-width: none; width: 100%; }
.spw-reach:not(.x) .spw-reach__cards { margin: 0; }
.spw-map__legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin: 0; padding: 0; list-style: none; }
.spw-map__key { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.85); font-size: 13px; font-weight: 600; transition: color .3s ease; }
.spw-map__key span { width: 10px; height: 10px; border-radius: 50%; }
.spw-map__key--world span { background: #00acc9; box-shadow: 0 0 0 3px rgba(0,172,201,.25); }
.spw-map__key--anz span { background: #f37021; box-shadow: 0 0 0 3px rgba(243,112,33,.25); }
.spw-reach[data-focus="world"] .spw-map__key--anz, .spw-reach[data-focus="anz"] .spw-map__key--world { color: rgba(255,255,255,.4); }
@media (max-width: 1100px) {
  .spw-reach { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .spw-reach .spw-map { order: 0; grid-column: 1 / -1; }
  .spw-reach .spw-map__stage { max-width: 560px; margin-inline: auto; }
}
@media (max-width: 700px) { .spw-reach { grid-template-columns: minmax(0, 1fr); } }
/* Rebalance: narrow cards, wide map, brighter world dots. */
.spw-reach { grid-template-columns: minmax(0, .8fr) minmax(0, 1.7fr) minmax(0, .8fr); gap: 16px; }
.spw-reach .spw-map { padding: 16px 18px 18px; gap: 12px; }
.spw-map__land { stroke: rgba(40,198,224,.88); stroke-width: 1.05; }
.spw-reach[data-focus="anz"] .spw-map__land { stroke: rgba(40,198,224,.3); }
.spw-reach[data-focus="world"] .spw-map__land { stroke: #7eeeff; }
.spw-reach__card { gap: 9px; padding: 18px; border-radius: 16px; }
.spw-reach__card .spw-reach__badge { padding: 4px 9px; font-size: 10.5px; }
.spw-reach__logo img { height: 32px; }
.spw-reach__globe { width: 38px; height: 38px; font-size: 18px; border-radius: 11px; }
.spw-reach__head { min-height: 38px; gap: 8px; }
.spw-reach .spw-reach__region { font-size: 20px; }
.spw-reach__lead { font-size: 14px; line-height: 1.5; }
.spw-reach__rows li { grid-template-columns: 16px 52px minmax(0, 1fr); gap: 8px; padding: 6px 0; font-size: 13.5px; }
.spw-reach__help { gap: 6px; }
.spw-reach__help li { padding: 4px 10px; font-size: 12px; gap: 6px; }
.spw-reach__actions { gap: 8px; }
.spw-reach__actions .spw-btn { height: 38px; padding: 0 12px; font-size: 13px; }
@media (max-width: 1100px) { .spw-reach { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (max-width: 700px) { .spw-reach { grid-template-columns: minmax(0, 1fr); } }

/* Page headers, tighter still. */
.spw-banner__inner { padding-top: 14px; padding-bottom: clamp(20px, 2.2vw, 28px); }
.spw-banner .app-breadcrumb { margin-bottom: 10px; padding: 3px 10px; }
.spw-banner .spw-eyebrow { margin-bottom: 6px; }
.spw-banner__title { font-size: clamp(1.9rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.1; }
.spw-banner .spw-hero__lead { margin-top: 6px; }
.spw-phero .spw-phero__inner { padding-top: 14px; padding-bottom: clamp(22px, 2.6vw, 32px); }
.spw-phero .app-breadcrumb { margin-bottom: 10px; padding: 3px 10px; }
.spw-phero .spw-eyebrow { margin-bottom: 6px; }
.spw-phero__title { font-size: clamp(1.9rem, 1.2rem + 1.6vw, 2.6rem); }
.spw-phero__lead { margin: 6px 0 18px; }
:is(.spw-banner, .wp-block-smartpi-page-banner) + .spw-content > .spw-section:first-child,
:is(.spw-banner, .wp-block-smartpi-page-banner) + .spw-section,
:is(.spw-banner, .wp-block-smartpi-page-banner) + .spw-content.spw-article,
.wp-block-smartpi-page-banner + .wp-block-smartpi-product-grid .spw-families,
.wp-block-smartpi-page-banner + .wp-block-smartpi-solution-grid .spw-solutions { padding-top: clamp(24px, 2.6vw, 36px); }

/* Product screenshots: moderate size, centred, instead of the full section width. */
.spw-pspecs__grid > .spw-figure.is-wide { width: 100%; max-width: 680px; justify-self: center; }
.spw-pspecs__grid > .spw-figure.is-wide img { width: 100%; height: auto; max-height: 440px; object-fit: contain; background: var(--sp-surface-raised); }

/* Product logo lockup in the product header, in place of the text name. */
.spw-phero__title--logo { line-height: 0; }
.spw-phero__logo { display: block; width: auto; max-width: 100%; height: clamp(48px, 3.4vw + 22px, 68px); }
/* Extra words the logo doesn't carry (e.g. "Server"): same line, on the suffix baseline, cap height matched. */
.spw-phero__title--logo { --logo-h: clamp(48px, 3.4vw + 22px, 68px); display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: .1em; }
.spw-phero__title--logo .spw-phero__logo { height: var(--logo-h); }
.spw-phero__logo-extra { margin-bottom: calc(var(--logo-h) * var(--logo-drop)); color: var(--sp-text-strong); font-size: calc(var(--logo-h) * var(--logo-cap) / .7); font-weight: 600; letter-spacing: -.01em; line-height: .72; }

/* Product interface simulator ("Try it") */
.spw-psim { margin-top: clamp(48px, 6vw, 80px); }
.spw-psim__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 18px; }
.spw-psim__head h2 { margin: 0 0 6px; }
.spw-psim__head p { max-width: 70ch; margin: 0; color: var(--sp-muted); }
.spw-psim__frame { max-width: 100%; margin-inline: auto; overflow: hidden; border-radius: 14px; background: #1b1b1b; border: 1px solid #2f2f2f; box-shadow: 0 30px 70px rgba(18,24,27,.25); }
.spw-psim__bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #2b2b2b; border-bottom: 1px solid #3a3a3a; }
.spw-psim__bar span { width: 11px; height: 11px; border-radius: 50%; background: #4a4a4a; }
.spw-psim__bar span:nth-child(1) { background: #ff5f57; } .spw-psim__bar span:nth-child(2) { background: #febc2e; } .spw-psim__bar span:nth-child(3) { background: #28c840; }
.spw-psim__bar em { flex: 1; margin-right: 44px; color: #a0a0a0; font-size: 12px; font-style: normal; text-align: center; }
.spw-psim__viewport { --s: .75; position: relative; height: calc(900px * var(--s)); }
.spw-psim__viewport iframe { position: absolute; top: 0; left: 0; width: 1440px; height: 900px; border: 0; transform: scale(var(--s)); transform-origin: 0 0; background: #1b1b1b; }
.spw-psim__start { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; border: 0; background: radial-gradient(circle at 50% 45%, rgba(243,112,33,.25), transparent 60%), #1b1b1b; color: #fff; font: 600 16px var(--sp-font); cursor: pointer; }
.spw-psim__start[hidden] { display: none; }
.spw-psim__mobile { display: none; }
@media (max-width: 760px) {
  .spw-psim__frame { display: none; }
  .spw-psim__mobile { display: inline-flex; }
  .spw-psim__head .spw-btn { display: none; }
}

/* Product tiles (Products page and family pages) */
.spw-ptiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.spw-ptile { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--sp-surface); border: 1px solid var(--sp-border-soft); border-radius: 16px; box-shadow: var(--spw-shadow); transition: transform .3s var(--spw-ease), box-shadow .3s ease, border-color .3s ease; }
.js .spw-ptile.spw-reveal.is-in:hover, .spw-ptile:hover { transform: translateY(-4px); box-shadow: var(--spw-shadow-lift); border-color: var(--sp-border); }
.spw-ptile__media { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.spw-ptile__media img { position: absolute; top: 18px; left: 22px; width: calc(100% - 44px); height: calc(100% - 30px); object-fit: contain; transition: transform .45s var(--spw-ease); }
.spw-ptile:hover .spw-ptile__media img { transform: scale(1.04); }
.spw-ptile__media.is-empty { background: linear-gradient(135deg, var(--spw-blue), var(--spw-cyan)); }
.spw-ptile__icon .spw-picon, .spw-ptile__icon i { width: 64px; height: 64px; font-size: 48px; color: #fff; }
.spw-ptile__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px 20px 16px; border-top: 1px solid var(--sp-border-soft); background: linear-gradient(180deg, var(--sp-surface-raised), var(--sp-surface) 40%); }
.spw-ptile__name { margin: 0; line-height: 0; }
.spw-ptile__name img { display: block; width: auto; max-width: 100%; height: 34px; }
.spw-ptile__link { color: var(--sp-text-strong) !important; font-size: 18px; line-height: 1.3; text-decoration: none; }
.spw-ptile__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.spw-ptile__link:focus-visible { outline: none; }
.spw-ptile:has(.spw-ptile__link:focus-visible) { outline: 2px solid var(--spw-blue); outline-offset: 3px; }
.spw-ptile__text { margin: 2px 0 0; color: var(--sp-text); font-size: 15px; line-height: 1.5; }
.spw-ptile__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.spw-ptile__ver { color: var(--sp-muted); font-size: 12.5px; }
.spw-ptile__ver b { margin-left: 2px; padding: 2px 7px; border-radius: 999px; background: var(--spw-code-bg); border: 1px solid var(--spw-code-border); color: var(--spw-code-ink); font: 600 11.5px ui-monospace, "SF Mono", Menlo, monospace; }
.spw-ptile__go { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sp-surface-raised); border: 1px solid var(--sp-border-soft); color: var(--spw-blue); font-size: 13px; transition: background .25s ease, color .25s ease, transform .25s var(--spw-ease); }
.spw-ptile:hover .spw-ptile__go { background: var(--spw-blue); border-color: var(--spw-blue); color: #fff; transform: translateX(3px); }

/* Smart Pi EYE header: sample passenger displays (inc/eye-showcase.php), cycled by site.js. */
.spw-phero .spw-phero__media--eye { aspect-ratio: auto; max-height: none; padding: 10px 10px 0; background: #16191c; border: 0; border-radius: 18px; box-shadow: 0 24px 50px -22px rgba(0,30,60,.55), 0 0 0 1px rgba(0,0,0,.4); display: block; width: 100%; max-width: 520px; justify-self: end; }
.spw-eye__screen { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #0d0f11; container-type: inline-size; }
.spw-eye__screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, rgba(255,255,255,.07), transparent 38%); }
.spw-eye__slide { position: absolute; inset: 0; display: flex; flex-direction: column; color: #fff; font-family: var(--sp-font, "IBM Plex Sans", sans-serif); opacity: 0; transform: translateX(3%); transition: opacity .6s ease, transform .6s ease; }
.spw-eye__slide.is-on { opacity: 1; transform: none; }
.spw-eye__slide.is-out { transform: translateX(-3%); }
.spw-eye__bar { display: flex; align-items: center; gap: 2.4cqw; padding: 1.6cqw 3cqw; background: #000; font-size: 2.5cqw; }
.spw-eye__bar img { height: 4.2cqw; width: auto; }
.spw-eye__place { flex: 1; opacity: .8; }
.spw-eye__clock { font-variant-numeric: tabular-nums; color: #5fd3ea; font-weight: 600; }
.spw-eye__badge { flex: none; display: inline-grid; place-items: center; width: 6.4cqw; height: 6.4cqw; border-radius: 50%; background: var(--b); color: #fff; font-weight: 700; font-size: 2.8cqw; letter-spacing: -.02em; }
.spw-eye__next { display: flex; align-items: center; gap: 2.6cqw; padding: 2.6cqw 3cqw; background: linear-gradient(180deg, #2a2e33, #222529); border-bottom: .3cqw solid #f37021; }
.spw-eye__next .spw-eye__badge { width: 9cqw; height: 9cqw; font-size: 3.8cqw; }
.spw-eye__to { flex: 1; display: flex; flex-direction: column; font-size: 3.2cqw; font-weight: 600; line-height: 1.1; }
.spw-eye__to small { font-size: .62em; font-weight: 400; opacity: .7; }
.spw-eye__to--big { font-size: 5.6cqw; }
.spw-eye__min { font-size: 2.4cqw; color: #f8a35a; white-space: nowrap; }
.spw-eye__min b { font-size: 1.7em; font-weight: 700; color: #ff8a3d; font-variant-numeric: tabular-nums; }
.spw-eye__min--big { font-size: 3.4cqw; }
.spw-eye__stops { margin: 0; padding: 1.4cqw 3cqw; font-size: 2.1cqw; color: #cfd6dc; background: #1a1d20; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spw-eye__stops span { color: #f99d1c; font-weight: 600; margin-right: .6em; }
.spw-eye__list { list-style: none; margin: 0; padding: 0 3cqw; flex: 1; display: flex; flex-direction: column; }
.spw-eye__list li { display: flex; align-items: center; gap: 2.4cqw; padding: 1.5cqw 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.spw-eye__ticker { margin: 0; margin-top: auto; padding: 1.3cqw 3cqw; font-size: 2.1cqw; background: #f37021; color: #fff; white-space: nowrap; overflow: hidden; }
.spw-eye__ticker i { margin-right: .5em; }
.spw-eye__title { margin: 0; padding: 2.2cqw 3cqw 1cqw; font-size: 3.4cqw; font-weight: 600; color: #fff; }
.spw-eye__title i { color: #5fd3ea; margin-right: .4em; }
/* ferry */
.spw-eye__slide--ferry { background: linear-gradient(180deg, #06324a, #041f2f); }
.spw-eye__slide--ferry .spw-eye__list li { padding: 1.2cqw 0; }
.spw-eye__slide--ferry .spw-eye__list li.is-now { margin: 0 -3cqw; padding: 1.2cqw 3cqw; background: rgba(95,211,234,.14); box-shadow: inset .5cqw 0 #5fd3ea; }
.spw-eye__slide--ferry .spw-eye__min, .spw-eye__slide--ferry .spw-eye__min b { color: #8fe4f3; }
.spw-eye__slide--ferry .spw-eye__ticker { background: #0a7fb5; }
/* airport */
.spw-eye__slide--air { background: #0b1a33; }
.spw-eye__board { width: calc(100% - 4cqw); margin: 1.6cqw 2cqw 0; border-collapse: collapse; font-size: 2.35cqw; font-variant-numeric: tabular-nums; }
.spw-eye__board th { text-align: left; font-weight: 500; font-size: .82em; color: #ffcc4d; text-transform: uppercase; letter-spacing: .06em; padding: .6cqw 1cqw; border-bottom: .25cqw solid #ffcc4d; }
.spw-eye__board td { padding: 1.15cqw 1cqw; border-bottom: 1px solid rgba(255,255,255,.08); white-space: nowrap; }
.spw-eye__board tr:nth-child(even) td { background: rgba(255,255,255,.035); }
.spw-eye__board td:nth-child(2) { font-weight: 600; }
.spw-eye__st { color: #cfd6dc; }
.spw-eye__st.is-go { color: #53d769; font-weight: 600; animation: spw-eye-blink 1.6s ease-in-out infinite; }
.spw-eye__st.is-warn { color: #ff8a3d; font-weight: 600; }
.spw-eye__st.is-late { color: #ffcc4d; }
@keyframes spw-eye-blink { 50% { opacity: .45; } }
/* metro: a light screen */
.spw-eye__slide--metro { background: #f4f6f7; color: #1d2327; }
.spw-eye__slide--metro .spw-eye__next { background: #fff; border-bottom-color: #168388; }
.spw-eye__slide--metro .spw-eye__min, .spw-eye__slide--metro .spw-eye__min b { color: #168388; }
.spw-eye__slide--metro .spw-eye__list li { border-color: rgba(0,0,0,.08); }
.spw-eye__cars { display: flex; align-items: center; gap: 2cqw; padding: 2cqw 3cqw; font-size: 2cqw; color: #4a555c; }
.spw-eye__cars > div { display: flex; gap: .8cqw; }
.spw-eye__cars em { font-style: normal; color: #168388; font-weight: 600; margin-left: auto; }
.spw-eye__car { display: flex; align-items: flex-end; gap: .35cqw; width: 6.4cqw; height: 3.6cqw; padding: .5cqw .6cqw; border-radius: .8cqw 1.4cqw .8cqw .8cqw; background: #dfe5e8; }
.spw-eye__car i { flex: 1; background: #b7c3c9; border-radius: .2cqw; height: 30%; }
.spw-eye__car[data-load="1"] i:nth-child(-n+1), .spw-eye__car[data-load="2"] i:nth-child(-n+2), .spw-eye__car[data-load="3"] i:nth-child(-n+3), .spw-eye__car[data-load="4"] i { background: #168388; height: 100%; }
.spw-eye__car[data-load="4"] i { background: #e8743b; }
/* caption + dots under the screen */
.spw-eye__caption { display: flex; align-items: center; gap: 12px; padding: 10px 6px 11px; color: #c9d2d8; font-size: 13px; }
.spw-eye__name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spw-eye__name b { color: #fff; font-weight: 600; margin-right: .35em; }
.spw-eye__dots { display: flex; gap: 6px; }
.spw-eye__dot { position: relative; width: 22px; height: 6px; padding: 0; border: 0; border-radius: 3px; background: rgba(255,255,255,.2); cursor: pointer; overflow: hidden; }
.spw-eye__dot i { position: absolute; inset: 0; width: 0; background: #00acc9; }
.spw-eye__dot.is-on i { animation: spw-eye-progress var(--eye-ms, 6000ms) linear forwards; }
.spw-eye.is-paused .spw-eye__dot.is-on i { animation-play-state: paused; }
.spw-eye__dot:focus-visible { outline: 2px solid #5fd3ea; outline-offset: 2px; }
@keyframes spw-eye-progress { to { width: 100%; } }
@media (max-width: 960px) { .spw-phero .spw-phero__media--eye { justify-self: stretch; max-width: 560px; } }
@media (prefers-reduced-motion: reduce) { .spw-eye__slide { transition: none; } .spw-eye__st.is-go { animation: none; } .spw-eye__dot.is-on i { animation: none; width: 100%; } }
@media (min-width: 961px) { .spw-phero .spw-phero__inner:has(.spw-phero__media--eye) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.spw-eye .spw-eye__title { color: #fff; font-family: inherit; line-height: 1.2; }
.spw-eye .spw-eye__bar { color: #fff; }
.spw-eye__slide--air .spw-eye__ticker { background: #ffcc4d; color: #0b1a33; }
.spw-eye__slide--metro .spw-eye__ticker { background: #168388; }
.spw-eye .spw-eye__list li:last-child { border-bottom: 0; }
.spw-eye .spw-eye__caption { width: 100%; max-width: 100%; box-sizing: border-box; margin: 0; text-align: left; }
@media (max-width: 520px) { .spw-eye__name { font-size: 12px; } .spw-eye__dot { width: 16px; } }
/* Ferry: "Next ferries" as a solid label band so it reads clearly on the dark river blue. */
.spw-eye .spw-eye__slide--ferry .spw-eye__title { margin: 0; padding: 1.3cqw 3cqw; font-size: 2.8cqw; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #04263a; background: #8fe4f3; }
.spw-eye .spw-eye__slide--ferry .spw-eye__title i { color: #04263a; }

/* Server sizing (inc/server-sizing.php): a dark panel of server cards with scaled meters. */
.spw-spec:has(> .spw-sizing) { position: relative; overflow: hidden; color: #dfe8ef; background: radial-gradient(120% 140% at 0% 0%, #0a4f93 0%, #062a52 45%, #04172e 100%); border: 0; box-shadow: 0 30px 60px -30px rgba(0,40,90,.6); }
.spw-spec:has(> .spw-sizing)::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(180deg, #000, transparent 85%); }
.spw-spec:has(> .spw-sizing) > h3 { position: relative; color: #fff; display: flex; align-items: center; gap: 10px; }
.spw-spec:has(> .spw-sizing) > h3::before { content: "\f233"; font: var(--fa-font-solid); font-size: .8em; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(0,172,201,.18); color: #5fd3ea; }
.spw-sizing { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 14px; margin-top: 18px; }
.spw-sizing__card { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 18px 18px 20px; border-radius: 14px; background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,.035)); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(4px); transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.spw-sizing__card:hover { transform: translateY(-3px); border-color: rgba(95,211,234,.55); background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.05)); }
.spw-sizing__card.is-big { border-color: rgba(243,112,33,.6); background: linear-gradient(180deg, rgba(243,112,33,.18), rgba(255,255,255,.04)); }
.spw-sizing__card.is-big::after { content: "Largest"; position: absolute; top: 12px; right: 12px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: #f37021; padding: 3px 7px; border-radius: 999px; }
.spw-sizing__card.is-staging { border-style: dashed; }
.spw-sizing__head { display: flex; align-items: center; gap: 12px; }
.spw-sizing__icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, #00acc9, #0054a6); color: #fff; font-size: 18px; box-shadow: 0 8px 18px -8px rgba(0,172,201,.8); }
.spw-sizing__card.is-big .spw-sizing__icon { background: linear-gradient(135deg, #ff8a3d, #f37021); box-shadow: 0 8px 18px -8px rgba(243,112,33,.9); }
.spw-sizing__name { margin: 0; font-size: 17px; font-weight: 600; color: #fff; line-height: 1.2; }
.spw-sizing__name span { display: block; font-size: 12px; font-weight: 500; color: #8fe4f3; }
.spw-sizing__line { margin: 2px 0 0; font-size: 12.5px; color: #a9bccb; line-height: 1.3; }
.spw-sizing__stats { margin: 0; display: grid; gap: 12px; }
.spw-sizing__stat { display: grid; grid-template-columns: 1fr auto; align-items: baseline; row-gap: 6px; }
.spw-sizing__stat dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #a9bccb; }
.spw-sizing__stat dt i { width: 1.4em; color: #5fd3ea; }
.spw-sizing__stat dd { margin: 0; color: #fff; font-variant-numeric: tabular-nums; }
.spw-sizing__stat dd b { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.spw-sizing__stat dd small { margin-left: 3px; font-size: 12px; color: #a9bccb; }
.spw-sizing__meter { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.spw-sizing__meter i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #0054a6, #00acc9 60%, #5fd3ea); box-shadow: 0 0 12px rgba(95,211,234,.6); transition: width 1.1s cubic-bezier(.2,.8,.2,1) calc(var(--i, 0) * 90ms + 150ms); }
.spw-sizing__card.is-big .spw-sizing__meter i { background: linear-gradient(90deg, #f37021, #ffb070); box-shadow: 0 0 12px rgba(243,112,33,.6); }
.js .spw-sizing__card.spw-reveal:not(.is-in) .spw-sizing__meter i { width: 0; }
.spw-sizing__foot { position: relative; margin: 16px 0 0; font-size: 13px; color: #a9bccb; }
@media (prefers-reduced-motion: reduce) { .spw-sizing__meter i { transition: none; } }
.js .spw-sizing__card.spw-reveal.is-in:hover { transform: translateY(-3px); }
.spw-sizing__card { --spw-i: var(--i); }
.spw-spec:has(> .spw-sizing) > h3 { color: #fff !important; }
.spw-sizing .spw-sizing__name { color: #fff !important; font-size: 17px; }
.spw-sizing__head { align-items: flex-start; min-height: 58px; }
.spw-sizing__stats { margin-top: auto; }
.spw-sizing__card.is-big .spw-sizing__head { padding-right: 64px; }
@media (max-width: 600px) {
  .spw-sizing { gap: 10px; }
  .spw-sizing__card { gap: 12px; padding: 14px; }
  .spw-sizing__head { min-height: 0; }
  .spw-sizing__icon { width: 36px; height: 36px; font-size: 15px; border-radius: 10px; }
  .spw-sizing__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .spw-sizing__stat { grid-template-columns: 1fr; }
  .spw-sizing__stat dt { order: 2; font-size: 10px; letter-spacing: .04em; }
  .spw-sizing__stat dt i { display: none; }
  .spw-sizing__stat dd { order: 1; }
  .spw-sizing__stat dd b { font-size: 19px; }
  .spw-sizing__meter { order: 3; height: 4px; }
}
@media (max-width: 600px) { .spw-sizing__stat dt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }

/* Server sizing, toned down: a light panel that sits with the white page (same layout and meters). */
.spw-spec:has(> .spw-sizing) { color: var(--sp-text, #3d474c); background: linear-gradient(180deg, #f3f8fc 0%, #e9f2f9 100%); border: 1px solid #d6e5f1; box-shadow: 0 18px 40px -28px rgba(0,60,120,.35); }
.spw-spec:has(> .spw-sizing)::before { background-image: linear-gradient(rgba(0,84,166,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0,84,166,.05) 1px, transparent 1px); }
.spw-spec:has(> .spw-sizing) > h3 { color: var(--sp-text-strong, #12181b) !important; }
.spw-spec:has(> .spw-sizing) > h3::before { background: #dcecf8; color: var(--spw-blue, #0054a6); }
.spw-sizing__card { background: #fff; border: 1px solid #dbe6ef; backdrop-filter: none; box-shadow: 0 6px 18px -12px rgba(0,50,100,.25); }
.spw-sizing__card:hover { background: #fff; border-color: #8fd3e4; box-shadow: 0 14px 28px -16px rgba(0,80,140,.35); }
.spw-sizing__card.is-big { background: linear-gradient(180deg, #fff6f0, #fff); border-color: #f6b48a; }
.spw-sizing__card.is-staging { border-color: #c3d4e2; }
.spw-sizing .spw-sizing__name { color: var(--sp-text-strong, #12181b) !important; }
.spw-sizing__name span { color: #0090ad; }
.spw-sizing__line, .spw-sizing__stat dt, .spw-sizing__stat dd small, .spw-sizing__foot { color: #6b7a85; }
.spw-sizing__stat dt i { color: #00a3c4; }
.spw-sizing__stat dd { color: var(--sp-text-strong, #12181b); }
.spw-sizing__meter { background: #e6eef4; }
.spw-sizing__meter i { box-shadow: none; }
.spw-sizing__card.is-big .spw-sizing__meter i { box-shadow: none; }

/* EYE slider: Berlin Hbf, Paris and London screens. */
.spw-eye__place { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Berlin Hbf: German main-line station board look (navy, white type, yellow delay notes, bilingual). */
.spw-eye__slide--berlin { background: #0c1a4b; color: #fff; font-family: Helvetica, Arial, sans-serif; }
.spw-db__head { display: flex; justify-content: space-between; align-items: baseline; padding: 1.4cqw 3cqw 1cqw; font-size: 2.2cqw; color: #c6cde4; border-bottom: .25cqw solid rgba(255,255,255,.85); }
.spw-db__head b { font-size: 3.6cqw; color: #fff; margin-right: .5em; letter-spacing: -.01em; }
.spw-db__head small { font-size: .85em; font-style: italic; color: #9aa6cc; }
.spw-db { list-style: none; margin: 0; padding: 0 3cqw; flex: 1; }
.spw-db li { display: grid; grid-template-columns: 8.4cqw 11.5cqw 1fr 7cqw; align-items: start; gap: 1.4cqw; padding: 1.15cqw 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.spw-db__time { font-size: 3cqw; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.spw-db__time em { display: block; font-style: normal; font-size: .7em; color: #ffd800; }
.spw-db__train { font-size: 2.5cqw; font-weight: 700; padding-top: .3cqw; white-space: nowrap; }
.spw-db__to { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.spw-db__to small { font-size: 1.75cqw; color: #aab4d4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spw-db__to b { font-size: 3.2cqw; font-weight: 700; }
.spw-db__note { display: inline-block; align-self: flex-start; margin-top: .5cqw; padding: .15cqw .7cqw; font-size: 1.75cqw; font-weight: 700; color: #0c1a4b; background: #fff; }
.spw-db__gl { justify-self: end; font-size: 4cqw; font-weight: 700; line-height: 1; display: flex; align-items: baseline; gap: .6cqw; }
.spw-db__gl s { font-size: .55em; font-weight: 400; color: #9aa6cc; }
.spw-db__gl.is-changed { color: #0c1a4b; background: #ffd800; padding: .3cqw .8cqw; }
.spw-db__gl.is-changed s { color: #0c1a4b; opacity: .6; }
.spw-db__ticker { margin: auto 0 0; padding: 1.2cqw 3cqw; font-size: 1.9cqw; font-weight: 700; color: #0c1a4b; background: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spw-db li { padding: .95cqw 0; }

/* Compact MIC railway clock in the homepage introduction. */
.spw-hero__intro{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 190px;gap:24px 40px;align-items:start}
.spw-hero__clock{width:190px;justify-self:end}
.spw-railway-clock__face{display:block;width:100%;height:auto}
@media(min-width:1600px){.spw-hero__intro{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 220px}.spw-hero__clock{width:220px}}
@media(max-width:1100px) and (min-width:827px){.spw-hero__intro{grid-template-columns:minmax(0,1fr) minmax(0,1fr);position:relative;padding-right:112px}.spw-hero__clock{position:absolute;right:0;top:0;width:92px}}
@media(max-width:826px){.spw-hero__intro{grid-template-columns:minmax(0,1fr) 92px;gap:20px}.spw-hero__intro>div:first-child{grid-column:1;grid-row:1}.spw-hero__intro>div:nth-child(2){grid-column:1 / -1;grid-row:2}.spw-hero__clock{grid-column:2;grid-row:1;width:92px;align-self:start}}
@media(max-width:480px){.spw-hero__intro{grid-template-columns:minmax(0,1fr) 68px;gap:16px}.spw-hero__clock{width:68px}}

/* EYE slider: Paris RER B (split screen with stopping pattern) and London (line band + change here). */
.spw-chip { display: inline-grid; place-items: center; min-width: 3cqw; height: 3cqw; padding: 0 .7cqw; border-radius: 1.5cqw; font-weight: 700; font-size: 1.7cqw; line-height: 1; font-style: normal; color: var(--k, #fff); background: var(--b, #5a6570); box-sizing: border-box; white-space: nowrap; }
.spw-chip--ico { width: 3cqw; padding: 0; border-radius: .7cqw; font-size: 1.6cqw; background: #e3e8ee; color: #1a2a40; }
.spw-eye__slide--paris { background: #fff; color: #1a2a40; }
.spw-rer { flex: 1; display: grid; grid-template-columns: 44% 1fr; min-height: 0; }
.spw-rer__next { display: flex; flex-direction: column; padding: 3cqw 3cqw 2.4cqw; color: #fff; background: linear-gradient(160deg, #5f9fdc, #3a72b4); }
.spw-rer__line { display: grid; place-items: center; width: 6cqw; height: 6cqw; border-radius: 1.2cqw; border: .4cqw solid #fff; font-weight: 800; font-size: 3.4cqw; box-sizing: border-box; }
.spw-rer__to { margin: 2cqw 0 0; font-size: 4cqw; font-weight: 700; line-height: 1.05; }
.spw-rer__tag { margin: 1cqw 0 0; align-self: flex-start; padding: .5cqw 1.2cqw; border-radius: 2cqw; background: rgba(255,255,255,.2); font-size: 1.9cqw; font-weight: 600; }
.spw-rer__tag i { margin-right: .4em; }
.spw-rer__min { margin: auto 0 0; display: flex; align-items: baseline; gap: .8cqw; font-size: 2.6cqw; }
.spw-rer__min b { font-size: 10cqw; line-height: .9; font-weight: 800; }
.spw-rer__then { margin: .6cqw 0 0; font-size: 1.9cqw; opacity: .9; }
.spw-rer__then b { font-weight: 700; }
.spw-rer__map { padding: 2.4cqw 3cqw 2cqw 3.4cqw; display: flex; flex-direction: column; min-height: 0; }
.spw-rer__map > p { margin: 0 0 1.4cqw; font-size: 1.7cqw; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #3a72b4; }
.spw-rer__map ol { list-style: none; margin: 0; padding: 0; flex: 1; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.spw-rer__map ol::before { content: ""; position: absolute; left: .9cqw; top: 1.4cqw; bottom: 1.4cqw; width: .8cqw; margin-left: -.4cqw; background: #5291ce; border-radius: .4cqw; }
.spw-rer__map li { position: relative; display: flex; align-items: center; gap: 1.2cqw; padding-left: 3.6cqw; min-height: 3.4cqw; }
.spw-rer__map li::before { content: ""; position: absolute; left: 0; width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: #fff; border: .45cqw solid #5291ce; box-sizing: border-box; }
.spw-rer__map li.is-here::before { background: #5291ce; box-shadow: 0 0 0 .6cqw rgba(82,145,206,.25); }
.spw-rer__map li span { flex: 1; font-size: 2.35cqw; font-weight: 600; white-space: nowrap; }
.spw-rer__map li:last-child span { font-weight: 800; }
.spw-rer__map li em { display: flex; gap: .5cqw; font-style: normal; }
.spw-eye__slide--london { background: #f2f4f7; color: #10192b; }
.spw-lu { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.spw-lu__band { display: flex; align-items: baseline; gap: 2cqw; padding: 1.6cqw 3cqw; background: #003688; color: #fff; }
.spw-lu__band span { font-size: 3.2cqw; font-weight: 800; }
.spw-lu__band em { font-style: normal; font-size: 2.1cqw; opacity: .85; }
.spw-lu__deps { list-style: none; margin: 0; padding: 2cqw 3cqw; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 1.6cqw; }
.spw-lu__deps li { display: flex; flex-direction: column; padding: 1.6cqw 1.8cqw; border-radius: 1.2cqw; background: #fff; box-shadow: 0 .3cqw 1cqw rgba(16,25,43,.08); }
.spw-lu__deps li:first-child { background: #003688; color: #fff; }
.spw-lu__deps small { font-size: 1.7cqw; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .7; }
.spw-lu__deps b { margin-top: .4cqw; font-size: 2.6cqw; line-height: 1.1; }
.spw-lu__deps span { margin-top: auto; padding-top: 1cqw; font-size: 2cqw; }
.spw-lu__deps strong { font-size: 5cqw; line-height: 1; }
.spw-lu__change { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .8cqw; padding: 1.8cqw 3cqw 2.2cqw; background: #fff; border-top: .4cqw solid #dc241f; }
.spw-lu__label { width: 100%; font-size: 1.7cqw; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #dc241f; }
.spw-lu__change .spw-chip { border-radius: .6cqw; }
.spw-chip--rail { background: #e3e8ee; color: #10192b; gap: .5cqw; display: inline-flex; align-items: center; }
.spw-lu__air { margin-left: auto; font-size: 1.8cqw; font-weight: 600; color: #003688; }
.spw-lu__deps { flex: 1; } .spw-lu__deps b { font-size: 3cqw; } .spw-lu__deps strong { font-size: 6.4cqw; }

@media(min-width:1101px){
 .spw-hero__intro .spw-hero__title{font-size:clamp(2.1rem,3vw,2.75rem);line-height:1.08;text-wrap:initial}
 .spw-hero__intro .spw-hero__title em{display:block}
 .spw-hero__intro .spw-eyebrow{margin-bottom:18px}
 .spw-hero__intro .spw-actions{gap:12px}
 .spw-hero__intro .spw-btn--lg{padding-inline:20px}
}

/* EYE slider: Sydney Trains platform display with realtime carriage load. */
.spw-eye__slide--rail { background: #fff; color: #1c1f23; }
.spw-st { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.spw-st__next { display: flex; align-items: center; gap: 2cqw; padding: 1.8cqw 3cqw; border-bottom: .25cqw solid #e4e7eb; }
.spw-st__line { width: 7.6cqw; height: 6cqw; border-radius: 1cqw; font-size: 3.4cqw; }
.spw-st__dest { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.1; }
.spw-st__dest--big b { font-size: 5.2cqw; font-weight: 700; letter-spacing: -.01em; }
.spw-st__dest--big small { font-size: 2cqw; color: #5b6570; }
.spw-st__dep { display: flex; flex-direction: column; align-items: flex-end; font-size: 2.2cqw; color: #5b6570; line-height: 1.05; }
.spw-st__dep small { font-size: 1.6cqw; text-transform: uppercase; letter-spacing: .06em; }
.spw-st__dep b { font-size: 5.4cqw; color: #1c1f23; font-weight: 700; }
.spw-st__dep em { font-style: normal; font-size: 1.8cqw; }
.spw-st__plat { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 8cqw; padding: .6cqw 1cqw; border-radius: 1cqw; background: #1c1f23; color: #fff; font-size: 4.6cqw; font-weight: 700; line-height: 1; }
.spw-st__plat small { font-size: 1.4cqw; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; opacity: .75; margin-bottom: .3cqw; }
.spw-st__load { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .8cqw 1.6cqw; padding: 1.4cqw 3cqw 1.2cqw; background: #f4f6f8; }
.spw-st__front { font-size: 1.6cqw; font-weight: 700; text-transform: uppercase; color: #5b6570; white-space: nowrap; }
.spw-st__cars { display: grid; grid-template-columns: repeat(8, 1fr); gap: .5cqw; }
.spw-st__car { position: relative; display: flex; justify-content: center; align-items: center; gap: .15cqw; height: 4.2cqw; border-radius: .7cqw; font-size: 1.5cqw; color: #fff; }
.spw-st__car:first-child { border-top-left-radius: 2cqw; }
.spw-st__car small { position: absolute; top: .2cqw; left: .6cqw; font-size: 1.2cqw; opacity: .8; }
.is-l1 { background: #2e9e4f; }
.is-l2 { background: #f2a516; }
.is-l3 { background: #d6402b; }
.spw-st__key { grid-column: 2; display: flex; align-items: center; gap: .6cqw; font-size: 1.6cqw; color: #5b6570; }
.spw-st__key i { width: 1.6cqw; height: 1.6cqw; border-radius: .4cqw; margin-left: 1cqw; }
.spw-st__key i:first-child { margin-left: 0; }
.spw-st__stops { margin: 0; padding: 1.1cqw 3cqw; font-size: 1.8cqw; color: #3a424b; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; border-bottom: .25cqw solid #e4e7eb; }
.spw-st__stops span { font-weight: 700; color: #1c1f23; margin-right: .5em; }
.spw-st__list { list-style: none; margin: 0; padding: 0 3cqw; flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }
.spw-st__list li { display: flex; align-items: center; gap: 1.6cqw; padding: .6cqw 0; }
.spw-st__list li + li { border-top: 1px solid #e4e7eb; }
.spw-st__list .spw-eye__badge { width: 5.4cqw; height: 4cqw; border-radius: .8cqw; font-size: 2.2cqw; }
.spw-st__list .spw-st__dest { flex-direction: row; gap: .6em; align-items: baseline; font-size: 2cqw; color: #5b6570; white-space: nowrap; }
.spw-st__list .spw-st__dest b { font-size: 2.8cqw; color: #1c1f23; }
.spw-st__mini { display: flex; gap: .25cqw; }
.spw-st__mini i { width: 1.3cqw; height: 1.8cqw; border-radius: .3cqw; }
.spw-st__t { font-size: 2cqw; color: #5b6570; width: 6cqw; text-align: right; }
.spw-st__m { font-size: 2cqw; color: #5b6570; width: 9cqw; text-align: right; }
.spw-st__m b { font-size: 3.4cqw; color: #1c1f23; }
/* Sydney Trains: departs and platform as two matching tiles, aligned with the line badge. */
.spw-st__next { gap: 1.6cqw; }
.spw-st__tile { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 11cqw; height: 9cqw; border-radius: 1cqw; background: #f0f2f5; color: #1c1f23; box-sizing: border-box; }
.spw-st__tile small { font-size: 1.4cqw; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #5b6570; }
.spw-st__tile b { display: flex; align-items: baseline; gap: .4cqw; font-size: 4.8cqw; font-weight: 700; line-height: 1; margin-top: .4cqw; }
.spw-st__tile b i { font-style: normal; font-size: 1.9cqw; font-weight: 500; color: #5b6570; }
.spw-st__tile--dark { background: #1c1f23; color: #fff; }
.spw-st__tile--dark small { color: rgba(255,255,255,.7); }
.spw-st__line { height: 9cqw; width: 9cqw; font-size: 3.6cqw; }

/* Homepage hero, calmer: one message on the left, the clock as the single visual on the right. */
.spw-hero .spw-hero__intro--calm { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px clamp(40px, 7vw, 120px); padding: clamp(28px, 5vw, 72px) 0 clamp(40px, 6vw, 88px); position: static; padding-right: 0; }
.spw-hero .spw-hero__intro--calm .spw-hero__copy { grid-column: 1; grid-row: 1; max-width: 640px; }
.spw-hero .spw-hero__intro--calm .spw-hero__title { font-size: clamp(2.2rem, 1.3rem + 2.6vw, 3.5rem); line-height: 1.06; margin: 0; }
.spw-hero .spw-hero__intro--calm .spw-hero__title em { display: block; }
.spw-hero .spw-hero__intro--calm .spw-hero__lead { margin: 20px 0 30px; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); max-width: 46ch; }
.spw-hero .spw-hero__intro--calm .spw-hero__clock { grid-column: 2; grid-row: 1; position: static; width: clamp(200px, 22vw, 300px); justify-self: end; align-self: center; filter: drop-shadow(0 22px 40px rgba(0,40,80,.14)); }
@media (max-width: 760px) {
  .spw-hero .spw-hero__intro--calm { grid-template-columns: minmax(0, 1fr) 96px; gap: 20px; padding-top: 20px; padding-bottom: 36px; align-items: start; }
  .spw-hero .spw-hero__intro--calm .spw-hero__clock { width: 96px; align-self: start; }
  .spw-hero .spw-hero__intro--calm .spw-hero__lead { margin: 14px 0 22px; }
}
@media (max-width: 480px) {
  .spw-hero .spw-hero__intro--calm { grid-template-columns: minmax(0, 1fr) 72px; }
  .spw-hero .spw-hero__intro--calm .spw-hero__clock { width: 72px; }
}
.spw-hero .spw-hero__intro--calm { padding-top: clamp(12px, 2.6vw, 40px); }
.spw-hero .spw-hero__intro--calm .spw-hero__lead { max-width: 60ch; }
.spw-hero .spw-hero__intro--calm .spw-hero__lead { max-width: 54ch; }

/* Homepage scroll story: the places are pinned and the page's scroll moves through each step. */
.spw-hero { overflow: clip; }
.spw-scenes__head { max-width: 760px; margin: clamp(8px, 2vw, 24px) auto 0; text-align: center; }
.spw-scenes__head .spw-eyebrow { justify-content: center; }
.spw-scenes__heading { margin: 6px 0 10px; font-size: clamp(1.7rem, 1.1rem + 1.8vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; }
.spw-scenes__hint { margin: 0; color: var(--sp-muted, #5d6b72); font-size: 15px; }
.spw-scenes__hint i { margin-left: 6px; color: var(--sp-orange); animation: spw-nudge 1.8s ease-in-out infinite; }
@keyframes spw-nudge { 50% { transform: translateY(4px); } }
.spw-scenes.is-scroll { height: calc(var(--beats, 12) * 55vh + 100vh - var(--sp-topbar-h, 70px)); margin-top: 8px; }
.spw-scenes.is-scroll .spw-scenes__sticky { position: sticky; top: var(--sp-topbar-h, 70px); height: calc(100vh - var(--sp-topbar-h, 70px)); display: flex; flex-direction: column; justify-content: center; }
.spw-scenes.is-scroll .spw-scenes__stage, .spw-scenes.is-scroll .spw-scenes__bar { width: min(100%, calc((100vh - var(--sp-topbar-h, 70px) - 120px) * 2)); margin-inline: auto; }
.spw-scenes.is-scroll .spw-scenes__bar { margin-top: 14px; }
.spw-scenes.is-scroll [data-scenes-play] { display: none; }
.spw-scenes.is-scroll .spw-scenes__progress { animation: none !important; transform: scaleX(var(--p, 0)); transition: transform .2s linear; }
.spw-scenes.is-scroll .spw-scenes__tab:not(.is-active) .spw-scenes__progress { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .spw-scenes__hint i { animation: none; } }
/* Scroll story: one place per two-thirds of a screen (steps play on their own), plus a Skip button. */
.spw-scenes.is-scroll { height: calc(var(--places, 6) * 65vh + 100vh - var(--sp-topbar-h, 70px)); }
.spw-scenes__skip { display: none; }
.spw-scenes.is-scroll [data-scenes-play] { display: inline-grid; }
.spw-scenes.is-scroll .spw-scenes__skip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; margin-left: 4px; border: 1px solid var(--sp-border); border-radius: 999px; background: var(--sp-surface, #fff); color: var(--sp-text); font: 600 14px var(--sp-font); cursor: pointer; box-shadow: var(--spw-shadow); }
.spw-scenes.is-scroll .spw-scenes__skip:hover { border-color: var(--sp-orange); color: var(--sp-orange); }

/* Homepage hero dials: the clock, then an announcement, a display, a help point and a hearing aid,
   each lighting up its phrase in the lead (blocks/ecosystem-hero.php, site.js). */
.spw-hero .spw-hero__intro--calm .spw-hero__show { grid-column: 2; grid-row: 1; justify-self: end; align-self: center; width: clamp(220px, 22vw, 300px); }
.spw-hero__dials { display: grid; }
.spw-dial { grid-area: 1 / 1; aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 14%; text-align: center; background: #fff; box-shadow: 0 0 0 1px #e3e8ea, 0 22px 40px rgba(0,40,80,.14); opacity: 0; transform: scale(.94) rotate(-4deg); transition: opacity .6s var(--spw-ease, ease), transform .6s var(--spw-ease, ease); pointer-events: none; }
.spw-dial.is-on { opacity: 1; transform: none; pointer-events: auto; }
.spw-dial[data-phrase="moment"] { padding: 0; background: none; box-shadow: none; }
.spw-hero .spw-hero__intro--calm .spw-dial .spw-hero__clock { width: 100%; filter: drop-shadow(0 22px 40px rgba(0,40,80,.14)); }
.spw-dial__say { margin: 0; font-size: clamp(14px, 1.15vw, 17px); font-weight: 600; line-height: 1.3; color: var(--sp-text-strong, #12181b); }
.spw-dial__tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #eef4f9; color: var(--spw-blue, #0054a6); font-size: 12px; font-weight: 600; }
/* announcement */
.spw-dial__icon { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #ff8a3d, #f37021); color: #fff; font-size: 26px; }
.spw-dial__waves i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(243,112,33,.5); animation: spw-dial-wave 2s ease-out infinite; }
.spw-dial__waves i:nth-child(2) { animation-delay: .65s; }
.spw-dial__waves i:nth-child(3) { animation-delay: 1.3s; }
@keyframes spw-dial-wave { from { transform: scale(1); opacity: .9; } to { transform: scale(2); opacity: 0; } }
/* display */
.spw-dial--display { padding: 17%; background: radial-gradient(circle at 50% 40%, #fff, #f1f4f6); }
.spw-dial__screen { width: 100%; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 0 0 4px #1c1f23, 0 10px 24px rgba(0,0,0,.25); text-align: left; }
.spw-dial__bar { display: flex; justify-content: space-between; margin: 0; padding: 6px 9px; background: #1c1f23; color: #fff; font-size: 11px; font-weight: 600; }
.spw-dial__bar span:last-child { color: #5fd3ea; font-variant-numeric: tabular-nums; }
.spw-dial__row { display: flex; align-items: center; gap: 7px; margin: 0; padding: 6px 9px; font-size: 12.5px; font-weight: 600; color: #1c1f23; border-top: 1px solid #edf0f2; }
.spw-dial__row b { display: inline-grid; place-items: center; width: 24px; height: 18px; border-radius: 4px; background: var(--b); color: #fff; font-size: 10px; }
.spw-dial__row span { flex: 1; }
.spw-dial__row em { font-style: normal; color: #5b6570; font-size: 11.5px; }
.spw-dial__row.is-next { font-size: 14px; }
.spw-dial__row.is-next em { color: #f37021; font-weight: 700; font-size: 13px; }
/* help point */
.spw-dial__post { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 54px; padding: 12px 0; border-radius: 12px; background: linear-gradient(180deg, #2b3138, #1c1f23); }
.spw-dial__btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #00acc9; color: #fff; font-size: 16px; box-shadow: 0 0 0 0 rgba(0,172,201,.6); animation: spw-dial-press 1.8s ease-out infinite; }
@keyframes spw-dial-press { 70%, 100% { box-shadow: 0 0 0 14px rgba(0,172,201,0); } }
.spw-dial__grille { width: 26px; height: 14px; background: repeating-linear-gradient(90deg, #5b6570 0 2px, transparent 2px 5px); border-radius: 3px; }
.spw-dial__call { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; color: var(--sp-text-strong, #12181b); }
.spw-dial__live { width: 9px; height: 9px; border-radius: 50%; background: #2e9e4f; box-shadow: 0 0 0 3px rgba(46,158,79,.2); }
/* hearing aid */
.spw-dial__rings { position: relative; display: grid; place-items: center; width: 64px; height: 64px; }
.spw-dial__rings > i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(0,84,166,.4); animation: spw-dial-in 2.2s ease-in infinite; }
.spw-dial__rings > i:nth-child(2) { animation-delay: .7s; }
.spw-dial__rings > i:nth-child(3) { animation-delay: 1.4s; }
@keyframes spw-dial-in { from { transform: scale(2.1); opacity: 0; } 60% { opacity: .8; } to { transform: scale(1); opacity: 0; } }
.spw-dial__ear { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #00acc9, #0054a6); color: #fff; font-size: 26px; }
/* dots */
.spw-hero__dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
.spw-hero__dot { position: relative; width: 22px; height: 5px; padding: 0; border: 0; border-radius: 3px; background: #dfe5e8; cursor: pointer; overflow: hidden; }
.spw-hero__dot i { position: absolute; inset: 0; width: 0; background: var(--sp-orange, #f37021); }
.spw-hero__dot.is-on i { animation: spw-hero-dot var(--dial-ms, 5000ms) linear forwards; }
.spw-hero__show.is-paused .spw-hero__dot.is-on i { animation-play-state: paused; }
@keyframes spw-hero-dot { to { width: 100%; } }
/* the lead's phrases light up with their dial */
.spw-hero__phrase { border-radius: 4px; transition: color .4s ease, background-color .4s ease, box-shadow .4s ease; }
.spw-hero__phrase.is-lit { color: var(--sp-text-strong, #12181b); background: #fff1e7; box-shadow: 0 0 0 3px #fff1e7; }
@media (max-width: 760px) {
  .spw-hero .spw-hero__intro--calm .spw-hero__show { width: 96px; align-self: start; }
  .spw-hero__dots, .spw-dial:not([data-phrase="moment"]) { display: none; }
}
@media (max-width: 480px) { .spw-hero .spw-hero__intro--calm .spw-hero__show { width: 72px; } }
@media (prefers-reduced-motion: reduce) { .spw-dial__waves i, .spw-dial__rings > i, .spw-dial__btn { animation: none; } .spw-dial { transition: none; } }

/* Hero panel: one rectangular card (big enough for the clock); each slide names its products. */
.spw-hero .spw-hero__intro--calm .spw-hero__show { width: clamp(340px, 31vw, 450px); }
.spw-hero__panel { position: relative; aspect-ratio: 9 / 8; border-radius: 22px; background: linear-gradient(180deg, #fff, #f6f8fa); box-shadow: 0 0 0 1px #e3e8ea, 0 26px 50px -18px rgba(0,40,80,.22); overflow: hidden; }
.spw-hero__panel .spw-dial { aspect-ratio: auto; border-radius: 0; background: none; box-shadow: none; padding: 26px 30px 92px; gap: 14px; transform: translateY(8px); }
.spw-hero__panel .spw-dial.is-on { transform: none; }
.spw-hero__panel .spw-dial[data-phrase="moment"] { padding: 22px 0 88px; }
.spw-hero .spw-hero__intro--calm .spw-hero__panel .spw-hero__clock { width: 62%; filter: drop-shadow(0 14px 26px rgba(0,40,80,.16)); }
.spw-hero__panel .spw-dial--display { padding-inline: 40px; }
.spw-dial__foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 20px 16px; background: #fff; border-top: 1px solid #e7ecef; text-align: left; }
.spw-dial__logos { display: flex; align-items: center; gap: 16px; }
.spw-dial__logo { display: inline-flex; border-radius: 4px; transition: opacity .2s ease, transform .2s ease; }
.spw-dial__logo img { height: 22px; width: auto; display: block; }
.spw-dial__logo:hover { opacity: .8; transform: translateY(-1px); }
.spw-dial__logo:focus-visible { outline: 2px solid var(--spw-blue, #0054a6); outline-offset: 3px; }
.spw-dial__what { font-size: 13px; color: var(--sp-muted, #5d6b72); }
@media (max-width: 760px) {
  .spw-hero .spw-hero__intro--calm .spw-hero__show { width: 96px; }
  .spw-hero__panel { aspect-ratio: 1; border-radius: 50%; background: none; box-shadow: none; overflow: visible; }
  .spw-hero__panel .spw-dial[data-phrase="moment"] { padding: 0; }
  .spw-hero .spw-hero__intro--calm .spw-hero__panel .spw-hero__clock { width: 100%; }
  .spw-dial__foot { display: none; }
}
@media (max-width: 480px) { .spw-hero .spw-hero__intro--calm .spw-hero__show { width: 72px; } }
.spw-dial__logo img { height: 28px; } .spw-dial__logos { gap: 20px; }

/* ===== Homepage hero: a centred statement, then the living city grows to full width and pins. ===== */
.spw-hero .spw-hero__statement { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 880px; margin: 0 auto; padding: clamp(28px, 4.5vh, 56px) 0 clamp(28px, 4vh, 44px); grid-template-columns: none; position: static; padding-right: 0; }
.spw-hero__mark { width: 78px; margin-bottom: 18px; filter: drop-shadow(0 10px 18px rgba(0,40,80,.16)); }
.spw-hero__mark .spw-railway-clock__face { display: block; width: 100%; height: auto; }
.spw-hero .spw-hero__statement .spw-hero__title { margin: 0; font-size: clamp(2.4rem, 1.2rem + 3.6vw, 4.4rem); line-height: 1.03; letter-spacing: -0.03em; text-wrap: balance; }
.spw-hero .spw-hero__statement .spw-hero__title em { display: block; }
.spw-hero .spw-hero__statement .spw-hero__lead { margin: 20px auto 28px; max-width: 62ch; font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); }
.spw-hero .spw-hero__statement .spw-actions { justify-content: center; }
/* the city: inset card at first, full width once pinned */
.spw-scenes.is-scroll { margin-top: 0; --grow: 0; }
.spw-scenes.is-scroll .spw-scenes__stage {
  --w0: min(100%, 1240px);
  --w1: min(100vw, calc((100vh - var(--sp-topbar-h, 70px) - 84px) * 2));
  position: relative; left: 50%; transform: translateX(-50%);
  width: calc(var(--w0) + (var(--w1) - var(--w0)) * var(--grow));
  max-width: none; margin-inline: 0;
  border-radius: calc(20px * (1 - var(--grow)));
}
.spw-scenes.is-scroll .spw-scenes__sticky { justify-content: flex-start; padding-top: 6px; }
.spw-scenes.is-scroll .spw-scenes__bar { width: min(100%, 1240px); }
@media (max-width: 767px) {
  .spw-hero__mark { width: 60px; margin-bottom: 14px; }
  .spw-hero .spw-hero__statement { padding-top: 20px; }
}
.spw-hero .spw-hero__statement { padding-top: 0; padding-bottom: clamp(24px, 3.5vh, 40px); }
.spw-hero:has(.spw-hero__statement) .spw-hero__inner { padding-top: clamp(20px, 4vh, 44px); }
.spw-hero__mark { margin-bottom: 14px; }
.spw-hero .spw-hero__statement .spw-hero__title { font-size: clamp(2.3rem, 1.2rem + 3.2vw, 4rem); }
.spw-hero .spw-hero__statement .spw-hero__lead { margin: 16px auto 24px; }

/* Statement: a bigger clock, and the industries as chips that jump to their place in the city. */
.spw-hero__mark { width: clamp(104px, 9vw, 132px); margin-bottom: 18px; }
.spw-hero__industries { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 0 auto 26px; padding: 0; list-style: none; max-width: 820px; }
.spw-hero__built { margin-right: 4px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sp-orange, #f37021); }
.spw-hero__industry { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--sp-border, #dfe5e8); color: var(--sp-text-strong, #12181b); font-size: 14px; font-weight: 500; text-decoration: none; transition: border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease; }
.spw-hero__industry i { color: var(--spw-blue, #0054a6); font-size: 13px; }
.spw-hero__industry:hover { border-color: var(--spw-blue, #0054a6); color: var(--spw-blue, #0054a6); transform: translateY(-1px); box-shadow: 0 6px 14px -8px rgba(0,60,120,.4); }
.spw-hero__industry:focus-visible { outline: 2px solid var(--spw-blue, #0054a6); outline-offset: 2px; }
.spw-hero .spw-hero__statement .spw-hero__lead { margin-bottom: 20px; }
/* very wide screens: the city stops short of the edges, so it keeps its corners */
.spw-scenes.is-scroll.is-inset .spw-scenes__stage { border-radius: 20px; }
/* phones: the same pinned story, compact */
@media (max-width: 767px) {
  .spw-hero__mark { width: 88px; }
  .spw-hero__industries { gap: 6px; margin-bottom: 20px; }
  .spw-hero__built { width: 100%; text-align: center; margin: 0 0 2px; }
  .spw-hero__industry { padding: 6px 11px; font-size: 13px; }
  .spw-scenes.is-scroll .spw-scenes__sticky { justify-content: flex-start; padding-top: 4px; }
  .spw-scenes.is-scroll .spw-scenes__stage { --w1: 100vw; }
  .spw-scenes.is-scroll .spw-scene__caption { padding: 12px 16px; }
  .spw-scenes.is-scroll .spw-scene__title { font-size: 1.15rem; margin-bottom: 6px; }
  .spw-scenes.is-scroll .spw-scene__steps, .spw-scenes.is-scroll .spw-codes { display: none; }
  .spw-scenes.is-scroll .spw-scenes__bar { margin-top: 8px; gap: 8px; }
  .spw-scenes.is-scroll .spw-scenes__controls { justify-content: space-between; }
}
@media (max-width: 767px) {
  .spw-scenes.is-scroll .spw-scenes__sticky { justify-content: center; }
  .spw-scenes.is-scroll .spw-scenes__controls { justify-content: center; gap: 8px; }
}
.spw-hero__industries { max-width: 1100px; } .spw-hero .spw-hero__statement { max-width: 1100px; } .spw-hero .spw-hero__statement .spw-hero__lead { max-width: 62ch; }

.spw-spl-previews__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:24px}.spw-spl-previews__grid figure{margin:0}.spw-spl-previews__grid img{display:block;width:100%;height:auto;border-radius:12px;border:1px solid var(--sp-border-soft)}.spw-spl-previews__grid figcaption{font-size:14px;color:var(--sp-muted);margin-top:10px}@media(max-width:767px){.spw-spl-previews__grid{grid-template-columns:1fr}}

/* EYE slider: accessible announcement with live captions and an Auslan sign-language avatar. */
.spw-eye__slide--auslan { background: #f4f6f8; color: #14202b; }
.spw-sign { flex: 1; display: grid; grid-template-columns: 1fr 38%; min-height: 0; }
.spw-sign__msg { display: flex; flex-direction: column; padding: 3cqw 3cqw 2.4cqw; }
.spw-sign__tag { align-self: flex-start; display: inline-flex; align-items: center; gap: .8cqw; padding: .6cqw 1.4cqw; border-radius: 1cqw; background: #f37021; color: #fff; font-size: 2cqw; font-weight: 700; }
.spw-sign__text { margin: 2.2cqw 0 0; font-size: 4cqw; font-weight: 700; line-height: 1.22; letter-spacing: -.01em; }
.spw-sign__text span { opacity: .22; animation: spw-word 9s linear infinite; animation-delay: calc(var(--i) * .42s); }
@keyframes spw-word { 0% { opacity: .22; } 3%, 72% { opacity: 1; } 80%, 100% { opacity: .22; } }
.spw-sign__cc { margin: auto 0 0; display: flex; align-items: center; gap: 1cqw; font-size: 1.9cqw; color: #5b6570; }
.spw-sign__cc span { padding: .2cqw .7cqw; border: .25cqw solid currentColor; border-radius: .5cqw; font-weight: 800; font-size: 1.6cqw; }
.spw-sign__panel { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; overflow: hidden; background: radial-gradient(120% 90% at 50% 30%, #2a6fc0, #0c3a73); }
.spw-sign__avatar { width: 92%; height: auto; display: block; margin-bottom: -1px; }
.spw-sign__label { position: absolute; top: 1.6cqw; left: 1.6cqw; display: inline-flex; align-items: center; gap: .8cqw; padding: .5cqw 1.2cqw; border-radius: 2cqw; background: rgba(255,255,255,.92); color: #0c3a73; font-size: 1.9cqw; font-weight: 700; }
/* signing rhythm: forearms pivot at the elbows, hands turn at the wrists */
.spw-sign__fore, .spw-sign__hand { transform-box: view-box; }
.spw-sign__arm--l .spw-sign__fore { transform-origin: 50px 208px; animation: spw-sign-l 2.6s ease-in-out infinite; }
.spw-sign__arm--r .spw-sign__fore { transform-origin: 150px 208px; animation: spw-sign-r 2.6s ease-in-out infinite; }
.spw-sign__arm--l .spw-sign__hand { transform-origin: 82px 157px; animation: spw-sign-hand 1.3s ease-in-out infinite; }
.spw-sign__arm--r .spw-sign__hand { transform-origin: 118px 157px; animation: spw-sign-hand 1.3s ease-in-out .35s infinite reverse; }
.spw-sign__mouth { transform-box: view-box; transform-origin: 100px 117px; animation: spw-sign-mouth 1.1s ease-in-out infinite; }
@keyframes spw-sign-l { 0%, 100% { transform: rotate(0deg); } 20% { transform: rotate(-16deg); } 45% { transform: rotate(10deg); } 70% { transform: rotate(-6deg); } }
@keyframes spw-sign-r { 0%, 100% { transform: rotate(4deg); } 25% { transform: rotate(14deg); } 50% { transform: rotate(-12deg); } 78% { transform: rotate(8deg); } }
@keyframes spw-sign-hand { 0%, 100% { transform: rotate(0deg) scale(1); } 50% { transform: rotate(-18deg) scale(1.08); } }
@keyframes spw-sign-mouth { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.55); } }
@media (prefers-reduced-motion: reduce) { .spw-sign__text span { animation: none; opacity: 1; } .spw-sign__fore, .spw-sign__hand, .spw-sign__mouth { animation: none; } }
.spw-sign__avatar { width: 122%; max-width: none; }

/* Scene bubble: live captions beside the sign-language avatar (train station step). */
.spw-bubble--auslan { width: 290px; padding: 0; overflow: hidden; }
.spw-bubble--auslan .spw-bubble__bar { margin: 0; }
.spw-bubble__signs { display: grid; grid-template-columns: 1fr 104px; align-items: stretch; }
.spw-bubble__captions { margin: 0; padding: 10px 12px; font-size: 14px; font-weight: 700; line-height: 1.3; color: var(--sp-text-strong, #12181b); }
.spw-bubble__captions span { opacity: .25; animation: spw-word 6s linear infinite; animation-delay: calc(var(--i) * .35s); }
.spw-bubble__avatar { position: relative; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; background: radial-gradient(120% 90% at 50% 30%, #2a6fc0, #0c3a73); min-height: 104px; }
.spw-bubble__avatar .spw-sign__avatar { width: 125%; max-width: none; height: auto; display: block; margin-bottom: -1px; }
.spw-bubble__auslan { position: absolute; top: 5px; left: 5px; padding: 2px 6px; border-radius: 8px; background: rgba(255,255,255,.92); color: #0c3a73; font-size: 9.5px; font-weight: 700; }
@media (max-width: 767px) { .spw-bubble--auslan { width: 240px; } .spw-bubble__signs { grid-template-columns: 1fr 86px; } .spw-bubble__captions { font-size: 12.5px; } }

/* ===== Ecosystem as a system: In → Smart pi core → Out (blocks/ecosystem-diagram.php) ===== */
.spw-sys { position: relative; max-width: 1180px; margin: clamp(24px, 3vw, 40px) auto 0; text-align: left; }
.spw-sys__wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.spw-sys__wires path { fill: none; stroke: #c9d6e0; stroke-width: 1.4; transition: stroke .35s ease, stroke-width .35s ease, opacity .35s ease; }
.spw-sys.is-focus .spw-sys__wires path { opacity: .25; }
.spw-sys__wires path.is-on { opacity: 1 !important; stroke: var(--sp-orange, #f37021); stroke-width: 2.2; stroke-dasharray: 5 7; animation: spw-sys-flow 1s linear infinite; }
@keyframes spw-sys-flow { to { stroke-dashoffset: -12; } }
.spw-sys__cols { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr 1fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.spw-sys__col { display: flex; flex-direction: column; gap: 10px; }
.spw-sys__col--core { padding: 20px 18px 18px; border-radius: 18px; background: #fff7f1; box-shadow: inset 0 0 0 1.5px #f8c9a8; }
.spw-sys__head { margin-bottom: 4px; }
.spw-sys__head h3 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--spw-blue, #0054a6); }
.spw-sys__col--core .spw-sys__head h3 { color: var(--sp-orange, #f37021); }
.spw-sys__head p { margin: 2px 0 0; font-size: 14px; color: var(--sp-muted, #5d6b72); }
.spw-sys__group { display: flex; flex-direction: column; gap: 8px; }
.spw-sys__group + .spw-sys__group { margin-top: 6px; }
.spw-sys__label { margin: 4px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sp-muted, #5d6b72); }
.spw-sys__tile { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; background: #fff; border: 1px solid #e1e8ee; color: var(--sp-text-strong, #12181b); text-decoration: none; transition: border-color .3s ease, box-shadow .3s ease, opacity .3s ease, transform .3s ease; }
.spw-sys__tile:hover, .spw-sys__tile:focus-visible { transform: translateX(2px); }
.spw-sys__tile:focus-visible { outline: 2px solid var(--spw-blue, #0054a6); outline-offset: 2px; }
.spw-sys__icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #eef4f9; color: var(--spw-blue, #0054a6); transition: background .3s ease, color .3s ease; }
.spw-sys__picon { width: 20px; height: 20px; }
.spw-sys__name { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.spw-sys__name b { font-size: 14px; font-style: italic; letter-spacing: .01em; }
.spw-sys__name small { font-size: 12.5px; color: var(--sp-muted, #5d6b72); }
.spw-sys__col--core .spw-sys__icon { background: #ffe6d4; color: #d9530c; }
.spw-sys.is-focus .spw-sys__tile:not(.is-on) { opacity: .4; }
.spw-sys__tile.is-on { border-color: #f6b48a; box-shadow: 0 8px 20px -12px rgba(243,112,33,.55); }
.spw-sys__tile.is-on .spw-sys__icon { background: var(--sp-orange, #f37021); color: #fff; }
.spw-sys__scenarios { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: clamp(26px, 3vw, 36px); }
.spw-sys__scenario { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid #dfe5e8; background: #fff; color: var(--sp-text, #3d474c); font: 500 14px var(--sp-font, inherit); cursor: pointer; transition: all .25s ease; }
.spw-sys__scenario i { color: var(--spw-blue, #0054a6); }
.spw-sys__scenario:hover { border-color: var(--spw-blue, #0054a6); }
.spw-sys__scenario.is-on { background: var(--sp-orange, #f37021); border-color: var(--sp-orange, #f37021); color: #fff; }
.spw-sys__scenario.is-on i { color: #fff; }
.spw-sys__readout { position: relative; z-index: 1; min-height: 3em; margin: 14px auto 0; max-width: 720px; text-align: center; font-size: 15px; color: var(--sp-text, #3d474c); }
@media (max-width: 960px) {
  .spw-sys__cols { grid-template-columns: 1fr; gap: 18px; }
  .spw-sys__group { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
  .spw-sys__label { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .spw-sys__wires path.is-on { animation: none; } }
/* things that aren't Smart pi products (the building's fire panel) */
.spw-sys__tile.is-external { border-style: dashed; background: #fbfcfd; }
.spw-sys__tile.is-external .spw-sys__name b { font-style: normal; }
.spw-sys__tile.is-external .spw-sys__icon { background: #fde8e6; color: #c4302b; }
/* two-way links (fire panel ↔ FSM, PBX ↔ HLP): the dashes flow back and forth */
.spw-sys__wires path.is-on.is-both { animation: spw-sys-both 2.4s ease-in-out infinite alternate; }
@keyframes spw-sys-both { from { stroke-dashoffset: 18; } to { stroke-dashoffset: -18; } }

/* Keep the complete MIC panel and gooseneck visible in its model-based product image. */
.spw-phero .spw-phero__media--mic{padding:0;aspect-ratio:1;overflow:hidden;width:100%;max-height:none;max-width:420px;justify-self:end}.spw-phero__media--mic img{width:100%;height:100%;object-fit:contain}

@media(max-width:960px){.spw-phero .spw-phero__media--mic{max-width:360px;justify-self:start}}

/* MIC editorial page: preserve the shared product hero and scope the new write-up. */
.spw-mic-story{padding-block:clamp(32px,5vw,64px);color:var(--sp-text,#3d474c)}
.spw-mic-story h2{font-size:clamp(28px,3.1vw,42px);line-height:1.15;letter-spacing:-.025em;margin:0 0 20px;color:var(--sp-text-strong,#12181b)}
.spw-mic-story h3{font-size:20px;line-height:1.3;margin:0 0 12px;color:var(--sp-text-strong,#12181b)}
.spw-mic-story p{font-size:17px;line-height:1.7;margin:0 0 18px}
.spw-mic-story .spw-eyebrow{font-size:12px;line-height:1.5;margin-bottom:16px}
.spw-mic-story__intro{display:grid;grid-template-columns:1.25fr 1fr;gap:clamp(28px,5vw,70px);align-items:start}
.spw-mic-story .spw-mic-story__lead{font-size:19px;line-height:1.7}
.spw-mic-story__glance{padding:28px;border:1px solid var(--sp-border,#dce2e5);border-radius:18px;background:var(--spw-mist,#f5f8f9)}
.spw-mic-story__glance h3{font-size:14px;text-transform:uppercase;letter-spacing:.1em;color:var(--sp-orange,#f37021)}
.spw-mic-story__glance ul{list-style:none;margin:0;padding:0;display:grid;gap:15px}
.spw-mic-story__glance li{position:relative;padding-left:25px;font-size:16px;line-height:1.5}
.spw-mic-story__glance li:before{content:'✓';position:absolute;left:0;color:#398d49;font-weight:700}
.spw-mic-story .spw-mic-story__status{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:14px;font-weight:600;margin-top:22px}
.spw-mic-story__status>span{width:8px;height:8px;border-radius:50%;background:var(--sp-orange,#f37021)}
.spw-mic-story__status small{font-size:13px;font-weight:400;color:var(--sp-muted,#65737a)}
.spw-mic-story__section{margin-top:clamp(58px,7vw,96px);scroll-margin-top:150px}
.spw-mic-story__measure{max-width:850px}
.spw-mic-story__cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:28px}
.spw-mic-story__cards article{padding:26px;border:1px solid var(--sp-border,#dce2e5);border-radius:16px;background:#fff}
.spw-mic-story__cards p{font-size:16px;margin-bottom:0}
.spw-mic-story__number{display:block;font-size:14px;font-weight:700;letter-spacing:.12em;color:var(--sp-orange,#f37021);margin-bottom:20px}
.spw-mic-story__integration{margin-top:24px;padding:26px 30px;border-left:3px solid var(--spw-blue,#0054a6);border-radius:0 14px 14px 0;background:#f2f6fa}
.spw-mic-story__integration p{font-size:16px}.spw-mic-story__integration p:last-child{margin:0}
.spw-mic-story__figure{margin:30px 0;background:#fff;border:1px solid var(--sp-border,#dce2e5);border-radius:16px;overflow:hidden}
.spw-mic-story__figure>a{display:block;background:#242626}
.spw-mic-story__figure img{display:block;width:100%;height:auto;object-fit:contain}
.spw-mic-story__figure figcaption{padding:15px 20px;font-size:13px;line-height:1.6;color:var(--sp-muted,#65737a)}
.spw-mic-story__figure figcaption a{white-space:nowrap;margin-left:5px}
.spw-mic-story__two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:36px;margin-top:28px}
.spw-mic-story .spw-mic-story__footnote{font-size:14px;color:var(--sp-muted,#65737a);margin-top:18px}
@media(max-width:960px){.spw-mic-story__intro,.spw-mic-story__two{grid-template-columns:1fr;gap:24px}.spw-mic-story__cards{grid-template-columns:1fr}.spw-mic-story__glance,.spw-mic-story__cards article{padding:22px}.spw-mic-story__integration{padding:22px}.spw-mic-story__section{scroll-margin-top:140px}.spw-mic-story .spw-specs th,.spw-mic-story .spw-specs td{padding:12px;font-size:14px;overflow-wrap:anywhere}}

.spw-pcontent>.spw-mic-story{margin-top:0!important}

/* MIC page: paging modes animation (DSP Partnered, Mixed, Remote site). site.js runs the sequence:
   zone buttons light, chime, TALK goes live and the audio flows to the speakers. */
.spw-mpm { margin: clamp(22px, 3vw, 34px) 0; padding: clamp(16px, 2.4vw, 26px); border-radius: 20px; background: linear-gradient(180deg, #f6f9fb, #eef3f7); border: 1px solid #e1e8ee; }
.spw-mpm__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.spw-mpm__tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px; border: 1px solid #dfe5e8; background: #fff; color: var(--sp-text, #3d474c); font: 500 14px var(--sp-font, inherit); cursor: pointer; transition: all .25s ease; }
.spw-mpm__tab i { color: var(--spw-blue, #0054a6); }
.spw-mpm__tab.is-on { background: var(--spw-blue, #0054a6); border-color: var(--spw-blue, #0054a6); color: #fff; }
.spw-mpm__tab.is-on i { color: #fff; }
.spw-mpm__stage { overflow-x: auto; }
.mpm__svg { display: block; width: 100%; min-width: 560px; height: auto; font-family: var(--sp-font, "IBM Plex Sans", sans-serif); }
.mpm__fa { font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: 14px; text-anchor: middle; fill: #fff; }
.mpm__wire { fill: none; stroke: #c9d6e0; stroke-width: 2; transition: opacity .4s ease, stroke .4s ease; }
.mpm__wire--wan { stroke-dasharray: 2 6; }
.mpm__body { fill: #1c1f23; }
.mpm__screen { fill: #0d1a2b; }
.mpm__screen-text { fill: #fff; font-size: 13px; font-weight: 600; text-anchor: middle; }
.mpm__screen-sub { fill: #8fe4f3; font-size: 11px; text-anchor: middle; }
.mpm__btn { fill: #3a4048; transition: fill .3s ease, filter .3s ease; }
.mpm__btn.is-on { fill: var(--c); filter: drop-shadow(0 0 4px var(--c)); }
.mpm__talkbtn rect { fill: #3a4048; transition: fill .3s ease; }
.mpm__talkbtn text { fill: #cfd6dc; font-size: 11px; font-weight: 700; text-anchor: middle; letter-spacing: .08em; }
.spw-mpm.is-live .mpm__talkbtn rect { fill: #d6402b; }
.spw-mpm.is-live .mpm__talkbtn text { fill: #fff; }
.mpm__chime { opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .3s ease; }
.mpm__chime circle { fill: var(--sp-orange, #f37021); }
.spw-mpm.is-chime .mpm__chime { opacity: 1; animation: mpm-chime .6s ease-in-out infinite alternate; }
@keyframes mpm-chime { to { transform: scale(1.15); } }
.mpm__node rect { fill: #fff; stroke: #dbe6ef; stroke-width: 1.5; }
.mpm__fa--node { fill: var(--spw-blue, #0054a6); font-size: 16px; }
.mpm__label { font-size: 14px; font-weight: 700; fill: #12181b; }
.mpm__sub { font-size: 11.5px; fill: #5d6b72; }
.mpm__spk .mpm__disc { fill: #9fb2c2; transition: fill .3s ease; }
.mpm__spk .mpm__ring { fill: none; stroke: var(--sp-orange, #f37021); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.mpm__wan { font-size: 11px; font-weight: 700; fill: #5d6b72; text-anchor: middle; letter-spacing: .08em; }
.mpm__group { font-size: 11.5px; font-weight: 600; fill: #5d6b72; text-anchor: middle; text-transform: uppercase; letter-spacing: .06em; }
/* the current mode: everything else fades back */
.spw-mpm [data-grp] { transition: opacity .45s ease; }
.spw-mpm [data-grp]:not(.is-in) { opacity: .14; }
.spw-mpm.is-live .mpm__wire.is-in { stroke: var(--sp-orange, #f37021); stroke-width: 2.6; stroke-dasharray: 6 8; animation: mpm-flow .9s linear infinite; }
.spw-mpm.is-live .mpm__wire--wan.is-in { stroke-dasharray: 3 7; }
@keyframes mpm-flow { to { stroke-dashoffset: -14; } }
.spw-mpm.is-live .mpm__spk.is-in .mpm__disc { fill: var(--sp-orange, #f37021); }
.spw-mpm.is-live .mpm__spk.is-in .mpm__ring { animation: mpm-ring 1.4s ease-out infinite; }
@keyframes mpm-ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.9); } }
.spw-mpm__caption { min-height: 3em; margin: 10px 0 0; font-size: 15px; color: var(--sp-text, #3d474c); }
@media (prefers-reduced-motion: reduce) { .spw-mpm.is-live .mpm__wire.is-in, .spw-mpm.is-live .mpm__spk.is-in .mpm__ring, .spw-mpm.is-chime .mpm__chime { animation: none; } }

/* ===== Homepage hero: split-flap information board (replaces the railway clock). ===== */
.spw-board {
  --fs: clamp(13px, 3.3vw, 30px);
  --fw: calc(var(--fs) * 0.9); --fh: calc(var(--fs) * 1.45); --gap: max(2px, calc(var(--fs) * .1));
  width: max-content; max-width: 100%; margin: 0 auto 26px; padding: clamp(10px, 1.4vw, 18px) clamp(10px, 1.6vw, 20px) clamp(12px, 1.6vw, 20px);
  background: #0d1215; border-radius: clamp(10px, 1.2vw, 16px);
  box-shadow: 0 0 0 1px #000, inset 0 1px 0 rgba(255,255,255,.07), 0 28px 50px -22px rgba(0,40,80,.5);
  text-align: left;
}
.spw-board__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: clamp(8px, 1vw, 12px); padding: 0 2px; }
.spw-board__title { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: #ffd36b; font: 600 clamp(10px, .55rem + .3vw, 13px)/1 var(--sp-font, 'IBM Plex Sans', sans-serif); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.spw-board.is-news .spw-board__title { color: #ff9a52; }
[data-flap-label].is-in { animation: spw-board-label .5s ease both; }
@keyframes spw-board-label { from { opacity: 0; transform: translateY(4px); } }
.spw-board__live { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #4fd18b; animation: spw-board-live 2s ease-out infinite; }
@keyframes spw-board-live { 0% { box-shadow: 0 0 0 0 rgba(79,209,139,.6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(79,209,139,0); } }
.spw-board__rows { display: grid; gap: max(3px, calc(var(--fs) * .2)); }
.spw-board__row { display: flex; gap: var(--gap); min-height: var(--fh); color: #f4f6f7; }
.spw-board[data-tone="ok"] .spw-board__row[data-line="1"] { color: #4fd18b; }
.spw-board[data-tone="info"] .spw-board__row[data-line="1"] { color: #5fd3ea; }
.spw-board[data-tone="warn"] .spw-board__row[data-line="1"] { color: #ff9a52; }

/* one flap: static top and bottom halves, plus two halves that turn */
.spw-flap { position: relative; display: inline-block; flex: none; width: var(--fw); height: var(--fh); perspective: calc(var(--fh) * 6);
  font: 600 var(--fs)/var(--fh) 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace; }
.spw-flap > span { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; background: linear-gradient(#242d32, #1c2428); backface-visibility: hidden; }
.spw-flap > span > span { display: block; height: var(--fh); text-align: center; }
.spw-flap__top, .spw-flap__ft { top: 0; border-radius: 3px 3px 0 0; transform-origin: 50% 100%; }
.spw-flap .spw-flap__bot, .spw-flap .spw-flap__fb { bottom: 0; border-radius: 0 0 3px 3px; transform-origin: 50% 0; background: linear-gradient(#1c2428, #161d21); }
.spw-flap__bot > span, .spw-flap__fb > span { margin-top: calc(var(--fh) / -2); }
.spw-flap__ft, .spw-flap__fb { z-index: 2; visibility: hidden; }
.spw-flap.is-flipping .spw-flap__ft, .spw-flap.is-flipping .spw-flap__fb { visibility: visible; }
.spw-flap__fb { transform: rotateX(90deg); }
.spw-flap::after { content: ""; position: absolute; left: 0; right: 0; top: calc(50% - .5px); height: 1px; background: #070a0c; z-index: 3; }
/* the Smart pi railway clock at the left end of the board, as tall as the board's contents */
.spw-board { display: flex; align-items: center; gap: clamp(12px, 1.6vw, 22px); }
.spw-board__main { min-width: 0; }
.spw-board__clock { flex: none; width: calc(var(--fh) * 2.75); filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.spw-board__clock .spw-railway-clock__face { display: block; width: 100%; height: auto; }
/* phones: the clock moves up into the header as a small dial, so the letters keep the width */
@media (max-width: 599px) {
  .spw-board { position: relative; display: block; margin-bottom: 20px; }
  .spw-board__clock { position: absolute; top: 6px; right: 8px; width: 30px; filter: none; }
  .spw-board__head { min-height: 30px; margin-bottom: 6px; padding-right: 36px; }
}

/* Ecosystem map on desktop screens of ordinary height: compact tiles so the heading, the map and
   the scenario buttons fit on one screen. Descriptions stay on one line; the full text is the tooltip. */
@media (min-width: 961px) and (max-height: 1000px) {
  .spw-sys { margin-top: clamp(16px, 2.2vh, 28px); }
  .spw-sys__col { gap: 6px; }
  .spw-sys__col--core { padding: 14px 14px 12px; }
  .spw-sys__head { margin-bottom: 2px; }
  .spw-sys__head p { font-size: 13px; }
  .spw-sys__group { gap: 6px; }
  .spw-sys__group + .spw-sys__group { margin-top: 4px; }
  .spw-sys__label { margin-top: 2px; font-size: 11px; }
  .spw-sys__tile { gap: 10px; padding: 6px 10px; border-radius: 10px; }
  .spw-sys__icon { width: 30px; height: 30px; border-radius: 8px; }
  .spw-sys__picon { width: 18px; height: 18px; }
  .spw-sys__name { line-height: 1.15; }
  .spw-sys__name b { font-size: 13.5px; }
  .spw-sys__name small { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .spw-sys__scenarios { margin-top: clamp(14px, 2vh, 22px); }
  .spw-sys__readout { min-height: 2.6em; margin-top: 8px; font-size: 14.5px; }
}
/* short laptop screens (720–780px tall): tighter still */
@media (min-width: 961px) and (max-height: 780px) {
  .spw-sys { margin-top: 12px; }
  .spw-sys__col, .spw-sys__group { gap: 4px; }
  .spw-sys__col--core { padding: 10px 12px; }
  .spw-sys__tile { padding: 4px 10px; }
  .spw-sys__icon { width: 26px; height: 26px; border-radius: 7px; }
  .spw-sys__picon { width: 16px; height: 16px; }
  .spw-sys__scenarios { margin-top: 12px; }
  .spw-sys__scenario { padding: 6px 12px; font-size: 13.5px; }
  .spw-sys__readout { margin-top: 6px; }
}
/* news pages on the hero board: the whole board links to the post */
.spw-board { position: relative; }
.spw-board__link { position: absolute; inset: 0; z-index: 4; border-radius: inherit; }
.spw-board__link:focus-visible { outline: 3px solid var(--spw-blue, #0054a6); outline-offset: 3px; }
.spw-board.has-link { cursor: pointer; transition: box-shadow .25s ease, transform .25s ease; }
.spw-board.has-link:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px #000, 0 0 0 3px rgba(255,154,82,.55), 0 30px 54px -22px rgba(0,40,80,.55); }
.spw-board__head { justify-content: flex-start; }
.spw-board__more { display: none; margin-left: auto; align-items: center; gap: 6px; color: #ff9a52; font: 600 clamp(10px, .55rem + .3vw, 13px)/1 var(--sp-font, 'IBM Plex Sans', sans-serif); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.spw-board__more i { font-size: .9em; transition: transform .2s ease; }
.spw-board.has-link .spw-board__more { display: inline-flex; animation: spw-board-label .5s ease both; }
.spw-board.has-link:hover .spw-board__more i { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .spw-board.has-link:hover { transform: none; } }

/* Release note banner: the product it is about, clearly, above the title. */
.spw-relprod { display: inline-flex; align-items: center; gap: 14px; max-width: 100%; margin: 2px 0 16px; padding: 10px 16px 10px 10px; border-radius: 14px; background: #fff; border: 1px solid var(--sp-border, #dfe5e8); box-shadow: 0 10px 24px -18px rgba(0,40,80,.45); color: var(--sp-text-strong, #12181b); text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.spw-relprod:hover { border-color: var(--spw-blue, #0054a6); transform: translateY(-1px); box-shadow: 0 14px 28px -18px rgba(0,60,120,.55); }
.spw-relprod:focus-visible { outline: 2px solid var(--spw-blue, #0054a6); outline-offset: 2px; }
.spw-relprod__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--spw-blue, #0054a6); color: #fff; }
.spw-relprod__picon { width: 28px; height: 28px; }
.spw-relprod__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.spw-relprod__text b { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); font-style: italic; letter-spacing: .01em; }
.spw-relprod__text small { font-size: 14px; color: var(--sp-muted, #5d6b72); }
.spw-relprod__ver { flex: none; padding: 5px 10px; border-radius: 999px; background: #fff1e7; color: #c9530f; font: 600 13px/1 var(--sp-font-mono, 'IBM Plex Mono', ui-monospace, monospace); }
.spw-relprod__go { flex: none; color: var(--spw-blue, #0054a6); font-size: 14px; transition: transform .2s ease; }
.spw-relprod:hover .spw-relprod__go { transform: translateX(3px); }
@media (max-width: 599px) {
  .spw-relprod { flex-wrap: wrap; gap: 10px 12px; padding: 10px 12px 10px 10px; }
  .spw-relprod__icon { width: 42px; height: 42px; }
  .spw-relprod__text { flex: 1; }
  .spw-relprod__go { display: none; }
}
/* news and release pages: the date row sits just under the banner, not a full section away */
.spw-content.spw-article > .spw-articlemeta:first-child { margin-top: 0; }

/* LOG screenshot uses its native 16:9 frame, without white letterboxing. */
.spw-phero .spw-phero__media--log{display:block;aspect-ratio:16/9;max-height:none}
.spw-phero__media--log img{display:block;width:100%;height:auto}

/* Focused MIC functions sit beside their explanation rather than spanning the page. */
.spw-mic-story__feature{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:clamp(24px,4vw,48px);align-items:center;margin-top:24px}
.spw-mic-story__feature>div{min-width:0}
.spw-mic-story__feature .spw-mic-story__figure{width:100%;max-width:640px;margin:0;justify-self:center}
.spw-mic-story__feature .spw-mic-story__cards{grid-template-columns:1fr;gap:12px;margin-top:20px}
.spw-mic-story__feature .spw-mic-story__cards article{padding:10px 16px;border:0;border-left:2px solid var(--sp-orange,#e96225);border-radius:0;background:transparent}
.spw-mic-story__feature .spw-mic-story__number{display:none}
.spw-mic-story__feature .spw-mic-story__cards h3{font-size:18px;margin:0 0 5px}
.spw-mic-story__feature .spw-mic-story__cards p{font-size:15px;line-height:1.55;margin:0}
@media(max-width:960px){.spw-mic-story__feature{grid-template-columns:1fr}.spw-mic-story__feature .spw-mic-story__figure{justify-self:start}}

.spw-mic-story__feature .spw-mic-story__two{grid-template-columns:1fr;gap:16px}

/* MIC TALK section: the lamp-colour screenshot is tall, so keep it to the height of the text beside it. */
@media (min-width: 961px) {
  #mic-talk .spw-mic-story__figure { max-width: 400px; justify-self: center; }
}

/* MIC rear-panel render: square image, keep it to the height of the text beside it. */
@media (min-width: 961px) {
  #mic-connect .spw-mic-story__figure { max-width: 400px; justify-self: center; }
}

/* MIC paging-modes animation: panel drawn like the real MIC (portrait, grille and gooseneck socket on top,
   tall screen, four keys each side, TALK at the bottom). */
.mpm__body { fill: #63686d; }
.mpm__top { fill: #575c61; }
.mpm__grille line { stroke: #2b2f33; stroke-width: 2; stroke-linecap: round; }
.mpm__socket { fill: #111315; }
.mpm__led { fill: #111315; }
.mpm__screen { fill: #15181c; }
.mpm__screen-text { font-size: 10px; }
.mpm__screen-sub { font-size: 8.5px; }
.mpm__btn { fill: #d4d8db; stroke: #2b2f33; stroke-width: 1; }
.mpm__btn.is-on { fill: var(--c); }
.mpm__talkbtn rect { fill: #e2e5e7; stroke: #2b2f33; stroke-width: 1; }
.mpm__talkbtn text { fill: #4a5056; font-size: 8.5px; font-weight: 600; }

/* DVA interface detail captures use original pixels with focused function views. */
.spw-dva-previews{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.spw-dva-previews figure{margin:0;min-width:0}.spw-dva-previews img{display:block;width:100%;height:auto;border:1px solid var(--sp-border-soft);border-radius:10px}.spw-dva-previews figcaption{font-size:13px;line-height:1.5;color:var(--sp-muted);margin-top:12px;text-align:center}@media(max-width:700px){.spw-dva-previews{grid-template-columns:1fr}}

/* Homepage hero on big screens: the statement fills the first screen (the city starts below the
   fold, once you scroll) and the split-flap board grows to fill the space. */
@media (min-width: 1200px) and (min-height: 700px) {
  .spw-hero .spw-hero__statement {
    max-width: min(1480px, 92vw);
    min-height: calc(100svh - var(--sp-topbar-h, 70px) - clamp(20px, 4vh, 44px));
    justify-content: center; box-sizing: border-box;
  }
  .spw-hero .spw-board { --fs: clamp(30px, min(3.1vw, 4.8vh), 46px); margin-bottom: clamp(28px, 4.5vh, 52px); }
  .spw-hero .spw-board__title, .spw-hero .spw-board__more { font-size: clamp(13px, .4vw + 7px, 16px); }
}

/* Phones: give small text links a comfortable 24px+ tap height (WCAG 2.2 target size). */
@media (max-width: 767px) {
  .app-breadcrumb-link, .spw-articlemeta__back, .spw-link-arrow, .spw-card__link { display: inline-flex; align-items: center; min-height: 28px; }
}
/* EYE slider dots: a 24px tap area on phones; the visible bar stays 6px (transparent border). */
@media (max-width: 767px) { .spw-eye__dot { border: 9px solid transparent; border-left-width: 2px; border-right-width: 2px; background-clip: padding-box; box-sizing: content-box; } .spw-eye__dots { gap: 2px; } }

/* ===== Case study pages (single sp_project): photo beside the facts, story, gallery, products used. ===== */
.spw-cs-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.spw-cs-top__photo { margin: 0; border-radius: 16px; overflow: hidden; background: #e9eef0; aspect-ratio: 4 / 3; }
.spw-cs-top__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.spw-cs-top__facts { background: var(--sp-surface, #f4f6f5); border-radius: 16px; padding: clamp(20px, 2.4vw, 30px); }
.spw-cs-top__k { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sp-orange, #e96225); }
.spw-cs-top__k:not(:first-child) { margin-top: 22px; }
.spw-cs-top__place { margin: 0; font-size: 1.05rem; font-weight: 500; color: var(--sp-text-strong, #12181b); }
.spw-cs-top__place i { color: var(--spw-blue, #0054a6); margin-right: 4px; }
.spw-cs-top__products { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.spw-cs-top__products a { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--sp-border, #dfe5e8); color: var(--spw-blue, #0054a6); font-weight: 600; font-size: 14px; text-decoration: none; transition: border-color .2s ease; }
.spw-cs-top__products a:hover { border-color: var(--spw-blue, #0054a6); }
.spw-cs-top__icon { width: 20px; height: 20px; flex: none; }
.spw-cs-top__highlights { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.spw-cs-top__highlights li { position: relative; padding-left: 20px; color: var(--sp-text, #3d474c); }
.spw-cs-top__highlights li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--sp-orange, #e96225); }
.spw-case__story { padding-block: clamp(8px, 2vw, 24px) clamp(24px, 4vw, 48px); }
.spw-case__story > .wp-block-heading { margin-top: clamp(28px, 3.5vw, 44px); }
.spw-cs-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: clamp(28px, 3.5vw, 44px) !important; max-width: 1080px !important; }
.spw-cs-gallery .wp-block-image { margin: 0; }
.spw-cs-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.spw-cs-gallery figcaption { margin-top: 8px; font-size: 14px; color: var(--sp-muted, #667277); text-align: left; }
.spw-cs-more__all { margin-top: 20px; }
@media (max-width: 860px) {
  .spw-cs-top { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .spw-cs-gallery { grid-template-columns: 1fr; }
}
.spw-cs-more .spw-projects { margin-top: 18px !important; }
/* case study gallery: three portrait tiles on wide screens */
@media (min-width: 761px) { .spw-cs-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } .spw-cs-gallery img { aspect-ratio: 4 / 5; } }
