:root {
  --bg: #0b0c0f;
  --ink: #f4f1ea;
  --muted: #a8a39a;
  --accent: #c9a46a;
  --accent2: #e8c994;
  --glass: rgba(10, 11, 14, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --wa: #25d366;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Heebo", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; height: 100dvh; }

#webgl {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  touch-action: none;
}

#loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: grid;
  place-items: center;
  transition: opacity .5s ease, visibility .5s;
}
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { text-align: center; color: var(--muted); font-size: .9rem; }
.loader-ring {
  width: 42px; height: 42px; margin: 0 auto 1rem;
  border: 2px solid rgba(255,255,255,.12);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.topbar {
  position: fixed;
  top: 0; inset-inline: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1.25rem;
  background: linear-gradient(to bottom, rgba(11,12,15,.85), transparent);
  pointer-events: none;
}
.topbar a, .topbar .brand { pointer-events: auto; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand-mark {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 0 16px rgba(201,164,106,.55);
}
.brand strong { display: block; font-size: .95rem; font-weight: 700; letter-spacing: -.01em; }
.brand small { color: var(--muted); font-size: .72rem; }
.topnav { display: flex; gap: .35rem; align-items: center; }
.topnav a {
  color: var(--ink);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 500;
  padding: .45rem .7rem;
  border-radius: 999px;
  opacity: .85;
}
.topnav a:hover { opacity: 1; background: rgba(255,255,255,.06); }
.nav-cta {
  background: var(--wa) !important;
  color: #062!important;
  font-weight: 700 !important;
  opacity: 1 !important;
}

#scroll-root { position: relative; z-index: 1; }

.panel {
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  padding: 5.5rem 1.25rem 2.5rem;
  pointer-events: none;
}
.panel-copy {
  pointer-events: auto;
  max-width: 34rem;
  width: min(100%, 34rem);
}
.dark-glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 1.1rem;
  padding: 1.35rem 1.4rem 1.45rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.kicker {
  margin: 0 0 .55rem;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.kicker.light { color: var(--accent2); }
h1, h2 {
  margin: 0 0 .75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(1.85rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.55rem, 4vw, 2.25rem); }
h1 em, h2 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent2), #fff 55%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 400;
}
.lede.light { color: #c9c4ba; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem;
  padding: .7rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .15s ease, filter .15s;
}
.btn:active { transform: scale(.98); }
.btn-wa { background: var(--wa); color: #053; }
.btn-wa:hover { filter: brightness(1.06); }
.btn-ghost {
  background: rgba(255,255,255,.06);
  color: var(--ink);
  border-color: rgba(255,255,255,.14);
}
.hint {
  margin: 0;
  font-size: .75rem;
  color: rgba(255,255,255,.45);
}

.content-block {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, transparent, #0b0c0f 8%);
  padding: 3.5rem 1.25rem 4rem;
}
.content-inner { max-width: 1100px; margin: 0 auto; }
.services { background: #0b0c0f; padding-top: 2rem; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin-top: 1.25rem;
}
.service-grid article {
  background: #14161c;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 1rem;
  padding: 1.15rem 1.2rem;
}
.service-grid h3 {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
  color: var(--accent2);
}
.service-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  margin-top: 1.2rem;
}
.g-item {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  border-radius: .85rem;
  overflow: hidden;
  cursor: pointer;
  background: #1a1c22;
  aspect-ratio: 4/3;
  text-align: start;
}
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.g-item:hover img { transform: scale(1.04); }
.g-item span {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 1.6rem .85rem .7rem;
  background: linear-gradient(transparent, rgba(0,0,0,.78));
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
}

.cta-block { padding-bottom: calc(5rem + var(--safe-b)); }
.cta-card {
  background: linear-gradient(145deg, #151820, #0f1116 60%);
  border: 1px solid rgba(201,164,106,.22);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.cta-card .hero-actions { justify-content: center; }
.fineprint { margin: 1rem 0 0; color: rgba(255,255,255,.35); font-size: .75rem; }

.fab-wa {
  position: fixed;
  z-index: 45;
  inset-inline-end: 1rem;
  bottom: calc(1rem + var(--safe-b));
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #053;
  display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37,211,102,.35);
  text-decoration: none;
}
.fab-wa:hover { filter: brightness(1.05); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(5,6,8,.92);
  display: grid;
  place-items: center;
  padding: 1.25rem;
  padding-bottom: calc(1.25rem + var(--safe-b));
}
.lightbox[hidden] { display: none !important; }
.lightbox figure {
  margin: 0;
  max-width: min(960px, 100%);
  width: 100%;
}
.lightbox img {
  width: 100%;
  max-height: min(72dvh, 820px);
  object-fit: contain;
  border-radius: .75rem;
  background: #111;
}
.lightbox figcaption {
  margin-top: .85rem;
  color: #ddd;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  text-align: center;
}
.lb-close {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1rem;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 900px) {
  .panel { align-items: center; padding-inline: 4vw; }
  .panel-copy { max-width: 28rem; }
  .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .topnav a:not(.nav-cta) { display: none; }
  .service-grid { grid-template-columns: 1fr; }
  .panel { padding-bottom: 5.5rem; }
}
