@font-face {
  font-family: Inter;
  src: url(/assets/inter.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url(/assets/inter-semibold.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: Platform Icons;
  src: url(/assets/platform-icons.woff2) format("woff2");
  font-display: block;
}

:root {
  color-scheme: dark;
  --ink: #f1f5ef;
  --muted: #b4c0b8;
  --base: #0a100e;
  --rule: #bfe6cd29;
  --accent: 141, 228, 168;
  --light-x: 73%;
  --light-y: 46%;
  --art-x: 0px;
  --art-y: 0px;
  --art-roll: 0deg;
}

* { box-sizing: border-box; }
html { background-color: var(--base); scroll-behavior: smooth; scroll-padding: 25px; }
body {
  margin: 0;
  min-height: 100vh;
  isolation: isolate;
  background: var(--base);
  color: var(--ink);
  font: 400 15px/1.55 Inter, system-ui, sans-serif;
}
[hidden] { display: none !important; }
p, h1, h2, h3, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 5px; }
.skip { position: fixed; z-index: 2; top: 10px; left: 10px; padding: 8px 12px; background: var(--ink); color: var(--base); clip-path: inset(50%); }
.skip:focus { clip-path: none; }

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse at var(--light-x) var(--light-y), rgba(var(--accent), .14), transparent 49%),
    radial-gradient(ellipse at 92% 20%, rgba(var(--accent), .09), transparent 59%),
    radial-gradient(ellipse at 12% 100%, #24483a55, transparent 57%),
    linear-gradient(120deg, #0a100e, #101915 72%, #0a100e);
}
.ambient::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, #b4d5bf31 1px, transparent 1.4px) 0 0 / 21px 21px;
  mask-image: linear-gradient(112deg, transparent 4%, #0002 30%, #000 88%);
}
.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0a100e75, transparent 70%);
}
#field { position: absolute; inset: 0; width: 100%; height: 100%; }

.wrap { width: min(1180px, calc(100% - 88px)); margin-inline: auto; }
.masthead {
  min-height: 80px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}
.wordmark { display: inline-flex; align-items: center; gap: 9px; font-size: 23px; font-weight: 600; letter-spacing: -.055em; }
.wordmark img { display: block; border-radius: 3px; }
.footer a:hover { color: var(--ink); }

.opening {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(24px, 4vw, 62px);
  padding-block: 32px 52px;
}
.intro { padding-block: 14px 24px; }
.overline { color: var(--muted); font: 400 11px/1.4 ui-monospace, monospace; letter-spacing: .12em; text-transform: uppercase; }
h1 {
  font-size: clamp(34px, 4.05vw, 58px);
  font-weight: 600;
  letter-spacing: -.07em;
  line-height: .99;
}
h1 span { display: block; color: rgb(var(--accent)); }
.lede { max-width: 38ch; margin-top: 21px; color: var(--muted); font-size: clamp(15px, 1.55vw, 19px); }
.numbers { display: flex; gap: 25px; margin-top: 25px; }
.numbers > div { display: flex; flex-direction: column; gap: 3px; }
.numbers > div + div { padding-left: 25px; border-left: 1px solid var(--rule); }
.numbers dd { font-size: 22px; font-weight: 600; line-height: 1.08; letter-spacing: -.035em; }
.numbers dt { color: var(--muted); font-size: 11px; }

.apps { min-width: 0; }
.picker-heading { margin-bottom: 9px; }
.app-view { border-top: 1px solid var(--rule); padding-block: 14px; }
.app-index, .store-artwork { display: none; }
.app-info h3 { font-size: clamp(24px, 2.65vw, 39px); font-weight: 600; line-height: 1.07; letter-spacing: -.065em; }
.app-info > p:not(.overline) { margin-top: 10px; max-width: 29ch; color: var(--muted); font-size: 13px; }
.app-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 10px; }
.app-links a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 7px; }
.app-links a:focus-visible { outline-offset: -2px; }
.platform-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--rule);
  border-radius: 7px;
  color: var(--muted);
  font: 17px/1 "Platform Icons";
}
.app-links a:hover .platform-icon { border-color: rgb(var(--accent)); color: var(--ink); }
.icon-web::before { content: "\f350"; }
.icon-apple::before { content: "\f3d8"; }
.icon-android::before { content: "\f3d6"; }

.app-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule);
}
.app-tabs button {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 74px;
  padding: 9px 3px 7px;
  border: 0;
  border-top: 1px solid var(--rule);
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
  transition: background .22s, color .22s;
}
.app-tabs button img { display: block; border-radius: 8px; }
.app-tabs button[aria-selected="true"] {
  color: var(--ink);
  border-top-color: rgb(var(--accent));
  background: linear-gradient(180deg, rgba(var(--accent), .13), transparent);
}
.app-tabs button:hover { color: var(--ink); }
.app-tabs button:focus-visible { outline-offset: -3px; }

.apps.is-interactive .showcase { touch-action: pan-y pinch-zoom; }
.apps.is-interactive .app-view {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 200px);
  justify-content: center;
  align-items: center;
  gap: clamp(16px, 2.7vw, 40px);
  min-height: 420px;
  border: 0;
  padding-block: 15px 8px;
}
.apps.is-interactive .app-view:not([hidden]) { animation: bring-in .34s ease-out both; }
@keyframes bring-in {
  from { opacity: .45; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.apps.is-interactive .app-index { display: block; margin-bottom: 8px; color: rgb(var(--accent)); }
.apps.is-interactive .store-artwork {
  display: block;
  width: min(88%, 183px);
  height: auto;
  justify-self: center;
  border-radius: 11px;
  box-shadow: 0 22px 36px #050907b8, 0 0 54px rgba(var(--accent), .16);
  transform: translate(var(--art-x), var(--art-y)) rotate(calc(3deg + var(--art-roll)));
}

.studio {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: start;
  gap: clamp(30px, 6vw, 86px);
  padding-block: 43px 72px;
  border-top: 1px solid var(--rule);
}
.studio h2 { font-size: clamp(34px, 4.2vw, 52px); font-weight: 600; line-height: 1.03; letter-spacing: -.065em; }
.studio p:not(.overline) { max-width: 39ch; color: var(--muted); font-size: 17px; }
.studio p + p { margin-top: 12px; }
.studio a { color: rgb(var(--accent)); }
.studio a:hover { text-decoration: underline; text-underline-offset: .25em; }
.footer { display: flex; align-items: center; gap: 15px 28px; flex-wrap: wrap; padding-block: 22px 29px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 12px; }
.footer > span { margin-right: auto; }

@media (min-width: 731px) {
  .opening {
    grid-template-rows: auto auto;
    row-gap: 0;
  }
  .intro { grid-area: 1 / 1; position: relative; z-index: 1; }
  .apps {
    display: grid;
    grid-area: 1 / 1 / 3 / -1;
    grid-template-columns: subgrid;
    grid-template-rows: subgrid;
  }
  .showcase { grid-area: 1 / 2; min-width: 0; }
  .picker { grid-area: 2 / 1 / 3 / -1; margin-top: 15px; }
  .app-tabs button {
    flex-direction: row;
    gap: 10px;
    min-height: 64px;
    padding: 10px 12px;
    font-size: 14px;
    text-align: left;
  }
}
@media (max-width: 980px) {
  .wrap { width: calc(100% - 56px); }
  .opening { column-gap: 25px; }
  .apps.is-interactive .app-view { min-height: 364px; }
  .apps.is-interactive .store-artwork { width: min(88%, 155px); }
}
@media (max-width: 730px) {
  .wrap { width: calc(100% - 36px); }
  .masthead { min-height: 62px; }
  .wordmark { font-size: 20px; }
  .opening { grid-template-columns: 1fr; gap: 24px; padding-block: 26px 27px; }
  .intro { padding: 0; }
  h1 { font-size: clamp(28px, 8.8vw, 56px); }
  .lede { margin-top: 14px; }
  .numbers { margin-top: 20px; }
  .app-tabs button { gap: 4px; min-height: 68px; padding: 8px 2px 6px; }
  .app-tabs button img { width: 28px; height: 28px; }
  .apps.is-interactive .app-view { min-height: 325px; grid-template-columns: minmax(132px, 1fr) minmax(0, 1fr); }
  .app-info h3 { font-size: clamp(25px, 6vw, 33px); }
  .app-links { gap: 0; }
  .app-links a { width: 44px; height: 44px; }
  .apps.is-interactive .store-artwork { width: min(89%, 143px); border-radius: 8px; }
  .studio { grid-template-columns: 1fr; gap: 18px; padding-block: 31px 44px; }
  .studio p:not(.overline) { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .apps.is-interactive .app-view:not([hidden]) { animation: none; }
  .app-tabs button { transition: none; }
}
