:root {
  color-scheme: dark;
  --accent: #5b93f5;
  --accent-rgb: 91, 147, 245;
  --brand-blue: #0d47a1;
  --brand-blue-rgb: 13, 71, 161;
  --ink: #f7f8fa;
  --ink-soft: #c7cad1;
  --ink-muted: #8e939c;
  --background: #0a0a0a;
  --surface: #121315;
  --surface-raised: #17181b;
  --hairline: rgba(247, 248, 250, 0.1);
  --stage-top: clamp(24px, 5vh, 48px);
  --stage-bleed: 176px;
  --phone-width: 560px;
  --phone-radius: 60px;
  --phone-bezel: 10px;
  --ui-scale: 1.34;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --viewport-height: 100vh;
  font-family:
    "DM Sans", Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  scrollbar-color: rgba(var(--accent-rgb), 0.45) var(--background);
  scrollbar-width: thin;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 38%, rgba(var(--brand-blue-rgb), 0.17), transparent 30%),
    var(--background);
}

body::before {
  display: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #061013;
  background: var(--accent);
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.showcase {
  position: relative;
  min-height: 460vh;
  isolation: isolate;
}

.demo-stage {
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: var(--viewport-height);
  overflow: hidden;
}

.stage-grid {
  position: relative;
  width: 100%;
  height: 100%;
}

.stage-grid::before {
  position: absolute;
  top: calc(var(--stage-top) + 6px);
  left: 50%;
  z-index: 0;
  width: min(72vw, 1040px);
  height: 78vh;
  pointer-events: none;
  content: "";
  background: radial-gradient(ellipse, rgba(var(--brand-blue-rgb), 0.3), transparent 66%);
  filter: blur(34px);
  transform: translateX(-50%);
}

.phone-wrap {
  position: absolute;
  top: var(--stage-top);
  left: 50%;
  z-index: 3;
  width: min(var(--phone-width), calc(100vw - 40px));
  height: min(1060px, calc(var(--viewport-height) - var(--stage-top) + var(--stage-bleed)));
  overflow: hidden;
  transform: translateX(-50%);
}

.phone {
  position: relative;
  width: 100%;
  aspect-ratio: 440 / 956;
  padding: var(--phone-bezel);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--phone-radius);
  background:
    linear-gradient(105deg, #4d5056 0%, #151619 7%, #090a0c 48%, #22252a 91%, #555961 100%);
  box-shadow:
    0 48px 120px rgba(0, 0, 0, 0.72),
    0 16px 44px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.95),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 0 0 3px rgba(0, 0, 0, 0.72),
    0 0 96px rgba(var(--brand-blue-rgb), 0.16);
}

.phone::before {
  position: absolute;
  inset: 4px;
  z-index: 0;
  pointer-events: none;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: calc(var(--phone-radius) - 4px);
}

.phone::after {
  position: absolute;
  top: 8%;
  left: 5px;
  z-index: 7;
  width: 1px;
  height: 52%;
  pointer-events: none;
  content: "";
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.28), transparent);
}

.phone-side-button {
  position: absolute;
  z-index: -1;
  width: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(90deg, #090a0b, #43464c 65%, #111214);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.55);
}

.phone-side-button-action {
  top: 112px;
  left: -4px;
  height: 40px;
  border-radius: 3px 0 0 3px;
}

.phone-side-button-volume-up,
.phone-side-button-volume-down {
  left: -5px;
  height: 72px;
  border-radius: 4px 0 0 4px;
}

.phone-side-button-volume-up {
  top: 177px;
}

.phone-side-button-volume-down {
  top: 267px;
}

.phone-side-button-power {
  top: 194px;
  right: -5px;
  height: 112px;
  border-radius: 0 4px 4px 0;
}

.phone-screen {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #141414;
  border: 1px solid rgba(0, 0, 0, 0.92);
  border-radius: calc(var(--phone-radius) - var(--phone-bezel) - 1px);
  background: #ededed;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 22px rgba(0, 0, 0, 0.08);
}

.ios-status-bar {
  position: relative;
  z-index: 8;
  display: flex;
  flex: 0 0 calc(43px * var(--ui-scale));
  align-items: center;
  justify-content: space-between;
  padding: calc(8px * var(--ui-scale)) calc(24px * var(--ui-scale)) 0;
  background: #ededed;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: calc(14px * var(--ui-scale));
  font-weight: 660;
  letter-spacing: -0.03em;
}

.dynamic-island {
  position: absolute;
  top: calc(7px * var(--ui-scale));
  left: 50%;
  width: calc(104px * var(--ui-scale));
  height: calc(30px * var(--ui-scale));
  border-radius: calc(18px * var(--ui-scale));
  background: #050505;
  transform: translateX(-50%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.dynamic-island::after {
  position: absolute;
  top: 50%;
  right: calc(9px * var(--ui-scale));
  width: calc(6px * var(--ui-scale));
  height: calc(6px * var(--ui-scale));
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #313663, #090b15 62%, #000);
  transform: translateY(-50%);
}

.status-icons {
  display: inline-flex;
  align-items: center;
  gap: calc(6px * var(--ui-scale));
}

.status-signal {
  width: calc(17px * var(--ui-scale));
  height: calc(12px * var(--ui-scale));
  fill: #151515;
}

.status-wifi {
  width: calc(16px * var(--ui-scale));
  height: calc(13px * var(--ui-scale));
  overflow: visible;
  fill: none;
  stroke: #151515;
  stroke-linecap: round;
  stroke-width: 1.7;
}

.status-wifi circle {
  fill: #151515;
  stroke: none;
}

.status-battery {
  position: relative;
  display: inline-block;
  width: calc(23px * var(--ui-scale));
  height: calc(11px * var(--ui-scale));
  padding: calc(1.5px * var(--ui-scale));
  border: calc(1px * var(--ui-scale)) solid rgba(20, 20, 20, 0.58);
  border-radius: calc(3px * var(--ui-scale));
}

.status-battery::after {
  position: absolute;
  top: 50%;
  right: calc(-3px * var(--ui-scale));
  width: calc(2px * var(--ui-scale));
  height: calc(5px * var(--ui-scale));
  content: "";
  border-radius: 0 2px 2px 0;
  background: rgba(20, 20, 20, 0.55);
  transform: translateY(-50%);
}

.status-battery i {
  display: block;
  width: 78%;
  height: 100%;
  border-radius: calc(1px * var(--ui-scale));
  background: #151515;
}

.wechat-header {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: calc(52px * var(--ui-scale)) 1fr calc(52px * var(--ui-scale));
  flex: 0 0 calc(53px * var(--ui-scale));
  align-items: center;
  border-bottom: 1px solid #d9d9d9;
  background: #ededed;
}

.wechat-header strong {
  overflow: hidden;
  color: #111;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: calc(16px * var(--ui-scale));
  font-weight: 620;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wechat-back {
  display: grid;
  place-items: center;
  justify-self: start;
  width: calc(42px * var(--ui-scale));
  height: 100%;
}

.wechat-back svg {
  width: calc(10px * var(--ui-scale));
  height: calc(18px * var(--ui-scale));
  fill: none;
  stroke: #111;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.wechat-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  gap: calc(3px * var(--ui-scale));
  width: calc(45px * var(--ui-scale));
  height: 100%;
}

.wechat-menu i {
  width: calc(3px * var(--ui-scale));
  height: calc(3px * var(--ui-scale));
  border-radius: 50%;
  background: #111;
}

.chat-messages {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)),
    #ededed;
}

.chat-track {
  display: flex;
  flex-direction: column;
  gap: calc(17px * var(--ui-scale));
  width: 100%;
  padding: calc(22px * var(--ui-scale)) calc(18px * var(--ui-scale)) calc(34px * var(--ui-scale));
  will-change: transform;
  transition: transform 520ms var(--ease-out);
}

.message {
  display: flex;
  align-items: flex-start;
  gap: calc(9px * var(--ui-scale));
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(calc(12px * var(--ui-scale)));
  transition:
    opacity 360ms var(--ease-standard),
    transform 500ms var(--ease-out),
    visibility 0s linear 520ms;
}

.message.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0ms;
}

.message.is-current.is-entering {
  animation: message-in 540ms var(--ease-out) both;
  animation-delay: calc(var(--message-order) * 100ms);
}

@keyframes message-in {
  from {
    opacity: 0;
    transform: translateY(calc(16px * var(--ui-scale))) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.message-customer {
  flex-direction: row-reverse;
  justify-content: flex-start;
  padding-left: 8%;
}

.message-ai {
  justify-content: flex-start;
  padding-right: 8%;
}

.message-avatar {
  position: relative;
  display: grid;
  flex: 0 0 calc(38px * var(--ui-scale));
  place-items: center;
  width: calc(38px * var(--ui-scale));
  height: calc(38px * var(--ui-scale));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: calc(6px * var(--ui-scale));
  background-color: #fff;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.ai-avatar {
  background-image: url("/assets/alice-agent-avatar-v2.jpg");
}

.customer-avatar {
  background-image: url("/assets/customer-avatar-v2.jpg");
}

.message-bubble {
  position: relative;
  max-width: min(calc(320px * var(--ui-scale)), 76%);
  padding: calc(10px * var(--ui-scale)) calc(12px * var(--ui-scale));
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.045);
  border-radius: calc(5px * var(--ui-scale));
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: calc(14.6px * var(--ui-scale));
  font-weight: 400;
  line-height: 1.44;
  letter-spacing: -0.012em;
  word-break: normal;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.045);
}

.message-bubble::before {
  position: absolute;
  top: calc(12px * var(--ui-scale));
  width: calc(8px * var(--ui-scale));
  height: calc(12px * var(--ui-scale));
  content: "";
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
}

.message-ai .message-bubble {
  background: #fff;
}

.message-ai .message-bubble::before {
  left: calc(-7px * var(--ui-scale));
  background: #fff;
}

.message-customer .message-bubble {
  background: #95ec69;
}

.message-customer .message-bubble::before {
  right: calc(-7px * var(--ui-scale));
  background: #95ec69;
  transform: scaleX(-1);
}

.wechat-compose {
  position: relative;
  z-index: 5;
  display: flex;
  flex: 0 0 calc(68px * var(--ui-scale));
  align-items: flex-start;
  gap: calc(7px * var(--ui-scale));
  padding: calc(10px * var(--ui-scale)) calc(8px * var(--ui-scale));
  border-top: 1px solid #d5d5d5;
  background: #f7f7f7;
}

.wechat-input {
  flex: 1;
  height: calc(38px * var(--ui-scale));
  border-radius: calc(6px * var(--ui-scale));
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.025);
}

.wechat-tool {
  display: grid;
  flex: 0 0 calc(29px * var(--ui-scale));
  place-items: center;
  width: calc(29px * var(--ui-scale));
  height: calc(38px * var(--ui-scale));
}

.wechat-tool svg {
  width: calc(25px * var(--ui-scale));
  height: calc(25px * var(--ui-scale));
  fill: none;
  stroke: #202020;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.wechat-tool .icon-fill {
  fill: #202020;
  stroke: none;
}

.home-indicator {
  position: absolute;
  bottom: calc(8px * var(--ui-scale));
  left: 50%;
  z-index: 9;
  width: calc(118px * var(--ui-scale));
  height: calc(4px * var(--ui-scale));
  border-radius: 999px;
  background: #111;
  transform: translateX(-50%);
}

.story-panel {
  position: absolute;
  top: clamp(260px, 37vh, 390px);
  right: calc(50% + (var(--phone-width) / 2) + 24px);
  z-index: 9;
  width: clamp(280px, 23vw, 350px);
  opacity: 0;
  transform: translate3d(-12px, 18px, 0) scale(0.985);
  transform-origin: 100% 50%;
  transition:
    opacity 430ms var(--ease-standard),
    transform 700ms var(--ease-out);
}

.stage-grid.has-focus .story-panel {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.scene-meta,
.feature-block {
  display: none;
}

.scene-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(30px, 2.55vw, 43px);
  font-weight: 590;
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.scene-summary {
  max-width: 330px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.58;
  letter-spacing: -0.012em;
}

.focus-overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.focus-rect,
.focus-path,
.focus-dot {
  fill: none;
  stroke: var(--accent);
  vector-effect: non-scaling-stroke;
}

.focus-rect {
  opacity: 0;
  stroke-width: 1.6;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.97);
  transition:
    opacity 260ms ease,
    transform 560ms var(--ease-out);
  filter: url(#focus-glow);
}

.focus-path {
  opacity: 0;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-dasharray: var(--path-length);
  stroke-dashoffset: var(--path-length);
}

.focus-dot {
  opacity: 0;
  fill: var(--accent);
  stroke: var(--background);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  filter: drop-shadow(0 0 7px rgba(var(--accent-rgb), 0.9));
}

.focus-overlay.is-box-visible .focus-rect {
  opacity: 1;
  transform: scale(1);
}

.focus-overlay.is-line-visible .focus-path {
  opacity: 0.92;
  animation: draw-focus-path 650ms var(--ease-out) forwards;
}

.focus-overlay.is-line-visible .focus-dot {
  opacity: 1;
  transform: scale(1);
  transition:
    opacity 200ms 500ms ease,
    transform 420ms 460ms var(--ease-out);
}

@keyframes draw-focus-path {
  to {
    stroke-dashoffset: 0;
  }
}

.proof-panel {
  position: absolute;
  top: clamp(224px, 26vh, 292px);
  left: calc(50% + (var(--phone-width) / 2) + 28px);
  z-index: 9;
  width: clamp(286px, 22vw, 326px);
  overflow: visible;
  color: var(--ink);
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(var(--brand-blue-rgb), 0.2), transparent 48%),
    rgba(18, 19, 21, 0.96);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(24px);
  opacity: 0;
  filter: blur(7px);
  transform: translate3d(-24px, 12px, 0) scale(0.96);
  transform-origin: 0 45%;
  transition:
    opacity 430ms var(--ease-standard),
    filter 480ms var(--ease-standard),
    transform 760ms var(--ease-out);
}

.proof-panel::before {
  position: absolute;
  top: 42%;
  right: 100%;
  width: 29px;
  height: 1px;
  content: "";
  background: linear-gradient(to left, rgba(var(--accent-rgb), 0.9), rgba(var(--accent-rgb), 0.1));
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.45);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 500ms 250ms var(--ease-out);
}

.proof-panel::after {
  position: absolute;
  top: calc(42% - 3px);
  left: -3px;
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.8);
}

.stage-grid.is-proof-visible .proof-panel {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

.stage-grid.is-proof-visible .proof-panel::before {
  transform: scaleX(1);
}

.proof-window {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-dots {
  display: inline-flex;
  gap: 5px;
}

.window-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.window-dots i:first-child {
  background: rgba(var(--accent-rgb), 0.9);
}

.proof-window small {
  overflow: hidden;
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.13em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.proof-body {
  padding: 18px;
}

.proof-signal {
  display: flex;
  align-items: center;
  gap: 8px;
}

.proof-signal > span {
  width: 8px;
  height: 8px;
  border: 2px solid rgba(var(--accent-rgb), 0.38);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.56);
}

.proof-signal p {
  margin: 0;
  color: var(--accent);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.proof-body h3 {
  margin: 10px 0 16px;
  color: #fff;
  font-size: 22px;
  font-weight: 590;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.proof-facts {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.proof-fact {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: center;
  min-height: 38px;
  padding: 8px 11px;
  background: rgba(14, 15, 17, 0.94);
}

.proof-fact span {
  color: var(--ink-muted);
  font-size: 9px;
  font-weight: 620;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.proof-fact strong {
  overflow-wrap: anywhere;
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 580;
  line-height: 1.35;
  text-align: right;
}

.proof-output {
  margin-top: 14px;
  padding: 13px 14px;
  border-left: 2px solid var(--accent);
  background: rgba(var(--brand-blue-rgb), 0.16);
}

.proof-output span {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
  font-size: 8px;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.proof-output p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  line-height: 1.48;
}

noscript {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  padding: 12px 15px;
  color: #fff;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: #15171b;
}

@media (max-width: 1360px) {
  .story-panel {
    right: calc(50% + (var(--phone-width) / 2) + 20px);
    width: clamp(250px, 22vw, 310px);
  }

  .story-panel h2 {
    font-size: clamp(28px, 2.5vw, 37px);
  }

  .proof-panel {
    left: calc(50% + (var(--phone-width) / 2) + 22px);
    width: clamp(258px, 21vw, 292px);
  }

  .proof-body h3 {
    font-size: 19px;
  }
}

@media (max-width: 1139px) {
  .story-panel {
    top: auto;
    right: auto;
    bottom: 22px;
    left: 50%;
    width: min(600px, calc(100vw - 36px));
    padding: 17px 19px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(8, 10, 12, 0.82);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(24px);
    transform: translate3d(-50%, 16px, 0) scale(0.985);
    transform-origin: 50% 100%;
  }

  .stage-grid.has-focus .story-panel {
    transform: translate3d(-50%, 0, 0) scale(1);
  }

  .scene-kicker {
    margin-bottom: 8px;
    font-size: 9px;
  }

  .story-panel h2 {
    font-size: clamp(22px, 4vw, 30px);
  }

  .scene-summary {
    max-width: 560px;
    margin-top: 9px;
    font-size: 12px;
    line-height: 1.45;
  }

  .focus-overlay,
  .proof-panel {
    display: none;
  }
}

@media (max-width: 820px) {
  :root {
    --phone-width: 440px;
    --ui-scale: 1;
    --stage-top: 18px;
    --stage-bleed: 132px;
  }

  .phone-wrap {
    width: min(var(--phone-width), calc(100vw - 20px));
  }

  .story-panel {
    bottom: 14px;
    width: calc(100vw - 24px);
  }
}

@media (max-width: 360px) {
  :root {
    --phone-radius: 48px;
    --ui-scale: 0.96;
    --stage-top: 12px;
    --stage-bleed: 118px;
  }

  .story-panel {
    padding: 14px 15px;
  }

  .story-panel h2 {
    font-size: 21px;
  }

  .scene-summary {
    display: none;
  }

  .phone-wrap {
    width: min(var(--phone-width), calc(100vw - 12px));
  }
}

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