:root {
  color-scheme: dark;
  --bg-deep: #070a0f;
  --bg-deep-2: #0a1018;
  --bg-card: #121820;
  --ink: #e8edf4;
  --muted: #8b9cb3;
  --git-orange: #f05033;
  --gh-green: #3fb950;
  --agile-blue: #58a6ff;
  --retro-yellow: #f0e040;
  --merge-purple: #a371f7;
  --glow: rgba(88, 166, 255, 0.15);
  --grid-line: rgba(88, 166, 255, 0.06);
  --floaty-shadow: rgba(0, 0, 0, 0.35);
  --floaty-git-1: #2d1f1a;
  --floaty-git-2: #1a1210;
  --floaty-git-fg: #ff9a7a;
  --floaty-agile-1: #101a2a;
  --floaty-agile-2: #0d1520;
  --floaty-agile-fg: #9ecbff;
  --floaty-gh-1: #0d1f14;
  --floaty-gh-2: #0a1810;
  --floaty-gh-fg: #7ee787;
  --floaty-silly-1: #221a30;
  --floaty-silly-2: #181020;
  --floaty-silly-fg: #d4b8ff;
  --vec-drop: rgba(0, 0, 0, 0.35);
  --float-logo-bg: rgba(14, 18, 26, 0.82);
  --float-logo-border: rgba(255, 255, 255, 0.1);
  --float-logo-shadow: rgba(0, 0, 0, 0.4);
  --merge-blob-1: rgba(163, 113, 247, 0.25);
  --merge-blob-2: rgba(240, 80, 51, 0.15);
  --merge-blob-border: rgba(163, 113, 247, 0.4);
  --kanban-shadow: rgba(0, 0, 0, 0.45);
  --kanban-1: #2d333b;
  --kanban-2: #1c2d41;
  --kanban-3: #1f3d2a;
  --panel-bg: rgba(9, 12, 18, 0.38);
  --panel-border: rgba(255, 255, 255, 0.09);
  --panel-inset: rgba(255, 255, 255, 0.05);
  --panel-outer: rgba(0, 0, 0, 0.22);
  --badge-bg: rgba(18, 24, 32, 0.85);
  --badge-border: rgba(255, 255, 255, 0.12);
  --badge-git-fg: #ff9a7a;
  --badge-gh-fg: #7ee787;
  --badge-agile-fg: #9ecbff;
  --jokes-color: var(--retro-yellow);
  --btn-ghost-bg: rgba(18, 24, 32, 0.9);
  --btn-ghost-border: rgba(255, 255, 255, 0.14);
  --feature-bg: rgba(18, 24, 32, 0.65);
  --feature-border: rgba(255, 255, 255, 0.08);
  --feature-hover-border: rgba(88, 166, 255, 0.35);
  --hash-opacity: 0.22;
  --noise-opacity: 0.04;
  --sprint-wheel: rgba(88, 166, 255, 0.2);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg-deep: #e8eef5;
  --bg-deep-2: #dde5f0;
  --bg-card: #ffffff;
  --ink: #12151c;
  --muted: #4a5568;
  --glow: rgba(9, 105, 218, 0.1);
  --grid-line: rgba(30, 64, 120, 0.08);
  --floaty-shadow: rgba(0, 0, 0, 0.06);
  --floaty-git-1: #fff2eb;
  --floaty-git-2: #ffe4d6;
  --floaty-git-fg: #b83218;
  --floaty-agile-1: #edf4ff;
  --floaty-agile-2: #e2ebfa;
  --floaty-agile-fg: #1a5fb4;
  --floaty-gh-1: #e8fff1;
  --floaty-gh-2: #daf5e6;
  --floaty-gh-fg: #137333;
  --floaty-silly-1: #f5edff;
  --floaty-silly-2: #ebe3fb;
  --floaty-silly-fg: #6e40b8;
  --vec-drop: rgba(0, 0, 0, 0.1);
  --float-logo-bg: rgba(255, 255, 255, 0.94);
  --float-logo-border: rgba(0, 0, 0, 0.08);
  --float-logo-shadow: rgba(0, 0, 0, 0.08);
  --merge-blob-1: rgba(163, 113, 247, 0.15);
  --merge-blob-2: rgba(240, 80, 51, 0.1);
  --merge-blob-border: rgba(163, 113, 247, 0.35);
  --kanban-shadow: rgba(0, 0, 0, 0.1);
  --kanban-1: #f1f3f6;
  --kanban-2: #e8eef8;
  --kanban-3: #e6f5eb;
  --panel-bg: rgba(255, 255, 255, 0.78);
  --panel-border: rgba(0, 0, 0, 0.09);
  --panel-inset: rgba(255, 255, 255, 0.95);
  --panel-outer: rgba(0, 0, 0, 0.06);
  --badge-bg: rgba(255, 255, 255, 0.92);
  --badge-border: rgba(0, 0, 0, 0.1);
  --badge-git-fg: #c73e28;
  --badge-gh-fg: #137333;
  --badge-agile-fg: #1a5fb4;
  --retro-yellow: #9a7209;
  --jokes-color: #8a6210;
  --btn-ghost-bg: rgba(255, 255, 255, 0.95);
  --btn-ghost-border: rgba(0, 0, 0, 0.12);
  --feature-bg: rgba(255, 255, 255, 0.75);
  --feature-border: rgba(0, 0, 0, 0.08);
  --feature-hover-border: rgba(26, 95, 180, 0.45);
  --hash-opacity: 0.32;
  --noise-opacity: 0.03;
  --sprint-wheel: rgba(26, 95, 180, 0.22);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--ink);
  overflow-x: hidden;
}

/* ---- Noise texture overlay ---- */
.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---- Animated grid floor ---- */
.grid-floor {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 120% 80% at 50% 100%, var(--glow), transparent 55%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep-2) 100%);
}

.grid-floor::before {
  content: "";
  position: absolute;
  inset: -50%;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  transform: perspective(500px) rotateX(60deg) translateY(20%);
  animation: grid-drift 24s linear infinite;
  opacity: 0.5;
}

@keyframes grid-drift {
  0% {
    transform: perspective(500px) rotateX(60deg) translateY(20%) translateX(0);
  }

  100% {
    transform: perspective(500px) rotateX(60deg) translateY(20%) translateX(-48px);
  }
}

/* ---- Floating layer container ---- */
.chaos-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.floaty {
  position: absolute;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(0.65rem, 1.2vw, 0.85rem);
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0.85;
  box-shadow: 0 4px 24px var(--floaty-shadow);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.floaty--git {
  background: linear-gradient(135deg, var(--floaty-git-1), var(--floaty-git-2));
  border: 1px solid var(--git-orange);
  color: var(--floaty-git-fg);
}

.floaty--agile {
  background: linear-gradient(135deg, var(--floaty-agile-1), var(--floaty-agile-2));
  border: 1px solid var(--agile-blue);
  color: var(--floaty-agile-fg);
}

.floaty--gh {
  background: linear-gradient(135deg, var(--floaty-gh-1), var(--floaty-gh-2));
  border: 1px solid var(--gh-green);
  color: var(--floaty-gh-fg);
}

.floaty--silly {
  background: linear-gradient(135deg, var(--floaty-silly-1), var(--floaty-silly-2));
  border: 1px solid var(--merge-purple);
  color: var(--floaty-silly-fg);
}

@keyframes drift-a {

  0%,
  100% {
    transform: translate(0, 0) rotate(-2deg);
  }

  25% {
    transform: translate(24px, -30px) rotate(3deg);
  }

  50% {
    transform: translate(-16px, 22px) rotate(-1deg);
  }

  75% {
    transform: translate(28px, 14px) rotate(2deg);
  }
}

@keyframes drift-b {

  0%,
  100% {
    transform: translate(0, 0) rotate(1deg) scale(1);
  }

  33% {
    transform: translate(-38px, 26px) rotate(-4deg) scale(1.02);
  }

  66% {
    transform: translate(32px, -24px) rotate(5deg) scale(0.98);
  }
}

@keyframes drift-c {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(-28px, -36px) rotate(8deg);
  }
}

@keyframes orbit-slow {
  0% {
    transform: rotate(0deg) translateX(40px) rotate(0deg);
  }

  100% {
    transform: rotate(360deg) translateX(40px) rotate(-360deg);
  }
}

/* Stagger positions — biased to edges/corners so the center stays open */
.c1 {
  top: 3%;
  left: 2%;
  animation: drift-a 11s infinite;
  animation-delay: -2s;
}

.c2 {
  top: 2%;
  right: 2%;
  animation: drift-b 14s infinite;
  animation-delay: -5s;
}

.c3 {
  top: 16%;
  left: 1%;
  animation: drift-c 9s infinite;
  animation-delay: -1s;
}

.c4 {
  top: 19%;
  right: 1%;
  animation: drift-a 16s infinite;
  animation-delay: -8s;
}

.c5 {
  bottom: 4%;
  left: 3%;
  animation: drift-b 12s infinite;
  animation-delay: -3s;
}

.c6 {
  bottom: 3%;
  right: 4%;
  animation: drift-c 13s infinite;
  animation-delay: -6s;
}

.c7 {
  top: 46%;
  left: 1%;
  animation: drift-b 10s infinite;
  animation-delay: -4s;
  opacity: 0.5;
}

.c8 {
  top: 48%;
  right: 1%;
  animation: drift-a 15s infinite;
  animation-delay: -9s;
  opacity: 0.55;
}

.c9 {
  top: 7%;
  left: 76%;
  animation: drift-c 17s infinite;
  animation-delay: -7s;
  opacity: 0.45;
  font-size: 0.62rem;
}

.c10 {
  bottom: 36%;
  right: 2%;
  animation: drift-b 11s infinite;
  animation-delay: -2.5s;
  opacity: 0.5;
}

.c11 {
  top: 68%;
  right: 2%;
  animation: drift-a 19s infinite;
  animation-delay: -11s;
  font-size: 0.62rem;
}

.c12 {
  bottom: 7%;
  left: 46%;
  animation: drift-c 14s infinite;
  animation-delay: -4.5s;
  opacity: 0.4;
}

.c13 {
  top: 82%;
  left: 4%;
  animation: drift-b 13s infinite;
  animation-delay: -6.5s;
  opacity: 0.48;
}

.c14 {
  top: 11%;
  left: 90%;
  animation: drift-a 20s infinite;
  animation-delay: -12s;
  font-size: 0.62rem;
  opacity: 0.42;
}

.c15 {
  bottom: 54%;
  left: 2%;
  animation: drift-c 15s infinite;
  animation-delay: -8.5s;
  opacity: 0.38;
}

.c16 {
  top: 30%;
  right: 2%;
  animation: drift-b 18s infinite;
  animation-delay: -13s;
  opacity: 0.44;
}

.c17 {
  top: 1%;
  left: 34%;
  animation: drift-c 12s infinite;
  animation-delay: -1.5s;
  opacity: 0.55;
  font-size: 0.62rem;
}

.c18 {
  bottom: 2%;
  left: 14%;
  animation: drift-a 14s infinite;
  animation-delay: -10s;
  opacity: 0.42;
}

.c19 {
  bottom: 5%;
  right: 8%;
  animation: drift-b 16s infinite;
  animation-delay: -7s;
  opacity: 0.48;
}

.c20 {
  top: 36%;
  left: 2%;
  animation: drift-c 11s infinite;
  animation-delay: -4s;
  font-size: 0.62rem;
  opacity: 0.4;
}

.c21 {
  bottom: 14%;
  right: 76%;
  animation: drift-a 13s infinite;
  animation-delay: -11s;
  opacity: 0.5;
}

.c22 {
  top: 58%;
  right: 2%;
  animation: drift-b 15s infinite;
  animation-delay: -2s;
  opacity: 0.45;
}

.c23 {
  top: 9%;
  right: 52%;
  animation: drift-c 18s infinite;
  animation-delay: -14s;
  opacity: 0.38;
}

.c24 {
  bottom: 22%;
  right: 2%;
  animation: drift-a 10s infinite;
  animation-delay: -6s;
  font-size: 0.62rem;
}

.c25 {
  top: 74%;
  left: 2%;
  animation: drift-b 17s infinite;
  animation-delay: -9s;
  opacity: 0.42;
}

.c26 {
  top: 13%;
  left: 92%;
  animation: drift-c 14s infinite;
  animation-delay: -12s;
  opacity: 0.36;
}

.c27 {
  bottom: 30%;
  left: 2%;
  animation: drift-a 19s infinite;
  animation-delay: -5s;
  opacity: 0.4;
}

.c28 {
  top: 41%;
  right: 90%;
  animation: drift-b 12s infinite;
  animation-delay: -8s;
  opacity: 0.44;
}

.c29 {
  bottom: 10%;
  right: 44%;
  animation: drift-c 16s infinite;
  animation-delay: -13s;
  font-size: 0.62rem;
  opacity: 0.42;
}

.c30 {
  top: 52%;
  left: 90%;
  animation: drift-b 14s infinite;
  animation-delay: -3s;
  opacity: 0.35;
}

@keyframes drift-d {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  40% {
    transform: translate(-22px, 18px) scale(1.03);
  }

  70% {
    transform: translate(14px, -26px) scale(0.98);
  }
}

/* Large drifting vectors + small logo marks */
.bg-decor {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.float-vec {
  position: absolute;
  filter: drop-shadow(0 6px 20px var(--vec-drop));
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.float-vec svg {
  display: block;
  width: 100%;
  height: auto;
}

.float-vec--lg {
  width: min(168px, 22vw);
  opacity: 0.52;
}

.float-vec--md {
  width: min(130px, 17vw);
  opacity: 0.46;
}

.float-vec--sm {
  width: min(96px, 14vw);
  opacity: 0.4;
}

.vv1 {
  top: 3%;
  left: 3%;
  animation: drift-b 20s infinite;
  animation-delay: -4s;
}

.vv2 {
  top: 5%;
  right: 4%;
  animation: drift-c 17s infinite;
  animation-delay: -9s;
}

.vv3 {
  bottom: 6%;
  left: 4%;
  animation: drift-a 18s infinite;
  animation-delay: -6s;
}

.vv4 {
  top: 33%;
  right: 2%;
  animation: drift-d 22s infinite;
  animation-delay: -11s;
}

.vv5 {
  bottom: 18%;
  right: 6%;
  animation: drift-b 15s infinite;
  animation-delay: -2s;
}

.vv6 {
  top: 62%;
  left: 2%;
  animation: drift-c 19s infinite;
  animation-delay: -14s;
}

.float-logo {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--float-logo-bg);
  border: 1px solid var(--float-logo-border);
  box-shadow: 0 4px 18px var(--float-logo-shadow);
  opacity: 0.78;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.float-logo svg {
  width: 28px;
  height: 28px;
}

.fl1 {
  top: 24%;
  left: 8%;
  animation: drift-c 11s infinite;
  animation-delay: -3s;
}

.fl2 {
  top: 14%;
  right: 8%;
  animation: drift-a 13s infinite;
  animation-delay: -7s;
}

.fl3 {
  bottom: 22%;
  left: 10%;
  animation: drift-b 12s infinite;
  animation-delay: -5s;
}

.fl4 {
  top: 72%;
  right: 6%;
  animation: drift-d 14s infinite;
  animation-delay: -10s;
}

.fl5 {
  bottom: 10%;
  right: 12%;
  animation: drift-c 15s infinite;
  animation-delay: -1s;
}

.fl6 {
  top: 48%;
  left: 6%;
  animation: drift-b 16s infinite;
  animation-delay: -12s;
  opacity: 0.55;
}

.fl7 {
  bottom: 44%;
  right: 3%;
  animation: drift-a 12s infinite;
  animation-delay: -8s;
}

.fl8 {
  top: 8%;
  left: 52%;
  animation: drift-d 13s infinite;
  animation-delay: -6s;
  opacity: 0.62;
}

/* Hash ticker strips */
.hash-strip {
  position: fixed;
  left: 0;
  right: 0;
  height: 1.5rem;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: var(--hash-opacity);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.65rem;
  color: var(--muted);
  white-space: nowrap;
  animation: hash-scroll 28s linear infinite;
}

.hash-strip--top {
  top: 14%;
  animation-duration: 32s;
  animation-direction: reverse;
}

.hash-strip--bottom {
  top: auto;
  bottom: 22%;
  animation-duration: 24s;
}

@keyframes hash-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.hash-inner {
  display: inline-block;
  padding-left: 2rem;
}

/* Floating merge icons */
.merge-blob {
  position: fixed;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--merge-blob-1), var(--merge-blob-2));
  border: 1px solid var(--merge-blob-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  pointer-events: none;
  animation: blob-float 7s ease-in-out infinite;
}

.merge-blob--a {
  top: 11%;
  left: 12%;
  animation-delay: -2s;
}

.merge-blob--b {
  bottom: 22%;
  right: 4%;
  animation: blob-float 9s ease-in-out infinite reverse;
  animation-delay: -4s;
  opacity: 0.85;
}

.merge-blob--c {
  top: 64%;
  left: 4%;
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  animation-duration: 6s;
  opacity: 0.7;
}

@keyframes blob-float {

  0%,
  100% {
    transform: translate(0, 0) rotate(-5deg);
  }

  50% {
    transform: translate(18px, -22px) rotate(8deg);
  }
}

/* ---- Commit dots parade ---- */
.commits {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.commit-line {
  position: absolute;
  bottom: 48px;
  left: -100%;
  width: 200%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--git-orange), var(--gh-green), transparent);
  opacity: 0.35;
  animation: commit-scroll 18s linear infinite;
}

.commit-line:nth-child(2) {
  bottom: 72px;
  animation-duration: 24s;
  animation-direction: reverse;
  opacity: 0.2;
}

@keyframes commit-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(50%);
  }
}

.commit-dot {
  position: absolute;
  bottom: 44px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--git-orange);
  box-shadow: 0 0 12px var(--git-orange);
  animation: dot-march 14s linear infinite;
}

.commit-dot:nth-child(4) {
  animation-delay: -3.5s;
  background: var(--gh-green);
  box-shadow: 0 0 12px var(--gh-green);
  bottom: 68px;
}

.commit-dot:nth-child(5) {
  animation-delay: -7s;
  background: var(--agile-blue);
  box-shadow: 0 0 12px var(--agile-blue);
}

.commit-dot:nth-child(6) {
  animation-delay: -10.5s;
  background: var(--merge-purple);
  box-shadow: 0 0 12px var(--merge-purple);
  bottom: 68px;
}

@keyframes dot-march {
  0% {
    left: -5%;
    opacity: 0;
  }

  5% {
    opacity: 1;
  }

  95% {
    opacity: 1;
  }

  100% {
    left: 105%;
    opacity: 0;
  }
}

/* ---- Kanban cards ---- */
.kanban-stack {
  position: fixed;
  right: min(2.5vw, 20px);
  top: 48%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.kanban-card {
  width: 140px;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 8px 32px var(--kanban-shadow);
  animation: card-wiggle 4s ease-in-out infinite;
  color: var(--ink);
}

.kanban-card:nth-child(1) {
  background: var(--kanban-1);
  border-left: 4px solid var(--muted);
  margin-left: 0;
  animation-delay: 0s;
}

.kanban-card:nth-child(2) {
  background: var(--kanban-2);
  border-left: 4px solid var(--agile-blue);
  margin-left: -12px;
  animation-delay: -1.3s;
}

.kanban-card:nth-child(3) {
  background: var(--kanban-3);
  border-left: 4px solid var(--gh-green);
  margin-left: -24px;
  animation-delay: -2.6s;
}

@keyframes card-wiggle {

  0%,
  100% {
    transform: translateX(0) rotate(-1deg);
  }

  50% {
    transform: translateX(-6px) rotate(2deg);
  }
}

/* ---- Branch SVG ---- */
.branch-art {
  position: fixed;
  left: min(2.5vw, 20px);
  top: 12%;
  z-index: 2;
  width: min(180px, 28vw);
  opacity: 0.7;
  pointer-events: none;
  animation: branch-sway 8s ease-in-out infinite;
}

@keyframes branch-sway {

  0%,
  100% {
    transform: rotate(-1deg) translateY(0);
  }

  50% {
    transform: rotate(2deg) translateY(-8px);
  }
}

/* ---- Home hero panel ---- */
main.home-main {
  position: relative;
  z-index: 10;
  max-width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2rem) 8rem;
  text-align: center;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  box-shadow: 0 4px 32px var(--panel-outer), inset 0 1px 0 var(--panel-inset);
  backdrop-filter: blur(4px) saturate(1.02);
  -webkit-backdrop-filter: blur(4px) saturate(1.02);
}

.badge-row {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.badge {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--badge-border);
  background: var(--badge-bg);
  backdrop-filter: blur(8px);
  animation: badge-pop 3s ease-in-out infinite;
}

.badge:nth-child(2) {
  animation-delay: -1s;
}

.badge:nth-child(3) {
  animation-delay: -2s;
}

@keyframes badge-pop {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

main.home-main h1 {
  font-size: clamp(2.5rem, 7vw, 3.75rem);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--ink) 0%, var(--agile-blue) 45%, var(--git-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: title-shimmer 8s ease-in-out infinite;
}

@keyframes title-shimmer {

  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.15);
  }
}

.tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--muted);
  margin: 0 auto 1.75rem;
  max-width: 32em;
  line-height: 1.5;
}

.jokes {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(0.75rem, 1.5vw, 0.88rem);
  color: var(--jokes-color);
  margin: 0 auto 2rem;
  max-width: 36em;
  line-height: 1.7;
  opacity: 0.95;
}

.jokes span {
  display: inline-block;
  animation: joke-bob 5s ease-in-out infinite;
}

.jokes span:nth-child(2) {
  animation-delay: -1.6s;
}

.jokes span:nth-child(3) {
  animation-delay: -3.2s;
}

@keyframes joke-bob {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
}

.btn {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  padding: 0.9rem 1.75rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: linear-gradient(135deg, var(--git-orange), #c73e28);
  color: white;
  box-shadow: 0 8px 32px rgba(240, 80, 51, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(240, 80, 51, 0.45);
}

.btn--ghost {
  background: var(--btn-ghost-bg);
  color: var(--ink);
  border: 1px solid var(--btn-ghost-border);
}

.btn--ghost:hover {
  border-color: var(--agile-blue);
  transform: translateY(-2px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  text-align: left;
  margin-top: 2rem;
}

.feature {
  background: var(--feature-bg);
  border: 1px solid var(--feature-border);
  border-radius: 16px;
  padding: 1.25rem;
  backdrop-filter: blur(12px);
  transition: border-color 0.2s, transform 0.2s;
}

.feature:hover {
  border-color: var(--feature-hover-border);
  transform: translateY(-4px);
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
}

.feature p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

footer {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem 1rem 3rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.65rem;
  margin: 0 0 0.9rem;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.site-footer-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
}

.site-footer-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.site-footer-nav a[aria-current="page"] {
  color: var(--agile-blue);
}

footer a {
  color: var(--agile-blue);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ---- Theme switch ---- */
.theme-toggle {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: var(--badge-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 14px var(--floaty-shadow);
  transition: border-color 0.2s, transform 0.15s;
}

.theme-toggle:hover {
  border-color: var(--agile-blue);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--agile-blue);
  outline-offset: 3px;
}

.theme-toggle:active {
  transform: scale(0.97);
}

.theme-toggle__track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--feature-bg);
  border: 1px solid var(--badge-border);
  flex-shrink: 0;
}

.theme-toggle__thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform 0.22s ease;
  box-shadow: 0 1px 4px var(--floaty-shadow);
}

html[data-theme="light"] .theme-toggle__thumb {
  transform: translateX(18px);
}

.theme-toggle__glyph {
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.9;
}

.badge--git {
  color: var(--badge-git-fg);
}

.badge--gh {
  color: var(--badge-gh-fg);
}

.badge--agile {
  color: var(--badge-agile-fg);
}

/* ---- Spinning agile wheel (subtle) ---- */
.sprint-wheel {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 2px dashed var(--sprint-wheel);
  bottom: -120px;
  left: 50%;
  margin-left: -140px;
  z-index: 1;
  animation: spin-slow 40s linear infinite;
  pointer-events: none;
}

@keyframes spin-slow {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .kanban-stack {
    display: none;
  }

  .branch-art {
    opacity: 0.35;
    width: 120px;
  }

  .vv1,
  .vv2,
  .vv5 {
    display: none;
  }

  .float-logo.fl6,
  .float-logo.fl8 {
    display: none;
  }

  .float-vec--lg {
    width: min(120px, 34vw);
  }
}

/* ---- Site navigation (all pages) ---- */
.site-nav {
  position: fixed;
  top: max(0.75rem, env(safe-area-inset-top));
  left: max(0.75rem, env(safe-area-inset-left));
  z-index: 9999;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
  max-width: min(100%, calc(100vw - 9rem));
}

.site-nav a {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: var(--badge-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.15s, color 0.15s;
}

.site-nav a:hover {
  color: var(--ink);
  border-color: var(--agile-blue);
}

.site-nav a[aria-current="page"] {
  color: var(--agile-blue);
  border-color: var(--feature-hover-border);
}

/* Inner pages */
.page-shell {
  position: relative;
  z-index: 10;
  max-width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4.25rem, 8vw, 5rem) clamp(1.25rem, 4vw, 2rem) 4rem;
}

.page-shell--wide {
  max-width: min(840px, calc(100% - 2rem));
}

.page-shell main {
  position: relative;
  z-index: 10;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  box-shadow: 0 4px 32px var(--panel-outer), inset 0 1px 0 var(--panel-inset);
  backdrop-filter: blur(4px) saturate(1.02);
  -webkit-backdrop-filter: blur(4px) saturate(1.02);
  padding: clamp(1.5rem, 4vw, 2rem) clamp(1.25rem, 4vw, 2rem);
  text-align: left;
}

.page-shell h1 {
  font-size: clamp(1.75rem, 5vw, 2.35rem);
  font-weight: 900;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: var(--ink);
  animation: none;
}

.page-lede {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 1.25rem;
}

.rules-prose {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.rules-prose h2 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--ink);
  margin: 1.75rem 0 0.65rem;
}

.rules-prose h2:first-child {
  margin-top: 0;
}

.rules-prose ul,
.rules-prose ol {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.rules-prose li {
  margin-bottom: 0.35rem;
}

.rules-prose p {
  margin: 0 0 0.75rem;
}

.rules-prose strong {
  color: var(--ink);
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  align-items: center;
}

.game-placeholder {
  margin: 1rem 0 0;
  padding: 1.25rem 1rem;
  border-radius: 12px;
  border: 1px dashed var(--feature-border);
  background: var(--feature-bg);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}

.requirements-list {
  margin-top: 0.5rem;
}

.requirements-list li {
  margin-bottom: 0.5rem;
}

.play-instructions {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.play-instructions a {
  color: var(--agile-blue);
  font-weight: 700;
  text-decoration: none;
}

.play-instructions a:hover {
  text-decoration: underline;
}

.play-instructions p {
  margin: 0 0 0.85rem;
}

.play-instructions p:last-child {
  margin-bottom: 0;
}

.sprint-timer-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  margin-top: 1.25rem;
  padding: 1.35rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--feature-border);
  background: var(--feature-bg);
  text-align: center;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Nested inside requirements-card--orange (Play page) — avoid double frame */
.sprint-timer-card--embedded {
  margin-top: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.sprint-timer-card--sprint1-end {
  animation: sprint1-end-celebrate 1.35s ease-out;
}

@keyframes sprint1-end-celebrate {
  0% {
    transform: scale(1);
    border-color: var(--feature-border);
    box-shadow: 0 0 0 0 rgba(88, 166, 255, 0);
  }
  25% {
    transform: scale(1.02);
    border-color: rgba(88, 166, 255, 0.65);
    box-shadow:
      0 0 0 3px rgba(88, 166, 255, 0.25),
      0 12px 40px rgba(0, 0, 0, 0.18);
  }
  55% {
    transform: scale(1.01);
    border-color: rgba(63, 185, 80, 0.45);
    box-shadow:
      0 0 0 2px rgba(63, 185, 80, 0.2),
      0 8px 28px rgba(63, 185, 80, 0.12);
  }
  100% {
    transform: scale(1);
    border-color: var(--feature-border);
    box-shadow: 0 0 0 0 rgba(88, 166, 255, 0);
  }
}

html[data-theme="light"] .sprint-timer-card--sprint1-end {
  animation-name: sprint1-end-celebrate-light;
}

@keyframes sprint1-end-celebrate-light {
  0% {
    transform: scale(1);
    border-color: var(--feature-border);
    box-shadow: 0 0 0 0 rgba(26, 95, 180, 0);
  }
  25% {
    transform: scale(1.02);
    border-color: rgba(26, 95, 180, 0.55);
    box-shadow:
      0 0 0 3px rgba(26, 95, 180, 0.15),
      0 12px 36px rgba(15, 60, 120, 0.12);
  }
  55% {
    transform: scale(1.01);
    border-color: rgba(26, 135, 55, 0.4);
    box-shadow:
      0 0 0 2px rgba(26, 135, 55, 0.15),
      0 8px 24px rgba(26, 135, 55, 0.08);
  }
  100% {
    transform: scale(1);
    border-color: var(--feature-border);
    box-shadow: 0 0 0 0 rgba(26, 95, 180, 0);
  }
}

.sprint-timer-display--locked {
  opacity: 0.72;
  filter: grayscale(0.25);
}

.sprint-flow-block.is-hidden {
  display: none;
}

.sprint-timers-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  width: 100%;
}

.sprint-timer-row[hidden] {
  display: none !important;
}

#retro-panel[hidden] {
  display: none !important;
}

.sprint-timer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.15rem 0 0.25rem;
}

.sprint-timer-row__badge {
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

.sprint-timer-row__status {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 0.25rem;
  min-height: 1.35em;
}

.sprint-timer-row--done .sprint-timer-display:not(.sprint-timer-display--locked) {
  opacity: 0.85;
}

.sprint-controls-dock {
  width: 100%;
  margin-top: 0.25rem;
}

.sprint-controls-dock[hidden] {
  display: none !important;
}

.sprint-timer-display--row {
  margin-top: 0.1rem;
  margin-bottom: 0.25rem;
  font-size: clamp(2rem, 7vw, 3rem);
}

.sprint-retro-panel {
  margin-top: 0.35rem;
  margin-bottom: 0;
  padding: 1.15rem 1.35rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(88, 166, 255, 0.35);
  background: linear-gradient(
    165deg,
    rgba(88, 166, 255, 0.14) 0%,
    rgba(0, 0, 0, 0.16) 55%,
    rgba(0, 0, 0, 0.1) 100%
  );
  text-align: left;
  max-width: 30rem;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .sprint-retro-panel {
  border-color: rgba(26, 95, 180, 0.35);
  background: linear-gradient(
    165deg,
    rgba(26, 95, 180, 0.1) 0%,
    rgba(255, 255, 255, 0.65) 50%,
    rgba(255, 255, 255, 0.45) 100%
  );
  box-shadow: 0 6px 22px rgba(15, 60, 120, 0.08);
}

.sprint-retro-panel__lead {
  margin: 0 0 0.65rem;
  font-family: Outfit, system-ui, sans-serif;
  font-size: clamp(1.15rem, 3.5vw, 1.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}

.sprint-retro-panel__body {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 2.5vw, 1.08rem);
  line-height: 1.55;
  color: var(--ink);
  opacity: 0.96;
}

.sprint-retro-panel .btn {
  margin-top: 0.15rem;
  width: 100%;
  justify-content: center;
}

.retro-run-banner {
  text-align: left;
}

.retro-run-banner .sprint-retro-panel__lead {
  margin-bottom: 0.35rem;
}

.retro-run-banner .sprint-retro-panel__body--compact {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0.88;
}

.sprint-retro-panel--during-countdown {
  padding: 0.85rem 1.15rem 1rem;
  margin-bottom: 0.25rem;
  border-style: dashed;
  opacity: 0.96;
}

.sprint-retro-panel--during-countdown .retro-run-banner .sprint-retro-panel__lead {
  font-size: clamp(1rem, 2.8vw, 1.15rem);
  margin-bottom: 0.35rem;
}

.sprint-timer-card--phase-secondary-timer .sprint-controls-dock .sprint-flow-block {
  margin-top: 0.15rem;
}

.sprint-done-panel {
  margin-top: 0.75rem;
  padding: 1rem 1rem 1.05rem;
  border-radius: 12px;
  border: 1px dashed var(--feature-border);
  background: rgba(0, 0, 0, 0.12);
  text-align: left;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

html[data-theme="light"] .sprint-done-panel {
  background: rgba(255, 255, 255, 0.45);
}

.sprint-done-panel p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink);
}

.play-restart-game {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--feature-border);
  text-align: center;
}

.play-restart-game .btn {
  font-size: 0.82rem;
  opacity: 0.88;
}

.sprint-timer-display {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(2.25rem, 8vw, 3.25rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  margin: 0.25rem 0 0.5rem;
  letter-spacing: 0.06em;
}

.sprint-timer-status {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 1rem;
  min-height: 1.35em;
}

.sprint-timer-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
}

.sprint-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: center;
  align-items: center;
  padding-top: 0.65rem;
  margin-top: 0.15rem;
  border-top: 1px solid var(--feature-border);
}

.btn--sprint-ctrl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  min-height: auto;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  flex: 0 1 auto;
  min-width: auto;
}

.btn--sprint-ctrl svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.btn--sprint-ctrl__label {
  line-height: 1.15;
}

.btn--sprint-ctrl .btn--sprint-ctrl__svg[hidden] {
  display: none;
}

.btn--sprint-ctrl--caution:not(:disabled):hover {
  border-color: rgba(240, 80, 51, 0.55);
  color: var(--git-orange);
}

html[data-theme="light"] .btn--sprint-ctrl--caution:not(:disabled):hover {
  border-color: rgba(199, 62, 40, 0.45);
  color: #c73e28;
}

.btn--primary:disabled,
.btn--ghost:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* —— Project requirements page —— */
.requirements-main {
  max-width: 46rem;
  margin: 0 auto;
}

.requirements-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.35rem;
  border-radius: 16px;
  border: 1px solid var(--feature-border);
  background:
    linear-gradient(135deg, rgba(88, 166, 255, 0.12) 0%, rgba(240, 80, 51, 0.08) 50%, rgba(63, 185, 80, 0.06) 100%),
    var(--feature-bg);
  box-shadow: 0 8px 32px var(--panel-outer);
}

.requirements-hero__visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.requirements-hero__svg {
  display: block;
  color: var(--vec-drop);
}

.requirements-hero__svg .requirements-hero__shadow {
  fill: var(--vec-drop);
}

.requirements-hero__text {
  flex: 1;
  min-width: min(100%, 16rem);
}

.requirements-hero__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--agile-blue);
}

.requirements-hero .page-lede,
.requirements-hero__lede {
  margin-bottom: 0;
}

.requirements-prose {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.requirements-prose > .requirements-card:first-child .requirements-card__head h2 {
  margin-top: 0;
}

.requirements-card {
  padding: 1.15rem 1.25rem 1.2rem;
  border-radius: 14px;
  border: 1px solid var(--feature-border);
  background: var(--feature-bg);
  box-shadow: 0 2px 16px var(--floaty-shadow);
}

.requirements-card__head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.requirements-card__emoji {
  font-size: 1.45rem;
  line-height: 1;
}

.requirements-prose .requirements-card .requirements-card__head h2 {
  margin: 0;
  font-size: 1.08rem;
}

.requirements-card > p:last-child {
  margin-bottom: 0;
}

.requirements-card--blue {
  border-left: 4px solid var(--agile-blue);
  background: linear-gradient(
    90deg,
    rgba(88, 166, 255, 0.08) 0%,
    var(--feature-bg) 38%
  );
}

.requirements-card--orange {
  border-left: 4px solid var(--git-orange);
  background: linear-gradient(
    90deg,
    rgba(240, 80, 51, 0.07) 0%,
    var(--feature-bg) 38%
  );
}

.requirements-card--green {
  border-left: 4px solid var(--gh-green);
  background: linear-gradient(
    90deg,
    rgba(63, 185, 80, 0.08) 0%,
    var(--feature-bg) 38%
  );
}

.requirements-card--purple {
  border-left: 4px solid var(--merge-purple);
  background: linear-gradient(
    90deg,
    rgba(163, 113, 247, 0.1) 0%,
    var(--feature-bg) 38%
  );
}

.requirements-card--yellow {
  border-left: 4px solid var(--retro-yellow);
  background: linear-gradient(
    90deg,
    rgba(240, 224, 64, 0.14) 0%,
    var(--feature-bg) 38%
  );
}

.requirements-rq-box {
  margin-top: 0.5rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 14px;
  border: 1px solid var(--feature-border);
  border-left: 4px solid var(--merge-purple);
  background:
    linear-gradient(165deg, rgba(163, 113, 247, 0.09) 0%, var(--feature-bg) 45%),
    var(--feature-bg);
  box-shadow: 0 4px 24px var(--panel-outer);
}

.requirements-rq-intro {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin: 0;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--feature-border);
  border-radius: 0;
  border: none;
  background: none;
}

.requirements-rq-intro__icon {
  font-size: 1.75rem;
  line-height: 1;
}

.requirements-rq-intro h2 {
  margin: 0 0 0.45rem;
}

.requirements-rq-intro p {
  margin: 0;
}

.requirements-rq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-top: 1rem;
  padding-top: 0;
}

@media (min-width: 560px) {
  .requirements-rq-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.requirements-rq-tile {
  padding: 1rem 1.1rem 1.05rem;
  border-radius: 12px;
  border: 1px solid var(--feature-border);
  background: var(--panel-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.requirements-rq-tile:hover {
  border-color: var(--feature-hover-border);
  box-shadow: 0 4px 20px var(--panel-outer);
}

.requirements-rq-tile__icon {
  font-size: 1.65rem;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.requirements-rq-tile h3 {
  margin: 0 0 0.45rem;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
}

.requirements-rq-tile p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
}

.requirements-rq-tile--sports {
  border-top: 3px solid var(--git-orange);
}

.requirements-rq-tile--world {
  border-top: 3px solid var(--agile-blue);
}

.requirements-rq-tile--weather {
  border-top: 3px solid var(--gh-green);
}

.requirements-rq-tile--meta {
  border-top: 3px solid var(--merge-purple);
}

@media (min-width: 720px) {
  .requirements-hero {
    flex-wrap: nowrap;
    padding: 1.5rem 1.65rem;
  }
}

.page-shell--wide .requirements-main .page-lede {
  max-width: none;
}

/* —— Workflow page —— */
.workflow-intro-note {
  margin-bottom: 0;
}

.workflow-steps {
  margin: 0.35rem 0 0;
  padding-left: 1.35rem;
  color: var(--muted);
}

.workflow-steps strong {
  color: var(--ink);
}

.workflow-steps li {
  margin-bottom: 0.55rem;
  padding-left: 0.25rem;
}

.workflow-steps li:last-child {
  margin-bottom: 0;
}

.workflow-steps a {
  color: var(--agile-blue);
  font-weight: 700;
  text-decoration: none;
}

.workflow-steps a:hover {
  text-decoration: underline;
}

.workflow-code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.88em;
  font-weight: 600;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: rgba(88, 166, 255, 0.12);
  color: var(--ink);
}

html[data-theme="light"] .workflow-code {
  background: rgba(26, 95, 180, 0.1);
}

.requirements-hero .page-lede a {
  color: var(--agile-blue);
  font-weight: 700;
  text-decoration: none;
}

.requirements-hero .page-lede a:hover {
  text-decoration: underline;
}

/* —— Game rules page —— */
.rules-callouts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

@media (min-width: 560px) {
  .rules-callouts {
    grid-template-columns: 1fr 1fr;
  }
}

.rules-callout {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--feature-border);
  background: var(--feature-bg);
  box-shadow: 0 2px 14px var(--floaty-shadow);
}

.rules-callout__emoji {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.rules-callout p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.rules-callout--time {
  border-left: 4px solid var(--retro-yellow);
  background: linear-gradient(
    90deg,
    rgba(240, 224, 64, 0.12) 0%,
    var(--feature-bg) 40%
  );
}

.rules-callout--help {
  border-left: 4px solid var(--agile-blue);
  background: linear-gradient(
    90deg,
    rgba(88, 166, 255, 0.1) 0%,
    var(--feature-bg) 40%
  );
}

.rules-footnote {
  margin: 0.75rem 0 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.88rem;
  line-height: 1.45;
  border-radius: 10px;
  border: 1px dashed var(--feature-border);
  background: rgba(163, 113, 247, 0.06);
  color: var(--muted);
}

.rules-footnote strong {
  color: var(--ink);
}

.rules-role-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 620px) {
  .rules-role-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .rules-role-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.rules-role-tile {
  padding: 0.85rem 0.95rem;
  border-radius: 11px;
  border: 1px solid var(--feature-border);
  background: var(--panel-bg);
}

.rules-role-tile__emoji {
  font-size: 1.4rem;
  line-height: 1;
  display: block;
  margin-bottom: 0.35rem;
}

.rules-role-tile h3 {
  margin: 0 0 0.4rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
}

.rules-role-tile p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
}

.rules-role-tile--researcher {
  border-top: 3px solid var(--merge-purple);
}

.rules-role-tile--scrum {
  border-top: 3px solid var(--agile-blue);
}

.rules-role-tile--lead {
  border-top: 3px solid var(--git-orange);
}

.rules-role-tile--dev {
  border-top: 3px solid var(--gh-green);
}
