@font-face {
  font-family: "Helvetica Neue";
  src: url("helvetica-neue-5/HelveticaNeueUltraLight.otf") format("opentype");
  font-weight: 200;
  font-style: normal;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("helvetica-neue-5/HelveticaNeueUltraLightItalic.otf") format("opentype");
  font-weight: 200;
  font-style: italic;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("helvetica-neue-5/HelveticaNeueThin.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("helvetica-neue-5/HelveticaNeueThinItalic.otf") format("opentype");
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("helvetica-neue-5/HelveticaNeueLight.otf") format("opentype");
  font-weight: 350;
  font-style: normal;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("helvetica-neue-5/HelveticaNeueLightItalic.otf") format("opentype");
  font-weight: 350;
  font-style: italic;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("helvetica-neue-5/HelveticaNeueRoman.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("helvetica-neue-5/HelveticaNeueItalic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("helvetica-neue-5/HelveticaNeueMedium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("helvetica-neue-5/HelveticaNeueMediumItalic.otf") format("opentype");
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("helvetica-neue-5/HelveticaNeueBold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("helvetica-neue-5/HelveticaNeueBoldItalic.otf") format("opentype");
  font-weight: 700;
  font-style: italic;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("helvetica-neue-5/HelveticaNeueHeavy.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("helvetica-neue-5/HelveticaNeueHeavyItalic.otf") format("opentype");
  font-weight: 800;
  font-style: italic;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("helvetica-neue-5/HelveticaNeueBlack.otf") format("opentype");
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: "Helvetica Neue";
  src: url("helvetica-neue-5/HelveticaNeueBlackItalic.otf") format("opentype");
  font-weight: 900;
  font-style: italic;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  background: #000;
  color: #fff;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.25rem 3rem;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.site-nav a {
  font-size: 1.125rem;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
}

.site-nav a:hover {
  opacity: 0.6;
}

.nav-item {
  position: relative;
}

.nav-item > a:not([href]) {
  cursor: default;
}

.nav-item > a:not([href]):hover {
  opacity: 1;
}

.submenu {
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 0.75rem;
  margin: 0;
  list-style: none;
  text-align: right;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.nav-item:hover .submenu,
.nav-item:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.submenu li {
  margin-top: 0.35rem;
}

.submenu a {
  font-size: 1rem;
  color: #fff;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 100;
  width: 30px;
  height: 18px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #fff;
  transition: transform 0.3s ease;
  transform-origin: center;
}

body.menu-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.menu-open .nav-toggle span:nth-child(2) {
  transform: translateY(-8px) rotate(-45deg);
}

body.menu-open {
  overflow: hidden;
}

.site-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 7rem);
  padding: 2rem 3rem 4rem;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-title {
  margin: 0 0 1rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: inherit;
  text-align: center;
}

.hero-title-link {
  color: inherit;
  text-decoration: none;
}

.hero-title-text {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 50%;
  background-size: 0% 2px;
  background-repeat: no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-title-link:hover .hero-title-text,
.hero-title-link.is-crossing .hero-title-text {
  background-size: 100% 2px;
}

.hero-image {
  display: block;
  max-width: 420px;
  width: 100%;
  height: auto;
}

.hero-caption {
  font-style: italic;
  font-size: 1rem;
  color: #fff;
}

.site-nav a.is-active {
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.work-main {
  min-height: calc(100vh - 7rem);
  padding: 2rem 3rem 4rem;
  display: flex;
  justify-content: center;
}

.work-figure {
  display: flex;
  flex-direction: column;
  max-width: 320px;
  width: 100%;
  margin: 0;
}

.work-image {
  display: block;
  width: 100%;
  height: auto;
}

.work-image + .work-image {
  margin-top: 1.5rem;
}

.submarine-main {
  flex-direction: column;
  align-items: center;
  gap: 5rem;
}

.contact-main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 7rem);
  padding: 2rem 1.5rem;
}

.contact-email {
  color: inherit;
  font-size: 1.5rem;
  font-weight: 400;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-size: 100% 1px;
  background-repeat: no-repeat;
  padding-bottom: 2px;
}

.contact-email:hover {
  opacity: 0.6;
}

.work-caption {
  margin-top: 3rem;
  text-align: left;
  color: #fff;
}

.work-title,
.work-medium,
.work-size {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
}

.work-title {
  font-family: inherit;
}

.work-medium {
  margin-top: 1.75rem;
}

.work-size {
  margin-top: 1.75rem;
  font-style: italic;
}

.work-paired {
  margin: 1.75rem 0 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
}

.work-paired a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.work-paired a:hover {
  opacity: 0.6;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1000;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
  touch-action: none;
}

.lightbox-image {
  max-width: 92vw;
  max-height: 92vh;
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center center;
  transition: transform 0.15s ease-out;
  will-change: transform;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  z-index: 1;
  font-family: inherit;
}

.lightbox-close:hover {
  opacity: 0.6;
}

body.lightbox-open {
  overflow: hidden;
}

body.page-work {
  background: #fff;
  color: #111;
}

body.page-work .logo,
body.page-work .site-nav a,
body.page-work .work-caption {
  color: #111;
}

body.page-work .nav-toggle span {
  background: #111;
}

body.page-work.menu-open .nav-toggle span {
  background: #fff;
}

@media (max-width: 768px) {
  body.page-work .site-nav a {
    color: #fff;
  }
}

body.page-work .lightbox {
  background: rgba(255, 255, 255, 0.98);
}

body.page-work .lightbox-close {
  color: #111;
}

.series-main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 2rem 3rem 6rem;
  min-height: calc(100vh - 7rem);
}

.series-figure {
  display: flex;
  flex-direction: column;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
}

.series-image {
  display: block;
  width: 100%;
  height: auto;
}

.series-caption {
  margin-top: 1.5rem;
  text-align: right;
}

.series-title {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 700;
  color: inherit;
  line-height: 1.2;
}

.series-paintings {
  margin: 5rem auto 0;
  padding-left: 20%;
  width: 100%;
  max-width: 1100px;
}

.series-paintings-label {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  font-weight: 400;
}

.series-paintings-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.series-paintings-list li {
  margin-top: 1.75rem;
}

.series-paintings-list li:first-child {
  margin-top: 0;
}

.series-paintings-list a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  font-size: 1rem;
}

.series-paintings-list a:hover {
  opacity: 0.6;
}

@media (max-width: 640px) {
  .series-main {
    padding: 1rem 1.25rem 3rem;
  }

  .series-title {
    font-size: 1.25rem;
  }

  .series-paintings {
    margin-top: 3rem;
    padding-left: 1.25rem;
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.logo,
.nav-item > a,
.site-nav > a,
.hero-caption {
  animation: reveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.logo {
  animation-delay: 0s;
}

.nav-item > a {
  animation-delay: 0.1s;
}

.site-nav > a:nth-of-type(1) {
  animation-delay: 0.2s;
}

.site-nav > a:nth-of-type(2) {
  animation-delay: 0.3s;
}

.hero-image {
  animation: fadeIn 0.6s ease-out 0.35s both;
}

.hero-caption {
  animation-delay: 0.6s;
}

@media (prefers-reduced-motion: reduce) {
  .logo,
  .nav-item > a,
  .site-nav > a,
  .hero-caption,
  .hero-image {
    animation: none;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    background: #000;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1rem;
    padding: 4rem 1.75rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 50;
    overflow-y: auto;
  }

  body.menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav a {
    font-size: 1.75rem;
  }

  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .submenu {
    position: static;
    padding: 0 0 0 1rem;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    text-align: left;
    transition: max-height 0.35s ease, opacity 0.25s ease, padding-top 0.35s ease, visibility 0.35s ease;
  }

  .nav-item.expanded .submenu {
    max-height: 500px;
    padding-top: 0.75rem;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .submenu li {
    margin-top: 0.5rem;
  }

  .submenu a {
    font-size: 1.125rem;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 1.25rem 1.25rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .site-main {
    padding: 1rem 1.25rem 2rem;
  }

  .hero-image {
    max-width: 300px;
  }
}
