:root {
  --black: #151515;
  --white: #fffdf4;
  --offwhite: #f3efe4;
  --yellow: #efff82;
  --lilac: #b9b2fd;
  --mint: #9cffc7;
  --orange: #ffd38a;
  --ink: #1d1d1d;
  --muted: rgba(29, 29, 29, 0.64);
  --grid-margin: clamp(18px, 3vw, 56px);
  --header-height: 72px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --latin-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono-font: ui-monospace, "SFMono-Regular", Menlo, monospace;
  --zh-cute-font: "TsangerYuYangT W05", "TsangerYuYangT W04", "Hannotate SC", "Yuanti SC", "PingFang SC", "Microsoft YaHei UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--yellow);
  font-family: var(--latin-font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

body[data-lang="zh"] {
  font-family: var(--zh-cute-font);
}

img,
video {
  display: block;
  max-width: 100%;
}

a,
button {
  color: inherit;
  font: inherit;
}

a {
  text-decoration: none;
}

button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.color-yellow {
  background: var(--yellow);
}

.color-offwhite {
  background: var(--offwhite);
}

.color-black {
  background: var(--black);
  color: var(--white);
}

.color-lilac {
  background: var(--lilac);
}

.color-green {
  background: var(--mint);
}

.color-orange {
  background: var(--orange);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 var(--grid-margin);
}

.site-header a,
.site-header button,
.site-header span {
  color: var(--ink);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav-links {
  gap: 10px;
  font-size: clamp(13px, 1.1vw, 16px);
}

.nav-links a:not(:last-child)::after {
  content: ",";
}

.nav-links a,
.lang-toggle {
  transition: transform 0.35s var(--ease), font-style 0.35s var(--ease);
}

.nav-links a:hover,
.lang-toggle:hover {
  transform: translateY(-2px);
  font-style: italic;
}

.lang-toggle {
  justify-self: end;
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-canvas {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: var(--header-height) var(--grid-margin) 48px;
  cursor: auto;
  animation: hero-color-shift 18s ease-in-out infinite;
}

@keyframes hero-color-shift {
  0%,
  100% {
    background: #efff82;
  }
  25% {
    background: #b9b2fd;
  }
  50% {
    background: #9cffc7;
  }
  75% {
    background: #ffd38a;
  }
}

.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image: radial-gradient(rgba(0, 0, 0, 0.14) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: linear-gradient(to bottom, transparent, black 24%, black 76%, transparent);
}

.cat-trail {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.trail-cat {
  position: absolute;
  width: clamp(88px, 10vw, 168px);
  height: clamp(88px, 10vw, 168px);
  object-fit: contain;
  translate: -50% -50%;
  filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.22));
  animation: trail-drift 4.2s var(--ease) forwards;
  will-change: transform, opacity;
}

@keyframes trail-drift {
  0% {
    opacity: 0;
    transform: translate3d(0, 10px, 0) rotate(var(--rot)) scale(0.72);
  }
  16% {
    opacity: 1;
  }
  72% {
    opacity: 1;
    transform: translate3d(calc(var(--dx) * 0.32), -20px, 0) rotate(calc(var(--rot) + 6deg)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--dx), -92px, 0) rotate(calc(var(--rot) + 18deg)) scale(1.08);
  }
}

.hero-center {
  position: relative;
  z-index: 2;
  text-align: center;
}

.eyebrow,
.split-label,
.section-kicker,
.hero-footnote,
figcaption,
.download-button small {
  font-family: var(--mono-font);
  font-size: clamp(10px, 0.78vw, 12px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

body[data-lang="zh"] .eyebrow,
body[data-lang="zh"] .split-label,
body[data-lang="zh"] .section-kicker,
body[data-lang="zh"] .hero-footnote,
body[data-lang="zh"] figcaption,
body[data-lang="zh"] .download-button small,
body[data-lang="zh"] .download-platform,
body[data-lang="zh"] .choice-button small,
body[data-lang="zh"] .payment-complete small,
body[data-lang="zh"] .qr-placeholder span,
body[data-lang="zh"] .qr-card figcaption {
  font-family: var(--zh-cute-font);
  letter-spacing: 0.04em;
}

body[data-lang="zh"] .hero-subtitle {
  font-size: clamp(18px, 2.85vw, 44px);
}

body[data-lang="zh"] .big-statement,
body[data-lang="zh"] .section-title,
body[data-lang="zh"] .download h2 {
  font-size: clamp(32px, 5.1vw, 80px);
}

body[data-lang="zh"] .feature-copy h3,
body[data-lang="zh"] .motion-copy h2 {
  font-size: clamp(30px, 3.75vw, 62px);
}

body[data-lang="zh"] .letter-page,
body[data-lang="zh"] .download-copy p:not(.eyebrow) {
  font-size: clamp(14px, 1.2vw, 19px);
}

body[data-lang="zh"] .feature-copy p:not(.eyebrow),
body[data-lang="zh"] .donate-copy p:not(.eyebrow),
body[data-lang="zh"] .download-choice-copy span {
  font-size: clamp(13px, 1vw, 17px);
}

body[data-lang="zh"] .download-button span {
  font-size: clamp(18px, 2vw, 30px);
}

body[data-lang="zh"] .download-choice-copy p:not(.eyebrow),
body[data-lang="zh"] .donate-copy h2 {
  font-size: clamp(22px, 3vw, 34px);
}

.eyebrow {
  margin: 0 0 22px;
}

.wordmark {
  margin: 0;
  font-size: clamp(68px, 16vw, 238px);
  line-height: 0.78;
  letter-spacing: -0.105em;
  text-transform: uppercase;
  font-weight: 500;
}

.wordmark span {
  display: inline-block;
  transform-origin: 50% 76%;
  animation: letter-breathe 3.6s var(--ease) infinite;
}

.wordmark .logo-letter {
  position: relative;
  color: inherit;
  text-shadow: none;
}

.wordmark .logo-letter img {
  position: absolute;
  left: 57%;
  top: 68%;
  z-index: 1;
  width: 0.4em;
  height: 0.4em;
  object-fit: contain;
  transform: translate(-50%, -50%) rotate(-4deg);
  filter: drop-shadow(0 0.03em 0.035em rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

.wordmark span:nth-child(2n) {
  animation-delay: -1.2s;
}

.wordmark span:nth-child(3n) {
  animation-delay: -2.4s;
}

@keyframes letter-breathe {
  0%,
  100% {
    transform: translateY(0) skewX(0deg) scaleY(1);
  }
  50% {
    transform: translateY(-0.035em) skewX(-4deg) scaleY(1.06);
  }
}

.hero-subtitle {
  max-width: 760px;
  margin: 24px auto 0;
  font-size: clamp(20px, 3.1vw, 48px);
  line-height: 1.03;
  letter-spacing: -0.04em;
  font-style: italic;
  color: rgba(29, 29, 29, 0.68);
}

.hero-footnote {
  position: absolute;
  z-index: 3;
  left: var(--grid-margin);
  right: var(--grid-margin);
  bottom: 22px;
  display: flex;
  flex-wrap: nowrap;
  grid-template-columns: repeat(4, auto);
  align-items: end;
  justify-content: end;
  column-gap: 20px;
  row-gap: 10px;
}

.live-users {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}

.live-users strong {
  font-family: var(--latin-font);
  font-size: clamp(16px, 1.45vw, 24px);
  line-height: 0.9;
  font-weight: 500;
  letter-spacing: 0;
}

.motion-section {
  min-height: 160svh;
  padding: clamp(96px, 14vw, 210px) var(--grid-margin);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: start;
  gap: clamp(28px, 5vw, 84px);
}

.motion-copy {
  position: sticky;
  top: 110px;
  grid-column: 1 / 5;
}

.motion-copy h2 {
  margin: 0;
  font-size: clamp(28px, 3.8vw, 64px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 500;
}

.motion-note {
  max-width: 440px;
  margin: 24px 0 0;
  color: rgba(29, 29, 29, 0.68);
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  white-space: pre-line;
}

.motion-media-stack {
  grid-column: 5 / -1;
  display: grid;
  gap: clamp(56px, 8vw, 120px);
  width: min(980px, 100%);
  justify-self: end;
}

.video-frame {
  align-self: center;
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(29, 29, 29, 0.22);
}

.manifesto,
.feature-overview,
.features,
.download {
  padding: clamp(96px, 13vw, 210px) var(--grid-margin);
}

.manifesto {
  position: relative;
  overflow: clip;
  isolation: isolate;
}

.features-horizontal {
  padding: clamp(76px, 9svh, 108px) var(--grid-margin) clamp(52px, 7svh, 84px);
}

.split-label,
.section-kicker {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 5vw, 72px);
}

.big-statement,
.section-title,
.download h2 {
  margin: 0;
  font-size: clamp(34px, 5.4vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 500;
}

.big-statement,
.manifesto-letter,
.section-title {
  max-width: 1180px;
}

.manifesto-heading {
  position: sticky;
  top: calc(var(--header-height) + 18px);
  z-index: 70;
  margin: 0 calc(var(--grid-margin) * -1);
  padding: 0 var(--grid-margin) clamp(18px, 2.8vw, 34px);
  background: var(--orange);
}

.manifesto-heading::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc((var(--header-height) + 18px) * -1);
  height: calc(var(--header-height) + 18px);
  background: var(--orange);
  pointer-events: none;
}

.manifesto-heading::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -54px;
  height: 54px;
  background: linear-gradient(var(--orange), rgba(255, 211, 138, 0));
  pointer-events: none;
}

.manifesto-heading .split-label {
  margin-bottom: clamp(18px, 3vw, 42px);
}

.manifesto-letter {
  position: relative;
  z-index: 1;
  margin: clamp(28px, 4vw, 64px) 0 0;
  display: grid;
  max-width: none;
  width: 100%;
  perspective: 1200px;
}

.manifesto-letter::before {
  content: "";
  position: absolute;
  inset: -18px -16px auto auto;
  width: min(34vw, 260px);
  height: min(34vw, 260px);
  border: 1px solid rgba(29, 29, 29, 0.16);
  border-radius: 999px;
  opacity: 0.28;
  pointer-events: none;
}

.letter-page {
  position: relative;
  z-index: 1;
  margin: 0;
  justify-self: center;
  width: min(1120px, 86vw);
  padding: clamp(22px, 3vw, 42px);
  border: 1px solid rgba(29, 29, 29, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(29, 29, 29, 0.08) 0 1px, transparent 1px 100%) 28px 0 / 1px 100% no-repeat,
    linear-gradient(rgba(255, 253, 244, 0.92), rgba(255, 253, 244, 0.78));
  box-shadow: 0 20px 54px rgba(29, 29, 29, 0.1);
  color: rgba(29, 29, 29, 0.82);
  font-size: clamp(14px, 1.18vw, 18px);
  line-height: 1.55;
  letter-spacing: -0.012em;
  transform-origin: 50% 0;
  opacity: 0;
  transform: translateY(62px) rotateX(-10deg);
  transition:
    opacity 1.55s var(--ease),
    transform 1.85s var(--ease),
    box-shadow 1.85s var(--ease);
}

.letter-page.is-visible {
  opacity: 1;
  transform: translateY(0) rotateX(0);
}

.letter-line {
  display: block;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(16px);
  transition:
    opacity 1.25s var(--ease),
    transform 1.45s var(--ease),
    max-height 1.55s var(--ease);
  transition-delay: var(--line-delay);
}

.letter-page.is-visible .letter-line {
  opacity: 1;
  max-height: 12em;
  transform: translateY(0);
}

.letter-line + .letter-line {
  margin-top: 0.72em;
}

.quote-line {
  font-family: var(--mono-font);
  font-size: 0.86em;
  letter-spacing: 0.02em;
  color: rgba(29, 29, 29, 0.68);
}

.feature-overview {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 5vw, 72px);
}

.feature-overview .section-kicker {
  margin-bottom: 0;
}

.feature-overview .section-title {
  max-width: 1120px;
}

.desk-video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 32px);
  width: 100%;
  margin: 0 auto;
}

.desk-video-grid video {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(255, 253, 244, 0.44);
  box-shadow: 0 18px 58px rgba(29, 29, 29, 0.14);
}

.motion-section .desk-video-grid video {
  box-shadow: 0 20px 64px rgba(29, 29, 29, 0.16);
}

.features-horizontal {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(18px, 3svh, 30px);
  overflow: hidden;
}

.features-header {
  display: grid;
  gap: clamp(12px, 2svh, 22px);
}

.features-header .section-kicker {
  margin-bottom: 0;
}

.features-header .section-title {
  max-width: 980px;
  font-size: clamp(32px, 4.4vw, 64px);
}

.feature-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}

.feature-tabs::-webkit-scrollbar {
  display: none;
}

.feature-tab {
  flex: 0 0 auto;
  min-height: 46px;
  padding: 13px 20px;
  border: 1px solid rgba(29, 29, 29, 0.18);
  border-radius: 999px;
  background: rgba(255, 253, 244, 0.58);
  color: var(--ink);
  font-size: clamp(14px, 1.12vw, 17px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 500;
  transition: background 0.28s var(--ease), border-color 0.28s var(--ease), transform 0.28s var(--ease);
}

.feature-tab:hover,
.feature-tab.is-active {
  background: #efff82;
  border-color: rgba(29, 29, 29, 0.34);
  transform: translateY(-1px);
}

.feature-stage {
  margin-right: calc(var(--grid-margin) * -1);
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 0;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(29, 29, 29, 0.34) transparent;
}

.feature-stage::-webkit-scrollbar {
  height: 7px;
}

.feature-stage::-webkit-scrollbar-track {
  background: transparent;
}

.feature-stage::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(29, 29, 29, 0.28);
}

.feature-track {
  display: flex;
  align-items: stretch;
  gap: clamp(34px, 5vw, 78px);
  width: max-content;
  padding: 4px var(--grid-margin) 22px 0;
}

.features-horizontal .feature-slide {
  flex: 0 0 auto;
  min-width: min(860px, calc(100vw - var(--grid-margin) * 2));
  width: auto;
  min-height: 0;
  display: grid;
  grid-template-columns: clamp(210px, 20vw, 310px) max-content;
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  padding: 0;
  scroll-snap-align: start;
}

.features-horizontal .feature-copy {
  grid-column: auto;
  position: static;
  align-self: center;
}

.features-horizontal .feature-copy h3 {
  font-size: clamp(26px, 3vw, 46px);
}

.features-horizontal .progressive-copy > * {
  opacity: 1;
  transform: none;
}

.features-horizontal .feature-media-flow {
  grid-column: auto;
  min-width: 0;
  width: max-content;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.features-horizontal .media-panel {
  flex: 0 0 auto;
  width: auto;
  height: clamp(210px, 30svh, 320px);
  min-height: 0;
  opacity: 1;
  transform: none;
  overflow: visible;
  place-items: center;
}

.features-horizontal .media-panel img,
.features-horizontal .media-panel video {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: rgba(255, 253, 244, 0.92);
}

.features-horizontal .media-panel:hover img,
.features-horizontal .media-panel:hover video {
  transform: none;
}

.features-horizontal .focus-video-panel,
.features-horizontal .timeline-media-panel,
.features-horizontal .ai-chat-panel {
  flex-basis: auto;
}

.features-horizontal .timeline-media-panel:first-child {
  flex-basis: auto;
}

.features {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature-story {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  min-height: 0;
  padding-top: clamp(44px, 8vw, 120px);
  padding-bottom: clamp(72px, 11vw, 160px);
}

.feature-copy {
  grid-column: 1 / 5;
  position: sticky;
  top: 14vh;
  z-index: 4;
  align-self: start;
}

.feature-copy h3 {
  margin: 0 0 22px;
  font-size: clamp(32px, 4vw, 68px);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 500;
}

.feature-copy p:not(.eyebrow) {
  margin: 0;
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.35;
  letter-spacing: -0.014em;
}

.progressive-copy > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.feature-story.is-visible .progressive-copy > * {
  opacity: 1;
  transform: translateY(0);
}

.feature-story.is-visible .progressive-copy > :nth-child(2) {
  transition-delay: 0.16s;
}

.feature-story.is-visible .progressive-copy > :nth-child(3) {
  transition-delay: 0.34s;
}

.feature-media-flow {
  grid-column: 5 / -1;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 56px);
}

.media-panel {
  position: relative;
  height: min(82vh, 820px);
  min-height: 560px;
  margin: 0;
  display: grid;
  gap: clamp(12px, 1.4vw, 22px);
  align-items: stretch;
  overflow: hidden;
  border-radius: 8px;
  transform: translateY(30px);
  opacity: 0;
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.feature-story.is-visible .media-panel {
  opacity: 0.55;
}

.feature-story.is-visible .media-panel.is-current {
  opacity: 1;
  transform: translateY(0);
}

.media-panel img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(255, 253, 244, 0.86);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.18);
  transition: transform 0.8s var(--ease);
}

.media-panel video {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 8px;
  background: rgba(255, 253, 244, 0.86);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.18);
}

.focus-video-panel video {
  object-fit: contain;
  background: rgba(255, 253, 244, 0.92);
}

.media-panel.focus-video-panel {
  height: auto;
  min-height: 0;
  place-items: center;
  overflow: visible;
}

.media-panel.focus-video-panel video {
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
}

.media-panel.focus-video-panel:hover video {
  transform: none;
}

.media-panel:hover img {
  transform: scale(1.015);
}

.media-panel:hover video {
  transform: scale(1.015);
}

.media-panel.single {
  grid-template-columns: 1fr;
}

.media-panel.single img {
  object-fit: cover;
}

.media-panel.timeline-media-panel {
  height: auto;
  min-height: 0;
  place-items: center;
  overflow: visible;
}

.media-panel.timeline-media-panel img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: contain;
  background: rgba(255, 253, 244, 0.92);
}

.media-panel.timeline-media-panel:hover img {
  transform: none;
}

.media-panel.ai-chat-panel {
  height: auto;
  min-height: 0;
  place-items: center;
  overflow: visible;
}

.media-panel.ai-chat-panel img {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  background: rgba(255, 253, 244, 0.92);
}

.media-panel.ai-chat-panel:hover img {
  transform: none;
}

.features-horizontal .media-panel,
.features-horizontal .media-panel.focus-video-panel,
.features-horizontal .media-panel.timeline-media-panel,
.features-horizontal .media-panel.ai-chat-panel {
  flex: 0 0 auto;
  width: clamp(300px, 30vw, 500px);
  height: clamp(190px, 26svh, 280px);
  min-height: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.features-horizontal .media-panel img,
.features-horizontal .media-panel video,
.features-horizontal .media-panel.focus-video-panel video,
.features-horizontal .media-panel.timeline-media-panel img,
.features-horizontal .media-panel.ai-chat-panel img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background: transparent;
  box-shadow: 0 18px 48px rgba(29, 29, 29, 0.12);
}

.features-horizontal .media-panel:hover img,
.features-horizontal .media-panel:hover video,
.features-horizontal .media-panel.focus-video-panel:hover video,
.features-horizontal .media-panel.timeline-media-panel:hover img,
.features-horizontal .media-panel.ai-chat-panel:hover img {
  transform: none;
}

.media-panel.portrait {
  place-items: center;
}

.media-panel.portrait img {
  width: min(58%, 520px);
  aspect-ratio: 502 / 586;
  object-fit: contain;
}

.media-panel.split {
  grid-template-columns: 1fr 1fr;
}

.media-panel.split.asymmetric {
  grid-template-columns: minmax(180px, 0.58fr) 1fr;
}

.media-panel.split img {
  object-fit: cover;
}

.media-panel.split img:nth-child(2) {
  margin-top: 0;
}

.media-panel.mosaic {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.media-panel.mosaic img {
  min-height: 0;
  box-shadow: none;
  animation: tile-pan 9s ease-in-out infinite alternate;
}

.media-panel.mosaic img:nth-child(2n) {
  animation-delay: -2s;
}

.media-panel.mosaic img:nth-child(3n) {
  animation-delay: -4s;
}

@keyframes tile-pan {
  0% {
    object-position: 50% 42%;
  }
  100% {
    object-position: 50% 58%;
  }
}

.companion-mosaic {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.companion-mosaic img:first-child,
.companion-mosaic img:nth-child(2),
.companion-mosaic img:nth-child(3) {
  object-fit: contain;
  background: #efff82;
}

.ai-mosaic {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.ai-mosaic img:nth-child(3) {
  object-fit: contain;
}

.focus-mosaic {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.focus-mosaic::after {
  content: "";
  border-radius: 8px;
  background: rgba(29, 29, 29, 0.08);
}

.download {
  min-height: 100svh;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 92px);
  align-items: start;
  padding-top: clamp(84px, 10vw, 132px);
}

.download-copy {
  grid-column: 1 / 7;
}

.download-copy p:not(.eyebrow) {
  font-size: clamp(15px, 1.35vw, 21px);
  line-height: 1.32;
  letter-spacing: -0.018em;
}

.download-guide-video {
  margin: clamp(22px, 3vw, 34px) 0 clamp(18px, 2.4vw, 28px);
  width: min(100%, 620px);
}

.download-guide-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 253, 244, 0.62);
  box-shadow: 0 18px 56px rgba(29, 29, 29, 0.12);
}

.download-install-note {
  max-width: 680px;
  margin-top: clamp(14px, 2vw, 22px);
  padding-top: 16px;
  border-top: 1px solid rgba(29, 29, 29, 0.16);
  color: rgba(29, 29, 29, 0.66);
  font-size: clamp(11px, 0.9vw, 14px) !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
}

.download-actions {
  grid-column: 8 / -1;
  display: grid;
  gap: 16px;
  align-self: center;
}

.download-platform {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0;
  font-family: var(--mono-font);
  font-size: clamp(10px, 0.78vw, 12px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.download-platform small {
  color: var(--muted);
  font-size: inherit;
}

.download-button {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid rgba(29, 29, 29, 0.2);
  border-radius: 999px;
  background: #fffdf4;
  box-shadow: 0 14px 42px rgba(29, 29, 29, 0.08);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.download-button span {
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.download-button small {
  color: var(--muted);
}

.download-button.primary {
  background: #efff82;
  border-color: rgba(29, 29, 29, 0.36);
}

.download-button:hover {
  background: #b9b2fd;
  border-color: rgba(29, 29, 29, 0.36);
  box-shadow: 0 22px 58px rgba(29, 29, 29, 0.14);
  transform: translateY(-3px);
}

.download-button.disabled {
  cursor: default;
  background: rgba(255, 253, 244, 0.48);
  border-style: dashed;
  color: rgba(29, 29, 29, 0.58);
  box-shadow: none;
}

.download-button.disabled:hover {
  background: rgba(255, 253, 244, 0.48);
  border-color: rgba(29, 29, 29, 0.2);
  box-shadow: none;
  transform: none;
}

.download-live {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 4px 0 0;
  font-family: var(--mono-font);
  font-size: clamp(10px, 0.78vw, 12px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.download-live strong {
  font-family: var(--latin-font);
  letter-spacing: 0;
}

.download-choice,
.donate-modal {
  position: fixed;
  z-index: 120;
}

.download-choice[hidden],
.donate-modal[hidden] {
  display: none;
}

.download-choice {
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--grid-margin);
}

.download-choice-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(16px, 2.4vw, 24px);
  width: min(680px, 100%);
  max-height: calc(100svh - 32px);
  overflow: hidden;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 8px;
  background: var(--yellow);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.34);
}

.download-choice-copy p,
.download-choice-copy span {
  display: block;
}

.download-choice-copy p {
  margin: 0;
}

.download-choice-copy p:not(.eyebrow) {
  max-width: 520px;
  padding-right: clamp(72px, 15vw, 120px);
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.download-choice-copy span {
  max-width: 480px;
  margin-top: 12px;
  color: var(--muted);
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.32;
  letter-spacing: -0.012em;
}

.download-choice-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.choice-button {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(29, 29, 29, 0.22);
  border-radius: 8px;
  background: rgba(255, 253, 244, 0.72);
  text-align: left;
  transition: background 0.28s var(--ease), border-color 0.28s var(--ease), transform 0.28s var(--ease);
}

.choice-button span,
.payment-complete span {
  display: block;
  font-size: clamp(15px, 1.1vw, 18px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 500;
}

.choice-button small,
.payment-complete small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--mono-font);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.choice-button:hover,
.choice-button:focus-visible,
.choice-button.donate {
  background: #fffdf4;
  border-color: rgba(29, 29, 29, 0.4);
  transform: translateY(-2px);
}

.choice-button:hover small,
.choice-button:focus-visible small,
.choice-button.donate small {
  color: var(--muted);
}

.choice-close,
.donate-close {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(29, 29, 29, 0.22);
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
}

.donate-modal {
  inset: 0;
  display: grid;
  place-items: center;
  padding: var(--grid-margin);
}

.donate-scrim {
  position: absolute;
  inset: 0;
  background: rgba(21, 21, 21, 0.58);
  backdrop-filter: blur(10px);
}

.donate-panel {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  max-height: calc(100svh - 32px);
  overflow: hidden;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 8px;
  background: var(--yellow);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.34);
}

.donate-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 6;
  background: rgba(255, 253, 244, 0.76);
}

.donate-copy,
.qr-grid,
.payment-complete {
  position: relative;
  z-index: 2;
}

.donate-copy {
  max-width: 520px;
  padding-right: clamp(72px, 15vw, 120px);
}

.donate-copy h2 {
  margin: 0;
  max-width: 520px;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
}

.donate-copy p:not(.eyebrow) {
  margin: 12px 0 0;
  max-width: 480px;
  color: rgba(29, 29, 29, 0.72);
  font-size: clamp(13px, 1.05vw, 15px);
  line-height: 1.32;
  letter-spacing: -0.012em;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: clamp(16px, 2.4vw, 24px);
}

.qr-card {
  margin: 0;
}

.qr-placeholder {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px dashed rgba(29, 29, 29, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(45deg, rgba(255, 253, 244, 0.9) 25%, transparent 25% 75%, rgba(255, 253, 244, 0.9) 75%),
    linear-gradient(45deg, rgba(255, 253, 244, 0.9) 25%, transparent 25% 75%, rgba(255, 253, 244, 0.9) 75%);
  background-color: rgba(29, 29, 29, 0.08);
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px;
}

.qr-placeholder span,
.qr-card figcaption {
  font-family: var(--mono-font);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.qr-placeholder span {
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
}

.qr-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(10px, 1.6vw, 16px);
}

.qr-image[hidden] {
  display: none;
}

.qr-image:not([hidden]) + span {
  display: none;
}

.qr-card figcaption {
  margin-top: 10px;
}

.payment-complete {
  width: 100%;
  margin-top: 14px;
  padding: 16px 20px;
  border: 1px solid rgba(29, 29, 29, 0.24);
  border-radius: 999px;
  background: #fffdf4;
  color: var(--ink);
  text-align: center;
  transition: transform 0.28s var(--ease), background 0.28s var(--ease);
}

.payment-complete:hover,
.payment-complete:focus-visible {
  transform: translateY(-2px);
  background: #b9b2fd;
}

.payment-complete small {
  color: var(--muted);
}

.donate-main-cat {
  position: absolute;
  top: 22px;
  right: 70px;
  z-index: 1;
  width: clamp(70px, 12vw, 110px);
  height: clamp(70px, 12vw, 110px);
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.18));
  animation: modal-cat-float 3.8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes modal-cat-float {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-8px) rotate(4deg);
  }
}

.site-footer {
  min-height: auto;
  padding: 22px var(--grid-margin);
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: clamp(16px, 3vw, 40px);
  align-items: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.footer-brand img {
  width: 34px;
  height: 34px;
}

.site-footer p,
.site-footer a,
.footer-brand span {
  margin: 0;
  font-size: clamp(13px, 0.95vw, 16px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.site-footer a {
  justify-self: end;
}

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero-footnote {
    flex-wrap: wrap;
    justify-content: end;
  }

  .hero-footnote > * {
    justify-self: end;
  }

  .motion-section,
  .feature-overview,
  .features-horizontal,
  .feature-story,
  .download,
  .site-footer {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .motion-copy,
  .motion-media-stack,
  .video-frame,
  .feature-copy,
  .feature-media-flow,
  .download-copy,
  .download-actions {
    grid-column: 1 / -1;
    position: static;
  }

  .feature-story {
    min-height: auto;
  }

  .feature-media-flow {
    gap: 28px;
  }

  .feature-overview {
    min-height: auto;
  }

  .motion-section {
    min-height: auto;
  }

  .motion-media-stack {
    width: 100%;
    gap: 42px;
  }

  .manifesto-letter {
    max-width: 100%;
  }

  .letter-page {
    width: 100%;
    justify-self: stretch;
  }

  .letter-line + .letter-line {
    margin-top: 0.6em;
  }

  .features-horizontal {
    min-height: 100svh;
    padding-top: 84px;
    padding-bottom: 48px;
    overflow: hidden;
  }

  .features-header {
    gap: 16px;
  }

  .feature-stage {
    margin-right: calc(var(--grid-margin) * -1);
  }

  .feature-track {
    gap: 24px;
    padding-bottom: 16px;
  }

  .features-horizontal .feature-slide {
    flex-basis: calc(100vw - var(--grid-margin) * 2);
    width: calc(100vw - var(--grid-margin) * 2);
    min-width: 0;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .features-horizontal .feature-media-flow {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 4px;
  }

  .features-horizontal .media-panel,
  .features-horizontal .focus-video-panel,
  .features-horizontal .timeline-media-panel,
  .features-horizontal .ai-chat-panel {
    flex-basis: auto;
    width: min(74vw, 360px);
    height: clamp(170px, 28svh, 260px);
    scroll-snap-align: start;
  }

  .desk-video-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .media-panel {
    position: static;
    min-height: auto;
  }

  .media-panel.split,
  .media-panel.split.asymmetric,
  .media-panel.mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .media-panel.split img,
  .media-panel.mosaic img,
  .media-panel.single img {
    grid-column: auto !important;
    grid-row: auto !important;
    aspect-ratio: auto;
    height: auto;
    margin-top: 0 !important;
  }

  .media-panel.portrait img {
    width: min(82%, 420px);
  }

  .site-footer > * {
    grid-column: auto;
  }

  .site-footer a {
    justify-self: end;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .site-footer > *,
  .site-footer a {
    justify-self: start;
  }

  .download-choice {
    padding: 14px;
  }

  .download-choice-inner {
    max-height: calc(100svh - 28px);
    overflow: auto;
    padding: 16px;
  }

  .download-choice-copy p:not(.eyebrow) {
    padding-right: 58px;
  }

  .download-choice-actions {
    grid-template-columns: 1fr;
  }

  .choice-button {
    min-width: 0;
    padding: 14px;
  }

  .donate-modal {
    padding: 14px;
  }

  .donate-panel {
    max-height: calc(100svh - 28px);
    overflow: auto;
  }

  .donate-copy {
    padding-right: 58px;
  }

  .donate-main-cat {
    top: 18px;
    right: 52px;
    width: 58px;
    height: 58px;
  }

  .qr-grid {
    grid-template-columns: 1fr;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
