:root {
  --ink: #11110f;
  --paper: #efeee8;
  --paper-muted: #c8c6bd;
  --line: rgba(239, 238, 232, 0.22);
  --accent: #d8ff58;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  transform: translateY(-200%);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.8rem;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.25rem 2rem;
  color: #fff;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 300ms ease, padding 300ms ease, border-color 300ms ease;
}

.site-header.is-scrolled {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 9, 0.86);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 0.7rem;
  font-weight: 500;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.site-header nav {
  display: flex;
  gap: 2.1rem;
}

.site-header nav a,
.header-link {
  position: relative;
  padding: 0.5rem 0;
}

.site-header nav a::after,
.header-link::after {
  position: absolute;
  bottom: 0.2rem;
  left: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: currentColor;
  content: "";
  transition: transform 250ms ease;
}

.site-header nav a:hover::after,
.site-header nav a:focus-visible::after,
.header-link:hover::after,
.header-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-link {
  justify-self: end;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  padding: 7.5rem 2rem 2rem;
  background: #161714;
}

.hero-media,
.hero-shade,
.hero-grain {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: center 55%;
  transform: translateY(var(--hero-shift, 0));
  will-change: transform;
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5, 7, 6, 0.56) 0%, rgba(5, 7, 6, 0.05) 35%, rgba(5, 7, 6, 0.74) 100%),
    linear-gradient(90deg, rgba(5, 7, 6, 0.36), transparent 55%);
}

.hero-grain {
  z-index: 2;
  opacity: 0.17;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

.hero-meta,
.hero-title-wrap,
.hero-footer {
  position: relative;
  z-index: 3;
}

.hero-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  line-height: 1.65;
  text-transform: uppercase;
}

.hero-meta p {
  margin: 0;
}

.hero-place {
  text-align: right;
}

.hero-title-wrap {
  align-self: end;
  margin-bottom: clamp(1rem, 4vh, 3rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(5rem, 13vw, 12rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.72;
}

.hero h1 span {
  display: block;
}

.hero h1 span:last-child {
  margin-left: clamp(2rem, 12vw, 12rem);
  font-style: italic;
}

.hero-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
}

.hero-footer p {
  margin: 0;
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-cue svg {
  width: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.2;
  transition: transform 250ms ease;
}

.scroll-cue:hover svg,
.scroll-cue:focus-visible svg {
  transform: translateY(0.35rem);
}

.photo-credit {
  justify-self: end;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.5;
  text-align: right;
}

.work-section,
.photo-section,
.contact-section {
  position: relative;
  padding: clamp(6rem, 12vw, 11rem) clamp(1.25rem, 4vw, 4rem);
}

.work-section {
  background: var(--paper);
  color: var(--ink);
}

.section-number {
  position: absolute;
  top: clamp(6rem, 12vw, 11rem);
  right: clamp(1.25rem, 4vw, 4rem);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
}

.section-heading {
  max-width: 78rem;
}

.section-heading .eyebrow,
.contact-section .eyebrow {
  color: #5d5d55;
}

.section-heading h2,
.contact-section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.6rem, 8vw, 8.8rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.section-heading h2 br + *,
.photo-intro h2 br + * {
  font-style: italic;
}

.work-grid {
  display: grid;
  max-width: 92rem;
  margin: clamp(4rem, 9vw, 9rem) auto 0;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1px;
  background: rgba(17, 17, 15, 0.18);
  border: 1px solid rgba(17, 17, 15, 0.18);
}

.work-card {
  min-height: 24rem;
  background: var(--paper);
}

.work-card-featured {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  padding: clamp(1.75rem, 4vw, 4rem);
}

.card-label {
  display: block;
  margin: 0 0 1rem;
  color: #6f6e66;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.work-card h3,
.card-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4vw, 4.4rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.95;
}

.work-card-featured p:last-child {
  max-width: 34rem;
  margin: 1.6rem 0 0;
  color: #4c4c47;
  font-size: clamp(0.9rem, 1.4vw, 1.05rem);
  line-height: 1.55;
}

.round-link {
  display: grid;
  width: 5.5rem;
  min-width: 5.5rem;
  height: 5.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  transition: background-color 250ms ease, color 250ms ease, transform 250ms ease;
}

.round-link:hover,
.round-link:focus-visible {
  transform: rotate(7deg);
  background: var(--accent);
  color: var(--ink);
}

.round-link svg,
.work-card-link svg {
  width: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.work-card-link {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  transition: background-color 250ms ease, color 250ms ease;
}

.work-card-link svg {
  align-self: flex-end;
  transition: transform 250ms ease;
}

.work-card-link:hover,
.work-card-link:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.work-card-link:hover svg,
.work-card-link:focus-visible svg {
  transform: translate(0.3rem, -0.3rem);
}

.photo-section {
  overflow: hidden;
  background: var(--ink);
}

.photo-intro {
  position: relative;
}

.photo-intro .section-number {
  top: 0;
  right: 0;
}

.photo-intro .section-heading h2 {
  max-width: 11ch;
}

.text-link {
  display: flex;
  width: max-content;
  gap: 1rem;
  margin: 2rem 0 0 auto;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-link span {
  transition: transform 250ms ease;
}

.text-link:hover span,
.text-link:focus-visible span {
  transform: translate(0.25rem, -0.2rem);
}

.gallery-wrap {
  margin-top: clamp(4rem, 8vw, 8rem);
}

.gallery {
  display: flex;
  width: calc(100% + clamp(1.25rem, 4vw, 4rem));
  gap: clamp(0.8rem, 2vw, 2rem);
  overflow-x: auto;
  padding-right: clamp(1.25rem, 4vw, 4rem);
  padding-bottom: 1.25rem;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  width: min(72vw, 68rem);
  min-width: min(72vw, 68rem);
  margin: 0;
  scroll-snap-align: start;
}

.gallery-item-portrait {
  width: min(41vw, 39rem);
  min-width: min(41vw, 39rem);
}

.gallery-item a {
  position: relative;
  display: block;
  overflow: hidden;
  background: #22221f;
}

.gallery-item img {
  width: 100%;
  height: clamp(24rem, 57vw, 50rem);
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.6, 0.2, 1), filter 500ms ease;
}

.gallery-item-portrait img {
  height: clamp(24rem, 57vw, 50rem);
}

.gallery-item a::after {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
  content: "";
  transition: background-color 400ms ease;
}

.gallery-item a:hover img,
.gallery-item a:focus-visible img {
  transform: scale(1.025);
}

.gallery-item a:hover::after,
.gallery-item a:focus-visible::after {
  background: transparent;
}

.gallery-item figcaption {
  display: flex;
  justify-content: space-between;
  padding-top: 0.9rem;
  color: var(--paper-muted);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.gallery-controls p {
  margin: 0;
  color: var(--paper-muted);
  font-family: var(--serif);
  font-size: 1.1rem;
  font-style: italic;
}

.gallery-controls div {
  display: flex;
  gap: 0.5rem;
}

.gallery-controls button {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: background-color 250ms ease, color 250ms ease;
}

.gallery-controls button:hover,
.gallery-controls button:focus-visible {
  background: var(--paper);
  color: var(--ink);
}

.gallery-controls svg {
  width: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.contact-section {
  background: var(--accent);
  color: var(--ink);
}

.contact-section h2 {
  margin-bottom: clamp(4rem, 8vw, 8rem);
}

.contact-links {
  border-top: 1px solid rgba(17, 17, 15, 0.35);
}

.contact-links a {
  display: grid;
  grid-template-columns: 2fr 1fr;
  align-items: center;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(17, 17, 15, 0.35);
  transition: padding 250ms ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  padding-right: 1rem;
  padding-left: 1rem;
}

.contact-links span:first-child {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 3.8rem);
  letter-spacing: -0.025em;
}

.contact-links span:last-child {
  justify-self: end;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2rem clamp(1.25rem, 4vw, 4rem);
  background: var(--ink);
  color: var(--paper-muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

.site-footer p:last-child {
  justify-self: end;
}

.reveal {
  transform: translateY(2rem);
  opacity: 0;
  transition: transform 700ms cubic-bezier(0.2, 0.65, 0.2, 1), opacity 700ms ease;
}

.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 1rem 1.25rem;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    padding: 6.5rem 1.25rem 1.25rem;
  }

  .hero-meta {
    display: none;
  }

  .hero-title-wrap {
    align-self: center;
  }

  .hero h1 {
    font-size: clamp(5.2rem, 21vw, 8rem);
    line-height: 0.78;
  }

  .hero h1 span:last-child {
    margin-left: 1rem;
  }

  .hero-footer {
    grid-template-columns: 1fr auto;
  }

  .scroll-cue {
    display: none;
  }

  .work-grid {
    grid-template-columns: 1fr 1fr;
  }

  .work-card-featured {
    grid-column: 1 / -1;
  }

  .work-card {
    min-height: 17rem;
  }

  .gallery-item,
  .gallery-item-portrait {
    width: 82vw;
    min-width: 82vw;
  }

  .gallery-item img,
  .gallery-item-portrait img {
    height: 70vw;
    min-height: 24rem;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer > p:nth-child(2) {
    display: none;
  }
}

@media (max-width: 560px) {
  .brand span {
    display: none;
  }

  .hero-footer {
    font-size: 0.68rem;
  }

  .work-section,
  .photo-section,
  .contact-section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .section-number {
    top: 5rem;
  }

  .section-heading h2,
  .contact-section h2 {
    padding-right: 1rem;
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  .work-grid {
    grid-template-columns: 1fr;
    margin-top: 3.5rem;
  }

  .work-card-featured {
    grid-column: auto;
    min-height: 24rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .work-card-featured .round-link {
    align-self: flex-end;
  }

  .work-card-link {
    min-height: 13rem;
  }

  .text-link {
    margin-left: 0;
  }

  .gallery-item,
  .gallery-item-portrait {
    width: 86vw;
    min-width: 86vw;
  }

  .gallery-item img,
  .gallery-item-portrait img {
    height: 112vw;
    min-height: 0;
  }

  .contact-links a {
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }

  .contact-links span:first-child {
    font-size: 1.8rem;
  }

  .contact-links span:last-child {
    font-size: 0.56rem;
    text-align: right;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .hero-media img {
    transform: none;
  }
}
