:root {
  --bg: #0b1020;
  --surface: #121a2b;
  --surface-soft: #18233a;
  --text: #f8f4ea;
  --muted: #a9b2c7;
  --gold: #d7aa45;
  --gold-soft: #f2d48a;
  --border: rgba(255, 255, 255, .12);
  --shadow: 0 24px 80px rgba(0, 0, 0, .35);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(215, 170, 69, .18), transparent 34rem),
    linear-gradient(180deg, #08101f 0%, var(--bg) 45%, #090d18 100%);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(8, 16, 31, .82);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  color: var(--text) !important;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: .03em;
}

.brand-mark {
  display: inline-grid;
  width: 2.45rem;
  height: 2.45rem;
  place-items: center;
  border: 1px solid rgba(215, 170, 69, .5);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(215, 170, 69, .1);
}

.navbar-toggler {
  border-color: var(--border);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 .15rem rgba(215, 170, 69, .35);
}

.navbar-nav .nav-link {
  color: var(--muted) !important;
  font-weight: 700;
  letter-spacing: .02em;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--gold-soft) !important;
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.95) brightness(.52);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(8, 16, 31, .35), rgba(8, 16, 31, .9)),
    radial-gradient(circle, rgba(215, 170, 69, .18), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding-block: 5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1rem;
  color: var(--gold-soft);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 0 auto 1rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 8vw, 6.8rem);
  font-weight: 700;
  line-height: .9;
}

.hero h1 span,
.page-hero h1 span {
  color: var(--gold-soft);
}

.hero p,
.page-hero p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  border-radius: 999px;
  font-weight: 800;
  padding: .82rem 1.35rem;
}

.btn-gold {
  color: #1a1204;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border-color: transparent;
}

.btn-gold:hover {
  color: #1a1204;
  filter: brightness(1.05);
}

.btn-glass {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .08);
}

.btn-glass:hover {
  color: var(--text);
  border-color: rgba(215, 170, 69, .45);
  background: rgba(215, 170, 69, .12);
}

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}

.section-muted {
  background: rgba(255, 255, 255, .03);
  border-block: 1px solid var(--border);
}

.section-heading {
  margin-bottom: 1.5rem;
  text-align: center;
}

.section-heading h2,
.feature-card h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
}

.feature-card {
  height: 100%;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03));
  box-shadow: var(--shadow);
}

.feature-card i {
  color: var(--gold);
  font-size: 2rem;
}

.feature-card p {
  color: var(--muted);
}

.page-hero {
  padding: clamp(4rem, 8vw, 7rem) 0 2rem;
  text-align: center;
}

.toolbar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, .05);
}

.toolbar label {
  display: grid;
  gap: .35rem;
  min-width: min(100%, 230px);
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
}

.form-control,
.form-select {
  color: var(--text);
  border-color: var(--border);
  background-color: #080f1d;
}

.form-control:focus,
.form-select:focus {
  color: var(--text);
  border-color: var(--gold);
  background-color: #080f1d;
  box-shadow: 0 0 0 .15rem rgba(215, 170, 69, .22);
}

.gallery-grid,
.video-grid {
  display: grid;
  gap: 1.25rem;
}

.gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.video-grid {
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}

.media-card,
.video-card {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}

.media-card:hover,
.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 170, 69, .45);
}

.media-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.media-meta,
.video-info {
  display: grid;
  gap: .35rem;
  padding: 1rem;
}

.media-meta strong,
.video-info strong {
  overflow: hidden;
  color: var(--text);
  font-size: .9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-meta small,
.video-info small {
  color: var(--muted);
}

.video-card video,
.video-frame video {
  width: 100%;
  display: block;
  background: #000;
}

.video-frame {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
}

.gallery-modal {
  color: var(--text);
  border: 1px solid var(--border);
  background: var(--surface);
}

.gallery-modal .modal-body {
  display: grid;
  min-height: 50vh;
  place-items: center;
  background: #050812;
}

.gallery-modal img {
  max-height: 78vh;
  object-fit: contain;
}

.empty-state {
  padding: 2rem;
  border: 1px dashed rgba(215, 170, 69, .5);
  border-radius: 1.25rem;
  color: var(--muted);
  text-align: center;
}

.site-footer {
  padding: 2rem 0;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(215, 170, 69, .22), transparent 30rem),
    radial-gradient(circle at 85% 80%, rgba(111, 88, 255, .16), transparent 28rem),
    linear-gradient(135deg, #070b15, #101827 48%, #080d19);
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
}

.auth-card {
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 2rem;
  background: rgba(12, 19, 34, .78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.auth-intro,
.auth-form {
  padding: clamp(2rem, 5vw, 4rem);
}

.auth-intro {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(180deg, rgba(215, 170, 69, .16), rgba(255, 255, 255, .03)),
    radial-gradient(circle at top right, rgba(242, 212, 138, .2), transparent 20rem);
}

.auth-intro h1 {
  margin: 1rem 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  line-height: .9;
}

.auth-intro h1 span {
  color: var(--gold-soft);
}

.auth-intro p,
.auth-form p,
.auth-note {
  color: var(--muted);
}

.auth-badges {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.auth-badges span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .55rem .8rem;
  border: 1px solid rgba(215, 170, 69, .35);
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(215, 170, 69, .08);
  font-size: .86rem;
  font-weight: 800;
}

.auth-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: rgba(8, 15, 29, .68);
}

.auth-form-header {
  margin-bottom: 1.5rem;
}

.auth-form h2 {
  margin-bottom: .35rem;
  font-weight: 800;
}

.auth-password-field {
  position: relative;
  margin-bottom: 1rem;
}

.auth-password-field i {
  position: absolute;
  top: 50%;
  left: 1rem;
  color: var(--gold);
  transform: translateY(-50%);
}

.auth-password-field .form-control {
  min-height: 3.25rem;
  padding-left: 2.75rem;
  border-radius: 1rem;
}

.auth-note {
  display: block;
  margin-top: 1rem;
  text-align: center;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(215, 170, 69, .45);
  border-radius: 999px;
}

@media (max-width: 575.98px) {
  input,
  select,
  textarea,
  button {
    font-size: 16px !important;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }

  .media-meta,
  .video-info {
    padding: .75rem;
  }
}

@media (max-width: 991.98px) {
  .auth-card {
    grid-template-columns: 1fr;
  }

  .auth-intro {
    text-align: center;
  }

  .auth-intro .brand-mark,
  .auth-intro .eyebrow,
  .auth-badges {
    justify-content: center;
    margin-inline: auto;
  }
}
