:root {
  color-scheme: light;
  --paper: #f4f1eb;
  --ink: #211e19;
  --muted: #605b52;
  --line: #bdb6aa;
  --well: #e8e3da;
  --sans: "Helvetica Neue", Arial, sans-serif;
  --serif: "Baskerville", "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --edge: clamp(20px, 5vw, 88px);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; width: 100%; height: auto; }
figure, h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2, .project-neighbor { font-family: var(--serif); font-weight: 400; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 5px; }
::selection { color: var(--paper); background: #51493e; }

.frame { width: min(100% - 2 * var(--edge), 1480px); margin-inline: auto; }
.eyebrow, .site-header nav, .site-footer, .text-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  line-height: 1.45;
  text-transform: uppercase;
}
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: absolute; top: 10px; left: 10px; padding: 10px; z-index: 2; background: var(--paper); }
.link-arrow { display: inline-block; width: 15px; height: 15px; flex: none; vertical-align: -.22em; }
.text-link { display: inline-flex; align-items: center; gap: 10px; padding-block: 8px; border-bottom: 1px solid var(--line); }
.text-link:hover, .text-link:focus-visible { border-color: var(--ink); }
section[id] { scroll-margin-top: 25px; }

.site-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.wordmark { font-family: var(--serif); font-size: clamp(17px, 2vw, 24px); letter-spacing: -.035em; }
.site-header nav { display: flex; gap: clamp(16px, 3vw, 46px); }
.site-header nav a { display: grid; place-items: center; min-height: 44px; }
.site-header nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }

.intro { padding-top: clamp(34px, 5.7vw, 92px); }
.intro-line { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.intro h1 {
  margin: 8px 0 clamp(23px, 3vw, 44px);
  font-size: clamp(45px, 9vw, 156px);
  line-height: .99;
  letter-spacing: -.062em;
}
.intro h1 span { white-space: nowrap; }
.hero-link { display: block; }
.hero-image, .card-image { position: relative; overflow: hidden; background: var(--well); }
.hero-image { aspect-ratio: 2.13; }
.hero-image img, .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms ease;
}
.hero-image img { object-position: center 42%; }
.hero-image.mr-mercedes img { object-position: 39% 56%; }
.hero-caption { display: flex; justify-content: space-between; gap: 12px; padding-block: 13px; border-bottom: 1px solid var(--line); }
.hero-caption > :last-child { white-space: nowrap; }
.caption-divider { margin-inline: 5px; color: var(--muted); }

.section { padding-block: clamp(60px, 9vw, 130px); }
.section-kicker { display: flex; gap: 11px; align-items: baseline; color: var(--muted); }
.section-kicker span { font-variant-numeric: tabular-nums; }
.section-kicker::after { content: ""; flex: 1; height: 1px; align-self: center; margin-left: 6px; background: var(--line); }
.section-heading { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-block: 21px 30px; }
h2 { font-size: clamp(42px, 6vw, 86px); letter-spacing: -.055em; line-height: 1; }
.filters { display: flex; flex-wrap: wrap; gap: 2px clamp(9px, 1.7vw, 24px); align-items: baseline; }
.filters button {
  padding: 7px 0;
  min-height: 44px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.filters button[aria-pressed="true"], .filters button:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 6px;
}
.work-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3.2vw, 48px) clamp(15px, 2.2vw, 36px); }
.project-card a { display: block; }
.card-image { aspect-ratio: 1.52; }
.card-image.the-institute img { object-position: center 19%; }
.card-image.the-institute-season-2 img { object-position: center 5%; }
.card-type {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: .18em;
  height: 100%;
  padding: 28px;
  background: #2a2823;
  color: var(--paper);
  font: 400 clamp(23px, 4vw, 55px)/1.02 var(--serif);
  letter-spacing: -.04em;
  text-align: center;
}

.card-index {
  position: absolute;
  top: 12px;
  left: 12px;
  min-width: 30px;
  padding: 5px 7px;
  background: var(--paper);
  text-align: center;
  font-size: 10px;
  letter-spacing: .08em;
}
.card-caption { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 12px 0 15px; border-bottom: 1px solid var(--line); }
.card-caption h3 { font: 400 clamp(25px, 3.4vw, 46px)/1.08 var(--serif); letter-spacing: -.035em; }
.card-caption p { margin-top: 7px; color: var(--muted); }
.card-caption .link-arrow { margin-top: 8px; }
@media (hover: hover) {
  .project-card a:hover img, .hero-link:hover img { transform: scale(1.025); }
}

.about { padding-top: 0; }
.about-layout { display: grid; grid-template-columns: 1fr; gap: 28px clamp(25px, 7vw, 114px); margin-block: clamp(24px, 4vw, 53px); align-items: start; }
.about-layout.with-portrait { grid-template-columns: minmax(0, 1fr) minmax(0, .62fr); }
.about-copy { max-width: 680px; }
.about-copy p { font-size: clamp(16px, 1.75vw, 22px); line-height: 1.65; margin-top: 19px; }
.about-portrait { width: min(100%, 380px); justify-self: end; }
.about-portrait img { aspect-ratio: 4/5; object-fit: cover; object-position: center 44%; }
.credits { display: grid; grid-template-columns: minmax(135px, .55fr) minmax(0, 1.45fr); gap: 13px clamp(20px, 4vw, 64px); align-items: start; }
.credits h3 { color: var(--muted); padding-top: 15px; }
.credits dl > div { display: grid; grid-template-columns: minmax(125px, .65fr) minmax(0, 1fr); gap: 6px 16px; border-top: 1px solid var(--line); padding-block: 13px; }
.credits dl > div:last-child { border-bottom: 1px solid var(--line); }
.credits dt { color: var(--muted); font-size: 14px; }
.credits dd { font-size: 15px; }
.contact { padding-top: 0; }
.contact-layout { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 23px 60px; padding-top: clamp(25px, 4vw, 57px); }
.contact-details { min-width: min(100%, 265px); }
.contact-details p { font-size: 15px; line-height: 1.6; margin-bottom: 10px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 72px; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer a { white-space: nowrap; }

.project-page { padding-top: clamp(26px, 4.1vw, 58px); }
.work-return { border-bottom: 0; padding-block: 8px; }
.work-return:hover { text-decoration: underline; text-underline-offset: 5px; }
.project-heading { margin-block: clamp(30px, 4.5vw, 64px) clamp(23px, 3.5vw, 48px); }
.project-heading .eyebrow { color: var(--muted); margin-bottom: 11px; }
.project-heading h1 { font-size: clamp(57px, 10vw, 140px); letter-spacing: -.064em; line-height: .95; }
.gallery-image { height: clamp(300px, 59vw, 720px); background: var(--well); }
.gallery-image img { width: 100%; height: 100%; object-fit: contain; }
.gallery-slide figcaption { padding: 12px 0; color: var(--muted); }
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 5px 0 13px; border-bottom: 1px solid var(--line); }
.gallery-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  font-size: 21px;
  cursor: pointer;
}
.gallery-button:hover { border-color: var(--ink); }
.gallery-button .link-arrow { width: 19px; height: 19px; }
.gallery-controls > span { min-width: 58px; text-align: center; font-variant-numeric: tabular-nums; }
.project-description { display: grid; grid-template-columns: minmax(145px, .65fr) minmax(0, 1.35fr); gap: 30px 8vw; padding-block: clamp(37px, 6vw, 90px); }
.project-description dl { display: grid; gap: 14px; align-content: start; }
.project-description dt { color: var(--muted); margin-bottom: 2px; }
.project-notes > p { max-width: 660px; font: 400 clamp(23px, 3.1vw, 38px)/1.28 var(--serif); letter-spacing: -.02em; }
.project-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 19px; }
.project-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; padding-block: 20px 30px; border-top: 1px solid var(--line); }
.project-navigation a { display: grid; gap: 3px; align-content: start; }
.project-navigation a:last-child { text-align: right; }
.project-navigation a:hover .project-neighbor { text-decoration: underline; text-underline-offset: 5px; }
.project-navigation .eyebrow { color: var(--muted); }
.project-neighbor { font-size: clamp(24px, 3.5vw, 50px); line-height: 1.1; letter-spacing: -.035em; }

.project-study .project-heading { margin-bottom: clamp(20px, 3vw, 38px); }
.project-study .project-description {
  padding-block: clamp(20px, 3vw, 32px) clamp(24px, 4vw, 52px);
  border-top: 1px solid var(--line);
}
.project-study .project-notes > p { font-size: clamp(22px, 2.6vw, 34px); }
.project-study .project-links { margin-top: 12px; }
.costume-study { margin-bottom: clamp(32px, 6vw, 84px); }
.study-frame a { position: relative; display: block; background: var(--well); cursor: zoom-in; }
.study-frame img { width: 100%; height: auto; }
.study-frame figcaption { padding-top: 10px; color: var(--muted); }
.study-enlarge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--paper);
  color: var(--ink);
  font-size: 22px;
}
.study-frame a:hover .study-enlarge { background: var(--ink); color: var(--paper); }
.study-heading {
  margin-block: clamp(36px, 6vw, 84px) clamp(16px, 3vw, 28px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.study-heading h2 { font-size: clamp(34px, 5vw, 70px); line-height: 1; letter-spacing: -.045em; }
.study-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(15px, 2vw, 32px); }
.study-grid .study-frame { grid-column: span 2; }
.study-grid .study-frame-wide { grid-column: span 3; }
.study-grid img { aspect-ratio: 4 / 5; object-fit: contain; }
.study-grid .study-frame-wide img { aspect-ratio: 3 / 2; }
.study-dialog {
  width: min(94vw, 1440px);
  max-height: 94vh;
  padding: 12px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}
.study-dialog::backdrop { background: rgb(20 17 15 / .85); }
.study-dialog form { display: flex; justify-content: end; }
.study-dialog button { min-height: 44px; padding-inline: 14px; border: 0; background: transparent; cursor: pointer; }
.study-dialog img { max-height: 72vh; object-fit: contain; }
.study-dialog figcaption { padding: 10px 0 2px; text-align: center; }

@media (max-width: 680px) {
  .site-header { min-height: 60px; gap: 12px; }
  .site-header nav { gap: clamp(9px, 2.7vw, 19px); font-size: 10px; letter-spacing: .09em; }
  .intro-line { font-size: 10px; letter-spacing: .1em; }
  .intro h1 { max-width: 500px; font-size: clamp(47px, 10.5vw, 70px); margin-top: 13px; }
  .hero-image { aspect-ratio: 1.16; }
  .hero-caption { font-size: 9px; letter-spacing: .095em; }
  .work-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: start; gap: 8px; margin-bottom: 17px; }
  .filters { gap: 2px 18px; }
  .about-layout.with-portrait { grid-template-columns: 1fr; }
  .about-portrait { justify-self: start; width: min(100%, 290px); }
  .credits { grid-template-columns: 1fr; }
  .credits dl > div { grid-template-columns: minmax(107px, .65fr) minmax(0, 1fr); }
  .footer-location { display: none; }
  .site-footer { font-size: 10px; letter-spacing: .09em; }
  .gallery-image { height: clamp(280px, 96vw, 460px); }
  .project-description { grid-template-columns: 1fr; }
  .project-description dl { grid-template-columns: 1fr 1fr; }
  .project-study .project-description { gap: 20px; }
  .study-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .study-grid .study-frame { grid-column: span 1; }
  .study-grid .study-frame-wide { grid-column: 1 / -1; }
}

@media (max-width: 355px) {
  .site-header { align-items: start; flex-direction: column; gap: 0; padding-top: 9px; }
  .site-header nav { width: 100%; justify-content: space-between; }
  .intro h1 { font-size: 40px; }
}

@media (max-width: 480px) {
  .study-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
