:root {
  --green: #14352a;
  --green-deep: #0c241b;
  --gold: #c8a457;
  --gold-soft: #d8bb7f;
  --ivory: #efe7d6;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  background:
    radial-gradient(120% 100% at 50% 38%, #1b4536 0%, var(--green) 46%, var(--green-deep) 100%);
  color: var(--ivory);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8vh 6vw;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.monogram {
  width: clamp(210px, 40vmin, 400px);
  height: auto;
  filter: drop-shadow(0 2px 20px rgba(0, 0, 0, 0.28));
}

.ring {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.6;
  opacity: 0.9;
}

.ring.inner {
  stroke-width: 0.8;
  opacity: 0.4;
}

.domain {
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(30px, 9vh, 84px);
  text-align: center;
  text-decoration: none;
  color: var(--gold-soft);
  font-size: clamp(11px, 1.5vw, 14px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  padding-left: 0.34em; /* balance the trailing letter-space */
  opacity: 0;
  animation: fadeUp 1.1s ease 1.5s forwards;
}

.domain::before {
  content: "";
  display: block;
  width: 30px;
  height: 1px;
  margin: 0 auto 16px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.75;
}

/* draw-in */
.draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.3s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

.letters .draw:nth-child(1) { animation-delay: 0.05s; }
.letters .draw:nth-child(2) { animation-delay: 0.2s; }
.letters .draw:nth-child(3) { animation-delay: 0.35s; }
.letters .draw:nth-child(4) { animation-delay: 0.5s; }
.letters .draw:nth-child(5) { animation-delay: 0.65s; }
.letters .draw:nth-child(6) { animation-delay: 0.8s; }
.letters .draw:nth-child(7) { animation-delay: 0.9s; }
.letters .draw:nth-child(8) { animation-delay: 0.95s; }
.letters .draw:nth-child(9) { animation-delay: 1s; }
.letters .draw:nth-child(10) { animation-delay: 1.05s; }

.ring.draw {
  animation-delay: 1.1s;
}
.ring.inner.draw {
  animation-delay: 1.25s;
}

.dot {
  opacity: 0;
  animation: dotIn 0.5s ease forwards;
  animation-delay: 0.95s;
}
.dot:nth-child(2) { animation-delay: 1s; }
.dot:nth-child(3) { animation-delay: 1.05s; }
.dot:nth-child(4) { animation-delay: 1.1s; }
.dot:nth-child(5) { animation-delay: 0.75s; }

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes dotIn {
  from {
    opacity: 0;
    transform: scale(0.4);
    transform-origin: center;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 0.92;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .draw {
    animation: none;
    stroke-dashoffset: 0;
  }
  .domain {
    animation: none;
    opacity: 0.92;
  }
}
