/* orbiqapp.com. Tokens follow design-system/tokens.json: beige by day, night
   when the system is dark. One motif, the mark's striped ring: it sits beside
   the headline, its moon orbits, and six lanes sweep the foot of the hero.
   No shadows, no gradients, no JavaScript. */

@font-face { font-family: "Archivo"; font-weight: 400; font-display: swap; src: url("fonts/Archivo-Regular.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 500; font-display: swap; src: url("fonts/Archivo-Medium.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-weight: 700; font-display: swap; src: url("fonts/Archivo-Bold.woff2") format("woff2"); }

:root {
  color-scheme: light dark;
  --ground: #ece2d0;
  --raised: #f6f0e4;
  --ink: #1a1a1a;
  --ink-muted: #5f584e;
  --night: #1a1a1a;
  --on-night: #ece2d0;
  --flare: #ff5600;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: 48px;
  --page: 1440px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #141414;
    --raised: #1e1d1b;
    --ink: #ece2d0;
    --ink-muted: #aba293;
    --night: #ece2d0;
    --on-night: #141414;
  }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
svg { display: block; }
a { color: var(--ink); }
:where(a, button):focus-visible { outline: 3px solid var(--flare); outline-offset: 3px; }
p, h1 { margin: 0; }

.wrap { max-width: var(--page); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.row { display: flex; align-items: center; gap: 28px; }

.skip { position: absolute; left: var(--gutter); top: -80px; background: var(--night); color: var(--on-night); padding: 10px 14px; text-decoration: none; z-index: 10; }
.skip:focus { top: 12px; }

/* Top */
.top { position: absolute; inset: 0 0 auto 0; padding-top: 28px; z-index: 3; }
.tag { display: inline-flex; align-items: center; gap: 8px; background: var(--night); color: var(--on-night); padding: 4px 10px 4px 8px; font-weight: 700; font-size: 16px; line-height: 1.3; text-decoration: none; }
.tag svg { width: 16px; height: 16px; }
.toplink { font-size: 17px; font-weight: 500; text-decoration: none; }
.toplink:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.hero { position: relative; min-height: 92svh; display: flex; align-items: center; overflow: hidden; padding: 120px 0 96px; }
.hero-grid { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 48px; align-items: center; }
.copy { display: flex; flex-direction: column; gap: 32px; }
h1 { font-size: clamp(64px, 7.4vw, 116px); font-weight: 700; letter-spacing: -0.03em; line-height: 0.92; }
.lede { font-size: 19px; max-width: 30em; }
.btn { display: inline-flex; align-items: center; gap: 14px; background: var(--ink); color: var(--ground); font-weight: 700; font-size: 18px; line-height: 1; padding: 20px 28px; text-decoration: none; transition: transform 160ms var(--ease-out); }
.btn .moon { width: 10px; height: 10px; background: var(--flare); flex: none; }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--flare); color: #1a1a1a; }
  .btn:hover .moon { background: #1a1a1a; }
}

.mark-wrap { justify-self: end; width: min(100%, 520px); }
.mark { width: 100%; height: auto; }
.planet { fill: var(--ink); }
.moon.still { display: none; }

/* The lanes: six stripes rising steeply behind the mark. Never under text. */
.lanes { position: absolute; top: -30%; bottom: -30%; right: calc(var(--gutter) + 170px); width: 180px; z-index: 1; display: flex; transform: rotate(32deg); pointer-events: none; }
.lanes i { display: block; flex: 1; }
.l1 { background: #d00000; } .l2 { background: #ff5600; } .l3 { background: #ffea00; }
.l4 { background: #75b8dd; } .l5 { background: #0093ed; } .l6 { background: #c82451; }

/* Join: the whole band is the link, in night. */
.join { display: block; position: relative; background: var(--night); color: var(--on-night); height: clamp(420px, 62vh, 600px); text-decoration: none; overflow: hidden; }
.join .what, .join .arrow, .join .word { position: absolute; z-index: 1; }
.join .what { left: var(--gutter); top: 72px; font-size: 20px; line-height: 1.4; max-width: 26em; padding-right: 96px; }
.join .arrow { right: var(--gutter); top: 72px; width: 48px; height: 48px; transition: transform 200ms var(--ease-out); }
.join .word { left: var(--gutter); right: var(--gutter); bottom: -0.04em; font-size: clamp(120px, 24vw, 360px); font-weight: 700; letter-spacing: -0.06em; line-height: 0.8; text-align: center; transition: color 200ms ease; }
.join:hover .word, .join:focus-visible .word { color: var(--flare); }
.join:focus-visible { outline: 0; }
.join:hover .arrow { transform: translate(4px, -4px); }
.join:active .word { transform: scale(0.99); }

/* Foot */
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 32px; padding-bottom: 32px; font-size: 15px; }

/* Motion. Entrances once on load, then only the moon moves. */
.rise { opacity: 0; transform: translateY(24px); animation: rise 600ms var(--ease-out) forwards; }
.rise.d1 { animation-delay: 90ms; }
.rise.d2 { animation-delay: 180ms; }
@keyframes rise { to { opacity: 1; transform: none; } }
.mark-wrap { opacity: 0; transform: translateX(64px); animation: arrive 700ms var(--ease-out) 120ms forwards; }
@keyframes arrive { to { opacity: 1; transform: none; } }
.lanes i { transform: translateY(104%); animation: slide 1100ms var(--ease-out) forwards; }
.l1 { animation-delay: 0ms; } .l2 { animation-delay: 70ms; } .l3 { animation-delay: 140ms; }
.l4 { animation-delay: 210ms; } .l5 { animation-delay: 280ms; } .l6 { animation-delay: 350ms; }
@keyframes slide { to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .rise, .mark-wrap, .lanes i { animation: none; opacity: 1; transform: none; }
  .orbit { display: none; }
  .moon.still { display: block; }
  .join .arrow, .btn { transition: none; }
}

/* Phone */
@media (max-width: 900px) {
  .hero { padding: 110px 0 64px; align-items: flex-start; min-height: 0; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  h1 { font-size: 15vw; }
  .lede { font-size: 16px; }
  .copy { gap: 20px; }
  .mark-wrap { justify-self: center; width: min(78vw, 360px); }
  .lanes { right: auto; left: calc(50% - 66px); width: 132px; top: 30%; bottom: -40%; transform: rotate(40deg); }
  .join { height: 420px; }
  .join .what { top: 48px; font-size: 17px; padding-right: 56px; }
  .join .arrow { top: 48px; width: 32px; height: 32px; }
  .join .word { font-size: 30vw; }
  .foot { flex-direction: column; align-items: flex-start; }
}
