@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
:root {
  --bg: #03040c; --ink: #eef0ff; --mute: #9aa3c9; --line: #ffffff1f;
  --blue: #4f9dff; --indigo: #6f7bff; --violet: #a66bff; --pink: #e58bff; --cyan: #66e3ff; --teal: #4fe0c2; --rose: #ff7fb8;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body { color: var(--ink); font-family: Sora, system-ui, sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
.mono { font: 600 12px/1 "JetBrains Mono", monospace; letter-spacing: .16em; text-transform: uppercase; }
.clip { -webkit-background-clip: text; background-clip: text; color: transparent; }

/* The wordmark is always the full name: PAL42 */
.wm { font-family: Michroma, sans-serif; font-weight: 400; letter-spacing: .02em; }
.wm .a { background-image: linear-gradient(180deg, #fff 25%, #b9c6ff 95%); }
.wm .b { background-image: linear-gradient(115deg, var(--blue), var(--violet) 55%, var(--pink)); }

/* Space backdrop */
#nebula, #stars { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#nebula { z-index: -3; opacity: .85; transform: scale(1.25); will-change: transform; }
#stars { z-index: -2; }
.shade { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(120% 95% at 50% 38%, transparent 45%, #03040cd9 100%); }
#nebula { transition: filter 1.6s; }
#sun { position: fixed; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; z-index: 100; pointer-events: none; opacity: 0; transition: opacity .25s; will-change: transform; }
#sun.on { opacity: .8; } #sun.text { opacity: 0; }
.sun-in { width: 100%; height: 100%; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); filter: drop-shadow(0 0 5px #ffd76a) drop-shadow(0 0 16px #ff9d2ecc); }
#sun svg { display: block; width: 100%; height: 100%; overflow: visible; }
#rays { transform-origin: 0 0; animation: sunspin 16s linear infinite; }
@keyframes sunspin { to { transform: rotate(360deg); } }
#sun.hot .sun-in { transform: scale(1.5) rotate(22.5deg); }     /* over something clickable */
#sun.down .sun-in { transform: scale(.8); }
html.sun, html.sun * { cursor: none !important; }
html.sun input { cursor: text !important; }
body[data-world="software"] #nebula { filter: hue-rotate(-28deg) saturate(1.15); }
body[data-world="entertainment"] #nebula { filter: hue-rotate(32deg) saturate(1.15); }
#page { transition: opacity .45s, transform .7s cubic-bezier(.3, 0, .2, 1); }
body.warping #page { opacity: 0; transform: scale(1.07); }

nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 16px clamp(18px, 4vw, 44px); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
nav.stuck { background: #03040cb8; backdrop-filter: blur(14px); border-color: var(--line); }
nav .wm { font-size: 20px; }
nav .links { display: flex; gap: 30px; font-size: 14.5px; color: var(--mute); }
nav .links a:hover { color: var(--ink); }
.navr { display: flex; align-items: center; gap: 10px; }
.menu { display: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #ffffff0a; cursor: pointer; place-content: center; gap: 6px; }   /* phone menu button */
.menu i { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s; }
nav.open .menu i:first-child { transform: translateY(4px) rotate(45deg); } nav.open .menu i:last-child { transform: translateY(-4px) rotate(-45deg); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }   /* hidden field that only bots fill in */

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 99px; font: 600 15px Sora, sans-serif; color: var(--ink); border: 1px solid #ffffff3a; background: #ffffff0a; cursor: pointer; transition: transform .2s, box-shadow .3s, background .3s; }
.btn:hover { transform: translateY(-2px); background: #ffffff16; }
.btn.primary { border: 0; color: #fff; background: linear-gradient(100deg, var(--blue), var(--violet)); box-shadow: 0 8px 34px -8px #6f7bffcc; }
.btn.primary:hover { box-shadow: 0 10px 46px -6px #8f7bff; }
.btn.sm { padding: 9px 16px; font-size: 14px; }

/* Hero */
.hero { min-height: min(94vh, 900px); display: grid; justify-items: center; align-content: start; text-align: center; padding: 82px 20px 76px; position: relative; overflow-x: clip; }
.hero-in { position: relative; width: min(1100px, 100%); }
.stage { position: relative; width: fit-content; margin: 124px auto 132px; will-change: transform; }   /* margins are set precisely by layoutOrbits() */
.orbits { position: absolute; left: 50%; top: 50%; overflow: visible; pointer-events: none; z-index: 0; }
.haze { position: absolute; left: 50%; top: 50%; translate: -50% -50%; pointer-events: none; z-index: 0; }   /* the planets' comet haze (core.js) */
.orb { --c: var(--blue); --cg: color-mix(in srgb, var(--c) 70%, #fff); --g: 0; --s: 1; --hx: 32%; --hy: 26%; position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; margin: -30px; border-radius: 50%; display: grid; place-items: center; will-change: transform;
  background: radial-gradient(circle at var(--hx) var(--hy), color-mix(in srgb, var(--c) 62%, #fff), color-mix(in srgb, var(--c) 36%, #070919) 48%, #070919 100%);
  border: 1px solid color-mix(in srgb, var(--c) 75%, transparent); transition: box-shadow .3s;
  /* the glow uses the planet's colour lifted toward white (--cg), so deep indigo and violet planets shine as brightly as the rest */
  box-shadow: 0 0 14px 2px var(--cg), 0 0 38px 9px color-mix(in srgb, var(--cg) 55%, transparent), 0 0 76px 16px color-mix(in srgb, var(--cg) 22%, transparent), inset 0 0 14px color-mix(in srgb, var(--c) 45%, transparent); }
/* light on the planet itself: a highlight on the side facing the light (the wordmark, or the sun cursor as it nears, when it
   grows warmer and brighter) and a soft shadow on the far side, over the icon as well, so every planet reads as a sphere */
.orb::before { content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at var(--hx) var(--hy), rgb(255 244 214 / calc(.12 + var(--g) * .5)), rgb(255 230 170 / calc(var(--g) * .22)) 24%, transparent 50%),
    radial-gradient(circle at calc(100% - var(--hx)) calc(100% - var(--hy)), rgb(3 4 12 / .34), transparent 64%); }
.orb.own::before { inset: 2%; }   /* UIxPAL's own orb fills 96% of its square */
.orb::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; z-index: -1; pointer-events: none; opacity: var(--g);
  background: radial-gradient(closest-side, color-mix(in srgb, #ffd76a 55%, var(--cg)) 40%, transparent); }   /* sunlit halo as the cursor nears */
.orb:hover { box-shadow: 0 0 20px 3px var(--cg), 0 0 52px 12px color-mix(in srgb, var(--cg) 55%, transparent), 0 0 80px 18px color-mix(in srgb, var(--c) 24%, transparent), inset 0 0 18px color-mix(in srgb, var(--c) 60%, transparent); }
.orb.pic { background: #05060f; }
.orb.own { background: none; border-color: transparent; } .orb.own img { border-radius: 0; object-fit: contain; }   /* an icon that brings its own orb (UIxPAL: its pointer breaks past the rim, so no crop) */
.orb img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; pointer-events: none; }   /* the project's own icon */
.orb svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 5px var(--c)); }
.orb em { position: absolute; top: calc(100% + 9px); left: 50%; translate: -50% 0; transform: scale(calc(1 / var(--s))); transform-origin: 50% 0; white-space: nowrap; font: 600 12px "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: #fff; font-style: normal; z-index: 2;
  padding: 6px 11px; border-radius: 99px; background: #03040cf0; border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); opacity: clamp(0, calc(var(--g) * 2.4), 1); pointer-events: none; }
.orb:focus-visible em { opacity: 1; }
/* The key: two equal pills, so the pair sits exactly on the page's centre line. Each word runs through every colour its planets use. */
.key { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.key a { font: 600 12px/1 "JetBrains Mono", monospace; letter-spacing: .16em; text-indent: .16em; text-transform: uppercase; text-align: center; padding: 11px 18px; border-radius: 99px; color: #fff; text-shadow: 0 1px 2px #000c, 0 0 9px #0009;
  border: 1px solid #ffffff59; box-shadow: 0 8px 26px -10px var(--glow), inset 0 1px 0 #ffffff66; transition: filter .25s, transform .25s; }
.key .sw { --glow: var(--blue); background: linear-gradient(#0a0d2433, #0a0d2433), linear-gradient(90deg, var(--indigo), var(--blue), var(--cyan), var(--teal)); }    /* TeachPAL, CodePAL, UIxPAL, VideoPAL */
.key .en { --glow: var(--pink); background: linear-gradient(#0a0d2433, #0a0d2433), linear-gradient(90deg, var(--violet), var(--pink), var(--rose)); }                 /* These Sweet Dreams, S.T.A.R.+ Music, The Invasion */
.key a:hover { filter: brightness(1.14); transform: translateY(-1px); }
.g-sw, .g-en { -webkit-background-clip: text; background-clip: text; color: transparent !important; }
.g-sw { background-image: linear-gradient(90deg, var(--indigo), var(--blue), var(--cyan), var(--teal)); }   /* TeachPAL, CodePAL, UIxPAL, VideoPAL */
.g-en { background-image: linear-gradient(90deg, var(--violet), var(--pink), var(--rose)); }                /* These Sweet Dreams, S.T.A.R.+ Music, The Invasion */
a, img, svg { -webkit-user-drag: none; } body { -webkit-user-select: none; user-select: none; } input, textarea { -webkit-user-select: text; user-select: text; }
@keyframes pulse { 50% { opacity: .3; } }
h1.wm { font-size: clamp(58px, min(13.5vw, 23vh), 200px); line-height: 1; margin: 0; position: relative; z-index: 2; pointer-events: none; filter: drop-shadow(0 0 36px #6f7bff80); }
h1.wm::before { content: "PAL42"; position: absolute; inset: 0; pointer-events: none; color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: radial-gradient(230px circle at var(--lx, -999px) var(--ly, -999px), #fff7dc, #ffd76a99 35%, transparent 70%); }
h1.wm::after { content: "PAL42"; position: absolute; inset: 0; pointer-events: none; color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(105deg, transparent 43%, #ffffffe6 50%, transparent 57%); background-size: 300% 100%; background-repeat: no-repeat; background-position: 100% 0; animation: shine 7s ease-in-out infinite; }
@keyframes shine { 0%, 55% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.tag { font-size: clamp(20px, 2.6vw, 34px); font-weight: 300; letter-spacing: -.01em; color: #e3e7ff; }
.tag em { font-style: normal; font-weight: 600; background-image: linear-gradient(90deg, var(--blue), var(--pink)); }
.sub { color: var(--mute); max-width: 36em; margin: 12px auto 26px; font-size: 17px; line-height: 1.6; }
.cta { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.scroll { position: absolute; bottom: 24px; left: 50%; translate: -50% 0; color: var(--mute); animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { translate: var(--bx, -50%) 8px; } }

/* Cursor spotlight shared by portals and cards */
.glow { position: relative; }
.glow::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c) 22%, transparent), transparent 62%); }
.glow:hover::before { opacity: 1; }

/* The two portals */
.portals { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; width: min(1240px, 92vw); margin: 0 auto; }
.portal { --c: var(--blue); --c2: var(--cyan); border-radius: 30px; min-height: 580px; display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(170deg, #0d1235e0, #070919f2); transition: transform .25s ease-out, box-shadow .4s; }
.portal.en { --c: var(--violet); --c2: var(--pink); }
.portal:hover { box-shadow: 0 34px 100px -34px var(--c); }
.portal::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), #ffffff24 0 55%, var(--c) 74%, var(--c2) 86%, #ffffff24 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 7s linear infinite; }
@keyframes spin { to { --ang: 360deg; } }
.art { height: 280px; position: relative; overflow: hidden; background: radial-gradient(70% 90% at 50% 100%, color-mix(in srgb, var(--c) 32%, transparent), transparent 70%); }
.portal .body { padding: 10px 34px 32px; display: flex; flex-direction: column; gap: 14px; flex: 1; position: relative; z-index: 2; }
.portal .mono { color: var(--c2); }
.portal h2 { font-size: clamp(30px, 3.5vw, 50px); font-weight: 700; letter-spacing: -.03em; line-height: 1.04; }
.portal p { color: #c3c9ea; font-size: 17px; line-height: 1.55; font-weight: 300; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips > span { font-size: 13px; padding: 6px 12px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); }
.enter { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 17px; }
.enter i { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 20px; color: #04050f; background: linear-gradient(120deg, var(--c), var(--c2)); transition: transform .35s; }
.portal:hover .enter i { transform: translateX(6px) scale(1.08); }

/* Software portal art: floating app windows that fan out on hover */
.stack { --bx: 0; position: absolute; left: calc(50% + var(--nx, 0) * 44px); top: calc(56% + var(--ny, 0) * 28px); transition: left .5s ease-out, top .5s ease-out; width: 250px; height: 160px; transform: translate(-50%, -50%) rotateX(56deg) rotateZ(-34deg); transform-style: preserve-3d; animation: bob 6s ease-in-out infinite; }
.win { position: absolute; inset: 0; border-radius: 14px; border: 1px solid #ffffff38; background: linear-gradient(160deg, #1a2260eb, #0c1030eb); box-shadow: 0 0 34px -6px var(--c); padding: 28px 14px 12px; display: grid; gap: 7px; align-content: start;
  transform: translateZ(calc(var(--i) * var(--gap, 36px))); transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.portal:hover .win { --gap: 66px; }
.win::before { content: ""; position: absolute; left: 12px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: #ff6b8b; box-shadow: 12px 0 #ffd76a, 24px 0 #5ce1a5; }
.win u { display: block; height: 6px; border-radius: 4px; width: var(--w, 60%); background: var(--k, #ffffff40); }

/* Entertainment portal art: ringed planet, sound waves, equaliser */
.wave { position: absolute; left: 50%; top: 46%; width: 150px; height: 150px; margin: -75px; border-radius: 50%; border: 1px solid var(--pink); opacity: 0; animation: ripple 4.5s linear infinite; animation-delay: calc(var(--i) * -1.5s); }
@keyframes ripple { from { transform: scale(.7); opacity: .7; } to { transform: scale(3.4); opacity: 0; } }
.planet-wrap { --bx: 0; position: absolute; left: 50%; top: 46%; width: 168px; height: 168px; margin: -84px; animation: bob 7s ease-in-out infinite; }
#earth { display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 44px 0 #4f9dff73, 0 0 120px 12px #a66bff40; }   /* atmosphere glow */
.eq { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; display: flex; gap: 4px; align-items: flex-end; padding: 0 28px; opacity: .75; }
.eq i { flex: 1; height: 100%; border-radius: 3px 3px 0 0; transform-origin: bottom; background: linear-gradient(to top, var(--c), var(--c2)); animation: eq var(--d, 1s) ease-in-out infinite alternate; }
@keyframes eq { from { transform: scaleY(.1); } to { transform: scaleY(1); } }

/* Sections */
section { width: min(1240px, 92vw); margin: 0 auto; padding-top: 130px; }
.head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 38px; }
.head h2 { font-size: clamp(32px, 4.6vw, 62px); font-weight: 800; letter-spacing: -.035em; line-height: 1; margin-top: 14px; }
.head p { color: var(--mute); max-width: 30em; line-height: 1.6; font-weight: 300; }

.grid { display: grid; gap: 20px; }
.apps { grid-template-columns: repeat(2, 1fr); }
.ents { grid-template-columns: repeat(3, 1fr); }
.card { --c: var(--blue); border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(165deg, #0e1334dc, #070919ec); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s, border-color .35s, box-shadow .35s; }
.ents .card { container-type: inline-size; }
.ents .card h3 { font-size: min(25px, calc((100cqi - 128px) / 10.6)); white-space: nowrap; }   /* sized to the card, so "These Sweet Dreams" stays on one line */
.foot .soon, .foot .link { white-space: nowrap; } .foot { flex-wrap: wrap; row-gap: 10px; }
@container (max-width: 340px) { .ents .card h3 { font-size: 22px; white-space: normal; } .ents .card h3 .appic { width: 44px; height: 44px; margin-right: 11px; } }   /* narrow three-across cards on mid-size screens: a readable size, wrapping if it must */
#uipal { background: linear-gradient(165deg, #1c2560d6, #11163fe6); } #uipal .demo { background-color: #0d1236b3; }   /* lighter, so the UIxPAL orb stands out */
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 24px 70px -34px var(--c); }
.demo { height: 176px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(90% 120% at 50% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%), #05071699; }
.ents .demo { height: 230px; }
.txt { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.card h3 b { color: var(--c); }
.appic { width: 60px; height: 60px; border-radius: 50%; vertical-align: middle; margin: -6px 14px -4px 0; box-shadow: 0 6px 16px -6px #000, 0 0 18px -6px var(--c); }   /* the project icon beside each card title */
.appic.own { border-radius: 0; box-shadow: none; filter: drop-shadow(0 6px 10px #0008); }
.appic.line { display: inline-grid; place-items: center; background: radial-gradient(circle at 32% 26%, color-mix(in srgb, var(--c) 62%, #fff), color-mix(in srgb, var(--c) 36%, #070919) 48%, #070919); border: 1px solid color-mix(in srgb, var(--c) 75%, transparent); box-sizing: border-box; }
.appic.line svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* UIxPAL wordmark (card title and planet label): white UI, a small teal x, indigo-to-violet PAL */
.card h3.uix i, .orb em i { font-style: normal; font-size: .72em; color: var(--teal); margin: 0 .05em; text-transform: none; }
.card h3.uix b { background: linear-gradient(90deg, var(--indigo), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card p { color: #b7bfe2; line-height: 1.55; font-weight: 300; }
.card ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 4px; }
.card li { font-size: 13px; color: #cfd6f5; padding: 5px 10px; border-radius: 8px; background: #ffffff0d; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; }
.soon { color: var(--c); display: inline-flex; align-items: center; gap: 8px; }
.soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); animation: pulse 2s infinite; }
.star { font-kerning: none; } .star i { display: inline-block; width: .94em; text-align: center; font-style: normal; }   /* S. T. A. R. on an even grid */
.link { font-weight: 600; font-size: 14.5px; opacity: .85; } .card:hover .link { opacity: 1; }
.card .link::after { content: ""; position: absolute; inset: 0; z-index: 3; }   /* stretches the link over the whole card */
.card.arrive { animation: arrive 2.2s ease-out; }                             /* flash when a planet delivers you here */
@keyframes arrive { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 25% { box-shadow: 0 0 0 2px var(--c), 0 0 90px -8px var(--c); } }
.chips > span[data-go] { transition: background .2s; } .chips > span[data-go]:hover { background: color-mix(in srgb, var(--c) 36%, transparent); }
.more { margin-top: 20px; padding: 22px 26px; border-radius: 20px; border: 1px dashed #ffffff33; color: var(--mute); display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.more b { color: var(--ink); font-weight: 600; }

@keyframes blink { 50% { opacity: 0; } }
/* CodePAL and TeachPAL demos: taller than the other cards' pictures, so the whole software grid gets the same height.
   Their layouts switch to a stacked phone version through container queries on the card. */
.apps .card { container-type: inline-size; }
.apps .demo { height: 316px; }
.demo.b1, .demo.tq { font-family: Sora, sans-serif; }
@container (max-width: 400px) { .demo.b1 { height: 410px; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.m9 { font: 600 9px "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: #8f9bd0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pnl { border-radius: 10px; background: linear-gradient(180deg, #0d1336f2, #090c26f2); border: 1px solid #ffffff1c; box-shadow: 0 14px 34px -18px #000, inset 0 1px 0 #ffffff0d; }
.live { display: inline-flex; align-items: center; gap: 6px; font: 600 9.5px "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: #b9ffe6; white-space: nowrap; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px var(--teal); animation: pulse 1.4s infinite; }
.bar { height: 5px; border-radius: 3px; background: #ffffff14; overflow: hidden; } .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--teal)); transition: width .5s ease-out; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 99px; font: 600 9px "JetBrains Mono", monospace; letter-spacing: .05em; color: #e3ebff; border: 1px solid #4f9dff73; background: #4f9dff26; white-space: nowrap; transition: all .4s; }
.pill.cloud { border-color: #a66bff80; background: #a66bff2e; } .pill.safe { color: #b9ffe6; border-color: #4fe0c273; background: #4fe0c21f; }
.pill.safe::before { content: ""; width: 7px; height: 8px; border-radius: 2px 2px 3px 3px; background: currentColor; clip-path: polygon(50% 0, 100% 18%, 100% 60%, 50% 100%, 0 60%, 0 18%); }
.pills { display: flex; gap: 5px; flex-wrap: wrap; }
.typing::after { content: "|"; color: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
/* ----- The Design box (shared) ----- */
.dsg { font-size: 11px; line-height: 1.45; color: #fff; padding: 7px 9px; border-radius: 8px; background: #ffffff0a; border: 1px solid #ffffff14; }
.dsg > b { display: flex; align-items: center; gap: 7px; font: 600 9px "JetBrains Mono", monospace; letter-spacing: .1em; color: #8f9bd0; margin-bottom: 3px; }
.kind { font: 700 7.5px "JetBrains Mono", monospace; letter-spacing: .08em; color: #04121a; background: var(--cyan); padding: 2px 5px; border-radius: 3px; }
.dsg > b .pills { margin-left: auto; }
/* ----- Mockups: little app screens drawn at twice the size and scaled down, so they look like real designs ----- */
.mks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; min-height: 0; }
.mk { --z: .5; position: relative; border-radius: 6px; overflow: hidden; background: #fff; min-height: 0; box-shadow: 0 8px 20px -10px #000; opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .45s, transform .45s, box-shadow .4s; }
.mk.in { opacity: 1; transform: none; }
.chosen .mk.in { opacity: .38; transform: scale(.97); filter: saturate(.6); }
.chosen .mk.lockd { opacity: 1; filter: none; transform: translateY(-2px); box-shadow: 0 0 0 2px var(--cyan), 0 0 20px -2px var(--cyan); }
.mk .lk { position: absolute; left: 4px; top: 3px; z-index: 2; font: 700 7.5px "JetBrains Mono", monospace; letter-spacing: .08em; color: #04121a; background: var(--cyan); border-radius: 99px; padding: 2px 6px; opacity: 0; transition: opacity .3s .2s; box-shadow: 0 2px 8px #0006; }
.mk.lockd .lk { opacity: 1; }
.scr { position: absolute; left: 0; top: 0; width: calc(100% / var(--z)); height: calc(100% / var(--z)); transform: scale(var(--z)); transform-origin: 0 0; display: flex; flex-direction: column; gap: 7px; padding-bottom: 10px; box-sizing: border-box; background: var(--mbg, #f7f8fc); color: var(--mink, #151a33); font: 500 10px/1.3 Sora, sans-serif; overflow: hidden; }
.scr::before { content: "9:41"; flex: none; display: block; padding: 5px 11px 0; font: 700 7.5px Sora, sans-serif; letter-spacing: .02em; opacity: .55; background: radial-gradient(circle at calc(100% - 26px) 70%, currentColor 1.6px, transparent 2px), radial-gradient(circle at calc(100% - 19px) 70%, currentColor 1.6px, transparent 2px), radial-gradient(circle at calc(100% - 12px) 70%, currentColor 1.6px, transparent 2px); }
.scr .tb { display: flex; align-items: center; gap: 7px; padding: 0 11px; }
.scr h6 { margin: 0; font: 700 14px/1.1 Sora, sans-serif; letter-spacing: -.02em; white-space: nowrap; }
.scr h6 small { display: block; margin-bottom: 2px; font: 500 8px Sora, sans-serif; letter-spacing: .01em; color: var(--mm, #8a90a8); }
.scr .serif, .scr h6.serif { font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: .01em; }
.scr .r { margin-left: auto; display: flex; align-items: center; gap: 5px; }
.scr .av { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--av, linear-gradient(135deg, #ffb38a, #ff6b8b)); box-shadow: 0 0 0 2px var(--card, #fff), 0 2px 5px #0002; }
.scr .ic { width: 20px; height: 20px; border-radius: 50%; background: var(--card, #fff); box-shadow: 0 1px 3px #0000001c; display: grid; place-items: center; }
.scr .ic::after { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.6px solid currentColor; opacity: .55; }
.scr .pill2 { padding: 4px 9px; border-radius: 99px; background: var(--a); color: var(--bti, #fff); font: 700 8.5px Sora, sans-serif; box-shadow: 0 4px 10px -4px var(--a); white-space: nowrap; }
.scr .sr { margin: 0 11px; display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 10px; background: var(--card, #fff); box-shadow: 0 1px 3px #00000012, 0 0 0 1px #0000000a; color: var(--mm, #8a90a8); font-size: 9px; }
.scr .sr::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1.6px solid currentColor; }
.scr .ch { display: flex; gap: 5px; padding: 0 11px; flex-wrap: wrap; }
.scr .ch span { padding: 4px 9px; border-radius: 99px; background: var(--card, #fff); box-shadow: 0 0 0 1px #00000012; font-size: 8.5px; font-weight: 600; white-space: nowrap; }
.scr .ch span.on { background: var(--a); color: var(--bti, #fff); box-shadow: 0 4px 10px -5px var(--a); }
.scr .gr { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 8px; padding: 0 11px; flex: 1; min-height: 0; }
.scr .gr.g3 { grid-template-columns: repeat(3, 1fr); grid-auto-rows: auto; flex: none; gap: 5px; }
.scr .tile { background: var(--card, #fff); border-radius: 11px; box-shadow: 0 2px 7px #00000012, 0 0 0 1px #0000000a; display: flex; flex-direction: column; overflow: hidden; min-height: 0; position: relative; }
.scr .ph { flex: 1; min-height: 0; background: var(--p); }
.scr .cap { padding: 5px 7px 6px; font-weight: 700; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scr .cap small { display: block; font-weight: 500; font-size: 7.5px; color: var(--mm, #8a90a8); }
.scr .cap em { position: absolute; right: 6px; bottom: 7px; font: 700 8px Sora, sans-serif; font-style: normal; color: var(--a); }
.scr .ls { display: flex; flex-direction: column; gap: 5px; min-height: 0; overflow: hidden; }
.scr .row { display: flex; align-items: center; gap: 8px; margin: 0 11px; padding: 5px 8px; border-radius: 10px; background: var(--card, #fff); box-shadow: 0 1px 4px #00000010, 0 0 0 1px #0000000a; white-space: nowrap; flex: none; }
.scr .row .th { width: 22px; height: 22px; border-radius: 50%; flex: none; background: var(--p); box-shadow: 0 1px 3px #0003; }
.scr .row .d { flex: none; width: 20px; font: 700 7.5px Sora, sans-serif; letter-spacing: .05em; text-transform: uppercase; color: var(--a); }
.scr .row .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 700; font-size: 9.5px; }
.scr .row .t small { display: block; font-weight: 500; font-size: 7.5px; color: var(--mm, #8a90a8); }
.scr .row .end { margin-left: auto; font-weight: 700; font-size: 9.5px; }
.scr .row .chev { margin-left: auto; color: var(--mm, #8a90a8); font-size: 12px; line-height: 1; }
.scr .cb { flex: none; width: 13px; height: 13px; border-radius: 4px; border: 1.8px solid var(--a); box-sizing: border-box; }
.scr .cb.y { background: var(--a) radial-gradient(circle, #fff 1.4px, transparent 1.8px); }
.scr .row.done .t { opacity: .5; text-decoration: line-through; }
.scr .bt { margin: auto 11px 0; padding: 8px; border-radius: 11px; text-align: center; color: var(--bti, #fff); background: var(--a); font-weight: 700; font-size: 9.5px; box-shadow: 0 7px 14px -7px var(--a); white-space: nowrap; flex: none; }
.scr .hro { margin: 0 11px; border-radius: 14px; flex: 1; min-height: 0; background: linear-gradient(180deg, transparent 30%, #000000b0), var(--p); color: #fff; padding: 11px; display: flex; flex-direction: column; justify-content: flex-end; font: 700 15px/1.1 Sora, sans-serif; letter-spacing: -.02em; box-shadow: 0 8px 18px -10px #000; }
.scr .hro small { font: 500 8px Sora, sans-serif; letter-spacing: 0; opacity: .85; margin-top: 4px; }
.scr .hro .kick { font: 700 7px Sora, sans-serif; letter-spacing: .16em; text-transform: uppercase; opacity: .8; margin-bottom: 5px; }
.scr .days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; padding: 0 11px; }
.scr .days span { padding: 5px 0; border-radius: 9px; text-align: center; background: var(--card, #fff); box-shadow: 0 0 0 1px #0000000f; font-size: 7px; color: var(--mm, #8a90a8); }
.scr .days span b { display: block; font-size: 11px; color: var(--mink, #151a33); }
.scr .days span.on { background: var(--a); color: #ffffffc0; box-shadow: 0 5px 12px -6px var(--a); } .scr .days span.on b { color: #fff; }
.scr .tg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 0 11px; }
.scr .tg span { padding: 6px 0; text-align: center; border-radius: 8px; background: var(--card, #fff); box-shadow: 0 0 0 1px #00000012; font-size: 9px; font-weight: 600; }
.scr .tg .x { opacity: .3; text-decoration: line-through; box-shadow: none; background: transparent; } .scr .tg .on { background: var(--a); color: #fff; box-shadow: 0 5px 12px -6px var(--a); }
.scr .lbl { padding: 0 11px; font: 700 7px Sora, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--mm, #8a90a8); }
.scr .map { flex: 1; min-height: 0; position: relative; margin: 0 11px; border-radius: 14px; overflow: hidden; background: radial-gradient(ellipse at 20% 100%, #8fe3a0 0 30%, transparent 31%), radial-gradient(ellipse at 90% 95%, #79d68e 0 26%, transparent 27%), radial-gradient(circle at 80% 18%, #fff7c2 0 7%, transparent 8%), linear-gradient(#9fdcff, #d8f3ff 70%); box-shadow: inset 0 0 0 1px #0000000d; }
.scr .map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scr .lv { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; background: #fff; color: #7a86b0; font: 700 9px/20px Sora, sans-serif; text-align: center; box-shadow: 0 3px 0 #0000001f; font-style: normal; }
.scr .lv.d { background: #2fb57a; color: #fff; } .scr .lv.on { background: var(--a); color: #fff; box-shadow: 0 0 0 4px #ffffff99, 0 3px 0 #0002; }
.scr .prog { margin: 0 11px; display: flex; align-items: center; gap: 7px; font-size: 8px; font-weight: 600; color: var(--mm, #8a90a8); white-space: nowrap; }
.scr .prog i { flex: 1; height: 7px; border-radius: 9px; background: #00000010; overflow: hidden; } .scr .prog i::after { content: ""; display: block; height: 100%; width: var(--v); border-radius: 9px; background: var(--a); }
.scr .tab { display: flex; justify-content: space-around; margin-top: auto; padding: 7px 11px 0; border-top: 1px solid #0000000f; flex: none; }
.scr .tab span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 7px; font-weight: 600; color: var(--mm, #8a90a8); }
.scr .tab span::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: currentColor; opacity: .3; } .scr .tab span.on { color: var(--a); } .scr .tab span.on::before { opacity: 1; }
/* ===== CodePAL 1 · Option B refined ===== */
.b1 { padding: 12px 14px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 10px; }
.b1-you, .b1-auto { padding: 9px 10px; display: flex; flex-direction: column; gap: 7px; min-width: 0; min-height: 0; overflow: hidden; }
.b1-auto { border-color: #66e3ff4d; box-shadow: 0 0 30px -14px var(--cyan); }
.b1 .dsg { min-height: 64px; flex: none; }
.b1 .mks { flex: 1; }
.log { display: flex; flex-direction: column; gap: 5px; overflow: hidden; flex: 1; justify-content: flex-end; min-height: 0; }
.log div { display: flex; gap: 8px; align-items: baseline; font-size: 11px; line-height: 1.3; color: #dfe6ff; animation: rise .35s ease-out; flex: none; }
.log div b { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--k); box-shadow: 0 0 7px var(--k); translate: 0 -1px; }
.log div.old { opacity: .55; }
.mksub { font-size: 10px; color: #6b76a8; margin-top: -4px; }
/* autopilot: phase chip, tagged log lines, batch progress */
.ap-hd { display: flex; align-items: center; gap: 8px; }
.phase { margin-left: auto; font: 700 8px "JetBrains Mono", monospace; letter-spacing: .1em; color: #04050f; background: var(--k, #8f9bff); padding: 3px 7px; border-radius: 99px; box-shadow: 0 0 14px -3px var(--k, #8f9bff); transition: background .3s, box-shadow .3s; white-space: nowrap; }
.log div em { flex: none; width: 38px; font: 700 7.5px "JetBrains Mono", monospace; font-style: normal; letter-spacing: .08em; text-align: center; color: var(--k); border: 1px solid color-mix(in srgb, var(--k) 55%, transparent); background: color-mix(in srgb, var(--k) 14%, transparent); border-radius: 4px; padding: 2px 0; translate: 0 -1px; }
.log div.bug { color: #ffc2ca; }
.ap-ft { flex: none; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding-top: 7px; border-top: 1px solid #ffffff12; font: 600 9.5px "JetBrains Mono", monospace; color: #8f9bd0; white-space: nowrap; }
.ap-ft .ok { color: #b9ffe6; } .ap-ft .bad { color: #ff9aa6; }
@container (max-width: 400px) {
  .b1 { grid-template-columns: 1fr; grid-template-rows: 1.55fr 1.45fr; gap: 8px; }
  .b1 .dsg { min-height: 0; } .b1-you { gap: 5px; } .b1-you > .m9:first-child, .mksub { display: none; } .b1-auto { gap: 6px; }
}
/* ===== TeachPAL (both): a request, the material it creates, and where the AI runs ===== */
.tq { padding: 12px 14px; display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto 1fr auto; grid-template-areas: "ask files" "doc files" "ai ai"; gap: 8px 10px; }
.tq .tr-ask { grid-area: ask; } .tq .tr-doc { grid-area: doc; min-height: 0; } .tq .tr-files { grid-area: files; min-height: 0; } .tq .tz-ai { grid-area: ai; }
.tr-files .tally { margin-top: auto; padding-top: 6px; border-top: 1px solid #ffffff12; display: flex; justify-content: space-between; gap: 8px; font: 600 9.5px "JetBrains Mono", monospace; color: #6b76a8; opacity: 0; transition: opacity .4s; white-space: nowrap; } .tr-files .tally.on { opacity: 1; } .tr-files .tally b { color: #b9ffe6; }
.tr-ask { align-self: flex-start; max-width: 100%; box-sizing: border-box; padding: 6px 11px; border-radius: 12px 12px 12px 3px; font: 500 11px/1.4 Sora, sans-serif; color: #fff; background: linear-gradient(120deg, var(--indigo), var(--blue)); min-height: 28px; display: flex; flex-direction: column; gap: 4px; flex: none; }
.att { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px 2px 5px; border-radius: 6px; background: #ffffff26; font: 600 9.5px "JetBrains Mono", monospace; }
.att::before { content: ""; width: 8px; height: 10px; border-radius: 1.5px; background: #fff; clip-path: polygon(0 0, 65% 0, 100% 30%, 100% 100%, 0 100%); }
.att[hidden] { display: none; }
.tr-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.2fr 1fr; gap: 8px; }
.tr-doc { background: #f4f6ff; border-radius: 9px; padding: 8px 10px; color: #1a2150; overflow: hidden; display: flex; flex-direction: column; gap: 5px; box-shadow: 0 10px 24px -14px #000; }
.tr-doc > div:first-child { display: flex; align-items: center; gap: 6px; } .tr-doc b { font: 700 11px Sora, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dtag { flex: none; margin-left: auto; font: 700 7.5px "JetBrains Mono", monospace; letter-spacing: .08em; color: #fff; background: var(--indigo); padding: 2px 5px; border-radius: 3px; opacity: 0; transition: opacity .3s; } .dtag.on { opacity: 1; } .dtag.imp { background: #13a88a; }
.tr-sec { opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; } .tr-sec.on { opacity: 1; transform: none; }
.tr-sec strong { display: block; font: 600 9.5px Sora, sans-serif; color: #4a56a6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-sec u { display: block; height: 3px; margin-top: 3px; border-radius: 2px; background: #c9d0ee; text-decoration: none; width: var(--w); } .tr-sec u + u { width: calc(var(--w) - 22%); }
.tr-files { padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; min-width: 0; overflow: hidden; }
.tr-f { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #6b76a8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; flex: none; }
.tr-f::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #ffffff38; transition: all .3s; box-sizing: border-box; }
.tr-f.on { color: #fff; } .tr-f.on::before { background: var(--teal); border-color: var(--teal); }
.tr-f.biz.on::before { background: var(--indigo); border-color: var(--indigo); }
.tr-files > div, [data-secs] { display: flex; flex-direction: column; gap: 5px; min-width: 0; } [data-secs] { gap: 6px; }
.tr-files > div + .m9 { margin-top: 4px; }
.tz-ai { flex: none; display: flex; align-items: center; gap: 10px; }
.seg { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); padding: 3px; border-radius: 99px; background: #ffffff0a; border: 1px solid #ffffff1c; min-width: 0; }
.seg span { text-align: center; padding: 5px 4px; border-radius: 99px; font: 600 10px Sora, sans-serif; color: #8f9bd0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: all .35s; }
.seg span.on { color: #fff; background: linear-gradient(90deg, var(--indigo), var(--blue)); box-shadow: 0 0 14px -4px var(--blue); }
.tr-files { padding: 9px 11px; gap: 6px; } .tr-files > * { flex: none; } .tr-files > div { gap: 6px; } .tr-files > div + .m9 { margin-top: 6px; }
.tr-files > .tally { flex-direction: row; gap: 8px; }
.demo.tq { height: 316px; }
@container (max-width: 400px) {
  .demo.tq { height: 440px; }
  .tq { grid-template-columns: 1fr 1fr; grid-template-areas: "ask ask" "doc files" "ai ai"; gap: 8px 7px; }
  .tz-ai > .m9 { display: none; } .seg span { font-size: 9.5px; padding: 5px 2px; }
  .tr-files { padding: 8px 8px; } .tr-ask { font-size: 10.5px; }
  .tr-f { font-size: 10px; gap: 5px; white-space: normal; align-items: flex-start; line-height: 1.25; } .tr-f::before { margin-top: 2px; }
  .tr-files > .tally { flex-direction: column; gap: 2px; font-size: 8.5px; }
}

/* UIxPAL: a box being moved and resized */
.dots { position: absolute; inset: 0; background: radial-gradient(#ffffff26 1px, transparent 1.5px) 0 0 / 18px 18px; }
.uibox { position: absolute; left: 14%; top: 26%; width: 34%; height: 48%; border-radius: 8px; background: linear-gradient(140deg, #66e3ff38, #6f7bff38); outline: 1.5px solid var(--c); padding: 10px; display: grid; gap: 6px; align-content: start; animation: uimove 7s ease-in-out infinite; }
.uibox::before { content: ""; position: absolute; inset: -4px; --h: linear-gradient(var(--c) 0 0); background: var(--h) 0 0, var(--h) 100% 0, var(--h) 0 100%, var(--h) 100% 100%; background-size: 7px 7px; background-repeat: no-repeat; }
.uibox u { display: block; height: 6px; border-radius: 3px; background: #ffffff66; width: var(--w, 70%); }
.uibox svg { position: absolute; right: -15px; bottom: -19px; }
@keyframes uimove { 0%, 100% { left: 14%; top: 26%; width: 34%; height: 48%; } 30% { left: 8%; top: 16%; width: 34%; height: 48%; } 60% { left: 8%; top: 16%; width: 52%; height: 64%; } 85% { left: 14%; top: 26%; width: 52%; height: 64%; } }
.uiside { position: absolute; right: 5%; top: 14%; bottom: 14%; width: 24%; border-radius: 10px; border: 1px solid var(--line); background: #0b0f2ad9; padding: 12px 10px; display: grid; gap: 8px; align-content: start; }
.uiside u { display: block; height: 7px; border-radius: 4px; background: #ffffff2e; width: var(--w, 80%); }

/* VideoPAL: karaoke line and timeline */
/* VideoPAL: a lyric video being made. The words light up karaoke-style over a scene picked for each line, in the wide
   frame and a vertical Short, while the timeline's lyric, clip and beat-marked audio tracks run under the playhead. */
.vp { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; font-family: Sora, sans-serif; }
.vp-top { flex: 1; min-height: 0; display: flex; gap: 10px; justify-content: center; }
.vp-scr { position: relative; height: 100%; aspect-ratio: 16 / 9; max-width: 72%; border-radius: 9px; overflow: hidden; border: 1px solid #ffffff22; box-shadow: 0 12px 28px -14px #000; background: #05060f; }
.vp-short { aspect-ratio: 9 / 16; max-width: none; flex: none; }
.vp-scene { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; background-size: cover; background-position: center; will-change: opacity, transform; }
.vp-scene.on { opacity: 1; }   /* all three scenes are loaded up front and crossfade, so a change never stalls */
.vp-scene.s0 { background-image: url(../img/vp-scene-0.jpg?v=1); } .vp-scene.s1 { background-image: url(../img/vp-scene-1.jpg?v=1); } .vp-scene.s2 { background-image: url(../img/vp-scene-2.jpg?v=1); }
.vp-scene { animation: drift-in 6s ease-out infinite alternate; }   /* a slow push-in, like a camera move */
@keyframes drift-in { from { transform: scale(1.02); } to { transform: scale(1.1) translateX(-2%); } }
.vp-line { position: absolute; left: 6%; right: 6%; bottom: 10%; text-align: center; font-weight: 800; font-size: 16px; line-height: 1.2; letter-spacing: -.01em; color: #ffffff80; text-shadow: 0 2px 10px #000, 0 0 2px #000; }
.vp-short .vp-line { font-size: 11px; bottom: 16%; }
.vp-line b { font-weight: inherit; padding: 2px 7px; border-radius: 5px; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background .4s; }
.vp-line.boxed b { background: #000000c8; box-shadow: 0 4px 14px -6px #000; }   /* the app's background-box option, on the middle line */
.vp-line span { transition: color .2s, text-shadow .2s; } .vp-line span.on { color: #fff; } .vp-line span.now { color: var(--teal); text-shadow: 0 0 12px var(--teal), 0 2px 8px #000c; }
.vp-tag { position: absolute; top: 6px; right: 6px; padding: 2px 6px; border-radius: 99px; background: #03040cb3; font: 600 8px "JetBrains Mono", monospace; letter-spacing: .06em; color: #c9d3f5; }
.vp-tl { position: relative; flex: none; display: grid; gap: 4px; padding: 7px 8px; border-radius: 10px; background: #ffffff08; border: 1px solid #ffffff12; }
.vp-trk { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 6px; height: 16px; }
.vp-trk b { font: 600 8px "JetBrains Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: #6b76a8; font-weight: 600; }
.vp-words, .vp-clips { display: flex; gap: 3px; height: 100%; }
.vp-words i, .vp-clips i { flex: var(--f, 1); border-radius: 4px; background: #ffffff14; border: 1px solid #ffffff1f; transition: background .25s, border-color .25s; }
.vp-words i.on { background: color-mix(in srgb, var(--teal) 45%, #0b0f2a); border-color: var(--teal); }
.vp-clips i.s0 { --k: var(--violet); } .vp-clips i.s1 { --k: var(--pink); } .vp-clips i.s2 { --k: #ffb36b; }
.vp-clips i { background: color-mix(in srgb, var(--k) 30%, #0b0f2a); border-color: color-mix(in srgb, var(--k) 55%, transparent); } .vp-clips i.on { background: color-mix(in srgb, var(--k) 60%, #0b0f2a); border-color: var(--k); }
.vp-wave { height: 100%; border-radius: 4px; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 12 - 2px), #ffffffb0 calc(100% / 12 - 2px) calc(100% / 12)), repeating-linear-gradient(90deg, #4fe0c2b3 0 2px, transparent 2px 4px); -webkit-mask: linear-gradient(transparent 0, #000 25% 75%, transparent); }   /* the waveform with beat marks */
.vp-head { position: absolute; top: 3px; bottom: 3px; left: 52px; width: 2px; border-radius: 2px; background: #fff; box-shadow: 0 0 10px #fff; transition: left .42s linear; will-change: left; }
.vp-status { flex: none; display: flex; justify-content: space-between; gap: 10px; font: 600 9px "JetBrains Mono", monospace; letter-spacing: .06em; color: #6b76a8; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
@container (max-width: 400px) { .vp-top { flex: none; height: 122px; margin: auto 0; } .vp-scr { max-width: none; } .vp-line { font-size: 13px; } .vp-short .vp-line { font-size: 9px; } .vp-status > span:last-child { display: none; } }

/* Entertainment visuals */
.center { display: grid; place-items: center; }
.playbtn { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(130deg, var(--violet), var(--pink)); box-shadow: 0 0 0 12px #a66bff22, 0 0 60px var(--violet); position: relative; z-index: 1; margin-bottom: 30px; transition: transform .3s; }
.card:hover .playbtn { transform: scale(1.1); }
#tree { position: absolute; inset: 0; width: 100%; height: 100%; }
.breath-t { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #efe6ff; text-shadow: 0 0 12px #0a0718; }
.breath-t span { position: absolute; left: 0; right: 0; bottom: 0; opacity: 0; }   /* faded in and out by the tree's breathing clock */
@keyframes fade { 0%, 40% { opacity: 1; } 50%, 90% { opacity: 0; } 100% { opacity: 1; } }
.books { perspective: 900px; }
.book { width: 122px; height: 174px; position: relative; z-index: 1; border-radius: 3px 8px 8px 3px; padding: 14px 12px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  background: radial-gradient(130% 60% at 50% 112%, #e58bff 0, #6f3bff 34%, transparent 62%), linear-gradient(#070a24, #151b56); box-shadow: -16px 14px 34px #000c, inset 3px 0 0 #ffffff33; transform: rotateY(-26deg) rotateX(4deg); transition: transform .6s; }
.card:hover .book { transform: rotateY(-6deg); }
.book small { font: 600 9px "JetBrains Mono", monospace; letter-spacing: .18em; color: #c3ccff; }
.book strong { font: 400 13px/1.3 Michroma, sans-serif; }
.book i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 2px var(--cyan); left: var(--x); animation: descend 6s linear infinite; animation-delay: var(--dl); }
@keyframes descend { from { top: 26%; opacity: 0; } 20% { opacity: 1; } to { top: 74%; opacity: 0; } }
.ghost { position: absolute; width: 122px; height: 174px; border-radius: 3px 8px 8px 3px; border: 1px dashed #ffffff40; display: grid; place-items: center; color: #ffffff59; font: 400 20px Michroma, sans-serif; transform: translateX(var(--o)) rotateY(-26deg) rotateX(4deg) scale(var(--s)); }

/* About and signup */
.about { text-align: center; }
.about blockquote { font-size: clamp(24px, 3.4vw, 46px); font-weight: 300; line-height: 1.3; letter-spacing: -.02em; max-width: 22em; margin: 24px auto 0; }
.about .lead { display: block; font-size: .72em; color: #aeb7dc; margin-bottom: .4em; }   /* the setup line, on its own line above the promise */
.about blockquote b { font-weight: 700; background-image: linear-gradient(90deg, var(--blue), var(--pink)); }
.panel { --c: var(--indigo); --c2: var(--pink); border-radius: 30px; padding: 200px 24px clamp(64px, 7vw, 92px); text-align: center; overflow: hidden; background: radial-gradient(80% 130% at 50% 0%, #6f7bff40, transparent 62%), #080a1ee8; position: relative; }
/* Mission scene inside the card: the Milky Way across the top, a launch site at the bottom right */
#galaxy { position: absolute; left: 0; top: 0; width: 100%; height: 320px; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
#trail { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.panel h2, .panel > p, .panel > .mono:not(.count), .pick, .picked, #form { position: relative; z-index: 3; }
.terrain { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; background: linear-gradient(#161b3c, #070919); border-top: 1px solid #6f7bff66; box-shadow: 0 -12px 44px -8px #6f7bff59; }
.padsite { position: absolute; left: 0; bottom: 20px; width: 190px; height: 230px; transform-origin: 50% 100%; pointer-events: none; z-index: 1; }   /* placed and sized by fit() to sit beside the button */
.padbase { position: absolute; left: 50%; bottom: 0; width: 124px; height: 10px; translate: -50% 0; background: linear-gradient(90deg, transparent 43%, #05060f 43% 57%, transparent 57%), linear-gradient(#5a6188, #2a3054); clip-path: polygon(7% 0, 93% 0, 100% 100%, 0 100%); }   /* the deck, with the flame trench under the engines */
.tower { position: absolute; left: calc(50% - 50px); bottom: 10px; width: 15px; height: 158px; border-inline: 1.5px solid #4b5378; background: repeating-linear-gradient(45deg, #4b5378 0 1.5px, transparent 1.5px 8px), repeating-linear-gradient(-45deg, #4b5378 0 1.5px, transparent 1.5px 8px); }
.tower i { position: absolute; left: 50%; top: -9px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #ff5c7a; box-shadow: 0 0 12px 3px #ff5c7a; animation: blink 1.2s steps(1) infinite; }
.tower b { position: absolute; left: 100%; width: 26px; height: 3px; background: #4b5378; transform-origin: 0 50%; transition: transform 1.4s ease-in; }   /* service arms */
.tower b:nth-of-type(1) { top: 34px; } .tower b:nth-of-type(2) { top: 92px; }
.padsite.ready .tower b, .padsite.away .tower b { transform: rotate(-74deg); }
.starlight { position: absolute; left: 50%; bottom: -14px; width: 200px; height: 196px; translate: -50% 0; filter: blur(5px); opacity: .5; transition: opacity .6s;   /* a faint star of light behind the rocket */
  background: linear-gradient(0deg, #cfd8ff70, #cfd8ff48 50%, #cfd8ff3a); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.padsite.away .starlight { opacity: .18; }
.smoke { position: absolute; left: 50%; bottom: 10px; }
.smoke i { position: absolute; width: 84px; height: 84px; margin: -42px; border-radius: 50%; background: radial-gradient(closest-side, #ffffffd9, #e3ecff66 55%, transparent); filter: blur(3px); opacity: 0; }   /* billowing steam: the clean engine only makes water vapour */
.padsite .smoke i { animation: drift 3.6s ease-out infinite; animation-delay: calc(var(--i) * -.6s); }
.padsite.away .smoke i { animation: none; }
.padsite.ready .smoke i, .padsite.blast .smoke i { animation: puff 2.2s ease-out infinite; animation-delay: calc(var(--i) * -.37s); }
@keyframes drift { from { transform: scale(.25); opacity: .45; } to { transform: translate(calc(var(--dx) * .45), -10px) scale(1.5); opacity: 0; } }
@keyframes puff { from { transform: scale(.3); opacity: .9; } to { transform: translate(var(--dx), -18px) scale(2.4); opacity: 0; } }
.rocket { position: absolute; left: 0; top: 0; width: 44px; height: 160px; z-index: 2; pointer-events: none; will-change: transform; }
.rocket svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 6px #aab4ff59); }
/* The drive: a clean plasma exhaust, white-hot at the nozzle and fading through cyan to teal, with bright shock
   diamonds along it. No fire and no smoke, only a little vapour on the pad. */
.flame { position: absolute; left: 50%; top: calc(100% - 7px); width: 12px; height: 96px; margin-left: -6px; transform-origin: 50% 0; opacity: 0; border-radius: 45% 45% 50% 50% / 8% 8% 92% 92%; transition: opacity .6s;
  background: linear-gradient(#fff 0, #eafffb 10%, #9ff3ff 26%, #4fe0c2 52%, #4f9dff55 78%, transparent); filter: blur(.9px); }
.flame i { position: absolute; inset: 6% 18% 30%; border-radius: inherit; background: repeating-linear-gradient(transparent 0 7px, #ffffffd9 8px 10px, transparent 11px 18px); -webkit-mask: linear-gradient(#000 40%, transparent); filter: blur(.6px); }   /* shock diamonds */
.flame::after { content: ""; position: absolute; inset: -6px -14px -10px; border-radius: 50%; background: radial-gradient(closest-side, #66e3ff70, #4fe0c230 60%, transparent); filter: blur(6px); }
.rocket.dormant .flame, .rocket.dormant .vent { opacity: 0; animation: none; }                                              /* cold and silent until someone starts typing */
.padsite.dormant .smoke i { animation: none; opacity: 0; } .padsite.dormant .starlight { opacity: .3; }
.rocket.idle .flame { opacity: 1; animation: idleburn 1.6s ease-in-out infinite; }                                       /* the drive warming up: a low, steady glow */
@keyframes idleburn { 0%, 100% { transform: scale(.9, .2); } 50% { transform: scale(1, .27); } }
/* full power: the plasma's outer tail and the glow round the engine warm to rose-red, while warm-up stays pure teal */
.rocket.ready .flame, .rocket.fly .flame { background: linear-gradient(#fff 0, #eafffb 9%, #9ff3ff 24%, #4fe0c2 42%, #ff5c7acc 66%, #ff5c7a33 84%, transparent); }
.flame::before { content: ""; position: absolute; left: 50%; top: -4px; width: 34px; height: 18px; margin-left: -17px; border-radius: 50%; background: radial-gradient(closest-side, #ff5c7aaa, #ff5c7a33 60%, transparent); filter: blur(3px); opacity: 0; transition: opacity .5s; }
.rocket.ready .flame::before, .rocket.fly .flame::before { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .flame { display: none; } }   /* the plume is drawn on the canvas (mission.js); the CSS flame is a still fallback */
.rk-port { transition: filter .6s; } .rocket:not(.dormant) .rk-port { filter: brightness(1.25) drop-shadow(0 0 2px #66e3ff); }   /* the cabin lights up once someone starts typing */
.rocket.ready { animation: shake .09s infinite; } .rocket.ready .flame { opacity: 1; animation: flick .28s ease-in-out infinite alternate; }   /* held on the pad at full ignition */
.rocket.fly .flame { opacity: 1; animation: roar .22s ease-in-out infinite alternate; }
@keyframes flick { from { transform: scale(.9, .34); } to { transform: scale(1.05, .5); } }
@keyframes roar { from { transform: scale(.9, .9); } to { transform: scale(1.12, 1.16); } }
@keyframes shake { 0% { translate: -1px 0; } 50% { translate: 1px .5px; } 100% { translate: 0 -.5px; } }
.vent { position: absolute; left: 2px; top: 52%; width: 20px; height: 9px; border-radius: 50%; background: radial-gradient(closest-side, #e9fffbc0, transparent); filter: blur(2px); opacity: 0; animation: vent 3.4s ease-out infinite; }   /* cold vapour venting */
.rocket.fly .vent { display: none; }
@keyframes vent { 0% { opacity: 0; transform: none; } 12% { opacity: .8; } 100% { opacity: 0; transform: translate(-30px, -8px) scale(2.2); } }
.linkbtn { font: inherit; color: #c3ccff; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.panel::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; background: conic-gradient(from var(--ang), #ffffff24 0 55%, var(--c) 74%, var(--c2) 86%, #ffffff24 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 9s linear infinite; }
.panel h2 { font-size: clamp(30px, 4.4vw, 58px); font-weight: 800; letter-spacing: -.035em; margin: 14px 0 12px; }
.panel > p { color: var(--mute); font-weight: 300; margin-bottom: 26px; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 640px; margin: 0 auto 12px; }
.pick button { font: 500 14px Sora, sans-serif; color: var(--mute); padding: 9px 15px; border-radius: 99px; border: 1px solid #ffffff2e; background: transparent; cursor: pointer; transition: all .2s; }
.pick button[aria-pressed="true"] { color: #fff; border-color: var(--indigo); background: #6f7bff38; box-shadow: 0 0 18px -4px var(--indigo); }
.pick button[aria-pressed="true"]::before { content: "✓"; margin-right: 6px; color: var(--teal); }   /* a tick makes "selected" obvious */
.picked { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 0 auto 24px; font: 600 12px "JetBrains Mono", monospace; letter-spacing: .06em; color: #b9c2ee; }
.picked button { font: inherit; color: var(--cyan); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; } .picked button[hidden] { display: none; }
form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
input { width: min(340px, 100%); padding: 14px 20px; border-radius: 99px; border: 1px solid #ffffff38; background: #03040ccc; color: var(--ink); font: inherit; outline: 0; }
input:focus { border-color: var(--indigo); box-shadow: 0 0 0 4px #6f7bff33; }
/* a clear outline for keyboard users only (mouse clicks don't show it) */
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
.btn:focus-visible, .pick button:focus-visible, .key a:focus-visible { border-radius: 99px; } .orb:focus-visible { outline-offset: 5px; border-radius: 50%; }
#note { color: var(--mute); font-size: 13.5px; margin-top: 16px; min-height: 1.4em; }

footer { width: min(1240px, 92vw); margin: 110px auto 0; padding: 30px 0 44px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: var(--mute); font-size: 14px; }
footer .wm { font-size: 18px; color: var(--ink); }
footer div { display: flex; gap: 22px; flex-wrap: wrap; }
footer .fl { display: flex; flex-direction: column; gap: 6px; } footer .fl span { font-size: 13px; } footer .fl span:last-child { opacity: .7; }
footer > div:last-child { justify-content: flex-end; row-gap: 10px; }

/* Scroll reveal (only when JS is running) */
.js .rv { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d, 0) * 90ms); }
.js .rv.in { opacity: 1; transform: none; }

@media (max-width: 980px) { .ents { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  nav .links { display: none; position: absolute; top: calc(100% + 6px); left: 12px; right: 12px; flex-direction: column; gap: 2px; padding: 10px; font-size: 17px; background: #05071ae6; backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 18px; }
  nav .links a { padding: 12px 14px; border-radius: 10px; } nav .links a:hover { background: #ffffff0d; }
  nav.open .links { display: flex; } nav.open { background: #03040cb8; backdrop-filter: blur(14px); }
  .menu { display: grid; }
  .orb { width: 44px; height: 44px; margin: -22px; } .orb svg { width: 21px; height: 21px; }
  .appic { width: 44px; height: 44px; margin-right: 12px; } .appic.line svg { width: 21px; height: 21px; }
  footer > div:last-child { justify-content: flex-start; }
  .ents .card h3 { font-size: min(25px, calc((100cqi - 110px) / 10.6)); }
  .portals, .apps { grid-template-columns: 1fr; }
  .portal { min-height: 0; } .portal .body { padding: 10px 24px 26px; }
  section { padding-top: 90px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
