/* ──────────────────────────────────────────────────────────────
   Creative Isles · 2026
   One dithered field behind everything, a stack of "isles" on top.
   ────────────────────────────────────────────────────────────── */

:root {
  --ink: #08111e;
  --night: #0b1730;
  --cobalt: #2145d9;
  --sun: #f2b757;
  --coral: #f0563a;
  --pink: #f4a7ba;
  --cream: #efebe0;
  --paper: #f6f3ea;
  --lcd: #cbc3ab;
  --lcd-ink: #1b1d20;
  --red: #e0474c;
  --gold: #f4c95d;

  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --dot: "Doto", "Geist Mono", ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 0.8, 0.2, 1);
  --gut: clamp(10px, 2.2vw, 32px);
  --pad: clamp(22px, 4.4vw, 76px);
  --r: clamp(22px, 2.8vw, 44px);
  --navh: 56px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  color: var(--cream);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.px { image-rendering: pixelated; }

.skip {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  background: var(--sun); color: var(--ink);
  padding: 10px 14px; border-radius: 8px;
  font: 500 13px/1 var(--mono); text-decoration: none;
}
.skip:focus { top: 12px; }

/* ───────── the field ───────── */

#field {
  position: fixed; left: 0; top: 0;
  width: 100vw; height: 100vh; height: 100lvh;
  z-index: 0;
  image-rendering: pixelated;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s ease;
}
#field.on { opacity: 1; }
html:not(.js) body,
body.no-gl { background: radial-gradient(120% 80% at 75% 55%, #1b3bb5 0%, #0b1730 45%, #08111e 100%) fixed; }

main, footer { position: relative; z-index: 1; }

/* ───────── small type: the "instrument" voice ───────── */

.hud {
  font: 500 11px/1.35 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hud b { font-weight: 500; }
.hud-dim { opacity: 0.6; }
.hud a, a.hud { text-decoration: none; }

.display {
  font-size: clamp(2.5rem, 6.4vw, 6rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.048em;
  text-wrap: balance;
}
.headline {
  font-size: clamp(1.7rem, 3.3vw, 3.2rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.4;
  max-width: 34ch;
  opacity: 0.82;
}
.body {
  font-size: clamp(1rem, 1.12vw, 1.14rem);
  line-height: 1.52;
  max-width: 47ch;
  opacity: 0.86;
}
.body-lg { font-size: clamp(1.08rem, 1.5vw, 1.4rem); line-height: 1.42; max-width: 40ch; opacity: 0.92; }

/* ───────── nav ───────── */

.nav {
  position: fixed; z-index: 50;
  top: max(10px, env(safe-area-inset-top));
  left: var(--gut); right: var(--gut);
  height: var(--navh);
  display: flex; align-items: center; gap: 18px;
  padding: 0 8px 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--cream);
  transition: background 0.6s var(--ease), border-color 0.6s var(--ease), backdrop-filter 0.6s, transform 0.7s var(--ease);
}
.nav.is-stuck {
  background: rgba(8, 17, 30, 0.82);
  border-color: rgba(239, 235, 224, 0.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
}
.brand { display: block; flex: none; border-radius: 12px; }
.logo { height: 44px; width: auto; overflow: visible; fill: var(--cream); }
.brand .logo { height: 72px; margin-top: 14px; transition: transform 0.7s var(--ease), fill 0.4s, height 0.6s var(--ease), margin 0.6s var(--ease); transform-origin: 30% 60%; }
.nav.is-stuck .brand .logo { height: 36px; margin-top: 0; }
.brand:hover .logo { transform: rotate(-4deg) scale(1.06); fill: var(--sun); }

.nav-where {
  display: inline-flex; align-items: center; gap: 9px;
  font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.5s, transform 0.5s var(--ease);
  white-space: nowrap;
}
.nav.is-stuck .nav-where { opacity: 0.7; transform: none; }
.nav-where i { width: 6px; height: 6px; background: var(--sun); display: block; }
.nav-where b { font-weight: 500; }

.nav nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav nav a {
  font: 500 11.5px/1 var(--mono); letter-spacing: 0.09em; text-transform: uppercase;
  text-decoration: none; padding: 13px 13px; border-radius: 999px;
  transition: background 0.35s, color 0.35s;
}
.nav nav a:hover { background: rgba(239, 235, 224, 0.12); }
.nav nav a.nav-hi { background: var(--sun); color: var(--ink); margin-left: 6px; padding-inline: 16px; }
.nav nav a.nav-hi:hover { background: var(--cream); }

/* ───────── hero ───────── */

.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  padding: calc(var(--navh) + 58px) var(--pad) clamp(18px, 3.4vh, 34px);
}
.hero-hud { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 26px; }
.hero .hud { text-shadow: 0 0 10px rgba(8, 17, 30, 0.95), 0 0 3px rgba(8, 17, 30, 0.9); }
.hero-main { margin-top: auto; padding-bottom: clamp(22px, 5.5vh, 60px); }
.hero .verse {
  font-size: clamp(1.72rem, 3.25vw + 0.55rem, 4.15rem);
  font-weight: 460;
  line-height: 1.09;
  letter-spacing: -0.038em;
  max-width: 15.6em;
  text-wrap: pretty;
}
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; }
.scroll-cue { display: inline-flex; align-items: center; gap: 12px; }
.scroll-cue i {
  width: 1px; height: 34px; background: currentColor; display: block; position: relative; overflow: hidden; opacity: 0.9;
}
.scroll-cue i::after {
  content: ""; position: absolute; inset: 0; background: var(--ink);
  animation: cue 2.6s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }
.reprint { opacity: 0.6; transition: opacity 0.3s; }
.reprint:hover { opacity: 1; }

/* ───────── verse text (the print-in headline) ───────── */

.verse { position: relative; }
.js .verse[data-verse]:not(.vx-ready) { opacity: 0; }
.vx-sheet { display: block; }
.vx-tear { display: block; position: absolute; inset: 0; pointer-events: none; user-select: none; }
.vx-tear.c { color: var(--vx-c); mix-blend-mode: screen; }
.vx-tear.m { color: var(--vx-m); mix-blend-mode: screen; }
.vx-tear.y { color: var(--vx-y); mix-blend-mode: screen; }
.vx-tear.c .vx-g, .vx-tear.m .vx-g, .vx-tear.y .vx-g { display: none; }

.verse {
  --vx-ink: currentColor;
  --vx-key: #050a13;
  --vx-c: #1fc7f6;
  --vx-m: #ff3f8e;
  --vx-y: #ffe24a;
  --vx-f0: #3b5bff;
  --vx-f1: #ff5a3c;
  --vx-f2: #2bf07c;
  --vx-f3: #f2b757;
  --vx-f4: #ff8fb4;
  --vx-dot: #ff4a3a;
}
.vx-w { position: relative; display: inline-block; white-space: pre; }
.vx-w.vx-wait, .vx-w.vx-nokey { color: transparent; }
.vx-g { position: absolute; inset: 0; pointer-events: none; user-select: none; }
.vx-ink { position: absolute; inset: 0; white-space: pre; }
.vx-ink.k { color: var(--vx-ink); }
.vx-ink.p, .vx-ink.f { mix-blend-mode: screen; }
.vx-ink.c { color: var(--vx-c); }
.vx-ink.m { color: var(--vx-m); }
.vx-ink.y { color: var(--vx-y); }
.vx-comb { position: absolute; inset: -0.75em -1em; }
.vx-comb > span { position: absolute; inset: 0.75em 1em; }
.vx-gap { position: absolute; inset: 4% 0; background: var(--vx-key); }
.vx-rim, .vx-shard { position: absolute; inset: -30% -15%; }
.vx-rim { background: var(--vx-key); }
.vx-shard { background-color: var(--c); color: #fff; }
.vx-shard.dk { color: var(--vx-key); }
.vx-shard.st {
  background-image: repeating-linear-gradient(var(--a), transparent 0 0.05em, rgba(0, 0, 0, 0.26) 0.05em 0.085em);
}
.vx-shard > span { position: absolute; inset: 18.75% 11.538%; white-space: pre; }
.vx-bit { position: absolute; }
.vx-bit.r { border-radius: 50%; }

/* ───────── reveal on scroll ───────── */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  filter: blur(7px);
  transition:
    opacity 1.1s var(--ease) var(--d, 0ms),
    transform 1.3s var(--ease) var(--d, 0ms),
    filter 1.1s var(--ease) var(--d, 0ms);
}
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

/* ───────── the archipelago ───────── */

.isles { padding: 15vh var(--pad) 4vh; max-width: 1560px; margin-inline: auto; }
.isles-head { display: grid; gap: 22px; margin-bottom: clamp(36px, 7vh, 84px); }
.isles-head .hud { color: var(--sun); }
.isle-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.3vw, 20px); }

.isle {
  position: relative;
  display: grid;
  grid-template: "no state" auto "art art" 1fr "name name" auto "line line" auto / 1fr auto;
  gap: 4px 10px;
  aspect-ratio: 3 / 4.1;
  padding: clamp(14px, 1.5vw, 22px);
  border-radius: clamp(16px, 1.6vw, 24px);
  border: 1px solid rgba(239, 235, 224, 0.14);
  background: rgba(6, 12, 22, 0.42);
  color: var(--cream);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.6s var(--ease), background 0.6s var(--ease), opacity 1.1s var(--ease) var(--d, 0ms), transform 1.3s var(--ease) var(--d, 0ms), filter 1.1s var(--ease) var(--d, 0ms);
}
.isle canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.isle:hover, .isle:focus-visible { border-color: var(--accent); background: rgba(6, 12, 22, 0.62); }
.isle-no { grid-area: no; font: 800 clamp(20px, 2vw, 30px)/1 var(--dot); color: var(--accent); letter-spacing: 0.02em; }
.isle-state { grid-area: state; font: 500 10px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; display: inline-flex; gap: 7px; align-items: center; opacity: 0.8; align-self: start; padding-top: 4px; }
.isle-state i { width: 6px; height: 6px; background: var(--accent); display: block; animation: blink 2.4s steps(2, jump-none) infinite; }
.isle-name { grid-area: name; font-size: clamp(1.1rem, 1.7vw, 1.6rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.isle-line { grid-area: line; font-size: clamp(0.82rem, 1vw, 0.98rem); opacity: 0.66; line-height: 1.3; }
.isle-open { border-style: dashed; }
@keyframes blink { 0% { opacity: 1; } 100% { opacity: 0.25; } }

/* ───────── cards (each project is one) ───────── */

.card {
  --fg: var(--cream);
  --bg: var(--ink);
  --accent: var(--sun);
  position: relative;
  margin: 16vh max(var(--gut), calc((100vw - 1440px) / 2)) 0;
  padding: var(--pad);
  border-radius: var(--r);
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  isolation: isolate;
}
.js .card {
  opacity: 0;
  transform: translate3d(0, 70px, 0) scale(0.96);
  transition: opacity 1.2s var(--ease), transform 1.5s var(--ease);
}
.js .card.in { opacity: 1; transform: none; }

/* little registration marks in the corners */
.card::before, .card::after {
  content: "+ +";
  position: absolute; top: clamp(16px, 2.2vw, 30px); right: clamp(18px, 2.4vw, 34px);
  font: 500 15px/1 var(--mono); letter-spacing: 0.2em; opacity: 0.55; z-index: 3;
  pointer-events: none;
}
.card::after { content: "+"; top: auto; right: auto; bottom: clamp(14px, 2vw, 26px); left: clamp(18px, 2.4vw, 34px); }

.card-in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 5vw, 90px);
  align-items: center;
}
.card-in-flip { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); }
.card-in > :not(.orb) { position: relative; z-index: 1; }
.card-copy { display: grid; gap: clamp(16px, 2.2vh, 26px); justify-items: start; align-content: start; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 7px;
  font: 500 10.5px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 9px 6px; border: 1px solid color-mix(in srgb, var(--fg) 45%, transparent); border-radius: 3px;
}
.tag-solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.tag-live i { width: 6px; height: 6px; background: var(--accent); display: block; animation: blink 1.8s steps(2, jump-none) infinite; }

.title { font-size: 0; line-height: 0; display: flex; align-items: flex-end; gap: 14px; margin-top: clamp(6px, 1.4vh, 18px); }
.mark { display: block; width: auto; max-width: 100%; }
.mark-calc { height: clamp(17px, 2.1vw, 30px); }
.mark-psalm { height: clamp(34px, 4vw, 54px); }
.mark-arc { height: clamp(26px, 3.2vw, 44px); }
.title-pre { font: 500 clamp(26px, 3.2vw, 44px)/0.8 var(--sans); letter-spacing: -0.04em; }

.specs { display: grid; width: 100%; max-width: 30rem; margin-top: 6px; }
.specs > div { display: grid; grid-template-columns: 7.2rem 1fr; gap: 12px; padding: 11px 0; border-top: 1px dashed color-mix(in srgb, var(--fg) 34%, transparent); }
.dash-rule { width: 100%; max-width: 30rem; height: 0; border-top: 1px dashed color-mix(in srgb, var(--fg) 34%, transparent); margin: 2px 0; }
.specs > div:last-child { border-bottom: 1px dashed color-mix(in srgb, var(--fg) 34%, transparent); }
.specs dt { font: 500 10.5px/1.6 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.62; }
.specs dd { font-size: 0.95rem; line-height: 1.35; }

.card-art { position: relative; display: grid; place-items: center; min-height: clamp(380px, 56vw, 720px); perspective: 1400px; }
.device { position: relative; z-index: 1; will-change: transform; transform: translate3d(0, calc(var(--py, 0) * 1px), 0) rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg)); transform-style: preserve-3d; }
.device img { position: relative; }
.bob { position: relative; animation: bob 7s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(-7px); } 50% { transform: translateY(7px); } }

.device-calc img { width: min(330px, 62vw); filter: drop-shadow(0 34px 44px rgba(20, 18, 10, 0.42)); }
.device-phone { width: min(322px, 64vw); }
.bezel { padding: 9px; background: #1b1b1e; border-radius: 46px; box-shadow: 0 36px 60px -18px rgba(60, 20, 20, 0.45), inset 0 0 0 1.5px #3a3a3f; }
.bezel img { border-radius: 37px; width: 100%; }
.bezel { position: relative; }
.bezel.notch::after { content: ""; position: absolute; top: 19px; left: 50%; width: 29%; height: 24px; transform: translateX(-50%); background: #000; border-radius: 20px; z-index: 3; }

/* the hidden game, called out like a message on the LCD */
.secret {
  position: relative; display: grid; gap: 9px; width: 100%; max-width: 31rem;
  padding: 16px 20px 18px; border-radius: 14px;
  background: var(--lcd-ink) repeating-linear-gradient(to bottom, transparent 0 3px, rgba(255, 255, 255, 0.025) 3px 4px);
  color: #f1ecdc; box-shadow: 0 18px 30px -18px rgba(20, 18, 10, 0.6);
}
.secret::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; background: #dda143; border-radius: 0 3px 3px 0; }
.secret-tag { font: 500 10.5px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: #dda143; }
.secret-line { font-size: clamp(1.12rem, 1.45vw, 1.34rem); font-weight: 500; line-height: 1.32; letter-spacing: -0.015em; }
.secret-line i { display: inline-block; width: 0.5em; height: 1em; margin-left: 0.2em; vertical-align: -0.14em; background: #dda143; animation: blink 1.1s steps(2, jump-none) infinite; }

/* ── CalcJump, version B: the secret played out on the phone ── */
.demo { position: relative; border-radius: 37px; overflow: hidden; cursor: pointer; background: #1b1d21; }
.demo img { display: block; border-radius: 0; }
.demo .demo-game { position: absolute; inset: 0; height: 100%; -webkit-clip-path: inset(100% 0 0 0); clip-path: inset(100% 0 0 0); }
/* armed: only the skull key (and its glow) shows through from the "game on" screen */
.demo[data-step="1"] .demo-game, .demo[data-step="2"] .demo-game, .demo[data-step="3"] .demo-game { -webkit-clip-path: inset(34.9% 50% 52.7% 26.3%); clip-path: inset(34.9% 50% 52.7% 26.3%); }
.demo[data-step="4"] .demo-game { -webkit-clip-path: inset(0); clip-path: inset(0); }
.demo-code {
  position: absolute; left: 4.7%; top: 12.5%; width: 90.6%; height: 21.3%; background: #cbc3ab; color: #3a3833;
  display: grid; place-content: center; justify-items: center; gap: 9%; opacity: 0; transition: opacity 0.25s steps(3, jump-none);
}
.demo[data-step="2"] .demo-code, .demo[data-step="3"] .demo-code { opacity: 1; }
.demo-code span { font: 500 clamp(9px, 1vw, 12px)/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.7; }
.demo-code b { display: flex; gap: 12px; }
.demo-code b i { width: clamp(18px, 2vw, 26px); height: clamp(22px, 2.5vw, 32px); box-shadow: inset 0 0 0 3px #3a3833; display: block; }
.demo-code b i.on { background: #3a3833; }
.demo-video { position: absolute; left: 4.5%; top: 8.45%; width: 91%; height: 25.7%; object-fit: cover; image-rendering: pixelated; border-radius: 6px; opacity: 0; }
.demo[data-step="4"] .demo-video { opacity: 1; animation: lcd-on 0.5s steps(5, jump-none); }
@keyframes lcd-on { 0% { opacity: 0; filter: brightness(3) contrast(0.4); } 100% { opacity: 1; filter: none; } }
.demo-tap {
  position: absolute; left: var(--tx, 38%); top: var(--ty, 41%); width: 22%; aspect-ratio: 1; margin: -11% 0 0 -11%; border-radius: 50%;
  background: rgba(255, 255, 255, 0.28); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85); opacity: 0; transform: scale(0.4); pointer-events: none;
}
.demo-tap.go { animation: tap 0.5s var(--ease); }
@keyframes tap { 0% { opacity: 0; transform: scale(0.4); } 30% { opacity: 1; transform: scale(0.8); } 100% { opacity: 0; transform: scale(1.25); } }

.secret-steps { gap: 12px; }
.demo-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.demo-steps li {
  display: inline-flex; align-items: center; gap: 8px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.09em; text-transform: uppercase;
  padding: 8px 11px 7px 8px; border-radius: 999px; border: 1px solid rgba(241, 236, 220, 0.28); color: rgba(241, 236, 220, 0.6);
  transition: background 0.35s, color 0.35s, border-color 0.35s;
}
.demo-steps b { font: 800 13px/1 var(--dot); color: #dda143; transition: color 0.35s; }
.demo-steps li.on { background: #dda143; border-color: #dda143; color: #1b1d20; }
.demo-steps li.on b { color: #1b1d20; }
.demo-steps li.done { color: #f1ecdc; border-color: rgba(241, 236, 220, 0.55); }
.demo-replay { justify-self: start; font: 500 10.5px/1 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: #dda143; padding: 6px 0 2px; }
.demo-replay:hover { color: #f1ecdc; }

/* the Psalmist's screens, cycling with a pixel dissolve */
.shots { position: relative; aspect-ratio: 780 / 1690; border-radius: 37px; overflow: hidden; background: #ede6da; }
.shots img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; opacity: 0; }
.shots img.on { opacity: 1; }
.shots canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; z-index: 2; pointer-events: none; }
.shot-dots { position: relative; z-index: 2; display: flex; justify-content: center; gap: 2px; width: fit-content; margin: 22px auto 0; padding: 3px 8px; border-radius: 999px; background: #ede6da; box-shadow: inset 0 0 0 1px rgba(38, 38, 42, 0.14), 0 6px 14px -8px rgba(60, 20, 20, 0.4); }
.shot-dots button { width: 26px; height: 26px; display: grid; place-items: center; }
.shot-dots i { width: 9px; height: 9px; background: rgba(38, 38, 42, 0.24); transition: background 0.3s, width 0.4s var(--ease); }
.shot-dots button.on i { background: var(--red); width: 20px; }
.shot-dots button:hover i { background: rgba(38, 38, 42, 0.5); }
.shot-dots button.on:hover i { background: var(--red); }

.orb { position: absolute; image-rendering: pixelated; pointer-events: none; z-index: 0; }
.pixel-canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; z-index: 2; border-radius: inherit; }
.js img[data-pixel]:not(.px-done) { opacity: 0; }

/* ── 01 CalcJump ── */

.card-calc { --bg: var(--lcd); --fg: var(--lcd-ink); --accent: #b8571f; }
.card-calc .headline { max-width: 13ch; }
.orb-calc { width: min(78%, 520px); aspect-ratio: 1; right: -6%; top: 4%; opacity: 0.9; }

.editions {
  position: relative;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 22px);
  margin-top: clamp(40px, 7vw, 100px);
}
.editions-head { grid-column: 1 / -1; display: grid; gap: 14px; margin-bottom: clamp(8px, 1.4vw, 20px); }
.editions-head .hud { opacity: 0.66; }
.edition {
  background: var(--lcd-ink); color: #dcd6c2;
  border-radius: clamp(16px, 1.8vw, 26px);
  padding: clamp(10px, 1.1vw, 16px);
  display: grid; gap: 0;
  transition: opacity 1.1s var(--ease) var(--d, 0ms), transform 1.3s var(--ease) var(--d, 0ms), filter 1.1s var(--ease) var(--d, 0ms);
}
.edition-screen {
  position: relative; overflow: hidden;
  aspect-ratio: 780 / 480;
  border-radius: clamp(8px, 1vw, 14px);
  background: #a29d8f;
}
.edition-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.6s var(--ease); }
.edition:hover .edition-screen video { transform: scale(1.03); }
.edition-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(10, 12, 14, 0.07) 3px 4px);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25), inset 0 10px 30px rgba(0, 0, 0, 0.12);
  border-radius: inherit;
}
.edition-hud {
  position: absolute; left: 10px; bottom: 9px; z-index: 2;
  font: 500 10px/1 var(--mono); letter-spacing: 0.1em;
  padding: 5px 6px 4px; background: var(--lcd-ink); color: #dcd6c2; border-radius: 2px;
}
.edition-copy { display: grid; gap: 8px; padding: clamp(16px, 1.8vw, 26px) clamp(8px, 1vw, 14px) clamp(10px, 1.2vw, 16px); }
.edition-copy .hud { color: #dda143; }
.edition-copy h4 { font-size: clamp(1.5rem, 2.6vw, 2.5rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05; }
.edition-copy p:last-child { opacity: 0.78; max-width: 38ch; font-size: clamp(0.95rem, 1.05vw, 1.06rem); }

/* ── 02 Psalmist ── */

.card-psalm { --bg: #ede6da; --fg: #26262a; --accent: var(--red); }
.card-psalm .headline { max-width: 15ch; }
.orb-psalm { width: min(86%, 560px); aspect-ratio: 1; left: -8%; bottom: -4%; }

.rec {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px;
  width: 100%; max-width: 30rem;
  padding: 12px; border-radius: 20px;
  background: #e0d7c9;
  box-shadow: inset 0 0 0 1px rgba(38, 38, 42, 0.08);
}
.rec-display { background: #fbfaf6; border-radius: 11px; padding: 11px 14px 10px; display: grid; gap: 6px; min-width: 0; }
.rec-row { display: flex; justify-content: space-between; align-items: center; font: 500 10px/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; }
/* The app's own REC mark (Timer/REC-icon.svg in the app repo), recoloured with currentColor. */
.rec-badge { width: 38px; height: auto; fill: var(--red); animation: blink 1.2s steps(2, jump-none) infinite; }
.rec.is-paused .rec-badge { animation: none; opacity: 0.25; }
.rec-time { font: 900 clamp(30px, 3.4vw, 42px)/1 var(--dot); letter-spacing: 0.03em; font-variant-numeric: tabular-nums; display: flex; align-items: center; }
.rec-time i { font: 600 0.62em/1 var(--mono); font-style: normal; margin: 0 0.12em; transform: translateY(-0.06em); }
.rec-wave { width: 100%; height: 44px; }
.rec-meters { width: 100%; height: 24px; grid-column: 1; align-self: center; }
.rec-key {
  grid-row: 1 / span 2; grid-column: 2;
  width: clamp(64px, 7vw, 84px);
  border-radius: 14px;
  background: #f3ede4;
  box-shadow: inset 0 0 0 2.5px var(--red), 0 3px 0 #c9bfae;
  display: grid; place-items: center;
  transition: transform 0.12s, box-shadow 0.12s;
}
.rec-key:active { transform: translateY(3px); box-shadow: inset 0 0 0 2.5px var(--red), 0 0 0 #c9bfae; }
.rec-key i { width: 24px; height: 24px; border-radius: 50%; background: var(--red); display: block; transition: border-radius 0.3s var(--ease), background 0.3s; }
.rec.is-paused .rec-key { box-shadow: inset 0 0 0 2.5px #26262a, 0 3px 0 #c9bfae; }
.rec.is-paused .rec-key i { border-radius: 3px; background: #26262a; }
.rec-note { grid-column: 1 / -1; font: 500 10px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.5; padding: 0 2px; }

.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 26px; width: 100%; max-width: 34rem; }
.feats li { font-size: 0.93rem; line-height: 1.38; opacity: 0.9; padding-top: 12px; border-top: 1px dashed rgba(38, 38, 42, 0.32); }
.feats b { display: block; font-weight: 600; margin-bottom: 2px; }

.btn {
  display: inline-flex; align-items: center; gap: 0.7em;
  font: 500 12.5px/1 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; text-decoration: none;
  padding: 17px 22px 16px; border-radius: 999px;
  transition: transform 0.5s var(--ease), background 0.4s, color 0.4s;
}
.btn span { transition: transform 0.5s var(--ease); display: inline-block; }
.btn:hover { transform: translateY(-2px); }
.btn:hover span { transform: translate(3px, -3px); }
.btn-ink { background: #26262a; color: #f6f1e8; }
/* Classic App Store badge: black, white Apple logo, two lines of text. */
.btn-appstore {
  display: inline-flex; align-items: center; gap: 11px;
  background: #000; color: #fff; text-decoration: none;
  padding: 9px 22px 9px 16px; border-radius: 12px;
  font-family: var(--sans);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.btn-appstore:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22); }
.btn-appstore svg { width: 28px; height: 28px; fill: currentColor; flex: none; margin-top: -2px; }
.btn-appstore small { display: block; font-size: 11px; line-height: 1.15; font-weight: 500; letter-spacing: 0.01em; }
.btn-appstore strong { display: block; font-size: 22px; line-height: 1.05; font-weight: 600; letter-spacing: -0.02em; }

/* Reuses the existing .cta-row flex wrapper (also used in the custom-apps section) around the App Store
   badge and a text link. */
.link-more {
  font: 600 13px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--fg); text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px;
  padding-bottom: 2px; border-bottom: 1px solid var(--accent);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.link-more span { transition: transform 0.4s var(--ease); display: inline-block; }
.link-more:hover { color: var(--accent); }
.link-more:hover span { transform: translate(3px, -3px); }
.btn-ink:hover { background: var(--red); }
.btn-gold { background: var(--gold); color: #0d0e18; }
.btn-gold:hover { background: var(--cream); }
.price-line { opacity: 0.6; }
.foot-social { display: inline-flex; align-items: center; gap: 10px; font: 500 12.5px/1 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; text-decoration: none; padding: 14px 18px 13px; border: 1px solid rgba(239, 235, 224, 0.35); border-radius: 999px; transition: background 0.4s, color 0.4s, border-color 0.4s; }
.foot-social svg { width: 18px; height: 18px; }
.foot-social b { font-weight: 500; color: var(--sun); transition: color 0.4s; }
.foot-social:hover { background: var(--sun); color: var(--ink); border-color: var(--sun); }
.foot-social:hover b { color: var(--ink); }
.btn-cream { background: var(--cream); color: #1733b0; }
.btn-cream:hover { background: var(--sun); color: var(--ink); }
.btn-cream:hover span { transform: translateX(5px); }

/* ── 03 Genesis Arc ── */

.card-arc { --bg: #0d0e18; --fg: #eceaf5; --accent: var(--gold); }
.card-in-stack { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; row-gap: clamp(36px, 6vw, 80px); }
.card-copy-side { padding-bottom: 6px; }
.card-arc .tag-live i { background: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips li {
  font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  padding: 9px 12px 8px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--fg) 30%, transparent);
  transition: background 0.4s, color 0.4s, border-color 0.4s;
}
.chips li:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }
.card-art-wide { grid-column: 1 / -1; min-height: 0; display: block; padding-top: clamp(10px, 3vw, 44px); }
.arc-line { position: absolute; left: -4%; right: -4%; top: 0; width: 108%; height: 78%; overflow: visible; z-index: 0; }
.arc-line path { fill: none; stroke: var(--gold); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease) 0.2s; }
.card-arc.in .arc-line path { stroke-dashoffset: 0; }
.device-window {
  width: min(100%, 1120px); margin-inline: auto;
  border-radius: clamp(10px, 1.2vw, 18px); overflow: hidden;
  background: #1c1c22;
  box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(236, 234, 245, 0.14);
  transform-origin: 50% 100%;
  transform: translate3d(0, calc(var(--py, 0) * 1px), 0) rotateX(calc((1 - var(--p, 1)) * 18deg + var(--rx, 0) * 0.5deg)) rotateY(calc(var(--ry, 0) * 0.5deg)) scale(calc(0.93 + var(--p, 1) * 0.07));
}
.window-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; color: #8d8ba0; font: 500 10px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.window-bar i { width: 8px; height: 8px; background: #3a3a48; display: block; }
.window-bar i:first-child { background: var(--gold); }
.window-bar span { margin-left: 10px; }
.device-window img { width: 100%; }

/* ── 04 Custom apps ── */

.card-custom { --bg: var(--cobalt); --fg: var(--cream); --accent: var(--pink); }
.card-in-custom { display: block; }
.card-custom .card-copy { position: relative; z-index: 1; max-width: 52rem; gap: clamp(18px, 2.6vh, 30px); }
.card-custom .display { max-width: 11ch; }
.orb-custom-a { width: clamp(240px, 42vw, 620px); aspect-ratio: 1; right: -9%; top: -12%; }
.orb-custom-b { width: clamp(70px, 10vw, 150px); aspect-ratio: 1; right: 31%; top: 30%; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 6px; }
.cta-row .hud { opacity: 0.75; }

.steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 40px); margin-top: clamp(48px, 8vw, 120px); }
.steps li { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 1px solid rgba(239, 235, 224, 0.5); }
.step-no { font: 800 clamp(34px, 4.6vw, 64px)/0.9 var(--dot); color: var(--pink); letter-spacing: 0.02em; }
.steps h3 { font-size: clamp(1.4rem, 2.3vw, 2.1rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.1; }
.steps p { opacity: 0.85; max-width: 32ch; font-size: clamp(0.95rem, 1.08vw, 1.08rem); }
.fits { position: relative; z-index: 1; display: grid; gap: 14px; margin-top: clamp(36px, 5vw, 70px); }
.fits .hud { opacity: 0.7; }
.chips-cream li { border-color: rgba(239, 235, 224, 0.45); }

/* ── The studio ── */

.card-studio { --bg: var(--paper); --fg: var(--ink); --accent: var(--coral); }
.card-in-studio { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: center; }
.card-studio .card-copy { gap: clamp(22px, 3.4vh, 40px); }
.studio-text { display: grid; gap: 1.1em; }
.studio-text .body-lg { max-width: 34ch; }

/* the Big Island, in relief */
.island { display: grid; gap: 14px; justify-items: center; width: 100%; }
.island-map { position: relative; width: min(100%, 600px); aspect-ratio: 208 / 228; cursor: crosshair; -webkit-user-select: none; user-select: none; }
.island-map canvas { width: 100%; height: 100%; image-rendering: pixelated; }
.island-sun {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%;
  background: var(--sun); pointer-events: none; will-change: transform;
  box-shadow: 0 0 0 7px rgba(242, 183, 87, 0.28), 0 0 0 16px rgba(242, 183, 87, 0.12), 0 0 40px 10px rgba(240, 86, 58, 0.22);
}
.peak { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; display: grid; place-items: center; z-index: 2; cursor: pointer; }
.peak i { width: 7px; height: 7px; background: var(--paper); box-shadow: 0 0 0 2px var(--ink); display: block; transition: transform 0.4s var(--ease), background 0.3s; }
.peak span {
  position: absolute; left: 23px; top: 50%; transform: translateY(-50%); white-space: nowrap;
  font: 500 10.5px/1 var(--mono); letter-spacing: 0.09em; text-transform: uppercase;
  padding: 5px 7px 4px; background: var(--ink); color: var(--paper); border-radius: 3px;
  transition: background 0.3s, color 0.3s;
}
.peak-left span { left: auto; right: 23px; }
.peak b { font-weight: 500; display: inline-block; max-width: 0; overflow: hidden; vertical-align: bottom; opacity: 0; transition: max-width 0.5s var(--ease), opacity 0.4s, margin 0.5s var(--ease); }
.peak:hover, .peak:focus-visible, .peak.on { z-index: 3; }
.peak:hover i, .peak:focus-visible i, .peak.on i { transform: scale(1.7) rotate(45deg); background: var(--sun); }
.peak:hover span, .peak:focus-visible span, .peak.on span { background: var(--sun); color: var(--ink); }
.peak:hover b, .peak:focus-visible b, .peak.on b { max-width: 9em; opacity: 1; margin-left: 0.9em; }
.island-read { display: flex; justify-content: space-between; gap: 20px; width: min(100%, 600px); opacity: 0.62; }
.island-hint { transition: opacity 0.8s; }
.island.is-used .island-hint { opacity: 0; }

/* ── Footer: the sticker tray ── */

.card-foot {
  --bg: #060d18; --fg: var(--cream); --barh: 68px;
  margin-bottom: var(--gut);
  min-height: min(94vh, 900px); min-height: min(94svh, 900px);
  padding: 0;
  border: 1px solid rgba(239, 235, 224, 0.13);
  display: flex; flex-direction: column;
}
.card-foot::before, .card-foot::after { display: none; }
.foot-in { position: relative; z-index: 1; padding: var(--pad); display: grid; gap: clamp(16px, 2.4vh, 26px); justify-items: start; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; width: 100%; }
.foot-top > .hud { color: var(--sun); }

/* the footer's call to action: a sun-yellow pill with a little sun that rises on hover */
.foot-cta-row { margin-top: clamp(4px, 1vh, 14px); }
.foot-cta {
  position: relative; display: inline-flex; align-items: center; gap: 18px; overflow: hidden; isolation: isolate;
  padding: 12px 12px 12px 14px; border-radius: 999px; background: var(--sun); color: var(--ink); text-decoration: none;
  box-shadow: 0 0 0 0 rgba(242, 183, 87, 0.45), 0 18px 40px -18px rgba(242, 183, 87, 0.7);
  transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease), background 0.4s;
}
.foot-cta::before { /* a dithered sweep of cream that follows the hover in */
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-101%);
  background: radial-gradient(rgba(240, 86, 58, 0.55) 0 1.2px, transparent 1.6px) 0 0 / 6px 6px, var(--cream);
  transition: transform 0.7s var(--ease);
}
.foot-cta:hover { transform: translateY(-3px); box-shadow: 0 0 0 8px rgba(242, 183, 87, 0.16), 0 26px 50px -18px rgba(242, 183, 87, 0.8); }
.foot-cta:hover::before { transform: none; }
.foot-cta-sun {
  position: relative; flex: none; width: 54px; height: 54px; border-radius: 50%; overflow: hidden;
  background: var(--ink);
}
.foot-cta-sun::before { /* the sun, half set */
  content: ""; position: absolute; left: 50%; top: 58%; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%;
  background: radial-gradient(var(--coral) 0 34%, transparent 38%) 0 0 / 5px 5px, var(--sun);
  transition: top 0.7s var(--ease);
}
.foot-cta-sun::after { /* the sea it sits in */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: repeating-linear-gradient(to bottom, var(--cobalt) 0 2px, var(--ink) 2px 4px);
}
.foot-cta:hover .foot-cta-sun::before { top: 22%; }
.foot-cta-text { display: grid; gap: 3px; font-size: clamp(1.35rem, 2.2vw, 1.9rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1; padding-right: 6px; }
.foot-cta-text small { font: 500 11px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; }
.foot-cta-arrow { position: relative; flex: none; width: 54px; height: 54px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; transition: transform 0.6s var(--ease); }
.foot-cta-arrow i { position: relative; width: 18px; height: 2px; background: var(--sun); display: block; }
.foot-cta-arrow i::after { content: ""; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px; border: solid var(--sun); border-width: 2px 2px 0 0; transform: rotate(45deg); }
.foot-cta:hover .foot-cta-arrow { transform: rotate(-45deg); }
.foot-hi { font-size: clamp(2.3rem, 6.6vw, 6.2rem); font-weight: 500; line-height: 0.98; letter-spacing: -0.048em; max-width: 12ch; }
.tray { position: absolute; inset: 0 0 var(--barh) 0; z-index: 2; pointer-events: none; }
.sticker {
  position: absolute; left: 0; top: 0;
  pointer-events: auto; touch-action: none; cursor: grab;
  will-change: transform;
  filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.4));
  -webkit-user-select: none; user-select: none;
}
.sticker svg { width: 100%; height: 100%; overflow: visible; }
.sticker img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.sticker.is-held { cursor: grabbing; filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.45)); }
.foot-bar {
  position: relative; z-index: 3; margin-top: auto;
  height: var(--barh);
  display: flex; align-items: center; gap: clamp(12px, 2.4vw, 34px);
  padding: 0 clamp(16px, 2.4vw, 34px);
  border-top: 1px dashed rgba(239, 235, 224, 0.22);
  background: var(--bg);
}
.foot-bar .logo { height: 40px; }
.foot-bar a { margin-left: auto; opacity: 0.8; }
.foot-bar a:hover { opacity: 1; color: var(--sun); }

/* ───────── Start a project: the full-screen flow ───────── */

html.pj-lock { overflow: hidden; }
.pj {
  position: fixed; inset: 0; z-index: 200; display: none; flex-direction: column; overflow: hidden;
  background: #060d18 radial-gradient(rgba(33, 69, 217, 0.5) 0 1px, transparent 1.4px) 0 0 / 6px 6px; color: var(--cream);
  opacity: 0; transition: opacity 0.45s var(--ease);
}
.pj.is-mounted { display: flex; }
.pj.is-open { opacity: 1; }
.pj::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, #060d18 30%, rgba(6, 13, 24, 0.55) 100%); pointer-events: none; }
.orb-project { width: clamp(260px, 38vw, 600px); aspect-ratio: 1; right: -9%; bottom: -30%; opacity: 0.92; }

.pj-bar { position: relative; z-index: 2; display: flex; align-items: center; gap: clamp(12px, 2.4vw, 30px); padding: 16px var(--pad) 10px; }
.pj-logo { height: 46px; width: auto; flex: none; fill: var(--cream); }
.pj-progress { flex: 1; height: 4px; border-radius: 2px; background: rgba(239, 235, 224, 0.16); overflow: hidden; }
.pj-progress i { display: block; height: 100%; width: var(--p, 0%); background: var(--sun); transition: width 0.7s var(--ease); }
.pj-count { opacity: 0.7; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pj-close { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(239, 235, 224, 0.35); transition: background 0.3s, border-color 0.3s, transform 0.5s var(--ease); }
.pj-close i::before, .pj-close i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.pj-close i::after { transform: translate(-50%, -50%) rotate(-45deg); }
.pj-close:hover { background: var(--sun); border-color: var(--sun); color: var(--ink); transform: rotate(90deg); }

.pj-stage { position: relative; z-index: 1; flex: 1; min-height: 0; overflow-y: auto; display: grid; align-items: center; padding: 0 var(--pad); }
.pj-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.pj-step { display: none; width: 100%; max-width: 780px; margin-inline: auto; padding: 22px 0 104px; }
.pj-step.is-on { display: grid; gap: 18px; justify-items: start; animation: pj-in 0.6s var(--ease) both; }
.pj[data-dir="back"] .pj-step.is-on { animation-name: pj-in-back; }
.pj-step.is-out { animation: pj-out 0.16s ease-in both; }
@keyframes pj-in { from { opacity: 0; transform: translateY(40px); filter: blur(7px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pj-in-back { from { opacity: 0; transform: translateY(-40px); filter: blur(7px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes pj-out { to { opacity: 0; transform: translateY(-16px); } }

.pj-eyebrow { color: var(--sun); display: inline-flex; align-items: baseline; gap: 8px; }
.pj-eyebrow b { font: 800 22px/1 var(--dot); letter-spacing: 0.03em; }
.pj-q { font-size: clamp(2rem, 4.7vw, 4.1rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.046em; text-wrap: balance; outline: 0; }
.pj-note { font-size: clamp(1rem, 1.3vw, 1.2rem); line-height: 1.45; opacity: 0.74; max-width: 46ch; }
.pj-note b { font-weight: 500; color: var(--sun); }

.pj-opts { display: grid; gap: 8px; width: 100%; max-width: 480px; margin-top: 6px; }
.pj-opt {
  display: flex; align-items: center; gap: 14px; text-align: left; padding: 12px 16px 12px 12px; border-radius: 12px;
  border: 1px solid rgba(239, 235, 224, 0.3); background: #0a1322;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.4s var(--ease);
}
.pj-opt:hover { border-color: var(--sun); background: rgba(242, 183, 87, 0.12); transform: translateX(4px); }
.pj-opt[aria-checked="true"] { background: var(--sun); border-color: var(--sun); color: var(--ink); animation: pj-pick 0.34s steps(2, jump-none); }
@keyframes pj-pick { 0% { opacity: 0.45; } 100% { opacity: 1; } }
.pj-key { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; font: 600 12px/1 var(--mono); box-shadow: inset 0 0 0 1px currentColor; opacity: 0.85; }
.pj-label { display: grid; gap: 2px; font-size: 1.12rem; font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }
.pj-sub { font-size: 0.82rem; font-weight: 400; opacity: 0.66; letter-spacing: 0; }

.pj-text, .pj-input {
  width: 100%; background: transparent; border: 0; border-bottom: 2px solid rgba(239, 235, 224, 0.4); border-radius: 0; color: var(--cream);
  font: 400 clamp(1.15rem, 2vw, 1.55rem)/1.4 var(--sans); letter-spacing: -0.015em; padding: 8px 0 12px; resize: none; outline: 0;
  transition: border-color 0.3s;
}
.pj-text:focus, .pj-input:focus { border-bottom-color: var(--sun); }
.pj-text::placeholder, .pj-input::placeholder { color: rgba(239, 235, 224, 0.34); }
.pj-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; width: 100%; }
.pj-fields label { display: grid; gap: 6px; }
.pj-fields .hud { opacity: 0.6; }
.pj-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.pj-hint { opacity: 0.5; }
.pj-mailto { text-decoration: underline; text-underline-offset: 3px; opacity: 0.8; }
.pj-err { font: 500 12px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--pink); }
.pj-err:empty { display: none; }

.pj-drop {
  display: grid; gap: 10px; justify-items: center; text-align: center; width: 100%; padding: clamp(24px, 4vh, 40px) 20px; cursor: pointer;
  border: 1.5px dashed rgba(239, 235, 224, 0.42); border-radius: 18px; background: #0a1322; transition: border-color 0.3s, background 0.3s;
}
.pj-drop:hover, .pj-drop.is-over, .pj-drop:focus-within { border-color: var(--sun); background: rgba(242, 183, 87, 0.1); }
.pj-drop-big { font-size: clamp(1.1rem, 1.7vw, 1.4rem); font-weight: 500; letter-spacing: -0.02em; }
.pj-drop .hud { opacity: 0.6; }
.pj-files { display: grid; gap: 6px; width: 100%; max-height: 22vh; overflow-y: auto; }
.pj-files:empty { display: none; }
.pj-files li { display: flex; align-items: center; gap: 12px; padding: 9px 8px 9px 14px; border-radius: 10px; background: #141c2b; }
.pj-files li span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pj-files li .hud { opacity: 0.6; white-space: nowrap; }
.pj-files button { width: 30px; height: 30px; border-radius: 8px; font: 500 16px/1 var(--mono); opacity: 0.7; }
.pj-files button:hover { background: var(--coral); color: var(--cream); opacity: 1; }
.pj-meter { display: grid; gap: 8px; width: 100%; }
.pj-meter[hidden] { display: none; }
.pj-meter i { display: block; height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--sun) var(--p, 0%), rgba(239, 235, 224, 0.16) var(--p, 0%)); }
.pj-meter .hud { opacity: 0.6; }
.pj-meter.is-over i { background: var(--coral); }
.pj-meter.is-over .hud { color: var(--pink); opacity: 1; }

.pj-state { display: none; gap: 18px; justify-items: start; width: 100%; }
.pj-done[data-state="sending"] .pj-state[data-state="sending"],
.pj-done[data-state="sent"] .pj-state[data-state="sent"],
.pj-done[data-state="error"] .pj-state[data-state="error"] { display: grid; }

.pj-nav { position: absolute; z-index: 3; left: max(var(--pad), calc((100% - 780px) / 2)); bottom: max(26px, env(safe-area-inset-bottom)); display: flex; gap: 8px; }
.pj-arrow {
  display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 20px 0 16px; border-radius: 999px;
  font: 500 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase;
  background: rgba(8, 17, 30, 0.9); color: var(--cream); box-shadow: inset 0 0 0 1.5px rgba(239, 235, 224, 0.55);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, opacity 0.3s, transform 0.4s var(--ease);
}
.pj-arrow-next { background: var(--sun); color: var(--ink); box-shadow: none; padding: 0 16px 0 20px; }
.pj-arrow:hover { background: var(--cream); color: var(--ink); transform: translateY(-2px); }
.pj-arrow[disabled] { opacity: 0.32; pointer-events: none; }
.pj-arrow i { width: 9px; height: 9px; border: solid currentColor; border-width: 2.5px 0 0 2.5px; display: block; transform: translateX(2px) rotate(-45deg); }
.pj-arrow i.right { transform: translateX(-2px) rotate(135deg); }
.pj-arrow-back:hover i { transform: translateX(-1px) rotate(-45deg); }
.pj-arrow-next:hover i { transform: translateX(1px) rotate(135deg); }
.pj-arrow i { transition: transform 0.3s var(--ease); }
.pj.is-done .pj-nav { display: none; }

@media (max-width: 700px) {
  .pj-logo { height: 38px; }
  .pj-bar { padding-top: max(12px, env(safe-area-inset-top)); }
  .pj-fields { grid-template-columns: minmax(0, 1fr); }
  .pj-hint:not(.pj-mailto) { display: none; }
  .pj-step { padding: 14px 0 90px; }
  .pj-stage { align-items: start; padding-top: 3vh; }
  .orb-project { width: 86vw; right: -34%; bottom: -16%; opacity: 0.55; }
  .pj-opt { padding: 10px 14px 10px 10px; }
}

/* ───────── smaller screens ───────── */

@media (max-width: 1020px) {
  .isle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .isle { aspect-ratio: 3 / 3.5; }
  .nav-where { display: none; }
}

@media (max-width: 860px) {
  :root { --navh: 50px; }
  body { font-size: 16px; }
  .brand .logo { height: 58px; margin-top: 10px; }
  .nav.is-stuck .brand .logo { height: 32px; margin-top: 0; }
  .nav { gap: 8px; padding: 0 5px 0 9px; }
  .nav nav a { padding: 11px 8px; font-size: 10.5px; letter-spacing: 0.06em; }
  .nav nav a.nav-hi { padding-inline: 12px; margin-left: 2px; }
  .card { margin-top: 11vh; }
  .card-in, .card-in-flip, .card-in-stack, .card-in-studio { grid-template-columns: minmax(0, 1fr); }
  .card-in-flip .card-art { order: 2; }
  .card-art { min-height: 0; padding: 26px 0 8px; }
  .card-art-wide { padding-top: 6px; }
  .editions { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li { grid-template-columns: auto 1fr; column-gap: 18px; }
  .steps .step-no { grid-row: span 2; }
  .orb-custom-a { right: -24%; top: -9%; opacity: 0.85; }
  .orb-custom-b { display: none; }
  .card-custom .display { max-width: 9ch; }
  .foot-cta { gap: 12px; padding: 9px 9px 9px 10px; }
  .foot-cta-sun, .foot-cta-arrow { width: 44px; height: 44px; }
  .foot-cta-sun::before { width: 24px; height: 24px; margin-left: -12px; }
  .foot-social { padding: 11px 14px 10px; }
  .foot-cta-text small span { display: none; }
  .peak span { font-size: 9px; padding: 4px 5px 3px; left: 19px; }
  .peak-left span { left: auto; right: 19px; }
  .island-sun { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
  .card::before, .card::after { display: none; }
  .foot-bar .hud-dim { display: none; }
}

@media (max-width: 520px) {
  .nav nav a:nth-child(3) { display: none; }
  .hero { padding-top: calc(var(--navh) + 30px); }
  .isle { aspect-ratio: 3 / 4.3; padding: 12px; }
  .isle-state { font-size: 8.5px; letter-spacing: 0.06em; }
  .feats { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .specs > div { grid-template-columns: 5.6rem 1fr; }
  .rec-key { width: 58px; }
  .foot-bar > .hud:not(a) { display: none; }
  .hero-foot .hero-hud { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0ms !important; }
  .js [data-reveal], .js .card { opacity: 1; transform: none; filter: none; }
  .js .verse[data-verse] { opacity: 1 !important; }
  .js img[data-pixel] { opacity: 1 !important; }
}
