/* ─── Brand tokens ─────────────────────────────────────────────── */
:root {
  --charcoal:   #272626;
  --majorelle:  #495EA6;
  --mazarine:   #283C7B;
  --light-gray: #EDEEF5;
  --muted:      rgba(237, 238, 245, 0.68);
}

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

html {
  height: 100%;
}

body {
  min-height: 100%;
  background: var(--charcoal);
  color: var(--light-gray);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  overflow-x: hidden;
}

/* ─── Particle canvas ──────────────────────────────────────────── */
#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ─── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 3rem 1.5rem 5rem;
  text-align: center;
  gap: 1.25rem;
}

/* ─── Logo ─────────────────────────────────────────────────────── */
.logo-wrap {
  animation: logo-in 800ms ease-out both;
}

.logo {
  width: 300px;
  max-width: 80vw;
  height: auto;
  display: block;
  filter: brightness(1.25);
}

#matx-mark {
  animation: mark-glow 3s ease-in-out infinite;
}

/* ─── Headline ─────────────────────────────────────────────────── */
.headline {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: #ffffff;
  animation: headline-in 600ms ease-out both;
  animation-delay: 150ms;
}

/* ─── Subtext ──────────────────────────────────────────────────── */
.subtext {
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.01em;
  animation: fade-up 600ms ease-out both;
  animation-delay: 300ms;
}

/* ─── Contact line ─────────────────────────────────────────────── */
.contact {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  color: var(--muted);
  animation: fade-up 600ms ease-out both;
  animation-delay: 450ms;
}

.contact a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms, color 200ms;
}

.contact a:hover {
  color: var(--light-gray);
  border-bottom-color: rgba(237, 238, 245, 0.35);
}

/* ─── Footer ───────────────────────────────────────────────────── */
.site-footer {
  position: fixed;
  bottom: 1.25rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.775rem;
  letter-spacing: 0.04em;
  color: rgba(237, 238, 245, 0.42);
  z-index: 1;
  pointer-events: none;
}

/* ─── Keyframes ────────────────────────────────────────────────── */
@keyframes logo-in {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1);    }
}

@keyframes headline-in {
  from { opacity: 0; letter-spacing: 0.05em; }
  to   { opacity: 1; letter-spacing: 0.02em; }
}

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

@keyframes mark-glow {
  0%, 100% {
    opacity: 0.85;
    filter: drop-shadow(0 0 6px rgba(73, 94, 166, 0.25));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 18px rgba(73, 94, 166, 0.6));
  }
}

/* ─── Reduced motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .logo-wrap,
  .headline,
  .subtext,
  .contact {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .headline {
    letter-spacing: 0.02em;
  }

  #matx-mark {
    animation: none;
    opacity: 1;
    filter: none;
  }
}

/* ─── Mobile ───────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero {
    gap: 1rem;
    padding-bottom: 4.5rem;
  }
}
