:root {
  --home-gap: clamp(16px, 2.4vw, 36px);
  --home-section-space: clamp(48px, 6vw, 100px);
}

html {
  scroll-padding-top: 80px;
}

.site-header {
  position: sticky;
  z-index: 3;
  top: 0;
  height: 80px;
  background: var(--paper);
}

.site-header .brand {
  width: clamp(96px, 10vw, 132px);
}

.site-header .brand img {
  height: auto;
}

.site-header nav {
  gap: clamp(17px, 2.55vw, 40px);
}

.site-header .site-menu-contact {
  display: none;
}

.site-header > .text-link {
  min-height: 44px;
  padding: 8px 17px;
  border: 1px solid var(--ink);
  border-radius: 99px;
  font-weight: 650;
  white-space: nowrap;
}

.site-header > .text-link:hover {
  background: var(--ink);
  color: var(--paper);
}

#main:focus {
  outline: none;
}

#main > .hero {
  padding-block: clamp(44px, 5.5vw, 92px) clamp(44px, 4.5vw, 76px);
}

.hero .eyebrow {
  margin: 0;
}

.hero .hero-bottom {
  align-items: start;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px var(--home-gap);
}

.hero .hero-bottom p {
  max-width: 46ch;
  font-size: clamp(17px, 1.55vw, 23px);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
}

.home-text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration: underline;
  text-underline-offset: 5px;
}

#main :is(.work, .motion, .services, .studio, .contact) {
  padding-block: var(--home-section-space);
  border-top: 1px solid var(--line);
}

#main > .work {
  padding-top: clamp(42px, 4.2vw, 68px);
}

.home-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px var(--home-gap);
  margin-bottom: clamp(25px, 3.7vw, 56px);
}

.home-section-heading h2,
#main .studio h2 {
  margin: 0;
  font-size: clamp(36px, 5vw, 74px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.06em;
}

.home-section-heading p {
  max-width: 42ch;
  margin: 0;
  color: var(--muted);
}

#main .projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4.3vw, 64px) var(--home-gap);
}

.projects > .project {
  grid-column: auto;
  min-width: 0;
  margin: 0;
}

.projects > .project .image-shell {
  height: auto;
  aspect-ratio: 4 / 3;
}

.projects > .project .image-shell img {
  height: 100%;
}

.projects > .project .project-caption {
  flex-wrap: wrap;
}

.projects > .project .project-caption span {
  font-size: 14px;
}

.projects .lead-campaign .image-shell {
  height: auto;
  aspect-ratio: 2.2;
}

.projects .lead-campaign .image-shell img {
  height: 100%;
}

.projects .core-story {
  margin: 0;
}

#studio-film {
  width: min(100%, 980px);
  margin: 0 0 clamp(35px, 4.5vw, 65px);
}

#films figure[id] {
  scroll-margin-top: 16px;
}

#films .phone-films figure[id] {
  scroll-margin-top: 94px;
}

#studio-film .featured-film-frame {
  border: 0;
}

#studio-film figcaption {
  padding-inline: 0;
}

.film-group-title {
  margin: 0 0 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: clamp(20px, 2.5vw, 34px);
  font-weight: 500;
  letter-spacing: -.045em;
}

#films .phone-films,
#films .landscape-films {
  max-width: none;
  gap: var(--home-gap);
  margin: 0;
}

#films .phone-films {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: clamp(26px, 4vw, 52px);
}

#films .phone-frame {
  width: 100%;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

#films .phone-frame::before {
  display: none;
}

#films .phone-frame video {
  border-radius: 0;
}

#films .landscape-films {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#films :is(.phone-films, .landscape-films) figcaption {
  margin-top: 10px;
  font-size: 15px;
  color: var(--ink);
  text-align: left;
}

#services .service-list summary {
  grid-template-columns: minmax(0, 1fr) minmax(22ch, .6fr) auto;
}

#services .service-list .service-body {
  padding-left: 0;
}

#main .studio-copy .eyebrow {
  margin-top: 0;
}

#main .studio-photo {
  height: auto;
  aspect-ratio: 1;
}

#main .studio-photo img {
  height: 100%;
}

#main .studio-journal {
  border-block-end: 0;
  background: #eff0e9;
  scroll-margin-top: 0;
}

.journal-inner {
  padding-block: var(--home-section-space);
}

.journal-projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--home-gap);
}

.journal-projects .journal-feature {
  display: flex;
  flex-direction: column;
  margin: 0;
  background: transparent;
}

.journal-projects .journal-feature-image img {
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 10;
}

.journal-projects .journal-feature-copy {
  align-self: stretch;
  padding: 18px 0 0;
}

.journal-projects .journal-feature-copy h3,
.contact-options h3 {
  margin: 10px 0;
  font-size: clamp(23px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.journal-projects .journal-meta::before {
  display: none;
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--home-gap);
}

.contact-options > article {
  display: flex;
  flex-direction: column;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.contact-options p {
  margin: 0 0 19px;
  max-width: 42ch;
}

.contact-options .pill {
  margin-top: auto;
}

@media (max-width: 800px) {
  .contact-options {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 68px;
  }

  .site-header {
    height: 68px;
  }

  .site-header nav {
    top: 68px;
  }

  .site-header .menu-toggle {
    min-height: 44px;
  }

  .site-header .site-menu-contact {
    display: block;
    font-weight: 700;
  }

  #main .projects,
  #films .landscape-films,
  .journal-projects {
    grid-template-columns: 1fr;
  }

  #films .phone-films {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #services .service-list summary {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

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

  .studio-opening-action {
    transition: none;
  }
}

.hero .experience-line {
  margin-top: 22px;
  padding-top: 13px;
}

.projects > .project-full {
  grid-column: 1 / -1;
}

.projects > .project-full .image-shell {
  aspect-ratio: 2.2;
}

.projects .scaling-preview {
  display: grid;
  place-items: center;
  padding: clamp(14px, 2vw, 30px);
  background: #f1ede5;
}

.projects .scaling-preview img {
  max-height: 100%;
  width: auto;
  max-width: 75%;
  object-fit: contain;
}

.project-intro {
  max-width: 48ch;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}

#contact .home-section-heading {
  margin-bottom: 12px;
}

.contact-intro {
  margin: 0 0 clamp(25px, 3.7vw, 56px);
}

.pricing-link {
  margin: 23px 0 0;
}
