/* Yann Sebastian Harz — static site prototype v01 */

@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/EBGaramond-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("../fonts/EBGaramond-Italic-Variable.ttf") format("truetype");
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-Italic-Variable.ttf") format("truetype");
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --bg: #070909;
  --bg-soft: #0e1212;
  --text: #ebe7dc;
  --muted: #a49d90;
  --line: rgba(235, 231, 220, 0.14);
  --accent: #d8c59b;
  --shadow: rgba(0, 0, 0, 0.55);
  --max: 1180px;
  --narrow: 780px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  transform: translateY(-160%);
  background: var(--text);
  color: var(--bg);
  padding: .6rem .9rem;
  z-index: 1000;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.2rem, 4vw, 3.5rem);
  color: var(--text);
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(7, 9, 9, .76);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.brand {
  text-decoration: none;
  font-family: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  letter-spacing: .22em;
}

.main-nav {
  display: flex;
  gap: clamp(1rem, 2.6vw, 2.25rem);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.main-nav a {
  text-decoration: none;
  color: rgba(235, 231, 220, .78);
}

.main-nav a:hover {
  color: var(--text);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #050606;
}

.hero__image {
  position: absolute;
  inset: 0;
  background-image: url("../images/hero-coastal-road-16-9.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

@media (min-aspect-ratio: 2 / 1) {
  .hero__image {
    background-image: url("../images/hero-coastal-road-21-9.jpg");
  }
}

@media (max-aspect-ratio: 4 / 5) {
  .hero__image {
    background-image: url("../images/hero-coastal-road-4-5.jpg");
    background-position: center center;
  }
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.36) 44%, rgba(0,0,0,.26) 100%),
    linear-gradient(0deg, rgba(7,9,9,.96) 0%, rgba(7,9,9,.16) 54%, rgba(7,9,9,.45) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 2.4rem));
  margin: 0 clamp(1.2rem, 7vw, 7rem) clamp(3rem, 9vh, 6rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .72rem;
}

h1,
h2,
h3 {
  font-family: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.05;
}

h1 {
  margin: 0;
  font-size: clamp(3.1rem, 9vw, 8.5rem);
  letter-spacing: -.04em;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 5vw, 5.2rem);
  letter-spacing: -.025em;
}

h3 {
  margin: 0 0 .4rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -.015em;
}

.claim {
  margin: .5rem 0 0;
  font-family: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 3vw, 2.35rem);
  letter-spacing: .01em;
  color: rgba(235, 231, 220, .92);
}

.lead {
  margin: 1.45rem 0 0;
  max-width: 700px;
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  color: rgba(235, 231, 220, .82);
}

.hero__actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: .72rem 1.05rem;
  border: 1px solid rgba(235, 231, 220, .7);
  background: rgba(235, 231, 220, .92);
  color: #090909;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.button:hover {
  transform: translateY(-1px);
  background: var(--text);
}

.button--ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(235, 231, 220, .34);
}

.button--ghost:hover {
  background: rgba(235, 231, 220, .12);
  color: var(--text);
}

.section-pad {
  padding: clamp(4.5rem, 10vw, 9rem) clamp(1.2rem, 4vw, 3.5rem);
}

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

.container--narrow {
  width: min(var(--narrow), 100%);
}

.intro {
  background: var(--bg);
}

.intro-text {
  margin: 0;
  font-family: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3.4vw, 3rem);
  line-height: 1.18;
  letter-spacing: -.035em;
  color: rgba(235, 231, 220, .88);
}

.section-heading {
  margin-bottom: 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .9rem;
}

.work-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--bg-soft);
}

.work-card--large {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 850px;
}

.work-card a {
  display: block;
  height: 100%;
  text-decoration: none;
}

.work-card img {
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  filter: saturate(.92) contrast(1.02);
  transition: transform .7s ease, filter .7s ease;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.22) 44%, rgba(0,0,0,.06) 100%);
  pointer-events: none;
}

.work-card__text {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  padding: 1.3rem;
}

.work-card__text p {
  margin: 0;
  max-width: 440px;
  color: rgba(235, 231, 220, .76);
}

.work-card:hover img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.06);
}

.work-card.is-selected {
  outline: 1px solid rgba(235, 231, 220, .58);
  outline-offset: -1px;
}

.works-preview {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .25s ease, transform .25s ease;
}

.works-preview.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.works-preview__heading {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: 1rem;
}

.works-preview__heading .eyebrow {
  margin-bottom: .35rem;
}

.works-preview__heading h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
}

.works-preview__close {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(235, 231, 220, .26);
  color: var(--text);
  background: transparent;
  font-family: inherit;
  font-size: 1.7rem;
  cursor: pointer;
}

.works-preview__film {
  position: relative;
  overflow: hidden;
  padding: 2rem clamp(2.8rem, 5vw, 4.5rem);
  border-top: 1px solid rgba(235, 231, 220, .18);
  border-bottom: 1px solid rgba(235, 231, 220, .18);
  background:
    repeating-linear-gradient(90deg, transparent 0 20px, rgba(235, 231, 220, .13) 20px 30px, transparent 30px 48px) top / 100% 7px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 20px, rgba(235, 231, 220, .13) 20px 30px, transparent 30px 48px) bottom / 100% 7px no-repeat,
    #090a09;
}

.works-preview__track {
  display: flex;
  gap: clamp(.75rem, 1.5vw, 1.2rem);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.works-preview__track::-webkit-scrollbar {
  display: none;
}

.works-preview__frame {
  flex: 0 0 clamp(230px, 27vw, 380px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  border: 0;
  scroll-snap-align: center;
  background: var(--bg-soft);
  cursor: pointer;
}

.works-preview__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s ease, filter .65s ease;
}

.works-preview__frame:hover img,
.works-preview__frame:focus-visible img {
  transform: scale(1.025);
  filter: brightness(1.06);
}

.works-preview__nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 64px;
  padding: 0;
  border: 1px solid rgba(235, 231, 220, .22);
  color: var(--text);
  background: rgba(6, 7, 7, .82);
  font-family: inherit;
  font-size: 2.3rem;
  font-weight: 200;
  cursor: pointer;
  transform: translateY(-50%);
}

.works-preview__nav--previous {
  left: .45rem;
}

.works-preview__nav--next {
  right: .45rem;
}

.feature {
  background: var(--bg-soft);
}

.feature__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.feature__media {
  overflow: hidden;
  background: #000;
}

.feature__media img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.feature__text p {
  color: rgba(235, 231, 220, .78);
  max-width: 560px;
}

.project--plastic {
  background: #090c0c;
}

.project__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.project__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #050606;
}

.project__media img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .7s ease, filter .7s ease;
}

.project__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .66), transparent 42%);
  pointer-events: none;
}

.project__media:hover img,
.project__media:focus-visible img {
  transform: scale(1.025);
  filter: brightness(.9);
}

.project__media-label {
  position: absolute;
  z-index: 1;
  right: 1.2rem;
  bottom: 1rem;
  color: var(--text);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.project__text p {
  max-width: 620px;
  color: rgba(235, 231, 220, .78);
}

.project__visual {
  min-width: 0;
}

.plastic-film {
  margin-top: .8rem;
}

.plastic-film__film {
  padding: 1.35rem 2.7rem;
  animation: gallery-filmstrip 18s linear infinite;
}

.plastic-film__track .works-preview__frame {
  flex-basis: clamp(140px, 14vw, 210px);
}

.commissions {
  border-top: 1px solid var(--line);
  background: #0b0e0e;
}

.commissions__intro {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
  width: 100%;
  min-height: inherit;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.commissions__hero {
  position: relative;
  display: flex;
  align-items: stretch;
  min-height: clamp(500px, 52vw, 660px);
  margin-bottom: .9rem;
  overflow: hidden;
  background: #050606 url("../images/companies/commissions-subhero.webp") center center / cover no-repeat;
}

.commissions__intro > div:first-child {
  align-self: start;
}

.commissions__copy {
  align-self: end;
}

.commissions__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 4, 7, .92) 0%, rgba(2, 4, 7, .58) 50%, rgba(2, 4, 7, .74) 100%),
    linear-gradient(0deg, rgba(2, 4, 7, .94) 0%, rgba(2, 4, 7, .06) 72%);
}

.commissions__intro h2 {
  max-width: 700px;
}

.commissions__copy p {
  max-width: 650px;
  color: rgba(235, 231, 220, .78);
  font-size: 1.08rem;
}

.commission-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
  gap: .9rem;
}

.commission-card {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #050606;
}

.commission-card a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.commission-card img {
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform .75s ease, filter .75s ease;
}

.commission-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(0, 0, 0, .82), rgba(0, 0, 0, .06) 58%);
}

.commission-card__text {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  padding: clamp(1.3rem, 3vw, 2rem);
}

.commission-card__text p,
.commission-card__text span {
  margin: 0;
  color: rgba(235, 231, 220, .7);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.commission-card__text h3 {
  margin: .35rem 0 .55rem;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
}

.commission-card:not(.commission-card--primary) .commission-card__text h3 {
  font-size: clamp(2.1rem, 3vw, 3.6rem);
  line-height: 1;
  white-space: nowrap;
}

.commission-card:hover img,
.commission-card:focus-within img {
  transform: scale(1.035);
  filter: brightness(.88);
}

.text-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  text-underline-offset: .22em;
}

.contact__social {
  margin-left: 1.2rem;
}

.prints,
.contact {
  border-top: 1px solid var(--line);
}

.prints h2,
.contact h2 {
  font-size: clamp(2.1rem, 4.5vw, 4.6rem);
}

.prints__grid {
  display: block;
}

.prints__copy {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.prints__film {
  position: relative;
  overflow: hidden;
  padding: 2rem clamp(2.8rem, 5vw, 4.5rem);
  border-top: 1px solid rgba(235, 231, 220, .18);
  border-bottom: 1px solid rgba(235, 231, 220, .18);
  background:
    repeating-linear-gradient(90deg, transparent 0 20px, rgba(235, 231, 220, .13) 20px 30px, transparent 30px 48px) top / 100% 7px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 20px, rgba(235, 231, 220, .13) 20px 30px, transparent 30px 48px) bottom / 100% 7px no-repeat,
    #090a09;
}

.prints__track {
  display: flex;
  gap: clamp(.75rem, 1.5vw, 1.2rem);
  overflow: hidden;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.prints__track::-webkit-scrollbar {
  display: none;
}

.prints__frame {
  flex: 0 0 clamp(190px, 23vw, 310px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  scroll-snap-align: center;
  background: var(--bg-soft);
}

.prints__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s ease, filter .65s ease;
}

.prints__frame:hover img,
.prints__frame:focus-visible img {
  transform: scale(1.025);
  filter: brightness(1.05);
}

.prints__nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 64px;
  padding: 0;
  border: 1px solid rgba(235, 231, 220, .22);
  color: var(--text);
  background: rgba(6, 7, 7, .82);
  font-family: inherit;
  font-size: 2.3rem;
  font-weight: 200;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .2s ease, border-color .2s ease;
}

.prints__nav:hover,
.prints__nav:focus-visible {
  border-color: rgba(235, 231, 220, .55);
  background: rgba(17, 18, 17, .96);
}

.prints__nav--previous {
  left: .45rem;
}

.prints__nav--next {
  right: .45rem;
}

.prints p,
.contact p,
.about p {
  color: rgba(235, 231, 220, .76);
  font-size: 1.05rem;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(280px, 1.15fr);
  gap: clamp(2rem, 6vw, 6rem);
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
}

.about__panel {
  position: relative;
  min-height: clamp(520px, 52vw, 680px);
  align-items: end;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-top: 0;
  background: #120f0a url("../images/subhero/about-saphiro.webp") center center / cover no-repeat;
}

.about__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 7, 5, .78), rgba(8, 7, 5, .34) 50%, rgba(8, 7, 5, .62)),
    linear-gradient(0deg, rgba(8, 7, 5, .88), transparent 72%);
}

.about__panel > div {
  position: relative;
  z-index: 1;
}

.about__grid > div:last-child p {
  font-size: 1.12rem;
}

.small-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: .88rem !important;
}

code {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem clamp(1.2rem, 4vw, 3.5rem);
  color: var(--muted);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: .88rem;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 960px) {
  .main-nav {
    gap: .9rem;
    font-size: .68rem;
  }

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

  .work-card--large {
    grid-column: span 2;
    min-height: 620px;
  }

  .feature__inner,
  .project__inner,
  .commissions__intro,
  .prints__grid,
  .about__grid {
    grid-template-columns: 1fr;
  }

  .commission-grid {
    grid-template-columns: 1.25fr .75fr;
  }

  .commissions__hero {
    min-height: 620px;
  }

}

@media (max-width: 680px) {
  .site-header {
    height: auto;
    min-height: 64px;
    align-items: flex-start;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .main-nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    line-height: 1.8;
  }

  .hero__content {
    margin-bottom: 2.2rem;
  }

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

  .work-card,
  .work-card--large {
    grid-column: span 1;
    min-height: 460px;
  }

  .works-preview__film {
    margin-inline: -1.1rem;
    padding: 1.5rem 2.7rem;
  }

  .works-preview__frame {
    flex-basis: min(76vw, 340px);
  }

  .works-preview__nav {
    width: 36px;
    height: 58px;
    font-size: 2rem;
  }

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

  .commissions__hero {
    min-height: 760px;
    background-position: 42% center;
  }

  .commissions__intro {
    padding: 2rem 1.3rem;
  }

  .commission-card {
    min-height: 480px;
  }

  .prints__film {
    margin-inline: -1.1rem;
    padding: 1.5rem 2.7rem;
  }

  .prints__frame {
    flex-basis: min(68vw, 290px);
  }

  .prints__nav {
    width: 36px;
    height: 58px;
    font-size: 2rem;
  }

  .about__panel {
    min-height: 760px;
    padding: 2rem 1.3rem;
    background-position: 48% center;
  }

  .site-footer {
    display: grid;
  }

  .contact__social {
    display: table;
    margin-left: 0;
  }
}


/* v02 refinements */
.feature__media--poster {
  display: grid;
  place-items: center;
  background: #080909;
  padding: clamp(1rem, 3vw, 2rem);
}

.feature__media--poster img {
  width: min(100%, 520px);
  max-height: 78vh;
  aspect-ratio: auto;
  object-fit: contain;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
}

.trailer-trigger {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 520px);
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
}

.trailer-trigger img {
  width: 100%;
  transition: filter .35s ease, transform .35s ease;
}

.trailer-trigger__play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .8rem 1rem;
  background: rgba(6, 7, 7, .82);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .38);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  transition: background .25s ease, transform .25s ease;
}

.trailer-trigger__icon {
  color: var(--accent);
  font-size: 1rem;
}

.trailer-trigger:hover img,
.trailer-trigger:focus-visible img {
  filter: brightness(.72);
  transform: scale(1.01);
}

.trailer-trigger:hover .trailer-trigger__play,
.trailer-trigger:focus-visible .trailer-trigger__play {
  background: rgba(6, 7, 7, .96);
  transform: translate(-50%, -50%) scale(1.04);
}

.feature__media--video {
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
}

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

/* Selected Works galleries */
.gallery-open {
  overflow: hidden;
}

.gallery {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--text);
  background: rgba(5, 6, 6, .97);
}

.gallery::backdrop {
  background: rgba(0, 0, 0, .92);
}

.gallery__frame {
  position: relative;
  display: grid;
  grid-template-columns: clamp(48px, 7vw, 88px) minmax(0, 1fr) clamp(48px, 7vw, 88px);
  align-items: center;
  width: 100%;
  height: 100%;
  padding: clamp(1rem, 3vw, 2.5rem);
}

.gallery__figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 1rem;
  justify-self: center;
  min-width: 0;
  width: min(100%, 1280px);
  height: min(90vh, 980px);
  margin: 0;
}

.gallery__figure img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  opacity: 1;
  transition: opacity .18s ease;
  will-change: opacity;
}

.gallery__figure img.is-changing {
  opacity: 0;
}

.gallery__caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(235, 231, 220, .72);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.gallery__thumbs {
  display: flex;
  gap: .55rem;
  min-width: 0;
  overflow-x: auto;
  padding: 1rem .45rem;
  border-top: 1px solid rgba(235, 231, 220, .14);
  border-bottom: 1px solid rgba(235, 231, 220, .14);
  background:
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(235, 231, 220, .5) 16px 24px, transparent 24px 38px) top / auto 5px repeat-x,
    repeating-linear-gradient(90deg, transparent 0 16px, rgba(235, 231, 220, .5) 16px 24px, transparent 24px 38px) bottom / auto 5px repeat-x,
    #090a09;
  animation: gallery-filmstrip 18s linear infinite;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

@keyframes gallery-filmstrip {
  from {
    background-position: 0 top, 0 bottom, 0 0;
  }

  to {
    background-position: 76px top, 76px bottom, 0 0;
  }
}

.gallery__thumbs::-webkit-scrollbar {
  display: none;
}

.gallery__thumb {
  flex: 0 0 clamp(74px, 8vw, 112px);
  height: clamp(54px, 6vw, 78px);
  overflow: hidden;
  padding: 0;
  border: 1px solid transparent;
  background: #0b0c0c;
  cursor: pointer;
  opacity: .5;
  transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}

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

.gallery__thumb:hover,
.gallery__thumb:focus-visible {
  opacity: .86;
}

.gallery__thumb.is-active {
  border-color: rgba(235, 231, 220, .78);
  opacity: 1;
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .gallery__thumbs,
  .plastic-film__film {
    animation: none;
  }
}

.gallery__close,
.gallery__nav {
  border: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.gallery__close {
  position: absolute;
  z-index: 2;
  top: clamp(.75rem, 2vw, 1.5rem);
  right: clamp(.9rem, 2.5vw, 2rem);
  width: 48px;
  height: 48px;
  font-size: 2.1rem;
  font-weight: 200;
  line-height: 1;
}

.gallery__nav {
  display: grid;
  place-items: center;
  width: 100%;
  height: 88px;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 200;
  opacity: .7;
  transition: opacity .2s ease, transform .2s ease;
}

.gallery__nav:hover,
.gallery__nav:focus-visible,
.gallery__close:hover,
.gallery__close:focus-visible {
  opacity: 1;
}

.gallery__nav--previous:hover {
  transform: translateX(-4px);
}

.gallery__nav--next:hover {
  transform: translateX(4px);
}

@media (max-width: 680px) {
  .gallery__frame {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    padding: 4.25rem .35rem 1rem;
  }

  .gallery__figure {
    gap: .7rem;
    width: 100%;
    height: min(82vh, 780px);
  }

  .gallery__caption {
    font-size: .62rem;
    letter-spacing: .1em;
  }

  .gallery__nav {
    height: 64px;
    font-size: 2.8rem;
  }

  .gallery__thumb {
    flex-basis: 68px;
    height: 50px;
  }
}
