@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-regular-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-024F;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-medium-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+0100-024F;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/cormorant-garamond-bold-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0100-024F;
}

:root {
  --ink: #050505;
  --paper: #fff;
  --page-gutter: clamp(23px, 3.25vw, 47px);
  --content-max: 1346px;
  --header-height: 152px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

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

html {
  background: var(--paper);
  color: var(--ink);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.42;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-color: currentColor;
  text-decoration-thickness: 1px;
  text-underline-offset: .17em;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 9px 13px;
  background: var(--paper);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: relative;
  z-index: 30;
  min-height: var(--header-height);
  padding: 27px var(--page-gutter) 25px;
  background: var(--paper);
}

.header-inner {
  width: min(100%, var(--content-max));
  margin: 0 auto;
  text-align: center;
}

.brand {
  display: inline-block;
  margin: 0 0 32px;
  font-size: 36px;
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.08;
  text-decoration: none;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  position: relative;
  display: block;
  padding: 4px 0 8px;
  font-size: 17px;
  line-height: 1;
  text-decoration: none;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0;
  transform: scaleX(.35);
  transition: opacity .2s, transform .2s;
}

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

.menu-toggle {
  display: none;
  width: 36px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 35px;
  height: 1px;
  background: currentColor;
  content: "";
  transition: transform .25s var(--ease), opacity .2s;
}

.menu-toggle span {
  margin: 8px 0;
}

.menu-open .menu-toggle::before {
  transform: translateY(9px) rotate(45deg);
}

.menu-open .menu-toggle span {
  opacity: 0;
}

.menu-open .menu-toggle::after {
  transform: translateY(-9px) rotate(-45deg);
}

main {
  min-height: calc(100vh - var(--header-height));
}

.site-footer {
  display: flex;
  min-height: 173px;
  align-items: center;
  justify-content: center;
  padding: 55px 24px 65px;
}

.socials {
  display: flex;
  align-items: center;
  gap: 15px;
}

.socials a {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
}

.socials svg {
  width: 23px;
  height: 23px;
}

.socials a:first-child svg {
  width: 20px;
  height: 20px;
}

/* Home slideshow */
.home-main {
  padding: 0 var(--page-gutter);
}

.hero-gallery {
  position: relative;
  width: min(100%, var(--content-max));
  height: calc(100vh + 2 * var(--page-gutter));
  min-height: 600px;
  margin: 0 auto;
  overflow: hidden;
  touch-action: pan-y;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .7s ease;
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.hero-slide a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Portfolio indexes */
.portfolio-index {
  position: relative;
  min-height: 620px;
  height: 72vh;
  overflow: hidden;
  isolation: isolate;
}

.portfolio-backdrops,
.portfolio-backdrop,
.portfolio-backdrop::after {
  position: absolute;
  inset: 0;
}

.portfolio-backdrops {
  z-index: -1;
}

.portfolio-backdrop {
  opacity: 0;
  transition: opacity .55s ease;
}

.portfolio-backdrop::after {
  background: rgba(0, 0, 0, .15);
  content: "";
}

.portfolio-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-backdrop.is-active {
  opacity: 1;
}

.portfolio-list {
  display: flex;
  min-height: 620px;
  height: 72vh;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 76px;
  margin: 0;
  padding: 112px var(--page-gutter) 60px;
  list-style: none;
}

.portfolio-link {
  display: block;
  color: var(--ink);
  font-size: clamp(40px, 5.1vw, 73px);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: .98;
  text-align: center;
  text-decoration: none;
  transition: color .25s, opacity .25s;
}

.portfolio-index.has-active .portfolio-link {
  color: #fff;
}

.portfolio-index.has-active .portfolio-link:not(:hover):not(:focus-visible) {
  opacity: .72;
}

/* Shared content pages */
.content-page {
  width: min(calc(100% - 2 * var(--page-gutter)), var(--content-max));
  margin: 0 auto;
  padding: 47px 0 96px;
}

.content-page p,
.content-page li {
  font-size: 17px;
}

.content-page h1,
.content-page h2,
.content-page h3,
.content-page h4 {
  font-weight: 400;
}

.content-page h2 {
  font-size: 31px;
}

.content-page h3 {
  font-size: 25px;
}

.content-page h4 {
  font-size: 22px;
}

.projects {
  width: min(100%, 1016px);
  margin: 0 auto;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 356px) minmax(0, 1fr);
  gap: 101px;
  align-items: start;
  margin-bottom: 118px;
}

.project-media img {
  width: 100%;
}

.project-copy h1,
.project-copy h2,
.project-copy h3,
.project-copy h4 {
  display: inline;
  margin: 0 7px 0 0;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
}

.project-copy p {
  margin: 0 0 18px;
  line-height: 1.8;
}

.project-copy .project-meta {
  display: inline;
  line-height: 1.2;
}

.project-copy .project-meta p {
  display: inline;
  margin-right: 7px;
  line-height: 1.8;
}

.project-copy .project-meta + p {
  margin-top: 20px;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 13px;
  margin-top: 22px;
}

.project-links a,
.text-link {
  text-decoration: underline;
}

.music-projects {
  width: min(100%, 1050px);
  margin: 0 auto;
}

.music-project {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(250px, 2fr);
  gap: clamp(35px, 6vw, 82px);
  align-items: center;
  margin-bottom: 104px;
}

.music-project h2 {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.12;
}

.music-project p {
  margin: 0 0 8px;
}

.gallery-grid {
  display: grid;
  width: min(100%, 1180px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--page-gutter);
  margin: 0 auto;
}

.gallery-grid figure {
  margin: 0;
}

.gallery-grid img {
  width: 100%;
}

.gallery-grid figure:nth-child(3n) {
  grid-column: 1 / -1;
  width: 74%;
  margin-right: auto;
  margin-left: auto;
}

.pager {
  display: flex;
  width: min(100%, 1110px);
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin: 90px auto 0;
  padding-top: 42px;
  border-top: 1px solid #ddd;
}

.pager a {
  text-decoration: none;
}

.pager small {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  text-transform: uppercase;
}

.pager strong {
  font-size: 25px;
  font-weight: 400;
}

.pager .next {
  margin-left: auto;
  text-align: right;
}

.about-intro {
  display: block;
  width: min(100%, 1040px);
  margin: 0 auto 97px;
  padding-top: 15px;
  text-align: center;
}

.about-intro .lead {
  font-size: 17px;
  line-height: 1.42;
}

.about-intro .lead p {
  margin: 0 0 28px;
  font-size: inherit;
}

.about-intro img {
  width: min(100%, 785px);
  aspect-ratio: 5 / 3;
  margin: 70px auto 0;
  object-fit: cover;
}

.cv {
  display: grid;
  width: min(100%, 878px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px 100px;
  margin: 0 auto;
}

.cv section:first-child,
.cv section:last-child {
  grid-column: 1 / -1;
}

.cv section:first-child {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 74px;
}

.cv h2,
.cv h3 {
  margin: 0 0 20px;
  font-size: 22px;
  text-transform: uppercase;
}

.cv section:first-child h2 {
  font-size: 36px;
  line-height: 1;
}

.cv h4 {
  margin: 25px 0 8px;
  font-size: 18px;
}

.cv ul,
.press-links {
  margin: 0;
  padding-left: 1.1em;
}

.cv li,
.press-links li {
  margin-bottom: 7px;
}

.press-page {
  width: min(100%, 1040px);
  margin: 0 auto;
}

.press-links {
  columns: 2;
  column-gap: 70px;
  margin-bottom: 100px;
}

.press-links li {
  break-inside: avoid;
}

.press-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
  margin-bottom: 90px;
}

.press-feature blockquote {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
}

.press-feature cite {
  display: block;
  margin-top: 20px;
  font-size: 15px;
  font-style: normal;
  text-transform: uppercase;
}

.directing {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.directing-hero {
  display: grid;
  grid-template-columns: minmax(250px, .75fr) minmax(0, 1.25fr);
  gap: clamp(40px, 7vw, 90px);
  margin-bottom: 90px;
}

.directing-copy h1,
.teaching h1 {
  margin: 0 0 24px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.02;
}

.directing-copy p {
  margin: 0 0 13px;
}

.film-stills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--page-gutter);
  margin: 70px 0 110px;
}

.film-stills img {
  width: 100%;
}

.directing-film {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(45px, 7vw, 90px);
  align-items: center;
  margin-bottom: 100px;
}

.directing-film h2 {
  margin-top: 0;
  font-size: 31px;
}

.teaching {
  width: min(100%, 940px);
  margin: 0 auto;
}

.teaching-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.teaching-list li {
  margin-bottom: 30px;
  font-size: 19px;
}

.teaching-list strong {
  font-weight: 500;
}

.video-stage {
  width: min(100%, 980px);
  margin: 0 auto;
}

.video-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  background: #111;
  color: #fff;
  cursor: pointer;
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .84;
}

.video-placeholder::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: rgba(0, 0, 0, .3);
  content: "▶";
  font-family: Arial, sans-serif;
  font-size: 24px;
  line-height: 70px;
  text-align: center;
  text-indent: 4px;
  transform: translate(-50%, -50%);
}

.video-stage iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.video-stage h1 {
  margin: 26px 0 0;
  font-size: 28px;
  font-weight: 400;
}

@media (max-width: 767px) {
  :root {
    --header-height: 85px;
  }

  html {
    font-size: 17px;
  }

  .site-header {
    min-height: var(--header-height);
    padding: 27px 29px 24px;
  }

  .header-inner {
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    align-items: center;
    text-align: center;
  }

  .brand {
    grid-column: 2;
    margin: 0;
    font-size: 28px;
    letter-spacing: -.04em;
    white-space: nowrap;
  }

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

  .primary-nav {
    position: fixed;
    z-index: -1;
    inset: var(--header-height) 0 0;
    display: grid;
    overflow: auto;
    place-items: center;
    padding: 50px 24px 120px;
    background: var(--paper);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity .25s, transform .25s;
  }

  .menu-open .primary-nav {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .primary-nav ul {
    flex-direction: column;
    gap: 17px;
  }

  .primary-nav a {
    font-size: 34px;
  }

  .home-main {
    padding: 0 23px;
  }

  .hero-gallery {
    height: 542px;
    min-height: 0;
  }

  .hero-slide {
    align-items: start;
    padding-top: 98px;
  }

  .hero-slide a {
    height: auto;
  }

  .hero-slide img {
    width: 100%;
    height: auto;
    max-height: 280px;
  }

  .site-footer {
    min-height: 217px;
    padding: 50px 24px 108px;
  }

  .home-page .site-footer {
    min-height: 217px;
    padding-top: 30px;
    padding-bottom: 93px;
  }

  .home-page main {
    min-height: 0;
  }

  .portfolio-page main {
    min-height: 0;
  }

  .portfolio-index,
  .portfolio-list {
    min-height: 607px;
    height: 607px;
  }

  .portfolio-index {
    overflow: visible;
  }

  .portfolio-backdrops {
    display: none;
  }

  .portfolio-list {
    justify-content: flex-start;
    gap: 47px;
    padding: 43px 23px 40px;
  }

  .portfolio-list li {
    width: 100%;
  }

  .portfolio-link {
    width: auto;
    max-width: 235px;
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    background: none;
    color: var(--ink);
    font-size: 42px;
    line-height: 1.52;
  }

  .portfolio-index.has-active .portfolio-link {
    color: var(--ink);
  }

  .portfolio-index.has-active .portfolio-link:not(:hover):not(:focus-visible) {
    opacity: 1;
  }

  .content-page {
    width: calc(100% - 46px);
    padding: 44px 0 74px;
  }

  .project,
  .project:nth-child(even),
  .music-project,
  .about-intro,
  .press-feature,
  .directing-hero,
  .directing-film {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .project,
  .music-project {
    margin-bottom: 78px;
  }

  .project:nth-child(even) .project-media,
  .project:nth-child(even) .project-copy {
    order: initial;
  }

  .project-copy h1,
  .project-copy h2,
  .project-copy h3,
  .project-copy h4 {
    margin-bottom: 15px;
    font-size: 25px;
  }

  .project-media img {
    max-height: 620px;
    object-fit: contain;
  }

  .gallery-grid,
  .film-stills,
  .cv {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    gap: 23px;
  }

  .gallery-grid figure:nth-child(3n) {
    grid-column: auto;
    width: 100%;
  }

  .about-intro {
    margin-bottom: 62px;
  }

  .about-intro .lead {
    font-size: 30px;
  }

  .cv {
    gap: 45px;
  }

  .cv section:first-child,
  .cv section:last-child {
    grid-column: auto;
  }

  .cv section:first-child {
    display: block;
  }

  .press-links {
    columns: 1;
    margin-bottom: 70px;
  }

  .press-feature {
    margin-bottom: 70px;
  }

  .press-feature blockquote {
    font-size: 20px;
  }

  .directing-hero,
  .directing-film {
    margin-bottom: 76px;
  }

  .film-stills {
    gap: 23px;
    margin: 55px 0 75px;
  }

  .pager {
    margin-top: 58px;
  }

  .pager strong {
    font-size: 19px;
  }

  .video-placeholder::after {
    width: 58px;
    height: 58px;
    font-size: 19px;
    line-height: 56px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
