:root {
  color-scheme: dark;
  --bg: #090a0d;
  --fg: #f1eff5;
  --muted: #a09ba9;
  --accent: #b7a3ff;
  --line: #ffffff15;
  --gutter: clamp(24px, 6vw, 100px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  scrollbar-color: #45414e var(--bg);
}
body {
  margin: 0;
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
h1,
h2,
p,
figure {
  margin: 0;
}
::selection {
  background: #b7a3ff55;
}

.site-head {
  height: 88px;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: auto;
}
.site-brand {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.13em;
}
.site-brand span {
  color: #97919f;
}
.head-mark {
  width: 23px;
  height: 28px;
}
.wrap {
  width: min(1120px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}
.hero {
  padding-top: 70px;
  text-align: center;
}
.hero h1 {
  font-size: 0;
  line-height: 1;
}
.hero-lockup {
  width: min(510px, 78vw);
  height: auto;
}
.deck {
  max-width: 540px;
  margin: 23px auto 0;
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--muted);
  text-wrap: balance;
}
.actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 25px;
  border: 1px solid #ffffff22;
  border-radius: 8px;
  background: transparent;
  color: var(--fg);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition:
    transform 140ms cubic-bezier(0.22, 1, 0.36, 1),
    background 180ms ease,
    border-color 180ms ease;
}
.button.primary {
  background: #eeeaf4;
  border-color: #eeeaf4;
  color: #15121c;
}
.button .platform-icon {
  width: 17px;
  height: 17px;
  flex: none;
}
.button:active {
  transform: scale(0.97);
}
.meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 19px;
  font:
    11px/1.8 ui-monospace,
    "SF Mono",
    Consolas,
    monospace;
  white-space: nowrap;
  color: #9b95a3;
}
.meta .hyphen {
  color: #756d7e;
}
.meta a {
  transition: color 160ms ease;
}
.version {
  font-variant-numeric: tabular-nums;
}

/* Stills are the default, including when the animation script cannot load. */
.story {
  position: relative;
  margin-top: 50px;
}
.stage {
  display: none;
}
.still-frames {
  display: grid;
  gap: 65px;
  width: min(1060px, calc(100% - var(--gutter) * 2));
  margin-inline: auto;
  padding-block: 35px;
}
.still-frames figure {
  display: grid;
  gap: 20px;
}
.still-frames h2 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.still-frames p {
  max-width: 64ch;
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.still-frames img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.editor-still,
.axis-still {
  aspect-ratio: 1.6;
  overflow: hidden;
  border-radius: 9px;
}
.axis-still img {
  transform: translate(-35%, 7%) scale(1.48);
}
.editor-still img {
  height: 104.9%;
  object-fit: fill;
}
.screen-position {
  position: absolute;
  top: calc(50% + 40px);
  left: 50%;
  width: min(1060px, 84vw, calc((100svh - 280px) * 1.6));
  aspect-ratio: 1.6;
  transform: translate(-50%, -50%);
}
.screen {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid #ffffff26;
  border-radius: 10px;
  overflow: hidden;
  background: #0d0f14;
  box-shadow: 0 30px 100px #0008;
  transform: scale(0.94);
}
.screen-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
}
.screen-layer:first-child {
  opacity: 1;
}
.screen-layer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
/* The editor capture includes the design-review bar below the application. */
.screen-layer.editor img {
  height: 104.9%;
  object-fit: fill;
}
.caption {
  position: absolute;
  z-index: 2;
  inset: 40px 24px auto;
  text-align: center;
  opacity: 0;
  pointer-events: none;
}
.caption h2,
.privacy h2 {
  font-size: 36px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.caption p,
.privacy p {
  max-width: 64ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 10px auto 0;
  text-wrap: balance;
}
.chapters {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 8px 16px;
  white-space: nowrap;
}
.chapter {
  position: relative;
  min-height: 44px;
  padding: 9px 0;
  border: 0;
  background: none;
  color: #96919e;
  font-size: 12px;
  cursor: pointer;
  transition: color 160ms ease;
}
.chapter::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  opacity: 0;
}
.chapter[aria-current="true"] {
  color: var(--fg);
}
.chapter[aria-current="true"]::after {
  opacity: 1;
}
.stage-count {
  position: absolute;
  right: var(--gutter);
  bottom: 48px;
  font:
    10px ui-monospace,
    monospace;
  color: #8f879a;
}

@media (prefers-reduced-motion: no-preference) and (min-height: 560px) {
  .has-scroll .story {
    height: 640svh;
    margin-top: -15px;
  }
  .has-scroll .stage {
    display: block;
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden;
    isolation: isolate;
  }
  /* Keep a stable feature description available to screen readers during motion. */
  .has-scroll .still-frames {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.privacy {
  padding-top: 100px;
  text-align: center;
}
.closing {
  min-height: 480px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 96px 24px 116px;
  text-align: center;
}
.closing-logo {
  width: 290px;
  max-width: 75vw;
  height: auto;
  margin-bottom: 6px;
}
.site-foot {
  max-width: 1440px;
  margin: auto;
  padding: 25px var(--gutter);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #89818e;
  letter-spacing: 0.03em;
}
.skip {
  position: absolute;
  left: 24px;
  top: -80px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--fg);
  color: var(--bg);
}
.skip:focus {
  top: 12px;
}

@media (hover: hover) and (pointer: fine) {
  .button:hover {
    border-color: #ffffff50;
    background: #ffffff08;
  }
  .button.primary:hover {
    background: #fff;
    border-color: #fff;
  }
  .meta a:hover,
  .chapter:hover {
    color: #fff;
  }
}
@media (max-width: 760px) {
  :root {
    --gutter: 24px;
  }
  .site-head {
    height: 70px;
  }
  .hero {
    padding-top: 58px;
  }
  .hero-lockup {
    width: min(510px, 80vw);
  }
  .deck {
    font-size: 18px;
  }
  .actions {
    margin-top: 27px;
    gap: 10px;
  }
  .button {
    min-height: 49px;
    padding-inline: 21px;
  }
  .meta {
    font-size: 10px;
    gap: 8px;
  }
  .screen-position {
    width: min(92vw, calc((100svh - 320px) * 1.6));
    top: 55%;
  }
  .screen {
    border-radius: 8px;
  }
  .caption {
    top: 6%;
  }
  .caption h2,
  .privacy h2 {
    font-size: 33px;
  }
  .caption p,
  .privacy p {
    font-size: 13px;
  }
  .chapters {
    bottom: 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: min(340px, calc(100% - 48px));
    gap: 0 24px;
    padding: 8px 0;
  }
  .chapter {
    font-size: 11px;
  }
  .stage-count {
    display: none;
  }
  .closing {
    min-height: 390px;
    padding: 70px 24px 95px;
  }
  .closing-logo {
    width: 245px;
  }
}
@media (max-width: 760px) and (prefers-reduced-motion: no-preference) and (min-height: 560px) {
  .has-scroll .story {
    height: 550svh;
  }
}
@media (prefers-reduced-motion: reduce) {
  .button,
  .meta a,
  .chapter {
    transition: none;
  }
  .button:active {
    transform: none;
  }
}

/* --- All releases -------------------------------------------------------------------------- */
.wrap.narrow {
  width: min(880px, calc(100% - var(--gutter) * 2));
}
.releases h1 {
  margin-top: 28px;
  font-size: 36px;
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.055em;
}
.releases .back {
  display: inline-block;
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}
.releases .sub {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.releases h2 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
/* Bootstrap's icons are black; invert them on dark surfaces, not on the light primary button. */
.releases .ico {
  width: 17px;
  height: 17px;
  flex: none;
  filter: invert(0.92);
}
.release-cards {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0d0f14;
}
.card.mine {
  border-color: #b7a3ff66;
}
.card.off {
  opacity: 0.55;
}
.card .top {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
}
.card .tag {
  margin-left: auto;
  padding: 2px 6px;
  border: 1px solid #b7a3ff55;
  border-radius: 4px;
  font: 10px ui-monospace, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.card .spec {
  display: grid;
  gap: 3px;
  min-height: 40px;
  font: 11px/1.8 ui-monospace, "SF Mono", Consolas, monospace;
  color: #9b95a3;
  font-variant-numeric: tabular-nums;
}
.card .button {
  margin-top: 6px;
}
.card .alt {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.card .alt a {
  padding: 5px 9px;
  border: 1px solid #ffffff1a;
  border-radius: 6px;
  font: 11px ui-monospace, monospace;
  color: var(--muted);
  transition: border-color 160ms ease, color 160ms ease;
}
.history {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.history ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.history .row {
  display: grid;
  grid-template-columns: 90px 110px 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font: 11px/1.8 ui-monospace, "SF Mono", Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.history .date {
  color: #6f6879;
}
.history .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.history .links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid #ffffff22;
  border-radius: 6px;
  color: var(--fg);
  transition: border-color 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .card .alt a:hover,
  .history .links a:hover {
    border-color: #ffffff50;
    color: #fff;
  }
  .releases .back:hover {
    color: #fff;
  }
}
@media (max-width: 760px) {
  .release-cards {
    grid-template-columns: 1fr;
  }
  .history .row {
    grid-template-columns: 70px 1fr;
  }
  .history .links {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
