/* MyAffinity, the PLAYFIELD look: the title screen of a small, well-made game, in daylight.
   Sky, cream and ink, with coral, sunshine, mint and grape; thick ink outlines and chunky offset shadows,
   like stickers. Fredoka for headings, Nunito for reading.
   Motion lives under html.motion (set by js/pf-init.js before the first paint, never with reduced motion):
   without it, every word and every picture simply stands still, complete. */

:root {
  --sky: #8fd3ff;
  --sky-2: #c8ecff;
  --sky-3: #e8f7ff;
  --cream: #fff8ec;
  --paper: #fffdf8;
  --ink: #1b1838;
  --ink-2: #3d3868;
  --coral: #ff6b57;
  --sun: #ffc93c;
  --mint: #3dd6a3;
  --grape: #7a5cff;
  --grape-deep: #4b30cf;
  --coral-soft: #ffd9d1;
  --sun-soft: #ffecb0;
  --mint-soft: #ccf5e6;
  --grape-soft: #e2daff;
  --sky-soft: #d3f0ff;
  --cream-soft: #fff0d4;
  --display: 'Fredoka', 'Baloo 2', ui-rounded, 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --spring: cubic-bezier(.25, 1.6, .45, 1);
  --soft: cubic-bezier(.2, .8, .2, 1);
  --hh: 96px;
  --t-reveal: opacity .6s ease, translate .9s var(--spring), scale .9s var(--spring);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--cream);
  color: var(--ink);
  font: 400 18px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--grape-deep); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 4px solid var(--grape); outline-offset: 3px; border-radius: 10px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; color: var(--ink); text-wrap: balance; }
h2 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.04; letter-spacing: -0.01em; margin: 0 0 22px; }
h3 { font-size: 24px; line-height: 1.15; font-weight: 600; margin: 0 0 8px; }
p { text-wrap: pretty; }
.row { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }

.skip { position: absolute; left: -999px; top: 0; z-index: 100; }
.skip:focus { left: 16px; top: 16px; background: var(--paper); color: var(--ink); padding: 12px 16px; border: 3px solid var(--ink); border-radius: 12px; }

/* ---------- The header: a floating pill, like a game's top bar ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding: 14px 24px 0; height: var(--hh); pointer-events: none; }
.header-row {
  position: relative;
  pointer-events: auto;
  max-width: 1200px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 8px 10px 8px 16px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: 0 5px 0 var(--ink);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: var(--ink); text-decoration: none; font: 700 25px/1 var(--display); letter-spacing: -0.01em; border-radius: 12px; }
.brand-mark { width: 46px; height: 46px; flex: none; transition: transform .5s var(--spring); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.08); }
.brand-spark { transform-box: fill-box; transform-origin: center; }
.motion .brand-spark { animation: pf-twinkle 3.2s ease-in-out infinite; }
.menu { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.menu a:not(.button) { display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px; border-radius: 14px; color: var(--ink); text-decoration: none; font: 600 18px/1 var(--display); transition: background .2s, transform .3s var(--spring); }
.menu a:not(.button):hover { background: var(--sky-3); transform: translateY(-2px); }
.menu a[aria-current="page"] { background: var(--sun-soft); box-shadow: inset 0 0 0 3px var(--ink); }
.menu .button { margin-left: 8px; padding: 0 20px; min-height: 48px; font-size: 18px; box-shadow: 0 4px 0 var(--ink); }
.menu .button:hover { box-shadow: 0 6px 0 var(--ink); }
.menu .button:active { box-shadow: 0 0 0 var(--ink); }
/* the phone menu's checkbox: out of the way (and out of the tab order) wherever its label is not shown */
.menu-toggle { display: none; position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; pointer-events: none; }
.menu-button { display: none; }

/* ---------- Buttons: pressable, they squash when pressed ---------- */
.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: var(--sun) linear-gradient(180deg, rgb(255 255 255 / .45), rgb(255 255 255 / 0) 55%);
  color: var(--ink);
  font: 600 20px/1 var(--display);
  letter-spacing: .01em;
  text-decoration: none;
  box-shadow: 0 7px 0 var(--ink);
  transition: transform .18s var(--spring), box-shadow .18s ease, background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.button::before { content: ''; position: absolute; left: 12px; top: 7px; width: 22px; height: 7px; border-radius: 6px; background: rgb(255 255 255 / .75); }
.button:hover { color: var(--ink); transform: translateY(-3px); box-shadow: 0 10px 0 var(--ink); }
.button:active { transform: translateY(7px) scale(1.04, .92); box-shadow: 0 0 0 var(--ink); transition-duration: .06s; }
.button-quiet { background-color: var(--paper); }
.button-quiet::before { background: var(--sky-2); }
.actions { display: flex; flex-wrap: wrap; gap: 18px 16px; margin: 30px 0 0; }

/* ---------- Sky pieces shared by the hero and the title bands ---------- */
.cloud { position: absolute; width: 170px; height: 52px; border-radius: 40px; background: #fff; box-shadow: inset 0 -10px 0 #dcefff; }
.cloud::before, .cloud::after { content: ''; position: absolute; border-radius: 50%; background: #fff; }
.cloud::before { width: 72px; height: 72px; left: 26px; top: -38px; }
.cloud::after { width: 92px; height: 92px; left: 64px; top: -54px; }
.sun { position: absolute; border-radius: 50%; }

/* ---------- The hero: the title screen ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: clamp(660px, 100svh, 1040px);
  margin-top: calc(-1 * var(--hh));
  padding: calc(var(--hh) + 40px) 0 150px;
  background: linear-gradient(180deg, #74c6ff 0%, var(--sky) 34%, var(--sky-2) 76%, #eaf8ff 100%);
}
.hero-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-sky .sun {
  width: 1500px; height: 1500px; right: -330px; top: -330px;
  background: repeating-conic-gradient(from 0deg, rgb(255 255 255 / .2) 0 7deg, rgb(255 255 255 / 0) 7deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 0 20%, transparent 64%);
  mask: radial-gradient(circle, #000 0 20%, transparent 64%);
}
.hero-sky .sun::after { content: ''; position: absolute; left: 50%; top: 50%; width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 50%; background: radial-gradient(circle, #fff6cf 0 34%, rgb(255 233 160 / .55) 35% 52%, rgb(255 233 160 / 0) 70%); }
.hero-sky .cloud-a { left: 6%; top: 18%; scale: .8; opacity: .9; }
.hero-sky .cloud-b { left: 44%; top: 12%; scale: .55; opacity: .75; }
.hero-sky .cloud-c { right: 8%; top: 64%; scale: 1.1; }
.hero-sky .cloud-d { left: 30%; top: 82%; scale: .7; opacity: .8; }
.motion .hero-sky .sun { animation: pf-spin 140s linear infinite; }
.motion .hero-sky .cloud { animation: pf-drift 34s ease-in-out infinite alternate; }
.motion .hero-sky .cloud-b { animation-duration: 46s; animation-direction: alternate-reverse; }
.motion .hero-sky .cloud-c { animation-duration: 40s; }
.hero-world { position: absolute; inset: 0; z-index: 1; }
.world-still { position: absolute; right: max(16px, 3vw); top: 52%; translate: 0 -50%; width: min(52vw, 1000px); height: auto; }
.hero-world canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.hero-row { position: relative; z-index: 2; pointer-events: none; }
.hero-copy { max-width: 640px; }
.hero-copy > * { pointer-events: auto; }
.hero-ground {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 96px; z-index: 3; pointer-events: none;
  background:
    radial-gradient(circle at 50% 100%, var(--cream) 0 44px, transparent 45px) 30px 100% / 120px 70px repeat-x,
    radial-gradient(circle at 50% 100%, #fff 0 62px, transparent 63px) 0 100% / 150px 96px repeat-x,
    linear-gradient(var(--cream), var(--cream)) 0 100% / 100% 18px no-repeat;
}
.eyebrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; font: 600 15px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; }
.eyebrow .tag { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); }
.eyebrow .sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.tag-coral { background: var(--coral); rotate: -3deg; }
.tag-sun { background: var(--sun); rotate: 2deg; }
.tag-mint { background: var(--mint); rotate: -1.5deg; }
.tag-grape { background: #6a4cf0; color: #fff; rotate: 3deg; }
.headline { font-size: clamp(46px, 5.6vw, 98px); line-height: .98; letter-spacing: -0.02em; margin: 0 0 24px; text-shadow: 0 5px 0 rgb(255 255 255 / .8); }
.headline .w { display: inline-block; }
.w-hl { position: relative; z-index: 0; }
.w-hl::before { content: ''; position: absolute; z-index: -1; left: -.12em; right: -.12em; top: .2em; bottom: .02em; border-radius: .22em; background: var(--sun); border: 3px solid var(--ink); rotate: -2deg; box-shadow: 0 5px 0 var(--ink); }
.motion .headline .w { animation: pf-word .95s var(--spring) both; }
.motion .headline .w:nth-child(2) { animation-delay: .06s; }
.motion .headline .w:nth-child(3) { animation-delay: .12s; }
.motion .headline .w:nth-child(4) { animation-delay: .18s; }
.motion .headline .w:nth-child(5) { animation-delay: .24s; }
.motion .headline .w:nth-child(6) { animation-delay: .3s; }
.motion .headline .w:nth-child(7) { animation-delay: .36s; }
.motion .headline .w:nth-child(8) { animation-delay: .42s; }
.motion .w-hl::before { animation: pf-marker .7s .55s var(--spring) both; }
.lead { font-size: clamp(19px, 1.45vw, 22px); line-height: 1.6; color: var(--ink-2); max-width: 36em; margin: 0; }
.hero .lead { font-weight: 600; }
.motion .hero .eyebrow .tag { animation: pf-drop .7s var(--spring) both; }
.motion .hero .eyebrow .tag:nth-child(3) { animation-delay: .08s; }
.motion .hero .eyebrow .tag:nth-child(5) { animation-delay: .16s; }
.motion .hero .eyebrow .tag:nth-child(7) { animation-delay: .24s; }
.motion .hero .lead, .motion .hero .actions { animation: pf-rise .8s .35s var(--soft) both; }
.motion .hero .actions { animation-delay: .5s; }
.world-hint { position: absolute; z-index: 4; left: 50%; top: 0; margin: 0; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--paper); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 0 4px 0 var(--ink); font: 600 15px/1 var(--display); color: var(--ink); white-space: nowrap; pointer-events: none; transition: opacity .5s, translate .5s var(--spring); }
.world-hint kbd { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 4px; border: 2px solid var(--ink); border-bottom-width: 4px; border-radius: 7px; background: var(--sky-3); font: 700 13px/1 var(--display); }
.world-hint.gone { opacity: 0; translate: -50% 12px; }

/* ---------- Section heads and labels ---------- */
.band { position: relative; padding: 110px 0; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.label { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 6px 16px 6px 6px; background: var(--paper); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 0 4px 0 var(--ink); font: 600 15px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.label-num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--sun); font-size: 14px; letter-spacing: 0; }

/* ---------- Six services: a level select ---------- */
.services-band { background: radial-gradient(rgb(27 24 56 / .07) 2px, transparent 2.6px) 0 0 / 28px 28px, var(--cream); padding-top: 70px; }
.service-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.service-card {
  --tile: var(--sky-soft);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 0 26px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: 0 9px 0 var(--ink);
  transition: var(--t-reveal), transform .35s var(--spring), box-shadow .3s ease;
}
.tile-coral { --tile: var(--coral-soft); --tile-2: var(--coral); }
.tile-sun { --tile: var(--sun-soft); --tile-2: var(--sun); }
.tile-grape { --tile: var(--grape-soft); --tile-2: var(--grape); }
.tile-mint { --tile: var(--mint-soft); --tile-2: var(--mint); }
.tile-sky { --tile: var(--sky-soft); --tile-2: var(--sky); }
.tile-cream { --tile: var(--cream-soft); --tile-2: var(--sun); }
.tile-stage { position: relative; overflow: hidden; height: 178px; display: grid; place-items: center; border-bottom: 3px solid var(--ink); border-radius: 25px 25px 0 0; background: var(--tile); }
.tile-stage::before { content: ''; position: absolute; left: 50%; top: 50%; width: 520px; height: 520px; margin: -260px 0 0 -260px; background: repeating-conic-gradient(rgb(255 255 255 / .55) 0 9deg, rgb(255 255 255 / 0) 9deg 22deg); transition: rotate 1.2s var(--soft); }
.tile-stage::after { content: ''; position: absolute; left: 50%; bottom: 22px; width: 104px; height: 16px; margin-left: -52px; border-radius: 50%; background: rgb(27 24 56 / .16); transition: scale .35s var(--spring); }
.tile-stage .ico { position: relative; z-index: 1; width: 118px; height: 118px; margin-top: -10px; transition: transform .45s var(--spring); }
.service-card h3 { margin: 24px 26px 8px; font-size: 25px; }
.service-card h3 a { color: var(--ink); text-decoration: none; }
.service-card h3 a::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: 26px; }
.service-card h3 a:focus-visible { outline: none; }
.service-card:has(a:focus-visible) { outline: 4px solid var(--grape); outline-offset: 5px; }
.service-card p { margin: 0 26px; padding-right: 44px; color: var(--ink-2); font-size: 17px; }
.tile-go { position: absolute; right: 20px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; background: var(--tile-2); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); transition: transform .3s var(--spring); }
.tile-go::after { content: ''; position: absolute; left: 15px; top: 11px; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent var(--ink); }
.service-card:hover { transform: translateY(-10px) rotate(-1.2deg); box-shadow: 0 19px 0 var(--ink); }
.service-card:nth-child(even):hover { transform: translateY(-10px) rotate(1.2deg); }
.service-card:hover .ico { animation: pf-wobble .7s ease-in-out; transform: translateY(-8px) scale(1.06); }
.service-card:hover .tile-stage::before { rotate: 40deg; }
.service-card:hover .tile-stage::after { scale: .78; }
.service-card:hover .tile-go { transform: translateX(4px) scale(1.08); }
.service-card:active { transform: translateY(5px) scale(.985); box-shadow: 0 3px 0 var(--ink); transition-duration: .08s; }

/* ---------- AI band: a robot helper and its quest log ---------- */
.ai-band { color: var(--cream); background: radial-gradient(rgb(255 255 255 / .09) 2px, transparent 2.6px) 0 0 / 30px 30px, linear-gradient(160deg, #5a3ee6 0%, var(--grape-deep) 55%, #3b24ae 100%); }
.ai-band::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 40px; background: radial-gradient(circle at 50% 0, var(--cream) 0 30px, transparent 31px) 0 0 / 80px 40px repeat-x; }
.ai-band h2 { color: #fff; }
.ai-copy > p:not(.label) { color: #f3efff; font-size: 19px; }
.ai-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 72px; align-items: center; }
.label-light { box-shadow: 0 4px 0 #1f1466; }
.quest-board { position: relative; margin: 70px 30px 0 0; padding: 74px 34px 26px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 28px; box-shadow: 10px 12px 0 #1f1466; rotate: 1deg; transition: var(--t-reveal); }
.quest-title { position: absolute; left: 26px; top: -22px; margin: 0; padding: 10px 18px; background: var(--sun); border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); font: 600 17px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); rotate: -3deg; }
.robot { position: absolute; right: -54px; top: -142px; width: 190px; height: 225px; overflow: visible; }
.robot * { transform-box: view-box; }
.robot-arm-l { transform-origin: 74px 162px; }
.robot-head { transform-origin: 110px 136px; }
.robot-eye { transform-box: fill-box; transform-origin: center; }
.robot-jet { transform-box: fill-box; transform-origin: 50% 0; }
.robot-light, .robot-core { transform-box: fill-box; transform-origin: center; }
.motion .robot-bob { animation: pf-bob 3.2s ease-in-out infinite; }
.motion .robot-shadow { transform-box: fill-box; transform-origin: center; animation: pf-shadow 3.2s ease-in-out infinite; }
.motion .robot-arm-l { animation: pf-wave 2.6s ease-in-out infinite; }
.motion .robot-eye { animation: pf-blink 4.5s infinite; }
.motion .robot-jet { animation: pf-jet .18s ease-in-out infinite alternate; }
.motion .robot-light { animation: pf-pulse 1.6s ease-in-out infinite; }
.quest-board.zap .robot-head { animation: pf-nod .5s var(--spring); }
.quest-board.zap .robot-core { animation: pf-zap .5s ease-out; }
.ai-examples { list-style: none; margin: 0; padding: 0; }
.ai-examples li { display: flex; align-items: flex-start; gap: 16px; padding: 15px 4px; border-bottom: 3px dashed rgb(27 24 56 / .14); font-size: 18px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.ai-examples li:last-child { border-bottom: 0; }
.quest-box { position: relative; flex: none; width: 32px; height: 32px; margin-top: -2px; border: 3px solid var(--ink); border-radius: 10px; background: var(--mint); box-shadow: 0 3px 0 var(--ink); transition: background .25s; }
.quest-box::after { content: ''; position: absolute; left: 9px; top: 3px; width: 8px; height: 15px; border: solid var(--ink); border-width: 0 4px 4px 0; rotate: 42deg; transition: scale .4s var(--spring), opacity .2s; }
.motion .ai-examples li:not(.done) .quest-box { background: var(--paper); }
.motion .ai-examples li:not(.done) .quest-box::after { scale: 0; opacity: 0; }
.motion .ai-examples li .quest-text { transition: color .3s; }
.motion .ai-examples li:not(.done) .quest-text { color: var(--ink-2); }
.motion .ai-examples li.done .quest-box { animation: pf-check .5s var(--spring); }

/* ---------- How we work: a quest map that fills as you scroll ---------- */
.process-band { background: linear-gradient(180deg, var(--sky-3), #f4fbff); overflow: hidden; }
.process-band::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 40px; background: radial-gradient(circle at 50% 0, #3b24ae 0 30px, transparent 31px) 0 0 / 80px 40px repeat-x; }
.quest-map { --p: 1; position: relative; }
.motion .quest-map { --p: 0; }
.map-path { position: absolute; left: 0; top: 0; width: 100%; height: 170px; overflow: visible; pointer-events: none; }
.map-tall { display: none; }
.trail { fill: none; stroke: var(--ink); stroke-opacity: .32; stroke-width: 7; stroke-linecap: round; stroke-dasharray: 0 19; vector-effect: non-scaling-stroke; }
.trail-fill { fill: none; stroke: var(--coral); stroke-width: 11; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.map-fill.map-wide { clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); }
.map-fill.map-tall { clip-path: inset(0 0 calc((1 - var(--p)) * 100%) 0); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; position: relative; }
.step { --fy: 51px; position: relative; padding-top: 196px; text-align: center; }
.step-2, .step-4 { --fy: 119px; }
.step-1 { --c: var(--coral); } .step-2 { --c: var(--sun); } .step-3 { --c: var(--mint); } .step-4 { --c: var(--grape); }
.flag { position: absolute; left: 50%; top: calc(var(--fy) - 74px); width: 6px; height: 76px; margin-left: -3px; border-radius: 3px; background: var(--ink); }
.flag::before { content: ''; position: absolute; left: 50%; bottom: -8px; width: 34px; height: 16px; margin-left: -17px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); }
.flag::after { content: ''; position: absolute; left: 50%; top: -9px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); }
.flag-cloth { position: absolute; left: 5px; top: 6px; width: 54px; height: 36px; background: var(--c); border: 3px solid var(--ink); border-left: 0; border-radius: 0 10px 10px 0; transform-origin: 0 50%; transition: scale .5s var(--spring), background-color .3s, translate .5s var(--spring); }
.flag-cloth::after { content: ''; position: absolute; left: 12px; top: 8px; width: 14px; height: 14px; border-radius: 50%; background: rgb(255 255 255 / .7); }
.motion .step.reached .flag-cloth { animation: pf-flap 1.8s ease-in-out .5s infinite; }
.motion .step:not(.reached) .flag-cloth { background: #dcd8ec; translate: 0 34px; scale: .55 .7; }
.step h3 { font-size: 28px; margin-bottom: 10px; }
.step p { margin: 0 auto; max-width: 17em; color: var(--ink-2); font-size: 17px; }

/* ---------- Things we have built: trading cards that tilt ---------- */
.work-band { background: repeating-linear-gradient(135deg, rgb(255 201 60 / .1) 0 18px, transparent 18px 36px), var(--cream); }
.work-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; perspective: 1000px; }
.card {
  --c-soft: var(--sky-soft);
  display: flex;
  flex-direction: column;
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%;
  position: relative;
  padding: 10px;
  background: var(--c);
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: 0 9px 0 var(--ink);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: var(--t-reveal), transform .5s var(--soft), box-shadow .3s ease;
}
.card.tilting { transition: var(--t-reveal), transform .08s linear, box-shadow .3s ease; }
.card-coral { --c: var(--coral); --c-soft: var(--coral-soft); }
.card-grape { --c: var(--grape); --c-soft: var(--grape-soft); }
.card-sun { --c: var(--sun); --c-soft: var(--sun-soft); }
.card-mint { --c: var(--mint); --c-soft: var(--mint-soft); }
.card-art::after { content: ''; position: absolute; inset: 0; border-radius: 13px; pointer-events: none; opacity: 0; background: radial-gradient(circle at var(--mx) var(--my), rgb(255 255 255 / .55), rgb(255 255 255 / 0) 45%), linear-gradient(115deg, rgb(255 255 255 / 0) 30%, rgb(255 255 255 / .35) 45%, rgb(122 92 255 / .18) 55%, rgb(255 255 255 / 0) 70%); transition: opacity .35s; }
.card:hover { box-shadow: 0 16px 0 var(--ink); }
.card:hover .card-art::after { opacity: 1; }
.card-art { flex: none; position: relative; overflow: hidden; height: 156px; display: grid; place-items: center; background: radial-gradient(rgb(255 255 255 / .6) 2px, transparent 2.6px) 0 0 / 16px 16px, var(--c-soft); border: 3px solid var(--ink); border-radius: 16px; }
.card-art .ico { width: 150px; height: 120px; transition: transform .5s var(--spring); }
.card:hover .card-art .ico { transform: scale(1.08) translateY(-4px); }
.card-body { margin-top: 10px; padding: 18px 18px 20px; background: var(--paper); border: 3px solid var(--ink); border-radius: 16px; flex: 1; }
.card-body h3 { font-size: 22px; }
.card-body p { margin: 0; font-size: 16px; color: var(--ink-2); }

/* ---------- Why work with us: four power-ups ---------- */
.why-band { background: radial-gradient(rgb(27 24 56 / .07) 2px, transparent 2.6px) 0 0 / 28px 28px, var(--mint-soft); }
.principles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.power { position: relative; text-align: center; padding: 8px 8px 0; transition: var(--t-reveal); }
.power-grape { --c: var(--grape-soft); } .power-mint { --c: #a6f0d5; } .power-coral { --c: var(--coral-soft); } .power-sun { --c: var(--sun-soft); }
.orb { position: relative; display: grid; place-items: center; width: 136px; height: 136px; margin: 0 auto 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 14%, var(--c) 40%); border: 3px solid var(--ink); box-shadow: 0 7px 0 var(--ink), inset 0 -10px 0 rgb(27 24 56 / .08); transition: transform .5s var(--spring); }
.orb::before { content: ''; position: absolute; inset: -14px; border-radius: 50%; border: 3px dashed rgb(27 24 56 / .25); }
.orb::after { content: ''; position: absolute; right: -6px; top: 4px; width: 22px; height: 22px; background: var(--sun); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.orb .ico { width: 84px; height: 84px; }
.motion .orb { animation: pf-float 3.6s ease-in-out infinite; }
.motion .power:nth-child(2) .orb { animation-delay: -.9s; }
.motion .power:nth-child(3) .orb { animation-delay: -1.8s; }
.motion .power:nth-child(4) .orb { animation-delay: -2.7s; }
.motion .orb::before { animation: pf-spin 18s linear infinite; }
.motion .orb::after { animation: pf-twinkle 2.4s ease-in-out infinite; }
.power:hover .orb .ico { animation: pf-spin-y .8s var(--soft); }
.power h3 { font-size: 24px; }
.power p { margin: 0 auto; max-width: 17em; color: var(--ink-2); font-size: 17px; }

/* ---------- Closing band: press start ---------- */
.cta-band { color: var(--cream); text-align: center; padding: 130px 0 170px; background: radial-gradient(ellipse 80% 70% at 50% 115%, #6a4cf0 0%, #3b24ae 40%, #221a63 72%, #171238 100%); }
.cta-band::before { content: ''; position: absolute; left: 0; right: 0; top: -30px; height: 31px; z-index: 1; background: radial-gradient(circle at 50% 100%, #171238 0 30px, transparent 31px) 0 0 / 80px 31px repeat-x; }
.cta-row { position: relative; z-index: 2; max-width: 860px; }
.press-start { display: inline-block; margin: 0 0 22px; padding: 10px 20px; border: 3px solid var(--sun); border-radius: 12px; color: var(--sun); font: 700 18px/1 var(--display); letter-spacing: .32em; text-transform: uppercase; text-indent: .32em; }
.motion .press-start { animation: pf-blink-text 2.8s ease-in-out infinite; }
.cta-band h2 { color: #fff; font-size: clamp(42px, 6vw, 86px); text-shadow: 0 6px 0 #120d33; }
.cta-row > p:not(.press-start):not(.actions) { color: #ece8ff; font-size: 20px; max-width: 36em; margin: 0 auto; }
.cta-band .actions { justify-content: center; margin-top: 36px; }
.cta-band .button { box-shadow: 0 7px 0 #0d0a26; border-color: #0d0a26; }
.cta-band .button:hover { box-shadow: 0 10px 0 #0d0a26; }
.cta-band .button-quiet { color: var(--ink); }
.night { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.star { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 2px rgb(255 255 255 / .55); }
.s1 { left: 8%; top: 18%; } .s2 { left: 22%; top: 58%; width: 4px; height: 4px; } .s3 { left: 36%; top: 12%; } .s4 { left: 64%; top: 20%; width: 4px; height: 4px; }
.s5 { left: 78%; top: 52%; } .s6 { left: 90%; top: 14%; width: 8px; height: 8px; } .s7 { left: 52%; top: 84%; width: 4px; height: 4px; } .s8 { left: 12%; top: 86%; }
.motion .star { animation: pf-twinkle 2.8s ease-in-out infinite; }
.motion .s2, .motion .s5, .motion .s8 { animation-delay: -1.2s; }
.motion .s3, .motion .s6 { animation-delay: -2s; }
.night-island { position: absolute; width: 220px; height: 143px; }
.ni-1 { left: 5%; bottom: 70px; }
.ni-2 { right: 6%; top: 90px; width: 150px; height: 98px; }
.night-hopper { position: absolute; left: calc(5% + 84px); bottom: 178px; width: 56px; height: 56px; }
.motion .ni-1, .motion .night-hopper { animation: pf-bob 4.2s ease-in-out infinite; }
.motion .ni-2 { animation: pf-bob 5s ease-in-out -1.5s infinite; }

/* ---------- The footer: solid ground ---------- */
.site-footer { position: relative; padding: 70px 0 56px; background: var(--ink); color: #d9d5f5; font-size: 16px; }
.footer-ground { position: absolute; left: 0; right: 0; top: -14px; height: 34px; background: radial-gradient(circle at 50% 0, var(--mint) 0 13px, transparent 14px) 0 12px / 34px 28px repeat-x, linear-gradient(var(--mint), var(--mint)) 0 0 / 100% 16px no-repeat; border-top: 3px solid var(--ink); }
.footer-row { display: grid; grid-template-columns: 1.3fr 2fr 1.2fr; gap: 28px 40px; align-items: start; }
.footer-brand { margin: 0; line-height: 1.5; }
.footer-brand strong { display: inline-block; margin-bottom: 4px; color: #fff; font: 700 24px/1.2 var(--display); }
.footer-mark { float: left; width: 54px; height: 54px; margin: 0 14px 6px 0; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.footer-menu a, .footer-contact a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 12px; color: #fff; text-decoration: none; font: 600 17px/1 var(--display); }
.footer-menu a:hover, .footer-contact a:hover { background: rgb(255 255 255 / .1); color: var(--sun); }
.footer-contact { margin: 0; }
.footer-contact a { padding: 0 16px; border: 3px solid #fff; color: #fff; }
.footer-legal { grid-column: 1 / -1; margin: 18px 0 0; padding-top: 22px; border-top: 2px dashed rgb(255 255 255 / .16); font-size: 15px; color: #c3bfe6; }
.site-footer :focus-visible { outline-color: var(--sun); }

/* ---------- Title bands (every page but home) ---------- */
.title-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: calc(-1 * var(--hh));
  padding: calc(var(--hh) + 84px) 0 150px;
  background: linear-gradient(180deg, #74c6ff 0%, var(--sky) 40%, var(--sky-2) 100%);
}
.title-band::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 96px; z-index: 1; pointer-events: none;
  background:
    radial-gradient(circle at 50% 100%, var(--cream) 0 44px, transparent 45px) 30px 100% / 120px 70px repeat-x,
    radial-gradient(circle at 50% 100%, #fff 0 62px, transparent 63px) 0 100% / 150px 96px repeat-x,
    linear-gradient(var(--cream), var(--cream)) 0 100% / 100% 18px no-repeat;
}
.title-band .row { position: relative; z-index: 2; }
.title-band h1 { font-size: clamp(50px, 7vw, 108px); line-height: .95; letter-spacing: -0.02em; margin: 0 0 22px; text-shadow: 0 5px 0 rgb(255 255 255 / .8); max-width: 12em; }
.title-band .lead { font-weight: 600; }
.motion .title-band h1 { animation: pf-word .9s var(--spring) both; }
.motion .title-band .lead, .motion .title-band .actions, .motion .title-band .service-index { animation: pf-rise .8s .2s var(--soft) both; }
.sky-deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sky-deco .cloud-a { right: 10%; top: 30%; }
.sky-deco .cloud-b { right: 32%; top: 62%; scale: .6; opacity: .85; }
.sky-deco .cloud-c { left: 54%; top: 16%; scale: .45; opacity: .7; }
.motion .sky-deco .cloud { animation: pf-drift 30s ease-in-out infinite alternate; }
.motion .sky-deco .cloud-b { animation-duration: 40s; animation-direction: alternate-reverse; }
.sky-island { position: absolute; z-index: 1; right: 7%; top: calc(var(--hh) + 40px); width: 300px; height: 300px; pointer-events: none; }
.sky-island .isl { position: absolute; left: 0; bottom: 0; width: 300px; height: 195px; }
.sky-island .ico, .sky-island .hop { position: absolute; left: 50%; }
.sky-island .ico { width: 150px; height: 150px; margin-left: -75px; bottom: 150px; }
.sky-island .hop { width: 84px; height: 84px; margin-left: -42px; bottom: 156px; }
.motion .sky-island { animation: pf-bob 4.6s ease-in-out infinite; }
.motion .sky-island .hop { animation: pf-hop 2.4s var(--soft) infinite; }
.sheet-label { display: inline-block; margin: 0 0 18px; padding: 8px 16px; background: var(--paper); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); font: 600 15px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; rotate: -2deg; }

/* ---------- Services page ---------- */
.service-index { display: flex; flex-wrap: wrap; gap: 14px 12px; margin-top: 34px; max-width: 760px; }
.service-index a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border: 3px solid var(--ink); border-radius: 14px; background: var(--paper); box-shadow: 0 4px 0 var(--ink); color: var(--ink); text-decoration: none; font: 600 17px/1 var(--display); transition: transform .2s var(--spring), box-shadow .2s, background-color .2s; }
.service-index a:nth-child(1):hover { background: var(--coral-soft); }
.service-index a:nth-child(2):hover { background: var(--sun-soft); }
.service-index a:nth-child(3):hover { background: var(--grape-soft); }
.service-index a:nth-child(4):hover { background: var(--mint-soft); }
.service-index a:nth-child(5):hover { background: var(--sky-soft); }
.service-index a:nth-child(6):hover { background: var(--cream-soft); }
.service-index a:hover { transform: translateY(-3px); box-shadow: 0 7px 0 var(--ink); }
.service-index a:active { transform: translateY(4px) scale(1.03, .94); box-shadow: 0 0 0 var(--ink); }
.service { --tile: var(--sky-soft); --tile-2: var(--sky); }
.service:nth-of-type(odd) { background: var(--paper); }
.service:nth-of-type(even) { background: radial-gradient(rgb(27 24 56 / .06) 2px, transparent 2.6px) 0 0 / 28px 28px, var(--cream); }
.service-row { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 72px; align-items: start; }
.service-stage { position: sticky; top: 130px; height: 380px; border: 3px solid var(--ink); border-radius: 30px; box-shadow: 0 10px 0 var(--ink); background: var(--tile); overflow: hidden; transition: var(--t-reveal); }
.service-stage::before { content: ''; position: absolute; left: 50%; top: 42%; width: 760px; height: 760px; margin: -380px 0 0 -380px; background: repeating-conic-gradient(rgb(255 255 255 / .5) 0 8deg, rgb(255 255 255 / 0) 8deg 20deg); }
.motion .service-stage::before { animation: pf-spin 90s linear infinite; }
.service-stage .isl { position: absolute; left: 50%; bottom: 34px; width: 250px; height: 163px; margin-left: -125px; }
.service-stage .ico { position: absolute; left: 50%; bottom: 150px; width: 160px; height: 160px; margin-left: -80px; }
.motion .service-stage .isl, .motion .service-stage .ico { animation: pf-bob 4.4s ease-in-out infinite; }
.motion .service-stage .ico { animation-delay: -.25s; }
.stage-num { position: absolute; left: 20px; top: 20px; z-index: 1; display: inline-grid; place-items: center; min-width: 52px; height: 40px; padding: 0 10px; background: var(--paper); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); font: 700 18px/1 var(--display); }
.service h2 { font-size: clamp(36px, 4vw, 56px); }
.service .lead { color: var(--ink); font-size: 22px; font-weight: 700; margin-bottom: 14px; }
.service-copy > p { color: var(--ink-2); max-width: 40em; }
.included { list-style: none; margin: 30px 0 0; padding: 22px 26px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 26px; background: var(--paper); border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); }
.included li { position: relative; padding-left: 34px; font-weight: 600; line-height: 1.45; }
.included li::before { content: ''; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l2.9 6.2 6.8.8-5 4.6 1.3 6.7L12 16.8l-6 3.3 1.3-6.7-5-4.6 6.8-.8z' fill='%23ffc93c' stroke='%231b1838' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.svc-coral { --tile: var(--coral-soft); } .svc-sun { --tile: var(--sun-soft); } .svc-grape { --tile: var(--grape-soft); }
.svc-mint { --tile: var(--mint-soft); } .svc-sky { --tile: var(--sky-soft); } .svc-cream { --tile: var(--cream-soft); }

/* ---------- About ---------- */
.story-band { background: var(--cream); padding-top: 60px; }
.story-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.story-sheet { padding: 44px 46px; background: var(--paper); border: 3px solid var(--ink); border-radius: 28px; box-shadow: 0 10px 0 var(--ink); transition: var(--t-reveal); }
.story-sheet p { font-size: 20px; line-height: 1.7; margin: 0 0 18px; }
.story-sheet p:last-child { margin-bottom: 0; }
.orbit { position: relative; width: min(100%, 460px); aspect-ratio: 1; margin: 0 auto; }
.orbit-rings { position: absolute; inset: 22%; width: 56%; height: 56%; }
.orbit-path { position: absolute; inset: 4%; border-radius: 50%; border: 3px dashed rgb(27 24 56 / .25); }
.orbit-spin { position: absolute; inset: 0; }
.orbit-spin .moon { position: absolute; width: 74px; height: 74px; margin: -37px 0 0 -37px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.orbit-spin .moon .ico { width: 50px; height: 50px; }
.moon-1 { left: 50%; top: 4%; } .moon-2 { left: 89.8%; top: 27%; } .moon-3 { left: 89.8%; top: 73%; }
.moon-4 { left: 50%; top: 96%; } .moon-5 { left: 10.2%; top: 73%; } .moon-6 { left: 10.2%; top: 27%; }
.motion .orbit-spin { animation: pf-spin 60s linear infinite; }
.motion .orbit-spin .moon { animation: pf-spin 60s linear infinite reverse; }
.motion .orbit-rings { animation: pf-float 4s ease-in-out infinite; }

/* ---------- Contact ---------- */
.contact-band { background: var(--cream); padding-top: 60px; }
.contact-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.contact-panel { position: relative; padding: 44px 44px 48px; background: var(--paper); border: 3px solid var(--ink); border-radius: 30px; box-shadow: 0 10px 0 var(--ink); transition: var(--t-reveal); }
.contact-email { margin: 0 0 8px; font: 700 clamp(22px, 3vw, 36px)/1.2 var(--display); }
.contact-email a { display: inline-flex; align-items: center; min-height: 72px; max-width: 100%; padding: 12px 26px; border: 3px solid var(--ink); border-radius: 20px; background: var(--sun) linear-gradient(180deg, rgb(255 255 255 / .45), rgb(255 255 255 / 0) 55%); box-shadow: 0 8px 0 var(--ink); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; transition: transform .18s var(--spring), box-shadow .18s; }
.contact-email a:hover { transform: translateY(-3px); box-shadow: 0 11px 0 var(--ink); }
.contact-email a:active { transform: translateY(8px) scale(1.02, .94); box-shadow: 0 0 0 var(--ink); }
.helps-panel { padding: 36px 36px 30px; background: var(--mint-soft); border: 3px solid var(--ink); border-radius: 28px; box-shadow: 0 8px 0 var(--ink); rotate: 1deg; transition: var(--t-reveal); }
.helps-panel h3 { font-size: 26px; margin-bottom: 14px; }
.helps { list-style: none; margin: 0; padding: 0; }
.helps li { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; font-weight: 600; border-bottom: 3px dashed rgb(27 24 56 / .14); }
.helps li:last-child { border-bottom: 0; }
/* a star, as on the services page: these are things to mention, not boxes to fill in */
.helps .quest-box { width: 26px; height: 26px; margin-top: 0; border: 0; border-radius: 0; box-shadow: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.8l2.9 6.2 6.8.8-5 4.6 1.3 6.7L12 16.8l-6 3.3 1.3-6.7-5-4.6 6.8-.8z' fill='%23ffc93c' stroke='%231b1838' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.helps .quest-box::after { display: none; }
.mail-hopper { position: absolute; right: 26px; top: -64px; width: 96px; height: 96px; }
.motion .mail-hopper { animation: pf-hop 2.6s var(--soft) infinite; }

/* ---------- Plain pages (privacy, terms) and the 404 ---------- */
.title-band-calm { padding-bottom: 130px; }
.sheet-band { padding-top: 40px; }
.sheet { max-width: 820px; margin: 0 auto; padding: 52px 56px 56px; background: var(--paper); border: 3px solid var(--ink); border-radius: 28px; box-shadow: 0 10px 0 var(--ink); font-size: 18px; line-height: 1.75; }
.sheet h2 { font-size: 30px; margin: 40px 0 10px; }
.sheet h2::before { content: ''; display: inline-block; width: 16px; height: 16px; margin: 0 12px 3px 0; border: 3px solid var(--ink); border-radius: 5px; background: var(--mint); rotate: 45deg; }
.sheet > p:first-child { margin-top: 0; }
.sheet p { margin: 0 0 16px; color: var(--ink); }
.not-found .title-band { min-height: clamp(620px, 92svh, 900px); display: flex; align-items: center; }
.not-found .sky-island { top: auto; bottom: 120px; }
/* the 404 has no section under its band: its sky meets the footer's grass, with no cream scallops between */
.not-found .title-band::after { display: none; }

/* ---------- Arrivals (only with motion) ---------- */
.motion .reveal { opacity: 0; translate: 0 34px; scale: .96; }
.motion .reveal.in { opacity: 1; translate: 0 0; scale: 1; }
.motion .service-card.reveal:nth-child(3n+2) { transition-delay: .08s, .08s, .08s, 0s, 0s; }
.motion .service-card.reveal:nth-child(3n) { transition-delay: .16s, .16s, .16s, 0s, 0s; }
.motion .card.reveal:nth-child(2), .motion .power.reveal:nth-child(2) { transition-delay: .08s, .08s, .08s, 0s, 0s; }
.motion .card.reveal:nth-child(3), .motion .power.reveal:nth-child(3) { transition-delay: .16s, .16s, .16s, 0s, 0s; }
.motion .card.reveal:nth-child(4), .motion .power.reveal:nth-child(4) { transition-delay: .24s, .24s, .24s, 0s, 0s; }

/* ---------- Keyframes ---------- */
@keyframes pf-word { 0% { transform: translateY(.42em) scale(.72) rotate(-5deg); } 55% { transform: translateY(-.1em) scale(1.06) rotate(2deg); } 100% { transform: none; } }
@keyframes pf-marker { 0% { scale: 0 1; } 100% { scale: 1 1; } }
@keyframes pf-drop { 0% { translate: 0 -40px; } 100% { translate: 0 0; } }
@keyframes pf-rise { 0% { opacity: 0; translate: 0 24px; } 100% { opacity: 1; translate: 0 0; } }
@keyframes pf-spin { to { rotate: 360deg; } }
@keyframes pf-spin-y { 0% { transform: rotateY(0); } 100% { transform: rotateY(360deg); } }
@keyframes pf-drift { 0% { translate: -40px 0; } 100% { translate: 60px 6px; } }
@keyframes pf-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes pf-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes pf-shadow { 0%, 100% { scale: 1; opacity: .18; } 50% { scale: .8; opacity: .1; } }
@keyframes pf-wave { 0%, 60%, 100% { rotate: 0deg; } 70% { rotate: -14deg; } 80% { rotate: 8deg; } 90% { rotate: -10deg; } }
@keyframes pf-blink { 0%, 92%, 100% { scale: 1 1; } 95% { scale: 1 .1; } }
@keyframes pf-jet { 0% { scale: 1 .85; } 100% { scale: .9 1.15; } }
@keyframes pf-pulse { 0%, 100% { scale: 1; } 50% { scale: 1.18; } }
@keyframes pf-nod { 0% { rotate: 0deg; } 40% { rotate: -8deg; } 100% { rotate: 0deg; } }
@keyframes pf-zap { 0% { scale: 1; fill: #ff6b57; } 30% { scale: 1.7; fill: #ffc93c; } 100% { scale: 1; fill: #ff6b57; } }
@keyframes pf-check { 0% { scale: 1; } 40% { scale: 1.3 .8; } 70% { scale: .9 1.1; } 100% { scale: 1; } }
@keyframes pf-flap { 0%, 100% { transform: skewY(0deg) scaleX(1); } 50% { transform: skewY(-5deg) scaleX(.93); } }
@keyframes pf-wobble { 0% { rotate: 0deg; } 25% { rotate: -8deg; } 50% { rotate: 6deg; } 75% { rotate: -3deg; } 100% { rotate: 0deg; } }
@keyframes pf-twinkle { 0%, 100% { scale: 1; opacity: 1; } 50% { scale: .55; opacity: .55; } }
@keyframes pf-blink-text { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes pf-hop { 0%, 55%, 100% { translate: 0 0; scale: 1 1; } 62% { translate: 0 0; scale: 1.12 .86; } 75% { translate: 0 -26px; scale: .92 1.08; } 88% { translate: 0 0; scale: 1.1 .9; } }

/* ---------- Tablets ---------- */
@media (max-width: 1200px) {
  .hero-copy { max-width: min(640px, 50vw); }
}
@media (max-width: 1000px) {
  .hero { display: block; min-height: 0; padding: calc(var(--hh) + 400px) 0 140px; }
  .hero-copy { max-width: 640px; }
  .hero-world { bottom: auto; top: var(--hh); height: 390px; }
  .world-still { right: auto; left: 50%; top: 50%; translate: -50% -50%; width: auto; height: 94%; max-width: 96%; object-fit: contain; }
}
@media (max-width: 1100px) {
  .service-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-list, .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-row { grid-template-columns: 1fr; gap: 40px; }
  .quest-board { margin: 140px 40px 0 0; }
  .service-row { grid-template-columns: 300px minmax(0, 1fr); gap: 48px; }
  .service-stage { height: 320px; }
  .story-row, .contact-row { grid-template-columns: 1fr; gap: 48px; }
  .footer-row { grid-template-columns: 1fr 1fr; }
  .sky-island { right: 2%; scale: .8; }
}

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  :root { --hh: 84px; }
  body { font-size: 17px; }
  .row { padding: 0 20px; }
  .site-header { padding: 10px 12px 0; }
  .header-row { min-height: 62px; padding: 6px 8px 6px 12px; border-radius: 18px; }
  .brand { font-size: 22px; }
  .brand-mark { width: 40px; height: 40px; }
  .menu-button { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; min-height: 48px; padding: 0 16px 0 14px; border: 3px solid var(--ink); border-radius: 14px; background: var(--sun); box-shadow: 0 4px 0 var(--ink); font: 600 17px/1 var(--display); cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent; transition: transform .15s var(--spring), box-shadow .15s; }
  .menu-button:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
  .menu-burger, .menu-burger::before, .menu-burger::after { display: block; width: 20px; height: 3px; border-radius: 2px; background: var(--ink); transition: rotate .3s var(--spring), translate .3s var(--spring), opacity .2s; }
  .menu-burger { position: relative; }
  .menu-burger::before, .menu-burger::after { content: ''; position: absolute; left: 0; }
  .menu-burger::before { top: -7px; }
  .menu-burger::after { top: 7px; }
  .menu-toggle { display: block; }
  .menu-toggle:checked ~ .menu-button .menu-burger { background: transparent; }
  .menu-toggle:checked ~ .menu-button .menu-burger::before { translate: 0 7px; rotate: 45deg; }
  .menu-toggle:checked ~ .menu-button .menu-burger::after { translate: 0 -7px; rotate: -45deg; }
  .menu-toggle:focus-visible ~ .menu-button { outline: 4px solid var(--grape); outline-offset: 3px; }
  .menu { display: none; position: absolute; left: -3px; right: -3px; top: calc(100% + 10px); flex-direction: column; align-items: stretch; gap: 4px; padding: 10px; background: var(--paper); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 0 6px 0 var(--ink); }
  .menu-toggle:checked ~ .menu { display: flex; animation: pf-drop-menu .35s var(--spring); }
  .menu a:not(.button) { min-height: 52px; font-size: 20px; }
  .menu .button { margin: 6px 0 4px; min-height: 54px; }

  .hero { display: block; min-height: 0; padding: calc(var(--hh) + 262px) 0 104px; }
  .hero-world { bottom: auto; top: calc(var(--hh) - 6px); height: 270px; }
  .hero-sky .sun { width: 900px; height: 900px; right: -450px; top: -260px; }
  .hero-sky .cloud-a { left: -30px; top: 130px; scale: .6; }
  .hero-sky .cloud-b { left: 60%; top: 110px; scale: .45; }
  .hero-sky .cloud-c { right: -40px; top: 300px; scale: .7; }
  .hero-sky .cloud-d { display: none; }
  .eyebrow { margin-bottom: 16px; font-size: 13px; }
  .eyebrow .tag { min-height: 32px; padding: 0 11px; }
  .headline { font-size: clamp(40px, 11.4vw, 50px); margin-bottom: 18px; }
  .lead { font-size: 18px; }
  .actions { gap: 16px 12px; margin-top: 24px; }
  .button { min-height: 54px; padding: 0 22px; font-size: 19px; }
  .world-hint { font-size: 13px; padding: 6px 12px; gap: 6px; box-shadow: 0 3px 0 var(--ink); }
  .world-hint kbd { min-width: 22px; height: 22px; font-size: 12px; border-bottom-width: 3px; }

  .band { padding: 80px 0; }
  .section-head { margin-bottom: 32px; }
  .service-cards { grid-template-columns: 1fr; gap: 22px; }
  .service-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto 1fr; padding: 0; min-height: 150px; }
  .tile-stage { grid-row: 1 / span 2; height: auto; border-bottom: 0; border-right: 3px solid var(--ink); border-radius: 25px 0 0 25px; }
  .tile-stage .ico { width: 78px; height: 78px; margin-top: -8px; }
  .tile-stage::after { width: 64px; margin-left: -32px; bottom: 18px; height: 10px; }
  .service-card h3 { margin: 18px 18px 6px; font-size: 21px; }
  .service-card p { margin: 0 18px 18px; padding-right: 30px; font-size: 16px; }
  .tile-go { width: 36px; height: 36px; right: 12px; bottom: 12px; }
  .tile-go::after { left: 12px; top: 8px; border-width: 7px 0 7px 11px; }
  .quest-board { margin: 150px 0 0; padding: 66px 20px 18px; rotate: 0deg; box-shadow: 6px 8px 0 #1f1466; }
  .robot { right: -6px; top: -150px; width: 160px; height: 190px; }
  .ai-examples li { font-size: 17px; gap: 12px; }
  .map-wide { display: none; }
  .map-tall { display: block; width: 56px; height: 100%; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { --fy: 74px; padding: 10px 0 40px 98px; text-align: left; min-height: 150px; }
  .step-2, .step-4 { --fy: 74px; }
  .flag { left: 28px; }
  .step p { margin: 0; }
  .work-list, .principles { grid-template-columns: 1fr; }
  .card-art { height: 140px; }
  .principles { gap: 30px; }
  /* power-ups on a phone: the orb beside its words, not one tall column each */
  .power { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 20px; align-items: center; padding: 0; text-align: left; }
  .power .orb { grid-row: 1 / span 2; width: 92px; height: 92px; margin: 0; box-shadow: 0 5px 0 var(--ink), inset 0 -8px 0 rgb(27 24 56 / .08); }
  .power .orb::before { inset: -9px; }
  .power .orb::after { width: 18px; height: 18px; right: -6px; top: 0; }
  .power .orb .ico { width: 58px; height: 58px; }
  .power h3 { align-self: end; margin: 0 0 4px; font-size: 21px; }
  .power p { align-self: start; margin: 0; max-width: none; font-size: 16px; }
  .cta-band { padding: 100px 0 170px; }
  .ni-1 { left: -40px; bottom: 30px; width: 170px; height: 110px; }
  .night-hopper { left: 26px; bottom: 112px; width: 44px; height: 44px; }
  .ni-2 { right: -30px; top: 40px; width: 110px; height: 72px; }
  .press-start { font-size: 15px; letter-spacing: .24em; text-indent: .24em; }
  .footer-row { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: 96px; }

  /* the title band is a header, not a screen: its island rides at the top right beside the label */
  .title-band { padding: calc(var(--hh) + 24px) 0 84px; }
  .title-band h1 { font-size: clamp(44px, 13vw, 60px); }
  .title-band + .band { padding-top: 56px; }
  .sky-island { right: 10px; top: calc(var(--hh) + 6px); width: 120px; height: 120px; scale: 1; }
  .sky-island .isl { width: 120px; height: 78px; }
  .sky-island .ico { width: 60px; height: 60px; margin-left: -30px; bottom: 60px; }
  .sky-island .hop { width: 36px; height: 36px; margin-left: -18px; bottom: 62px; }
  .not-found .title-band { display: block; min-height: 0; padding-bottom: 80px; }
  .not-found .sky-island { top: calc(var(--hh) + 6px); bottom: auto; }
  .not-found .title-band h1 { max-width: 5.4em; }
  /* long reading on a narrow screen: fill each line, not the evened-out ragged edge "pretty" gives */
  .sheet p, .sheet li, .story-sheet p { text-wrap: wrap; }
  .service-row { grid-template-columns: 1fr; gap: 28px; }
  .service-stage { position: relative; top: 0; height: 230px; }
  .service-stage .isl { width: 180px; height: 117px; margin-left: -90px; bottom: 22px; }
  .service-stage .ico { width: 110px; height: 110px; margin-left: -55px; bottom: 104px; }
  .service .lead { font-size: 20px; }
  .included { grid-template-columns: 1fr; padding: 18px 18px; }
  .story-sheet, .contact-panel, .helps-panel { padding: 30px 22px; }
  .story-sheet p { font-size: 18px; }
  .helps-panel { rotate: 0deg; }
  .contact-email a { padding: 12px 18px; min-height: 64px; }
  .mail-hopper { width: 72px; height: 72px; top: -50px; right: 18px; }
  .sheet { padding: 32px 22px 36px; font-size: 17px; }
  .sheet h2 { font-size: 25px; }
  .orbit { width: min(100%, 340px); }
  .orbit-spin .moon { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
  .orbit-spin .moon .ico { width: 38px; height: 38px; }
}
@keyframes pf-drop-menu { 0% { translate: 0 -10px; scale: .96; opacity: 0; } 100% { translate: 0 0; scale: 1; opacity: 1; } }

/* ---------- Reduced motion: a composed still frame ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* The phone and city under the email (Jace, board set a-20261119-p24p Q2). */
.contact-more { margin: 14px 0 0; font: 700 clamp(18px, 1.8vw, 22px)/1.5 var(--display); color: var(--ink); }
.contact-more a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-color: var(--coral); }
.contact-more a:hover { color: var(--grape); }
.footer-city { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; color: #fff; font: 600 17px/1 var(--display); }
