:root {
  --paper: #f7f5ef;
  --ink: #172637;
  --muted: #555851;
  --line: #d9d3c8;
}

.brand-lockup picture {
  display: block;
  width: 100%;
  min-width: 0;
}

.editorial-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(470px, 49vw, 650px);
  margin-top: 14px;
  background: #182431;
  color: #fffaf0;
}

.editorial-hero-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.editorial-hero-photo img,
.residence-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editorial-hero-photo img {
  object-position: 58% 49%;
}

.editorial-hero-photo picture {
  display: block;
  width: 100%;
  height: 100%;
}

.editorial-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(80deg, #0d141ae8 2%, #0d141a92 48%, transparent 81%),
              linear-gradient(0deg, #0d141a77, transparent 48%);
  pointer-events: none;
}

.hero-heading {
  padding: clamp(24px, 4.6vw, 67px);
}

.hero-heading .tag {
  color: #f0d6a5;
  font-size: 11px;
  letter-spacing: .16em;
}

.hero-heading h1 {
  margin-block: 12px 13px;
  font-size: clamp(50px, 6.2vw, 91px);
}

.hero-description {
  max-width: 41ch;
  color: #faf4e7;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
}

.hero-actions .cta {
  background: #f7efe0;
  color: var(--ink);
  border-color: #f7efe0;
}

.hero-actions .cta:hover {
  background: #fffaf0;
}

.film-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: #fffaf0;
  font-size: 13px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.editorial-hero-photo figcaption {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 1;
  font: 700 11px/1.4 var(--sans);
}

.editorial-hero-photo figcaption a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding-inline: 12px;
  background: #101923df;
}

.editorial-section {
  padding-block: clamp(34px, 5vw, 72px);
}

.editorial-hero + .editorial-section {
  border-top: 0;
}

.editorial-grid {
  --grid-gap: clamp(13px, 2.3vw, 34px);
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: var(--grid-gap);
  align-items: start;
}

.editorial-grid .project-card:first-child {
  grid-row: span 2;
  position: sticky;
  top: 24px;
}

.editorial-grid .project-card:first-child figure {
  aspect-ratio: 1.19;
}

.editorial-grid .project-card:not(:first-child) figure {
  aspect-ratio: 2.15;
}

.project-card .meta {
  padding-block: 12px;
}

.portfolio-featured {
  padding-bottom: clamp(36px, 5vw, 70px);
}

.portfolio-reel-link {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  margin-block: -5px 24px;
}

.service-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 8px 0 18px;
}

.form .service-actions {
  margin-bottom: 4px;
}

.case-visuals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.case-visuals img {
  display: block;
  width: 100%;
  height: auto;
  background: #dfd7ca;
}

.case-visuals figcaption {
  padding-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.home-reel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, .9fr);
  grid-template-areas: "intro player" "links player";
  grid-template-rows: 1fr 1fr;
  align-items: start;
  gap: 22px clamp(30px, 5vw, 75px);
  padding-block: clamp(24px, 5vw, 64px);
}

.home-reel-intro {
  grid-area: intro;
  align-self: end;
}

.home-reel h1 {
  margin-block: 10px 14px;
  font-size: clamp(40px, 6.3vw, 91px);
}

.home-reel p:not(.tag) {
  max-width: 52ch;
  color: var(--muted);
}

.home-reel-player {
  grid-area: player;
  position: relative;
  display: flex;
  justify-content: center;
  padding: 24px;
  background: var(--olive);
}

.home-reel-player video {
  display: block;
  width: min(100%, 360px);
  height: auto;
  aspect-ratio: 9 / 16;
  background: #121e29;
}

.reel-play:not([hidden]) {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 8px 16px;
  color: var(--paper);
  background: #142638f2;
  border: 1px solid #fff5e8a6;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.reel-play:hover {
  background: #142638;
}

.home-reel-links {
  grid-area: links;
}

.home-reel-links > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 16px;
}

.reel-share[hidden], .share-url[hidden], .share-feedback:empty {
  display: none;
}

.share-feedback {
  margin-top: 6px;
  font-size: 13px;
}

.share-url {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  font-size: 13px;
}

.share-url input {
  width: 100%;
  min-height: 44px;
  padding: 8px;
  background: var(--cream);
  border: 1px solid var(--line);
}

.film-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: center;
  gap: 26px;
}

.film-copy p {
  margin-top: 12px;
  max-width: 37ch;
  color: var(--muted);
}

.studio-film {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #16232c;
}

.services article {
  background: #eeebe2;
  border-top: 1px solid #b9a382;
}

.residence-cover img {
  aspect-ratio: 1.85;
}

.residence-cover figcaption {
  padding: 8px 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.residence-tour .res-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 16px;
}

.residence-tour .res-gallery figure:first-child {
  grid-column: span 2;
}

.residence-tour .res-gallery figure:only-child {
  grid-column: 1 / -1;
}

.residence-tour .res-gallery figure:first-child img {
  aspect-ratio: 1.85;
}

.residence-tour .res-gallery figcaption {
  font-size: 12px;
}

@media (max-width: 760px) {
  .film-section {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .home-reel {
    grid-template-columns: 1fr;
    grid-template-areas: "intro" "player" "links";
    grid-template-rows: auto;
    gap: 18px;
  }

  .home-reel-player {
    padding: 0;
  }
}

@media (641px <= width <= 815px) {
  .nav > nav {
    gap: 10px;
    font-size: 11px;
  }

  .nav > .brand-lockup {
    width: 164px;
  }

  .nav-cta .cta {
    padding-inline: 9px;
  }
}

@media (max-width: 640px) {
  .case-visuals {
    grid-template-columns: 1fr;
  }

  .editorial-hero {
    min-height: min(135vw, 500px);
    margin-top: 8px;
  }

  .editorial-hero-photo img {
    object-position: 64% 50%;
  }

  .editorial-hero-photo::after {
    background: linear-gradient(0deg, #0d141a 0%, #0d141ac2 42%, transparent 79%);
  }

  .editorial-hero-photo figcaption {
    right: 10px;
    top: 10px;
  }

  .hero-heading {
    padding: 18px;
  }

  .hero-heading h1 {
    font-size: clamp(34px, 10vw, 58px);
  }

  .hero-description {
    font-size: 13px;
  }

  .hero-actions {
    margin-top: 13px;
    gap: 0 13px;
  }

  .editorial-grid {
    grid-template-columns: 1fr;
    row-gap: 23px;
  }

  .editorial-grid .project-card:first-child {
    position: static;
    grid-row: auto;
  }

  .editorial-grid .project-card:first-child figure,
  .editorial-grid .project-card:not(:first-child) figure {
    aspect-ratio: 1.46;
  }

  .residence-cover img {
    aspect-ratio: 1.37;
  }

  .residence-tour .res-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 8px;
  }
}
