/* One Signal · page C
   One neutral night base, one accent for actions, status colors carry the plot. */

:root {
  /* the long fade from the hero into "Pick a story" */
  --fade-in: clamp(320px, 55vh, 560px);
  --fade-gap: calc(var(--fade-in) - clamp(96px, 15vh, 150px));
  --bg: #05070a;
  --bg-raise: #0a0d12;
  --ink: #f2f4f6;
  --ink-2: #a7b0ba;
  --ink-3: #6f7883;
  --hair: rgba(255, 255, 255, 0.09);
  --glass: rgba(9, 12, 16, 0.58);

  /* EnvoWave teal (from the logo). White text on it reads at 2.6:1, too low, so primary buttons
     carry the page's near-black instead (7.8:1). Text links use a lighter teal (11.2:1 on the page). */
  --accent: #1cb3ac;
  --accent-hover: #3ec4bd;
  --on-accent: #05070a;
  --link: #5fd3cc;
  --link-hover: #8ee3dd;

  --amber: #ffad3b;
  --green: #3fd68a;
  --red: #ff5c50;

  --pad: clamp(20px, 4.4vw, 64px);
  --maxw: 1240px;

  /* one type scale */
  --fs-display: clamp(2.5rem, 1.2rem + 4.8vw, 5.5rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.4vw, 3.5rem);
  --fs-caption: clamp(1.25rem, 1.08rem + 0.62vw, 1.625rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.25vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-micro: 0.8125rem;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-optical-sizing: auto;
  font-size: var(--fs-body);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, p, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--bg); font-size: var(--fs-small); font-weight: 500; transition: top .2s var(--ease); }
.skip:focus { top: 12px; }

/* --------------------------------------------------------------- type roles */
.display {
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.034em;
  font-weight: 500;
  text-wrap: balance;
}
.h2 {
  font-size: var(--fs-h2);
  line-height: 1.06;
  letter-spacing: -0.026em;
  font-weight: 500;
  text-wrap: balance;
}
.caption {
  font-size: var(--fs-caption);
  line-height: 1.3;
  letter-spacing: -0.012em;
  font-weight: 400;
  color: var(--ink);
  text-wrap: pretty;
}
.lead {
  font-size: var(--fs-lead);
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ------------------------------------------------------------------ actions */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 24px; border-radius: 999px;
  font-size: 1rem; font-weight: 500; letter-spacing: -0.005em;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--primary:active { transform: scale(0.97); }
.btn--secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.btn--secondary:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42); background: rgba(255, 255, 255, 0.04); }
.btn--secondary:active { transform: scale(0.97); }
.btn--sm { height: 32px; padding: 0 15px; font-size: var(--fs-small); }
.btn--lg { height: 52px; padding: 0 30px; font-size: 1.0625rem; }

.link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--link); font-size: 1rem; font-weight: 400;
  transition: color .2s var(--ease);
}
.link .arrow { transition: transform .3s var(--ease-out); margin-top: 1px; }
.link:hover .arrow { transform: translateX(3px); }
.link:hover { color: var(--link-hover); }
.link--quiet { color: var(--ink-2); gap: 8px; }
.link--quiet:hover { color: var(--ink); }

.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 28px; }

/* ---------------------------------------------------------- backdrop, twin */
.backdrop {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(70% 26% at 62% 44%, rgba(58, 76, 98, 0.2), transparent 72%),
    radial-gradient(120% 70% at 62% 62%, rgba(40, 54, 70, 0.22), transparent 60%),
    linear-gradient(180deg, #04060a 0%, #070a0f 55%, #06080b 100%);
}
.twin {
  position: fixed; inset: 0; z-index: 1; width: 100%; height: 100%;
  pointer-events: none; display: block;
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.twin.is-on { opacity: 1; }
.stills { position: fixed; inset: 0; z-index: 1; pointer-events: none; display: none; }
[data-mode="still"] .stills { display: block; }
[data-mode="still"] .twin { display: none; }
.stills picture { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease); }
.stills picture.is-on { opacity: 1; }
.stills img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .stills picture { transition-duration: .35s; } }

/* The hero picture in still mode: one frame, sized and placed by js/main.js so that it matches
   the live picture. It is captured on black and screened over the backdrop, so its edges
   never show, whatever the screen shape. */
.hero-still {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; display: none;
  opacity: 0; transition: opacity 1s var(--ease); mix-blend-mode: screen;
}
[data-mode="still"] .hero-still { display: block; }
.hero-still.is-on { opacity: 1; }
.hero-still.is-off { display: none; }
.hero-still img { position: absolute; left: 0; top: 0; max-width: none; height: auto; }

/* The labels on the layers of the hero picture. js/main.js pins each one to its layer. */
.hero-layers {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
  opacity: 0; transition: opacity 1.4s var(--ease);
}
.hero-layers.is-in { opacity: 1; }
.hero-layers.is-off { display: none; }
.hero-layers__in { position: absolute; inset: 0; }
.hero-layer, .hero-layers__caption { position: absolute; left: 0; top: 0; margin: 0; white-space: nowrap; will-change: transform; }
.hero-layer { translate: 0 -9px; padding-left: 24px; line-height: 1.3; }
.hero-layer::before { content: ""; position: absolute; left: 0; top: 9px; width: 16px; height: 1px; background: rgba(242, 244, 246, 0.38); }
.hero-layer__name { display: block; font-size: var(--fs-micro); letter-spacing: 0.01em; color: rgba(242, 244, 246, 0.92); }
.hero-layer__note { display: block; font-size: 0.75rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
/* the caption runs under the foot of the picture */
/* phones: the picture alone, without the layer labels (GEO to Underwater) or their caption */
@media (max-width: 760px) { .hero-layer, .hero-layers__caption { display: none !important; } }
/* phones: one label at a time, in a fixed place, with a line to its layer (js/main.js, buildHeroTour) */
.hero-tour { display: none; }
@media (max-width: 760px) {
  .hero-tour { display: block; position: absolute; inset: 0; transition: opacity .45s var(--ease); }
  .hero-tour.is-out { opacity: 0; }
  .hero-tour__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .hero-tour__line path { fill: none; stroke: rgba(242, 244, 246, 0.42); stroke-width: 1; stroke-linejoin: miter; shape-rendering: crispEdges; }
  .hero-tour__line circle { fill: rgba(242, 244, 246, 0.9); }
  .hero-tour__label { position: absolute; left: 0; top: 0; margin: 0; white-space: nowrap; line-height: 1.3; }
  .hero-layers .hero-tour .hero-tour__label .hero-layer__name, .hero-layers .hero-tour .hero-tour__label .hero-layer__note { display: block; font-size: var(--fs-micro); }
  .hero-layers .hero-tour .hero-tour__label .hero-layer__note { font-size: 0.75rem; }   /* two lines, as on desktop, even when the picture is small */
}
.hero-layers__caption { translate: 0 6px; font-size: 0.6875rem; line-height: 1.4; color: var(--ink-2); opacity: 0.8; }
/* small pictures: one line per label */
.hero-layers.is-tight .hero-layer { translate: 0 -7px; padding-left: 16px; }
.hero-layers.is-tight .hero-layer::before { top: 7px; width: 10px; }
.hero-layers.is-tight .hero-layer__name, .hero-layers.is-tight .hero-layer__note { display: inline; font-size: 0.6875rem; }
.hero-layers.is-tight .hero-layers__caption { font-size: 0.625rem; }
@media (prefers-reduced-motion: reduce) { .hero-still, .hero-layers { transition-duration: .35s; } }

main, .footer { position: relative; z-index: 2; }

/* ----------------------------------------------------------------- navbar */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: transform .5s var(--ease-out), background-color .35s var(--ease), -webkit-backdrop-filter .35s var(--ease), backdrop-filter .35s var(--ease);
}
.nav::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: var(--hair);
  opacity: 0; transition: opacity .35s var(--ease);
}
.nav.is-glass, .nav.is-open {
  background: var(--glass);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
  backdrop-filter: saturate(160%) blur(22px);
}
.nav.is-glass::after, .nav.is-open::after { opacity: 1; }
.nav.is-open { background: rgba(8, 11, 15, 0.84); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__bar {
  height: 60px; max-width: calc(var(--maxw) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad);
  display: flex; align-items: center; gap: 40px;
}
.nav__logo { display: inline-flex; align-items: center; gap: 9px; font-size: 1rem; font-weight: 600; letter-spacing: -0.012em; color: var(--ink); white-space: nowrap; }
.nav__mark { width: 22px; height: 22px; flex: none; color: var(--ink); }
.nav__labs { font-weight: 400; color: var(--ink-2); }
.nav__links { display: flex; align-items: center; gap: 30px; margin-right: auto; }
.nav__link { font-size: var(--fs-small); color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; height: 32px; transition: color .2s var(--ease); }
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--ink); }
.chev { transition: transform .35s var(--ease-out); }
.nav__products[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav__end { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav__menu { display: none; width: 36px; height: 36px; position: relative; margin-right: -8px; }
.nav__menu span { position: absolute; left: 10px; right: 10px; height: 1.4px; background: var(--ink); border-radius: 2px; transition: transform .4s var(--ease-out); }
.nav__menu span:first-child { top: 14px; }
.nav__menu span:last-child { top: 21px; }
.nav__menu[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* products panel */
.products { border-top: 1px solid var(--hair); }
.products__inner {
  max-width: calc(var(--maxw) + var(--pad) * 2); margin: 0 auto; padding: 36px var(--pad) 44px;
  display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr); gap: 64px;
}
.products__title { font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 500; }
.products__sub { margin: 10px 0 22px; color: var(--ink-2); font-size: var(--fs-small); max-width: 26ch; line-height: 1.5; }
.products__lead .link { font-size: var(--fs-small); }
.layers { position: relative; max-width: 620px; justify-self: end; width: 100%; }
.layers::before { content: ""; position: absolute; left: 5px; top: 20px; bottom: 20px; width: 1px; background: var(--hair); }
.layers a {
  display: grid; grid-template-columns: 34px 132px 1fr auto; align-items: baseline; gap: 12px;
  padding: 10px 0; font-size: var(--fs-small); color: var(--ink-2);
  transition: color .2s var(--ease);
}
.layers li { position: relative; }
.layers li::before { content: ""; position: absolute; left: 3px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--ink-3); transition: background-color .2s var(--ease); }
.layers a:hover { color: var(--ink); }
.layers li:hover::before { background: var(--ink); }
.layers__n { font-variant-numeric: tabular-nums; color: var(--ink-3); padding-left: 20px; font-size: var(--fs-micro); }
.layers__name { color: var(--ink); font-weight: 500; }
.layers__range { font-variant-numeric: tabular-nums; text-align: right; }

/* mobile sheet */
.sheet {
  position: fixed; inset: 0; z-index: 45; background: rgba(5, 7, 10, 0.94);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  overflow-y: auto; overscroll-behavior: contain;
}
.sheet__inner { padding: 84px var(--pad) 48px; display: flex; flex-direction: column; min-height: 100%; }
.sheet__row { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 0; border-bottom: 1px solid var(--hair);
  font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); text-align: left; }
.sheet__row[aria-current="page"] { color: var(--link); }
.sheet__products .chev { transition: transform .3s var(--ease); }
.sheet__products[aria-expanded="true"] { border-bottom-color: transparent; }
.sheet__products[aria-expanded="true"] .chev { transform: rotate(180deg); }
.sheet__links { display: flex; flex-direction: column; }
/* the Products panel, as on desktop: heading, line, then each product with its role and use case */
.sheet__panel { padding: 2px 0 20px; border-bottom: 1px solid var(--hair); }
.sheet__panel[hidden] { display: none; }
.sheet__panel .products__title { font-size: 1.125rem; }
.sheet__panel .products__sub { margin: 6px 0 14px; }
.sheet__prod { max-width: none; justify-self: auto; margin-bottom: 16px; }
.sheet__prod a { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; row-gap: 2px; padding: 12px 0; font-size: var(--fs-small); color: var(--ink-2); }
.sheet__prod .layers__n { grid-row: 1 / span 3; padding-top: 3px; }
.sheet__prod li::before { top: 22px; margin-top: 0; }
.sheet__prod::before { top: 24px; bottom: 40px; }
.sheet__prod-name { color: var(--ink); font-weight: 500; font-size: 1rem; }
.sheet__prod-role { color: var(--ink-3); }
.sheet__prod-desc { line-height: 1.45; }
.sheet__panel .btn { margin-top: 4px; }

/* ------------------------------------------------------------------ clock */
.clock {
  position: fixed; z-index: 40;
  right: var(--pad); bottom: max(22px, calc(env(safe-area-inset-bottom) + 14px));
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 2px;
  align-items: center;
  padding: 11px 16px 13px 14px; border-radius: 16px;
  background: rgba(8, 11, 15, 0.5);
  -webkit-backdrop-filter: saturate(150%) blur(18px); backdrop-filter: saturate(150%) blur(18px);
  pointer-events: none;
  opacity: 0; transform: translateY(10px);
}
.clock.is-in { opacity: 1; transform: none; transition: opacity 1.2s var(--ease), transform 1.2s var(--ease-out); }
.clock.is-in.is-docked { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.clock__dot { grid-row: 1; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); transition: background-color 1s var(--ease), box-shadow 1s var(--ease); }
.clock[data-status="risk"] .clock__dot { background: var(--amber); box-shadow: 0 0 0 4px rgba(255, 173, 59, 0.14); }
.clock[data-status="fault"] .clock__dot { background: var(--red); box-shadow: 0 0 0 4px rgba(255, 92, 80, 0.16); }
.clock[data-status="ok"] .clock__dot { background: var(--green); box-shadow: 0 0 0 4px rgba(63, 214, 138, 0.14); }
.clock__time {
  grid-row: 1; font-size: 1.375rem; line-height: 1; font-weight: 500; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1, "case" 1;
}
.clock__phase { grid-column: 2; grid-row: 2; font-size: var(--fs-micro); color: var(--ink-2); white-space: nowrap; }
.clock__track { position: absolute; left: 14px; right: 16px; bottom: 6px; height: 1px; background: rgba(255, 255, 255, 0.08); overflow: hidden; border-radius: 1px; }
.clock__fill { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.5); transform-origin: left center; transform: scaleX(0); }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; }
/* the hero picture keeps clear of the text (heroLayout in js/main.js), so the shade only calms the sky behind the text */
.hero::before {
  /* reaches down into the fade so the shading behind the copy has no edge */
  content: ""; position: absolute; inset: 0 0 calc(-1 * var(--fade-gap)) 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 7, 10, 0.55) 0%, rgba(5, 7, 10, 0.18) 42%, transparent 62%);
}
.hero__copy {
  position: relative; width: 100%; max-width: calc(var(--maxw) + var(--pad) * 2); margin: 0 auto;
  padding: 0 var(--pad) clamp(96px, 15vh, 150px);
}
.hero h1 { max-width: 14em; font-size: clamp(1.75rem, 0.875rem + 4vw, 4.5rem); }
.hero h1 .line { display: inline-block; }
.hero .lead { margin-top: 22px; max-width: 36em; }
.hero .actions { margin-top: 34px; }

/* ---------------------------------------------------------- pick a story */
.pick { position: relative; z-index: 2; background: var(--bg); padding: clamp(110px, 16vh, 170px) 0 clamp(110px, 16vh, 170px);
  /* a long fade out of the hero: the page gains a little scroll below the hero copy so the
     twin can sink into the dark slowly, starting just under the buttons */
  margin-top: var(--fade-gap);
  /* a page opened at #pick lands on the heading, not on the empty padding above it */
  scroll-margin-top: calc(108px - clamp(110px, 16vh, 170px)); }
/* soft edges: the twin fades into the dark instead of stopping at a hard line. The top fade
   stays inside the space under the hero copy, so it never dims the headline or buttons */
.pick::before, .pick::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; }
.pick::before { bottom: 100%; height: var(--fade-in); background: linear-gradient(180deg, rgba(5, 7, 10, 0) 0%, rgba(5, 7, 10, 0.03) 10%, rgba(5, 7, 10, 0.1) 20%, rgba(5, 7, 10, 0.2) 30%, rgba(5, 7, 10, 0.33) 40%, rgba(5, 7, 10, 0.5) 50%, rgba(5, 7, 10, 0.67) 60%, rgba(5, 7, 10, 0.8) 70%, rgba(5, 7, 10, 0.9) 80%, rgba(5, 7, 10, 0.97) 90%, rgba(5, 7, 10, 1) 100%); }
.pick::after { top: 100%; height: clamp(220px, 40vh, 400px); background: linear-gradient(0deg, rgba(5, 7, 10, 0) 0%, rgba(5, 7, 10, 0.03) 10%, rgba(5, 7, 10, 0.1) 20%, rgba(5, 7, 10, 0.2) 30%, rgba(5, 7, 10, 0.33) 40%, rgba(5, 7, 10, 0.5) 50%, rgba(5, 7, 10, 0.67) 60%, rgba(5, 7, 10, 0.8) 70%, rgba(5, 7, 10, 0.9) 80%, rgba(5, 7, 10, 0.97) 90%, rgba(5, 7, 10, 1) 100%); }
.pick .lead { margin-top: 18px; max-width: 34em; }
.swipe-dots { display: none; }
.pick__grid { margin-top: clamp(48px, 7vh, 72px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 40px; }
.option { position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left; color: var(--ink); opacity: 0.5; transition: opacity .45s var(--ease); padding-top: 18px; }
.option::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.option:hover, .option:focus-visible { opacity: 0.82; }
.option.is-on { opacity: 1; }
.option.is-on::before { transform: scaleX(1); }
.option__img { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--bg-raise); }
.option__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.option:hover .option__img img { transform: scale(1.025); }
.option__meta { margin-top: 20px; display: flex; gap: 14px; align-items: baseline; font-size: var(--fs-small); }
.option__product { color: var(--ink); font-weight: 500; }
.option__now { color: var(--link); opacity: 0; transition: opacity .4s var(--ease); }
.option.is-on .option__now { opacity: 1; }
.option__title { margin-top: 8px; font-size: clamp(1.5rem, 1.25rem + 0.8vw, 2rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.option__layers { margin-top: 8px; font-size: var(--fs-small); color: var(--ink-2); }
.option__line { margin-top: 10px; color: var(--ink-2); max-width: 30ch; line-height: 1.5; }
.option.is-on .option__line { color: #c9d0d7; }

/* ------------------------------------------------- now-playing bar (in story) */
.stories { position: relative; }
.playing { position: sticky; top: 0; z-index: 30; transition: top .5s var(--ease-out); }
html.nav-shown .playing { top: 60px; }
.playing::before { content: ""; position: absolute; inset: 0; background: rgba(5, 7, 10, 0.7); -webkit-backdrop-filter: saturate(150%) blur(18px); backdrop-filter: saturate(150%) blur(18px); border-bottom: 1px solid var(--hair); }
.playing__inner { position: relative; max-width: calc(var(--maxw) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); height: 54px; display: flex; align-items: center; gap: 28px; }
.playing__now { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.playing__label { font-size: var(--fs-micro); color: var(--ink-3); }
.playing__title { font-size: 0.9375rem; font-weight: 500; letter-spacing: -0.005em; color: var(--ink); }
.playing__others { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.playing__others::-webkit-scrollbar { display: none; }
.playing__link { flex: none; font-size: 0.9375rem; color: var(--ink-2); white-space: nowrap; transition: color .2s var(--ease); }
.playing__link:hover { color: var(--ink); }
.playing__link[hidden] { display: none; }
.playing__all { margin-left: auto; flex: none; font-size: 0.9375rem; color: var(--link); white-space: nowrap; }
.is-fallback .playing { display: none; }
.caption__lead { font-weight: 500; }
.outcome__row li[hidden], .cast__row[hidden], .act[hidden] { display: none !important; }
.act--short .beat--peak::before { content: ""; position: absolute; inset: -42% -22%; z-index: -1; background: radial-gradient(closest-side, rgba(5, 7, 10, 0.9), rgba(5, 7, 10, 0.78) 40%, rgba(5, 7, 10, 0.42) 70%, transparent); pointer-events: none; }
.act--short .peak { text-shadow: 0 2px 28px rgba(5, 7, 10, 0.7), 0 0 3px rgba(5, 7, 10, 0.45); }
.act--short .seg--cf { background: rgba(5, 7, 10, 0.62); border: 1px solid var(--hair); -webkit-backdrop-filter: saturate(150%) blur(16px); backdrop-filter: saturate(150%) blur(16px); }
.act--short .seg--cf button { color: rgba(242, 244, 246, 0.72); }
.act--short .seg--cf button[aria-pressed="true"] { color: var(--ink); background: rgba(255, 255, 255, 0.16); }
/* short stories: a soft, wide shade behind the copy so it never fights the scene */
.act--short .act__stage::after { content: ""; position: absolute; left: 0; bottom: 0; width: min(900px, 80vw); height: 72vh; pointer-events: none; background: radial-gradient(85% 75% at 0% 100%, rgba(5, 7, 10, 0.82), rgba(5, 7, 10, 0.5) 45%, transparent 75%); }
#story-window .act__stage::after { width: min(1000px, 86vw); height: 78vh; background: radial-gradient(85% 75% at 0% 100%, rgba(5, 7, 10, 0.9), rgba(5, 7, 10, 0.62) 48%, transparent 78%); }
.act--short .beat { z-index: 1; }

/* link window timeline (last clear minutes) */
.panel--timeline { width: 340px; }
.act--short .panel--timeline { top: 84px; bottom: auto; right: auto; left: var(--pad); transition: top .5s var(--ease-out); }
html.nav-shown .act--short .panel--timeline { top: 144px; }
.act--short .wtl-place { position: absolute; left: 0; top: 0; pointer-events: none; display: flex; flex-direction: column; align-items: center; opacity: 0; will-change: transform, opacity; }
.wtl-place__name { font-size: var(--fs-small); letter-spacing: 0.02em; color: rgba(242, 244, 246, 0.86); white-space: nowrap; margin-bottom: 6px; text-shadow: 0 0 14px rgba(5, 7, 10, 1), 0 0 6px rgba(5, 7, 10, 1), 0 0 2px rgba(5, 7, 10, 1); }
.act--short .wtl-place.is-low .wtl-place__name { position: relative; color: rgba(242, 244, 246, 0.95); }
.act--short .wtl-place.is-low .wtl-place__name::before { content: ""; position: absolute; inset: -10px -16px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(5, 7, 10, 0.88), rgba(5, 7, 10, 0.55) 60%, transparent); }
.wtl-place__tick { width: 1px; height: var(--tick, 28px); background: linear-gradient(rgba(242, 244, 246, 0.5), rgba(242, 244, 246, 0.22)); }
.wtl { display: block; width: 100%; height: 92px; margin-top: 12px; overflow: visible; }
.wtl__base { stroke: rgba(255, 255, 255, 0.25); stroke-width: 1; vector-effect: non-scaling-stroke; }
.wtl__curve { fill: none; stroke: rgba(242, 244, 246, 0.75); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.wtl__without { fill: none; stroke: rgba(242, 244, 246, 0.42); stroke-width: 1.2; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.wtl .wtl__curve { stroke: var(--green); stroke-width: 2; }
.wtl.is-dropped .wtl__curve { stroke: rgba(242, 244, 246, 0.3); }
.wtl.is-dropped .wtl__without { stroke: var(--red); stroke-dasharray: none; stroke-width: 2; }
.wtl__legend { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: var(--fs-micro); color: var(--ink-2); }
.wtl__key { width: 16px; height: 0; border-top: 2px solid var(--green); margin-left: 6px; }
.wtl__key:first-child { margin-left: 0; }
.wtl__key--without { border-top: 1.2px dashed rgba(242, 244, 246, 0.6); margin-left: 14px; }
.wtl__cut { fill: rgba(184, 166, 140, 0.16); }
.wtl__cutline { stroke: rgba(255, 255, 255, 0.6); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.wtl__now { fill: var(--ink); }
.wtl.is-dropped .wtl__now { fill: var(--red); }
.wtl__labels { position: relative; display: flex; justify-content: space-between; margin-top: 8px; font-size: var(--fs-micro); color: var(--ink-3); height: 1.2em; }
.wtl__cutlabel { position: absolute; transform: translateX(-50%); color: var(--ink-2); }
.wtl__band { fill: rgba(255, 255, 255, 0.05); }
.wtl__flightlabel { color: var(--ink-3); }

/* ------------------------------------------------------------------ acts */
.act { position: relative; height: calc(var(--len) * 1vh); }
.act__stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
}
.act__stage::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 7, 10, 0.62) 0%, rgba(5, 7, 10, 0.26) 34%, transparent 56%);
}
.beat {
  position: absolute; left: var(--pad); bottom: clamp(104px, 16vh, 170px);
  width: min(34rem, calc(100% - var(--pad) * 2));
  visibility: hidden; opacity: 0;
}
.beat .h2 + .lead { margin-top: 18px; }
.beat .caption + .lead { margin-top: 10px; }
.beat .actions { margin-top: 26px; }
.beat--tag .caption { margin-top: 18px; max-width: 26em; }

/* film-style name tag */
.tag { display: flex; flex-direction: column; gap: 3px; padding-left: 14px; position: relative; }
.tag::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 1px; background: rgba(255, 255, 255, 0.5); transform-origin: top; transform: scaleY(var(--rule, 1)); }
.tag__name, .tag__meta { display: block; overflow: hidden; }
.tag__name > span, .tag__meta > span { display: inline-block; }
.tag__name { font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.005em; color: var(--ink); }
.tag__meta { font-size: var(--fs-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }

.beat--peak {
  left: 50%; bottom: auto; top: 40%; translate: -50% -50%;
  width: min(1100px, calc(100% - var(--pad) * 2)); text-align: center;
}
.peak { font-size: var(--fs-display); max-width: 11.5em; margin: 0 auto; display: grid; }
.peak > span { grid-area: 1 / 1; transition: opacity .9s var(--ease), transform .9s var(--ease-out), filter .9s var(--ease); }
.peak__without { opacity: 0; transform: translateY(14px); filter: blur(6px); }
.peak.is-without .peak__with { opacity: 0; transform: translateY(-14px); filter: blur(6px); }
.peak.is-without .peak__without { opacity: 1; transform: none; filter: none; }
.seg--cf { margin: 36px auto 0; }
.seg--cf button { height: 34px; padding: 0 18px; font-size: var(--fs-small); }
@media (prefers-reduced-motion: reduce) { .peak > span { transition-duration: .2s; transform: none !important; filter: none !important; } }

/* depth marker on the seabed (sea section) */
.depth { position: absolute; left: 0; top: 0; opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 8px; will-change: transform, opacity; }
.depth__tick { width: 18px; height: 1px; background: rgba(255, 255, 255, 0.7); }
.depth__label { font-size: var(--fs-micro); color: var(--ink); font-variant-numeric: tabular-nums; translate: 0 -0.5px; }
.act--end .act__stage::before { background: radial-gradient(70% 55% at 50% 50%, rgba(5, 7, 10, 0.5), transparent 75%); }

/* incident-log result line under each beat */
.log { margin-top: 12px; display: flex; align-items: center; gap: 9px; font-size: var(--fs-small); line-height: 1.4; color: #d5dbe1; font-weight: 500; font-variant-numeric: tabular-nums; }
.log__dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px rgba(242, 244, 246, 0.12); }
.log--ok .log__dot { background: var(--green); box-shadow: 0 0 0 3px rgba(63, 214, 138, 0.16); }
.beat .log { visibility: hidden; opacity: 0; }

/* instrument panel: the AI's output, always on the right */
.panel {
  position: absolute; right: var(--pad); top: clamp(88px, 21vh, 220px);
  width: 360px; padding: 22px 24px 18px; border-radius: 20px;
  background: rgba(8, 11, 15, 0.52);
  -webkit-backdrop-filter: saturate(150%) blur(20px); backdrop-filter: saturate(150%) blur(20px);
  visibility: hidden; opacity: 0;
}
.panel__toggle { width: 100%; text-align: left; cursor: default; }
.panel__toggle .chev { display: none; margin-left: auto; color: var(--ink-2); transition: transform .35s var(--ease-out); }
.panel__head { font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 8px; }
.panel__sub { font-weight: 400; color: var(--ink-2); font-size: var(--fs-small); }
.panel--timeline .panel__sub { display: none; }
.wtl__pct { margin-left: auto; font-size: 1.375rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1; color: var(--green); font-variant-numeric: tabular-nums; transition: color .3s var(--ease); }
.wtl__pct.is-down { color: var(--red); }
.risk-count { color: var(--amber); font-variant-numeric: tabular-nums; font-size: 1.75rem; letter-spacing: -0.02em; line-height: 1; }
.risk { margin-top: 14px; }
.risk li {
  display: grid; grid-template-columns: 7px 92px 1fr; grid-template-rows: auto auto; column-gap: 12px;
  padding: 10px 0; border-top: 1px solid var(--hair);
  font-size: var(--fs-small); line-height: 1.35;
  visibility: hidden; opacity: 0;
}
.risk li::before { content: ""; grid-row: 1 / span 2; align-self: center; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.risk__layer { grid-row: 1 / span 2; align-self: center; color: var(--ink-2); }
.risk__what { color: var(--ink); }
.risk__why { color: var(--ink-2); }

/* plan steps */
.plan { margin-top: 12px; }
.step { border-top: 1px solid var(--hair); }
.step__head {
  width: 100%; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px;
  padding: 14px 0; text-align: left; font-size: 0.9375rem; color: var(--ink);
}
.step__n { font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: var(--fs-small); }
.step__title { font-weight: 500; letter-spacing: -0.005em; }
.step__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); transition: background-color .6s var(--ease); }
.step__dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid currentColor; color: var(--amber); opacity: 0; }
.step[data-state="running"] .step__dot::after { animation: ping 1.6s var(--ease) infinite; }
.step[data-state="done"] .step__dot { background: var(--green); }
.step__head:hover .step__title { color: #fff; }
@keyframes ping { 0% { transform: scale(0.6); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.step__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }

.step.is-open .step__body { grid-template-rows: 1fr; }
.step__body-inner { min-height: 0; overflow: hidden; }
.step__detail { font-size: var(--fs-small); color: var(--ink-2); line-height: 1.5; padding-left: 32px; }
.seg { display: inline-flex; margin: 12px 0 0 32px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); }
.seg button { height: 28px; padding: 0 14px; border-radius: 999px; font-size: var(--fs-micro); color: var(--ink-2); transition: background-color .3s var(--ease), color .3s var(--ease); }
.seg button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.16); color: var(--ink); }
.step__out { padding: 10px 0 16px 32px; font-size: var(--fs-small); line-height: 1.45; color: var(--ink); display: flex; gap: 8px; align-items: baseline; }
.step__out::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--red); transform: translateY(-1px); }
.step__out[data-view="after"]::before { background: var(--green); }

/* --------------------------------------------------------------- outcome */
.outcome { position: relative; background: var(--bg); padding: clamp(120px, 18vh, 200px) 0 0; }
.outcome__title { color: var(--ink-2); }
.outcome__row[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.outcome__row[data-count="5"] { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.outcome__row[data-count="5"] .outcome__n { font-size: clamp(2.5rem, 1.5rem + 2.6vw, 4rem); }
.outcome__row { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--hair); padding-top: 32px; }
.outcome__row li { display: flex; flex-direction: column; gap: 10px; }
.outcome__n { white-space: nowrap; font-size: clamp(2.75rem, 1.6rem + 3.4vw, 4.75rem); line-height: 1; letter-spacing: -0.03em; font-weight: 400; font-variant-numeric: tabular-nums; }
.outcome__l { font-size: var(--fs-body); color: var(--ink-2); }

/* ------------------------------------------------------------------ cast */
.wrap { max-width: calc(var(--maxw) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.cast { background: var(--bg); padding: clamp(110px, 16vh, 180px) 0 clamp(80px, 12vh, 140px); }
.cast__head { max-width: 40rem; }
.cast__head .lead { margin-top: 20px; }
.cast__list { margin-top: clamp(56px, 8vh, 96px); counter-reset: cast; }
.cast__row {
  display: grid; grid-template-columns: 128px minmax(170px, 0.9fr) minmax(0, 1.6fr) minmax(190px, 0.8fr);
  gap: 32px; align-items: baseline;
  padding: 28px 0 30px; border-top: 1px solid var(--hair);
  scroll-margin-top: 90px;
}
.cast__row:last-child { border-bottom: 1px solid var(--hair); }
.cast__thumb { align-self: start; width: 128px; aspect-ratio: 16 / 10; height: auto; object-fit: cover; border-radius: 8px; background: var(--bg-raise); }
.cast__layer { display: grid; grid-template-columns: 34px 1fr; row-gap: 4px; }
.cast__n { grid-row: 1 / span 2; color: var(--ink-3); font-size: var(--fs-small); font-variant-numeric: tabular-nums; padding-top: 2px; }
.cast__name { font-size: 1.0625rem; font-weight: 500; }
.cast__range { font-size: var(--fs-small); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cast__prod { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); font-weight: 500; letter-spacing: -0.018em; line-height: 1.2; }
.cast__role p { margin-top: 8px; color: var(--ink-2); max-width: 30em; }
.cast__end { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cast__when { font-size: var(--fs-small); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cast__end .link { font-size: 0.9375rem; }

/* ----------------------------------------------------------- get started */
.get { background: var(--bg); padding: clamp(110px, 16vh, 180px) 0 clamp(60px, 9vh, 110px); }
.get__head { max-width: 40rem; }
.get__head .lead { margin-top: 20px; }
.get__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: clamp(48px, 7vh, 80px); }
.get__card { display: flex; flex-direction: column; padding: clamp(28px, 3vw, 44px); border-radius: 20px; background: var(--bg-raise); border: 1px solid var(--hair); }
.get__icon { color: var(--ink-2); }
.get__label { margin-top: 28px; font-size: var(--fs-small); color: var(--ink-3); }
.get__title { margin-top: 6px; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.get__text { margin-top: 14px; color: var(--ink-2); max-width: 32em; }
.get__points { margin-top: 24px; display: grid; gap: 10px; }
.get__points li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 0.9375rem; }
.get__points svg { flex: none; margin-top: 3px; color: var(--green); }
.get__actions { margin-top: auto; padding-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ------------------------------------------------------------- use cases */
.cases { position: relative; background: var(--bg); height: calc(100vh + var(--cases-scroll, 0px)); }
.cases__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.cases__head { width: 100%; }
.cases__head .lead { margin-top: 16px; }
.cases__row { display: flex; gap: 56px; margin-top: clamp(40px, 6vh, 64px); padding: 0 var(--pad) 0 max(var(--pad), calc((100vw - var(--maxw)) / 2)); will-change: transform; }
.case { flex: 0 0 min(440px, 32vw); }
.case__img { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--bg-raise); }
.case__img img { width: 100%; height: 100%; object-fit: cover; }
.case__layers { margin-top: 22px; font-size: var(--fs-small); color: var(--ink-3); }
.case__product { color: var(--ink); font-weight: 500; }
.case__title { margin-top: 6px; font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.case__text { margin-top: 10px; color: var(--ink-2); max-width: 34ch; }
.case .log { color: var(--ink); margin-top: 16px; }
.case__link { margin-top: 14px; font-size: 0.9375rem; }

/* ------------------------------------------------------------------ final */
/* ------------------------------------------------------------------ team */
.team { background: var(--bg); padding: clamp(110px, 16vh, 180px) 0 clamp(40px, 6vh, 80px); }
.team__head { max-width: 40rem; }
.team__head .lead { margin-top: 20px; }
.team__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; margin-top: clamp(48px, 7vh, 80px); }
.team__photo { aspect-ratio: 1; max-width: 220px; border-radius: 14px; background: var(--bg-raise); border: 1px solid var(--hair); display: grid; place-items: center; overflow: hidden; }
.team__photo img { width: 100%; height: 100%; object-fit: cover; }
.team__initials { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.75rem); font-weight: 500; letter-spacing: -0.02em; color: var(--ink-2); }
.team__ph { font-size: var(--fs-small); color: var(--ink-3); }
.team__name { margin-top: 22px; font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.team__role { margin-top: 6px; color: var(--ink-2); }
.team__bio { margin-top: 10px; max-width: 30em; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-3); }
.team__social { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 10px 0 0 -8px; border-radius: 10px; color: var(--ink-2); transition: color .2s var(--ease), background-color .2s var(--ease); }
.team__social:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.team__social:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.final { position: relative; overflow: hidden; background: var(--bg); padding: clamp(140px, 22vh, 240px) 0 clamp(120px, 18vh, 200px); }
.final__bg { position: absolute; inset: 0; opacity: 0.95; }
.final__bg img { width: 100%; height: 100%; object-fit: cover; }
.final__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(5, 7, 10, 0.1) 22%, rgba(5, 7, 10, 0) 70%, var(--bg) 100%), linear-gradient(90deg, rgba(5, 7, 10, 0.72) 0%, rgba(5, 7, 10, 0.2) 50%, transparent 72%); }
.final__inner { position: relative; }
.final__title { max-width: 11em; }
.final .lead { margin-top: 24px; max-width: 30em; }
.final .actions { margin-top: 38px; }
.note__link { color: var(--ink-2); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.28); text-underline-offset: 2px; }
.note__link:hover { color: var(--ink); }
.note { margin-top: 56px; font-size: var(--fs-small); color: var(--ink-3); max-width: 34em; }
.replay { margin-top: 18px; font-size: var(--fs-small); }

/* ------------------------------------------------------------------ footer */
/* ---------------------------------------------------- footnotes + references */
.fn { font-size: 0.6em; line-height: 0; vertical-align: super; margin-left: 0.12em; font-weight: 400; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.fn a { color: var(--ink-2); padding: 0.4em 0.1em; pointer-events: auto; transition: color .2s var(--ease); }
.fn a:hover { color: var(--link); }
.outcome__n .fn { font-size: 0.26em; vertical-align: top; position: relative; top: 1.5em; margin-left: 0.3em; letter-spacing: 0; }
.peak .fn { font-size: 0.24em; vertical-align: top; position: relative; top: 0.7em; margin-left: 0.25em; letter-spacing: 0; }
.refs { background: var(--bg-raise); border-top: 1px solid var(--hair); padding: 40px 0 44px; font-size: 0.75rem; line-height: 1.5; color: var(--ink-3); }
.refs__title { font-size: 0.75rem; font-weight: 500; color: var(--ink-2); }
.refs__intro { margin-top: 10px; max-width: 78em; }
.refs__list { margin-top: 14px; padding-left: 1.9em; list-style: decimal; max-width: 78em; }
.refs__list li { padding-left: 0.3em; margin-top: 9px; scroll-margin-top: 130px; }
.refs__list li::marker { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.refs:not(.is-collapsed) .refs__list li:target { color: var(--ink-2); }
.refs__list cite { font-style: italic; }
.refs a { color: var(--ink-2); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.28); text-underline-offset: 2px; overflow-wrap: anywhere; transition: color .2s var(--ease); }
.refs a:hover { color: var(--ink); }
.refs + .footer { border-top-color: transparent; }
.footer { background: var(--bg); border-top: 1px solid var(--hair); padding: 64px 0 120px; font-size: var(--fs-small); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1.6fr 1fr 1.2fr; gap: 40px; }
.footer__brand p { margin-top: 12px; color: var(--ink-2); max-width: 22ch; line-height: 1.5; }
.footer__h { color: var(--ink); font-weight: 500; margin-bottom: 14px; }
.footer__col li + li { margin-top: 9px; }
.footer__col a { color: var(--ink-2); transition: color .2s var(--ease); }
.footer__col a:hover { color: var(--ink); }
.footer__layers li { display: grid; grid-template-columns: 104px 1fr; column-gap: 12px; }
.footer__layers .footer__core { color: var(--ink); }  /* the core product, then its applications */
.footer__legal { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; color: var(--ink-3); font-size: var(--fs-micro); }
.footer__legal a { margin-left: 20px; transition: color .2s var(--ease); }
.footer__legal a:hover { color: var(--ink); }

/* -------------------------------------------- fallback without scroll libs */
.is-fallback .act { height: auto; }
.is-fallback .act__stage { position: relative; height: auto; overflow: visible; display: flex; flex-direction: column; gap: 56px; padding: 18vh var(--pad); }
.is-fallback .act__stage::before { display: none; }
.is-fallback .beat, .is-fallback .panel, .is-fallback .risk li { position: relative; inset: auto; translate: none; visibility: visible; opacity: 1; }
.is-fallback .beat--peak { width: auto; }
/* the hero picture and its labels scroll away with the hero */
.is-fallback .hero-still, .is-fallback .hero-layers { position: absolute; height: 100vh; height: 100svh; }

/* ------------------------------------------------------------- capture mode */
.is-capture .nav, .is-capture .clock, .is-capture main, .is-capture .footer, .is-capture .skip, .is-capture .sheet, .is-capture .hero-layers, .is-capture .hero-still { display: none !important; }
/* ?black=1: on plain black, for a frame that the page screens over its backdrop (stills/hero.jpg) */
.is-black, .is-black body { background: #000; }
.is-black .backdrop { display: none; }
.is-capture .twin { opacity: 1; transition: none; }

/* ------------------------------------------------------------------ tablet */
@media (max-width: 1080px) {
  .pick__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { width: 320px; }
  .cast__row { grid-template-columns: 120px 1fr; row-gap: 12px; }
  .cast__thumb { grid-row: 1 / span 3; width: 120px; }
  .cast__layer, .cast__role, .cast__end { grid-column: 2; }
  .cast__end { flex-direction: row; align-items: baseline; justify-content: space-between; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------ phone */
/* upright phone: the hero picture stands above the text. Keep 230px for it under the nav bar, even on a short screen */
@media (max-width: 760px) and (orientation: portrait) { .hero__copy { padding-top: 320px; } }
@media (max-width: 760px) {
  /* phones: the app and the SDK sit side by side and swipe, like the stories */
  .get__grid { display: flex; gap: 16px; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: 0 var(--pad);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); scrollbar-width: none; overscroll-behavior-x: contain; }
  .get__grid::-webkit-scrollbar { display: none; }
  .get__grid .get__card { flex: 0 0 86%; scroll-snap-align: start; }
  .get__label { margin-top: 20px; }
  .team__grid { grid-template-columns: 1fr; gap: 28px; }
  .team__member { display: grid; grid-template-columns: 88px 1fr; column-gap: 20px; align-items: start; }
  .team__photo { grid-row: 1 / span 3; }
  .team__initials { font-size: 1.5rem; }
  .team__name { margin-top: 2px; }
  .nav__bar { height: 54px; gap: 16px; }
  .nav__links { display: none; }
  .nav__menu { display: block; }
  .products { display: none !important; }


  .hero::before { background: linear-gradient(0deg, rgba(5, 7, 10, 0.82) 0%, rgba(5, 7, 10, 0.4) 30%, transparent 48%); }
  .hero__copy { padding-bottom: 56px; }
  .hero .lead { margin-top: 16px; }
  .hero .actions { margin-top: 26px; gap: 14px 22px; }

  .act__stage::before {
    background: linear-gradient(0deg, rgba(5, 7, 10, 0.86) 0%, rgba(5, 7, 10, 0.5) 30%, transparent 54%),
                linear-gradient(180deg, rgba(5, 7, 10, 0.55) 0%, transparent 26%);
  }
  .beat { bottom: 100px; }
  .beat--tag .caption { margin-top: 14px; }
  .beat--peak { bottom: auto; width: calc(100% - var(--pad) * 2); }

  /* phones: the stories sit side by side and swipe, one per screen, with the next one peeking in */
  .pick__grid { display: flex; gap: 20px; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: 0 var(--pad);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); scrollbar-width: none; overscroll-behavior-x: contain; }
  .pick__grid::-webkit-scrollbar { display: none; }
  .pick__grid .option { flex: 0 0 84%; scroll-snap-align: start; }
  /* the dots under a swipe row: which card is in view; tap one to go there */
  .swipe-dots { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
  .swipe-dots button { width: 6px; height: 6px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.24); transition: background-color .3s var(--ease), width .3s var(--ease); }
  .swipe-dots button.is-on { width: 18px; border-radius: 3px; background: var(--ink); }
  .option { opacity: 0.62; }
  .option__title { font-size: 1.5rem; }
  .playing__inner { height: 50px; gap: 16px; }
  .clock { padding: 9px 13px 11px 12px; border-radius: 14px; column-gap: 8px; }
  .clock__time { font-size: 1.0625rem; }
  .clock__dot { width: 6px; height: 6px; }
  .clock__track { left: 12px; right: 13px; bottom: 5px; }
  .playing__others { display: none; }
  .playing__now { flex-direction: column; gap: 1px; min-width: 0; }
  .playing__label { font-size: var(--fs-micro); line-height: 1.2; }
  .playing__title { line-height: 1.25; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  html.nav-shown .playing { top: 54px; }
  html.nav-shown .vs__tr--head { top: 54px; }
  .act--short .act__stage::after { width: 100%; height: 62vh; background: linear-gradient(0deg, rgba(5, 7, 10, 0.88) 0%, rgba(5, 7, 10, 0.55) 45%, transparent 100%); }
  .panel {
    left: var(--pad); right: var(--pad); top: 116px; width: auto; translate: none;
    padding: 14px 16px 6px; border-radius: 16px;
  }
  .risk-count { font-size: 1.375rem; }
  .risk { margin-top: 8px; }
  .risk li { grid-template-columns: 6px 1fr auto; grid-template-rows: auto; padding: 6px 0; column-gap: 10px; font-size: var(--fs-micro); }
  .risk li::before { grid-row: 1; width: 6px; height: 6px; }
  .risk__layer { display: none; }
  .risk__what { grid-row: 1; }
  .risk__why { grid-row: 1; text-align: right; }
  .panel--plan { padding-bottom: 2px; }
  .plan { margin-top: 6px; }
  .step__head { padding: 10px 0; font-size: var(--fs-small); }
  .step__detail { display: none; }
  .seg { margin-top: 2px; }
  .step__out { padding: 8px 0 12px 32px; font-size: var(--fs-micro); }

  .outcome__row, .outcome__row[data-count] { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .outcome__row[data-count="5"] li:first-child, .outcome__row[data-count="3"] li:first-child { grid-column: 1 / -1; }
  .seg--cf { margin-top: 28px; }
  .cases { height: auto; padding: clamp(100px, 14vh, 140px) 0 24px; }
  .cases__stage { position: relative; height: auto; overflow: visible; }
  .cases__row { gap: 20px; padding: 0 var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); scrollbar-width: none; overscroll-behavior-x: contain; transform: none !important; }
  .cases__row::-webkit-scrollbar { display: none; }
  .case { flex: 0 0 84%; scroll-snap-align: start; }
  .case__layers { margin-top: 16px; }
  .panel--risk { padding-bottom: 14px; }
  .act--short .panel--timeline { top: 112px; bottom: auto; left: var(--pad); right: var(--pad); padding-bottom: 12px; }
  html.nav-shown .act--short .panel--timeline { top: 166px; }
  .wtl__pct { font-size: 1.125rem; }
  .panel--timeline .wtl { height: 56px; margin-top: 8px; }
  .panel--timeline .wtl__legend { margin-top: 6px; }
  .panel--risk .panel__toggle { cursor: pointer; align-items: center; }
  .panel--risk .panel__toggle .chev { display: block; }
  .panel--risk .risk { display: none; }
  .panel--risk.is-expanded { padding-bottom: 6px; }
  .panel--risk.is-expanded .risk { display: block; }
  .panel--risk.is-expanded .panel__toggle .chev { transform: rotate(180deg); }
  .cast__row { grid-template-columns: 88px 1fr; column-gap: 16px; gap: 10px 16px; padding: 24px 0 26px; }
  .cast__thumb { width: 88px; grid-row: 1 / span 3; }
  .cast__layer { grid-template-columns: 34px auto 1fr; column-gap: 0; align-items: baseline; }
  .cast__n { grid-row: 1; }
  .cast__name { margin-right: 10px; }
  .cast__range { grid-row: 1; grid-column: 3; text-align: right; }
  .cast__layer, .cast__role, .cast__end { grid-column: 2; }

  .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .footer__col--wide { grid-column: 1 / -1; }
  .footer__layers { display: grid; grid-template-columns: 1fr; }
  .footer__legal { flex-direction: column; gap: 10px; }
  .footer__legal a { margin: 0 20px 0 0; }
}
.refs__check { font-weight: 500; color: var(--ink-2); }
/* references open on the first two notes and a little of the third, then fade */
.refs__body { transition: max-height .6s var(--ease); }
.refs.is-collapsed .refs__body {
  overflow: hidden;
  overflow: clip; /* can't be scrolled inside, even by a #ref link */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--refs-fade, 96px)), transparent);
          mask-image: linear-gradient(to bottom, #000 calc(100% - var(--refs-fade, 96px)), transparent);
}
.refs__more { margin: 20px 0 0 calc(1.9em + 0.3em); }
/* outcome highlight: one figure, said in people. A plain statement, no card */
.outcome__hl { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--hair); }
.outcome__hl[hidden] { display: none; }
.outcome__hl-text { max-width: 22em; font-size: clamp(1.75rem, 1.1rem + 2vw, 3rem); line-height: 1.15; letter-spacing: -0.025em; font-weight: 400; color: var(--ink-3); }
.outcome__hl-text b { font-weight: 500; color: var(--ink); }
.outcome__hl-text .fn { font-size: 0.4em; letter-spacing: 0; margin-left: 0.1em; }
.outcome__hl-meta { margin-top: 16px; font-size: var(--fs-small); color: var(--ink-3); }

/* ------------------------------------------------ build it yourself, or ours */
.vs { background: var(--bg); padding: clamp(60px, 9vh, 110px) 0 clamp(80px, 12vh, 140px); }
.vs__head { max-width: 40rem; }
.vs__head .lead { margin-top: 20px; }
.vs__metric { margin-top: clamp(32px, 5vh, 48px); font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem); font-weight: 500; letter-spacing: -0.02em; }
.vs__sub { margin-top: 6px; font-size: var(--fs-small); color: var(--ink-3); }
.vs__bars { margin-top: 32px; display: grid; gap: 26px; max-width: 64rem; }
.vs__bar { display: grid; grid-template-columns: minmax(0, 1fr) 8.5rem; column-gap: 24px; row-gap: 8px; align-items: center; transition: opacity .3s var(--ease); }
.vs__track { display: block; height: 8px; }
.vs__fill { display: block; height: 100%; width: calc(var(--w) * 100%); min-width: 28px; border-radius: 4px; transform-origin: left; transition: transform 1.1s var(--ease-out); }
.vs__bar[data-path="app"] .vs__fill { background: var(--green); }
.vs__bar[data-path="sdk"] .vs__fill { background: var(--ink-2); }
.vs__bar[data-path="scratch"] .vs__fill { background: var(--ink-3); }
.vs__val { white-space: nowrap; font-size: clamp(1.25rem, 1rem + 0.9vw, 2rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.vs__bar[data-path="app"] .vs__val { color: var(--green); }
.vs__name { grid-column: 1 / -1; font-size: var(--fs-small); font-weight: 500; color: var(--ink-2); }
.vs__bar[data-path="app"] .vs__name { color: var(--ink); }
.vs__chart:not(.is-in) .vs__fill { transform: scaleX(0); }
.vs__compare { margin-top: clamp(56px, 8vh, 88px); }
.vs__tr { display: grid; grid-template-columns: minmax(9rem, 1fr) repeat(3, minmax(0, 1.4fr)); column-gap: clamp(16px, 2.4vw, 32px); padding: 18px 0; border-bottom: 1px solid var(--hair); }
.vs__tr--head { position: sticky; top: 0; z-index: 2; transition: top .3s var(--ease); background: var(--bg); padding: 14px 0; border-bottom-color: rgba(255, 255, 255, 0.22); }  /* stays in view while you read down */
html.nav-shown .vs__tr--head { top: 60px; }  /* sits under the menu when it shows */
.vs__colhead { font-size: var(--fs-body); font-weight: 500; color: var(--ink-2); }
.vs__colhead[data-path="app"] { color: var(--ink); }
.vs__th { font-size: var(--fs-small); color: var(--ink-2); padding-top: 2px; }
.vs__td { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; align-self: stretch; }
.vs__v { color: var(--ink); line-height: 1.4; }
.vs__td[data-path="scratch"] .vs__v { color: var(--ink-2); }
.vs__status { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-micro); color: var(--ink-3); }
.vs__status span { width: 6px; height: 6px; border-radius: 50%; }
.vs__status--strong span { background: var(--green); }
.vs__status--mixed span { background: var(--amber); }
.vs__status--weak span { background: var(--red); }
.vs__tr--trade { border-bottom: 0; padding-top: 28px; }
.vs__tr--trade .vs__v { font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem); line-height: 1.35; letter-spacing: -0.01em; }
@media (max-width: 760px) {
  .vs__bar { grid-template-columns: minmax(0, 1fr) 5.25rem; column-gap: 14px; }
  /* phone: the row label spans the top, the three paths sit side by side under it */
  .vs__tr { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 12px; row-gap: 10px; padding: 16px 0; }
  .vs__corner { display: none; }
  .vs__th { grid-column: 1 / -1; padding-top: 0; }
  .vs__colhead { font-size: var(--fs-small); }
  .vs__v, .vs__tr--trade .vs__v { font-size: 0.875rem; }
  .vs__status { font-size: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) { .vs__fill { transition: none; } }

/* ----------------------------------------- "explore" pill and its panel */
/* opens the comparison panel: the page's secondary button, with a plus */
.get__more { margin-top: clamp(40px, 6vh, 64px); display: flex; justify-content: center; }
.get__compare { gap: 12px; padding-right: 11px; }
/* a small plus marks it as the thing to open, in the page's accent */
.get__compare-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--on-accent); transition: transform .3s var(--ease-out), background-color .2s var(--ease); }
.get__compare:hover .get__compare-icon { transform: rotate(90deg); background: var(--accent-hover); }

.modal { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.modal::backdrop { background: rgba(5, 7, 10, 0.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.modal__panel { position: relative; max-width: 1260px; margin: 0 clamp(16px, 6vw, 90px); margin-inline: max(clamp(16px, 6vw, 90px), calc((100% - 1260px) / 2)); margin-block: 40px; border-radius: 20px; background: var(--bg-raise); border: 1px solid var(--hair); padding: 0 0 clamp(64px, 9vh, 96px); }
.modal__close { position: sticky; top: 20px; z-index: 3; display: grid; place-items: center; width: 36px; height: 36px; margin: 20px 20px -56px auto; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); color: var(--ink); transition: background-color .2s var(--ease); }
.modal__close:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42); }
.modal__close:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.modal .vs { background: transparent; padding: clamp(72px, 10vh, 104px) 0 0; }
.modal .vs__tr--head, html.nav-shown .modal .vs__tr--head { top: 0; background: var(--bg-raise); }
.modal[open] .modal__panel { animation: modal-in .55s var(--ease-out) both; }
.modal[open]::backdrop { animation: modal-fade .4s var(--ease) both; }
.modal.is-closing .modal__panel { animation: modal-out .3s var(--ease) both; }
.modal.is-closing::backdrop { animation: modal-fade .3s var(--ease) reverse both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(48px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes modal-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(32px) scale(0.98); } }
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
html.modal-open { overflow: hidden; }
.vs__cta { margin-top: clamp(48px, 7vh, 72px); padding-top: 40px; border-top: 1px solid var(--hair); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.vs__cta-text { font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem); font-weight: 500; letter-spacing: -0.02em; }
.vs__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) {
  .modal__panel { margin: 12px 8px; border-radius: 24px; }
  .modal .vs__tr--head, html.nav-shown .modal .vs__tr--head { position: static; }  /* no room beside the close button */
}
@media (prefers-reduced-motion: reduce) {
  .modal[open] .modal__panel, .modal.is-closing .modal__panel, .modal[open]::backdrop, .modal.is-closing::backdrop { animation-duration: .01s; }
}

/* ------------------------------------------------- privacy and terms pages */
.legal { padding: calc(60px + clamp(56px, 10vh, 112px)) 0 clamp(80px, 12vh, 140px); }
.legal__wrap { display: grid; grid-template-columns: minmax(0, 1fr) 15rem; column-gap: clamp(40px, 6vw, 96px); align-items: start; }
.legal__head { grid-column: 1 / -1; max-width: 44rem; }
.legal__kicker { font-size: var(--fs-small); color: var(--ink-3); }
.legal__head .h2 { margin-top: 12px; }
.legal__head .lead { margin-top: 20px; }
.legal__body { grid-column: 1; grid-row: 2; max-width: 44rem; margin-top: clamp(48px, 7vh, 72px); }
.legal__sec { padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--hair); scroll-margin-top: 80px; }
.legal__sec:first-child { margin-top: 0; }
.legal__sec h2 { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; }
.legal__sec p, .legal__sec ul { margin-top: 14px; color: var(--ink-2); line-height: 1.6; }
.legal__sec ul { display: grid; gap: 8px; }
.legal__sec li { position: relative; padding-left: 20px; }
.legal__sec li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.legal__sec a, .legal__toc a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.28); text-underline-offset: 3px; transition: text-decoration-color .2s var(--ease); }
.legal__sec a:hover { text-decoration-color: var(--ink); }
.legal__toc { grid-column: 2; grid-row: 2; position: sticky; top: 100px; margin-top: clamp(48px, 7vh, 72px); padding-top: 32px; border-top: 1px solid var(--hair); font-size: var(--fs-small); }
.legal__toc-h { color: var(--ink-3); }
.legal__toc ol { margin-top: 12px; display: grid; gap: 8px; }
.legal__toc a { color: var(--ink-2); text-decoration: none; }
.legal__toc a:hover { color: var(--ink); }
.footer--legal { padding: 8px 0 64px; }
.footer--legal .footer__legal { position: relative; margin-top: 0; padding-top: 24px; }
.footer--legal .footer__legal::before { display: none; }  /* the footer's own top rule is enough */
.footer__legal a[aria-current="page"] { color: var(--ink-2); }
@media (max-width: 900px) {
  .legal__wrap { grid-template-columns: minmax(0, 1fr); }
  .legal__toc { display: none; }
}

/* --------------------------------------------------------------- about page */
.about { padding: calc(60px + clamp(64px, 12vh, 128px)) 0 clamp(80px, 12vh, 140px); }
/* same gap as every other page, so the menu bar never shifts between pages */
.about__vision { margin-top: 16px; max-width: 15em; }
.about__mission { margin-top: 24px; max-width: 38em; }
.about__sec { margin-top: clamp(96px, 14vh, 160px); }
.about__split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.about__text p { color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.55; }
.about__text p + p { margin-top: 18px; }
.about__places { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--hair); }
.about__places li { padding: 14px 0; border-bottom: 1px solid var(--hair); color: var(--ink); font-size: var(--fs-small); }
.about__sub { margin-top: 18px; }
.about__actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.about__end .about__actions { margin-top: 28px; }

/* the stack: three nodes in a row, with the apps hanging under the middle one */
.eco { margin-top: clamp(40px, 6vh, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 0.8fr) minmax(0, 1.15fr) minmax(120px, 0.8fr) minmax(0, 1fr); align-items: center; }
.eco__node { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; border-radius: 16px; background: var(--bg-raise); border: 1px solid var(--hair); transition: border-color .2s var(--ease); }
.eco__node:hover { border-color: rgba(255, 255, 255, 0.24); }
.eco__node--core { border-color: rgba(63, 214, 138, 0.4); }
.eco__n { font-size: var(--fs-micro); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.eco__name { margin-top: 6px; font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.625rem); font-weight: 500; letter-spacing: -0.015em; }
.eco__role { font-size: var(--fs-small); color: var(--ink-2); }
.eco__link { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 10px; color: var(--ink-3); }
.eco__label { font-size: var(--fs-micro); color: var(--ink-2); text-align: center; line-height: 1.35; }
.eco__arrow { width: 100%; max-width: 96px; height: 12px; }
.eco__apps { grid-column: 3; margin-top: 0; padding-top: 18px; position: relative; }
.eco__apps::before { content: ""; position: absolute; left: 24px; top: 0; height: 18px; width: 1px; background: rgba(63, 214, 138, 0.4); }
.eco__apps-h { font-size: var(--fs-micro); color: var(--ink-3); padding-left: 24px; }
.eco__apps ul { margin-top: 10px; display: grid; gap: 2px; padding-left: 24px; }
.eco__apps li { display: flex; align-items: baseline; gap: 10px; font-size: var(--fs-small); }
.eco__apps li a, .eco__apps li > span:first-child { color: var(--ink); padding: 3px 0; }
.eco__apps li a:hover { color: var(--link); }
.eco__soon { font-size: 0.75rem; color: var(--ink-3); }

/* the three products, side by side */
.about__prods { margin-top: clamp(40px, 6vh, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.prod { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.22); scroll-margin-top: 90px; }
.prod__n { font-size: var(--fs-micro); color: var(--ink-3); }
.prod__name { margin-top: 10px; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.prod > p:not(.prod__n) { margin-top: 14px; color: var(--ink-2); line-height: 1.6; }
.prod__apps { margin-top: 16px; display: grid; gap: 12px; }
.prod__apps li { display: grid; gap: 2px; font-size: var(--fs-small); color: var(--ink-2); line-height: 1.5; }
.prod__apps a, .prod__app { color: var(--ink); font-weight: 500; }
.prod__apps a:hover { color: var(--link); }
.prod__apps em { font-style: normal; color: var(--ink); }
@media (max-width: 900px) {
  .about__split { grid-template-columns: minmax(0, 1fr); }
  .about__prods { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .about__places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* the stack reads top to bottom */
  .eco { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .eco__link { flex-direction: row-reverse; justify-content: flex-end; padding: 14px 0 14px 24px; }
  .eco__arrow { width: 12px; height: 40px; transform: rotate(90deg); max-width: none; width: 40px; height: 12px; }
  .eco__label { text-align: left; }
  .eco__apps { grid-column: 1; grid-row: 4; padding-bottom: 6px; }
}
@media (max-width: 760px) {
  .about-page .nav__end .link { display: none; }
}

/* the Products menu: three products and the SDK */
.prodlist a { grid-template-columns: 34px 104px 168px 1fr; }
.prodlist__name { color: var(--ink); font-weight: 500; }
.prodlist__role { color: var(--ink-3); }
.prodlist__desc { color: var(--ink-2); line-height: 1.45; }
.prodlist a:hover .prodlist__desc { color: var(--ink); }
.footer__layers li { grid-template-columns: 116px 1fr; }
.about__first { margin-top: 0; }
.about__first .about__vision { max-width: 18em; }

/* ------------------------------------------------------------ products page */
.pp { padding-bottom: 0; }
.pp-nav { display: flex; gap: 28px; margin-left: 40px; margin-right: auto; }
.pp-nav a { font-size: var(--fs-small); color: var(--ink-2); transition: color .2s var(--ease); }
.pp-nav a:hover { color: var(--ink); }
.pp-kicker { display: flex; gap: 10px; font-size: var(--fs-small); color: var(--ink-3); }
.pp-kicker span { color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* hero: the home page picture, screened over the dark so its black edges never show */
.pp-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.pp-hero__art { position: absolute; inset: 0 0 150px 0; pointer-events: none; }  /* ends above the product index */
.pp-hero__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(5, 7, 10, 0.7) 34%, transparent 62%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.pp-hero__copy { position: relative; width: 100%; }
.pp-hero .display { max-width: 9.5em; }
.pp-hero .lead { margin-top: 22px; max-width: 30em; }
.pp-index { position: relative; width: 100%; margin-top: clamp(56px, 9vh, 96px); margin-bottom: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* the rule sits inside the page margins, like the rest of the content */
.pp-index::before, .footer--legal .footer__legal::before { content: ""; position: absolute; top: 0; left: var(--pad); right: var(--pad); height: 1px; background: rgba(255, 255, 255, 0.18); }
.pp-index a { display: flex; flex-direction: column; gap: 2px; padding: 18px 16px 4px 0; font-size: 1.0625rem; font-weight: 500; color: var(--ink); transition: color .2s var(--ease); }
.pp-index a span { font-size: var(--fs-micro); font-weight: 400; color: var(--ink-3); margin-bottom: 6px; }
.pp-index a em { font-style: normal; font-weight: 400; font-size: var(--fs-small); color: var(--ink-2); }
.pp-index a:hover { color: var(--link); }

.pp-stack { margin-top: clamp(96px, 14vh, 160px); }

/* one product: a picture and its details, side by side */
.pp-prod { margin-top: clamp(112px, 16vh, 180px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; scroll-margin-top: 80px; }
.pp-prod--flip .pp-prod__media { order: 2; }
.pp-prod__media { position: sticky; top: 96px; aspect-ratio: 16 / 11; border-radius: 16px; overflow: hidden; background: var(--bg-raise); border: 1px solid var(--hair); }
.pp-prod__media img { width: 100%; height: 100%; object-fit: cover; }
.pp-prod__copy .h2 { margin-top: 14px; }
.pp-prod__line { margin-top: 16px; color: var(--ink); }
.pp-points { margin-top: 32px; display: grid; gap: 18px; }
.pp-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); line-height: 1.55; }
.pp-points svg { flex: none; margin-top: 4px; color: var(--green); }
.pp-points strong { color: var(--ink); font-weight: 500; }
.pp-specs { margin-top: 36px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.pp-specs div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.pp-specs dt { font-size: var(--fs-small); color: var(--ink-3); }
.pp-specs dd { margin: 0; color: var(--ink); }

.pp-apps { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pp-apps__h { grid-column: 1 / -1; font-size: var(--fs-small); color: var(--ink-3); }
.pp-app { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 10px 10px 14px; border-radius: 14px; background: var(--bg-raise); border: 1px solid var(--hair); transition: border-color .2s var(--ease); }
a.pp-app:hover { border-color: rgba(255, 255, 255, 0.24); }
.pp-app img, .pp-app__ph { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; margin-bottom: 8px; background: var(--bg); }
.pp-app__ph { display: block; border: 1px dashed var(--hair); }
.pp-app__name { font-weight: 500; padding: 0 4px; }
.pp-app__text { font-size: var(--fs-micro); color: var(--ink-2); line-height: 1.45; padding: 0 4px; }
.pp-app__go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-micro); color: var(--link); padding: 0 4px; }
.pp-app--soon .pp-app__name { color: var(--ink-2); }

.pp-example { margin: 36px 0 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.pp-example__h { padding-top: 14px; font-size: var(--fs-small); color: var(--ink-3); }
.pp-example__row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.pp-example__row p { color: var(--ink-2); line-height: 1.55; }
.pp-example__k { font-size: var(--fs-small); color: var(--ink) !important; }

.pp-which { margin-top: clamp(112px, 16vh, 180px); }
.pp-which__table { margin-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.pp-which__row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--hair); font-size: var(--fs-lead); color: var(--ink-2); transition: color .2s var(--ease); }
.pp-which__row span:last-child { color: var(--ink); display: block; }  /* words keep normal spacing */
.pp-which__row span:last-child .arrow { display: inline-block; margin-left: 8px; vertical-align: 0; }
a.pp-which__row:hover span:last-child { color: var(--link); }
.pp-which__row--head { padding: 16px 0 14px; font-size: var(--fs-small); color: var(--ink-3); }
.pp-which__row--head span:last-child { color: var(--ink-3); }

.pp-sdk { margin-top: clamp(112px, 16vh, 180px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; scroll-margin-top: 80px; }
.pp-sdk .h2 { margin-top: 14px; }
.pp-sdk .lead { margin-top: 18px; }
.pp-code { margin: 0; border-radius: 16px; background: var(--bg-raise); border: 1px solid var(--hair); overflow: hidden; }
.pp-code figcaption { padding: 12px 20px; border-bottom: 1px solid var(--hair); font-size: var(--fs-micro); color: var(--ink-3); }
.pp-code pre { margin: 0; padding: 20px; overflow-x: auto; font: 0.875rem/1.7 ui-monospace, "SF Mono", Menlo, monospace; color: var(--ink); }
.pp-code .c { color: var(--ink-3); }
.pp-code .s { color: var(--green); }

.pp-final { position: relative; margin-top: clamp(112px, 16vh, 180px); padding: clamp(140px, 22vh, 240px) 0; overflow: hidden; }
.pp-final__bg { position: absolute; inset: 0; }
.pp-final__bg img { width: 100%; height: 100%; object-fit: cover; }
.pp-final__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, transparent 22%, transparent 78%, var(--bg) 100%), linear-gradient(90deg, rgba(5, 7, 10, 0.75) 0%, transparent 50%); }
.pp-final__inner { position: relative; }
.pp-final .lead { margin-top: 16px; }

@media (max-width: 900px) {
  .pp-nav { display: none; }
  .pp-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-prod, .pp-sdk { grid-template-columns: minmax(0, 1fr); }
  .pp-prod--flip .pp-prod__media { order: 0; }
  .pp-prod__media { position: relative; top: auto; }
  /* phones: the apps on one row that swipes, the next card peeking in; the heading stays put */
  .pp-apps { grid-template-columns: none; grid-template-rows: auto auto; grid-auto-flow: column; grid-auto-columns: 58%;
    margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: 0 var(--pad);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); scrollbar-width: none; overscroll-behavior-x: contain; }
  .pp-apps::-webkit-scrollbar { display: none; }
  .pp-apps__h { grid-row: 1; grid-column: 1 / span 5; position: sticky; left: 0; justify-self: start; }
  .pp-app { grid-row: 2; scroll-snap-align: start; }
  .pp-which__row { grid-template-columns: minmax(0, 1fr); gap: 4px; font-size: var(--fs-body); }
  .pp-which__row--head { display: none; }
}
@media (max-width: 760px) {
  .pp-hero { min-height: 0; padding-top: calc(44svh + 12px); }  /* the live picture sits above the text */
  .pp-hero__art { inset: 0; }
  .pp-hero__art::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(5, 7, 10, 0.85) 45%, transparent 75%); }
  .pp-specs div, .pp-example__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* Products and About: content rises in as it arrives (js/subpage.js) */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
.rv.is-in { opacity: 1; transform: none; }
.pp-prod__media.rv { transform: translateY(40px) scale(0.985); }
.pp-prod__media.rv.is-in { transform: none; }

/* the Products page scenes (js/product-scenes.js) */
.pp-scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.pp-prod__media { position: sticky; }
.pp-prod__media .pp-scene { position: absolute; }
.pp-hero__copy, .pp-index { z-index: 2; }
/* the hero's three acts, lit in turn as the picture plays them */
.pp-steps { position: absolute; z-index: 2; right: var(--pad); bottom: 186px; display: flex; gap: 28px; }
.pp-steps li { display: flex; gap: 8px; font-size: var(--fs-small); color: var(--ink-3); transition: color .5s var(--ease); }
.pp-steps li span { font-variant-numeric: tabular-nums; }
.pp-steps li::before { content: ""; align-self: center; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); transition: background-color .5s var(--ease), box-shadow .5s var(--ease); }
.pp-steps li.is-on { color: var(--ink); }
.pp-steps li.is-on::before { background: var(--green); box-shadow: 0 0 0 4px rgba(63, 214, 138, 0.15); }
@media (max-width: 760px) {
  /* phones: in the flow above the headline, three equal columns: dot and number, then the step */
  .pp-steps { position: relative; left: auto; right: auto; top: auto; bottom: auto; margin: 0 var(--pad) 28px;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .pp-steps li { display: block; font-size: 0.75rem; line-height: 1.4; }
  .pp-steps li::before { display: inline-block; vertical-align: middle; margin: -2px 8px 0 0; }
  .pp-steps li span::after { content: "\A"; white-space: pre; }
}
.pp-scene__tag { position: absolute; left: 16px; bottom: 14px; z-index: 1; padding: 4px 10px 4px 8px; margin-left: -6px; border-radius: 999px; background: rgba(5, 7, 10, 0.72); display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-micro); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pp-scene__tag:empty { display: none; }
.pp-scene__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(63, 214, 138, 0.16); animation: pp-live 1.6s ease-in-out infinite; }
@keyframes pp-live { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .pp-scene__tag::before { animation: none; } }

/* ------------------------------------------------------------------ about page */
.ab-hero .display { max-width: 11em; }
.ab-hero__tag { left: auto; right: var(--pad); bottom: 36px; }
.ab-sec { margin-top: clamp(112px, 16vh, 180px); }
.ab-noise { margin: clamp(48px, 7vh, 72px) 0 0; }
.ab-noise__art { position: relative; aspect-ratio: 21 / 8; border-radius: 16px; overflow: hidden; background: var(--bg-raise); border: 1px solid var(--hair); }
.ab-noise__zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.ab-noise__zones p { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-small); color: var(--ink-2); padding-top: 12px; border-top: 1px solid var(--hair); }
.ab-noise__zones strong { color: var(--ink); font-weight: 500; }
/* the Rain / Dust switch sits on the scene, over the weather */
.seg--noise { position: absolute; z-index: 1; bottom: 16px; left: 16px; margin: 0; background: rgba(5, 7, 10, 0.62); border: 1px solid var(--hair); -webkit-backdrop-filter: saturate(150%) blur(16px); backdrop-filter: saturate(150%) blur(16px); }
.seg--noise button { height: 30px; padding: 0 16px; font-size: var(--fs-small); color: rgba(242, 244, 246, 0.72); cursor: pointer; }
.seg--noise button:hover { color: var(--ink); }
.seg--noise button[aria-pressed="true"] { color: var(--ink); background: rgba(255, 255, 255, 0.16); }
.ab-places { margin-top: clamp(40px, 6vh, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.ab-place__art { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--bg-raise); border: 1px solid var(--hair); }
.ab-place__t { margin-top: 16px; font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.01em; }
.ab-place__d { margin-top: 6px; color: var(--ink-2); font-size: var(--fs-small); line-height: 1.5; max-width: 30em; }
.ab-how { margin-top: clamp(40px, 6vh, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.ab-how article { padding-top: 0; }
/* each step has its picture above the rule: the same block, measured, modelled, then shown honestly */
.ab-how__art { margin-bottom: 22px; }
/* a button on a scene, in the same glass as the Rain / Dust switch */
.scene-btn { position: absolute; z-index: 1; left: 12px; bottom: 12px; height: 32px; padding: 0 14px; border-radius: 999px; font-size: var(--fs-micro); color: var(--ink); background: rgba(5, 7, 10, 0.62); border: 1px solid var(--hair); -webkit-backdrop-filter: saturate(150%) blur(16px); backdrop-filter: saturate(150%) blur(16px); cursor: pointer; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.seg--noise.seg--sm { top: auto; left: 12px; bottom: 12px; }
.seg--noise.seg--sm button { height: 26px; padding: 0 12px; font-size: var(--fs-micro); }
.scene-btn:hover { background: rgba(255, 255, 255, 0.12); }
.scene-btn[aria-pressed="true"] { background: rgba(255, 255, 255, 0.16); }
.ab-how__n { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.ab-how__n { font-size: var(--fs-micro); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ab-how h3 { margin-top: 10px; font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.75rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
.ab-how article > p:last-child { margin-top: 12px; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 900px) {
  .ab-places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-how { grid-template-columns: minmax(0, 1fr); }
  .ab-noise__art { aspect-ratio: 16 / 9; }
  .ab-noise__zones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-noise__wide { grid-column: span 2; }
}
@media (max-width: 560px) { .ab-places { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .ab-hero__tag { right: auto; left: var(--pad); bottom: auto; top: calc(44svh - 14px); } }
.ab-hero { padding-bottom: clamp(72px, 12vh, 140px); }
.ab-hero .pp-hero__art { inset: 0; }
.pp-cta { margin-top: 36px; }
.pp-start { margin-top: 32px; }
.pp-start dt { color: var(--ink-2); }
.pp-compare { margin-top: clamp(40px, 6vh, 64px); }
.pp-compare .get__more { margin-top: 0; }

/* the stack diagram: each core product has its applications under it */
.eco__apps { align-self: start; }
.eco__apps--walk { grid-column: 1; grid-row: 2; }
.eco__apps--twin { grid-column: 3; grid-row: 2; }
.eco__apps--wm { grid-column: 5; grid-row: 2; }
.eco__apps--walk::before, .eco__apps--wm::before { background: var(--hair); }
@media (max-width: 900px) {
  .eco { display: flex; flex-direction: column; align-items: stretch; }
  .eco > :nth-child(1) { order: 1; } .eco__apps--walk { order: 2; } .eco > :nth-child(2) { order: 3; }
  .eco > :nth-child(3) { order: 4; } .eco__apps--twin { order: 5; } .eco > :nth-child(4) { order: 6; }
  .eco > :nth-child(5) { order: 7; } .eco__apps--wm { order: 8; }
}

/* product names in the logo's style: lowercase, bold, the first letter after "envo" in teal */
.pname { font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.pname__k { color: var(--accent); }
/* the logo's wave as the w (and a t drawn to match), sitting on the text's baseline */
.pname__g { display: inline-block; height: 0.76em; vertical-align: -0.024em; overflow: visible; }
.pname__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* product names (naming rule): "Envo" white bold, the app's name bold in the logo teal.
   A name sits inside many different components (menus, labels, cards, sentences). Rules written
   for those, like "every span in this row is small and grey", would otherwise reach inside the
   name, so the name's own look always wins: same size as its surroundings, bold, white + teal. */
.pinl, .pinl .pinl__k { display: inline !important; margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: inherit !important; line-height: inherit !important; font-weight: 700 !important; font-style: normal !important; text-transform: none !important; opacity: 1 !important; font-variant-numeric: normal !important; font-feature-settings: normal !important; }  /* tabular figures widen the hyphen in Envo-WWM */
.pinl { white-space: nowrap; color: var(--ink) !important; }
.pinl .pinl__k { color: var(--accent) !important; }
/* a brief use case in each product card of the stack diagram */
.eco { align-items: stretch; }
.eco__link { align-self: center; }
.eco__use { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hair); font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }
.eco__use-h { display: block; margin-bottom: 4px; font-size: var(--fs-micro); color: var(--ink-3); }
/* the logo's wave as the w in hero headlines (js/site.js) */
.wave-w { display: inline-block; width: 0.9693em; height: 0.76em; vertical-align: -0.024em; margin-right: -0.034em; overflow: visible; color: var(--accent); }
.wave-w__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* hovering a link that contains a product name: the whole name, "Envo" too, turns the link teal */
a:hover .pinl, a:hover .pinl .pinl__k, a:focus-visible .pinl, a:focus-visible .pinl .pinl__k { color: var(--link) !important; transition: color .2s var(--ease); }
/* the key point of each use case, in the diagram and the Products menu */
.eco__use strong, .prodlist__desc strong { color: var(--ink); font-weight: 600; }

/* 404: the About hero over a twin with one unmeasured lot; the tag's dot is grey: no data */
.nf-page .pp-scene__tag::before { background: var(--ink-3); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08); }
.nf-code { font-size: var(--fs-micro); color: var(--ink-3); letter-spacing: 0.04em; font-variant-numeric: tabular-nums; margin-bottom: 18px; }
@media (max-width: 760px) { .nf-page .ab-hero__tag { top: 76px; } }

/* maintenance page: laid out like the 404; the hero's scene is a game (the "tune" scene in js/scenes.js) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-page .pp-hero__art { pointer-events: auto; }                 /* the picture takes the drag... */
.mt-page .pp-hero__art::after, .mt-page .pp-hero__copy { pointer-events: none; }   /* ...through the fade and the text */
.mt-page .pp-hero__copy a, .mt-page .pp-hero__copy button { pointer-events: auto; }
.mt__art .pp-scene { cursor: grab; touch-action: none; }
.mt__art .pp-scene:active { cursor: grabbing; }
.mt__art .pp-scene:focus-visible { outline: none; }
.mt__art .pp-scene:focus-visible ~ .pp-scene__tag { box-shadow: 0 0 0 1px var(--hair); }
.mt-page .pp-scene__tag[data-q="amber"]::before { background: var(--amber); box-shadow: 0 0 0 3px rgba(255, 173, 59, 0.16); }
.mt-page .pp-scene__tag[data-q="red"]::before { background: var(--red); box-shadow: 0 0 0 3px rgba(255, 92, 80, 0.16); }
.mt__hint { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--fs-small); color: var(--ink-2); }
.mt__btn { color: var(--link); cursor: pointer; }
.mt__btn:hover { color: var(--link-hover); }
.mt__btn[hidden] { display: none; }
@media (max-width: 760px) { .mt-page .ab-hero__tag { top: 76px; } }
.nav--bare { position: absolute; }                         /* the logo-only header scrolls away with the page */

/* stories on phones, compact: fewer boxes, the same facts. The uptime chart is a slim strip with no card
   (its time axis is what the clock says), the clock is one line with no card, and the layer tag is one
   small line above the story text */
@media (max-width: 760px) {
  /* 12px under the now-playing bar (50px tall; under the 54px menu when that shows) */
  .act--short .panel--timeline { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; border-radius: 0; top: 62px; }
  html.nav-shown .act--short .panel--timeline { top: 116px; }
  .act--short .panel--timeline .panel__head { font-size: var(--fs-small); text-shadow: 0 0 12px rgba(5, 7, 10, 0.9); }
  .act--short .panel--timeline .wtl__pct { font-size: var(--fs-small); }
  .act--short .panel--timeline .wtl { height: 30px; margin-top: 6px; }
  .act--short .panel--timeline .wtl__band, .act--short .panel--timeline .wtl__labels { display: none; }
  .act--short .panel--timeline .wtl__legend { margin-top: 4px; }

  .clock { left: var(--pad); right: auto; bottom: max(18px, calc(env(safe-area-inset-bottom) + 10px)); display: flex; align-items: baseline; gap: 8px;
    padding: 0; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; text-shadow: 0 0 12px rgba(5, 7, 10, 0.95); }
  .clock__dot { align-self: center; }
  .clock__time { font-size: var(--fs-small); }
  .clock__phase::before { content: "· "; }
  .clock__track { display: none; }

  .beat { bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px)); }   /* no clock under it on phones: the text sits lower */
  .tag { flex-direction: row; flex-wrap: wrap; gap: 0 6px; padding-left: 0; }
  .tag::before { display: none; }
  .tag__name { font-size: var(--fs-small); }
  .tag__meta > span::before { content: "· "; }
  .beat--tag .caption { margin-top: 8px; }
}

/* phones: buttons at apple.com's phone scale (its .button, measured at 390px: 36px tall, 14px text,
   16px side padding, regular weight, -0.016em tracking), and the closing section without its moving
   background so the text sits on the plain page */
@media (max-width: 760px) {
  .btn, .btn--lg { height: 36px; padding: 0 16px; font-size: 0.875rem; font-weight: 400; letter-spacing: -0.016em; }
  .btn--sm { height: 32px; padding: 0 14px; font-size: 0.875rem; font-weight: 400; letter-spacing: -0.016em; }
  .link { font-size: 0.875rem; letter-spacing: -0.016em; }        /* text links with an arrow, at the same scale as the buttons */
  .nav .nav__word { display: none; }                             /* the menu bar shows only the mark (the footer keeps the name) */
  [aria-labelledby="about-title"] .ab-hero__tag { display: none !important; }                /* About hero: no "8 of 14 remote places connected" tag */
  .final__bg, .pp-final__bg { display: none; }
  .final { padding: clamp(96px, 14vh, 140px) 0 clamp(80px, 12vh, 120px); }
}

/* phones: the closed references show the first 5 lines of the intro, fading over the last two */
@media (max-width: 760px) {
  .refs.is-collapsed .refs__intro { max-height: 7.5em; overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 3em), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 3em), transparent); }
  .refs.is-collapsed .refs__body { margin-top: -14px; }
  .refs__more { margin-left: 0; }
}

/* phones: the type scale of apple.com at 390px wide (measured on apple.com/iphone and /macbook-pro).
   Apple shrinks each level by about a third from desktop: page title 80 > 48px, section headline
   48 > 32px, card headline 56 > 32px, subhead 28 > 19-21px, card copy and links 17 > 14px, small
   print 14 > 12px. Our headlines are long sentences over three lines, so they sit at 36px, between
   Apple's one-word page title (48px) and its headlines (32px) */
@media (max-width: 760px) {
  :root {
    --fs-display: 2.25rem;        /* 36px, hero and page headlines */
    --fs-h2: 1.75rem;             /* 28px, section headlines */
    --fs-caption: 1.1875rem;      /* 19px, story text (Apple subhead) */
    --fs-lead: 1rem;              /* 16px, intro paragraphs */
    --fs-body: 0.9375rem;         /* 15px, body copy */
    --fs-micro: 0.75rem;          /* 12px, small print (Apple caption) */
  }
  .display { line-height: 1.08; letter-spacing: -0.03em; }
  .h2 { line-height: 1.14; }
  .lead { line-height: 1.45; }
  .get__title, .outcome__hl-text { font-size: 1.5rem; }                            /* 24px */
  .option__title, .ab-how h3 { font-size: 1.3125rem; }                            /* 21px, Apple tout subhead */
  .case__title, .team__name, .ab-place__t { font-size: 1.1875rem; }                /* 19px */
  .outcome__n, .outcome__row[data-count="5"] .outcome__n { font-size: 2.25rem; }   /* 36px, the big numbers */
}
/* Products hero: the product index row under it was removed, so the copy keeps the About hero's spacing */
.pp-hero { padding-bottom: clamp(72px, 12vh, 140px); }
.pp-hero__art { bottom: 0; }
@media (max-width: 760px) { .pp-hero { padding-bottom: 40px; } }

/* About, phones: the six places and the three steps swipe side by side, the next card peeking in */
@media (max-width: 760px) {
  .ab-places, .ab-how { display: flex; gap: 16px; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: 0 var(--pad);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); scrollbar-width: none; overscroll-behavior-x: contain; }
  .ab-places::-webkit-scrollbar, .ab-how::-webkit-scrollbar { display: none; }
  .ab-places > li, .ab-how > article { flex: 0 0 82%; scroll-snap-align: start; }
}

/* Products, phones: the detail blocks sit behind "See more" (desktop: always shown) */
.pp-more, .pp-specs .pp-ph { display: none; }
@media (max-width: 760px) {
  .pp-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 24px; color: var(--link); font-size: 0.875rem; letter-spacing: -0.016em; cursor: pointer; }
  .pp-more:hover { color: var(--link-hover); }
  .pp-more .arrow { transform: rotate(90deg); transition: transform .3s var(--ease); }
  .pp-more[aria-expanded="true"] .arrow { transform: rotate(-90deg); }
  .pp-hide:not(.is-open) { display: none; }
  .pp-more + .pp-hide { margin-top: 16px; }
  .pp-hide.is-open + .pp-hide { margin-top: 0; }
  .pp-desk { display: none; }
  .pp-specs .pp-ph { display: grid; }
  /* compact rows: the label on the left, the text on the right */
  .pp-specs div, .pp-example__row { grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; padding: 11px 0; }
  .pp-specs dt, .pp-example__k { font-size: 0.8125rem; line-height: 1.5; }
  .pp-specs dd, .pp-example__row p { font-size: 0.9375rem; line-height: 1.45; }
  /* the example continues the table: no second rule, its heading sits in the left column like a label */
  .pp-specs + .pp-example { border-top: 0; }
  .pp-specs:has(+ .pp-example) { margin-bottom: 0; }
  /* one more row of the table: "Example" on the left, both short paragraphs on the right */
  .pp-example { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--hair); }
  .pp-example__h { grid-column: 1; grid-row: 1 / span 2; padding: 0; font-size: 0.8125rem; line-height: 1.5; }
  .pp-example__row { grid-column: 2; display: block; padding: 0; border: 0; }
  .pp-example__row + .pp-example__row { margin-top: 10px; }
  .pp-example__row p { display: inline; }
  .pp-example__k { font-size: 0.9375rem !important; font-weight: 500; }
  .pp-example__k::after { content: ". "; }
}

/* Products and About, phones: one section rhythm, as on apple.com (its sections are 112px apart on
   phones, measured on apple.com/iphone and /macbook-pro). Every section after the hero starts 112px
   below the one before, and the last one ends 112px above the footer */
@media (max-width: 760px) {
  .pp > section:not(.pp-hero) { margin-top: 0; padding-top: 112px; padding-bottom: 0; }
  .pp > section:last-of-type { padding-bottom: 112px; }
  .pp-hero { padding-bottom: 56px; }
  .pp > .pp-hero + section { padding-top: 56px; }                    /* with the hero's 56px: 112px, like the rest */
}

/* About, phones: "The air is not empty" runs edge to edge and swipes, one zone per screen (weather,
   buildings, soil and water), each caption under its own part of the picture; the Rain / Dust
   switch stays in the corner while the picture moves */
@media (max-width: 760px) {
  .ab-noise { --nw: 270vw; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
  .ab-noise::-webkit-scrollbar { display: none; }
  .ab-noise__art { width: var(--nw); aspect-ratio: auto; height: min(62svh, 440px); border: 0; border-radius: 0; overflow: visible; }
  .ab-noise__art .pp-scene { position: absolute; inset: 0; }
  .ab-noise__art { display: flex; flex-direction: column; justify-content: flex-end; }
  .ab-noise .seg--noise { position: sticky; left: 16px; top: auto; bottom: auto; margin: 0 0 16px 16px; align-self: flex-start; }
  .ab-noise__zones { width: var(--nw); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 18px; }
  .ab-noise__zones p { padding: 12px var(--pad) 0; border-top: 0; scroll-snap-align: start; }
  .ab-noise__wide { grid-column: auto; }
  /* the last stop is the end of the row (10vw short of its third), so its caption moves back to the margin */
  .ab-noise__zones p:last-child { margin-left: -10vw; scroll-snap-align: end; }
}
/* stories, phones: no result line under the story text (desktop keeps it) */
@media (max-width: 760px) { .beat .log { display: none; } }
/* Products and About, phones: every row of buttons and links on one line, also on narrow phones */
@media (max-width: 760px) {
  .pp .about__actions { flex-wrap: nowrap; gap: 10px 20px; }
  .pp-cta { gap: 10px; }
  .pp .about__actions .btn { flex: 0 1 auto; min-width: 0; padding: 0 14px; }
  .pp .about__actions .link { white-space: nowrap; }
}
@media (max-width: 359px) { .pp .about__actions .btn, .pp .about__actions .link { padding-left: 11px; padding-right: 11px; font-size: 0.8125rem; } .pp .about__actions .link { padding: 0; } }
/* a line break for wide screens only: on phones the sentence runs on */
@media (max-width: 760px) { .br-desk { display: none; } }
/* two buttons side by side sit 14px apart, as on apple.com (its button margin); a button and a text link keep their wider gap */
.actions:has(> .btn + .btn), .about__actions:has(> .btn + .btn) { column-gap: 14px; }
/* home hero, phones: each button keeps its full 16px side padding and is never squeezed; on a phone
   too narrow for both, the second one moves to its own line */
@media (max-width: 760px) {
  .hero .actions { flex-wrap: wrap; gap: 12px 14px; }
  .hero .actions .btn { flex: 0 0 auto; padding: 0 16px; }
}
/* stories, phones: no clock (time and phase) at the bottom of the screen, in both stories */
@media (max-width: 760px) { .clock { display: none !important; } }

/* ------------------------------------------------------------------------------------------------
   The stack as a signal line (Products, "Three products, one stack"): no boxes. One dotted line,
   in the site's point-cloud look, with data flowing along it from EnvoWalk to EnvoTwin to Envo-WWM.
   Each product is a glowing node on the line, its text under it; module and apps hang below on a
   thin dotted tick. Phones (900px and down): the line runs down the left side. */
.eco { --dot: rgba(242, 244, 246, 0.42); --pkt: rgba(28, 179, 172, 0.95); --ny: 6px; position: relative; align-items: start; row-gap: 0; }
.eco__node, .eco__node:hover, .eco__node--core { background: none; border: 0; border-radius: 0; padding: 38px 28px 0 0; position: relative; }
/* the node: a bright dot with a soft ring, teal for the core */
.eco__node::before { content: ""; position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--ink);
  box-shadow: 0 0 0 4px rgba(242, 244, 246, 0.1), 0 0 18px 2px rgba(242, 244, 246, 0.35); z-index: 1; }
.eco__node--core::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(28, 179, 172, 0.16), 0 0 22px 3px rgba(28, 179, 172, 0.5); }
/* the line: small dots drifting right, with brighter teal packets running ahead of them */
.eco__node:not(:nth-child(5))::after, .eco__link::before {
  content: ""; position: absolute; top: calc(var(--ny) - 1.5px); height: 3px; pointer-events: none;
  background-image: radial-gradient(circle, var(--pkt) 1.4px, transparent 1.9px), radial-gradient(circle, var(--dot) 0.9px, transparent 1.3px);
  background-size: 72px 3px, 8px 3px; background-repeat: repeat-x; animation: eco-flow 2.4s linear infinite; }
.eco__node:not(:nth-child(5))::after { left: 18px; right: 0; }
.eco__link { position: relative; align-self: stretch; justify-content: flex-start; padding: 26px 12px 0; }
.eco__link::before { left: 0; right: 0; }
.eco__arrow { display: none; }
.eco__label { text-align: left; max-width: 15em; }
@keyframes eco-flow { from { background-position: 0 0, 0 0; } to { background-position: 72px 0, 8px 0; } }
@media (prefers-reduced-motion: reduce) { .eco__node::after, .eco__link::before { animation: none; } }
.eco__name { margin-top: 0; }
.eco__use { border-top: 0; padding-top: 0; margin-top: 12px; }
/* module and apps: a thin dotted tick down from under the node */
.eco__apps { padding-top: 22px; padding-left: 0; }
.eco__apps::before, .eco__apps--walk::before, .eco__apps--wm::before { left: 5px; width: 1px; height: 100%; top: 6px; background: none;
  background-image: radial-gradient(circle, var(--dot) 0.8px, transparent 1.2px); background-size: 2px 6px; background-repeat: repeat-y; }
.eco__apps-h, .eco__apps ul { padding-left: 22px; }
@media (max-width: 900px) {
  /* phones: the same line, left to right, as a row you swipe: each product takes most of the screen */
  .eco { display: grid; grid-template-columns: 74vw 112px 74vw 112px 74vw; grid-template-rows: auto auto;
    margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: 8px var(--pad) 4px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); scrollbar-width: none; overscroll-behavior-x: contain; }
  .eco::-webkit-scrollbar { display: none; }
  .eco > * { order: 0 !important; }
  .eco > :nth-child(1) { grid-column: 1; grid-row: 1; } .eco > :nth-child(2) { grid-column: 2; grid-row: 1; }
  .eco > :nth-child(3) { grid-column: 3; grid-row: 1; } .eco > :nth-child(4) { grid-column: 4; grid-row: 1; }
  .eco > :nth-child(5) { grid-column: 5; grid-row: 1; }
  .eco__apps--walk { grid-column: 1; grid-row: 2; } .eco__apps--twin { grid-column: 3; grid-row: 2; } .eco__apps--wm { grid-column: 5; grid-row: 2; }
  .eco__node { scroll-snap-align: start; }
  .eco__link { flex-direction: column; padding: 26px 10px 0; }
  .eco__label { font-size: 0.75rem; }
  /* the use case and the module or apps as table rows: label left, value right, a rule between */
  .eco__use { display: block; position: relative; margin-top: 16px; padding: 11px 0 11px calc(5.5rem + 10px); border-top: 1px solid rgba(255, 255, 255, 0.18); border-bottom: 1px solid var(--hair); font-size: 0.9375rem; line-height: 1.45; }
  .eco__use-h { position: absolute; left: 0; top: 13px; margin: 0; font-size: 0.8125rem; line-height: 1.5; }
  .eco__apps { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 10px; padding: 11px 28px 11px 0; margin-right: 28px; border-bottom: 1px solid var(--hair); }
  .eco__apps::before, .eco__apps--walk::before, .eco__apps--wm::before { display: none; }
  .eco__apps-h { padding: 0; font-size: 0.8125rem; line-height: 1.5; }
  .eco__apps ul { margin: 0; padding: 0; gap: 0; }
  .eco__apps li { font-size: 0.9375rem; flex-wrap: nowrap; }
  .eco__soon { white-space: nowrap; }
  .eco__node { padding-right: 28px; }
  .eco__apps li a, .eco__apps li > span:first-child { padding: 0 0 4px; }
}

/* the stack: lighting one product lights the ones before it, because each builds on the last */
/* the kicker: number and role on one line ("01  Modular measurement hardware"), the name under it */
.eco__kick { display: flex; align-items: baseline; gap: 10px; }
.eco__kick .eco__role { font-size: var(--fs-small); color: var(--ink-2); white-space: nowrap; }
.eco__node .eco__name { margin-top: 6px; }
.eco[data-reach] .eco__node:not(.is-reached) .eco__kick { opacity: 0.55; }
.eco__kick { transition: opacity .35s var(--ease); }
.eco[data-reach] .eco__node::before { opacity: 0.45; transition: opacity .35s var(--ease), background-color .35s var(--ease), box-shadow .35s var(--ease); }
.eco[data-reach] .eco__node.is-reached::before { opacity: 1; background: var(--accent); box-shadow: 0 0 0 4px rgba(28, 179, 172, 0.16), 0 0 22px 3px rgba(28, 179, 172, 0.5); }
.eco[data-reach] .eco__node:not(.is-reached) .eco__name, .eco[data-reach] .eco__node:not(.is-reached) .eco__n { opacity: 0.55; }
.eco__node .eco__name, .eco__node .eco__n { transition: opacity .35s var(--ease); }

/* the stack, narrower desktops: the kicker's role goes under its number, the same in all three */
@media (min-width: 901px) and (max-width: 1199px) { .eco__kick { flex-direction: column; gap: 2px; } }
/* the stack on phones: chips for the three needs, then one product at a time, full width */
.eco-tabs { display: none; }
@media (max-width: 900px) {
  .eco-tabs { display: flex; gap: 8px; margin-top: 28px; }
  .eco-tab { height: 34px; padding: 0 16px; border-radius: 999px; font-size: 0.875rem; letter-spacing: -0.016em; color: var(--ink-2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); cursor: pointer; transition: color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease); }
  .eco-tab[aria-selected="true"] { color: var(--ink); background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6); }
  /* each card leaves 32px of the next one showing at the right edge; the row's right padding lets the last card line up too */
  .eco { --cw: calc(100vw - var(--pad) - 48px); overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 28px; padding-right: 48px;
    grid-template-columns: var(--cw) 16px var(--cw) 16px var(--cw); column-gap: 0; }   /* a margin's gap between cards: the line runs on through it */
  .eco__node { padding-right: 0; scroll-snap-stop: always; user-select: none; -webkit-user-drag: none; }
  .eco__link { padding: 0; overflow: hidden; }
  .eco__label { display: none; }
  .eco__apps { padding-right: 0; margin-right: 0; }
}
/* the stack on phones: two buttons at the foot of each card */
.eco__cta { display: none; }
@media (max-width: 900px) {
  .eco__cta { display: flex; grid-column: 1 / -1; gap: 14px; margin-top: 24px; flex-wrap: nowrap; }
  .eco__apps:has(.eco__cta) { border-bottom: 0; }
  .eco__cta { padding-top: 0; }
  .eco__cta .btn { flex: 0 1 auto; min-width: 0; padding: 0 16px; }
}

/* the stack on desktop, like phones: each product's use case and module or apps as table rows (label left,
   value right, a rule between), the "See <product>" button under them, and no labels between the products */
@media (min-width: 901px) {
  .eco { grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr) 32px minmax(0, 1fr); }   /* three equal columns: no labels between them now */
  .eco__label { display: none; }
  .eco__node { padding-right: 40px; }
  .eco__use { display: block; position: relative; margin-top: 18px; padding: 11px 0 11px calc(6.5rem + 10px); border-top: 1px solid rgba(255, 255, 255, 0.18); border-bottom: 1px solid var(--hair); font-size: 0.9375rem; line-height: 1.45; }
  .eco__use-h { position: absolute; left: 0; top: 13px; margin: 0; font-size: 0.8125rem; line-height: 1.5; }
  .eco__apps { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 10px; padding: 11px 0 0; margin-right: 40px; }
  .eco__apps::before, .eco__apps--walk::before, .eco__apps--wm::before { display: none; }
  .eco__apps-h { padding: 0; font-size: 0.8125rem; line-height: 1.5; }
  .eco__apps ul { margin: 0; padding: 0; gap: 0; }
  .eco__apps li { font-size: 0.9375rem; flex-wrap: nowrap; }
  .eco__apps li a, .eco__apps li > span:first-child { padding: 0 0 4px; }
  .eco__soon { white-space: nowrap; }
  .eco__cta { display: flex; grid-column: 1 / -1; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--hair); }
}
/* phone menu: the first row starts right under the bar, so Products has the same space above it as every other row */
.sheet__inner { padding-top: 54px; }
/* stories, phones: the closing headline and its With / Without switch sit in the middle of the space under the
   now-reading bar, in both stories (the later .beat bottom rule must not stretch it) */
@media (max-width: 760px) {
  /* centred by filling the space under the bar and centring inside it: the reveal animation moves the block with
     transform, which would undo a translate-based centre in one of the stories */
  .act__stage .beat--peak { top: 62px; bottom: 0; translate: -50% 0; display: flex; flex-direction: column; justify-content: center; align-items: center; }
  .act--short .act__stage .beat--peak::before { inset: 22% -22%; }
}
.wave-word { white-space: nowrap; }
/* headlines break into even lines (no single word left alone on a line) */
.display, .h2 { text-wrap: balance; }

/* Products, desktop too: one table per product, as on phones. The "No app fits" rows join the For / Goes in /
   Comes out table (the copies the page makes for phones), and the Envo-WWM example is that table's last row */
@media (min-width: 761px) {
  .pp-desk { display: none; }
  .pp-specs .pp-ph { display: grid; }
  .pp-specs + .pp-example { margin-top: 0; border-top: 0; }
  .pp-specs:has(+ .pp-example) { margin-bottom: 0; }
  .pp-example { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); column-gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
  .pp-example__h { grid-column: 1; grid-row: 1 / span 2; padding: 0; font-size: var(--fs-small); color: var(--ink-3); }
  .pp-example__row { grid-column: 2; display: block; padding: 0; border: 0; }
  .pp-example__row + .pp-example__row { margin-top: 10px; }
  .pp-example__row p { display: inline; }
  .pp-example__k { font-size: inherit !important; font-weight: 500; }
  .pp-example__k::after { content: ". "; }
}

/* Pick a story: Skip story (to Run it, or build on it) under the cards, and again next to All stories in the bar */
.pick__actions { margin-top: clamp(40px, 6vh, 56px); }
@media (max-width: 760px) { .pick__actions { margin-top: 28px; flex-wrap: nowrap; column-gap: 14px; } }
.playing__skip { color: var(--ink); transition: opacity .2s var(--ease); }
.playing__skip:hover { opacity: 0.75; }
/* Now reading: the story title is the way back to Pick a story */
.playing__now { min-width: 0; }
.playing__now .playing__title { transition: color .2s var(--ease); }
.playing__now:hover .playing__title { color: var(--link); }

/* Home: the products stack in place of the old use-case row, spaced like the sections around it. Solid
   like them, so the fixed hero picture and its labels never show through */
.home-stack .pp-stack { margin-top: 0; }
.home-stack { position: relative; background: var(--bg); padding-top: clamp(110px, 16vh, 180px); padding-bottom: clamp(60px, 9vh, 110px); }
@media (max-width: 760px) { .home-stack { padding-top: 112px; padding-bottom: 56px; } }
.home-stack__actions { margin-top: 32px; }
.home-stack__actions + .eco { margin-top: clamp(56px, 8vh, 80px); }

/* Footer: a Learn column (Use cases, Research & Insights) between Company and Contact */
.footer__grid { grid-template-columns: 1.3fr 1.6fr 0.9fr 1.1fr 1.2fr; }
@media (max-width: 1080px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* Research & Insights (research-and-insights/): World Labs' plain list, Levels' honest parts, in the
   site's own look: hairline tables, no tinted cards, teal only for what is out now */
.ri-hero { padding-top: clamp(150px, 22vh, 220px); }
.ri-hero .lead { margin-top: 18px; max-width: 38ch; }
.ri-jump { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 0.9375rem; }
/* the jump links are real secondary buttons now, so they keep the button colors */

.ri-latest { margin-top: clamp(72px, 10vh, 112px); }
.ri-list { margin-top: clamp(40px, 6vh, 56px); border-top: 1px solid rgba(255, 255, 255, 0.18); }
.ri-row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr) auto; column-gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--hair); align-items: baseline; }
.ri-row__n { font-size: var(--fs-small); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ri-row__topic { font-size: var(--fs-small); color: var(--ink-3); }
.ri-row__t { margin-top: 6px; font-size: clamp(1.125rem, 1rem + 0.35vw, 1.375rem); font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; max-width: 34ch; }
.ri-row__t a { transition: color .2s var(--ease); }
.ri-row__t a:hover { color: var(--link); }
.ri-row__text { margin-top: 8px; color: var(--ink-2); max-width: 52ch; }
.ri-row__status { font-size: var(--fs-small); color: var(--ink-3); white-space: nowrap; }
.ri-row__status--out { color: var(--link); }
.ri-cards { margin-top: clamp(40px, 6vh, 56px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.ri-cards .case { flex: none; }
.ri-card { display: block; }
.ri-card > span { display: block; }
.ri-card .case__link { display: inline-flex; }
.ri-card:hover .case__title { color: var(--link); }
.ri-card .case__title { transition: color .2s var(--ease); }
.ri-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 96px); }
.ri-two .about__text { margin-top: 18px; }
.ri-two .about__actions { margin-top: 22px; }
.ri-end { padding-bottom: clamp(112px, 16vh, 180px); }
@media (max-width: 760px) {
  .pp > .ri-hero { padding-top: 132px; }
  .pp > .ri-hero + section { padding-top: 56px; }
  .ri-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; padding: 20px 0; }
  .ri-row__n { grid-column: 1; grid-row: 1; }
  .ri-row__status { grid-column: 2; grid-row: 1; }
  .ri-row__body { grid-column: 1 / -1; }
  /* the two stories swipe side by side, the next one peeking in */
  .ri-cards { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: 0 var(--pad); scroll-padding: 0 var(--pad); }
  .ri-cards::-webkit-scrollbar { display: none; }
  .ri-cards .case { flex: 0 0 82%; scroll-snap-align: start; }
  .ri-two { grid-template-columns: minmax(0, 1fr); gap: 112px; }
  .ri-end { padding-bottom: 112px !important; }
}

/* Research & Insights articles. Insights read like a World Labs post (date, title, one column, key notes,
   one figure, read more); papers carry the detail of a Levels paper page (short version, terms, findings
   with what it means and what it doesn't, open questions, methods, sources, who, cite). One reading column. */
.art { padding-top: clamp(140px, 20vh, 200px); }
.art__col { max-width: 720px; margin-inline: auto; }
.art__kick { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: var(--fs-small); color: var(--ink-3); }
.art__kick a { color: var(--ink-2); transition: color .2s var(--ease); }
.art__kick a:hover { color: var(--ink); }
.art__kick strong { color: var(--ink); font-weight: 500; }
.art__title { margin-top: 18px; font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem); font-weight: 500; letter-spacing: -0.028em; line-height: 1.08; text-wrap: balance; }
.art__deck { margin-top: 18px; color: var(--ink-2); font-size: var(--fs-lead); line-height: 1.5; }
.art__meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: var(--fs-small); color: var(--ink-3); }
.art__meta span + span::before { content: "·"; margin-right: 18px; color: var(--ink-3); }
.art__sample { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--hair); font-size: var(--fs-small); color: var(--ink-3); line-height: 1.5; }
.art .pp-specs { margin-top: 28px; }
.art .about__actions { margin-top: 28px; }
.art__body { margin-top: clamp(48px, 7vh, 72px); }
.art__body .art__col > p, .art__body li, .art__sec p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.65; }
.art__body .art__col > p + p, .art__sec p + p { margin-top: 18px; }
.art__body strong { color: var(--ink); font-weight: 500; }
.art__body h2 { position: relative; margin-top: 72px; margin-bottom: 18px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; scroll-margin-top: 90px; text-wrap: balance; }
.art__body h3 { margin-top: 36px; margin-bottom: 10px; font-size: 1.0625rem; font-weight: 500; color: var(--ink); }
.art__body ul.art-list { margin-top: 14px; }
.art-list li { position: relative; padding-left: 18px; }
.art-list li + li { margin-top: 10px; }
.art-list li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.art-anchor { display: inline-flex; vertical-align: middle; margin-left: 10px; padding: 6px; border-radius: 8px; color: var(--ink-3); opacity: 0; transition: opacity .2s var(--ease), color .2s var(--ease); }
.art__body h2:hover .art-anchor, .art-anchor:focus-visible { opacity: 1; }
.art-anchor:hover, .art-anchor.is-done { color: var(--link); opacity: 1; }
/* key notes: numbered rows on hairlines, no box */
.art-keys { margin-top: 40px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.art-keys__h { padding: 14px 0 4px; font-size: var(--fs-small); color: var(--ink-3); }
.art-keys ol { counter-reset: k; }
.art-keys li { counter-increment: k; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); padding: 14px 0; border-bottom: 1px solid var(--hair); color: var(--ink); font-size: 1rem; line-height: 1.5; }
.art-keys li::before { content: counter(k, decimal-leading-zero); font-size: var(--fs-small); color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 2px; }
.art-keys a { color: inherit; transition: color .2s var(--ease); }
.art-keys a:hover { color: var(--link); }
/* figures */
.art-fig { margin: 40px 0; }
.art-fig img { width: 100%; height: auto; border-radius: 14px; display: block; }
.art-fig figcaption { margin-top: 12px; font-size: var(--fs-small); color: var(--ink-3); line-height: 1.5; }
.art-fig figcaption a { color: var(--ink-2); }
.art-fig--wide { max-width: 960px; margin-inline: auto; }
/* numbers: large type on a hairline, no cards */
.art-stats { margin: 36px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; }
.art-stats div { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.art-stats b { display: block; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); font-weight: 500; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.art-stats span { display: block; margin-top: 6px; font-size: var(--fs-small); color: var(--ink-2); line-height: 1.45; }
/* bars */
.art-chart { margin: 36px 0; }
.art-chart__h { font-size: var(--fs-small); color: var(--ink); }
.art-chart__row { display: grid; grid-template-columns: 9rem minmax(0, 1fr) 5.5rem; align-items: center; gap: 14px; margin-top: 14px; font-size: var(--fs-small); color: var(--ink-2); }
.art-chart__bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.art-chart__bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.art-chart__row b { font-weight: 500; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.art-chart__note { margin-top: 12px; font-size: var(--fs-small); color: var(--ink-3); line-height: 1.5; }
/* paper parts */
.art-toc { margin-top: 40px; padding: 14px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: var(--fs-small); }
.art-toc a { color: var(--ink-2); transition: color .2s var(--ease); }
.art-toc a:hover { color: var(--ink); }
.art-short { margin-top: 18px; counter-reset: s; }
.art-short li { counter-increment: s; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); padding: 14px 0; border-bottom: 1px solid var(--hair); }
.art-short li:first-child { border-top: 1px solid rgba(255, 255, 255, 0.18); }
.art-short li::before { content: counter(s); font-size: var(--fs-small); color: var(--ink-3); padding-top: 3px; }
.art-short a { color: var(--ink); font-size: 1rem; line-height: 1.5; transition: color .2s var(--ease); }
.art-short a:hover { color: var(--link); }
.art-terms div { grid-template-columns: 10rem minmax(0, 1fr) !important; }
.art-terms dd { color: var(--ink-2) !important; line-height: 1.55; }
.art-find__k { margin-top: 88px; font-size: var(--fs-small); color: var(--link); }
.art-find__k + h2 { margin-top: 10px; }
.art-src { margin-top: 18px; counter-reset: r; }
.art-src li { counter-increment: r; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: var(--fs-small) !important; line-height: 1.55 !important; color: var(--ink-2); scroll-margin-top: 90px; }
.art-src li::before { content: counter(r); color: var(--ink-3); }
.art-src a { color: var(--link); word-break: break-word; }
.art-cite { margin-top: 18px; padding: 18px 20px; border: 1px solid var(--hair); border-radius: 12px; }
.art-cite p { font-size: var(--fs-small) !important; line-height: 1.6 !important; color: var(--ink) !important; }
.art-cite .link { margin-top: 12px; font-size: var(--fs-small); }
.art-more { margin-top: clamp(96px, 14vh, 140px); }
.art-more .h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
@media (max-width: 760px) {
  .art { padding-top: 120px; }
  .art__body .art__col > p, .art__body li, .art__sec p { font-size: 1rem; }
  .art__body h2 { margin-top: 56px; }
  .art-anchor { opacity: 1; }
  .art-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 18px; }
  .art-chart__row { grid-template-columns: 6.5rem minmax(0, 1fr) 4.5rem; gap: 10px; }
  .art-terms div { grid-template-columns: 6.5rem minmax(0, 1fr) !important; }
  .art-find__k { margin-top: 64px; }
}
.ri-latest .h2 a { transition: color .2s var(--ease); }
.ri-latest .h2 a:hover { color: var(--link); }
.art__body .art__col > .art-find__k { margin-top: 88px; font-size: var(--fs-small); line-height: 1.4; color: var(--link); }
.art__body .art-find__k + h2 { margin-top: 10px; }
.art__body .art__col > .art-chart__note { font-size: var(--fs-small); line-height: 1.5; color: var(--ink-3); margin-top: 12px; }
@media (max-width: 760px) { .art__body .art__col > .art-find__k { margin-top: 64px; } }
/* Research & Insights: the insights grid (three across), Show more under it, jump links as small secondary buttons */
.ri-jump { gap: 10px 12px; }
.ri-grid { margin-top: clamp(40px, 6vh, 56px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.ri-grid .case { flex: none; }
.ri-grid .case[hidden] { display: none; }
.ri-grid .case__text { max-width: none; }
.ri-more { margin-top: 48px; }
.ri-more[hidden] { display: none; }
@media (max-width: 1080px) { .ri-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ri-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } .ri-more { margin-top: 36px; } }
/* Sources on article pages: the same quiet list as the home page references. A plain numbered list,
   the link flows inside the sentence (it was falling into the number column before) */
.art__body .art-src { margin-top: 14px; padding-left: 1.9em; list-style: decimal; counter-reset: none; }
.art__body .art-src li { display: list-item; grid-template-columns: none; padding: 0 0 0 0.3em; margin-top: 10px; border: 0; font-size: 0.8125rem !important; line-height: 1.55 !important; color: var(--ink-3); scroll-margin-top: 90px; }
.art__body .art-src li::before { content: none; }
.art__body .art-src li::marker { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.art__body .art-src li:target { color: var(--ink-2); }
.art__body .art-src a { color: var(--ink-2); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.28); text-underline-offset: 2px; overflow-wrap: anywhere; word-break: normal; transition: color .2s var(--ease); }
.art__body .art-src a:hover { color: var(--ink); }
/* Articles: a wide header picture under the title, as on World Labs posts (the page width, not the reading column) */
.art-hero { margin-top: clamp(40px, 6vh, 64px); }
.art-hero img { display: block; width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: 16px; }
.art-hero figcaption { max-width: 720px; margin: 12px auto 0; font-size: var(--fs-small); color: var(--ink-3); line-height: 1.5; }
.art-hero figcaption a { color: var(--ink-2); }
@media (max-width: 760px) {
  .art-hero { margin-top: 32px; padding: 0; }
  .art-hero img { aspect-ratio: 4 / 3; border-radius: 0; }
  .art-hero figcaption { padding: 0 var(--pad); }
}
.art-hero img { height: auto; }
@media (max-width: 760px) {
  .art__meta { gap: 4px 10px; }
  .art__meta span + span::before { margin-right: 10px; }
}
/* Articles, photo first (World Labs): the picture right under the menu, then a row with the title on the
   right and the date and summary on the left, then the article */
.art:has(.art-top), .art:has(.art-hero--first) { padding-top: 96px; }
.art-top .art-hero, .art-hero--first { margin-top: 0; }
.art-top .art-hero img, .art-hero--first img { aspect-ratio: 16 / 9; }
.art-top .art-hero figcaption { max-width: none; margin: 10px 0 0; text-align: right; }
.art-hero--first + header { margin-top: clamp(48px, 7vh, 72px); }
.art-top__row { margin-top: clamp(40px, 6vh, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px 48px; align-items: start; }
.art-top__title { grid-column: 2; grid-row: 1; margin: 0; text-align: right; font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); }
.art-top__side { grid-column: 1; grid-row: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 28px; padding-top: 0.6em; font-size: var(--fs-small); line-height: 1.5; }
.art-top__date { color: var(--ink-3); white-space: nowrap; }
.art-top__deck { color: var(--ink); max-width: 34ch; }
.art-top__meta { grid-column: 2; color: var(--ink-3); }
.art__sample--top { margin-top: 0; padding-top: 0; border-top: 0; padding-bottom: 14px; border-bottom: 1px solid var(--hair); margin-bottom: 40px; }
@media (max-width: 760px) {
  .art:has(.art-top), .art:has(.art-hero--first) { padding-top: 62px; }
  .art-top { padding: 0; }
  .art-top .art-hero img, .art-hero--first img { aspect-ratio: 4 / 3; border-radius: 0; }
  .art-hero--first { padding: 0; }
  .art-top .art-hero figcaption { text-align: left; padding: 0 var(--pad); }
  .art-top__row { grid-template-columns: minmax(0, 1fr); padding: 0 var(--pad); margin-top: 32px; }
  .art-top__title { grid-column: 1; grid-row: 1; text-align: left; }
  .art-top__side { grid-column: 1; grid-row: 2; padding-top: 0; }
}
.art-hero { margin-left: 0; margin-right: 0; }
.art__body .art__col > .art__sample--top { font-size: var(--fs-small); line-height: 1.5; color: var(--ink-3); }
.art-hero.wrap { margin-left: auto; margin-right: auto; }
.art-hero--first figcaption { max-width: none; margin: 10px 0 0; text-align: right; }
@media (max-width: 760px) { .art-hero--first figcaption { text-align: left; padding: 0 var(--pad); } }
/* Articles, Read more on phones: the three pieces swipe side by side, the next one peeking in */
@media (max-width: 760px) {
  .art-more .ri-grid { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: 0 var(--pad); scroll-padding: 0 var(--pad); }
  .art-more .ri-grid::-webkit-scrollbar { display: none; }
  .art-more .ri-grid .case { flex: 0 0 82%; scroll-snap-align: start; }
}
/* Articles: reading progress, a thin teal line across the top of the screen */
.art-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; background: rgba(255, 255, 255, 0.06); }
.art-progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }
.ri-researchers .about__text { margin-top: 18px; max-width: 46rem; }
.ri-researchers .about__actions { margin-top: 22px; }
/* Articles: a heading that opens and closes its list (the paper's glossary), closed by default */
.art-toggle { display: inline-flex; align-items: center; gap: 12px; font: inherit; letter-spacing: inherit; color: inherit; text-align: left; transition: color .2s var(--ease); }
.art-toggle:hover { color: var(--link); }
.art-toggle__chev { flex: none; color: var(--ink-3); transition: transform .3s var(--ease), color .2s var(--ease); }
.art-toggle:hover .art-toggle__chev { color: var(--link); }
.art-toggle[aria-expanded="true"] .art-toggle__chev { transform: rotate(180deg); }
.art-terms[hidden] { display: none; }

/* Insights, laid out like a Levels article under the wide photo: kicker, title, subtitle, a by-line row
   (written by, reviewed by, date and read time), a highlights panel, pull quotes with a teal bar */
.art__body .art__col > .art-head__kick { font-size: var(--fs-small); line-height: 1.4; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 10px; }
.art-head__kick a { color: var(--ink-2); transition: color .2s var(--ease); }
.art-head__kick a:hover { color: var(--ink); }
.art-head__title { margin-top: 14px; font-size: clamp(2.25rem, 1.5rem + 2.4vw, 3.25rem); font-weight: 500; letter-spacing: -0.028em; line-height: 1.08; text-wrap: balance; }
.art__body .art__col > .art-head__deck { margin-top: 16px; color: var(--ink-2); font-size: var(--fs-lead); font-weight: 500; line-height: 1.5; }
.art-by { margin-top: 28px; padding: 18px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 44px; }
.art-by__k { font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--link); }
.art-by__p { margin-top: 8px; display: flex; align-items: center; gap: 12px; font-size: 0.9375rem; font-weight: 500; color: var(--ink); }
.art-by__av { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--bg-raise); display: grid; place-items: center; }
.art-by__av img { width: 100%; height: 100%; display: block; }
.art-by__av--empty { border: 1px solid var(--hair); }
.art-by__date { margin-left: auto; font-size: var(--fs-small); color: var(--ink-3); align-self: center; }
.art__body .art__col > .art__sample--by { margin: 14px 0 0; padding: 0; border: 0; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-3); }
.art-hl { margin: 32px 0 44px; padding: clamp(22px, 3vw, 32px); border-radius: 14px; background: var(--bg-raise); }
.art-hl__h { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }
.art-hl ul { margin-top: 16px; padding-left: 1.2em; list-style: disc; }
.art-hl li { color: var(--ink); font-size: 1rem !important; line-height: 1.6 !important; }
.art-hl li + li { margin-top: 10px; }
.art-hl li::marker { color: var(--ink-3); }
.art-quote { margin: 44px 0 8px clamp(0px, 6vw, 72px); padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); }
.art-quote p { font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); font-weight: 600; letter-spacing: -0.015em; line-height: 1.35; color: var(--ink); max-width: 30ch; }
@media (max-width: 760px) {
  .art-by { gap: 16px 28px; }
  .art-by__date { margin-left: 0; flex-basis: 100%; }
  .art-quote { margin-left: 0; }
}
@media (max-width: 760px) {
  .art-by { column-gap: 22px; }
  .art-by__p { gap: 10px; font-size: 0.875rem; }
  .art-by__av { width: 32px; height: 32px; }
}
.art-hl li a { color: inherit; transition: color .2s var(--ease); }
.art-hl li a:hover { color: var(--link); }
.art-hl__note { margin-top: 18px; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-3); }
.art-hl + .art-toc { margin-top: 0; }
.art-hero--first + .art__body { margin-top: clamp(40px, 6vh, 64px); }
.art-src[hidden] { display: none; }

/* Paper figures: numbered, titled, sourced. One accent (teal) for the subject, grey for everything else;
   labels in ink, never in the mark's colour. Wide diagrams swipe sideways on phones instead of shrinking. */
.art-figure { margin: 40px 0; }
.art-figure__h, .art-chart__h { font-size: var(--fs-small); color: var(--ink); line-height: 1.45; }
.art-figure__h span, .art-figure__n { display: inline-block; margin-right: 10px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.art-figure__note { margin-top: 12px; font-size: var(--fs-small) !important; line-height: 1.5 !important; color: var(--ink-3) !important; }
.art-figure__scroll { margin-top: 16px; }
.art-svg { display: block; width: 100%; height: auto; }
.svg-band { fill: rgba(255, 255, 255, 0.035); }
.svg-hair { stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; stroke-dasharray: 3 4; }
.svg-ground { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.5; }
.svg-cone { fill: rgba(28, 179, 172, 0.10); }
.svg-ray { stroke: var(--accent); stroke-width: 1.5; }
.svg-ray--weak { stroke: rgba(255, 255, 255, 0.35); stroke-dasharray: 4 5; }
.svg-link { stroke: var(--accent); stroke-width: 2; }
.svg-arc { fill: none; stroke: rgba(255, 255, 255, 0.5); stroke-width: 1.2; }
.svg-dim { stroke: rgba(255, 255, 255, 0.3); stroke-width: 1; }
.svg-dot { fill: var(--accent); }
.svg-halo { fill: rgba(28, 179, 172, 0.18); }
.svg-dust circle { fill: rgba(255, 255, 255, 0.28); }
.svg-site { fill: rgba(255, 255, 255, 0.3); }
.svg-site--on { fill: var(--accent); }
.svg-t { fill: var(--ink); font-size: 14px; font-family: inherit; }
.svg-t--2 { fill: var(--ink-2); font-size: 13px; }
.svg-t--3 { fill: var(--ink-3); font-size: 12px; }
.art-chart__bar i.is-muted { background: rgba(255, 255, 255, 0.38); }
.art-chart__axis { display: grid; grid-template-columns: 9rem minmax(0, 1fr) 5.5rem; gap: 14px; margin-top: 8px; }
.art-chart__ticks { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--ink-3); font-style: normal; }
.art-chart__ticks em { font-style: normal; font-variant-numeric: tabular-nums; }
/* evidence levels: a mark and a word, so it never rests on the mark alone */
.ev { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ev i { flex: none; width: 10px; height: 10px; border-radius: 50%; box-sizing: border-box; }
.ev--meas i { background: var(--accent); }
.ev--rep i { border: 1.5px solid var(--accent); }
.ev--pred i { border: 1.5px solid var(--ink-2); }
.ev--des i { border: 1.5px solid var(--ink-3); background: rgba(255, 255, 255, 0.12); }
.ev--req i { height: 2px; border-radius: 1px; background: var(--ink-2); }
.ev--none i { border: 1.5px dashed var(--ink-3); }
.ev-legend { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.8125rem; color: var(--ink-2); }
.ev-table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.ev-table th { text-align: left; font-weight: 400; color: var(--ink-3); padding: 0 12px 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.ev-table td { padding: 12px 12px 12px 0; border-bottom: 1px solid var(--hair); color: var(--ink); vertical-align: top; line-height: 1.45; }
.ev-table td:nth-child(2) { color: var(--ink-2); }
.ev-table td:last-child, .ev-table th:last-child { padding-right: 0; text-align: right; color: var(--ink-3); }
@media (max-width: 760px) {
  .art-figure__scroll { overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--pad) * -1); margin-right: calc(var(--pad) * -1); padding: 0 var(--pad); }
  .art-figure__scroll::-webkit-scrollbar { display: none; }
  .art-figure__scroll .art-svg { min-width: 600px; }
  .ev-table { min-width: 560px; }
  .art-chart__axis { grid-template-columns: 6.5rem minmax(0, 1fr) 4.5rem; gap: 10px; }
}
/* line and column charts: recessive grid, a solid baseline, teal for the subject, grey for comparison;
   values written on the marks, a native tooltip on each mark */
.svg-grid { stroke: rgba(255, 255, 255, 0.08); stroke-width: 1; }
.svg-axis { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; }
.svg-bar { fill: var(--accent); }
.svg-bar--muted { fill: rgba(255, 255, 255, 0.3); }
.svg-col:hover .svg-bar { filter: brightness(1.2); }
.svg-line { stroke: var(--accent); stroke-width: 2; fill: none; stroke-linecap: round; }
.svg-line--dash { stroke-dasharray: 6 5; opacity: 0.85; }
.svg-band-range { fill: rgba(255, 255, 255, 0.12); }
.svg-ref { stroke: rgba(255, 255, 255, 0.4); stroke-width: 1; stroke-dasharray: 2 4; }
.svg-pt { fill: var(--accent); stroke: var(--bg); stroke-width: 2; }
.svg-hit { fill: transparent; }
.lg { display: inline-flex; align-items: center; gap: 8px; }
.lg i { flex: none; width: 18px; height: 2px; border-radius: 1px; background: var(--accent); }
.lg i.lg--dash { background: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 9px); }
.lg i.lg--band { height: 10px; border-radius: 2px; background: rgba(255, 255, 255, 0.22); }

/* Articles: section navigator. Numbered sections, the current one bright, the ones passed dimmed.
   Wide screens: a list in the left margin beside the reading column. Narrower: a bar stuck to the top. */
.art-nav { font-size: 0.875rem; line-height: 1.35; z-index: 40; }
.art-nav ol { list-style: none; margin: 0; padding: 0; }
.art-nav a, .art-nav__now { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; align-items: center; width: 100%; padding: 11px 0; text-align: left; color: var(--ink); font: inherit; transition: color .2s var(--ease); }
.art-nav__n { font-variant-numeric: tabular-nums; color: var(--ink-3); font-size: 0.8125rem; }
.art-nav li { border-bottom: 1px solid var(--hair); }
.art-nav li.is-past a, .art-nav li.is-past .art-nav__n { color: var(--ink-3); }
.art-nav li.is-cur a { color: var(--link); }
.art-nav li.is-cur .art-nav__n { color: var(--link); }
.art-nav a:hover { color: var(--link); }
@media (min-width: 1200px) {
  .art-nav { position: fixed; top: 132px; width: 200px; left: max(var(--pad), calc((100vw - 720px) / 2 - 260px)); opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s; }
  .art-nav.is-on { opacity: 1; visibility: visible; }
  .art-nav__now { display: none; }
  .art-nav ol { border-top: 1px solid rgba(255, 255, 255, 0.18); max-height: calc(100vh - 180px); overflow-y: auto; scrollbar-width: none; }
  .art-nav a { padding: 9px 0; font-size: 0.8125rem; }
}
@media (max-width: 1199px) {
  .art-nav { position: sticky; top: 0; margin: 0 calc(var(--pad) * -1) 8px; padding: 0 var(--pad); background: rgba(5, 7, 10, 0.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid var(--hair); transition: top .3s var(--ease); }
  body:has(.nav:not(.is-hidden)) .art-nav { top: 60px; }
  .art-nav__now { padding: 14px 0; }
  .art-nav__now .art-nav__t { font-weight: 500; }
  .art-nav__chev { color: var(--ink-3); transition: transform .3s var(--ease); }
  .art-nav.is-open .art-nav__chev { transform: rotate(180deg); }
  .art-nav ol { display: none; border-top: 1px solid var(--hair); max-height: 60vh; overflow-y: auto; }
  .art-nav.is-open ol { display: block; }
  .art-nav li:last-child { border-bottom: 0; }
}
@media (max-width: 760px) { body:has(.nav:not(.is-hidden)) .art-nav { top: 54px; } }
/* Articles: photo credits at the end, closed by default */
.art-credits { margin-top: 64px; padding-top: 18px; border-top: 1px solid var(--hair); }
.art__body .art-credits__h { margin: 0; font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.art-credits__h .art-toggle { color: var(--ink-2); }
.art-credits__list { margin-top: 12px; }
.art-credits__list[hidden] { display: none; }
.art__body .art-credits__list li { font-size: var(--fs-small); line-height: 1.55; color: var(--ink-3); }
.art-credits__list a { color: var(--ink-2); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.28); text-underline-offset: 2px; }
.art-credits__list a:hover { color: var(--ink); }
/* breadcrumb: Research & Insights / Insights / Title, on one line; the title is cut with an ellipsis */
.art__body .art__col > .art-head__kick { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
.art-head__kick > * { flex: none; }
.art-head__kick .art-head__here { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink-3); }
@media (max-width: 760px) {
  .art-top + .art__body, .art-hero--first + .art__body { margin-top: 28px; }
  .art-head__title { margin-top: 10px; }
}

/* Paper figures, benchmarked on Anthropic's research charts: each figure in its own soft panel, title at the
   top, a note at the bottom, square legend swatches, faint grid. On phones the chart scales to the screen
   with its labels kept readable, instead of scrolling sideways. */
.art-figure, .art__col > .art-panel { margin: 44px 0; padding: 24px 28px 22px; border-radius: 16px; background: var(--bg-raise); }
.art-figure__h, .art-panel .art-chart__h { font-size: 0.9375rem; font-weight: 500; color: var(--ink); }
.art-figure__h span, .art-panel .art-figure__n { font-weight: 400; }
.art-figure__scroll { margin-top: 22px; }
.art-figure .art-figure__note, .art-panel .art-chart__note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--hair); }
.art-svg { overflow: visible; }
.svg-grid { stroke: rgba(255, 255, 255, 0.07); }
.lg i { width: 12px; height: 12px; border-radius: 3px; }
.lg i.lg--line { background: var(--accent); }
.lg i.lg--dash { background: repeating-linear-gradient(135deg, var(--accent) 0 3px, transparent 3px 5px); }
.lg i.lg--band { background: rgba(255, 255, 255, 0.22); }
.ev-legend { margin-top: 16px; }
@media (max-width: 760px) {
  .art-figure, .art__col > .art-panel { margin: 36px calc(var(--pad) * -0.5); padding: 18px 16px 16px; border-radius: 14px; }
  .art-figure__scroll { overflow: visible; margin: 18px 0 0; padding: 0; }
  .art-figure__scroll .art-svg { min-width: 0; }
  /* svg text is in drawing units, so it is set larger here to stay about 11 to 12px on screen */
  .art-svg .svg-t { font-size: 27px; }
  .art-svg .svg-t--2 { font-size: 25px; }
  .art-svg .svg-t--3 { font-size: 23px; }
  .art-svg .svg-wide { display: none; }
  .svg-line { stroke-width: 4; }
  .svg-ray, .svg-link { stroke-width: 3; }
  .svg-pt { r: 8; }
  /* the evidence table stacks: the claim, then its evidence and source */
  .ev-table { min-width: 0; }
  .ev-table thead { display: none; }
  .ev-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair); }
  .ev-table td { padding: 0; border: 0; }
  .ev-table td:first-child { grid-column: 1 / -1; margin-bottom: 6px; }
  .ev-table td:nth-child(2) { white-space: normal; }
}
/* Paper glossary (Levels): a box with "Terms used on this page" and an arrow; the terms open inside it */
.art-gloss { margin: 36px 0 8px; border-radius: 14px; background: var(--bg-raise); scroll-margin-top: 90px; }
.art-gloss__btn { display: flex; width: 100%; justify-content: space-between; padding: 16px 20px; font-size: 0.9375rem; font-weight: 500; color: var(--ink); }
.art-gloss .art-terms { margin: 0 20px; padding-bottom: 6px; border-top: 1px solid var(--hair); }
.art-gloss .art-terms div:last-child { border-bottom: 0; }
@media (max-width: 760px) { .art-gloss__btn { padding: 14px 16px; } .art-gloss .art-terms { margin: 0 16px; } }

/* Research & Insights, one vertical rhythm on every page:
   between sections --ri-gap (144px desktop at a 900px-tall screen, 112px phones),
   under the top of the page (listing intro, article photo) --ri-top (72px, 56px phones),
   above each heading inside an article --ri-h (72px, 56px phones) */
.ri, .art { --ri-gap: clamp(112px, 16vh, 180px); --ri-top: 72px; --ri-h: 72px; }
@media (max-width: 760px) { .ri, .art { --ri-gap: 112px; --ri-top: 56px; --ri-h: 56px; } }
.ri > .ri-latest { margin-top: calc(var(--ri-top) - 18px); }
.ri > .ab-sec { margin-top: var(--ri-gap); }
.art-top + .art__body { margin-top: var(--ri-top); }
.art-more { margin-top: var(--ri-gap); }
.art > .ab-sec { margin-top: var(--ri-gap); }
.art__body h2, .art__body .art__col > .art-find__k { margin-top: var(--ri-h); }
.art__body .art-find__k + h2 { margin-top: 10px; }
/* the closing section ends one gap above the footer's first line */
.ri > .ri-end, .art > .ri-end { padding-bottom: calc(var(--ri-gap) - 64px); }
@media (max-width: 760px) {
  .pp.ri > section:not(.ri-hero) { padding-top: 0; }
  .ri > .ri-end, .art > .ri-end { padding-bottom: calc(var(--ri-gap) - 64px) !important; }
  /* the paper's section bar is a control, not a heading: tight above and below it */
  .art__body .art-nav { margin-top: 24px; }
  .art__body .art-nav + h2 { margin-top: 32px; }
}
.ri-end .about__actions { margin-bottom: 0; }
.ri > .ri-latest { margin-top: var(--ri-top); }
.ri > .ri-end, .art > .ri-end { padding-bottom: calc(var(--ri-gap) - 65px); }
@media (max-width: 760px) {
  .pp.ri > section.ab-sec, .pp.ri > section.ri-latest { margin-top: var(--ri-gap); padding-top: 0; }
  .pp.ri > section.ri-latest { margin-top: var(--ri-top); }
}
.art-top { padding-bottom: 0; }
.art-top .art-hero { margin: 0; }
@media (max-width: 760px) {
  .ri > .ri-end, .art > .ri-end { padding-bottom: calc(var(--ri-gap) - 105px) !important; }
  .art__body .art-nav { margin-top: 8px; }
  .art__body .art-nav + h2 { margin-top: 0; padding-top: 8px; }
}
.art-hero--first + .art__body { margin-top: var(--ri-top) !important; }
.art-top + .art__body { margin-top: var(--ri-top) !important; }
/* the closing section ends one full section gap above the footer's divider line, as on Products and About */
.ri > .ri-end, .art > .ri-end { padding-bottom: var(--ri-gap) !important; }
@media (max-width: 760px) {
  /* listing intro on phones: about 32px under the menu bar, 40px from the buttons to the first section */
  .pp > .ri-hero { padding-top: 86px; }
  .pp.ri > section.ri-latest { margin-top: 40px; }
}
@media (max-width: 760px) { .pp > .ri-hero { padding-top: 68px; } }
@media (max-width: 760px) { .pp.ri > section.ri-hero { padding-top: 92px; } }
/* article head: the photo sits as far above the breadcrumb as the subtitle sits above the by-line (28px) */
.art-hero--first + .art__body, .art-top + .art__body { margin-top: 28px !important; }
/* the short version and the glossary box sit 16px apart */
.art-hl:has(+ .art-gloss) { margin-bottom: 0; }
.art-hl + .art-gloss { margin-top: 16px; }
/* Research & Insights: 24px from a section's heading (or its intro line) to its content */
.art-more .ri-grid, .ri .ri-grid, .ri .ri-list { margin-top: 24px; }
/* Latest paper: 24px from the photo to its text when they stack (phones) */
.ri-latest { row-gap: 24px; }
@media (max-width: 900px) { .ri-latest .pp-prod__copy { margin-top: 0; padding-top: 0; } }
.ri-list .ri-row[hidden] { display: none; }
/* listing intro on desktop: the standard top space (72px) under the menu bar */
@media (min-width: 761px) { .pp.ri > section.ri-hero { padding-top: 132px; } }
.ri-end .lead { max-width: 46ch; }
/* Research & Insights closing: a real photo behind the right half, faded into the page on every side; phones show no photo */
.ri-close { position: relative; overflow: hidden; }
.ri-close__bg { position: absolute; top: 0; bottom: 0; right: 0; width: 58%; }
.ri-close__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; opacity: 0.55; }
.ri-close__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(5, 7, 10, 0.4) 40%, transparent 70%), linear-gradient(180deg, var(--bg) 0%, transparent 25%, transparent 70%, var(--bg) 100%); }
.ri-close__inner { position: relative; }
@media (max-width: 760px) { .ri-close__bg { display: none; } }
.ri-close__bg::after { background: linear-gradient(90deg, var(--bg) 0%, rgba(5, 7, 10, 0.45) 40%, transparent 72%), linear-gradient(180deg, var(--bg) 0%, rgba(5, 7, 10, 0.6) 22%, transparent 48%, transparent 62%, var(--bg) 100%); }
/* the photo fills the space above the heading too, so it fades in from the section before (same distance as before) */
.pp.ri > section.ri-close { margin-top: 0; padding-top: var(--ri-gap); }
/* the closing's picture is the home page's live point-cloud field, not a photo */
.ri-close__bg canvas { display: block; width: 100%; height: 100%; }
/* like the home page closing: the field spans the whole section, fading out behind the text */
.ri-close__bg { left: 0; width: auto; }
.ri-close__bg::after { background: linear-gradient(90deg, var(--bg) 0%, rgba(5, 7, 10, 0.7) 30%, transparent 60%), linear-gradient(180deg, var(--bg) 0%, transparent 25%, transparent 75%, var(--bg) 100%); }

/* Research & Insights live search: a field beside the Whitepapers and Insights buttons */
.ri-jump { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ri-jump__links { display: flex; gap: 12px; }
.ri-search { position: relative; flex: 0 1 380px; min-width: 0; }
.ri-search__icon { position: absolute; left: 18px; top: 50%; translate: 0 -50%; color: var(--ink-3); pointer-events: none; }
.ri-search__input { width: 100%; height: 46px; padding: 0 44px 0 48px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.03); color: var(--ink); font: inherit; font-size: 1rem; outline: none; transition: border-color .2s var(--ease), background-color .2s var(--ease); -webkit-appearance: none; appearance: none; }
.ri-search__input::placeholder { color: var(--ink-3); }
.ri-search__input:hover { border-color: rgba(255, 255, 255, 0.42); }
.ri-search__input:focus { border-color: var(--accent); background: rgba(255, 255, 255, 0.05); }
.ri-search__input::-webkit-search-cancel-button { display: none; }
.ri-search__clear { position: absolute; right: 8px; top: 50%; translate: 0 -50%; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); transition: color .2s var(--ease), background-color .2s var(--ease); }
.ri-search__clear:hover { color: var(--ink); background: rgba(255, 255, 255, 0.08); }
.ri-search__clear[hidden] { display: none; }
.ri-search__count { flex-basis: 100%; min-height: 1.4em; font-size: var(--fs-small); color: var(--ink-3); }
.ri-search__count:empty { display: none; }
.ri-search__reset { color: var(--link); font: inherit; margin-left: 6px; }
.ri mark { background: rgba(28, 179, 172, 0.22); color: inherit; border-radius: 3px; padding: 0 1px; }
.ri-empty { margin-top: 20px; font-size: var(--fs-small); color: var(--ink-3); }
.ri-empty[hidden], .ri .case[hidden], .ri .ri-row[hidden] { display: none; }
@media (max-width: 760px) {
  .ri-search { flex: 1 1 100%; }
  .ri-search__input { height: 44px; }
}
.ri-latest[hidden] { display: none; }
.ri-latest .pp-kicker span { white-space: nowrap; }
.pp.ri.is-searching > section#papers { margin-top: 40px; }
/* insight cards: every card in a row is as tall as the tallest, and Read more sits on the bottom line */
.ri-grid .case { display: flex; }
.ri-grid .ri-card { display: flex; flex-direction: column; width: 100%; }
.ri-grid .ri-card .case__link { margin-top: auto; padding-top: 14px; align-self: flex-start; }
/* the search field matches the secondary buttons beside it: same height, text size and weight */
.ri-search__input { height: 46px; font-size: 1rem; font-weight: 400; padding-left: 46px; }
.ri-search__icon { left: 18px; width: 18px; height: 18px; }
@media (max-width: 760px) {
  .ri-search__input { height: 36px; font-size: 0.875rem; letter-spacing: -0.016em; padding: 0 38px 0 38px; }
  .ri-search__icon { left: 14px; width: 15px; height: 15px; }
  .ri-search__clear { right: 4px; width: 28px; height: 28px; }
}
.ri-row__body .ri-row__t:first-child { margin-top: 0; }
.ri-search__count { overflow-wrap: anywhere; }
.ri-empty { overflow-wrap: anywhere; }
/* a line from the article, shown under a search result when the word was only found there */
.ri-snip { display: block; margin-top: 10px; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-3); }
.ri-snip__k { color: var(--ink-2); margin-right: 4px; }
/* whitepaper read time: under the number on desktop (its own narrow column), beside it on phones */
.ri-row__read { display: block; margin-top: 4px; color: var(--ink-3); }
@media (max-width: 760px) {
  .ri-row__read { display: inline; margin-top: 0; }
  .ri-row__read::before { content: "·"; margin: 0 8px; }
}
/* the stack keeps the same padding when a product is hovered, so its text never rewraps (only the name color changes) */
@media (min-width: 901px) { .eco__node:hover { padding-right: 40px; } }
/* each product column 8px wider (right padding 40 -> 32), so EnvoTwin's use case fits on two lines */
@media (min-width: 901px) { .eco__node, .eco__node:hover { padding-right: 32px; } }
/* the stack: hovering (desktop) or showing (phones) a product never dims the others; only that product's
   dot on the signal line lights up */
.eco[data-reach] .eco__node:not(.is-reached) .eco__kick,
.eco[data-reach] .eco__node:not(.is-reached) .eco__name,
.eco[data-reach] .eco__node:not(.is-reached) .eco__n { opacity: 1; }
.eco[data-reach] .eco__node::before { opacity: 1; }
/* every dot is white until its product is hovered (desktop) or shown (phones); then that one dot is teal */
.eco .eco__node::before, .eco .eco__node--core::before, .eco[data-reach] .eco__node.is-reached::before { background: var(--ink); box-shadow: 0 0 0 4px rgba(242, 244, 246, 0.1), 0 0 18px 2px rgba(242, 244, 246, 0.35); opacity: 1; }
.eco[data-reach] .eco__node.is-current::before, .eco .eco__node.is-current::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(28, 179, 172, 0.16), 0 0 22px 3px rgba(28, 179, 172, 0.5); }

/* Articles: reading text size. M is the default; S is 90%, L is 115%. It scales the article's reading text
   (subtitle, body, lists, highlights, headings inside the article, pull quotes, glossary), not the page title */
html { --k: 1; }
html[data-text="s"] { --k: 0.9; }
html[data-text="l"] { --k: 1.15; }
.art__body .art__col > p, .art__body li, .art__sec p { font-size: calc(1.0625rem * var(--k)); }
.art__body .art__col > .art-head__deck { font-size: calc(var(--fs-lead) * var(--k)); }
.art__body h2 { font-size: calc(clamp(1.5rem, 1.2rem + 1vw, 2rem) * var(--k)); }
.art__body h3 { font-size: calc(1.0625rem * var(--k)); }
.art-hl li { font-size: calc(1rem * var(--k)) !important; }
.art-quote p { font-size: calc(clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem) * var(--k)); }
.art-terms dd { font-size: calc(1rem * var(--k)); }
@media (max-width: 760px) {
  .art__body .art__col > p, .art__body li, .art__sec p { font-size: calc(1rem * var(--k)); }
}

/* Desktop reading tools, on the breadcrumb line: Text S M L and Share */
.art__body .art__col { position: relative; }
.art-tools { position: absolute; top: -6px; right: 0; display: flex; align-items: center; gap: 10px; }
.art__body .art__col > .art-head__kick { padding-right: 250px; }
.art-tools__size { display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); }
.art-tools__k { padding: 0 8px 0 10px; font-size: 0.8125rem; color: var(--ink-3); }
.art-tools__size button { width: 30px; height: 26px; border-radius: 999px; font-size: 0.8125rem; color: var(--ink-2); transition: color .2s var(--ease), background-color .2s var(--ease); }
.art-tools__size button:hover { color: var(--ink); }
.art-tools__size button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.art-tools__btn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.8125rem; color: var(--ink); transition: border-color .2s var(--ease); }
.art-tools__btn:hover { border-color: rgba(255, 255, 255, 0.42); }

/* Desktop back to top: a round button bottom right, once the head has scrolled away */
.art-up { position: fixed; right: 28px; bottom: 28px; z-index: 60; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: rgba(16, 19, 24, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, 0.18); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, border-color .2s var(--ease); }
.art-up.is-on { opacity: 1; visibility: visible; transform: none; }
.art-up:hover { border-color: rgba(255, 255, 255, 0.42); }

/* Phones: one reading bar at the bottom of the screen */
.art-bar { display: none; }
.art-toast { position: fixed; left: 50%; bottom: 96px; z-index: 70; translate: -50% 8px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 0.875rem; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), translate .25s var(--ease); }
.art-toast.is-on { opacity: 1; translate: -50% 0; }
@media (max-width: 760px) {
  .art-tools, .art-up { display: none; }
  .art__body .art__col > .art-head__kick { padding-right: 0; }
  .art-bar { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 60; display: flex; justify-content: space-between; align-items: center; padding: 8px; border-radius: 22px; background: rgba(22, 26, 32, 0.86); -webkit-backdrop-filter: saturate(150%) blur(18px); backdrop-filter: saturate(150%) blur(18px); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
  .art-bar button { width: 48px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: var(--ink); transition: background-color .2s var(--ease), opacity .2s var(--ease); }
  .art-bar button:active { background: rgba(255, 255, 255, 0.1); }
  .art-bar button:disabled { opacity: 0.3; }
  .art-bar__group { display: flex; gap: 4px; padding: 2px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); }
  .art-bar__end { display: flex; gap: 8px; }
  .art-bar__one { background: rgba(255, 255, 255, 0.06); }
  /* room under the footer so the bar never covers its last line */
  body.has-art-bar .footer { padding-bottom: 120px; }
  .art-toast { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 76px); }
}
/* phones: the reading bar runs the full width, flush with the bottom edge, like an iOS toolbar */
@media (max-width: 760px) {
  .art-bar { left: 0; right: 0; bottom: 0; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); border-radius: 0; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.1); background: rgba(14, 17, 21, 0.88); box-shadow: none; }
  .art-bar button { width: 46px; height: 44px; border-radius: 12px; color: var(--ink); }
  .art-bar__group, .art-bar__one { background: none; }
  .art-bar__group { gap: 6px; padding: 0; }
  .art-bar__end { gap: 6px; }
  .art-bar button svg { stroke-width: 1.7; }
  body.has-art-bar .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  .art-toast { bottom: calc(72px + env(safe-area-inset-bottom)); }
}
/* desktop reading tools sit under the subtitle, at the usual desktop button size (46px, 16px text) */
.art-tools { position: static; margin-top: 24px; gap: 12px; }
.art__body .art__col > .art-head__kick { padding-right: 0; }
.art-tools__size { height: 46px; padding: 4px; gap: 2px; border-color: rgba(255, 255, 255, 0.22); }
.art-tools__k { padding: 0 10px 0 14px; font-size: 1rem; }
.art-tools__size button { width: 38px; height: 36px; font-size: 1rem; }
.art-tools__btn { height: 46px; padding: 0 22px; gap: 10px; font-size: 1rem; font-weight: 500; border-color: rgba(255, 255, 255, 0.22); }
.art-tools + .art-by { margin-top: 28px; }
/* desktop: share again at the end of the article, before Read more; phones use the bottom bar */
.art-endshare { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--hair); display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.art__body .art-endshare p { margin: 0; font-size: 1.0625rem; color: var(--ink); }
.art-endshare__btn { gap: 10px; }
.art-endshare__btn svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .art-endshare { display: none; } }
/* phones: reading progress runs along the top edge of the bottom bar instead of the top of the screen */
.art-bar__progress { display: none; }
@media (max-width: 760px) {
  .art-progress { display: none; }
  .art-bar__progress { display: block; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
  .art-bar__progress i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
  .art-bar { border-top: 0; }
}
/* while searching, the results are a short list, so the Insights section sits closer to the Whitepapers results
   (72px desktop, 56px phones, instead of a full section gap) */
.pp.ri.is-searching > section#insights { margin-top: var(--ri-h); }
.ri.is-searching .ri-empty { margin-top: 16px; }
/* a list with no matches takes no room; its "No … match" line sits 24px under the section intro */
.ri .ri-list:not(:has(> li:not([hidden]))), .ri .ri-grid:not(:has(> li:not([hidden]))) { display: none; }
.ri.is-searching .ri-empty { margin-top: 24px; }
/* while searching, a section's intro line says what it found, in the same style as the line it replaces;
   only "clear the search" stands out, as a link */
.ri-lead-clear { font: inherit; letter-spacing: inherit; color: var(--link); transition: color .2s var(--ease); }
.ri-lead-clear:hover { color: var(--ink); }
/* while searching, a section's intro line says what it found, in the same style as the line it replaces;
   only "clear the search" stands out, as a link */
.ri-lead-clear { font: inherit; letter-spacing: inherit; color: var(--link); transition: color .2s var(--ease); }
.ri-lead-clear:hover { color: var(--ink); }
/* desktop: a floating Share that follows the reader, stacked above Back to top in the bottom right corner */
.art-float { position: fixed; right: 28px; bottom: 28px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.art-float .art-up { position: static; pointer-events: auto; }
.art-float__share { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 999px; font-size: 1rem; font-weight: 500; color: var(--ink); background: rgba(16, 19, 24, 0.82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, 0.18); opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: auto; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, border-color .2s var(--ease); }
.art-float__share svg { width: 18px; height: 18px; }
.art-float.is-on .art-float__share { opacity: 1; visibility: visible; transform: none; }
.art-float__share:hover { border-color: rgba(255, 255, 255, 0.42); }
@media (max-width: 760px) { .art-float { display: none; } }
/* the floating Share and Back to top sit side by side: Share on the left, Back to top on the right */
.art-float { flex-direction: row; align-items: center; }

/* cookie consent (js/analytics.js): Europe and UK visitors only, or ?consent=preview.
   Computers and tablets: a slim bar along the bottom edge, clear of the hero buttons
   (they end 108px or more above the bottom at 1280x720 and up).
   Phones: a card just under the menu bar, since the hero buttons sit 56px from the bottom. */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: rgba(16, 19, 24, 0.86); -webkit-backdrop-filter: saturate(150%) blur(18px); backdrop-filter: saturate(150%) blur(18px); border-top: 1px solid rgba(255, 255, 255, 0.1); padding-bottom: env(safe-area-inset-bottom); opacity: 0; visibility: hidden; transform: translateY(100%); transition: opacity .35s var(--ease), transform .45s var(--ease-out), visibility .45s; }
.consent.is-on { opacity: 1; visibility: visible; transform: none; }
.consent__in { max-width: calc(var(--maxw) + var(--pad) * 2); margin: 0 auto; padding: 14px var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.consent__p { font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); max-width: 760px; }
.consent__t { font-weight: 500; color: var(--ink); margin-right: 4px; }
.consent__p a { color: var(--link); }
.consent__p a:hover { color: var(--link-hover); }
.consent__actions { display: flex; gap: 14px; flex: none; }
.consent__short { display: none; }
@media (max-width: 760px) {
  /* phones: one thin line at the very bottom, under the hero buttons (they end 56px above the bottom) */
  .consent__p { display: none; }
  .consent__short { display: block; font-size: var(--fs-small); font-weight: 500; color: var(--ink); white-space: nowrap; }
  .consent__short a { color: var(--link); }
  .consent__in { padding: 8px 16px; gap: 12px; }
  .consent__actions { gap: 10px; }
  /* articles: the reading toolbar moves up above the strip while it shows */
  .art-bar { transition: bottom .45s var(--ease-out); }
  body:has(.consent.is-on) .art-bar { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 48px); }
}
@media (prefers-reduced-motion: reduce) { .consent, .consent.is-on { transform: none; } }

/* stealth gate (stealth.html, js/stealth.js): the maintenance layout with a passcode form */
.sp-page .pp-hero__copy form, .sp-page .pp-hero__copy input { pointer-events: auto; }
.sp-start { margin-top: 28px; }
.sp-start[hidden], .sp-form[hidden] { display: none; }
.sp-form { display: flex; gap: 14px; margin-top: 28px; max-width: 440px; }
.sp-form.is-in { animation: sp-in .4s var(--ease-out) both; }
@keyframes sp-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sp-form.is-in { animation: none; } }
.sp-input { flex: 1; min-width: 0; padding: 0 22px; letter-spacing: 0.08em; }
.sp-input::placeholder { letter-spacing: 0; }
.sp-input:disabled { opacity: 0.6; }
.sp-msg { min-height: 1.45em; margin-top: 12px; font-size: var(--fs-small); color: var(--ink-2); }
.sp-msg[data-state="error"] { color: var(--amber); }
.sp-msg[data-state="ok"] { color: var(--green); }
.sp-page .pp-hero .about__actions { margin-top: 8px; }
.sp-page .mt__hint { max-width: 560px; }                          /* how to play: same width as the intro */
.sp-vision { padding-bottom: clamp(96px, 14vh, 160px); }
.sp-products .ab-how__n { letter-spacing: 0.02em; }
.sp-page .sp-vision__actions { margin-top: clamp(48px, 7vh, 72px); }
.sp-vision .h2 { max-width: 11em; }
.sp-vision__intro { position: relative; min-height: clamp(420px, 52vh, 540px); display: flex; flex-direction: column; justify-content: center; }
.sp-vision__intro > :not(.sp-vision__art) { position: relative; z-index: 1; }
.sp-vision__art { position: absolute; inset: 0 calc(-1 * var(--pad)) 0 0; pointer-events: none; }
.sp-vision__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(5, 7, 10, 0.7) 30%, transparent 55%); }
@media (max-width: 760px) { .sp-vision__art { display: none; } .sp-vision__intro { min-height: 0; display: block; } }
.sp-vision .about__text { max-width: 640px; margin-top: 24px; }
.sp-page #sp-title .line { display: block; }                    /* two lines, so the headline ends before the dish tower */
.sp-footer__grid { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 40px; }
.sp-footer__logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.sp-footer__logo .nav__word { display: block; }
