/* Colours mirror brand/tokens.css. The --c-* hex values feed the canvas. */
:root {
  --ground: oklch(0.962 0.004 120);
  --ink: oklch(0.26 0.03 258);
  --muted: oklch(0.52 0.02 258);
  --accent: oklch(0.47 0.16 22);
  --c-ground: #F3F4F2;
  --c-ink: #1E2838;
  --c-planet-hi: #56647E;
  --c-planet-lo: #161E2B;
  --c-red: #A82A2E;
  --c-red-hi: #D2585B;
  --c-red-lo: #6E1519;
  --font: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: oklch(0.18 0.02 258);
    --ink: oklch(0.94 0.008 250);
    --muted: oklch(0.7 0.015 255);
    --accent: oklch(0.6 0.17 22);
    --c-ground: #111822;
    --c-ink: #E6EBF2;
    --c-planet-hi: #F4F7FB;
    --c-planet-lo: #7E8BA0;
    --c-red: #D9474C;
    --c-red-hi: #F08A8C;
    --c-red-lo: #9C2A2E;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

.stage {
  position: relative;
  min-height: 100%;
  overflow: clip;
  display: grid;
  align-content: end;
  padding-inline: clamp(16px, 5vw, 72px);
  padding-block: clamp(32px, 6vw, 72px);
}

#sky {
  position: absolute;
  inset: 0;
  display: block;
  cursor: grab;
  touch-action: none;
}
#sky.dragging { cursor: grabbing; }
#sky.pointing { cursor: pointer; }
#sky:focus { outline: none; }
#sky:focus-visible { outline: 2px solid var(--accent); outline-offset: -8px; }

/* The words sit above the canvas but never block a drag. */
.id {
  position: relative;
  display: grid;
  justify-items: start;
  pointer-events: none;
}
.word {
  margin: 0;
  display: flex;
  font-weight: 500;
  font-size: clamp(52px, 9vw, 116px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.word span {
  display: inline-block;
  animation: rise 1.1s var(--ease-expo) backwards;
  animation-delay: 500ms;
}
.word span:nth-child(2) { animation-delay: 570ms; }
.word span:nth-child(3) { animation-delay: 640ms; }
.word span:nth-child(4) { animation-delay: 710ms; }
.word span:nth-child(5) { animation-delay: 780ms; }
.word span:nth-child(6) { animation-delay: 850ms; }
.cyr {
  margin: 8px 0 0;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--muted);
  animation: fade 0.9s var(--ease-expo) 1.05s backwards;
}
.soon {
  margin: clamp(22px, 3vw, 34px) 0 0;
  font-weight: 500;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.3;
  animation: fade 0.9s var(--ease-expo) 1.3s backwards;
}

.contact {
  margin-top: 10px;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.3;
  color: var(--muted);
  text-decoration: none;
  pointer-events: auto; /* the words above ignore the pointer; the address must not */
  animation: fade 0.9s var(--ease-expo) 1.5s backwards;
}
.contact:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.contact:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

@keyframes rise { from { opacity: 0; transform: translateY(0.45em); } }
@keyframes fade { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .word span, .cyr, .soon, .contact { animation: fade 0.4s ease backwards; }
}
