@font-face {
  font-family: "Century Gothic";
  src: url("assets/fonts/centurygothic.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Century Gothic";
  src: url("assets/fonts/centurygothic_bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Copperplate Gothic Bold";
  src: url("assets/fonts/copperplategothic_bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --orange: #FF9600;
  --cyan: #00BFFF;
  --charcoal: #333333;
  --gray: #666666;
  --offwhite: #FDFDFD;
  --bg: #111111;
  --ink: #FDFDFD;
  --muted: rgba(253, 253, 253, 0.78);
  --surface: #333333;
  --process: #0d0d0d;
  --finale: #161616;
  --footer: #0d0d0d;
  --node: #141414;
  --input: #1a1a1a;
  --line: rgba(253, 253, 253, 0.08);
  --hairline: #333333;
  --field-border: #666666;
  --header-ink: #FDFDFD;
  --header-bg: linear-gradient(180deg, rgba(17, 17, 17, 0.78), rgba(17, 17, 17, 0));
  --header-stuck: rgba(17, 17, 17, 0.92);
  --menu-bg: rgba(17, 17, 17, 0.98);
  --ghost-border: rgba(253, 253, 253, 0.72);
  --process-glow: rgba(255, 150, 0, 0.09);
  --finale-wash: rgba(255, 150, 0, 0.16);
  --font: "Century Gothic", "AppleGothic", "URW Gothic", "CenturyGothic", sans-serif;
  --header: 88px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--font);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, .btn, button {
  font-family: var(--font);
  font-weight: 700;
  color: var(--ink);
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }

p { margin: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

::selection { background: var(--orange); color: #111111; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--orange);
  color: #333333;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 700;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--header);
  background: var(--header-bg);
}

.site-header.is-stuck {
  background: var(--header-stuck);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(16px);
}

.bar {
  height: var(--header);
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-right: auto;
  color: var(--ink);
  font-family: "Copperplate Gothic Bold", "Copperplate Gothic", Copperplate, serif;
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: 0.26em;
  white-space: nowrap;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-header .brand,
.site-header .nav-links a,
.site-header .nav-toggle {
  color: var(--header-ink);
}

.nav-links a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a[aria-current="true"] { color: var(--orange); }

.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid rgba(253, 253, 253, 0.4);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.btn-orange {
  background: var(--orange);
  color: #333333;
}

.btn-orange:hover { box-shadow: 0 10px 28px rgba(255, 150, 0, 0.28); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ghost-border);
}

.btn-ghost:hover { background: var(--ink); color: var(--bg); }

.hero .btn-ghost {
  color: var(--offwhite);
  border-color: rgba(253, 253, 253, 0.72);
}

.hero .btn-ghost:hover { background: var(--offwhite); color: #333333; }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-scan {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.28) 0%, rgba(17, 17, 17, 0.08) 24%, rgba(17, 17, 17, 0.92) 54%, #111111 72%);
}

.hero-copy {
  position: relative;
  z-index: 3;
  padding: 0 0 3.2rem;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.35rem, 6.2vw, 4.35rem);
  max-width: 9.2em;
  letter-spacing: -0.035em;
}

.hero h1,
.hero .eyebrow { color: var(--offwhite); }

.sub {
  margin-top: 1.05rem;
  max-width: 38rem;
  font-size: 1.05rem;
  color: var(--offwhite);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(253, 253, 253, 0.28);
  background: rgba(17, 17, 17, 0.38);
  color: var(--offwhite);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
}

.chips a:hover { border-color: var(--orange); color: var(--orange); }

.section { padding: 4.5rem 0; }

.section-head { max-width: 40rem; margin-bottom: 1.8rem; }

.section-head h2,
.finale h2,
.contact h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }

.lede { margin-top: 0.8rem; max-width: 38rem; }

.cards {
  display: grid;
  gap: 16px;
  align-items: stretch;
  grid-template-columns: minmax(0, 1fr);
}

.card {
  background:
    radial-gradient(420px 140px at 100% 0%, rgba(255, 150, 0, 0.14), transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.15rem 1.25rem;
  scroll-margin-top: 96px;
  cursor: pointer;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.card:hover,
.card:focus-within {
  z-index: 2;
  border-color: var(--orange);
  transform: scale(1.04);
}

.visual {
  position: relative;
  height: 180px;
  margin-bottom: 0.95rem;
  overflow: hidden;
  border-radius: 12px;
  background: #0c0c0c;
}

.visual video,
.visual-cloud img,
.visual canvas,
.bim-model,
.bim-photo,
.flight {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-cloud img { opacity: 0.62; filter: saturate(0.8) brightness(0.78); }

.visual-cloud canvas { z-index: 1; }

.bim-model,
.bim-photo {
  background: url("assets/stages-pipeline.jpg") 0 50% / 400% 100% no-repeat;
}

.bim-model { background-position: 100% 50%; z-index: 0; }
.bim-photo { z-index: 1; }

.card.is-open .bim-photo { animation: bimwipe 5.2s linear infinite; }

.lidar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  left: 0;
  background: var(--orange);
  box-shadow: 0 0 16px var(--orange);
  z-index: 2;
}

.card.is-open .lidar { animation: lidar 5.2s linear infinite; }

.vtag {
  position: absolute;
  z-index: 3;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.72);
  color: var(--offwhite);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vtag.left { left: 8px; }
.vtag.right { right: 8px; color: var(--orange); }

.twin-live,
.twin-board {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  left: 0;
  overflow: hidden;
}

.twin-board { left: 50%; }

.twin-live img,
.twin-board img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 46%;
}

.twin-board::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 0 46%, rgba(12, 12, 12, 0.82) 68%);
  pointer-events: none;
}

.twin-pin {
  position: absolute;
  z-index: 3;
  left: 52%;
  top: 18%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 2px #111;
}

.twin-ui {
  position: absolute;
  z-index: 2;
  left: 6px;
  right: 6px;
  bottom: 6px;
  display: grid;
  gap: 4px;
  color: var(--offwhite);
}

.twin-head,
.twin-controls p {
  display: flex;
  align-items: center;
  gap: 5px;
}

.twin-head {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.twin-head-tag { margin-left: auto; color: var(--orange); }

.twin-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00BFFF;
  box-shadow: 0 0 0 0 rgba(0, 191, 255, 0.7);
}

.twin-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.twin-metrics p,
.twin-controls p { margin: 0; }

.twin-metrics p {
  padding: 3px 2px 4px;
  border-radius: 6px;
  background: rgba(17, 17, 17, 0.78);
  border: 1px solid rgba(0, 191, 255, 0.45);
  text-align: center;
}

.twin-metrics b {
  display: block;
  position: relative;
  height: 1.05em;
  color: #00BFFF;
  font-size: 0.92rem;
  line-height: 1.05;
}

.flip span {
  position: absolute;
  left: 0;
  right: 0;
  opacity: 0;
}

.card.is-open .flip span { animation: flipNum 6.6s linear infinite; }
.card.is-open .flip span:nth-child(2) { animation-delay: -4.4s; }
.card.is-open .flip span:nth-child(3) { animation-delay: -2.2s; }

.twin-metrics small {
  display: block;
  color: rgba(253, 253, 253, 0.72);
  font-size: 0.52rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.twin-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  padding: 3px 4px;
  border-radius: 6px;
  background: rgba(17, 17, 17, 0.72);
}

.twin-chart i {
  flex: 1;
  height: var(--h);
  border-radius: 1px 1px 0 0;
  background: #00BFFF;
  transform-origin: bottom;
}

.twin-chart i.now { background: var(--orange); }

.card.is-open .twin-chart i { animation: barPulse 2.4s ease-in-out infinite; }
.card.is-open .twin-chart i:nth-child(2) { animation-delay: 0.15s; }
.card.is-open .twin-chart i:nth-child(3) { animation-delay: 0.3s; }
.card.is-open .twin-chart i:nth-child(4) { animation-delay: 0.45s; }
.card.is-open .twin-chart i:nth-child(5) { animation-delay: 0.2s; }
.card.is-open .twin-chart i:nth-child(6) { animation-delay: 0.5s; }
.card.is-open .twin-chart i:nth-child(7) { animation-delay: 0.35s; }

.twin-controls {
  display: grid;
  gap: 2px;
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(17, 17, 17, 0.78);
  border: 1px solid rgba(255, 150, 0, 0.45);
}

.twin-controls p { justify-content: space-between; font-size: 0.58rem; letter-spacing: 0.04em; }
.twin-controls span { color: rgba(253, 253, 253, 0.72); text-transform: uppercase; }
.twin-controls strong { color: var(--orange); font-size: 0.68rem; }
.twin-controls strong.run { color: #00BFFF; }

.twin-seam {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--orange);
  box-shadow: 0 0 12px var(--orange);
}

.twin-link {
  position: absolute;
  z-index: 4;
  left: 26%;
  right: 22%;
  top: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #FF9600 18%, #00BFFF 82%, transparent);
}

.twin-link i {
  position: absolute;
  top: -3px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00BFFF;
}

.twin-scan {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), #00BFFF, transparent);
  box-shadow: 0 0 10px rgba(255, 150, 0, 0.7);
  top: 12%;
}

.card.is-open .twin-scan { animation: twinScan 4.8s linear infinite; }
.card.is-open .twin-live-dot { animation: ping 1.8s ease-out infinite; }
.card.is-open .twin-pin { animation: ping 1.8s ease-out infinite; }
.card.is-open .twin-link i { animation: tickMove 2.8s linear infinite; }

.hotspot {
  position: absolute;
  z-index: 2;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 2px #111;
}

.card.is-open .hotspot { animation: ping 1.8s ease-out infinite; }
.card.is-open .hotspot:nth-child(3) { animation-delay: 0.4s; }
.card.is-open .hotspot:nth-child(4) { animation-delay: 0.8s; }

.dollhouse {
  position: absolute;
  z-index: 2;
  left: 8px;
  bottom: 8px;
  width: 78px;
  height: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 4px;
  background: rgba(17, 17, 17, 0.78);
  border: 1px solid rgba(253, 253, 253, 0.35);
  border-radius: 6px;
}

.dollhouse span { background: rgba(253, 253, 253, 0.28); border-radius: 2px; }
.dollhouse .here { background: var(--orange); }

.flight { z-index: 1; pointer-events: none; }

.fly-drone {
  position: absolute;
  z-index: 2;
  width: 84px;
  height: 42px;
  left: 12%;
  top: 18%;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45));
}

.card.is-open .fly-drone { animation: droneFly 7.5s ease-in-out infinite; }

.doc-board {
  position: absolute;
  inset: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
}

.doc-tile {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(253, 253, 253, 0.28);
  background: #111;
}

.doc-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }

.doc-tile figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 6px 4px;
  color: var(--offwhite);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
}

.doc-tile:nth-child(1) { --dx: -28px; --dy: -20px; --rot: -7deg; }
.doc-tile:nth-child(2) { --dx: 26px; --dy: -16px; --rot: 6deg; }
.doc-tile:nth-child(3) { --dx: -22px; --dy: 18px; --rot: 5deg; }
.doc-tile:nth-child(4) { --dx: 24px; --dy: 16px; --rot: -4deg; }

.card.is-open .doc-tile { animation: docsIn 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.card.is-open .doc-tile:nth-child(2) { animation-delay: 0.08s; }
.card.is-open .doc-tile:nth-child(3) { animation-delay: 0.16s; }
.card.is-open .doc-tile:nth-child(4) { animation-delay: 0.24s; }

.card-top {
  display: flex;
  align-items: center;
  margin-bottom: 0.85rem;
}

.ico { width: 36px; height: 36px; }

.card h3 { font-size: 1.15rem; margin-bottom: 0.45rem; }

.card p { font-size: 0.95rem; }

.card-lead {
  background:
    radial-gradient(520px 180px at 90% 0%, rgba(0, 191, 255, 0.16), transparent 46%),
    radial-gradient(420px 160px at 0% 100%, rgba(255, 150, 0, 0.16), transparent 50%),
    var(--surface);
}

.process {
  background:
    radial-gradient(800px 320px at 50% 0%, var(--process-glow), transparent 60%),
    var(--process);
}

.flow { position: relative; margin-top: 0.5rem; }

.flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.flow ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
  position: relative;
  z-index: 1;
}

.flow li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.85rem;
  align-items: center;
}

.node {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--field-border);
  background: var(--node);
  color: var(--orange);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.node svg { width: 30px; height: 30px; }

.flow h3 { font-size: 1rem; margin-bottom: 0.2rem; }

.flow p { font-size: 0.9rem; }

.flow li.hot .node {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 150, 0, 0.16);
}

.flow li.hot h3 { color: var(--orange); }

.stages { margin: 2.4rem 0 0; }

.stages img {
  width: 100%;
  border-radius: 16px 16px 0 0;
  height: auto;
}

.stages figcaption ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  background: var(--surface);
  border-radius: 0 0 16px 16px;
}

.stages li {
  padding: 0.75rem 0.55rem 0.85rem;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-left: 1px solid var(--gray);
}

.stages li:first-child { border-left: 0; }

.stages li span {
  display: block;
  color: var(--orange);
  margin-bottom: 0.15rem;
}

.why {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.why li {
  background: var(--surface);
  border-radius: 16px;
  padding: 1.2rem 1.15rem 1.3rem;
  border-top: 2px solid var(--orange);
}

.why h3 { font-size: 1.12rem; margin: 0.55rem 0 0.4rem; }

.finale {
  padding: 4.5rem 0;
  background:
    linear-gradient(90deg, var(--finale-wash), transparent 28%),
    var(--finale);
  border-block: 1px solid var(--hairline);
}

.contact-grid { display: grid; gap: 1.6rem; }

form, .confirm {
  background: var(--surface);
  border-radius: 16px;
  padding: 1.15rem;
}

.fields { display: grid; gap: 0.35rem; }

label {
  margin-top: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

input, textarea {
  width: 100%;
  border: 1px solid var(--field-border);
  background: var(--input);
  color: var(--ink);
  border-radius: 8px;
  padding: 0.75rem 0.8rem;
  font: inherit;
}

input:focus-visible, textarea:focus-visible { border-color: var(--orange); }

form .btn { margin-top: 1rem; }

.form-note {
  margin: 0.9rem 0 0;
  color: var(--ink);
}

.form-note a { color: var(--orange); font-weight: 700; }

.confirm h3 { font-size: 1.25rem; }

.confirm p { margin: 0.6rem 0 1rem; color: var(--ink); }

.confirm .btn-ghost { border-color: var(--field-border); }

.noscript { margin-top: 0.8rem; }

.page-legal { padding-top: calc(var(--header) + 2.5rem); }

.page-legal .site-header {
  background: var(--header-stuck);
  border-bottom: 1px solid var(--hairline);
}

html[data-theme="light"] .page-legal .site-header {
  --header-ink: #1C1C1C;
  background: rgba(243, 244, 246, 0.96);
}

html[data-theme="light"] .page-legal .site-header .nav-toggle {
  border-color: rgba(28, 28, 28, 0.28);
}

.legal h2 {
  font-size: 1.15rem;
  margin: 1.75rem 0 0.4rem;
}

.legal p { margin: 0 0 0.85rem; max-width: 40rem; }

.legal a { color: var(--orange); }

.site-footer {
  background: var(--footer);
  padding: 2.4rem 0 2.8rem;
  border-top: 1px solid var(--hairline);
}

.footer-grid { display: grid; gap: 1.5rem; }

.site-footer .brand { margin: 0 0 0.2rem; font-size: 3rem; letter-spacing: 0.26em; }

.tagline { margin: 0.8rem 0 1rem; max-width: 18rem; }

.site-footer nav {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.site-footer nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.site-footer nav a:hover { color: var(--orange); }

.footer-end {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.9rem 1.25rem;
  margin-top: 1.8rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--hairline);
}

.footer-end .theme-switch { justify-self: start; }

.site-footer .footer-legal {
  justify-self: end;
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0.35rem 1.1rem;
  white-space: nowrap;
}

.footer-legal a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.footer-legal a:hover { color: var(--orange); }

.theme-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--field-border);
  border-radius: 999px;
}

.theme-switch button {
  width: 40px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.theme-switch button[aria-pressed="true"] {
  background: var(--orange);
  color: #1C1C1C;
}

.theme-switch svg { width: 18px; height: 18px; display: block; }

.copyright {
  margin: 0;
  justify-self: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  .footer-end {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "switch legal"
      "copy copy";
  }
  .footer-end .theme-switch { grid-area: switch; justify-self: start; }
  .footer-end .copyright { grid-area: copy; }
  .footer-end .footer-legal { grid-area: legal; justify-self: end; }
}

#services, #process, #contact, #why { scroll-margin-top: 96px; }

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.pulse { animation: pulse 2.8s ease-in-out infinite; }

.sweep { animation: sweep 2.6s ease-in-out infinite; }

.spin { transform-origin: 16px 16px; animation: spin 9s linear infinite; }

.twin { animation: twin 3.2s ease-in-out infinite; }

@keyframes pulse {
  50% { opacity: 0.35; }
}

@keyframes sweep {
  0%, 100% { transform: translateY(-5px); opacity: 0.35; }
  50% { transform: translateY(6px); opacity: 1; }
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes twin {
  50% { transform: translate(1.5px, 1.5px); }
}

@keyframes bimwipe {
  0% { clip-path: inset(0 0 0 0); }
  64% { clip-path: inset(0 0 0 100%); }
  80% { clip-path: inset(0 0 0 100%); }
  100% { clip-path: inset(0 0 0 0); }
}

@keyframes lidar {
  0% { left: 0; opacity: 1; }
  64% { left: calc(100% - 2px); opacity: 1; }
  80% { opacity: 0; }
  100% { left: 0; opacity: 0; }
}

@keyframes ping {
  70% { box-shadow: 0 0 0 12px rgba(255, 150, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 150, 0, 0); }
}

@keyframes droneFly {
  0% { left: 8%; top: 16%; }
  50% { left: 68%; top: 42%; }
  100% { left: 8%; top: 16%; }
}

@keyframes docsIn {
  from { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0.15; }
  to { transform: none; opacity: 1; }
}

@keyframes flipNum {
  0%, 30% { opacity: 1; }
  36%, 100% { opacity: 0; }
}

@keyframes barPulse {
  50% { transform: scaleY(0.72); }
}

@keyframes tickMove {
  from { left: 0; }
  to { left: calc(100% - 6px); }
}

@keyframes twinScan {
  from { top: 10%; }
  to { top: 44%; }
}

@media (min-width: 720px) {
  .wrap { width: min(1120px, calc(100% - 4rem)); }
  .cards { grid-template-columns: 1fr 1fr; }
  .visual { height: 210px; }
  .why { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr 1fr; }
  .hero { align-items: center; }
  .hero-shade {
    background:
      linear-gradient(90deg, rgba(17, 17, 17, 0.97) 0%, rgba(17, 17, 17, 0.92) 32%, rgba(17, 17, 17, 0.55) 48%, rgba(17, 17, 17, 0.12) 68%),
      linear-gradient(180deg, rgba(17, 17, 17, 0.55), transparent 20%, rgba(17, 17, 17, 0.45));
  }
  .hero-copy { padding: 6.5rem 0 4rem; }
}

@media (min-width: 980px) {
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
  .card { min-height: 0; }
  .visual { height: 200px; }
  .why { grid-template-columns: repeat(4, 1fr); }
  .flow ol {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    padding-top: 0.4rem;
  }
  .flow li {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    align-items: start;
  }
  .flow h3 { min-height: 2.4em; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-cta { padding-inline: 10px; font-size: 0.78rem; }
  .site-header .brand { font-size: 2.1rem; letter-spacing: 0.16em; }
  .bar { gap: 0.45rem; }
  .site-header { height: auto; }
  .bar { height: auto; min-height: var(--header); flex-wrap: wrap; padding-block: 0.7rem; }
  .nav-links {
    display: flex;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 0.35rem;
  }
  .nav-links a { padding: 10px 2px; }
  .js .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 6px 1rem 14px;
    background: var(--menu-bg);
    border-bottom: 1px solid var(--hairline);
  }
  .js .nav-links.is-open { display: flex; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse,
  .sweep,
  .spin,
  .twin { animation: none; }
  .mover { display: none; }
  .js .reveal,
  .js .reveal.in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .card:hover,
  .card:focus-within { transform: none; }
  .visual { transition: none; }
  .card.is-open .bim-photo,
  .card.is-open .lidar,
  .card.is-open .twin-live-dot,
  .card.is-open .twin-pin,
  .card.is-open .twin-link i,
  .card.is-open .twin-scan,
  .card.is-open .twin-chart i,
  .card.is-open .flip span,
  .card.is-open .hotspot,
  .card.is-open .fly-drone,
  .card.is-open .doc-tile,
  .pulse,
  .sweep,
  .spin,
  .twin { animation: none; }
  .flip span { opacity: 0; }
  .flip span:first-child { opacity: 1; }
  .bim-photo { clip-path: inset(0 50% 0 0); }
  .visual-cloud canvas,
  .hero-scan { display: none; }
  .visual-cloud img { opacity: 0.9; filter: none; }
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #F3F4F6;
  --ink: #1C1C1C;
  --muted: rgba(28, 28, 28, 0.74);
  --surface: #FFFFFF;
  --process: #E7E9EE;
  --finale: #ECEEF2;
  --footer: #FFFFFF;
  --node: #FFFFFF;
  --input: #FFFFFF;
  --line: rgba(28, 28, 28, 0.1);
  --hairline: rgba(28, 28, 28, 0.12);
  --field-border: rgba(28, 28, 28, 0.22);
  --menu-bg: rgba(243, 244, 246, 0.98);
  --ghost-border: rgba(28, 28, 28, 0.38);
  --process-glow: rgba(255, 150, 0, 0.16);
  --finale-wash: rgba(255, 150, 0, 0.22);
}

html[data-theme="light"] .card,
html[data-theme="light"] .why li,
html[data-theme="light"] form,
html[data-theme="light"] .confirm {
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.05);
}

html[data-theme="light"] .site-header.is-stuck {
  --header-ink: #1C1C1C;
  background: rgba(243, 244, 246, 0.96);
  border-bottom: 1px solid var(--hairline);
}

html[data-theme="light"] .site-header.is-stuck .nav-toggle {
  border-color: rgba(28, 28, 28, 0.28);
}

html[data-theme="light"] .stages li { border-left-color: var(--hairline); }

@media (max-width: 860px) {
  html[data-theme="light"] .site-header:has(.nav-links.is-open) {
    --header-ink: #1C1C1C;
    background: rgba(243, 244, 246, 0.98);
    border-bottom: 1px solid var(--hairline);
  }

  html[data-theme="light"] .site-header:has(.nav-links.is-open) .nav-toggle {
    border-color: rgba(28, 28, 28, 0.28);
  }
}

html[data-theme="light"] .ico [stroke="#FDFDFD"] { stroke: #333333; }

html[data-theme="light"] .flow-svg .mover:last-child { fill: #333333; }
