:root {
  --paper: #f7f6f1;
  --paper-deep: #ece8dc;
  --ink: #101010;
  --muted: #5d5a52;
  --line: #d8d4ca;
  --white: #ffffff;
  --accent: #8f1d17;
  --header-height: 58px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body.is-lightbox-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

.skip-link {
  left: 16px;
  position: fixed;
  top: 12px;
  transform: translateY(-160%);
  z-index: 50;
  background: var(--ink);
  color: var(--white);
  padding: 10px 14px;
}

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

.site-header {
  align-items: center;
  background: rgba(247, 246, 241, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.site-header__name,
.site-header__link,
.eyebrow {
  color: #4c4a45;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-header__nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-end;
}

.site-header__link,
.site-header__name {
  padding: 20px 0;
}

.site-header__link:hover,
.site-header__link:focus-visible,
.site-header__name:hover,
.site-header__name:focus-visible {
  color: var(--ink);
}

.hero {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  min-height: calc(100svh - var(--header-height));
  padding: 40px 40px 48px;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 8vw, 118px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.92;
  margin: 34px 0 0;
  max-width: 780px;
}

.hero__line {
  color: #24231f;
  font-size: clamp(22px, 2.1vw, 32px);
  line-height: 1.28;
  margin: 30px 0 0;
  max-width: 620px;
}

.hero__route {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(5, minmax(70px, 1fr));
  margin-top: 56px;
  max-width: 680px;
  text-align: center;
}

.hero__route a {
  border-right: 1px solid var(--line);
  color: #34322d;
  font-size: 13px;
  letter-spacing: 0.16em;
  padding: 17px 8px;
  text-transform: uppercase;
}

.hero__route a:last-child {
  border-right: 0;
}

.hero__route a:hover,
.hero__route a:focus-visible {
  background: var(--white);
  color: var(--ink);
}

.hero__figure {
  background: var(--white);
  margin: 0;
  min-height: 520px;
  overflow: hidden;
  position: relative;
}

.hero__figure img {
  filter: grayscale(1);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.hero__figure figcaption {
  background: rgba(247, 246, 241, 0.92);
  bottom: 20px;
  color: #4c4a45;
  font-size: 12px;
  left: 20px;
  letter-spacing: 0.18em;
  max-width: 360px;
  padding: 12px 14px;
  position: absolute;
  text-transform: uppercase;
}

.intro {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 28px 40px;
}

.intro p {
  color: #262520;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.45;
  margin: 0;
  max-width: 1040px;
}

.pavilion {
  display: grid;
  gap: 48px;
  grid-template-columns: 330px minmax(0, 1fr);
  padding: 60px 40px;
}

.pavilion__context {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 26px);
}

.pavilion__context h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 6vw, 82px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  margin: 18px 0 0;
}

.pavilion__context p {
  color: #34322d;
  font-size: 19px;
  line-height: 1.5;
  margin: 28px 0 0;
}

.pavilion__context span {
  border-top: 1px solid currentColor;
  color: var(--muted);
  display: block;
  font-size: 12px;
  letter-spacing: 0.13em;
  line-height: 1.5;
  margin-top: 26px;
  padding-top: 14px;
  text-transform: uppercase;
}

.work-wall {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.work {
  background: var(--white);
  border: 0;
  color: inherit;
  cursor: zoom-in;
  flex: 1 1 220px;
  max-width: 520px;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-align: left;
}

.work--1 {
  flex-basis: clamp(320px, 42%, 520px);
}

.work--2 {
  flex-basis: clamp(260px, 30%, 430px);
}

.work--3 {
  flex-basis: clamp(170px, 18%, 240px);
}

.work--4 {
  flex-basis: clamp(240px, 28%, 380px);
}

.work--5 {
  flex-basis: clamp(240px, 28%, 380px);
}

.work img {
  filter: grayscale(1);
  height: auto;
  object-fit: contain;
  transition: filter 420ms ease, transform 420ms ease;
  width: 100%;
}

.work__caption {
  align-items: center;
  background: rgba(247, 246, 241, 0.94);
  bottom: 0;
  color: #3e3b35;
  display: flex;
  font-size: 12px;
  gap: 12px;
  justify-content: space-between;
  left: 0;
  letter-spacing: 0.13em;
  opacity: 0;
  padding: 12px 14px;
  position: absolute;
  right: 0;
  text-transform: uppercase;
  transform: translateY(8px);
  transition: opacity 240ms ease, transform 240ms ease;
}

.work:hover img,
.work:focus-visible img {
  filter: grayscale(0);
}

.work:hover .work__caption,
.work:focus-visible .work__caption {
  opacity: 1;
  transform: translateY(0);
}

.work:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.bio,
.contact {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 48px;
  grid-template-columns: 330px minmax(0, 1fr);
  padding: 58px 40px;
}

.bio h2,
.contact h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 4.8vw, 74px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  margin: 18px 0 0;
}

.bio__copy {
  max-width: 920px;
}

.bio__copy > p,
.contact > p {
  color: #2d2b27;
  font-size: 20px;
  line-height: 1.55;
  margin: 0 0 22px;
}

.timeline {
  border-top: 1px solid var(--line);
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
}

.timeline li,
.contact dl div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: 150px minmax(0, 1fr);
  padding: 18px 0;
}

.timeline span,
.contact dt {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.timeline p,
.contact dd {
  font-size: 18px;
  line-height: 1.45;
  margin: 0;
}

.contact {
  background: #101010;
  border-top: 0;
  color: var(--paper);
}

.contact .eyebrow,
.contact dt {
  color: #bbb5a8;
}

.contact p {
  max-width: 860px;
}

.contact dl {
  margin: 34px 0 0;
  max-width: 860px;
}

.contact dl div {
  border-color: #36332e;
}

.lightbox {
  align-items: center;
  display: grid;
  inset: 0;
  opacity: 0;
  padding: 28px;
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 60;
}

.lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__backdrop {
  background: rgba(10, 10, 10, 0.78);
  border: 0;
  inset: 0;
  position: absolute;
}

.lightbox__panel {
  background: var(--paper);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  margin: 0 auto;
  max-height: min(860px, calc(100svh - 56px));
  max-width: 1180px;
  min-height: 420px;
  outline: none;
  overflow: hidden;
  position: relative;
  width: min(100%, 1180px);
}

.lightbox__close {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  font-size: 30px;
  height: 44px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 44px;
  z-index: 2;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: var(--ink);
  color: var(--white);
}

.lightbox__image-shell {
  background: #111111;
  min-height: 0;
}

.lightbox__image-shell img {
  filter: none;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.lightbox__caption {
  border-left: 1px solid var(--line);
  padding: 72px 26px 28px;
}

.lightbox__caption h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 18px 0 0;
}

.lightbox__caption p:last-child {
  color: #3a3832;
  font-size: 17px;
  line-height: 1.5;
  margin-top: 20px;
}

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

@media (max-width: 960px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding: 0 20px 12px;
    position: static;
  }

  .site-header__nav {
    justify-content: flex-start;
  }

  .hero,
  .pavilion,
  .bio,
  .contact {
    grid-template-columns: 1fr;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    gap: 32px;
    min-height: auto;
    padding-top: 34px;
  }

  .hero__route {
    margin-top: 38px;
  }

  .hero__figure {
    min-height: 380px;
  }

  .pavilion__context {
    position: static;
  }

  .lightbox__panel {
    grid-template-columns: 1fr;
    max-height: calc(100svh - 32px);
    overflow: auto;
  }

  .lightbox__image-shell {
    min-height: 320px;
  }

  .lightbox__caption {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 28px;
  }
}

@media (max-width: 620px) {
  .site-header__nav {
    gap: 14px;
  }

  .site-header__link,
  .site-header__name {
    padding: 14px 0 0;
  }

  .hero h1 {
    font-size: clamp(52px, 17vw, 82px);
  }

  .hero__route {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .hero__route a {
    font-size: 11px;
    padding: 13px 4px;
  }

  .work-wall {
    display: block;
  }

  .work {
    display: block;
    margin-bottom: 14px;
    max-width: none;
    width: 100%;
  }

  .work__caption {
    opacity: 1;
    transform: none;
  }

  .timeline li,
  .contact dl div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .lightbox {
    padding: 12px;
  }
}
