@font-face {
  font-family: "gmsj";
  src: url("https://use.typekit.net/af/9fade4/000000000000000077359975/30/l?subset_id=1&fvd=n4&v=3")
    format("woff2");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "gmsj";
  src: url("https://use.typekit.net/af/e0617b/000000000000000077359943/30/l?subset_id=1&fvd=n7&v=3")
    format("woff2");
  font-style: normal;
  font-weight: 700;
}

@font-face {
  font-family: "vcsm";
  src: url("https://use.typekit.net/af/efe4a5/00000000000000007735e609/30/l?subset_id=1&fvd=n4&v=3")
    format("woff2");
  font-style: normal;
  font-weight: 400;
}

:root {
  --bg: #0e0e0e;
  --text: #eaeaea;
  --muted: #888;
  --muted-soft: #6f6f6f;
  --card-bg: #151515;
  --overlay: rgba(8, 8, 8, 0.92);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "vcsm", "gmsj", "Inter", "Helvetica Neue", Arial, sans-serif;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
}

.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(circle, #ffffff 0.5px, transparent 0.5px);
  background-size: 3px 3px;
  z-index: 0;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  padding: 48px 30px;
  background: rgba(14, 14, 14, 0.98);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 50px;
  z-index: 10;
}

.sidebar-social-link {
  margin-top: auto;
  width: 18px;
  height: 18px;
  opacity: 0.78;
  transition: opacity 180ms ease;
}

.sidebar-social-link:hover {
  opacity: 1;
}

.sidebar-social-link img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-logo {
  width: 124px;
  height: auto;
  display: block;
  opacity: 0.92;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.nav-label {
  margin: 0 0 8px;
  color: var(--muted-soft);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  font-weight: 400;
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-home:hover,
.nav-home.is-active {
  color: var(--text);
}

.nav-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font: inherit;
  font-size: 1rem;
  padding: 0;
  cursor: pointer;
  transition: color 220ms ease, transform 220ms ease;
}

.nav-link:hover {
  color: var(--text);
  transform: translateX(2px);
}

.nav-link.is-active {
  color: var(--text);
}

.main-content {
  position: relative;
  z-index: 1;
  width: calc(100% - 248px);
  margin-left: 248px;
  padding: 40px 48px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-content-logo {
  display: none;
}

.mobile-content-logo img {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 auto 14px;
  opacity: 0.92;
}

.view-title {
  margin: 6px 0 30px;
  color: var(--text);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
  max-width: 1260px;
  transform: translateX(-124px);
}

.gallery {
  opacity: 1;
  transition: opacity 260ms ease;
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  transform: translateX(-124px);
  overflow-x: clip;
}

.site-footer {
  width: 100%;
  max-width: 1260px;
  transform: translateX(-124px);
  margin: auto auto 20px;
  padding-top: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #8f8f8f;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
}

.site-footer p {
  margin: 0;
}

.site-footer-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.site-footer-logo {
  width: 18px;
  height: 18px;
  opacity: 0.84;
}

.site-footer-instagram {
  width: 16px;
  height: 16px;
  opacity: 0.82;
  transition: opacity 180ms ease;
}

.site-footer-instagram:hover {
  opacity: 1;
}

.site-footer-instagram img {
  width: 100%;
  height: 100%;
  display: block;
}

.gallery.is-switching {
  opacity: 0.35;
}

.gallery-empty {
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.justified-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.justified-row {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}

.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
}

.media-frame.image-load-failed {
  background: #181818;
}

.media-frame.image-load-failed .gallery-image {
  opacity: 0;
}

.image-watermark {
  position: absolute;
  right: 10px;
  bottom: 8px;
  width: 38px;
  opacity: 0.16;
  pointer-events: none;
  mix-blend-mode: screen;
}

.image-watermark img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
  transition: transform 420ms ease, opacity 400ms ease;
  opacity: 0;
}

.gallery-image.is-loaded {
  opacity: 1;
}

.landing-item:hover .gallery-image {
  transform: scale(1.04);
}

.gallery-item {
  width: auto;
  margin: 0;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  animation: reveal 500ms ease forwards;
}

.gallery-item .media-frame {
  width: 100%;
  height: 100%;
}

.menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 20;
  border: 0;
  width: 46px;
  height: 40px;
  border-radius: 2px;
  background: rgba(17, 17, 17, 0.92);
  cursor: pointer;
  padding: 0 11px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  margin: 6px 0;
  transition: transform 220ms ease, opacity 220ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 260ms ease, visibility 260ms ease;
  z-index: 30;
}

body.lightbox-open .mobile-content-logo,
body.lightbox-open .brand-block,
body.lightbox-open .site-footer-logo {
  visibility: hidden;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-figure {
  margin: 0;
  width: min(92vw, 1400px);
  text-align: center;
  position: relative;
  z-index: 31;
}

.lightbox-image-wrap {
  position: relative;
  display: inline-block;
  max-width: 100%;
  max-height: 84vh;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 84vh;
  object-fit: contain;
  display: block;
}

.lightbox-watermark {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 68px;
  opacity: 0.14;
  pointer-events: none;
  mix-blend-mode: screen;
}

.lightbox-watermark img {
  display: block;
  width: 100%;
  height: auto;
}

.lightbox-figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lightbox-btn {
  position: absolute;
  border: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font-size: 2rem;
  padding: 10px;
  z-index: 40;
}

.lightbox-close {
  top: 16px;
  right: 22px;
  font-size: 2.2rem;
}

.lightbox-prev {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-item {
  position: relative;
  margin: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px);
  animation: reveal 500ms ease forwards;
}

.landing-item .media-frame {
  height: clamp(340px, 37vw, 560px);
}

.landing-item .gallery-image {
  height: 100%;
}

.landing-item .gallery-image-secondary {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.landing-item:hover .gallery-image-primary {
  opacity: 0;
}

.landing-item:hover .gallery-image-secondary {
  opacity: 1;
}

.landing-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, 0.62));
  pointer-events: none;
}

.landing-label {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 16px;
  z-index: 1;
  color: #f6f6f6;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.section-block {
  margin: 0 0 28px;
}

.section-block + .section-block {
  margin-top: 52px;
}

.section-title {
  margin: 0 0 12px;
  color: #a8a8a8;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-align: center;
}

.back-to-top {
  position: fixed;
  left: 50%;
  transform: translate(-50%, 6px);
  bottom: 16px;
  border: 0;
  background: transparent;
  color: #b9b9b9;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease, transform 220ms ease, color 220ms ease;
  z-index: 25;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.back-to-top:hover {
  color: #ececec;
}

@media (max-width: 1200px) {
  .justified-row {
    gap: 8px;
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 260ms ease;
    width: min(84vw, 300px);
  }

  .sidebar-social-link {
    margin-top: 16px;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }

  .main-content {
    width: 100%;
    margin-left: 0;
    padding: 68px 20px 24px;
  }

  .view-title,
  .gallery,
  .site-footer {
    transform: none;
  }

  .view-title {
    margin-bottom: 16px;
    font-size: 1.62rem;
  }

  .landing-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .justified-grid,
  .justified-row {
    gap: 8px;
  }
}

@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    overscroll-behavior-x: none;
  }

  .lightbox {
    background: rgba(8, 8, 8, 0.995);
  }

  .main-content {
    padding: 68px 24px 24px;
  }

  .mobile-content-logo {
    display: block;
  }

  .site-footer {
    justify-content: center;
    padding-right: 0;
  }

  .site-footer-instagram {
    position: static;
    transform: none;
  }

  .justified-row {
    flex-wrap: wrap;
  }

  .justified-row .gallery-item {
    max-width: 100%;
  }

  .landing-item .media-frame {
    height: min(70vw, 360px);
  }
}
