:root {
  --bg: #0f0f12;
  --surface: #18181d;
  --text: #f6f1ea;
  --muted: #c8bfb4;
  --accent: #d9a66a;
  --accent-soft: #f4d1a8;
  --line: #2d2b30;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: radial-gradient(circle at 80% -20%, #2a221c 0%, #0f0f12 45%);
  color: var(--text);
  scroll-behavior: smooth;
}

@media (min-width: 901px) {
  body {
    cursor: none;
  }
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem clamp(1rem, 3vw, 3rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.glass {
  backdrop-filter: blur(14px);
  background: rgba(10, 10, 14, 0.55);
}

.brand {
  font-family: "Playfair Display", serif;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
}

.nav {
  display: flex;
  gap: 1.2rem;
}

.nav a {
  opacity: 0.9;
}

.nav a:hover {
  color: var(--accent-soft);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 1.35rem;
}

.hero {
  min-height: 90vh;
  display: grid;
  place-items: center;
  position: relative;
  padding: 4rem 1rem;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__video,
.hero__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__video {
  opacity: 0.72;
}

.hero__fallback {
  background: linear-gradient(140deg, #3b2a1f, #8a5f3f 45%, #201712);
  background-size: cover;
  background-position: center;
  z-index: -1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(15, 15, 18, 0.35), rgba(15, 15, 18, 0.84));
}

.hero__content {
  position: relative;
  width: min(900px, 100%);
  text-align: left;
  z-index: 2;
  transform: translateY(var(--parallax-offset, 0px));
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fce6cb;
  border: 1px solid rgba(252, 230, 203, 0.35);
  border-radius: 999px;
  padding: 0.36rem 0.72rem;
  margin-bottom: 0.85rem;
  background: rgba(0, 0, 0, 0.22);
}

.kicker {
  color: var(--accent-soft);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  line-height: 1.15;
  margin: 0.3rem 0 0.7rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
}

p,
li,
span,
label {
  color: var(--muted);
}

.hero__cta {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  --mx: 50%;
  --my: 50%;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.75rem 1.2rem;
  font-weight: 600;
  transition: transform 140ms ease, box-shadow 200ms ease, border-color 200ms ease;
  cursor: pointer;
  will-change: transform;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, 0.2), transparent 34%);
  opacity: 0;
  transition: opacity 200ms ease;
  z-index: -1;
}

.btn:hover::after {
  opacity: 0.35;
}

.btn--primary {
  background: linear-gradient(115deg, #d9a66a 0%, #e8bc85 42%, #bf8751 74%, #d9a66a 100%);
  background-size: 180% 180%;
  color: #120d08;
  box-shadow: 0 2px 10px rgba(217, 166, 106, 0.2);
  animation: gradientShift 9s ease infinite;
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(217, 166, 106, 0.26), 0 0 10px rgba(217, 166, 106, 0.18);
}

.btn--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.btn--ghost:hover {
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(217, 166, 106, 0.16);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.992);
}

.btn.btn-clicked {
  animation: clickPop 180ms ease;
}

.section {
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 4rem 0;
}

.section__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.4fr 1fr;
}

.card {
  background: rgba(24, 24, 29, 0.75);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.portfolio-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background: #16161a;
}

.media {
  height: 250px;
  background-size: cover;
  background-position: center;
}

.media-1 {
  background-image: linear-gradient(160deg, #5c3f2b, #ab7a4f 52%, #3a2a23);
}

.media-2 {
  background-image: linear-gradient(160deg, #7a5b47, #d2a57a 46%, #4f3a2f);
}

.media-3 {
  background-image: linear-gradient(160deg, #704731, #c08d62 56%, #3b2920);
}

.portfolio-card__body {
  padding: 1rem;
}

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

.gallery-item {
  grid-column: span 4;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #141418;
  padding: 0;
  cursor: zoom-in;
}

.gallery-item--tall {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
  transition: transform 280ms ease, filter 280ms ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: saturate(1.08);
}

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

.lightbox.open {
  display: flex;
}

.lightbox__img {
  max-width: min(1100px, 96vw);
  max-height: 90vh;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.logo-item {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 0.8rem;
  text-align: center;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: #d8ccbd;
  background: rgba(255, 255, 255, 0.01);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.testimonial-card {
  padding: 1rem;
}

.testimonial-card p {
  color: #efe7dd;
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.testimonial-card h3 {
  margin: 0;
  font-size: 1rem;
}

.testimonial-card span {
  font-size: 0.82rem;
}

.timeline {
  display: grid;
  gap: 0.8rem;
}

.timeline-item {
  border-left: 2px solid var(--accent);
  padding: 0.3rem 0 0.3rem 1rem;
}

.contact {
  max-width: 720px;
  margin: 0 auto;
}

.form {
  display: grid;
  gap: 0.9rem;
}

.form-progress {
  font-size: 0.82rem;
  color: #d8ccbd;
}

.form-step {
  display: none;
  gap: 0.9rem;
}

.form-step.is-active {
  display: grid;
}

.form-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

input,
textarea,
select {
  width: 100%;
  margin-top: 0.35rem;
  background: #111116;
  border: 1px solid #2a2930;
  border-radius: 12px;
  padding: 0.72rem;
  color: var(--text);
}

.form-feedback {
  min-height: 1.2rem;
  font-size: 0.9rem;
  color: var(--accent-soft);
}

.floating-cta {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 45;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.36);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.floating-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-whatsapp {
  position: fixed;
  right: 1rem;
  bottom: 4.9rem;
  z-index: 44;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.floating-whatsapp.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cursor-dot {
  position: fixed;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(244, 209, 168, 0.7);
  background: rgba(217, 166, 106, 0.2);
  box-shadow: 0 0 14px rgba(217, 166, 106, 0.35);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 70;
  opacity: 0;
  transition: transform 80ms linear, opacity 120ms ease;
}

.cursor-dot.is-active {
  opacity: 1;
}

.footer {
  text-align: center;
  padding: 2.4rem 1rem 6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes clickPop {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(0.5px) scale(0.985);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: all 550ms ease;
}

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

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 40ms; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 90ms; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 140ms; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 190ms; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 240ms; }

@media (max-width: 900px) {
  .portfolio-grid,
  .section__grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  body {
    cursor: auto;
  }

  .cursor-dot {
    display: none;
  }

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

  .gallery-item {
    grid-column: span 6;
  }

  .nav {
    position: absolute;
    top: 64px;
    right: 1rem;
    flex-direction: column;
    padding: 0.8rem;
    border-radius: 12px;
    background: rgba(15, 15, 18, 0.96);
    border: 1px solid var(--line);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 640px) {
  .gallery-item {
    grid-column: span 12;
  }

  .btn--primary {
    animation-duration: 8s;
  }

  .floating-cta {
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.8rem;
    text-align: center;
    justify-content: center;
    display: flex;
  }

  .floating-whatsapp {
    left: 0.8rem;
    right: 0.8rem;
    bottom: 4.5rem;
    text-align: center;
    justify-content: center;
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn::after,
  .reveal,
  .floating-cta,
  .floating-whatsapp,
  .cursor-dot,
  .reveal-stagger > * {
    transition: none;
  }

  .btn--primary,
  .btn.btn-clicked {
    animation: none;
  }

  .hero__content {
    transform: none;
  }

  .cursor-dot {
    display: none;
  }
}
