:root {
  --ink: #17212b;
  --muted: #5b6570;
  --paper: #fffefa;
  --paper-soft: #f8fbff;
  --blue: #58b8f7;
  --blue-deep: #1f7fc2;
  --yellow: #ffe44d;
  --green: #5caf3f;
  --brown: #8b643f;
  --line: rgba(22, 33, 43, 0.14);
  --shadow: 0 24px 70px rgba(31, 127, 194, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Arial", "Helvetica", sans-serif;
  background:
    linear-gradient(90deg, rgba(88, 184, 247, 0.11) 1px, transparent 1px),
    linear-gradient(rgba(88, 184, 247, 0.09) 1px, transparent 1px),
    radial-gradient(circle at 14% 18%, rgba(255, 228, 77, 0.48), transparent 27rem),
    radial-gradient(circle at 86% 8%, rgba(88, 184, 247, 0.34), transparent 34rem),
    var(--paper);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.cursor-glow {
  --x: 50vw;
  --y: 20vh;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at var(--x) var(--y), rgba(255, 228, 77, 0.2), transparent 17rem);
  mix-blend-mode: multiply;
}

.paper-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(23, 33, 43, 0.06) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 60%, rgba(23, 33, 43, 0.045) 0 1px, transparent 1px);
  background-size: 29px 31px, 37px 41px;
}

.site-shell {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 42px;
}

.topbar {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-family: "Georgia", serif;
  font-size: 1.12rem;
  font-weight: 800;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border: 3px solid var(--yellow);
  border-radius: 50%;
  box-shadow: 5px 5px 0 rgba(88, 184, 247, 0.38);
}

.nav-links {
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(14px);
}

.nav-links a {
  min-width: 74px;
  padding: 10px 14px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 800;
  border-radius: 999px;
  transition: background 180ms ease, transform 180ms ease;
}

.nav-links a:hover {
  background: rgba(255, 228, 77, 0.62);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.86fr);
  align-items: center;
  gap: 28px;
  padding: 72px 0 52px;
}

.sunburst {
  position: absolute;
  width: 650px;
  height: 650px;
  left: -220px;
  top: 54px;
  z-index: -1;
  background: repeating-conic-gradient(from -8deg, rgba(255, 228, 77, 0.72) 0 9deg, transparent 9deg 18deg);
  border-radius: 50%;
  filter: blur(0.2px);
  opacity: 0.74;
  animation: slow-spin 22s linear infinite;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue-deep);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-family: "Georgia", serif;
  font-size: clamp(4.6rem, 12vw, 9.5rem);
  line-height: 0.86;
  letter-spacing: 0;
  text-transform: lowercase;
  text-shadow: 9px 10px 0 rgba(88, 184, 247, 0.24), 0 0 0 var(--ink);
}

.lead {
  max-width: 570px;
  color: var(--muted);
  font-size: 1.23rem;
  line-height: 1.65;
}

.hero-actions,
.social-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 5px 5px 0 rgba(23, 33, 43, 0.15);
  cursor: pointer;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 7px 8px 0 rgba(23, 33, 43, 0.14);
}

.button.primary {
  background: var(--yellow);
}

.button.ghost {
  background: #eaf7ff;
}

.portrait-stage {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.clue-ring {
  position: absolute;
  width: min(95%, 510px);
  aspect-ratio: 1;
  border: 2px dashed rgba(31, 127, 194, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 0 55px rgba(88, 184, 247, 0.18), var(--shadow);
  animation: pulse-ring 3.8s ease-in-out infinite;
}

.case-portrait {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  max-height: 600px;
  object-fit: contain;
  filter: drop-shadow(0 32px 34px rgba(23, 33, 43, 0.22));
  transition: transform 220ms ease;
  animation: floaty 4.5s ease-in-out infinite;
}

.smoke {
  position: absolute;
  z-index: 3;
  width: 90px;
  height: 28px;
  border-top: 3px solid rgba(31, 127, 194, 0.32);
  border-radius: 50%;
  opacity: 0;
  transform: translate(110px, -18px) rotate(-20deg);
  animation: smoke 3.6s ease-in-out infinite;
}

.smoke-a {
  right: 70px;
  top: 245px;
}

.smoke-b {
  right: 18px;
  top: 206px;
  animation-delay: 1.1s;
}

.smoke-c {
  right: 112px;
  top: 180px;
  animation-delay: 2s;
}

.case-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: -8px 0 34px;
}

.case-note {
  min-height: 198px;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 9px 0 rgba(23, 33, 43, 0.12);
  transform: rotate(var(--tilt));
}

.case-note span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 28px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
  font-weight: 900;
}

.case-note h2 {
  margin-bottom: 10px;
  font-size: 1.35rem;
}

.case-note p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.note-yellow {
  --tilt: -1.2deg;
  background: #fff3a0;
}

.note-blue {
  --tilt: 0.8deg;
  background: #e6f6ff;
}

.note-green {
  --tilt: -0.4deg;
  background: #ebfbdf;
}

.banner-panel {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: center;
  gap: 22px;
  margin: 42px 0;
  padding: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.banner-panel h2 {
  margin-bottom: 0;
  font-family: "Georgia", serif;
  font-size: clamp(1.9rem, 4vw, 3.35rem);
  line-height: 1.02;
}

.banner-panel img {
  width: 100%;
  display: block;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 9px 0 rgba(23, 33, 43, 0.1);
}

.join-panel {
  position: relative;
  min-height: 360px;
  display: grid;
  align-content: center;
  margin-top: 48px;
  padding: 44px;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 20%, rgba(255, 228, 77, 0.42), transparent 15rem),
    linear-gradient(135deg, #ffffff, #f2fbff 60%, #fff7b7);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 10px 12px 0 rgba(23, 33, 43, 0.12);
}

.join-panel h2 {
  max-width: 760px;
  margin-bottom: 12px;
  font-family: "Georgia", serif;
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 0.95;
}

.join-panel p:not(.eyebrow) {
  max-width: 580px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.magnifier {
  position: absolute;
  right: 58px;
  bottom: -18px;
  width: 180px;
  height: 180px;
  border: 18px solid rgba(23, 33, 43, 0.16);
  border-radius: 50%;
  transform: rotate(-22deg);
}

.magnifier::after {
  content: "";
  position: absolute;
  width: 112px;
  height: 22px;
  right: -86px;
  bottom: -28px;
  background: rgba(23, 33, 43, 0.16);
  border-radius: 999px;
}

.social-row a {
  min-width: 86px;
  padding: 12px 16px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
  text-align: center;
  font-weight: 900;
  box-shadow: 4px 5px 0 rgba(88, 184, 247, 0.34);
  transition: transform 180ms ease;
}

.social-row a:hover {
  transform: translateY(-3px) rotate(-1deg);
}

@keyframes slow-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse-ring {
  50% {
    transform: scale(1.035);
    box-shadow: inset 0 0 70px rgba(255, 228, 77, 0.24), 0 30px 80px rgba(31, 127, 194, 0.22);
  }
}

@keyframes floaty {
  50% {
    transform: translateY(-14px);
  }
}

@keyframes smoke {
  0% {
    opacity: 0;
    transform: translate(0, 20px) scale(0.8) rotate(-20deg);
  }
  30% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
    transform: translate(46px, -58px) scale(1.55) rotate(-8deg);
  }
}

@media (max-width: 860px) {
  .topbar,
  .nav-links {
    align-items: flex-start;
  }

  .topbar,
  .hero,
  .banner-panel {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .portrait-stage {
    min-height: 440px;
    order: -1;
  }

  .case-board {
    grid-template-columns: 1fr;
  }

  .case-note {
    transform: none;
  }
}

@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 22px, 1160px);
    padding-top: 10px;
  }

  .nav-links a {
    min-width: auto;
    padding-inline: 10px;
    font-size: 0.84rem;
  }

  h1 {
    font-size: clamp(3.7rem, 18vw, 5.6rem);
  }

  .lead {
    font-size: 1.05rem;
  }

  .button {
    width: 100%;
  }

  .portrait-stage {
    min-height: 360px;
  }

  .join-panel {
    padding: 30px 22px;
  }

  .magnifier {
    opacity: 0.42;
    right: -40px;
  }
}
