:root {
  --paper: #e8e2d5;
  --ink: #222622;
  --muted: #6e7169;
  --line: rgba(34, 38, 34, 0.18);
  --accent: #c86642;
  --card: rgba(239, 235, 225, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.maintenance-shell {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(1rem, 3vw, 2.5rem);
  background:
    linear-gradient(rgba(34, 38, 34, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 38, 34, 0.045) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
}

.maintenance-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.23;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.25'/%3E%3C/svg%3E");
  z-index: 5;
}

.ambient {
  position: absolute;
  border: 1px solid var(--line);
  border-radius: 50%;
  pointer-events: none;
}

.ambient-one {
  width: min(58vw, 46rem);
  aspect-ratio: 1;
  top: -34vw;
  right: -12vw;
  animation: drift 14s ease-in-out infinite alternate;
}

.ambient-two {
  width: min(28vw, 22rem);
  aspect-ratio: 1;
  bottom: -12vw;
  left: -8vw;
  background: rgba(200, 102, 66, 0.08);
  animation: drift 11s ease-in-out infinite alternate-reverse;
}

.maintenance-card {
  position: relative;
  width: min(100%, 72rem);
  min-height: min(42rem, calc(100svh - 5rem));
  display: grid;
  grid-template-rows: auto 1fr auto;
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 80px rgba(49, 47, 40, 0.1);
  z-index: 2;
  animation: arrive 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.status-bar,
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.25rem 1.5rem;
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-bar {
  border-bottom: 1px solid var(--line);
}

.wordmark {
  color: inherit;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.16em;
}

.wordmark span {
  color: var(--accent);
}

.status {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
}

.status-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(200, 102, 66, 0.45);
  animation: pulse 2.2s infinite;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(5rem, 0.38fr) minmax(0, 1.62fr);
}

.number-mark {
  display: flex;
  align-items: flex-end;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-right: 1px solid var(--line);
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
}

.message {
  align-self: center;
  padding: clamp(3rem, 8vw, 7.5rem) clamp(1.5rem, 7vw, 6rem);
}

.eyebrow {
  margin: 0 0 1.5rem;
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  animation: reveal 700ms 250ms both;
}

h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(3.25rem, 8.4vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.87;
  animation: reveal 800ms 350ms both;
}

.intro {
  max-width: 34rem;
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.5vw, 1.08rem);
  line-height: 1.75;
  animation: reveal 800ms 470ms both;
}

.footer-bar {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-bar p {
  margin: 0;
  white-space: nowrap;
}

.progress-track {
  height: 1px;
  flex: 1;
  overflow: hidden;
  background: var(--line);
}

.progress-track span {
  display: block;
  width: 38%;
  height: 100%;
  background: var(--accent);
  animation: progress 2.8s ease-in-out infinite;
}

@keyframes arrive {
  from { opacity: 0; transform: translateY(18px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes reveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  70% { box-shadow: 0 0 0 0.5rem rgba(200, 102, 66, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 102, 66, 0); }
}

@keyframes progress {
  0% { transform: translateX(-110%); }
  55%, 100% { transform: translateX(275%); }
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) rotate(0); }
  to { transform: translate3d(1.5rem, -1rem, 0) rotate(4deg); }
}

@media (max-width: 680px) {
  .maintenance-shell {
    padding: 0.75rem;
  }

  .maintenance-card {
    min-height: calc(100svh - 1.5rem);
  }

  .content-grid {
    grid-template-columns: 2.75rem minmax(0, 1fr);
  }

  .number-mark {
    justify-content: center;
    padding: 1.25rem 0;
    writing-mode: vertical-rl;
  }

  .message {
    padding: 3rem 1.25rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .footer-bar {
    gap: 1rem;
  }

  .footer-bar > p:first-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
