/*
 * Omni public site: the landing page, on top of site.css.
 *
 * Hero, the product window and its chat demo, the capability tiles, "Built around your day", "How
 * it's run", and the closing. Every rule under "Motion" runs only when motion.js has put `.motion` on
 * the document and the visitor has not asked for reduced motion; the resting style of each demo is
 * its finished frame, so without motion the page is complete and still.
 */

:root {
  /* The product window: a hairline by day, a lit edge and a teal glow by night, so it still reads as
     an object on the near-black page. */
  --window-edge: light-dark(#e8e4dd, rgb(255 255 255 / 9%));
  --window-shadow:
    0 1px 2px light-dark(rgb(27 26 23 / 6%), rgb(0 0 0 / 40%)),
    inset 0 1px 0 light-dark(transparent, rgb(255 255 255 / 6%)),
    0 24px 48px -24px light-dark(rgb(27 26 23 / 22%), rgb(0 0 0 / 55%)),
    0 40px 120px -40px light-dark(rgb(0 80 76 / 24%), color-mix(in srgb, #168a86 45%, transparent));
  --aura: light-dark(rgb(0 106 102 / 12%), rgb(22 138 134 / 26%));

  /* How far a sent message travels up from the composer to its place in the thread. */
  --send-rise: 220px;
}

@supports not (color: light-dark(#000, #fff)) {
  :root {
    --window-edge: #e8e4dd;
    --window-shadow: 0 1px 2px rgb(27 26 23 / 6%), 0 24px 48px -24px rgb(27 26 23 / 22%),
      0 40px 120px -40px rgb(0 80 76 / 24%);
    --aura: rgb(0 106 102 / 12%);
  }
}

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

.hero {
  position: relative;
  padding-top: clamp(36px, 5vw, 56px);
  overflow-x: clip;
  isolation: isolate;
}

@supports not (overflow: clip) {
  .hero {
    overflow-x: hidden;
  }
}

/* The mark's broken ring, drawn at page scale behind the headline. */
.hero-orbit {
  position: absolute;
  z-index: -1;
  top: clamp(-560px, -38vw, -220px);
  left: 50%;
  width: max(1400px, 120vw);
  height: auto;
  translate: -50% 0;
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
  opacity: 0.7;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}

.hero-orbit :is(path, circle),
.closing-orbit :is(path, circle) {
  vector-effect: non-scaling-stroke;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.display {
  margin-top: 20px;
  font-size: var(--text-display);
  font-weight: 750;
  line-height: 1.02;
  letter-spacing: -0.04em;
  word-spacing: 0.04em;
}

.display > span {
  display: block;
}

.display .accent {
  color: var(--primary);
}

.lede {
  max-width: 42rem;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: var(--text-lede);
  line-height: 1.55;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  margin-top: 28px;
}

/* ------------------------------------------------------------------------------------------------
 * Product window
 * --------------------------------------------------------------------------------------------- */

.product {
  position: relative;
  margin-top: clamp(40px, 5vw, 56px);
}

.product-aura {
  position: absolute;
  inset: 8% 4% -6%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(50% 60% at 50% 45%, var(--aura), transparent 72%);
  filter: blur(40px);
}

.window {
  overflow: hidden;
  border: 1px solid var(--window-edge);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--window-shadow);
  font-size: 0.9375rem;
}

.window-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
}

.window-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.window-brand .mark {
  width: 18px;
  height: 18px;
}

.window-title {
  color: var(--ink);
}

.window-mode {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-self: end;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--ink-2);
}

.window-body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 560px;
}

.window-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 12px;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
}

.window-nav-group {
  margin: 14px 12px 6px;
  color: var(--ink-3);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.window-nav-group:first-child {
  margin-top: 4px;
}

.window-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 500;
}

.window-nav-item .icon {
  font-size: 1.05rem;
}

.window-nav-item.is-active {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  font-weight: 650;
}

.count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--warning-container);
  color: var(--on-warning-container);
  font-size: 0.75rem;
  font-weight: 700;
}

.convo {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 720px;
  margin-inline: auto;
  padding: 32px 32px 24px;
}

.thread {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.msg-user {
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: min(460px, 88%);
}

.msg-user p {
  padding: 12px 16px;
  border-radius: 20px 20px 6px 20px;
  background: var(--surface-3);
  line-height: 1.5;
}

.attachment {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
}

.attachment .icon {
  color: var(--accent-orange);
}

.msg-omni {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
}

.avatar {
  width: 30px;
  height: 30px;
  margin-top: 2px;
}

.msg-omni-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.msg-omni-body > p {
  line-height: 1.6;
}

/* Only the animated demo shows Omni thinking; the still page shows the finished reply. */
.typing {
  position: absolute;
  top: 4px;
  left: 0;
  display: none;
  gap: 5px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface-3);
}

.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-2);
}

.recall {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 500;
}

.recall .icon {
  color: var(--accent-teal);
}

.results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
}

.result {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
}

.result strong {
  margin-top: 6px;
  font-size: 0.9375rem;
  font-weight: 650;
}

.result-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.result-done .result-label {
  color: var(--success);
}

.result-waiting {
  border-color: color-mix(in srgb, var(--warning) 36%, var(--line));
  background: color-mix(in srgb, var(--warning-container) 22%, var(--surface));
}

.result-waiting .result-label {
  display: grid;
  color: var(--warning);
}

.state {
  display: inline-flex;
  grid-area: 1 / 1;
  align-items: center;
  gap: 6px;
}

.state-sending,
.state-sent {
  display: none;
}

.state-sent {
  color: var(--success);
}

.result-meta {
  color: var(--ink-2);
  font-size: 0.8125rem;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mini-button {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.mini-primary {
  border-color: transparent;
  background: var(--primary);
  color: var(--on-primary);
}

.demo-approve {
  position: relative;
  display: inline-grid;
  justify-items: center;
}

.btn-idle,
.btn-done {
  display: inline-flex;
  grid-area: 1 / 1;
  align-items: center;
  gap: 5px;
}

.btn-done,
.cursor {
  display: none;
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

/* The composer, as in the app: the words above, the tools and send below. */
.composer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding: 14px 8px 8px 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-2);
}

.composer-field {
  display: grid;
  min-height: 3em;
  padding-right: 10px;
  color: var(--ink-3);
  line-height: 1.5;
}

.composer-placeholder,
.composer-draft {
  grid-area: 1 / 1;
}

.composer-draft {
  color: var(--ink);
  visibility: hidden;
}

.composer-row {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: -10px;
}

.composer-tool,
.composer-send {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink-2);
}

.composer-tool .icon,
.composer-send .icon {
  font-size: 1.1rem;
}

.composer-send {
  margin-left: auto;
  background: var(--primary);
  color: var(--on-primary);
}

.product-controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.motion-toggle[hidden] {
  display: none;
}

.motion-toggle .icon {
  font-size: 0.95rem;
}

.motion-toggle .icon-pause,
.motion-toggle .icon-play {
  fill: currentColor;
  stroke: none;
}

.motion-toggle[aria-pressed="true"] .icon-pause,
.motion-toggle[aria-pressed="false"] .icon-play {
  display: none;
}

@media (hover: hover) {
  .motion-toggle:hover {
    color: var(--ink);
    border-color: var(--line-strong);
  }
}

/* ------------------------------------------------------------------------------------------------
 * Sections
 * --------------------------------------------------------------------------------------------- */

.section {
  padding-top: var(--section-space);
}

.section-tight {
  padding-top: clamp(80px, 9vw, 128px);
}

/* A link to a section lands its heading just under the header, not a section's padding lower. */
.section[id],
.band[id] {
  scroll-margin-top: calc(24px - var(--section-space));
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 60rem;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head h2,
.closing h2 {
  font-size: var(--text-h2);
  font-weight: 750;
  line-height: 1.06;
  letter-spacing: -0.034em;
  word-spacing: 0.03em;
}

.section-lede {
  max-width: 38rem;
  color: var(--ink-2);
  font-size: var(--text-lede);
  line-height: 1.55;
  text-wrap: balance;
}

/* ------------------------------------------------------------------------------------------------
 * Capability tiles
 *
 * Each tile is its words above a stage: one tinted panel, the same size across a row, that holds
 * the tile's illustration. Whatever sits on a stage is white (or the dark surface) on that tint.
 * --------------------------------------------------------------------------------------------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  --accent: var(--accent-teal);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 28px;
  min-width: 0;
  padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.tile-memory {
  grid-column: span 7;
}

.tile-reason {
  --accent: var(--accent-blue);
  grid-column: span 5;
}

.tile-remind {
  --accent: var(--accent-orange);
  grid-column: span 4;
}

.tile-files {
  --accent: var(--accent-sky);
  grid-column: span 4;
}

.tile-voice {
  grid-column: span 4;
}

.tile-actions {
  --accent: var(--warning);
  grid-column: span 12;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: auto;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.tile-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent);
  font-size: 1.25rem;
}

.tile h3,
.principles h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.022em;
}

.tile-head p {
  max-width: 34rem;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
}

.tile-visual {
  display: grid;
  align-content: center;
  gap: 10px;
  min-height: 184px;
  padding: 20px;
  border-radius: 20px;
  background: var(--surface-2);
}

/* Memory */
.memory-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-3);
  font-size: 0.875rem;
}

.memory-query-slot {
  display: grid;
}

.memory-placeholder,
.memory-query {
  grid-area: 1 / 1;
}

.memory-query {
  display: none;
  align-items: center;
  color: var(--ink);
  font-weight: 600;
}

.caret {
  width: 1.5px;
  height: 1.1em;
  margin-left: 2px;
  background: var(--accent-teal);
}

.memory-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.memory-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 500;
}

.memory-list li > span:nth-child(2) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memory-list em {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
}

.memory-list .pin {
  color: var(--accent-teal);
}

.bullet {
  justify-self: center;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}

/* Routing: the modes as one segmented control, then three requests and where each one went. */
.modes {
  display: inline-flex;
  justify-self: start;
  max-width: 100%;
  overflow: hidden;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.mode {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.mode.is-active {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
}

.routes {
  border-radius: 14px;
  background: var(--surface);
}

.route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 11px 14px;
  font-size: 0.875rem;
}

.route + .route {
  border-top: 1px solid var(--line);
}

.route-q {
  flex: 1 1 12rem;
  min-width: 0;
  color: var(--ink);
  font-weight: 500;
}

.route-arrow {
  color: var(--ink-3);
}

.route-a {
  padding: 2px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-blue) 12%, var(--surface));
  color: var(--accent-blue-text);
  font-size: 0.8125rem;
  font-weight: 700;
}

/* Reminders */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--surface);
}

.timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 76px;
  width: 1px;
  background: var(--line-strong);
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  min-height: 36px;
  font-size: 0.875rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 58px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
}

.timeline time {
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.timeline span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline .is-next::before {
  border-color: var(--accent-orange);
  background: var(--accent-orange);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-orange) 18%, transparent);
}

.timeline .is-next span {
  font-weight: 650;
}

/* Files */
.file {
  display: block;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file b {
  display: inline-block;
  margin-right: 12px;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.file-out {
  position: relative;
  border: 1px dashed color-mix(in srgb, var(--accent-sky) 50%, var(--line));
  background: color-mix(in srgb, var(--accent-sky) 8%, var(--surface));
  color: var(--accent-sky);
  font-weight: 650;
}

.file-out .icon {
  margin-right: 10px;
  vertical-align: -0.125em;
}

/* Voice */
.wave-track {
  position: relative;
}

.wave {
  display: block;
  width: 100%;
  height: 48px;
  fill: var(--accent-teal);
}

.wave.wave-live {
  display: none;
}

.transcript {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
}

/* Approvals */
.queue {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.queue li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 12px;
  border-radius: 18px;
  background: var(--surface);
}

.queue-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: 1.1rem;
}

.queue-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.queue-text strong {
  overflow: hidden;
  font-size: 0.9375rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-text span {
  color: var(--ink-2);
  font-size: 0.8125rem;
}

.status {
  position: relative;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--surface-4);
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.status-waiting {
  background: var(--warning-container);
  color: var(--on-warning-container);
}

.status-done {
  background: var(--success-container);
  color: var(--on-success-container);
}

/* ------------------------------------------------------------------------------------------------
 * Built around your day: one panel, drawn like the app's Today screen.
 * --------------------------------------------------------------------------------------------- */

.day-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}

.day-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 3vw, 32px);
}

.day-col + .day-col {
  border-left: 1px solid var(--line);
}

.day-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day-label .icon {
  font-size: 1.05rem;
}

.day-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.day-line b {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.day-desc {
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ------------------------------------------------------------------------------------------------
 * How it's run: the one dark band, numbered in the colours of the mark's nodes.
 * --------------------------------------------------------------------------------------------- */

.band {
  margin-top: var(--section-space);
  padding-block: var(--section-space) calc(var(--section-space) - 40px);
  border-block: 1px solid light-dark(transparent, var(--line));
  background: var(--band-bg);
  color: var(--band-ink);
}

.band .eyebrow {
  color: var(--band-ink-2);
}

.band :is(h2, h3) {
  color: var(--band-ink);
}

.band .section-head {
  max-width: 54rem;
}

.band h2 .line {
  display: block;
}

.band h2 .line-quiet {
  color: var(--band-ink-2);
}

.band :focus-visible {
  outline-color: var(--band-accent);
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(32px, 6vw, 96px);
}

.principles li {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 8px;
  row-gap: 10px;
  padding-block: 32px 40px;
}

.principles li::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--band-line);
  transform-origin: 0 50%;
}

.principle-index {
  grid-row: span 2;
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 2.1;
}

.principles li:nth-child(1) .principle-index {
  color: #78d6d0;
}

.principles li:nth-child(2) .principle-index {
  color: #8cc4ff;
}

.principles li:nth-child(3) .principle-index {
  color: #8fd3f5;
}

.principles li:nth-child(4) .principle-index {
  color: #ffab73;
}

.principles p {
  color: var(--band-ink-2);
  font-size: 1rem;
  line-height: 1.65;
}

.principles p a {
  color: var(--band-ink);
  white-space: nowrap;
}

/* ------------------------------------------------------------------------------------------------
 * Closing: the page ends on the compass it opened with.
 * --------------------------------------------------------------------------------------------- */

.closing {
  padding-block: clamp(88px, 10vw, 136px);
  overflow-x: clip;
}

.closing-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  isolation: isolate;
}

.closing-orbit {
  position: absolute;
  z-index: -1;
  top: 44px;
  left: 50%;
  width: min(640px, 150vw);
  height: auto;
  translate: -50% -50%;
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1;
  opacity: 0.8;
  -webkit-mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 60%, transparent 100%);
}

.closing-mark {
  width: 88px;
  height: 88px;
  margin-bottom: 12px;
}

.closing .actions {
  margin-top: 16px;
}

/* ------------------------------------------------------------------------------------------------
 * Responsive
 * --------------------------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .tile-memory,
  .tile-actions {
    grid-column: span 12;
  }

  .tile-reason,
  .tile-remind,
  .tile-files,
  .tile-voice {
    grid-column: span 6;
  }

  .window-body {
    grid-template-columns: 188px minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .tile-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .day-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .day-col + .day-col {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .principles {
    grid-template-columns: minmax(0, 1fr);
  }

  .window-body {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .window-nav {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --send-rise: 360px;
  }

  .hero .actions {
    flex-direction: column;
    align-self: stretch;
    width: 100%;
  }

  .hero .actions .button {
    width: 100%;
  }

  .bento {
    gap: 12px;
  }

  .tile {
    padding: 20px;
    gap: 20px;
  }

  .tile-reason,
  .tile-remind,
  .tile-files,
  .tile-voice {
    grid-column: span 12;
  }

  .tile-visual {
    min-height: 0;
    padding: 14px;
  }

  .memory-list .extra,
  .queue .extra {
    display: none;
  }

  .memory-list li > span:nth-child(2) {
    white-space: normal;
  }

  .window-bar {
    grid-template-columns: 1fr auto;
  }

  .window-title {
    display: none;
  }

  .convo {
    padding: 24px 16px 16px;
    gap: 20px;
  }

  .results {
    grid-template-columns: minmax(0, 1fr);
  }

  .recall {
    border-radius: 14px;
  }

  .principles li {
    grid-template-columns: 44px minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .queue li {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .queue .status {
    grid-column: 2;
    justify-self: start;
  }

  .queue-icon {
    width: 36px;
    height: 36px;
  }

  .queue-text strong,
  .timeline span {
    white-space: normal;
  }

  .mode {
    padding-inline: 10px;
  }
}

@media (max-width: 380px) {
  .mode {
    padding: 5px 8px;
    font-size: 0.75rem;
  }
}

/* A phone on its side: bring the headline and the buttons back above the fold. */
@media (max-height: 500px) and (orientation: landscape) {
  :root {
    --text-display: clamp(2.25rem, 1rem + 6vh, 3.25rem);
  }

  .hero {
    padding-top: 16px;
  }

  .hero .chip {
    display: none;
  }

  .display {
    margin-top: 0;
  }

  .lede {
    margin-top: 16px;
  }

  .hero .actions {
    margin-top: 20px;
    flex-direction: row;
  }

  .hero .actions .button {
    width: auto;
  }
}

@media print {
  .hero-orbit,
  .closing-orbit,
  .product-aura,
  .product-controls,
  .site-footer,
  .hero .actions,
  .closing .actions {
    display: none !important;
  }

  .window {
    box-shadow: none;
  }

  .band {
    background: none;
    border-block: 1px solid #ccc;
  }

  .band :is(h2, h3, p, a, .eyebrow),
  .band h2 .line-quiet {
    color: #1b1a17;
  }

  .principles li:nth-child(n) .principle-index {
    color: #006a66;
  }

  :is(.tile, .window, .day-panel, .principles li) {
    break-inside: avoid;
  }
}

/* ------------------------------------------------------------------------------------------------
 * Motion
 *
 * Only with `.motion` (added by motion.js before first paint, removed by the pause control) and only
 * for visitors who have not asked for reduced motion. Entrances play once. The hero's chat demo is
 * the one loop: it runs only while its composer is on screen, holds still under the pointer, and
 * the "Pause animations" control beside it stops it. The tiles each tell their story once, as they
 * arrive, and keep their last frame.
 * --------------------------------------------------------------------------------------------- */

@property --sweep {
  syntax: "<angle>";
  inherits: false;
  initial-value: 360deg;
}

@media screen and (prefers-reduced-motion: no-preference) {
  /* --- Hero entrance ------------------------------------------------------------------------ */

  .motion .rise {
    animation: rise 1s var(--ease-out) both;
  }

  .motion .rise-3 {
    animation-delay: 380ms;
  }

  .motion .rise-4 {
    animation-delay: 480ms;
  }

  .motion .rise-5 {
    animation-delay: 620ms;
    animation-duration: 1.2s;
  }

  @keyframes rise {
    from {
      opacity: 0;
      translate: 0 24px;
    }
  }

  /* Each line of the headline arrives on its own, out of a soft focus. */
  .motion .display > span {
    animation: line-in 1.1s var(--ease-out) both;
  }

  .motion .display > span:nth-child(2) {
    animation-delay: 100ms;
  }

  .motion .display > span:nth-child(3) {
    animation-delay: 200ms;
  }

  @keyframes line-in {
    from {
      opacity: 0;
      filter: blur(10px);
      transform: translateY(0.3em);
    }
  }

  /* The ring behind the hero sweeps in once, from north, like a dial; then it holds still. */
  .motion .hero-orbit {
    -webkit-mask-image:
      radial-gradient(closest-side, #000 55%, transparent 100%),
      conic-gradient(#000 var(--sweep), transparent 0);
    mask-image:
      radial-gradient(closest-side, #000 55%, transparent 100%),
      conic-gradient(#000 var(--sweep), transparent 0);
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
    animation: orbit-sweep 2.4s var(--ease-out) 0.2s both;
  }

  @keyframes orbit-sweep {
    from {
      --sweep: 0deg;
    }
  }

  /* The compass finds north: one damped swing, sprung past north and back, then still. */
  .motion .home .site-header .brand .mark-needles,
  .motion .closing-inner.is-inview .mark-needles {
    animation: needle-settle 1.4s var(--ease-out) both;
    animation-timing-function: linear(0, 0.171, 0.404, 0.658, 0.897, 1.095, 1.238, 1.321, 1.347, 1.325, 1.268, 1.192, 1.109, 1.032, 0.968, 0.921, 0.895, 0.887, 0.895, 0.913, 0.938, 0.965, 0.99, 1.011, 1.026, 1.034, 1.037, 1.034, 1.028, 1.02, 1.011, 1.003, 0.996, 0.991, 0.989, 0.988, 0.989, 0.991, 0.994, 0.996, 1);
  }

  @keyframes needle-settle {
    from {
      transform: rotate(-60deg);
    }

    to {
      transform: rotate(0deg);
    }
  }

  /* The closing mark breathes for a few turns once it is in view, then rests. */
  .motion .closing-inner.is-inview .mark-live .mark-node {
    animation: node 3.2s var(--ease) 0.6s 3 both;
  }

  .motion .closing-inner.is-inview .mark-live .mark-node-ne {
    animation-delay: 1.4s;
  }

  .motion .closing-inner.is-inview .mark-live .mark-node-e {
    animation-delay: 2.2s;
  }

  .motion .closing-inner.is-inview .mark-live .mark-node-sw {
    animation-delay: 3s;
  }

  @keyframes node {
    0%,
    24%,
    100% {
      transform: scale(1);
    }

    12% {
      transform: scale(1.55);
    }
  }

  /* --- Loops hold still off screen, under the pointer, and when paused ------------------------ */

  /* Pseudo-elements cannot sit inside :is(), so each is named on its own. */
  .motion [data-loop]:not(.is-playing) *,
  .motion [data-loop]:not(.is-playing) *::before,
  .motion [data-loop]:not(.is-playing) *::after {
    animation-play-state: paused !important;
  }

  @media (hover: hover) {
    .motion .window:hover *,
    .motion .window:hover *::before,
    .motion .window:hover *::after {
      animation-play-state: paused !important;
    }
  }

  /* --- Reveal on scroll ----------------------------------------------------------------------- */

  .motion .reveal,
  .motion :is(.section-head, .closing-inner).reveal > * {
    transition:
      opacity var(--dur-3) var(--ease-out),
      translate var(--dur-3) var(--ease-out),
      scale var(--dur-3) var(--ease-out);
  }

  .motion .reveal:not(.is-inview):not(.section-head, .closing-inner) {
    opacity: 0;
    translate: 0 24px;
  }

  .motion :is(.section-head, .closing-inner).reveal:not(.is-inview) > * {
    opacity: 0;
    translate: 0 16px;
  }

  .motion :is(.section-head, .closing-inner).reveal > :nth-child(2) {
    transition-delay: 80ms;
  }

  .motion :is(.section-head, .closing-inner).reveal > :nth-child(3) {
    transition-delay: 160ms;
  }

  .motion :is(.section-head, .closing-inner).reveal > :nth-child(n + 4) {
    transition-delay: 240ms;
  }

  .motion .closing-inner.reveal:not(.is-inview) > .closing-mark {
    scale: 0.6;
  }

  /* Anything that takes focus is shown at once, so the focus ring is never faded out. */
  .motion .reveal:focus-within,
  .motion .reveal:focus-within > * {
    opacity: 1 !important;
    translate: none !important;
    transition-duration: 0s !important;
  }

  .motion .bento > :is(:nth-child(2), :nth-child(4)) {
    transition-delay: 90ms;
  }

  .motion .bento > :nth-child(5) {
    transition-delay: 180ms;
  }

  .motion .principles > :nth-child(2) {
    transition-delay: 120ms;
  }

  .motion .principles > :nth-child(3) {
    transition-delay: 60ms;
  }

  .motion .principles > :nth-child(4) {
    transition-delay: 180ms;
  }

  .motion .principles li::before {
    transition: scale 1.1s var(--ease-out) 0.15s;
  }

  .motion .principles li:not(.is-inview)::before {
    scale: 0 1;
  }

  .motion .day-panel .day-col {
    transition:
      opacity var(--dur-3) var(--ease-out),
      translate var(--dur-3) var(--ease-out);
  }

  .motion .day-panel .day-col:nth-child(2) {
    transition-delay: 120ms;
  }

  .motion .day-panel .day-col:nth-child(3) {
    transition-delay: 240ms;
  }

  .motion .day-panel:not(.is-inview) .day-col {
    opacity: 0;
    translate: 0 12px;
  }

  /* --- The product window settles flat as it scrolls into view -------------------------------- */

  @supports (animation-timeline: view()) {
    .motion .product {
      perspective: 2200px;
    }

    .motion .window {
      transform-origin: 50% 100%;
      animation: window-settle linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 42%;
    }

    @keyframes window-settle {
      from {
        transform: rotateX(16deg) scale(0.93);
      }
    }
  }

  /* --- The chat demo: one 16-second story in the product window --------------------------------
   *
   *   (entered at 9s, so the window first shows the approval waiting)
 *   0.1s  the request is typed into the composer, a word at a time; sent at 2.4s
   *   2.5s  the message rises from the composer into the thread
   *   3.3s  Omni's mark turns in and thinks: needles hunting, nodes lit in turn
   *   5.0s  the reply streams in, a few words at a time; then what it remembered,
   *         the reminder, and the approval, which waits
   *   9.4s  a pointer arrives, rests on Approve, and presses it (11.0s): "Approved",
   *         "Sending…", then "Sent to Team" (12.0s); "Needs you" clears
   *  15.0s  the thread lifts away and the story starts again
   * --------------------------------------------------------------------------------------------- */

  .motion :where(
      .demo-thread,
      .composer-placeholder,
      .composer-draft,
      .composer-draft > span,
      .demo-send,
      .demo-user,
      .demo-avatar,
      .demo-avatar .mark-node,
      .demo-avatar .mark-core,
      .demo-avatar .mark-needles,
      .demo-typing,
      .demo-reply > span,
      .demo-recall,
      .demo-reminder,
      .demo-tick,
      .demo-approval,
      .state,
      .demo-approve,
      .btn-idle,
      .btn-done,
      .demo-edit,
      .cursor,
      .demo-count
    ) {
    animation-duration: 16s;
    animation-timing-function: var(--ease-out);
    animation-iteration-count: infinite;
    animation-fill-mode: both;
    animation-delay: var(--demo-start);
  }

  /* The story is entered 9s in, with the approval waiting: that is the frame the window rests on
     before it plays, and the first thing it does when it does play is let the pointer press Approve. */
  .motion .window { --demo-start: -9s; }

  .motion .demo-thread { animation-name: demo-thread; }
  @keyframes demo-thread {
    0%, 15.2% { opacity: 0; transform: none; }
    15.6%, 93.5% { opacity: 1; transform: none; animation-timing-function: var(--ease-in); }
    97%, 100% { opacity: 0; transform: translateY(-12px); }
  }

  .motion .composer-placeholder { animation-name: demo-placeholder; }
  @keyframes demo-placeholder {
    0%, 0.4% { opacity: 1; }
    0.6%, 16.4% { opacity: 0; }
    17.6%, 100% { opacity: 1; }
  }

  .motion .composer-draft { visibility: visible; animation-name: demo-draft; }
  @keyframes demo-draft {
    0%, 15.6% { opacity: 1; }
    16.3%, 100% { opacity: 0; }
  }

  /* Each typed word has its own keyframes (generated), so the loop seam can never show a word early. */
  .motion .composer-draft > span { animation-timing-function: linear; }
  .motion .composer-draft > span:nth-child(1) { animation-name: demo-w1; }
  @keyframes demo-w1 { 0%, 0.62% { opacity: 0; } 1.12%, 100% { opacity: 1; } }
  .motion .composer-draft > span:nth-child(2) { animation-name: demo-w2; }
  @keyframes demo-w2 { 0%, 1.38% { opacity: 0; } 1.88%, 100% { opacity: 1; } }
  .motion .composer-draft > span:nth-child(3) { animation-name: demo-w3; }
  @keyframes demo-w3 { 0%, 2.12% { opacity: 0; } 2.62%, 100% { opacity: 1; } }
  .motion .composer-draft > span:nth-child(4) { animation-name: demo-w4; }
  @keyframes demo-w4 { 0%, 2.88% { opacity: 0; } 3.38%, 100% { opacity: 1; } }
  .motion .composer-draft > span:nth-child(5) { animation-name: demo-w5; }
  @keyframes demo-w5 { 0%, 3.62% { opacity: 0; } 4.12%, 100% { opacity: 1; } }
  .motion .composer-draft > span:nth-child(6) { animation-name: demo-w6; }
  @keyframes demo-w6 { 0%, 4.38% { opacity: 0; } 4.88%, 100% { opacity: 1; } }
  .motion .composer-draft > span:nth-child(7) { animation-name: demo-w7; }
  @keyframes demo-w7 { 0%, 5.12% { opacity: 0; } 5.62%, 100% { opacity: 1; } }
  .motion .composer-draft > span:nth-child(8) { animation-name: demo-w8; }
  @keyframes demo-w8 { 0%, 5.88% { opacity: 0; } 6.38%, 100% { opacity: 1; } }
  .motion .composer-draft > span:nth-child(9) { animation-name: demo-w9; }
  @keyframes demo-w9 { 0%, 6.62% { opacity: 0; } 7.12%, 100% { opacity: 1; } }
  .motion .composer-draft > span:nth-child(10) { animation-name: demo-w10; }
  @keyframes demo-w10 { 0%, 7.38% { opacity: 0; } 7.88%, 100% { opacity: 1; } }
  .motion .composer-draft > span:nth-child(11) { animation-name: demo-w11; }
  @keyframes demo-w11 { 0%, 8.12% { opacity: 0; } 8.62%, 100% { opacity: 1; } }
  .motion .composer-draft > span:nth-child(12) { animation-name: demo-w12; }
  @keyframes demo-w12 { 0%, 8.88% { opacity: 0; } 9.38%, 100% { opacity: 1; } }
  .motion .composer-draft > span:nth-child(13) { animation-name: demo-w13; }
  @keyframes demo-w13 { 0%, 9.62% { opacity: 0; } 10.12%, 100% { opacity: 1; } }
  .motion .composer-draft > span:nth-child(14) { animation-name: demo-w14; }
  @keyframes demo-w14 { 0%, 10.38% { opacity: 0; } 10.88%, 100% { opacity: 1; } }
  .motion .composer-draft > span:nth-child(15) { animation-name: demo-w15; }
  @keyframes demo-w15 { 0%, 11.12% { opacity: 0; } 11.62%, 100% { opacity: 1; } }
  .motion .composer-draft > span:nth-child(16) { animation-name: demo-w16; }
  @keyframes demo-w16 { 0%, 11.88% { opacity: 0; } 12.38%, 100% { opacity: 1; } }

  .motion .demo-send { animation-name: demo-send; }
  @keyframes demo-send {
    0%, 14.6% { transform: scale(1); }
    15.3% { transform: scale(0.84); }
    16.4%, 100% { transform: scale(1); }
  }

  .motion .demo-user { transform-origin: 100% 100%; animation-name: demo-user; }
  @keyframes demo-user {
    0%, 15.8% { opacity: 0; transform: translateY(var(--send-rise)) scale(0.96); animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
    17.2% { opacity: 1; }
    19.6%, 100% { opacity: 1; transform: none; }
  }

  .motion .demo-avatar { animation-name: demo-avatar; }
  @keyframes demo-avatar {
    0%, 20.5% { opacity: 0; transform: scale(0.5) rotate(-90deg); }
    23%, 100% { opacity: 1; transform: none; }
  }

  .motion .demo-avatar .mark-needles { animation-name: demo-needles; animation-timing-function: ease-in-out; }
  @keyframes demo-needles {
    0%, 22% { transform: rotate(0deg); }
    31%, 100% { transform: rotate(720deg); }
  }

  .motion .demo-avatar .mark-node { animation-name: demo-node; }
  .motion .demo-avatar .mark-node-ne { animation-delay: calc(var(--demo-start) + 0.3s); }
  .motion .demo-avatar .mark-node-e { animation-delay: calc(var(--demo-start) + 0.6s); }
  .motion .demo-avatar .mark-node-sw { animation-delay: calc(var(--demo-start) + 0.9s); }
  @keyframes demo-node {
    0%, 22%, 24.5%, 26.5%, 29%, 100% { transform: scale(1); }
    23.2%, 27.7% { transform: scale(1.7); }
  }

  .motion .demo-avatar .mark-core { animation-name: demo-core; }
  @keyframes demo-core {
    0%, 22%, 26.5%, 31%, 100% { transform: scale(1); }
    24.2%, 28.8% { transform: scale(0.8); }
  }

  .motion .demo-typing { display: inline-flex; animation-name: demo-typing; }
  @keyframes demo-typing {
    0%, 21% { opacity: 0; transform: scale(0.8); }
    22.5%, 30.2% { opacity: 1; transform: none; }
    31%, 100% { opacity: 0; transform: none; }
  }

  .motion .typing i { animation: typing-dot 1.1s ease-in-out infinite; }
  .motion .typing i:nth-child(2) { animation-delay: 0.15s; }
  .motion .typing i:nth-child(3) { animation-delay: 0.3s; }
  @keyframes typing-dot {
    0%, 60%, 100% { opacity: 0.4; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-4px); }
  }

  /* The reply streams in a few words at a time, the way a model's answer arrives. */
  .motion .demo-reply > span { animation-timing-function: linear; }
  .motion .demo-reply > span:nth-child(1) { animation-name: demo-r1; }
  @keyframes demo-r1 { 0%, 30.94% { opacity: 0; } 32.14%, 100% { opacity: 1; } }
  .motion .demo-reply > span:nth-child(2) { animation-name: demo-r2; }
  @keyframes demo-r2 { 0%, 31.81% { opacity: 0; } 33.01%, 100% { opacity: 1; } }
  .motion .demo-reply > span:nth-child(3) { animation-name: demo-r3; }
  @keyframes demo-r3 { 0%, 32.69% { opacity: 0; } 33.89%, 100% { opacity: 1; } }
  .motion .demo-reply > span:nth-child(4) { animation-name: demo-r4; }
  @keyframes demo-r4 { 0%, 33.56% { opacity: 0; } 34.76%, 100% { opacity: 1; } }
  .motion .demo-reply > span:nth-child(5) { animation-name: demo-r5; }
  @keyframes demo-r5 { 0%, 34.44% { opacity: 0; } 35.64%, 100% { opacity: 1; } }
  .motion .demo-reply > span:nth-child(6) { animation-name: demo-r6; }
  @keyframes demo-r6 { 0%, 35.31% { opacity: 0; } 36.51%, 100% { opacity: 1; } }
  .motion .demo-reply > span:nth-child(7) { animation-name: demo-r7; }
  @keyframes demo-r7 { 0%, 36.19% { opacity: 0; } 37.39%, 100% { opacity: 1; } }
  .motion .demo-reply > span:nth-child(8) { animation-name: demo-r8; }
  @keyframes demo-r8 { 0%, 37.06% { opacity: 0; } 38.26%, 100% { opacity: 1; } }
  .motion .demo-reply > span:nth-child(9) { animation-name: demo-r9; }
  @keyframes demo-r9 { 0%, 37.94% { opacity: 0; } 39.14%, 100% { opacity: 1; } }
  .motion .demo-reply > span:nth-child(10) { animation-name: demo-r10; }
  @keyframes demo-r10 { 0%, 38.81% { opacity: 0; } 40.01%, 100% { opacity: 1; } }
  .motion .demo-reply > span:nth-child(11) { animation-name: demo-r11; }
  @keyframes demo-r11 { 0%, 39.69% { opacity: 0; } 40.89%, 100% { opacity: 1; } }
  .motion .demo-reply > span:nth-child(12) { animation-name: demo-r12; }
  @keyframes demo-r12 { 0%, 40.56% { opacity: 0; } 41.76%, 100% { opacity: 1; } }
  .motion .demo-reply > span:nth-child(13) { animation-name: demo-r13; }
  @keyframes demo-r13 { 0%, 41.44% { opacity: 0; } 42.64%, 100% { opacity: 1; } }

  .motion .demo-recall { animation-name: demo-recall; }
  @keyframes demo-recall {
    0%, 42.5% { opacity: 0; transform: translateY(8px); }
    45%, 100% { opacity: 1; transform: none; }
  }

  .motion .demo-reminder { animation-name: demo-reminder; }
  @keyframes demo-reminder {
    0%, 45.5% { opacity: 0; transform: translateY(14px) scale(0.98); }
    48.5%, 100% { opacity: 1; transform: none; }
  }

  .motion .demo-tick { animation-name: demo-tick; }
  @keyframes demo-tick {
    0%, 48% { transform: scale(0); }
    49.8% { transform: scale(1.35); }
    51%, 100% { transform: scale(1); }
  }

  .motion .demo-approval { animation-name: demo-approval; }
  @keyframes demo-approval {
    0%, 49.5% {
      opacity: 0;
      transform: translateY(14px) scale(0.98);
      border-color: color-mix(in srgb, var(--warning) 36%, var(--line));
      background-color: color-mix(in srgb, var(--warning-container) 22%, var(--surface));
    }
    52.5%, 74% {
      opacity: 1;
      transform: none;
      border-color: color-mix(in srgb, var(--warning) 36%, var(--line));
      background-color: color-mix(in srgb, var(--warning-container) 22%, var(--surface));
    }
    76%, 100% {
      opacity: 1;
      transform: none;
      border-color: color-mix(in srgb, var(--success) 40%, var(--line));
      background-color: color-mix(in srgb, var(--success-container) 26%, var(--surface));
    }
  }

  /* "Needs your approval", then "Sending…", then "Sent to Team". */
  .motion .state-sending,
  .motion .state-sent {
    display: inline-flex;
  }

  .motion .state-waiting { animation-name: demo-waiting; }
  @keyframes demo-waiting {
    0%, 70.6% { opacity: 1; transform: none; }
    71.4%, 100% { opacity: 0; transform: translateY(-4px); }
  }

  .motion .state-sending { animation-name: demo-sending; }
  @keyframes demo-sending {
    0%, 70.8% { opacity: 0; transform: translateY(4px); }
    71.6%, 73.8% { opacity: 1; transform: none; }
    74.6%, 100% { opacity: 0; transform: translateY(-4px); }
  }

  .motion .state-sent { animation-name: demo-sent; }
  @keyframes demo-sent {
    0%, 74.4% { opacity: 0; transform: translateY(4px); }
    75.4%, 100% { opacity: 1; transform: none; }
  }

  .motion .demo-approve { animation-name: demo-approve; }
  @keyframes demo-approve {
    0%, 65.5% { transform: scale(1); background-color: var(--primary); color: var(--on-primary); }
    66.5%, 68.4% { transform: scale(1); background-color: var(--primary-hover); color: var(--on-primary); }
    69.2% { transform: scale(0.94); background-color: var(--primary-hover); color: var(--on-primary); }
    70% { transform: scale(1); background-color: var(--primary-hover); color: var(--on-primary); }
    71.5%, 100% { transform: scale(1); background-color: var(--success); color: var(--on-success); }
  }

  .motion .btn-idle { animation-name: demo-btn-idle; }
  @keyframes demo-btn-idle {
    0%, 69.6% { opacity: 1; }
    70.2%, 100% { opacity: 0; }
  }

  .motion .btn-done { display: inline-flex; animation-name: demo-btn-done; }
  @keyframes demo-btn-done {
    0%, 69.8% { opacity: 0; transform: scale(0.85); }
    70.8%, 100% { opacity: 1; transform: none; }
  }

  .motion .demo-edit { animation-name: demo-edit; }
  @keyframes demo-edit {
    0%, 70.4% { opacity: 1; transform: none; }
    72.4%, 100% { opacity: 0; transform: scale(0.9); }
  }

  /* A pointer fades in already moving, on a slight arc; it rests on Approve, presses, and leaves. */
  .motion .cursor {
    position: absolute;
    top: 55%;
    left: 58%;
    display: block;
    width: 1.4em;
    height: 1.4em;
    fill: var(--ink);
    stroke: var(--surface);
    stroke-width: 1.6;
    stroke-linejoin: round;
    filter: drop-shadow(0 2px 3px rgb(0 0 0 / 28%));
    pointer-events: none;
    animation-name: demo-cursor;
  }

  @keyframes demo-cursor {
    0%, 59% { opacity: 0; transform: translate(9em, 2.6em); animation-timing-function: linear; }
    60.5% { opacity: 1; transform: translate(7.4em, 2em); animation-timing-function: cubic-bezier(0.3, 0, 0.2, 1); }
    64.5% { transform: translate(1.4em, 0.9em); animation-timing-function: cubic-bezier(0.2, 0, 0, 1); }
    66.5%, 68.4% { transform: translate(0, 0); }
    69.2% { transform: translate(0, 0) scale(0.88); }
    70%, 72% { opacity: 1; transform: translate(0, 0); animation-timing-function: var(--ease-in); }
    75%, 100% { opacity: 0; transform: translate(0.8em, 1.2em); }
  }

  /* "Needs you" counts the approval while it waits, and lets it go once it is sent. */
  .motion .demo-count { animation-name: demo-count; }
  @keyframes demo-count {
    0%, 52% { opacity: 0; transform: scale(0); }
    53.5% { opacity: 1; transform: scale(1.3); }
    54.5%, 74.5% { opacity: 1; transform: scale(1); }
    76%, 100% { opacity: 0; transform: scale(0); }
  }

  .motion .live-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: currentColor;
    animation: ping 2.4s var(--ease-out) infinite;
  }

  @keyframes ping {
    from { opacity: 0.6; transform: scale(1); }
    to { opacity: 0; transform: scale(2.8); }
  }

  /* --- The tiles: each tells its story once, as it arrives, and keeps its last frame ---------- */

  .motion .tile-reason { --demo-delay: 0.8s; }
  .motion .tile-files { --demo-delay: 0.5s; }
  .motion .tile-voice { --demo-delay: 1s; }

  /* Memory: a search types, the memory that matches lifts, the rest recede. */
  .motion .memory-query { display: inline-flex; }

  .motion .tile-memory.is-inview .memory-placeholder {
    animation: fade-out var(--dur-1) linear 0.9s both;
  }

  .motion .tile-memory .memory-query { opacity: 0; }

  .motion .tile-memory.is-inview .memory-query {
    animation: type-in 0.7s steps(6, end) 1s both;
  }

  .motion .tile-memory.is-inview .caret {
    animation: caret 1s steps(1) 1.7s 3;
  }

  .motion .tile-memory.is-inview .memory-hit {
    animation: memory-hit var(--dur-3) var(--ease-out) 1.9s both;
  }

  .motion .tile-memory.is-inview .memory-list li:not(.memory-hit) {
    animation: memory-dim var(--dur-3) var(--ease-out) 1.9s both;
  }

  .motion .tile-memory.is-inview .memory-hit .pin {
    animation: pin-drop 0.7s var(--ease-out) 2s both;
  }

  @keyframes fade-out {
    to { opacity: 0; }
  }

  @keyframes type-in {
    from { opacity: 1; clip-path: inset(0 100% 0 0); }
    to { opacity: 1; clip-path: inset(0 0 0 0); }
  }

  @keyframes caret {
    50% { opacity: 0; }
  }

  @keyframes memory-hit {
    to {
      background-color: color-mix(in srgb, var(--accent-teal) 9%, var(--surface));
      box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent-teal) 45%, transparent);
    }
  }

  @keyframes memory-dim {
    to { opacity: 0.42; }
  }

  @keyframes pin-drop {
    40% { transform: translateY(-3px) rotate(-14deg); }
  }

  /* Routing: each request arrives, the model it went to lights up in the modes above, and all three
     are left in view. */
  .motion .tile-reason .route { opacity: 0; }

  .motion .tile-reason.is-inview .route {
    animation: route-in var(--dur-3) var(--ease-out) calc(var(--demo-delay) + var(--at)) both;
  }

  .motion .tile-reason.is-inview .route-a {
    animation: chip-pop var(--dur-2) var(--ease-out) calc(var(--demo-delay) + var(--at) + 0.3s) both;
  }

  .motion .tile-reason.is-inview .mode-fast,
  .motion .tile-reason.is-inview .mode-deep,
  .motion .tile-reason.is-inview .mode-fusion {
    animation: mode-light 1.3s var(--ease) calc(var(--demo-delay) + var(--at) + 0.3s) both;
  }

  .motion .tile-reason :is(.route-fast, .mode-fast) { --at: 0s; }
  .motion .tile-reason :is(.route-deep, .mode-deep) { --at: 1s; }
  .motion .tile-reason :is(.route-fusion, .mode-fusion) { --at: 2s; }

  @keyframes route-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes chip-pop {
    from { opacity: 0; transform: scale(0.6); }
  }

  @keyframes mode-light {
    0%, 100% { color: var(--ink-2); background-color: transparent; }
    20%, 70% { color: var(--accent-blue-text); background-color: color-mix(in srgb, var(--accent-blue) 14%, var(--surface)); }
  }

  /* Reminders: the day's line draws down, the items land, and the next one rings a few times. */
  .motion .timeline::before {
    transform-origin: 50% 0;
    transition: scale 1.1s var(--ease-out) 0.2s;
  }

  .motion .tile-remind:not(.is-inview) .timeline::before {
    scale: 1 0;
  }

  .motion .timeline li {
    transition:
      opacity var(--dur-3) var(--ease-out),
      translate var(--dur-3) var(--ease-out);
  }

  .motion .timeline li:nth-child(2) { transition-delay: 0.15s; }
  .motion .timeline li:nth-child(3) { transition-delay: 0.3s; }

  .motion .tile-remind:not(.is-inview) .timeline li {
    opacity: 0;
    translate: -10px 0;
  }

  .motion .tile-remind.is-inview .timeline .is-next::after {
    content: "";
    position: absolute;
    left: 58px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent-orange);
    animation: ping 2.4s var(--ease-out) 0.8s 3 both;
  }

  /* Files: what you share lands, and becomes an artifact with a single pass of light. */
  .motion .files-visual .file {
    transition:
      opacity var(--dur-3) var(--ease-out),
      translate var(--dur-3) var(--ease-out),
      scale var(--dur-3) var(--ease-out);
  }

  .motion .files-visual .file:nth-child(2) { transition-delay: 0.15s; }
  .motion .files-visual .file-out { transition-delay: calc(var(--demo-delay) + 0.5s); }

  .motion .tile-files:not(.is-inview) .file {
    opacity: 0;
    translate: -14px 0;
  }

  .motion .tile-files:not(.is-inview) .file-out {
    translate: 0 8px;
    scale: 0.96;
  }

  .motion .tile-files.is-inview .file-out .icon {
    animation: sparkle 0.9s var(--ease-out) calc(var(--demo-delay) + 1.1s) both;
  }

  .motion .tile-files.is-inview .file-out::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, var(--shimmer) 50%, transparent 70%);
    animation: shimmer 1.2s ease-in-out calc(var(--demo-delay) + 1.2s) both;
  }

  @keyframes sparkle {
    from { transform: rotate(-180deg) scale(0.6); }
  }

  @keyframes shimmer {
    from { translate: -100% 0; }
    to { translate: 100% 0; }
  }

  /* Voice: the recording plays through once, and the transcript arrives in time with it. */
  .motion .wave:not(.wave-live) {
    fill: var(--line-strong);
  }

  .motion .wave.wave-live {
    position: absolute;
    inset: 0;
    display: block;
    clip-path: inset(0 100% 0 0);
  }

  .motion .tile-voice.is-inview .wave-live {
    animation: play-through 4.2s linear calc(var(--demo-delay) + 0.3s) both;
  }

  @keyframes play-through {
    to { clip-path: inset(0 0 0 0); }
  }

  .motion .tile-voice .transcript span { opacity: 0; }

  .motion .tile-voice.is-inview .transcript span {
    animation: word-in var(--dur-2) var(--ease-out) both;
  }
  .motion .tile-voice.is-inview .transcript span:nth-child(1) { animation-delay: calc(var(--demo-delay) + 0.45s); }
  .motion .tile-voice.is-inview .transcript span:nth-child(2) { animation-delay: calc(var(--demo-delay) + 0.78s); }
  .motion .tile-voice.is-inview .transcript span:nth-child(3) { animation-delay: calc(var(--demo-delay) + 1.11s); }
  .motion .tile-voice.is-inview .transcript span:nth-child(4) { animation-delay: calc(var(--demo-delay) + 1.44s); }
  .motion .tile-voice.is-inview .transcript span:nth-child(5) { animation-delay: calc(var(--demo-delay) + 1.77s); }
  .motion .tile-voice.is-inview .transcript span:nth-child(6) { animation-delay: calc(var(--demo-delay) + 2.10s); }
  .motion .tile-voice.is-inview .transcript span:nth-child(7) { animation-delay: calc(var(--demo-delay) + 2.43s); }
  .motion .tile-voice.is-inview .transcript span:nth-child(8) { animation-delay: calc(var(--demo-delay) + 2.76s); }
  .motion .tile-voice.is-inview .transcript span:nth-child(9) { animation-delay: calc(var(--demo-delay) + 3.09s); }
  .motion .tile-voice.is-inview .transcript span:nth-child(10) { animation-delay: calc(var(--demo-delay) + 3.42s); }
  .motion .tile-voice.is-inview .transcript span:nth-child(11) { animation-delay: calc(var(--demo-delay) + 3.75s); }
  .motion .tile-voice.is-inview .transcript span:nth-child(12) { animation-delay: calc(var(--demo-delay) + 4.08s); }

  @keyframes word-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* Approvals: the queue fills, each decision shows, and what needs you asks a few times. */
  .motion .queue li {
    transition:
      opacity var(--dur-3) var(--ease-out),
      translate var(--dur-3) var(--ease-out);
  }

  .motion .queue li:nth-child(2) { transition-delay: 0.15s; }
  .motion .queue li:nth-child(3) { transition-delay: 0.3s; }

  .motion .tile-actions:not(.is-inview) .queue li {
    opacity: 0;
    translate: 24px 0;
  }

  .motion .queue .status {
    transition:
      opacity var(--dur-2) var(--ease-out) 0.7s,
      scale var(--dur-2) var(--ease-out) 0.7s;
  }

  .motion .tile-actions:not(.is-inview) .status {
    opacity: 0;
    scale: 0.7;
  }

  .motion .tile-actions.is-inview .status-waiting::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--warning) 35%, transparent);
    opacity: 0;
    animation: ring 2.4s var(--ease-out) 1.2s 3;
  }

  @keyframes ring {
    0% { opacity: 1; transform: scale(0.9); }
    70%, 100% { opacity: 0; transform: scale(1.15); }
  }
}
