/* By The Creative — maintenance page palette */
:root {
  --bg-deep: #0c0b12;
  --bg-mid: #14121f;
  --text-primary: #f4f2f8;
  --text-muted: #9b96ab;
  --accent-warm: #e86d4a;
  --accent-cool: #8b6cf6;
  --accent-glow: rgba(232, 109, 74, 0.35);
  --accent-glow-cool: rgba(139, 108, 246, 0.25);
  --border-subtle: rgba(244, 242, 248, 0.08);
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-deep);
  overflow-x: hidden;
}

/* Ambient gradient base */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, var(--accent-glow-cool), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 75%, var(--accent-glow), transparent 50%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(20, 18, 31, 0.9), var(--bg-deep));
  z-index: 0;
  pointer-events: none;
}

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

#orb-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 5vw, 3rem);
}

/* —— Brand (typographic, no logo) —— */
.header {
  padding-top: clamp(0.5rem, 3vh, 2rem);
}

.brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35em 0.5em;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  letter-spacing: 0.02em;
  opacity: 0;
  animation: fade-up 1s var(--ease-out-expo) 0.15s forwards;
}

.brand-by {
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--text-muted);
}

.brand-the {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text-primary);
}

.brand-creative {
  font-family: var(--font-serif);
  font-weight: 400;
  background: linear-gradient(
    105deg,
    var(--text-primary) 0%,
    var(--accent-warm) 45%,
    var(--accent-cool) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 8s var(--ease-in-out) infinite;
}

@keyframes shimmer {
  0%,
  100% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
}

/* —— Hero —— */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 8vh, 5rem) 0;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  width: fit-content;
  padding: 0.5rem 1rem 0.5rem 0.75rem;
  margin-bottom: 1.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  background: rgba(20, 18, 31, 0.6);
  backdrop-filter: blur(12px);
  opacity: 0;
  animation: fade-up 1s var(--ease-out-expo) 0.35s forwards;
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent-warm);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse-dot 2s var(--ease-in-out) infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.75;
  }
}

.headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 8vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.headline .line {
  display: block;
  overflow: hidden;
}

.headline .line span,
.headline .line {
  opacity: 0;
  transform: translateY(1.1em);
}

.line-1 {
  animation: reveal-line 1.1s var(--ease-out-expo) 0.5s forwards;
}

.line-2 {
  animation: reveal-line 1.1s var(--ease-out-expo) 0.65s forwards;
  color: transparent;
  -webkit-text-fill-color: transparent;
  background: linear-gradient(
    120deg,
    var(--text-primary) 20%,
    var(--accent-warm) 55%,
    var(--accent-cool) 90%
  );
  -webkit-background-clip: text;
  background-clip: text;
}

@keyframes reveal-line {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lede {
  max-width: 32ch;
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  line-height: 1.65;
  color: var(--text-muted);
  opacity: 0;
  animation: fade-up 1s var(--ease-out-expo) 0.85s forwards;
}

/* —— Progress indicator —— */
.progress {
  margin-top: 2.5rem;
  opacity: 0;
  animation: fade-up 1s var(--ease-out-expo) 1.05s forwards;
}

.progress-track {
  height: 3px;
  border-radius: 3px;
  background: var(--border-subtle);
  overflow: hidden;
  margin-bottom: 0.625rem;
}

.progress-fill {
  height: 100%;
  width: 38%;
  border-radius: 3px;
  background: linear-gradient(
    90deg,
    var(--accent-warm),
    var(--accent-cool)
  );
  animation: progress-slide 4s var(--ease-in-out) infinite;
}

@keyframes progress-slide {
  0% {
    transform: translateX(-100%);
    width: 28%;
  }
  50% {
    width: 52%;
  }
  100% {
    transform: translateX(280%);
    width: 28%;
  }
}

.progress-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* —— Footer —— */
.footer {
  padding-bottom: clamp(0.5rem, 2vh, 1.5rem);
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  opacity: 0;
  animation: fade-up 1s var(--ease-out-expo) 1.25s forwards;
}

.footer-tag {
  font-size: 0.8125rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.footer-mail {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.footer-mail::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-warm), var(--accent-cool));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out-expo);
}

.footer-mail:hover {
  color: var(--accent-warm);
}

.footer-mail:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-mail:focus-visible {
  outline: 2px solid var(--accent-cool);
  outline-offset: 4px;
  border-radius: 2px;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .brand-creative {
    -webkit-text-fill-color: var(--text-primary);
    background: none;
  }

  .line-2 {
    -webkit-text-fill-color: var(--accent-warm);
    background: none;
    color: var(--accent-warm);
  }

  #orb-canvas {
    display: none;
  }
}
