/* ==========================================================
   MANCH — launch page
   Base colour: #140f1b (used across the whole site)
   ========================================================== */

:root {
  --manch-bg:      #140f1b;   /* the one brand background */
  --manch-bg-lift: #1c1524;   /* barely-there lift for the footer rule */
  --manch-ember:   #ff3b12;   /* glow pulled from the wordmark */
  --manch-text:    #b9b2c2;   /* quiet UI text */
  --manch-text-hi: #ffffff;
}

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

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

html { background-color: var(--manch-bg); }

body {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 5vh, 56px);
  padding: max(16px, env(safe-area-inset-top))
           16px
           max(20px, env(safe-area-inset-bottom));

  background-color: var(--manch-bg);
  color: var(--manch-text);
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system,
               "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Signature: a slow ember breathing behind the wordmark ---------- */

.ember {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 45% 38% at 50% 44%,
    rgba(255, 59, 18, 0.16) 0%,
    rgba(255, 59, 18, 0.05) 42%,
    rgba(20, 15, 27, 0) 72%
  );
  animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.06); }
}

/* ---------- Hero ---------- */

.stage {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1680px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero { display: block; width: 100%; }

.hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 82svh;
  object-fit: contain;
  margin: 0 auto;
  /* the artwork's own background is #150f1b, so it fuses with the page */
  animation: rise 900ms cubic-bezier(0.22, 0.75, 0.28, 1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Footer ---------- */

.base {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  animation: fade 900ms 400ms ease both;
}

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

.mail {
  color: var(--manch-text);
  text-decoration: none;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background-color: var(--manch-bg-lift);
  transition: color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.mail:hover,
.mail:focus-visible {
  color: var(--manch-text-hi);
  border-color: rgba(255, 59, 18, 0.6);
  box-shadow: 0 0 22px rgba(255, 59, 18, 0.22);
}

.mail:focus-visible { outline: 2px solid var(--manch-ember); outline-offset: 3px; }

.rule {
  width: 34px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.16);
}

.mark { color: rgba(185, 178, 194, 0.55); }

/* ---------- Utility ---------- */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Small screens ---------- */

@media (max-width: 720px) {
  body { gap: clamp(20px, 4vh, 36px); }
  .hero img { max-height: 74svh; }
  .base { font-size: 10px; gap: 12px; }
  .rule { width: 24px; }
}

@media (max-width: 400px) {
  .rule { display: none; }
  .base { flex-direction: column; gap: 14px; }
}

/* ---------- Respect motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  .ember, .hero img, .base { animation: none; }
  .ember { opacity: 0.8; }
}
