:root {
  color-scheme: dark;
  --cream: #f5efe4;
  --muted: rgba(245, 239, 228, 0.7);
  --faint: rgba(245, 239, 228, 0.2);
  --line: rgba(245, 239, 228, 0.22);
  --glass: rgba(19, 18, 16, 0.14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #181613;
}

body {
  color: var(--cream);
  font-family: var(--sans);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-shell {
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  position: relative;
}

.scene,
.scene__image,
.scene__wash,
.scene__grain {
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.scene {
  background: #211c17;
  overflow: hidden;
  z-index: -1;
}

.scene__image {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.035);
  transition: opacity 1.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 1.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 1.2s ease;
}

.scene__image--about {
  background-image: url("Cover-wide.png");
}

.scene__image--gallery {
  background-image: url("Gallery-cover-wide.png");
  filter: saturate(0.95);
  opacity: 0;
  transform: scale(1.1);
}

.scene__image--contacts {
  background-image: url("Contacts-cover-wide.png");
  filter: saturate(0.92);
  opacity: 0;
  transform: scale(1.08);
}

.scene__wash {
  background:
    linear-gradient(90deg, rgba(9, 8, 8, 0.82) 0%, rgba(9, 8, 8, 0.52) 24%, rgba(9, 8, 8, 0.15) 52%, rgba(9, 8, 8, 0.1) 100%),
    linear-gradient(0deg, rgba(9, 8, 7, 0.52) 0%, transparent 34%, rgba(9, 8, 7, 0.14) 100%);
}

.scene__grain {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.12;
}

[data-view="gallery"] .scene__image--about,
[data-view="contacts"] .scene__image--about {
  opacity: 0;
  transform: scale(1.08);
}

[data-view="gallery"] .scene__image--gallery {
  opacity: 1;
}

[data-view="gallery"] .scene__image--gallery {
  transform: scale(1.035);
}

[data-view="contacts"] .scene__image--contacts {
  filter: saturate(0.72) brightness(0.78);
  opacity: 1;
  transform: scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .scene__image,
  .panel {
    transition-duration: 0.01ms;
  }

}

.sidebar {
  align-items: flex-start;
  backdrop-filter: blur(13px);
  background: linear-gradient(90deg, rgba(16, 14, 13, 0.34), rgba(16, 14, 13, 0.08));
  border-right: 1px solid rgba(245, 239, 228, 0.13);
  display: flex;
  flex-direction: column;
  height: 100svh;
  justify-content: space-between;
  left: 0;
  padding: 42px 38px 34px;
  position: fixed;
  top: 0;
  width: 246px;
  z-index: 3;
}

.brand {
  color: var(--cream);
  display: grid;
  grid-template-columns: 42px auto;
  text-decoration: none;
}

.brand__mark {
  border: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 35px;
  grid-row: span 2;
  height: 40px;
  line-height: 35px;
  text-align: center;
  width: 32px;
}

.brand__name {
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: 0.08em;
  line-height: 0.95;
  text-transform: uppercase;
}

.brand__role,
.sidebar__footer,
.eyebrow,
.contact-note {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.23em;
  line-height: 1.7;
  text-transform: uppercase;
}

.brand__role {
  padding-top: 6px;
}

.main-nav {
  display: grid;
  gap: 10px;
  width: 100%;
}

.nav-link {
  align-items: center;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid transparent;
  color: rgba(245, 239, 228, 0.65);
  cursor: pointer;
  display: flex;
  font: 500 11px/1 var(--sans);
  gap: 13px;
  letter-spacing: 0.2em;
  padding: 16px 14px;
  position: relative;
  text-align: left;
  text-transform: uppercase;
  transition: background 280ms ease, border-color 280ms ease, color 280ms ease,
    transform 280ms ease;
  width: 100%;
}

.nav-link::after {
  background: var(--cream);
  content: "";
  height: 1px;
  position: absolute;
  right: 13px;
  top: 50%;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 280ms ease;
  width: 18px;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--line);
  color: var(--cream);
  outline: none;
  transform: translateX(5px);
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.nav-link__index {
  color: rgba(245, 239, 228, 0.43);
  font-size: 8px;
}

.sidebar__footer {
  margin: 0;
}

.content {
  margin-left: 246px;
  min-height: 100svh;
  position: relative;
}

.panel {
  bottom: 11%;
  left: clamp(46px, 7vw, 118px);
  max-width: 590px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translateY(26px);
  transition: opacity 680ms ease, transform 680ms ease;
}

.panel.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 350ms;
}

.eyebrow {
  align-items: center;
  display: flex;
  gap: 14px;
  margin: 0 0 18px;
}

.eyebrow::before {
  background: var(--cream);
  content: "";
  height: 1px;
  width: 38px;
}

h1,
h2 {
  font-family: var(--serif);
  font-size: clamp(72px, 8vw, 128px);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 0.76;
  margin: 0 0 26px;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.28);
}

h1 em,
h2 em {
  font-weight: 400;
}

.lede {
  color: rgba(245, 239, 228, 0.8);
  font: 400 14px/1.75 var(--sans);
  margin: 0 0 26px 54px;
  max-width: 420px;
}

.text-link,
.email-link {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--cream);
  cursor: pointer;
  display: inline-flex;
  font: 700 10px/1 var(--sans);
  gap: 12px;
  letter-spacing: 0.2em;
  margin-left: 54px;
  padding: 0 0 9px;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 260ms ease, gap 260ms ease;
}

.panel-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-left: 54px;
}

.text-link--quiet {
  border-bottom-color: transparent;
  color: rgba(245, 239, 228, 0.58);
  font-size: 9px;
  margin-left: 0;
}

.collection-trigger {
  align-items: center;
  backdrop-filter: blur(12px);
  background: rgba(245, 239, 228, 0.1);
  border: 1px solid rgba(245, 239, 228, 0.42);
  color: var(--cream);
  cursor: pointer;
  display: inline-flex;
  font: 700 10px/1 var(--sans);
  gap: 14px;
  letter-spacing: 0.18em;
  overflow: hidden;
  padding: 14px 17px;
  position: relative;
  text-transform: uppercase;
  transition: background 320ms ease, border-color 320ms ease, transform 320ms ease;
}

.collection-trigger::before {
  background: linear-gradient(90deg, transparent, rgba(245, 239, 228, 0.16), transparent);
  content: "";
  height: 100%;
  left: -100%;
  position: absolute;
  top: 0;
  transition: left 620ms ease;
  width: 80%;
}

.collection-trigger:hover,
.collection-trigger:focus-visible {
  background: rgba(245, 239, 228, 0.17);
  border-color: rgba(245, 239, 228, 0.76);
  outline: none;
  transform: translateY(-3px);
}

.collection-trigger:hover::before,
.collection-trigger:focus-visible::before {
  left: 130%;
}

.collection-trigger__icon {
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(3, 4px);
}

.collection-trigger__icon i {
  border: 1px solid rgba(245, 239, 228, 0.86);
  display: block;
  height: 13px;
}

.collection-trigger__icon i:nth-child(2) {
  height: 17px;
  margin-top: -2px;
}

.collection-trigger__arrow {
  font-size: 16px;
  line-height: 0;
  transition: transform 320ms ease;
}

.collection-trigger:hover .collection-trigger__arrow,
.collection-trigger:focus-visible .collection-trigger__arrow {
  transform: translateX(4px);
}

[data-view="gallery"] .collection-trigger {
  animation: collection-invite 700ms 900ms ease both;
}

@keyframes collection-invite {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.text-link--quiet:hover {
  color: var(--cream);
}

.text-link:hover,
.email-link:hover {
  border-color: var(--cream);
  gap: 18px;
}

.email-link {
  font-size: 12px;
  text-transform: lowercase;
}

.contact-note {
  margin: 20px 0 0 54px;
}

.corner-note {
  align-items: center;
  bottom: 35px;
  display: flex;
  gap: 14px;
  position: fixed;
  right: 34px;
}

.corner-note span {
  color: rgba(245, 239, 228, 0.45);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.corner-note i {
  background: var(--cream);
  height: 1px;
  opacity: 0.6;
  width: 44px;
}

.collection {
  background: rgba(12, 11, 10, 0.97);
  inset: 0;
  opacity: 0;
  overflow-y: auto;
  padding: 42px 44px 54px 290px;
  pointer-events: none;
  position: fixed;
  transform: translateY(24px);
  transition: opacity 520ms ease, transform 520ms ease;
  z-index: 4;
}

.collection.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.collection__bar {
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 22px;
}

.collection__bar .eyebrow {
  margin-bottom: 12px;
}

.collection__bar h2 {
  font-size: clamp(54px, 6vw, 86px);
  line-height: 0.76;
  margin: 0;
}

.collection__close,
.lightbox__close {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--cream);
  cursor: pointer;
  display: flex;
  font: 700 9px/1 var(--sans);
  gap: 13px;
  letter-spacing: 0.2em;
  padding: 12px 0;
  text-transform: uppercase;
}

.collection__close i,
.lightbox__close i {
  height: 22px;
  position: relative;
  width: 22px;
}

.collection__close i::before,
.collection__close i::after,
.lightbox__close i::before,
.lightbox__close i::after {
  background: var(--cream);
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  top: 10px;
  transform: rotate(45deg);
  width: 22px;
}

.collection__close i::after,
.lightbox__close i::after {
  transform: rotate(-45deg);
}

.collection__grid {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(280px, 42vh));
}

.album-list {
  display: grid;
  gap: clamp(28px, 4vw, 60px);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  padding: 28px 14px 34px;
}

.album-stack {
  background: transparent;
  border: 0;
  color: var(--cream);
  cursor: pointer;
  min-height: 390px;
  padding: 0 10px 20px;
  text-align: left;
}

.album-stack__photos {
  display: block;
  height: 315px;
  margin: 0 auto 25px;
  max-width: 270px;
  position: relative;
}

.album-stack__photo {
  border: 1px solid rgba(245, 239, 228, 0.24);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.34);
  height: 100%;
  left: 0;
  object-fit: cover;
  position: absolute;
  top: 0;
  transition: transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1), filter 420ms ease;
  width: 100%;
}

.album-stack__photo--1 {
  transform: rotate(-1deg);
  z-index: 3;
}

.album-stack__photo--2 {
  transform: rotate(5deg) translate(7px, -3px);
  z-index: 2;
}

.album-stack__photo--3 {
  transform: rotate(-6deg) translate(-8px, 4px);
  z-index: 1;
}

.album-stack:hover .album-stack__photo--1,
.album-stack:focus-visible .album-stack__photo--1 {
  transform: rotate(0) translateY(-8px);
}

.album-stack:hover .album-stack__photo--2,
.album-stack:focus-visible .album-stack__photo--2 {
  transform: rotate(9deg) translate(16px, -6px);
}

.album-stack:hover .album-stack__photo--3,
.album-stack:focus-visible .album-stack__photo--3 {
  transform: rotate(-10deg) translate(-17px, 5px);
}

.album-stack__meta {
  border-top: 1px solid var(--line);
  display: block;
  padding-top: 14px;
}

.album-stack__meta strong {
  display: block;
  font: 500 30px/0.9 var(--serif);
  letter-spacing: -0.03em;
}

.album-stack__meta small,
.collection-status,
.album-detail__description {
  color: var(--muted);
  display: block;
  font-size: 9px;
  letter-spacing: 0.2em;
  line-height: 1.7;
  margin-top: 9px;
  text-transform: uppercase;
}

.collection-status {
  padding-top: 22px;
}

.album-detail[hidden],
.album-list[hidden] {
  display: none;
}

.album-back {
  background: transparent;
  border: 0;
  color: var(--cream);
  cursor: pointer;
  font: 700 9px/1 var(--sans);
  letter-spacing: 0.18em;
  margin-bottom: 15px;
  padding: 4px 0;
  text-transform: uppercase;
}

.album-detail__description {
  margin: 0 0 22px;
  max-width: 560px;
}

.collection-card {
  background: #161514;
  border: 0;
  cursor: zoom-in;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.collection-card--feature {
  grid-column: span 3;
}

.collection-card--portrait {
  grid-column: span 1;
}

.collection-card--wide {
  grid-column: 2 / span 4;
}

.collection-card img {
  filter: grayscale(1);
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: filter 420ms ease, opacity 420ms ease, transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
  width: 100%;
}

.collection-card:hover img,
.collection-card:focus-visible img {
  filter: grayscale(1) contrast(1.04);
  opacity: 1;
  transform: scale(1.045);
}

.collection-card span {
  bottom: 13px;
  color: rgba(245, 239, 228, 0.7);
  font-size: 9px;
  letter-spacing: 0.2em;
  position: absolute;
  right: 14px;
}

.lightbox {
  align-items: center;
  background: rgba(8, 8, 7, 0.96);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 360ms ease;
  z-index: 6;
}

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

.lightbox__close {
  position: absolute;
  right: 32px;
  top: 24px;
}

.lightbox__figure {
  margin: 0;
  max-height: 88vh;
  max-width: min(82vw, 1240px);
  position: relative;
}

.lightbox__image {
  display: block;
  max-height: 84vh;
  max-width: 100%;
}

.lightbox__caption {
  color: rgba(245, 239, 228, 0.62);
  font-size: 9px;
  letter-spacing: 0.22em;
  padding-top: 12px;
  text-align: center;
  text-transform: uppercase;
}

.lightbox__arrow {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream);
  cursor: pointer;
  font-size: 20px;
  height: 50px;
  position: absolute;
  transition: background 260ms ease;
  width: 50px;
}

.lightbox__arrow:hover {
  background: rgba(245, 239, 228, 0.12);
}

.lightbox__arrow--prev {
  left: 32px;
}

.lightbox__arrow--next {
  right: 32px;
}

body.has-overlay {
  overflow: hidden;
}

@media (max-width: 760px) {
  .sidebar {
    align-items: center;
    background: rgba(16, 14, 13, 0.25);
    border-bottom: 1px solid rgba(245, 239, 228, 0.13);
    border-right: 0;
    flex-direction: row;
    height: auto;
    padding: 16px 17px;
    width: 100%;
  }

  .brand {
    grid-template-columns: 29px auto;
  }

  .brand__mark {
    font-size: 27px;
    height: 31px;
    line-height: 27px;
    width: 25px;
  }

  .brand__name {
    font-size: 18px;
  }

  .brand__role {
    font-size: 6px;
    letter-spacing: 0.18em;
    padding-top: 4px;
  }

  .main-nav {
    display: flex;
    gap: 3px;
    margin-left: auto;
    width: auto;
  }

  .nav-link {
    font-size: 8px;
    gap: 0;
    letter-spacing: 0.12em;
    padding: 11px 8px;
  }

  .nav-link::after,
  .nav-link__index,
  .sidebar__footer,
  .corner-note {
    display: none;
  }

  .nav-link:hover,
  .nav-link:focus-visible,
  .nav-link.is-active {
    transform: none;
  }

  .content {
    margin-left: 0;
  }

  .panel {
    bottom: 7%;
    left: 20px;
    max-width: calc(100vw - 40px);
  }

  h1,
  h2 {
    font-size: clamp(67px, 20vw, 94px);
    margin-bottom: 20px;
  }

  .lede {
    font-size: 13px;
    margin-left: 0;
    max-width: 345px;
  }

  .text-link,
  .email-link,
  .contact-note {
    margin-left: 0;
  }

  .panel-actions {
    gap: 14px;
    margin-left: 0;
  }

  .collection-trigger {
    font-size: 9px;
    padding: 13px 14px;
  }

  .collection {
    padding: 92px 16px 28px;
  }

  .collection__bar {
    align-items: center;
  }

  .collection__bar h2 {
    font-size: 54px;
  }

  .collection__grid {
    display: block;
  }

  .album-list {
    display: block;
    padding: 12px 8px 28px;
  }

  .album-stack {
    display: block;
    margin: 0 auto 38px;
    max-width: 290px;
    width: 100%;
  }

  .collection-card {
    display: block;
    height: 54vh;
    margin-bottom: 12px;
    width: 100%;
  }

  .collection-card--feature,
  .collection-card--wide {
    height: 36vh;
  }

  .lightbox__arrow {
    bottom: 24px;
    height: 44px;
    width: 44px;
  }

  .lightbox__arrow--prev {
    left: calc(50% - 52px);
  }

  .lightbox__arrow--next {
    right: calc(50% - 52px);
  }

  .lightbox__close {
    right: 18px;
    top: 80px;
  }

  .lightbox__figure {
    max-width: 92vw;
  }

  .scene__image {
    background-position: 58% center;
  }

  .scene__image--about {
    background-image: url("Cover.jpg");
  }

  .scene__image--gallery {
    background-image: url("Gallery-cover.png");
  }

  .scene__wash {
    background: linear-gradient(0deg, rgba(9, 8, 7, 0.84) 0%, rgba(9, 8, 7, 0.26) 65%, rgba(9, 8, 7, 0.35) 100%);
  }
}
