:root {
  --bg: #0a0908;
  --bg-soft: #12110f;
  --text: #f4efe6;
  --muted: #b9aea0;
  --gold: #d4c0a1;
  --gold-bright: #ead9bb;
  --ink: #1a1612;
  --line: rgba(212, 192, 161, 0.28);
  --serif: "Cormorant Garamond", Palatino, "Palatino Linotype", "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: var(--text);
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  z-index: 0;
}

@media (max-width: 799px) {
  .hero > img { object-position: center 16%; }
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 9, 8, 0.35) 0%, rgba(10, 9, 8, 0.06) 24%, rgba(10, 9, 8, 0.12) 48%, rgba(10, 9, 8, 0.72) 78%, rgba(10, 9, 8, 0.94) 100%),
    linear-gradient(90deg, rgba(10, 9, 8, 0.22) 0%, transparent 30%, transparent 75%, rgba(10, 9, 8, 0.2) 100%);
  pointer-events: none;
}

.hero-top,
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.5rem;
}

.wordmark {
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.social {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.social a {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  color: var(--gold-bright);
  background: rgba(10, 9, 8, 0.4);
  border: 1px solid rgba(212, 192, 161, 0.45);
  border-radius: 50%;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.social a:hover,
.social a:focus-visible {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.social svg { width: 0.95rem; height: 0.95rem; display: block; }

.hero-content {
  padding: 0 1.5rem 3rem;
  max-width: 48rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 9.2vw, 6.6rem);
  line-height: 0.88;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.15rem;
  text-shadow: 0 6px 28px rgba(10, 9, 8, 0.45);
}

.lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  line-height: 1.45;
  color: var(--gold-bright);
  max-width: 26rem;
  margin-bottom: 1.7rem;
}

.channels {
  display: flex;
  gap: 0.55rem;
  align-items: stretch;
  max-width: 22.5rem;
}

.channels a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 0.25rem 0.75rem;
  color: var(--gold-bright);
  text-decoration: none;
  border: 1px solid rgba(232, 217, 187, 0.55);
  border-radius: 0.2rem;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.channels a:hover,
.channels a:focus-visible {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}

.channels svg { width: 1.15rem; height: 1.15rem; display: block; }

.scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin-top: 1.25rem;
  color: var(--gold-bright);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  width: fit-content;
  transition: color 0.3s ease;
}
.scroll-hint:hover,
.scroll-hint:focus-visible { color: var(--gold); }
.scroll-hint svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  animation: hint-bounce 2.1s ease-in-out infinite;
}
@keyframes hint-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.85; }
  50% { transform: translateY(0.4rem); opacity: 1; }
}

@media (max-width: 799px) {
  .hero-content { padding-bottom: 1.25rem; }
  .scroll-hint {
    margin-top: 0.95rem;
    width: 100%;
    max-width: 22.5rem;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
  }
}

#telegram { scroll-margin-top: 0.5rem; }


.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.95rem 2.3rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.btn:hover,
.btn:focus-visible { background: var(--gold-bright); }

.btn-lg {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  padding: 1.45rem 4.4rem;
  min-width: 16.5rem;
  text-align: center;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding: 2.5rem 0.7rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.shot {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--bg-soft);
  min-height: 0;
}

.shot img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 28%;
  transition: transform 0.8s ease, filter 0.8s ease;
}

.shot:hover img,
.shot:focus-visible img {
  transform: scale(1.04);
  filter: brightness(1.06);
}

/* Mobile/tablet: first image full-width so the remaining 12 close in even pairs */
.gallery .shot:nth-child(1) { grid-column: 1 / -1; }
.gallery .shot:nth-child(5) img { object-position: center 80%; }

/* Desktop editorial grid (6 columns = 3 logical cols, plus a 2×2 close) */
@media (min-width: 900px) {
  .hero-top { padding: 2rem 3.2rem; }
  .hero-content { padding: 0 3.2rem 3.6rem; max-width: 54rem; }
  .hero h1 { letter-spacing: 0.2em; }

  .channels {
    max-width: none;
    gap: 0.85rem;
  }
  .channels a {
    flex: 0 0 auto;
    flex-direction: row;
    gap: 0.6rem;
    padding: 0.85rem 1.35rem;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
  }
  .channels svg { width: 1.05rem; height: 1.05rem; }

  .gallery {
    grid-template-columns: repeat(6, 1fr);
    gap: 0.9rem;
    padding: 6.5rem 2rem 2.5rem;
  }

  .gallery .shot:nth-child(1),
  .gallery .shot:nth-child(8) {
    position: relative;
    min-height: 0;
  }
  .gallery .shot:nth-child(1) {
    grid-column: 1 / 5;
    grid-row: span 2;
  }
  .gallery .shot:nth-child(2) { grid-column: 5 / 7; }
  .gallery .shot:nth-child(3) { grid-column: 5 / 7; }
  .gallery .shot:nth-child(4) { grid-column: 1 / 3; }
  .gallery .shot:nth-child(5) { grid-column: 3 / 5; }
  .gallery .shot:nth-child(6) { grid-column: 5 / 7; }
  .gallery .shot:nth-child(7) { grid-column: 1 / 3; }
  .gallery .shot:nth-child(8) {
    grid-column: 3 / 7;
    grid-row: span 2;
  }
  .gallery .shot:nth-child(9) { grid-column: 1 / 3; }
  .gallery .shot:nth-child(10) { grid-column: 1 / 4; }
  .gallery .shot:nth-child(11) { grid-column: 4 / 7; }
  .gallery .shot:nth-child(12) { grid-column: 1 / 4; }
  .gallery .shot:nth-child(13) { grid-column: 4 / 7; }

  .gallery .shot:nth-child(1) img,
  .gallery .shot:nth-child(8) img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center 28%;
  }
}

@media (min-width: 1200px) {
  .hero-content { padding-bottom: 4.2rem; }
}

/* ---------- Invite / footer ---------- */
.invite {
  position: relative;
  overflow: hidden;
  text-align: center;
  min-height: 34rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 5.5rem;
  margin: 3.5rem 0 0;
}

.invite-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.invite-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}

.invite-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 9, 8, 0.58) 0%, rgba(10, 9, 8, 0.7) 42%, rgba(10, 9, 8, 0.88) 100%);
}

.invite-inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.invite .label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.35rem;
}

.invite .label::before {
  content: "";
  display: block;
  width: 2.4rem;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 1.25rem;
  opacity: 0.8;
}

.invite .lead {
  margin: 0 auto 2.6rem;
  color: var(--gold-bright);
  font-size: clamp(1.4rem, 2.5vw, 2.05rem);
  max-width: 32rem;
  line-height: 1.4;
}

.site-foot {
  text-align: center;
  padding: 3rem 1.5rem 3.4rem;
  background: var(--bg);
}

.site-foot p {
  font-family: var(--serif);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (min-width: 900px) {
  .invite {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 38rem;
    padding: 0;
    margin: 5rem 0 0;
    text-align: left;
    align-items: stretch;
  }
  .invite-visual {
    position: relative;
    min-height: 38rem;
  }
  .invite-visual::after {
    background: linear-gradient(90deg, rgba(10, 9, 8, 0) 55%, rgba(10, 9, 8, 0.55) 100%);
  }
  .invite-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 5.5rem 5rem 5.5rem 4.6rem;
    max-width: none;
    background: var(--bg);
  }
  .invite .label::before {
    margin: 0 0 1.35rem;
  }
  .invite .lead {
    margin: 0 0 2.7rem;
    max-width: 32rem;
  }
}

@media (max-width: 899px) {
  .btn-lg {
    width: min(20rem, 100%);
    padding: 1.3rem 2rem;
  }
}

/* ---------- Motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s ease, transform 0.9s ease;
  transition-delay: var(--d, 0ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .shot img { transition: none; }
  .scroll-hint svg { animation: none; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(8, 7, 6, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5rem 4rem;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(92vw, 920px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}
.lightbox-close {
  position: absolute;
  top: 0.7rem;
  right: 1.1rem;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--gold-bright);
  padding: 0.4rem;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 1;
  color: var(--gold-bright);
  padding: 0.5rem 0.8rem;
  opacity: 0.8;
}
.lightbox-nav:hover { opacity: 1; }
.lightbox-nav.prev { left: 0.3rem; }
.lightbox-nav.next { right: 0.3rem; }

body.lb-open { overflow: hidden; }


/* ---------- Wide / ultrawide: split hero + larger gallery ---------- */
@media (min-width: 1600px) {
  .gallery {
    max-width: 1680px;
    gap: 1rem;
    padding: 7rem 2.5rem 3rem;
  }
}

@media (min-width: 2000px) {
  .gallery {
    max-width: 1800px;
    gap: 1.15rem;
    padding: 7.5rem 3rem 3.5rem;
  }
  .invite {
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
  }
  .invite-inner {
    margin: 0 auto;
    max-width: 36rem;
    padding-left: 3.5rem;
    padding-right: 3.5rem;
  }
}

/* Shared split-hero rules: 50/50 typography | full-height portrait, no face crop */
@media (min-aspect-ratio: 2/1) {
  .hero { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: var(--bg); }
  .hero > img {
    position: relative;
    inset: auto;
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center 18%;
    z-index: 0;
  }
  .hero-shade { display: none; }
  .hero-content {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: stretch;
    max-width: none;
    padding: 5.5rem clamp(2.5rem, 5vw, 6.5rem);
  }
  .hero h1 {
    font-size: clamp(4rem, 5.4vw, 7.2rem);
    text-shadow: none;
    letter-spacing: 0.2em;
  }
  .hero .lead { max-width: 30rem; font-size: clamp(1.25rem, 1.15vw, 1.65rem); }
  .hero-top { padding: 2rem 3rem; }
}

html.uw .hero { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; background: var(--bg); }
html.uw .hero > img {
  position: relative;
  inset: auto;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 18%;
  z-index: 0;
}
html.uw .hero-shade { display: none; }
html.uw .hero-content {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  justify-self: stretch;
  max-width: none;
  padding: 5.5rem clamp(2.5rem, 5vw, 6.5rem);
}
html.uw .hero h1 {
  font-size: clamp(4rem, 5.4vw, 7.2rem);
  text-shadow: none;
  letter-spacing: 0.2em;
}
html.uw .hero .lead { max-width: 30rem; font-size: clamp(1.25rem, 1.15vw, 1.65rem); }
html.uw .hero-top { padding: 2rem 3rem; }


@media (min-aspect-ratio: 2/1) and (min-width: 3000px) {
  .hero-content { padding: 6rem 5.5rem 6rem 8.5vw; }
  .hero h1 { font-size: clamp(5rem, 4.6vw, 8.4rem); }
  .hero .lead { max-width: 34rem; }
}
@media (min-width: 3000px) {
  html.uw .hero-content { padding: 6rem 5.5rem 6rem 8.5vw; }
  html.uw .hero h1 { font-size: clamp(5rem, 4.6vw, 8.4rem); }
  html.uw .hero .lead { max-width: 34rem; }
}

/* Screenshot helper: keep hero at a real viewport height when the window is tall */
html.shot .hero {
  min-height: var(--shot-vh, 900px);
  height: var(--shot-vh, 900px);
}
