@font-face {
  font-family: "Noto Sans Armenian";
  src: url("fonts/noto-sans-armenian-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020, U+00A0, U+0530-058F, U+FB13-FB17;
}

:root {
  --cream: #F8F0DF;
  --navy: #0B1F38;
  --anthracite: #383E42;
  --focus: #2C66D8;
  color-scheme: light;
}

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

html { background: var(--cream); }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: var(--cream);
  color: var(--navy);
  font-family: "Noto Sans Armenian", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 16px;
}

.logo {
  width: clamp(220px, 28vw, 380px);
  margin: 0 0 clamp(40px, 7vh, 72px);
  line-height: 0;
}

.logo svg { display: block; width: 100%; height: auto; }

.message {
  margin: 0;
  font-weight: 600;
  font-size: clamp(1.5rem, 0.95rem + 2.3vw, 2.5rem);
  line-height: 1.3;
  text-wrap: balance;
}

.message span { display: block; }

.email {
  margin-top: clamp(24px, 4vh, 36px);
  padding: 4px 2px;
  border-radius: 4px;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  color: var(--anthracite);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
  text-decoration-color: rgba(56, 62, 66, 0.45);
  transition: color 0.15s, text-decoration-color 0.15s;
}

.email:hover { color: var(--navy); text-decoration-color: currentColor; }
.email:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

/* One page-load moment: the diameter line is drawn, then the S-T-E-A-M columns rise from it in order. */
@media (prefers-reduced-motion: no-preference) {
  .logo .diameter { transform-box: fill-box; transform-origin: center; animation: draw 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .logo .col { transform-box: fill-box; animation: rise 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .logo .c1 { animation-delay: 0.30s; }
  .logo .c2 { animation-delay: 0.40s; }
  .logo .c3 { animation-delay: 0.50s; }
  .logo .c4 { animation-delay: 0.60s; }
  .logo .c5 { animation-delay: 0.70s; }
  .logo .name { animation: appear 0.5s ease-out 1.0s both; }
  .message, .email { animation: appear 0.6s ease-out 1.2s both; }
}

@keyframes draw { from { transform: scaleX(0); } }
@keyframes rise { from { transform: translateY(104%); } }  /* a little past 100% so no 1 px sliver shows above the line */
@keyframes appear { from { opacity: 0; } }
