:root {
  --bg: #f6f4ee;
  --paper: #fffdf8;
  --ink: #132028;
  --muted: #4b5f6b;
  --line: #d9d4c7;
  --accent: #ff6f3c;
  --accent-2: #1f8a70;
  --accent-3: #ffd166;
  --card: #fff;
  --shadow: 0 14px 40px rgba(19, 32, 40, 0.13);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at 20% 10%, #fff 0%, var(--bg) 35%, #ece9dd 100%);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
}

body {
  min-height: 100vh;
  line-height: 1.55;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image: radial-gradient(circle at 1px 1px, #000 1px, transparent 0);
  background-size: 3px 3px;
  mix-blend-mode: soft-light;
  z-index: -1;
}

.hero {
  padding: 1.2rem clamp(1rem, 3vw, 3rem) 3rem;
  display: grid;
  gap: 2rem;
}

.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  padding: 0.6rem 0.9rem 0.6rem 1.2rem;
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0.6rem;
  z-index: 12;
}

.logo {
  font-family: "Archivo Black", sans-serif;
  letter-spacing: 0.08em;
  font-size: 1rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.nav-links a:hover {
  background: #efece2;
}

.nav-toggle {
  display: none;
  border: 0;
  background: #ece9dc;
  padding: 0.45rem 0.7rem;
  border-radius: 0.6rem;
  font-weight: 700;
}

.hero-content {
  max-width: 760px;
  animation: rise 700ms ease both;
}

.eyebrow {
  display: inline-block;
  margin: 0;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #e8f4ef;
  color: #0f604c;
  font-weight: 700;
  font-size: 0.84rem;
}

h1,
h2,
h3 {
  line-height: 1.12;
}

h1 {
  margin: 1rem 0 0.8rem;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(2rem, 6vw, 4rem);
  letter-spacing: 0.02em;
}

h1 span {
  color: var(--accent);
  display: block;
}

.hero-content p {
  color: var(--muted);
  max-width: 68ch;
}

.hero-cta {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #243945;
}

.btn-ghost {
  border-color: #1f8a70;
  color: #166f59;
  background: #edfaf6;
}

.hero-visual {
  justify-self: end;
  text-align: center;
  color: var(--muted);
  animation: rise 900ms ease both;
}

.constellation {
  width: min(78vw, 360px);
  aspect-ratio: 1;
  border-radius: 1.2rem;
  background: linear-gradient(145deg, #1f8a70, #1e5767 70%, #23313b 100%);
  position: relative;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.constellation::before,
.constellation::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 50%;
}

.constellation::after {
  inset: 34%;
}

.node {
  position: absolute;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  background: #fff;
  color: #18303c;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.n1 {
  top: 10%;
  left: 42%;
}
.n2 {
  top: 34%;
  left: 18%;
}
.n3 {
  top: 38%;
  right: 16%;
}
.n4 {
  bottom: 24%;
  left: 18%;
}
.n5 {
  bottom: 22%;
  right: 18%;
}
.n6 {
  bottom: 10%;
  left: 44%;
}

.pulse {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 0.6rem;
  height: 0.6rem;
  background: #ffd166;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.85);
  animation: pulse 1.8s infinite;
}

main {
  padding: 0 clamp(1rem, 3vw, 3rem) 3rem;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.2rem;
  padding: clamp(1rem, 2vw, 1.5rem);
}

.philosophy .pillars,
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.pillars article,
.notes-grid article {
  padding: 1rem;
  border-radius: 0.8rem;
  background: #fff;
  border: 1px solid #e6e0d1;
}

.section-head p {
  color: var(--muted);
}

.drill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.drill-card {
  background: var(--card);
  border: 1px solid #ddd8ca;
  border-radius: 0.9rem;
  padding: 1rem;
  display: grid;
  gap: 0.7rem;
  transform: translateY(14px);
  opacity: 0;
  transition: transform 600ms ease, opacity 600ms ease;
}

.drill-card.visible {
  transform: translateY(0);
  opacity: 1;
}

.drill-card.bonus {
  border: 2px solid #ffcf70;
  background: linear-gradient(140deg, #fffdf5, #fff);
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: start;
}

.badge {
  font-size: 0.75rem;
  background: #edf6ff;
  color: #24506f;
  border: 1px solid #bfdaee;
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  font-weight: 700;
  white-space: nowrap;
}

.drill-card p,
.drill-card li {
  color: #455c68;
}

.drill-card ul {
  margin: 0;
  padding-left: 1rem;
}

.pitch {
  width: 100%;
  height: 160px;
  border-radius: 0.7rem;
  background: linear-gradient(180deg, #2d865f, #297650);
  border: 2px solid rgba(255, 255, 255, 0.55);
  position: relative;
  overflow: hidden;
}

.pitch.drill-gif {
  height: 160px;
  aspect-ratio: auto;
  object-fit: fill;
}

.pitch::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 0.2rem;
}

.goal {
  width: 12px;
  height: 46px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 2px solid rgba(255, 255, 255, 0.82);
}

.goal.left {
  left: 1px;
}

.goal.right {
  right: 1px;
}

.zone-lines,
.vert-lines,
.hori-lines,
.midline {
  position: absolute;
  inset: 0;
}

.zone-lines::before,
.zone-lines::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.7);
}

.zone-lines::before {
  left: 33.3%;
}

.zone-lines::after {
  left: 66.6%;
}

.vert-lines {
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent calc(20% - 1px),
    rgba(255, 255, 255, 0.62) calc(20% - 1px),
    rgba(255, 255, 255, 0.62) 20%
  );
}

.hori-lines {
  background: repeating-linear-gradient(
    180deg,
    transparent,
    transparent calc(33.33% - 1px),
    rgba(255, 255, 255, 0.58) calc(33.33% - 1px),
    rgba(255, 255, 255, 0.58) 33.33%
  );
}

.band {
  position: absolute;
  background: rgba(255, 209, 102, 0.65);
}

.band.top,
.band.bottom {
  left: 0;
  right: 0;
  height: 16px;
}

.band.top {
  top: 0;
}

.band.bottom {
  bottom: 0;
}

.band.left,
.band.right {
  top: 0;
  bottom: 0;
  width: 16px;
}

.band.left {
  left: 0;
}

.band.right {
  right: 0;
}

.midline {
  top: 50%;
  border-top: 2px dashed rgba(255, 255, 255, 0.84);
}

.ring {
  position: absolute;
  inset: 18% 30%;
  border: 2px dashed rgba(255, 255, 255, 0.78);
  border-radius: 50%;
}

.team-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  position: absolute;
}

.t1 {
  background: #ff6f3c;
  left: 22%;
  top: 40%;
}

.t2 {
  background: #1b9aaa;
  right: 22%;
  top: 28%;
}

.t3 {
  background: #ffd166;
  right: 30%;
  bottom: 24%;
}

.compass {
  position: absolute;
  inset: 20% 34%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
}

.compass span {
  position: absolute;
  font-size: 0.72rem;
}

.compass span:nth-child(1) {
  top: -10px;
}

.compass span:nth-child(2) {
  right: -10px;
}

.compass span:nth-child(3) {
  bottom: -10px;
}

.compass span:nth-child(4) {
  left: -10px;
}

.ball {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

.b1 {
  animation: roam1 5.5s infinite ease-in-out;
}
.b2 {
  animation: roam2 4.5s infinite ease-in-out;
}
.b3 {
  animation: roam3 6.2s infinite ease-in-out;
}
.b4 {
  animation: roam4 5.2s infinite ease-in-out;
}
.b5 {
  animation: roam5 3.8s infinite ease-in-out;
}
.b6 {
  animation: roam6 5s infinite ease-in-out;
}

.footer {
  margin: 2rem 1rem;
  text-align: center;
  color: #536570;
  font-weight: 600;
}

@keyframes rise {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.85);
  }
  70% {
    box-shadow: 0 0 0 18px rgba(255, 209, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 209, 102, 0);
  }
}

@keyframes roam1 {
  0% { left: 14%; top: 40%; }
  30% { left: 42%; top: 20%; }
  62% { left: 75%; top: 54%; }
  100% { left: 14%; top: 40%; }
}

@keyframes roam2 {
  0% { left: 50%; top: 72%; }
  25% { left: 22%; top: 45%; }
  70% { left: 78%; top: 38%; }
  100% { left: 50%; top: 72%; }
}

@keyframes roam3 {
  0% { left: 18%; top: 66%; }
  35% { left: 48%; top: 34%; }
  70% { left: 82%; top: 58%; }
  100% { left: 18%; top: 66%; }
}

@keyframes roam4 {
  0% { left: 50%; top: 86%; }
  42% { left: 46%; top: 44%; }
  76% { left: 51%; top: 10%; }
  100% { left: 50%; top: 86%; }
}

@keyframes roam5 {
  0% { left: 28%; top: 46%; }
  40% { left: 62%; top: 26%; }
  75% { left: 55%; top: 74%; }
  100% { left: 28%; top: 46%; }
}

@keyframes roam6 {
  0% { left: 35%; top: 72%; }
  28% { left: 65%; top: 58%; }
  68% { left: 54%; top: 24%; }
  100% { left: 35%; top: 72%; }
}

@media (min-width: 920px) {
  .hero {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }

  .topnav {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    right: 0.7rem;
    top: 3.6rem;
    background: #fff;
    border: 1px solid #dfd9ca;
    border-radius: 0.75rem;
    padding: 0.5rem;
    display: none;
    flex-direction: column;
    width: min(70vw, 240px);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }
}
