:root {
  color-scheme: dark;
  --bg: #050608;
  --panel: #11100f;
  --panel-2: #1a1714;
  --text: #fff7e0;
  --muted: #d4c3af;
  --line: rgba(252, 222, 32, 0.18);
  --gold: #fcde20;
  --ember: #df3f2c;
  --rust: #a0380e;
  --ink: #000105;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--text);
  transition: background 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 6, 8, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(252, 222, 32, 0.45);
  background: var(--ink);
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  color: rgba(244, 239, 226, 0.82);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
}

nav a {
  border-bottom: 1px solid transparent;
  padding: 8px 0;
}

nav a:hover {
  border-color: var(--ember);
  color: var(--text);
}

.hero {
  position: relative;
  display: grid;
  min-height: 92svh;
  overflow: hidden;
  background-color: var(--ink);
  background-position: center;
  background-size: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 17, 16, 0.88) 0%, rgba(13, 17, 16, 0.46) 48%, rgba(13, 17, 16, 0.2) 100%),
    linear-gradient(0deg, rgba(5, 6, 8, 0.9) 0%, rgba(5, 6, 8, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  align-self: end;
  width: min(860px, 100%);
  padding: 160px clamp(20px, 6vw, 80px) 124px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 13vw, 10rem);
  font-weight: 500;
  line-height: 0.86;
}

h2 {
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 0.98;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-copy {
  max-width: 620px;
  color: rgba(244, 239, 226, 0.82);
  font-size: clamp(1rem, 2vw, 1.25rem);
}

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

.button,
.file-picker span {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 239, 226, 0.24);
  padding: 0 20px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.button-primary,
.file-picker span {
  background: var(--gold);
  color: var(--ink);
}

.button-secondary {
  background: rgba(223, 63, 44, 0.2);
  color: var(--text);
}

.hero-meta {
  position: absolute;
  right: clamp(20px, 6vw, 80px);
  bottom: 32px;
  z-index: 1;
  display: flex;
  gap: 10px;
  color: rgba(244, 239, 226, 0.7);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-meta span,
.service-list span {
  border: 1px solid rgba(244, 239, 226, 0.16);
  background: rgba(13, 17, 16, 0.46);
  padding: 10px 12px;
}

.band {
  padding: clamp(68px, 9vw, 120px) clamp(20px, 6vw, 80px);
}

.intro {
  background: var(--panel);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
}

.intro-grid p {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  background: #101513;
}

.stats-strip div {
  padding: 34px clamp(18px, 5vw, 64px);
  border-right: 1px solid var(--line);
}

.stats-strip div:last-child {
  border-right: 0;
}

.stats-strip strong {
  display: block;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 500;
  line-height: 1;
}

.stats-strip span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  gap: 32px;
  align-items: end;
  margin-bottom: 34px;
}

.gallery-section {
  background: var(--bg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.photo-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: var(--panel-2);
  border: 1px solid rgba(252, 222, 32, 0.1);
}

.photo-card:nth-child(6n + 1),
.photo-card:nth-child(6n + 4) {
  grid-column: span 7;
}

.photo-card:nth-child(6n + 2),
.photo-card:nth-child(6n + 3),
.photo-card:nth-child(6n + 5),
.photo-card:nth-child(6n + 6) {
  grid-column: span 5;
}

.photo-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 420ms ease;
}

.photo-card:hover img {
  transform: scale(1.045);
}

.photo-caption,
.video-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 58px 20px 20px;
  background: linear-gradient(0deg, rgba(13, 17, 16, 0.9), rgba(13, 17, 16, 0));
}

.photo-caption h3 {
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -12px 0 26px;
}

.filter-bar button {
  min-height: 42px;
  border: 1px solid rgba(252, 222, 32, 0.25);
  background: rgba(255, 247, 224, 0.06);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0 14px;
  text-transform: uppercase;
}

.filter-bar button:hover,
.filter-bar button.is-active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.photo-caption p,
.video-caption p {
  margin: 0;
  color: rgba(244, 239, 226, 0.72);
  font-size: 0.9rem;
}

.upload-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin: 0 clamp(20px, 6vw, 80px);
  border-block: 1px solid var(--line);
  padding: 46px 0;
}

.upload-copy {
  max-width: 760px;
}

.file-picker {
  cursor: pointer;
}

.file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.video-section {
  background: var(--panel);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.video-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: #0f1412;
  border: 1px solid rgba(252, 222, 32, 0.1);
}

.video-card video,
.video-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.video-empty {
  display: grid;
  min-height: inherit;
  place-items: center;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(223, 63, 44, 0.28), rgba(252, 222, 32, 0.16)),
    var(--panel);
  color: rgba(244, 239, 226, 0.76);
  text-align: center;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding: clamp(68px, 9vw, 120px) clamp(20px, 6vw, 80px);
  background: #08090b;
}

.about-image {
  min-height: 620px;
  background-color: var(--panel-2);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  border: 1px solid rgba(252, 222, 32, 0.14);
}

.about-copy {
  max-width: 680px;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  color: rgba(244, 239, 226, 0.76);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 32px;
  padding: clamp(68px, 9vw, 120px) clamp(20px, 6vw, 80px);
  background:
    linear-gradient(135deg, var(--gold), #f78c20 54%, var(--ember));
  color: var(--ink);
}

.contact-section p,
.contact-section .eyebrow {
  color: rgba(23, 19, 10, 0.72);
}

.contact-links {
  display: grid;
  gap: 10px;
  align-content: center;
}

.contact-links a {
  border: 1px solid rgba(0, 1, 5, 0.24);
  padding: 16px;
  font-weight: 800;
}

.email-link {
  background: rgba(255, 247, 224, 0.42);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.social-grid a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  background: rgba(0, 1, 5, 0.08);
}

.social-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 900;
  line-height: 1;
}

.social-youtube,
.social-instagram {
  position: relative;
}

.social-youtube::before {
  content: "";
  width: 0;
  height: 0;
  border-block: 6px solid transparent;
  border-left: 10px solid currentColor;
  transform: translateX(1px);
}

.social-instagram::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.social-instagram::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 6px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 6vw, 80px);
  border-top: 1px solid var(--line);
  color: rgba(244, 239, 226, 0.62);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
  }

  nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 16px;
  }

  .hero-content {
    padding-top: 132px;
    padding-bottom: 112px;
  }

  .hero-meta {
    left: 20px;
    right: 20px;
    flex-wrap: wrap;
  }

  .intro-grid,
  .section-heading,
  .upload-panel,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .stats-strip,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .stats-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .photo-card,
  .photo-card:nth-child(n) {
    grid-column: 1 / -1;
    min-height: 330px;
  }

  .about-image {
    min-height: 430px;
  }

  footer {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    position: absolute;
    display: grid;
  }

  nav {
    justify-content: flex-start;
    font-size: 0.74rem;
  }

    .brand-logo {
    width: 36px;
    height: 36px;
  }

  .hero {
    min-height: 94svh;
  }

  .button,
  .file-picker span {
    width: 100%;
  }

  .hero-actions {
    display: grid;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }
}

body.modal-open {
  overflow: hidden;
}

.filter-stack {
  display: grid;
  gap: 18px;
  margin-bottom: 30px;
}

.filter-label {
  margin: 0 0 8px;
  color: rgba(255, 247, 224, 0.62);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.filter-bar {
  margin: 0;
}

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

.photo-card,
.photo-card:nth-child(n) {
  grid-column: auto;
  min-height: 0;
}

.photo-open {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: var(--panel-2);
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.photo-card img {
  min-height: 0;
}

.pano-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  border: 1px solid rgba(0, 1, 5, 0.3);
  background: var(--gold);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  padding: 6px 8px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag-row span {
  border: 1px solid rgba(252, 222, 32, 0.24);
  background: rgba(0, 1, 5, 0.38);
  color: rgba(255, 247, 224, 0.82);
  font-size: 0.64rem;
  font-weight: 900;
  padding: 5px 7px;
  text-transform: uppercase;
}

.empty-gallery {
  grid-column: 1 / -1;
  border: 1px solid rgba(252, 222, 32, 0.16);
  background: var(--panel);
  padding: clamp(28px, 6vw, 60px);
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
}

.detail-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 1, 5, 0.78);
  backdrop-filter: blur(12px);
}

.detail-box {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  overflow: hidden;
  border: 1px solid rgba(252, 222, 32, 0.24);
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: translateY(22px) scale(0.96);
  transition: transform 260ms ease;
}

.detail-modal.has-panorama .detail-box {
  height: min(900px, calc(100svh - 32px));
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  grid-template-rows: minmax(0, 1fr);
  column-gap: 0;
}

.detail-modal.is-open .detail-box {
  transform: translateY(0) scale(1);
}

.detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(252, 222, 32, 0.28);
  background: rgba(0, 1, 5, 0.74);
  color: var(--text);
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.detail-media {
  display: grid;
  position: relative;
  min-width: 0;
  min-height: 620px;
  overflow: hidden;
  background: var(--ink);
}

.detail-media.is-photo .detail-media-backdrop {
  position: absolute;
  inset: -18px;
  width: calc(100% + 36px);
  height: calc(100% + 36px);
  max-width: none;
  object-fit: cover;
  filter: blur(18px) brightness(0.42);
}

.detail-media.is-panorama {
  min-height: 0;
}

.detail-media .detail-image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: calc(100svh - 32px);
  object-fit: contain;
}

.detail-copy {
  display: grid;
  min-width: 0;
  min-height: 0;
  align-content: start;
  gap: 16px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(24px, 4vw, 40px);
}

.detail-modal.has-panorama .detail-copy {
  gap: 10px;
  padding: 22px 24px;
}

.detail-copy h2 {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.detail-modal.has-panorama .detail-copy h2,
.detail-modal.has-panorama .detail-copy > p {
  margin-bottom: 0;
}

.detail-modal.has-panorama .detail-copy > p:not(.eyebrow) {
  line-height: 1.45;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-meta span {
  border: 1px solid rgba(252, 222, 32, 0.24);
  background: rgba(255, 247, 224, 0.06);
  color: rgba(255, 247, 224, 0.8);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 9px 10px;
  text-transform: uppercase;
}

.detail-modal.has-panorama .detail-meta span {
  padding: 6px 8px;
}

.detail-tags span {
  background: rgba(223, 63, 44, 0.18);
}

.detail-modal.has-panorama .detail-tags span {
  padding: 4px 6px;
}

.pano-viewer {
  width: 100%;
  height: 100%;
  min-height: 0;
  background: var(--ink);
}

.pano-viewer .pnlm-container {
  background-color: var(--ink);
  font-family: inherit;
}

.pano-viewer .pnlm-controls {
  border-color: rgba(252, 222, 32, 0.55);
}

.pano-viewer .pnlm-load-button,
.pano-viewer .pnlm-load-box,
.pano-viewer .pnlm-info-box {
  background: rgba(0, 1, 5, 0.82);
  border: 1px solid rgba(252, 222, 32, 0.28);
  color: var(--text);
}

.pano-viewer .pnlm-load-button p,
.pano-viewer .pnlm-load-box p,
.pano-viewer .pnlm-info-box p {
  color: var(--text);
}

.pano-viewer:focus {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.pano-viewer.is-fallback {
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--text);
  text-align: center;
}

.pano-viewer.is-fallback p {
  color: var(--text);
}

.pnlm-orientation-button {
  display: none;
}

.pano-viewer {
  cursor: grab;
  touch-action: none;
}

.pano-viewer:active {
  cursor: grabbing;
}

.pano-controls {
  border-block: 1px solid rgba(252, 222, 32, 0.14);
  padding-block: 14px;
}

.detail-modal.has-panorama .pano-controls {
  padding-block: 8px;
}

.pano-controls button,
.share-panel button,
.quick-share a {
  min-height: 42px;
  border: 1px solid rgba(252, 222, 32, 0.24);
  background: rgba(255, 247, 224, 0.06);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 0 12px;
  text-transform: uppercase;
}

.pano-controls p {
  margin: 10px 0 0;
  font-size: 0.9rem;
}

.detail-modal.has-panorama .pano-controls p {
  margin-top: 6px;
  line-height: 1.4;
}

.share-panel {
  display: grid;
  gap: 10px;
}

.detail-modal.has-panorama .share-panel {
  gap: 6px;
}

.quick-share {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.detail-modal.has-panorama .quick-share {
  gap: 6px;
}

.quick-share a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .detail-box {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .detail-modal.has-panorama .detail-box {
    height: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .detail-media,
  .pano-viewer {
    min-height: 54svh;
    height: 54svh;
  }

  .detail-media img {
    max-height: 62svh;
  }
}

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

  .detail-box {
    width: 100vw;
    max-height: 100svh;
    border-inline: 0;
  }

  .quick-share {
    grid-template-columns: 1fr;
  }
}
