*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--canvas);
  color-scheme: dark;
  scroll-behavior: auto;
}
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: var(--track-normal);
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
a:not(.button):not(.brand):hover {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}
button:active,
.button:active {
  transform: scale(0.97);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
img {
  display: block;
  max-width: 100%;
}
p,
h1,
h2,
h3,
ul {
  margin: 0;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
[hidden] {
  display: none !important;
}
[inert] {
  pointer-events: none;
  user-select: none;
}
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--canvas);
}
::-webkit-scrollbar-thumb {
  background: #3d474e;
  border: 3px solid var(--canvas);
  border-radius: 10px;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-ink);
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: translateY(0);
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.story {
  position: relative;
}
.scroll-spacer {
  height: 820svh;
  pointer-events: none;
}
.stage {
  position: fixed;
  inset: 0;
  height: 100svh;
  min-height: 500px;
  overflow: hidden;
  isolation: isolate;
  background: var(--canvas);
}
.far-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.light-field {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(
      ellipse at 48% 36%,
      rgba(246, 230, 206, 0.12),
      transparent 43%
    ),
    radial-gradient(
      ellipse at 82% 62%,
      rgba(204, 255, 0, 0.025),
      transparent 30%
    );
  transform: none;
}
.shared-surface {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -23%;
  height: 73%;
  background: radial-gradient(
    ellipse at 50% 36%,
    rgba(140, 118, 96, 0.22),
    rgba(40, 50, 56, 0.12) 40%,
    transparent 69%
  );
  transform: perspective(900px) rotateX(57deg) scale(1.12);
  transform-origin: 50% 60%;
}
.grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  pointer-events: none;
}
.site-header {
  position: absolute;
  z-index: 50;
  top: max(18px, env(safe-area-inset-top));
  left: var(--gutter);
  right: var(--gutter);
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.site-header > * {
  pointer-events: auto;
}
.brand {
  display: flex;
  align-items: center;
  width: 164px;
  border-radius: 8px;
}
.brand img {
  width: 164px;
  height: auto;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 23px;
  border: 1px solid rgba(204, 255, 0, 0.75);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 670;
  font-size: 15px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    transform var(--duration-hover) var(--ease-out),
    background-color var(--duration-hover) var(--ease-out);
  white-space: nowrap;
}
.button:hover {
  background: #d7ff45;
  text-decoration: none;
  transform: translateY(-2px);
}
.button--small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 13px;
}
.waypoint-map {
  position: absolute;
  z-index: 45;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px 6px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--glass-thin);
  backdrop-filter: blur(12px);
}
.waypoint-map button {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.waypoint-map button::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #829099;
  transition:
    transform var(--duration-hover),
    background-color var(--duration-hover);
}
.waypoint-map button[aria-current="step"]::after {
  background: var(--accent);
  transform: scale(1.55);
}
.waypoint-map button span {
  position: absolute;
  left: 35px;
  top: 50%;
  transform: translate(-6px, -50%);
  opacity: 0;
  pointer-events: none;
  padding: 5px 9px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--glass-thick);
  color: var(--ink);
  font-size: 11px;
  white-space: nowrap;
}
.waypoint-map button:hover span,
.waypoint-map button:focus-visible span {
  opacity: 1;
  transform: translate(0, -50%);
}
.camera {
  position: absolute;
  inset: 0;
  z-index: 5;
  perspective: 1600px;
}
.workspace {
  --device-material: 0;
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(213, 231, 239, var(--device-material));
  border-radius: calc(var(--device-material) * 28px);
  background: rgba(28, 23, 19, calc(var(--device-material) * 0.96));
  box-shadow: 0 calc(var(--device-material) * 36px)
    calc(var(--device-material) * 100px) calc(var(--device-material) * -35px)
    rgba(3, 7, 10, 0.8);
  transform-origin: 0 0;
  will-change: transform, opacity;
}
.device-chrome {
  position: absolute;
  z-index: 4;
  top: 0;
  left: 0;
  right: 0;
  height: 8%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 3%;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-size: 11px;
  opacity: var(--device-material);
}
.device-chrome strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 630;
}
.device-chrome > span:last-child {
  margin-left: auto;
}
.mini-bento {
  position: relative;
  width: 20px;
  height: 18px;
  border-radius: 8px;
  background: var(--accent);
  transform: rotate(-5deg);
}
.mini-bento i {
  position: absolute;
  top: 6px;
  width: 2px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent-ink);
}
.mini-bento i:first-child {
  left: 6px;
}
.mini-bento i:last-child {
  right: 6px;
}
.scene-dialogue {
  position: absolute;
  z-index: 3;
  left: 5vw;
  top: 35vh;
  width: 29vw;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  will-change: transform, opacity;
}
.message > div {
  min-width: 0;
}
.person-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #dce7ce;
  color: #28321f;
  font-size: 10px;
  font-weight: 700;
}
.person-avatar--second {
  background: #d9e4eb;
  color: #26343c;
}
.message-author {
  display: block;
  margin: 1px 0 4px;
  color: var(--ink-soft);
  font-size: 10px;
}
.message p {
  max-width: 34ch;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.42;
  letter-spacing: -0.012em;
}
.message[data-message="maya"] p {
  font-size: 17px;
  line-height: 1.35;
}
.message--bot {
  padding-top: 11px;
  border-top: 1px solid var(--hairline);
}
.message-bot-avatar {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.message--bot p {
  color: var(--ink-soft);
  font-size: 12px;
}
.choice-controls {
  display: flex;
  gap: 7px;
  margin-top: 9px;
}
.choice-controls button {
  min-width: 96px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: rgba(38, 32, 26, 0.76);
  color: var(--ink);
  font-size: 11px;
  cursor: pointer;
}
.choice-controls button[aria-pressed="true"] {
  border-color: var(--accent);
  background: rgba(204, 255, 0, 0.09);
  color: var(--accent);
}
.choice-stamp {
  display: flex;
  align-items: center;
  gap: 9px;
  will-change: opacity, transform;
}
.choice-stamp p {
  color: var(--ink-soft);
  font-size: 11px;
}
.choice-stamp strong {
  color: var(--accent);
  font-weight: 580;
}
.message--revision {
  padding-top: 11px;
  border-top: 1px solid var(--hairline);
}
.shared-result {
  position: absolute;
  z-index: 5;
  left: 68vw;
  top: 30vh;
  width: 26vw;
  height: 350px;
  border: 1px solid var(--edge);
  border-radius: var(--s5);
  background: var(--glass-regular);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    var(--e2);
  backdrop-filter: blur(var(--blur-surface)) saturate(var(--glass-saturation));
  will-change: transform, opacity;
}
.result-view,
.access-view {
  position: absolute;
  inset: 18px;
}
.result-heading {
  display: flex;
  align-items: center;
  gap: 8px;
}
.result-heading img {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
}
.result-heading > div {
  margin-right: auto;
}
.result-heading strong,
.result-heading span {
  display: block;
}
.result-heading strong {
  font-size: 11px;
}
.result-heading > div span {
  color: var(--ink-soft);
  font-size: 9px;
}
.draft-state {
  padding: 4px 7px;
  border: 1px solid rgba(204, 255, 0, 0.3);
  border-radius: 999px;
  color: var(--accent);
  font-size: 8px;
  white-space: nowrap;
}
.result-view h2 {
  margin-top: 10px;
  font-size: 24px;
  line-height: 1.08;
  font-weight: 560;
  letter-spacing: -0.04em;
}
.result-decision {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 11px;
}
.result-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 12px;
  padding: 11px 0 0;
  border-top: 1px solid var(--hairline);
  list-style: none;
}
.result-facts li {
  color: var(--ink);
  font-size: 10px;
}
.result-facts li::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 0 6px 2px 0;
  border-radius: 50%;
  background: var(--accent);
}
.result-note {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 9px;
}
.text-button {
  min-height: 30px;
  margin-top: 5px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--edge);
  background: transparent;
  color: var(--ink-soft);
  font-size: 9px;
  cursor: pointer;
}
.access-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.access-heading > div > span {
  color: var(--ink-soft);
  font-size: 9px;
}
.access-heading h2 {
  margin-top: 3px;
  font-size: 21px;
  font-weight: 570;
  letter-spacing: -0.03em;
}
.local-label {
  color: var(--accent);
  font-size: 8px;
}
.bot-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 12px;
}
.bot-tabs button {
  min-height: 34px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 10px;
  cursor: pointer;
}
.bot-tabs button[aria-selected="true"] {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(204, 255, 0, 0.06);
}
.role-copy {
  margin-top: 9px;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.4;
}
.permission-list {
  margin-top: 8px;
  border-top: 1px solid var(--hairline);
}
.permission-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  font-size: 10px;
}
[role="switch"] {
  position: relative;
  flex: 0 0 38px;
  width: 38px;
  height: 24px;
  padding: 0;
  border: 1px solid #7a6f63;
  border-radius: 999px;
  background: #352d25;
  cursor: pointer;
}
[role="switch"] i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #b4c0c6;
  transition:
    transform var(--duration-ui) var(--ease-out),
    background-color var(--duration-ui);
}
[role="switch"][aria-checked="true"] {
  border-color: var(--accent);
  background: var(--accent);
}
[role="switch"][aria-checked="true"] i {
  background: var(--accent-ink);
  transform: translateX(14px);
}
.access-note {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 8px;
}
.routine-note {
  position: absolute;
  z-index: 5;
  left: 5vw;
  bottom: 4vh;
  width: 29vw;
  opacity: 0;
  visibility: hidden;
}
.routine-note > button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink-soft);
  font-size: 10px;
  cursor: pointer;
}
.routine-note img {
  width: 30px;
  height: 30px;
}
.routine-note strong {
  margin-left: auto;
  color: var(--accent);
  font-size: 9px;
  font-weight: 540;
}
#routine-reply {
  padding: 9px 0;
  color: var(--ink);
  font-size: 10px;
}
.is-device .scene-dialogue {
  left: 4%;
  top: 18%;
  width: 45%;
  height: 75%;
  gap: 10px;
}
.is-device .shared-result {
  left: 54%;
  top: 18%;
  width: 40%;
  height: 72%;
}
.is-device .routine-note {
  display: none;
}
.is-device .message[data-message="maya"] p {
  font-size: 15px;
}
.is-device .message p {
  font-size: 12px;
}
.is-device .result-view,
.is-device .access-view {
  inset: 22px;
}
.is-device .result-view h2 {
  font-size: 28px;
}
.device-phone {
  position: absolute;
  z-index: 9;
  left: 0;
  top: 0;
  width: 230px;
  height: 470px;
  opacity: 0;
  visibility: hidden;
  transform-origin: 0 0;
  will-change: transform, opacity;
}
/* The phone wears the brand's acid frame (docs/brand/device-mockup): a thin
   band of full-strength acid around an ink border, keys in the same acid
   and a neutral lift beneath. No glow. */
.phone-hardware {
  --acid-lit: #dcff4d;
  --acid-deep: #b8e600;
  position: relative;
  width: 100%;
  height: 100%;
  padding: 7px;
  border-radius: 37px;
  background: linear-gradient(
    145deg,
    var(--acid-lit) 0%,
    var(--accent) 34%,
    var(--accent) 72%,
    var(--acid-deep) 100%
  );
  box-shadow:
    inset 0 0 0 0.5px var(--acid-lit),
    0 24px 48px -20px rgb(0 0 0 / 55%),
    0 8px 16px -8px rgb(0 0 0 / 40%);
}
/* Action button and both volume keys on the left; the side key on the right. */
.phone-hardware::before,
.phone-hardware::after {
  content: "";
  position: absolute;
  width: 2px;
  border-radius: 1px;
}
.phone-hardware::before {
  left: -1.5px;
  top: 88px;
  height: 118px;
  background: linear-gradient(
    180deg,
    var(--accent) 0 20px,
    transparent 20px 41px,
    var(--accent) 41px 75px,
    transparent 75px 84px,
    var(--accent) 84px 118px
  );
}
.phone-hardware::after {
  right: -1.5px;
  top: 139px;
  height: 54px;
  background: var(--accent);
}
.phone-island {
  position: absolute;
  z-index: 3;
  top: 15px;
  left: 50%;
  width: 72px;
  height: 21px;
  border-radius: 999px;
  background: #0d1012;
  transform: translateX(-50%);
}
.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  padding: 44px 13px 18px;
  border-radius: 30px;
  background: radial-gradient(ellipse at 70% 0%, #2a241d, #17130f 45%, #100d0b);
  /* The ink border between the glass and the acid band, and its chamfer. */
  box-shadow:
    0 0 0 4px #0b0b0d,
    0 0 0 4.5px var(--acid-deep);
}
.phone-screen > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline);
}
.phone-screen > header span {
  color: var(--ink-soft);
  font-size: 9px;
}
.phone-screen > header strong {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 590;
}
.phone-message {
  margin-top: 12px;
  padding: 11px 12px;
  border-left: 1px solid var(--edge);
  background: rgba(246, 230, 206, 0.055);
}
.phone-message strong {
  font-size: 10px;
}
.phone-message p {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.4;
}
.phone-message--choice {
  border-left-color: var(--accent);
  background: rgba(204, 255, 0, 0.06);
}
.phone-message--bot {
  padding: 13px 12px;
  background: rgba(52, 44, 36, 0.82);
}
.phone-message--bot > div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.phone-message--bot img {
  width: 30px;
  height: 30px;
}
.phone-message--bot > div span {
  margin-left: auto;
  color: var(--accent);
  font-size: 9px;
}
.phone-message--bot h3 {
  margin-top: 10px;
  font-size: 17px;
  font-weight: 580;
}
.phone-message--bot small {
  display: block;
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.4;
}
.phone-footer {
  position: absolute;
  left: 19px;
  right: 19px;
  bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  color: var(--ink-soft);
  font-size: 9px;
}
.phone-footer i {
  width: 58px;
  height: 4px;
  border-radius: 999px;
  background: rgba(246, 230, 206, 0.5);
}
.actor {
  --cx: 50vw;
  --cy: 90vh;
  --cs: 1;
  position: absolute;
  z-index: 8;
  left: var(--cx);
  top: var(--cy);
  width: 240px;
  height: 240px;
  pointer-events: none;
  /* Placement, then lean into travel and the squash of a settle, all about
     the feet; the idle float rides on top. */
  transform: translate(-50%, -88%) scale(var(--cs)) rotate(var(--lean, 0deg))
    scale(calc(1 + var(--sq, 0)), calc(1 - var(--sq, 0)))
    translateY(var(--float, 0px)) rotate(var(--sway, 0deg));
  transform-origin: 50% 88%;
  will-change: transform, opacity;
}
.actor--pill {
  width: 185px;
  height: 185px;
}
.actor--drop {
  width: 205px;
  height: 205px;
}
.actor img {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  opacity: 0;
}
.actor img.is-active {
  opacity: 1;
}
.contact-shadow {
  position: absolute;
  z-index: 0;
  left: 16%;
  right: 16%;
  bottom: 5%;
  height: 13%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(8, 5, 3, 0.72),
    rgba(8, 5, 3, 0.2) 48%,
    transparent 72%
  );
  filter: blur(5px);
  transform: scaleX(1.12);
}
.context-connector {
  position: absolute;
  z-index: 6;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--accent);
  pointer-events: none;
  opacity: 0;
}
.narratives {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}
.narrative {
  position: absolute;
  top: 10%;
  left: 5vw;
  width: 90vw;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  will-change: transform, opacity;
}
.narrative.is-interactive {
  pointer-events: auto;
}
.narrative h1,
.narrative h2 {
  font-family: var(--font-display);
  font-weight: 560;
  letter-spacing: var(--track-tight);
}
.narrative h1 {
  max-width: 790px;
  font-size: clamp(3rem, 5.2vw, 4.5rem);
  line-height: 0.99;
}
.narrative h2 {
  font-size: clamp(2.3rem, 3.8vw, 3.4rem);
  line-height: 1.02;
}
.narrative--hero {
  opacity: 1;
  visibility: visible;
}
.narrative--device {
  top: 9%;
}
.narrative--device h2 {
  font-size: clamp(2.1rem, 3.4vw, 3rem);
}
/* The workflow chapter is set over the room on the evening without
   BotBento, which scrolling then tidies. The copy keeps the reading column
   on the dark side of the frame and leaves the desk clear: the old way sits
   dim above, the BotBento way larger in lime. Narrow screens centre it. */
.narrative--compare {
  width: min(30rem, 34vw);
}
[dir="rtl"] .narrative--compare {
  right: 5vw;
  left: auto;
}
@media (max-width: 900px) {
  .narrative--compare,
  [dir="rtl"] .narrative--compare {
    right: auto;
    left: 50%;
    width: min(680px, 86vw);
    text-align: center;
    transform: translateX(-50%);
  }
}
/* Centred over the desk, the copy would run across the lit laptop screen, so
   the top of the scene dims behind it and the photo begins below the note. */
@media (max-width: 900px) {
  .narrative--compare::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: -50vh -50vw -72px;
    background: linear-gradient(
      to bottom,
      rgb(20 17 14 / 90%) calc(100% - 120px),
      transparent
    );
    pointer-events: none;
  }
}
.workflow-comparison {
  display: grid;
  margin-top: clamp(18px, 3vh, 34px);
}
.workflow-comparison > div {
  padding: clamp(12px, 2vh, 20px) 0;
  border-top: 1px solid var(--hairline);
}
.workflow-comparison > div:last-child {
  border-bottom: 1px solid var(--hairline);
}
.workflow-comparison span {
  display: block;
  color: var(--ink-faint);
  font-size: 13px;
}
.workflow-comparison strong {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.3vw, 2.1rem);
  font-weight: 520;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.workflow-comparison > div:last-child strong {
  color: var(--accent);
  font-size: clamp(1.5rem, 3vw, 2.75rem);
}
.workflow-comparison b {
  padding: 0 0.3em;
  color: var(--ink-faint);
  font-weight: 400;
}
.narrative--compare > small {
  display: block;
  margin-top: 12px;
  color: var(--ink-faint);
  font-size: 12px;
}
.narrative--close {
  top: 9%;
  left: 50%;
  width: min(680px, 86vw);
  text-align: center;
  transform: translateX(-50%);
}
.narrative--close h2 {
  font-size: clamp(2.3rem, 3.8vw, 3.3rem);
}
.signup-form {
  margin-top: 22px;
}
.signup-form > label {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
}
.signup-form > div {
  display: flex;
  gap: 9px;
  margin-top: 10px;
}
.signup-form input {
  flex: 1;
  min-width: 0;
  min-height: 50px;
  padding: 0 17px;
  border: 1px solid var(--edge);
  border-radius: 999px;
  background: var(--glass-regular);
  color: var(--ink);
  outline: none;
}
.signup-form input::placeholder {
  color: var(--ink-faint);
}
#signup-note {
  margin-top: 7px;
  color: var(--ink-soft);
  font-size: 9px;
}
.closing-secondary {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  margin-top: 20px;
  padding: 13px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-soft);
  font-size: 11px;
  text-align: left;
}
.closing-secondary details {
  flex: 1;
}
.closing-secondary summary {
  cursor: pointer;
  color: var(--ink);
}
.closing-secondary p {
  margin-top: 7px;
  font-size: 10px;
}
.closing-secondary > a {
  flex: 1;
  padding-top: 2px;
  color: var(--ink);
}
.narrative--close footer {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 15px;
  color: var(--ink-soft);
  font-size: 10px;
}
.story-controls {
  position: absolute;
  z-index: 60;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: none;
  align-items: center;
  gap: 10px;
  padding: 7px;
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: var(--glass-thick);
  transform: translateX(-50%);
}
.story-controls button {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: rgba(246, 230, 206, 0.07);
  font-size: 12px;
}
.story-controls input {
  width: min(230px, 34vw);
  accent-color: var(--accent);
}
.reduced-motion .story-controls {
  display: flex;
}
.reduced-motion .waypoint-map {
  display: none;
}
.reduced-motion .actor img {
  transition: none;
}
.reduced-motion .light-field {
  transform: none;
}
.noscript-note {
  position: fixed;
  z-index: 100;
  inset: auto 20px 20px;
  padding: 20px;
  border: 1px solid var(--edge);
  border-radius: 18px;
  background: var(--surface);
}
.noscript-note a {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 1100px) and (min-width: 701px) {
  .actor {
    width: 205px;
    height: 205px;
  }
  .actor--pill {
    width: 160px;
    height: 160px;
  }
  .actor--drop {
    width: 175px;
    height: 175px;
  }
  .scene-dialogue {
    width: 30vw;
  }
  .shared-result {
    width: 28vw;
    left: 66vw;
  }
  .message[data-message="maya"] p {
    font-size: 15px;
  }
  .message p {
    font-size: 12px;
  }
  .result-view,
  .access-view {
    inset: 15px;
  }
  .result-view h2 {
    font-size: 21px;
  }
  .result-facts {
    gap: 5px 8px;
  }
}

@media (max-width: 700px) {
  .stage {
    min-height: 540px;
  }
  .site-header {
    top: max(10px, env(safe-area-inset-top));
    height: 44px;
  }
  .brand,
  .brand img {
    width: 128px;
  }
  .header-actions {
    gap: 7px;
  }
  .button--small {
    min-height: 40px;
    padding: 0 13px;
    font-size: 11px;
  }
  .waypoint-map {
    display: none;
  }
  .shared-surface {
    left: -34%;
    right: -34%;
    bottom: -9%;
    height: 62%;
    transform: perspective(700px) rotateX(58deg) scale(1.15);
  }
  .scene-dialogue {
    left: 16px;
    right: 16px;
    top: 74%;
    width: auto;
    height: 11%;
    gap: 0;
  }
  .scene-dialogue .message,
  .scene-dialogue .choice-stamp {
    display: none;
  }
  .scene-dialogue .is-mobile-current {
    display: flex;
  }
  .message {
    gap: 8px;
  }
  .person-avatar {
    flex-basis: 25px;
    width: 25px;
    height: 25px;
    font-size: 9px;
  }
  .message-author {
    margin-bottom: 2px;
    font-size: 9px;
  }
  .message p,
  .message[data-message="maya"] p {
    max-width: 42ch;
    font-size: 12px;
    line-height: 1.35;
  }
  .message--bot {
    padding-top: 0;
    border-top: 0;
  }
  .message-bot-avatar {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }
  .choice-controls {
    margin-top: 6px;
  }
  .choice-controls button {
    min-width: 90px;
    min-height: 40px;
    padding: 0 11px;
    font-size: 10px;
  }
  .choice-stamp p {
    font-size: 11px;
  }
  .shared-result {
    left: 16px;
    right: 16px;
    top: 86%;
    width: auto;
    height: 100px;
    min-height: 0;
    border-radius: 18px;
    padding: 0;
  }
  .result-view,
  .access-view {
    position: absolute;
    inset: 0;
    padding: 11px 12px;
  }
  .result-heading {
    display: none;
  }
  .result-view h2 {
    margin-top: 0;
    font-size: 15px;
    line-height: 1.15;
  }
  .result-decision {
    margin-top: 4px;
    font-size: 10px;
  }
  .result-facts {
    gap: 3px 9px;
    margin-top: 6px;
    padding-top: 6px;
  }
  .result-facts li {
    font-size: 9px;
  }
  .result-note {
    margin-top: 5px;
    font-size: 8px;
  }
  .text-button {
    display: none;
  }
  .is-access .scene-dialogue {
    opacity: 0 !important;
  }
  .is-access .shared-result {
    top: 66%;
    height: 29%;
  }
  .access-heading h2 {
    font-size: 17px;
  }
  .access-heading > div > span,
  .local-label {
    font-size: 8px;
  }
  .bot-tabs {
    margin-top: 7px;
  }
  .bot-tabs button {
    min-height: 34px;
  }
  .role-copy,
  .access-note {
    display: none;
  }
  .permission-list {
    margin-top: 6px;
  }
  .permission-list > div {
    min-height: 34px;
    font-size: 10px;
  }
  .routine-note {
    display: none;
  }
  .device-phone {
    width: 230px;
    height: 470px;
  }
  .actor {
    width: 150px;
    height: 150px;
  }
  .actor--pill {
    width: 115px;
    height: 115px;
  }
  .actor--drop {
    width: 138px;
    height: 138px;
  }
  .contact-shadow {
    filter: blur(4px);
  }
  .context-connector {
    display: none;
  }
  .narrative {
    top: 12%;
    left: 16px;
    width: calc(100vw - 32px);
  }
  .narrative h1 {
    max-width: 355px;
    font-size: clamp(2.45rem, 10.8vw, 3.1rem);
    line-height: 1;
  }
  .narrative h2 {
    font-size: clamp(2rem, 9vw, 2.65rem);
  }
  .narrative--device {
    top: 10%;
  }
  .narrative--device h2 {
    font-size: clamp(1.9rem, 8vw, 2.3rem);
  }
  .narrative--compare,
  [dir="rtl"] .narrative--compare {
    left: 50%;
    width: calc(100vw - 40px);
  }
  .workflow-comparison {
    margin-top: 16px;
  }
  .workflow-comparison > div {
    padding: 10px 0;
  }
  .narrative--close {
    top: 9%;
    left: 50%;
    width: calc(100vw - 32px);
  }
  .narrative--close h2 {
    font-size: clamp(2rem, 8.8vw, 2.5rem);
  }
  .signup-form {
    margin-top: 15px;
  }
  .signup-form > div {
    gap: 7px;
  }
  .signup-form input {
    min-height: 46px;
    padding: 0 13px;
    font-size: 12px;
  }
  .signup-form .button {
    min-height: 46px;
    padding: 0 15px;
    font-size: 12px;
  }
  .closing-secondary {
    gap: 16px;
    margin-top: 13px;
    padding: 10px 0;
    font-size: 10px;
  }
  .closing-secondary p {
    font-size: 9px;
  }
  .narrative--close footer {
    gap: 16px;
    margin-top: 10px;
    font-size: 9px;
  }
  .is-device .scene-dialogue {
    left: 4%;
    top: 18%;
    width: 45%;
  }
  .is-device .shared-result {
    left: 54%;
    top: 18%;
    width: 40%;
    height: 72%;
  }
}

@media (max-width: 700px) and (max-height: 700px) {
  .stage {
    min-height: 500px;
  }
  .narrative {
    top: 14%;
  }
  .narrative h1 {
    font-size: 2.25rem;
  }
  .narrative h2 {
    font-size: 1.9rem;
  }
  .narrative--device {
    top: 11%;
  }
  .narrative--device h2 {
    font-size: 1.75rem;
  }
  .scene-dialogue {
    top: 72%;
    height: 11%;
  }
  .shared-result {
    top: 84%;
    height: 100px;
    min-height: 0;
  }
  .result-view,
  .access-view {
    padding: 9px 11px;
  }
  .result-view h2 {
    font-size: 14px;
  }
  .result-facts {
    margin-top: 5px;
    padding-top: 5px;
  }
  .result-note {
    margin-top: 4px;
  }
  .is-access .shared-result {
    top: 61%;
    height: 36%;
  }
  .actor {
    width: 120px;
    height: 120px;
  }
  .actor--pill {
    width: 94px;
    height: 94px;
  }
  .actor--drop {
    width: 112px;
    height: 112px;
  }
  .narrative--close {
    top: 11%;
  }
  .narrative--close h2 {
    font-size: 1.85rem;
  }
  .signup-form {
    margin-top: 10px;
  }
  .signup-form > label {
    font-size: 10px;
  }
  .signup-form > div {
    margin-top: 7px;
  }
  .signup-form input,
  .signup-form .button {
    min-height: 42px;
  }
  .closing-secondary {
    margin-top: 9px;
    padding: 8px 0;
  }
  .narrative--close footer {
    margin-top: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .shared-result,
  .waypoint-map,
  .signup-form input {
    backdrop-filter: none;
    background-color: #272019;
  }
}

/* Composite the original render's floor into one world without altering the cast. */
.actor img,
.message-bot-avatar,
.result-heading img,
.phone-message--bot img {
  mask-image: radial-gradient(
    ellipse 65% 60% at 50% 40%,
    #000 82%,
    transparent 99%
  );
}
.phone-screen {
  padding-bottom: 44px;
}
.phone-message--bot small {
  display: none;
}
.phone-footer {
  bottom: 12px;
  min-height: 24px;
  padding-top: 0;
}

/* The same lighting continues through the invitation, articles and colophon. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* The room's lamp stays on: warm light from the upper right, the window's
     cool city light low on the left, and the corners falling into shadow. */
  background:
    radial-gradient(60% 55% at 78% 18%, rgb(255 168 92 / 13%) 0%, rgb(255 168 92 / 0%) 70%),
    radial-gradient(50% 45% at 12% 88%, rgb(120 150 210 / 6%) 0%, rgb(120 150 210 / 0%) 70%),
    radial-gradient(ellipse at 52% 34%, #2c241c 0%, #1a1612 46%, #0e0c0a 82%);
}
/* Film stock: a fixed, still grain over the whole page, so the story, the
   cards and the colophon read as frames from the same reel. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 1.6 -0.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
/* Phones skip it: the grain is too fine to see there and the blend costs
   frames over the moving room. */
@media (prefers-reduced-transparency: reduce), (forced-colors: active), (max-width: 700px) {
  body::after { display: none; }
}
.cinematic-main {
  position: relative;
  z-index: 1;
}
.stage {
  position: sticky;
  top: 0;
  background: transparent;
}
.scroll-spacer {
  margin-top: -100svh;
}
.far-field {
  background: transparent;
}
.site-header {
  position: fixed;
}
.narrative {
  top: var(--copy-safe-top);
}
.scene-dialogue {
  top: max(250px, 35vh);
}
.actor {
  width: min(330px, 46vh);
  height: min(330px, 46vh);
}
.actor--pill {
  width: min(230px, 32vh);
  height: min(230px, 32vh);
}
.actor--drop {
  width: min(260px, 36vh);
  height: min(260px, 36vh);
}
.narrative--close > .button {
  margin-top: 24px;
}
.lang-switch {
  position: relative;
  font-size: 12px;
  color: var(--ink);
}
.lang-switch summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--glass-thin);
  backdrop-filter: blur(var(--blur-control));
}
.lang-switch summary::-webkit-details-marker {
  display: none;
}
.lang-menu {
  position: absolute;
  inset: calc(100% + 8px) 0 auto auto;
  min-width: 170px;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--edge);
  border-radius: 14px;
  background: var(--glass-thick);
  box-shadow: var(--e2);
}
.lang-menu a {
  display: block;
  min-height: 44px;
  padding: 12px;
  border-radius: 6px;
}
.lang-menu [aria-current="true"] {
  color: var(--accent);
}
.lang-menu a:hover {
  background: rgb(255 255 255 / 7%);
}
html:not(.story-ready) .waypoint-map,
html:not(.story-ready) .access-view,
html:not(.story-ready) .choice-controls,
html:not(.story-ready) .routine-note {
  display: none;
}
html:not(.story-ready) .scroll-spacer {
  height: 100svh;
}
@media (max-width: 700px) {
  .site-header .brand,
  .site-header .brand img {
    width: 100px;
  }
  .header-actions {
    gap: 6px;
  }
  .button--small {
    min-height: 44px;
  }
  .lang-switch summary {
    padding-inline: 8px;
    gap: 4px;
  }
  .narrative {
    top: 12%;
  }
  .scene-dialogue {
    top: 62%;
  }
  .shared-result {
    top: 76%;
    height: 130px;
  }
  .is-access .shared-result {
    top: 57%;
    height: min(300px, 36vh);
  }
  .actor {
    width: 180px;
    height: 180px;
  }
  .actor--pill {
    width: 138px;
    height: 138px;
  }
  .actor--drop {
    width: 160px;
    height: 160px;
  }
  .result-view h2 {
    font-size: 18px;
  }
  .result-decision,
  .result-facts li {
    font-size: 12px;
  }
  .message p,
  .message[data-message="maya"] p {
    font-size: 14px;
  }
  .choice-controls button {
    min-height: 44px;
    font-size: 12px;
  }
}
@media (max-width: 700px) and (max-height: 700px) {
  .narrative {
    top: 14%;
  }
  .actor {
    width: 130px;
    height: 130px;
  }
  .actor--pill {
    width: 100px;
    height: 100px;
  }
  .actor--drop {
    width: 124px;
    height: 124px;
  }
  .is-access .shared-result {
    top: 54%;
    height: 42%;
  }
  .shared-result {
    top: 76%;
    height: 126px;
  }
}

@media (max-width: 700px) {
  .scene-dialogue {
    top: 59%;
    height: 16%;
    gap: 8px;
  }
  .scene-dialogue .message[data-message="maya"],
  .scene-dialogue .message--bot {
    display: flex;
  }
  .scene-dialogue .choice-stamp {
    display: none;
  }
  .scene-dialogue .message--bot p {
    display: none;
  }
  .is-revision .scene-dialogue .message--bot {
    display: none;
  }
  .shared-result {
    top: 80%;
  }
  .result-note {
    display: none;
  }
}
@media (max-width: 700px) and (max-height: 700px) {
  .shared-result {
    height: 120px;
  }
}

/* A draft is an object the group can inspect; its diagrams never imply completion. */
.plan-sheet--one {
  transform: rotate(-8deg);
}
.plan-sheet--two {
  transform: rotate(4deg);
}
.plan-sheet--shared {
  flex-basis: 66px;
  height: 88px;
  border-color: rgb(204 255 0 / 42%);
  background: linear-gradient(
    145deg,
    rgb(204 255 0 / 9%),
    rgb(216 232 239 / 3%)
  );
  transform: rotate(-2deg);
}
.plan-sheet--shared > span {
  margin-bottom: 1px;
  height: 21px;
}
.plan-sheet--shared img {
  width: 27px;
  height: 27px;
  margin-top: -4px;
  mask-image: radial-gradient(
    ellipse 65% 60% at 50% 40%,
    #000 82%,
    transparent 99%
  );
}
.is-device .scene-dialogue {
  gap: 20px;
}
.is-device .message-author {
  font-size: 14px;
  margin-bottom: 5px;
}
.is-device .message p,
.is-device .message[data-message="maya"] p {
  max-width: 34ch;
  font-size: 19px;
  line-height: 1.45;
}
.is-device .message--bot p {
  font-size: 16px;
}
.is-device .choice-controls button {
  font-size: 14px;
  min-height: 44px;
}
.is-device .device-chrome {
  font-size: 14px;
}
.is-device .device-chrome strong {
  font-size: 16px;
}
.is-device .result-decision {
  font-size: 16px;
}
.is-device .result-heading strong {
  font-size: 15px;
}
.is-device .result-heading > div span {
  font-size: 12px;
}
.is-device .draft-state {
  font-size: 10px;
}
.is-device .result-facts {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
}
.is-device .result-facts li {
  font-size: 14px;
}
.is-device .plan-sheet--shared {
  flex-basis: 86px;
  height: 125px;
}
.is-device .result-note,
.is-device .text-button {
  font-size: 12px;
}
@media (max-width: 700px) {
  .scene-dialogue .message[data-message="maya"] p {
    max-width: 42ch;
  }
}

/* Stable original-cast composition remains usable before JavaScript loads. */
.actor--bento {
  --cx: 42vw;
  --cy: 91vh;
}
.actor--pill {
  --cx: 58vw;
  --cy: 94vh;
}
.actor--drop {
  --cx: 81vw;
  --cy: 97vh;
}
html:not(.story-ready) .scene-dialogue .message--revision,
html:not(.story-ready) .choice-stamp {
  display: none;
}
@media (max-width: 700px) {
  .actor--bento {
    --cx: 24vw;
    --cy: 50vh;
  }
  .actor--pill {
    --cx: 52vw;
    --cy: 58vh;
  }
  .actor--drop {
    --cx: 80vw;
    --cy: 50vh;
  }
  .story-invitation {
    scroll-margin-top: 108px;
  }
}
[dir="rtl"] .narrative,
[dir="rtl"] .message,
[dir="rtl"] .shared-result,
[dir="rtl"] .phone-message {
  text-align: right;
}
[dir="rtl"] .narrative h1,
[dir="rtl"] .narrative h2 {
  letter-spacing: 0;
}
[dir="rtl"] .result-heading > div {
  margin-right: 0;
  margin-left: auto;
}
[dir="rtl"] .phone-message--bot > div span {
  margin-left: 0;
  margin-right: auto;
}
[dir="rtl"] .waypoint-map {
  direction: ltr;
}
@media (forced-colors: active) {
  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  summary:focus-visible,
  [tabindex]:focus-visible {
    outline: 2px solid Highlight;
    outline-offset: 3px;
    box-shadow: none;
  }
  .stage,
  .shared-result,
  .phone-screen,
  .lang-menu {
    background: Canvas;
    color: CanvasText;
  }
  .shared-result,
  .workspace,
  .phone-hardware,
  .choice-controls button,
  .bot-tabs button {
    border: 1px solid CanvasText;
  }
}

.waypoint-map {
  gap: 0;
  padding: 0;
  border: 0;
  background: none;
  backdrop-filter: none;
}
.waypoint-map button {
  width: 44px;
  height: 40px;
}
.waypoint-map button::after {
  inset: 18px 20px;
}
.waypoint-map button span {
  left: 44px;
}

/* The visible switch stays precise while the real input target is 44 pixels. */
[role="switch"] {
  flex-basis: 44px;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
}
[role="switch"]::before {
  content: "";
  position: absolute;
  inset: 10px 0;
  border: 1px solid #7a6f63;
  border-radius: 999px;
  background: #352d25;
}
[role="switch"] i {
  top: 14px;
  left: 4px;
}
[role="switch"][aria-checked="true"] {
  background: none;
}
[role="switch"][aria-checked="true"]::before {
  border-color: var(--accent);
  background: var(--accent);
}
[role="switch"][aria-checked="true"] i {
  transform: translateX(20px);
}
.bot-tabs button {
  min-height: 44px;
  font-size: 12px;
}
.permission-list > div {
  min-height: 44px;
  font-size: 12px;
}
[lang="ar"] .narrative h1,
[lang="ar"] .narrative h2 {
  line-height: 1.35;
  font-weight: 500;
}
@media (max-width: 700px) {
  .local-label,
  .access-heading > div > span {
    font-size: 10px;
  }
  .access-heading h2 {
    font-size: 19px;
  }
}

.site-header {
  isolation: isolate;
}
.site-header::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -20px calc(-1 * var(--gutter)) -56px;
  /* Solid behind the bar itself, so a heading scrolling under it is hidden
     rather than ghosted across the logo; it fades only below the bar. */
  background: linear-gradient(
    to bottom,
    rgb(20 17 14) 76px,
    rgb(20 17 14 / 72%) 100px,
    transparent
  );
  pointer-events: none;
}

@media (max-width: 700px) and (max-height: 700px) {
  .narrative h1 {
    font-size: 2.1rem;
  }
}
:root[lang="zh-Hans"] {
  --font-display:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-text:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}
[lang="zh-Hans"] .narrative h1,
[lang="zh-Hans"] .narrative h2 {
  font-weight: 500;
  line-height: 1.05;
}

#workspace,
#inside {
  scroll-margin-top: 96px;
}

.header-explore {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .header-explore {
    display: none;
  }
}

/* One shared worktable. Material is static; only authored actor/scene motion moves. */
.grain {
  display: none;
}
.light-field {
  inset: 0;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(170, 188, 229, 0.075) 42.15%,
    rgba(170, 188, 229, 0.015) 68%,
    transparent 68.15%
  );
  transform: none;
}
.narrative--hero {
  top: 17vh;
  left: 4.5vw;
  width: 29vw;
}
.narrative--hero h1 {
  max-width: none;
  font-size: clamp(40px, 3.8vw, 60px);
  line-height: 1.055;
  letter-spacing: -0.052em;
}
.narrative--hero h1 span {
  display: block;
}
.hero-summary {
  max-width: 30ch;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}
.hero-invite {
  margin-top: 28px;
  min-height: 50px;
  gap: 26px;
}
.hero-invite .icon-arrow {
  flex: 0 0 18px;
}
.scene-dialogue {
  left: 35vw;
  top: 31vh;
  width: 18.5vw;
  gap: 18px;
}
.message p,
.message[data-message="maya"] p {
  font-size: clamp(13px, 1.05vw, 17px);
  line-height: 1.5;
  letter-spacing: -0.02em;
}
.message-author {
  margin-bottom: 4px;
  font-size: 11px;
}
.message--bot p {
  font-size: clamp(12px, 0.97vw, 15px);
}
.person-avatar,
.message-bot-avatar {
  flex-basis: 28px;
  width: 28px;
  height: 28px;
}
.choice-controls {
  gap: 6px;
  flex-wrap: wrap;
}
.choice-controls button {
  min-width: 82px;
  min-height: 44px;
  padding-inline: 9px;
  font-size: 11px;
}
.shared-result {
  left: 55vw;
  top: 21vh;
  width: 28vw;
  height: clamp(350px, 49vh, 460px);
  border-radius: 22px;
  backdrop-filter: blur(14px) saturate(1.15);
}
.result-view,
.access-view {
  inset: 20px;
}
.result-view h2 {
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.15;
}
.result-decision {
  min-height: 40px;
  font-size: 13px;
  transition: color 180ms var(--ease-precise);
}
[data-opening-beat="resolve"] .result-decision {
  color: var(--accent);
}
.actor {
  width: clamp(300px, 30vw, 450px);
  height: clamp(300px, 30vw, 450px);
}
.actor--pill {
  width: clamp(170px, 19vw, 265px);
  height: clamp(170px, 19vw, 265px);
}
.actor--drop {
  width: clamp(160px, 17vw, 240px);
  height: clamp(160px, 17vw, 240px);
}
.actor img {
  transition: none;
}
.actor--bento {
  --cx: 88vw;
  --cy: 82vh;
}
.actor--pill {
  --cx: 46vw;
  --cy: 90vh;
}
.actor--drop {
  --cx: 72vw;
  --cy: 88vh;
}
@media (min-width: 701px) and (max-width: 1050px) {
  .narrative--hero {
    top: 16vh;
    width: 40vw;
  }
  .narrative--hero h1 {
    font-size: clamp(38px, 4.9vw, 50px);
  }
  .scene-dialogue {
    left: 5vw;
    top: 53vh;
    width: 36vw;
    gap: 12px;
  }
  .shared-result {
    left: 48vw;
    top: 25vh;
    width: 38vw;
    height: 390px;
  }
  .actor--bento {
    width: 270px;
    height: 270px;
  }
  .actor--pill {
    width: 180px;
    height: 180px;
  }
  .actor--drop {
    width: 170px;
    height: 170px;
  }
}
@media (max-width: 700px) {
  .narrative--hero {
    top: 100px;
    left: 20px;
    width: calc(100vw - 40px);
  }
  .narrative--hero h1 {
    max-width: none;
    font-size: 38px;
    line-height: 1.05;
  }
  .hero-summary {
    margin-top: 14px;
    max-width: 29ch;
    font-size: 13px;
    line-height: 1.45;
  }
  .hero-invite {
    min-height: 44px;
    margin-top: 16px;
    padding: 0 18px;
    font-size: 12px;
    gap: 20px;
  }
  .scene-dialogue {
    left: 20px;
    top: 39vh;
    width: 59vw;
    gap: 12px;
  }
  .scene-dialogue .message,
  .scene-dialogue .choice-stamp {
    display: none;
  }
  .scene-dialogue .message[data-message="maya"],
  .scene-dialogue .message[data-message="theo"] {
    display: flex;
  }
  .scene-dialogue .message--bot.is-mobile-current,
  .scene-dialogue .choice-stamp.is-mobile-current,
  .scene-dialogue .message--revision.is-mobile-current {
    display: flex;
  }
  .message p,
  .message[data-message="maya"] p {
    font-size: 13px;
    line-height: 1.42;
  }
  .message-author {
    font-size: 9px;
    margin-bottom: 3px;
  }
  .person-avatar,
  .message-bot-avatar {
    flex-basis: 23px;
    width: 23px;
    height: 23px;
    font-size: 8px;
  }
  .shared-result {
    left: 10vw;
    top: 58vh;
    width: 80vw;
    height: 26vh;
    min-height: 210px;
    border-radius: 18px;
  }
  .result-view,
  .access-view {
    inset: 14px;
  }
  .result-view h2 {
    font-size: 20px;
  }
  .result-decision {
    min-height: 0;
    font-size: 11px;
    margin-top: 8px;
  }
  .result-facts {
    margin-top: 12px;
    padding-top: 12px;
    gap: 8px;
  }
  .result-facts li {
    font-size: 10px;
  }
  .result-note {
    margin-top: 10px;
    font-size: 9px;
  }
  .draft-state {
    font-size: 8px;
  }
  .actor--bento {
    width: 170px;
    height: 170px;
    --cx: 83vw;
    --cy: 55vh;
  }
  .actor--pill {
    width: 140px;
    height: 140px;
    --cx: 16vw;
    --cy: 88vh;
  }
  .actor--drop {
    width: 145px;
    height: 145px;
    --cx: 82vw;
    --cy: 89vh;
  }
  .is-access .shared-result {
    top: 40vh;
    height: 39vh;
    min-height: 0;
  }
  .is-access .scene-dialogue {
    opacity: 0 !important;
  }
  .is-access .access-heading h2 {
    font-size: 22px;
  }
  .is-access .role-copy,
  .is-access .access-note {
    display: block;
    font-size: 10px;
  }
  .is-access .permission-list > div {
    min-height: 40px;
  }
}
@media (max-width: 700px) and (max-height: 700px) {
  .narrative--hero {
    top: 86px;
  }
  .narrative--hero h1 {
    font-size: 33px;
  }
  .hero-summary {
    margin-top: 10px;
    font-size: 12px;
    max-width: 31ch;
  }
  .hero-invite {
    margin-top: 12px;
    min-height: 42px;
  }
  .scene-dialogue {
    top: 40vh;
    gap: 8px;
  }
  .message p,
  .message[data-message="maya"] p {
    font-size: 12px;
  }
  .shared-result {
    top: 62vh;
    min-height: 180px;
    height: 28vh;
  }
  .result-view,
  .access-view {
    inset: 12px;
  }
  .result-view h2 {
    font-size: 17px;
  }
  .result-decision {
    font-size: 10px;
  }
  .result-facts {
    margin-top: 7px;
    padding-top: 7px;
    gap: 5px;
  }
  .result-note {
    font-size: 8px;
    margin-top: 6px;
  }
  .actor--bento {
    width: 140px;
    height: 140px;
  }
  .actor--pill {
    width: 110px;
    height: 110px;
  }
  .actor--drop {
    width: 115px;
    height: 115px;
  }
}
@media (forced-colors: active) {
  .light-field {
    background: none;
  }
  .shared-result {
    background: Canvas;
    color: CanvasText;
  }
}

/* Readable group context and a real draft, with the cast on their shared rim. */
@media (min-width: 1051px) {
  .narrative--hero {
    width: 37vw;
  }
  .narrative--hero h1 {
    font-size: clamp(44px, 4.6vw, 68px);
  }
  .scene-dialogue {
    left: 5vw;
    top: 51vh;
    width: 33vw;
    gap: 16px;
  }
  .message p,
  .message[data-message="maya"] p {
    font-size: 17px;
    line-height: 1.5;
    max-width: 36ch;
  }
  .message--bot p {
    font-size: 15px;
  }
  .message-author {
    font-size: 12px;
  }
  .shared-result {
    left: 47vw;
    width: 36vw;
    height: 380px;
  }
  .actor--bento {
    width: min(440px, 35vw);
    height: min(440px, 35vw);
    --cx: 81vw;
    --cy: 90vh;
  }
  .actor--pill {
    --cx: 40vw;
    --cy: 94vh;
  }
  .actor--drop {
    --cx: 61vw;
    --cy: 97vh;
  }
}
.result-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 16px;
  padding-top: 0;
}
.result-facts li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
  line-height: 1.4;
}
.result-facts li::before {
  content: "01";
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--ink-soft);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.result-facts li:nth-child(2)::before {
  content: "02";
}
.result-facts li:nth-child(3)::before {
  content: "03";
}
.result-note {
  margin-top: 20px;
  font-size: 10px;
}
.result-decision {
  font-size: 16px;
  line-height: 1.5;
}
.result-view h2 {
  margin-top: 20px;
}
@media (min-width: 701px) and (max-height: 800px) {
  .narrative--hero h1 {
    font-size: clamp(40px, 4.2vw, 60px);
  }
  .hero-summary {
    margin-top: 18px;
    font-size: 14px;
    line-height: 1.45;
  }
  .hero-invite {
    margin-top: 18px;
    min-height: 46px;
  }
  .scene-dialogue {
    top: 55vh;
    gap: 12px;
  }
  .message p,
  .message[data-message="maya"] p {
    font-size: 14px;
    line-height: 1.4;
  }
  .message--bot p {
    font-size: 13px;
  }
  .shared-result {
    top: 20vh;
    height: 340px;
  }
}
@media (max-width: 700px) {
  .narrative--hero {
    top: 92px;
  }
  .narrative--hero h1 {
    font-size: 36px;
  }
  .hero-summary {
    margin-top: 12px;
  }
  .hero-invite {
    margin-top: 14px;
  }
  /* The chat sits right under the heading and the card follows it, so the
     card ends above the two bots waiting at the bottom of the screen. */
  .scene-dialogue {
    top: 28vh;
  }
  .scene-dialogue[data-mobile-current="bento"] .message[data-message="theo"],
  .scene-dialogue[data-mobile-current="choice"] .message[data-message="theo"],
  .scene-dialogue[data-mobile-current="revision"]
    .message[data-message="theo"] {
    display: none;
  }
  .shared-result {
    top: 51vh;
  }
  .result-view h2 {
    margin-top: 0;
  }
  .result-decision {
    font-size: 11px;
  }
  .result-facts {
    margin-top: 10px;
  }
  .result-facts li {
    min-height: 32px;
    padding: 7px 0;
    font-size: 10px;
    grid-template-columns: 16px 1fr;
    gap: 6px;
  }
  .result-facts li::before {
    font-size: 8px;
  }
  .result-note {
    margin-top: 10px;
    font-size: 9px;
  }
  .actor--pill {
    --cy: 95vh;
  }
  .actor--drop {
    --cy: 96vh;
  }
}
@media (max-width: 700px) and (max-height: 700px) {
  .narrative--hero {
    top: 100px;
  }
  .narrative--hero h1 {
    font-size: 31px;
  }
  .hero-invite {
    min-height: 40px;
    margin-top: 10px;
  }
  .scene-dialogue {
    top: 43vh;
  }
  .shared-result {
    top: 65vh;
  }
  .result-facts {
    margin-top: 7px;
  }
  .result-facts li {
    min-height: 27px;
    padding: 5px 0;
    font-size: 9px;
  }
  .result-note {
    font-size: 8px;
    margin-top: 7px;
  }
}

/* Choices stay available in the shared draft, independent of timed chat beats. */
.shared-result .choice-controls {
  margin-block: 14px 12px;
}
.shared-result .choice-controls button {
  min-height: 44px;
}
@media (max-width: 700px) {
  .shared-result {
    min-height: 270px;
    height: 32vh;
  }
  .shared-result .choice-controls {
    margin-block: 10px 8px;
    flex-wrap: nowrap;
  }
  .shared-result .choice-controls button {
    min-height: 44px;
    font-size: 10px;
  }
  .result-view h2,
  .result-decision {
    padding-inline-end: 42px;
  }
  .result-note {
    display: none;
  }
  .shared-result .text-button {
    display: inline-flex;
    position: absolute;
    inset-inline-end: -4px;
    top: -8px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    font-size: 0;
    border: 0;
    background: transparent;
    color: var(--ink-soft);
  }
  .shared-result .text-button::before {
    content: "";
    width: 17px;
    height: 17px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 5 4 10l5 5M4 10h10a5 5 0 0 1 0 10' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center/contain no-repeat;
  }
  .shared-result .text-button[aria-pressed="false"]::before {
    transform: scaleX(-1);
  }
  .actor--pill {
    --cy: 98vh;
  }
  .actor--drop {
    --cy: 99vh;
  }
}
@media (max-width: 700px) and (max-height: 700px) {
  .hero-invite {
    display: none;
  }
  .scene-dialogue {
    top: 35vh;
  }
  .shared-result {
    left: 14vw;
    top: 61vh;
    width: 78vw;
    min-height: 240px;
    height: 37.5vh;
  }
  .shared-result .choice-controls button {
    min-height: 44px;
    font-size: 9px;
  }
  .result-facts {
    padding-inline-start: 8px;
  }
  .actor--pill {
    width: 90px;
    height: 90px;
    --cx: 9vw;
    --cy: 98vh;
  }
  .actor--drop {
    width: 80px;
    height: 80px;
    --cx: 9vw;
    --cy: 81vh;
  }
}
/* Finish pass. The draft card sizes to its content: both views share one grid
   cell, so the card is as tall as the larger view and never clips a row. The
   revision row and its control keep their space while hidden, so the card
   does not jump when the revision lands. */
@media (min-width: 701px) {
  .shared-result {
    display: grid;
    height: auto;
  }
  .result-view,
  .access-view,
  .is-device .result-view,
  .is-device .access-view {
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
    padding: 20px;
  }
}
.result-facts > #revision-fact[hidden] {
  display: grid !important;
  visibility: hidden;
}
/* On a phone the card grows with the visible view instead of clipping longer
   translations; the hidden view stays out of flow. The card is hidden while
   the access class changes, so its move and resize are never seen. */
@media (max-width: 700px) {
  .shared-result {
    height: auto;
  }
  .is-access .shared-result {
    top: 38vh;
    height: auto;
  }
  .result-view,
  .is-access .access-view {
    position: relative;
    inset: auto;
    margin: 14px;
  }
  .is-access .result-view {
    position: absolute;
    inset: 14px;
    margin: 0;
  }
}
@media (max-width: 700px) and (max-height: 700px) {
  .result-view,
  .is-access .access-view {
    margin: 12px;
  }
  .is-access .result-view {
    inset: 12px;
  }
}
/* Chapter headings keep to the conversation column in either direction, so
   longer or right-to-left copy never runs over the card. */
@media (min-width: 701px) {
  .narrative--conversation,
  .narrative--access,
  .narrative--revision {
    width: 40vw;
  }
}
/* Fixed header copy (the preview label sits below the bar on narrow screens)
   stays readable over the page that scrolls beneath it. */
@media (max-width: 1100px) {
  .site-header::before {
    bottom: -64px;
  }
}
/* Every translated headline holds its lines (German needs about 8.8em per
   line). */
@media (min-width: 1051px) {
  .narrative--hero {
    width: 39vw;
  }
  .narrative--hero h1 {
    font-size: clamp(44px, 4.3vw, 68px);
  }
}
@media (min-width: 701px) and (max-height: 800px) {
  .narrative--hero h1 {
    font-size: clamp(40px, 4.2vw, 60px);
  }
  .scene-dialogue {
    gap: 10px;
  }
}
/* Compact phones: the device heading clears the handheld frame. */
@media (max-width: 700px) and (max-height: 700px) {
  .narrative--device h2 {
    font-size: 1.6rem;
  }
}
/* Phone card: only the heading shares a line with the revision control, so
   only the heading leaves room for it. Longer translations keep one line. */
@media (max-width: 700px) {
  .result-view h2 {
    padding-inline-end: 36px;
  }
  .result-decision {
    padding-inline-end: 0;
  }
}
/* Earlier phone rules set left, right and width together. Right-to-left
   layout then drops left, moving the conversation under Bento; keep the
   authored left placement in both directions. */
@media (max-width: 700px) {
  .scene-dialogue,
  .shared-result {
    right: auto;
  }
}
/* Pill stands between the conversation and the draft. The column stops
   short of it, including right-to-left copy that runs to the column's end. */
@media (min-width: 701px) and (max-width: 1050px) {
  .scene-dialogue {
    width: 31vw;
  }
}
@media (min-width: 1051px) {
  [dir="rtl"] .scene-dialogue {
    width: 29vw;
  }
}
/* The product surface is drawn above the cast: the bots stand behind the
   shared work and frame it, but never cover a line of it. */
.actor {
  z-index: 3;
}
/* A denser pane, so a bot behind it reads as a soft shape, not a second
   image competing with the text. */
.shared-result {
  background: rgba(34, 29, 24, 0.92);
}
@media (prefers-reduced-transparency: reduce) {
  .shared-result {
    background: #272019;
  }
}
/* Release review fixes. */
/* Focus never lands under the fixed header band (WCAG 2.4.11). */
:where(a, button, summary, input, select, textarea, [tabindex]) {
  scroll-margin-top: 140px;
  scroll-margin-bottom: 24px;
}
/* Direction arrows follow the reading direction in Arabic. */
[dir="rtl"] .icon-arrow,
[dir="rtl"] .feature-paths > a > span:last-child {
  display: inline-block;
  transform: scaleX(-1);
}
/* Disclaimers and labels stay readable: at least 11px, 12px for Chinese and
   Arabic, whose glyphs need more size. */
.access-note,
.local-label,
.draft-state,
.routine-note strong,
.result-note,
.text-button,
.access-heading > div > span,
.result-heading > div span,
.is-access .access-note,
.is-device .draft-state {
  font-size: 11px;
}
:root:is([lang="zh-Hans"], [lang="ar"])
  :is(
    .access-note,
    .local-label,
    .draft-state,
    .routine-note strong,
    .result-note,
    .text-button,
    .access-heading > div > span,
    .result-heading > div span
  ) {
  font-size: 12px;
}
/* The phone card's revision control is an icon; its label stays its name. */
@media (max-width: 700px) {
  :root .shared-result .text-button {
    font-size: 0;
  }
}
/* Arabic joins letters and Chinese sets glyphs on a grid; neither takes the
   display face's negative tracking. */
:root:is([lang="ar"], [lang="zh-Hans"]) :is(h1, h2, h3) {
  letter-spacing: 0;
}
/* Opening composition. The page opens like the live hero: copy on the left,
   the cast grouped on the right with pieces of the app around it, and one real
   message under the button. On scroll the story takes over. */
.narrative--hero {
  left: var(--gutter);
  top: 22vh;
}
@media (min-width: 701px) and (max-height: 800px) {
  .narrative--hero {
    top: 17vh;
  }
}
.hero-scene {
  position: absolute;
  z-index: 7;
  inset: 0;
  pointer-events: none;
  will-change: opacity, transform;
}
/* One floor for the group, so the bots stand together rather than float. */
.hero-scene::before {
  content: "";
  position: absolute;
  left: 52vw;
  right: 2vw;
  top: 78vh;
  height: 16vh;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 40%,
    rgb(204 255 0 / 9%),
    rgb(204 255 0 / 0%) 66%
  );
  z-index: -1;
}
.hero-message,
.hero-chip {
  position: absolute;
  border: 1px solid var(--edge);
  background: var(--glass-regular);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 8%),
    var(--e1);
  backdrop-filter: blur(var(--blur-control)) saturate(var(--glass-saturation));
}
.hero-message {
  left: var(--gutter);
  top: 69vh;
  width: min(390px, 30vw);
  padding: 14px 16px 16px;
  border-radius: 18px;
}
.hero-message-head {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 12px;
}
.hero-message-head strong {
  color: var(--ink);
  font-weight: 650;
}
.hero-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  border-radius: 16px;
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
}
.hero-chip img {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #2b251f;
}
.hero-composer {
  left: 52vw;
  top: 22vh;
  gap: 14px;
  padding-inline-start: 14px;
}
.hero-composer b {
  color: var(--accent);
  font-weight: 600;
}
.hero-send {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  transition:
    transform var(--duration-ui) var(--ease-out),
    box-shadow var(--duration-ui) var(--ease-out);
}
.hero-status {
  right: 5vw;
  top: 38vh;
}
.hero-dots {
  display: inline-flex;
  gap: 3px;
}
.hero-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-soft);
}
.hero-presence {
  right: 4vw;
  top: 88vh;
  color: var(--ink-soft);
  font-size: 13px;
}
.hero-stack {
  display: flex;
}
.hero-stack > * {
  width: 24px;
  height: 24px;
  margin-inline-start: -6px;
  border: 2px solid #1b2125;
  border-radius: 50%;
}
.hero-stack > :first-child {
  margin-inline-start: 0;
}
.hero-stack .person-avatar {
  flex: 0 0 24px;
  font-size: 10px;
}
.hero-chip .hero-stack img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
/* Opening beats answer what happens: the message is sent, Drop drafts, the
   group is complete. Every piece is already on screen at first paint. */
.hero-scene[data-beat="sent"] .hero-send {
  transform: scale(0.9);
  box-shadow: 0 0 0 6px rgb(204 255 0 / 18%);
}
.hero-scene:is([data-beat="drafting"], [data-beat="joined"]) .hero-dots i {
  animation: hero-typing 1.2s var(--ease-precise) infinite;
}
.hero-scene .hero-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.hero-scene .hero-dots i:nth-child(3) {
  animation-delay: 0.3s;
}
.hero-scene[data-beat="joined"] .hero-presence {
  border-color: rgb(204 255 0 / 35%);
  color: var(--ink);
  transition:
    border-color var(--duration-ui) var(--ease-out),
    color var(--duration-ui) var(--ease-out);
}
@keyframes hero-typing {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}
/* Breathing and a soft float: a slow rise and a slight sway per bot, each on
   its own period so the cast never moves in step. */
@property --float {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}
@property --sway {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
.actor {
  animation:
    bot-breathe var(--idle-breath-duration) var(--ease-precise) infinite,
    bot-float 5.8s ease-in-out infinite,
    bot-sway 7.4s ease-in-out infinite;
}
.actor--pill {
  animation-delay: -1.4s, -2.1s, -4.6s;
  animation-duration: var(--idle-breath-duration), 4.9s, 6.3s;
}
.actor--drop {
  animation-delay: -2.9s, -3.7s, -1.2s;
  animation-duration: var(--idle-breath-duration), 6.6s, 8.1s;
}
@keyframes bot-breathe {
  50% {
    scale: 1 var(--idle-breath-scale);
  }
}
@keyframes bot-float {
  50% {
    --float: -5px;
  }
}
@keyframes bot-sway {
  25% {
    --sway: 1.1deg;
  }
  75% {
    --sway: -1.1deg;
  }
}
/* After five quiet seconds the cast holds still until the next input. */
.is-resting .actor,
.is-resting .hero-scene .hero-dots i {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .actor,
  .hero-scene .hero-dots i {
    animation: none;
  }
  .hero-send {
    transition: none;
  }
}
/* Chapter text: a heading and one plain sentence of what happens. */
.narrative > p {
  max-width: 40ch;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.55;
}
/* The conversation starts below the chapter copy, measured per language. */
@media (min-width: 701px) {
  .scene-dialogue {
    top: max(36vh, var(--copy-clear, 0px));
  }
}
@media (max-width: 700px) {
  .narrative:not(.narrative--hero) > p {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .hero-message,
  .hero-presence,
  .hero-scene::before {
    display: none;
  }
  .narrative--hero {
    left: 20px;
  }
  .hero-composer {
    left: 20px;
    top: 50vh;
    font-size: 13px;
  }
  .hero-status {
    right: 16px;
    top: auto;
    bottom: 4vh;
    font-size: 13px;
  }
}
@media (max-width: 700px) and (max-height: 700px) {
  .hero-composer {
    top: 44vh;
  }
}
/* Product pieces look like the app: people in plum bubbles, bots in navy
   bubbles with a Bot badge, the shared draft posted by Drop. */
.scene-dialogue .message > div {
  padding: 9px 13px 11px;
  border-radius: 4px 14px 14px;
  background: #322742;
}
.scene-dialogue .message--bot > div,
.phone-message--bot {
  background: #1f2a3d;
}
.scene-dialogue .message--bot,
.scene-dialogue .message--revision {
  padding-top: 0;
  border-top: 0;
}
.scene-dialogue .message-author {
  color: var(--ink);
  font-weight: 650;
}
.bot-badge {
  display: inline-block;
  margin-inline-start: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  background: #464646;
  color: #e6e6e6;
  font-size: 10px;
  font-weight: 600;
  vertical-align: 1px;
}
.scene-dialogue .message--bot p {
  color: var(--ink);
}
.phone-message {
  background: #322742;
}
.shared-result {
  background: rgb(31 42 61 / 94%);
}
@media (prefers-reduced-transparency: reduce) {
  .shared-result {
    background: #1f2a3d;
  }
}
[dir="rtl"] .scene-dialogue .message > div {
  border-radius: 14px 4px 14px 14px;
}
/* In the opening group Drop stands behind Bento, Pill in front. */
.actor--drop {
  z-index: 2;
}
.narrative--hero .hero-summary {
  font-size: 18px;
  line-height: 1.55;
  max-width: 34ch;
}
@media (max-width: 700px) {
  .narrative--hero .hero-summary {
    font-size: 15px;
  }
}
/* Phones: the composer chip sits below the hero copy in every language. */
@media (max-width: 700px) {
  .hero-composer {
    top: max(50vh, calc(var(--hero-bottom, 0px) + 14px));
  }
}
@media (max-width: 700px) and (max-height: 700px) {
  .hero-composer {
    top: max(42vh, calc(var(--hero-bottom, 0px) + 12px));
  }
}
/* Short laptops: the thread is set a little tighter and Pill's routine row,
   an extra, steps aside so the revision reads cleanly. */
@media (min-width: 701px) and (max-height: 800px) {
  .routine-note {
    display: none;
  }
  .scene-dialogue .message > div {
    padding: 7px 11px 8px;
  }
  .scene-dialogue .message p {
    font-size: 13px;
  }
  .scene-dialogue .message[data-message="maya"] p {
    font-size: 15px;
  }
}
/* Phones: in the revision the new message replaces the first one on screen. */
@media (max-width: 700px) {
  .scene-dialogue[data-mobile-current="revision"]
    .message[data-message="maya"] {
    display: none;
  }
}
/* Phones: Drop's status sits under the composer on the right, above the group. */
@media (max-width: 700px) {
  .hero-status {
    top: calc(max(50vh, var(--hero-bottom, 0px) + 14px) + 58px);
    bottom: auto;
  }
}
@media (max-width: 700px) and (max-height: 700px) {
  .hero-status {
    top: calc(max(42vh, var(--hero-bottom, 0px) + 12px) + 52px);
  }
}
/* Chapter copy is set tighter on short laptops, so the thread below it fits. */
@media (min-width: 701px) and (max-height: 800px) {
  .narrative:not(.narrative--hero) h2 {
    font-size: clamp(2rem, 3.2vw, 2.8rem);
  }
  .narrative > p {
    margin-top: 12px;
    font-size: 15px;
  }
}
/* Before the story script runs, and without JavaScript, the page shows the
   opening: the cast in its group (the same place the script starts from) and
   none of the later chapters' product pieces. */
.actor--bento {
  --cx: 76vw;
  --cy: 87vh;
  --cs: 0.96;
}
.actor--pill {
  --cx: 66vw;
  --cy: 93vh;
  --cs: 0.84;
}
.actor--drop {
  --cx: 67vw;
  --cy: 74vh;
  --cs: 0.92;
}
@media (max-width: 700px) {
  .actor--bento {
    --cx: 63vw;
    --cy: 89vh;
    --cs: 1.25;
  }
  .actor--pill {
    --cx: 35vw;
    --cy: 95vh;
    --cs: 0.9;
  }
  .actor--drop {
    --cx: 40vw;
    --cy: 81vh;
    --cs: 0.85;
  }
}
html:not(.story-ready) .scene-dialogue,
html:not(.story-ready) .shared-result {
  display: none;
}
/* Chapter dots sit on the far edge, away from the copy, and appear once the
   story starts moving; the opening has its own scene. */
.waypoint-map {
  left: auto;
  inset-inline-end: 12px;
  gap: 2px;
  padding: 4px 3px;
  border-color: transparent;
  background: transparent;
  backdrop-filter: none;
  transition:
    opacity var(--duration-ui) var(--ease-out),
    visibility var(--duration-ui);
}
/* 24px targets meet the WCAG 2.2 minimum. */
.waypoint-map button {
  width: 24px;
  height: 24px;
}
.waypoint-map button::after {
  inset: 9px;
  background: rgb(130 144 153 / 70%);
}
.waypoint-map button span {
  left: auto;
  right: 28px;
  transform: translate(6px, -50%);
}
[dir="rtl"] .waypoint-map button span {
  right: auto;
  left: 28px;
  transform: translate(-6px, -50%);
}
.stage.at-opening .waypoint-map {
  opacity: 0;
  visibility: hidden;
}
/* Every card in the opening opens on hover or focus on a desktop and on a tap
   on a phone. The composer and Drop's status grow in place; Maya's message
   and the group sit low on the screen, so theirs open upward. */
.hero-scene :is(.hero-expand, .hero-message, .hero-presence) {
  font: inherit;
  text-align: start;
  cursor: pointer;
  pointer-events: auto;
  transition:
    border-color var(--duration-ui) var(--ease-out),
    background-color var(--duration-ui) var(--ease-out);
}
.hero-expand {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  font-size: 14px;
}
.hero-expand-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 8px;
  padding-inline: 8px 12px;
}
.hero-composer .hero-expand-head {
  gap: 14px;
  padding-inline: 14px 8px;
}
.hero-message-text {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: var(--track-normal);
}
.hero-plan {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms var(--ease-out);
}
.hero-plan-inner {
  display: grid;
  gap: 7px;
  min-height: 0;
  overflow: hidden;
  padding-inline: 14px;
  white-space: normal;
}
:is(.hero-plan-inner, .hero-pop) strong {
  padding-top: 4px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-plan-row {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 13px;
}
.hero-plan-row::before {
  content: "";
  flex: 0 0 14px;
  height: 14px;
  border: 1.5px solid var(--ink-faint);
  border-radius: 50%;
}
.hero-plan-row.is-done::before {
  border-color: var(--accent);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%2317181c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 7.2 2 2 4-4.4'/%3E%3C/svg%3E")
      center / 12px no-repeat,
    var(--accent);
}
.hero-plan-row:last-child {
  padding-bottom: 14px;
  color: var(--ink-soft);
}
/* The upward cards: a solid panel above, since it sits outside the glass. */
.hero-pop {
  position: absolute;
  inset-inline: 0;
  bottom: calc(100% + 8px);
  display: grid;
  gap: 10px;
  min-width: 250px;
  padding: 10px 14px 14px;
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: rgb(27 23 19 / 96%);
  box-shadow: var(--e1);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 220ms var(--ease-out),
    transform 220ms var(--ease-out),
    visibility 220ms;
}
.hero-presence .hero-pop {
  inset-inline: auto 0;
}
.hero-pop-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.hero-pop-row > :first-child {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 10px;
}
.hero-pop-row img {
  border-radius: 8px;
  background: #2b251f;
}
.hero-pop-row b {
  display: block;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
}
.hero-scene [aria-expanded="true"],
.hero-scene :is(.hero-expand, .hero-message, .hero-presence):focus-visible {
  z-index: 2;
  border-color: rgb(204 255 0 / 35%);
}
.hero-expand[aria-expanded="true"] .hero-plan {
  grid-template-rows: 1fr;
}
/* An open card may cover its neighbour, so it turns solid, and Drop's status
   steps back while the composer above it is open. */
.hero-expand[aria-expanded="true"] {
  background-color: rgb(27 23 19 / 96%);
}
.hero-scene .hero-status {
  transition:
    opacity 200ms var(--ease-out),
    border-color var(--duration-ui) var(--ease-out),
    background-color var(--duration-ui) var(--ease-out);
}
.hero-scene:has(.hero-composer:is([aria-expanded="true"], :hover)) .hero-status {
  opacity: 0;
}
.hero-scene [aria-expanded="true"] > .hero-pop {
  opacity: 1;
  visibility: visible;
  transform: none;
}
@media (hover: hover) and (pointer: fine) {
  .hero-scene :is(.hero-expand, .hero-message, .hero-presence):hover {
    z-index: 2;
    border-color: rgb(204 255 0 / 35%);
  }
  .hero-expand:hover .hero-plan {
    grid-template-rows: 1fr;
  }
  .hero-expand:hover {
    background-color: rgb(27 23 19 / 96%);
  }
  .hero-scene :hover > .hero-pop {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-plan,
  .hero-pop {
    transition: none;
  }
}

/* The lamp lights the story's glass too: a warm rim on the edge that faces it
   (upper right) and a soft falloff across the pane, so the panels sit in the
   room rather than on top of it. */
.shared-result {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset -1px 0 0 rgb(255 196 132 / 16%),
    var(--e2);
  background-image: radial-gradient(
    120% 70% at 100% 0%,
    rgb(255 176 104 / 7%) 0%,
    rgb(255 176 104 / 0%) 60%
  );
}
[dir="rtl"] .shared-result {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 1px 0 0 rgb(255 196 132 / 16%),
    var(--e2);
  background-image: radial-gradient(
    120% 70% at 0% 0%,
    rgb(255 176 104 / 7%) 0%,
    rgb(255 176 104 / 0%) 60%
  );
}
