@font-face {
  font-family: Montserrat;
  src: url("fonts/montserrat.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "PT Sans";
  src: url("fonts/pt-sans.woff2") format("woff2");
  font-display: swap;
}

:root {
  --ink: #333;
  --muted: #555;
  --dark: #222;
  --accent: #e74c3c;
  --frame: 6px;
  --heading: Montserrat, sans-serif;
  font: 100% / 1.4 "PT Sans", sans-serif;
  color: var(--ink);
  background: white;
}

*, *::before, *::after { box-sizing: border-box; }
body, figure { margin: 0; }
button, input { font: inherit; }
img { display: block; max-inline-size: 100%; }
a { color: inherit; }
a:hover { color: #bd392c; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.visually-hidden,
.skip-link:not(:focus),
.slide-step:not(:focus-visible) span {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  z-index: 3;
  inset: 1rem auto auto 1rem;
  padding: .65rem 1rem;
  color: var(--ink);
  background: white;
}

.site-header {
  position: sticky;
  z-index: 2;
  inset-block-start: 0;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 0 1rem;
  margin-block-end: 4px;
  padding: 10px 25px;
  border-block-end: 1px solid #101010;
  color: #ccc;
  background: var(--dark);
  font: 1rem / 1.25 var(--heading);
}

.brand {
  display: block;
  padding-block: 15px;
  font-size: 18px;
}

.brand, .site-header nav a { text-decoration: none; }
.site-header a:hover, .site-header a[aria-current="page"] { color: var(--accent); }
.site-header ul { margin: 0; padding: 0; list-style: none; }
.nav-list { display: flex; align-items: start; }
.nav-list > li { position: relative; }
.nav-list a { display: block; padding: 15px; white-space: nowrap; }
.nav-list > li:has(.subnav) > a::after {
  display: inline-block;
  margin-inline-start: 4px;
  border: 4px solid transparent;
  border-block-start-color: currentColor;
  border-block-end: 0;
  vertical-align: middle;
  content: "";
}

.subnav {
  display: none;
  position: absolute;
  z-index: 1;
  inset: 100% auto auto 50%;
  min-inline-size: max-content;
  transform: translateX(-50%);
  border-block-end: 1px solid #101010;
  background: var(--dark);
  text-align: center;
}
.nav-list > li:hover > .subnav,
.nav-list > li:focus-within > .subnav { display: block; }
.subnav a { padding: 5px 12px; }

.menu-toggle { display: none; }
.home-header {
  position: absolute;
  inset: 24px 10px auto;
  border: 0;
  color: white;
  background: transparent;
  text-shadow: 0 1px #000;
}
.home-header .brand {
  display: grid;
  gap: 2px;
  padding-block: 6px 0;
  font-size: 20px;
  line-height: 1.08;
}
.brand .given-name { font-size: 34px; }
.brand .profession { font-size: 27px; color: var(--accent); }
.home-header .subnav { border: 0; background: rgb(0 0 0 / 32%); }

.slideshow { position: relative; block-size: 100svh; min-block-size: 500px; }
.slide-frame { position: absolute; inset: var(--frame); overflow: hidden; }
.slide-frame figure, .slide-frame img { inline-size: 100%; block-size: 100%; }
.slide-frame img {
  object-fit: cover;
  transform: translateY(var(--slide-offset, 0px));
}
.slide-frame figcaption {
  position: absolute;
  inset: auto 44px 34px auto;
  color: #ddd;
  font: 17px / 1.4 var(--heading);
  text-shadow: 0 1px #000, 0 1px 4px #000;
}
.slide-progress {
  position: absolute;
  inset: auto 0 0;
  block-size: 6px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}

.slide-step, .slide-pause {
  position: absolute;
  padding: 0;
  border: 0;
  color: white;
  background: transparent;
}
.slide-step { inset-block: 15%; inline-size: 25%; }
.slide-step:focus-visible span {
  padding: .4em .6em;
  border-radius: 3px;
  background: rgb(0 0 0 / 65%);
}
.slide-step[data-step="-1"] { inset-inline-start: 0; cursor: w-resize; }
.slide-step[data-step="1"] { inset-inline-end: 0; cursor: e-resize; }
.slide-pause {
  inset: auto auto 34px 30px;
  display: grid;
  place-items: center;
  inline-size: 30px;
  block-size: 30px;
  border: 1px solid rgb(255 255 255 / 54%);
  border-radius: 4px;
  background: rgb(0 0 0 / 35%);
  cursor: pointer;
}
.slide-pause::after {
  inline-size: 10px;
  block-size: 12px;
  border-inline: 3px solid currentColor;
  content: "";
}
.slide-pause[data-paused]::after {
  inline-size: 0;
  block-size: 0;
  border: 6px solid transparent;
  border-inline-end: 0;
  border-inline-start: 9px solid currentColor;
}

.section-title {
  margin: 55px 0 15px;
  color: var(--ink);
  font: 33px / 1.15 var(--heading);
  text-align: center;
}
.section-title span { color: var(--accent); }

.filmography, .contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block-end: 30px;
}
.filmography::before, .contact::before {
  position: absolute;
  z-index: -1;
  inset: 135px 0 115px;
  transform: skewY(-2deg);
  background: rgb(231 76 60 / 5%);
  content: "";
}
.credits {
  display: grid;
  max-inline-size: 1120px;
  margin: 0 auto;
  padding: 60px 25px 50px;
  gap: 40px clamp(35px, 7vw, 120px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.credit {
  display: grid;
  grid-template-columns: 35px 1fr;
  column-gap: 40px;
  align-content: start;
}
.credit img { grid-row: span 2; inline-size: 35px; block-size: 35px; object-fit: contain; }
.credit h3, .contact .agent {
  margin: 0 0 10px;
  font: 21px / 1.2 var(--heading);
}
.credit p { margin: 0; color: var(--muted); }
.cv-link { margin: 0; text-align: center; }
.cv-link a {
  display: inline-block;
  padding: 9px 12px;
  border: 2px solid;
  border-radius: 5px;
  font: 20px / 1.4 var(--heading);
  text-decoration: none;
}

.media-links {
  display: grid;
  grid-template: repeat(2, minmax(0, 1fr)) / repeat(2, minmax(0, 1fr));
  gap: var(--frame);
  block-size: calc(100svh - 2 * var(--frame));
  margin: 30px var(--frame) 0;
}
.media-tile {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  color: white;
  background: #222;
  font: 35px / 1.1 var(--heading);
  text-align: center;
  text-decoration: none;
}
.media-tile:first-child { grid-row: span 2; }
.media-tile img, .media-tile::after { position: absolute; z-index: -1; inset: 0; }
.media-tile img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.media-tile:first-child img { object-position: center top; }
.media-tile::after { background: rgb(0 0 0 / 40%); content: ""; }
.media-tile span, .media-tile::after { opacity: 0; }
.media-tile:hover, .media-tile:focus-visible { color: white; }
.media-tile:hover span, .media-tile:hover::after,
.media-tile:focus-visible span, .media-tile:focus-visible::after { opacity: 1; }

.contact { padding-block-end: 90px; text-align: center; }
.contact::before { inset-block-end: -100px; }
.contact address { margin-block-start: 100px; font: normal 19px / 1.4 "PT Sans", sans-serif; }
.social { display: flex; justify-content: center; gap: 10px; margin-block-start: 70px; }
.social img { block-size: 25px; inline-size: auto; filter: grayscale(1); }
.social a:hover img, .social a:focus-visible img { filter: none; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 28px 35px;
  color: #ccc;
  background: var(--dark);
}
.site-footer p { margin: 0; }
.site-footer a { color: white; font-weight: bold; }

.gallery-search { margin: 8px 12px 12px; }
.gallery-search summary { cursor: pointer; }
.gallery-search input {
  display: block;
  inline-size: min(100%, 26rem);
  margin-block-start: 7px;
  padding: 7px 9px;
  border: 1px solid #888;
  border-radius: 3px;
}
.gallery-search output { display: block; margin-block-start: 6px; }

.gallery {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
.gallery::after { content: ""; flex: 999 0 0; }
.gallery li {
  position: relative;
  display: block;
  flex: var(--ratio) 1 calc(var(--ratio) * clamp(10rem, 27vw, 28rem));
  min-inline-size: 0;
  aspect-ratio: var(--ratio);
}
.gallery-item { position: absolute; inset: 0; }
.gallery-item:focus-visible { z-index: 1; outline-offset: -2px; }
.gallery-item img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.gallery-item .caption {
  position: absolute;
  inset: auto 0 0;
  padding: 5px 8px;
  color: white;
  background: rgb(0 0 0 / 72%);
  font-size: 15px;
  overflow-wrap: anywhere;
  opacity: 0;
}
.gallery-item:hover .caption, .gallery-item:focus-visible .caption { opacity: 1; }
.video-badge {
  position: absolute;
  inset: 5px 5px auto auto;
  padding: 3px 7px;
  border-radius: 2px;
  color: white;
  background: rgb(0 0 0 / 75%);
  font-size: .875rem;
}

.viewer {
  inline-size: min(calc(100% - 1rem), 980px);
  max-block-size: calc(100dvh - 1rem);
  margin: auto;
  border: 0;
  padding: 12px;
  color: white;
  background: var(--dark);
}
.viewer::backdrop { background: rgb(0 0 0 / 80%); }
.viewer-toolbar, .viewer-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.viewer-toolbar { justify-content: space-between; margin-block-end: 10px; }
.viewer button, .viewer-toolbar a {
  display: inline-flex;
  align-items: center;
  min-block-size: 36px;
  padding: 4px 8px;
  border: 1px solid currentColor;
  border-radius: 3px;
  color: white;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}
.viewer-toolbar button:hover, .viewer-toolbar a:hover { background: #444; }
.viewer figure { text-align: center; }
.viewer img { inline-size: auto; max-block-size: min(66dvh, 52rem); margin-inline: auto; object-fit: contain; }
.viewer figcaption { margin-block-start: 8px; }

@media (max-width: 991px) {
  .credits { grid-template-columns: 1fr; max-inline-size: 750px; }
}

@media (max-width: 767px) {
  .site-header { flex-wrap: wrap; align-items: center; padding: 10px 25px; }
  .site-header nav { flex-basis: 100%; max-block-size: 60svh; overflow: auto; }
  .site-header:has(.menu-toggle[aria-expanded="false"]:not([hidden])) nav { display: none; }
  .home-header {
    position: relative;
    inset: auto;
    margin: var(--frame) var(--frame) 0;
    background: var(--dark);
  }
  .home-header:has(.menu-toggle:not([hidden])) {
    position: absolute;
    inset: 0 0 auto;
    background: rgb(0 0 0 / 42%);
  }
  .home-header .brand { display: flex; align-items: baseline; gap: 5px; padding: 15px 5px; }
  .home-header .brand, .brand .given-name { font-size: 17px; }
  .brand .profession { display: none; }
  .menu-toggle {
    display: block;
    inline-size: 44px;
    block-size: 34px;
    border: 1px solid #505050;
    border-radius: 4px;
    color: white;
    background: transparent;
    cursor: pointer;
  }
  .menu-toggle::after {
    display: block;
    inline-size: 22px;
    block-size: 2px;
    margin: auto;
    box-shadow: 0 -6px currentColor, 0 6px currentColor;
    background: currentColor;
    content: "";
  }
  .nav-list { display: block; padding-block: 6px; border-block-start: 1px solid #555; }
  .nav-list a { padding: 9px 0; }
  .nav-list > li:has(.subnav) > a::after { content: none; }
  .site-header .subnav { position: static; display: block; transform: none; background: none; border: 0; text-align: start; }
  .subnav a { padding-inline-start: 1rem; }
  .slide-frame figcaption { inset-inline: 0; text-align: center; }
  .slide-pause { inset: auto auto 12px 12px; }
  .credit { column-gap: 25px; }
  .media-links { grid-template: auto / 1fr; block-size: auto; }
  .media-tile { min-block-size: 400px; font-size: 30px; }
  .media-tile:first-child { grid-row: auto; }
  .contact address { font-size: 16px; }
  .site-footer { flex-direction: column; text-align: center; }
  .gallery li { flex-basis: calc(var(--ratio) * clamp(12rem, 39vw, 24rem)); }
}

@media (hover: none), (max-width: 767px) {
  .media-tile span, .media-tile::after { opacity: 1; }
}

@media (hover: none) {
  .gallery-item .caption { opacity: 1; }
}

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