:root {
  --paper: #F2EFEA;
  --ink: #0A0A0A;
  --purple: #6E3CFF;
  --purple-soft: #B9A4FF;
  --muted: #5A5A5A;
}

/* ============================================================
   HERO — Desktop (default, 1440 × 780)
   ============================================================ */

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  overflow: hidden;
  height: 100%;
  width: 100%;
}

.hero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  overflow: hidden;
  font-family: "Archivo", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* TOPBAR — z 7 */
.hero__topbar {
  position: absolute;
  inset: 0 0 auto 0;
  height: 72px;
  padding: 0 56px;
  display: flex;
  align-items: center;
  gap: 48px;
  border-bottom: 1px solid rgba(10, 10, 10, 0.08);
  z-index: 7;
}

.hero__logo {
  font-family: "Archivo Black", "Archivo", sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.hero__logo .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--purple);
  margin-left: 2px;
  transform: translateY(-2px);
}

.hero__nav {
  display: flex;
  gap: 32px;
}

.hero__nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto; /* push CTA to far right */
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.hero__cta .dot {
  width: 6px;
  height: 6px;
  background: var(--purple);
  display: inline-block;
}

.hero__menu {
  display: none;
}

/* COPY — z 6 */
.hero__copy {
  position: absolute;
  left: 96px;
  top: 208px;
  z-index: 6;
  width: max-content;
}

.hero__title {
  margin: 0;
  font-family: "Archivo Black", "Archivo", sans-serif;
  font-weight: 900;
  font-size: 104px;
  line-height: 0.92;
  letter-spacing: -0.035em;
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.22em;
  row-gap: 0;
}

.hero__title .word {
  white-space: nowrap;
  display: inline-block;
  flex-basis: 100%; /* every word on its own line — desktop matches mobile */
}

.hero__lb {
  display: none;
}

.hero__title .dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--purple);
  margin-left: 6px;
  transform: translateY(-2px);
}

.hero__sub {
  margin: 28px 0 0;
  font-size: 20px;
  line-height: 1.45;
  color: #2A2A2A;
  font-weight: 400;
}

.hero__sub a {
  color: var(--purple);
  font-weight: 500;
  text-decoration: none;
}

.hero__lead {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.hero__lead::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 1.5px;
  background: var(--ink);
}

.hero__lead .dot {
  width: 6px;
  height: 6px;
  background: var(--purple);
  display: inline-block;
  margin-left: 4px;
}

/* DECORATION — z 1..4 */

/* Glow — z 1 */
.hero__glow {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  width: 1200px;
  height: 1000px;
  right: -300px;
  top: -100px;
  background: radial-gradient(
    closest-side,
    rgba(110, 60, 255, 0.70) 0%,
    rgba(110, 60, 255, 0.45) 30%,
    rgba(110, 60, 255, 0.22) 55%,
    rgba(185, 164, 255, 0.10) 80%,
    transparent 100%
  );
  filter: blur(6px);
}

/* BUILD word — z 2 */
.hero__build {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  left: -20px;
  right: -20px;
  bottom: -20px;
  text-align: center;
  font-family: "Archivo Black", "Archivo", sans-serif;
  font-weight: 900;
  font-size: 380px;
  line-height: 0.82;
  letter-spacing: -0.02em;
  color: rgba(110, 60, 255, 0.12);
}

/* Rings — z 3 — BEHIND knight, large, top rises high above head */
.hero__rings {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  width: 820px;
  height: 820px;
  right: -180px;
  bottom: -180px;
}

/* Knight — z 4 — head sits inside rings */
.hero__knight {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  width: 420px;
  height: auto;
  right: -30px;
  bottom: 0;
  object-fit: contain;
  display: block;
}

/* ============================================================
   MOBILE — @media (max-width: 768px) — 390 × 720
   ============================================================ */

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    min-height: 100dvh;
  }

  /* Topbar */
  .hero__topbar {
    height: 64px;
    padding: 0 20px;
  }

  .hero__logo {
    font-size: 20px;
  }

  .hero__logo .dot {
    width: 6px;
    height: 6px;
  }

  .hero__nav,
  .hero__cta {
    display: none;
  }

  .hero__menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 24px;
    height: 16px;
    background: none;
    border: 0;
    padding: 0;
    margin-left: auto;
  }

  .hero__menu span {
    display: block;
    height: 2px;
    background: var(--ink);
  }

  /* Copy */
  .hero__copy {
    left: 24px;
    top: 96px;
  }

  .hero__title {
    font-size: 54px;
    line-height: 0.95;
    letter-spacing: -0.05em;
    column-gap: 0;
  }

  .hero__title .word {
    flex-basis: 100%; /* every word on its own line */
  }

  .hero__lb {
    display: none; /* mobile uses word-level breaks instead */
  }

  .hero__title .dot {
    width: 9px;
    height: 9px;
    margin-left: 4px;
  }

  .hero__sub {
    margin-top: 32px;
    font-size: 16px;
    line-height: 1.6;
  }

  .hero__lead {
    margin-top: 36px;
    font-size: 13px;
    gap: 10px;
  }

  .hero__lead::before {
    width: 24px;
  }

  .hero__lead .dot {
    width: 5px;
    height: 5px; /* purple square IS present on mobile */
  }

  /* Decoration */
  .hero__glow {
    width: 700px;
    height: 750px;
    right: -150px;
    top: 80px;
  }

  .hero__build {
    left: -10px;
    right: auto;
    bottom: 240px;
    font-size: 130px;
    text-align: left;
    color: rgba(110, 60, 255, 0.10);
  }

  .hero__rings {
    width: 480px;
    height: 480px;
    right: -100px;
    top: auto;
    bottom: -120px;
  }

  .hero__knight {
    width: 200px;
    right: -50px;
    bottom: 0;
  }
}
