/* =============================================================================
   MARCHING MUTTS BOOTCAMP LTD — shared styles
   CONFIG: Replace CSS variables below for brand colors (search "CONFIG")
   ============================================================================= */

:root {
  /* CONFIG: Brand palette */
  --bg-deep: #0c0e14;
  --bg-elevated: #12151f;
  --bg-card: #161a26;
  --ink: #e8eaf0;
  --muted: #8b92a8;
  --accent: #5eead4;
  --accent-dim: #2dd4bf33;
  --warm: #f97316;
  --warm-dim: #fb923c22;
  --line: #ffffff12;
  --maxw: 72rem;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-display: "Instrument Sans", system-ui, sans-serif;
  --radius: 14px;
  --shadow: 0 24px 80px #00000066;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg-deep);
  min-height: 100vh;
}

/* Background mesh + grain (unique atmosphere, CSS-only) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, var(--accent-dim), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 30%, var(--warm-dim), transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 80%, #6366f122, transparent 45%),
    var(--bg-deep);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Layout utilities --- */
.wrap {
  width: min(100% - 2rem, var(--maxw));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: #0c0e14cc;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
}

/* --- Hero (index only accents) --- */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 38ch;
  margin: 0 0 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2dd4bf);
  color: #042f2e;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  text-decoration: none;
  filter: brightness(1.05);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  text-decoration: none;
  border-color: var(--accent);
  color: var(--accent);
}

.hero-visual {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Floating label — unique editorial touch */
.hero-float {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  transform-origin: center right;
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff08;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
}

@media (max-width: 899px) {
  .hero-float {
    display: none;
  }
}

/* --- Sections --- */
section {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.section-intro {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 2rem;
}

/* Manifesto strip — not generic cards */
.manifesto {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
}

.manifesto-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem 1.5rem;
  padding: 1.25rem 1.35rem;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.manifesto-row:last-child {
  border-bottom: 0;
}

.manifesto-num {
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--warm);
  padding-top: 0.15rem;
}

.manifesto-row h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.manifesto-row p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* Bento grid */
.bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .bento {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
  }

  .bento .span-2 {
    grid-column: span 2;
  }
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  opacity: 0.85;
}

.bento-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.bento-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Screenshots rail */
.shots {
  margin-top: 1.5rem;
}

.shots-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.75rem;
  -webkit-overflow-scrolling: touch;
}

.shots-track::-webkit-scrollbar {
  height: 6px;
}

.shots-track::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 4px;
}

.shot {
  flex: 0 0 min(240px, 70vw);
  scroll-snap-align: start;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  overflow: hidden;
}

.shot figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.shot img {
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  width: 100%;
  background: #1e293b;
}

/* Legal pages */
.page-legal {
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(4rem, 10vw, 6rem);
}

.page-legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.5rem;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}

.legal-body {
  max-width: 52rem;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
}

.legal-body p,
.legal-body ul {
  margin: 0 0 1rem;
  color: var(--muted);
}

.legal-body ul {
  padding-left: 1.25rem;
}

.legal-body li {
  margin-bottom: 0.35rem;
}

.legal-body a {
  word-break: break-word;
}

.pullquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 0 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--bg-elevated);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--ink);
}

/* Contacts */
.contact-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-card h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.dl-row {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.dl-row dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.dl-row dd {
  margin: 0;
  font-size: 1.05rem;
}

form label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

form input,
form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
}

form input:focus,
form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 0;
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

.form-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 600px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Page shell for flex footer stick */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page main {
  flex: 1;
}
