@font-face {
  font-family: "neofolia";
  src: url("font/neofolia.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --ink: #050608;
  --mist: #f4efe6;
  --champagne: #d9b76f;
  --ruby: #8b1f2d;
  --line: rgba(244, 239, 230, 0.12);
  --steel: rgba(244, 239, 230, 0.68);
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.46);
  --radius-box: 4px;
}

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

body {
  min-height: 100vh;
  padding: 16px clamp(14px, 4vw, 52px) 28px;
  color: var(--mist);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  background:
    linear-gradient(120deg, rgba(139, 31, 45, 0.18), transparent 35%),
    radial-gradient(circle at 82% 12%, rgba(217, 183, 111, 0.2), transparent 25%),
    linear-gradient(180deg, #050608 0%, #10141b 54%, #07080b 100%);
}

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

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

h1,
h2,
h3,
.brand-name {
  font-family: "neofolia", "Inter", sans-serif;
  font-weight: 500;
}

.topbar,
main,
.site-footer {
  width: min(1280px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 6, 8, 0.74);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.brand-name {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 3vw, 30px);
  color: var(--steel);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
  transition: color 0.25s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  transform: scaleX(0);
  background: var(--champagne);
  transition: transform 0.25s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  color: var(--mist);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(217, 183, 111, 0.85);
  border-radius: 4px;
  color: #100d08;
  background: linear-gradient(135deg, #f2d88c, #b78438);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.35s ease;
}

.nav-cta::before {
  content: "";
  position: absolute;
  inset: -1px;
  transform: translateX(-120%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transition: transform 0.75s cubic-bezier(0.19, 1, 0.22, 1);
}

.nav-cta:hover::before {
  transform: translateX(120%) skewX(-18deg);
}

.nav-cta:hover {
  transform: translateY(-2px);
}

main {
  padding: clamp(70px, 10vw, 130px) 0 60px;
}

.gallery-header {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(24px, 6vw, 80px);
  align-items: end;
  margin-bottom: clamp(32px, 6vw, 70px);
  opacity: 0;
  transform: translateY(34px);
  animation: grandEntrance 1.05s 0.16s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.gallery-subtitle {
  grid-column: 1 / -1;
  margin-bottom: -18px;
  color: var(--champagne);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.gallery-title {
  font-size: clamp(3.2rem, 8vw, 8.2rem);
  line-height: 0.92;
}

.gallery-description {
  color: var(--steel);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(240px, 24vw);
  grid-auto-flow: dense;
  gap: 14px;
  perspective: 1200px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #11151b;
  cursor: pointer;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.55s ease forwards;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  transform-style: preserve-3d;
  will-change: transform;
}

.gallery-item:nth-child(6n + 1),
.gallery-item:nth-child(11n + 4) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item:nth-child(1) { animation-delay: 0.04s; }
.gallery-item:nth-child(2) { animation-delay: 0.08s; }
.gallery-item:nth-child(3) { animation-delay: 0.12s; }
.gallery-item:nth-child(4) { animation-delay: 0.16s; }
.gallery-item:nth-child(5) { animation-delay: 0.2s; }
.gallery-item:nth-child(6) { animation-delay: 0.24s; }
.gallery-item:nth-child(n + 7) { animation-delay: 0.28s; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 1.25s cubic-bezier(0.19, 1, 0.22, 1), filter 0.7s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(5, 6, 8, 0.9));
  opacity: 0.92;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.16);
  filter: saturate(1.08) contrast(1.06);
}

.gallery-item:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 4px;
}

.overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 22px;
}

.overlay h3 {
  max-width: 92%;
  color: var(--mist);
  font-size: clamp(1.1rem, 2vw, 1.75rem);
  line-height: 1.05;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.19, 1, 0.22, 1);
}

.gallery-item:hover .overlay h3,
.gallery-item:focus-visible .overlay h3 {
  opacity: 1;
  transform: translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 6, 8, 0.94);
  backdrop-filter: blur(14px);
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: min(92vw, 1180px);
  max-height: 88vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--mist);
  background: rgba(244, 239, 230, 0.06);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.site-footer {
  padding: 24px 0 8px;
  border-top: 1px solid var(--line);
  color: var(--steel);
  text-align: center;
  font-size: 0.92rem;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes galleryReveal {
  from {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateY(34px);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}

@keyframes grandEntrance {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    padding-inline: 14px;
  }

  .topbar {
    position: relative;
    top: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 14px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 10px 16px;
    font-size: 0.7rem;
  }

  .nav-cta {
    width: 100%;
  }

  main {
    padding-top: 70px;
  }

  .gallery-header {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 230px;
    gap: 10px;
  }

  .gallery-item:nth-child(n) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-item:nth-child(5n + 1) {
    grid-column: span 2;
  }

  .overlay {
    padding: 16px;
  }
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item:nth-child(n) {
    grid-column: span 1;
  }
}

/* Sharp luxury corner pass */
.topbar,
.nav-cta,
.gallery-item,
.lightbox img,
.lightbox-close {
  border-radius: var(--radius-box);
}
