/*! the Orbit · coming soon · © 2026 Flex Innovations Ltd. All rights reserved. No licence to copy, adapt or train AI on this. build cs-20260925-a7 */
/* The Orbit · coming soon. Night studio: a glossy toy planet under a spotlight. Own art only. */
@font-face { font-family: "Bagel Fat One"; src: url(fonts/BagelFatOne.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/Figtree.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }

@property --accent { syntax: "<color>"; inherits: true; initial-value: #ff78c4; }
@property --accent-2 { syntax: "<color>"; inherits: true; initial-value: #a9a2ff; }
:root {
  --accent: #ff78c4; --accent-2: #a9a2ff;
  transition: --accent 1.4s ease, --accent-2 1.4s ease;
  --night: #140f33; --night-2: #231a55; --pink: #ff78c4; --pink-deep: #e8559f; --ultra: #3b2cff; --lilac: #a9a2ff;
  --cream: #fff7ec; --gold: #ffc94a; --dim: #bdb4e6;
  --gut: clamp(16px, 4vw, 56px);
  --display: "Bagel Fat One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 500 16px/1.5 var(--text); color: var(--cream); overflow-x: hidden;
  background:
    radial-gradient(60vmax 45vmax at 50% 38%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 62%),
    radial-gradient(90vmax 70vmax at 50% 120%, #3b2cff55, transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  background-attachment: fixed;
  min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto auto;
}
a { color: inherit; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 10; background: var(--cream); color: var(--night); padding: 10px 14px; border-radius: 10px; font-weight: 800; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* the logo glyph colours (shared by the header mark and the poster) */
.glyph, .cs-poster { overflow: visible; }
.g-ring { fill: none; stroke: var(--cream); stroke-width: 3; stroke-linecap: round; }
.g-planet { fill: var(--accent); }
.g-halo { fill: none; stroke: var(--night); stroke-width: 7; stroke-linecap: round; }
.g-moon { fill: var(--accent-2); }

.cs-top { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px var(--gut) 0; }
.cs-mark { display: flex; align-items: center; gap: 10px; margin: 0; font: 400 22px/1 var(--display); letter-spacing: .01em; }
.cs-mark .glyph { width: 38px; height: 32px; }
.cs-pause { font: 700 14px/1 var(--text); color: var(--cream); background: #ffffff14; border: 1.5px solid #ffffff40; border-radius: 99px; padding: 12px 16px; min-height: 44px; cursor: pointer; }
.cs-pause:hover { background: #ffffff24; }
.cs-pause[aria-pressed="true"] { background: var(--cream); color: var(--night); }

/* the stage: the 3D canvas fills the window behind everything; the poster sits where the planet will be */
.cs-stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.cs-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; pointer-events: auto; touch-action: pan-y; }
.cs-stage.is-3d canvas { opacity: 1; }
.cs-poster { position: absolute; left: var(--band-x, 50%); top: var(--band-c, 34%); width: min(calc(var(--band-w, 100vw) * .72), calc(var(--band-h, 50vh) * 1.1), 620px); translate: -50% -50%; filter: drop-shadow(0 30px 60px color-mix(in srgb, var(--accent) 35%, transparent)); transition: opacity .8s ease; animation: float 7s ease-in-out infinite; }
.cs-poster .g-moon { transform-origin: 24px 21px; animation: moon 9s linear infinite; }
.cs-poster .g-halo { stroke: var(--night-2); }
.cs-stage.is-3d .cs-poster { opacity: 0; }
@keyframes float { 50% { translate: -50% calc(-50% - 12px); } }
@keyframes moon { to { transform: rotate(360deg); } }

/* Human first: small, calm, and lit from inside. It shimmers slowly in the palette, and breathes a soft glow. */
.cs-human { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 8px 16px 8px 12px; border-radius: 99px;
  font: 800 13px/1 var(--text); letter-spacing: .14em; text-transform: uppercase;
  border: 1.5px solid color-mix(in srgb, var(--accent-2) 55%, transparent); background: #ffffff0d;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent-2) 0%, transparent), 0 0 24px color-mix(in srgb, var(--accent-2) 28%, transparent);
  animation: breathe 5.5s ease-in-out infinite; }
.cs-human { background-image: linear-gradient(100deg, var(--cream) 30%, var(--accent-2) 45%, #ffffff 50%, var(--accent) 55%, var(--cream) 70%);
  background-size: 260% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: breathe 5.5s ease-in-out infinite, shimmer 7s ease-in-out infinite; }
.cs-human-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px 2px var(--accent-2); flex: none; }
@keyframes breathe { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent-2) 10%, transparent), 0 0 36px color-mix(in srgb, var(--accent-2) 45%, transparent); } }
@keyframes shimmer { 0%, 35% { background-position: 100% 0; } 65%, 100% { background-position: 0% 0; } }

/* the tap hint: rides beside the planet, flashes slowly, gone after the first tap */
.cs-tap { position: absolute; left: 0; top: 0; pointer-events: none; white-space: nowrap; opacity: 0;
  font: 800 11px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--cream);
  padding: 7px 11px; border-radius: 99px; border: 1.5px solid color-mix(in srgb, var(--accent) 60%, transparent); background: #140f3399;
  animation: tapflash 3.4s ease-in-out 2.5s infinite; transition: opacity .6s ease; }
.cs-tap::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; vertical-align: 1px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px 2px var(--accent); }
.cs-tap.is-done { animation: none; opacity: 0; }
@keyframes tapflash { 0%, 100% { opacity: .18; } 50% { opacity: .92; } }
.is-paused .cs-tap { animation: none; opacity: .6; }
.cs-stage:not(.is-3d) .cs-tap { display: none; }

/* the words */
.cs-copy { position: relative; z-index: 2; grid-row: 3; text-align: center; padding: 0 var(--gut) 8px; pointer-events: none; }
.cs-copy > * { pointer-events: auto; }
.cs-q { font: 400 clamp(34px, 6.4vw, 92px)/.95 var(--display); margin: 0 auto; max-width: 16ch; text-wrap: balance; color: var(--cream); text-shadow: 0 4px 0 color-mix(in srgb, var(--accent) 78%, #1b1440), 0 10px 40px color-mix(in srgb, var(--accent) 40%, transparent); }
.cs-soon { font: 800 clamp(15px, 1.5vw, 19px)/1 var(--text); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin: 18px 0 20px; }
.cs-when { margin: 0 0 10px; color: var(--dim); font-weight: 700; }
.cs-digits { list-style: none; margin: 0 auto; padding: 0; display: flex; justify-content: center; gap: clamp(8px, 1.6vw, 18px); }
.cs-digits li { display: grid; justify-items: center; gap: 6px; min-width: clamp(64px, 9vw, 108px); padding: 14px 8px 12px; border-radius: 20px; background: #ffffff10; border: 1.5px solid #ffffff2e; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cs-digits b { font: 400 clamp(30px, 4.2vw, 58px)/1 var(--display); color: var(--cream); display: inline-block; min-width: 2ch; font-variant-numeric: tabular-nums; }
.cs-digits span { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.cs-tease { min-height: 1.5em; margin: 22px auto 0; font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; color: var(--cream); transition: opacity .5s ease, translate .5s ease; }
.cs-tease.is-out { opacity: 0; translate: 0 6px; }

.cs-foot { position: relative; z-index: 2; grid-row: 4; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 18px; padding: 18px var(--gut) max(18px, env(safe-area-inset-bottom)); font-size: 13px; color: var(--dim); text-align: center; }
.cs-foot p { margin: 0; }
.cs-quiet { color: #9d94c9; }
.cs-credits summary { cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; min-height: 24px; }
.cs-credits ul { text-align: left; max-width: 60ch; margin: 10px auto 0; padding-left: 18px; color: var(--cream); }
.cs-credits a { text-underline-offset: 3px; }

/* launched: the question is asked */
.is-live .cs-q { max-width: 18ch; }
.is-live .cs-digits { display: none; }

/* motion off: by the system setting or the Pause button */
@media (prefers-reduced-motion: reduce) { .cs-poster, .cs-poster .g-moon, .cs-human { animation: none; } .cs-tap { animation: none; opacity: .6; } :root { transition: none; } .cs-tease, .cs-stage canvas, .cs-poster { transition: none; } }
.is-paused .cs-poster, .is-paused .cs-poster .g-moon, .is-paused .cs-human { animation-play-state: paused; }

/* wide screens: the words on the left, the planet owns the right */
@media (min-width: 960px) and (min-aspect-ratio: 5/4) {
  body { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-template-rows: auto 1fr auto;
    background:
      radial-gradient(48vmax 40vmax at 70% 42%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 62%),
      radial-gradient(90vmax 70vmax at 50% 120%, #3b2cff55, transparent 60%),
      linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%); background-attachment: fixed; }
  .cs-top { grid-column: 1 / -1; }
  .cs-copy { grid-row: 2; grid-column: 1; align-self: center; text-align: left; padding: 0 0 0 calc(var(--gut) + 2vw); }
  .cs-q { margin: 0; max-width: 11ch; font-size: clamp(52px, 6.2vw, 112px); }
  .cs-digits { justify-content: flex-start; }
  .cs-tease { margin: 22px 0 0; }
  .cs-foot { grid-row: 3; grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .cs-tap { font-size: 10px; padding: 6px 9px; }
  .cs-human { font-size: 11px; margin-bottom: 14px; }
  .cs-digits li { min-width: 0; flex: 1; padding: 12px 4px 10px; border-radius: 16px; }
  .cs-pause { padding: 10px 12px; font-size: 13px; }
}
@media (forced-colors: active) { .cs-stage { display: none; } .cs-q { text-shadow: none; } .cs-human { color: CanvasText; background: none; -webkit-background-clip: border-box; background-clip: border-box; } }
/* the share-image render (?og): nothing that goes stale */
.is-og .cs-digits, .is-og .cs-pause, .is-og .cs-tease, .is-og .cs-foot, .is-og .cs-tap { visibility: hidden; }
.is-og .cs-when { font-size: 22px; color: var(--cream); }
