:root {
  --ink: #11100d;
  --paper: #f7f4ee;
  --paper-soft: #ede7dc;
  --muted: #6f6a60;
  --line: rgba(17, 16, 13, 0.14);
  --rust: #a84c2f;
  --olive: #68715a;
  --gold: #c39a4b;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(17, 16, 13, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px clamp(20px, 4vw, 56px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(247, 244, 238, 0.92);
  color: var(--ink);
  box-shadow: 0 10px 34px rgba(17, 16, 13, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  font-size: 13px;
}

.brand__name {
  font-size: 15px;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.site-nav a {
  opacity: 0.84;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  opacity: 1;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease, top 180ms ease;
}

.nav-toggle span:nth-child(1) {
  top: 13px;
}

.nav-toggle span:nth-child(2) {
  top: 20px;
}

.nav-toggle span:nth-child(3) {
  top: 27px;
}

.site-header.is-nav-open .nav-toggle span:nth-child(1) {
  top: 20px;
  transform: rotate(45deg);
}

.site-header.is-nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-nav-open .nav-toggle span:nth-child(3) {
  top: 20px;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  min-height: 92vh;
  padding: 132px clamp(20px, 5vw, 72px) 34px;
  color: var(--white);
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 900ms ease, transform 6000ms ease;
}

.hero-media img.active {
  opacity: 1;
  transform: scale(1);
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.34) 46%, rgba(0, 0, 0, 0.08)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 46%);
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__content {
  width: min(760px, 100%);
  padding-bottom: clamp(42px, 8vh, 90px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.intro-section h2,
.section-heading h2,
.work-toolbar h2,
.contact-section h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 7ch;
  font-size: clamp(76px, 13vw, 178px);
}

.hero p {
  max-width: 610px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

.hero__actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--gold);
  color: var(--ink);
}

.button--light {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.button--dark {
  background: var(--ink);
  color: var(--white);
}

.button--outline {
  border-color: var(--ink);
}

.intro-section,
.series-section,
.work-section,
.contact-section {
  padding: clamp(62px, 8vw, 112px) clamp(20px, 5vw, 72px);
  scroll-margin-top: 86px;
}

.intro-section {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.intro-copy {
  max-width: 1180px;
  margin: 0 auto;
}

.intro-section h2,
.contact-section h2 {
  max-width: 920px;
  font-size: clamp(42px, 6vw, 86px);
}

.intro-profile {
  margin-top: clamp(26px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(24px, 4vw, 42px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.intro-profile--text-only {
  grid-template-columns: 1fr;
}

.intro-body {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 18px;
}

.intro-body p {
  margin: 0;
  max-width: 680px;
}

.intro-portrait {
  margin: 0;
}

.intro-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  overflow: hidden;
  background: var(--paper-soft);
}

.intro-portrait figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.series-section {
  background: var(--paper-soft);
}

.section-heading,
.work-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2,
.work-toolbar h2 {
  font-size: clamp(40px, 5vw, 72px);
}

.series-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.series-tile {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 260px;
  cursor: pointer;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  padding: 20px;
  color: var(--white);
  text-align: left;
}

.series-tile__cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
  transition: opacity 180ms ease, transform 280ms ease;
}

.series-tile::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.68));
}

.series-tile span {
  position: relative;
  z-index: 2;
  max-width: 15ch;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.series-tile small {
  position: relative;
  z-index: 2;
  align-self: end;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.series-tile:hover,
.series-tile:focus-visible {
  background: var(--ink);
}

.series-tile:hover .series-tile__cover,
.series-tile:focus-visible .series-tile__cover {
  opacity: 0.92;
  transform: scale(1.035);
}

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

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 760px;
}

.filter-button {
  min-height: 36px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: transparent;
  padding: 7px 11px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.filter-button.is-active,
.filter-button:hover,
.filter-button:focus-visible {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.gallery {
  column-count: 4;
  column-gap: 14px;
}

.gallery-item {
  display: inline-block;
  width: 100%;
  margin: 0 0 14px;
  break-inside: avoid;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(17, 16, 13, 0.08);
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-button {
  display: block;
  width: 100%;
  cursor: zoom-in;
  border: 0;
  background: transparent;
  padding: 0;
}

.gallery-button img {
  width: 100%;
  height: auto;
  background: var(--paper-soft);
  transition: filter 180ms ease, transform 180ms ease;
}

.gallery-button:hover img,
.gallery-button:focus-visible img {
  filter: saturate(1.08) contrast(1.04);
}

.gallery-item figcaption {
  display: grid;
  gap: 2px;
  padding: 12px;
}

.gallery-item figcaption span {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.gallery-item figcaption small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  background: var(--olive);
  color: var(--white);
}

.contact-section .section-kicker {
  color: var(--paper-soft);
}

.contact-actions {
  justify-content: flex-end;
  margin-top: 0;
}

.contact-section .button--outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  background: var(--ink);
  padding: 20px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-footer a {
  color: var(--gold);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 70px clamp(18px, 4vw, 48px) 40px;
  background: rgba(6, 6, 5, 0.92);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: min(1180px, 100%);
  max-height: 78vh;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: transparent;
  color: var(--white);
  font-size: 32px;
  line-height: 1;
}

.lightbox__caption {
  position: absolute;
  right: clamp(18px, 4vw, 48px);
  bottom: 18px;
  left: clamp(18px, 4vw, 48px);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: var(--white);
}

.lightbox__caption strong,
.lightbox__caption span {
  font-size: 13px;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .series-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery {
    column-count: 3;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: center;
    padding: 16px 18px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 18px;
    display: grid;
    gap: 0;
    min-width: min(260px, calc(100vw - 36px));
    padding: 8px;
    border: 1px solid rgba(17, 16, 13, 0.14);
    background: rgba(247, 244, 238, 0.96);
    color: var(--ink);
    box-shadow: 0 20px 50px rgba(17, 16, 13, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    backdrop-filter: blur(18px);
  }

  .site-nav a {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(17, 16, 13, 0.1);
    opacity: 1;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-header.is-nav-open {
    color: var(--ink);
  }

  .site-header.is-nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .brand__name {
    display: none;
  }

  .hero {
    min-height: 88vh;
    padding: 116px 18px 24px;
  }

  .hero h1 {
    font-size: clamp(62px, 22vw, 104px);
  }

  .hero p {
    font-size: 16px;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }

  .intro-profile {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .intro-portrait {
    max-width: 420px;
  }

  .section-heading,
  .work-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-bar {
    justify-content: flex-start;
  }

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

  .gallery {
    column-count: 2;
    column-gap: 10px;
  }

  .gallery-item {
    margin-bottom: 10px;
  }

  .gallery-item figcaption {
    padding: 10px;
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .button {
    width: 100%;
  }

  .gallery {
    column-count: 1;
  }

  .lightbox {
    padding-right: 12px;
    padding-left: 12px;
  }
}
