/* Boo Lab — plaster, thread, and a lamp left on. */

:root {
  --field: #BFC8C5;      /* the plaster room; image backdrops are normalized to this */
  --chalk: #F2F3F1;
  --ink: #192022;
  --graphite: #414C49;
  --thread: #A1172F;     /* the harness */
  --night: #14181E;
  --night-ink: #E9E6DF;
  --night-dim: #9AA3A0;
  --lamp: #EDB46E;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
  --step-4: clamp(2.5rem, 1.5rem + 4.4vw, 5.25rem);
  --step-5: clamp(3.1rem, 1.3rem + 6.2vw, 7.5rem);

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scrollbar-color: rgb(25 32 34 / .28) var(--field);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

html.is-night { scrollbar-color: rgb(233 230 223 / .28) var(--night); }

body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

/* A breath of film grain so flat color and photographs share one surface */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--thread);
  outline-offset: 4px;
  border-radius: 6px;
}

::selection { background: var(--thread); color: var(--chalk); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 60;
  padding: .6em 1em;
  background: var(--ink);
  color: var(--chalk);
  font: 500 var(--step--1)/1 var(--sans);
  border-radius: 999px;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--graphite);
  max-width: 33em;
  text-wrap: pretty;
}

h1, h2, .home-quote { text-wrap: balance; }

/* ---------- Buttons ---------- */

.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: .8em 1.4em;
  border-radius: 999px;
  color: var(--chalk);
  font: 500 var(--step-0)/1 var(--sans);
  text-decoration: none;
  transition: transform .25s var(--ease);
}
/* The fill lives on a layer of its own so Boo can hide behind it */
.button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: var(--ink);
  transition: background-color .4s var(--ease);
}
.button:hover::before { background: #2A3336; }
.button:active { transform: scale(.97); }
.button--large { font-size: 1.0625rem; padding: 1em 1.7em; }

/* Boo peeks over the top edge of the button, waiting to be let in.
   Only the head: its lower half always stays behind the button. */
.peek {
  position: absolute;
  z-index: -2;
  top: -15.5px;
  right: 24px;
  width: 30px;
  height: 27.5px;
  pointer-events: none;
}
.peek svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: var(--thread);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.peek circle:not(.peek-skull) { fill: var(--thread); stroke: none; transform-box: fill-box; transform-origin: center; animation: boo-blink 6.1s ease-in-out infinite; }
.peek-head { transform-box: view-box; transform-origin: 12px 20px; transition: transform .5s var(--ease); }
.peek-bob { animation: bob 3.8s ease-in-out infinite alternate; }
.peek-smile { transform-box: fill-box; transform-origin: 50% 0; transition: transform .4s var(--ease); }
.button:hover .peek-head { transform: translateY(-4.5px) rotate(-8deg); transition-delay: 0s; }
.button:hover .peek-smile { transform: scale(1.3, 1.6); }
.button:active .peek-head { transform: translateY(6px); transition-duration: .15s; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-.8px); } }

/* After the page settles, Boo comes up from behind the button */
.js .peek-head { transform: translateY(12px); }
.is-ready .peek-head { transform: none; transition: transform 1s var(--ease) 1.5s; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--gutter);
  transition: background-color .5s var(--ease), color .5s var(--ease), box-shadow .5s var(--ease);
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--field) 78%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 1px 0 rgb(25 32 34 / .06);
}
.nav.is-night {
  color: var(--night-ink);
  background: color-mix(in srgb, var(--night) 72%, transparent);
  box-shadow: 0 1px 0 rgb(255 255 255 / .05);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  min-height: 44px;
  text-decoration: none;
  font: 500 1.25rem/1 var(--serif);
  letter-spacing: -.01em;
}
.boo-mark {
  width: 40px;
  height: 27px;
  overflow: visible;
  fill: none;
  stroke: var(--thread);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.boo-mark circle { fill: var(--thread); stroke: none; }

/* Boo idles: the head tilts on its neck, glances around, blinks now and then */
.boo-mark .head { transform-origin: 22px 24px; animation: tilt 6.4s ease-in-out infinite alternate; }
.boo-mark .face { animation: glance 11s ease-in-out infinite; }
.boo-mark circle { transform-box: fill-box; transform-origin: center; animation: boo-blink 7.4s ease-in-out infinite; }
.boo-mark .smile { transform-box: fill-box; transform-origin: 50% 0; transition: transform .4s var(--ease); }
.wordmark:hover .smile { transform: scale(1.3, 1.6); }
@keyframes tilt { from { transform: rotate(-6deg); } to { transform: rotate(5deg); } }
@keyframes glance {
  0%, 28% { transform: translateX(0); }
  33%, 50% { transform: translateX(-1.2px); }
  56%, 74% { transform: translateX(1.2px); }
  80%, 100% { transform: translateX(0); }
}
@keyframes boo-blink {
  0%, 40%, 44%, 88%, 91%, 94%, 97%, 100% { transform: scaleY(1); }
  42%, 89.5%, 95.5% { transform: scaleY(.12); }
}

/* On load the thread draws itself: in, around the head, out, then the face appears */
.js .boo-mark path { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset .6s var(--ease-io), opacity .01s; }
.js .boo-mark .loop { transition-duration: .9s; transition-delay: .45s; }
.js .boo-mark .tail--out { transition-delay: 1.25s; }
.js .boo-mark .smile { transition: stroke-dashoffset .4s var(--ease) 1.9s, opacity .01s 1.9s, transform .4s var(--ease); }
.js .boo-mark .eyes { opacity: 0; transition: opacity .4s var(--ease) 1.7s; }
.is-ready .boo-mark path { stroke-dashoffset: 0; opacity: 1; }
.is-ready .boo-mark .eyes { opacity: 1; }
.nav.is-night .boo-mark { stroke: #E0566C; }
.nav.is-night .boo-mark circle { fill: #E0566C; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: .25em;
  font: 500 var(--step--1)/1 var(--sans);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 12px) / 0 1px no-repeat;
  transition: background-size .45s var(--ease);
}
.nav-cta:hover { background-size: 100% 1px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: end;
  min-height: 100svh;
  max-width: var(--max);
  margin-inline: auto;
  padding: 80px var(--gutter) clamp(48px, 8vh, 96px);
}

.hero-brain {
  grid-column: 5 / -1;
  grid-row: 1;
  align-self: center;
  justify-self: end;
  width: min(100%, 80svh);
  margin-right: calc(var(--gutter) * -1);
  translate: 0 var(--parallax, 0);
}
.hero-brain img {
  width: 100%;
  -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 70%, transparent 100%);
  animation: breathe 7s ease-in-out infinite alternate;
}

@keyframes breathe {
  from { scale: 1; }
  to { scale: 1.018; }
}

.hero-copy {
  grid-column: 1 / span 8;
  grid-row: 1;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: var(--step-5);
  font-weight: 330;
  line-height: .95;
  letter-spacing: -.028em;
  margin-bottom: clamp(20px, 3vh, 32px);
}
.hero h1 .line { display: block; overflow: hidden; padding: .12em .1em .1em; margin: -.12em -.1em -.1em; }
.hero h1 .line > span { display: inline-block; }

.hero .lede { margin-bottom: 32px; max-width: 26em; }

/* Page-load sequence */
.js .hero-brain { opacity: 0; transition: opacity 2.2s var(--ease); }
.js .hero-brain img { transform: scale(1.04); transition: transform 2.6s var(--ease); }
.js .hero h1 .line > span { transform: translateY(105%); transition: transform 1.3s var(--ease); }
.js .hero h1 .line:nth-child(2) > span { transition-delay: .12s; }
.js .hero .lede, .js .hero .button { opacity: 0; translate: 0 10px; transition: opacity 1.2s var(--ease) .5s, translate 1.2s var(--ease) .5s, transform .25s var(--ease); }
.js .hero .button { transition-delay: .62s, .62s, 0s; }

.is-ready .hero-brain { opacity: 1; }
.is-ready .hero-brain img { transform: none; }
.is-ready .hero h1 .line > span { transform: none; }
.is-ready .hero .lede, .is-ready .hero .button { opacity: 1; translate: 0 0; }

/* ---------- Night shift: scrubbed by scroll ---------- */

.shift { position: relative; }
.js .shift { height: 680vh; }

.shift-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(96px, 13vh, 132px) var(--gutter) 40px;
}
.js .shift-pin {
  position: sticky;
  top: 0;
  height: 100svh;
}

.shift-head { width: 100%; text-align: center; }
.caps { display: grid; }
.cap {
  grid-area: 1 / 1;
  font-size: var(--step-4);
  font-weight: 330;
  line-height: 1.02;
  letter-spacing: -.022em;
  text-wrap: balance;
}
html:not(.js) .cap:not(:first-child) { display: none; }
.js .cap { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .9s var(--ease); }
.js .cap.is-on { opacity: 1; transform: none; transition-delay: .12s; }

.clock {
  margin-top: 18px;
  font: 500 var(--step-2)/1 var(--sans);
  font-variant-numeric: tabular-nums;
  color: var(--graphite);
}
.clock [data-meridiem] { font-size: .78em; }

.shift-stage {
  position: relative;
  width: 100%;
  height: min(450px, calc(100svh - 330px));
  margin-top: clamp(28px, 5vh, 56px);
}

/* The chat that waits */
.chat {
  position: absolute;
  top: 0;
  left: 50%;
  display: flex;
  flex-direction: column;
  width: min(460px, 100%);
  height: 100%;
  border-radius: 22px;
  background: #FBFBFA;
  box-shadow: 0 0 0 1px rgb(25 32 34 / .06), 0 30px 60px -30px rgb(25 32 34 / .45);
  font-family: var(--sans);
  translate: -50% 0;
  transform-origin: top left;
  transition: left 1.1s var(--ease), translate 1.1s var(--ease), scale 1.1s var(--ease), opacity 1s var(--ease);
}
.chat-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgb(25 32 34 / .06);
  font-size: 13px;
  color: #6B7070;
}
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #C9CDCC; }
.chat-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 18px;
  overflow: hidden;
}
.bubble { max-width: 82%; font-size: 16px; line-height: 1.4; }
.bubble--me { align-self: flex-end; padding: 9px 14px; border-radius: 18px; background: #ECEEED; }
.bubble--ai { align-self: flex-start; }
.chat-time { align-self: center; margin-top: 8px; font-size: 12px; color: #8A8F8F; }
.chat-dots { display: flex; gap: 4px; align-self: flex-start; padding: 8px 0; }
.chat-dots i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #8A8F8F;
  animation: dot 1.1s ease-in-out infinite;
}
.chat-dots i:nth-child(2) { animation-delay: .15s; }
.chat-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

.chat-input {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  margin: 0 12px 12px;
  padding: 8px 8px 8px 16px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(25 32 34 / .1);
}
.chat-field {
  flex: 1;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-size: 16px;
  white-space: pre;
}
.chat-placeholder { color: #9A9F9F; }
.caret {
  flex: none;
  width: 1.5px;
  height: 1.2em;
  margin: 0 1px;
  background: var(--ink);
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.chat-send {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--ink);
  opacity: .2;
  transition: opacity .3s var(--ease);
}
.chat-send svg { width: 14px; height: 14px; fill: none; stroke: var(--chalk); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.shift.has-text .chat-placeholder { display: none; }
.shift.has-text .chat-send { opacity: 1; }
.shift.s-sent .caret { display: none; }

.js .chat [data-step] { display: none; }
.js .shift.s-sent [data-step="sent"],
.js .shift.s-answered [data-step="answered"],
.js .shift.s-next [data-step="next"] { display: block; animation: pop .5s var(--ease); }
.js .shift.s-sent:not(.s-answered) [data-step="thinking"] { display: flex; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }

.shift.s-waiting .chat { opacity: .82; }

/* Boo's board */
.board {
  position: absolute;
  top: 0;
  right: 0;
  width: calc(100% - 460px * .88 - 40px);
  min-height: 100%;
  padding: 18px 24px 20px;
  border-radius: 22px;
  background: rgb(242 243 241 / .7);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .55), 0 30px 60px -30px rgb(25 32 34 / .35);
  font-family: var(--sans);
}
.js .board {
  opacity: 0;
  translate: 48px 0;
  pointer-events: none;
  transition: opacity 1s var(--ease) .15s, translate 1.2s var(--ease) .15s;
}
.js .shift.is-boo .board { opacity: 1; translate: 0 0; }
.js .shift.is-boo .chat { left: 0; translate: 0 0; scale: .88; opacity: .45; }

.board-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgb(25 32 34 / .08);
}
.board-head img { width: 28px; height: 28px; border-radius: 50%; }
.board-head b { font: 500 1.25rem/1 var(--serif); }
.board-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 13px;
  color: var(--graphite);
}
.stitch {
  width: 24px;
  height: 10px;
  fill: none;
  stroke: var(--thread);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 3 3;
  animation: stitch 1.2s linear infinite;
}
@keyframes stitch { to { stroke-dashoffset: -12; } }
.board-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.board-lane h3 { margin-bottom: 8px; font: 500 13px/1 var(--sans); color: var(--graphite); }
.board-lane ol { display: grid; }
.board li {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 1px;
  padding: 8px 0;
}
/* One worker, one thread: each of Boo's actions hangs from the one before it.
   JS measures --d (distance to the previous row) so the segment spans only the gap
   between the two avatars and never has to hide behind one. */
.board li.has-thread::before {
  content: "";
  position: absolute;
  left: 14px;
  top: calc(42px - var(--d));
  height: calc(var(--d) - 34px);
  width: 1.5px;
  background: color-mix(in srgb, var(--thread) 42%, #DDE2E0);
}
.actor { position: relative; z-index: 1; grid-area: 1 / 1 / 3 / 2; width: 30px; height: 30px; margin-top: 2px; }
.actor-face {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--field);
  box-shadow: 0 0 0 2px #E6E9E7;
}
.actor-face--human { background: var(--c); color: #fff; font: 600 12px/1 var(--sans); }
.actor-app {
  position: absolute;
  right: -6px;
  bottom: -5px;
  width: 18px; height: 18px;
  padding: 2.5px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 0 0 1px rgb(25 32 34 / .08), 0 1px 2px rgb(25 32 34 / .12);
  object-fit: contain;
}
.board li time { grid-area: 1 / 2; font-size: 12px; color: var(--graphite); font-variant-numeric: tabular-nums; }
.board li .what { grid-area: 2 / 2; font-size: 15px; line-height: 1.35; }
.js .board li { opacity: 0; transform: translateY(6px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .board li.is-in { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .js .shift.is-boo .chat { left: 50%; translate: -50% -16px; scale: 1; opacity: 0; }
  .board { left: 0; width: 100%; }
}

@media (max-width: 760px) {
  .js .shift { height: 600vh; }
  .shift-pin { padding-top: 84px; padding-bottom: 20px; }
  .cap { font-size: clamp(2rem, 1.4rem + 3vw, 2.5rem); }
  .clock { margin-top: 12px; }
  .shift-stage { flex: 1; height: auto; min-height: 0; margin-top: 24px; }
  .shift-pin { justify-content: flex-start; }
  .chat { height: min(380px, 100%); }
  .board { bottom: 0; min-height: 0; display: flex; flex-direction: column; padding: 14px 16px 6px; }
  .board-lanes {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0;
    min-height: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(transparent, #000 20%);
    mask-image: linear-gradient(transparent, #000 20%);
  }
  .board-lane, .board-lane ol { display: contents; }
  .board-lane h3 { display: none; }
  .board li { order: var(--t); }
  .js .board li { max-height: 0; padding-block: 0; overflow: hidden; transition: max-height .6s var(--ease), padding .6s var(--ease), opacity .6s var(--ease); }
  .js .board li.is-in { max-height: 90px; padding-block: 8px; overflow: visible; }
}

/* ---------- Ears: real channels ---------- */

.channels { margin-top: 36px; container-type: inline-size; }
.screens { position: relative; height: 360px; }
.screen { position: absolute; inset: 0; display: grid; place-items: center; }
html:not(.js) .screen:not(:first-child) { display: none; }
.js .screen {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.985);
  transition: opacity .6s var(--ease), transform .8s var(--ease), visibility 0s .8s;
}
.js .screen.is-shown {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .6s var(--ease) .1s, transform .8s var(--ease) .1s, visibility 0s;
}

.window {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 330px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 0 0 .5px rgb(0 0 0 / .2), 0 2px 6px rgb(25 32 34 / .08), 0 28px 56px -26px rgb(25 32 34 / .55);
  text-align: left;
}
.win-bar { flex: none; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; }
.lights { display: flex; gap: 6px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.lights i:nth-child(2) { background: #FEBC2E; }
.lights i:nth-child(3) { background: #28C840; }

.phone {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 232px;
  height: 338px;
  overflow: hidden;
  border-radius: 40px;
  background: #fff;
  box-shadow: 0 0 0 7px #1D1F20, 0 0 0 8px #454849, 0 32px 60px -24px rgb(25 32 34 / .6);
  text-align: left;
}
.phone::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 72px;
  height: 21px;
  margin-left: -36px;
  border-radius: 12px;
  background: #0B0C0C;
}
.ios-bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 38px;
  padding: 4px 20px 0 30px;
  font: 600 12.5px/1 -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: #000;
}
.ios-bar svg { width: 40px; height: 11px; fill: currentColor; }

/* iMessage */
.im { font-family: -apple-system, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; color: #000; }
.im-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 2px 0 8px;
  border-bottom: .5px solid rgb(0 0 0 / .12);
  background: #F9F9F9;
  font-size: 10.5px;
}
.im-head img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #BFC8C5; }
.im-head i { font-style: normal; color: #8E8E93; }
.im-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-height: 0;
  padding: 8px 14px 4px;
  font-size: 12.5px;
  line-height: 1.3;
}
.im-stamp { align-self: center; margin-bottom: 4px; font-size: 10px; color: #8E8E93; }
.im-stamp b { font-weight: 600; }
.im-b { position: relative; z-index: 0; max-width: 78%; padding: 6px 11px; border-radius: 17px; }
.im-b::before, .im-b::after { content: ""; position: absolute; z-index: -1; bottom: 0; height: 17px; }
.im-b--out { align-self: flex-end; background: #0B84FF; color: #fff; }
.im-b--out::before { right: -6px; width: 16px; background: #0B84FF; border-bottom-left-radius: 14px 12px; }
.im-b--out::after { right: -10px; width: 10px; background: #fff; border-bottom-left-radius: 10px; }
.im-b--in { align-self: flex-start; margin-top: 10px; background: #E9E9EB; }
.im-b--in::before { left: -6px; width: 16px; background: #E9E9EB; border-bottom-right-radius: 14px 12px; }
.im-b--in::after { left: -10px; width: 10px; background: #fff; border-bottom-right-radius: 10px; }
.im-tapback {
  position: absolute;
  top: -13px;
  right: -9px;
  display: grid;
  place-items: center;
  width: 23px; height: 23px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #0B84FF;
}
.im-tapback svg { width: 11px; height: 11px; fill: #fff; }
.im-status { align-self: flex-end; margin-top: 1px; font-size: 10px; color: #8E8E93; }
.im-input { flex: none; display: flex; align-items: center; gap: 8px; padding: 4px 12px 16px; }
.im-plus {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #E9E9EB;
  color: #6D6D72;
  font-size: 18px;
  line-height: 1;
}
.im-field { flex: 1; padding: 5px 12px; border: .5px solid #C7C7CC; border-radius: 16px; font-size: 13px; color: #B0B0B5; }

/* Slack */
.slack { font-family: Lato, "Helvetica Neue", Arial, sans-serif; color: #1D1C1D; }
.slack .win-bar { background: #350D36; }
.slack-search {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 56%;
  height: 22px;
  margin-inline: auto;
  padding: 0 10px;
  border-radius: 6px;
  background: rgb(255 255 255 / .18);
  color: rgb(255 255 255 / .82);
  font-size: 11px;
}
.slack-body { flex: 1; display: grid; grid-template-columns: 112px minmax(0, 1fr); min-height: 0; }
.slack-side {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 12px 8px;
  background: #3F0E40;
  color: rgb(255 255 255 / .72);
  font-size: 12.5px;
}
.slack-side b { padding: 0 8px 10px; font-size: 14px; font-weight: 900; color: #fff; }
.slack-side span { padding: 3px 8px; border-radius: 6px; }
.slack-side .on { background: #1164A3; color: #fff; }
.slack-pane { display: flex; flex-direction: column; min-width: 0; }
.slack-head { padding: 9px 14px; border-bottom: 1px solid #E8E8E8; font-size: 14px; font-weight: 900; }
.slack-msg { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 9px; padding: 8px 14px 4px; font-size: 13px; line-height: 1.42; }
.slack .av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 7px; object-fit: cover; background: var(--c, #BFC8C5); color: #fff; font-weight: 700; }
.slack .who { display: flex; align-items: baseline; gap: 6px; }
.slack .who b { font-size: 13.5px; font-weight: 900; }
.slack .who time { font-size: 11px; color: #616061; }
.slack .app { padding: 1px 3px; border-radius: 3px; background: #E8E8E8; color: #616061; font-size: 9px; font-weight: 700; }
.mention { padding: 0 2px; border-radius: 3px; background: rgb(29 155 209 / .1); color: #1264A3; }
.reacts { display: flex; gap: 5px; margin-top: 6px; }
.reacts span { padding: 1px 7px; border-radius: 12px; background: #F8F8F8; box-shadow: inset 0 0 0 1px #DDD; font-size: 11.5px; }
.reacts .on { background: #E8F5FA; box-shadow: inset 0 0 0 1px #1D9BD1; color: #1264A3; }
.slack-compose { margin: auto 12px 12px; padding: 9px 12px; border: 1px solid #BBBABB; border-radius: 8px; font-size: 12.5px; color: #868686; }

/* Microsoft Teams */
.teams { font-family: "Segoe UI", -apple-system, "Helvetica Neue", Arial, sans-serif; color: #242424; }
.teams .win-bar { background: #EBEBEB; }
.teams-logo { width: 18px; height: 18px; margin-left: 6px; }
.teams-search {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 50%;
  height: 22px;
  margin-inline: auto;
  padding: 0 10px;
  border-radius: 4px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #E0E0E0;
  color: #616161;
  font-size: 11px;
}
.teams-body { flex: 1; display: grid; grid-template-columns: 58px minmax(0, 1fr); min-height: 0; }
.teams-rail { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 6px; background: #EBEBEB; color: #616161; font-size: 9.5px; }
.teams-rail span { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 100%; padding: 5px 0; }
.teams-rail svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.teams-rail .on { color: #5B5FC7; }
.teams-rail .on svg { fill: #5B5FC7; }
.teams-rail .on::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 2px; background: #5B5FC7; }
.teams-pane { display: flex; flex-direction: column; min-width: 0; background: #F5F5F5; }
.teams-head { display: flex; align-items: center; gap: 10px; padding: 7px 14px; border-bottom: 1px solid #E0E0E0; background: #fff; font-size: 12.5px; }
.teams-head img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.teams-head b { margin-right: 6px; font-size: 13.5px; font-weight: 600; }
.teams-head span { padding: 4px 1px; color: #616161; }
.teams-head .on { color: #242424; font-weight: 600; box-shadow: inset 0 -2px 0 #5B5FC7; }
.teams-log { flex: 1; display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 10px 14px; font-size: 12.5px; line-height: 1.4; }
.t-mine { align-self: flex-end; max-width: 78%; text-align: right; }
.t-mine time { font-size: 10.5px; color: #616161; }
.t-mine p { margin-top: 2px; padding: 7px 11px; border-radius: 6px; background: #E8EBFA; text-align: left; }
.t-theirs { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; max-width: 94%; }
.t-theirs > img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.t-card { padding: 7px 11px 10px; border-radius: 6px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .1); }
.t-card .who { display: flex; align-items: baseline; gap: 8px; font-size: 10.5px; color: #616161; }
.t-card .who b { font-size: 12px; font-weight: 600; color: #242424; }
.t-file { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 8px; border-radius: 4px; box-shadow: inset 0 0 0 1px #E0E0E0; }
.t-file img { width: 22px; height: 22px; }
.t-file span { display: flex; flex-direction: column; font-size: 11.5px; }
.t-file small { font-size: 10px; color: #616161; }
.teams-compose { margin: 0 14px 12px; padding: 8px 12px; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1px #E0E0E0; font-size: 12px; color: #707070; }

/* Gmail */
.gmail { background: #F6F8FC; font-family: Roboto, Arial, sans-serif; color: #1F1F1F; }
.gmail .win-bar { gap: 8px; height: 44px; background: #F6F8FC; }
.gm-logo { width: 22px; height: 18px; margin-left: 6px; }
.gm-word { font: 400 17px/1 "Google Sans", "Product Sans", Roboto, Arial, sans-serif; color: #5F6368; }
.gm-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  height: 28px;
  margin-left: 12px;
  padding: 0 12px;
  border-radius: 14px;
  background: #E9EEF6;
  color: #444746;
  font-size: 12px;
}
.gm-search svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.gm-body { flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 0; margin: 0 10px 10px; padding: 14px 16px; border-radius: 14px; background: #fff; }
.gm-subject { display: flex; align-items: center; gap: 8px; font: 400 16px/1.2 "Google Sans", Roboto, Arial, sans-serif; }
.gm-subject span { padding: 1px 6px; border-radius: 4px; background: #DDE3EA; color: #444746; font-size: 10.5px; }
.gm-mail { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; font-size: 12.5px; line-height: 1.45; }
.gmail .av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--c, #BFC8C5); color: #fff; font-size: 13px; }
.gmail .who { display: flex; align-items: baseline; gap: 6px; }
.gmail .who b { font-size: 13px; font-weight: 500; }
.gmail .who small, .gmail .who time { font-size: 11px; color: #5E5E5E; }
.gmail .who time { margin-left: auto; }
.gm-actions { display: flex; gap: 8px; margin-top: auto; }
.gm-actions span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border: 1px solid #747775; border-radius: 16px; color: #444746; font-size: 12px; font-weight: 500; }
.gm-actions svg { width: 15px; height: 15px; fill: currentColor; }

/* The Boo app */
.booapp { background: var(--chalk); color: var(--ink); font-family: var(--sans); }
.ba-head { flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 2px 0 8px; border-bottom: 1px solid rgb(25 32 34 / .07); font: 500 15px/1 var(--serif); }
.ba-head img { width: 24px; height: 24px; border-radius: 50%; }
.ba-log { flex: 1; display: flex; flex-direction: column; gap: 8px; min-height: 0; padding: 10px 12px; }
.ba-voice { align-self: flex-end; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 18px; background: var(--ink); color: var(--chalk); }
.ba-play { position: relative; width: 20px; height: 20px; border-radius: 50%; background: var(--chalk); }
.ba-play::after { content: ""; position: absolute; left: 8px; top: 6px; border: 4px solid transparent; border-left: 6px solid var(--ink); border-right: 0; }
.ba-wave { display: flex; align-items: center; gap: 2px; height: 16px; }
.ba-wave i { width: 2px; height: calc(var(--h) * 16px); border-radius: 1px; background: currentColor; }
.ba-voice small { font-size: 10.5px; opacity: .7; font-variant-numeric: tabular-nums; }
.ba-card { padding: 12px 12px 10px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgb(25 32 34 / .06), 0 10px 22px -14px rgb(25 32 34 / .35); }
.ba-title { font-size: 11px; color: var(--graphite); }
.ba-big { margin-top: 2px; font: 400 22px/1.1 var(--serif); }
.ba-big small { margin-left: 4px; font: 500 10.5px/1 var(--sans); color: #2F7D4F; }
.ba-bars { display: flex; align-items: flex-end; gap: 3px; height: 44px; margin: 8px 0 10px; }
.ba-bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 2px 2px 0 0; background: #C9D0CE; }
.ba-bars i:nth-last-child(-n+3) { background: var(--thread); }
.ba-actions { display: flex; gap: 6px; }
.ba-actions span { padding: 6px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgb(25 32 34 / .18); font-size: 11px; font-weight: 500; }
.ba-actions .go { flex: 1; background: var(--ink); color: var(--chalk); box-shadow: none; text-align: center; }
.ba-input { flex: none; display: flex; align-items: center; justify-content: space-between; margin: 0 12px 18px; padding: 8px 12px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px rgb(25 32 34 / .1); font-size: 12px; color: #8A8F8F; }
.ba-input svg { width: 16px; height: 16px; fill: none; stroke: var(--graphite); stroke-width: 1.4; stroke-linecap: round; }

/* The dock */
.dock-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 22px; }
.dock {
  display: flex;
  gap: 10px;
  padding: 8px 8px 10px;
  border-radius: 20px;
  background: rgb(242 243 241 / .5);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .55), 0 12px 30px -14px rgb(25 32 34 / .35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.tile {
  position: relative;
  width: 46px; height: 46px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(25 32 34 / .14);
  cursor: pointer;
  transition: transform .35s var(--ease);
}
.tile--full { padding: 0; background: none; }
.tile img { width: 100%; height: 100%; object-fit: contain; }
.tile--full img { border-radius: inherit; object-fit: cover; }
.tile:hover { transform: translateY(-4px) scale(1.08); }
.tile:active { transform: scale(.96); }
.tile::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.tile[aria-selected="true"]::after { opacity: .7; }
.dock-name { min-height: 1em; font: 500 var(--step--1)/1 var(--sans); color: var(--graphite); }

@container (max-width: 420px) {
  .slack-body, .teams-body { grid-template-columns: minmax(0, 1fr); }
  .slack-side, .teams-rail, .gm-search { display: none; }
  .teams-log { gap: 8px; padding-top: 8px; }
  .t-mine time, .t-file small { display: none; }
}

/* ---------- Anatomy ---------- */

.anatomy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  column-gap: clamp(24px, 4vw, 72px);
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.stage-wrap {
  position: sticky;
  top: 0;
  height: 100svh;
  display: grid;
  place-items: center;
}
.stage {
  position: relative;
  width: min(100%, 84svh);
  aspect-ratio: 1;
}

.organ {
  position: absolute;
  width: calc(var(--w) * 1%);
  left: calc((var(--x) - var(--w) / 2) * 1%);
  top: calc((var(--y) - var(--w) / 2) * 1%);
  -webkit-mask-image: radial-gradient(closest-side, #000 58%, transparent 96%);
  mask-image: radial-gradient(closest-side, #000 58%, transparent 96%);
}

.stage-threads {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.stage-threads path {
  fill: none;
  stroke: var(--thread);
  stroke-width: var(--sw, .2);
  stroke-linecap: round;
}
.stage-threads circle { fill: var(--thread); }

.js .organ[data-organ]:not([data-organ="0"]) {
  opacity: 0;
  transform: scale(.92) translateY(10px);
  transition: opacity 1.3s var(--ease), transform 1.8s var(--ease);
}
.js .organ.is-on { opacity: 1 !important; transform: none !important; }

.js .stage-threads path { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; transition: stroke-dashoffset 1.6s var(--ease-io) .35s, opacity .2s .35s; }
.js .stage-threads circle { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .6s var(--ease) 1.7s; }
.js .stage-threads g.is-on path { stroke-dashoffset: 0; opacity: 1; }
.js .stage-threads g.is-on circle { transform: none; }

.chapters { padding-bottom: 12vh; }

.chapter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  max-width: 30rem;
  padding-block: 12vh;
}

.chapter--intro { max-width: 36rem; }
.chapter--intro h2 span { display: block; }
.chapter--intro h2 {
  font-size: clamp(2rem, 1.3rem + 1.9vw, 2.875rem);
  font-weight: 340;
  line-height: 1.08;
  letter-spacing: -.02em;
}

.chapter h3 {
  margin-bottom: 18px;
  font-size: var(--step-4);
  font-style: italic;
  font-weight: 320;
  line-height: 1;
  letter-spacing: -.02em;
}
.chapter > p { text-wrap: pretty; }

.js .chapter { transition: opacity .9s var(--ease); }
.js .chapter:not(.is-active) { opacity: .28; }

.glimpse {
  display: grid;
  margin-top: 40px;
  padding-left: 18px;
  border-left: 1px solid rgb(25 32 34 / .16);
  font-family: var(--sans);
}
.glimpse li {
  grid-area: 1 / 1;
  display: grid;
  gap: 4px;
}
.glimpse b {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--graphite);
}
.glimpse b img { width: 15px; height: 15px; object-fit: contain; }
.glimpse b img.face { width: 18px; height: 18px; border-radius: 50%; }
.glimpse span {
  font-size: 1.0625rem;
  line-height: 1.45;
}
.js .glimpse li { opacity: 0; transform: translateY(6px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .glimpse li.is-shown { opacity: 1; transform: none; }

/* Autonomy: a thread with four knots */
.autonomy { margin-top: 40px; }
.autonomy-track {
  --pos: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 22px;
}
.autonomy-track::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 12.5%;
  right: 12.5%;
  height: 1.4px;
  background: var(--thread);
  opacity: .5;
}
.autonomy-track button {
  position: relative;
  min-height: 44px;
  padding: 10px 0 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: 500 var(--step-0)/1 var(--sans);
  color: var(--graphite);
  transition: color .4s var(--ease);
}
.autonomy-track button::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  width: 9px; height: 9px;
  margin-left: -4.5px;
  border-radius: 50%;
  background: var(--field);
  box-shadow: inset 0 0 0 1.4px var(--thread);
}
.autonomy-track button[aria-checked="true"] { color: var(--ink); }
.autonomy-track button:hover { color: var(--ink); }
.autonomy-walker {
  position: absolute;
  z-index: 1;
  top: 0;
  left: calc(12.5% + var(--pos) * 25%);
  width: 15px; height: 15px;
  margin-left: -7.5px;
  border-radius: 50%;
  background: var(--thread);
  pointer-events: none;
  transition: left .9s var(--ease);
}
.autonomy-desc {
  min-height: 4.6em;
  margin-top: 24px;
  font-size: var(--step-1);
  text-wrap: pretty;
}
.autonomy-note {
  margin-top: 12px;
  font: 400 var(--step--1)/1.4 var(--sans);
  color: var(--graphite);
}

/* ---------- Home, after dark ---------- */

.home {
  background: linear-gradient(to bottom,
    color-mix(in oklab, var(--night) 0%, var(--field)) 0vh,
    color-mix(in oklab, var(--night) 4%, var(--field)) 6vh,
    color-mix(in oklab, var(--night) 14%, var(--field)) 12vh,
    color-mix(in oklab, var(--night) 30%, var(--field)) 18vh,
    color-mix(in oklab, var(--night) 50%, var(--field)) 24vh,
    color-mix(in oklab, var(--night) 70%, var(--field)) 30vh,
    color-mix(in oklab, var(--night) 86%, var(--field)) 36vh,
    color-mix(in oklab, var(--night) 96%, var(--field)) 42vh,
    color-mix(in oklab, var(--night) 100%, var(--field)) 46vh,
    color-mix(in oklab, var(--night) 100%, var(--field)) calc(100% - 46vh),
    color-mix(in oklab, var(--night) 96%, var(--field)) calc(100% - 42vh),
    color-mix(in oklab, var(--night) 86%, var(--field)) calc(100% - 36vh),
    color-mix(in oklab, var(--night) 70%, var(--field)) calc(100% - 30vh),
    color-mix(in oklab, var(--night) 50%, var(--field)) calc(100% - 24vh),
    color-mix(in oklab, var(--night) 30%, var(--field)) calc(100% - 18vh),
    color-mix(in oklab, var(--night) 14%, var(--field)) calc(100% - 12vh),
    color-mix(in oklab, var(--night) 4%, var(--field)) calc(100% - 6vh),
    color-mix(in oklab, var(--night) 0%, var(--field)) calc(100% - 0vh));
  color: var(--night-ink);
}
.home-night {
  max-width: var(--max);
  margin-inline: auto;
  padding: 34vh var(--gutter) 40vh;
  text-align: center;
}

.home-house {
  position: relative;
  width: min(1040px, 100%);
  margin-inline: auto;
}
.home-house img {
  width: 100%;
  -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 62%, transparent 100%);
}
.lamp {
  position: absolute;
  left: 44%;
  top: 60%;
  width: 34%;
  aspect-ratio: 1.6;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(237 180 110 / .35), rgb(237 180 110 / 0));
  mix-blend-mode: screen;
  animation: glow 6.5s ease-in-out infinite alternate;
}
@keyframes glow {
  from { opacity: .35; }
  to { opacity: .9; }
}

.home-copy { margin-top: clamp(24px, 4vh, 48px); }
.home h2 {
  font-size: var(--step-4);
  font-weight: 320;
  line-height: 1.02;
  letter-spacing: -.022em;
}
.home .lede {
  margin: 20px auto 0;
  color: var(--night-dim);
  max-width: 28em;
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px clamp(24px, 3vw, 48px);
  margin-top: clamp(80px, 14vh, 140px);
  text-align: left;
}
.facts div { padding-top: 18px; border-top: 1px solid rgb(233 230 223 / .14); }
.facts dt {
  margin-bottom: 8px;
  font: 500 var(--step-0)/1.3 var(--sans);
  color: var(--lamp);
}
.facts dd {
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--night-dim);
}

.home-quote {
  margin-top: clamp(96px, 16vh, 160px);
  font-size: var(--step-3);
  font-style: italic;
  font-weight: 320;
  line-height: 1.1;
  letter-spacing: -.015em;
}

/* ---------- Teach ---------- */

.teach {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: center;
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(80px, 12vh, 140px) var(--gutter) clamp(120px, 18vh, 200px);
}
.teach-figure { grid-column: 1 / span 7; margin-left: calc(var(--gutter) * -1); }
.teach-figure img {
  width: 100%;
  -webkit-mask-image: radial-gradient(closest-side, #000 66%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 66%, transparent 100%);
}
.teach-copy { grid-column: 8 / -1; }
.teach h2 {
  margin-bottom: 20px;
  font-size: var(--step-3);
  font-weight: 330;
  line-height: 1.05;
  letter-spacing: -.02em;
}
.teach-copy p { max-width: 28em; text-wrap: pretty; }

.handover {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) repeat(3, minmax(0, 1fr));
  margin-top: clamp(56px, 9vh, 96px);
  font-family: var(--sans);
}
.ho-row { display: contents; }
.ho-corner, .ho-when { padding-bottom: 14px; border-bottom: 1px solid rgb(25 32 34 / .16); }
.ho-when { padding-right: 24px; font: 500 var(--step-0)/1.3 var(--sans); }
.ho-label, .ho-cell { padding: 22px 24px 22px 0; border-bottom: 1px solid rgb(25 32 34 / .08); }
.ho-label { font: 500 var(--step--1)/1.35 var(--sans); color: var(--graphite); }
.ho-cell { font: 400 var(--step-0)/1.45 var(--sans); }
.ho-cell--story { font: 400 var(--step-1)/1.35 var(--serif); text-wrap: pretty; }
.ho-row--eng .ho-cell { padding-right: 0; }

/* The engineer's presence: one thread that thins out across the columns */
.taper { display: block; width: 100%; height: 10px; margin-bottom: 12px; fill: var(--thread); }
.dots { display: flex; flex-wrap: wrap; gap: 5px; max-width: 80px; margin-bottom: 12px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; box-shadow: inset 0 0 0 1.2px rgb(25 32 34 / .3); }
.dots i.on { background: var(--ink); box-shadow: none; }

.ho-cell:nth-child(2) { --d: 0s; }
.ho-cell:nth-child(3) { --d: .9s; }
.ho-cell:nth-child(4) { --d: 1.8s; }
.js .taper { clip-path: inset(0 100% 0 0); transition: clip-path .9s linear var(--d); }
.js .handover.is-in .taper { clip-path: inset(0 0 0 0); }
.js .dots i.on { background: transparent; box-shadow: inset 0 0 0 1.2px rgb(25 32 34 / .3); transition: background .35s var(--ease) calc(var(--d) + var(--i) * 70ms), box-shadow .35s var(--ease) calc(var(--d) + var(--i) * 70ms); }
.js .handover.is-in .dots i.on { background: var(--ink); box-shadow: none; }

/* ---------- Suite ---------- */

.suite {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(80px, 12vh, 140px) var(--gutter);
}
.suite h2 {
  max-width: 13em;
  font-size: var(--step-4);
  font-weight: 320;
  line-height: 1.02;
  letter-spacing: -.022em;
}
.suite .lede { margin-top: 20px; }

.suite-sub {
  margin-top: clamp(56px, 9vh, 104px);
  font: 500 var(--step-0)/1.3 var(--sans);
  color: var(--graphite);
}
.apps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px clamp(24px, 3vw, 48px);
  margin-top: 24px;
}
.apps h4, .bundles h4 {
  margin-bottom: 10px;
  font-size: var(--step-2);
  font-style: italic;
  font-weight: 360;
  line-height: 1.1;
}
.apps p {
  font: 400 var(--step-0)/1.5 var(--sans);
  color: var(--graphite);
  max-width: 22em;
}

.bundles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px clamp(24px, 3vw, 48px);
  margin-top: 24px;
}
.bundles li { padding-top: 20px; border-top: 1px solid rgb(25 32 34 / .12); }
.b-icons { display: flex; margin-bottom: 16px; }
.b-icons img {
  width: 32px; height: 32px;
  padding: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px var(--field), 0 1px 3px rgb(25 32 34 / .14);
  object-fit: contain;
}
.b-icons img + img { margin-left: -6px; }
.b-who { margin: 6px 0 8px; font: 500 var(--step--1)/1.4 var(--sans); color: var(--graphite); }
.bundles p:last-child { font: 400 var(--step-0)/1.5 var(--sans); max-width: 24em; }

/* ---------- Connect: Boo reacts to what you hand it ---------- */

.connect {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(48px, 8vh, 96px) var(--gutter) clamp(100px, 14vh, 160px);
}
.connect h2 {
  font-size: var(--step-4);
  font-weight: 320;
  line-height: 1.02;
  letter-spacing: -.022em;
}
.connect .lede { margin-top: 20px; }
.connect-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  margin-top: clamp(40px, 7vh, 72px);
}
.tools ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 1.1em;
  max-width: 60rem;
}
.tools button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .38em;
  min-height: 44px;
  padding: 0 0 0 .1em;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: var(--step-2);
  font-weight: 340;
  letter-spacing: -.01em;
  color: rgb(25 32 34 / .5);
  transition: color .5s var(--ease);
}
.tools button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 1.4px;
  background: var(--thread);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease);
}
.tools button img {
  width: .78em;
  height: .78em;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .5;
  transition: filter .5s var(--ease), opacity .5s var(--ease);
}
.tools button:hover { color: var(--ink); }
.tools button:hover img, .tools button[aria-pressed="true"] img { filter: none; opacity: 1; }
.tools button[aria-pressed="true"] { color: var(--ink); }
.tools button[aria-pressed="true"]::after { transform: none; }
.boo-chat {
  display: flex;
  flex-direction: column;
  height: 480px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--chalk);
  box-shadow: 0 0 0 1px rgb(25 32 34 / .05), 0 30px 60px -30px rgb(25 32 34 / .4);
  font-family: var(--sans);
}
.bc-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid rgb(25 32 34 / .07); }
.bc-head img { width: 30px; height: 30px; border-radius: 50%; }
.bc-head b { font: 500 1.125rem/1 var(--serif); }
.bc-count { margin-left: auto; font-size: 13px; color: var(--graphite); font-variant-numeric: tabular-nums; }
.bc-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  min-height: 0;
  padding: 18px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 72px);
  mask-image: linear-gradient(transparent, #000 72px);
}
.bc-msg { flex: none; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: end; animation: pop .5s var(--ease); }
.bc-av { width: 30px; height: 30px; border-radius: 50%; }
.bc-bubble {
  justify-self: start;
  padding: 10px 14px 11px;
  border-radius: 18px 18px 18px 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(25 32 34 / .06);
  font-size: 15px;
  line-height: 1.45;
  text-wrap: pretty;
}
.bc-offers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bc-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 13px 0 6px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--chalk);
  font: 500 13px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .3s var(--ease), transform .2s var(--ease);
}
.bc-chip img { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: #fff; object-fit: contain; }
.bc-chip:hover { background: #2A3336; }
.bc-chip:active { transform: scale(.97); }
.bc-chip:disabled { background: transparent; color: var(--graphite); box-shadow: inset 0 0 0 1px rgb(25 32 34 / .15); cursor: default; }
.bc-chip--invite { padding-left: 14px; background: var(--thread); }
.bc-chip--invite:hover { background: #8A1328; }
.bc-event { flex: none; align-self: center; font-size: 12px; line-height: 1.3; color: var(--graphite); animation: pop .4s var(--ease); }
.bc-typing { display: flex; gap: 4px; padding: 14px 16px; }
.bc-typing i { width: 6px; height: 6px; border-radius: 50%; background: #8A8F8F; animation: dot 1.1s ease-in-out infinite; }
.bc-typing i:nth-child(2) { animation-delay: .15s; }
.bc-typing i:nth-child(3) { animation-delay: .3s; }

/* ---------- Invite ---------- */

.invite {
  max-width: var(--max);
  margin-inline: auto;
  padding: clamp(40px, 6vh, 80px) var(--gutter) clamp(120px, 18vh, 200px);
  text-align: center;
}
.invite-figure { width: min(900px, 100%); margin: 0 auto -2vw; }
.invite-figure img {
  width: 100%;
  -webkit-mask-image: radial-gradient(closest-side, #000 64%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 64%, transparent 100%);
}
.invite h2 {
  position: relative;
  margin-bottom: 36px;
  font-size: var(--step-4);
  font-weight: 320;
  line-height: 1.02;
  letter-spacing: -.022em;
}
.invite-note {
  margin-top: 18px;
  font: 400 var(--step--1)/1.5 var(--sans);
  color: var(--graphite);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: var(--max);
  margin-inline: auto;
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid rgb(25 32 34 / .1);
  font: 400 var(--step--1)/1.4 var(--sans);
  color: var(--graphite);
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* ---------- Reveal ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Smaller screens ---------- */

@media (max-width: 1024px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bundles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connect-grid { grid-template-columns: minmax(0, 1fr); }
  .boo-chat { height: 420px; }
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    align-content: end;
    padding-top: 72px;
  }
  .hero-brain {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    width: 118%;
    margin: 0 -9%;
  }
  .hero-copy { grid-column: 1; grid-row: 2; margin-top: -8vw; }


  .anatomy-grid { display: block; }
  .stage-wrap {
    z-index: 2;
    height: 52svh;
    place-items: start center;
    padding-top: 64px;
    background: linear-gradient(var(--field) 90%, rgb(191 200 197 / 0));
  }
  .stage { --sw: .34; width: min(92%, calc(52svh - 104px)); }
  .chapter { min-height: 64svh; padding-block: 6vh; }
  .chapter--intro { min-height: 48svh; }
  .chapter:last-child { min-height: 80svh; }

  .facts { grid-template-columns: minmax(0, 1fr); }
  .home-night { padding-top: 26vh; }

  .teach-figure, .teach-copy { grid-column: 1 / -1; }
  .teach-figure { margin-inline: calc(var(--gutter) * -1); }
  .handover { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ho-corner { display: none; }
  .ho-label { grid-column: 1 / -1; padding: 18px 0 4px; border-bottom: 0; }
  .ho-cell { padding: 6px 14px 18px 0; font-size: .9375rem; }
  .ho-cell--story { font-size: 1rem; }
  .ho-row--eng .ho-cell { padding-right: 0; }

  .apps, .bundles { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .boo-chat { height: 380px; }
  .connect-grid { gap: 20px; }
  .tools ul { gap: 0 .9em; }
  .tools button { min-height: 36px; font-size: 1.0625rem; }
  .invite-figure { width: 120%; margin-inline: -10%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}
