:root {
  --black: #0b0b0b;
  --black-soft: #111013;
  --gold: #d4af37;
  --gold-soft: #f1d783;
  --white: #ffffff;
  --muted: #b8b1aa;
  --line: rgba(212, 175, 55, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Montserrat", "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: rgba(212, 175, 55, 0.45);
  color: var(--white);
}

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

a,
button,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}

.font-display {
  font-family: "Playfair Display", Georgia, serif;
}

.site-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background:
    linear-gradient(118deg, transparent 0%, transparent 36%, rgba(73, 44, 112, 0.14) 46%, rgba(212, 175, 55, 0.08) 52%, transparent 65%, transparent 100%),
    radial-gradient(ellipse at 18% -8%, rgba(212, 175, 55, 0.12), transparent 30rem),
    radial-gradient(ellipse at 86% 18%, rgba(78, 45, 120, 0.16), transparent 28rem),
    linear-gradient(135deg, #0b0b0b 0%, #151017 54%, #0b0b0b 100%);
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.site-shell::before {
  z-index: 0;
  opacity: 0.72;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520'%3E%3Cg fill='%23FFFFFF' opacity='.5'%3E%3Ccircle cx='44' cy='68' r='1.1'/%3E%3Ccircle cx='128' cy='42' r='.8'/%3E%3Ccircle cx='220' cy='96' r='1.2'/%3E%3Ccircle cx='344' cy='60' r='.9'/%3E%3Ccircle cx='472' cy='120' r='1.1'/%3E%3Ccircle cx='82' cy='220' r='.9'/%3E%3Ccircle cx='168' cy='300' r='1.3'/%3E%3Ccircle cx='286' cy='254' r='.8'/%3E%3Ccircle cx='424' cy='342' r='1.2'/%3E%3Ccircle cx='364' cy='456' r='.9'/%3E%3Ccircle cx='34' cy='438' r='1.1'/%3E%3C/g%3E%3Cg fill='%23D4AF37' opacity='.42'%3E%3Ccircle cx='392' cy='174' r='1.2'/%3E%3Ccircle cx='236' cy='392' r='1'/%3E%3Ccircle cx='486' cy='430' r='1'/%3E%3C/g%3E%3Cpath d='M44 68 128 42 220 96M286 254 392 174 472 120M168 300 236 392 364 456 486 430' fill='none' stroke='%23D4AF37' stroke-opacity='.13' stroke-width='1'/%3E%3C/svg%3E"),
    radial-gradient(1px 1px at 12% 28%, rgba(255, 255, 255, 0.42), transparent 60%),
    radial-gradient(1px 1px at 76% 46%, rgba(212, 175, 55, 0.36), transparent 60%),
    radial-gradient(1px 1px at 42% 82%, rgba(255, 255, 255, 0.32), transparent 60%);
  background-position: center top, 0 0, 0 0, 0 0;
  background-size: 520px 520px, 240px 240px, 310px 310px, 380px 380px;
}

.site-shell::after {
  z-index: 0;
  opacity: 0.42;
  background:
    linear-gradient(126deg, transparent 8%, rgba(46, 30, 76, 0.05) 30%, rgba(92, 58, 132, 0.18) 44%, rgba(212, 175, 55, 0.09) 52%, rgba(255, 255, 255, 0.035) 58%, transparent 76%),
    repeating-linear-gradient(118deg, transparent 0 42px, rgba(212, 175, 55, 0.035) 43px, transparent 45px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 88%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 13%, #000 88%, transparent 100%);
}

.site-shell > header,
.site-shell > main,
.site-shell > footer {
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(11, 11, 11, 0.92), rgba(11, 11, 11, 0.42));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.site-header.is-scrolled {
  background: rgba(11, 11, 11, 0.92);
  border-color: rgba(212, 175, 55, 0.18);
}

.brand-mark {
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(212, 175, 55, 0.72);
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  letter-spacing: 0;
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.74);
  transition: color 180ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.45rem;
  height: 1px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--gold);
  transition: transform 220ms ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--white);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.mobile-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 260ms ease, opacity 220ms ease;
}

.mobile-panel.is-open {
  max-height: 26rem;
  opacity: 1;
}

.hero-home {
  background-image:
    linear-gradient(90deg, rgba(11, 11, 11, 0.9), rgba(11, 11, 11, 0.48) 48%, rgba(11, 11, 11, 0.22)),
    linear-gradient(180deg, rgba(11, 11, 11, 0.28), rgba(11, 11, 11, 0.95)),
    url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=2200&q=82");
}

.hero-about {
  background-image:
    linear-gradient(90deg, rgba(11, 11, 11, 0.86), rgba(11, 11, 11, 0.34)),
    linear-gradient(180deg, rgba(11, 11, 11, 0.22), rgba(11, 11, 11, 0.96)),
    url("https://images.unsplash.com/photo-1492691527719-9d1e07e534b4?auto=format&fit=crop&w=2200&q=82");
}

.hero-gallery {
  background-image:
    linear-gradient(90deg, rgba(11, 11, 11, 0.86), rgba(11, 11, 11, 0.36)),
    linear-gradient(180deg, rgba(11, 11, 11, 0.2), rgba(11, 11, 11, 0.94)),
    url("https://images.unsplash.com/photo-1519225421980-715cb0215aed?auto=format&fit=crop&w=2200&q=82");
}

.hero-services {
  background-image:
    linear-gradient(90deg, rgba(11, 11, 11, 0.88), rgba(11, 11, 11, 0.38)),
    linear-gradient(180deg, rgba(11, 11, 11, 0.22), rgba(11, 11, 11, 0.96)),
    url("https://images.unsplash.com/photo-1520854221256-17451cc331bf?auto=format&fit=crop&w=2200&q=82");
}

.hero-contact {
  background-image:
    linear-gradient(90deg, rgba(11, 11, 11, 0.88), rgba(11, 11, 11, 0.42)),
    linear-gradient(180deg, rgba(11, 11, 11, 0.2), rgba(11, 11, 11, 0.96)),
    url("https://images.unsplash.com/photo-1487412720507-e7ab37603c6f?auto=format&fit=crop&w=2200&q=82");
}

.cinematic-hero {
  min-height: 94svh;
  background-position: center;
  background-size: cover;
  background-attachment: scroll;
}

@media (max-width: 768px) {
  .cinematic-hero {
    min-height: 88svh;
    background-attachment: scroll;
  }
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--gold-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--gold);
}

.gold-text {
  color: var(--gold);
}

.text-gradient {
  background: linear-gradient(100deg, #ffffff 0%, #f7e7ab 54%, #d4af37 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.reveal-text {
  opacity: 0;
  transform: translateY(22px);
  animation: revealUp 620ms ease forwards;
}

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

.lux-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid rgba(212, 175, 55, 0.78);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.94), rgba(241, 215, 131, 0.9));
  color: #12100b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  box-shadow: 0 18px 48px rgba(212, 175, 55, 0.18);
}

.lux-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(212, 175, 55, 0.28);
}

.ghost-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.ghost-button:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.74);
  background: rgba(212, 175, 55, 0.08);
}

.glass-panel {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

main > section:not(:first-child) {
  content-visibility: auto;
  contain-intrinsic-size: 1px 820px;
}

.lux-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.lux-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.42);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.12), rgba(255, 255, 255, 0.035));
}

.image-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(36, 20, 36, 0.42)),
    #16120f;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.005);
  transition: transform 360ms ease;
}

.image-frame:hover img,
.gallery-card:hover img,
.service-card:hover img {
  transform: scale(1.045);
}

.masonry-grid {
  columns: 1;
  column-gap: 1rem;
}

@media (min-width: 640px) {
  .masonry-grid {
    columns: 2;
  }
}

@media (min-width: 1024px) {
  .masonry-grid {
    columns: 3;
  }
}

.gallery-card {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(36, 20, 36, 0.42)),
    #13100e;
  cursor: zoom-in;
}

.gallery-card img {
  width: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
  opacity: 0.9;
}

.gallery-caption {
  position: absolute;
  z-index: 1;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
}

.filter-btn {
  min-height: 2.6rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.filter-btn:hover,
.filter-btn.is-active {
  color: var(--black);
  border-color: var(--gold);
  background: var(--gold);
}

.service-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035));
  transition: transform 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.44);
}

.service-card img {
  width: 100%;
  height: 15rem;
  object-fit: cover;
  transition: transform 360ms ease;
}

.input-field {
  min-height: 3.25rem;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.055);
  color: var(--white);
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.input-field:focus {
  border-color: rgba(212, 175, 55, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.input-field::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.map-frame {
  min-height: 24rem;
  width: 100%;
  border: 0;
  filter: grayscale(1) invert(0.92) contrast(0.92);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-height: 82vh;
  width: auto;
  max-width: min(92vw, 74rem);
  object-fit: contain;
  border: 1px solid rgba(212, 175, 55, 0.32);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65);
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  display: none;
  width: 1px;
  height: 5rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
}

.hero-scroll::after {
  content: "";
  position: absolute;
  inset: 0;
  height: 45%;
  background: var(--gold);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@media (min-width: 768px) {
  .hero-scroll {
    display: block;
  }
}

@keyframes scrollLine {
  0% {
    transform: translateY(-120%);
  }

  100% {
    transform: translateY(230%);
  }
}

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

  .cinematic-hero {
    background-attachment: scroll;
  }

  .reveal-text {
    opacity: 1;
    transform: none;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .site-shell::before {
    opacity: 0.58;
    background-size: 420px 420px, 260px 260px, 320px 320px, 380px 380px;
  }

  .site-shell::after {
    opacity: 0.25;
  }
}

@media (max-width: 768px) {
  html {
    scroll-behavior: auto;
  }

  .image-frame:hover img,
  .gallery-card:hover img,
  .service-card:hover img,
  .lux-card:hover,
  .service-card:hover,
  .lux-button:hover,
  .ghost-button:hover {
    transform: none;
  }

  .marquee-track {
    animation-duration: 48s;
  }

  .site-header,
  .glass-panel {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
