:root {
  color-scheme: light;
  --paper: #f7f8f4;
  --paper-strong: #ffffff;
  --ink: #171717;
  --muted: #5d625f;
  --line: #171717;
  --coral: #f06449;
  --mint: #80d6b5;
  --green: #54a264;
  --yellow: #f5c84b;
  --pink: #f4a6c6;
  --blue: #5fa8d3;
  --red: #ef4e45;
  --tile-radius: 6px;
  --shadow: 0 20px 50px rgb(23 23 23 / 10%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgb(23 23 23 / 4%) 1px, transparent 1px),
    linear-gradient(0deg, rgb(23 23 23 / 4%) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 50%;
  filter: drop-shadow(0 8px 12px rgb(244 166 198 / 24%));
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}

.header-filters,
.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--ink);
  box-shadow: 4px 4px 0 rgb(23 23 23 / 16%);
  color: var(--paper-strong);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.social-links a:hover {
  box-shadow: 2px 2px 0 rgb(23 23 23 / 26%);
  transform: translate(1px, 1px);
}

.social-links a[href*="linkedin"] {
  background: #0a66c2;
}

.social-links a[href*="youtube"] {
  background: var(--red);
}

.filter-button {
  border: 1px solid var(--line);
  border-radius: 5px 14px 5px 14px;
  background: var(--paper-strong);
  color: var(--ink);
  line-height: 1;
}

.intro-band {
  padding: 46px 0 26px;
}

.intro-poem {
  max-width: 640px;
  margin: 0;
  color: #4f5551;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.72;
}

.intro-poem span {
  display: block;
}

.eyebrow,
.tile-type {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.about-band h2 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.96;
  letter-spacing: 0;
  max-width: 920px;
}

.about-band p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.65;
}

.filter-group {
  display: inline-flex;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.filter-button {
  min-width: 86px;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 900;
  box-shadow: 3px 3px 0 rgb(23 23 23 / 12%);
}

.filter-button[data-filter="all"] {
  background: var(--yellow);
}

.filter-button[data-filter="project"] {
  background: #f8b7a7;
}

.filter-button[data-filter="data"] {
  background: #bde8ca;
}

.filter-button[data-filter="article"] {
  background: #cbe2f3;
}

.filter-button.is-active {
  background: var(--ink);
  color: var(--paper-strong);
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgb(23 23 23 / 24%);
}

.portfolio-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: 92px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.tile {
  position: relative;
  display: flex;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--tile-radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
  animation: card-rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--delay);
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgb(255 255 255 / 10%), transparent 36%);
}

.tile-link {
  appearance: none;
  padding: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
}

.tile-copy-button {
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.tile-copy-button:hover h2,
.tile-copy-button:focus-visible h2 {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.tile-link:hover .tile-art,
.tile-link:focus-visible .tile-art {
  transform: scale(1.035);
}

.tile-link:focus-visible,
.tile-copy-button:focus-visible,
.filter-button:focus-visible,
.social-links a:focus-visible,
.brand:focus-visible,
.modal-close:focus-visible,
.modal-link:focus-visible,
.load-more-button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.tile-small {
  grid-column: span 4;
  grid-row: span 4;
}

.tile-medium {
  grid-column: span 6;
  grid-row: span 4;
}

.tile-wide {
  grid-column: span 8;
  grid-row: span 4;
}

.tile-tall {
  grid-column: span 4;
  grid-row: span 4;
}

.tile-music {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: var(--ink);
  color: var(--paper-strong);
}

.video-frame {
  min-height: 0;
  border-bottom: 1px solid rgb(255 255 255 / 28%);
  background: #050505;
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.tile-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transition: transform 320ms ease;
}

.tile-copy {
  position: relative;
  z-index: 2;
  align-self: end;
  width: 100%;
  padding: 20px;
  background: linear-gradient(0deg, rgb(255 255 255 / 96%), rgb(255 255 255 / 72), transparent);
}

.tile-music .tile-copy {
  background: var(--ink);
}

.tile-copy h2 {
  margin: 8px 0 8px;
  font-size: clamp(1.28rem, 2.3vw, 2.15rem);
  line-height: 1;
  letter-spacing: 0;
}

.tile-copy p {
  max-width: 54ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.tile-music .tile-copy p {
  color: rgb(255 255 255 / 72%);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}

.tag-row span {
  padding: 6px 8px;
  border: 1px solid rgb(23 23 23 / 18%);
  border-radius: 999px;
  background: rgb(255 255 255 / 72%);
  font-size: 0.73rem;
  font-weight: 800;
}

.accent-coral .tile-art {
  background: var(--coral);
}

.accent-mint .tile-art {
  background: var(--mint);
}

.accent-green .tile-art {
  background: var(--green);
}

.accent-yellow .tile-art {
  background: var(--yellow);
}

.accent-pink .tile-art {
  background: var(--pink);
}

.accent-blue .tile-art {
  background: var(--blue);
}

.accent-red .tile-art {
  background: var(--red);
}

.accent-ink .tile-art {
  background: var(--ink);
}

.agent-map,
.equalizer,
.field-lines,
.record-plot,
.drama-board,
.math-board,
.youtube-board,
.youtube-debug-board,
.article-board {
  position: absolute;
  inset: 16px;
  border: 1px solid rgb(23 23 23 / 26%);
  border-radius: 4px;
}

.agent-map {
  background:
    linear-gradient(90deg, rgb(255 255 255 / 22%) 1px, transparent 1px),
    linear-gradient(0deg, rgb(255 255 255 / 22%) 1px, transparent 1px);
  background-size: 34px 34px;
}

.node {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-strong);
  animation: pulse-node 2.8s ease-in-out infinite;
}

.node-a {
  top: 26%;
  left: 18%;
}

.node-b {
  top: 19%;
  right: 20%;
  animation-delay: 220ms;
}

.node-c {
  right: 28%;
  bottom: 26%;
  animation-delay: 420ms;
}

.node-d {
  bottom: 20%;
  left: 27%;
  animation-delay: 640ms;
}

.route {
  position: absolute;
  height: 3px;
  border-radius: 99px;
  background: var(--ink);
  transform-origin: left center;
}

.route-one {
  top: 37%;
  left: 25%;
  width: 42%;
  rotate: -8deg;
}

.route-two {
  right: 27%;
  bottom: 35%;
  width: 38%;
  rotate: 15deg;
}

.score {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 950;
  color: rgb(255 255 255 / 42%);
}

.equalizer {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 10px;
  padding: 30px;
  background: repeating-linear-gradient(
    135deg,
    rgb(255 255 255 / 24%) 0 8px,
    transparent 8px 18px
  );
}

.equalizer span {
  width: 8%;
  height: 30%;
  border: 2px solid var(--ink);
  border-radius: 99px 99px 0 0;
  background: var(--paper-strong);
  animation: eq-bounce 900ms ease-in-out infinite alternate;
}

.equalizer span:nth-child(2n) {
  animation-delay: 180ms;
}

.equalizer span:nth-child(3n) {
  animation-delay: 320ms;
}

.field-lines {
  background:
    linear-gradient(90deg, transparent 49%, rgb(255 255 255 / 55%) 50%, transparent 51%),
    repeating-linear-gradient(90deg, rgb(255 255 255 / 26%) 0 2px, transparent 2px 34px);
}

.yard {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: rgb(255 255 255 / 70%);
}

.yard-a {
  top: 25%;
}

.yard-b {
  top: 50%;
}

.yard-c {
  top: 75%;
}

.route-arc {
  position: absolute;
  left: 22%;
  top: 20%;
  width: 46%;
  height: 50%;
  border-top: 4px solid var(--yellow);
  border-right: 4px solid var(--yellow);
  border-radius: 0 80% 0 0;
  animation: draw-route 2.2s ease-in-out infinite alternate;
}

.record-plot {
  background:
    radial-gradient(circle at 36% 42%, rgb(255 255 255 / 82%) 0 10px, transparent 11px),
    radial-gradient(
    circle at 36% 42%,
    transparent 0 38px,
    rgb(23 23 23 / 86%) 39px 43px,
    transparent 44px
  ),
    radial-gradient(
    circle at 36% 42%,
    transparent 0 72px,
    rgb(23 23 23 / 76%) 73px 77px,
    transparent 78px
  );
}

.ring,
.bar {
  position: absolute;
  border: 2px solid var(--ink);
  background: var(--paper-strong);
}

.ring {
  border-radius: 50%;
  animation: slow-spin 8s linear infinite;
}

.ring-one {
  top: 22%;
  left: 18%;
  width: 110px;
  height: 110px;
}

.ring-two {
  top: 35%;
  left: 29%;
  width: 62px;
  height: 62px;
}

.bar {
  right: 16%;
  width: 12%;
  border-radius: 4px 4px 0 0;
  bottom: 20%;
}

.bar-one {
  height: 35%;
}

.bar-two {
  right: 31%;
  height: 52%;
}

.bar-three {
  right: 46%;
  height: 23%;
}

.drama-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  padding: 18px;
  background: linear-gradient(180deg, rgb(255 255 255 / 30%), transparent);
}

.drama-board span {
  align-self: end;
  height: var(--height, 60%);
  border: 2px solid var(--ink);
  background: var(--paper-strong);
  animation: drama-rise 1.8s ease-in-out infinite alternate;
}

.drama-board span:nth-child(1) {
  --height: 38%;
}

.drama-board span:nth-child(2) {
  --height: 74%;
  animation-delay: 120ms;
}

.drama-board span:nth-child(3) {
  --height: 52%;
  animation-delay: 240ms;
}

.drama-board span:nth-child(4) {
  --height: 86%;
  animation-delay: 360ms;
}

.drama-board span:nth-child(5) {
  --height: 62%;
  animation-delay: 480ms;
}

.drama-board strong {
  position: absolute;
  right: 18px;
  top: 12px;
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  color: rgb(255 255 255 / 62%);
}

.math-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 18px;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 22%) 1px, transparent 1px),
    linear-gradient(0deg, rgb(255 255 255 / 22%) 1px, transparent 1px);
  background-size: 24px 24px;
}

.math-board span {
  display: grid;
  min-height: 64px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: rgb(255 255 255 / 78%);
  font-family: "Courier New", monospace;
  font-size: clamp(1.4rem, 4vw, 3rem);
  font-weight: 900;
  animation: math-float 3s ease-in-out infinite;
}

.math-board span:nth-child(2n) {
  animation-delay: 280ms;
}

.youtube-board {
  background:
    linear-gradient(90deg, rgb(255 255 255 / 22%) 1px, transparent 1px),
    linear-gradient(0deg, rgb(255 255 255 / 22%) 1px, transparent 1px);
  background-size: 30px 30px;
}

.play-mark {
  position: absolute;
  left: 28px;
  top: 28px;
  width: 78px;
  height: 54px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-strong);
}

.play-mark::after {
  content: "";
  position: absolute;
  left: 30px;
  top: 14px;
  border-block: 12px solid transparent;
  border-left: 18px solid var(--red);
}

.chart-line {
  position: absolute;
  left: 20%;
  width: 66%;
  height: 4px;
  border-radius: 999px;
  background: var(--ink);
  transform-origin: left center;
}

.line-a {
  top: 56%;
  rotate: -8deg;
}

.line-b {
  top: 70%;
  rotate: 6deg;
}

.chart-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  animation: pulse-node 2s ease-in-out infinite;
}

.dot-a {
  right: 30%;
  top: 51%;
}

.dot-b {
  right: 17%;
  top: 64%;
  animation-delay: 280ms;
}

.youtube-debug-board {
  overflow: hidden;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 18%) 1px, transparent 1px),
    linear-gradient(0deg, rgb(255 255 255 / 18%) 1px, transparent 1px),
    linear-gradient(135deg, rgb(255 255 255 / 24%), transparent 58%);
  background-size: 28px 28px, 28px 28px, auto;
}

.debug-play {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 86px;
  height: 58px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-strong);
  animation: debug-pulse 2s ease-in-out infinite;
}

.debug-play::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 34px;
  border-block: 12px solid transparent;
  border-left: 18px solid var(--red);
}

.debug-roadblock {
  position: absolute;
  top: 28px;
  right: 20px;
  padding: 8px 10px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--yellow);
  font-size: clamp(0.72rem, 1.5vw, 0.92rem);
  font-weight: 950;
  letter-spacing: 0.04em;
  rotate: -4deg;
  animation: debug-stamp 2.6s ease-in-out infinite;
}

.debug-revenue {
  position: absolute;
  bottom: 24px;
  width: 28px;
  border: 2px solid var(--ink);
  border-radius: 4px 4px 0 0;
  background: var(--paper-strong);
  transform-origin: bottom;
  animation: revenue-check 1.8s ease-in-out infinite alternate;
}

.debug-revenue-a {
  left: 28%;
  height: 44%;
}

.debug-revenue-b {
  left: 43%;
  height: 30%;
  animation-delay: 180ms;
}

.debug-revenue-c {
  left: 58%;
  height: 54%;
  animation-delay: 360ms;
}

.debug-scan {
  position: absolute;
  top: 54%;
  left: 18px;
  width: 78%;
  height: 4px;
  border-radius: 999px;
  background: var(--ink);
  rotate: -7deg;
  animation: debug-sweep 2.4s ease-in-out infinite;
}

.debug-alert {
  position: absolute;
  right: 24px;
  bottom: 28px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-strong);
  font-size: 1.2rem;
  font-weight: 950;
  animation: pulse-node 1.9s ease-in-out infinite;
}

.article-board {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 24px;
  background: repeating-linear-gradient(
    0deg,
    rgb(255 255 255 / 12%) 0 10px,
    transparent 10px 20px
  );
}

.article-board span {
  height: 18px;
  border: 2px solid rgb(255 255 255 / 75%);
  border-radius: 999px;
  animation: article-scan 2.4s ease-in-out infinite alternate;
}

.article-board span:nth-child(2) {
  width: 72%;
}

.article-board span:nth-child(3) {
  width: 88%;
}

.article-board span:nth-child(4) {
  width: 54%;
}

body.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(23 23 23 / 62%);
  backdrop-filter: blur(12px);
}

.modal-backdrop[hidden] {
  display: none;
}

.project-modal {
  width: min(920px, 100%);
  max-height: min(86vh, 900px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--tile-radius);
  background: var(--paper-strong);
  box-shadow: 0 30px 80px rgb(0 0 0 / 34%);
}

.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper-strong) 92%, transparent);
  backdrop-filter: blur(16px);
}

.modal-kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.modal-header h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.modal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
}

.modal-link {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 42px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.modal-link:hover {
  box-shadow: 2px 2px 0 rgb(23 23 23 / 18%);
  transform: translate(1px, 1px);
}

.modal-close {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper-strong);
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 950;
  line-height: 1;
}

.modal-body {
  display: grid;
  gap: 18px;
  padding: 26px 24px 30px;
}

.modal-body p {
  max-width: 76ch;
  margin: 0;
  color: #303432;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.72;
}

.modal-points {
  display: grid;
  gap: 12px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.modal-points li {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgb(23 23 23 / 18%);
  border-radius: 6px;
  background: #f9faf5;
}

.modal-points strong {
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.modal-points span {
  color: var(--muted);
  line-height: 1.55;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 4px;
}

.modal-tags span {
  padding: 7px 9px;
  border: 1px solid rgb(23 23 23 / 18%);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.76rem;
  font-weight: 900;
}

.about-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.7fr);
  gap: 28px;
  align-items: center;
  margin-top: 18px;
  margin-bottom: 28px;
  padding: 38px 0 10px;
}

.about-band h2 {
  font-size: clamp(2rem, 4vw, 4.4rem);
}

.work-with-me {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding: 24px;
  border: 1px solid rgb(23 23 23 / 16%);
  border-radius: var(--tile-radius);
  background: var(--green);
  box-shadow: 5px 5px 0 rgb(23 23 23 / 12%);
}

.work-with-me h2 {
  max-width: 680px;
  font-size: clamp(1.8rem, 3.4vw, 3.4rem);
}

.work-with-me a {
  color: var(--ink);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 950;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.site-footer {
  display: grid;
  gap: 18px;
  margin-top: 34px;
  padding: 26px 0 0;
  border-top: 1px solid rgb(23 23 23 / 18%);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.load-more-button {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--pink);
  box-shadow: 3px 3px 0 rgb(23 23 23 / 16%);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 950;
}

.load-more-button[aria-expanded="true"] {
  background: var(--ink);
  color: var(--paper-strong);
}

.footer-more {
  max-width: 760px;
  padding: 16px;
  border: 1px solid rgb(23 23 23 / 16%);
  border-radius: var(--tile-radius);
  background: rgb(255 255 255 / 66%);
}

.footer-more[hidden] {
  display: none;
}

.footer-more p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

@keyframes pulse-node {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.16);
  }
}

@keyframes eq-bounce {
  from {
    height: 24%;
  }
  to {
    height: 82%;
  }
}

@keyframes draw-route {
  from {
    clip-path: inset(0 75% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes slow-spin {
  to {
    rotate: 360deg;
  }
}

@keyframes drama-rise {
  from {
    transform: translateY(18px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes math-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes article-scan {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(18px);
  }
}

@keyframes debug-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes debug-stamp {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(6px) rotate(2deg);
  }
}

@keyframes revenue-check {
  from {
    transform: scaleY(0.72);
  }
  to {
    transform: scaleY(1.08);
  }
}

@keyframes debug-sweep {
  0% {
    transform: translateX(-18px);
  }
  50% {
    transform: translateX(26px);
  }
  100% {
    transform: translateX(-18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 920px) {
  .site-shell {
    width: min(100% - 24px, 760px);
  }

  .site-header,
  .about-band {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .header-filters,
  .social-links {
    justify-content: flex-start;
  }

  .intro-band {
    padding-top: 34px;
  }

  .modal-backdrop {
    align-items: start;
    padding: 16px;
    overflow: auto;
  }

  .project-modal {
    max-height: calc(100vh - 32px);
  }

  .modal-header {
    padding: 20px;
  }

  .modal-body {
    padding: 22px 20px 26px;
  }

  .portfolio-grid {
    grid-auto-rows: 86px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .tile-small,
  .tile-medium,
  .tile-wide,
  .tile-tall {
    grid-column: span 6;
  }
}
@media (max-width: 560px) {
  .site-shell {
    width: min(100% - 20px, 420px);
    padding-top: 16px;
  }

  .brand {
    align-items: flex-start;
  }

  .brand small {
    max-width: 220px;
  }

  .filter-group {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .filter-button {
    min-width: max-content;
  }

  .portfolio-grid {
    grid-auto-rows: 78px;
    gap: 10px;
  }

  .tile-small,
  .tile-medium,
  .tile-wide,
  .tile-tall {
    grid-row: span 5;
  }

  .tile-copy {
    padding: 16px;
  }

  .tile-copy h2 {
    font-size: 1.45rem;
  }

  .tile-copy p {
    font-size: 0.9rem;
  }

  .tag-row span {
    font-size: 0.68rem;
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper-strong);
  box-shadow: 3px 3px 0 rgb(23 23 23 / 12%);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.nav-link:hover {
  box-shadow: 1px 1px 0 rgb(23 23 23 / 22%);
  transform: translate(1px, 1px);
}

.nav-link:focus-visible,
.chart-controls select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.article-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.article-shell {
  max-width: 1080px;
}

.article-header {
  margin-bottom: 24px;
}

.data-article {
  display: grid;
  gap: 34px;
}

.article-hero {
  display: grid;
  min-height: 44vh;
  align-content: end;
  gap: 18px;
  padding: 76px 0 28px;
  border-bottom: 1px solid rgb(23 23 23 / 18%);
}

.article-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.article-dek {
  max-width: 760px;
  margin: 0;
  color: #333835;
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-meta span {
  padding: 8px 10px;
  border: 1px solid rgb(23 23 23 / 18%);
  border-radius: 999px;
  background: var(--paper-strong);
  font-size: 0.78rem;
  font-weight: 900;
}

.article-prose {
  display: grid;
  gap: 18px;
  max-width: 780px;
}

.article-prose h2 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: 0;
}

.article-prose p {
  margin: 0;
  color: #303432;
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.78;
}

.chart-lab {
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--tile-radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.chart-lab-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.chart-lab h2,
.chart-panel h3,
.insight-item h4 {
  margin: 0;
  letter-spacing: 0;
}

.chart-lab h2 {
  margin-top: 8px;
  font-size: clamp(1.8rem, 3.6vw, 3.25rem);
  line-height: 1;
}

.chart-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chart-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.chart-controls select {
  min-height: 42px;
  padding: 9px 34px 9px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 16px;
}

.chart-panel {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgb(23 23 23 / 18%);
  border-radius: 6px;
  background: #f9faf5;
}

.chart-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.chart-title-row output {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.bar-chart {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.38fr) minmax(120px, 1fr) 38px;
  gap: 10px;
  align-items: center;
}

.bar-label {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.bar-label strong,
.bar-label span {
  overflow-wrap: anywhere;
}

.bar-label strong {
  font-size: 0.95rem;
  line-height: 1.15;
}

.bar-label span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.bar-track {
  height: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-strong);
}

.bar-track span {
  display: block;
  height: 100%;
  border-right: 1px solid var(--line);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--yellow));
  transition: width 240ms ease;
}

.bar-value {
  font-size: 0.88rem;
  font-weight: 950;
  text-align: right;
}

.insight-list {
  display: grid;
  gap: 10px;
}

.insight-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgb(23 23 23 / 14%);
  border-radius: 5px;
  background: var(--paper-strong);
}

.insight-item p {
  margin: 0;
}

.insight-item p:last-child {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (max-width: 920px) {
  .article-nav {
    justify-content: flex-start;
  }

  .article-hero {
    min-height: auto;
    padding-top: 38px;
  }

  .chart-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .chart-lab {
    padding: 16px;
  }

  .bar-row {
    grid-template-columns: 1fr 42px;
  }

  .bar-label,
  .bar-track {
    grid-column: 1 / -1;
  }
}

.analog-shell {
  max-width: 1120px;
}

.analog-article {
  gap: 44px;
}

.analog-hero {
  display: grid;
  gap: 24px;
  padding: 38px 0 24px;
  border-bottom: 1px solid rgb(23 23 23 / 18%);
}

.analog-hero-copy {
  display: grid;
  gap: 16px;
}

.analog-hero h1 {
  max-width: 1040px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.2rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.analog-hero-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--tile-radius);
  box-shadow: var(--shadow);
}

.analog-lede {
  max-width: 860px;
}

.thesis-band {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--tile-radius);
  background: var(--ink);
  box-shadow: var(--shadow);
  color: var(--paper-strong);
}

.thesis-band h2 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.thesis-band p {
  max-width: 78ch;
  margin: 0;
  color: rgb(255 255 255 / 78%);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.7;
}

.thesis-band .eyebrow {
  color: var(--yellow);
}

.thesis-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.thesis-grid p {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 6px;
  background: rgb(255 255 255 / 8%);
}

.thesis-grid strong {
  color: var(--yellow);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.9;
}

.thesis-grid span {
  color: rgb(255 255 255 / 76%);
  font-size: 0.94rem;
  line-height: 1.5;
}

.object-index {
  position: sticky;
  top: 76px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 0;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px);
}

.object-index a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-strong);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.object-index a:hover,
.object-index a:focus-visible {
  background: var(--yellow);
}

.object-section,
.appendix-section,
.method-section {
  display: grid;
  gap: 20px;
  padding-top: 8px;
}

.object-code {
  margin: 0;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.object-section h2,
.appendix-section h2,
.method-section h2 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.object-quote {
  max-width: 760px;
  margin: -8px 0 0;
  padding: 0 0 0 14px;
  border-left: 4px solid var(--blue);
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.98rem, 1.35vw, 1.18rem);
  font-style: italic;
  line-height: 1.55;
}

.object-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 2px;
}

.object-metrics article {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgb(23 23 23 / 18%);
  border-radius: 6px;
  background: var(--paper-strong);
  box-shadow: 4px 4px 0 rgb(23 23 23 / 10%);
}

.object-metrics strong {
  color: var(--ink);
  font-size: clamp(1.65rem, 3.2vw, 3.2rem);
  font-weight: 950;
  line-height: 0.9;
}

.object-metrics span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}
.embed-shell {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 4px 0 0;
}

.embed-shell iframe {
  display: block;
  width: 100%;
  min-height: 420px;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: transparent;
}

.embed-shell figcaption {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.embed-compact iframe {
  min-height: 560px;
}

.appendix-section {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--tile-radius);
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.appendix-section p {
  max-width: 74ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.appendix-grid {
  display: grid;
  gap: 22px;
}

.method-section {
  padding: 24px 0 6px;
  border-top: 1px solid rgb(23 23 23 / 18%);
}

.method-section ul {
  display: grid;
  gap: 10px;
  max-width: 860px;
  margin: 0;
  padding-left: 20px;
  color: #303432;
  line-height: 1.65;
}

.method-section h3 {
  margin: 8px 0 0;
  font-size: 1.18rem;
  letter-spacing: 0;
}

.method-section p {
  max-width: 860px;
  margin: 0;
  color: #303432;
  line-height: 1.75;
}

.method-section a {
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (max-width: 920px) {
  .thesis-grid {
    grid-template-columns: 1fr;
  }

  .object-index {
    position: static;
  }

  .appendix-section {
    padding: 18px;
  }
}

@media (max-width: 560px) {
  .analog-article {
    gap: 34px;
  }

  .analog-hero {
    padding-top: 24px;
  }

  .analog-hero h1,
  .object-section h2,
  .appendix-section h2,
  .method-section h2 {
    overflow-wrap: anywhere;
  }

  .thesis-band {
    padding: 18px;
  }

  .embed-shell iframe,
  .embed-compact iframe {
    min-height: 500px;
    border-radius: 10px;
  }
}

/* Homepage uniform card grid */
.portfolio-grid {
  grid-auto-flow: row;
  grid-auto-rows: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.tile-small,
.tile-medium,
.tile-wide,
.tile-tall {
  grid-column: auto;
  grid-row: auto;
}

.portfolio-grid .tile {
  aspect-ratio: 1 / 1;
  min-height: 360px;
  height: 100%;
}

.portfolio-grid .tile-copy h2 {
  font-size: clamp(1.24rem, 2vw, 1.85rem);
}

.portfolio-grid .tile-copy p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.portfolio-grid .tag-row {
  max-height: 58px;
  overflow: hidden;
}

@media (max-width: 920px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portfolio-grid .tile {
    min-height: 330px;
  }
}

@media (max-width: 640px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid .tile {
    aspect-ratio: auto;
    min-height: 360px;
  }
}
