/* web/src/styles.css */
:root {
  --buncss-light: initial;
  --buncss-dark: ;
  color-scheme: light;
  --bg: #fff;
  --bg-2: #f5f5f7;
  --fill: #7676801f;
  --fill-2: #76768014;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --hairline: #0000001a;
  --hairline-2: #0000000f;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --link: #06c;
  --imessage: #007aff;
  --received: #e9e9eb;
  --red: #e30000;
  --green: #1d8a3a;
  --card-shadow: 0 1px 2px #0000000a, 0 8px 28px #0000000f;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1080px;
  --gutter: 22px;
  --nav-h: 48px;
  --ease: cubic-bezier(.25, .1, .25, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--nav-h);
  scroll-padding-top: calc(var(--nav-h)  + 16px);
}

html.smooth-scroll {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  margin: 0;
  font-size: 17px;
  line-height: 1.47;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

button, input, textarea, select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  font-weight: 600;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid #0071e373;
  outline-offset: 2px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

.wrap {
  max-width: calc(var(--wrap)  + var(--gutter) * 2);
  padding: 0 var(--gutter);
  width: 100%;
  margin: 0 auto;
}

.soft {
  color: var(--text-3);
}

.skip {
  position: absolute;
  z-index: 100;
  background: var(--text);
  color: #fff;
  border-radius: 980px;
  padding: 10px 16px;
  font-size: 14px;
  top: -60px;
  left: 12px;
}

.skip:focus-visible {
  top: 10px;
}

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

.btn {
  display: inline-flex;
  background: var(--fill);
  color: var(--text);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .2s var(--ease), opacity .2s var(--ease);
  border: 0;
  border-radius: 980px;
  justify-content: center;
  align-items:  center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
}

.btn:hover {
  text-decoration: none;
  background: #7676802e;
}

.btn:active {
  opacity: .8;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-hover);
}

.btn-gray {
  background: var(--fill);
  color: var(--text);
}

.btn-lg {
  min-height: 44px;
  padding: 11px 22px;
  font-size: 17px;
}

.btn-sm {
  min-height: 28px;
  padding: 4px 12px;
  font-size: 12px;
}

.btn-xs {
  min-height: 28px;
  padding: 4px 13px;
  font-size: 13px;
}

.btn-block {
  border-radius: 14px;
  width: 100%;
  min-height: 50px;
  font-size: 17px;
  font-weight: 600;
}

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .4;
  pointer-events: none;
}

.link-more {
  color: var(--link);
  white-space: nowrap;
  font-size: 17px;
}

.link-more:after {
  content: "›";
  display: inline-block;
  margin-left: 4px;
  transform: translateY(-.02em)scale(1.25);
}

.icon-btn {
  display: inline-grid;
  color: var(--text-3);
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
  background: none;
  border: 0;
  border-radius: 980px;
  place-items:  center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
}

.icon-btn:hover {
  background: var(--fill-2);
  color: var(--text);
}

.topbar {
  position: sticky;
  z-index: 50;
  height: var(--nav-h);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline-2);
  background: #fffc;
  top: 0;
}

.topbar .wrap {
  display: flex;
  align-items:  center;
  gap: 28px;
  height: 100%;
}

.brand {
  display: inline-flex;
  color: var(--text);
  letter-spacing: -.02em;
  align-items:  center;
  gap: 9px;
  font-size: 17px;
  font-weight: 600;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
}

.topnav {
  display: flex;
  gap: 26px;
}

.topnav a {
  color: var(--text);
  opacity: .8;
  letter-spacing: -.01em;
  font-size: 13px;
}

.topnav a:hover {
  opacity: 1;
  text-decoration: none;
}

.topbar .spacer {
  flex: 1;
}

.intro {
  position: relative;
  height: calc((100vh - var(--nav-h)) * 6.4);
  height: calc((100svh - var(--nav-h)) * 6.4);
}

.intro-stage {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  height: calc(100svh - var(--nav-h));
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
  min-height: 560px;
}

.intro-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
}

.intro-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.intro-fallback {
  display: none;
}

.intro-stage.no-webgl .intro-fallback {
  position: absolute;
  display: block;
  width: min(520px, 100vw - 32px);
  bottom: 9%;
  left: 50%;
  transform: translateX(-50%);
}

.intro-copy {
  position: relative;
  z-index: 3;
  text-align: center;
  opacity: calc(1 - var(--copy-out, 0));
  transform: translateY(calc(var(--copy-out, 0) * -40px));
  padding-top: clamp(36px, 7vh, 88px);
}

.intro-journey {
  position: absolute;
  z-index: 2;
  overflow: hidden;
  container-type: size;
  opacity: 0;
  clip-path: circle(0 at 50% 50%);
  background: #000;
  inset: 0;
}

.film, .shot {
  position: absolute;
  inset: 0;
}

.shot {
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}

.shot.is-on {
  opacity: 1;
  visibility: visible;
  transition: opacity .35s var(--ease), visibility 0s;
}

.shot-cover {
  background: #000;
}

.shot-cover video, .shot-cover .hero-world-canvas {
  position: absolute;
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
  inset: 0;
}

.film-print {
  --w: min(86cqw, 46cqh * 4 / 3);
  position: absolute;
  box-sizing: content-box;
  width: var(--w);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: calc(var(--w) * .025) solid rgba(255, 255, 255, var(--paper, 1));
  box-shadow: 0 18px 50px rgba(0, 0, 0, calc(var(--paper, 1) * .5));
  top: 42%;
  left: 50%;
}

.film-top {
  transform: translate(-50%, -50%) translateY(calc((1 - var(--rise, 1)) * 6cqh)) scale(calc(.9 + .1 * var(--rise, 1)));
}

.film-stack {
  opacity: var(--stack, 1);
  transform: translate(-50%, -50%) translate(calc(var(--i) * 2.2cqw - 5.5cqw), calc(var(--i) * -.9cqh)) rotate(calc(var(--i) * 3.2deg - 8deg));
}

.film-flight {
  position: absolute;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transform-origin: 50% 50%;
  max-width: none;
  top: 50%;
  left: 50%;
}

.shot-world .hero-world-canvas {
  opacity: 0;
  transition: opacity .8s var(--ease);
}

.shot-world.is-live .hero-world-canvas {
  opacity: 1;
}

.shot-people {
  --people: 0;
  --inset: min(30cqw, 360px);
  container-type: size;
}

.people-3d {
  opacity: var(--people);
}

.people-clip {
  position: absolute;
  top: calc(var(--people) * 24px);
  right: calc(var(--people) * var(--gutter));
  z-index: 1;
  width: calc(100cqw + var(--people) * (var(--inset)  - 100cqw));
  height: calc(100cqh + var(--people) * (var(--inset) * 9 / 16 - 100cqh));
  overflow: hidden;
  border-radius: calc(var(--people) * 14px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, calc(var(--people) * .5));
  margin: 0;
}

.people-clip video {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.people-clip figcaption {
  position: absolute;
  color: #fff;
  opacity: var(--people);
  background: #0000008c;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  bottom: 8px;
  left: 10px;
}

.journey-copy {
  position: absolute;
  z-index: 2;
  display: grid;
  pointer-events: none;
  padding: 120px 0 clamp(28px, 6vh, 64px);
  bottom: 0;
  left: 0;
  right: 0;
}

.journey-copy:before {
  content: "";
  position: absolute;
  z-index: -1;
  opacity: 0;
  transition: opacity .3s var(--ease);
  background: linear-gradient(0deg, #000000d1 0%, #0009 45%, #0000 100%);
  inset: 0;
}

.journey-copy.has-words:before {
  opacity: 1;
}

.journey-copy {
  isolation: isolate;
}

.beat {
  grid-area: 1 / 1;
  max-width: calc(var(--wrap)  + var(--gutter) * 2);
  padding: 0 var(--gutter);
  color: #f5f5f7;
  opacity: 0;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  align-self:  end;
  width: 100%;
  margin: 0 auto;
  transform: translateY(12px);
}

.beat.is-on {
  opacity: 1;
  transform: none;
}

.beat:not([inert]) {
  pointer-events: auto;
}

.beat-kicker {
  color: #d2d2d7;
  font-size: 17px;
  font-weight: 600;
}

.beat h2 {
  letter-spacing: -.025em;
  text-wrap: balance;
  max-width: 14em;
  margin-top: 4px;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.05;
}

.beat > p:not(.beat-kicker) {
  color: #c7c7cc;
  text-wrap: pretty;
  transition: opacity .3s var(--ease);
  max-width: 30em;
  margin-top: 12px;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.42;
}

.beat.sub-wait > p:not(.beat-kicker) {
  opacity: 0;
}

.beat b {
  color: #fff;
  font-variant-numeric: tabular-nums;
}

@media (max-height: 760px) {
  .journey-copy {
    padding-top: 90px;
  }

  .beat h2 {
    font-size: clamp(28px, 3.6vw, 46px);
  }

  .beat > p:not(.beat-kicker) {
    margin-top: 8px;
    font-size: 17px;
  }
}

.beat-cta {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 14px 28px;
  margin-top: 24px;
}

.btn-white {
  color: var(--text);
  background: #fff;
}

.btn-white:hover {
  background: #ffffffdb;
}

.link-light {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-aspect-ratio: 4 / 5) {
  .shot-cover[data-shot="cameras"] video, .shot-people .people-3d, .shot-people .people-clip video {
    object-fit: contain;
    object-position: 50% 38%;
  }
}

.journey-static {
  background: #000;
  padding: 72px 0 88px;
}

.journey-static .journey-copy:before {
  content: none;
}

.journey-static .journey-copy {
  position: static;
  padding: 0 var(--gutter);
  background: none;
  gap: 56px;
  max-width: 980px;
  margin: 0 auto;
}

.journey-static .beat {
  grid-area: auto;
  opacity: 1;
  max-width: none;
  padding: 0;
  transform: none;
}

.journey-static .beat > p:not(.beat-kicker) {
  opacity: 1;
}

.beat-still {
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #1d1d1f;
  border-radius: 14px;
  width: 100%;
  margin-bottom: 20px;
}

@media (min-width: 735px) {
  .journey-static .beat {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr;
    align-items:  start;
    column-gap: 40px;
  }

  .journey-static .beat-still {
    grid-row: 1 / -1;
    margin: 0;
  }

  .journey-static .beat > :not(.beat-still) {
    grid-column: 2;
  }

  .journey-static .beat > .beat-kicker {
    margin-top: 12%;
  }
}

.slogan {
  letter-spacing: -.03em;
  font-size: clamp(40px, 6.6vw, 92px);
  font-weight: 700;
  line-height: 1.03;
}

.slogan .line {
  display: block;
  text-wrap: balance;
}

.intro-sub {
  color: var(--text-2);
  text-wrap: pretty;
  max-width: 34em;
  margin: 22px auto 0;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.42;
}

.intro-copy .cta-row {
  justify-content: center;
  margin-top: 28px;
}

@media (prefers-reduced-motion: no-preference) {
  .intro-stage .slogan, .intro-stage .intro-sub, .intro-stage .intro-copy .cta-row {
    animation: fade-in .3s var(--ease) both;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

.intro-look {
  position: absolute;
  z-index: 3;
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: -.025em;
  text-align: center;
  opacity: 0;
  transition: opacity .3s var(--ease);
  pointer-events: none;
  margin: 0;
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
  top: clamp(40px, 10vh, 96px);
  left: 0;
  right: 0;
}

.intro.is-static .intro-look {
  display: none;
}

.intro-anchor {
  position: absolute;
  width: 1px;
  height: 1px;
  left: 0;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 14px 28px;
  margin-top: 32px;
}

.chapter {
  position: relative;
  height: calc((100vh - var(--nav-h)) * 1.6);
  height: calc((100svh - var(--nav-h)) * 1.6);
}

.chapter-stage {
  --p: 0;
  position: sticky;
  top: var(--nav-h);
  display: flex;
  height: calc(100vh - var(--nav-h));
  height: calc(100svh - var(--nav-h));
  overflow: hidden;
  background: var(--bg);
  flex-direction: column;
  min-height: 560px;
}

.chapter-copy {
  position: relative;
  z-index: 2;
  text-align: center;
  order: -1;
  padding-top: clamp(32px, 6vh, 72px);
}

.chapter-kicker {
  color: var(--text-3);
  font-size: 17px;
  font-weight: 600;
}

.chapter h2 {
  letter-spacing: -.025em;
  text-wrap: balance;
  margin-top: 6px;
  font-size: clamp(34px, 5.4vw, 72px);
  font-weight: 700;
  line-height: 1.05;
}

.chapter-copy > p:last-child {
  color: var(--text-2);
  text-wrap: pretty;
  max-width: 32em;
  margin: 16px auto 0;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.42;
}

.chapter-copy b {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.chapter-visual {
  position: relative;
  flex: 1;
  min-height: 0;
}

.upload-card {
  position: absolute;
  width: min(400px, calc(100vw - 32px), calc((100svh - var(--nav-h)) * .48));
  background: #fff;
  border-radius: 28px;
  padding: 16px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 30px 80px #0000001f, 0 2px 6px #0000000d;
}

.upload-modes {
  display: flex;
  background: var(--fill);
  border-radius: 9px;
  padding: 2px;
}

.upload-modes span {
  text-align: center;
  border-radius: 7px;
  flex: 1;
  padding: 6px;
  font-size: 13px;
  font-weight: 500;
}

.upload-modes .is-on {
  background: #fff;
  font-weight: 600;
  box-shadow: 0 3px 8px #0000001f, 0 3px 1px #0000000a;
}

.upload-drop {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #fafafa;
  border: 2px dashed #3c3c4338;
  border-radius: 18px;
  margin-top: 14px;
}

.upload-status {
  position: absolute;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  background: #ffffffeb;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 2px 10px #0000001f;
}

.upload-bar {
  overflow: hidden;
  background: #e5e5ea;
  border-radius: 3px;
  height: 6px;
  margin-top: 14px;
}

.upload-bar span {
  display: block;
  width: calc(var(--upload) * 100%);
  background: var(--imessage);
  border-radius: 3px;
  height: 100%;
}

.upload-meta {
  display: flex;
  color: var(--text-2);
  justify-content: space-between;
  margin-top: 10px;
  font-size: 13px;
}

.chapter-gray .chapter-stage {
  background: var(--bg-2);
}

.anywhere {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(24px, 5vh, 56px);
}

.anywhere-tile {
  background: var(--bg);
  border-radius: 24px;
  padding: 12px 12px 26px;
}

.anywhere-shot {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1d1d1f;
  border-radius: 14px;
}

.anywhere-shot img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.anywhere-tile h3 {
  letter-spacing: -.01em;
  margin: 18px 14px 0;
  font-size: 24px;
}

.anywhere-tile p {
  color: var(--text-2);
  margin: 6px 14px 0;
  font-size: 17px;
  line-height: 1.4;
}

.anywhere-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items:  center;
  gap: 14px 28px;
  margin-top: clamp(24px, 4vh, 40px);
}

.section {
  padding: 96px 0;
}

.section.tint {
  background: var(--bg-2);
}

.section-title {
  letter-spacing: -.003em;
  text-wrap: balance;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.08;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items:  flex-end;
  gap: 18px 24px;
  margin-bottom: 36px;
}

.tips {
  list-style: none;
  counter-reset: tip;
  margin: 24px 0 0;
  padding: 0;
}

.tips li {
  position: relative;
  border-top: 1px solid var(--hairline);
  color: var(--text-2);
  counter-increment: tip;
  padding: 13px 0 13px 40px;
  font-size: 15px;
  line-height: 1.4;
}

.tips li:before {
  content: counter(tip);
  position: absolute;
  display: grid;
  background: var(--fill);
  color: var(--text);
  border-radius: 50%;
  place-items:  center;
  width: 24px;
  height: 24px;
  font-size: 13px;
  font-weight: 600;
  top: 12px;
  left: 0;
}

.tips li b {
  color: var(--text);
  font-weight: 600;
}

.segmented {
  display: inline-flex;
  background: var(--fill);
  border-radius: 9px;
  padding: 2px;
}

.segmented > button {
  position: relative;
  display: inline-flex;
  color: var(--text);
  cursor: pointer;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
  background: none;
  border: 0;
  border-radius: 7px;
  justify-content: center;
  align-items:  center;
  gap: 6px;
  min-width: 76px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
}

.segmented > button[aria-pressed="true"], .segmented > button[aria-checked="true"] {
  background: #fff;
  font-weight: 600;
  box-shadow: 0 3px 8px #0000001f, 0 3px 1px #0000000a;
}

.segmented .n {
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 36px 24px;
}

.scene-card {
  display: flex;
  transition: opacity .28s var(--ease), transform .28s var(--ease);
  flex-direction: column;
  min-width: 0;
}

.scene-card.leaving {
  opacity: 0;
  transform: scale(.97);
}

.scene-card.is-new .thumb {
  box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--imessage);
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-2);
  border-radius: 18px;
}

.thumb img {
  object-fit: cover;
  transition: transform .5s var(--ease);
  width: 100%;
  height: 100%;
}

.scene-card[data-status="ready"] .thumb {
  cursor: pointer;
}

.scene-card[data-status="ready"] .thumb:hover img {
  transform: scale(1.025);
}

.thumb-badges {
  position: absolute;
  display: flex;
  gap: 6px;
  top: 12px;
  left: 12px;
}

.badge {
  display: inline-flex;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  letter-spacing: -.005em;
  background: #ffffffdb;
  border-radius: 980px;
  align-items:  center;
  height: 22px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 600;
}

.badge.status-ready {
  display: none;
}

.badge.status-queued, .badge.status-uploading, .badge.status-running, .badge.status-downloading {
  color: var(--imessage);
}

.badge.status-failed {
  color: var(--red);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 2px 0;
}

.card-title {
  overflow: hidden;
  letter-spacing: .012em;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 19px;
  line-height: 1.25;
}

.card-sub {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-2);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.43;
}

.stage-line {
  display: flex;
  color: var(--text-2);
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 6px;
  font-size: 13px;
}

.stage-line b {
  color: var(--text);
  font-weight: 500;
}

.stage-line .pct {
  font-variant-numeric: tabular-nums;
}

.progress {
  position: relative;
  overflow: hidden;
  background: #e5e5ea;
  border-radius: 2px;
  height: 4px;
}

.progress-fill {
  background: var(--imessage);
  transform-origin: left center;
  transition: transform .6s var(--ease);
  border-radius: 2px;
  height: 100%;
  transform: scaleX(0);
}

.progress.indeterminate .progress-fill {
  animation: slide 1.4s ease-in-out infinite;
  width: 30%;
  transform: none !important;
}

@keyframes slide {
  from {
    margin-left: -30%;
  }

  to {
    margin-left: 100%;
  }
}

.error-box {
  color: #b00020;
  background: #fff2f2;
  border-radius: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.4;
}

.card-foot {
  display: flex;
  align-items:  center;
  gap: 6px;
  margin-top: 12px;
}

.card-foot .meta {
  overflow: hidden;
  color: var(--text-3);
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
  font-size: 12px;
}

.del.confirm {
  background: var(--red);
  color: #fff;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
}

.del.confirm:hover {
  color: #fff;
  background: #c00;
}

.empty {
  grid-column: 1 / -1;
  background: var(--bg-2);
  text-align: center;
  border-radius: 22px;
  padding: 64px 24px;
}

.empty h3 {
  font-size: 24px;
}

.empty p {
  color: var(--text-2);
  margin: 6px 0 20px;
}

.skeleton {
  aspect-ratio: 16 / 10;
  background: linear-gradient(100deg, var(--bg-2) 30%, #fafafa 50%, var(--bg-2) 70%) 0 0 / 300% 100%;
  animation: shimmer 1.6s linear infinite;
  border-radius: 18px;
}

@keyframes shimmer {
  to {
    background-position: -150% 0;
  }
}

.banner {
  display: none;
  color: #7a5200;
  background: #fff8e6;
  border-radius: 12px;
  margin-bottom: 20px;
  padding: 12px 16px;
  font-size: 14px;
}

.banner.show {
  display: block;
}

.duo {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr);
  gap: 20px;
  margin-top: 36px;
}

.panel {
  background: var(--bg);
  border-radius: 22px;
  padding: 32px;
}

.panel h3 {
  letter-spacing: .011em;
  font-size: 21px;
}

.lan-box {
  display: flex;
  align-items:  center;
  gap: 22px;
  margin-top: 20px;
}

.qr {
  border: 1px solid var(--hairline);
  background: #fff;
  border-radius: 16px;
  flex: none;
  width: 132px;
  height: 132px;
  padding: 8px;
}

.qr:empty {
  background: var(--bg-2);
  border-color: #0000;
}

.qr svg {
  width: 100%;
  height: 100%;
}

.lan-url {
  display: inline-block;
  overflow-wrap: anywhere;
  font-size: 17px;
  font-weight: 500;
}

.lan-note {
  color: var(--text-2);
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.43;
}

.lan-actions {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 10px 18px;
  margin-top: 14px;
}

.lan-actions .link-more {
  font-size: 14px;
}

.controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 18px;
}

.controls h4 {
  color: var(--text-3);
  padding-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}

.controls dl {
  margin: 0;
}

.controls dl div {
  display: grid;
  border-top: 1px solid var(--hairline);
  gap: 2px;
  padding: 9px 0;
  font-size: 14px;
}

.controls dt {
  font-weight: 500;
}

.controls dd {
  color: var(--text-2);
  margin: 0;
}

kbd {
  display: inline-block;
  color: var(--text);
  font-family: var(--font);
  text-align: center;
  background: #fff;
  border: 1px solid #d2d2d7;
  border-bottom-width: 2px;
  border-radius: 6px;
  min-width: 22px;
  margin-right: 3px;
  padding: 1px 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.footer {
  padding: 20px 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--hairline);
  background: var(--bg-2);
  color: var(--text-2);
  letter-spacing: -.01em;
  font-size: 12px;
  line-height: 1.33;
}

.footer-notes {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 14px;
}

.footer-notes p {
  max-width: 820px;
  margin: 0;
}

.footer-notes p + p {
  margin-top: 8px;
}

.footer-notes a, .model-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: #0000004d;
}

.footer-notes a:hover, .model-credit a:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}

.footer-notes .footer-more {
  color: var(--link);
  text-decoration: none;
  white-space: nowrap;
}

.footer-notes .footer-more:after {
  content: " ›";
}

.footer-notes .footer-more:hover {
  color: var(--link);
  text-decoration: underline;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  padding-top: 14px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  z-index: 80;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  background: #1d1d1fdb;
  border-radius: 14px;
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  font-size: 15px;
  transform: translate(-50%, 12px);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%);
}

.capture-main {
  min-height: calc(100vh - var(--nav-h));
  background: var(--bg-2);
  padding: 56px 0 96px;
}

.capture-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items:  start;
  gap: 40px;
}

#capture-form {
  max-width: 620px;
}

.capture-head .kicker {
  color: var(--text-3);
  font-size: 15px;
  font-weight: 500;
}

.capture-head h1 {
  text-wrap: balance;
  letter-spacing: -.003em;
  margin-top: 4px;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.08;
}

.capture-head p:last-child {
  color: var(--text-2);
  margin-top: 12px;
  font-size: 19px;
  line-height: 1.42;
}

.mode-pick {
  display: flex;
  margin-top: 28px;
}

.mode-pick > button {
  flex: 1;
  padding: 7px 14px;
  font-size: 14px;
}

.group-label {
  color: var(--text-2);
  margin: 30px 16px 8px;
  font-size: 13px;
}

.list {
  overflow: hidden;
  background: var(--bg);
  border-radius: 14px;
}

.row {
  display: flex;
  align-items:  center;
  gap: 14px;
  min-height: 52px;
  margin: 0;
  padding: 10px 16px;
}

.row + .row {
  border-top: 1px solid var(--hairline-2);
}

.pick {
  position: relative;
  cursor: pointer;
  transition: background-color .15s var(--ease);
}

.pick:hover, .pick:focus-within {
  background: #fafafa;
}

.pick:active {
  background: #ececee;
}

.pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.row-icon {
  display: grid;
  color: #fff;
  border-radius: 7px;
  flex: none;
  place-items:  center;
  width: 30px;
  height: 30px;
}

.row-icon svg {
  width: 18px;
  height: 18px;
}

.row-icon.blue {
  background: var(--imessage);
}

.row-icon.gray {
  background: #8e8e93;
}

.row-text {
  display: grid;
  flex: 1;
  min-width: 0;
}

.row-text small {
  color: var(--text-3);
  font-size: 13px;
}

.chev {
  color: #c4c4c7;
  flex: none;
  width: 8px;
  height: 14px;
}

.dropzone.drag .list {
  box-shadow: 0 0 0 2px var(--imessage);
}

.previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.previews:empty {
  display: none;
}

.pv {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #e5e5ea;
  border-radius: 12px;
}

.pv.wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.pv img, .pv video {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.pv .pv-ph {
  display: grid;
  color: var(--text-3);
  place-content:  center;
  justify-items: center;
  gap: 6px;
  height: 100%;
  font-size: 12px;
}

.pv .pv-ph svg {
  width: 28px;
  height: 28px;
}

.pv .pv-meta {
  position: absolute;
  overflow: hidden;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: #00000080;
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 11px;
  bottom: 6px;
  left: 6px;
  right: 6px;
}

.pv .pv-x {
  position: absolute;
  display: grid;
  color: #fff;
  cursor: pointer;
  background: #00000080;
  border: 0;
  border-radius: 50%;
  place-items:  center;
  width: 24px;
  height: 24px;
  font-size: 17px;
  line-height: 1;
  top: 6px;
  right: 6px;
}

.field {
  margin: 0;
}

.field label {
  flex: none;
  width: 92px;
  font-size: 17px;
}

.field.stacked {
  display: grid;
  align-items:  start;
  gap: 4px;
}

.field.stacked label {
  width: auto;
}

.field label small {
  display: block;
  color: var(--text-3);
  font-size: 13px;
}

.input, .textarea {
  outline: none;
  color: var(--text);
  background: none;
  border: 0;
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 0;
  font-size: 17px;
}

.textarea {
  resize: vertical;
  min-height: 84px;
  line-height: 1.4;
}

.input::placeholder, .textarea::placeholder {
  color: #c4c4c7;
}

.row:focus-within .input, .row:focus-within .textarea {
  caret-color: var(--imessage);
}

.submit-row {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.form-error {
  color: var(--red);
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.form-error:not(:empty) {
  background: #fff2f2;
  border-radius: 12px;
  padding: 12px 14px;
}

.form-error details, .error-box details {
  margin-top: 6px;
}

.form-error summary, .error-box summary {
  color: var(--text-2);
  cursor: pointer;
  font-size: 13px;
}

.form-error pre, .error-box pre {
  overflow: auto;
  color: var(--text-2);
  font-family: var(--mono);
  white-space: pre-wrap;
  max-height: 180px;
  margin: 6px 0 0;
  font-size: 11px;
}

.upload-progress {
  display: none;
  background: var(--bg);
  border-radius: 14px;
  margin-top: 16px;
  padding: 14px 16px 16px;
}

.upload-progress.show {
  display: block;
}

.upload-progress .stage-line {
  margin-top: 0;
}

.side-card {
  position: sticky;
  top: calc(var(--nav-h)  + 24px);
  background: var(--bg);
  border-radius: 22px;
  padding: 28px;
}

.side-card .kicker {
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
}

.side-card h2 {
  text-wrap: balance;
  letter-spacing: .009em;
  margin-top: 4px;
  font-size: 24px;
  line-height: 1.17;
}

.side-card .tips {
  margin-top: 16px;
}

.side-card .note {
  color: var(--text-2);
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.43;
}

.side-card .lan-box {
  align-items:  center;
  gap: 14px;
  margin-top: 12px;
}

.side-card .qr {
  width: 104px;
  height: 104px;
  padding: 6px;
}

.side-card .lan-url {
  font-size: 15px;
}

@media (max-width: 980px) {
  .anywhere {
    gap: 12px;
  }

  .anywhere-tile {
    padding: 10px 10px 22px;
  }

  .duo, .capture-grid {
    grid-template-columns: 1fr;
  }

  .side-card {
    position: static;
  }

  #capture-form {
    max-width: none;
  }
}

@media (max-width: 734px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 16px;
  }

  .topnav {
    display: none;
  }

  .intro-copy {
    padding-top: 28px;
  }

  .shot-people {
    --inset: 46cqw;
  }

  .chapter-copy {
    padding-top: 28px;
  }

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

  .anywhere-tile {
    padding: 10px 10px 20px;
  }

  .anywhere-tile h3 {
    margin: 14px 10px 0;
    font-size: 21px;
  }

  .anywhere-tile p {
    margin: 4px 10px 0;
    font-size: 15px;
  }

  .section {
    padding: 64px 0;
  }

  .panel {
    padding: 24px 20px;
  }

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

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

  .lan-box {
    flex-direction: column;
    align-items:  flex-start;
  }

  .capture-main {
    padding-top: 32px;
  }

  .side-card {
    padding: 22px 20px;
  }
}

@media (max-height: 607px) {
  .intro-stage, .chapter-stage {
    min-height: 0;
  }
}

.intro.is-static {
  height: auto;
}

.intro.is-static .intro-stage {
  position: relative;
  top: 0;
}

.intro.is-static .intro-journey {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .intro, .chapter {
    height: auto;
  }

  .intro-stage, .chapter-stage {
    position: relative;
    top: 0;
  }

  html {
    scroll-behavior: auto;
  }

  *, *:before, *:after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

.intro-look.is-on {
  opacity: 1;
}

/* web/src/worlds-row.css */
.worlds {
  background: var(--bg);
  padding: clamp(88px, 12vh, 136px) 0 clamp(72px, 10vh, 112px);
}

.worlds-title {
  letter-spacing: -.022em;
  text-wrap: balance;
  font-size: clamp(40px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.05;
}

.worlds-sub {
  color: var(--text-2);
  letter-spacing: -.012em;
  text-wrap: pretty;
  max-width: 36em;
  margin-top: 14px;
  font-size: clamp(19px, 1.75vw, 24px);
  line-height: 1.33;
}

.worlds-row {
  --wr-gap: 20px;
  --wr-per: 3;
  --wr-aspect: 4 / 5;
  --wr-radius: 28px;
  --wr-pad: 28px;
  --wr-edge: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  margin-top: clamp(32px, 5vh, 56px);
}

.wr-track {
  display: flex;
  gap: var(--wr-gap);
  padding: 6px var(--wr-edge) 8px;
  list-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--wr-edge);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin: 0;
}

.wr-track::-webkit-scrollbar {
  display: none;
}

.wr-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex: 0 0 calc((100% - (var(--wr-per)  - 1) * var(--wr-gap)) / var(--wr-per));
  aspect-ratio: var(--wr-aspect);
  overflow: hidden;
  border-radius: var(--wr-radius);
  color: #fff;
  scroll-snap-align: start;
  background: #1d1d1f;
  flex-direction: column;
  justify-content: flex-end;
}

.wr-card:has(.wr-walk:focus-visible) {
  outline: 3px solid #0071e38c;
  outline-offset: 3px;
}

.wr-media {
  position: absolute;
  z-index: -1;
  inset: 0;
}

.wr-still, .wr-video {
  position: absolute;
  object-fit: cover;
  transition: opacity .6s var(--ease), transform 1.4s var(--ease);
  width: 100%;
  height: 100%;
  inset: 0;
}

.wr-still {
  opacity: 0;
}

.wr-card.has-still .wr-still {
  opacity: 1;
}

.wr-video {
  opacity: 0;
  pointer-events: none;
}

.wr-card.has-frame .wr-video {
  opacity: 1;
}

.wr-media:after {
  content: "";
  position: absolute;
  background: linear-gradient(#0000 0% 38%, #00000038 54%, #00000094 74%, #000000bd 100%);
  inset: 0;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .wr-card:hover .wr-still, .wr-card:hover .wr-video {
    transform: scale(1.035);
  }
}

.wr-copy {
  display: flex;
  padding: var(--wr-pad);
  text-shadow: 0 1px 14px #00000038;
  flex-direction: column;
  align-items:  flex-start;
}

.wr-name {
  color: #fff;
  letter-spacing: -.016em;
  text-wrap: balance;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.12;
}

.wr-made {
  color: #ffffffdb;
  letter-spacing: -.016em;
  text-wrap: pretty;
  margin-top: 6px;
  font-size: 17px;
  line-height: 1.35;
}

.wr-walk {
  text-shadow: none;
  min-height: 40px;
  margin-top: 20px;
  padding: 9px 20px;
}

.wr-walk:after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
}

.wr-walk:focus-visible {
  outline-color: #ffffffe6;
}

.wr-toggle {
  position: absolute;
  right: var(--wr-pad);
  bottom: var(--wr-pad);
  z-index: 2;
  display: grid;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  color: var(--text);
  cursor: pointer;
  transition: background-color .2s var(--ease);
  background: #ffffffc7;
  border: 0;
  border-radius: 50%;
  place-items:  center;
  width: 40px;
  height: 40px;
  padding: 0;
}

.wr-toggle:hover {
  background: #ffffffeb;
}

.wr-toggle svg {
  fill: currentColor;
  width: 16px;
  height: 16px;
}

.wr-toggle:focus-visible {
  outline-color: #ffffffe6;
  border-radius: 50%;
}

.wr-nav {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 18px;
}

.wr-arrow {
  display: grid;
  color: #0000008f;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
  background: #d2d2d7a3;
  border: 0;
  border-radius: 50%;
  place-items:  center;
  width: 36px;
  height: 36px;
  padding: 0;
}

.wr-arrow:hover {
  color: #000000a3;
  background: #dfdfe3b3;
}

.wr-arrow:disabled {
  color: #0000002e;
  cursor: default;
  background: #e8e8eda3;
}

.wr-arrow svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 36px;
  height: 36px;
}

.wr-arrow:focus-visible {
  border-radius: 50%;
}

@media (min-width: 1068px) {
  .worlds-row[data-count="4"], .worlds-row[data-count="5"] {
    --wr-per: 3.16;
  }

  .worlds-row[data-count="2"] {
    --wr-per: 2;
    --wr-aspect: 5 / 4;
  }
}

@media (min-width: 735px) and (max-width: 1067px) {
  .worlds-row {
    --wr-per: 2.16;
    --wr-pad: 24px;
  }

  .worlds-row[data-count="2"] {
    --wr-per: 2;
  }
}

@media (min-width: 735px) and (max-height: 820px) {
  .worlds {
    padding-top: clamp(48px, 7vh, 72px);
  }

  .worlds-row {
    margin-top: 24px;
  }

  .worlds-row:not([data-count="1"]):not([data-count="2"]) {
    --wr-aspect: 1 / 1;
  }
}

@media (min-width: 735px) and (max-width: 1067px) and (max-height: 820px) {
  .worlds-row[data-count="2"] {
    --wr-aspect: 1 / 1;
  }
}

@media (min-width: 735px) {
  .worlds-row[data-count="1"] {
    --wr-per: 1;
    --wr-aspect: 21 / 9;
  }
}

@media (max-width: 734px) {
  .worlds-row {
    --wr-gap: 12px;
    --wr-radius: 24px;
    --wr-pad: 20px;
  }

  .wr-card {
    flex-basis: min(84vw, 400px);
  }

  .wr-name {
    font-size: 24px;
  }

  .wr-made {
    font-size: 15px;
  }

  .wr-walk {
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wr-still, .wr-video {
    transition: none;
  }
}

.hero-chips {
  display: flex;
  flex-direction: column;
  align-items:  center;
  gap: 14px;
  min-height: 40px;
  margin-top: 20px;
}

.hero-signin {
  color: var(--text-2);
  letter-spacing: -.008em;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.hc-list {
  display: flex;
  list-style: none;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.hc-link {
  display: flex;
  background: var(--bg-2);
  color: var(--text);
  letter-spacing: -.01em;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .2s var(--ease);
  border-radius: 980px;
  align-items:  center;
  gap: 10px;
  height: 40px;
  padding: 4px 15px 4px 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.hc-link:hover {
  text-decoration: none;
  background: #ebebef;
}

.hc-media {
  position: relative;
  overflow: hidden;
  background: #e3e3e8;
  border-radius: 980px;
  flex: none;
  width: 50px;
  height: 32px;
}

.hc-still, .hc-video {
  position: absolute;
  object-fit: cover;
  opacity: 0;
  transition: opacity .5s var(--ease);
  width: 100%;
  height: 100%;
  inset: 0;
}

.hc.has-still .hc-still, .hc.has-frame .hc-video {
  opacity: 1;
}

@media (min-width: 735px) and (max-height: 820px) {
  .hero-chips {
    min-height: 36px;
    margin-top: 16px;
  }

  .hc-link {
    height: 36px;
    padding-right: 14px;
    font-size: 13px;
  }

  .hc-media {
    width: 46px;
    height: 28px;
  }
}

@media (max-width: 734px) {
  .hero-chips {
    gap: 12px;
    min-height: 78px;
    margin-top: 22px;
  }

  .hero-signin {
    font-size: 13px;
  }

  .hc-list {
    gap: 12px;
  }

  .hc-link {
    color: var(--text-2);
    background: none;
    flex-direction: column;
    gap: 6px;
    height: auto;
    padding: 0;
    font-size: 12px;
  }

  .hc-link:hover {
    background: none;
  }

  .hc-media {
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    width: min(88px, 26vw);
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hc-still, .hc-video, .hc-link {
    transition: none;
  }
}

@media (max-width: 734px) and (max-height: 700px) {
  .hero-chips {
    display: none;
  }
}

/* web/src/worlds-list.css */
#gallery {
  background: var(--bg-2);
}

#gallery #filters:empty {
  display: none;
}

#gallery #grid, #gallery .wl-list {
  display: block;
  overflow: hidden;
  background: var(--bg);
  border-radius: 18px;
}

#gallery .wl-mine {
  margin-bottom: 28px;
}

#gallery .wl-mine-title {
  color: var(--text-2);
  letter-spacing: -.01em;
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
}

#gallery .world-row {
  --pad: 20px;
  --thumb: 52px;
  --gap: 16px;
  position: relative;
  display: grid;
  grid-template-columns: var(--thumb) minmax(0, 1fr) auto;
  align-items:  center;
  column-gap: var(--gap);
  padding: 12px var(--pad);
  transition: background-color .2s var(--ease);
  min-width: 0;
  min-height: 76px;
}

#gallery .world-row + .world-row:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: calc(var(--pad)  + var(--thumb)  + var(--gap));
  background: var(--hairline);
  pointer-events: none;
  height: 1px;
}

@media (min-resolution: 2dppx) {
  #gallery .world-row + .world-row:before {
    transform-origin: 0 0;
    background: #00000029;
    transform: scaleY(.5);
  }
}

#gallery .world-row.is-new {
  background: #0071e30f;
}

@media (prefers-reduced-motion: no-preference) {
  #gallery .world-row.is-new {
    animation: wl-new 1.2s var(--ease) 4s forwards;
  }
}

@media (prefers-reduced-motion: reduce) {
  #gallery .world-row.is-new {
    animation: wl-new 0s linear 5s forwards;
  }
}

@keyframes wl-new {
  to {
    background: none;
  }
}

@media (hover: hover) {
  #gallery .world-row.is-ready:hover {
    background: #fafafc;
  }
}

#gallery .world-row:has(.wl-walk:focus-visible) {
  outline: 3px solid #0071e380;
  outline-offset: -3px;
  border-radius: 18px;
}

#gallery .wl-thumb {
  position: relative;
  width: var(--thumb);
  height: var(--thumb);
  overflow: hidden;
  background: var(--bg-2);
  border-radius: 12px;
}

#gallery .wl-thumb:after {
  content: "";
  position: absolute;
  border-radius: inherit;
  pointer-events: none;
  inset: 0;
  box-shadow: inset 0 0 0 1px #0000000f;
}

#gallery .wl-thumb img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

#gallery .world-row.no-thumb .wl-thumb:after {
  content: none;
}

#gallery .wl-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

#gallery .wl-head {
  display: flex;
  flex-wrap: wrap;
  align-items:  center;
  gap: 2px 8px;
  margin: 0;
}

#gallery .wl-name {
  color: var(--text);
  letter-spacing: -.022em;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

#gallery .wl-chip {
  display: inline-flex;
  background: var(--fill-2);
  color: var(--text-2);
  letter-spacing: 0;
  border-radius: 980px;
  flex: none;
  align-items:  center;
  height: 20px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}

#gallery .world-row[data-mode="video"] .wl-chip {
  color: #06c;
  background: #0071e314;
}

#gallery .wl-line {
  color: var(--text-2);
  letter-spacing: -.01em;
  text-wrap: pretty;
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

#gallery .world-row[data-state="failed"] .wl-line {
  color: var(--red);
}

#gallery .wl-bar {
  display: block;
  overflow: hidden;
  background: #e8e8ed;
  border-radius: 2px;
  width: min(280px, 100%);
  height: 3px;
  margin-top: 6px;
}

#gallery .wl-bar[hidden] {
  display: none;
}

#gallery .wl-bar i {
  display: block;
  border-radius: inherit;
  background: var(--imessage, var(--blue));
  transform-origin: left center;
  transition: transform .6s var(--ease);
  height: 100%;
}

#gallery .wl-bar.indeterminate i {
  animation: wl-slide 1.6s ease-in-out infinite;
  width: 30%;
  transform: none !important;
}

@keyframes wl-slide {
  from {
    margin-left: -30%;
  }

  to {
    margin-left: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #gallery .wl-bar.indeterminate i {
    animation: none;
    opacity: .3;
    width: 100%;
    margin-left: 0;
  }
}

#gallery .wl-actions {
  display: flex;
  justify-content: flex-end;
  align-items:  center;
}

#gallery .wl-actions:empty {
  display: none;
}

#gallery .wl-walk {
  display: inline-flex;
  background: var(--fill);
  color: var(--blue);
  letter-spacing: -.01em;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .2s var(--ease);
  border-radius: 980px;
  flex: none;
  justify-content: center;
  align-items:  center;
  min-height: 32px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

#gallery .wl-walk:after {
  content: "";
  position: absolute;
  inset: 0;
}

#gallery .wl-walk:focus-visible {
  outline: none;
}

#gallery .world-row:hover .wl-walk {
  text-decoration: none;
  background: #76768033;
}

#gallery .wl-go {
  display: none;
}

#gallery .wl-again {
  color: var(--blue);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
}

#gallery .wl-sr {
  position: absolute;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  width: 1px;
  height: 1px;
}

#gallery #grid .skeleton {
  --sk-text: 88px;
  position: relative;
  aspect-ratio: auto;
  animation: none;
  background: none;
  border-radius: 0;
  height: 76px;
}

#gallery #grid .skeleton + .skeleton {
  background: linear-gradient(var(--hairline-2), var(--hairline-2)) no-repeat var(--sk-text) 0 / calc(100% - var(--sk-text)) 1px;
}

#gallery #grid .skeleton:before, #gallery #grid .skeleton:after {
  content: "";
  position: absolute;
  background: var(--bg-2);
}

#gallery #grid .skeleton:before {
  border-radius: 12px;
  width: 52px;
  height: 52px;
  top: 12px;
  left: 20px;
}

#gallery #grid .skeleton:after {
  top: 24px;
  left: var(--sk-text);
  box-shadow: 0 18px 0 var(--bg-2);
  border-radius: 5px;
  width: min(260px, 40%);
  height: 10px;
}

@media (prefers-reduced-motion: no-preference) {
  #gallery #grid .skeleton:before, #gallery #grid .skeleton:after {
    animation: wl-pulse 1.2s ease-in-out infinite alternate;
  }
}

@keyframes wl-pulse {
  from {
    opacity: 1;
  }

  to {
    opacity: .45;
  }
}

#gallery .wl-empty {
  text-align: center;
  padding: 56px 24px;
}

#gallery .wl-empty-title {
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: .009em;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.17;
}

#gallery .wl-empty p + p {
  color: var(--text-2);
  margin: 6px 0 20px;
}

#gallery .signin-note, #headset .signin-note {
  color: var(--text-2);
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.4;
}

#gallery .wl-empty .signin-note {
  margin-top: 14px;
}

@media (max-width: 734px) {
  #gallery #filters {
    max-width: 100%;
  }

  #gallery #filters > button {
    min-width: 0;
    padding: 5px 10px;
  }

  #gallery #grid, #gallery .wl-list {
    border-radius: 16px;
  }

  #gallery .world-row {
    --pad: 16px;
    --thumb: 48px;
    --gap: 12px;
    min-height: 72px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  #gallery .wl-name {
    font-size: 16px;
    line-height: 1.25;
  }

  #gallery .wl-line {
    font-size: 13px;
    line-height: 1.38;
  }

  #gallery .wl-walk {
    padding: 6px 13px;
  }

  #gallery #grid .skeleton {
    --sk-text: 76px;
    height: 72px;
  }

  #gallery #grid .skeleton:before {
    width: 48px;
    height: 48px;
    left: 16px;
  }
}

@media (max-width: 479px) {
  #gallery .wl-walk {
    color: var(--text-3);
    background: none;
    width: 28px;
    min-height: 28px;
    margin-right: -6px;
    padding: 0;
  }

  #gallery .world-row:hover .wl-walk {
    background: none;
  }

  #gallery .wl-walk-text {
    position: absolute;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    width: 1px;
    height: 1px;
  }

  #gallery .wl-go {
    display: block;
  }
}

@media (max-width: 359px) {
  #gallery .world-row {
    --pad: 12px;
    --thumb: 44px;
    --gap: 10px;
  }

  #gallery .wl-thumb {
    border-radius: 10px;
  }

  #gallery #grid .skeleton {
    --sk-text: 66px;
  }

  #gallery #grid .skeleton:before {
    width: 44px;
    height: 44px;
    left: 12px;
  }
}

@media (pointer: coarse) {
  #gallery .wl-walk, #gallery #filters > button {
    min-height: 36px;
  }
}

#headset .ctl-more {
  border-top: 1px solid var(--hairline);
}

#headset .ctl-more > summary {
  display: flex;
  color: var(--blue);
  list-style: none;
  cursor: pointer;
  justify-content: space-between;
  align-items:  center;
  min-height: 48px;
  font-size: 15px;
  font-weight: 500;
}

#headset .ctl-more > summary::-webkit-details-marker {
  display: none;
}

#headset .ctl-more > summary:after {
  content: "";
  transition: transform .2s var(--ease);
  border-bottom: 1.8px solid;
  border-right: 1.8px solid;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  transform: translateY(-2px)rotate(45deg);
}

#headset .ctl-more[open] > summary:after {
  transform: translateY(2px)rotate(-135deg);
}

#headset .ctl-more > div {
  margin-top: 6px;
}

#headset .ctl-more > div + div {
  margin-top: 22px;
}

@media (max-width: 734px) {
  #headset .qr {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #headset .ctl-more > summary:after {
    transition: none;
  }
}

/* web/src/chapters.css */
.chapter-copy, .upload-card, .anywhere-tile, .anywhere-cta {
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.is-live:not(.is-in) .chapter-copy {
  opacity: 0;
  transform: translateY(28px);
}

.upload-card {
  transition-delay: 80ms;
}

.is-live:not(.is-in) .upload-card {
  opacity: 0;
  transform: translate(-50%, -50%)translateY(40px);
}

.no-anim .chapter-copy, .no-anim .upload-card, .no-anim .anywhere-tile, .no-anim .anywhere-cta {
  transition: none;
}

.chapter[data-chapter="upload"] .chapter-stage {
  --drop: 0;
  --fan: 0;
  --upload: 0;
  --ready: 0;
}

.upload-drop {
  border-color: rgba(60, 60, 67, calc(.22 * (1 - var(--ready))));
}

.upload-stack {
  position: absolute;
  opacity: calc(min(1, var(--drop) * 4) * (1 - var(--ready)));
  transform: translate(calc((1 - var(--drop)) * 52%), calc((1 - var(--drop)) * -78%)) rotate(calc((1 - var(--drop)) * 7deg)) scale(calc(1 - var(--ready) * .06));
  pointer-events: none;
  inset: 0;
}

.upload-stack .upload-photo {
  --x: 0%;
  --y: 0%;
  --r0: 0deg;
  --r: 0deg;
  position: absolute;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 1;
  transform: translate(-50%, -50%) translate(calc(var(--x) * var(--fan)), calc(var(--y) * var(--fan))) rotate(calc(var(--r0) * (1 - var(--fan))  + var(--r) * var(--fan)));
  background: #e5e5ea;
  border: 3px solid #fff;
  border-radius: 10px;
  width: 54%;
  height: auto;
  inset: 50% auto auto 50%;
  box-shadow: 0 8px 22px #00000029, 0 1px 3px #0000001a;
}

.upload-stack .upload-photo:first-child {
  --x: -29%;
  --y: 9%;
  --r0: -5deg;
  --r: -12deg;
}

.upload-stack .upload-photo:nth-child(2) {
  --x: 29%;
  --y: 7%;
  --r0: 4deg;
  --r: 11deg;
}

.upload-stack .upload-photo:nth-child(3) {
  --x: -15%;
  --y: -9%;
  --r0: -2deg;
  --r: -6deg;
}

.upload-stack .upload-photo:nth-child(4) {
  --x: 15%;
  --y: -8%;
  --r0: 2deg;
  --r: 5deg;
}

.upload-stack .upload-photo:nth-child(5) {
  --y: 4%;
  --r: -1deg;
}

.upload-count {
  position: absolute;
  background: var(--imessage);
  color: #fff;
  text-align: center;
  font-variant-numeric: tabular-nums;
  opacity: calc(1 - var(--fan));
  transform: translate(-50%, -50%) scale(calc(1 - var(--fan) * .4));
  border-radius: 14px;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 28px;
  top: 22%;
  left: 77%;
  box-shadow: 0 2px 6px #0003;
}

.upload-world {
  position: absolute;
  object-fit: cover;
  opacity: var(--ready);
  transform: scale(calc(.94 + var(--ready) * .06));
  border-radius: 13px;
  width: calc(100% - 12px);
  height: calc(100% - 12px);
  inset: 6px;
}

.upload-card.no-world .upload-stack {
  opacity: min(1, calc(var(--drop) * 4));
  transform: none;
}

.upload-status {
  display: inline-flex;
  z-index: 1;
  align-items:  center;
  gap: 7px;
}

.upload-card.is-building .upload-status:before, .upload-card.is-ready .upload-status:before {
  content: "";
  border-radius: 50%;
  flex: none;
  width: 9px;
  height: 9px;
}

.upload-card.is-building .upload-status:before {
  border: 1.5px solid #007aff40;
  border-top-color: var(--imessage);
  animation: upload-spin .8s linear infinite;
}

.upload-card.is-ready .upload-status:before {
  background: #34c759;
}

@keyframes upload-spin {
  to {
    transform: rotate(1turn);
  }
}

.upload-bar span {
  transition: background-color .3s var(--ease);
}

.upload-card.is-ready .upload-bar span {
  background: #34c759;
}

.upload-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  align-items:  center;
  min-height: 30px;
}

.upload-meta > div {
  display: flex;
  grid-area: 1 / 1;
  justify-content: space-between;
  align-items:  center;
  gap: 12px;
  min-width: 0;
}

.upload-meta-files {
  opacity: calc(var(--fan) * clamp(0, 1 - var(--ready) * 2.5, 1));
}

.upload-meta-ready {
  opacity: clamp(0, (var(--ready)  - .5) * 2.5, 1);
  pointer-events: none;
}

.upload-card.is-ready .upload-meta-ready {
  pointer-events: auto;
}

.upload-name {
  overflow: hidden;
  color: var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 15px;
  font-weight: 600;
}

.upload-walk {
  flex: none;
  min-height: 30px;
  padding: 5px 14px;
  font-size: 13px;
}

.chapter-gray {
  height: auto;
}

.chapter-gray .chapter-stage {
  position: relative;
  overflow: visible;
  height: auto;
  min-height: 0;
  padding: clamp(72px, 11vh, 112px) 0 clamp(64px, 9vh, 96px);
  top: 0;
}

.chapter-gray .chapter-copy {
  padding-top: 0;
}

.is-live .anywhere-tile:not(.is-in), .is-live .anywhere-cta:not(.is-in) {
  opacity: 0;
  transform: translateY(28px);
}

.anywhere-tile:nth-child(2) {
  transition-delay: 80ms;
}

.anywhere-tile:nth-child(3) {
  transition-delay: .16s;
}

.chapter-gray .anywhere-cta {
  margin-top: clamp(28px, 4vh, 40px);
}

@media (max-width: 734px) {
  .chapter-gray .chapter-stage {
    padding: 64px 0 56px;
  }
}

.uses {
  background: var(--bg);
  padding: clamp(72px, 10vh, 120px) 0 clamp(64px, 9vh, 104px);
}

.uses-title {
  letter-spacing: -.03em;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  line-height: 1.04;
}

.uses-sub {
  color: var(--text-2);
  text-wrap: pretty;
  max-width: 30em;
  margin-top: 14px;
  font-size: clamp(19px, 1.8vw, 24px);
  line-height: 1.35;
}

.uses-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(300px, auto);
  gap: 20px;
  margin-top: clamp(32px, 5vh, 56px);
}

.use {
  position: relative;
  display: flex;
  overflow: hidden;
  background: var(--bg-2);
  color: var(--text);
  isolation: isolate;
  border-radius: 28px;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 300px;
}

.use-memories {
  grid-column: span 4;
  grid-row: span 2;
}

.use-home {
  grid-column: span 2;
  grid-row: span 2;
}

.use-listing, .use-anything, .use-lost {
  grid-column: span 2;
}

.use-robots, .use-games {
  grid-column: span 3;
}

.use-media {
  position: absolute;
  z-index: -1;
  background: #1d1d1f;
  inset: 0;
}

.use-media img, .use-media video {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.use.has-media {
  color: #fff;
}

.use.has-media:after {
  content: "";
  position: absolute;
  z-index: -1;
  background: linear-gradient(0deg, #000000b8 0%, #00000059 40%, #0000 70%);
  inset: 0;
}

.use-words {
  padding: clamp(22px, 2.6vw, 34px);
}

.use-kicker {
  opacity: .78;
  font-size: 15px;
  font-weight: 600;
}

.use h3 {
  letter-spacing: -.02em;
  text-wrap: balance;
  max-width: 16em;
  margin-top: 6px;
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 700;
  line-height: 1.1;
}

.use-memories h3 {
  font-size: clamp(30px, 3.6vw, 48px);
}

.use p:not(.use-kicker) {
  opacity: .86;
  text-wrap: pretty;
  max-width: 30em;
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.4;
}

.use-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 14px;
}

.use-links a {
  font-size: 17px;
  font-weight: 600;
}

.use.has-media .use-links a {
  color: #fff;
}

.use-links a:after {
  content: "›";
  margin-left: 4px;
}

.use-listing {
  justify-content: space-between;
}

.use-listing .use-icon {
  color: var(--blue);
  width: 56px;
  height: 56px;
  margin: clamp(22px, 2.6vw, 34px) clamp(22px, 2.6vw, 34px) 0;
}

.use-lost {
  color: #f5f5f7;
  background: #1d1d1f;
  justify-content: center;
}

.use-lost .use-words {
  text-align: center;
}

.use-lost h3, .use-lost p:not(.use-kicker) {
  margin-left: auto;
  margin-right: auto;
}

.use-robots {
  color: #f5f5f7;
  background: #0d0d0f;
  justify-content: flex-start;
}

.uses-plan {
  display: block;
  font-family: var(--font);
  width: 100%;
  max-height: 320px;
  margin-top: auto;
  padding: 0 clamp(12px, 2vw, 28px) clamp(12px, 2vw, 24px);
}

.up-grid line {
  stroke: #ffffff12;
}

.up-floor {
  fill: #ffffff08;
  stroke: #ffffff47;
  stroke-dasharray: 4 4;
}

.up-box line, .up-foot {
  fill: none;
  stroke: #78beff8c;
  stroke-width: 1;
}

.up-top {
  fill: #2997ff33;
  stroke: #5ac8fa;
  stroke-width: 1.5;
}

.uses-plan text {
  fill: #f5f5f7;
  font-size: 12.5px;
}

.uses-plan .up-zero {
  fill: #a1a1a6;
}

@media (max-width: 980px) {
  .uses-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .use-memories, .use-robots, .use-games {
    grid-column: span 2;
  }

  .use-memories {
    grid-row: span 1;
    min-height: 460px;
  }

  .use-home, .use-listing, .use-anything, .use-lost {
    grid-column: span 1;
    grid-row: span 1;
  }
}

@media (max-width: 734px) {
  .uses-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: 14px;
  }

  .use, .use-memories, .use-home, .use-listing, .use-anything, .use-lost, .use-robots, .use-games {
    grid-column: auto;
    grid-row: auto;
    border-radius: 22px;
    min-height: 0;
  }

  .use.has-media {
    min-height: 420px;
  }

  .use-memories.has-media {
    min-height: 480px;
  }

  .use-lost {
    min-height: 220px;
  }

  .uses-plan text {
    font-size: 15px;
  }
}
