/* =========================================================
   Home: the monkey's launch pad (shared space pieces are in space.css). Nothing here follows the scroll; the few
   things that loop are small and move with transform or opacity only, and pause once off screen
   ========================================================= */

/* ---------- 1. hero: an eclipse. A black disc with its corona, the logo set huge across it ----------
   The disc and the corona are gradients painted once. The one moving part is a thin ring of light round the rim: a
   conic gradient masked to a ring, rotated with transform only, so it runs on the compositor */
.ho { position: relative; isolation: isolate; overflow: hidden; min-height: max(660px, 100svh); display: grid; place-items: center; background: #050509; }
.ho .sky { opacity: .6; }
.ho__sun { --s: min(76vw, 640px, 78svh); position: absolute; z-index: -1; left: 50%; top: 50%; width: var(--s); height: var(--s); transform: translate(-50%, -50%); }
.ho__sun::before { content: ""; position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(closest-side, rgba(189, 179, 255, .32) 62%, rgba(143, 125, 255, .12) 72%, transparent 100%); }
.ho__disc { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 50% 50%, #050509 60%, #0c0a1c 100%); box-shadow: 0 0 0 1px rgba(226, 220, 255, .6), 0 0 30px 2px rgba(189, 179, 255, .55); }
.ho__ring { position: absolute; inset: -3%; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 55%, rgba(255, 255, 255, .95) 66%, #ff4d6d 70%, transparent 82%);
  -webkit-mask: radial-gradient(closest-side, transparent 94.5%, #000 96%, #000 98.5%, transparent 100%); mask: radial-gradient(closest-side, transparent 94.5%, #000 96%, #000 98.5%, transparent 100%);
  animation: spin 14s linear infinite; will-change: transform; }
.ho.is-off .ho__ring { will-change: auto; }
.ho__in { position: relative; z-index: 2; display: grid; justify-items: center; gap: 22px; width: 100%; max-width: 1200px; padding: calc(120px + env(safe-area-inset-top, 0px)) var(--gutter) 90px; text-align: center; }
/* the disc and all the text. On desktop the flip card and its faces are display: contents, so it is all just rows of
   one grid with the disc centred on .ho__in; the back's disc, its kicker, the hints and the flip button are phone only */
.ho__core { display: grid; justify-items: center; gap: 22px; }
.ho__card, .ho__face { display: contents; }
.ho__face--back .ho__sun, .ho__kicker--back, .ho__hint, .ho__flip { display: none; }
.ho__kicker { color: var(--iris-soft); }
.ho__logo { margin: 0; font: 800 clamp(56px, min(15vw, 26svh), 260px)/.88 var(--f-display); letter-spacing: -.055em; }
.ho__logo .heart { padding-right: .06em; margin-right: -.06em; }
.ho__code { font-weight: 300; color: var(--iris-soft); letter-spacing: -.03em; }
.ho__line { font: 650 clamp(22px, 2.4vw, 36px)/1.15 var(--f-display); letter-spacing: -.03em; text-wrap: balance; }
.ho__line .ser { font-weight: 400; color: var(--iris-soft); }
.ho__sub { max-width: 44ch; color: var(--mute); font-size: clamp(15.5px, 1.2vw, 18px); line-height: 1.6; }
.ho__mark { position: absolute; z-index: 2; bottom: 26px; right: var(--gutter); font-size: 11px; }
.ho .twinkle i:nth-child(1) { left: 9%; top: 26%; }
.ho .twinkle i:nth-child(2) { left: 22%; top: 72%; }
.ho .twinkle i:nth-child(3) { left: 82%; top: 20%; }
.ho .twinkle i:nth-child(4) { left: 91%; top: 66%; }
/* phones: the disc is a card that flips. The front holds the kicker, the logo and the line, the logo crossing the rim
   like the moon's edge; a tap turns the card over (rotateY, transform only) to the sub on the back. The corona stays
   still on .ho__core while the disc turns in front of it. An invisible round button over the card does the tapping;
   the hint under the disc stays put and swaps its words */
@media (max-width: 700px) {
  .ho { min-height: 100svh; }
  .ho__in { padding: calc(84px + env(safe-area-inset-top, 0px)) var(--gutter) calc(72px + env(safe-area-inset-bottom, 0px)); }
  .ho__core { --s: min(90vw, 56svh); display: block; position: relative; width: var(--s); aspect-ratio: 1; perspective: 1400px; }
  .ho__core::before { content: ""; position: absolute; inset: -22%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, transparent 63%, rgba(189, 179, 255, .32) 69.4%, rgba(143, 125, 255, .12) 80%, transparent 100%); }
  .ho__card { display: block; position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s cubic-bezier(.3, 1.3, .4, 1); animation: ho-nudge 1.4s 2.2s ease-in-out; }
  .ho__core.is-flipped .ho__card { transform: rotateY(180deg); }
  .ho__core.is-touched .ho__card { animation: none; }
  .ho__face { display: grid; position: absolute; inset: 0; isolation: isolate; grid-template-columns: minmax(0, 1fr); align-content: center; justify-items: center; gap: clamp(12px, 2.4svh, 20px); -webkit-backface-visibility: hidden; backface-visibility: hidden; transform: rotateY(0deg); }
  .ho__face--back { transform: rotateY(180deg); }
  .ho__face .ho__sun, .ho__face--back .ho__sun { display: block; width: 100%; height: 100%; }
  .ho__sun::before { display: none; }
  .ho__kicker { font-size: 10.5px; letter-spacing: .2em; }
  .ho__logo { font-size: min(17.5vw, 10.8svh); }
  .ho__line { max-width: 8em; font-size: min(7vw, 4svh, 30px); line-height: 1.1; }
  .ho__kicker--back { display: block; }
  .ho__sub { max-width: 13em; color: var(--fg); font: 500 min(5.4vw, 3.1svh, 22px)/1.35 var(--f-display); letter-spacing: -.02em; text-wrap: balance; }
  .ho__hint { display: flex; position: absolute; top: calc(100% + clamp(28px, 5svh, 48px)); left: 50%; transform: translateX(-50%); align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid rgba(189, 179, 255, .22); border-radius: 99px; color: var(--iris-soft); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
  .ho__hint b { font-weight: inherit; }
  .ho__hint b + b, .ho__core.is-flipped .ho__hint b:first-child { display: none; }
  .ho__core.is-flipped .ho__hint b + b { display: inline; }
  .ho__hint i { font-style: normal; font-size: 13px; letter-spacing: 0; transition: transform .9s cubic-bezier(.3, 1.3, .4, 1); }
  .ho__core.is-flipped .ho__hint i { transform: rotate(-180deg); }
  .ho__flip { display: block; position: absolute; inset: 0; z-index: 2; border: 0; border-radius: 50%; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .ho__flip:focus-visible { border-radius: 50%; outline-offset: 6px; }
  .ho__mark { display: none; }
}

/* one logo at a time: the nav's logo fades in once the hero's has gone under the nav (home.js adds .is-logo), and
   whenever the menu is open */
.nav .logo { transition: opacity .4s var(--ease-out), visibility .4s; }
.js:not(.is-locked) .nav:not(.is-logo) .logo { opacity: 0; visibility: hidden; }

/* ---------- the ticker: a still band, tilted across the join ---------- */
.tk { position: relative; z-index: 2; overflow: hidden; padding-block: 26px; margin-block: -26px; }
.tk .ticker__track { position: relative; left: 50%; transform: translateX(-50%); }

/* ---------- 2. who I am, and what I build: four steps you switch between (home.js) ----------
   The same story as before, minus the pinning: the arrows, the step tabs or a swipe move the monkey and the devices
   to the next step's pose, in one short eased glide; between glides nothing is redrawn */
.forge { position: relative; }
.forge:focus { outline: none; }
.forge .forge__stage { position: relative; isolation: isolate; height: auto; min-height: max(680px, 100svh); overflow: hidden; background: var(--ink); }
.forge .forge__inner { height: auto; min-height: inherit; padding-top: calc(96px + env(safe-area-inset-top, 0px)); padding-bottom: 48px; }
.forge__visual { min-height: 560px; touch-action: pan-y; }
.forge__nav button { display: grid; gap: 10px; width: 100%; padding: 6px 0; text-align: left; cursor: pointer; }
.forge__nav button:hover span { color: var(--fg); }
.forge__nav i::after { transition: transform .6s var(--ease-out); }
@media (max-width: 860px) {
  .forge__visual { min-height: 0; height: min(104vw, 470px); }
}

.forge__langs { margin: 0; color: #a898ff; font-size: 12px; letter-spacing: .1em; }
.forge__mk { width: 120px; margin: -60px 0 0 -60px; z-index: 1; }
.forge__mk::before { content: ""; position: absolute; inset: -45%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(143, 125, 255, .32), rgba(143, 125, 255, 0) 62%); }
.forge__mk svg { display: block; width: 100%; height: auto; overflow: visible; animation: core-float 5s ease-in-out infinite; }
/* the monkey's thought on the first step: a line of Python nudging you on to the next step (typed by home.js) */
.forge__think { z-index: 3; width: 320px; margin: 0; opacity: 0; }
.forge__code { margin: 0; padding: 16px 18px; border-radius: 18px; background: rgba(20, 18, 32, .92); border: 1px solid rgba(189, 179, 255, .35); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8), 0 0 40px -12px rgba(143, 125, 255, .45); font: 500 15px/1.6 var(--f-mono); color: var(--fg); white-space: pre; min-height: calc(2 * 1.6em + 32px); }
.forge__code .k { color: #a898ff; }
.forge__code .cur { color: #a898ff; animation: blink .8s steps(1) infinite; }
.forge__puff { position: absolute; left: 34px; bottom: -16px; width: 14px; height: 14px; border-radius: 50%; background: rgba(20, 18, 32, .92); border: 1px solid rgba(189, 179, 255, .35); }
.forge__puff--sm { left: 18px; bottom: -32px; width: 8px; height: 8px; }
/* devices: phone and browser, drawn in white and purple; their screens fill in as they "build" (--b) */
.forge__phone, .forge__browser { z-index: 2; opacity: 0; }
.forge__phone { width: 230px; height: 460px; margin: -230px 0 0 -115px; padding: 10px; border-radius: 42px; background: linear-gradient(145deg, #2c2f3b, #14161d 45%, #23262f); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 60px -10px rgba(143, 125, 255, .35); }
.fp__island { position: absolute; z-index: 2; top: 20px; left: 50%; width: 70px; height: 20px; margin-left: -35px; border-radius: 99px; background: #000; }
.fp__screen { position: relative; height: 100%; display: grid; grid-template-rows: auto auto 1fr auto auto auto auto; gap: 10px; align-content: start; padding: 44px 16px 14px; border-radius: 33px; overflow: hidden; background: linear-gradient(180deg, #17142a, #0d0c16); clip-path: inset(calc((1 - var(--b, 0)) * 100%) 0 0 0 round 33px); }
.fp__time { position: absolute; top: 16px; left: 24px; margin: 0; font-size: 10px; color: var(--fg); }
.fp__title { width: 55%; height: 16px; border-radius: 6px; background: var(--fg); }
.fp__hero { height: 120px; border-radius: 18px; background: linear-gradient(135deg, #a898ff, #6b5cff); display: grid; place-items: center; }
.fp__hero i { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .85); }
.fp__row { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: rgba(189, 179, 255, .08); }
.fp__row i { width: 30px; height: 30px; border-radius: 9px; background: rgba(168, 152, 255, .45); }
.fp__row b { height: 8px; border-radius: 4px; background: rgba(236, 235, 243, .55); }
.fp__tabs { display: flex; justify-content: space-around; padding-top: 10px; border-top: 1px solid rgba(189, 179, 255, .15); }
.fp__tabs i { width: 18px; height: 18px; border-radius: 6px; background: rgba(236, 235, 243, .3); }
.fp__tabs i:first-child { background: #a898ff; }
.forge__browser { width: 520px; height: 340px; margin: -170px 0 0 -260px; border-radius: 16px; overflow: hidden; background: #0f0e18; border: 1px solid rgba(189, 179, 255, .22); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9), 0 0 60px -10px rgba(143, 125, 255, .3); }
.fb__bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #181626; border-bottom: 1px solid rgba(189, 179, 255, .14); }
.fb__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(236, 235, 243, .25); }
.fb__bar i:first-child { background: #a898ff; }
.fb__bar span { margin: 0 auto; padding: 4px 14px; border-radius: 99px; background: rgba(189, 179, 255, .08); font-size: 10px; letter-spacing: .04em; color: var(--mute); text-transform: none; }
.fb__page { display: grid; gap: 12px; align-content: start; padding: 30px 34px; clip-path: inset(0 0 calc((1 - var(--b, 0)) * 100%) 0); }
.fb__h { width: 70%; height: 22px; border-radius: 7px; background: var(--fg); }
.fb__h--2 { width: 45%; background: #a898ff; }
.fb__l { width: 80%; height: 8px; border-radius: 4px; background: rgba(236, 235, 243, .35); }
.fb__l--2 { width: 62%; }
.fb__btn { width: 110px; height: 30px; margin-top: 6px; border-radius: 99px; background: #a898ff; }
.fb__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
.fb__cards i { height: 64px; border-radius: 12px; background: rgba(189, 179, 255, .1); border: 1px solid rgba(189, 179, 255, .18); }
.forge__sync { z-index: 3; display: flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; margin: -16px 0 0 -52px; border-radius: 99px; background: #a898ff; color: var(--ink); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: 0; box-shadow: 0 0 30px rgba(143, 125, 255, .6); }
.forge__sync i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #a898ff; font-style: normal; animation: spin 3s linear infinite; }
/* language chips: they rise in, glowing, beneath the device of the current service */
.forge__chip { z-index: 4; opacity: 0; padding: 9px 15px; border-radius: 99px; white-space: nowrap; background: var(--ink-2); border: 1px solid var(--ink-3); font: 500 14px/1 var(--f-mono); color: var(--fg); transition: color .4s, border-color .4s, box-shadow .4s, background-color .4s; }
.forge__chip { color: #fff; border-color: #a898ff; background: #1f1a3a; box-shadow: 0 0 24px rgba(143, 125, 255, .5); }
@media (prefers-reduced-motion: reduce) {
 .forge__mk svg, .forge__sync i { animation: none; }
}

/* ---------- 3. the apps: each payload in orbit around a planet of its own colour ---------- */
.pl-sec { display: grid; gap: clamp(70px, 9vw, 140px); padding-block: clamp(30px, 4vw, 60px) clamp(90px, 11vw, 160px); }
.pl-sec__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pl-sec__head .tag { color: var(--iris-soft); }
.pl { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(30px, 5vw, 90px); align-items: center; }
.pl--flip .pl__stage { order: 2; }
.pl__stage { position: relative; display: grid; place-items: center; min-height: clamp(540px, 48vw, 720px); }
.pl__planet { position: absolute; width: min(80%, 560px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #fff7e6, var(--pc) 34%, var(--pc2) 76%, #14091a); box-shadow: inset -30px -40px 80px rgba(0, 0, 0, .45), 0 0 140px -30px var(--pc); }
.pl__planet::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(9% 9% at 70% 30%, rgba(0, 0, 0, .14), transparent 70%), radial-gradient(6% 6% at 26% 66%, rgba(0, 0, 0, .12), transparent 70%), radial-gradient(12% 12% at 62% 74%, rgba(0, 0, 0, .1), transparent 70%), repeating-linear-gradient(170deg, transparent 0 34px, rgba(255, 255, 255, .06) 34px 44px); }
.pl__ring { position: absolute; width: min(108%, 760px); height: 24%; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .28); transform: rotate(-14deg); }
.pl--flip .pl__ring { transform: rotate(12deg); }
.pl__badge { position: absolute; z-index: 3; right: 3%; top: 6%; width: clamp(100px, 9vw, 132px); overflow: visible; transform: rotate(-14deg); }
.pl--flip .pl__badge { right: auto; left: 3%; }
.pl__badge circle { fill: var(--ink); stroke: var(--pc); stroke-width: 1.5; }
.pl__badge text { fill: #fff; font: 600 9.2px var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.pl__badge-star { fill: var(--pc); }
.pl-phone {
  position: relative; z-index: 2; --w: clamp(240px, 21vw, 300px); width: var(--w); aspect-ratio: 9 / 19.4; padding: calc(var(--w) * .034); border-radius: calc(var(--w) * .165);
  background: linear-gradient(145deg, #3a3d48, #16181f 40%, #2b2e38); transform: rotate(-6deg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 60px 90px -40px rgba(0, 0, 0, .9);
}
.pl--flip .pl-phone { transform: rotate(5deg); }
.pl__copy { position: relative; isolation: isolate; display: grid; gap: 22px; justify-items: start; min-width: 0; }
.pl__num { position: absolute; z-index: -1; top: -.5em; left: -.04em; font: 800 clamp(150px, 17vw, 290px)/1 var(--f-display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(236, 235, 243, .2); pointer-events: none; }
.pl__label { color: var(--pc); }
.pl__t { margin: 0; font: 650 clamp(46px, 5.6vw, 96px)/.92 var(--f-display); letter-spacing: -.045em; text-wrap: balance; }
/* the features, as a mission checklist */
.pl__feats { display: grid; gap: 8px; width: 100%; max-width: 480px; margin: 0; padding: 0; list-style: none; }
.pl__feat { display: grid; grid-template-columns: 18px 1fr; gap: 4px 14px; width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); text-align: left; color: inherit; transition: border-color .3s, background-color .3s; }
.pl__feat::before { content: ""; grid-row: span 2; width: 18px; height: 18px; margin-top: 1px; border-radius: 5px; border: 1.5px solid var(--pc); }
li.pl__feat::before, .pl__feat.is-on::before { background: var(--pc); box-shadow: inset 0 0 0 3px var(--ink); }
button.pl__feat:hover { border-color: rgba(236, 235, 243, .3); }
.pl__feat.is-on { border-color: var(--pc); background: rgba(255, 255, 255, .05); }
.pl__feat-k { color: var(--fg); }
.pl__feat-t { color: var(--mute); font-size: 15px; line-height: 1.5; }
.pl__feat--more { border-style: dashed; padding-block: 11px; }
.pl__feat--more::before { grid-row: auto; }
.pl__go { --btn-bg: var(--pc); }
/* Jewish Companion: the blue and white of Israel's flag, its planet banded like the flag and a Star of David on its badge */
.pl--il .pl__planet { background: linear-gradient(180deg, transparent 16%, #0038b8 16% 26%, transparent 26% 74%, #0038b8 74% 84%, transparent 84%), radial-gradient(circle at 34% 28%, #fff, #eef2fb 42%, #a9badf 78%, #2a3c70); box-shadow: inset -30px -40px 80px rgba(0, 20, 80, .45), 0 0 140px -30px #4d7fff; }
.pl--il .pl__planet::after { background: radial-gradient(9% 9% at 70% 44%, rgba(0, 30, 90, .08), transparent 70%), radial-gradient(6% 6% at 28% 58%, rgba(0, 30, 90, .07), transparent 70%); }
.pl--il .pl__ring { border-color: rgba(173, 196, 255, .5); }
.pl--il .pl__label { color: #8fb0ff; }
.pl--il .pl__go { --btn-bg: #0038b8; color: #fff; }
.pl__badge-david { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linejoin: round; }
/* Jewish Companion: one screen at a time; a tapped feature slides its screen in from the right */
.screen--jc { background: #f6f4ef; }
.pl .jca-page { transition: transform .55s cubic-bezier(.2, .8, .2, 1); }
.pl .jca-page--push { transform: translateX(100%); box-shadow: calc(var(--u) * -20) 0 calc(var(--u) * 40) rgba(0, 0, 0, .08); }
.pl .jca-page.is-under { transform: translateX(-30%); }
.pl .jca-page.is-on { transform: none; }
/* Game Hub */
.island { position: absolute; z-index: 4; top: 2.4%; left: 50%; width: 31%; height: 3.8%; transform: translateX(-50%); border-radius: 99px; background: #000; }
.sbar { position: relative; z-index: 3; display: flex; justify-content: space-between; padding: 5.2% 9% 0; font-weight: 600; font-size: .82em; }
.sbar__r { display: flex; gap: .3em; align-items: center; }
.sbar__r i { width: 1.5em; height: .7em; border: 1.5px solid currentColor; border-radius: .22em; opacity: .9; }
.screen__scroll { padding: 1.2em 1.1em 5em; }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; justify-content: space-around; padding: .9em .6em 1.5em; font-size: .62em; font-weight: 600; }
.tabbar span { display: grid; justify-items: center; gap: .35em; opacity: .55; }
.tabbar span::before { content: ""; width: 1.9em; height: 1.9em; border-radius: .55em; background: currentColor; opacity: .5; }
.tabbar .on { opacity: 1; }
.screen--gh { background: linear-gradient(180deg, #2a1245, #140a24 75%); color: #fff; }
.screen--gh .tabbar { background: rgba(20, 10, 36, .9); }
.screen--gh .tabbar .on { color: var(--candy); }
.gh__top { display: flex; justify-content: space-between; align-items: end; margin-bottom: .9em; }
.gh__top h4 { margin: 0; font: 800 1.9em/1 var(--f-display); letter-spacing: -.04em; }
.gh__top span { font-size: .7em; padding: .35em .7em; border-radius: 99px; background: rgba(255, 255, 255, .12); }
.gh__cont { border-radius: 1.1em; padding: 1em; background: linear-gradient(135deg, var(--candy), #ff9d5c); color: #2a0b1d; margin-bottom: 1em; display: flex; justify-content: space-between; align-items: center; }
.gh__cont b { display: block; font: 800 1.35em/1 var(--f-display); }
.gh__cont small { font-size: .72em; font-weight: 600; }
.gh__cont i { width: 2.4em; height: 2.4em; border-radius: 50%; background: #2a0b1d; display: grid; place-items: center; color: #fff; font-style: normal; font-size: .8em; }
.gh__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .55em; }
.gh__grid span { aspect-ratio: 1; border-radius: .8em; display: grid; place-items: center; font-size: 1.1em; background: hsl(var(--h) 75% 58%); color: rgba(255, 255, 255, .95); box-shadow: inset 0 -.2em 0 rgba(0, 0, 0, .18); }
@media (max-width: 860px) {
  .pl { grid-template-columns: 1fr; gap: 10px; }
  .pl__stage, .pl--flip .pl__stage { order: -1; min-height: min(104vw, 480px); }
  .pl__planet { width: 76%; }
  .pl__ring { width: 98%; }
  .pl-phone { --w: min(190px, 46vw); }
  .pl__badge { width: 92px; right: 0; top: 2%; } .pl--flip .pl__badge { left: 0; }
  .pl__num { font-size: 120px; top: -.3em; left: auto; right: 0; }
}

/* ---------- 4. call to action: a porthole onto the idea orb ---------- */
/* clipped sideways: the sky and the planets run past the screen edges, and anything wider than the screen made iOS
   Safari zoom the whole page out */
.ph, .pl-sec { overflow-x: clip; }
.ph { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 100px); align-items: center; padding-block: clamp(90px, 12vw, 170px); }
.ph > .sky { left: calc(50% - 50vw); right: calc(50% - 50vw); -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 80%, transparent); mask-image: linear-gradient(180deg, transparent, #000 25%, #000 80%, transparent); }
.ph__copy { display: grid; gap: 24px; justify-items: start; min-width: 0; }
.cta__status { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); }
.ph__t { margin: 0; font: 650 clamp(42px, 5.2vw, 88px)/1 var(--f-display); letter-spacing: -.04em; }
.ph__accent { display: block; font-size: 1.08em; line-height: 1.05; background: linear-gradient(90deg, #bdb3ff, #ff9ecf 55%, #ffd166); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .1em; }
.ph__lede { max-width: 44ch; color: var(--mute); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.6; }
.ph__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ph__window { position: relative; justify-self: center; width: min(100%, 470px); aspect-ratio: 1; }
.ph__glass { display: grid; place-items: center; height: 100%; }
.cta__orbit { display: block; width: 96%; height: auto; overflow: visible; }
.cta__track { fill: none; stroke: url(#ctaTrack); stroke-width: 1.2; }
.cta__track--dash { stroke: rgba(189, 179, 255, .35); stroke-dasharray: 2 7; }
.cta__ring { fill: none; stroke: rgba(189, 179, 255, .12); stroke-dasharray: 1 5; }
.cta__star { fill: #fff; opacity: .5; }
.cta__spark { transform-box: fill-box; transform-origin: center; animation: ph-spark 2.4s ease-in-out infinite alternate; }
@media (max-width: 860px) {
  .ph { grid-template-columns: 1fr; }
  .ph__window { order: -1; width: min(100%, 340px); }
}

/* the monkey floating in the middle of the who-I-am story */
@keyframes core-float { 50% { transform: translateY(-4%) rotate(-3deg); } }
/* a small wobble once after load, so the globe shows it can turn */
@keyframes ho-nudge { 0%, 100% { transform: none; } 30% { transform: rotateY(-22deg); } 65% { transform: rotateY(10deg); } }
@keyframes ph-spark { from { opacity: .6; transform: scale(.85) rotate(0deg); } to { opacity: 1; transform: scale(1.1) rotate(45deg); } }
@media (prefers-reduced-motion: reduce) {
  .cta__spark { animation: none; }
  .ho__ring, .ho__card { animation: none; }
  .ho__card { transition: none; }
}
