:root {
  --bg: #0d0d0f;
  --surface: #1a1a1e;
  --text: #eeeeee;
  --muted: #b9b9be;
  --accent: #b33a3a;
  --accent-text: #e06a6a;
  --serif: "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 3.5rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 72rem;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--text); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 var(--gutter);
  background: rgb(13 13 15 / 0.88);
  backdrop-filter: blur(8px);
}
.site-name {
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.site-header nav { display: flex; gap: 1.25rem; overflow-x: auto; scrollbar-width: none; }
.site-header nav a {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  white-space: nowrap;
  padding: 0.5rem 0;
}
.site-header nav a:hover { color: var(--text); }
@media (max-width: 48rem) {
  /* The name is the hero heading right below, so phones give the header to the six links. */
  .site-name { display: none; }
  .site-header nav { width: 100%; justify-content: space-between; gap: 0.75rem; }
  .site-header nav a { font-size: 0.7rem; letter-spacing: 0.04em; }
}

section { scroll-margin-top: var(--header-h); }

.band {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem var(--gutter) 3rem;
  color: var(--muted);
  font-size: 0.875rem;
}

/* Reel hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
}
.hero-loop {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgb(13 13 15 / 0.94) 0%, rgb(13 13 15 / 0.3) 55%, rgb(13 13 15 / 0.6) 100%);
}
.hero-text {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) clamp(2.5rem, 9vh, 5.5rem);
}
.hero h1 { font-size: clamp(2.75rem, 9vw, 6rem); }
.hero-line {
  margin: 0.75rem 0 2rem;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.reel-play {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.reel-play-icon {
  display: grid;
  place-items: center;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.2s ease;
}
.reel-play-icon::after {
  content: "";
  margin-left: 0.3rem;
  border-left: 1.05rem solid var(--text);
  border-top: 0.65rem solid transparent;
  border-bottom: 0.65rem solid transparent;
}
.reel-play:hover .reel-play-icon { transform: scale(1.06); }

/* Full-screen dialogs (reel, photos) */
.media-dialog {
  padding: 0;
  border: 0;
  background: #000;
  color: var(--text);
  width: min(96vw, 80rem);
  max-height: 94vh;
  overflow: visible;
}
.media-dialog::backdrop { background: rgb(0 0 0 / 0.9); }
.media-dialog video { width: 100%; max-height: 94vh; }
.dialog-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: rgb(26 26 30 / 0.85);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent-text);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Voice demos */
.demos { display: grid; gap: 1rem; }
@media (min-width: 40rem) {
  .demos { grid-template-columns: 1fr 1fr; }
}
.demo {
  margin: 0;
  padding: 1.25rem 1.25rem 1rem;
  border-radius: 0.5rem;
  background: var(--surface);
}
.demo figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}
.demo-title { font-family: var(--serif); font-size: 1.35rem; }
.demo-length { color: var(--muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.demo audio { width: 100%; }

[hidden] { display: none !important; }

/* Photos */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery li:first-child, .gallery .is-onset { grid-column: span 2; }
.gallery .thumb { display: block; overflow: hidden; border-radius: 0.25rem; background: var(--surface); }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.gallery .is-headshot img { aspect-ratio: 2 / 3; }
.gallery .is-onset img { aspect-ratio: 3 / 2; object-position: center 30%; }
.gallery .thumb:hover img { transform: scale(1.03); }
@media (min-width: 48rem) {
  .gallery { grid-template-columns: repeat(10, 1fr); }
  .gallery li, .gallery li:first-child { grid-column: span 2; }
  .gallery li.is-onset:nth-last-child(2) { grid-column: span 4; }
  .gallery li.is-onset:last-child { grid-column: span 6; }
  .gallery .is-onset img { aspect-ratio: auto; height: clamp(14rem, 28vw, 22rem); }
}

.lightbox { width: auto; max-width: 94vw; background: transparent; }
.lightbox img { max-width: 94vw; max-height: 80vh; margin: 0 auto; }
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding-top: 0.75rem;
}
.lightbox-step {
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-download {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* About */
.prose { max-width: 40rem; font-size: 1.125rem; }
.prose p { margin: 0 0 1.25rem; }

/* Resume */
.credits-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 64rem) {
  .credits-grid { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
}
.credits { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.credits caption {
  text-align: left;
  padding-bottom: 0.75rem;
  color: var(--accent-text);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.credits th {
  text-align: left;
  padding: 0 0.75rem 0.5rem 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.credits td { padding: 0.55rem 0.75rem 0.55rem 0; border-top: 1px solid var(--surface); vertical-align: top; }
.credits td:first-child { font-family: var(--serif); font-size: 1.05rem; }
.credits td:not(:first-child) { color: var(--muted); }
@media (max-width: 40rem) {
  .credits thead { display: none; }
  .credits tr { display: block; padding: 0.6rem 0; border-top: 1px solid var(--surface); }
  .credits td { display: inline; padding: 0; border: 0; }
  .credits td:first-child { display: block; }
  .credits td:nth-child(3)::before { content: " · "; }
}
.skills { margin: 2.5rem 0 1.5rem; color: var(--muted); }
.skills-label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--accent-text);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}
.button:hover { filter: brightness(1.12); }

/* Contact */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 56rem) {
  .contact-grid { grid-template-columns: minmax(0, 36rem) 1fr; column-gap: 4rem; align-items: start; }
}
.contact-form { display: grid; gap: 0.4rem; }
.contact-form label {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #2c2c32;
  border-radius: 0.375rem;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.contact-form textarea { resize: vertical; }
.contact-form .button { justify-self: start; margin-top: 1.25rem; border: 0; cursor: pointer; font: inherit; font-size: 0.85rem; }
.contact-form .button:disabled { opacity: 0.6; cursor: progress; }
.honeypot { display: none; }
.contact-status { min-height: 1.6em; margin: 0.5rem 0 0; color: var(--muted); }
.contact-note { margin: 0; color: var(--muted); }
@media (min-width: 56rem) {
  .contact-note { padding-top: 2.1rem; }
}

.profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}
.profiles a {
  color: var(--text);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.profiles a:hover { color: var(--accent-text); }

.not-found { min-height: 80vh; display: grid; align-content: center; justify-items: start; gap: 1rem; }
.not-found h1 { font-size: clamp(2.25rem, 6vw, 3.5rem); }
.not-found p { margin: 0; color: var(--muted); }
