/* ============================================================================================
   Cosmos: starien.com's refreshed look (Geoffrey, 4 Dec 2026: "the cutting edge of technology and AI,
   really helping small to medium-sized businesses globally… quirky elements throughout, nice CSS,
   shadows, a quirky mobile menu… nice dynamic things"). A layer over starien.css, loaded after it on
   every page (partials/top.ejs). Same type, weights and colours as before: Figtree 900 headlines,
   Starien blue #2E91FC, violet, the yellow star #FFD43B.

   - .cx-sky        a night-sky section: page headers, the call to action, the footer (with .dark .night,
                    so every colour inside follows; partials/cosmos.ejs draws its stars, planet and ring)
   - .cx-bar        the menu bar: a dark glass pill
   - .cx-card       a sticker card: an ink outline, an offset shadow in a brand colour, a slight tilt
   - .cx-sheet      the phone menu: the night sky, links as tilted numbered cards, Nova saying hello
   - motion         twinkling stars, shooting stars, the turning ring, floating badges, a light that
                    follows the pointer and cards that lean towards it (cosmos.js). All of it stops for
                    people who ask for less movement. Movement tied to scrolling only moves things.
   No CSS filters here (iPhones; tests/ios-filter-hole.test.js): glows are gradients and box-shadows.
   ============================================================================================ */

:root {
  --cx-ink: #10171F;
  --cx-dark: #10171F; /* words on yellow and white pills: never lightened in dark mode (--cx-ink is, inside cards) */
  --cx-blue: #2E91FC;
  --cx-violet: #7C5CFF;
  --cx-sun: #FFD43B;
  --cx-mint: #2FD6A3;
  --cx-coral: #FF7A59;
  --cx-navy: #070B1F;
  --site-canvas: #EEF1F8;
}
.dark { --site-canvas: #0B0D16; }
.dark .cx-card, .dark .cx-quote { --cx-ink: oklch(0.96 0.004 255 / 0.85); }

/* ---------- The night sky ------------------------------------------------------------------ */
.cx-sky {
  isolation: isolate;
  background-color: var(--cx-navy);
  background-image:
    radial-gradient(1100px 520px at 82% -8%, rgb(124 92 255 / 0.5), transparent 62%),
    radial-gradient(900px 480px at 6% 8%, rgb(46 145 252 / 0.34), transparent 60%),
    radial-gradient(1300px 620px at 50% 125%, rgb(46 145 252 / 0.42), transparent 62%),
    linear-gradient(180deg, #070B1F, #0B1233);
}
/* The light that follows the pointer (cosmos.js sets --mx and --my) */
.cx-sky::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(520px 520px at var(--mx, 50%) var(--my, -30%), rgb(120 170 255 / 0.16), transparent 70%);
  transition: background-position 200ms;
}
.cx-sky > :not(.cx-cosmos):not(.absolute):not(.fixed):not(.sky):not(svg):not(.cx-nova):not(.cx-nova-say) { position: relative; z-index: 1; }
.cx-sky > .cx-cosmos { position: absolute; }
.cx-cosmos { inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cx-cosmos > span { position: absolute; display: block; }

/* The older decorations give way to the sky: the faint logo marks, the daytime clouds and wash */
.cx-sky .site-mark, .cx-sky [data-sky-day], .cx-sky .sky-wash, .cx-sky .wavy-band::before { display: none !important; }

.cx-stars {
  inset: -10% 0 0 0;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 22% 62%, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 35% 30%, #cfe3ff 50%, transparent 52%),
    radial-gradient(1px 1px at 48% 12%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 57% 72%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 66% 40%, #e3dbff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 74% 22%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 86% 58%, #fff 50%, transparent 52%),
    radial-gradient(1.3px 1.3px at 93% 14%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 6% 82%, #fff 50%, transparent 52%),
    radial-gradient(1px 1px at 40% 88%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 80% 86%, #fff 50%, transparent 52%);
  opacity: 0.85;
}
.cx-stars-2 {
  background-image:
    radial-gradient(1.8px 1.8px at 18% 40%, #fff 50%, transparent 52%),
    radial-gradient(1.1px 1.1px at 29% 8%, #fff 50%, transparent 52%),
    radial-gradient(2px 2px at 62% 18%, #FFE58A 50%, transparent 52%),
    radial-gradient(1.1px 1.1px at 71% 66%, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 90% 36%, #d8ccff 50%, transparent 52%),
    radial-gradient(1px 1px at 3% 30%, #fff 50%, transparent 52%),
    radial-gradient(1.4px 1.4px at 52% 52%, #fff 50%, transparent 52%);
  opacity: 0.6;
}

/* A shooting star now and then */
.cx-shoot {
  top: 14%; left: 62%; width: 140px; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, rgb(255 255 255 / 0), #fff 70%, #FFE58A);
  box-shadow: 0 0 10px 1px rgb(255 255 255 / 0.5);
  rotate: -24deg;
}
.cx-shoot-2 { top: 32%; left: 18%; width: 100px; }

/* The planet's glowing edge and its orbit ring */
.cx-planet {
  right: -14%; bottom: -62%; width: min(78vw, 980px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, #2f4bb0 0%, #141c5c 42%, #070B1F 72%);
  box-shadow: inset 34px 26px 90px rgb(142 197 255 / 0.38), 0 0 120px 10px rgb(46 145 252 / 0.32);
  opacity: 0.9;
}
.cx-ring {
  right: -22%; bottom: -30%; width: min(110vw, 1400px); aspect-ratio: 1; border-radius: 50%;
  border: 2px solid rgb(255 212 59 / 0.42);
  box-shadow: 0 0 26px rgb(255 212 59 / 0.18), inset 0 0 26px rgb(255 212 59 / 0.1);
  transform: rotateX(76deg) rotateZ(0deg);
}
.cx-ring-star {
  position: absolute; top: -9px; left: 50%; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 20%, var(--cx-sun) 40%, transparent 70%);
  box-shadow: 0 0 22px 6px rgb(255 212 59 / 0.55);
}
/* The grid floor, fading up into the sky */
.cx-floor {
  left: -10%; right: -10%; bottom: -2px; height: 300px;
  background-image: linear-gradient(rgb(120 170 255 / 0.2) 1px, transparent 1px), linear-gradient(90deg, rgb(120 170 255 / 0.2) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(62deg); transform-origin: bottom;
  -webkit-mask-image: linear-gradient(to top, #000 5%, transparent 85%); mask-image: linear-gradient(to top, #000 5%, transparent 85%);
}
/* Small AI badges floating round the home page's headline */
.cx-orbit { inset: 0; }
.cx-badge {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: #fff;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.04));
  border: 1px solid rgb(255 255 255 / 0.22);
  box-shadow: 0 18px 40px -14px rgb(0 0 0 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.18), 4px 4px 0 var(--c, var(--cx-blue));
}
.cx-o1 { left: 7%; top: 120px; --c: var(--cx-blue); rotate: -8deg; }
.cx-o2 { right: 9%; top: 210px; --c: var(--cx-violet); rotate: 7deg; }
.cx-o3 { left: 13%; top: 360px; --c: var(--cx-sun); rotate: 5deg; color: var(--cx-sun); }
.cx-o4 { right: 15%; top: 420px; --c: var(--cx-mint); rotate: -6deg; }
.cx-o5 { left: 4%; top: 560px; --c: var(--cx-coral); rotate: 10deg; }
@media (max-width: 1023px) { .cx-o3, .cx-o4, .cx-o5 { display: none; } .cx-o1 { top: 40px; left: 4%; } .cx-o2 { top: 70px; right: 5%; } .cx-badge { width: 42px; height: 42px; border-radius: 13px; } }
@media (max-width: 639px) { .cx-orbit { display: none !important; } .cx-hero > div.z-\[1\] { padding-top: 6rem; } }

/* Words in the sky: the headline in starlight, the yellow underline, stickers with a white shadow */
.cx-sky .text-gradient { background-image: linear-gradient(100deg, #9CCBFF 0%, #fff 34%, #D7CBFF 66%, #FFE58A 100%) !important; background-size: 180% 100%; }
.cx-sky h1 .text-gradient + span, .cx-sky h1 > span:not(.text-gradient) { color: #fff; }
.cx-sky .sticker { box-shadow: 3px 3px 0 #fff; }
.cx-sky .pill-soft { background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.24); color: #fff; }
.cx-sky .pill-soft:hover { background: rgb(255 255 255 / 0.14); }

/* Page headers: room for the planet, a touch taller */
.cx-hero, .cx-page { padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.cx-page > div:not(.cx-cosmos):not([data-sky]) { padding-top: clamp(2.5rem, 5vw, 4rem); }
/* The hero's facts strip on the night sky */
.cx-sky .sticker-drop > li > span:first-child { box-shadow: 0 0 0 4px rgb(255 255 255 / 0.06); }

/* Light cards inside the night sky (.day) take the light bands back */
.cx-sky .day { --band-sky: #EAF3FF; --band-sun: #FFF6D6; --band-lilac: #F1ECFF; --band-mint: #E6F8F0; --muted: oklch(0.96 0.006 255); --accent: oklch(0.96 0.006 255); --secondary: oklch(0.96 0.006 255); }
/* Orbit and Launchpad's cards in the hero: light stickers on the night sky */
.cx-product { border: 2px solid var(--cx-ink); box-shadow: 9px 9px 0 var(--c, var(--cx-blue)) !important; }
.cx-product:nth-child(1) { --c: var(--cx-mint); --cx-tilt: -1deg; }
.cx-product:nth-child(2) { --c: var(--cx-blue); --cx-tilt: 1deg; }

/* The call to action: the night sky as a big rounded panel */
.cx-cta { background-image: radial-gradient(800px 380px at 85% 0%, rgb(124 92 255 / 0.55), transparent 62%), radial-gradient(700px 400px at 0% 100%, rgb(46 145 252 / 0.45), transparent 62%), linear-gradient(180deg, #070B1F, #0B1233); }

/* The footer: the night sky under the page's white sheet */
.cx-foot { margin-top: -2.5rem; padding-top: 2.5rem; }
.cx-foot .watermark { display: none; }

/* ---------- The menu bar ------------------------------------------------------------------- */
.cx-bar {
  background-color: rgb(9 12 34 / 0.94) !important;
  background-image: linear-gradient(100deg, rgb(46 145 252 / 0.14), transparent 40%, rgb(124 92 255 / 0.16)) !important;
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: 0 18px 40px -20px rgb(7 11 31 / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.1) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
}
.cx-bar [data-dropdown-button][aria-expanded="true"] { background: rgb(255 255 255 / 0.1); }
.cx-bar > nav a[aria-current="page"], .cx-bar > nav .bg-muted { background: rgb(255 255 255 / 0.12) !important; }
/* The phone's Menu button: a tilted yellow sticker */
.cx-bar [data-sheet-open] {
  background: var(--cx-sun) !important; color: var(--cx-dark) !important; border: 2px solid var(--cx-ink);
  box-shadow: 3px 3px 0 #fff; rotate: -3deg; gap: 0.5rem;
  transition: rotate 220ms cubic-bezier(.3,1.6,.6,1), translate 220ms;
}
.cx-bar [data-sheet-open]:hover { rotate: 3deg; translate: 0 -2px; }
.cx-burger { display: grid; gap: 3px; }
.cx-burger i { display: block; width: 16px; height: 2.5px; border-radius: 2px; background: currentColor; }
.cx-burger i:nth-child(2) { width: 10px; margin-left: 6px; }

/* ---------- Stickers, buttons and sticker cards ------------------------------------------- */
.sticker { border: 2px solid var(--cx-ink); box-shadow: 3px 3px 0 var(--cx-ink); rotate: -2deg; }
.sticker:hover { rotate: 2deg; }
/* In dark mode a sticker keeps its dark outline round the yellow and casts a white shadow, as it does on the night
   sky (its ink shadow vanished into the dark page) */
.dark .sticker { border-color: var(--cx-dark); box-shadow: 3px 3px 0 rgb(255 255 255 / 0.85); }
/* A pinned post's sticker: yellow with dark words in both modes (it was brown on dark brown in dark mode) */
.cx-pinned { background: var(--cx-sun); color: var(--cx-dark); }
.pill-brand {
  position: relative; overflow: hidden; isolation: isolate;
  background-image: linear-gradient(100deg, #2E91FC, #3F6BF2 55%, #7C5CFF);
  box-shadow: 0 12px 30px -10px rgb(63 107 242 / 0.85), inset 0 1px 0 rgb(255 255 255 / 0.3);
}
.pill-brand::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.35) 50%, transparent 70%);
  translate: -120% 0;
}
.pill-brand:hover::after { translate: 120% 0; transition: translate 700ms ease; }

.cx-card, .cx-quote {
  --cx-c: var(--cx-blue);
  border: 2px solid var(--cx-ink);
  box-shadow: 8px 8px 0 var(--cx-c) !important;
  rotate: var(--cx-axis, 0 0 1) var(--cx-tilt, 0deg);
  transition: rotate 380ms cubic-bezier(.2,1.4,.4,1), translate 260ms cubic-bezier(.3,1.4,.6,1), box-shadow 260ms ease;
}
.cx-card:nth-child(5n+1), .cx-quote { --cx-c: var(--cx-blue); --cx-tilt: -0.8deg; }
.cx-card:nth-child(5n+2) { --cx-c: var(--cx-violet); --cx-tilt: 0.9deg; }
.cx-card:nth-child(5n+3) { --cx-c: var(--cx-sun); --cx-tilt: -0.5deg; }
.cx-card:nth-child(5n+4) { --cx-c: var(--cx-mint); --cx-tilt: 0.7deg; }
.cx-card:nth-child(5n+5) { --cx-c: var(--cx-coral); --cx-tilt: -0.9deg; }
.cx-card:hover { translate: 0 -5px; box-shadow: 12px 12px 0 var(--cx-c) !important; }
/* Cards that hold a form, or a long list of steps, stay straight: easier to fill in and read */
.starien-form.cx-card, .cx-card:has(form), .cx-tl, article.cx-card { --cx-tilt: 0deg !important; }
.cx-quote { box-shadow: 7px 7px 0 var(--cx-c) !important; }
.cx-quote > span[aria-hidden="true"]:last-child { border-right: 2px solid var(--cx-ink); border-bottom: 2px solid var(--cx-ink); }
li:nth-child(3n+2) > figure .cx-quote { --cx-c: var(--cx-violet); --cx-tilt: 0.8deg; }
li:nth-child(3n) > figure .cx-quote { --cx-c: var(--cx-sun); --cx-tilt: -0.4deg; }
/* Timeline moments as small cards */
.cx-tl { padding: 1.25rem 1.4rem 1.4rem; border-radius: 1.5rem; background: var(--card); }
.cx-tl > span[aria-hidden="true"]:first-child { left: -62px !important; top: 1.2rem !important; border: 2px solid var(--cx-ink); }
/* Blog cards too */
.blog-card { border: 2px solid var(--cx-ink); --cx-c: var(--cx-blue); box-shadow: 7px 7px 0 var(--cx-c) !important; }
li:nth-child(3n+2) > .blog-card, .blog-card:nth-child(3n+2) { --cx-c: var(--cx-violet); }
li:nth-child(3n) > .blog-card, .blog-card:nth-child(3n) { --cx-c: var(--cx-sun); }
.blog-card:hover { box-shadow: 11px 11px 0 var(--cx-c) !important; }
/* Questions: a sticker edge on the open one */
.faq-item[open] > summary, .faq-item[open] { --cx-c: var(--cx-blue); }

/* ---------- The phone menu ----------------------------------------------------------------- */
.cx-sheet-panel {
  inset: 0 !important; max-height: none !important; height: 100dvh; border-radius: 0 !important;
  color: #fff;
}
.cx-sheet-panel .cx-cosmos { position: absolute; }
.cx-sheet-panel > :not(.cx-cosmos) { position: relative; z-index: 1; }
.cx-sheet-panel [data-sheet-close].pill {
  background: #fff !important; color: var(--cx-dark) !important; border: 2px solid var(--cx-ink); box-shadow: 3px 3px 0 var(--cx-sun); rotate: 4deg;
}
.cx-sheet-panel nav > ul { counter-reset: cx; gap: 0.75rem !important; text-align: left !important; padding: 0.5rem 0.25rem 1rem; }
.cx-sheet-panel nav > ul > li { counter-increment: cx; --c: var(--cx-blue); }
.cx-sheet-panel nav > ul > li:nth-child(5n+2) { --c: var(--cx-mint); }
.cx-sheet-panel nav > ul > li:nth-child(5n+3) { --c: var(--cx-violet); }
.cx-sheet-panel nav > ul > li:nth-child(5n+4) { --c: var(--cx-sun); }
.cx-sheet-panel nav > ul > li:nth-child(5n+5) { --c: var(--cx-coral); }
.cx-sheet-panel nav > ul > li > a,
.cx-sheet-panel nav > ul > li > [data-group] > button {
  display: flex !important; align-items: center; justify-content: flex-start !important; gap: 0.85rem; width: 100%;
  padding: 0.85rem 1rem !important; border-radius: 1.25rem !important;
  background: #fff; color: var(--cx-dark) !important; border: 2px solid var(--cx-ink);
  box-shadow: 6px 6px 0 var(--c); font-size: 1.55rem !important;
  rotate: -1.4deg;
}
.cx-sheet-panel nav > ul > li:nth-child(even) > a,
.cx-sheet-panel nav > ul > li:nth-child(even) > [data-group] > button { rotate: 1.2deg; margin-left: 0.6rem; width: calc(100% - 0.6rem); }
.cx-sheet-panel nav > ul > li > a::before,
.cx-sheet-panel nav > ul > li > [data-group] > button::before {
  content: counter(cx, decimal-leading-zero); display: grid; place-items: center; flex: none;
  width: 2.25rem; height: 2.25rem; border-radius: 0.75rem; font-size: 0.95rem; font-weight: 900; letter-spacing: 0;
  background: var(--c); color: #fff;
}
.cx-sheet-panel nav > ul > li:nth-child(5n+4) > a::before, .cx-sheet-panel nav > ul > li:nth-child(5n+4) > [data-group] > button::before { color: var(--cx-dark); }
.cx-sheet-panel nav > ul > li > [data-group] > button > svg { margin-left: auto; }
.cx-sheet-panel nav > ul > li > a[aria-current="page"] { box-shadow: 6px 6px 0 var(--c), 0 0 0 4px rgb(255 255 255 / 0.25); }
.cx-sheet-panel nav ul ul { background: rgb(255 255 255 / 0.08) !important; border: 1px solid rgb(255 255 255 / 0.16); margin-top: 0.75rem; text-align: left; }
.cx-sheet-panel nav ul ul a { color: #fff; }
.cx-sheet-panel nav ul ul a:hover { background: rgb(255 255 255 / 0.1) !important; }
.cx-sheet-panel nav ul ul .text-foreground\/60 { color: rgb(255 255 255 / 0.7) !important; }
.cx-sheet-panel .border-t { border-color: rgb(255 255 255 / 0.14); }
.cx-sky > .cx-nova { position: absolute; right: -8px; bottom: 9.5rem; width: 120px; rotate: -8deg; z-index: 1; pointer-events: none; }
.cx-sky > .cx-nova-say {
  position: absolute; right: 104px; bottom: 15.5rem; z-index: 2; padding: 0.55rem 0.9rem; border-radius: 1rem 1rem 0.25rem 1rem;
  background: #fff; color: var(--cx-dark); font-weight: 800; font-size: 14px; border: 2px solid var(--cx-ink); box-shadow: 3px 3px 0 var(--cx-ink);
}
@media (max-height: 740px) { .cx-nova, .cx-nova-say { display: none; } }

/* The big planet and its gold orbit line (cosmos.ejs `big`) */
.cx-bigplanet {
  position: absolute; right: -16rem; top: 7rem; width: 56rem; height: 56rem; border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #2A3D8F 0%, #10164A 45%, #070B1F 70%);
  box-shadow: inset 30px 20px 80px rgb(142 197 255 / 0.32), 0 0 120px rgb(46 145 252 / 0.3);
}
.cx-goldring {
  position: absolute; right: -12rem; top: 24rem; width: 58rem; height: 15rem; border-radius: 50%;
  border: 2px solid rgb(255 212 59 / 0.42); rotate: -14deg; box-shadow: 0 0 30px rgb(255 212 59 / 0.15);
}
@media (max-width: 1023px) { .cx-bigplanet { right: -30rem; top: auto; bottom: -20rem; width: 44rem; height: 44rem; } .cx-cosmos .cx-goldring { display: none; } }
.cx-sky.cx-hero-ai .text-gradient { background-image: linear-gradient(95deg, #8EC5FF 0%, #C9B8FF 45%, #F2C36B 85%, #FFD43B 100%) !important; background-size: 100% 100%; }

/* ---------- The home page's AI layout (partials/hero-ai.ejs) ----------------------------------- */
.cx-hero-ai .cx-ai-buttons .pill-soft { background: rgb(255 255 255 / 0.08); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22); }
.cx-hero-ai .cx-ai-buttons .pill-soft:hover { background: rgb(255 255 255 / 0.16); }
.cx-live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--cx-mint); box-shadow: 0 0 0 4px rgb(47 214 163 / 0.2); flex: none; }
.cx-stage { position: relative; margin: 0 auto; width: 100%; max-width: 560px; padding: 3.5rem 0 1rem; }
.cx-console {
  position: relative; z-index: 2; padding: 1.4rem; border-radius: 1.6rem; color: #DFE6FF;
  background: linear-gradient(160deg, rgb(30 40 92 / 0.92), rgb(12 17 48 / 0.94)); border: 2px solid rgb(255 255 255 / 0.45);
  box-shadow: 9px 9px 0 rgb(46 145 252 / 0.95), 0 40px 80px -30px rgb(0 0 0 / 0.6); rotate: -1deg;
}
.cx-console-head { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; font-size: 14px; color: #CFDCFF; margin-bottom: 1rem; }
.cx-console-tag { margin-left: auto; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.7rem; border-radius: 99px; background: rgb(47 214 163 / 0.15); color: #7FF0CB; font-size: 13px; }
.cx-console-tag .cx-live-dot { width: 7px; height: 7px; box-shadow: none; }
.cx-ask { padding: 0.85rem 1rem; border-radius: 0.9rem; background: rgb(7 11 31 / 0.6); border: 1px solid rgb(255 255 255 / 0.12); color: #fff; font-size: 16px; font-weight: 600; }
.cx-answer { margin-top: 0.75rem; padding: 1rem; border-radius: 0.9rem; background: rgb(255 255 255 / 0.06); font-size: 15.5px; line-height: 1.6; }
.cx-answer b { color: #fff; font-weight: 700; }
.cx-cite { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.7rem; padding: 0.35rem 0.65rem; border-radius: 0.5rem; background: rgb(46 145 252 / 0.22); color: #B9DBFF; font-weight: 700; font-size: 14px; }
.cx-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -0.15em; background: #8EC5FF; }
.cx-stage-nova { position: absolute; z-index: 3; right: -1.8rem; top: -3.4rem; width: 132px; height: auto; rotate: 8deg; pointer-events: none; }
.cx-stage-sticker {
  position: absolute; z-index: 4; left: 1.5rem; top: calc(50% - 52px); display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; padding: 0.6rem;
  background: var(--cx-sun); color: var(--cx-dark); border: 2px solid var(--cx-ink); box-shadow: 5px 5px 0 #fff; rotate: -12deg;
  font-family: var(--font-display, inherit); font-weight: 900; font-size: 17px; line-height: 1.05; text-align: center;
}
.cx-below { position: relative; }
.cx-notes { position: relative; z-index: 3; display: grid; gap: 0.9rem; margin-top: 1.4rem; }
.cx-note {
  display: flex; align-items: center; gap: 0.8rem; width: min(100%, 330px); padding: 0.8rem 1rem; border-radius: 1.1rem; color: #fff;
  background: rgb(16 22 60 / 0.94); border: 2px solid rgb(255 255 255 / 0.45); box-shadow: 6px 6px 0 var(--c, var(--cx-blue));
}
.cx-note b { display: block; font-size: 15px; font-weight: 800; }
.cx-note b + span { display: block; font-size: 14px; color: rgb(225 232 255 / 0.75); margin-top: 1px; }
.cx-note-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 0.75rem; background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); }
.cx-n1 { --c: var(--cx-mint); margin-left: auto; rotate: 1.5deg; }
.cx-n2 { --c: var(--cx-blue); rotate: -2deg; margin-left: auto; margin-right: 2.5rem; }
.cx-n3 { --c: var(--cx-sun); margin-left: auto; margin-right: 0.75rem; rotate: 1.5deg; }
.cx-strap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; padding: 1rem 1.25rem; border-radius: 1.4rem; color: #fff;
  background: linear-gradient(110deg, #5B3FD1, #7C5CFF 55%, #2E91FC); border: 2px solid var(--cx-ink); box-shadow: 7px 7px 0 var(--cx-sun);
  rotate: -0.8deg; transition: rotate 0.2s, translate 0.2s, box-shadow 0.2s;
}
.cx-strap:hover { rotate: 0deg; translate: -2px -2px; box-shadow: 9px 9px 0 var(--cx-sun); }
.cx-strap:focus-visible { outline: 3px solid var(--cx-sun); outline-offset: 4px; }
.cx-strap-tag { padding: 0.35rem 0.75rem; border-radius: 99px; background: var(--cx-sun); color: var(--cx-dark); border: 2px solid var(--cx-ink); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; rotate: -3deg; }
.cx-strap-words { flex: 1 1 18rem; font-family: var(--font-display, inherit); font-weight: 800; font-size: 1.2rem; line-height: 1.3; }
.cx-strap-go { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1rem; border-radius: 99px; background: #fff; color: var(--cx-dark); font-weight: 800; font-size: 14px; }
.cx-hero-ai .cx-tools li { opacity: 0.85; }
@media (min-width: 1024px) { .cx-stage { padding: 4rem 0 1rem; } }
@media (max-width: 639px) {
  .cx-stage-nova { width: 96px; top: 0.2rem; }
  .cx-stage-sticker { width: 82px; height: 82px; font-size: 14px; left: auto; right: 0.25rem; top: auto; bottom: 0; }
  .cx-below { padding-bottom: 3.5rem; }
  .cx-note { width: 100%; }
  .cx-n1, .cx-n2, .cx-n3 { margin-left: 0; margin-right: 0; }
}

/* ---------- What You Get (blocks/bento.ejs) -------------------------------------------------- */
.cx-bento { background: radial-gradient(60% 50% at 0% 30%, rgb(46 145 252 / 0.1), transparent 70%), radial-gradient(50% 50% at 100% 0%, rgb(124 92 255 / 0.1), transparent 70%); }
.cx-bento-eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.55rem 1.1rem; border-radius: 99px; background: var(--card, #fff); color: #5B3FD1; font-weight: 800; font-size: 15px; box-shadow: 0 10px 26px -14px rgb(63 107 242 / 0.5); }
/* Dark mode: the card behind it turns dark, so the violet words turn light */
.dark .cx-bento-eyebrow { color: #C4B5FF; }
.cx-scribble { position: absolute; right: -1rem; top: -2.6rem; display: none; color: #7C5CFF; font-family: var(--font-display, inherit); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; rotate: 4deg; }
.cx-scribble-arrow { position: absolute; right: 2rem; top: 1.8rem; width: 130px; height: 32px; }
@media (min-width: 1100px) { .cx-scribble { display: block; } }
.cx-bento-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 900px) {
  .cx-bento-grid { grid-template-columns: repeat(6, 1fr); }
  .cx-b-ai { grid-column: span 4; grid-row: span 2; }
  .cx-b-found, .cx-b-big { grid-column: span 2; }
  .cx-b-small { grid-column: span 2; }
}
.cx-b-tag { font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.cx-b-ai {
  position: relative; display: flex; flex-direction: column; padding: 2.2rem; border-radius: 2rem; overflow: hidden; color: #fff;
  background: radial-gradient(70% 60% at 100% 100%, rgb(124 92 255 / 0.45), transparent 70%), radial-gradient(60% 50% at 0% 0%, rgb(46 145 252 / 0.3), transparent 70%), #070B1F;
}
.cx-b-chat { display: grid; gap: 0.8rem; margin-top: auto; padding-top: 2.5rem; }
.cx-b-me { justify-self: end; max-width: 34rem; padding: 0.85rem 1.1rem; border-radius: 1.1rem 1.1rem 0.3rem 1.1rem; background: linear-gradient(100deg, #2E91FC, #7C5CFF); font-size: 1.02rem; }
.cx-b-them { max-width: 34rem; padding: 0.85rem 1.1rem; border-radius: 1.1rem 1.1rem 1.1rem 0.3rem; background: rgb(255 255 255 / 0.07); border: 1px solid rgb(255 255 255 / 0.14); color: #E1E8FF; font-size: 1.02rem; line-height: 1.55; }
.cx-b-wait { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.8rem 0.8rem 0.8rem 1.1rem; border-radius: 1.1rem; background: rgb(255 212 59 / 0.1); border: 1px solid rgb(255 212 59 / 0.35); font-weight: 700; }
.cx-b-go { padding: 0.6rem 1rem; border-radius: 99px; background: var(--cx-sun); color: var(--cx-dark); font-weight: 800; font-size: 14.5px; }
.cx-b-found { padding: 2rem; border-radius: 2rem; background: var(--card, #fff); box-shadow: 0 2px 4px rgb(20 20 40 / 0.04), 0 18px 40px -22px rgb(20 20 40 / 0.25); }
.cx-b-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr)); gap: 0.6rem; margin-top: 1.4rem; }
.cx-b-chips li { position: relative; padding: 0.85rem 0.6rem 1.1rem; border-radius: 1rem; background: color-mix(in srgb, var(--cx-blue) 7%, var(--card, #fff)); text-align: center; font-weight: 800; font-size: 15px; overflow: hidden; }
.cx-b-chips li span { position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.55rem; height: 5px; border-radius: 5px; background: linear-gradient(90deg, var(--cx-mint), var(--cx-blue)); transform-origin: left; }
.cx-b-big, .cx-b-small { position: relative; padding: 2rem; border-radius: 2rem; background: var(--card, #fff); }
.cx-b-big { --sh: var(--cx-ink); padding-top: 4.4rem; }
.cx-b-steps { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.6rem; }
.cx-b-steps li { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.9rem 0.4rem 0.4rem; border-radius: 99px; background: rgb(255 255 255 / 0.07); border: 1px solid rgb(255 255 255 / 0.14); font-weight: 700; font-size: 15px; color: #E1E8FF; }
.cx-b-steps li span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--cx-sun); color: var(--cx-dark); font-weight: 800; font-size: 13.5px; }
.cx-b-steps li:not(:last-child)::after { content: ''; width: 14px; height: 2px; margin-left: 0.4rem; background: rgb(255 255 255 / 0.25); }
.cx-b-sticker { position: absolute; right: -0.8rem; top: -1.2rem; display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; padding: 0.5rem; background: var(--cx-sun); color: var(--cx-dark); border: 2px solid var(--cx-ink); box-shadow: 4px 4px 0 var(--cx-ink); rotate: 14deg; font-family: var(--font-display, inherit); font-weight: 900; font-size: 16px; line-height: 1.05; text-align: center; z-index: 2; }
.cx-b-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 1rem; color: #fff; background: linear-gradient(135deg, var(--cx-blue), var(--cx-violet)); box-shadow: 0 12px 24px -10px rgb(63 107 242 / 0.7); }
.cx-b-badges { position: absolute; right: 1.4rem; top: 1.4rem; display: grid; justify-items: end; gap: 0.45rem; }
.cx-b-badges li { padding: 0.3rem 0.8rem; border-radius: 99px; background: #E2F8EE; color: #0B7A51; font-weight: 700; font-size: 14px; }
.cx-b-nova { background: linear-gradient(140deg, #EEF3FF, #F3EEFF); box-shadow: 0 18px 40px -26px rgb(20 20 40 / 0.3); overflow: hidden; }
.cx-b-nova-pic { position: absolute; right: 1rem; bottom: 0.5rem; width: 130px; height: auto; rotate: 6deg; }
.cx-b-nova h3, .cx-b-nova p { position: relative; max-width: 70%; }
.dark .cx-b-nova { background: linear-gradient(140deg, #18203F, #241B45); }
.dark .cx-b-chips li { background: rgb(255 255 255 / 0.06); }
@media (prefers-reduced-motion: no-preference) {
  .cx-b-chips li span { animation: cx-fill 2.4s cubic-bezier(.3,.9,.3,1) both; animation-delay: var(--d); }
  .cx-b-sticker { animation: cx-wobble2 6s ease-in-out infinite; }
}
@keyframes cx-fill { from { scale: 0 1; } to { scale: 1 1; } }
@keyframes cx-wobble2 { 0%, 100% { rotate: 14deg; } 50% { rotate: 6deg; } }

/* ---------- Who's joining (partials/joined.ejs) ------------------------------------------------ */
.cx-joined-rows { display: grid; gap: 1rem; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cx-joined-row { display: flex; width: max-content; padding: 0.5rem 0; }
.cx-joined-track { display: flex; gap: 0.9rem; padding-right: 0.9rem; flex: none; }
.cx-joined-track li {
  padding: 0.55rem 1.1rem; border-radius: 99px; background: #fff; color: var(--cx-dark); border: 2px solid var(--cx-ink);
  box-shadow: 4px 4px 0 var(--c); rotate: var(--t); font-family: var(--font-display, inherit); font-weight: 800; font-size: 1.05rem; white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .cx-joined-row { width: auto; flex-wrap: wrap; justify-content: center; }
  .cx-joined-row .cx-joined-track[aria-hidden] { display: none; }
  .cx-joined-track { flex-wrap: wrap; justify-content: center; padding: 0; }
  .cx-joined-rows { mask-image: none; }
}

/* ---------- Motion ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .cx-stars-2 { animation: cx-twinkle 4.5s ease-in-out infinite; }
  .cx-stars { animation: cx-drift 90s linear infinite alternate; }
  .cx-shoot { animation: cx-shoot 9s ease-in 2.5s infinite; }
  .cx-shoot-2 { animation-duration: 13s; animation-delay: 7s; }
  .cx-ring { animation: cx-ring 40s linear infinite; }
  .cx-badge { animation: cx-bob 6s ease-in-out infinite; }
  .cx-o2 { animation-delay: -1.5s; } .cx-o3 { animation-delay: -3s; } .cx-o4 { animation-delay: -4.5s; } .cx-o5 { animation-delay: -2.2s; }
  .cx-product { transition: rotate 380ms cubic-bezier(.2,1.4,.4,1), translate 260ms; }
  .cx-product:hover { translate: 0 -6px; }
  .cx-nova { animation: cx-bob 5s ease-in-out infinite; }
  .cx-joined-row { animation: cx-marquee 60s linear infinite; }
  .cx-joined-back { animation-direction: reverse; animation-duration: 70s; }
  .cx-joined-rows:hover .cx-joined-row { animation-play-state: paused; }
  .cx-caret { animation: cx-blink 1s steps(2, start) infinite; }
  .cx-stage-sticker { animation: cx-wobble 6s ease-in-out infinite; }
  .cx-note { animation: cx-float 7s ease-in-out infinite; }
  .cx-n2 { animation-delay: -2.3s; } .cx-n3 { animation-delay: -4.6s; }
  [data-sheet]:not([hidden]) .cx-sheet-panel nav > ul > li { animation: cx-drop 520ms cubic-bezier(.3,1.5,.5,1) both; animation-delay: calc(var(--i, 0) * 60ms + 80ms); }
  .cx-floor { animation: cx-floor 6s linear infinite; }
  @supports (animation-timeline: view()) {
    .cx-planet { animation: cx-sink linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  }
}
@keyframes cx-twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }
@keyframes cx-drift { to { translate: -30px 12px; } }
@keyframes cx-shoot { 0% { opacity: 0; translate: 0 0; } 4% { opacity: 1; } 12% { opacity: 0; translate: -340px 150px; } 100% { opacity: 0; translate: -340px 150px; } }
@keyframes cx-ring { from { transform: rotateX(76deg) rotateZ(0deg); } to { transform: rotateX(76deg) rotateZ(360deg); } }
@keyframes cx-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes cx-drop { from { opacity: 0; translate: 0 -18px; scale: 0.96; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes cx-floor { from { background-position: 0 0; } to { background-position: 0 64px; } }
@keyframes cx-sink { to { translate: 0 18%; } }
@media (prefers-reduced-motion: reduce) {
  .cx-card, .cx-quote, .sticker, .pill-brand::after { transition: none !important; }
  .cx-card:hover { translate: none; }
  .cx-shoot { display: none; }
}
@media print { .cx-cosmos { display: none; } .cx-sky { background: none; color: #000; } }

@keyframes cx-blink { to { visibility: hidden; } }
@keyframes cx-wobble { 0%, 100% { rotate: -12deg; } 50% { rotate: -4deg; } }
@keyframes cx-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes cx-marquee { to { translate: -50% 0; } }

/* ---------- Page header with a globe (pageHero look: 'globe', the About page) ------------------ */
.cx-globe-stage { position: relative; width: 100%; max-width: 32rem; margin: 0 auto; aspect-ratio: 1; }
.cx-globe { position: absolute; inset: 6%; width: 88%; height: 88%; filter: drop-shadow(0 0 40px rgb(46 145 252 / 0.45)); translate: 0 0 0; }
.cx-globe-orbit { position: absolute; left: -4%; right: -4%; top: 38%; height: 26%; border-radius: 50%; border: 2px dashed rgb(255 212 59 / 0.6); rotate: -12deg; }
.cx-pins { position: absolute; inset: 0; }
.cx-pin { position: absolute; display: inline-flex; align-items: center; gap: 0.5rem; max-width: 15rem; padding: 0.5rem 0.9rem 0.5rem 0.55rem; border-radius: 99px; background: #fff; color: var(--cx-dark); border: 2px solid var(--cx-ink); box-shadow: 4px 4px 0 var(--sh, var(--cx-blue)); font-weight: 800; font-size: 15px; line-height: 1.2; }
.cx-pin-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; background: var(--cx-sun); border: 2px solid var(--cx-ink); }
.cx-pin-1 { left: 0; top: 30%; rotate: -3deg; --sh: var(--cx-blue); }
.cx-pin-2 { right: 0; top: 6%; rotate: 2deg; --sh: var(--cx-violet); }
.cx-pin-3 { right: 4%; bottom: 10%; rotate: -2deg; --sh: var(--cx-sun); }
.cx-pin-4 { left: 6%; bottom: 2%; rotate: 2deg; --sh: var(--cx-mint); }
@media (max-width: 479px) { .cx-pin { font-size: 14px; max-width: 12.5rem; } }
@media (prefers-reduced-motion: no-preference) {
  .cx-globe-lines { transform-origin: 200px 200px; animation: cx-globe-spin 40s linear infinite; }
  .cx-pin { animation: cx-float 7s ease-in-out infinite; }
  .cx-pin-2 { animation-delay: -2s; } .cx-pin-3 { animation-delay: -4s; }
}
@keyframes cx-globe-spin { to { transform: rotate(360deg); } }
@keyframes cx-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* ---------- Timelines as taped cards on a dashed track ------------------------------------------ */
.cx-tl { overflow: visible; }
.cx-tl::before { content: ''; position: absolute; top: -11px; left: 50%; width: 92px; height: 22px; translate: -50% 0; rotate: -3deg; background: rgb(255 212 59 / 0.6); border-left: 2px dashed rgb(0 0 0 / 0.08); border-right: 2px dashed rgb(0 0 0 / 0.08); pointer-events: none; }
li:nth-child(even) > .cx-tl::before, li.cx-tl:nth-child(even)::before { rotate: 3deg; background: rgb(185 163 255 / 0.6); }
li.cx-tl:nth-child(odd) { --cx-tilt: -0.6deg !important; }
li.cx-tl:nth-child(even) { --cx-tilt: 0.6deg !important; }
li.cx-tl { rotate: var(--cx-tilt); }

/* ---------- Bold value cards (cards style 'bold') ------------------------------------------------- */
.cx-bold { color: #fff; border: 2px solid var(--cx-ink); box-shadow: 6px 6px 0 var(--cx-ink) !important; }
.cx-bold-blue { background: linear-gradient(150deg, #2E91FC, #1C5FD1) !important; }
.cx-bold-violet { background: linear-gradient(150deg, #8A6BFF, #5B3FD1) !important; }
.cx-bold-navy { background: linear-gradient(150deg, #1B2559, #0B1030) !important; }
.cx-bold h3 { color: #fff; }
.cx-bold .site-prose, .cx-bold .site-prose p { color: rgb(255 255 255 / 0.86) !important; }
.cx-bold .bubble-spin { background: rgb(255 255 255 / 0.16) !important; color: #fff !important; }
.cx-bold-letter { position: absolute; right: 0.6rem; top: -2.6rem; font-family: var(--font-display, inherit); font-weight: 900; font-size: 8.5rem; line-height: 1; color: rgb(255 255 255 / 0.09); pointer-events: none; }
.cx-bold > div { position: relative; }

/* Page headers keep the planet but not its ring: on a centred heading the ring ran through the words */
.cx-page .cx-cosmos .cx-ring { display: none; }
/* A tall photo in a side-by-side block shows in a portrait frame, centred, not cut in half (cosmos.js data-cx-fit) */
img.cx-tall { aspect-ratio: 4 / 5; width: 100%; max-width: 26rem; margin-inline: auto; display: block; }
/* A picture card with no photo (Geoffrey, 4 Dec 2026: a plain colour block looked like a picture that hadn't loaded):
   a small night sky with the card's own icon on a glowing planet */
.cx-card-sky { position: relative; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(1.5px 1.5px at 18% 28%, #fff9, transparent 60%), radial-gradient(1px 1px at 72% 18%, #fffa, transparent 60%),
    radial-gradient(1.5px 1.5px at 84% 64%, #fff8, transparent 60%), radial-gradient(1px 1px at 30% 78%, #fff9, transparent 60%),
    radial-gradient(120% 90% at 50% 120%, #3B2A8C 0%, transparent 60%), linear-gradient(160deg, #0B1230 0%, #16124A 100%); }
.cx-card-sky::after { content: ''; position: absolute; left: 50%; bottom: -60%; width: 120%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #2E91FC55, transparent 60%); box-shadow: 0 -2px 0 #7C5CFF66, 0 -18px 50px -10px #2E91FC55; }
.cx-card-sky-ic { position: relative; z-index: 1; display: grid; place-items: center; width: 6rem; height: 6rem; border-radius: 1.6rem;
  background: #FFD43B; color: #10171F; border: 2px solid #10171F; box-shadow: 6px 6px 0 #2E91FC; rotate: -4deg; }
.cx-card-sky-ic svg { width: 3rem; height: 3rem; }


/* In space there's no sun (Geoffrey, 4 Dec 2026): the little sky's sun or moon is a ringed planet in every night-sky header,
   at any time of day, in Starien's violet and blue with a yellow ring like the logo's star. Still tappable for its lines. */
.cx-sky .sky-rays { display: none !important; }
.cx-sky .sky-orb { isolation: isolate; }
.cx-sky [data-sky-orb] {
  z-index: 1;
  background: radial-gradient(circle at 34% 30%, #E9E3FF 0 10%, #9B82FF 38%, #5B3FD1 72%, #2A1F7A 100%) !important;
  box-shadow: inset -6px -8px 14px rgb(10 8 40 / 0.55), 0 0 0 6px rgb(124 92 255 / 0.14), 0 0 44px 8px rgb(124 92 255 / 0.4) !important;
}
.cx-sky [data-sky-orb]::before, .cx-sky [data-sky-orb]::after { content: none !important; }
/* The ring: its back half behind the planet, its front half over it */
.cx-sky .sky-orb::before, .cx-sky .sky-orb::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 168%; height: 46%; border-radius: 50%;
  border: 3px solid #FFD43B; box-shadow: 0 0 12px rgb(255 212 59 / 0.35);
  translate: -50% -50%; rotate: -18deg; pointer-events: none;
}
.cx-sky .sky-orb::before { z-index: 0; }
.cx-sky .sky-orb::after { z-index: 2; clip-path: inset(50% 0 0 0); }

/* Websites We've Built (blocks/work.ejs): two pages of each website fanned like cards in browser frames on hard
   offset shadows, a strip of tape holding them, the phone view leaning on the corner. On phones one row to swipe. */
.cx-work { display: grid; gap: 4rem 2.6rem; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 640px) { .cx-work { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cx-work { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 639px) {
  .cx-work {
    display: flex; gap: 1.4rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin: 0 -1.25rem; padding: 1.2rem 1.25rem 2.2rem; scroll-padding-inline: 1.25rem; scrollbar-width: none;
  }
  .cx-work::-webkit-scrollbar { display: none; }
  .cx-work-item { flex: 0 0 84%; scroll-snap-align: start; }
}
.cx-work:focus-visible { outline: 3px solid var(--cx-blue); outline-offset: 6px; border-radius: 1rem; }
.cx-work-item { --sh: var(--cx-blue); --sh2: var(--cx-sun); --tilt: -1.6deg; --tilt2: 4deg; position: relative; }
.cx-work-item:nth-child(3n+2) { --sh: var(--cx-violet); --sh2: var(--cx-blue); --tilt: 1.4deg; --tilt2: -3.5deg; }
.cx-work-item:nth-child(3n) { --sh: var(--cx-sun); --sh2: var(--cx-violet); --tilt: -0.8deg; --tilt2: 3deg; }
.cx-work-stack { position: relative; padding: 17% 15% 0 0; }
.cx-work-shot {
  position: relative; margin: 0; border: 2px solid var(--cx-ink); border-radius: 1.1rem; background: #fff;
  box-shadow: 7px 7px 0 var(--sh); rotate: var(--tilt); transition: rotate 0.3s ease, translate 0.3s ease, box-shadow 0.3s ease;
}
.cx-work-front { z-index: 1; }
.cx-work-front::before {
  content: ""; position: absolute; z-index: 3; top: -0.8rem; left: 50%; width: 5.2rem; height: 1.5rem; translate: -50% 0; rotate: -4deg;
  background: rgb(255 212 59 / 0.82); border-left: 2px dashed rgb(16 23 31 / 0.18); border-right: 2px dashed rgb(16 23 31 / 0.18);
}
.cx-work-item:nth-child(3n+2) .cx-work-front::before { background: rgb(126 224 181 / 0.85); rotate: 5deg; }
.cx-work-item:nth-child(3n) .cx-work-front::before { background: rgb(255 138 128 / 0.8); rotate: -2deg; }
.cx-work-back { position: absolute; z-index: 0; top: 0; right: 0; width: 85%; rotate: var(--tilt2); box-shadow: 6px 6px 0 var(--sh2); }
.cx-work-item:hover .cx-work-front, .cx-work-item:focus-within .cx-work-front { rotate: 0deg; translate: -4px 4px; box-shadow: 10px 10px 0 var(--sh); }
.cx-work-item:hover .cx-work-back, .cx-work-item:focus-within .cx-work-back { rotate: calc(var(--tilt2) * 1.8); translate: 10px -10px; }
.cx-work-bar { display: flex; align-items: center; gap: 5px; padding: 0.5rem 0.7rem; border-bottom: 2px solid var(--cx-ink); background: #F3F5FA; border-radius: 0.95rem 0.95rem 0 0; }
.cx-work-bar span { width: 9px; height: 9px; border-radius: 50%; background: #FF8A80; }
.cx-work-bar span:nth-child(2) { background: #FFD43B; }
.cx-work-bar span:nth-child(3) { background: #7EE0B5; }
.cx-work-shot > img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 0 0 0.95rem 0.95rem; }
.cx-work-phone {
  position: absolute; z-index: 2; right: -0.6rem; bottom: -2.4rem; width: 25%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top;
  border: 3px solid var(--cx-ink); border-radius: 0.9rem; background: #fff; box-shadow: 5px 5px 0 var(--cx-ink); rotate: 5deg;
  transition: rotate 0.3s ease, translate 0.3s ease;
}
.cx-work-item:hover .cx-work-phone, .cx-work-item:focus-within .cx-work-phone { rotate: 9deg; translate: 4px -6px; }
.cx-work-words { margin-top: 1.5rem; padding-right: 28%; }
.dark .cx-work-shot, .dark .cx-work-bar { border-color: rgb(255 255 255 / 0.85); }
.dark .cx-work-bar { background: #1B2233; }
@media (prefers-reduced-motion: reduce) { .cx-work-shot, .cx-work-phone { transition: none; } }

/* No lone last word on a line in section intros and card words */
section p { text-wrap: pretty; }

/* ---------- The concepts, carried through (Geoffrey, 4 Dec 2026: "carry that whole concept throughout the whole website") ----------
   Concept 1's frame: a page that opens on the night sky runs it to the top and the edges, and the menu floats over it. */
body:has(main#top > .cx-sky:first-child) [data-site-header] { background: transparent !important; margin-bottom: -4.75rem; }
body:has(main#top > .cx-sky:first-child) [data-site-header] + .site-canvas { padding-left: 0; padding-right: 0; }
body:has(main#top > .cx-sky:first-child) [data-site-header] + .site-canvas > div { border-top-left-radius: 0; border-top-right-radius: 0; }
main#top > .cx-sky:first-child { padding-top: 4.75rem; }
@media (min-width: 640px) {
  body:has(main#top > .cx-sky:first-child) [data-site-header] { margin-bottom: -5rem; }
  main#top > .cx-sky:first-child { padding-top: 5rem; }
}
/* Over the sky the bar is glass, as in the concept; once the page scrolls under it, it stays dark enough to read */
body:has(main#top > .cx-sky:first-child) .cx-bar { background-color: rgb(12 16 44 / 0.72) !important; }

/* Concept 1: the hero */
.cx-ai-h1 > span { font-size: clamp(3rem, 6.4vw, 5.9rem) !important; line-height: 1 !important; }
.cx-trust b { font-weight: 800; }
.cx-stage { position: relative; }
.cx-stage .cx-stage-sticker { left: auto; right: -1.4rem; top: 1.2rem; width: 122px; height: 122px; font-size: 19px; rotate: 10deg; box-shadow: 5px 5px 0 #fff; }
.cx-stage .cx-stage-nova { right: -0.4rem; top: -1.6rem; rotate: 14deg; }
.cx-note { width: min(100%, 26rem); padding: 0.95rem 1.15rem; }
@media (min-width: 1024px) {
  .cx-n1 { margin-left: auto; margin-right: -1.2rem; rotate: 0.5deg; }
  .cx-n2 { margin-left: -4rem; margin-right: auto; rotate: -2deg; }
  .cx-n3 { margin-left: auto; margin-right: -0.4rem; rotate: 1.5deg; }
}
@media (max-width: 639px) {
  .cx-stage .cx-stage-sticker { width: 88px; height: 88px; font-size: 14px; right: -0.3rem; top: -0.6rem; bottom: auto; }
  .cx-stage .cx-stage-nova { display: none; }
}

/* Concept 2: What You Get, its two outlined cards in blue and violet, the big card tilted */
.cx-b-small.cx-card { border: 2px solid var(--cx-ink); box-shadow: 8px 8px 0 var(--sh) !important; }
.cx-b-big { border: 2px solid var(--cx-ink); box-shadow: 8px 8px 0 var(--cx-ink) !important; rotate: -1.2deg; }
.dark .cx-b-small.cx-card, .dark .cx-b-big { border-color: rgb(255 255 255 / 0.85); }

/* Concept 3: the About page's globe, centred under the words, labels round it */
.cx-globe-h1 .cx-glow { background: linear-gradient(95deg, #8EC5FF 0%, #C9B8FF 50%, #F2C36B 90%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
/* the concept's line break straight after the coloured words */
.cx-globe-h1 .cx-glow::after { content: "\A"; white-space: pre; }
@media (min-width: 1024px) { .cx-globe-h1 { font-size: 4.6rem !important; text-wrap: wrap; } }
.cx-globe-low { max-width: 30rem; margin: 6rem auto -3rem; aspect-ratio: 1; }
.cx-globe-low .cx-pin { white-space: nowrap; max-width: none; }
.cx-globe-low .cx-globe-orbit { left: -42%; right: -42%; top: 10%; height: 34%; rotate: -10deg; border-width: 2px; }
.cx-globe-star { position: absolute; right: -40%; top: 18%; width: 44px; height: 44px; }
.cx-globe-low .cx-pin-1 { left: -38%; top: -2%; right: auto; bottom: auto; rotate: -3deg; }
.cx-globe-low .cx-pin-2 { right: -36%; top: -14%; left: auto; bottom: auto; rotate: 3deg; }
.cx-globe-low .cx-pin-3 { right: -38%; top: 28%; left: auto; bottom: auto; rotate: -2deg; }
.cx-globe-low .cx-pin-4 { left: -30%; top: 40%; right: auto; bottom: auto; rotate: 2deg; }
.cx-globe-low .cx-pin { --sh: var(--cx-sun); }
@media (max-width: 899px) {
  .cx-globe-low { max-width: 20rem; margin-top: 7rem; }
  .cx-globe-low .cx-globe-orbit, .cx-globe-star { display: none; }
  .cx-globe-low .cx-pins { position: absolute; inset: -6.5rem -1rem auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
  .cx-globe-low .cx-pin { position: static; rotate: 0deg !important; }
}

/* Concept 3: the timeline across the page, a dotted line of dates with a taped note under each */
.cx-track-nova { display: none; }
@media (min-width: 900px) { .cx-track-nova { display: block; position: absolute; right: 4%; top: 2.5rem; width: 120px; height: auto; rotate: 8deg; } }
.cx-track { position: relative; display: grid; gap: 2.2rem 1.6rem; margin-top: 3.2rem; list-style: none; padding: 0; }
@media (min-width: 640px) { .cx-track { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .cx-track { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; }
  .cx-track::before { content: ''; position: absolute; left: 0; right: 0; top: 1.35rem; border-top: 3px dashed var(--cx-ink); opacity: 0.85; }
}
.cx-track-step { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 1.6rem; }
.cx-track-yr { position: relative; z-index: 1; padding: 0.45rem 1rem; border-radius: 0.9rem; background: var(--card, #fff); color: var(--cx-ink); border: 2px solid var(--cx-ink); box-shadow: 4px 4px 0 var(--cx-ink); font-family: var(--font-display, inherit); font-weight: 900; font-size: 1.15rem; }
.cx-track-now { background: var(--cx-sun); }
.cx-track-step:last-child .cx-track-yr { background: var(--cx-ink); color: #fff; box-shadow: 4px 4px 0 var(--c); }
.cx-track-box { position: relative; align-self: stretch; flex: 1; padding: 1.6rem 1.4rem 1.5rem; border-radius: 1.2rem; background: var(--card, #fff); border: 2px solid var(--cx-ink); box-shadow: 7px 7px 0 var(--c); rotate: -1.2deg; }
.cx-track-step:nth-child(even) .cx-track-box { rotate: 1deg; margin-top: 0.8rem; }
.cx-track-box::before { content: ''; position: absolute; top: -12px; left: 50%; width: 84px; height: 22px; translate: -50% 0; rotate: -3deg; background: rgb(255 212 59 / 0.7); border-left: 2px dashed rgb(0 0 0 / 0.08); border-right: 2px dashed rgb(0 0 0 / 0.08); }
.dark .cx-track-yr, .dark .cx-track-box { border-color: rgb(255 255 255 / 0.85); }
.dark .cx-track::before { border-color: rgb(255 255 255 / 0.6); }

/* Concept 3: the bold value cards, their big letters faint behind the words */
.cx-bold-letter { top: auto; bottom: -1.4rem; right: 0.4rem; font-size: 9rem; color: rgb(255 255 255 / 0.1); }

/* The small planet keeps clear of the menu bar floating over the sky; the globe header has its own world */
main#top > .cx-sky:first-child [data-sky-place] { margin-top: 4.5rem; }
.cx-sky:has(.cx-globe-low) [data-sky-place] { display: none; }

/* A clear gap between the last panel on a page (the Nova call to action, the Launchpad box) and the footer,
   which tucks 2.5rem up under the page's sheet */
main#top { padding-bottom: 3rem; }
@media (min-width: 640px) { main#top { padding-bottom: 4rem; } }
