:root {
  --black: #050505;
  --white: #ffffff;
  --paper: #f8f8f6;
  --ink: #0b0b0b;
  --muted: rgba(11, 11, 11, 0.55);
  --line: rgba(11, 11, 11, 0.14);
  --content-max: 1336px;
  --gap: clamp(12px, 2.2vw, 28px);
  --outer: clamp(20px, 3.611vw, 52px);
  --shell-width: min(calc(100vw - (var(--outer) * 2)), var(--content-max));
  --display: "HelveticaNeue-Thin", "Segoe UI Light", "Helvetica Neue", Arial, sans-serif;
  --sans: "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
}

body {
  width: 100%;
  overflow-x: hidden;
  min-height: 100%;
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.28;
  letter-spacing: 0;
  background: var(--paper);
  color: var(--ink);
}

body.dark-page {
  background: var(--black);
  color: var(--white);
}

body.home-page {
  overflow: hidden;
}

body.modal-open {
  overflow: hidden;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 38;
  background: rgba(0, 0, 0, 0.34);
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 60;
  width: var(--shell-width);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 18px;
  padding: 18px 0;
  color: var(--ink);
  transform: translateX(-50%);
}

.site-header.is-light {
  color: var(--white);
}

body:not(.home-page) .site-header {
  position: absolute;
}

.brand {
  width: clamp(148px, 15vw, 207px);
  transform: translateY(-1px);
}

.brand img {
  width: 100%;
  height: auto;
}

.menu-toggle {
  display: none;
  position: relative;
  z-index: 70;
  width: 34px;
  height: 22px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

.menu-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
}

.menu-toggle span:first-child {
  top: 7px;
}

.menu-toggle span:last-child {
  bottom: 7px;
}

.menu-toggle.is-open {
  color: var(--ink);
}

.menu-toggle.is-open span:first-child {
  top: 12px;
  transform: rotate(38deg);
}

.menu-toggle.is-open span:last-child {
  bottom: 11px;
  transform: rotate(-38deg);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px 16px;
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
}

.nav a {
  opacity: 0.58;
  transition: opacity 700ms var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  opacity: 1;
  font-weight: 700;
}

.page {
  min-height: 100vh;
}

.hero {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0;
  filter: saturate(0.9) contrast(1.04);
  transform: scale(1.035);
  transition: opacity 1200ms var(--ease);
}

.hero-slide.is-active {
  opacity: 0.9;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,0) 30%, rgba(0,0,0,.46)),
    linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,0) 55%);
  pointer-events: none;
}

.hero-copy {
  height: 100%;
  width: var(--shell-width);
  margin: 0 auto;
  display: grid;
  align-content: end;
  gap: 22px;
  padding: 42vh 0 40px;
}

.hero h1 {
  max-width: 1180px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(30px, 4.722vw, 68px);
  font-weight: 200;
  line-height: 1;
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  max-width: 1180px;
  color: rgba(255, 255, 255, 0.78);
}

.hero-foot p,
.hero-foot a {
  margin: 0;
  max-width: 430px;
}

.quiet-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.72;
  transition: opacity 700ms var(--ease);
}

.quiet-link:hover {
  opacity: 1;
}

.home-gallery {
  padding: clamp(34px, 7vw, 96px) var(--outer) clamp(80px, 12vw, 160px);
  background: var(--paper);
}

.gallery-intro {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 430px);
  gap: var(--gap);
  align-items: end;
  margin-bottom: clamp(42px, 8vw, 112px);
}

.section-title,
.page-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 6.111vw, 88px);
  font-weight: 400;
  line-height: 0.955;
}

.gallery-intro p,
.editorial-copy p,
.contact-copy p,
.vision-note p {
  margin: 0;
  color: var(--muted);
}

.descending-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(18px, 5vw, 86px) var(--gap);
  align-items: start;
}

.art-tile {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.art-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #ddd;
}

.art-tile figcaption {
  display: none;
  grid-template-columns: auto 1fr;
  gap: 8px;
  margin-top: 9px;
  font-size: 11px;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--muted);
}

.home-gallery .art-tile figcaption {
  display: none;
}

.art-tile figure {
  margin: 0;
}

.art-tile .frame {
  overflow: hidden;
  background: #d9d8d2;
}

.home-a { grid-column: 1 / span 3; }
.home-b { grid-column: 4 / span 3; margin-top: 4vw; }
.home-c { grid-column: 8 / span 3; }
.home-d { grid-column: 2 / span 3; }
.home-e { grid-column: 5 / span 3; margin-top: 7vw; }
.home-f { grid-column: 9 / span 3; margin-top: 2vw; }
.home-g { grid-column: 1 / span 3; }
.home-h { grid-column: 5 / span 3; margin-top: 6vw; }
.home-i { grid-column: 8 / span 4; }
.home-j { grid-column: 2 / span 3; }
.home-k { grid-column: 5 / span 3; margin-top: 4vw; }
.home-l { grid-column: 9 / span 3; margin-top: 9vw; }
.home-m { grid-column: 1 / span 3; margin-top: 3vw; }
.home-n { grid-column: 4 / span 4; }
.home-o { grid-column: 8 / span 3; margin-top: 5vw; }
.home-p { grid-column: 11 / span 2; margin-top: 1vw; }
.home-q { grid-column: 2 / span 4; }
.home-r { grid-column: 6 / span 3; margin-top: 8vw; }
.home-s { grid-column: 9 / span 4; }
.home-t { grid-column: 1 / span 3; margin-top: 4vw; }
.home-u { grid-column: 4 / span 3; }
.home-v { grid-column: 7 / span 3; margin-top: 7vw; }
.home-w { grid-column: 10 / span 3; margin-top: 2vw; }
.home-x { grid-column: 3 / span 4; }

.ratio-wide { aspect-ratio: 16 / 10; }
.ratio-square { aspect-ratio: 1 / 1; }
.ratio-portrait { aspect-ratio: 4 / 5; }
.ratio-tall { aspect-ratio: 3 / 4; }

.page-shell {
  width: var(--shell-width);
  margin: 0 auto;
  padding: 184px 0 72px;
}

.page-head {
  display: block;
  margin-bottom: 102px;
}

.page-head p {
  margin: 0;
  color: var(--muted);
}

.filter-bar {
  position: relative;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 0 0 80px;
  padding: 13px 0 12px;
  background: transparent;
  border-block: 1px solid var(--line);
}

.filter-bar button {
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  padding: 0 0 3px;
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  opacity: 0.55;
}

.filter-bar button:hover,
.filter-bar button.is-active {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  opacity: 1;
}

.artworks-grid {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 38px;
}

.artwork-row {
  display: flex;
  gap: 24px;
  height: 206px;
  width: 100%;
  justify-content: flex-start;
}

.catalog-item {
  flex: 0 0 auto;
  height: 206px;
}

.catalog-item.vertical { width: 146px; }
.catalog-item.horizontal { width: 316px; }

.catalog-item .frame,
.catalog-item figure {
  width: 100%;
  height: 100%;
}

.catalog-item.is-hidden,
.artwork-row.is-hidden,
.phone-artwork-row.is-hidden {
  display: none;
}

.ratio-catalog-horizontal,
.ratio-catalog-vertical { aspect-ratio: auto; }

.vision-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 44px;
  align-items: start;
}

.vision-page .page-shell {
  padding-top: 112px;
}

.vision-statement {
  grid-column: 1 / span 5;
  display: grid;
  gap: 56px;
  padding-top: 41px;
}

.vision-statement blockquote {
  max-width: 668px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 3.611vw, 52px);
  font-weight: 400;
  line-height: 1.038;
}

.editorial-copy {
  max-width: 543px;
  display: grid;
  gap: 14px;
  margin-left: 0;
  font-size: 18px;
  line-height: 24px;
}

.vision-rail {
  grid-column: 7 / span 6;
  align-self: start;
  width: min(100%, 560px);
  justify-self: end;
}

.vision-rail .frame {
  aspect-ratio: 560 / 722;
}

.vision-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  gap: var(--gap);
  align-items: start;
  margin-top: clamp(80px, 14vw, 180px);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  grid-template-columns: 640px minmax(320px, 570px);
  gap: min(8.75vw, 126px);
  align-items: start;
}

.contact-page .page-shell {
  padding-top: 157px;
}

.contact-copy {
  display: block;
  padding-top: 48px;
}

.contact-copy h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 6.111vw, 88px);
  font-weight: 400;
  line-height: 0.94;
}

.contact-copy > p {
  max-width: 520px;
  margin-top: 22px;
  font-size: 18px;
  line-height: 24px;
}

.contact-methods {
  display: grid;
  gap: 20px;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.contact-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
}

.contact-row span {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
}

.contact-form {
  display: grid;
  gap: 0;
  margin-top: 31px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.form-hidden {
  display: none;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 6px 0 8px;
  color: var(--ink);
  outline: none;
}

.contact-form textarea {
  min-height: 130px;
  resize: none;
}

.contact-form button {
  justify-self: start;
  margin-top: 12px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  padding: 10px 15px 9px;
  font-size: 11px;
  text-transform: uppercase;
  transition: background 650ms var(--ease), color 650ms var(--ease);
}

.contact-form button:hover {
  background: var(--ink);
  color: var(--white);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 10px 15px 9px;
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  transition: background 650ms var(--ease), color 650ms var(--ease);
}

.social-links a:hover {
  background: var(--ink);
  color: var(--white);
}

.contact-image {
  align-self: start;
  width: 570px;
  max-width: 100%;
  height: 673px;
  min-height: 0;
  overflow: hidden;
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #f8f8f6;
  color: var(--ink);
  padding: 22px var(--outer) 28px;
}

.modal.is-open {
  display: flex;
  flex-direction: column;
}

.modal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
}

.modal-close {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 6px 0;
  text-transform: uppercase;
}

.modal-stage {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}

.modal-stage img {
  display: block;
  max-width: min(100%, 1256px);
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.modal-thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.modal-thumbs[hidden] {
  display: none;
}

.modal-thumbs button {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  border: 1px solid transparent;
  background: transparent;
  padding: 0;
  opacity: 0.52;
}

.modal-thumbs button.is-active {
  border-color: var(--ink);
  opacity: 1;
}

.modal-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .site-header {
    left: 20px;
    right: 20px;
    grid-template-columns: 1fr auto;
    align-items: start;
    gap: 16px;
    width: auto;
    padding: 32px 0 0;
    transform: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: auto;
    left: 100%;
    z-index: 55;
    width: 288px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 92px 26px 28px;
    background: var(--paper);
    color: var(--ink);
    border-left: 1px solid var(--line);
    font-size: 34px;
    line-height: 1;
    transform: none;
    transition: transform 520ms var(--ease);
  }

  .nav.is-open {
    transform: translateX(-100%);
  }

  .nav a {
    width: 100%;
    border-top: 1px solid var(--line);
    padding: 15px 0;
    opacity: 0.38;
  }

  .nav a:last-child {
    border-bottom: 1px solid var(--line);
  }

  .nav a[aria-current="page"] {
    opacity: 1;
  }

  .hero-foot,
  .gallery-intro,
  .page-head,
  .vision-note,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    height: 100vh;
    width: auto;
    margin: 0 20px;
    padding: 54vh 0 34px;
  }

  .vision-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    align-items: start;
  }

  .vision-statement {
    grid-column: auto;
    padding-top: 0;
  }

  .editorial-copy {
    max-width: none;
    margin-left: 0;
  }

  .vision-rail {
    grid-column: auto;
    width: 100%;
    justify-self: center;
  }

  .vision-rail .art-tile:nth-child(1) {
    width: min(100%, 403px);
    margin: 0 auto;
  }

  .descending-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .home-a,
  .home-b,
  .home-c,
  .home-d,
  .home-e,
  .home-f,
  .home-g,
  .home-h,
  .home-i,
  .home-j,
  .home-k,
  .home-l,
  .home-m,
  .home-n,
  .home-o,
  .home-p,
  .home-q,
  .home-r,
  .home-s,
  .home-t,
  .home-u,
  .home-v,
  .home-w,
  .home-x {
    grid-column: auto / span 3;
    margin-top: 0;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .contact-image {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 570 / 673;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    max-width: 300px;
    font-size: clamp(21px, 6.6vw, 29px);
    line-height: 1.04;
  }

  .section-title,
  .page-title,
  .contact-copy h1 {
    font-size: 58px;
    line-height: 62px;
  }

  .contact-copy h1 {
    font-size: clamp(54px, 14.8vw, 58px);
  }

  .vision-statement blockquote {
    font-size: 40px;
    line-height: 42px;
  }

  .hero-foot {
    font-size: 13px;
  }

  .page-shell {
    width: auto;
    margin: 0 20px;
    padding: 162px 0 80px;
  }

  .vision-page .page-shell,
  .contact-page .page-shell {
    padding-top: 176px;
  }

  .contact-page .page-shell {
    padding-bottom: 48px;
  }

  .contact-copy {
    padding-top: 0;
  }

  .contact-copy > p {
    max-width: 100%;
    margin-top: 26px;
    font-size: 19px;
    line-height: 26px;
    overflow-wrap: anywhere;
  }

  .contact-methods {
    margin-top: 34px;
    gap: 24px;
  }

  .contact-row span,
  .contact-form label {
    font-size: 20px;
    line-height: 1;
  }

  .contact-form {
    margin-top: 34px;
  }

  .contact-form input,
  .contact-form textarea {
    min-width: 0;
  }

  .contact-form button {
    max-width: 100%;
    white-space: nowrap;
  }

  .social-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
  }

  .social-links a {
    justify-content: center;
    width: 100%;
    min-height: 42px;
  }

  .page-head {
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e5e5e5;
  }

  .filter-bar {
    gap: 20px;
    margin-bottom: 42px;
    overflow-x: auto;
    flex-wrap: nowrap;
    border-top: 0;
    border-bottom-color: #e5e5e5;
    scrollbar-width: none;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-bar button {
    height: 26px;
    flex: 0 0 auto;
    border: 0;
    padding: 0;
    color: #8f8f8f;
    opacity: 1;
  }

  .filter-bar button.is-active {
    border: 1px solid #d8d8d8;
    background: #f7f7f7;
    color: var(--ink);
    padding: 0 10px;
  }

  .artworks-grid {
    gap: 16px;
  }

  .phone-artwork-row {
    display: flex;
    gap: 14px;
  }

  .phone-artwork-row.single {
    display: block;
  }

  .phone-artwork-row.pair .catalog-item {
    width: calc((100% - 14px) / 2);
    height: auto;
  }

  .phone-artwork-row.single .catalog-item {
    width: 100%;
    height: auto;
  }

  .phone-artwork-row.pair .frame {
    aspect-ratio: 168 / 237;
  }

  .phone-artwork-row.single .frame {
    aspect-ratio: 350 / 228;
  }

  .vision-grid {
    gap: 30px;
  }

  .editorial-copy {
    font-size: 16px;
    line-height: 22px;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}
