/* Horsefly Workspace flagship tour.
   Palette: the 2026 brand guide (HFT-7087) - Midnight is the brand, Cobalt Muted the
   accent, Vapor/Ice the washes, Bright Yellow the one call to action. */
:root {
  --midnight: #0b1b33;
  --midnight-deep: #070d17;
  --cobalt: #3f6e9e;
  --horizon: #9cb8d2;
  --ice: #d5e1ee;
  --vapor: #edf3f8;
  --ink: #191412;
  --graphite: #2f3540;
  --slate: #4a5361;
  --pewter: #7c8694;
  --yellow: #f2c310;
  --line: #e6eaef;

  --font-main: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-title: "Roboto Slab", Georgia, serif;

  --ease-camera: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-camera: 1100ms;
  --t-device: 1300ms;
  --t-fade: 450ms;
  --t-cursor: 820ms;
}

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

html,
body {
  margin: 0;
  height: 100%;
  background: var(--midnight-deep);
  color: var(--vapor);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font: inherit;
}

.app {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 64px 1fr auto auto;
  height: 100dvh;
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 12% 8%, rgba(63, 110, 158, 0.32), transparent 62%),
    radial-gradient(900px 600px at 92% 96%, rgba(156, 184, 210, 0.16), transparent 60%),
    linear-gradient(160deg, var(--midnight) 0%, var(--midnight-deep) 78%);
}

/* faint drafting grid behind the stage */
.app::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(213, 225, 238, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(213, 225, 238, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 78%);
}

/* ---------- top bar ---------- */
.topbar {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  display: block;
  width: 112px;
  height: auto;
  filter: brightness(0) invert(1);
}

.brand-divider {
  width: 1px;
  height: 22px;
  background: rgba(213, 225, 238, 0.28);
}

.brand-product {
  font-family: var(--font-title);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ice);
}

.controls {
  display: flex;
  gap: 8px;
}

.ctrl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 12px;
  border: 1px solid rgba(213, 225, 238, 0.22);
  border-radius: 999px;
  background: rgba(213, 225, 238, 0.06);
  color: var(--vapor);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.ctrl:hover {
  background: rgba(213, 225, 238, 0.14);
  border-color: rgba(213, 225, 238, 0.4);
}

.ctrl:focus-visible,
.btn:focus-visible,
.chapter:focus-visible {
  outline: 2px solid var(--horizon);
  outline-offset: 2px;
}

.ctrl svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.ctrl .i-pause,
.ctrl[aria-pressed="true"] .i-play {
  display: none;
}

.ctrl[aria-pressed="true"] .i-pause {
  display: block;
}

#sound .i-sound-off,
#sound[aria-pressed="false"] .i-sound-on {
  display: none;
}

#sound[aria-pressed="false"] .i-sound-off {
  display: block;
}

.app[data-mode="intro"] .controls #restart {
  visibility: hidden;
}

/* ---------- stage ---------- */
.scene {
  position: relative;
  min-height: 0;
}

.rig {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  perspective: 2600px;
  perspective-origin: 50% 40%;
}

.device {
  position: relative;
  transform-style: preserve-3d;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(213, 225, 238, 0.14),
    0 50px 100px -30px rgba(0, 0, 0, 0.7),
    0 30px 60px -30px rgba(7, 13, 23, 0.8);
  transition:
    transform var(--t-device) var(--ease-out),
    filter var(--t-device) var(--ease-out);
  will-change: transform;
}

/* camera angles on the whole device */
.app[data-mode="intro"] .device {
  transform: translateX(var(--hero-x, 22%)) translateY(1%) scale(var(--hero-k, 0.7)) rotateX(9deg) rotateY(-17deg) rotateZ(1.5deg);
}

.app[data-mode="outro"] .device {
  transform: translateX(calc(var(--hero-x, 22%) * -1)) translateY(1%) scale(var(--hero-k, 0.7)) rotateX(9deg) rotateY(17deg) rotateZ(-1.5deg);
}

.app[data-pull="left"] .device {
  transform: scale(0.8) rotateX(11deg) rotateY(12deg) rotateZ(-1deg);
  filter: brightness(0.32) saturate(0.6) blur(1.5px);
}

.app[data-pull="right"] .device {
  transform: scale(0.8) rotateX(11deg) rotateY(-12deg) rotateZ(1deg);
  filter: brightness(0.32) saturate(0.6) blur(1.5px);
}

.app[data-mode="intro"] .device,
.app[data-mode="outro"] .device {
  animation: hover-float 7s ease-in-out infinite alternate;
}

@keyframes hover-float {
  from {
    translate: 0 -6px;
  }
  to {
    translate: 0 8px;
  }
}

.chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
  background: linear-gradient(#fbfcfd, #f1f4f7);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}
.dot:nth-child(2) {
  background: #febc2e;
}
.dot:nth-child(3) {
  background: #28c840;
}

.url {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 340px;
  height: 24px;
  margin: 0 auto;
  padding: 0 14px;
  border-radius: 8px;
  background: #e6ebf1;
  color: var(--slate);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  translate: -24px 0;
}

.url svg {
  flex: none;
  width: 12px;
  height: 12px;
  fill: var(--pewter);
}

.screen {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 14px 14px;
  /* shows around the screenshot when the camera pulls back to fit a large spotlight */
  background:
    radial-gradient(circle at 50% 40%, #e9eef4, #dfe5ec);
  container-type: size;
}

.cam {
  box-shadow: 0 0 0 1px rgba(11, 27, 51, 0.06), 0 18px 40px -18px rgba(11, 27, 51, 0.35);
}

.layers,
.layer,
.fx,
.callouts {
  position: absolute;
  inset: 0;
}

.layer {
  overflow: hidden;
}

.cam {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.cam img {
  display: block;
  width: 100%;
  height: 100%;
}

.web-box {
  transform-origin: 0 0;
}

.web-box iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

/* ---------- pointers: highlight ring, beacons, leader, cursor ---------- */
.fx {
  pointer-events: none;
  z-index: 2;
}

.spot {
  position: absolute;
  border: 2px solid var(--cobalt);
  border-radius: 14px;
  box-shadow:
    0 0 0 5px rgba(63, 110, 158, 0.22),
    0 0 30px 6px rgba(156, 184, 210, 0.45),
    0 0 0 200vmax rgba(7, 13, 23, 0.46);
  opacity: 0;
  scale: 1.06;
  transition:
    opacity 380ms ease,
    scale 520ms var(--ease-out);
}

.spot.on {
  opacity: 1;
  scale: 1;
}

.beacon {
  position: absolute;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--cobalt);
  box-shadow: 0 2px 8px rgba(11, 27, 51, 0.45);
  animation: beacon-in 420ms var(--ease-out) both;
}

.beacon::before,
.beacon::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--cobalt);
  animation: beacon-pulse 1.8s ease-out infinite;
}

.beacon::after {
  animation-delay: 0.9s;
}

@keyframes beacon-in {
  from {
    opacity: 0;
    scale: 0.2;
  }
}

@keyframes beacon-pulse {
  from {
    opacity: 0.85;
    scale: 1;
  }
  to {
    opacity: 0;
    scale: 3.2;
  }
}

.leader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0;
  transition: opacity 300ms ease;
}

.leader.on {
  opacity: 1;
}

.leader path {
  fill: none;
  stroke: var(--cobalt);
  stroke-width: 2;
  stroke-dasharray: 5 6;
  stroke-linecap: round;
}

.leader circle {
  fill: var(--cobalt);
  stroke: #fff;
  stroke-width: 2;
}

.cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  margin: -4px 0 0 -5px;
  opacity: 0;
  transition:
    transform var(--t-cursor) cubic-bezier(0.45, 0, 0.2, 1),
    opacity 300ms ease;
  filter: drop-shadow(0 4px 6px rgba(7, 13, 23, 0.35));
  z-index: 3;
}

.cursor.on {
  opacity: 1;
}

.cursor svg {
  width: 28px;
  height: 28px;
  fill: var(--midnight);
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linejoin: round;
  transition: scale 120ms ease;
  transform-origin: 5px 4px;
}

.cursor.press svg {
  scale: 0.82;
}

.ripple {
  position: absolute;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: rgba(63, 110, 158, 0.3);
  border: 2px solid var(--cobalt);
  animation: ripple 560ms var(--ease-out) forwards;
  pointer-events: none;
}

@keyframes ripple {
  from {
    opacity: 1;
    scale: 0.2;
  }
  to {
    opacity: 0;
    scale: 1.6;
  }
}

/* ---------- callout card ---------- */
.callouts {
  z-index: 4;
  pointer-events: none;
}

.callout {
  position: absolute;
  width: var(--card-w, 348px);
  padding: 20px 22px 16px;
  border-radius: 16px;
  background: #fff;
  color: var(--graphite);
  box-shadow:
    0 0 0 1px rgba(11, 27, 51, 0.06),
    0 24px 60px -14px rgba(7, 13, 23, 0.5),
    0 8px 20px -8px rgba(7, 13, 23, 0.25);
  pointer-events: auto;
  overflow: hidden;
  animation: card-in 520ms var(--ease-out) both;
}

.callout.leaving {
  animation: card-out 220ms ease forwards;
}

.callout.measuring {
  visibility: hidden;
  animation: none;
  left: 0;
  top: 0;
}

/* The wide, short "lower third" used above or below a wide spotlight. */
.callout.band {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(0, 2.2fr) auto;
  grid-template-rows: auto 1fr;
  column-gap: 24px;
  padding: 18px 22px 16px;
}

.callout.band .callout-eyebrow {
  grid-column: 1;
  grid-row: 1;
}

.callout.band .callout-title {
  grid-column: 1;
  grid-row: 2;
  margin: 6px 0 0;
  font-size: 19px;
}

.callout.band .callout-body {
  grid-column: 2;
  grid-row: 1 / span 2;
  font-size: 14px;
  line-height: 1.55;
}

.callout.band .callout-foot {
  grid-column: 3;
  grid-row: 1 / span 2;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

@keyframes card-in {
  from {
    opacity: 0;
    translate: var(--from-x, 0) var(--from-y, 14px);
    scale: 0.98;
  }
}

@keyframes card-out {
  to {
    opacity: 0;
    translate: 0 6px;
  }
}

.callout-timer {
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: rgba(63, 110, 158, 0.14);
}

.callout-timer span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--cobalt);
}

.callout-eyebrow {
  margin: 0;
  color: var(--cobalt);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.callout-title {
  margin: 6px 0 8px;
  color: var(--midnight);
  font-family: var(--font-title);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.25;
}

.callout-body {
  font-size: 14.5px;
  line-height: 1.6;
}

.callout-body p {
  margin: 0;
}

.callout-body strong {
  color: var(--midnight);
  font-weight: 600;
}

.callout-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.callout-count {
  color: var(--slate);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.callout-actions {
  display: flex;
  gap: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    translate 0.2s;
}

.btn-brand {
  background: var(--midnight);
  color: #fff;
}
.btn-brand:hover {
  background: #112b50;
}

.btn-ghost {
  border-color: #d8dce1;
  background: #fff;
  color: var(--graphite);
}
.btn-ghost:hover {
  border-color: #b2b7b6;
}

.btn-cta {
  height: 48px;
  padding: 0 26px;
  background: var(--yellow);
  color: var(--midnight);
  font-size: 15px;
  box-shadow: 0 10px 30px -10px rgba(242, 195, 16, 0.6);
}
.btn-cta:hover {
  translate: 0 -1px;
  background: #f5cd34;
}

.btn-light {
  height: 48px;
  padding: 0 22px;
  border-color: rgba(213, 225, 238, 0.3);
  background: rgba(213, 225, 238, 0.06);
  color: var(--vapor);
  font-size: 15px;
}
.btn-light:hover {
  background: rgba(213, 225, 238, 0.14);
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ---------- hero / intro ---------- */
.hero,
.outro {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: min(540px, 40vw);
  translate: 0 -50%;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 600ms ease,
    translate 800ms var(--ease-out),
    visibility 0s linear 800ms;
}

.hero {
  left: max(48px, 5.5vw);
  translate: -24px -50%;
}

.outro {
  right: max(48px, 5.5vw);
  translate: 24px -50%;
}

.app[data-mode="intro"] .hero,
.app[data-mode="outro"] .outro {
  opacity: 1;
  visibility: visible;
  translate: 0 -50%;
  transition:
    opacity 700ms ease 250ms,
    translate 900ms var(--ease-out) 250ms,
    visibility 0s;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--horizon);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--yellow);
}

.display {
  margin: 0;
  color: #fff;
  font-family: var(--font-title);
  font-size: clamp(32px, 3.3vw, 50px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.display em {
  display: block;
  color: var(--horizon);
  font-style: normal;
}

.lede {
  margin: 20px 0 28px;
  color: var(--ice);
  font-size: 16.5px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stats {
  display: flex;
  gap: 28px;
  margin: 34px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(213, 225, 238, 0.16);
}

.stat dt {
  order: 2;
  color: var(--horizon);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.stat {
  display: flex;
  flex-direction: column-reverse;
}

.stat dd {
  margin: 0 0 4px;
  color: #fff;
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 400;
}

.duration {
  margin: 16px 0 0;
  color: var(--horizon);
  font-size: 13px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 7px 12px;
  border: 1px solid rgba(213, 225, 238, 0.2);
  border-radius: 999px;
  background: rgba(213, 225, 238, 0.06);
  color: var(--ice);
  font-size: 13px;
  font-weight: 500;
}

.chips li::before {
  content: "✓";
  margin-right: 7px;
  color: var(--yellow);
  font-weight: 700;
}

.cta-note {
  margin: 14px 0 0;
  color: var(--horizon);
  font-size: 12.5px;
}

/* floating stat cards that sell the 3D angle in the hero and outro */
.floater {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--graphite);
  font-size: 15px;
  box-shadow: 0 24px 50px -16px rgba(7, 13, 23, 0.6);
  opacity: 0;
  transform: translateZ(90px) scale(0.9);
  transition:
    opacity 600ms ease,
    transform 900ms var(--ease-out);
  pointer-events: none;
}

.floater b {
  color: var(--midnight);
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 500;
  margin-right: 4px;
}

.floater-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--dot) 20%, transparent);
}

.floater-a {
  left: 7%;
  top: -5%;
}

.floater-b {
  right: 9%;
  bottom: -6%;
}

.app[data-mode="intro"] .floater,
.app[data-mode="outro"] .floater {
  opacity: 1;
  transform: translateZ(110px) scale(1);
  transition-delay: 500ms;
}

/* ---------- chapter card ---------- */
.chapter-card {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 420ms ease;
}

.chapter-card.on {
  opacity: 1;
}

/* a soft scrim so the title reads over the dimmed screen */
.chapter-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse 46% 42% at 50% 50%, rgba(7, 13, 23, 0.82), rgba(7, 13, 23, 0.35) 70%, transparent);
}

.cc-num {
  color: transparent;
  font-family: var(--font-title);
  font-size: clamp(80px, 11vw, 150px);
  font-weight: 400;
  line-height: 0.9;
  -webkit-text-stroke: 1.5px rgba(156, 184, 210, 0.55);
}

.cc-label {
  margin-top: 14px;
  color: var(--yellow);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cc-title {
  margin: 10px 0 8px;
  color: #fff;
  font-family: var(--font-title);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 500;
}

.cc-kicker {
  margin: 0;
  color: var(--ice);
  font-size: 18px;
}

.chapter-card > * {
  translate: 0 18px;
  transition: translate 700ms var(--ease-out);
}

.chapter-card.on > * {
  translate: 0 0;
}

/* ---------- chapter timeline ---------- */
.chapters {
  position: relative;
  z-index: 20;
  display: flex;
  gap: 10px;
  padding: 10px 28px 22px;
  transition:
    opacity 500ms ease,
    translate 600ms var(--ease-out);
}

.app[data-mode="intro"] .chapters {
  opacity: 0;
  translate: 0 20px;
  pointer-events: none;
}

.chapter {
  display: flex;
  flex: var(--span, 1) 1 0;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--horizon);
  text-align: left;
  cursor: pointer;
}

.chapter-label {
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.chapter-label b {
  margin-right: 6px;
  color: rgba(156, 184, 210, 0.6);
  font-weight: 700;
}

.chapter.is-current .chapter-label {
  color: #fff;
}

.chapter.is-current .chapter-label b {
  color: var(--yellow);
}

.chapter-track {
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(213, 225, 238, 0.14);
}

.chapter-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: var(--horizon);
  transition: width 600ms var(--ease-out);
}

.chapter.is-current .chapter-fill {
  background: #fff;
}

.chapter:hover .chapter-label {
  color: #fff;
}

/* ---------- narrow screens: the callout docks below the frame ---------- */
.sheet {
  position: relative;
  z-index: 20;
  display: none;
  padding: 0 16px;
}

.app.is-narrow {
  grid-template-rows: 56px 1fr auto auto;
}

.app.is-narrow .topbar {
  padding: 0 16px;
}

.app.is-narrow .ctrl-label {
  display: none;
}

.app.is-narrow .ctrl {
  padding: 0 10px;
}

.app.is-narrow[data-mode="tour"] .sheet {
  display: block;
}

.app.is-narrow .sheet .callout {
  position: relative;
  width: 100%;
}

@media (max-width: 380px) {
  .brand-divider,
  .brand-product {
    display: none;
  }

  .brand img {
    width: 96px;
  }

  .display {
    font-size: 28px;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.12em;
  }
}

.app.is-narrow .chapters {
  padding: 10px 16px 16px;
  gap: 6px;
}

.app.is-narrow .chapter-label {
  font-size: 0;
}

.app.is-narrow .chapter-label b {
  font-size: 11px;
}

.app.is-narrow .hero,
.app.is-narrow .outro {
  top: 20px;
  left: 20px;
  right: 20px;
  width: auto;
  translate: 0 0;
}

.app.is-narrow[data-mode="intro"] .hero,
.app.is-narrow[data-mode="outro"] .outro {
  translate: 0 0;
}

.app.is-narrow .stats {
  display: none;
}

.app.is-narrow .lede {
  font-size: 15px;
}

.app.is-narrow[data-mode="intro"] .device {
  transform: translateY(var(--narrow-intro-y, 30%)) scale(var(--narrow-intro-k, 0.8)) rotateX(12deg);
}

.app.is-narrow[data-mode="outro"] .device {
  transform: translateY(var(--narrow-outro-y, 30%)) scale(var(--narrow-outro-k, 0.8)) rotateX(12deg);
}

.app.is-narrow .floater {
  display: none;
}

/* ---------- reduced motion: cuts instead of camera moves ---------- */
@media (prefers-reduced-motion: reduce) {
  :root {
    --t-camera: 0ms;
    --t-device: 0ms;
    --t-cursor: 0ms;
  }

  .device,
  .app[data-mode] .device {
    animation: none;
  }

  .beacon::before,
  .beacon::after,
  .callout,
  .beacon {
    animation: none;
  }
}
