/* Studio design system: adelyons.com home and /build/ only (every other page keeps css/styles.css).
   The default render is the final, static layout (no JS, reduced motion). `html.motion`, set by
   js/studio.js, turns the scenes into scroll-pinned stages that the script animates. */

:root {
  --bg: #07070a;
  --red: #ff3b30;
  --stone: #f3f0ea;
  --ink: #121212;
  --muted: rgba(255, 255, 255, .68);
  --gut: clamp(20px, 6vw, 96px);
  --max: 1280px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --ui: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: #fff;
  font: 400 17px/1.55 var(--ui); overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, figure, ol, ul, dl { margin: 0; }
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.red { color: var(--red); }
.nw, .jw { white-space: nowrap; } /* .jw: Japanese words kept whole (tools/sync_ja_breaks.py) */
.wrap { max-width: var(--max); margin: 0 auto; }

/* Text never breaks inside a word: long words wrap whole or the type scales with its column. */
h1, h2, h3, h4, .big, .num b, .wordmark, .hook, .btn, .chip {
  overflow-wrap: normal; word-break: normal; hyphens: manual;
}
h1, h2, h3, .hook { text-wrap: balance; }
/* Japanese: break between phrases, never inside a word (Chromium; others fall back to normal CJK breaks). */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .big, :lang(ja) .hook, :lang(ja) .step b,
:lang(ja) .app-tile__name, :lang(ja) .num > span, :lang(ja) .section__title, :lang(ja) .section__aside {
  word-break: auto-phrase; overflow-wrap: anywhere;
}
/* Japanese glyphs are about twice as wide as Latin letters: smaller display sizes. */
:lang(ja) .hook { font-size: min(56px, 6.4cqi); }
:lang(ja) .bhero__title { font-size: clamp(30px, 4vw, 60px); }
:lang(ja) .reveal__title { font-size: clamp(30px, 4.4vw, 64px); }
:lang(ja) .h { font-size: clamp(26px, 3.4vw, 50px); }
:lang(ja) .big { font-size: clamp(30px, 8cqi, 96px); }
:lang(ja) .section__title, :lang(ja) .contact__title { font-size: clamp(22px, 3vw, 40px); }
:lang(ja) .tile-grid .app-tile__name { font-size: 15px; }

/* ---------------------------------------------------------------- buttons, chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 12px 24px; border-radius: 999px; border: 0;
  background: var(--red); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); background: #ff5147; }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 2px currentColor; }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28); background: transparent; color: #fff; cursor: pointer;
  font-size: 15px; transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: #fff; }
.chip[aria-pressed="true"] { background: #fff; color: #000; border-color: #fff; }

/* ---------------------------------------------------------------- nav */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--red);
  transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; display: none;
}
.js .progress { display: block; }
.topnav {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50; color: var(--ink);
  transition: color .35s, background .35s, box-shadow .35s;
}
.js .topnav { position: fixed; }
.topnav[data-theme="dark"] { color: #fff; }
.topnav.is-scrolled[data-theme="dark"] { background: rgba(7, 7, 10, .72); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.topnav.is-scrolled[data-theme="light"] { background: rgba(243, 240, 234, .78); box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
@supports (backdrop-filter: blur(1px)) {
  .topnav.is-scrolled { backdrop-filter: saturate(1.4) blur(14px); }
}
.topnav__in {
  max-width: var(--max); margin: 0 auto; padding: 14px var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.topnav__brand { font-weight: 700; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.topnav__links { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); list-style: none; padding: 0; margin: 0; }
.topnav__links a { text-decoration: none; font-size: 15px; opacity: .85; white-space: nowrap; }
.topnav__links a:hover { opacity: 1; }
.topnav__lang { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; }
.topnav__lang svg { width: 20px; height: 20px; }
.topnav .btn { min-height: 40px; padding: 8px 18px; font-size: 15px; opacity: 1; white-space: normal; }
.topnav[data-theme="light"] .btn { background: var(--ink); }
@media (max-width: 860px) {
  .topnav__links .hide-sm { display: none; }
}
@media (max-width: 380px) {
  .topnav__brand { font-size: 18px; }
  .topnav .btn { padding: 8px 14px; font-size: 14px; }
}

/* ---------------------------------------------------------------- device (one component everywhere) */
/* Size with --w (frame width). Everything inside scales in em: 22em = --w. */
.device {
  --w: 220px;
  position: relative; display: block; flex: none;
  font-size: calc(var(--w) / 22); width: 22em; height: 47.6em;
  border-radius: 4.6em; padding: .3em;
  background: linear-gradient(145deg, #a2a2a8 0%, #3a3a3d 22%, #1b1b1d 50%, #606065 78%, #2a2a2d 100%);
  box-shadow: inset 0 0 0 .1em rgba(255, 255, 255, .16), 0 7em 9em -3em rgba(0, 0, 0, .7), 0 3em 4em -2.4em rgba(0, 0, 0, .55);
}
.device::before { /* action + volume buttons */
  content: ""; position: absolute; left: -.3em; top: 9.6em; width: .3em; height: 2.6em; border-radius: .2em 0 0 .2em;
  background: linear-gradient(90deg, #2a2a2d, #77777c);
  box-shadow: 0 4.4em 0 0 #4a4a4e, 0 9.2em 0 0 #4a4a4e;
}
.device::after { /* power */
  content: ""; position: absolute; right: -.3em; top: 15em; width: .3em; height: 7em; border-radius: 0 .2em .2em 0;
  background: linear-gradient(270deg, #2a2a2d, #77777c);
}
.device__screen {
  position: relative; display: block; width: 100%; height: 100%; overflow: hidden;
  border-radius: 4.3em; background: #000; border: .6em solid #050505;
}
.device__screen::before { /* Dynamic Island */
  content: ""; position: absolute; z-index: 3; top: .9em; left: 50%; width: 31%; height: 2.2em;
  transform: translateX(-50%); border-radius: 2em; background: #000;
  box-shadow: inset -.6em 0 0 -.3em #0b1530;
}
.device__screen::after { /* glass */
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: 3.7em;
  background: linear-gradient(118deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .04) 26%, transparent 42%, transparent 78%, rgba(255, 255, 255, .05) 100%);
}
.device__screen > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 3.7em;
}
.device__splash {
  position: absolute; inset: 0; display: grid; place-items: center; border-radius: 3.7em;
  background: radial-gradient(120% 80% at 50% 30%, rgba(255, 255, 255, .18), transparent 60%), var(--brand, #121212);
}
.device__splash img {
  width: 9.6em; height: 9.6em; border-radius: 22%;
  box-shadow: 0 1.6em 3.2em rgba(0, 0, 0, .35), inset 0 0 0 .1em rgba(255, 255, 255, .2);
}

/* ---------------------------------------------------------------- scenes (static by default) */
.scene { position: relative; }
.scene__pin { position: relative; }

/* 1. hero: the word + the hook, then the reveal */
.hero__open {
  background: var(--stone); color: var(--ink); position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 96px var(--gut) 56px; text-align: center; container-type: inline-size;
}
.wordmark {
  position: relative; z-index: 2; font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: min(26.5cqi, 34vh, 300px); line-height: .9; letter-spacing: .005em; white-space: nowrap;
  width: 100%; overflow: hidden; /* fixed box: the Anton swap must not move it (CLS) */
}
.mosaic { position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; pointer-events: none; display: none; }
.js .mosaic { display: block; }
.motion .mosaic { display: none; } /* the particle canvas draws the word in motion mode */
.js .wordmark { transition: color .5s ease; }
.js .wordmark.is-painted { color: transparent; }
.hook {
  position: relative; z-index: 4; margin-top: clamp(18px, 4vh, 40px);
  font-weight: 700; font-size: clamp(30px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -.035em;
  max-width: 20ch;
}
.hook .l { display: block; }
.hook em { color: var(--red); font-style: italic; }
.lede {
  position: relative; z-index: 4; margin-top: 18px; max-width: 60ch;
  font-size: clamp(14px, 1.4vw, 17px); font-weight: 500; opacity: .72;
}
.cue {
  position: absolute; z-index: 4; left: 50%; bottom: 20px; transform: translateX(-50%);
  font-size: 14px; opacity: .6; display: none;
}
.motion .cue { display: block; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 50% { transform: translate(-50%, 6px); } }

.hero__reveal {
  position: relative; overflow: hidden; background: var(--bg); color: #fff;
  padding: clamp(80px, 12vh, 140px) var(--gut) 56px; text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero__reveal::before { /* glow behind the phone */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 45% at 50% 62%, #6a0f15 0%, rgba(26, 5, 7, .6) 45%, transparent 75%);
}
.reveal__title {
  position: relative; z-index: 3; font-weight: 700; font-size: clamp(40px, 6vw, 88px);
  line-height: .96; letter-spacing: -.045em; max-width: 14ch;
}
.reveal__title span { color: var(--red); }
.fan {
  position: relative; z-index: 2; width: 100%; height: clamp(360px, 62vh, 560px);
  margin-top: clamp(24px, 4vh, 48px); container-type: size;
}
.fan .device {
  --w: min(220px, calc(100cqh * .44), 40vw);
  position: absolute; left: 50%; top: 50%; margin: calc(var(--w) * -1.082) 0 0 calc(var(--w) * -.5);
}
.fan .device[data-pos="-2"] { transform: translateX(-74%) translateY(10%) rotate(-12deg) scale(.86); z-index: 1; }
.fan .device[data-pos="-1"] { transform: translateX(-40%) translateY(4%) rotate(-6deg) scale(.92); z-index: 2; }
.fan .device[data-pos="1"] { transform: translateX(40%) translateY(4%) rotate(6deg) scale(.92); z-index: 2; }
.fan .device[data-pos="2"] { transform: translateX(74%) translateY(10%) rotate(12deg) scale(.86); z-index: 1; }
.fan .device[data-pos="0"] { z-index: 3; }
.fan-caption { position: relative; z-index: 3; margin-top: 18px; color: var(--muted); font-size: 16px; max-width: 60ch; }
.particles { position: absolute; inset: 0; z-index: 5; width: 100%; height: 100%; pointer-events: none; display: none; }

/* 2. chapters */
.chapters { background: var(--bg); }
.panel {
  position: relative; background: var(--bg-panel, #0b6b3a); color: #fff;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: clamp(72px, 10vw, 120px) var(--gut); overflow: hidden;
}
.panel__text { container-type: inline-size; min-width: 0; }
.panel__k { font-size: 17px; opacity: .85; margin-bottom: 8px; }
.big {
  font-family: var(--display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(40px, 12cqi, 136px); line-height: .92; letter-spacing: .005em;
  max-width: 9em; text-wrap: balance;
}
.panel__d { margin-top: 18px; max-width: 42ch; font-size: 18px; opacity: .92; }
.panel__icons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding: 0; list-style: none; }
.panel__icons a { display: block; border-radius: 14px; transition: transform .25s var(--ease); }
.panel__icons a:hover { transform: translateY(-4px); }
.panel__icons img { display: block; width: 52px; height: 52px; border-radius: 13px; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); transition: box-shadow .25s; }
.panel__icons a.is-active { transform: translateY(-4px); }
.panel__icons a.is-active img { box-shadow: 0 0 0 3px #fff, 0 12px 26px rgba(0, 0, 0, .35); }
.device__screen > .swap-in { animation: swap-in .32s var(--ease) both; }
@keyframes swap-in { from { opacity: 0; transform: scale(1.03); } }
.panel__phones {
  position: relative; height: clamp(400px, 56vh, 540px); container-type: size;
  display: flex; align-items: center; justify-content: center; gap: 3%;
}
.panel__phones .device { --w: min(190px, 29cqw, calc(100cqh * .44)); transition: transform .45s var(--ease); }
.panel__phones .device:nth-child(1) { transform: translateY(5%) rotate(-5deg); }
.panel__phones .device:nth-child(2) { transform: translateY(-4%); z-index: 2; }
.panel__phones .device:nth-child(3) { transform: translateY(5%) rotate(5deg); }
.panel__phones .device:only-child { transform: none; }
.panel__phones .device.is-off { display: none; }
.dots { display: none; }
@media (max-width: 759px) {
  .panel { grid-template-columns: minmax(0, 1fr); }
  .panel__phones { height: 380px; }
  .panel__phones .device { --w: min(150px, 29cqw, calc(100cqh * .44)); }
}

/* 3. numbers */
.numbers { background: var(--bg); padding: clamp(80px, 12vw, 160px) var(--gut); }
.numbers__title { font-size: clamp(18px, 2vw, 22px); color: var(--muted); text-align: center; margin-bottom: 40px; font-weight: 500; }
.nums {
  max-width: 1100px; margin: 0 auto; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 40px);
}
.num { flex: 0 1 calc((100% - 2 * clamp(16px, 3vw, 40px)) / 3); text-align: center; container-type: inline-size; }
@media (max-width: 899px) { .num { flex-basis: calc((100% - clamp(16px, 3vw, 40px)) / 2); } }
.num b {
  display: block; font-family: var(--display); font-weight: 400; line-height: .9; white-space: nowrap;
  font-size: clamp(40px, 28cqi, 150px); font-variant-numeric: tabular-nums;
}
.num:nth-child(odd) b { color: var(--red); }
.num > span { display: block; margin-top: 10px; font-size: clamp(14px, 8cqi, 24px); line-height: 1.3; font-weight: 500; color: var(--muted); }

/* 4. top apps */
.top { background: var(--bg); padding: clamp(80px, 11vw, 140px) var(--gut); }
.h {
  font-weight: 700; font-size: clamp(34px, 5vw, 72px); line-height: 1; letter-spacing: -.035em; max-width: 18ch;
}
.sub { margin-top: 14px; color: var(--muted); max-width: 60ch; }
.top__sub2 { margin-top: clamp(56px, 7vw, 88px); font-size: clamp(24px, 3vw, 36px); font-weight: 700; letter-spacing: -.02em; }
.cards { display: grid; gap: 18px; margin-top: 36px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--rising { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cards, .cards--rising { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards, .cards--rising { grid-template-columns: minmax(0, 1fr); } }
.app-tile--flag, .app-tile--rising {
  --tx: 0deg; --ty: 0deg;
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px;
  min-height: 420px; padding: 22px; border-radius: 26px; text-decoration: none; color: #fff;
  background: radial-gradient(120% 70% at 20% 0%, rgba(255, 255, 255, .16), transparent 55%), var(--brand, #1a1a1d);
  transform: perspective(900px) rotateY(var(--tx)) rotateX(var(--ty));
  transition: transform .3s var(--ease);
}
.app-tile--rising { min-height: 340px; }
.app-tile--flag .app-tile__icon, .app-tile--rising .app-tile__icon {
  width: 60px; height: 60px; border-radius: 15px; box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
}
.app-tile__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.app-tile--flag .app-tile__body, .app-tile--rising .app-tile__body { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; position: relative; z-index: 2; }
.app-tile--flag .app-tile__name, .app-tile--rising .app-tile__name { font-size: 22px; font-weight: 700; line-height: 1.15; }
.app-tile--flag .app-tile__blurb, .app-tile--rising .app-tile__blurb { font-size: 15px; opacity: .88; line-height: 1.4; }
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; background: rgba(0, 0, 0, .35); color: #fff; white-space: nowrap;
}
.app-tile--flag .device, .app-tile--rising .device {
  --w: 150px; position: absolute; left: 50%; bottom: calc(var(--w) * -1.15);
  transform: translateX(-50%) rotate(-6deg); transition: transform .5s var(--ease);
}
.app-tile--rising .device { --w: 124px; }
.app-tile--flag:hover .device, .app-tile--flag:focus-visible .device,
.app-tile--rising:hover .device, .app-tile--rising:focus-visible .device { transform: translateX(-50%) translateY(-24%) rotate(-3deg); }

/* 5. build with us */
.build { background: var(--stone); color: var(--ink); }
.build__stage {
  max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 140px) var(--gut);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 72px); align-items: center;
}
.build .h { color: var(--ink); }
.build__lede { margin: 14px 0 22px; opacity: .78; max-width: 46ch; }
.steps { display: grid; gap: 10px; padding: 0; list-style: none; }
.step { padding: 14px 18px; border-radius: 14px; border: 2px solid var(--ink); background: #fff; transition: opacity .4s, background .4s, border-color .4s; }
.step b { display: block; font-size: 19px; line-height: 1.25; }
.step span { display: block; opacity: .8; }
.build .btn { margin-top: 22px; }
.build__phone { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.build__phone .device { --w: min(240px, 60vw); background: linear-gradient(145deg, #3a3a3d, #121212 50%, #3a3a3d); }
.wire { position: absolute; inset: 0; background: #fff; border-radius: 3.7em; overflow: hidden; }
.wire i {
  position: absolute; border-radius: 1em; border: .2em dashed #b9b4aa; opacity: 0;
  transition: background .5s, border-color .5s;
}
.wire > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.langs, .storebadges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 0; list-style: none; }
.langs li { padding: 5px 11px; border-radius: 999px; background: var(--ink); color: var(--stone); font-weight: 700; font-size: 14px; }
.langs li::before { content: attr(data-g); }
.storebadges li { background: var(--ink); color: #fff; font-size: 13px; padding: 8px 12px; border-radius: 10px; }
@media (max-width: 759px) {
  .build__stage { grid-template-columns: minmax(0, 1fr); }
}

/* 6. catalog */
.catalog { background: var(--bg); padding: clamp(80px, 11vw, 140px) var(--gut); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 36px; }
.catalog .groups { display: grid; gap: 40px; }
.group__head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.group__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--red)); flex: none; }
.group__label { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: -.01em; }
.group__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.app-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; text-decoration: none;
  background: #111114; transition: background .2s, transform .25s var(--ease);
}
.app-row:hover { background: #1b1b20; transform: translateY(-2px); }
.app-row__icon { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.app-row__text { font-size: 14px; line-height: 1.35; color: var(--muted); min-width: 0; }
.app-row__name { color: #fff; font-weight: 600; }
.group[hidden] { display: none; }

/* 7. kept sections */
.section { padding: clamp(72px, 10vw, 120px) var(--gut); background: var(--bg); }
.section--tinted { background: #0e0e12; }
.container { max-width: var(--max); margin: 0 auto; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.section__title-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.section__title { font-size: clamp(28px, 3.6vw, 48px); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; }
.section__aside { color: var(--muted); font-size: 15px; }
.section__sub { margin-top: 10px; color: var(--muted); }
.section__more { color: #fff; font-weight: 600; text-decoration: none; }
.section__more:hover { color: var(--red); }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; margin-top: 28px; }
.tile-grid .app-tile {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 18px;
  background: #15151a; text-decoration: none; transition: background .2s, transform .25s var(--ease);
}
.tile-grid .app-tile:hover { background: #1d1d24; transform: translateY(-2px); }
.tile-grid .app-tile__icon { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.tile-grid .app-tile__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile-grid .app-tile__name { font-weight: 700; }
.tile-grid .app-tile__blurb { color: var(--muted); font-size: 15px; line-height: 1.45; }
.principles__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 28px; }
.principle { border-top: 2px solid var(--red); padding-top: 18px; }
.principle { container-type: inline-size; }
.principle__title { font-size: min(22px, 6.8cqi); letter-spacing: -.01em; }
.principle__body { margin-top: 8px; color: var(--muted); }

/* contact */
.contact { padding: clamp(72px, 10vw, 120px) var(--gut); background: var(--bg); }
.contact .container {
  border-radius: 28px; padding: clamp(24px, 5vw, 64px); display: grid; gap: 24px;
  background: radial-gradient(90% 120% at 0% 0%, #3a0d10 0%, #160607 45%, #0e0e12 100%);
}
.contact__band { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.contact__title { font-size: clamp(30px, 4vw, 52px); line-height: 1.04; letter-spacing: -.03em; margin-top: 8px; }
.contact__sub { margin-top: 12px; color: var(--muted); }
.contact__email { color: #fff; font-weight: 700; }
.contact-form, .apply-form { display: grid; gap: 16px; }
.contact-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.form-group { display: grid; gap: 6px; }
.form-label { font-size: 14px; font-weight: 600; }
.form-input {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: 16px;
}
.form-input::placeholder { color: rgba(255, 255, 255, .42); }
.form-input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(255, 59, 48, .25); }
.form-textarea { min-height: 140px; resize: vertical; }
select.form-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
select.form-input option { color: #000; }
.form-status { min-height: 1.5em; font-weight: 600; }
.form-status.is-ok { color: #6fe39a; }
.form-status.is-err { color: #ff8a80; }
.contact-form .btn, .apply-form .btn { justify-self: start; }

/* footer */
.site-footer { background: var(--bg); border-top: 1px solid #1d1d22; padding: 40px var(--gut); color: #9a9aa2; font-size: 14px; }
.site-footer__inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 18px; }
.site-footer__brand { display: flex; align-items: center; gap: 12px; color: #d6d6dc; }
.site-footer__brand .brand__mark { display: none; }
.site-footer__link { color: #c8c8cf; text-decoration: none; }
.site-footer__link:hover { color: #fff; text-decoration: underline; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__nav a { color: #fff; font-weight: 600; text-decoration: none; }
.lang-switch { color: #9a9aa2; background: var(--bg); padding: 0 var(--gut) 32px; margin: 0 !important; }
.lang-switch a { color: #c8c8cf; }

/* ---------------------------------------------------------------- /build/ partner page */
.bhero {
  background: var(--stone); color: var(--ink); overflow: hidden;
  min-height: 100vh; min-height: 100svh; padding: 112px var(--gut) 64px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 64px); align-items: center;
}
.bhero__in { max-width: 640px; justify-self: end; width: 100%; }
.bhero__title { font-weight: 700; font-size: clamp(42px, 6.4vw, 96px); line-height: .95; letter-spacing: -.045em; margin-top: 12px; }
.bhero .lede { text-align: left; margin-top: 20px; font-size: clamp(17px, 1.6vw, 20px); opacity: .8; max-width: 40ch; }
.bhero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.bhero .btn--ghost { color: var(--ink); }
.bhero .btn--ghost:hover { background: rgba(0, 0, 0, .06); }
.bhero__phones { position: relative; height: clamp(420px, 70vh, 640px); container-type: size; }
.bhero__phones .device {
  --w: min(230px, calc(100cqh * .42), 30vw);
  position: absolute; left: 50%; top: 50%; margin: calc(var(--w) * -1.082) 0 0 calc(var(--w) * -.5);
}
.bhero__phones .device:nth-child(1) { transform: translateX(-62%) translateY(6%) rotate(-9deg) scale(.88); }
.bhero__phones .device:nth-child(2) { z-index: 2; }
.bhero__phones .device:nth-child(3) { transform: translateX(62%) translateY(6%) rotate(9deg) scale(.88); }
@media (max-width: 860px) {
  .bhero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .bhero__in { justify-self: start; }
  .bhero__phones { height: 440px; }
  .bhero__phones .device { --w: min(190px, 44vw); }
}
.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin-top: 32px; padding: 0; list-style: none; }
.who__item { background: #15151a; border-radius: 20px; padding: 24px; }
.who__item img { width: 56px; height: 56px; border-radius: 14px; }
.who__item h3 { margin-top: 14px; font-size: 22px; }
.who__item p { margin-top: 6px; color: var(--muted); }
.bring { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; margin-top: 32px; }
.bring__col { border-radius: 20px; padding: 26px; background: #15151a; }
.bring__col:last-child { background: radial-gradient(120% 120% at 0% 0%, #3a0d10, #15151a 70%); }
.bring__col h3 { font-size: 24px; }
.bring__col ul { margin-top: 12px; padding-left: 20px; display: grid; gap: 8px; color: rgba(255, 255, 255, .85); }
.deal__line { margin-top: 18px; font-weight: 700; font-size: clamp(28px, 4vw, 56px); line-height: 1.05; letter-spacing: -.03em; max-width: 22ch; }
.faq { margin-top: 28px; display: grid; gap: 10px; max-width: 860px; }
.faq__item { background: #15151a; border-radius: 16px; padding: 4px 20px; }
.faq__item summary { cursor: pointer; padding: 16px 0; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--red); font-size: 24px; line-height: 1; flex: none; }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { padding: 0 0 18px; color: var(--muted); }

/* ---------------------------------------------------------------- motion mode (studio.js) */
.motion [data-pin] { height: calc(var(--len, 3) * 100vh); height: calc(var(--len, 3) * 100svh); }
.motion [data-pin] > .scene__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }

/* hero: both halves overlay inside the pinned stage */
.motion .hero .scene__pin { background: var(--stone); }
.motion .hero__open, .motion .hero__reveal { position: absolute; inset: 0; min-height: 0; }
.motion .hero__open { background: transparent; z-index: 2; }
.motion .hero__reveal { background: transparent; z-index: 3; padding-top: clamp(88px, 13vh, 132px); justify-content: flex-start; }
.motion .hero__reveal::before { opacity: var(--glow, 0); }
.motion .reveal__title, .motion .fan-caption { opacity: 0; will-change: transform, opacity; }
.motion .fan { flex: 1; height: auto; min-height: 0; margin-top: 8px; }
.motion .fan .device { opacity: 0; will-change: transform, opacity; }
.motion .fan .device[data-pos="0"] .device__screen > * { will-change: transform, opacity; }
.motion .particles { display: block; }

/* chapters: horizontal track (wide screens) */
@media (min-width: 760px) {
  .motion .chapters .scene__pin { display: flex; }
  .motion .chapters .track { display: flex; height: 100%; will-change: transform; }
  .motion .chapters .panel { flex: none; width: 100vw; height: 100%; background: transparent; padding-top: 88px; padding-bottom: 64px; }
  .motion .chapters .dots { display: flex; gap: 8px; position: absolute; left: var(--gut); bottom: 28px; z-index: 5; padding: 0; list-style: none; }
  .motion .chapters .dots li { width: 36px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); overflow: hidden; }
  .motion .chapters .dots li i { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
}
/* Too short to pin the build scene (landscape phones, small laptops): it scrolls, final state. */
@media (max-height: 699px), (max-width: 759px) {
  .motion .build[data-pin] { height: auto; }
  .motion .build[data-pin] > .scene__pin { position: static; height: auto; overflow: visible; }
}
@media (max-width: 759px) {
  .motion .chapters[data-pin] { height: auto; }
  .motion .chapters[data-pin] > .scene__pin { position: static; height: auto; overflow: visible; }
}

/* numbers: the grid, pinned and centred; studio.js brings the numbers in one after another */
.motion .numbers { padding: 0; }
.motion .numbers .scene__pin { display: flex; flex-direction: column; justify-content: center; padding: 72px var(--gut) 24px; }
.motion .numbers__title { margin-bottom: clamp(24px, 5vh, 48px); }
.motion .nums { width: 100%; } /* stretch: the cells size from the row, not from their content */
.motion .num { opacity: 0; will-change: transform, opacity; }

/* build: steps light in turn, the phone assembles */
.motion .build .scene__pin { display: grid; align-items: center; }
.motion .build__stage { padding-top: 72px; padding-bottom: 24px; width: 100%; }
.motion .build .h { font-size: clamp(30px, min(3.8vw, 6vh), 56px); max-width: 22ch; }
.motion .build__lede { margin: 10px 0 14px; }
.motion .steps { gap: 6px; }
.motion .step { padding: 10px 16px; opacity: .35; background: transparent; border-color: transparent; }
.motion .step b { font-size: clamp(16px, 2.2vh, 19px); }
.motion .build .btn { margin-top: 14px; }
.motion .step.is-on { opacity: 1; background: #fff; border-color: var(--ink); }
.motion .build__phone { position: relative; display: block; height: min(640px, calc(100svh - 120px)); container-type: size; }
.motion .build__phone .device { --w: min(240px, calc(100cqh * .4)); position: absolute; left: 50%; top: 46%; margin: calc(var(--w) * -1.082) 0 0 calc(var(--w) * -.5); }
.motion .storebadges { position: absolute; left: 0; right: 0; bottom: 0; }
.motion .langs { position: absolute; inset: 0; display: block; pointer-events: none; }
.motion .langs li { position: absolute; left: 50%; top: 46%; opacity: 0; transform: translate(-50%, -50%); will-change: transform, opacity; }
.motion .storebadges { opacity: 0; }
.motion .wire > img { opacity: 0; }

/* Settle on section starts instead of stopping half-and-half. */
/* mandatory: a section taller than the screen still scrolls freely inside (it covers the screen);
   only a resting position split between two sections gets moved to the nearer clean one. */
html.motion { scroll-snap-type: y mandatory; scroll-padding-top: 0; }
.motion main > section, .motion .snap-mark { scroll-snap-align: start; }
.motion .lang-switch { scroll-snap-align: end; } /* the page bottom stays reachable */
.snap-mark { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }
@media (max-width: 759px) { .motion .chapters .panel { scroll-snap-align: start; } }

/* reveal on scroll */
.motion .rv { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.motion .rv.is-in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
  .app-tile--flag, .app-tile--rising { transform: none !important; }
}
