/* Vixu — static landing page.
   One structural idea: V, X and U share the same diagonal stroke. The angle of
   the favicon's V (61deg off horizontal) sets the background hatch, so the
   page geometry is derived from the letterforms rather than applied to them. */

:root {
  --ground:  #eef0f4;   /* cool porcelain */
  --ink:     #10151f;   /* near-black navy */
  --muted:   #5c6472;
  --line:    #c9cfda;
  --accent:  #333fe0;   /* electric indigo, used once */

  --hatch-angle: 61deg;
  --hatch-gap: 26px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --pad: clamp(1.25rem, 4vw, 3rem);
  --track: 0.24em;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0b0e14;
    --ink:    #e8ebf0;
    --muted:  #838c9c;
    --line:   #232a38;
    --accent: #7c85ff;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100svh;
  margin: 0;
  padding: var(--pad);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--pad);
  overflow-x: hidden;

  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

/* Diagonal field, derived from the V. Faded away from the centre so the
   wordmark always sits on clean ground. */
.field {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(
    var(--hatch-angle),
    transparent 0 calc(var(--hatch-gap) - 1px),
    var(--line) calc(var(--hatch-gap) - 1px) var(--hatch-gap)
  );
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 50%, transparent 30%, #000 100%);
          mask-image: radial-gradient(120% 90% at 50% 50%, transparent 30%, #000 100%);
}

.rail {
  display: flex;
  justify-content: flex-start;
}

.meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The colophon carries a sentence rather than a label, so it gets extra leading
   for the second line it wraps onto on narrow screens. */
.colophon {
  line-height: 1.8;
}

.attrib {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.attrib:hover,
.attrib:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.stage {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.mark {
  margin: 0;
  /* Trailing letter-space is trimmed so the word stays optically centred. */
  margin-inline-end: calc(var(--track) * -1);
  font-size: clamp(3.25rem, 17vw, 10.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--ink);
}

.rule {
  width: clamp(112px, 26vw, 300px);
  height: 1px;
  background: var(--accent);
  transform: scaleX(1);
}

.status {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Narrow screens: tracking is dialled back so the mark keeps its presence
   without becoming a thin scattered line. */
@media (max-width: 30rem) {
  :root { --track: 0.14em; --hatch-gap: 18px; }
  .mark { font-weight: 350; }
  .status { font-size: 0.68rem; }
  .colophon { letter-spacing: 0.1em; line-height: 1.8; }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Page-load sequence: the mark settles, the rule draws, the status arrives. */
@media (prefers-reduced-motion: no-preference) {
  .mark,
  .status { animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards; }

  .mark   { animation-delay: 0.05s; }
  .status { animation-delay: 0.5s; }

  .rule {
    transform-origin: 50% 50%;
    animation: draw 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s backwards;
  }

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

  @keyframes draw {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
  }
}
