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

:root {
  --color-text:    rgba(218, 240, 255, 0.94);
  --color-dim:     rgba(148, 205, 228, 0.65);
  --color-accent:  rgba(82, 212, 228, 0.88);
  --color-divider: rgba(95, 185, 218, 0.20);
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-wordmark: 'Raleway', system-ui, sans-serif;
  --font-body:     'DM Sans', system-ui, sans-serif;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
}

canvas#canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  animation: canvasFadeIn 2.0s ease-out forwards;
}

@keyframes canvasFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- Overlay ---- */

.overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 10;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.55rem, 1.4vh, 0.95rem);
  text-align: center;
  padding: 2rem;
  max-width: min(90vw, 700px);
}

.divider {
  width: clamp(36px, 7vw, 72px);
  height: 1px;
  background: var(--color-divider);
  flex-shrink: 0;
}

.wordmark {
  font-family: var(--font-wordmark);
  font-weight: 100;
  font-size: clamp(2.8rem, 8vw, 7rem);
  letter-spacing: clamp(0.22em, 0.42em, 0.42em);
  padding-left: clamp(0.22em, 0.42em, 0.42em);
  color: var(--color-text);
  text-transform: uppercase;
  line-height: 1;
  text-shadow:
    0 0 80px rgba(80, 190, 255, 0.22),
    0 2px 40px rgba(0, 50, 110, 0.55);
}

.wave-ornament {
  color: var(--color-accent);
  display: flex;
  align-items: center;
  opacity: 0.75;
  margin: 0.15rem 0;
}

.tagline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.60rem, 1.55vw, 0.88rem);
  letter-spacing: 0.28em;
  padding-left: 0.28em;
  color: var(--color-dim);
  text-transform: uppercase;
}

.poetic {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1rem, 2.3vw, 1.38rem);
  color: var(--color-text);
  opacity: 0.82;
  line-height: 1.6;
  margin: 0.5rem 0;
}

.address {
  position: absolute;
  bottom: clamp(0.6rem, 1.4vh, 1rem);
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.48rem, 0.95vw, 0.62rem);
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.60);
  white-space: nowrap;
}

/* ---- Entrance animation ---- */

.animate {
  opacity: 0;
  animation: fadeIn 2.5s cubic-bezier(0.22, 0.44, 0.45, 0.94) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* ---- Responsive ---- */

@media (max-width: 480px) {
  .wordmark {
    letter-spacing: 0.18em;
    padding-left: 0.18em;
  }
  .tagline {
    letter-spacing: 0.18em;
    padding-left: 0.18em;
    font-size: 0.68rem;
  }
  .poetic {
    font-size: 1.05rem;
  }
}

/* ---- Reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
  .animate {
    animation: none;
    opacity: 1;
  }
}

/* ---- noscript fallback ---- */

.noscript-fallback {
  position: fixed;
  inset: 0;
  background: linear-gradient(to top, #010F24 0%, #062D54 55%, #1E7EB8 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  color: rgba(218, 240, 255, 0.9);
  font-family: Georgia, serif;
  text-align: center;
  padding: 2rem;
}

.noscript-fallback h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
}

.noscript-fallback p {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.65;
  font-family: system-ui, sans-serif;
  font-weight: 300;
}

.noscript-fallback .small {
  font-size: 0.70rem;
  letter-spacing: 0.38em;
  opacity: 0.45;
}
