/* Night colours and Sora, from the brand folder (C:\GIT\tiphys-business\brand\mintaka). */
@font-face {
  font-family: "Sora";
  src: url("/fonts/Sora-wght.ttf") format("truetype");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --ground: #0A0D16;
  --text: #E6EAF0;
  --muted: rgba(230, 234, 240, 0.62);
  --accent: #F472B6;
}

html, body { margin: 0; background: var(--ground); color: var(--text); }
body { font-family: "Sora", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* The stage fills the window. The motion draws a 16:9 frame (1600 x 900 units) fitted inside it and
   centred, with the logo 1080 units wide and about 230 high at its centre. --u is one frame unit. */
.stage {
  position: relative;
  height: 100vh; height: 100dvh; min-height: 22rem;
  overflow: hidden;
  container-type: size;
}
.stage > * { --u: min(100cqw / 1600, 100cqh / 900); }

.stage canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: none; touch-action: pan-y;
}
.still {
  position: absolute; left: 50%; top: 50%;
  width: calc(1080 * var(--u)); height: auto;
  transform: translate(-50%, -50%);
}
.motion .stage canvas { display: block; }
.motion .still { display: none; }

.words {
  position: absolute; left: 0; right: 0;
  top: calc(50% + 115 * var(--u) + clamp(16px, 3.5cqh, 40px));
  padding: 0 16px;
  text-align: center;
  pointer-events: none;
  transition: opacity 0.9s ease;
}
.motion .words { opacity: 0; }
.motion.ready .words { opacity: 1; }
.words p { margin: 0; }
.words a { pointer-events: auto; }

.line {
  font-weight: 600;
  font-size: clamp(1.25rem, 44 * var(--u), 2.5rem);
  letter-spacing: -0.01em;
}
.soon {
  margin-top: 0.6em !important;
  color: var(--muted);
  font-weight: 400;
  font-size: clamp(0.9375rem, 22 * var(--u), 1.25rem);
  letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
  .words { transition: none; }
}
