:root {
  color-scheme: light;
  --white: #ffffff;
  --black: #000000;
  --gray: #666666;
  --line: #000000;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(1rem, 2.8vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--white); }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--black);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

.skip-link {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 1000;
  padding: 0.7rem 1rem;
  background: var(--black);
  color: var(--white);
}
.skip-link:focus { top: 1rem; }

.site-header {
  overflow: hidden;
  padding: clamp(1.2rem, 2.8vw, 2.5rem) var(--gutter) 1rem;
  border-bottom: 2px solid var(--black);
  background: var(--white);
}
.wordmark {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-family: var(--display);
  font-size: clamp(3rem, 13vw, 13rem);
  font-weight: 900;
  letter-spacing: -0.085em;
  line-height: 0.78;
  white-space: nowrap;
  transform: scaleX(1);
  transform-origin: left center;
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(1.3rem, 2.6vw, 2.4rem);
}
.header-tagline,
.desktop-nav a,
.menu-toggle {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.desktop-nav { display: flex; gap: clamp(1.2rem, 2.8vw, 3rem); }
.desktop-nav a { border-bottom: 1px solid transparent; }
.desktop-nav a:hover,
.desktop-nav a:focus-visible { border-color: currentColor; }
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.6rem 0;
  cursor: pointer;
}

.hero { padding: var(--gutter); }
.hero-media {
  display: grid;
  place-items: center;
  min-height: calc(100svh - 8rem);
  padding: clamp(1rem, 3vw, 3rem);
  background: #f3f3f3;
}
.hero-media img {
  width: 100%;
  height: min(78svh, 980px);
  object-fit: contain;
}
.hero-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--black);
  margin-top: 0.9rem;
}
.hero-meta h1,
.hero-meta p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(5rem, 10vw, 10rem) var(--gutter) clamp(2rem, 4vw, 4rem);
}
.gallery-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 6vw, 6.5rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.88;
  text-transform: uppercase;
}
.gallery-heading span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(0.8rem, 2vw, 2rem);
  row-gap: clamp(4rem, 9vw, 9rem);
  padding: 0 var(--gutter) clamp(6rem, 12vw, 12rem);
}
.work-item { margin: 0; align-self: start; }
.gallery-button {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: zoom-in;
}
.gallery-button img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #f3f3f3;
  transition: opacity 160ms ease;
}
.gallery-button:hover img { opacity: 0.88; }
.gallery-button:focus-visible { outline: 2px solid var(--black); outline-offset: 5px; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-10 { grid-column: span 10; }
.start-1 { grid-column-start: 1; }
.start-2 { grid-column-start: 2; }
.start-7 { grid-column-start: 7; }
.start-8 { grid-column-start: 8; }

.about {
  display: grid;
  grid-template-columns: minmax(10rem, 0.55fr) minmax(18rem, 1.15fr) minmax(18rem, 1fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(5rem, 10vw, 10rem) var(--gutter);
  background: var(--black);
  color: var(--white);
}
.about h2,
.contact h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.8rem, 8vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 0.85;
  text-transform: uppercase;
}
.about-portrait {
  min-width: 0;
  margin: 0;
}
.about-portrait img {
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--white);
}
.about-copy {
  max-width: 38rem;
  align-self: end;
}
.about-copy p { margin: 0 0 1.4rem; font-size: clamp(1.05rem, 1.7vw, 1.5rem); }
.about-copy p:last-child { margin-bottom: 0; color: #bdbdbd; }

.contact {
  min-height: 70svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(6rem, 12vw, 12rem);
  padding: clamp(5rem, 10vw, 10rem) var(--gutter) 2rem;
}
.contact h2 { max-width: 8ch; }
.contact-details {
  border-top: 2px solid var(--black);
}
.contact-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--black);
}
.contact-row span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.contact-row a { width: fit-content; font-size: clamp(1rem, 1.8vw, 1.35rem); }
.contact-row a:hover,
.contact-row a:focus-visible { text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem var(--gutter) 2rem;
  border-top: 2px solid var(--black);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: none;
  grid-template-columns: 4rem 1fr 4rem;
  grid-template-rows: 4rem 1fr 4rem;
  background: rgba(0, 0, 0, 0.97);
  color: var(--white);
}
.lightbox.is-open { display: grid; }
.lightbox-figure {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  margin: 0;
  display: grid;
  place-items: center;
}
.lightbox-image { width: 100%; height: 100%; object-fit: contain; }
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}
.lightbox-close { grid-column: 3; grid-row: 1; font-size: 2rem; }
.lightbox-prev { grid-column: 1; grid-row: 2; font-size: 1.8rem; }
.lightbox-next { grid-column: 3; grid-row: 2; font-size: 1.8rem; }
.lightbox-count {
  grid-column: 2;
  grid-row: 3;
  align-self: center;
  justify-self: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) {
  .about {
    grid-template-columns: minmax(16rem, 0.9fr) minmax(18rem, 1.1fr);
  }
  .about h2 { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  .site-header { overflow: hidden; }
  .wordmark {
    font-size: 10.25vw;
    letter-spacing: -0.075em;
    line-height: 0.9;
    transform: none;
  }
  .header-row {
    display: block;
    margin-top: 1rem;
  }
  .header-tagline { display: none; }
  .menu-toggle { display: none; }
  .desktop-nav {
    display: flex;
    width: auto;
    justify-content: flex-start;
    gap: clamp(1.35rem, 8vw, 2.5rem);
  }
  .desktop-nav.is-open {
    display: flex;
  }
  .hero-media { min-height: 68svh; padding: 1rem; }
  .hero-media img { height: 62svh; }
  .hero-meta { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
  .gallery-heading { align-items: flex-end; }
  .gallery {
    grid-template-columns: 1fr;
    row-gap: 4.5rem;
  }
  .work-item,
  .span-4,
  .span-5,
  .span-6,
  .span-10,
  .start-1,
  .start-2,
  .start-7,
  .start-8 { grid-column: 1; }
  .about { grid-template-columns: 1fr; }
  .about h2 { grid-column: auto; }
  .about-portrait { width: 100%; }
  .contact-row { grid-template-columns: 1fr; gap: 0.5rem; }
  .site-footer { flex-direction: column; }
  .lightbox { grid-template-columns: 2.8rem 1fr 2.8rem; }
}

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