:root {
  --navy: #041528;
  --navy-2: #0b1b36;
  --gold: #e0c070;
  --gold-2: #b89b56;
  --text: #f5f5f0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--navy);
  color: var(--text);
  overflow-x: hidden;
}

.deco-frame {
  position: relative;
  border-radius: 10px;
}

.deco-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(224, 192, 112, 0.42);
  border-radius: 10px;
  pointer-events: none;
  background: linear-gradient(var(--gold), var(--gold)) left 14px top 14px / 24px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left 14px top 14px / 2px 24px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right 14px top 14px / 24px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right 14px top 14px / 2px 24px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left 14px bottom 14px / 24px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) left 14px bottom 14px / 2px 24px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right 14px bottom 14px / 24px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) right 14px bottom 14px / 2px 24px no-repeat;
}

.deco-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(224, 192, 112, 0.16);
  border-radius: 8px;
  pointer-events: none;
}

.deco-panel-bg {
  background: radial-gradient(1200px 800px at 30% 20%, rgba(224, 192, 112, 0.09), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 55%),
    var(--navy);
}

.nav-link {
  position: relative;
  display: inline-block;
  transition: color 0.3s ease;
  font-family: "Marcellus SC", Cinzel, serif;
  color: rgba(224, 192, 112, 0.78);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 50%;
  background-color: var(--gold);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.content-section {
  display: none;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.content-section.active {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.content-section.exiting {
  opacity: 0;
  transform: translateY(10px) scale(0.99);
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.62);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 520px at 70% 42%, rgba(255, 255, 255, 0.05), transparent 55%);
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.hero-layer {
  position: absolute;
  inset: 0;
  padding: clamp(18px, 4vw, 48px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
}

.hero-brand {
  font-family: "Cinzel Decorative", Cinzel, serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.55);
  justify-self: end;
  transform: translateY(-6px);
  opacity: 0;
}

.hero-copy {
  align-self: center;
  justify-self: end;
  text-align: right;
  max-width: 860px;
  transform: translateY(18px);
  opacity: 0;
}

.slide.active .hero-brand {
  animation: heroIn 0.8s cubic-bezier(0.2, 0.9, 0.2, 1) 0.08s forwards;
}

.slide.active .hero-copy {
  animation: heroIn 0.9s cubic-bezier(0.2, 0.9, 0.2, 1) 0.16s forwards;
}

@keyframes heroIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-title {
  font-family: "Cinzel Decorative", Cinzel, serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.62);
  line-height: 1.05;
}

.hero-sub {
  font-family: Cinzel, serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(245, 245, 240, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(245, 215, 141, 0.95), rgba(184, 155, 86, 0.92));
  color: rgba(4, 21, 40, 0.98);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s ease, filter 0.2s ease;
}

.cta-pill:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.cta-pill:active {
  transform: translateY(0);
}

.round-nav {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(224, 192, 112, 0.7);
  background: rgba(4, 21, 40, 0.28);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.82);
  display: grid;
  place-items: center;
  padding: 18px;
}

.lightbox.hidden {
  display: none;
}

.lightbox-img {
  max-width: min(1100px, 96vw);
  max-height: 86vh;
  border-radius: 14px;
  border: 1px solid rgba(224, 192, 112, 0.4);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(224, 192, 112, 0.5);
  background: rgba(4, 21, 40, 0.55);
  color: rgba(224, 192, 112, 0.95);
  font-size: 28px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.lightbox-close:hover {
  border-color: rgba(224, 192, 112, 0.9);
}

.round-nav:hover {
  border-color: rgba(224, 192, 112, 0.95);
  background: rgba(4, 21, 40, 0.42);
  transform: scale(1.03);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(245, 215, 141, 0.92), rgba(224, 192, 112, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.28);
  color: rgba(4, 21, 40, 0.92);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.34);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(4, 21, 40, 0.08);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.feature-label {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
}

.project-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(224, 192, 112, 0.28);
  background: rgba(4, 21, 40, 0.35);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 192, 112, 0.6);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.project-media {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.8s ease;
}

.project-card:hover .project-media img {
  transform: scale(1.08);
}

.project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 21, 40, 0.18), rgba(4, 21, 40, 0.72));
}

.project-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  background: rgba(224, 192, 112, 0.92);
  color: rgba(4, 21, 40, 0.98);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--navy-2);
}

::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-2);
}

#mobile-menu-overlay {
  transition: opacity 0.3s ease;
}

#mobile-sidebar {
  transition: transform 0.3s ease-in-out;
}

@media (max-width: 1024px) {
  .feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hero-brand {
    justify-self: start;
  }

  .hero-copy {
    justify-self: start;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .slide,
  .content-section,
  .cta-pill,
  .round-nav,
  .feature-card,
  .project-card,
  .project-media img {
    transition: none !important;
    animation: none !important;
  }
}

