@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --surface: #f2f3f5;
  --ink: #15171c;
  --ink-2: #5b616e;
  --line: #e2e4e9;
  --orange: #ff6a1f;
  --orange-hover: #ff8040;
  --orange-ink: #b8430a;
  --night: #16132b;
  --night-ink: #f4f2ff;
  --night-ink-2: #b6b1d4;

  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --text: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 28px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; scrollbar-color: #c4c8d0 var(--paper); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(255, 106, 31, .28); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--orange-ink); text-decoration-thickness: 1px; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 8px 14px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { top: 8px; }
.dot { color: var(--orange); }

/* ---------- navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.logo {
  color: var(--ink); text-decoration: none;
  font: 800 28px/1 var(--display); letter-spacing: -.045em;
}
.logo span { color: var(--orange); }
.nav nav { display: flex; gap: 6px; }
.nav nav a {
  padding: 8px 14px; border-radius: 999px;
  color: var(--ink); text-decoration: none;
  font-size: 15px; font-weight: 500;
  transition: background-color .2s var(--ease);
}
.nav nav a:hover { background: var(--surface); }
.nav nav a[aria-current="page"] { background: var(--ink); color: #fff; }

/* ---------- buttons and links ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 16px/1 var(--text);
  text-decoration: none;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .3s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 17px; }
.btn-primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #2a2d35; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.link:hover { color: var(--orange-ink); }
.arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.link:hover .arrow, .pillar:hover .arrow { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center; gap: 40px;
  padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(56px, 8vw, 104px);
}
.hero h1 {
  font-size: clamp(56px, 8vw, 104px);
  font-weight: 800; line-height: .95; letter-spacing: -.045em;
}
.hero-sub {
  max-width: 34ch; margin-top: 28px;
  font: 500 clamp(20px, 1.9vw, 24px)/1.4 var(--text); letter-spacing: -.01em;
}
.hero-what { max-width: 46ch; margin-top: 14px; color: var(--ink-2); font-size: 18px; }
.hero .actions { margin-top: 34px; }

.cluster {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  width: min(100%, 440px); justify-self: end;
}
.cluster li:nth-child(3n + 2) { transform: translateY(36px); }
.cluster li.c6 { grid-column: 1; }
.cluster a {
  display: grid; place-items: center;
  aspect-ratio: 1; border-radius: 30px;
  background: var(--surface);
  transition: transform .5s var(--ease), background-color .3s var(--ease);
}
.cluster a:hover { transform: translateY(-6px) rotate(-2deg); background: #ffe6d8; }
.cluster img { width: 86%; height: auto; }

/* ---------- what we build ---------- */
.build { background: var(--surface); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pillars li + li { border-left: 1px solid var(--line); }
.pillar {
  display: flex; flex-direction: column; gap: 10px; height: 100%;
  padding: 40px 32px 44px;
  color: var(--ink); text-decoration: none;
  transition: background-color .3s var(--ease);
}
.pillars li:first-child .pillar { padding-left: 0; }
.pillar:hover { background: rgba(255, 255, 255, .55); }
.stack { display: flex; margin-bottom: 8px; }
.stack img { width: 52px; height: 52px; }
.stack img + img { margin-left: -16px; }
/* the signature lift-and-tilt, shared by every app icon that links somewhere */
.stack img, .card-head img { transition: transform .5s var(--ease); }
.pillar:hover .stack img { transform: translateY(-4px) rotate(-3deg); }
.pillar:hover .stack img:nth-child(even) { transform: translateY(-4px) rotate(3deg); }
.card:hover .card-head img { transform: translateY(-3px) rotate(-3deg); }
.pillar-title { font: 700 30px/1.1 var(--display); letter-spacing: -.03em; }
.pillar-text { color: var(--ink-2); max-width: 32ch; }
.pillar-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-weight: 600; }

/* ---------- product groups ---------- */
.group-head { margin-bottom: 36px; }
.group-head h2 { font-size: clamp(44px, 6vw, 72px); font-weight: 800; line-height: 1; letter-spacing: -.045em; }
.group-head p { max-width: 48ch; margin-top: 14px; font-size: 20px; color: var(--ink-2); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.card {
  display: flex; flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border-radius: var(--radius);
}
.card-copy { padding: 36px 36px 0; }
.card-head { display: flex; align-items: center; gap: 16px; }
.card-head img { width: 76px; height: 76px; flex: none; margin: -6px 0 -6px -6px; }
.card h3 { font-size: 32px; line-height: 1.05; letter-spacing: -.035em; }
.card-meta { margin-top: 4px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.card-tag { margin-top: 22px; font: 600 23px/1.25 var(--display); letter-spacing: -.02em; }
.card-job { margin-top: 8px; color: var(--ink-2); max-width: 44ch; }
.card .actions { margin-top: 22px; }
.card-media {
  flex: 1; display: flex; align-items: flex-end; justify-content: center;
  padding: 36px 36px 0;
  min-height: 280px;
}
.shot { width: auto; }
.window {
  max-width: min(100%, 520px);
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -2px 0 rgba(21, 23, 28, .04), 0 24px 60px -16px rgba(21, 23, 28, .35);
}
.window.tall { max-width: min(78%, 330px); }
.card-media:has(.window) { padding-bottom: 0; }

.card.wide { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.card.wide .card-copy { flex: 0 1 44%; padding: 48px 0 48px 48px; align-self: center; }
.card.wide .card-media { flex: 1 1 56%; padding: 48px 48px 0; min-height: 420px; }
.card.wide .window { max-width: min(100%, 620px); }
/* illustrations sit inside the card rather than bleeding off its bottom edge */
.illus { width: 100%; max-width: 600px; }
.card-media:has(.illus) { padding-bottom: 28px; align-items: center; }
.card.wide .card-media:has(.illus) { padding-bottom: 36px; }

.tone-ink { background: var(--ink); color: #fff; }
.tone-ink .card-meta, .tone-ink .card-job { color: #a9aebb; }
.tone-ink .link { color: #fff; }
.tone-ink .link:hover { color: var(--orange-hover); }
.tone-ink .card-media { align-items: center; padding-bottom: 36px; }
.desktop { max-width: 100%; border-radius: 12px; outline: 1px solid rgba(255, 255, 255, .14); }
.tone-paper { background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.tone-paper .card-media { padding: 24px 12px 20px; align-items: center; }

/* ---------- games ---------- */
.games .group-head p { color: var(--night-ink-2); }
.tone-sky { background: #4ec0ca; color: var(--ink); }
.tone-sky .card-meta, .tone-sky .card-job { color: #17363a; }
.tone-sky .card-media { padding-bottom: 0; }
.phones { display: flex; gap: 16px; align-items: flex-end; transform: translateY(24px); }
.phone { width: min(170px, 36vw); border-radius: 26px; box-shadow: 0 0 0 7px var(--ink), 0 24px 50px -10px rgba(0, 0, 0, .4); }
.phone + .phone { transform: translateY(-28px); }
.tone-mino { background: #2a2a2a; color: #fff; }
.tone-mino .card-meta, .tone-mino .card-job { color: #b3b3b3; }
.tone-mino .link { color: #fff; }
.tone-mino .link:hover { color: var(--orange-hover); }
.tone-mino .card-media { align-items: center; padding-bottom: 36px; }
.banner { max-width: min(100%, 460px); }

/* ---------- about ---------- */
.about h2 { font-size: clamp(40px, 5.4vw, 64px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; max-width: 14ch; }
.about-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 56px; margin-top: 36px; max-width: 980px; }
.about-body p { font-size: 20px; line-height: 1.5; color: var(--ink-2); }
.about-body p:first-child { color: var(--ink); }
.panel-orange .about-body p { color: var(--ink); }

/* ---------- help band ---------- */
.help:not(.panel) { background: var(--orange); color: var(--ink); }
.help-inner { padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); }
.help h2 { font-size: clamp(40px, 5vw, 60px); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.help p { margin-top: 14px; max-width: 52ch; font-size: 19px; }
.help .actions { margin-top: 28px; }
.link-ink { color: var(--ink); }
.link-ink:hover { color: var(--ink); text-decoration: underline; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #a9aebb; font-size: 14px; }
.foot .wrap { padding-top: 56px; padding-bottom: 32px; }
.foot .logo { color: #fff; font-size: 26px; }
.foot-top { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.foot-top p { font: 600 17px/1 var(--display); color: #d7dae1; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding: 40px 0 44px; }
.foot h2 { font: 600 13px/1 var(--text); letter-spacing: .02em; color: #fff; margin-bottom: 14px; }
.foot li { margin-top: 10px; }
.foot a { color: #c9cdd6; text-decoration: none; }
.foot a:hover { color: var(--orange-hover); }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; padding-top: 22px; border-top: 1px solid #2e313a; font-size: 13px; }

/* ---------- support page ---------- */
.sup-hero { padding-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(56px, 7vw, 88px); }
.sup-hero h1 { font-size: clamp(56px, 8vw, 104px); font-weight: 800; letter-spacing: -.045em; line-height: .95; }
.sup-hero .hero-sub { max-width: none; }
.picker { display: grid; grid-template-columns: 3fr 3fr 2fr; gap: 20px; margin-top: 48px; }
.pick-group { padding: 24px; background: var(--surface); border-radius: var(--radius); }
.pick-group h2 { font-size: 22px; letter-spacing: -.02em; margin-bottom: 18px; }
.pick-group ul { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.pick-group a { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 92px; color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 500; text-align: center; }
.pick-group img { width: 76px; height: 76px; transition: transform .4s var(--ease); }
.pick-group a:hover img { transform: translateY(-4px); }
.pick-group a:hover { color: var(--orange-ink); }

.faq { padding-top: clamp(72px, 9vw, 104px); }
.faq > h2, .sup-list > h2 { font-size: clamp(36px, 4.4vw, 52px); font-weight: 800; letter-spacing: -.04em; }
.faq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 32px; }
.faq h3 { font-size: 21px; letter-spacing: -.02em; margin-bottom: 8px; }
.faq p { color: var(--ink-2); }
.sup-list { padding-top: clamp(72px, 9vw, 104px); padding-bottom: clamp(80px, 10vw, 120px); }
.sup-app {
  display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 8px 28px; align-items: start;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.sup-list > h2 + .sup-app { margin-top: 20px; border-top: 1px solid var(--line); }
.sup-app:target h3 { color: var(--orange-ink); }
.sup-app > img { width: 80px; height: 80px; }
.sup-app h3 { font-size: 26px; letter-spacing: -.03em; }
.sup-meta { margin-top: 2px; font-size: 14px; color: var(--ink-2); }
.sup-feats { margin-top: 12px; columns: 2; column-gap: 32px; font-size: 15px; color: var(--ink-2); }
.sup-feats li { break-inside: avoid; padding: 3px 0; }
.sup-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; white-space: nowrap; font-size: 15px; }

/* ---------- privacy policy ---------- */
.policy-date { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.policy-body { padding-bottom: clamp(80px, 10vw, 120px); max-width: calc(820px + 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.policy-body > section { padding: 36px 0; border-top: 1px solid var(--line); }
.policy-body h2 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; margin-bottom: 12px; }
.policy-body p, .policy-body li { font-size: 18px; color: var(--ink-2); max-width: 64ch; }
.policy-app { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 24px; align-items: start; }
.policy-app img { width: 76px; height: 76px; margin: -6px 0 0 -6px; }
.policy-app ul { list-style: disc; padding-left: 20px; display: grid; gap: 8px; }

/* ---------- panels: each section scrolls away like a curtain, uncovering the next one, which holds still beneath it ---------- */
:root { --panel-pad: clamp(72px, 9vw, 112px); }
main { overflow-x: clip; }
.cover { position: relative; z-index: 10; background: var(--paper); }
.build.cover { background: var(--surface); box-shadow: 0 28px 48px -28px rgba(21, 23, 28, .4); }
.panel {
  position: relative; z-index: var(--z, 1);
  padding: var(--panel-pad) 0;
  box-shadow: 0 28px 48px -28px rgba(21, 23, 28, .4);
  will-change: transform;
}
.panel-last { box-shadow: none; }
/* The reveal runs on the browser's scroll timeline so it moves in lockstep with scrolling.
   A tall panel holds at the top of the viewport for one viewport of scroll; a short one (.is-short, set by app.js)
   holds at the bottom for its own height. */
@supports (animation-timeline: view()) {
  .panel { animation: curtain-tall linear both; animation-timeline: view(); animation-range: cover 0px cover 100vh; }
  .panel.is-short { animation-name: curtain-short; animation-range: entry 0% entry 100%; }
  @keyframes curtain-tall { from { transform: translate3d(0, -100vh, 0); } to { transform: none; } }
  @keyframes curtain-short { from { transform: translate3d(0, -100%, 0); } to { transform: none; } }
}
.panel-paper { background: var(--paper); }
.panel-surface { background: var(--surface); }
.panel-surface .card:not([class*="tone-"]) { background: var(--paper); }
.panel-night { background: var(--night); color: var(--night-ink); box-shadow: 0 28px 48px -28px rgba(0, 0, 0, .6); }
.panel-orange { background: var(--orange); color: var(--ink); }
.panel .help-inner { padding-top: 0; padding-bottom: 0; }
.about h2 + .about-body { margin-top: 36px; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .nav nav a { padding: 8px 10px; font-size: 14px; }
  .card.wide { flex-direction: column; }
  .card.wide .card-copy { padding: 36px 36px 0; flex: none; }
  .card.wide .card-media { padding: 36px 36px 0; min-height: 0; }
  .picker { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-inner { flex-wrap: wrap; height: auto; padding-top: 12px; gap: 6px; }
  .nav nav {
    order: 2; width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 10px; overflow-x: auto; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
    mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .nav nav a:last-child { margin-right: 24px; }
  .nav nav::-webkit-scrollbar { display: none; }
  .nav nav a { flex: none; padding: 6px 12px; font-size: 14px; background: var(--surface); }
  html { scroll-padding-top: 120px; }
  .hero { grid-template-columns: 1fr; }
  .cluster { justify-self: start; grid-template-columns: repeat(4, 1fr); width: 100%; gap: 14px; }
  .cluster li:nth-child(3n + 2) { transform: none; }
  .cluster li:nth-child(even) { transform: translateY(18px); }
  .cluster li.c6 { grid-column: auto; }
  .cluster a { border-radius: 22px; }
  .pillars { grid-template-columns: 1fr; }
  .pillars li + li { border-left: 0; border-top: 1px solid var(--line); }
  .pillar, .pillars li:first-child .pillar { padding: 28px 0; }
  .cards { grid-template-columns: 1fr; }
  .about-body { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .picker { grid-template-columns: 1fr; }
  .sup-app { grid-template-columns: 64px minmax(0, 1fr); gap: 4px 16px; }
  .sup-app > img { width: 64px; height: 64px; }
  .sup-feats { columns: 1; }
  .sup-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 12px; white-space: normal; }
}
@media (max-width: 480px) {
  .card-copy, .card.wide .card-copy { padding: 28px 24px 0; }
  .card-media, .card.wide .card-media { padding: 28px 20px 0; min-height: 0; }
  .tone-ink .card-media, .tone-mino .card-media { padding-bottom: 28px; }
  .card h3 { font-size: 28px; }
  .card-tag { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
  .panel { transform: none !important; animation: none !important; }
}
