/* Work with us: the studio makes a game or an app for someone else. The home page's night frame (sky, hills, the warm
   window light on the main button) around light sections to read, and a night band of what we made. */
body { margin: 0; background: #0b0f19; }
a { color: inherit; }
.site { font-family: Figtree, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: #151a24; background: #fbfbfa; overflow: hidden; overflow: clip; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 24px; box-sizing: border-box; }
.display { font-family: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif; letter-spacing: -0.03em; }
.kind { margin: 0; font-size: 12px; line-height: 16px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; }
.btn { display: inline-flex; align-items: center; height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 650; font-size: 16px; text-decoration: none; transition: transform .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-main { background: #ecd29f; color: #0b0f19; }
.btn-ghost { color: #ebeef5; box-shadow: inset 0 0 0 1.5px rgba(235, 238, 245, 0.35); }
.btn:focus-visible, .nav a:focus-visible, .brand:focus-visible, .made-card:focus-visible { outline: 2px solid #ecd29f; outline-offset: 3px; }

/* Header and hero: the home page's night sky and hills, without the mill */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #04060c 0%, #0a1020 35%, #17233f 72%, #213152 100%); color: #ebeef5; display: flex; flex-direction: column; }
.top { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-block: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -0.01em; color: #ebeef5; }
.brand svg { width: 30px; height: 30px; fill: currentColor; }
.nav { display: flex; gap: 28px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: #9aa4ba; font-size: 15px; }
.nav a:hover { color: #ebeef5; }
.hero-body { position: relative; z-index: 3; padding-block: 88px 220px; }
.hero .kind { color: #ecd29f; margin-bottom: 22px; }
.hero h1 { margin: 0; font-size: clamp(44px, 6.2vw, 88px); line-height: 0.95; font-weight: 750; max-width: 12ch; text-wrap: balance; }
.hero .lead { margin: 26px 0 36px; font-size: 21px; line-height: 32px; color: #aab3c6; max-width: 34ch; text-wrap: pretty; }
.actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.sky { position: absolute; inset: 0; z-index: 0; }
.stars { position: absolute; left: 0; top: 0; width: 2px; height: 2px; border-radius: 50%; }
.stars.s1 { color: rgba(235, 238, 245, 0.85); box-shadow: 40px 60px, 130px 210px, 210px 110px, 300px 340px, 380px 40px, 450px 260px, 520px 150px, 610px 400px, 690px 80px, 760px 300px, 830px 180px, 900px 30px, 980px 240px, 1050px 120px, 1110px 360px, 1180px 70px, 1250px 200px, 1320px 40px, 1390px 300px, 1430px 150px, 60px 420px, 250px 470px, 560px 500px, 870px 440px, 1210px 480px, 1360px 430px; animation: twinkle 4s ease-in-out infinite; }
.stars.s2 { width: 1px; height: 1px; color: rgba(235, 238, 245, 0.6); box-shadow: 90px 140px, 170px 30px, 270px 260px, 340px 120px, 420px 380px, 490px 60px, 580px 230px, 650px 20px, 720px 190px, 800px 90px, 870px 330px, 940px 160px, 1010px 50px, 1080px 280px, 1150px 170px, 1230px 320px, 1290px 110px, 1350px 240px, 1410px 70px, 30px 300px, 200px 380px, 470px 450px, 760px 470px, 1020px 410px, 1300px 500px; animation: twinkle 6s ease-in-out infinite reverse; }
.moon { position: absolute; right: 11%; top: 136px; width: 64px; height: 64px; border-radius: 50%; box-shadow: inset -15px 0 0 0 #ebeef5; filter: drop-shadow(0 0 22px rgba(235, 238, 245, 0.35)); }
.hills { position: absolute; left: -40px; bottom: 0; width: calc(100% + 80px); display: block; }
.far { z-index: 1; height: 200px; fill: #141f38; }
.near { z-index: 2; height: 96px; fill: #04060c; }

/* Sections */
.offer, .how { padding-block: 120px 128px; }
.how { border-top: 1px solid #e3e6ed; }
.offer h2, .made h2, .how h2 { margin: 0 0 20px; font-size: clamp(44px, 5.6vw, 80px); line-height: 0.96; font-weight: 750; letter-spacing: -0.035em; max-width: 15ch; text-wrap: balance; }
.intro { margin: 0 0 64px; font-size: 20px; line-height: 31px; color: #5a6274; max-width: 46ch; text-wrap: pretty; }
.how h2 { margin-bottom: 56px; }
.offer-grid, .steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px 40px; }
.offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.offer-grid li { border-top: 1px solid #d5dae4; padding-top: 24px; }
.offer h3, .how h3 { margin: 0 0 10px; font-family: "Bricolage Grotesque", sans-serif; font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -0.01em; }
.offer-grid p, .steps p { margin: 0; font-size: 17px; line-height: 27px; color: #3d4454; text-wrap: pretty; }

/* What we made: a card for every product on the App Store, on the night colour */
.made { background: #0b0f19; color: #ebeef5; padding-block: 120px 128px; }
.made .intro { color: #aab3c6; }
.made-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.made-card { display: flex; flex-direction: column; gap: 10px; padding: 28px 24px 32px; border-radius: 22px; background: #131a2a; text-decoration: none; transition: transform .2s ease, background-color .2s ease; }
.made-card:hover { transform: translateY(-3px); background: #19223a; }
.made-icon { width: 64px; height: 64px; border-radius: 15px; margin-bottom: 10px; }
.made-card .kind { color: #ecd29f; }
.made-card h3 { margin: 0; font-family: "Bricolage Grotesque", sans-serif; font-size: 28px; line-height: 32px; font-weight: 700; letter-spacing: -0.015em; }
.made-card p { margin: 0; font-size: 16px; line-height: 25px; color: #aab3c6; }

/* How a project goes: four steps with big numbers */
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.num { display: block; margin-bottom: 18px; font-family: "Bricolage Grotesque", sans-serif; font-size: 64px; line-height: 1; font-weight: 750; letter-spacing: -0.04em; color: #2d5296; }

/* The way to write to us, on the night colour */
.contact { background: #0b0f19; color: #ebeef5; padding-block: 128px 136px; }
.contact h2 { margin: 0; font-size: clamp(52px, 7.2vw, 104px); line-height: 0.92; font-weight: 750; letter-spacing: -0.035em; }
.contact p { margin: 22px 0 36px; font-size: 20px; line-height: 31px; color: #aab3c6; max-width: 40ch; text-wrap: pretty; }

.foot { background: #0b0f19; color: #9aa4ba; padding-block: 40px; font-size: 15px; line-height: 22px; border-top: 1px solid rgba(235, 238, 245, 0.08); }
.foot-row { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }

/* Motion */
@keyframes rise { from { opacity: 0; transform: translateY(56px); } to { opacity: 1; transform: none; } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  /* The last screen cannot scroll far: the contact block finishes as soon as it is fully in view. */
  .contact .reveal { animation-range: entry 0% entry 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .site *, .site *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 860px) {
  .hero-body { padding-block: 48px 180px; }
  .moon { top: 104px; width: 48px; height: 48px; box-shadow: inset -11px 0 0 0 #ebeef5; }
  .offer-grid, .made-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .nav { width: 100%; gap: 8px 14px; }
  .offer, .how, .made { padding-block: 88px 96px; }
  .contact { padding-block: 96px 104px; }
  .intro { margin-bottom: 48px; }
  .offer-grid, .made-grid, .steps { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .made-grid { gap: 16px; }
  /* On a phone a card lies flat: the icon on the left, the words beside it */
  .made-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; row-gap: 6px; align-content: start; padding: 22px 20px 24px; }
  .made-icon { grid-row: 1 / span 3; width: 56px; height: 56px; border-radius: 13px; margin: 0; }
  .made-card h3 { font-size: 24px; line-height: 28px; }
  /* A step's number stands beside its heading instead of above it */
  .steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; }
  .num { grid-row: 1 / span 2; margin: 0; font-size: 40px; }
  /* Under the menu, on the right, clear of the headline */
  .moon { top: 140px; right: 8%; }
}
