:root {
  --ink: #121826;
  --paper: #fffdf7;
  --blue: #1677ff;
  --soft-blue: #eaf3ff;
  --mint: #32d583;
  --lemon: #ffdf5d;
}

* { box-sizing: border-box; }

.dot-grid {
  background-image: radial-gradient(rgba(18, 24, 38, .14) 1.1px, transparent 1.1px);
  background-size: 22px 22px;
}

.logo-mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: white;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(-3deg);
}

.logo-mark.small {
  width: 38px;
  height: 38px;
  border-radius: 13px;
}

.logo-peg {
  width: 21px;
  height: 21px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--blue);
  box-shadow: inset -4px -4px 0 rgba(0,0,0,.14);
}

.comic-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .18s ease, box-shadow .18s ease;
}

.comic-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.comic-button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.nav-link {
  border-radius: 999px;
  padding: .65rem 1rem;
  font-size: .9rem;
  font-weight: 900;
  transition: background .2s ease, color .2s ease;
}

.nav-link:hover {
  background: #eaf3ff;
  color: #1677ff;
}

.mobile-link {
  display: block;
  padding: .9rem 0;
  font-weight: 900;
  border-bottom: 1px solid rgba(18, 24, 38, .09);
}

.comic-highlight {
  display: inline-block;
  position: relative;
  z-index: 1;
}

.comic-highlight::after {
  content: "";
  position: absolute;
  left: -.05em;
  right: -.08em;
  bottom: .05em;
  height: .28em;
  z-index: -1;
  background: var(--lemon);
  border: 2px solid var(--ink);
  transform: rotate(-1deg);
}

.comic-card {
  border: 2px solid var(--ink);
  border-radius: 34px;
  background: rgba(255,255,255,.86);
  box-shadow: 7px 7px 0 var(--ink);
}

.game-window {
  border: 2px solid var(--ink);
  border-radius: 28px;
  background: linear-gradient(180deg, white, #f3f8ff);
  overflow: hidden;
  min-height: 520px;
}

.window-bar {
  display: flex;
  gap: 8px;
  padding: 15px;
  border-bottom: 2px solid var(--ink);
  background: #fffdf7;
}

.window-bar span {
  height: 13px;
  width: 13px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #ff6b6b;
}

.window-bar span:nth-child(2) { background: #ffdf5d; }
.window-bar span:nth-child(3) { background: #32d583; }

.board-orbit {
  position: relative;
  min-height: 470px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.board-orbit::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border: 2px dashed rgba(18, 24, 38, .25);
  border-radius: 999px;
  animation: spin 26s linear infinite;
}

.peg-board {
  position: relative;
  width: 275px;
  height: 275px;
  border: 2px solid var(--ink);
  border-radius: 34px;
  background: #fffdf7;
  box-shadow: 7px 7px 0 var(--ink), 0 20px 70px rgba(22, 119, 255, .22);
  transform: rotate(-5deg);
}

.peg-dot {
  position: absolute;
  width: 21px;
  height: 21px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #1677ff;
  box-shadow: inset -4px -4px 0 rgba(0,0,0,.14);
  animation: bob 3.8s ease-in-out infinite;
}

.dot-0 { left: 126px; top: 22px; background: #32d583; }
.dot-1 { left: 93px; top: 58px; } .dot-2 { left: 159px; top: 58px; }
.dot-3 { left: 60px; top: 94px; } .dot-4 { left: 126px; top: 94px; } .dot-5 { left: 192px; top: 94px; }
.dot-6 { left: 27px; top: 130px; } .dot-7 { left: 93px; top: 130px; } .dot-8 { left: 159px; top: 130px; } .dot-9 { left: 225px; top: 130px; }
.dot-10 { left: 60px; top: 166px; } .dot-11 { left: 126px; top: 166px; background: white; } .dot-12 { left: 192px; top: 166px; }
.dot-13 { left: 93px; top: 202px; } .dot-14 { left: 159px; top: 202px; }
.dot-15 { left: 126px; top: 238px; }
.dot-16, .dot-17, .dot-18, .dot-19, .dot-20, .dot-21, .dot-22, .dot-23, .dot-24, .dot-25, .dot-26, .dot-27, .dot-28, .dot-29, .dot-30, .dot-31, .dot-32, .dot-33, .dot-34, .dot-35, .dot-36 {
  display: none;
}

.floating-card {
  position: absolute;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: white;
  box-shadow: 4px 4px 0 var(--ink);
  padding: 12px 14px;
  min-width: 136px;
  animation: floaty 5s ease-in-out infinite;
}

.floating-card strong {
  display: block;
  font-size: 13px;
  font-weight: 1000;
}

.floating-card span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: rgba(18, 24, 38, .58);
  font-weight: 800;
}

.floating-card.one {
  left: 18px;
  top: 100px;
  transform: rotate(-4deg);
}

.floating-card.two {
  right: 18px;
  bottom: 88px;
  transform: rotate(5deg);
  animation-delay: .6s;
}

.comic-burst {
  position: absolute;
  right: -18px;
  bottom: 72px;
  display: grid;
  place-items: center;
  width: 108px;
  height: 108px;
  color: white;
  font-family: Arial Rounded MT Bold, system-ui, sans-serif;
  font-size: 24px;
  font-weight: 1000;
  text-shadow: 2px 2px 0 var(--ink);
  background: #ff6b6b;
  border: 2px solid var(--ink);
  clip-path: polygon(50% 0%, 61% 28%, 91% 14%, 78% 45%, 100% 60%, 69% 67%, 75% 100%, 50% 80%, 25% 100%, 31% 67%, 0% 60%, 22% 45%, 9% 14%, 39% 28%);
  animation: pop 2.6s ease-in-out infinite;
}

.mini-stat {
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: white;
  padding: 14px;
  box-shadow: 4px 4px 0 var(--ink);
}

.mini-stat span {
  font-weight: 1000;
  color: #1677ff;
}

.mini-stat p {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 1000;
}

.section-kicker {
  font-size: .78rem;
  font-weight: 1000;
  letter-spacing: .24em;
  color: #1677ff;
  text-transform: uppercase;
}

.section-title {
  margin-top: .65rem;
  max-width: 760px;
  font-family: Arial Rounded MT Bold, Trebuchet MS, system-ui, sans-serif;
  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 1000;
  line-height: .98;
  letter-spacing: -0.045em;
}

.feature-card, .post-card, .project-card, .team-card {
  border: 2px solid var(--ink);
  border-radius: 28px;
  background: white;
  padding: 24px;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover, .post-card:hover, .project-card:hover, .team-card:hover {
  transform: translate(-2px, -2px) rotate(-.4deg);
  box-shadow: 8px 8px 0 var(--ink);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  border-radius: 16px;
  background: #eaf3ff;
  font-weight: 1000;
  color: #1677ff;
}

.feature-card h3, .post-card h3, .project-card h3, .team-card h3 {
  margin-top: 16px;
  font-family: Arial Rounded MT Bold, system-ui, sans-serif;
  font-size: 1.35rem;
  font-weight: 1000;
  line-height: 1.1;
}

.feature-card p, .post-card p, .project-card p {
  margin-top: 10px;
  line-height: 1.65;
  color: rgba(18, 24, 38, .65);
}

.team-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}

.avatar-badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: #1677ff;
  color: white;
  font-family: Arial Rounded MT Bold, system-ui, sans-serif;
  font-size: 1.8rem;
  font-weight: 1000;
  box-shadow: 4px 4px 0 var(--ink);
}

.role {
  margin-top: 6px;
  font-weight: 1000;
  color: #1677ff;
}

.bio {
  margin-top: 10px;
  line-height: 1.65;
  color: rgba(18, 24, 38, .65);
}

.tag {
  display: inline-flex;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #eaf3ff;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.post-link {
  display: inline-block;
  margin-top: 18px;
  font-weight: 1000;
  color: #1677ff;
}

.timeline-pill {
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: white;
  padding: 14px;
  text-align: center;
  font-weight: 1000;
  box-shadow: 3px 3px 0 var(--ink);
}

.sticky-note {
  position: relative;
  z-index: 2;
  max-width: 330px;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: #ffdf5d;
  padding: 24px;
  box-shadow: 6px 6px 0 var(--ink);
}

.orbit-dot {
  position: absolute;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #1677ff;
  box-shadow: inset -4px -4px 0 rgba(0,0,0,.15);
  animation: bob 3.5s ease-in-out infinite;
}

.orbit-dot.a { width: 38px; height: 38px; right: 58px; top: 56px; }
.orbit-dot.b { width: 24px; height: 24px; right: 140px; bottom: 56px; background: #32d583; animation-delay: .4s; }
.orbit-dot.c { width: 30px; height: 30px; right: 42px; bottom: 112px; background: #ff6b6b; animation-delay: .9s; }

.marquee-wrap {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 24px;
  background: #121826;
  color: white;
  box-shadow: 6px 6px 0 #1677ff;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 28px;
  padding: 18px 0;
  animation: marquee 22s linear infinite;
}

.marquee-track span {
  font-family: Arial Rounded MT Bold, system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 1000;
  letter-spacing: .12em;
}

.form-label {
  display: block;
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: .78rem;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(18, 24, 38, .58);
}

.form-input {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: white;
  padding: 14px 16px;
  font-weight: 700;
  outline: none;
  box-shadow: 3px 3px 0 rgba(18, 24, 38, .18);
}

.form-input:focus {
  box-shadow: 4px 4px 0 #1677ff;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: .1s; }
.delay-200 { transition-delay: .2s; }
.delay-300 { transition-delay: .3s; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

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

@keyframes pop {
  0%, 100% { transform: scale(1) rotate(8deg); }
  50% { transform: scale(1.08) rotate(1deg); }
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
