
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@300;400&family=Manrope:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #f5f4f0;
  --text: #11110f;
  --muted: #77756e;
  --line: #d8d6cf;
  --display: 'Manrope', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --sans: 'Manrope', Arial, sans-serif;
  --mono: 'DM Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

.site {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--bg);
  z-index: 10;
}

.brand {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 700;
  line-height: .88;
  letter-spacing: -1.5px;
  margin-bottom: 9px;
}
.role {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}

.nav {
  margin-top: 58px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav a {
  width: max-content;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  position: relative;
}
.nav a::before {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  background: var(--text);
  left: 0;
  bottom: -3px;
  transition: width .2s ease;
}
.nav a:hover::before, .nav a.active::before { width: 100%; }

.sidebar-bottom {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.6;
  color: var(--muted);
}
.sidebar-bottom a { color: var(--text); }

.content {
  grid-column: 2;
  padding: 20px;
  min-width: 0;
}

.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  padding: 15px 5px 18px;
  margin-bottom: 20px;
}
.page-title {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 104px);
  line-height: .85;
  letter-spacing: -4.5px;
  font-weight: 750;
  margin: 0;
}
.page-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
}

.toc {
  display: flex;
  gap: 22px;
  padding: 18px 5px 0;
}
.toc a {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  position: relative;
}
.toc a::before {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  background: var(--text);
  left: 0;
  bottom: -3px;
  transition: width .2s ease;
}
.toc a:hover {
  color: var(--text);
}
.toc a:hover::before {
  width: 100%;
}

.category-title {
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin: 55px 5px 0;
  scroll-margin-top: 25px;
}
.category-title:first-of-type {
  margin-top: 40px;
}

.work-group {
  padding-top: 60px;
}
.work-group:first-child {
  padding-top: 0;
}
.work-group-header {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 0 5px 13px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.work-group-header .year {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.work-group-header h3 {
  flex: 1;
  min-width: 0;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0;
}
.work-group-header .type {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.mosaic {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  user-select: none;
}
.mosaic.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.mosaic::-webkit-scrollbar { height: 5px; }
.mosaic::-webkit-scrollbar-track { background: transparent; }
.mosaic::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.work {
  position: relative;
  flex: 0 0 auto;
  height: 400px;
  width: auto;
  overflow: hidden;
  background: var(--bg);
  scroll-snap-align: start;
}
.work img {
  height: 100%;
  width: auto;
  max-width: none;
  object-fit: contain;
  pointer-events: none;
}
.work .caption {
  position: absolute;
  left: 10px;
  bottom: 9px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity .2s ease;
}
.work:hover .caption { opacity: 1; }

.statement {
  max-width: 900px;
  padding: 95px 5px 110px;
}
.statement h2 {
  font-family: var(--display);
  font-weight: 750;
  font-size: clamp(42px, 5.5vw, 78px);
  letter-spacing: -4px;
  line-height: .88;
  margin: 0 0 35px;
}
.statement p {
  max-width: 680px;
  font-size: 17px;
  line-height: 1.6;
}

.section {
  padding: 75px 5px;
  border-top: 1px solid var(--line);
}
.section h2 {
  font-family: var(--display);
  font-size: 54px;
  font-weight: 600;
  letter-spacing: -2px;
  margin: 0 0 30px;
}
.project-list { border-top: 1px solid var(--line); }
.project {
  display: grid;
  grid-template-columns: 90px 1fr 160px;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.project .year, .project .type {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}
.project .type { text-align: right; }

.contact {
  display: flex;
  flex-direction: column;
  padding: 20px 5%;
}
.contact h1 {
  font-family: var(--display);
  font-weight: 750;
  font-size: clamp(68px, 10vw, 155px);
  line-height: .78;
  letter-spacing: -7px;
  margin: 0 0 70px;
}
.contact-links {
  display: grid;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
}
.contact-links a:hover { text-decoration: underline; }

.mobile-header { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 15, .96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease;
  z-index: 100;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox-inner {
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox-img {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.lightbox-caption {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #cfcdc5;
  text-align: center;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: #f5f4f0;
  cursor: pointer;
  font-family: var(--sans);
  line-height: 1;
  transition: opacity .15s ease;
  opacity: .7;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}
.lightbox-close {
  top: 22px;
  right: 28px;
  font-size: 34px;
  font-weight: 300;
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 52px;
  font-weight: 300;
  padding: 10px 16px;
}
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }

@media (max-width: 800px) {
  .lightbox-close { top: 12px; right: 16px; font-size: 28px; }
  .lightbox-prev, .lightbox-next { font-size: 36px; padding: 8px 10px; }
  .lightbox-inner { max-width: 94vw; max-height: 84vh; }
  .lightbox-img { max-width: 94vw; max-height: 72vh; }
}

@media (max-width: 800px) {
  .site { display: block; }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px;
  }
  .nav { margin-top: 28px; flex-direction: row; flex-wrap: wrap; gap: 8px 18px; }
  .sidebar-bottom { margin-top: 30px; }
  .content { padding: 12px; }
  .work {
    width: auto;
    height: 260px;
  }
  .work-group { padding-top: 40px; }
  .work-group-header { flex-wrap: wrap; gap: 5px 14px; }
  .work-group-header h3 { flex-basis: 100%; order: -1; font-size: 22px; }
  .page-intro { padding-top: 8px; }
  .page-title { font-size: 52px; letter-spacing: -2.5px; }
  .project { grid-template-columns: 55px 1fr; }
  .project .type { display: none; }
  .contact { padding: 15px 2%; }
  .contact h1 { font-size: 19vw; letter-spacing: -4px; }
}


.home-statement {
  padding-top: 55px;
  padding-bottom: 70px;
  max-width: 920px;
}
.home-statement .page-meta {
  display: block;
  margin-bottom: 18px;
}
.home-statement h1 {
  font-family: var(--display);
  font-weight: 750;
  font-size: clamp(54px, 8vw, 116px);
  letter-spacing: -5.5px;
  line-height: .82;
  margin-bottom: 42px;
}
.home-statement p {
  max-width: 680px;
}
.statement-link {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--text);
  padding-bottom: 3px;
}

.atelier-gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8px;
  margin-bottom: 80px;
}
.atelier-photo {
  margin: 0;
  overflow: hidden;
}
.atelier-photo-large {
  grid-row: span 2;
}
.atelier-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #dedcd5;
}
.atelier-photo-large img {
  height: 100%;
  aspect-ratio: auto;
}
.atelier-photo figcaption {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 7px;
}

@media (max-width: 800px) {
  .home-statement {
    padding-top: 35px;
    padding-bottom: 55px;
  }
  .home-statement h1 {
    font-size: 17vw;
    letter-spacing: -3.5px;
  }
  .atelier-gallery {
    grid-template-columns: 1fr;
  }
  .atelier-photo-large {
    grid-row: auto;
  }
  .atelier-photo-large img {
    aspect-ratio: 4 / 3;
    height: auto;
  }
}
