:root {
  --ink: #101820;
  --muted: #5a6874;
  --line: rgba(16, 24, 32, 0.12);
  --paper: #edf1f4;
  --paper-deep: #d9e2ea;
  --accent: #0f8f7b;
  --accent-deep: #0a6b5c;
  --signal: #d97706;
  --bart: #0b5fff;
  --muni: #c8102e;
  --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  background:
    radial-gradient(ellipse 80% 50% at 100% -5%, rgba(15, 143, 123, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at -10% 20%, rgba(217, 119, 6, 0.12), transparent 50%),
    linear-gradient(165deg, #f5f7f9 0%, var(--paper) 42%, var(--paper-deep) 100%);
  min-height: 100vh;
}

a {
  color: var(--accent-deep);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 40;
  padding: 0.55rem 0.85rem;
  background: var(--ink);
  color: white;
  border-radius: 4px;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.25rem);
  backdrop-filter: blur(12px);
  background: rgba(245, 247, 249, 0.88);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  color: var(--ink);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

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

.hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(2.5rem, 8vw, 5rem) clamp(1rem, 4vw, 2.25rem) clamp(2rem, 5vw, 3.25rem);
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, transparent 40%, rgba(11, 95, 255, 0.07) 70%, transparent 100%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 11px,
      rgba(16, 24, 32, 0.035) 11px,
      rgba(16, 24, 32, 0.035) 12px
    );
  animation: wash 14s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: 8%;
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 143, 123, 0.22), transparent 68%);
  z-index: -1;
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes wash {
  from { opacity: 0.7; transform: translateX(-1%); }
  to { opacity: 1; transform: translateX(1.5%); }
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-6%, -4%) scale(1.08); }
}

.brand-mark {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 5.2rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--ink);
  animation: rise 700ms ease both;
}

.hero h1 {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.6vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  animation: rise 700ms 80ms ease both;
}

.hero-dek {
  margin: 1rem 0 0;
  max-width: 38rem;
  font-size: clamp(1.02rem, 2.1vw, 1.18rem);
  color: var(--muted);
  animation: rise 700ms 140ms ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.page {
  padding: 0 clamp(1rem, 4vw, 2.25rem) 4rem;
  display: grid;
  gap: 3.5rem;
  max-width: 52rem;
}

.agency-header {
  margin-bottom: 1.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--ink);
}

.agency-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

#bart .agency-kicker {
  color: var(--bart);
}

#muni .agency-kicker {
  color: var(--muni);
}

.agency-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
}

.idea-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: idea;
}

.idea-list li {
  counter-increment: idea;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  column-gap: 0.85rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  animation: rise 600ms ease both;
}

.idea-list li:nth-child(1) { animation-delay: 40ms; }
.idea-list li:nth-child(2) { animation-delay: 70ms; }
.idea-list li:nth-child(3) { animation-delay: 100ms; }
.idea-list li:nth-child(4) { animation-delay: 130ms; }
.idea-list li:nth-child(5) { animation-delay: 160ms; }
.idea-list li:nth-child(6) { animation-delay: 190ms; }
.idea-list li:nth-child(7) { animation-delay: 220ms; }
.idea-list li:nth-child(8) { animation-delay: 250ms; }
.idea-list li:nth-child(9) { animation-delay: 280ms; }
.idea-list li:nth-child(10) { animation-delay: 310ms; }
.idea-list li:nth-child(11) { animation-delay: 340ms; }

.idea-list li::before {
  content: counter(idea, decimal-leading-zero);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1.4;
}

.idea-list h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  grid-column: 2;
}

.idea-list p {
  margin: 0.35rem 0 0;
  grid-column: 2;
  color: var(--muted);
  font-size: 0.98rem;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
  padding: 1.5rem clamp(1rem, 4vw, 2.25rem) 2.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

.footer a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  color: var(--accent-deep);
}

@media (max-width: 560px) {
  .idea-list li {
    grid-template-columns: 2rem 1fr;
    column-gap: 0.65rem;
  }

  .brand-mark {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
