/* Peak Apps Studio homepage, concept B "Worlds" (Nov 2026). Display: Bricolage Grotesque (OFL), body: system stack. */
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-a.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+2010-203A, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Bricolage"; src: url("fonts/bricolage-b.woff2") format("woff2"); font-weight: 200 800; font-stretch: 75% 100%; font-display: swap; unicode-range: U+0100-017F; }
@property --k { syntax: "<number>"; inherits: false; initial-value: 1; }

:root {
  --lemon: #FFE04A; --ink: #1B1035; --plum: #2A1458; --pink: #FF3D8B; --cyan: #18B4F2; --violet: #6F50FA;
  --violet-d: #3E22C9; --fairway: #19B45F; --fairway-d: #0E7A40; --pine: #0C2A21; --paper: #FFFFFF; --lilac: #DCD3FF;
  --display: "Bricolage", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gut: clamp(16px, 5vw, 72px);
  --spring: cubic-bezier(.3, 1.6, .5, 1);
}
* { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--text); overflow-x: clip; }
a { color: inherit; }
img, video { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 800; }
p { margin: 0; }
.wrap { padding: 0 var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px #fff; border-radius: 10px; }
.on-dark a:focus-visible, .on-dark button:focus-visible { outline-color: var(--lemon); box-shadow: 0 0 0 6px var(--ink); }

/* buttons and chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border-radius: 16px; font: 700 16px/1.1 var(--text); text-decoration: none; background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--sh, rgba(27, 16, 53, .35)); transition: transform .22s var(--spring), box-shadow .22s var(--spring); -webkit-tap-highlight-color: transparent; text-align: center; }
.btn:hover { transform: translate(-2px, -3px); box-shadow: 7px 8px 0 var(--sh, rgba(27, 16, 53, .35)); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--sh, rgba(27, 16, 53, .35)); transition-duration: .06s; }
.btn.light { background: #fff; color: var(--ink); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px currentColor, 5px 5px 0 var(--sh, rgba(27, 16, 53, .35)); }
.btn.ghost:active { box-shadow: inset 0 0 0 2px currentColor; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 4px 12px; border-radius: 9px; font: 700 13px/1.1 var(--text); white-space: nowrap; }
.chip.soon { background: var(--lemon); color: var(--ink); }
.chip.soon::before { content: ""; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 2px; background: var(--ink); transform: rotate(45deg); animation: blink 1.4s steps(2) infinite; }
.chip.live { background: var(--ink); color: #fff; }
.chip.webc { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
@keyframes blink { 50% { opacity: .2; } }

/* stickers: bursts with extruded type */
.burst { position: absolute; z-index: 4; display: grid; place-items: center; width: var(--s, 132px); aspect-ratio: 1; filter: drop-shadow(5px 6px 0 var(--bsh, rgba(27, 16, 53, .45))); transform: rotate(var(--rot, -8deg)); transition: transform .35s var(--spring); pointer-events: auto; }
.burst::before { content: ""; position: absolute; inset: 0; background: var(--bc, var(--lemon)); clip-path: polygon(50% 0, 59% 13%, 75% 7%, 77% 23%, 93% 25%, 87% 41%, 100% 50%, 87% 59%, 93% 75%, 77% 77%, 75% 93%, 59% 87%, 50% 100%, 41% 87%, 25% 93%, 23% 77%, 7% 75%, 13% 59%, 0 50%, 13% 41%, 7% 25%, 23% 23%, 25% 7%, 41% 13%); }
.burst span { position: relative; max-width: 72%; text-align: center; font: 800 calc(var(--s, 132px) * .15)/.95 var(--display); font-stretch: 80%; color: var(--bt, var(--ink)); letter-spacing: -.01em; }
.burst span b { display: block; font-size: 1.9em; line-height: .9; }
.burst:hover { transform: rotate(calc(var(--rot, -8deg) + 12deg)) scale(1.08); }
.xt { color: #fff; text-shadow: 1px 1px 0 var(--xc), 2px 2px 0 var(--xc), 3px 3px 0 var(--xc), 4px 4px 0 var(--xc), 5px 5px 0 var(--xc), 6px 6px 0 var(--xc), 7px 7px 0 var(--xc), 8px 8px 0 var(--xc), 10px 14px 18px rgba(0, 0, 0, .25); }

/* header */
.bar { position: fixed; z-index: 30; top: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 16px; border-radius: 18px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(27, 16, 53, .16); color: var(--ink); width: max-content; max-width: calc(100vw - 24px); }
.brand { font: 800 18px/1 var(--display); font-stretch: 80%; text-decoration: none; margin-right: 8px; display: flex; gap: 8px; align-items: center; white-space: nowrap; min-height: 44px; }
.brand b { display: inline-grid; grid-template-columns: 8px 8px; gap: 2px; transition: transform .5s var(--spring); }
.brand:hover b { transform: rotate(90deg); }
.brand b i { width: 8px; height: 8px; border-radius: 2px; }
.bar nav { display: flex; gap: 2px; }
.bar nav a { font: 600 14px/1 var(--text); text-decoration: none; padding: 12px; border-radius: 12px; transition: background .2s, transform .2s var(--spring); }
.bar nav a:hover { background: var(--lemon); transform: translateY(-1px); }
.bar .mail { font: 700 14px/1 var(--text); text-decoration: none; padding: 12px 14px; border-radius: 12px; background: var(--ink); color: #fff; transition: transform .2s var(--spring); white-space: nowrap; }
.bar .mail:hover { transform: rotate(-3deg) scale(1.05); }

/* 1 hero */
.hero { position: relative; background: var(--lemon); }
.hero .stick { position: relative; height: 100vh; min-height: 620px; overflow: hidden; }
.ring-box, .ring-poster, #ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring-poster img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
#ring { opacity: 0; transition: opacity .7s; }
.hero.live #ring { opacity: 1; }
.hero.live .ring-poster { opacity: 0; transition: opacity .7s .2s; }
.ring-vid { display: none; }
.hero .copy { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); text-align: center; padding: 0 var(--gut); pointer-events: none; }
.hero h1 { font-size: clamp(54px, 9.6vw, 168px); line-height: .84; letter-spacing: -.035em; }
.hero h1 .l { display: block; height: .84em; contain: size layout style; }
.l1, .l3 { --w: 800; font-stretch: 75%; }
.l2 { --w: 250; font-stretch: 100%; letter-spacing: -.05em; }
.c { display: inline-block; font-weight: calc(200 + (var(--w) - 200) * var(--k)); transform: translateY(calc((1 - var(--k)) * .9em + var(--y, 0px))) rotate(calc((1 - var(--k)) * var(--r, 8deg))); opacity: calc(.18 + .82 * var(--k)); animation: kin .95s cubic-bezier(.2, .9, .25, 1.15) calc(120ms + var(--d) * 32ms) both; }
.c:nth-child(odd) { --r: -8deg; }
@keyframes kin { from { --k: 0; } to { --k: 1; } }
.hero .sub { max-width: 34em; margin: 26px auto 0; font-size: clamp(16px, 1.3vw, 19px); font-weight: 500; animation: rise .8s .9s both; }
.hero .cta { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; pointer-events: auto; animation: rise .8s 1.05s both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* looping clips (Rope Crew, Trailer Wreck, BodyArcade, web tools): the poster shows first, the video fades in once it plays */
.clip img, .clip video { width: 100%; height: 100%; object-fit: cover; }
.clip { position: relative; overflow: hidden; margin: 0; width: 100%; height: 100%; }
.clip video { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.clip.playing video { opacity: 1; }
/* phones: a pinned app card (words above, phone below) is taller than the window and its phone would never show whole,
   so on phones the cards scroll one after another instead of stacking */
@media (max-width: 760px) { #apps .scard { position: relative; top: auto; } }
/* 3 trailer wreck: a real match loops as a full-bleed background (1080p capture, never upscaled); the words sit on a dark
   gradient on the side where the cars are not. Wide screens: words on the right. Narrower: the video band on top, words under
   it. Phones: a native 608x1080 vertical crop of the same footage under the words. */
.pan { position: relative; background: #24120A; color: #fff; overflow: hidden; min-height: max(100vh, 600px); }
.twbg { position: absolute; inset: 0; }
.twclip { position: absolute; inset: 0; width: 100%; height: 100%; background: #24120A; }
.twclip img, .twclip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 0% 55%; }
.twshade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(270deg, rgba(30, 12, 4, .9) 0%, rgba(30, 12, 4, .78) 24%, rgba(30, 12, 4, 0) 38%); }
.pan .head { position: absolute; z-index: 2; right: var(--gut); top: 50%; transform: translateY(-50%); width: min(380px, 28vw); }
.pan .head img { width: 234px; height: auto; filter: drop-shadow(4px 5px 0 rgba(0, 0, 0, .45)); }
.pan .head h2 { font-size: clamp(34px, 3.4vw, 60px); font-stretch: 78%; line-height: .95; margin: 14px 0 12px; }
.pan .head p { margin-bottom: 20px; color: #FBEFE6; }
.pan .chip.live { background: #fff; color: var(--ink); }
.pan .btn { background: #FF6A1F; color: #1A0B03; --sh: rgba(0, 0, 0, .45); }
.pan .big { position: absolute; z-index: 1; right: var(--gut); bottom: 4vh; --xc: #A3200F; color: #FF8A3D; font: 800 min(9vw, 150px) / .8 var(--display); font-stretch: 75%; letter-spacing: -.035em; pointer-events: none; white-space: nowrap; }
.tw-b1 { --s: 132px; --bc: var(--lemon); --rot: -12deg; left: var(--gut); top: 96px; }
.tw-b2 { --s: 112px; --bc: #fff; --rot: 10deg; left: calc(var(--gut) + 150px); top: 110px; }
/* short wide windows: the stickers and the big word would reach the cars or the words, so they stay out */
@media (min-width: 1100px) and (max-height: 760px) { .tw-b1, .tw-b2, .pan .big { display: none; } }
/* narrower or squarer screens: the 16:9 video band on top, edge to edge, the words below it on the dark ground */
@media (max-width: 1099px), (max-aspect-ratio: 3/2) {
  .pan { min-height: 0; }
  .twbg { position: relative; inset: auto; aspect-ratio: 16 / 9; }
  .twclip img, .twclip video { object-position: 50% 50%; }
  .twshade { background: linear-gradient(180deg, rgba(36, 18, 10, 0) 62%, #24120A 100%); }
  .pan .head { position: relative; right: auto; top: auto; transform: none; width: auto; max-width: 640px; padding: 8px var(--gut) 90px; margin-top: -40px; }
  .pan .big { display: none; }
  .tw-b1 { left: auto; right: calc(var(--gut) + 120px); top: 90px; --s: 120px; }
  .tw-b2 { left: auto; right: var(--gut); top: 104px; --s: 104px; }
}

/* 3b rope crew: the 12 s silent gameplay loop fills the width at its own 16:9, so no head is ever cropped and the baked-in titles stay whole.
   Wide screens: the words sit on a dark gradient along the bottom of the picture. Narrower: they stand on the dark ground under it. */
.rcv { --rcn: #06183A; position: relative; background: var(--rcn); color: #fff; }
.rcin { position: relative; max-width: 1920px; margin: 0 auto; }
.rcbg { position: relative; aspect-ratio: 16 / 9; background: #0B3FA8; }
.rcbg .clip { position: absolute; inset: 0; }
.rcshade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(6, 24, 58, 0) 64%, var(--rcn) 100%); }
.rchead { position: relative; z-index: 2; max-width: 680px; margin-top: -26px; padding: 0 var(--gut) 76px; }
.rchead h2 { --xc: #0B3FA8; font-size: clamp(56px, 16vw, 92px); line-height: .85; letter-spacing: -.03em; font-stretch: 75%; }
.rcsub { margin-top: 16px; font: 700 clamp(19px, 5.4vw, 24px)/1.15 var(--display); font-stretch: 85%; color: var(--lemon); }
.rcr > p:first-child { margin-top: 14px; color: #DCE9FF; text-shadow: 0 1px 3px rgba(6, 24, 58, .75); }
.rcb { display: flex; flex-wrap: wrap; gap: 12px 14px; margin: 22px 0 16px; }
.rcv .btn { background: var(--cyan); color: var(--ink); --sh: rgba(0, 0, 0, .5); }
.rcv .btn.ghost { background: transparent; color: #fff; }
.rcsoon { font: 600 14px/1.45 var(--text); color: #CFE0F8; text-shadow: 0 1px 3px rgba(6, 24, 58, .75); }
.rcsoon a { color: #fff; font-weight: 700; text-underline-offset: 3px; white-space: nowrap; }
/* the two stickers hang from the top edge of the picture, their lower edge on the line 15 % down: no head or baked-in title is ever that high.
   Where the picture is short (narrow screens) they poke a little above it, like the Trailer Wreck ones sit in its corner */
.rcv { --b1: clamp(88px, 8.4vw, 148px); --strip: calc(min(100vw, 1920px) * .084375); }
.rc-b1 { --s: var(--b1); --bc: #FF3D8B; --bt: #fff; --rot: -12deg; left: var(--gut); top: calc(var(--strip) - var(--s)); }
.rc-b2 { --s: calc(var(--b1) * .9); --bc: #fff; --rot: 10deg; left: calc(var(--gut) + var(--b1) + 8px); top: calc(var(--strip) - var(--s)); }
@media (min-width: 900px) and (max-width: 1199px) {
  .rchead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 0 4vw; max-width: none; align-items: start; padding-bottom: 64px; }
  .rchead h2 { font-size: 7.4vw; }
  .rcr > p:first-child { margin-top: 4px; }
}
@media (max-width: 760px) {
  .rchead { padding-bottom: 48px; }
  .rcl { padding-right: 84px; }
  .rc-b1 { --s: 92px; left: auto; right: 14px; top: calc(56.25vw - 16px); }
  .rc-b2 { display: none; }
}
@media (min-width: 1200px) {
  .rcshade { background: linear-gradient(0deg, rgba(6, 24, 58, .96) 0%, rgba(6, 24, 58, .9) 16%, rgba(6, 24, 58, .62) 31%, rgba(6, 24, 58, 0) 46%); }
  .rchead { position: absolute; inset: auto 0 0 0; max-width: none; margin: 0; padding: 0 var(--gut) clamp(18px, 2.4vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, min(540px, 40vw)); gap: 0 4vw; align-items: end; }
  .rchead h2 { font-size: clamp(64px, 6.6vw, 124px); }
  .rcsub { font-size: clamp(20px, 1.9vw, 34px); margin-top: clamp(16px, 1.4vw, 28px); }
  .rcr > p:first-child { margin-top: 0; font-size: clamp(15px, 1.05vw, 19px); }
  .rcb { margin: 18px 0 12px; }
}

/* 4 bodyarcade: one full-screen scene per game, the person (what the camera saw) and the real round side by side in one video */
/* a deeper violet than the brand tile, so white body text passes AA (5.4:1) */
.ba { background: #5634DE; color: #fff; padding: 130px 0 0; position: relative; }
.ba h2 { font-size: clamp(48px, 7vw, 120px); font-stretch: 75%; line-height: .86; letter-spacing: -.03em; max-width: 12em; }
.ba p { max-width: 34em; font-size: 18px; margin-top: 22px; }
.ba .chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 22px; }
.ba .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ba .bx-note { font-size: 15.5px; color: #fff; max-width: 44em; }
.chip.free { background: var(--lemon); color: var(--ink); }
.chip.pro { background: #fff; color: var(--ink); }
.bax { position: relative; margin-top: 72px; }
.bax-list { list-style: none; margin: 0; padding: 0; }
.bx { position: relative; background: var(--bg); padding: 64px var(--gut); display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.bx-media { position: relative; padding-top: 28px; min-width: 0; }
.bx-clip { aspect-ratio: 1418 / 1080; width: min(100%, calc((100vh - 200px) * 1.3125)); height: auto; border-radius: 22px; background: #120C26; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.bx-clip img, .bx-clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bx-clip::after { content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; left: 57.12%; width: 4px; margin-left: -2px; background: var(--bg); }
.bx-you, .bx-game { position: absolute; top: 0; font: 700 13px/1 var(--text); letter-spacing: .04em; text-transform: uppercase; color: #F1EDFF; white-space: nowrap; }
.bx-you { left: 2px; }
.bx-game { left: calc(min(100%, (100vh - 200px) * 1.3125) * .5712 + 10px); }
.bx-type { min-width: 0; }
.bx-n { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; margin: 0; font: 700 15px/1.2 var(--text); }
.bx-k { color: #E6E0FF; }
.bx-g { font: 800 24px/1 var(--display); font-stretch: 85%; }
.ba .bx-say { margin: 22px 0 0; max-width: none; font-family: var(--display); font-weight: 800; font-stretch: 75%; line-height: 1.16; letter-spacing: -.02em; }
.bx-cause { display: block; margin-bottom: .16em; font-size: clamp(52px, 7vw, 132px); color: var(--lemon); transform-origin: 0 50%; }
.bx-arrow, .bx-effect { display: inline-block; font-size: clamp(36px, 3.6vw, 72px); }
.bx-arrow { width: .95em; height: .5em; margin-right: .12em; vertical-align: .08em; color: var(--lemon); overflow: visible; }
.bx-effect { color: #fff; transform-origin: 0 70%; }
.ba .bx-line { font-size: 18px; margin-top: 20px; color: #F4F1FF; max-width: 24em; }
.bx-dots { display: none; }
.bx-outro { padding-top: 64px; padding-bottom: 110px; }
.bx-outro p { margin: 0 0 20px; }
/* motion on: the scenes are pinned and come one after another as you scroll; the words pulse on the moves (script) */
.fx .bax { height: calc(var(--n, 11) * 92vh + 100vh); }
.fx .bax-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--sbg, #4A2BD1); transition: background-color .6s; }
.fx .bx { position: absolute; inset: 0; padding: 96px var(--gut) 52px; background: transparent; opacity: 0; transition: opacity .18s; pointer-events: none; }
/* the old scene is gone before the new one fades in, so two scenes never show at once */
.fx .bx.on { opacity: 1; pointer-events: auto; transition: opacity .35s .2s; }
.fx .bx .bx-media { opacity: 0; transform: translateX(-5%) scale(.96); transition: transform .8s cubic-bezier(.2, .9, .25, 1), opacity .5s; }
.fx .bx .bx-n, .fx .bx .bx-cause, .fx .bx .bx-arrow, .fx .bx .bx-effect, .fx .bx .bx-line { opacity: 0; transform: translateY(28px); transition: transform .6s var(--spring), opacity .4s; }
.fx .bx.on .bx-media, .fx .bx.on .bx-n, .fx .bx.on .bx-cause, .fx .bx.on .bx-arrow, .fx .bx.on .bx-effect, .fx .bx.on .bx-line { opacity: 1; transform: none; }
.fx .bx.on .bx-cause { transition-delay: .1s; }
.fx .bx.on .bx-arrow { transition-delay: .26s; }
.fx .bx.on .bx-effect { transition-delay: .34s; }
.fx .bx.on .bx-line { transition-delay: .46s; }
.fx .bx.hit .bx-cause { animation: bxHit .42s cubic-bezier(.2, .9, .25, 1.2); }
.fx .bx.hit .bx-effect { animation: bxPop .5s .14s cubic-bezier(.2, .9, .25, 1.2); }
@keyframes bxHit { 30% { transform: scale(1.05) rotate(-1.5deg); } }
@keyframes bxPop { 35% { transform: translateX(10px) scale(1.06); color: var(--lemon); } }
.fx .bx-dots { position: absolute; z-index: 3; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; gap: 6px; }
.bx-dots i { width: 22px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .3); transition: background .3s; }
.bx-dots i.on { background: var(--lemon); }
/* tall screens (phones, tablets): words on top, the video full width under them */
@media (max-width: 760px), (max-aspect-ratio: 6/5) {
  .bx { grid-template-columns: 1fr; gap: 16px; align-content: center; padding: 48px var(--gut); }
  .bx-type { order: -1; }
  .fx .bx { padding: 80px var(--gut) 40px; }
  .bx-clip { width: min(100%, calc((100vh - 370px) * 1.3125)); }
  .bx-game { left: calc(min(100%, (100vh - 370px) * 1.3125) * .5712 + 10px); }
  .bx-cause { font-size: clamp(40px, 11vw, 96px); }
  .bx-arrow, .bx-effect { font-size: clamp(28px, 7.6vw, 60px); }
  .ba .bx-say { margin-top: 12px; }
  .ba .bx-line { font-size: 15.5px; margin-top: 10px; }
  .bx-g { font-size: 21px; }
}
@media (max-height: 620px) and (max-width: 760px) { .fx .bx { padding-top: 72px; padding-bottom: 30px; } .ba .bx-line { display: none; } .bx-clip { width: min(100%, calc((100vh - 250px) * 1.3125)); } .bx-game { left: calc(min(100%, (100vh - 250px) * 1.3125) * .5712 + 10px); } }

/* phones: the device turn and the app screen flows (shared by the app cards) */
.turn { display: grid; place-items: center; transform: rotateY(-16deg) rotateX(6deg) rotateZ(2deg); }
.fx .turn { animation: sway 9s ease-in-out infinite alternate; }
@keyframes sway { from { transform: rotateY(-18deg) rotateX(7deg) rotateZ(2deg); } to { transform: rotateY(-4deg) rotateX(2deg) rotateZ(-1deg) translateY(-10px); } }
.phone { position: relative; width: min(280px, 64vw); padding: 10px; border-radius: 44px; background: #101014; box-shadow: inset 0 0 0 2px #3a3a44, 16px 22px 0 rgba(0, 0, 0, .22), 0 40px 60px rgba(0, 0, 0, .3); }
.phone .screen { position: relative; aspect-ratio: var(--ar, 9 / 16); border-radius: 35px; overflow: hidden; background: #0d0d10; }
.phone .screen .clip { position: absolute; inset: 0; }
.reel .sc { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: translateX(100%); }
.reel .sc:first-child { transform: none; }
.fx .reel .sc { animation: push4 10.4s linear calc(var(--k) * 2.6s - .4s) infinite both; }
.fx .reel.n3 .sc { animation-name: push3; animation-duration: 7.8s; }
.tap { position: absolute; z-index: 5; left: var(--x); top: var(--y); width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 3px rgba(27, 16, 53, .55); opacity: 0; pointer-events: none; }
.fx .reel .tap { animation: tap4 10.4s ease-out calc(var(--k) * 2.6s - .4s) infinite both; }
.fx .reel.n3 .tap { animation-name: tap3; animation-duration: 7.8s; }
.turn:not(.run), .turn:not(.run) * { animation-play-state: paused !important; }
.scard:hover .turn { animation-play-state: paused; }
@keyframes push4 { 0% { transform: translateX(100%); z-index: 3; animation-timing-function: cubic-bezier(.2, .8, .2, 1); } 3.5% { transform: translateX(0); z-index: 3; } 25% { transform: translateX(0); z-index: 2; filter: none; animation-timing-function: cubic-bezier(.4, 0, .6, 1); } 28.5% { transform: translateX(-28%); z-index: 2; filter: brightness(.75); } 28.6%, 100% { transform: translateX(100%); z-index: 1; filter: none; } }
@keyframes push3 { 0% { transform: translateX(100%); z-index: 3; animation-timing-function: cubic-bezier(.2, .8, .2, 1); } 4.6% { transform: translateX(0); z-index: 3; } 33.3% { transform: translateX(0); z-index: 2; filter: none; animation-timing-function: cubic-bezier(.4, 0, .6, 1); } 38% { transform: translateX(-28%); z-index: 2; filter: brightness(.75); } 38.1%, 100% { transform: translateX(100%); z-index: 1; filter: none; } }
@keyframes tap4 { 0%, 17% { opacity: 0; transform: scale(.4); } 19.5% { opacity: 1; transform: scale(.85); } 24.5% { opacity: 0; transform: scale(1.5); } 100% { opacity: 0; } }
@keyframes tap3 { 0%, 23% { opacity: 0; transform: scale(.4); } 26.5% { opacity: 1; transform: scale(.85); } 32.5% { opacity: 0; transform: scale(1.5); } 100% { opacity: 0; } }


/* 5 apps stack */
.stack { background: #fff; padding: 110px 0 60px; }
.stack > .wrap > h2 { font-size: clamp(44px, 6vw, 100px); font-stretch: 75%; letter-spacing: -.03em; line-height: .88; margin-bottom: 40px; max-width: 14em; }
.scard { position: sticky; top: calc(84px + var(--i) * 14px); min-height: min(76vh, 680px); border-radius: 40px; background: var(--c); color: var(--on); margin-bottom: 7vh; overflow: hidden; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; transform-origin: 50% 0; }
.scard .tx { padding: 48px clamp(24px, 5vw, 72px); }
/* the card underneath dims while the next one slides over it (script sets --cover); on the calm page the cards do not stack */
.scard .tx, .scard .stage { opacity: calc(1 - var(--cover, 0) * 4); }
html:not(.fx) .scard { position: relative; top: auto; }
.scard .ic { width: 84px; height: 84px; border-radius: 21px; box-shadow: 0 2px 0 rgba(0, 0, 0, .25), 0 4px 0 rgba(0, 0, 0, .25), 0 6px 0 rgba(0, 0, 0, .25), 0 8px 0 rgba(0, 0, 0, .25), 0 26px 30px rgba(0, 0, 0, .25); transition: transform .4s var(--spring); }
.scard:hover .ic { transform: rotate(-10deg) scale(1.1); }
.scard h3 { font-size: clamp(54px, 7vw, 120px); font-stretch: 75%; letter-spacing: -.035em; line-height: .85; margin: 22px 0 clamp(14px, 1.7vw, 32px); }
.scard p { font-size: 19px; max-width: 26em; margin: 0 0 22px; }
.scard .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.scard .stage { position: relative; height: 100%; min-height: 420px; perspective: 1200px; display: grid; place-items: center; padding: 30px 0; }
/* the phone never gets taller than the pinned card can show on a short window (906x670, 1280x600) */
.scard .phone { width: min(290px, 26vw, calc((100vh - 228px) * var(--ar) + 20px)); }

.scard .twin { position: absolute; right: 2%; bottom: -4%; height: 92%; width: auto; max-width: none; pointer-events: none; filter: drop-shadow(16px 16px 0 rgba(0, 0, 0, .15)); }

/* 6 shelf */
.shelf { background: var(--plum); color: #fff; padding: 120px 0 100px; overflow: hidden; }
.icols { display: grid; grid-template-columns: minmax(300px, 34%) 1fr; gap: 24px; align-items: center; }
.icols > * { min-width: 0; }
.shelf h2 { font-size: clamp(44px, 6.4vw, 110px); font-stretch: 75%; line-height: .86; letter-spacing: -.03em; }
.shelf .intro { max-width: 40em; color: var(--lilac); font-size: 18px; margin: 18px 0 26px; }
.tabs { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.tabs button { font: 700 17px/1 var(--text); padding: 14px 18px; min-height: 46px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: transform .2s var(--spring), background .2s; }
.tabs button:hover { transform: translateX(4px); background: rgba(255, 255, 255, .22); }
.tabs button[aria-pressed="true"] { background: var(--lemon); color: var(--ink); }
.tabs button span { opacity: .7; margin-left: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.flow { position: relative; display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px 4px 30px; touch-action: pan-x pan-y; }
.fcard { position: relative; flex: 0 0 auto; width: 340px; height: 500px; border-radius: 34px; background: var(--c); color: var(--on); padding: 28px; display: flex; flex-direction: column; box-shadow: 0 30px 50px rgba(0, 0, 0, .35); overflow: hidden; scroll-snap-align: center; }
.fcard .ic { width: 112px; height: 112px; border-radius: 27px; box-shadow: 0 2px 0 rgba(0, 0, 0, .28), 0 4px 0 rgba(0, 0, 0, .28), 0 6px 0 rgba(0, 0, 0, .28), 0 8px 0 rgba(0, 0, 0, .28), 0 24px 30px rgba(0, 0, 0, .3); transition: transform .5s var(--spring); }
.fcard:hover .ic { transform: translateY(-6px) rotate(-8deg); }
.fcard .shot { width: 100%; height: 170px; object-fit: cover; border-radius: 18px; box-shadow: 0 16px 30px rgba(0, 0, 0, .25); }
.fcard h3 { font-size: 38px; font-stretch: 80%; line-height: .95; margin: 22px 0 10px; letter-spacing: -.02em; }
.fcard p { font-size: 15.5px; line-height: 1.45; }
.fcard .cfoot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fcard .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.fcard .go { font: 700 15px/1 var(--text); white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 3px 3px 0 rgba(0, 0, 0, .25); transition: transform .2s var(--spring); }
.fcard .go:hover { transform: translateY(-2px) rotate(-2deg); }
.fcard .go:active { transform: translate(2px, 2px); box-shadow: none; }
.fcard .peek { position: absolute; right: -40px; bottom: -116px; width: 146px; border-radius: 22px; border: 6px solid #101014; transform: rotate(-9deg); box-shadow: 0 20px 30px rgba(0, 0, 0, .35); transition: transform .5s var(--spring); }
/* landscape game shots sit lower and further right, so the chips and buttons never run into them */
.fcard .peek.land { width: 230px; right: -50px; bottom: -34px; border-radius: 16px; }
.fcard .peek.land.sq { width: 200px; }
.fcard:hover .peek { transform: rotate(-4deg) translateY(-8px); }
.fcard p, .fcard h3, .fcard .ic, .fcard .cfoot, .fcard .acts { position: relative; z-index: 1; }
.fcard.pk .cfoot, .fcard.pk .acts { max-width: 64%; }
.fnav { display: none; gap: 10px; justify-content: center; margin-top: 10px; }
.fnav button { width: 54px; height: 54px; border-radius: 16px; border: 0; background: #fff; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: transform .2s var(--spring); }
.fnav button svg { width: 22px; height: 22px; }
.fnav button:hover { transform: scale(1.1) rotate(-4deg); }
.fnav button:active { transform: scale(.92); }
.fnav button[disabled] { opacity: .45; cursor: default; transform: none; }
/* coverflow, switched on by script */
.cf .flow { display: block; height: 560px; overflow: visible; perspective: 1500px; padding: 0; touch-action: pan-y; }
.cf .fcard { position: absolute; left: 30%; top: 20px; margin-left: -170px; transition: transform .7s cubic-bezier(.2, .9, .25, 1), opacity .5s, filter .5s; }
.cf .fcard[hidden] { display: none; }
.cf .fnav { display: flex; }

/* 7 web tools */
.webw { background: var(--fairway); color: var(--pine); padding: 120px 0; }
.webw h2 { font-size: clamp(44px, 6.4vw, 110px); font-stretch: 75%; line-height: .86; letter-spacing: -.03em; }
.webw .intro { max-width: 38em; font-size: 18px; margin: 18px 0 40px; }
.webw .wrap { max-width: 1520px; margin: 0 auto; }
.wall { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; perspective: 1200px; }
.wt { grid-column: span 4; background: #fff; border-radius: 26px; overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s var(--spring), box-shadow .3s; box-shadow: 8px 10px 0 var(--fairway-d); }
.wt:hover { transform: translateY(-10px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); box-shadow: 12px 18px 0 var(--fairway-d); }
.wt:active { transform: translateY(-2px) scale(.985); }
.wt img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.wt.big { grid-column: span 8; grid-row: span 2; }
.wt.big .clip { flex: 1 0 auto; height: auto; aspect-ratio: 2120 / 1536; }
.wt.big .clip img, .wt.big .clip video { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: 0 0; }
.wt.big .t { flex: none; }
.wt .t { padding: 16px 20px 20px; background: var(--c, #fff); color: var(--on, var(--ink)); flex: 1; }
.wt h3 { font-size: 26px; font-stretch: 85%; }
.wt p { margin-top: 4px; font-size: 15px; line-height: 1.4; }
.wt h3 { transition: transform .3s var(--spring); }
.wt:hover h3 { transform: translateX(4px) rotate(-1deg); }
.webw .more { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; }
.idx { margin-top: 90px; background: #fff; color: var(--ink); border-radius: 34px; padding: clamp(24px, 4vw, 52px); box-shadow: 10px 12px 0 var(--fairway-d); }
.idx h3 { font-size: clamp(30px, 3.4vw, 48px); font-stretch: 80%; line-height: .95; letter-spacing: -.02em; }
.idx .note { color: #4a4560; margin: 10px 0 22px; max-width: 46em; }
.slips { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.slips a { display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 16px; border-radius: 20px; background: #F3F0FF; text-decoration: none; transition: transform .25s var(--spring), background .2s; }
.slips a:hover { transform: translateY(-4px) rotate(-1deg); background: var(--lemon); }
.slips time { font: 800 22px/1 var(--display); font-stretch: 80%; }
.slips .what { font-weight: 700; }
.slips .tool { font-size: 15px; line-height: 1.45; color: #3a3550; }
.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 48px; }
.lists h4 { margin: 0 0 10px; font: 800 22px/1.1 var(--display); font-stretch: 85%; }
.lists ul { list-style: none; margin: 0; padding: 0; }
.lists li a { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: 14px; padding: 11px 10px; border-radius: 12px; border-bottom: 1px solid #ECE8F7; text-decoration: none; transition: background .15s, transform .2s var(--spring); }
.lists li a:hover { background: #F3F0FF; transform: translateX(4px); }
.lists .n { font-weight: 700; }
.lists .w { color: #4a4560; font-size: 15px; line-height: 1.45; }

/* 8 close */
.close { background: var(--pink); color: var(--ink); padding: 120px 0 40px; }
.close h2 { --xc: #B0124F; font-size: clamp(54px, 9vw, 160px); font-stretch: 75%; line-height: .84; letter-spacing: -.04em; }
.close .mail { display: inline-block; margin-top: 30px; font: 800 clamp(24px, 4vw, 64px)/1.05 var(--display); font-stretch: 80%; text-decoration: none; background: #fff; padding: 16px 24px; border-radius: 22px; box-shadow: 8px 8px 0 var(--ink); transition: transform .25s var(--spring), box-shadow .25s var(--spring); overflow-wrap: anywhere; }
.close .mail:hover { transform: translate(-4px, -4px) rotate(-1deg); box-shadow: 14px 14px 0 var(--ink); }
.close .mail:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.close .k { max-width: 34em; font-size: 18px; margin-top: 26px; }
.close .wrap { position: relative; }
.pile { position: absolute; right: var(--gut); top: -80px; width: min(44vw, 560px); height: 440px; pointer-events: none; }
.pile img { position: absolute; left: var(--x); top: var(--y); width: var(--z, 120px); height: auto; border-radius: 26%; transform: rotate(var(--r)); box-shadow: 0 2px 0 rgba(27, 16, 53, .35), 0 4px 0 rgba(27, 16, 53, .35), 0 6px 0 rgba(27, 16, 53, .35), 0 8px 0 rgba(27, 16, 53, .35), 0 10px 0 rgba(27, 16, 53, .35), 14px 26px 30px rgba(27, 16, 53, .3); }
.fx .pile img { animation: bob 5s ease-in-out calc(var(--i) * -.7s) infinite alternate; }
@keyframes bob { to { translate: 0 -16px; } }
.foot { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 80px; padding-top: 22px; border-top: 2px solid var(--ink); font-size: 15px; }
.foot a, .foot span { padding: 8px 0; }

/* below-the-fold sections are laid out only when they come close */
.shelf { content-visibility: auto; contain-intrinsic-size: auto 900px; }
.webw { content-visibility: auto; contain-intrinsic-size: auto 2700px; }
.close { content-visibility: auto; contain-intrinsic-size: auto 760px; }

/* motion on: pinned scenes (script adds .fx when motion is allowed) */
.fx .hero { height: 165vh; }
.fx .hero .stick { position: sticky; top: 0; }

@media (max-width: 1100px) {
  .slips { grid-template-columns: 1fr 1fr; }
  .lists { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .bar { top: 10px; padding-left: 12px; }
  .bar nav { display: none; }
  .hero .stick { height: auto; min-height: 100svh; display: flex; flex-direction: column; }
  .fx .hero { height: auto; }
  .fx .hero .stick { position: relative; }
  .hero .copy { position: relative; top: auto; transform: none; padding: 104px 16px 0; z-index: 2; order: 1; }
  .hero h1 { font-size: clamp(46px, 15vw, 64px); }
  .hero .sub { font-size: 15.5px; margin-top: 18px; }
  .hero .cta .ghost { display: none; }
  .ring-box { position: relative; inset: auto; height: auto; order: 2; margin-top: -36px; aspect-ratio: 720 / 840; }
  .hero .c { font-weight: var(--w); }
  .ring-poster { position: absolute; inset: 0; }
  .ring-poster img { object-fit: contain; object-position: 50% 50%; }
  #ring { display: none; }
  .ring-vid { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .5s; transform: scale(.985); }
  .ring-vid.on { opacity: 1; }
  .pan .head img { width: 190px; }
  /* phones: the words first, then the vertical crop of the match fills the rest of the chapter */
  .pan { display: flex; flex-direction: column; min-height: max(100svh, 640px); }
  .twbg { position: relative; inset: auto; aspect-ratio: auto; flex: 1 0 auto; height: max(58vh, 420px); margin-top: -30px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 60px); mask-image: linear-gradient(180deg, transparent 0, #000 60px); }
  .pan .head { order: -1; }
  .twclip img, .twclip video { object-position: 50% 60%; }
  .twshade { display: none; }
  .pan .head { margin-top: 0; padding: 96px 16px 0; }
  .pan .head p { display: none; }
  .pan .head h2 { font-size: 32px; }
  .tw-b1 { --s: 100px; left: auto; right: 14px; top: 92px; }
  .tw-b2 { display: none; }
  .ba { padding: 100px 0 0; }
  .bx-outro { padding-bottom: 80px; }
  .stack { padding-top: 80px; }
  .scard { grid-template-columns: 1fr; min-height: 0; border-radius: 30px; top: calc(70px + var(--i) * 10px); }
  .scard .tx { padding: 28px 22px 0; }
  .scard .ic { width: 58px; height: 58px; border-radius: 15px; }
  .scard h3 { font-size: 52px; margin: 14px 0 8px; }
  .scard p { font-size: 15.5px; margin-bottom: 14px; }
  .scard .stage { min-height: 0; padding: 26px 0 30px; }
  .scard .phone { width: 52vw; border-radius: 34px; padding: 8px; }
  .scard .phone .screen { border-radius: 27px; }
  .scard .twin { height: 70%; bottom: 0; right: -4%; }
  .icols { grid-template-columns: 1fr; }
  .tabs { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .tabs button { flex: 0 0 auto; font-size: 15px; padding: 12px 14px; min-height: 44px; }
  .tabs button:hover { transform: translateY(-2px); }
  .cf .flow { height: 520px; }
  .fcard { width: 280px; height: 470px; padding: 22px; }
  .cf .fcard { left: 50%; margin-left: -140px; }
  .fcard .ic { width: 88px; height: 88px; border-radius: 22px; }
  .fcard .peek { width: 92px; right: -38px; bottom: -120px; }
  .fcard .peek.land, .fcard .peek.land.sq { width: 150px; right: -60px; bottom: -24px; }
  .fcard.pk .cfoot, .fcard.pk .acts { max-width: 60%; }
  .wt, .wt.big { grid-column: span 12; grid-row: auto; }
  .wt.big .clip { flex: none; }
  .slips { grid-template-columns: 1fr; }
  .lists li a { grid-template-columns: 1fr; gap: 2px; }
  .foot { gap: 4px 18px; }
  .pile { position: relative; right: auto; top: auto; width: 100%; height: 200px; margin: 0 0 10px; }
  .pile img { --z: 74px !important; }
}
/* motion follows the site's own switch (footer "Reduce motion"), not the OS setting: Doruk's laptop reported reduce and the page went still */
html:not(.fx) .c, html:not(.fx) .hero .sub, html:not(.fx) .hero .cta, html:not(.fx) .chip.soon::before, html:not(.fx) .pile img { animation: none; }
html:not(.fx) .btn, html:not(.fx) .wt, html:not(.fx) .phone, html:not(.fx) .burst, html:not(.fx) .fcard, html:not(.fx) .fcard .ic, html:not(.fx) .fcard .peek, html:not(.fx) .tabs button, html:not(.fx) .slips a, html:not(.fx) .lists li a { transition: none; }
html:not(.fx) .turn, html:not(.fx) .reel .sc, html:not(.fx) .tap { animation: none !important; }
.foot .calm { font: inherit; color: inherit; background: none; border: 0; padding: 8px 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
