:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #1d1d1f;
  --ink-secondary: #26262a;
  --voice: #737376;
  --voice-quiet: #a8a8aa;
  --hairline: #e5e5e7;
  --soft: #f5f5f4;
  --focus: #295ea7;
  --max: 1280px;
  font-family: "Avenir Next", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

.launch-section {
  width: min(calc(100% - 48px), 1280px);
  margin: 0 auto;
  padding-top: clamp(24px, 5vh, 64px);
  scroll-margin-top: 24px;
}
.launch-player { aspect-ratio: 16 / 9; background: #f5f5f4; }
.launch-player video { display: block; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.film-shell { background: #fff; }
.quiet-controls { display: flex; align-items: center; gap: 10px; width: min(100%, 520px); margin: 12px auto 0; padding: 0 8px; color: #626266; }
.quiet-controls[hidden], .film-error[hidden] { display: none; }
.quiet-controls button { display: grid; place-items: center; flex: none; min-width: 44px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 24px; background: transparent; color: inherit; cursor: pointer; font: inherit; font-size: 13px; }
.quiet-controls button:hover { color: #1d1d1f; background: #f5f5f4; }
.quiet-controls svg { width: 18px; height: 18px; fill: currentColor; }
.quiet-controls .pause-mark, .quiet-controls.is-playing .play-mark { display: none; }
.quiet-controls.is-playing .pause-mark { display: block; }
.quiet-controls .sound-toggle { min-width: 88px; }
.quiet-controls input { flex: 1; min-width: 36px; width: 100%; height: 44px; margin: 0; appearance: none; background: transparent; cursor: pointer; accent-color: #737376; }
.quiet-controls input::-webkit-slider-runnable-track { height: 2px; background: #d6d6d8; border-radius: 2px; }
.quiet-controls input::-webkit-slider-thumb { appearance: none; width: 10px; height: 10px; margin-top: -4px; border-radius: 50%; background: #737376; }
.quiet-controls input::-moz-range-track { height: 2px; background: #d6d6d8; }
.quiet-controls input::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: #737376; }
.quiet-controls input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.film-time { min-width: 34px; font-size: 12px; font-variant-numeric: tabular-nums; }
.film-error { text-align: center; color: var(--voice); font-size: 14px; }
.film-shell:fullscreen { display: flex; flex-direction: column; justify-content: center; padding: 12px; }
.film-shell:fullscreen .launch-player { min-height: 0; width: 100%; height: calc(100dvh - 80px); }
.film-shell:fullscreen .quiet-controls { flex: none; }
.film-fallback { display: block; width: fit-content; margin: 16px 0 0 auto; font-size: 14px; color: var(--voice); }
.closing.simple-download { min-height: 0; padding: clamp(72px, 12vh, 160px) 24px; }
.primary-action:disabled { cursor: not-allowed; opacity: .55; font: inherit; }
@media (max-width: 760px) { .launch-section { width: calc(100% - 24px); } }

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
}

a:hover {
  color: #000;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-150%);
}

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

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
  padding-block: 24px;
  font-size: 13px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-family: Baskerville, Georgia, serif;
  font-size: 18px;
  text-decoration: none;
}

.brand img {
  border-radius: 7px;
}

.site-header nav,
.site-footer nav {
  display: flex;
  gap: 22px;
}

.site-header nav a,
.site-footer nav a {
  color: var(--voice);
  text-decoration: none;
}

.site-header nav a[aria-current="page"],
.site-header nav a:hover,
.site-footer nav a:hover {
  color: var(--ink);
}

.hero {
  min-height: 100svh;
  height: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(88px, 10svh, 112px) 24px 24px;
  text-align: center;
}

.hero-icon {
  width: clamp(112px, 12vw, 180px);
  height: auto;
  margin-bottom: 28px;
  border-radius: 23%;
  box-shadow: 0 18px 45px rgb(29 29 31 / 10%);
}

.eyebrow,
.scroll-cue,
.step-number,
.availability,
.film-controls p,
.legal-heading > p,
.quiet {
  color: var(--voice);
  font-size: 13px;
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.005em;
}

.hero h1,
.closing h2 {
  margin: 0;
  font-family: Baskerville, Georgia, serif;
  font-size: clamp(58px, 6.1vw, 88px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero h1 { font-family: "Avenir Next", -apple-system, sans-serif; font-weight: 400; font-size: clamp(48px, min(6.1vw, 8svh), 88px); flex-shrink: 0; }
.hero h1 em, .closing h2 em { font-family: Baskerville, Georgia, serif; font-weight: 400; }
.hero > .eyebrow { margin: 0 0 14px; font-style: normal; font-size: 14px; letter-spacing: .025em; }
.hero-caption { margin: 20px 0 16px; color: var(--voice); font-size: 14px; }
/* Frame the laptop, excluding the render's empty outer margins. */
.hero-artwork { position: relative; flex: none; width: min(560px, 50svh, 100%); margin-top: clamp(24px, 4svh, 48px); aspect-ratio: 960 / 710; overflow: hidden; }
.hero-device { position: absolute; display: block; width: 166.6667%; max-width: none; height: auto; left: -31.25%; top: -14.0845%; margin: 0; }
.hero-bottom { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 100%; margin-top: auto; padding-top: 20px; font-size: 14px; color: var(--voice); }
.hero-bottom p { margin: 0; }
.hero-bottom a { font-size: 14px; text-decoration: none; }
.hero-bottom .text-action { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-bottom span { margin: 0; }
.nav-download { color: var(--ink) !important; border-bottom: 1px solid #b8b8ba; padding-bottom: 3px; }
.release-label { color: var(--voice); font-size: 14px; border: 1px solid var(--hairline); border-radius: 999px; padding: 12px 22px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.closing-note { color:var(--voice); font-size:12px; margin-top:28px; }

.hero-copy {
  max-width: 600px;
  margin: 34px auto 0;
  color: var(--ink-secondary);
  font-size: clamp(20px, 2.1vw, 30px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.22;
}

.hero-actions,
.closing-action,
.support-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
}

.primary-action,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 19px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.primary-action:hover,
.text-button:hover {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
}

.primary-action.unavailable {
  border-color: var(--hairline);
  background: var(--soft);
  color: var(--voice);
  cursor: not-allowed;
}

.availability {
  max-width: 480px;
  margin: 0;
}

.text-action {
  color: var(--voice);
  font-size: 14px;
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  margin: 0;
}

.story {
  position: relative;
}

.story-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: 150px 24px 90px;
  text-align: center;
}

.story-intro h2,
.privacy-promise h2,
.legal-heading h1,
.support-heading h1 {
  margin: 10px 0 0;
  color: var(--ink);
  font-family: Baskerville, Georgia, serif;
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.story-intro > p:last-child {
  max-width: 560px;
  margin: 28px auto 0;
  color: var(--voice);
  font-size: 17px;
  font-weight: 300;
}

.film-stage {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  height: 100svh;
  margin-bottom: -100svh;
  overflow: hidden;
  pointer-events: none;
}

.film-wrap {
  justify-self: center;
  width: min(90vw, 1380px, 170svh);
  transform: translate3d(var(--film-x, 0), 0, 0) scale(var(--film-scale, 1));
  transform-origin: center;
  will-change: transform;
}

/* Before the movie is ready (or without JS), keep artwork in normal flow. */
body:not(.scroll-ready) .film-stage {
  position: relative;
  height: auto;
  margin-bottom: 0;
  padding-block: 24px;
}

.film-wrap video {
  display: block;
  width: 100%;
  height: auto;
  background: var(--paper);
  mix-blend-mode: multiply;
}

.film-status {
  position: absolute;
  bottom: 28px;
  margin: 0;
  color: var(--voice-quiet);
  font-size: 12px;
  opacity: 0;
}

.film-status.visible {
  opacity: 1;
}

.story-steps {
  position: relative;
  z-index: 3;
}

.story-step {
  display: grid;
  align-items: center;
  min-height: 110svh;
  width: min(calc(100% - 64px), var(--max));
  margin-inline: auto;
  opacity: 1;
  transition: opacity 360ms ease;
}

.story-step.active {
  opacity: 1;
}

.scroll-ready .story-sequence { height: calc(100svh + var(--story-distance, 6000px)); }
.scroll-ready .story-stage { position: sticky; top: 0; height: 100svh; overflow: hidden; opacity: var(--stage-opacity, 0); }
.chapter-controls { display: none; }
.scroll-ready .chapter-controls { position: absolute; z-index: 5; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; color: var(--voice); font-size: 11px; white-space: nowrap; }
.chapter-controls button { border: 0; background: transparent; color: inherit; font: inherit; padding: 10px 6px; cursor: pointer; }
.scroll-ready .film-stage { position: absolute; inset: 0; margin: 0; }
.scroll-ready .story-steps { position: absolute; inset: 0; pointer-events: none; }
.scroll-ready .story-step {
  position: absolute;
  inset: 0;
  height: 100%;
  min-height: 0;
  opacity: var(--copy-opacity, 0);
  transform: translateY(var(--copy-y, 0));
  transition: none;
}

.story-step.side-left {
  grid-template-columns: minmax(240px, 340px) 1fr;
}

.story-step.side-right {
  grid-template-columns: 1fr minmax(240px, 340px);
}

.story-step.side-right .story-copy {
  grid-column: 2;
}

.story-copy {
  padding: 32px 0;
}

.story-copy h3 {
  margin: 8px 0 22px;
  font-size: clamp(38px, 4.1vw, 60px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.story-copy > p:last-child {
  max-width: 310px;
  margin: 0;
  color: var(--voice);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.film-controls {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 200px;
  padding: 48px 24px;
  background: var(--paper);
}

.film-controls p {
  margin: 0;
}

.text-button {
  cursor: pointer;
}

.privacy-promise,
.closing {
  padding: 180px 24px;
  text-align: center;
}

.privacy-promise {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.privacy-promise > p:not(.eyebrow) {
  max-width: 690px;
  margin: 32px auto 24px;
  color: var(--voice);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
}

.closing img {
  border-radius: 23%;
  box-shadow: 0 12px 32px rgb(29 29 31 / 9%);
}

.closing h2 {
  margin-top: 42px;
  font-size: clamp(58px, 7vw, 96px);
  line-height: 1;
}

.film-dialog {
  width: min(calc(100% - 32px), 1180px);
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 30px 100px rgb(0 0 0 / 20%);
}

.film-dialog::backdrop {
  background: rgb(255 255 255 / 88%);
  backdrop-filter: blur(8px);
}

.film-dialog iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0 0 17px 17px;
}

.dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
}

.dialog-bar h2 {
  margin: 0;
  font-family: Baskerville, Georgia, serif;
  font-size: 18px;
  font-weight: 400;
}

.dialog-bar button {
  padding: 8px;
  border: 0;
  background: transparent;
  color: var(--voice);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.noscript {
  margin: 0;
  padding: 14px 24px;
  background: var(--soft);
  color: var(--voice);
  text-align: center;
}

.legal-page,
.support-page {
  width: min(calc(100% - 48px), 900px);
  margin-inline: auto;
  padding: 170px 0 120px;
}

.legal-heading,
.support-heading {
  padding-bottom: 72px;
  border-bottom: 1px solid var(--hairline);
}

.legal-heading h1,
.support-heading h1 {
  font-size: clamp(64px, 10vw, 116px);
}

.legal-heading > p:last-child,
.support-heading > p:last-of-type {
  max-width: 670px;
  margin: 28px 0 0;
  color: var(--voice);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
}

.legal-copy {
  max-width: 680px;
  padding-top: 68px;
}

.legal-copy .lede {
  color: var(--ink-secondary);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.45;
}

.legal-copy h2 {
  margin: 58px 0 14px;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.legal-copy p,
.legal-copy li {
  color: #555559;
  font-size: 16px;
  line-height: 1.75;
}

.legal-copy ul {
  padding-left: 22px;
}

.support-action {
  align-items: flex-start;
}

.faq {
  padding-top: 28px;
}

.faq details {
  border-bottom: 1px solid var(--hairline);
}

.faq summary {
  padding: 28px 2px;
  cursor: pointer;
  font-size: 19px;
  font-weight: 400;
  list-style-position: outside;
}

.faq details p {
  max-width: 680px;
  margin: -8px 0 28px 22px;
  color: var(--voice);
  line-height: 1.7;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 32px;
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
  padding: 48px 0;
  border-top: 1px solid var(--hairline);
  color: var(--voice);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.site-footer .quiet {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .site-header {
    width: calc(100% - 32px);
    padding-block: 16px;
  }

  .site-header nav {
    gap: 13px;
  }

  .nav-github .star-prompt { display: none; }

  .hero {
    padding: 88px 20px 24px;
  }

  .hero h1 { font-size: clamp(42px, min(11.8vw, 8.5svh), 76px); }
  .hero-caption { max-width: 290px; }

  .hero-icon {
    margin-bottom: 20px;
  }

  .story-intro {
    padding-block: 110px 64px;
  }

  .film-stage {
    top: 0;
    align-items: start;
    height: 100svh;
    margin-bottom: -100svh;
    padding-top: 4svh;
    background: var(--paper);
  }

  .film-wrap {
    width: 148vw;
  }

  .story-step,
  .story-step.side-left,
  .story-step.side-right {
    align-items: end;
    min-height: 100svh;
    width: calc(100% - 40px);
    grid-template-columns: 1fr;
  }

  .story-step.side-right .story-copy {
    grid-column: 1;
  }

  .story-copy {
    width: 100%;
    padding: 30px 4px 12svh;
  }

  .story-copy h3 {
    font-size: clamp(38px, 11vw, 56px);
  }

  .film-controls {
    flex-direction: column;
    text-align: center;
  }

  .privacy-promise,
  .closing {
    padding: 120px 20px;
  }

  .legal-page,
  .support-page {
    width: calc(100% - 40px);
    padding: 130px 0 90px;
  }

  .legal-heading,
  .support-heading {
    padding-bottom: 48px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    width: calc(100% - 40px);
  }

  .site-footer nav {
    flex-wrap: wrap;
  }

  .site-footer .quiet {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-device { opacity: 1; }
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .film-stage {
    position: relative;
    top: auto;
    height: auto;
    margin-bottom: 0;
    padding: 24px;
  }

  .film-wrap {
    width: min(100%, 1000px);
    transform: none !important;
  }

  .story-step {
    min-height: auto;
    padding-block: 80px;
    opacity: 1;
  }
  .scroll-ready .story-step { opacity: 1; }
}
.quiet-controls button[hidden] { display: none; }
