:root {
  --green: #16df59;
  --purple: #780066;
  --ink: #590050;
  --line: 2px;
  --gap: 20px;
  --mono: "Courier New", Courier, monospace;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--green);
  color: var(--purple);
  font-family: var(--mono);
  font-weight: 700;
}
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }

.page-shell {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 16px 24px 10px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 0 8px 12px;
}
.nameplate {
  text-decoration: none;
  font-size: clamp(.9rem, 1.5vw, 1.15rem);
}
.button {
  appearance: none;
  border: var(--line) solid var(--purple);
  background: transparent;
  color: var(--purple);
  padding: 13px 18px 11px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 800;
  transition: background .12s ease, color .12s ease, transform .12s ease;
}
.button:hover, .button:focus-visible {
  background: var(--purple);
  color: var(--green);
  outline: none;
  transform: translateY(-1px);
}
.button-small { padding: 7px 16px 6px; }

.masthead {
  border-bottom: var(--line) solid var(--purple);
  padding: 0 8px 9px;
  overflow: hidden;
}
.masthead h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(7rem, 17.4vw, 17rem);
  line-height: .8;
  font-weight: 400;
  letter-spacing: -.075em;
  white-space: nowrap;
}

.category-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: var(--line) solid var(--purple);
}
.category-nav button {
  border: 0;
  padding: 17px 8px 14px;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  font-size: clamp(.78rem, 1.4vw, 1.06rem);
}
.category-nav button:hover,
.category-nav button.active {
  background: var(--purple);
  color: var(--green);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(230px, 28%) 1fr;
  gap: 28px;
  padding: 34px 18px 20px;
  align-items: center;
}
.roles {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5.1vw, 5.2rem);
  line-height: .96;
  font-weight: 400;
}
.roles span { display: block; }
.subline {
  max-width: 310px;
  line-height: 1.45;
  margin: 26px 0 28px;
}
.hero-panels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 4px solid #111;
  min-height: 410px;
  overflow: hidden;
}
.hero-panels figure { margin: 0; min-width: 0; }
.hero-panels img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  border-right: 3px solid #111;
}
.hero-panels figure:last-child img { border-right: 0; }

.bio-strip {
  border-top: var(--line) solid var(--purple);
  border-bottom: var(--line) solid var(--purple);
  padding: 12px 8px;
}
.bio-strip p {
  margin: 0;
  font-size: clamp(.9rem, 1.65vw, 1.18rem);
  line-height: 1.42;
}

.work-section { padding-top: 17px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding: 0 8px 10px;
  border-bottom: var(--line) solid var(--purple);
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1rem, 1.9vw, 1.32rem);
}
.text-button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  padding: 0;
  border-bottom: 2px solid transparent;
}
.text-button:hover, .text-button.active { border-color: currentColor; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  padding-top: 14px;
}
.work-card {
  grid-column: span 2;
  min-width: 0;
  cursor: pointer;
}
.work-card:nth-child(1),
.work-card:nth-child(2) { grid-column: span 3; }
.work-media {
  position: relative;
  aspect-ratio: 1.55 / 1;
  border: 2px solid var(--purple);
  overflow: hidden;
  background: rgba(120,0,102,.08);
}
.work-media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .22s ease, filter .22s ease;
}
.work-card:hover .work-media img { transform: scale(1.018); filter: contrast(1.04); }
.work-label {
  margin: 8px 2px 0;
  font-size: clamp(.84rem, 1.35vw, 1rem);
}
.play-badge {
  position: absolute;
  inset: auto auto 14px 14px;
  width: 54px; height: 54px;
  border: 3px solid var(--green);
  border-radius: 50%;
  background: rgba(0,0,0,.72);
  color: var(--green);
  display: grid; place-items: center;
  font-size: 1.4rem;
}
.work-card[hidden] { display: none; }

.contact-strip {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 8px 4px;
}
.contact-strip h2 {
  font-family: var(--serif);
  font-weight: 400;
  margin: 0;
  font-size: clamp(2.3rem, 5.2vw, 5rem);
  line-height: 1;
}
.contact-link {
  white-space: nowrap;
  font-size: clamp(.9rem, 1.7vw, 1.15rem);
  padding-bottom: 5px;
  text-decoration: none;
}
.contact-link:hover { text-decoration: underline; }

footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 12px 8px 0;
  font-size: .72rem;
  opacity: .85;
}

.media-dialog {
  width: min(1000px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 3px solid var(--purple);
  background: var(--green);
  color: var(--purple);
}
.media-dialog::backdrop { background: rgba(0,0,0,.68); }
.dialog-close {
  position: absolute;
  z-index: 3;
  top: 8px; right: 9px;
  width: 42px; height: 42px;
  border: 2px solid var(--green);
  background: var(--purple);
  color: var(--green);
  cursor: pointer;
  font-size: 1.6rem;
}
.dialog-media { background: #111; }
.dialog-media img { width: 100%; max-height: 72vh; object-fit: contain; display: block; }
.dialog-media iframe { display: block; width: 100%; aspect-ratio: 16/9; border: 0; }
.dialog-copy { padding: 14px 18px 16px; }
.dialog-copy h3 { margin: 0 0 6px; }
.dialog-copy p { margin: 0; line-height: 1.45; }

@media (max-width: 760px) {
  .page-shell { padding: 10px 12px 8px; }
  .masthead { padding-top: 10px; }
  .masthead h1 { font-size: clamp(5.3rem, 21vw, 9rem); line-height: .82; }
  .category-nav { grid-template-columns: 1fr 1fr; }
  .category-nav button:last-child { grid-column: span 2; }
  .hero-grid { grid-template-columns: 1fr; padding: 26px 4px 18px; }
  .hero-copy { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: end; }
  .roles { grid-column: 1 / -1; }
  .subline { margin: 6px 0 0; }
  .hero-panels { min-height: 285px; }
  .work-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .work-card, .work-card:nth-child(1), .work-card:nth-child(2) { grid-column: auto; }
  .contact-strip { align-items: flex-end; }
  footer { justify-content: space-between; }
}

@media (max-width: 480px) {
  .topbar { padding-inline: 2px; }
  .hero-copy { display: block; }
  .subline { margin: 16px 0 20px; }
  .hero-panels { min-height: 220px; }
  .work-grid { grid-template-columns: 1fr; }
  .contact-strip { display: block; }
  .contact-link { display: inline-block; margin-top: 14px; }
  footer { font-size: .62rem; }
}
