:root {
  --bg: #0b0b10;
  --bg-soft: #12131b;
  --panel: rgba(255,255,255,0.06);
  --panel-strong: rgba(255,255,255,0.1);
  --stroke: rgba(255,255,255,0.12);
  --text: #f6f2ef;
  --muted: #c7c0bc;
  --primary: #e5b38a;
  --primary-strong: #ffceaa;
  --accent: #8f5cff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --radius-sm: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(143, 92, 255, 0.18), transparent 32%),
    radial-gradient(circle at 80% 20%, rgba(229, 179, 138, 0.14), transparent 28%),
    linear-gradient(180deg, #0b0b10 0%, #12131b 100%);
  z-index: -1;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.section {
  padding: 92px 0;
}

.alt-section {
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(10, 10, 14, 0.72);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

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

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #130f0c;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: var(--shadow);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong { font-size: 1rem; }
.brand-text small { color: var(--muted); font-size: 0.82rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  color: var(--muted);
  font-size: 0.96rem;
  transition: 0.2s ease;
}

.nav a:hover,
.nav a.active { color: var(--text); }

.nav-cta {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.09);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 48px;
  height: 48px;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: transform .25s ease, opacity .25s ease;
}

.hero {
  padding-top: 52px;
}

.hero-grid,
.two-col,
.footer-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 42px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--primary-strong);
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0 0 16px;
  line-height: 1.08;
}

h1, h2 {
  font-family: 'Playfair Display', serif;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  max-width: 10ch;
  margin-top: 18px;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  max-width: 14ch;
}

.hero-copy p,
.section-head p,
.info-card p,
.service-card p,
.project-content p,
.video-card p,
.footer p,
.two-col p,
.cta-panel p {
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #130f0c;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 16px 40px rgba(229, 179, 138, 0.24);
}

.btn-secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

.hero-stats,
.feature-list,
.cards-grid,
.video-grid {
  display: grid;
  gap: 18px;
}

.hero-stats {
  grid-template-columns: repeat(3, 1fr);
}

.stat-card,
.info-card,
.service-card,
.project-card,
.video-card,
.contact-card,
.cta-panel,
.feature-list article {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 18px;
}

.stat-card strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-visual {
  position: relative;
  min-height: 680px;
}

.hero-card,
.hero-floating {
  position: absolute;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: var(--shadow);
}

.hero-card img,
.hero-floating img,
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

.hero-main-photo {
  inset: 24px 0 72px 60px;
}

.hero-floating-a {
  top: 0;
  left: 0;
  width: 220px;
  height: 300px;
}

.hero-floating-b {
  right: 0;
  bottom: 0;
  width: 230px;
  height: 260px;
}

.feature-list {
  grid-template-columns: 1fr;
  margin-top: 28px;
}

.feature-list article,
.info-card,
.service-card,
.project-content,
.video-card,
.contact-card,
.cta-panel {
  padding: 24px;
}

.feature-list strong,
.service-card h3,
.project-card h3,
.video-card h3 {
  display: block;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.info-panel {
  display: grid;
  gap: 18px;
}

.highlight-card {
  background: linear-gradient(160deg, rgba(143,92,255,0.16), rgba(229,179,138,0.12));
}

.info-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.card-tag {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--primary-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-head {
  margin-bottom: 28px;
  text-align: center;
}

.section-head.left {
  text-align: left;
}

.section-head h2 { max-width: 13ch; margin-inline: auto; }
.section-head.left h2 { margin-inline: 0; }
.section-head p { max-width: 760px; margin: 0 auto; }
.section-head.left p { margin-left: 0; }

.projects-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.project-card {
  overflow: hidden;
}

.featured-project img {
  height: 320px;
  object-fit: cover;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  color: var(--muted);
  font-size: .86rem;
}

.service-grid {
  grid-template-columns: repeat(4, 1fr);
}

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

.gallery-item {
  border: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
  border-radius: 24px;
  min-height: 240px;
  cursor: pointer;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.08);
}

.gallery-item.large { grid-column: span 6; grid-row: span 2; min-height: 520px; }
.gallery-item.wide { grid-column: span 6; }
.gallery-item:not(.large):not(.wide) { grid-column: span 3; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item img { transition: transform .35s ease; }

.video-grid {
  grid-template-columns: repeat(2, 1fr);
}

.video-frame {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.09);
  margin-bottom: 16px;
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer {
  padding-top: 80px;
}

.contact-card {
  display: grid;
  gap: 14px;
}

.contact-card a {
  color: var(--primary-strong);
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 28px;
  margin-top: 28px;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 7, 11, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 60;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: min(1200px, 100%);
  max-height: 86vh;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.12);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  color: var(--text);
  background: rgba(255,255,255,0.1);
  cursor: pointer;
}

@media (max-width: 1100px) {
  .hero-grid,
  .two-col,
  .footer-grid,
  .projects-grid,
  .service-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-visual { min-height: 580px; }

  .hero-main-photo { inset: 30px 40px 60px; }
  .hero-floating-a { left: 0; }
  .hero-floating-b { right: 16px; }

  .gallery-item.large,
  .gallery-item.wide,
  .gallery-item:not(.large):not(.wide) {
    grid-column: span 6;
  }

  .cta-panel { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 820px) {
  .menu-toggle { display: block; }

  .nav {
    position: fixed;
    top: 78px;
    left: 16px;
    right: 16px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(10,10,14,0.96);
    border: 1px solid rgba(255,255,255,0.08);
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    transform: scale(.96);
    opacity: 0;
    pointer-events: none;
    transition: .22s ease;
  }

  .nav.open {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding: 76px 0; }
  .hero { padding-top: 26px; }

  h1 { max-width: 12ch; }
  h2 { max-width: 100%; }

  .hero-visual {
    min-height: auto;
    display: grid;
    gap: 14px;
  }

  .hero-card,
  .hero-floating {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
  }

  .hero-floating img { aspect-ratio: 16/10; object-fit: cover; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.large,
  .gallery-item.wide,
  .gallery-item:not(.large):not(.wide) {
    grid-column: span 1;
    min-height: 220px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 22px), var(--container)); }
  .brand-text small { display: none; }
  .hero-actions,
  .btn { width: 100%; }
  .btn { justify-content: center; }
  .gallery-grid { grid-template-columns: 1fr; }
}
