:root {
  color-scheme: light;
  --paper: #f6f5f0;
  --ink: #131313;
  --line: #a8a7a1;
  --display: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font: 100%/1.52 var(--display);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body, figure { margin: 0; }
body { background: var(--paper); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible, button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.wrap { width: min(calc(100% - 2.5rem), 91rem); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 2; background: var(--paper); padding: .75rem; transform: translateY(-200%); }
.skip:focus { transform: none; }

.mast, .mast nav, footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .55rem 1.25rem; }
.mast { min-height: 4rem; border-bottom: 1px solid var(--ink); padding-block: .8rem; }
.mast a, .label, .button {
  font-size: .875rem;
  font-weight: 650;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.mast a, .button { text-decoration: none; }
.mast a:hover, .button:hover { text-decoration: underline; }
.mast .mast-name { letter-spacing: -.015em; }
.nav-cta { border-bottom: 1px solid currentColor; }

h1, h2, h3 { margin: 0; line-height: .98; }
h2 { font-size: clamp(2.4rem, 6vw, 6.4rem); font-weight: 700; letter-spacing: -.067em; text-transform: uppercase; }
h3 { font-size: clamp(1.22rem, 2.2vw, 1.75rem); font-weight: 650; letter-spacing: -.035em; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.25rem, 4vw, 4rem);
  padding-block: clamp(1.25rem, 3vw, 3rem);
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 6.2rem);
  font-weight: 800;
  line-height: .86;
  letter-spacing: -.073em;
}
.hero h1 span { display: block; }
.intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  gap: clamp(.65rem, 1.45vw, 1.25rem);
}
.intro .label { margin: 0; }
.intro > p:not(.label) { max-width: 38ch; margin: 0; font-size: clamp(1rem, 1.55vw, 1.4rem); line-height: 1.33; letter-spacing: -.02em; }
.button { display: inline-block; padding-bottom: .3rem; border-bottom: 1px solid currentColor; }
.hero-carousel, .hero-stage, .viewer-stage { min-width: 0; position: relative; }
.hero-carousel { width: min(100%, 69svh, 43rem); justify-self: end; background: var(--ink); color: white; }
.hero-slide img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.hero-arrow {
  position: absolute;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 50%;
  background: rgb(19 19 19 / 78%);
  color: white;
  cursor: pointer;
}
.hero-arrow { top: 50%; transform: translateY(-50%); }
.hero-arrow::before { content: ""; width: .63rem; height: .63rem; border: solid currentColor; border-width: 0 2px 2px 0; }
.hero-arrow.previous::before { transform: translateX(2px) rotate(135deg); }
.hero-arrow.next::before { transform: translateX(-2px) rotate(-45deg); }
.hero-arrow.previous { left: .65rem; }
.hero-arrow.next { right: .65rem; }

.work, .services, .clients, .contact { padding-block: clamp(3rem, 7vw, 8rem); }
.work .wrap { width: min(90%, 84rem); }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .55rem 2rem; border-top: 1px solid var(--ink); padding-top: .9rem; }
.section-heading p { max-width: 31ch; margin: 0; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 1.5rem; }
.photo-grid.justified { display: flex; flex-direction: column; }
.photo-row { display: grid; align-items: end; gap: inherit; }
.tile { min-width: 0; }
.photo-link { display: block; }
.photo-link img { width: 100%; }
.photo-link:hover img { opacity: .88; }

.services { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); gap: clamp(1.6rem, 6vw, 7rem); border-top: 1px solid var(--ink); }
.services-heading .label { margin: 0 0 .8rem; }
.services-heading h2 { font-size: clamp(2.25rem, 4.4vw, 5rem); }
.services p:not(.label) { max-width: 60ch; }
.services-copy article + article { margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }

.clients { background: #e7e6df; }
.client-grid { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0; margin: 1.5rem 0 0; border-top: 1px solid var(--ink); }
.client-grid li {
  display: flex;
  align-items: center;
  min-height: clamp(4.4rem, 7vw, 7rem);
  padding: .6rem .85rem .6rem 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1rem, 2vw, 2rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -.055em;
}
.contact { background: var(--ink); color: var(--paper); }
.contact p { max-width: 43ch; margin: 1.25rem 0; }
.contact .button { text-transform: none; }
footer { min-height: 3.5rem; padding-block: .65rem; font-size: .875rem; }

#photo-viewer { width: min(94vw, 65rem); max-height: 94dvh; padding: 1rem; border: 0; background: var(--paper); color: var(--ink); }
#photo-viewer::backdrop { background: rgb(19 19 19 / 86%); }
.viewer-close { display: block; margin: 0 0 .75rem auto; padding: .35rem .7rem; font: inherit; color: inherit; background: transparent; border: 1px solid currentColor; cursor: pointer; }
#viewer-image { width: 100%; max-height: 68dvh; object-fit: contain; }
#photo-viewer figcaption { max-width: 44rem; margin: .8rem auto 0; text-transform: uppercase; }
#viewer-title { font-size: clamp(1.25rem, 4vw, 2rem); letter-spacing: -.03em; }
#viewer-caption, #viewer-position { font-size: .875rem; }
#viewer-caption { margin: .35rem 0 0; }
#viewer-position { display: block; margin-top: .55rem; }

@media (max-width: 760px) {
  .hero, .services { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 1rem; }
  .hero h1 { font-size: clamp(2rem, 7.6vw, 4.35rem); }
  .hero h1 span { display: inline; }
  .hero-carousel { width: min(100%, max(13rem, calc(100svh - 25rem)), 33rem); justify-self: center; }
}
@media (max-width: 680px) {
  .photo-grid, .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 500px) {
  .wrap { width: calc(100% - 1.5rem); }
  .hero h1 { font-size: clamp(1.75rem, 8.4vw, 2.7rem); }
  .intro { gap: .6rem; }
  .hero { padding-block: 1rem; gap: .8rem; }
  .hero-arrow { width: 2.75rem; height: 2.75rem; }
  .mast nav { gap: .4rem .85rem; }
}
