:root {
  --bg: #080808;
  --text: #a9a9a9;
  --accent: #e8c03d;
  --muted: #a9a9a9;
  --soft: rgba(245, 245, 245, 0.08);
  --line: rgba(245, 245, 245, 0.16);
  --line-strong: rgba(232, 192, 61, 0.42);
  --max: 1160px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(232, 192, 61, 0.055), transparent 23rem),
    var(--bg);
  line-height: 1.6;
}

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

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

strong,
b {
  color: var(--accent);
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 8, 8, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.brand img {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.3rem;
}

.nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.96rem;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.38rem;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0.65);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--accent);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  left: 50%;
  width: 1.2rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
  transition: opacity 160ms ease, transform 160ms ease, top 160ms ease;
}

.nav-toggle span:nth-child(1) {
  top: 0.86rem;
}

.nav-toggle span:nth-child(2) {
  top: 1.34rem;
}

.nav-toggle span:nth-child(3) {
  top: 1.82rem;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  top: 1.34rem;
  transform: translateX(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  top: 1.34rem;
  transform: translateX(-50%) rotate(-45deg);
}

.home-hero {
  min-height: auto;
  display: grid;
  align-items: start;
  padding: clamp(2rem, 6vh, 3.25rem) 0 clamp(3.5rem, 9vh, 6rem);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.home-copy,
.page-hero-inner {
  max-width: 820px;
}

.home-copy h1 {
  max-width: 58rem;
}

.home-logo {
  margin: 0;
  justify-self: end;
  width: min(34vw, 23rem);
  transform: translateY(-1.2rem);
}

.home-logo img {
  width: 100%;
  height: auto;
}

.eyebrow {
  margin: 0 0 1.1rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 1.3rem;
  max-width: 16ch;
  color: var(--accent);
  font-size: clamp(2rem, 3.3vw, 4rem);
  line-height: 1.04;
  font-weight: 600;
}

.page-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
}

.contact-layout h2,
.form-intro h2 {
  margin-bottom: 0.6rem;
  color: var(--accent);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.lead {
  max-width: 58rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.lead.narrow {
  max-width: 44rem;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button,
.button-secondary {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0.8rem 1.05rem;
  font-weight: 700;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease,
    transform 160ms ease;
}

.button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #080808;
}

.button-secondary {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(245, 245, 245, 0.035);
}

.button:hover,
.button-secondary:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.portrait-frame {
  margin: 0;
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
}

.portrait-frame::before {
  content: "";
  display: block;
  aspect-ratio: 1;
}

.portrait-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-strip {
  padding: 0 0 4rem;
}

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

.strip-grid a {
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  padding: 1rem;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.strip-grid a:last-child {
  border-right: 0;
}

.strip-grid a:hover {
  color: var(--accent);
  background: rgba(232, 192, 61, 0.055);
}

.page-hero {
  padding: clamp(5rem, 10vw, 8rem) 0 2.5rem;
}

.section {
  padding: 3rem 0 6rem;
}

.bio-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.bio-photo {
  position: sticky;
  top: 104px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.bio-copy {
  max-width: 760px;
  color: rgba(245, 245, 245, 0.83);
  font-size: clamp(1.02rem, 1.5vw, 1.12rem);
}

.bio-copy p {
  margin-bottom: 1.35rem;
}

.bio-copy strong {
  color: inherit;
  font-weight: 600;
}

.accordion-list {
  display: grid;
  gap: 0.8rem;
}

.works-title {
  margin-bottom: 1rem;
}

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

.work-accordion {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(245, 245, 245, 0.035);
  overflow: hidden;
}

.work-accordion summary {
  min-height: 6.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  color: var(--accent);
  cursor: pointer;
  font-size: clamp(1.28rem, 3vw, 2rem);
  font-weight: 700;
  list-style: none;
}

.work-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(3rem, 7vw, 4.4rem);
  height: clamp(3rem, 7vw, 4.4rem);
  color: var(--accent);
}

.work-symbol svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.work-accordion summary::-webkit-details-marker {
  display: none;
}

.summary-icon {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  position: relative;
}

.summary-icon::before,
.summary-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: translateY(-50%);
}

.summary-icon::after {
  transform: translateY(-50%) rotate(90deg);
}

.work-accordion[open] {
  border-color: var(--line-strong);
}

.work-accordion[open] > summary .summary-icon::after {
  opacity: 0;
}

.work-panel {
  padding: 0 1.3rem 1.4rem;
  color: var(--muted);
}

.project-list {
  display: grid;
  gap: 0.55rem;
  max-width: 760px;
}

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

.project-accordion:first-child {
  border-top: 0;
}

.project-accordion summary {
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  color: var(--accent);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  list-style: none;
}

.project-accordion summary::-webkit-details-marker {
  display: none;
}

.project-accordion .summary-icon {
  width: 0.9rem;
  height: 0.9rem;
}

.project-accordion[open] > summary .summary-icon::after {
  opacity: 0;
}

.project-accordion p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.video-embed {
  width: 100%;
  margin: 0 0 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #080808;
  aspect-ratio: 16 / 9;
}

#sound .video-embed {
  max-width: 760px;
}

.video-embed--labnodes {
  aspect-ratio: 1700 / 976;
}

.video-embed--biomology {
  aspect-ratio: 1700 / 975;
}

.video-embed--book-modules {
  aspect-ratio: 1720 / 975;
}

.video-embed--disney-academy {
  aspect-ratio: 1500 / 1050;
}

.video-embed--parkers {
  aspect-ratio: 1600 / 1080;
  border: 0;
  border-radius: 0;
}

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

.image-placeholder {
  width: 100%;
  margin: 0 0 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #080808;
}

.image-placeholder img {
  width: 100%;
  height: auto;
  display: block;
}

.audio-embed {
  width: min(100vw - 2.6rem, 1120px);
  margin: 0 0 1.2rem;
  height: 42px;
}

.audio-embed iframe {
  width: 100%;
  height: 42px;
  display: block;
  border: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.4fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-details,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(245, 245, 245, 0.035);
}

.contact-details {
  padding: 1.4rem;
}

.mini-list {
  display: grid;
  gap: 1.1rem;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
}

.mini-list strong {
  display: block;
  margin-bottom: 0.15rem;
}

.mini-list a {
  border-bottom: 1px solid rgba(232, 192, 61, 0.4);
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.icon-link svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
  fill: var(--accent);
}

.contact-form {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.form-intro {
  margin-bottom: 1.4rem;
}

.small {
  color: var(--muted);
  font-size: 0.98rem;
}

.form-success {
  margin-bottom: 1.2rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  color: var(--text);
  background: rgba(232, 192, 61, 0.08);
}

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

.form-field {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.form-field-full {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.86rem 0.9rem;
  color: var(--text);
  background: rgba(8, 8, 8, 0.72);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(232, 192, 61, 0.34);
  border-color: var(--accent);
}

::placeholder {
  color: rgba(245, 245, 245, 0.38);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1rem;
  color: var(--muted);
}

.form-checkbox input {
  width: 1rem;
  min-width: 1rem;
  margin-top: 0.35rem;
  accent-color: var(--accent);
}

.hidden-field {
  position: absolute;
  left: -9999px;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer small {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
}

.footer span {
  text-align: right;
}

.footer a {
  color: var(--accent);
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 70px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.7rem;
    background: rgba(8, 8, 8, 0.97);
  }

  .nav.nav-open {
    display: grid;
  }

  .nav a {
    padding: 0.8rem;
  }

  .nav a::after {
    display: none;
  }

  .home-hero {
    min-height: auto;
    padding: 1.35rem 0 2.75rem;
  }

  .home-grid,
  .bio-layout,
  .contact-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .home-copy {
    order: 1;
  }

  .home-logo {
    order: 2;
    justify-self: center;
    width: min(62vw, 15rem);
    margin-top: 0.5rem;
    transform: none;
  }

  h1,
  .page-hero h1 {
    max-width: 13ch;
    font-size: clamp(2.25rem, 12vw, 3.25rem);
  }

  .home-copy h1 {
    max-width: 58rem;
  }

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

  .strip-grid a:nth-child(2) {
    border-right: 0;
  }

  .strip-grid a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .bio-photo {
    position: static;
    max-width: 22rem;
  }

  .work-panel {
    padding: 0 0.9rem 1rem;
  }

  .project-list {
    max-width: none;
  }

  .video-embed {
    width: calc(100% + 1.8rem);
    margin: 0 -0.9rem 1rem;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

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

@media (max-width: 460px) {
  .container {
    width: min(calc(100% - 1.2rem), var(--max));
  }

  .brand {
    font-size: 0.82rem;
  }

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

  .strip-grid a {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .strip-grid a:last-child {
    border-bottom: 0;
  }

  .button,
  .button-secondary {
    width: 100%;
  }
}
