/* TruView website.
   Layout idea: a drawing sheet. Deep navy hero with a live point-cloud room,
   a light "paper" body, thin survey lines and dimension ticks as dividers,
   mono labels like a title block. Brand blue is used for marks and small details;
   text on paper uses navy and a darker blue so it stays readable. */

:root {
  --navy: #084A7C;
  --blue: #01A7E1;
  --deep: #06263F;
  --deep-2: #0B3558;
  --bg: #F3F7FA;
  --surface: #FFFFFF;
  --ink: #0A2238;
  --head: #084A7C;
  --muted: #476076;
  --line: #CFDFEA;
  --line-strong: #9DB8CB;
  --link: #0873A8;
  --on-deep: #FFFFFF;
  --on-deep-2: #A9C4D8;
  --line-deep: rgba(255, 255, 255, .14);
  --grid: rgba(255, 255, 255, .045);
  --btn-bg: #084A7C;
  --btn-fg: #FFFFFF;
  --field-bg: #FFFFFF;
  --band: #084A7C;
  --focus: #01A7E1;
  --shadow: 0 1px 2px rgba(6, 38, 63, .06), 0 10px 30px rgba(6, 38, 63, .08);
  --font-display: "Montserrat", "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#071C2F; --surface:#0C2B47; --ink:#E8F2F9; --head:#EAF4FB; --muted:#9DB8CB; --line:#1A4467; --line-strong:#3A6384; --link:#4CC4F2; --btn-bg:#01A7E1; --btn-fg:#06263F; --field-bg:#08233A; --band:#084A7C; --shadow:0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg:#071C2F; --surface:#0C2B47; --ink:#E8F2F9; --head:#EAF4FB; --muted:#9DB8CB; --line:#1A4467; --line-strong:#3A6384; --link:#4CC4F2; --btn-bg:#01A7E1; --btn-fg:#06263F; --field-bg:#08233A; --band:#084A7C; --shadow:0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); color: var(--head); text-wrap: balance; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--blue); color: var(--deep); }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.mono { font-family: var(--font-mono); }
.skip { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--blue); color: var(--deep); padding: 12px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.eyebrow {
  margin: 0 0 14px;
  font: 500 .75rem/1.2 var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--link);
}
/* Top line of the hero: when it wraps, the dot that would start a new row is pushed outside the box and clipped. */
.eyebrow-list { overflow: hidden; }
.eyebrow-list .el { display: flex; flex-wrap: wrap; row-gap: .3em; margin-left: -1.7em; }
.eyebrow-list .el > span { position: relative; padding-left: 1.7em; white-space: nowrap; }
.eyebrow-list .el > span::before { content: "\00B7"; position: absolute; left: .55em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: 8px;
  font: 600 1rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: var(--deep-2); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: var(--head); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--head); text-decoration: none; }
.btn-blue { background: var(--blue); color: var(--deep); }
.btn-blue:hover { background: #3DBDEB; text-decoration: none; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; text-decoration: none; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #E4F3FB; text-decoration: none; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--deep); border-bottom: 1px solid var(--line-deep);
}
.top-in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: block; flex: none; line-height: 0; }
.brand img { height: 44px; width: auto; display: block; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  padding: 12px 12px; border-radius: 6px;
  color: var(--on-deep); text-decoration: none;
  font: 500 .9375rem/1 var(--font-body); opacity: .86;
}
.nav a:hover { opacity: 1; background: rgba(255, 255, 255, .08); }
.nav .nav-extra { display: none; }
.top-cta { display: flex; gap: 10px; }
.menu {
  display: none; margin-left: auto;
  min-height: 40px; padding: 0 14px;
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .4); border-radius: 8px;
  font: 600 .9375rem/1 var(--font-body); cursor: pointer;
}

@media (max-width: 940px) {
  .menu { display: inline-flex; align-items: center; }
  .top-cta { display: none; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 2px; margin: 0;
    padding: 8px clamp(16px, 4vw, 40px) 20px;
    background: var(--deep); border-bottom: 1px solid var(--line-deep);
  }
  .top.open .nav { display: flex; }
  .nav a { padding: 14px 8px; font-size: 1.0625rem; }
  .nav .nav-extra { display: inline-flex; }
  .nav .nav-extra.btn { margin-top: 10px; padding: 0 22px; justify-content: center; opacity: 1; }
  .nav .nav-extra.btn + .nav-extra.btn { margin-top: 8px; }
  .nav .btn-blue { color: var(--deep); }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--deep); color: var(--on-deep); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 72% 40%, #000 0, transparent 72%);
  mask-image: radial-gradient(ellipse at 72% 40%, #000 0, transparent 72%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px); align-items: center;
  padding-block: clamp(40px, 6vw, 84px) clamp(40px, 6vw, 80px);
}
.hero .eyebrow { color: var(--blue); }
.hero h1 {
  color: #fff; font-weight: 800;
  font-size: clamp(2.4rem, 5.2vw, 4.25rem); line-height: 1.02; letter-spacing: -.025em;
}
.hero-lead { margin-top: 22px; max-width: 34rem; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--on-deep-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 24px; font: 500 .75rem/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-deep-2); }
.hero-scan { position: relative; margin: 0; aspect-ratio: 1.12 / 1; min-height: 280px; }
.hero-scan canvas { display: block; width: 100%; height: 100%; }
.scan-cap {
  position: absolute; left: 0; bottom: 0; margin: 0;
  font: 500 .75rem/1.4 var(--font-mono); letter-spacing: .04em; color: var(--on-deep-2);
}
.ruler {
  height: 16px; opacity: .55;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .55) 0 1px, transparent 1px 100px) bottom / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .4) 0 1px, transparent 1px 10px) bottom / 100% 7px no-repeat;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-scan { aspect-ratio: 1.2 / 1; min-height: 0; }
}

/* ---------- Sections ---------- */
.sec { padding-block: clamp(56px, 8vw, 112px); }
.sec-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 56px); }
.sec-head h2, .split-head h2, .band h2, .contact h2 {
  font-size: clamp(1.875rem, 3.6vw, 2.875rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em;
}
.lead { margin-top: 16px; max-width: 40rem; font-size: 1.1875rem; color: var(--muted); }

/* Services */
.svc {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(20px, 4vw, 64px);
  padding-block: clamp(28px, 4vw, 52px);
  border-top: 1px solid var(--line);
}
.svc:last-of-type { border-bottom: 1px solid var(--line); }
.svc-top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; color: var(--link); }
.svc-top .num { font: 500 .75rem/1 var(--font-mono); letter-spacing: .12em; }
.svc-top svg { width: 64px; height: 64px; flex: none; color: var(--head); }
.svc-top svg .acc { stroke: var(--blue); }
.svc h3 { font-size: clamp(2.75rem, 7vw, 5rem); font-weight: 800; line-height: .95; letter-spacing: -.035em; }
.svc-sub { margin-top: 12px; font: 600 1.0625rem/1.35 var(--font-body); color: var(--ink); }
.svc-body p { max-width: 34rem; }
.cross-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.cross-list li { display: flex; gap: 14px; align-items: baseline; }
.cross-list li::before {
  content: ""; flex: none; width: 10px; height: 10px; transform: translateY(1px);
  background:
    linear-gradient(var(--blue), var(--blue)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--blue), var(--blue)) center / 1.5px 100% no-repeat;
}
@media (max-width: 760px) {
  .svc { grid-template-columns: minmax(0, 1fr); }
}

/* Process */
.process { background: var(--surface); border-block: 1px solid var(--line); }
.steps {
  --gap: clamp(16px, 3vw, 40px);
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap);
}
.step { position: relative; padding-top: 46px; }
.step::before { content: ""; position: absolute; top: 13px; left: 14px; right: calc(var(--gap) * -1 - 0px); height: 1px; background: var(--line-strong); }
.step:last-child::before { display: none; }
.step::after {
  content: ""; position: absolute; top: 6px; left: 0; width: 14px; height: 14px;
  border-radius: 50%; background: var(--surface); border: 2.5px solid var(--blue);
}
.step .n { display: block; font: 500 .75rem/1 var(--font-mono); letter-spacing: .12em; color: var(--link); margin-bottom: 10px; }
.step h3 { font-size: 1.25rem; line-height: 1.2; font-weight: 700; }
.step p { margin-top: 10px; color: var(--muted); font-size: 1rem; }
@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step { padding: 0 0 30px 40px; }
  .step::before { top: 22px; bottom: -4px; left: 6px; right: auto; width: 1px; height: auto; }
  .step::after { top: 2px; left: 0; }
  .step:last-child { padding-bottom: 0; }
}

/* Clients */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 96px); align-items: start; }
.split-head { position: sticky; top: 100px; }
.split-head .lead { margin-top: 18px; }
.roles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.roles li { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.roles strong { font: 700 1.125rem/1.3 var(--font-display); color: var(--head); }
.roles span { color: var(--muted); }
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-head { position: static; }
}

/* Portal band */
.band { background: var(--band); color: #fff; }
.band h2 { color: #fff; }
.band .eyebrow { color: #7FD3F5; }
.band-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 6vw, 88px); align-items: center; }
.band p { color: #D3E8F5; }
.band .band-text { margin-top: 18px; max-width: 34rem; font-size: 1.125rem; }
.band .band-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.band .small { margin-top: 0; font-size: .9375rem; color: #B9D6E8; }
.band figure { margin: 0; }
.band img { display: block; width: 100%; height: auto; }
@media (max-width: 860px) {
  .band-grid { grid-template-columns: minmax(0, 1fr); }
  .band figure { max-width: 480px; }
}

/* Sample tour (only built when a public tour link is set) */
.tour-frame { aspect-ratio: 16 / 9; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--deep); overflow: hidden; }
.tour-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* FAQ */
.faq { max-width: 50rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font: 600 1.125rem/1.35 var(--font-body); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background:
    linear-gradient(var(--blue), var(--blue)) center / 100% 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) center / 2px 100% no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 42rem; color: var(--muted); }

/* Contact */
.contact { background: var(--surface); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 6vw, 88px); align-items: start; }
.contact .lead { margin-top: 16px; }
.facts { margin: 32px 0 0; display: grid; gap: 18px; }
.facts div { display: grid; gap: 2px; }
.facts dt { font: 500 .75rem/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font: 600 1.25rem/1.3 var(--font-body); color: var(--ink); overflow-wrap: anywhere; }
.facts dd a { color: var(--ink); text-decoration-color: var(--blue); text-decoration-thickness: 2px; }
.form-card { padding: clamp(20px, 3vw, 32px); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font: 600 .9375rem/1.2 var(--font-body); color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--field-bg); color: var(--ink);
  border: 1.5px solid var(--line-strong); border-radius: 8px;
  font: inherit; font-size: 1rem;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(1, 167, 225, .35); outline-offset: 0; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 22px; }
.form-status { flex: 1 1 240px; min-height: 1.5em; font-size: .9375rem; color: var(--muted); }
.form-status.ok { color: var(--link); font-weight: 600; }
.form-status:empty { display: none; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Footer */
.foot { background: var(--deep); color: var(--on-deep-2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 3fr); gap: clamp(24px, 5vw, 64px); padding-block: clamp(40px, 6vw, 72px) 28px; }
.foot img { height: 56px; width: auto; display: block; }
.foot .about { margin-top: 18px; max-width: 26rem; font-size: .9375rem; }
.foot h2 { font: 500 .75rem/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-deep-2); margin-bottom: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.foot a:hover { text-decoration: underline; }
.legal { border-top: 1px solid var(--line-deep); padding-block: 20px 28px; font-size: .8125rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
@media (max-width: 860px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Plain pages (privacy, thanks, 404) */
.page-head { background: var(--deep); color: var(--on-deep); }
.page-head .wrap { padding-block: clamp(36px, 6vw, 72px); }
.page-head h1 { color: #fff; font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.05; letter-spacing: -.025em; }
.page-head .eyebrow { color: var(--blue); }
.page-head p { margin-top: 16px; color: var(--on-deep-2); max-width: 40rem; }
.prose { max-width: 44rem; padding-block: clamp(36px, 6vw, 72px); }
.prose h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; margin: 44px 0 12px; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 700 1.0625rem/1.4 var(--font-body); color: var(--ink); margin: 24px 0 6px; }
.prose p, .prose li { color: var(--ink); }
.prose p + p, .prose ul + p, .prose p + ul, .prose table + p, .table-scroll + p { margin-top: 14px; }
.prose ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 8px; }
.prose .box { margin: 0 0 8px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.prose .box ul { margin-top: 8px; }
.prose table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: .9375rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { font: 500 .75rem/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.table-scroll { overflow-x: auto; }
.center-page { padding-block: clamp(56px, 10vw, 120px); max-width: 40rem; }
.center-page h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; letter-spacing: -.025em; }
.center-page p { margin-top: 16px; color: var(--muted); font-size: 1.125rem; }
.center-page .btn { margin-top: 28px; }
