:root {
  --bg: #0c0d0f;
  --bg-soft: #191b1e;
  --bg-end: #121316;
  --panel: rgba(240, 240, 240, .07);
  --panel-strong: rgba(240, 240, 240, .12);
  --line: rgba(240, 240, 240, .18);
  --line-strong: rgba(195, 211, 217, .48);
  --text: #f3eee5;
  --muted: #d0d0d2;
  --dim: #c1c1c6;
  --accent: #dce5e8;
  --accent-rgb: 220, 229, 232;
  --accent-ink: #f5f7f8;
  --button-bg: #303438;
  --accent-secondary: #c8d6db;
  --accent-warm: #3e535b;
  --wash-a: rgba(62, 83, 91, .20);
  --wash-b: rgba(192, 154, 90, .15);
  --topbar-bg: rgba(12, 13, 15, .94);
  --frame-bg: #08090b;
  --bevel-control: inset 1px 1px 0 rgba(255, 244, 220, .14), inset -1px -1px 0 rgba(0, 0, 0, .42);
  --bevel-surface: inset 1px 1px 0 rgba(255, 244, 220, .12), inset -1px -1px 0 rgba(0, 0, 0, .48);
  --bevel-accent: inset 0 3px 0 rgba(var(--accent-rgb), .72), inset 1px 1px 0 rgba(255, 244, 220, .16), inset -1px -1px 0 rgba(0, 0, 0, .46);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(160deg, var(--bg-soft), var(--bg) 55%, var(--bg-end));
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.45;
  letter-spacing: 0;
}

img,
video,
iframe {
  max-width: 100%;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figure,
h1,
h2,
h3,
p {
  margin-top: 0;
}

figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

button,
audio {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 10px 12px;
  background: var(--button-bg);
  color: var(--accent-ink);
  font-weight: 900;
  text-transform: uppercase;
}

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

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(170px, 240px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 12px clamp(16px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
  background: var(--topbar-bg);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .45), 0 12px 28px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  gap: 3px;
  color: var(--text);
  text-decoration: none;
}

.brand strong {
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.brand span {
  color: var(--muted);
  font: 800 10px/1 "Courier New", monospace;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.nav-link,
.button-link {
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 244, 220, .05), rgba(0, 0, 0, .1)),
    rgba(255, 255, 255, .018);
  box-shadow: var(--bevel-control);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: var(--bevel-control);
  color: var(--text);
  padding: 9px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform .18s ease, opacity .18s ease;
}

.topbar.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.topbar.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.topbar.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.button-link:hover,
.button-link.primary {
  border-color: #777c82;
  background: var(--button-bg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  color: #fff;
}

.button-link { border-radius: 5px; background: #24272b; box-shadow: inset 0 1px 0 rgba(255,255,255,.06); font-weight: 500; text-transform: none; }
.topbar .site-nav { justify-content: flex-end; gap: 10px; }
.topbar .nav-link { position: relative; padding: 0 10px; border: 0; border-radius: 0; background: none; box-shadow: none; color: #b9bdc3; font: 500 13px/1.4 Arial,Helvetica,sans-serif; text-transform: none; }
.topbar .nav-link:hover, .topbar .nav-link.active { background: none; box-shadow: none; color: #fff; }
.topbar .nav-link.active::after { content: ""; position: absolute; bottom: 2px; left: 10px; right: 10px; height: 2px; background: #e9edf0; }
.topbar .nav-link:focus-visible, .button-link:focus-visible { outline: 2px solid #e9edf0; outline-offset: 4px; }
.menu-toggle { border-radius: 5px; background: #24272b; box-shadow: none; }
@media(max-width:1100px) {
  .topbar .nav-link { justify-items: end; text-align: right; }
  .topbar .nav-link.active::after { left: auto; width: 22px; }
}

.button-link:hover {
  transform: translateY(-1px);
}

.page-main {
  width: calc(100% - 32px);
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 0 32px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(300px, 1.15fr);
  gap: 40px;
  align-items: center;
  min-height: 0;
  padding-bottom: 40px;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  padding-bottom: 8px;
}

.compact-hero {
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: 8px;
}

.contact-hero {
  grid-template-columns: minmax(0, 760px);
}

.hero > *,
.page-hero > *,
.section-head > * {
  min-width: 0;
}

.eyeline {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font: 900 11px/1 "Courier New", monospace;
  text-transform: uppercase;
}

h1,
h2 {
  max-width: 100%;
  margin-bottom: 18px;
  font-family: "Arial Black", Impact, Arial, Helvetica, sans-serif;
  line-height: 1.06;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

h1 {
  max-width: 1000px;
  font-size: 32px;
}

.hero h1 {
  font-size: 72px;
  overflow-wrap: normal;
}

h2 {
  max-width: 920px;
  font-size: 32px;
  overflow-wrap: break-word;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.05;
}

body { color: #dedee0; }
h1, h2, h3, .brand strong, .card strong { color: var(--text); }
.page-main a:not(.button-link):not(.selected-media):not(.image-link) { color: var(--accent); }

.development-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.development-grid .web-card { display: flex; flex-direction: column; min-width: 0; }
.development-grid .web-card figure { aspect-ratio: 16 / 10; }
.development-grid .web-card h3 { font-size: 26px; line-height: 1.2; }
.development-grid .web-card b { line-height: 1.5; }
.development-grid .web-card .actions { margin-top: auto; padding-top: 18px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 14px 0 18px; font-size: 13px; color: var(--dim); }
.project-meta dt { font-weight: 700; color: var(--text); }
.project-meta dd { margin: 2px 0 0; }
.project-caption { margin: -7px 0 14px; color: var(--dim); font-size: 12px; }
.sample-transcript { padding: 18px; border-block: 1px solid var(--line); margin: 0 0 16px; background: var(--frame-bg); }
.sample-transcript blockquote { margin: 16px 0 0; color: var(--muted); }
.earlier-work .web-card { min-height: 0; }

@media (max-width: 680px) {
  .development-grid { grid-template-columns: 1fr; gap: 20px; }
  .development-grid .web-card h3 { font-size: 23px; }
}

.lede,
.page-hero p,
.large-copy {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.5;
}

.hero-media,
.media-frame {
  min-height: 420px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 244, 220, .04), rgba(0, 0, 0, .16)),
    var(--panel);
  box-shadow: var(--bevel-surface);
  overflow: hidden;
}

.hero-media {
  position: relative;
  min-height: 0;
  aspect-ratio: 4 / 3;
  margin: 0;
}

.hero-media figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px;
  background: var(--topbar-bg);
  border: 1px solid var(--line);
  box-shadow: var(--bevel-control);
  color: var(--muted);
  font: 800 12px/1.25 "Courier New", monospace;
  text-transform: uppercase;
}

.page-aside,
.note-panel,
.card,
.feature-card,
.track-card,
.timeline-item,
.video-card,
.photo-card,
.web-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 244, 220, .045), rgba(0, 0, 0, .12)),
    var(--panel);
  box-shadow: var(--bevel-surface);
}

.page-aside,
.note-panel {
  padding: 18px;
  color: var(--muted);
}

.page-aside strong,
.note-panel strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
}

.section {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

.screen-reader-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 360px);
  gap: clamp(20px, 5vw, 60px);
  align-items: end;
  margin-bottom: 24px;
}

.section-head.compact {
  display: block;
  margin-bottom: 18px;
}

.section-head.compact h2 {
  font-size: 30px;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 14px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.feature-card,
.web-card {
  min-height: 190px;
  display: grid;
  align-content: space-between;
  padding: 18px;
}

.card b,
.feature-card b,
.track-card b,
.timeline-item time,
.video-card b,
.photo-card b,
.web-card b {
  color: var(--accent);
  font: 900 11px/1 "Courier New", monospace;
  text-transform: uppercase;
}

.card strong,
.feature-card strong,
.web-card strong {
  display: block;
  margin: 16px 0 8px;
  font-size: 24px;
  line-height: 1;
  text-transform: uppercase;
}

.card p,
.feature-card p,
.track-card p,
.timeline-item p,
.video-card p,
.photo-card p,
.web-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.feature-card.highlight {
  background:
    linear-gradient(135deg, rgba(var(--accent-rgb), .16), rgba(255, 255, 255, .045)),
    var(--panel);
  box-shadow: var(--bevel-accent), 0 16px 34px rgba(0, 0, 0, .16);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.text-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.text-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.text-list strong {
  color: var(--text);
}

.link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tab-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.tab-button {
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: rgba(255, 255, 255, .025);
  box-shadow: var(--bevel-control);
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.tab-button:hover,
.tab-button[aria-selected="true"] {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--bevel-accent);
}

.tab-button + .tab-button {
  margin-left: -1px;
}

.tab-panel[hidden] {
  display: none;
}

.panel-heading {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 25px;
  line-height: .98;
  text-transform: uppercase;
}

.subsection-title {
  margin: 28px 0 14px;
  color: var(--text);
  font-size: 22px;
  line-height: .98;
  text-transform: uppercase;
}

.music-page .page-hero.compact-hero {
  padding-bottom: 8px;
}

.music-page .track-list {
  gap: 7px;
}

.music-page .track-card {
  grid-template-columns: minmax(150px, 1fr) 210px;
  gap: 10px;
  align-items: start;
  padding: 8px 10px;
}

.music-page .track-card > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.music-page .track-card strong {
  margin-bottom: 2px;
  font-size: 16px;
}

.music-page .track-card small {
  display: block;
  order: -1;
  margin-bottom: 3px;
  color: var(--dim);
  font: 900 10px/1 "Courier New", monospace;
  text-transform: uppercase;
}

.music-page .track-card p {
  display: none;
}

.music-page .track-card audio {
  align-self: center;
  height: 28px;
}

.music-collections > section { margin-bottom: 24px; }
.music-category-heading { font-size: 16px; margin-bottom: 12px; }
.music-page .music-collections .track-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}
.music-page .music-collections .track-card {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 6px;
  padding: 10px;
}
.music-page .music-collections audio { width: 100%; min-width: 0; }
@media (min-width: 760px) {
  .music-page .music-collections .track-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .music-page .music-collections .track-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .music-tabs {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .95fr);
    gap: 14px;
    align-items: start;
  }

  .music-tabs .tab-list {
    display: none;
  }

  .music-tabs .tab-panel {
    min-height: 100%;
    padding: 0;
  }
}

@media (max-width: 1099px) {
  .panel-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

.project-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.project-nav a {
  min-height: 34px;
  padding: 0 10px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 244, 220, .05), rgba(0, 0, 0, .1)),
    rgba(255, 255, 255, .018);
  box-shadow: var(--bevel-control);
  color: var(--muted);
  font: 900 10px/1 "Courier New", monospace;
  text-decoration: none;
  text-transform: uppercase;
}

.project-nav a:hover,
.project-nav a:focus-visible {
  border-color: rgba(var(--accent-rgb), .7);
  box-shadow: var(--bevel-accent);
  color: var(--text);
}

.prose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .48fr);
  gap: 14px;
  align-items: start;
}

.prose-card {
  min-height: 0;
  display: block;
}

.prose-card p + p {
  margin-top: 14px;
}

.prose-card .text-list {
  margin-top: 16px;
}

.poster-frame img,
.contain-image img {
  object-fit: contain;
  background: var(--frame-bg);
}

.media-frame.film-title-artwork {
  min-height: 0;
  align-self: center;
  aspect-ratio: 625 / 84;
  background: #000;
}

.film-title-artwork img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

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

.gallery-grid figure {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--bevel-surface);
  overflow: hidden;
}

.gallery-grid figure.tall {
  aspect-ratio: 3 / 4;
}

.caption {
  display: block;
  margin-top: 8px;
  color: var(--dim);
  font: 800 11px/1.35 "Courier New", monospace;
  text-transform: uppercase;
}

.meta-line {
  display: block;
  margin-top: 6px;
  color: var(--dim);
  font: 800 11px/1.35 "Courier New", monospace;
  text-transform: uppercase;
}

.source-note {
  margin-top: 12px;
  color: var(--dim);
  font-size: 13px;
}

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

.track-card {
  display: grid;
  grid-template-columns: 44px minmax(180px, 1fr) minmax(160px, .72fr) 280px;
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.track-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 20px;
  line-height: 1;
}

.track-card small {
  color: var(--dim);
}

audio {
  width: 100%;
  height: 32px;
  filter: invert(1) saturate(.45);
}

.video-grid,
.photo-grid,
.web-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

#voice-mouth .video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-poster {
  min-height: 0;
  background: var(--frame-bg);
}

.feature-poster img {
  height: auto;
  max-height: 640px;
  object-fit: contain;
}

.video-card,
.photo-card {
  overflow: hidden;
}

.video-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--frame-bg);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 1px 1px 0 rgba(255, 244, 220, .08), inset -1px -1px 0 rgba(0, 0, 0, .52);
  overflow: hidden;
}

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

.video-frame.reel-frame {
  aspect-ratio: 4 / 3;
}

.home-page .hero-media {
  aspect-ratio: 16 / 10;
}

.home-page .hero-media > a img {
  object-fit: contain;
  background: var(--frame-bg);
}

a.video-frame {
  text-decoration: none;
}

a.video-frame img {
  object-fit: contain;
  background: var(--frame-bg);
}

.play-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  padding: 0 12px;
  background: var(--button-bg);
  box-shadow: var(--bevel-accent);
  color: var(--accent-ink);
  font: 900 10px/1 "Courier New", monospace;
  text-transform: uppercase;
}

.video-card div:not(.video-frame),
.photo-card div {
  padding: 16px;
}

.video-card h3,
.photo-card h3,
.web-card h3 {
  margin: 10px 0 8px;
}

.photo-card figure {
  margin: 0;
  background: var(--panel-strong);
  box-shadow: inset 1px 1px 0 rgba(255, 244, 220, .08), inset -1px -1px 0 rgba(0, 0, 0, .52);
}

.photo-card.tall figure {
  aspect-ratio: auto;
}

.web-card figure {
  aspect-ratio: 4 / 3;
  margin: -18px -18px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: inset 1px 1px 0 rgba(255, 244, 220, .08), inset -1px -1px 0 rgba(0, 0, 0, .52);
}

.web-card .actions,
.video-card .actions,
.photo-card .actions {
  margin-top: 14px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-layout {
  max-width: 760px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--accent);
  font: 900 11px/1 "Courier New", monospace;
  text-transform: uppercase;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .08);
  box-shadow: var(--bevel-control);
  color: var(--text);
  padding: 13px 14px;
  font: 16px/1.35 Arial, Helvetica, sans-serif;
  border-radius: 0;
}

.field small {
  color: var(--dim);
  font-size: 13px;
}

.field textarea {
  min-height: 190px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid rgba(var(--accent-rgb), .72);
  outline-offset: 2px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.verification-box {
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .045);
  box-shadow: var(--bevel-surface);
}

.captcha-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.captcha-image {
  width: 190px;
  height: 64px;
  object-fit: contain;
  border: 1px solid var(--line-strong);
  background: #f7f1df;
  box-shadow: var(--bevel-control);
}

.status {
  padding: 14px;
  border: 1px solid var(--line-strong);
  background: var(--panel-strong);
  box-shadow: var(--bevel-surface);
  color: var(--muted);
}

.status.success {
  border-color: rgba(var(--accent-rgb), .72);
  color: var(--text);
}

.status.error {
  border-color: rgba(255, 90, 136, .78);
  color: var(--text);
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  background: transparent;
  box-shadow: none;
}

.timeline-item + .timeline-item {
  border-top: 0;
}

.timeline-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px clamp(16px, 3vw, 34px);
  color: var(--dim);
  font: 800 11px/1.3 "Courier New", monospace;
  text-transform: uppercase;
}

@media (max-width: 1040px) {
  .topbar {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 2px;
  }

  .nav-link {
    flex: 0 0 auto;
  }

  .hero,
  .page-hero,
  .section-head,
  .prose-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .video-grid,
  .photo-grid,
  .web-grid,
  .gallery-grid,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .track-card {
    grid-template-columns: 44px minmax(180px, 1fr);
  }

  .track-card p,
  .track-card audio {
    grid-column: 2;
  }

  .music-page .track-card {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 240px);
    align-items: start;
  }

  .music-page .track-card audio {
    grid-column: 2;
  }
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand {
    grid-column: 1;
    grid-row: 1;
  }

  .menu-toggle {
    grid-column: 2;
    grid-row: 1;
    display: grid;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    display: none;
    grid-template-columns: 1fr;
    gap: 6px;
    overflow: visible;
    padding: 10px 0 2px;
    border-top: 1px solid var(--line);
  }

  .topbar.menu-open .site-nav {
    display: grid;
  }

  .nav-link {
    width: 100%;
    justify-items: start;
    padding: 0 12px;
  }
}

.selected-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.selected-grid .card {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.selected-media {
  display: block;
  aspect-ratio: 4 / 3;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--bevel-control);
}

.selected-media img {
  transition: transform .25s ease;
}

a.selected-media:hover img {
  transform: scale(1.025);
}

.selected-grid h3 {
  margin: 8px 0;
  font-size: 21px;
  line-height: 1.25;
}

.selected-grid h3 a {
  text-decoration: none;
}

.selected-grid h3 a:hover {
  text-decoration: underline;
}

.featured-audio {
  display: flex;
  align-items: center;
  padding: 14px;
  background: linear-gradient(145deg, rgba(var(--accent-rgb), .18), var(--panel));
}

.featured-audio audio {
  height: 40px;
}

.hero-media figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.hero-media figcaption span {
  color: var(--muted);
  font-weight: 400;
}

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

.background-grid .card {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}

.background-grid .card strong {
  font-size: 20px;
  line-height: 1.3;
  text-transform: none;
}

.page-hero .eyeline {
  display: none;
}

.page-hero h1 {
  font-size: 16px;
  margin-bottom: 6px;
  line-height: 1.3;
}

.page-hero p { font-size: 10px; line-height: 1.5; }

@media (max-width: 680px) {
  .page-hero h1 { font-size: 14px; }
}

.photo-grid {
  display: block;
  columns: 3;
  column-gap: 20px;
}

.photo-grid.ranked-grid {
  display: grid;
  columns: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

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

@media (max-width: 680px) {
  .photo-grid.ranked-grid { grid-template-columns: 1fr; }
}

.photo-card {
  break-inside: avoid;
  margin-bottom: 20px;
  border: 0;
  background: none;
  box-shadow: none;
}

.photo-card img {
  height: auto;
  object-fit: contain;
}

.photo-card div {
  padding: 12px 0 6px;
}

.photo-card h3 {
  margin: 4px 0;
  font-size: 19px;
}

.photo-card p {
  display: none;
}

.web-card figure img {
  object-fit: contain;
  object-position: top center;
  background: var(--frame-bg);
}

.image-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.image-viewer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #141518;
  color: var(--text);
  box-shadow: var(--bevel-surface), 0 24px 80px rgba(0, 0, 0, .5);
}

.image-viewer::backdrop {
  background: rgba(0, 0, 0, .9);
}

.viewer-toolbar {
  position: absolute;
  z-index: 1;
  top: 0;
  left: auto;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 10px 12px;
  background: transparent;
}

.viewer-title {
  margin: 0;
  font-size: 18px;
  overflow-wrap: anywhere;
}

.viewer-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.viewer-controls button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  box-shadow: var(--bevel-control);
}

.image-viewer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.viewer-counter {
  color: var(--muted);
}

html.viewer-open {
  overflow: hidden;
}

:where(a, button, input, textarea, audio, video):focus-visible {
  outline: 2px solid var(--accent-secondary);
  outline-offset: 4px;
}

[id] {
  scroll-margin-top: 110px;
}

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

  .photo-grid {
    columns: 2;
  }

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

@media (max-width: 680px) {
  .home-page .hero {
    gap: 24px;
  }

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

  .hero-media,
  .home-page .hero-media {
    min-height: 0;
  }

  .background-grid,
  .selected-grid {
    grid-template-columns: 1fr;
  }

  .photo-grid {
    columns: 1;
  }

  .image-viewer {
    width: 100vw;
    padding: 0;
  }

  .viewer-title {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 680px) {
  .topbar {
    position: static;
    gap: 10px;
    padding: 12px;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand span {
    font-size: 9px;
  }

  .site-nav {
    gap: 4px;
  }

  .tab-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tab-button {
    width: 100%;
    justify-items: start;
    padding-inline: 10px;
    font-size: 10px;
  }

  .nav-link {
    min-height: 36px;
    padding: 0 10px;
    font-size: 10px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .page-main {
    width: calc(100% - 24px);
    padding-top: 12px;
  }

  .video-grid,
  .photo-grid,
  .web-grid,
  .gallery-grid,
  .grid-3,
  .grid-4,
  .track-card,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .track-card p,
  .track-card audio {
    grid-column: auto;
  }

  .music-page .track-card {
    grid-template-columns: 1fr;
  }

  .music-page .track-card audio {
    grid-column: auto;
    width: 100%;
  }

  .hero-media,
  .media-frame {
    min-height: 300px;
  }

  .hero-media,
  .feature-poster {
    min-height: 0;
  }

  #voice-mouth .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 8px;
  }

  .brand span {
    display: none;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
  }

  h1 {
    font-size: 34px;
  }
}

.development-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.development-grid .web-card figure {
  aspect-ratio: 16 / 10;
}

.portfolio-tabs > .tab-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 600px;
  margin-bottom: 24px;
}

.portfolio-tabs > .tab-list .tab-button {
  min-height: 44px;
  padding-inline: 8px;
  font-size: 12px;
  white-space: normal;
}

.page-main .portfolio-sections a.tab-button {
  color: var(--text);
  text-decoration: none;
  justify-items: center;
  border-bottom: 1px solid var(--line);
}

.portfolio-category { margin-bottom: 32px; }
.category-heading { font-size: 16px; margin-bottom: 12px; }
.private-site-note { color: var(--muted); font-size: 12px; margin: 12px 0 0; }
.download-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.download-icon { display: block; width: 18px; height: 18px; flex: none; color: var(--text); }
#websites-panel > .development-grid { grid-template-columns: 1fr; }

#apps-panel .web-card figure {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex: none;
}

#apps-panel .web-card figure .image-link {
  position: absolute;
  inset: 0;
}

#apps-panel .web-card figure img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

#apps-panel :is(#carpenter-calculator, #pausepoint, #focus-blocker) figure img {
  object-fit: contain;
}

.development-grid .web-card {
  display: flex;
  flex-direction: column;
}

.development-grid .web-card > p {
  margin-bottom: 14px;
}

.development-grid .paired-preview figure {
  aspect-ratio: 12 / 13;
}

.development-grid #paterson.paired-preview figure {
  aspect-ratio: 16 / 11;
}

.development-grid .paired-preview .screenshot-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 10px;
  height: 350px;
  aspect-ratio: auto;
  overflow: hidden;
}

.screenshot-pair .image-link {
  min-width: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
}

.development-grid .screenshot-pair img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.development-grid #paterson.paired-preview .screenshot-pair {
  height: 230px;
  aspect-ratio: auto;
}

.development-grid.game-projects .web-card figure {
  aspect-ratio: 16 / 10;
  position: relative;
  overflow: hidden;
  flex: none;
}

.game-projects .web-card figure > .image-link,
.game-projects .web-card figure > .gameplay-crop {
  display: grid;
  place-items: center;
}

.game-projects .web-card figure > .image-link {
  position: absolute;
  inset: 0;
}

.game-projects .web-card figure > .image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-projects #cagemath figure,
.game-projects #cagemath figure img {
  background: #fbf4e2;
}

.game-projects #cagemath figure > .image-link img {
  object-fit: contain;
  object-position: center;
}

.game-projects .gameplay-crop {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  aspect-ratio: 837 / 550;
  height: 100%;
  overflow: hidden;
}

.game-projects .gameplay-crop img {
  position: absolute;
  max-width: none;
  width: 140.6213%;
  height: 183.8182%;
  left: 0;
  top: -33.6364%;
  object-fit: fill;
}

@media (max-width: 680px) {
  .portfolio-tabs > .tab-list .tab-button {
    font-size: 11px;
  }

  .development-grid .paired-preview .screenshot-pair {
    height: 240px;
    gap: 8px;
  }

  .development-grid #paterson.paired-preview .screenshot-pair { height: 180px; }
}

.development-grid .web-card .actions {
  margin-top: auto;
  padding-top: 18px;
}

.project-nav a { font-size: 12px; line-height: 1.3; }

.earlier-work .web-card { display: block; }
.earlier-work .web-card figure { width: 120px; aspect-ratio: 4 / 3; margin: 0 0 14px; }
.earlier-work .web-card h3 { font-size: 22px; }

@media (max-width: 680px) {
  .development-grid { grid-template-columns: 1fr; gap: 20px; }
}
