/* Vodentix holding page.
   The same palette and type as the Front Desk sign-in screen, so this reads
   as the same product rather than a placeholder someone else made. */

:root {
  --canvas: #f7f6f2; /* warm, never grey — the whole identity rests on this */
  --ink: #14161a;
  --ink-soft: #5b6068;
  --ink-faint: #9aa0a8;
  --line: #ebe9e4;
  --accent: #0d5c55;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --overshoot: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------------------------------------------------------------- stage */

.stage {
  min-height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 32px 24px 96px; /* bottom room so the loader never crowds the mark */
  text-align: center;
}

/* ------------------------------------------------------------- wordmark */

.wordmark {
  display: flex;
  align-items: baseline;
  margin: 0;
  font-size: clamp(2.5rem, 11vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1;
  color: var(--ink);
}

.wordmark span {
  display: inline-block;
  opacity: 0;
  animation: letter-rise 0.62s var(--ease) forwards;
  animation-delay: calc(var(--i) * 55ms);
}

@keyframes letter-rise {
  from {
    opacity: 0;
    transform: translateY(0.28em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* The dot lands last, a beat after the word finishes setting itself. */
.dot {
  width: 0.11em;
  height: 0.11em;
  margin-left: 0.06em;
  border-radius: 999px;
  background: var(--accent);
  align-self: flex-end;
  margin-bottom: 0.1em;
  opacity: 0;
  animation: dot-land 0.5s var(--overshoot) forwards;
  animation-delay: 560ms;
}

@keyframes dot-land {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ------------------------------------------------------------ signature */

.signature {
  margin: 1.35rem 0 0;
  font-size: clamp(0.66rem, 1.7vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  /* the tracking adds a phantom gap after the last letter; pull it back so
     the line sits optically centred under the mark */
  text-indent: 0.34em;
  color: var(--ink-faint);
  opacity: 0;
  animation: signature-in 0.9s var(--ease) forwards;
  animation-delay: 780ms;
}

@keyframes signature-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------- loader */

.loader {
  position: fixed;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--line);
  overflow: hidden;
  opacity: 0;
  animation: loader-in 0.6s var(--ease) forwards;
  animation-delay: 1s;
}

@keyframes loader-in {
  to {
    opacity: 1;
  }
}

.loader-run {
  position: absolute;
  inset: 0 auto 0 0;
  width: 32%;
  background: linear-gradient(90deg, transparent, var(--accent) 45%, var(--accent) 55%, transparent);
  animation: loader-sweep 2.4s var(--ease) infinite;
}

@keyframes loader-sweep {
  0% {
    transform: translateX(-105%);
  }
  100% {
    transform: translateX(420%);
  }
}

/* ----------------------------------------------------------- reduced motion
   Someone who has asked their machine to stop moving things should get the
   finished page, not a stripped one. Everything sits where it lands. */

@media (prefers-reduced-motion: reduce) {
  .wordmark span,
  .dot,
  .signature,
  .loader {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .loader-run {
    animation: none;
    width: 100%;
    background: var(--line);
  }
}
