:root {
  --black: #0b0b0b;
  --charcoal: #171717;
  --panel: #111111;
  --gold: #d4af37;
  --gold-soft: rgba(212, 175, 55, 0.22);
  --white: #f8f5ec;
  --muted: #b9b3a5;
  --blue: #28b8ff;
  --purple: #9d62ff;
  --line: rgba(212, 175, 55, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --header-h: 5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background:
    linear-gradient(115deg, rgba(212, 175, 55, 0.08), transparent 28%),
    linear-gradient(245deg, rgba(40, 184, 255, 0.08), transparent 32%),
    linear-gradient(130deg, #050505, #101010 48%, #050505);
}

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

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

#particleCanvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.65;
  pointer-events: none;
}

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  width: 100%;
  height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 7, 7, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  height: 3.4rem;
  width: auto;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.45));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 2rem);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.nav-links a {
  transition: color 180ms ease;
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 220ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

/* ── Mobile nav toggle ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.3rem;
  background: none;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 0.35rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 280ms ease, opacity 280ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */
.hero {
  position: relative;
  display: grid;
  min-height: 92vh;
  align-items: end;
  overflow: hidden;
  padding: 8rem clamp(1rem, 5vw, 5rem) 4rem;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.48) 55%, rgba(0, 0, 0, 0.7) 100%),
    url("https://images.unsplash.com/photo-1516035069371-29a1b244cc32?auto=format&fit=crop&w=1800&q=85") center / cover;
  transform: scale(1.02);
}

.hero::after {
  position: absolute;
  right: clamp(1rem, 8vw, 8rem);
  bottom: 9rem;
  width: clamp(14rem, 32vw, 29rem);
  aspect-ratio: 1;
  content: "";
  border: 1px solid rgba(212, 175, 55, 0.38);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(212, 175, 55, 0.22), transparent 42%),
    conic-gradient(from 90deg, transparent, rgba(212, 175, 55, 0.42), transparent, rgba(40, 184, 255, 0.32), transparent);
  filter: blur(0.2px);
  opacity: 0.82;
  animation: lensRotate 18s linear infinite;
}

.hero-content {
  max-width: 56rem;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: "Cinzel", serif;
  font-weight: 700;
  line-height: 1.05;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: 0.04em;
  text-shadow: 0 0 32px rgba(212, 175, 55, 0.18);
}

.hero-brand {
  font-size: clamp(3rem, 6vw, 5.5rem);
  letter-spacing: 0.06em;
  max-width: 100%;
}

h2 {
  max-width: 15ch;
  font-size: clamp(2rem, 4.5vw, 4.5rem);
}

h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 36rem;
  margin: 0.8rem 0 0;
  color: var(--gold);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 0.45rem;
  padding: 0.85rem 1.25rem;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 28px var(--gold-soft);
}

.button.primary {
  color: #080808;
  background: var(--gold);
}

.button.secondary {
  color: var(--gold);
  background: rgba(0, 0, 0, 0.32);
}

/* ── Sections ── */
.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.about,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.8fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.section-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow) {
  max-width: 42rem;
  color: var(--muted);
}

.section-heading {
  margin-bottom: 2rem;
}

/* ── Stats ── */
.stats {
  display: grid;
  gap: 1rem;
}

.stats div,
.service-card,
.quote-panel,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: rgba(17, 17, 17, 0.78);
  box-shadow: var(--shadow);
}

.stats div {
  padding: 1.4rem;
}

.stats strong {
  display: block;
  color: var(--gold);
  font-family: "Cinzel", serif;
  font-size: 2.4rem;
  line-height: 1;
}

.stats span {
  color: var(--muted);
  font-weight: 600;
}

/* ── Services ── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.service-card {
  min-height: 15rem;
  padding: 1.4rem;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.7);
  box-shadow: 0 24px 70px rgba(212, 175, 55, 0.1);
}

.service-card svg {
  width: 2rem;
  height: 2rem;
  margin-bottom: 1.2rem;
  color: var(--gold);
}

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

/* ── Projects ── */
.projects {
  background: rgba(255, 255, 255, 0.025);
}

.project-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 1rem;
}

.project-card {
  position: relative;
  min-height: 26rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.5rem;
  background: var(--panel);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.08);
  transition: transform 450ms ease;
}

.project-card:hover img {
  transform: scale(1.05);
}

.project-card div {
  position: absolute;
  inset: auto 0 0;
  padding: 1.4rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
}

.project-card span {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* ── Testimonials ── */
.testimonials {
  display: grid;
  gap: 1.5rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.quote-panel {
  padding: clamp(1.2rem, 3vw, 2rem);
}

.quote-text {
  max-width: 48rem;
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  line-height: 1.4;
}

.quote-author {
  display: inline-block;
  margin-top: 1rem;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
}

.client-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.client-strip span {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 0.65rem 1rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 700;
}

/* ── Contact ── */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.contact-info a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 180ms ease;
}

.contact-info a:hover {
  color: var(--gold);
}

.contact-info svg {
  width: 1rem;
  height: 1rem;
  color: var(--gold);
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 0.35rem;
  padding: 0.9rem 1rem;
  color: var(--white);
  background: rgba(0, 0, 0, 0.42);
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  outline: none;
  box-shadow: 0 0 0 3px var(--gold-soft);
}

.form-status {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  min-height: 1.2em;
}

/* ── Footer ── */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1.5rem 2rem;
  padding: 2.5rem clamp(1rem, 5vw, 5rem);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  height: 3rem;
  width: auto;
  mix-blend-mode: lighten;
  filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.35));
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-nav a {
  transition: color 180ms ease;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  color: var(--gold);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.footer-socials a:hover {
  background: var(--gold-soft);
  box-shadow: 0 0 16px var(--gold-soft);
}

.footer-socials svg {
  width: 1rem;
  height: 1rem;
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.2rem;
}

/* ── Back to top ── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: rgba(11, 11, 11, 0.85);
  color: var(--gold);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease, transform 180ms ease, box-shadow 180ms ease;
  backdrop-filter: blur(8px);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--gold-soft);
}

.back-to-top svg {
  width: 1.2rem;
  height: 1.2rem;
}

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Animations ── */
@keyframes lensRotate {
  to {
    transform: rotate(360deg);
  }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 0;
    background: rgba(7, 7, 7, 0.97);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    backdrop-filter: blur(18px);
    transform: translateY(-110%);
    transition: transform 300ms ease;
    pointer-events: none;
  }

  .nav-links.open {
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    padding: 0.9rem clamp(1rem, 4vw, 4rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1rem;
  }

  .nav-links a::after {
    display: none;
  }

  .hero {
    min-height: 90vh;
  }

  .hero::after {
    right: -4rem;
    bottom: 7rem;
    opacity: 0.42;
  }

  .about,
  .contact,
  .service-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: 21rem;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: clamp(3rem, 18vw, 4.8rem);
  }

  .hero {
    padding-top: 7rem;
  }

  .button {
    width: 100%;
  }

  .section {
    padding-inline: 1rem;
  }

  .back-to-top {
    bottom: 1.2rem;
    right: 1.2rem;
  }
}
