/* omuo.co as one story. The type, the cards and their words are the live site's and the app's (Open Runde, NDot47 for
   the big numbers, the cards' glass with a hairline, small spaced capitals for labels); the space is the app icon's. */
@font-face { font-family: "Open Runde"; src: url("/sky/OpenRunde-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Runde"; src: url("/sky/OpenRunde-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Open Runde"; src: url("/sky/OpenRunde-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "NDot"; src: url("/sky/NDot47.woff2") format("woff2"); font-display: swap; }

:root {
  --w: #fff; --dim: rgba(255, 255, 255, .9); --faint: rgba(255, 255, 255, .72);
  --line: rgba(255, 255, 255, .16);
  --space: #0a0820;
  --rain: rgb(107, 181, 255);
  --alert: #ff3b3b;
  --gut: max(clamp(20px, 5vw, 76px), calc((100vw - 1240px) / 2));
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--space); }
body { margin: 0; color: var(--w); font: 400 18px/1.5 "Open Runde", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; background: var(--space); }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2 { margin: 0; font-weight: 700; letter-spacing: -.045em; text-wrap: balance; text-shadow: 0 1px 30px rgba(5, 10, 25, .3); }
p { margin: 0; text-wrap: pretty; }

/* the two skies, fixed behind everything */
#sky, #space { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; display: block; }
#space { z-index: 1; background: radial-gradient(120% 90% at 70% 110%, #2a1d63, #0a0820 60%); }
.no-earth #space { display: none; }
.no-earth body { background: linear-gradient(#0a0820, #1d1440); }

.bolt { position: fixed; z-index: 2; pointer-events: none; overflow: visible; }
.bolt circle { transform-box: fill-box; will-change: transform, opacity; }
.no-earth .bolt { display: none; }

.pin { position: fixed; z-index: 2; left: 0; top: 0; opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 10px; }
.pin i { position: relative; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, .25), 0 0 10px 2px rgba(6, 4, 18, .45); }
.pin i::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); animation: ping 1.8s var(--ease) infinite; }
.pin span { margin-top: -6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 0 2px rgba(6, 4, 18, .55), 0 0 12px rgba(6, 4, 18, .45), 0 0 28px rgba(6, 4, 18, .35); }
@keyframes ping { from { transform: scale(1); opacity: 1; } to { transform: scale(3); opacity: 0; } }

/* the bar: the mark and two words */
.bar { position: fixed; z-index: 10; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gut) 26px; pointer-events: none; }
.bar::before { content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(6, 8, 24, .42), rgba(6, 8, 24, 0)); mask-image: linear-gradient(180deg, #000 45%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent); }
.bar > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 16px; letter-spacing: -.02em; text-decoration: none; }
.bar nav { display: flex; gap: 22px; font-size: 15px; font-weight: 600; }
.bar nav a { text-decoration: none; color: var(--dim); }
.bar nav a:hover { color: var(--w); }

main { position: relative; z-index: 3; }

/* the start: the words over the stars, the Earth and the bolt below them */
.hero { min-height: 100vh; min-height: 100svh; padding: clamp(96px, 16svh, 170px) var(--gut) 40px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.hero h1 { font-size: clamp(48px, min(9.6vw, 15svh), 136px); line-height: .94; }
.lede { margin-top: 20px; max-width: 22em; color: var(--dim); font-size: clamp(17px, 1.4vw, 20px); }
.lede .try { display: inline-block; margin-left: .2em; color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .45); pointer-events: auto; }
.lede .try:hover { border-bottom-color: #fff; }
.cue { position: fixed; z-index: 3; left: 0; right: 0; bottom: max(22px, env(safe-area-inset-bottom)); text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); pointer-events: none; }
.cue::after { content: ""; display: block; width: 2px; height: 26px; margin: 10px auto 0; border-radius: 1px; background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, .85)); animation: drip 1.8s var(--ease) infinite; }
/* (down, towards the ground: the bright end first, its tail fading behind it) */
@keyframes drip { from { transform: translateY(-10px); opacity: 0; } 35% { opacity: 1; } to { transform: translateY(12px); opacity: 0; } }

/* the flight down: two lines on the way */
.fly { position: relative; height: 170vh; height: 170svh; }
.cap { position: absolute; left: var(--gut); right: var(--gut); text-align: center; }
.cap h2 { font-size: clamp(36px, 5.6vw, 76px); line-height: 1; text-shadow: 0 0 2px rgba(6, 4, 18, .55), 0 0 12px rgba(6, 4, 18, .45), 0 0 28px rgba(6, 4, 18, .35); }
.c1 { top: 22svh; }
.c2 { top: 84svh; }
.live { margin: 22px auto 0; max-width: 30em; font-size: clamp(16px, 1.4vw, 19px); color: var(--dim); text-shadow: 0 0 2px rgba(6, 4, 18, .55), 0 0 12px rgba(6, 4, 18, .45), 0 0 28px rgba(6, 4, 18, .35); }

/* the day, said: one stage that stays put; only the temperature, the clock and the sentence change */
.day { position: relative; height: calc((var(--beats, 5) - 1) * var(--step, .75) * 100vh + 100vh + 30vh); height: calc((var(--beats, 5) - 1) * var(--step, .75) * 100svh + 100svh + 30svh); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 0 var(--gut); text-shadow: 0 2px 40px rgba(4, 6, 16, .35); }
.where { display: flex; gap: 14px; align-items: center; line-height: 1; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.where .clock { font-weight: 600; letter-spacing: .06em; color: #fff; }
.temp { margin: 1svh 0 2svh -.04em; font-family: "NDot", monospace; font-size: min(30vw, 40svh); letter-spacing: -.02em; }

/* the rolling numbers: a window a figure tall, a wheel to each figure */
.roll { display: inline-flex; white-space: nowrap; }
.roll .measure { position: absolute; visibility: hidden; white-space: pre; }
.wheel { position: relative; display: inline-block; height: 1em; line-height: 1; overflow: hidden; overflow: visible clip; perspective: 4em; vertical-align: top; }
.wheel .face { position: absolute; left: 0; top: 0; line-height: 1; transform-origin: 50% 50% -.5em; backface-visibility: hidden; will-change: transform, opacity; }
.temp .wheel { height: 1.04em; }
.temp .wheel .face { top: .02em; }

/* the sentence: each letter rises in after the one before it, and lifts away the same way */
.lines { position: relative; max-width: 15em; font-size: clamp(30px, 4.6vw, 72px); line-height: 1.04; font-weight: 700; letter-spacing: -.04em; }
.line { position: absolute; inset: 0 0 auto 0; margin: 0; text-wrap: balance; pointer-events: none; }
.line .w { display: inline-block; white-space: nowrap; }
.line .l { display: inline-block; opacity: 0; transform: translate3d(0, .5em, 0); transition: opacity .5s cubic-bezier(.3, 0, .2, 1), transform .5s cubic-bezier(.3, 0, .2, 1); transition-delay: 0ms; }
.line.on .l { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(260ms + var(--d)); }
.line.off .l { opacity: 0; transform: translate3d(0, -.38em, 0); transition: opacity .42s cubic-bezier(.4, 0, .6, 1), transform .5s cubic-bezier(.5, 0, .75, 0); transition-delay: var(--o); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* the opening fades in once, whole */
#space, .bolt, .hero, .cue { opacity: 0; }

/* the app's icons in a line: the size of a capital, sitting on the line as the app sets them */
.line .l.ic { width: .92em; height: .92em; vertical-align: -.1em; }
.line .l.ic svg, .line .l.ic img { display: block; width: 100%; height: 100%; }
.line .l.ic svg { filter: drop-shadow(0 1px 4px rgba(5, 10, 25, .35)); }

/* the way back out: the night's line, centred, over the stars */
.out { position: relative; height: 1150vh; height: 1150svh; }
.outstage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; justify-content: center; padding: 0 var(--gut); }
.tonight { width: min(100%, 14em); margin: 0 auto; text-align: center; text-shadow: 0 2px 30px rgba(0, 0, 0, .6); }
.tonight .line { text-align: center; }


/* the cushions, then the page they leave */
.pillows { position: fixed; z-index: 20; inset: 0; width: 100vw; height: 100vh; height: 100lvh; pointer-events: none; visibility: hidden; }
.final { position: fixed; z-index: 21; inset: 0; display: flex; flex-direction: column; background: #fbfbfd; color: #111318; opacity: 0; visibility: hidden; transition: opacity .6s cubic-bezier(.2, .7, .2, 1), visibility 0s .6s; }
.final.on { opacity: 1; visibility: visible; transition: opacity .6s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
.final-in { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px 0; }
.app-icon { width: clamp(96px, 14vw, 132px); aspect-ratio: 1; border-radius: 23%; box-shadow: 0 18px 40px -18px rgba(20, 16, 60, .5); transform: scale(.94); transition: transform 1.1s cubic-bezier(.16, 1, .3, 1) .08s; }
.final h2 { margin-top: 26px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.035em; text-shadow: none; }
.final .get { margin-top: 18px; padding: 13px 26px; border-radius: 999px; background: #111318; color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; transition: transform .3s cubic-bezier(.2, .7, .2, 1), background .3s; }
.final .get:hover { background: #2a2e3a; transform: translateY(-1px); }
.final .soon { margin-top: 12px; font-size: 14px; font-weight: 500; color: #8a8e99; }
.final .for { margin-top: 18px; font-size: 15px; color: #8a8e99; }
.final-in > * { opacity: 0; transform: translateY(10px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.16, 1, .3, 1); }
.final.on .final-in > * { opacity: 1; transform: none; }
.final.on .final-in > :nth-child(1) { transition-delay: .1s; }
.final.on .final-in > :nth-child(2) { transition-delay: .2s; }
.final.on .final-in > :nth-child(3) { transition-delay: .28s; }
.final.on .final-in > :nth-child(4) { transition-delay: .36s; }
.legal { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px 24px calc(28px + env(safe-area-inset-bottom)); text-align: center; font-size: 12px; color: #9a9ea8; }
.legal nav { display: flex; gap: 22px; font-size: 14px; font-weight: 600; }
.legal nav a { color: #3a3e48; text-decoration: none; }
.legal nav a:hover { color: #000; }
.legal p { max-width: 46em; }
.legal .made { font-size: 13px; font-weight: 600; color: #3a3e48; }
.legal p a { color: inherit; }

/* the words rise in */
.js .cap { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .seen { opacity: 1 !important; transform: none !important; }

a:focus-visible { outline: 2px solid var(--w); outline-offset: 2px; }

@media (max-width: 899px) {
  .bar nav { gap: 16px; font-size: 14px; }
  .c2 { top: 86svh; }
  .where { font-size: 11px; }
  .temp { font-size: min(44vw, 30svh); }
  .lines { font-size: clamp(28px, 8.2vw, 44px); }
}
@media (prefers-reduced-motion: reduce) {
  .js .cap { opacity: 1; transform: none; transition: none; }
  .pin i::after, .cue::after { animation: none; }
}
