/* datryllic.com — single holding page
   Logo, a word, and a faint triangular lattice that echoes the mark.
   No build step: this is the whole stylesheet. */

/* ---------- Lato (SIL OFL 1.1, see assets/fonts/LICENSE.txt) ---------- */

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/lato-300-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/lato-300-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */

:root {
  --blue: #0a7aba; /* brand primary */
  --blue-ink: #06679f; /* 6.1:1 on white — safe for small text */
  --blue-light: #34abe2;
  --navy: #22284c;
  --crimson: #d0174a;
  --field: #f5f7fa; /* page background */
  --track: rgba(10, 122, 186, 0.14);
}

/* The logo's lower facets are navy-on-transparent and vanish on a dark field,
   so the page stays light regardless of the viewer's colour scheme. */
html {
  color-scheme: light;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  font-family: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 300;
  color: var(--navy);
  background: var(--field);
  overflow-x: hidden;
}

/* Triangular lattice tile (56px edge), echoing the mark's facets; faded out
   towards the edges so the page reads as a single lit point. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97'%3E%3Cpath d='M0 24.25H56M0 72.75H56M-14 0 42 97M42 0 98 97M14 0-42 97M70 0 14 97' stroke='%230a7aba' stroke-opacity='.09' fill='none'/%3E%3C/svg%3E")
      center / 56px 97px,
    radial-gradient(ellipse at 50% 45%, #ffffff 0%, var(--field) 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 0%, transparent 100%);
}

/* ---------- the page ---------- */

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 4vw, 2.25rem);
  text-align: center;
}

.stage h1 {
  margin: 0;
  line-height: 0;
}

.stage__logo {
  display: block;
  width: min(520px, 86vw);
  height: auto;
  animation: settle 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  animation: settle 1.6s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.status__word {
  margin: 0;
  font-size: clamp(0.95rem, 0.8rem + 1vw, 1.35rem);
  letter-spacing: 0.62em;
  /* letter-spacing trails the last glyph; pull it back so the word centres */
  margin-right: -0.62em;
  text-transform: lowercase;
  color: var(--blue-ink);
}

/* Crimson node, after the red vertices in the mark. */
.status__word::after {
  content: "";
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-left: 0.1em;
  border-radius: 50%;
  background: var(--crimson);
  vertical-align: 0.05em;
  animation: pulse 1.4s ease-in-out infinite;
}

/* Indeterminate track: a short blue-to-crimson segment sweeping across. */
.status__track {
  position: relative;
  width: min(280px, 64vw);
  height: 1px;
  overflow: hidden;
  background: var(--track);
}

.status__track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 35%;
  background: linear-gradient(90deg, transparent, var(--blue-light) 40%, var(--crimson) 100%);
  animation: sweep 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(0.7); }
}

@keyframes sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(290%); }
}

@media (prefers-reduced-motion: reduce) {
  .stage__logo,
  .status,
  .status__word::after,
  .status__track::after {
    animation: none;
  }
  .status__track::after {
    left: 32%;
  }
}
