:root {
  color-scheme: dark;
  --bg: #070707;
  --surface: #111111;
  --surface-strong: #f6f2e8;
  --text: #f7f5ee;
  --muted: #b9b4aa;
  --ink: #111111;
  --line: rgba(247, 245, 238, 0.18);
  --accent: #f1c40f;
  --accent-two: #e6392e;
  --accent-three: #6ed4ff;
  --shadow: rgba(0, 0, 0, 0.35);
  --max-width: 1180px;
  --header-height: 72px;
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body[data-theme="gallery"] {
  color-scheme: light;
  --bg: #f3efe6;
  --surface: #fffaf0;
  --surface-strong: #101010;
  --text: #121212;
  --muted: #5f5a52;
  --ink: #f6f2e8;
  --line: rgba(18, 18, 18, 0.16);
  --accent: #d0a600;
  --accent-two: #db3428;
  --accent-three: #176b87;
  --shadow: rgba(30, 25, 16, 0.18);
}

body[data-theme="play"] {
  color-scheme: light;
  --bg: #fff7cc;
  --surface: #ffffff;
  --surface-strong: #151515;
  --text: #151515;
  --muted: #5d5540;
  --ink: #fffdf2;
  --line: rgba(21, 21, 21, 0.18);
  --accent: #f2bd00;
  --accent-two: #ee2e24;
  --accent-three: #4ba3ff;
  --shadow: rgba(52, 42, 3, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--bg);
  background-size: 96px 96px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

body::selection {
  background: var(--accent);
  color: #111111;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-160%);
  background: var(--accent);
  color: #111111;
  padding: 10px 14px;
  border-radius: 4px;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 7, 7, 0.76);
  backdrop-filter: blur(18px);
}

body[data-theme="gallery"] .site-header,
body[data-theme="play"] .site-header {
  border-bottom-color: rgba(18, 18, 18, 0.16);
  background: rgba(255, 250, 240, 0.78);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 780;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  line-height: 1;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.nav-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid transparent;
  color: var(--muted);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  border-color: var(--line);
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.theme-dot {
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
}

.theme-dot[data-theme-choice="lab"] {
  background: #070707;
}

.theme-dot[data-theme-choice="gallery"] {
  background: #f3efe6;
}

.theme-dot[data-theme-choice="play"] {
  background: #f2bd00;
}

.theme-dot.is-active {
  outline: 2px solid var(--accent-two);
  outline-offset: 3px;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding-top: var(--header-height);
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.03);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.24) 52%, rgba(0, 0, 0, 0.64)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.06) 52%, rgba(0, 0, 0, 0.62));
}

body[data-theme="gallery"] .hero-scrim {
  background:
    linear-gradient(90deg, rgba(246, 242, 232, 0.92), rgba(246, 242, 232, 0.12) 52%, rgba(0, 0, 0, 0.34)),
    linear-gradient(0deg, rgba(246, 242, 232, 0.76), rgba(246, 242, 232, 0.02) 58%, rgba(0, 0, 0, 0.36));
}

body[data-theme="play"] .hero-scrim {
  background:
    linear-gradient(90deg, rgba(255, 247, 204, 0.84), rgba(255, 247, 204, 0.06) 55%, rgba(0, 0, 0, 0.42)),
    linear-gradient(0deg, rgba(255, 247, 204, 0.74), rgba(255, 247, 204, 0.02) 58%, rgba(0, 0, 0, 0.42));
}

.hero-graphic {
  position: absolute;
  z-index: -2;
  pointer-events: none;
}

.hero-graphic-one {
  right: 7%;
  top: 15%;
  width: 190px;
  height: 190px;
  border: 14px solid var(--accent);
  transform: rotate(9deg);
  clip-path: polygon(50% 0, 62% 35%, 100% 35%, 70% 56%, 82% 100%, 50% 73%, 18% 100%, 30% 56%, 0 35%, 38% 35%);
  opacity: 0.9;
}

.hero-graphic-two {
  left: 51%;
  bottom: 11%;
  width: 320px;
  height: 7px;
  background: var(--accent-two);
  transform: rotate(-7deg);
  box-shadow: 0 24px 0 var(--accent);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 128px 0 92px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 780;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: 104px;
  line-height: 0.92;
  font-weight: 920;
}

body[data-theme="gallery"] .hero h1,
body[data-theme="play"] .hero h1 {
  color: #111111;
}

.hero-copy {
  width: min(100%, 620px);
  margin: 26px 0 0;
  color: #f7f5ee;
  font-size: 20px;
  line-height: 1.65;
  text-wrap: pretty;
}

body[data-theme="gallery"] .hero-copy,
body[data-theme="play"] .hero-copy {
  color: #171717;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-weight: 760;
  line-height: 1;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #111111;
  border-color: var(--accent);
}

.button-secondary {
  background: rgba(0, 0, 0, 0.22);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.62);
}

body[data-theme="gallery"] .button-secondary,
body[data-theme="play"] .button-secondary {
  background: rgba(255, 255, 255, 0.52);
  color: #111111;
  border-color: rgba(17, 17, 17, 0.48);
}

.hero-panel {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 3;
  width: 340px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(12px);
}

body[data-theme="gallery"] .hero-panel,
body[data-theme="play"] .hero-panel {
  border-color: rgba(17, 17, 17, 0.18);
  background: rgba(255, 250, 240, 0.72);
}

.hero-panel > div {
  min-width: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
}

body[data-theme="gallery"] .hero-panel > div,
body[data-theme="play"] .hero-panel > div {
  background: rgba(255, 255, 255, 0.35);
}

.metric {
  display: block;
  color: var(--accent);
  font-size: 24px;
  font-weight: 850;
  line-height: 1;
  overflow-wrap: anywhere;
}

.metric-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.signal-strip {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--accent);
  color: #111111;
  font-weight: 850;
  text-transform: uppercase;
}

.signal-strip span {
  min-width: 240px;
  padding: 0 28px;
  white-space: nowrap;
  border-right: 2px solid #111111;
}

.section {
  padding: 104px 0;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 0;
  font-size: 52px;
  line-height: 1.02;
  font-weight: 900;
  text-wrap: balance;
}

.section-heading p:not(.eyebrow) {
  max-width: 690px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.section-projects {
  background: var(--bg);
}

.project-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  padding: 0 14px;
  cursor: pointer;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #111111;
}

.featured-project {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 1px;
  min-height: 380px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  background: var(--line);
}

.featured-copy,
.featured-visual {
  min-width: 0;
  background: var(--surface);
}

.featured-copy {
  padding: 34px;
}

.project-kicker {
  width: fit-content;
  margin: 0 0 28px;
  padding: 6px 10px;
  border: 1px solid var(--accent-two);
  color: var(--accent-two);
  font-weight: 800;
  text-transform: uppercase;
}

.featured-copy h3 {
  margin: 0;
  font-size: 46px;
  line-height: 1;
}

.featured-copy p:not(.project-kicker) {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.tag-row span,
.repo-meta span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 9px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  color: var(--accent);
  font-weight: 820;
  border-bottom: 2px solid currentColor;
}

.featured-visual {
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.featured-visual img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06);
}

.featured-visual::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 10px solid var(--accent);
  mix-blend-mode: multiply;
  transform: rotate(-5deg);
  pointer-events: none;
}

.code-slab {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.76);
  color: #f7f5ee;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

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

.repo-card {
  min-width: 0;
  min-height: 286px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 18px 50px var(--shadow);
}

.repo-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.repo-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.repo-card h3 {
  margin: 0;
  font-size: 23px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.repo-badge {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 8px;
  color: var(--muted);
  font-size: 12px;
}

.repo-card p {
  margin: 0;
  color: var(--muted);
  min-height: 74px;
}

.repo-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.repo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.repo-actions a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 11px;
  font-weight: 760;
}

.repo-actions a:hover,
.repo-actions a:focus-visible {
  border-color: var(--accent);
  background: var(--accent);
  color: #111111;
}

.skeleton span {
  display: block;
  height: 18px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--line), color-mix(in srgb, var(--accent) 26%, transparent), var(--line));
  background-size: 220% 100%;
  animation: shimmer 1.4s infinite;
}

.skeleton span:nth-child(1) {
  width: 55%;
}

.skeleton span:nth-child(2) {
  width: 92%;
  height: 88px;
}

.skeleton span:nth-child(3) {
  width: 70%;
}

@keyframes shimmer {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

.section-tutorials {
  background: var(--surface-strong);
  color: var(--ink);
}

body[data-theme="gallery"] .section-tutorials,
body[data-theme="play"] .section-tutorials {
  color: #f7f5ee;
}

.section-tutorials .section-heading p:not(.eyebrow) {
  color: currentColor;
  opacity: 0.68;
}

.tutorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: 44px;
  align-items: start;
}

.tutorial-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.tutorial-card {
  min-height: 246px;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

body[data-theme="lab"] .tutorial-card {
  border-color: rgba(0, 0, 0, 0.13);
  background: rgba(0, 0, 0, 0.05);
}

.type-pill {
  width: fit-content;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 3px 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 820;
}

.tutorial-card h3 {
  margin: 18px 0 0;
  font-size: 26px;
  line-height: 1.12;
}

.tutorial-card p {
  margin: 12px 0 20px;
  color: currentColor;
  opacity: 0.72;
}

.tutorial-card a {
  margin-top: auto;
  color: var(--accent);
  font-weight: 820;
}

.video-slot {
  background:
    linear-gradient(135deg, rgba(238, 46, 36, 0.2), transparent 48%),
    rgba(255, 255, 255, 0.07);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.service-card {
  min-height: 280px;
  padding: 22px;
  background: var(--surface);
}

.service-index {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 860;
}

.service-card h3 {
  margin: 38px 0 0;
  font-size: 25px;
  line-height: 1.08;
}

.service-card p {
  margin: 14px 0 0;
  color: var(--muted);
}

.contact-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--accent-two) 18%, transparent), transparent 54%),
    var(--surface);
}

.contact-band h3 {
  max-width: 740px;
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
}

.section-playground {
  background: var(--bg);
}

.playground-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(520px, 1.28fr);
  gap: 38px;
  align-items: start;
}

.zine-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 130px;
  gap: 12px;
}

.zine-tile {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.zine-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.04);
}

.zine-tile figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.76);
  color: #f7f5ee;
  font-size: 12px;
  font-weight: 780;
  overflow-wrap: anywhere;
}

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

.zine-tile:not(.tile-large) {
  grid-column: span 2;
  grid-row: span 2;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
}

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

.command-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: start center;
  padding: 96px 20px 20px;
}

.command-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.command-box {
  position: relative;
  width: min(100%, 640px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.command-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.command-header h2 {
  margin: 0;
  font-size: 20px;
}

.command-input {
  width: calc(100% - 32px);
  min-height: 48px;
  margin: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text);
  padding: 0 14px;
  outline: 0;
}

.command-input:focus {
  border-color: var(--accent);
}

.command-list {
  max-height: 420px;
  overflow: auto;
  padding: 0 16px 16px;
}

.command-item {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  padding: 0 12px;
  cursor: pointer;
  text-align: left;
}

.command-item:hover,
.command-item:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
}

.command-item span {
  color: var(--muted);
  font-size: 13px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

  .featured-project,
  .tutorial-layout,
  .playground-layout {
    grid-template-columns: 1fr;
  }

  .zine-wall {
    grid-auto-rows: 120px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 66px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding: 12px 16px;
  }

  .nav-links {
    display: none;
  }

  .section-shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .hero {
    min-height: 86svh;
  }

  .hero-image {
    object-position: 57% center;
  }

  .hero-content {
    padding: 86px 0 172px;
  }

  .hero h1 {
    font-size: 64px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .hero-graphic-one {
    right: -24px;
    top: 112px;
    width: 124px;
    height: 124px;
    border-width: 9px;
  }

  .hero-graphic-two {
    left: 22px;
    bottom: 132px;
    width: 210px;
  }

  .hero-panel {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
  }

  .metric {
    font-size: 18px;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading h2 {
    font-size: 38px;
  }

  .section-heading p:not(.eyebrow) {
    font-size: 16px;
  }

  .featured-copy {
    padding: 24px;
  }

  .featured-copy h3 {
    font-size: 36px;
  }

  .repo-grid,
  .tutorial-board,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .tutorial-layout,
  .playground-layout {
    gap: 24px;
  }

  .contact-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-band h3 {
    font-size: 26px;
  }

  .zine-wall {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
  }

  .tile-large,
  .zine-tile:not(.tile-large) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
  }
}

@media (max-width: 520px) {
  .brand span:last-child {
    display: none;
  }

  .theme-switcher {
    gap: 6px;
    padding: 0 8px;
  }

  .theme-dot {
    width: 16px;
    height: 16px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-panel > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
  }

  .metric-label {
    margin-top: 0;
    text-align: right;
  }

  .signal-strip span {
    min-width: 210px;
    padding: 0 20px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .featured-project {
    min-height: 0;
  }

  .featured-visual img {
    min-height: 280px;
  }

  .repo-card,
  .tutorial-card,
  .service-card {
    min-height: auto;
  }

  .command-modal {
    padding-top: 76px;
  }
}

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