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

body {
  margin: 0;
  font: 1rem/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* The construction page: a dark stage, drifting aurora, one line of type. */

.construction {
  --stage: #07141b;
  --glow-1: #0f7d63;
  --glow-2: #2fd3a3;
  --glow-3: #0b5e7a;
  --glow-4: #7be3c4;

  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  overflow: hidden;
  color: #eaf6f2;
  background: var(--stage);
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  filter: blur(70px) saturate(140%);
  pointer-events: none;
}

.aurora__blob {
  position: absolute;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  opacity: 0.55;
  mix-blend-mode: screen;
  animation: aurora-drift 22s ease-in-out infinite alternate;
}

.aurora__blob:nth-child(1) { background: var(--glow-1); top: -20vmax; left: -15vmax; }
.aurora__blob:nth-child(2) { background: var(--glow-2); top: 10vmax; right: -25vmax; opacity: 0.35; animation-duration: 28s; animation-delay: -6s; }
.aurora__blob:nth-child(3) { background: var(--glow-3); bottom: -25vmax; left: 10vmax; animation-duration: 32s; animation-delay: -12s; }
.aurora__blob:nth-child(4) { background: var(--glow-4); top: 30%; left: 35%; width: 30vmax; height: 30vmax; opacity: 0.2; animation-duration: 18s; animation-delay: -3s; }

@keyframes aurora-drift {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  50% { transform: translate3d(8vmax, -6vmax, 0) scale(1.15) rotate(40deg); }
  100% { transform: translate3d(-6vmax, 7vmax, 0) scale(0.9) rotate(-30deg); }
}

.construction__locales {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  z-index: 2;
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: rgb(234 246 242 / 0.6);
}

.construction__locales a { color: inherit; text-decoration: none; }
.construction__locales a:hover, .construction__locales a:focus-visible { color: #fff; }
.construction__locales [aria-current] { color: #fff; }

.construction__stage {
  position: relative;
  z-index: 1;
  max-width: 44rem;
  margin: 0;
  padding: 3rem 1.25rem;
  text-align: center;
  overflow-wrap: anywhere;
}

.construction__mark,
.construction__title,
.construction__bar {
  opacity: 0;
  animation: construction-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.construction__mark {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--glow-2);
}

.construction__title {
  margin: 0 0 2.5rem;
  font-size: clamp(2.5rem, 9vw, 5.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  background: linear-gradient(100deg, #eaf6f2 20%, var(--glow-4) 40%, #eaf6f2 60%) 0 0 / 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: construction-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.15s forwards,
             construction-sheen 6s ease-in-out 1.2s infinite;
}

.construction__bar {
  position: relative;
  width: min(14rem, 60vw);
  height: 3px;
  margin-inline: auto;
  overflow: hidden;
  border-radius: 3px;
  background: rgb(234 246 242 / 0.12);
  animation-delay: 0.45s;
}

.construction__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--glow-2), transparent);
  animation: construction-scan 2.2s ease-in-out infinite;
}

@keyframes construction-rise {
  from { opacity: 0; transform: translateY(1.25rem); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes construction-sheen {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0 0; }
}

@keyframes construction-scan {
  from { transform: translateX(-100%); }
  to { transform: translateX(250%); }
}

@media (prefers-reduced-motion: reduce) {
  .aurora__blob,
  .construction__bar span { animation: none; }

  .construction__mark,
  .construction__title,
  .construction__bar { animation: none; opacity: 1; }
}

.construction__home { color: rgb(234 246 242 / 0.72); }
.construction__home:hover, .construction__home:focus-visible { color: #fff; }
