:root {
  --dps-black: #000000;
  --dps-panel: #101010;
  --dps-card: #171b20;
  --dps-cream: #E1E0CC;
  --dps-primary: #D9D5C1;
  --dps-muted: #9aa3ab;
  --dps-sage: #AAB39A;
  --dps-border: rgba(255,255,255,0.12);
}

html {
  scroll-behavior: smooth;
  background: #000;
}

html,
body,
.wp-site-blocks,
.site,
#page,
#wpwrap {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background: var(--dps-black);
  color: var(--dps-cream);
  font-family: Almarai, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/*
 * z-index: -1 (the "obvious" way to put an ambient background behind
 * everything) silently loses to some ancestor's stacking context in
 * WordPress's own block-theme markup — confirmed live, in both Chrome and
 * Firefox, by reading the canvas's actual pixel data: it was drawing the
 * right colors the whole time, just compositing behind an opaque layer
 * this element's own negative z-index couldn't climb above. z-index: 0
 * keeps it behind every later sibling anyway (it's the very first thing
 * printed after <body>, via wp_body_open — DOM order alone puts it under
 * all real content), without falling into that trap.
 */
#dps-vanta-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}

@media (prefers-reduced-motion: reduce) {
  #dps-vanta-bg {
    background: var(--dps-black);
  }
}

/*
 * Any UNPOSITIONED (position: static, the default) content paints in an
 * earlier stacking tier than a positioned z-index:0 element like
 * #dps-vanta-bg above — regardless of DOM order — so it silently ends up
 * BEHIND the fixed background instead of above it. Sections that happened
 * to already set their own `position: relative` (.dps-hero, .dps-about,
 * .dps-feature-card...) were fine; sections that never needed positioning
 * for their own layout (.dps-workflow, .dps-step, .dps-contact) were not,
 * which is what made "How it works" and "Contact" look washed out by the
 * background instead of sitting cleanly on top of it. Promoting <main>
 * itself into the positioned tier guarantees everything it contains stacks
 * above the background from now on, instead of patching this per-section.
 */
main {
  position: relative;
  z-index: 1;
}

body,
body * {
  box-sizing: border-box;
}

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

p,
h1,
h2,
h3,
ul,
ol,
figure {
  margin-top: 0;
  margin-bottom: 0;
}

.site-header,
.site-footer,
.dps-header,
.dps-footer {
  width: 100%;
}

.dps-footer {
  position: relative;
}

.dps-footer-inner {
  position: relative;
  z-index: 1;
}

.dps-header {
  position: relative;
  z-index: 30;
}

.dps-header-inner {
  position: relative;
  margin: 0 auto;
  max-width: 1200px;
}

.dps-nav {
  position: fixed !important;
  left: 50%;
  top: 0;
  z-index: 40;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(0.5rem, 1.5vw, 2rem);
  align-items: center;
  padding: 10px 14px;
  border-radius: 0 0 1.2rem 1.2rem;
  background: rgba(0,0,0,0.9);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.dps-nav a {
  color: rgba(225,224,204,0.8);
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
  text-decoration: none;
  transition: color 180ms ease;
}

.dps-nav a:hover,
.dps-nav a:focus-visible {
  color: #fff;
  outline: 1px solid rgba(225,224,204,0.8);
  outline-offset: 4px;
}

.dps-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
  color: rgba(225,224,204,0.8);
  font-size: 0.72rem;
}

@media (max-width: 767px) {
  .dps-nav {
    position: static !important;
    transform: none;
    width: calc(100% - 1rem);
    margin: 0 auto;
    border-radius: 1rem;
    background: rgba(0,0,0,0.9);
  }

  .dps-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@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 ---------------------------------------------------------- */

.dps-hero {
  position: relative;
  height: 100vh;
  padding: 12px;
}

.dps-hero-frame {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 1rem;
}

.dps-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
}

.dps-hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.12) brightness(0.72) hue-rotate(-3deg);
}

.dps-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 85% at 50% 40%, transparent 45%, rgba(0,0,0,.55) 100%),
    linear-gradient(to bottom, rgba(0,0,0,.45), transparent 40%, rgba(0,0,0,.8));
  pointer-events: none;
}

.dps-hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 24px 20px 32px;
  max-width: none !important;
}

.dps-hero-title {
  margin: 0 !important;
  color: var(--dps-cream);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.06em;
  font-size: 16vw;
}

.dps-hero-kicker {
  margin-top: 12px !important;
  color: rgba(217,213,193,0.7);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 11px;
}

.dps-hero-copy {
  max-width: 32rem;
  margin-top: 20px !important;
  color: rgba(217,213,193,0.75);
  font-size: 13px;
  line-height: 1.35;
}

.dps-hero-actions {
  margin-top: 24px !important;
}

@media (min-width: 768px) {
  .dps-hero { padding: 24px; }
  .dps-hero-frame { border-radius: 2rem; }
  .dps-hero-content { padding: 0 32px 32px; }
  .dps-hero-title { font-size: 10.5vw; }
}

@media (min-width: 1280px) {
  .dps-hero-title { font-size: 9vw; }
}

/* ---- Generic section shell ------------------------------------------ */

.dps-section {
  padding: 80px 16px;
}

.dps-section-label,
.dps-section-eyebrow {
  color: rgba(217,213,193,0.75);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 11px;
  margin-bottom: 12px !important;
}

.dps-section-title {
  max-width: 48rem;
  color: var(--dps-cream);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-size: 28px;
  margin: 0 0 20px !important;
}

.dps-section-copy {
  max-width: 42rem;
  color: var(--dps-primary);
  font-size: 14px;
  line-height: 1.65;
}

@media (min-width: 768px) {
  .dps-section { padding: 112px 32px; }
  .dps-section-title { font-size: 40px; }
}

@media (min-width: 1024px) {
  .dps-section { padding: 128px 40px; }
}

/* ---- Dedicated service page (page-{slug}.html templates) -------------- */

.dps-service-hero {
  text-align: center;
}

.dps-service-hero .dps-section-eyebrow,
.dps-service-hero .dps-section-title,
.dps-service-hero .dps-section-copy {
  margin-left: auto !important;
  margin-right: auto !important;
}

.dps-service-cta {
  display: inline-flex;
  margin-top: 32px !important;
}

.dps-service-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1000px;
  margin: 48px auto 0;
}

.dps-service-page-card {
  background: var(--dps-card);
  border-radius: 1rem;
  padding: 24px;
}

.dps-service-page-card h2 {
  color: var(--dps-cream);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 !important;
}

.dps-service-page-card p {
  margin: 12px 0 0 !important;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.5;
}

.dps-home-fab {
  position: fixed;
  bottom: 24px;
  left: 16px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--dps-cream);
  color: #000;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 20px 10px 16px;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dps-home-fab:hover {
  transform: scale(1.05);
}

.dps-home-fab.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

@media (min-width: 640px) {
  .dps-home-fab { left: 24px; }
}

@media (min-width: 640px) {
  .dps-service-page-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- About / Assess · Clean · Document panel --------------------------- */

.dps-about {
  position: relative;
  overflow: hidden;
  max-width: none;
  margin: 0 12px;
  border-radius: 1.5rem;
  background: var(--dps-panel);
  padding: 48px 24px;
}

.dps-about .dps-section-eyebrow,
.dps-about .dps-section-title,
.dps-about .dps-section-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-left: auto !important;
  margin-right: auto !important;
}

.dps-about .dps-section-title {
  max-width: 56rem;
  font-size: 30px;
}

.dps-about-copy {
  max-width: 48rem;
  font-size: 16px;
}

.dps-about-highlight {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  letter-spacing: -0.02em;
}

.dps-about-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  z-index: 0;
  opacity: 0.4;
}

.dps-about-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75) contrast(1.05) brightness(0.8);
}

@media (min-width: 480px) {
  .dps-about { margin: 0 16px; }
}

@media (min-width: 768px) {
  .dps-about { margin: 0 24px; padding: 64px 56px; }
  .dps-about .dps-section-title { font-size: 40px; }
  .dps-about-copy { font-size: 18px; }
}

@media (min-width: 1024px) {
  .dps-about { margin: 0 24px; }
  .dps-about .dps-section-title { font-size: 52px; }
  .dps-about-copy { font-size: 20px; }
}

/* Rises from below into place once scrolled into view (see theme.js). Visible
   by default — only animates once JS adds .dps-reveal-armed, so a JS failure
   never leaves this text permanently hidden. */
.dps-reveal-rise {
  display: inline-block;
}

.dps-reveal-rise.dps-reveal-armed {
  opacity: 0;
  transform: translateY(56px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1), transform 0.75s cubic-bezier(0.16,1,0.3,1);
}

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

@media (prefers-reduced-motion: reduce) {
  .dps-reveal-rise.dps-reveal-armed {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---- Services --------------------------------------------------------- */

.dps-services {
  max-width: 1500px;
  margin: 0 auto;
}

.dps-section-kicker {
  color: var(--dps-cream);
  text-transform: none;
  letter-spacing: -0.035em;
  font-weight: 400;
  line-height: 1.12;
  font-size: 20px;
  margin: 0 !important;
}

.dps-section-kicker--muted {
  color: #9ca3af;
  margin-top: 4px !important;
}

@media (min-width: 768px) {
  .dps-section-kicker { font-size: 30px; }
}

.dps-services-banner {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  margin: 24px 0;
  border-radius: 1rem;
  background: #151515;
}

.dps-services-banner video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.5) contrast(1.1) brightness(0.55);
}

.dps-services-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.5), transparent 55%, rgba(0,0,0,.05));
}

@media (min-width: 640px) {
  .dps-services-banner { min-height: 280px; }
}

@media (min-width: 1024px) {
  .dps-services-banner { min-height: 340px; }
}

@media (min-width: 1280px) {
  .dps-services-banner { min-height: 400px; }
}

.dps-service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

.dps-feature-card {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  background: var(--dps-card);
  border-radius: 1rem;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 16px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.dps-feature-card:hover {
  transform: translateY(-2px);
}

.dps-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dps-card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(0,0,0,0.4);
  color: var(--dps-cream);
}

.dps-card-learnmore {
  margin-top: auto !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--dps-primary);
  font-size: 12px;
}

.dps-card-number {
  color: #9ca3af;
  font-size: 11px;
  margin: 0 !important;
}

.dps-card-heading {
  margin: 0 0 16px !important;
  color: var(--dps-cream);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.dps-list {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.35;
}

.dps-list li {
  position: relative;
  padding-left: 22px;
}

.dps-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--dps-sage);
  font-size: 13px;
}

@media (min-width: 1024px) {
  .dps-service-grid {
    grid-template-columns: 1fr;
  }
  .dps-feature-card {
    flex-direction: row;
    align-items: center;
    gap: 40px;
    min-height: 0;
    padding: 40px;
  }
  .dps-card-head {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 64px;
    flex: none;
  }
  .dps-card-heading {
    width: 18rem;
    flex: none;
  }
  .dps-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 12px 32px;
  }
}

/* ---- Workflow / How it works ------------------------------------------ */

.dps-workflow {
  max-width: 1152px;
  margin: 0 auto;
}

.dps-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 32px;
}

.dps-step {
  background: var(--dps-card);
  border-radius: 1rem;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dps-step-number {
  color: #9ca3af;
  font-size: 11px;
  margin: 0 !important;
}

.dps-step h3 {
  margin: 0 !important;
  color: var(--dps-cream);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.dps-step p {
  margin: 0 !important;
  color: #9ca3af;
  font-size: 13px;
  line-height: 1.45;
}

@media (min-width: 640px) {
  .dps-steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (min-width: 1024px) {
  .dps-steps { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

/* ---- Contact ----------------------------------------------------------- */

.dps-contact {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 1.5rem;
  background: var(--dps-panel);
  padding: 40px 24px;
  text-align: center;
}

.dps-contact .dps-section-title,
.dps-contact .dps-section-copy {
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (min-width: 768px) {
  .dps-contact { padding: 56px; }
}

.dps-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
  text-align: left;
}

.dps-form-input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--dps-border);
  background: rgba(0,0,0,0.4);
  padding: 12px 16px;
  font-family: Almarai, Arial, sans-serif;
  font-size: 14px;
  color: var(--dps-cream);
  outline: none;
  transition: border-color 0.2s ease;
}

.dps-form-input::placeholder {
  color: var(--dps-muted);
}

.dps-form-input:focus {
  border-color: rgba(217,213,193,0.6);
}

select.dps-form-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%239aa3ab'%3E%3Cpath d='M5.25 7.5L10 12.25L14.75 7.5H5.25Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

textarea.dps-form-input {
  resize: vertical;
}

.dps-form-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  padding-top: 8px;
}

.dps-form-note {
  margin: 0 !important;
  color: var(--dps-muted);
  font-size: 11px;
}

.dps-form-submit {
  border: none;
  border-radius: 999px;
  background: var(--dps-cream);
  color: #000;
  font-family: Almarai, Arial, sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.dps-form-submit:hover {
  transform: scale(1.03);
}

@media (min-width: 640px) {
  .dps-form { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dps-form-span2 { grid-column: span 2; }
  .dps-form-footer { flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---- LiDAR flyover (design_handoff_sobrevuelo_lidar) ------------------- */

.dps-lidar {
  max-width: 1600px;
  margin: 0 auto;
}

.dps-lidar-copy {
  max-width: 42rem;
  margin-bottom: 32px;
}

.lidar-frame {
  position: relative;
  width: 100%;
  max-width: 1600px;
  aspect-ratio: 16 / 9;
  container-type: size;
  overflow: hidden;
  background: #07090b;
  border: 1px solid #1e242a;
}
.lidar-frame canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.lidar-hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  font-family: 'IBM Plex Mono', monospace;
}
.lidar-tl {
  position: absolute;
  top: 3.2cqh;
  left: 2.4cqw;
  display: flex;
  flex-direction: column;
  gap: 0.8cqh;
}
.lidar-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  letter-spacing: 0.22em;
  font-size: 1.5cqw;
  color: #f2f4f5;
  text-transform: uppercase;
}
.lidar-sub {
  font-size: 0.95cqw;
  letter-spacing: 0.14em;
  color: #7fd8d0;
}
.lidar-tr {
  position: absolute;
  top: 3.2cqh;
  right: 2.4cqw;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 0.7cqh;
}
.lidar-tc {
  font-size: 2.3cqw;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: #e8eaec;
}
.lidar-meta {
  font-size: 0.92cqw;
  color: #9aa3ab;
  letter-spacing: 0.1em;
}
.lidar-bl {
  position: absolute;
  bottom: 4.2cqh;
  left: 2.4cqw;
  display: flex;
  flex-direction: column;
  gap: 0.9cqh;
}
.lidar-stat {
  display: flex;
  gap: 1.4cqw;
  font-size: 0.92cqw;
  color: #c6ccd2;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  background: rgba(6, 9, 11, 0.72);
  padding: 0.9cqh 1.2cqw;
}
.lidar-stat b {
  color: #f0c674;
  font-weight: 500;
}
.lidar-bar {
  position: absolute;
  bottom: 2.2cqh;
  left: 2.4cqw;
  right: 2.4cqw;
  height: 0.25cqh;
  background: #1b2228;
}
.lidar-bar i {
  display: block;
  height: 100%;
  background: #7fd8d0;
  width: 0;
}
.lidar-logo {
  position: absolute;
  bottom: 4.2cqh;
  right: 2.4cqw;
  width: 13cqw;
  height: 5.6cqh;
  border: 1px dashed #3a444c;
  display: grid;
  place-items: center;
  font-size: 0.78cqw;
  color: #6b757d;
  letter-spacing: 0.14em;
  background: rgba(6, 9, 11, 0.6);
  text-align: center;
}

.lidar-ctl {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(217,213,193,0.8);
}

.lidar-ctl button,
.lidar-ctl select {
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dps-cream);
  background: var(--dps-card);
  border: 1px solid var(--dps-border);
  border-radius: 0.375rem;
  padding: 7px 13px;
  cursor: pointer;
  text-transform: uppercase;
}

.lidar-ctl button:hover,
.lidar-ctl select:hover {
  background: rgba(255,255,255,0.1);
}

.lidar-ctl input[type=range] {
  width: 160px;
  accent-color: #7fd8d0;
}

.lidar-ctl .lidar-lbl {
  font-variant-numeric: tabular-nums;
  color: rgba(217,213,193,0.6);
}

@media (min-width: 640px) {
  .lidar-ctl input[type=range] { width: 240px; }
}

/* ---- Focus-visible states (keyboard navigation accessibility) --------- */

.wp-element-button:focus-visible,
.dps-form-input:focus-visible,
.dps-form-submit:focus-visible,
.dps-feature-card:focus-visible,
.dps-home-fab:focus-visible {
  outline: 2px solid var(--dps-cream);
  outline-offset: 2px;
}
