:root {
  --bg: #080807;
  --panel: #12110f;
  --text: #f8f1e7;
  --muted: #b8aa97;
  --line: rgba(255, 241, 220, 0.14);
  --gold: #d9b16d;
  --shadow: rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(120deg, rgba(217, 177, 109, 0.08), transparent 34%),
    linear-gradient(240deg, rgba(123, 146, 126, 0.08), transparent 38%),
    linear-gradient(180deg, #0c0b09 0%, #080807 44%, #11100d 100%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button,
input {
  font: inherit;
}

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

.shell,
.home-shell {
  min-height: 100vh;
  padding: 28px clamp(18px, 4vw, 64px) 64px;
}

.topbar,
.hero,
.home-hero,
.gallery-section,
footer {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.topbar,
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}

.brand span {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand small,
.nav-links,
footer,
.muted {
  color: var(--muted);
}

.hero {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
}

.home-hero {
  min-height: 40vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: clamp(24px, 6vw, 76px);
  align-items: end;
  padding: clamp(70px, 10vw, 140px) 0 34px;
}

.eyebrow,
.section-kicker,
.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(4.1rem, 10vw, 9rem);
  line-height: 0.82;
  max-width: 7ch;
  margin-top: 18px;
}

.lede {
  color: #d7caba;
  max-width: 620px;
  margin-top: 28px;
  font-size: clamp(1rem, 1.8vw, 1.24rem);
  line-height: 1.72;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button,
.password-row button,
.download-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 18px;
  border: 1px solid var(--line);
  cursor: pointer;
}

.primary,
.password-row button {
  background: linear-gradient(135deg, #f2d99c, #af7a38);
  color: #18110a;
  border-color: transparent;
  font-weight: 800;
}

.secondary,
.download-link {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.stage {
  min-height: 560px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 17, 15, 0.72);
  box-shadow: 0 40px 110px var(--shadow);
  overflow: hidden;
}

.stage-grid {
  position: absolute;
  inset: 12%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(110px, 1fr);
  gap: 12px;
  transform: perspective(900px) rotateY(-12deg) rotateX(4deg);
  opacity: 0.76;
}

.stage-grid img,
.album-card img,
.home-gallery-card img,
.photo-tile img,
.album-intro img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-grid img {
  border-radius: 8px;
  border: 1px solid rgba(255, 241, 220, 0.18);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.3);
}

.stage-caption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 8, 7, 0.72);
  color: var(--muted);
  font-size: 0.88rem;
}

.home-note,
.password-card,
.album-intro {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 17, 15, 0.76);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.home-note {
  padding: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.home-gallery-list {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-gallery-card,
.album-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.25);
}

.home-gallery-card {
  min-height: 360px;
}

.home-gallery-card img,
.album-card img {
  position: absolute;
  inset: 0;
  filter: saturate(0.95) brightness(0.74);
  transition: transform 520ms ease, filter 520ms ease;
}

.home-gallery-card:hover img,
.album-card:hover img,
.album-card.active img {
  filter: saturate(1.05) brightness(0.88);
  transform: scale(1.045);
}

.shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 12%, rgba(8, 8, 7, 0.82)),
    linear-gradient(45deg, rgba(8, 8, 7, 0.58), transparent 62%);
}

.home-gallery-content,
.album-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 9px;
  padding: clamp(18px, 4vw, 30px);
}

.home-gallery-content {
  min-height: 360px;
}

.home-gallery-content small,
.album-card small,
.home-gallery-content em,
.album-card em {
  color: rgba(248, 241, 231, 0.74);
  font-style: normal;
}

.home-gallery-content small,
.album-card small {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold);
}

.home-gallery-content strong {
  color: var(--text);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
}

.gallery-section {
  padding: clamp(54px, 8vw, 100px) 0;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.gallery-header h2 {
  margin-top: 12px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
}

.privacy-pill {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.password-card {
  width: min(520px, 100%);
  margin: 34px auto 0;
  padding: clamp(22px, 5vw, 34px);
}

.password-card p,
.password-card label {
  color: var(--muted);
}

.password-card label {
  display: block;
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: 0.86rem;
  font-weight: 700;
}

.password-row {
  display: flex;
  gap: 10px;
}

.password-row input {
  min-width: 0;
  flex: 1;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 16px;
}

.error {
  margin-top: 12px;
  color: #ffb4a9 !important;
}

.locked [data-gallery-content] {
  display: none;
}

.unlocked [data-password-card] {
  display: none;
}

.album-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.album-card {
  min-height: 220px;
  text-align: left;
  cursor: pointer;
}

.album-card.active {
  border-color: rgba(217, 177, 109, 0.72);
}

.album-card-content {
  min-height: 220px;
}

.album-card strong {
  color: var(--text);
  font-size: clamp(1.12rem, 2vw, 1.55rem);
  line-height: 1.05;
}

.album-intro {
  margin-top: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 250px;
}

.album-intro div {
  padding: clamp(22px, 5vw, 42px);
  align-self: center;
}

.album-intro span {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.album-intro h3 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 0.92;
  margin: 10px 0 18px;
}

.album-intro p {
  color: var(--muted);
  line-height: 1.65;
}

.masonry {
  margin-top: 20px;
  columns: 3 260px;
  column-gap: 14px;
}

.photo-tile {
  width: 100%;
  display: block;
  position: relative;
  margin: 0 0 14px;
  border: 0;
  padding: 0;
  background: var(--panel);
  border-radius: 8px;
  overflow: hidden;
  break-inside: avoid;
  cursor: zoom-in;
}

.photo-tile img {
  aspect-ratio: 4 / 3;
  height: auto;
}

.photo-tile:nth-child(5n + 2) img,
.photo-tile:nth-child(5n + 4) img {
  aspect-ratio: 3 / 4;
}

.photo-tile span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  place-items: center;
  padding: 24px;
}

.lightbox.open {
  display: grid;
}

.lightbox figure {
  margin: 0;
  width: min(1100px, 100%);
  display: grid;
  gap: 12px;
}

.lightbox img {
  width: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
  border-radius: 8px;
}

.lightbox figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.lightbox button {
  position: fixed;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
}

.lightbox .close {
  top: 20px;
  right: 20px;
}

.lightbox .prev {
  left: 20px;
  top: 50%;
}

.lightbox .next {
  right: 20px;
  top: 50%;
}

footer {
  min-height: 110px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

footer div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero,
  .home-hero,
  .gallery-header,
  .album-intro,
  footer {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .stage {
    min-height: 430px;
  }

  .home-gallery-list,
  .album-grid {
    grid-template-columns: 1fr;
  }

  .album-intro img {
    height: 260px;
  }
}

@media (max-width: 620px) {
  .shell,
  .home-shell {
    padding: 20px 18px 48px;
  }

  .nav-links {
    display: none;
  }

  .brand {
    flex-direction: column;
    gap: 2px;
  }

  h1 {
    font-size: clamp(3.3rem, 18vw, 5rem);
  }

  .stage {
    min-height: 330px;
  }

  .password-row,
  .lightbox figcaption {
    flex-direction: column;
    align-items: stretch;
  }

  .password-row button,
  .download-link {
    width: 100%;
  }

  .masonry {
    columns: 1;
  }

  .lightbox .prev,
  .lightbox .next {
    display: none;
  }
}
