:root {
  --bg: #080b0d;
  --bg-elevated: #0e1316;
  --panel: #151b20;
  --panel-strong: #1c242a;
  --text: #f8f4ec;
  --muted: #b7bec3;
  --subtle: #7f8a91;
  --gold: #d8b56b;
  --gold-strong: #f0cf86;
  --line: rgba(216, 181, 107, 0.2);
  --line-strong: rgba(216, 181, 107, 0.48);
  --container: 1180px;
  --radius: 8px;
  --hero-progress: 0;
  --scene-progress: 0;
  --header-alpha: 0.72;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 76%);
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border-radius: 6px;
  background: var(--gold);
  color: #0a0a0a;
  padding: 10px 14px;
  font-weight: 900;
  transition: transform 180ms ease-out;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(216, 181, 107, 0.14);
  background: rgba(8, 11, 13, var(--header-alpha));
  backdrop-filter: blur(14px);
}

.nav {
  width: min(100% - 32px, var(--container));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.brand span {
  display: grid;
  gap: 4px;
  line-height: 1;
}

.brand strong {
  font-family: Montserrat, Inter, sans-serif;
  font-size: 1rem;
  font-weight: 900;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.nav-links a {
  transition: color 160ms ease-out;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 18px;
  font-weight: 900;
  transition: transform 160ms ease-out, border-color 160ms ease-out, background-color 160ms ease-out, color 160ms ease-out;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #080b0d;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--gold-strong);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: var(--line-strong);
  color: var(--gold-strong);
}

.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 130px 0 86px;
  isolation: isolate;
}

#architectural-scene {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  transform: scale(calc(1.04 + (var(--hero-progress) * 0.08))) translateY(calc(var(--hero-progress) * -36px));
  transform-origin: center;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.08) brightness(0.8);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 11, 13, 0.96) 0%, rgba(8, 11, 13, 0.78) 42%, rgba(8, 11, 13, 0.2) 100%),
    linear-gradient(to top, var(--bg) 0%, rgba(8, 11, 13, 0) 40%);
}

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

.eyebrow,
.section-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--gold-strong);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Montserrat, Inter, sans-serif;
  text-wrap: balance;
}

.hero h1 {
  max-width: 920px;
  font-size: clamp(3.35rem, 8vw, 8rem);
  line-height: 0.9;
  font-weight: 900;
  text-transform: uppercase;
}

.hero p:not(.eyebrow) {
  max-width: 670px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.75;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.scroll-cue {
  position: absolute;
  right: max(24px, calc((100vw - var(--container)) / 2));
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.scroll-cue span {
  width: 8px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  position: relative;
}

.scroll-cue span::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  transform: translateX(-50%);
}

.intro-panel,
.services,
.process {
  padding: 104px 0;
}

.intro-panel {
  border-block: 1px solid rgba(216, 181, 107, 0.14);
  background: var(--bg-elevated);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.58fr);
  gap: 52px;
  align-items: end;
}

.intro-grid h2,
.section-head h2,
.showcase-copy h2,
.contact h2 {
  font-size: clamp(2.2rem, 4.6vw, 4.3rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.intro-grid p,
.section-head p,
.showcase-copy p,
.contact p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
  text-wrap: pretty;
}

.scroll-experience {
  height: 420dvh;
  position: relative;
  background: #050708;
}

.sticky-stage {
  position: sticky;
  top: 0;
  min-height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(300px, 0.44fr) minmax(0, 0.56fr);
  gap: 38px;
  align-items: center;
  padding: 96px max(16px, calc((100vw - var(--container)) / 2));
  perspective: 1400px;
}

.sticky-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 8, 0.96), rgba(5, 7, 8, 0.5), rgba(5, 7, 8, 0.1)),
    radial-gradient(circle at 72% 50%, rgba(216, 181, 107, 0.13), transparent 32%);
  pointer-events: none;
}

.stage-copy {
  position: relative;
  z-index: 2;
}

.stage-copy h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.stage-copy p {
  max-width: 500px;
  margin-top: 22px;
  color: var(--muted);
  line-height: 1.8;
  text-wrap: pretty;
}

.scene-stack {
  position: relative;
  z-index: 1;
  height: min(72dvh, 720px);
  transform-style: preserve-3d;
  transform: rotateX(calc(8deg - var(--scene-progress) * 16deg)) rotateY(calc(-18deg + var(--scene-progress) * 34deg)) translateZ(0);
}

.scene-stack::before,
.scene-stack::after {
  content: "";
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(216, 181, 107, 0.2);
  border-radius: var(--radius);
  transform: translateZ(-120px) translateY(34px);
}

.scene-stack::after {
  inset: 14%;
  transform: translateZ(-230px) translateY(70px);
  opacity: 0.5;
}

.scene-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 42px 110px rgba(0, 0, 0, 0.58);
  opacity: 0;
  transform: translateZ(-80px) scale(0.86);
  transition: opacity 180ms ease-out, transform 180ms ease-out;
}

.scene-layer.is-active {
  opacity: 1;
  transform: translateZ(160px) scale(1);
}

.stage-meter {
  position: absolute;
  right: 28px;
  top: 50%;
  width: 3px;
  height: 42dvh;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-50%);
}

.stage-meter span {
  display: block;
  width: 100%;
  height: calc(var(--scene-progress) * 100%);
  background: var(--gold);
}

.section-head {
  max-width: 850px;
  margin-bottom: 38px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.service-card {
  min-height: 300px;
  background: var(--panel);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card span {
  color: var(--gold-strong);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
}

.service-card h3 {
  margin-top: auto;
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.service-card p {
  color: var(--muted);
  line-height: 1.65;
  text-wrap: pretty;
}

.showcase {
  padding: 112px 0;
  border-block: 1px solid rgba(216, 181, 107, 0.14);
  background: var(--bg-elevated);
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(320px, 0.38fr);
  gap: 42px;
  align-items: center;
}

.showcase-main {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #060809;
  box-shadow: 0 32px 96px rgba(0, 0, 0, 0.38);
}

.showcase-main img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.showcase-main figcaption {
  padding: 14px 16px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  list-style: none;
}

.check-list li {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  padding: 14px 16px;
  color: var(--text);
  font-weight: 800;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
}

.timeline li {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 22px;
}

.timeline strong {
  display: block;
  margin-bottom: 12px;
  color: var(--gold-strong);
  font-family: Montserrat, Inter, sans-serif;
  font-size: 1.12rem;
}

.timeline span {
  color: var(--muted);
  line-height: 1.65;
  text-wrap: pretty;
}

.contact {
  padding: 112px 0;
  border-top: 1px solid rgba(216, 181, 107, 0.14);
  background:
    linear-gradient(rgba(8, 11, 13, 0.86), rgba(8, 11, 13, 0.96)),
    url("../images/project/interior-integrado-2gfc.jpg") center / cover;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.56fr) minmax(340px, 0.44fr);
  gap: 46px;
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 19, 22, 0.92);
  padding: 22px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: #090d10;
  color: var(--text);
  padding: 12px;
  outline: none;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--line-strong);
}

.form-status {
  min-height: 20px;
  color: var(--gold-strong);
  font-size: 0.86rem;
  line-height: 1.45;
}

.site-footer {
  padding: 34px 0;
  background: #050708;
  border-top: 1px solid rgba(216, 181, 107, 0.12);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--subtle);
  font-size: 0.88rem;
}

.footer-grid strong {
  color: var(--text);
}

.footer-grid a {
  color: var(--gold-strong);
  font-weight: 800;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-media,
  .scene-stack,
  .scene-layer {
    transform: none !important;
  }
}

@media (max-width: 1040px) {
  .nav-links {
    display: none;
  }

  .intro-grid,
  .showcase-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .sticky-stage {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .scene-stack {
    height: 48dvh;
  }

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

@media (max-width: 680px) {
  .nav {
    min-height: 68px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .nav > .button {
    display: none;
  }

  .hero {
    min-height: 96dvh;
    padding: 112px 0 66px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.25rem, 10.8vw, 3.1rem);
    line-height: 0.95;
  }

  .hero-actions .button,
  .contact-form .button {
    width: 100%;
  }

  .scroll-cue {
    display: none;
  }

  .intro-panel,
  .services,
  .process,
  .showcase,
  .contact {
    padding: 76px 0;
  }

  .scroll-experience {
    height: auto;
  }

  .sticky-stage {
    position: relative;
    min-height: auto;
    padding: 76px 16px;
  }

  .scene-stack {
    height: 52dvh;
    transform: none;
  }

  .scene-layer {
    transform: none;
  }

  .service-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 230px;
  }

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