:root {
  --ink: #0d3650;
  --bg-wash-1: #f6f7f8;
  --bg-wash-2: #ffffff;
  --muted: #6b7278;
  --si-a: #7c858c;
  --si-b: #c7ccd0;
  --si-c: #9aa2a8;
  --si-d: #dde1e4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e7f3f1;
    --bg-wash-1: #1a1c1e;
    --bg-wash-2: #0c0d0e;
    --muted: #9aa1a6;
    --si-a: #6e767c;
    --si-b: #c9ced2;
    --si-c: #898f94;
    --si-d: #eef1f3;
  }
}
* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* white, shades of gray only -- no color tint */
  background: radial-gradient(ellipse 70% 55% at 50% 38%, var(--bg-wash-1), var(--bg-wash-2) 70%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px;
  text-align: center;
}
.mark {
  width: 160px;
  height: 160px;
  display: block;
  margin: 0 auto;
  animation: rise 0.9s cubic-bezier(.2,.8,.2,1) both;
}
.name {
  margin: 20px 0 0;
  font-size: 1.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  animation: rise 0.9s 0.12s cubic-bezier(.2,.8,.2,1) both;
  /* "high-purity silicon" colour: a brushed-metal silver gradient, swept for a glitter/shine effect */
  background-image: linear-gradient(100deg,
    var(--si-a) 0%, var(--si-b) 22%, var(--si-c) 38%,
    var(--si-d) 50%, var(--si-c) 62%, var(--si-b) 78%, var(--si-a) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--si-c);
  -webkit-text-fill-color: transparent;
  animation: rise 0.9s 0.12s cubic-bezier(.2,.8,.2,1) both, shimmer 4s linear 1s infinite;
}
.name-wrap {
  position: relative;
  display: inline-block;
}
.wave {
  position: absolute;
  right: -2px;
  bottom: -10px;
  width: 42px;
  height: 13px;
  pointer-events: none;
}
.wave path {
  fill: none;
  stroke: var(--si-c);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 64;
  stroke-dashoffset: 64;
  opacity: 0;
  animation: wave-draw 4s linear 1s infinite;
}
footer {
  padding: 20px 24px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
footer a {
  color: inherit;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  from { background-position: 0% 0%; }
  to { background-position: -250% 0%; }
}
/* a small FPGA/logic-analyzer-style square wave, phase-locked to the shimmer's own 4s/1s
   cycle: hidden for the first 3/4 of each pass, snaps on exactly at the 75% mark (25%
   before the shimmer completes), draws across the final quarter, is fully formed right as
   the shimmer's pass ends, then disappears instantly as the next cycle begins -- a digital
   on/off, not a fade, to match the signal-trace idea */
@keyframes wave-draw {
  0%, 74.9% { opacity: 0; stroke-dashoffset: 64; }
  75% { opacity: 1; stroke-dashoffset: 64; }
  100% { opacity: 1; stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .mark, .name, .wave path { animation: none; }
}
