/* i2o.page — the launch site.
   Tokens follow the desk (apps/desk/src/proto/kit.css): ink on near-black, hairlines, three durations,
   one ease. Colour is plural: every section of a desk has its own, and so does every part of this page. */

@font-face {
  font-family: 'Recursive';
  src: url('/fonts/recursive.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('/fonts/schibsted-grotesk.woff2') format('woff2');
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --raise: #131315;
  --raise2: #1b1b1e;
  --ink: #fff;
  --ink2: rgb(255 255 255 / 0.72);
  --ink3: rgb(255 255 255 / 0.5);
  --ink4: rgb(255 255 255 / 0.34);
  --ink5: rgb(255 255 255 / 0.12);
  --ink6: rgb(255 255 255 / 0.06);
  --paper: #f3f1ec;
  --paper-raise: #fbfaf7;
  --pink: #111;
  --pink2: rgb(17 17 17 / 0.68);
  --pink3: rgb(17 17 17 / 0.5);
  --pink5: rgb(17 17 17 / 0.12);

  /* the desk's section colours: no one of them is i2o's colour */
  --orange: #ff6a4d;
  --blue: #3d8ef0;
  --violet: #8b6cf0;
  --green: #2fb576;
  --amber: #f2a12e;
  --rose: #e8508f;
  --teal: #3fb8c9;
  --sand: #c9b38a;
  --hue: var(--blue);

  --fast: 110ms;
  --settle: 280ms;
  --fade: 480ms;
  --ease: cubic-bezier(0.25, 0.9, 0.3, 1);
  --fold: cubic-bezier(0.6, 0, 0.2, 1);

  --head: 'Schibsted Grotesk', ui-sans-serif, system-ui, sans-serif;
  --read: 'Recursive', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Recursive', ui-monospace, 'SF Mono', Menlo, monospace;
  --gut: clamp(16px, 4vw, 56px);
  --nav: 64px;
}

* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.6 var(--read);
  font-variation-settings:
    'MONO' 0,
    'CASL' 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
::selection {
  background: color-mix(in srgb, var(--hue) 45%, transparent);
}
a {
  color: inherit;
}
img,
svg {
  display: block;
}
button {
  font: inherit;
  color: inherit;
}
.mono,
.lab {
  font-family: var(--mono);
  font-variation-settings:
    'MONO' 1,
    'CASL' 0;
  font-variant-numeric: tabular-nums;
}
.lab {
  font-size: 11px;
  line-height: 18px;
  letter-spacing: 0.01em;
  color: var(--ink3);
}
[hidden] {
  display: none !important;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
:focus-visible {
  outline: 1px solid var(--hue);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: 6px;
  font: 500 12px var(--mono);
}
.skip:focus {
  top: 12px;
}

/* --------------------------------------------------------------- the dot field of the desk */
.field {
  /* dots, with fainter lines between them that stop short of each dot */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Ccircle cx='1.5' cy='1.5' r='1.5' fill='%23fff' fill-opacity='.024'/%3E%3Cg fill='%23fff' fill-opacity='.0145'%3E%3Crect x='11' y='.9' width='35' height='1.2'/%3E%3Crect x='.9' y='11' width='1.2' height='35'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 56px;
  background-position: calc(var(--gut) - 28px) 0;
}

/* --------------------------------------------------------------- top bar: always holds the download */
.bar {
  position: fixed;
  inset: 0 0 auto;
  height: var(--nav);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 var(--gut);
  background: linear-gradient(var(--bg) 40%, transparent);
}
.bar .home {
  display: flex;
  align-items: center;
  text-decoration: none;
  height: 40px;
}
.bar .home svg {
  height: 21px;
  width: auto;
}
.bar nav {
  display: flex;
  gap: 22px;
}
.bar nav a {
  text-decoration: none;
  font: 400 12px/1 var(--mono);
  font-variation-settings: 'MONO' 1;
  color: var(--ink3);
  transition: color var(--fast);
}
.bar nav a:hover {
  color: var(--ink);
}
.bar .sp {
  flex: 1;
}
.bar {
  transition: color var(--settle);
}
.bar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--paper);
  opacity: 0;
  transition: opacity var(--settle);
}
.bar.onpaper {
  background: none;
  color: var(--pink);
}
.bar.onpaper::before {
  opacity: 1;
}
.bar.onpaper nav a {
  color: var(--pink3);
}
.bar.onpaper nav a:hover {
  color: var(--pink);
}
.bar.onpaper .get {
  --c: var(--pink);
  color: var(--paper);
}
.bar.onpaper .get .os {
  color: rgb(255 255 255 / 0.55);
}

/* the download: a filed card with its corner turned. Hover turns it further. */
.get {
  --c: var(--ink);
  position: relative;
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 22px 0 18px;
  background: var(--c);
  color: var(--bg);
  text-decoration: none;
  font: 500 13px/1 var(--mono);
  font-variation-settings: 'MONO' 1;
  border-radius: 20px 6px 20px 20px;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition:
    clip-path var(--settle) var(--ease),
    background var(--settle);
  white-space: nowrap;
}
.get::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 12px;
  height: 12px;
  background: var(--hue);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  transition:
    width var(--settle) var(--ease),
    height var(--settle) var(--ease),
    background var(--settle);
}
.get:hover {
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
.get:hover::after {
  width: 18px;
  height: 18px;
}
.get .os {
  color: color-mix(in srgb, var(--bg) 55%, transparent);
  font-weight: 400;
}
.get.big {
  height: 56px;
  font-size: 15px;
  padding: 0 30px 0 26px;
  border-radius: 28px 8px 28px 28px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}
.get.big::after {
  width: 16px;
  height: 16px;
}
.get.big:hover {
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}
.get.big:hover::after {
  width: 24px;
  height: 24px;
}
.ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--ink5);
  border-radius: 20px;
  text-decoration: none;
  font: 400 12px/1 var(--mono);
  font-variation-settings: 'MONO' 1;
  color: var(--ink2);
  transition:
    border-color var(--fast),
    color var(--fast);
}
.ghost:hover {
  border-color: var(--ink4);
  color: var(--ink);
}

/* --------------------------------------------------------------- the story: one pinned stage, five beats */
.story {
  position: relative;
  height: 175vh;
}
.stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.stage .scene {
  position: absolute;
  inset: 0;
}
.stage svg.desk {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* beats: the words on the left, swapped along the 45° crease */
.beats {
  position: absolute;
  left: var(--gut);
  top: 0;
  bottom: 0;
  width: min(440px, 36vw);
  z-index: 3;
  pointer-events: none;
}
.beat {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-46%);
  clip-path: polygon(0 0, 0 0, 0 0, 0 0);
  transition: clip-path 620ms var(--fold);
}
.beat.on {
  clip-path: polygon(0 -40%, 160% -40%, 100% 140%, -60% 140%);
  pointer-events: auto;
}
.beat.gone {
  clip-path: polygon(160% -40%, 160% -40%, 100% 140%, 100% 140%);
}
.beat .num {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}
.beat .num i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent);
}
.beat .num b {
  color: var(--c);
  font-weight: 500;
}
.beat h2,
.beat h1 {
  font: 600 clamp(34px, 4.2vw, 60px) / 0.98 var(--head);
  letter-spacing: -0.035em;
  margin: 0;
}
.beat h1 {
  font-size: clamp(44px, 6.4vw, 96px);
  letter-spacing: -0.045em;
  font-weight: 650;
}
.beat p {
  margin: 22px 0 0;
  max-width: 400px;
  color: var(--ink2);
  font-size: 16px;
  line-height: 1.6;
}
.beat p b {
  color: var(--ink);
  font-weight: 500;
}
.beat .row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  align-items: center;
}
.beat .fine {
  margin-top: 18px;
  font-size: 11px;
  line-height: 17px;
  color: var(--ink3);
  max-width: 360px;
}

/* the rail: where you are in the five */
.rail {
  position: absolute;
  right: var(--gut);
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transition: opacity var(--fade);
}
.rail.on {
  opacity: 1;
}
.rail a {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 3px 0;
  text-decoration: none;
  font: 400 11px/1 var(--mono);
  font-variation-settings: 'MONO' 1;
  color: var(--ink4);
  transition: color var(--settle);
}
.rail a i {
  width: 18px;
  height: 1px;
  background: currentColor;
  transition:
    width var(--settle) var(--ease),
    background var(--settle);
}
.rail a.on {
  color: var(--ink);
}
.rail a.on i {
  width: 34px;
  background: var(--c);
}
.scrollcue {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity var(--fade);
}
.scrollcue i {
  width: 1px;
  height: 26px;
  background: linear-gradient(var(--ink3), transparent);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* the reply as a model gives it: one block of text you will scroll past */
.reply {
  position: absolute;
  z-index: 2;
  width: min(460px, 86vw);
  background: var(--raise);
  border: 1px solid var(--ink5);
  border-radius: 14px;
  padding: 18px 20px 20px;
  font-size: 13.5px;
  line-height: 1.62;
  color: var(--ink2);
  transform-origin: 50% 0;
  will-change: transform, opacity;
}
.reply .ask {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}
.reply .ask span {
  background: var(--raise2);
  border: 1px solid var(--ink5);
  border-radius: 12px 12px 4px 12px;
  padding: 7px 12px;
  color: var(--ink);
  font-size: 13px;
  max-width: 80%;
}
.reply .who {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.reply .who i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink3);
}
.reply .s {
  transition:
    color var(--settle),
    background var(--settle),
    opacity var(--settle);
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.reply .s.keep {
  color: var(--ink);
  background: color-mix(in srgb, var(--c) 20%, transparent);
  box-shadow: inset 0 -1.5px 0 var(--c);
}
.reply .s.let {
  opacity: 0.32;
}
.reply .caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--ink2);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
.reply .foot {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--ink6);
}

/* the pass meter that runs while i2o reads */
.pass {
  position: absolute;
  z-index: 2;
  display: flex;
  gap: 16px;
  padding: 7px 12px;
  border: 1px solid var(--ink5);
  border-radius: 99px;
  background: var(--bg);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--settle);
}
.pass b {
  color: var(--ink);
  font-weight: 500;
}

/* svg desk pieces */
.desk .orb {
  fill: color-mix(in srgb, var(--c) 6%, transparent);
  stroke: var(--ink5);
}
.desk .orb.in {
  fill: rgb(255 255 255 / 0.015);
}
.desk .amb {
  fill: var(--c);
}
.desk text {
  font-family: var(--mono);
  font-variation-settings: 'MONO' 1;
  font-size: 12px;
  fill: var(--ink2);
}
.desk text.name {
  fill: var(--ink);
  font-size: 12.5px;
}
.desk text.sub {
  fill: var(--ink3);
  font-size: 11px;
}
.desk .note text {
  fill: var(--ink);
  font-size: 11.5px;
}
.desk .tie {
  fill: none;
  stroke: var(--c);
  stroke-opacity: 0.5;
  stroke-dasharray: 2 4;
}

/* scope: one section opened into its board */
.board {
  position: absolute;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  opacity: 0;
  pointer-events: none;
}
.board h3 {
  margin: 0;
  font: 650 26px/1 var(--head);
  letter-spacing: -0.03em;
}
.board .head {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.board .col > .lab {
  display: block;
  border-bottom: 1px solid var(--ink5);
  padding-bottom: 6px;
  margin-bottom: 8px;
}
.board ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.board li {
  display: flex;
  gap: 9px;
  align-items: baseline;
  font: 400 12px/1.5 var(--mono);
  font-variation-settings: 'MONO' 1;
  color: var(--ink3);
  padding: 4px 0;
}
.board li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c);
  opacity: 0.6;
  transform: translateY(-1px);
}
.board .do li::before {
  border-radius: 1px;
  background: none;
  border: 1.5px solid var(--c);
}
.board li.new {
  color: var(--ink);
}
.stage .board li.new::before {
  opacity: 1;
}
.board li em {
  font-style: normal;
  color: var(--c);
}

/* message: a sheet, written from notes, with its corner turned */
.sheet {
  position: absolute;
  z-index: 3;
  width: min(430px, 88vw);
  background: var(--paper);
  color: var(--pink);
  border-radius: 10px;
  padding: 24px 26px 22px;
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
  opacity: 0;
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.8);
}
.sheet::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 34px;
  height: 34px;
  background: var(--c);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.sheet .path {
  color: var(--pink3);
  font-size: 10.5px;
}
.sheet h4 {
  font: 650 22px/1.1 var(--head);
  letter-spacing: -0.025em;
  margin: 10px 0 14px;
}
.sheet p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--pink2);
}
.sheet p b {
  color: var(--pink);
  font-weight: 600;
}
.sheet .from {
  display: block;
  margin-top: 2px;
  font: 400 10.5px/1.4 var(--mono);
  font-variation-settings: 'MONO' 1;
  color: var(--pink3);
}
.sheet .from::before {
  content: '↳ from ';
}
.sheet .rule {
  border-top: 1px solid var(--pink5);
  margin: 14px 0 10px;
}

/* --------------------------------------------------------------- page sections after the story */
.sec {
  position: relative;
  padding: clamp(96px, 14vh, 160px) var(--gut);
}
.sec .fence {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 34px;
}
.sec .fence i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
}
.sec h2 {
  font: 650 clamp(38px, 5.4vw, 80px) / 0.96 var(--head);
  letter-spacing: -0.04em;
  margin: 0;
  max-width: 14ch;
}
.sec .lede {
  margin: 26px 0 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink2);
}
.sec .lede b {
  color: var(--ink);
  font-weight: 500;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

/* your turn: a desk you can sort */
.play {
  position: relative;
  margin-top: 56px;
  height: min(640px, 82vh);
  border: 1px solid var(--ink5);
  border-radius: 18px;
  overflow: hidden;
  background-color: var(--raise);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.play svg {
  width: 100%;
  height: 100%;
}
.play .hud {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 14px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  pointer-events: none;
}
.play .hud button {
  pointer-events: auto;
}
.play .tray {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--ink5);
  border-radius: 99px;
  background: var(--bg);
  font: 400 11.5px/1 var(--mono);
  font-variation-settings: 'MONO' 1;
  color: var(--ink2);
  cursor: pointer;
  transition:
    border-color var(--fast),
    color var(--fast);
}
.chip:hover {
  border-color: var(--ink4);
  color: var(--ink);
}
.chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c, var(--ink3));
}
.play .toast {
  position: absolute;
  left: 50%;
  bottom: 58px;
  transform: translate(-50%, 8px);
  opacity: 0;
  transition:
    opacity var(--settle),
    transform var(--settle) var(--ease);
  white-space: nowrap;
  pointer-events: none;
}
.play .toast.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.play .card {
  cursor: grab;
}
.play .card.held {
  cursor: grabbing;
}
.play .card rect.bg {
  fill: var(--bg);
  stroke: var(--ink5);
}
.play .card.held rect.bg,
.play .card:hover rect.bg {
  stroke: var(--ink4);
}
.play .card text {
  font: 400 11.5px var(--mono);
  font-variation-settings: 'MONO' 1;
  fill: var(--ink);
}
.play .card text.k {
  fill: var(--ink3);
  font-size: 10.5px;
}
.play .orb {
  fill: color-mix(in srgb, var(--c) 5%, transparent);
  stroke: var(--ink5);
  transition:
    fill var(--fast),
    stroke var(--fast);
}
.play .orb.hot {
  fill: color-mix(in srgb, var(--c) 16%, transparent);
  stroke: var(--c);
}
.play .orbg {
  cursor: pointer;
}
.play text.name {
  font: 400 12px var(--mono);
  font-variation-settings: 'MONO' 1;
  fill: var(--ink);
}
.play text.sub {
  font: 400 10.5px var(--mono);
  font-variation-settings: 'MONO' 1;
  fill: var(--ink3);
}
.play .open {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--raise) 97%, transparent);
  backdrop-filter: blur(4px);
  padding: 64px clamp(18px, 4vw, 48px) 70px;
  display: none;
  overflow: auto;
}
.play .open.on {
  display: block;
}
.play .open .board {
  position: static;
  opacity: 1;
  pointer-events: auto;
}

/* models */
.models {
  border-top: 1px solid var(--ink5);
}
.mrow {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--ink5);
}
.mrow .n {
  display: flex;
  gap: 10px;
  align-items: center;
  font: 500 14px var(--mono);
  font-variation-settings: 'MONO' 1;
}
.mrow .n i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}
.mrow .tiers {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.mrow .tiers span {
  border: 1px solid var(--ink5);
  border-radius: 6px;
  padding: 3px 10px;
  font: 400 11.5px var(--mono);
  font-variation-settings: 'MONO' 1;
  color: var(--ink2);
}
.mrow .how {
  color: var(--ink3);
  font-size: 11px;
  text-align: right;
}
.bill {
  border: 1px solid var(--ink5);
  border-radius: 16px;
  padding: 26px;
  background: var(--raise);
}
.bill .line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ink6);
}
.bill .line:last-of-type {
  border: 0;
}
.bill .big {
  font: 650 34px/1 var(--head);
  letter-spacing: -0.03em;
}
.bill .note {
  margin-top: 16px;
  color: var(--ink3);
  font-size: 12.5px;
  line-height: 1.6;
}
.sched {
  display: flex;
  gap: 4px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.sched button {
  border: 1px solid var(--ink5);
  background: none;
  border-radius: 6px;
  padding: 5px 10px;
  font: 400 11.5px var(--mono);
  font-variation-settings: 'MONO' 1;
  color: var(--ink3);
  cursor: pointer;
}
.sched button.on {
  border-color: var(--c);
  color: var(--ink);
}

/* files: paper */
.paper {
  background: var(--paper);
  color: var(--pink);
}
.paper ::selection {
  background: color-mix(in srgb, var(--c) 35%, transparent);
}
.paper .lab {
  color: var(--pink3);
}
.paper .lede {
  color: var(--pink2);
}
.paper .lede b {
  color: var(--pink);
}
.tree {
  font: 400 12.5px/2 var(--mono);
  font-variation-settings: 'MONO' 1;
  color: var(--pink2);
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.tree li {
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: default;
  border-radius: 4px;
  padding: 0 8px;
  margin: 0 -8px;
}
.tree li.d {
  color: var(--pink);
}
.tree li.f {
  padding-left: 30px;
  cursor: pointer;
}
.tree li.f:hover,
.tree li.f.on {
  background: var(--pink5);
  color: var(--pink);
}
.tree i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c);
  flex: none;
}
.file {
  background: var(--paper-raise);
  border: 1px solid var(--pink5);
  border-radius: 12px;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 30px, 100% 100%, 0 100%);
  position: relative;
}
.file::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 30px;
  height: 30px;
  background: var(--c);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  transition: background var(--settle);
}
.file .tab {
  display: flex;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--pink5);
  color: var(--pink3);
  font: 400 11px var(--mono);
  font-variation-settings: 'MONO' 1;
}
.file pre {
  margin: 0;
  padding: 18px 20px 24px;
  font: 400 12.5px/1.75 var(--mono);
  font-variation-settings: 'MONO' 1;
  color: var(--pink2);
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 380px;
}
.file pre .fm {
  color: var(--pink3);
}
.file pre .h {
  color: var(--pink);
  font-weight: 600;
}
.file pre .lk {
  color: var(--pink);
  text-decoration: underline;
  text-decoration-color: var(--c);
  text-underline-offset: 3px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 72px;
  border-top: 1px solid var(--pink5);
  padding-top: 26px;
}
.facts b {
  display: block;
  font: 600 16px/1.3 var(--head);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.facts p {
  margin: 0;
  color: var(--pink2);
  font-size: 14px;
}

/* free and later */
.plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 56px;
}
.plan {
  position: relative;
  border: 1px solid var(--ink5);
  border-radius: 18px;
  padding: 30px 30px 32px;
  background: var(--raise);
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.plan.now {
  clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%);
}
.plan.now::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--c);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
}
.plan.later {
  background: none;
  border-style: dashed;
}
.plan .top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.plan h3 {
  font: 650 40px/1 var(--head);
  letter-spacing: -0.035em;
  margin: 34px 0 6px;
}
.plan .price {
  color: var(--ink2);
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: 28px 0 32px;
  color: var(--ink2);
}
.plan li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--ink6);
}
.plan li::before {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--c);
}
.plan.later li::before {
  background: none;
  border: 1px solid var(--ink3);
}
.plan .pf {
  margin-top: auto;
}
.plan.now .top {
  padding-right: 34px;
}
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border: 1px solid var(--ink5);
  border-radius: 99px;
  font: 400 10.5px var(--mono);
  font-variation-settings: 'MONO' 1;
  color: var(--ink3);
}

/* questions */
.qs {
  margin-top: 48px;
  border-top: 1px solid var(--ink5);
}
.qs details {
  border-bottom: 1px solid var(--ink5);
}
.qs summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  font: 500 18px/1.35 var(--head);
  letter-spacing: -0.01em;
}
.qs summary::-webkit-details-marker {
  display: none;
}
.qs summary::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 6px;
  background: var(--ink3);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  transition:
    clip-path var(--settle) var(--fold),
    background var(--settle);
}
.qs details[open] summary::after {
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  background: var(--c);
}
.qs details p {
  margin: 0 0 22px;
  max-width: 680px;
  color: var(--ink2);
}

/* last word */
.end {
  text-align: center;
}
.end .bigmark {
  width: min(220px, 46vw);
  height: auto;
  margin: 0 auto 40px;
  color: var(--ink);
  cursor: pointer;
}
.end h2 {
  margin: 0 auto;
}
.end .row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px var(--gut) 34px;
  border-top: 1px solid var(--ink5);
}
footer a {
  text-decoration: none;
  color: var(--ink3);
}
footer a:hover {
  color: var(--ink);
}
footer .links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* reveal on entering view */
.rise {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--fade) var(--ease),
    transform var(--fade) var(--ease);
}
.rise.in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------- narrow screens */
@media (max-width: 900px) {
  :root {
    --nav: 56px;
  }
  .bar nav {
    display: none;
  }
  .bar .get .os {
    display: none;
  }
  .beats {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: auto;
  }
  .beat {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px var(--gut) 28px;
    transform: none;
    background: linear-gradient(transparent, var(--bg) 40px);
  }
  .beat h2 {
    font-size: 32px;
  }
  .beat h1 {
    font-size: 44px;
  }
  .beat p {
    font-size: 14.5px;
    margin-top: 14px;
  }
  .beat .num {
    margin-bottom: 14px;
  }
  .beat .row {
    margin-top: 22px;
  }
  .rail {
    top: calc(var(--nav) + 4px);
    transform: none;
    flex-direction: row;
    left: var(--gut);
    right: var(--gut);
    justify-content: space-between;
  }
  .rail a span {
    display: none;
  }
  .rail a {
    flex: 1;
  }
  .rail a i {
    width: 100%;
  }
  .rail a.on i {
    width: 100%;
    height: 2px;
  }
  .scrollcue {
    display: none;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .plans {
    grid-template-columns: 1fr;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .mrow {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .mrow .how {
    text-align: left;
  }
  .board {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .board h3 {
    font-size: 22px;
  }
  .play {
    height: 560px;
  }
  .reply {
    font-size: 12.5px;
    padding: 14px 16px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --fast: 0ms;
    --settle: 0ms;
    --fade: 0ms;
  }
  html {
    scroll-behavior: auto;
  }
  .beat {
    transition: none;
  }
  .scrollcue i,
  .reply .caret {
    animation: none;
  }
}

/* --------------------------------------------------------------- story positioning (set by story.js) */
.reply,
.pass,
.sheet {
  left: 0;
  top: 0;
}
.reply .w {
  opacity: 0;
  transition: opacity 140ms linear;
}
.reply .w.v {
  opacity: 1;
}
.reply .body {
  transition: color var(--fade);
}
.reply .body.dim {
  color: var(--ink4);
}
.stage .board li.new::before {
  opacity: 0;
}
.anchor {
  display: block;
  height: 1px;
  width: 1px;
  pointer-events: none;
  scroll-margin-top: 0;
}

/* --------------------------------------------------------------- the opening page */
.leaf {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: flex-end;
  background-color: #0f0f11;
  will-change: clip-path;
}
.leaf .copy {
  padding: 0 var(--gut) clamp(40px, 9vh, 96px);
  max-width: 960px;
}
.leaf h1 {
  margin: 18px 0 0;
  font: 650 clamp(44px, 6.4vw, 104px) / 0.92 var(--head);
  letter-spacing: -0.045em;
}
.leaf p {
  margin: 24px 0 0;
  max-width: 440px;
  color: var(--ink2);
  font-size: 16px;
}
.leaf p b {
  color: var(--ink);
  font-weight: 500;
}
.leaf .row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 32px;
}
.leaf .fine {
  margin-top: 16px;
  max-width: 380px;
  font-size: 11px;
  line-height: 18px;
  color: var(--ink3);
}
.turn {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  filter: drop-shadow(-18px 22px 30px rgb(0 0 0 / 0.55));
}
.flap {
  position: absolute;
  inset: 0;
  background: var(--hue);
  transition: background 700ms;
}
.flap::after {
  content: '';
  position: absolute;
  left: var(--gx, 0);
  top: var(--gy, 0);
  width: var(--gs, 100%);
  height: var(--gs, 100%);
  background: linear-gradient(225deg, rgb(255 255 255 / 0.3), transparent 45%, rgb(0 0 0 / 0.24));
}
.flap span {
  position: absolute;
  left: 0;
  top: 0;
  font: 500 11px var(--mono);
  font-variation-settings: 'MONO' 1;
  color: rgb(0 0 0 / 0.62);
  white-space: nowrap;
  transition: opacity 280ms;
}
@media (max-width: 900px) {
  .leaf h1 {
    font-size: 46px;
  }
  .leaf p {
    font-size: 14.5px;
  }
}
.bar.bare {
  background: none;
}

/* =============================================================== the concise page */
/* the app window under the opening page */
.window {
  position: absolute;
  z-index: 0;
  border: 1px solid var(--ink5);
  border-radius: 14px;
  background: #0e0e10;
  box-shadow: 0 50px 120px -40px rgb(0 0 0 / 0.9);
}
.wbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid var(--ink6);
}
.wbar .wmark {
  height: 13px;
  width: auto;
  color: var(--ink);
}
.wbar .sp {
  flex: 1;
}
.wbar .pill {
  border: 1px solid var(--ink5);
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 10.5px;
}
.stage svg.desk {
  z-index: 1;
}

/* features: a line, a sentence, a picture */
.feats {
  display: flex;
  flex-direction: column;
  gap: clamp(96px, 14vh, 150px);
  max-width: 1240px;
  margin: 0 auto;
}
.feat {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.feat.flip .ftext {
  order: 2;
}
.ftext .lab {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}
.ftext .lab i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}
.feats h2 {
  margin-top: 16px;
  font-size: clamp(34px, 4vw, 56px);
  max-width: 12ch;
}
.ftext p {
  margin: 18px 0 0;
  max-width: 400px;
  color: var(--ink2);
  font-size: 16.5px;
}
.fvis .play {
  margin-top: 0;
  height: min(520px, 70vh);
}
.reply.still,
.sheet.still {
  position: relative;
  left: auto;
  top: auto;
  opacity: 1;
  transform: none;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}
.reply.still .s.keep {
  --c: var(--blue);
}
.sheet.still {
  transform: rotate(-1deg);
}

/* the three that are yours */
.vals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid var(--ink5);
  padding-top: 48px;
}
.val i {
  display: block;
  width: 22px;
  height: 22px;
  background: var(--c);
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  margin-bottom: 18px;
}
.val h3 {
  margin: 0;
  font: 600 22px/1.2 var(--head);
  letter-spacing: -0.02em;
}
.val p {
  margin: 8px 0 0;
  color: var(--ink2);
}

/* cloud, later */
.cloud {
  padding-top: 0;
}
.cloudcard {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px 56px;
  align-items: end;
  border: 1px dashed var(--ink4);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 48px);
}
.cloudcard h2 {
  margin-top: 16px;
  font-size: clamp(34px, 4vw, 56px);
}
.cloudcard p {
  margin: 0;
  color: var(--ink2);
  max-width: 520px;
}
.end .row .ghost {
  height: 56px;
  padding: 0 22px;
}
.endfine {
  margin-top: 18px;
}

@media (max-width: 900px) {
  .feat,
  .cloudcard {
    grid-template-columns: 1fr;
  }
  .feat.flip .ftext {
    order: 0;
  }
  .vals {
    grid-template-columns: 1fr;
  }
  .wbar .pill:not(:first-of-type) {
    display: none;
  }
}
.feat.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.end h2 {
  max-width: none;
}
@media (max-width: 900px) {
  .feat.flip {
    grid-template-columns: 1fr;
  }
}

/* the opening page carries only the logo; under it, the words and the app */
.intro {
  position: absolute;
  z-index: 3;
  left: var(--gut);
  right: var(--gut);
  top: calc(var(--nav) + clamp(20px, 6vh, 72px));
  text-align: center;
}
.intro h1 {
  margin: 0;
  font: 650 clamp(40px, 5.6vw, 84px) / 0.95 var(--head);
  letter-spacing: -0.045em;
}
.intro p {
  margin: 18px auto 0;
  max-width: 520px;
  color: var(--ink2);
  font-size: 17px;
}
.intro .row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.intro .ghost {
  height: 54px;
  padding: 0 22px;
}
.intro .fine {
  margin-top: 14px;
  font-size: 11px;
  color: var(--ink3);
}
.stage .scene {
  pointer-events: none;
}
.intro {
  pointer-events: auto;
}
@media (max-width: 900px) {
  .intro p {
    font-size: 15px;
  }
  .intro .ghost {
    display: none;
  }
}

.leaf .ghost {
  height: 54px;
  padding: 0 22px;
}
@media (max-width: 900px) {
  .intro .biglogo {
    width: min(70vw, 320px);
  }
  .leaf .ghost {
    display: none;
  }
}

/* under the page: the big logo, faint, in the top-left; the app sits in front of it */
.intro {
  z-index: 0;
  left: 0;
  right: 0;
  top: calc(var(--nav) + 4px);
  height: clamp(150px, 30vh, 300px);
  text-align: left;
  pointer-events: none;
}
.intro .biglogo {
  position: absolute;
  left: var(--gut);
  top: 0;
  width: min(78vw, 1000px);
  height: auto;
  color: var(--ink);
  opacity: 0.14;
}
.stage .window {
  z-index: 1;
}
.stage svg.desk {
  z-index: 2;
}
.stage .reply,
.stage .pass {
  z-index: 3;
}
@media (max-width: 900px) {
  .intro {
    height: clamp(110px, 22vh, 200px);
  }
  .intro .biglogo {
    width: 92vw;
  }
}

/* the end: the mark, drawn the way it was made */
.construct {
  display: block;
  width: min(440px, 52vh, 88vw);
  height: auto;
  margin: 0 auto 28px;
  color: rgb(255 255 255 / 0.13);
  cursor: pointer;
  overflow: visible;
}
.construct .cgl {
  stroke: rgb(255 255 255 / 0.05);
  stroke-width: 0.15;
}
.construct .cgrid {
  opacity: 0;
  transition: opacity 900ms;
}
.construct .cl * {
  fill: none;
  stroke: rgb(255 255 255 / 0.6);
  stroke-width: 0.24;
}
.construct .cl .dim {
  stroke: rgb(255 255 255 / 0.3);
}
.construct .cl .hot {
  stroke: var(--c);
}
.construct .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1100ms var(--ease);
}
.construct .dash {
  stroke-dasharray: 1.2 0.8;
  opacity: 0;
  transition: opacity 700ms;
}
.construct .ct text {
  font: 400 2.3px var(--mono);
  font-variation-settings: 'MONO' 1;
  fill: rgb(255 255 255 / 0.62);
  opacity: 0;
  transition: opacity 700ms 1300ms;
}
.construct .ct text.hot {
  fill: var(--c);
}
.construct.in .cgrid,
.construct.in .dash,
.construct.in .ct text {
  opacity: 1;
}
.construct.in .draw {
  stroke-dashoffset: 0;
}
.construct .d2 {
  transition-delay: 100ms;
}
.construct .d3 {
  transition-delay: 300ms;
}
.construct .d4 {
  transition-delay: 500ms;
}
.construct .d5 {
  transition-delay: 800ms;
}
.construct .d6 {
  transition-delay: 1000ms;
}
@media (prefers-reduced-motion: reduce) {
  .construct * {
    transition: none !important;
  }
}

/* each feature's verb lights up in its colour once, as it comes into view */
.ftext .flash {
  transition: color 600ms;
}
.ftext.flashing .flash {
  animation: flash 1800ms var(--ease) 350ms both;
}
@keyframes flash {
  0%,
  100% {
    color: var(--ink);
  }
  18%,
  62% {
    color: var(--c);
  }
}
.feats h2 {
  margin-top: 0;
}
@media (prefers-reduced-motion: reduce) {
  .ftext.flashing .flash {
    animation: none;
  }
}

/* trial: squircle buttons, like the app's settings buttons, instead of pills (revert this block to undo) */
.get,
.get.big,
.ghost,
.intro .ghost,
.leaf .ghost,
.end .row .ghost {
  border-radius: 12px;
  corner-shape: squircle;
}
.get.big,
.leaf .ghost,
.intro .ghost,
.end .row .ghost {
  border-radius: 15px;
}

/* the opening headline stays on two lines at every desktop width */
@media (min-width: 901px) {
  .leaf .copy {
    max-width: none;
  }
  .leaf h1 {
    white-space: nowrap;
  }
}

/* before the first public release, the button says so and goes nowhere */
.get.soon {
  cursor: default;
  pointer-events: none;
}
