/* 3D Geomatic Services (3dgs.io) — site CSS
   Design system: Trust & Authority + Minimal (B2B Service) with frontier polish
   Typography: EB Garamond + Lato + JetBrains Mono (Google Fonts)
   Single-brand accent: body[data-accent="point-cloud"] sets indigo-500 as
   --accent throughout (dot, hero underline, card/process icons, wedge bg,
   focus rings). Ported from a prior multi-brand layout; the "brand" and
   "software-dev" accent variants and the per-service nav de-emphasis rule
   were removed as dead code — this site only ever sets data-accent to
   "point-cloud".
*/

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600;700&family=Lato:wght@300;400;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Ink / surface */
  --ink:        #0F172A;
  --ink-2:      #334155;
  --ink-3:      #64748B;
  --rule:       #E2E8F0;
  --rule-2:     #F1F5F9;
  --surface:    #F8FAFC;
  --paper:      #FFFFFF;
  --navy-deep:  #0B1729;

  /* Action color — stays consistent across the brand */
  --sky:        #0369A1;
  --sky-hover:  #075985;
  --sky-soft:   #E0F2FE;

  /* Brand trust signal — amber/gold (umbrella only by default) */
  --amber:      #B45309;
  --amber-soft: #FEF3C7;
  --gold-dark-bg: #D4A03A;

  /* Indigo — per-service accent for point-cloud */
  --indigo:        #6366F1;     /* indigo-500 */
  --indigo-deep:   #4F46E5;     /* indigo-600 */
  --indigo-bright: #818CF8;     /* indigo-400 (legible on dark) */
  --indigo-soft:   #EEF2FF;
  --indigo-navy:   #0F0F23;     /* deep indigo-navy for wedge bg */

  /* Per-service accent variables — default = brand */
  --accent:           var(--amber);
  --accent-soft:      var(--amber-soft);
  --accent-on-dark:   var(--gold-dark-bg);
  --accent-ink:       var(--navy-deep);
  --accent-grid-rgb:  148, 163, 184;     /* slate-400 for default dot grid */

  /* Typography */
  --font-serif: "EB Garamond", "Iowan Old Style", "Apple Garamond", Georgia, "Times New Roman", serif;
  --font-sans:  "Lato", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Spacing */
  --space-xs: 4px; --space-sm: 8px; --space-md: 16px;
  --space-lg: 24px; --space-xl: 32px; --space-2xl: 48px; --space-3xl: 64px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 8px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 24px rgba(15, 23, 42, 0.10);

  /* Layout */
  --maxw: 1120px;
  --gutter: 24px;
  --radius: 4px;
  --radius-lg: 8px;
}

/* ───── Per-service accent overrides ───── */

body[data-accent="point-cloud"] {
  --accent: var(--indigo);
  --accent-soft: var(--indigo-soft);
  --accent-on-dark: var(--indigo-bright);
  --accent-ink: var(--indigo-navy);
  --accent-grid-rgb: 99, 102, 241;     /* indigo dots on the dark wedge */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga";
}

/* Focus — visible for keyboard users only, uses the per-service accent */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

a { color: var(--sky); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 180ms ease; }
a:hover { color: var(--sky-hover); }

img, svg { max-width: 100%; display: block; }

/* Skip link */
.skip {
  position: absolute; top: -100px; left: 16px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 12px 18px; text-decoration: none; font-size: 14px;
  border-radius: var(--radius);
}
.skip:focus { top: 16px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 880px; }

/* ───── Top bar ───── */

.topbar {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; gap: 16px;
}
.brand {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  display: flex; align-items: center;
  transition: color 180ms ease;
}
.brand:hover { color: var(--ink-2); }
.brand__logo {
  display: inline-block;
  width: 26px;
  height: 26px;
  margin-right: 9px;
  flex-shrink: 0;
}

.nav {
  display: none; gap: 28px; font-size: 14px; align-items: center;
}
.nav a {
  color: var(--ink-2); text-decoration: none;
  transition: color 180ms ease, opacity 180ms ease;
  position: relative; padding: 6px 0;
  font-weight: 400;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink); font-weight: 700;
}
.nav a[aria-current="page"]::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent);
}
.nav a.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sky); color: var(--paper) !important;
  padding: 9px 16px !important; border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700 !important;
  line-height: 1.3;
  white-space: nowrap;
  transition: background 180ms ease;
}
.nav a.nav__cta:hover { background: var(--sky-hover); color: var(--paper); }
.nav a.nav__cta::after { display: none !important; }
@media (min-width: 768px) {
  .nav { display: flex; }
}

.nav-mobile {
  background: var(--sky); color: var(--paper);
  padding: 10px 14px; border-radius: var(--radius);
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  min-height: 40px; display: inline-flex; align-items: center; gap: 6px;
}
.nav-mobile:hover { background: var(--sky-hover); color: var(--paper); }
@media (min-width: 768px) { .nav-mobile { display: none; } }

/* ───── Hero ───── */

.hero {
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 768px) {
  .hero { padding: 88px 0 72px; }
}
.hero__kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 22px;
  font-weight: 500;
}
.hero__kicker::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  color: var(--ink);
  max-width: 18ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.hero__sub {
  font-size: 18px;
  color: var(--ink-2);
  max-width: 60ch;
  margin: 0 0 32px;
  line-height: 1.6;
}
.hero__sub b { color: var(--ink); font-weight: 700; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Secondary "Book a call" link — sits beside the primary CTA, lighter weight */
.btn--link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--sky);
  text-decoration: none;
  padding: 14px 4px;
  min-height: 44px;
}
.btn--link:hover { color: var(--sky-hover); }
.btn--link svg { width: 16px; height: 16px; }
.endcap .btn--link { color: var(--accent-on-dark); }
.endcap .btn--link:hover { color: var(--paper); }

/* Sticky mobile "Get a Quote" bar — mobile only, appears after scrolling past the hero */
.sticky-cta {
  position: fixed;
  bottom: 16px;
  right: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sky);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease, background 180ms ease;
}
.sticky-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sticky-cta:hover { background: var(--sky-hover); color: var(--paper); }
.sticky-cta svg { width: 16px; height: 16px; }
@media (min-width: 768px) {
  .sticky-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: opacity 1ms linear; }
}

/* ───── Buttons ───── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-sans); font-size: 15px; font-weight: 700;
  padding: 14px 22px; min-height: 44px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease,
              transform 180ms ease, box-shadow 180ms ease;
  line-height: 1;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary {
  background: var(--sky); color: var(--paper);
  border-color: var(--sky);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--sky-hover); border-color: var(--sky-hover);
  box-shadow: var(--shadow-md); color: var(--paper);
}
.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ───── Section primitive ───── */

.section { padding: 56px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 768px) { .section { padding: 80px 0; } }
.section--surface { background: var(--surface); }

/* Dark wedge section — per-service accent ink + subtle dot grid */
.section--ink {
  position: relative;
  background: var(--accent-ink);
  color: var(--paper);
  border-bottom-color: var(--ink);
  overflow: hidden;
}
.section--ink::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at center, rgba(var(--accent-grid-rgb), 0.10) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,1) 30%, rgba(0,0,0,1) 70%, rgba(0,0,0,0.6) 100%);
}
.section--ink .container { position: relative; z-index: 1; }
.section--ink .eyebrow { color: var(--accent-on-dark); }
.section--ink h2 { color: var(--paper); }
.section--ink p { color: #C5CAD3; }
.section--ink a { color: var(--accent-on-dark); }
.section--ink a:hover { color: var(--paper); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
  font-weight: 500;
}

h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  margin: 0 0 22px;
  color: var(--ink);
  max-width: 26ch;
}

h3 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 10px;
  color: var(--ink);
  line-height: 1.35;
}

p { margin: 0 0 14px; color: var(--ink-2); }
p.lead { font-size: 18px; color: var(--ink-2); max-width: 60ch; line-height: 1.65; }

/* ───── Grids (mobile-first) ───── */

.grid { display: grid; gap: 24px; }
.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid { gap: 32px; }
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ───── Deliverable cards ───── */

.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 28px;
  border-radius: var(--radius-lg);
  height: 100%;
  display: flex; flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  text-decoration: none;
}
.card__icon {
  width: 28px; height: 28px;
  color: var(--accent);
  margin-bottom: 18px;
  flex-shrink: 0;
}
.card__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}
.card h3 { margin-bottom: 8px; font-size: 19px; }
.card p { margin: 0; color: var(--ink-3); font-size: 15px; line-height: 1.55; }
.card__more {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--sky);
  font-weight: 700;
  text-decoration: none;
}
.card__more:hover { color: var(--sky-hover); }
.card__more svg { width: 14px; height: 14px; }

/* ───── Stat strip ───── */

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat {
  padding: 24px 20px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat:nth-child(2n) { border-right: none; }
.stat:nth-last-child(-n+2) { border-bottom: none; }
@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat {
    padding: 32px 24px;
    border-right: 1px solid var(--rule);
    border-bottom: none;
  }
  .stat:last-child { border-right: none; }
  .stat:nth-child(2n) { border-right: 1px solid var(--rule); }
}
.stat__num {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 768px) { .stat__num { font-size: 38px; } }
.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

/* ───── Wedge (dark section quote) ───── */

.wedge-wrap {
  position: relative;
  margin-bottom: 16px;
}
.wedge-wrap::before {
  content: '"';
  position: absolute;
  top: -36px;
  left: -10px;
  font-family: var(--font-serif);
  font-size: clamp(120px, 18vw, 200px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  pointer-events: none;
  font-weight: 700;
}
@media (min-width: 768px) {
  .wedge-wrap::before { top: -48px; left: -28px; }
}
.wedge {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.3;
  color: var(--paper);
  max-width: 30ch;
  margin: 0;
  letter-spacing: -0.01em;
  font-weight: 400;
  position: relative;
}

/* ───── Process steps ───── */

.process { counter-reset: step; }
.process__item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
@media (min-width: 768px) {
  .process__item { grid-template-columns: 60px 1fr; gap: 28px; padding: 28px 0; }
}
.process__item:last-child { border-bottom: 1px solid var(--rule); }
.process__icon {
  width: 28px; height: 28px;
  color: var(--accent);
  margin-top: 2px;
}
.process__body h3 { margin-bottom: 4px; }
.process__body p { margin: 0; color: var(--ink-3); font-size: 15px; line-height: 1.6; }

/* ───── Projects grid ───── */

.projects {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--rule);
}
.project {
  padding: 24px 20px;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 768px) {
  .projects { grid-template-columns: repeat(3, 1fr); }
  .project {
    padding: 28px 24px;
    border-right: 1px solid var(--rule);
  }
  .project:nth-child(3n) { border-right: none; }
}
.project__name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
  letter-spacing: -0.005em;
}
.project__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
  font-weight: 500;
}

/* ───── Work page — full project sections ───── */

.work-projects { counter-reset: project; }

.work-project {
  counter-increment: project;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 56px 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 24px;
}
.work-project:first-of-type { border-top: none; padding-top: 16px; }
@media (min-width: 768px) {
  .work-project {
    flex-direction: row;
    gap: 64px;
    align-items: center;
    padding: 88px 0;
  }
  .work-project--reverse { flex-direction: row-reverse; }
  .work-project > * { flex: 1; min-width: 0; }
}
.work-project__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 32px rgba(15, 23, 42, 0.08);
  transition: transform 300ms ease, box-shadow 300ms ease;
}
.work-project__img:hover {
  transform: translateY(-2px);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 18px 40px rgba(15, 23, 42, 0.12);
}
.work-project__img img {
  width: 100%; display: block; object-fit: cover;
  aspect-ratio: 4/3;
}
/* Editorial project number + sector eyebrow */
.work-project__body::before {
  content: counter(project, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
  position: relative;
  padding-left: 24px;
}
.work-project__body::after {
  content: '';
  position: absolute;
  display: none;
}
/* Tiny accent rule beside the project number */
.work-project__body { position: relative; }
.work-project__body > *:first-of-type::before,
.work-project__body::before {
  /* number is sole pseudo; line via inline-block trick below isn't needed */
}
.work-project__sector {
  display: inline-block;
  margin-left: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.work-project__body h2 {
  font-size: clamp(30px, 4.2vw, 42px);
  margin: 0 0 8px;
  max-width: none;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.work-project__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 22px;
  font-weight: 500;
}
.work-project__body p {
  color: var(--ink-2);
  margin-bottom: 14px;
  font-size: 17px;
  line-height: 1.65;
  max-width: 54ch;
}
.work-project__deliverables {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 24px 0 26px;
  padding: 0; list-style: none;
}
.work-project__deliverables li {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 7px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.work-project__cta {
  font-size: 14px;
  color: var(--sky);
  font-weight: 700;
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  margin-top: 4px;
}
.work-project__cta:hover { color: var(--sky-hover); gap: 12px; }
.work-project__cta svg { width: 14px; height: 14px; transition: transform 180ms ease; }

/* ───── Chip row (software / format tags — services pages) ───── */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.chip {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 7px 14px;
  background: var(--surface);
  border: 1px solid var(--rule);
  color: var(--ink-2);
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ───── Service overview grid breadcrumb-style back link ───── */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: none;
  margin-bottom: 18px;
}
.back-link:hover { color: var(--accent); }
.back-link svg { width: 14px; height: 14px; }

/* ───── Legal / privacy page ───── */

.legal-content { max-width: 70ch; }
.legal-content h2 {
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 14px;
  max-width: none;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 16px;
  margin-top: 24px;
  margin-bottom: 8px;
}
.legal-content p { line-height: 1.7; }
.legal-content ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--ink-2);
  line-height: 1.7;
}
.legal-content li { margin-bottom: 6px; }
.legal-content .legal-updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 32px;
}

/* ───── Contact page ───── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: minmax(220px, 320px) 1fr;
    gap: 64px;
    align-items: start;
  }
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.contact-list li:first-child { border-top: none; padding-top: 0; }
.contact-list svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.contact-list a:hover { color: var(--sky); text-decoration: underline; }
.contact-list .contact-list__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin: 0 0 4px;
}

.contact-form-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 32px;
}
@media (min-width: 768px) {
  .contact-form-card { padding: 40px; }
}
.contact-form-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.contact-form-card .lead { margin-bottom: 28px; font-size: 16px; }

/* HubSpot form — light reset so it inherits our type system instead of fighting it */
.hs-form-frame, .hbspt-form {
  font-family: var(--font-sans) !important;
}
.hbspt-form label {
  font-family: var(--font-sans) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  margin-bottom: 6px !important;
}
.hbspt-form input,
.hbspt-form textarea,
.hbspt-form select {
  font-family: var(--font-sans) !important;
  font-size: 16px !important;
  border: 1px solid var(--rule) !important;
  border-radius: var(--radius) !important;
  padding: 12px 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  color: var(--ink) !important;
  background: var(--paper) !important;
}
.hbspt-form input:focus,
.hbspt-form textarea:focus,
.hbspt-form select:focus {
  outline: none !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 3px var(--accent-soft) !important;
}
.hbspt-form .hs-form-field { margin-bottom: 18px !important; }
.hbspt-form .hs-button,
.hbspt-form input[type="submit"] {
  font-family: var(--font-sans) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  background: var(--sky) !important;
  color: var(--paper) !important;
  border: none !important;
  border-radius: var(--radius) !important;
  padding: 14px 24px !important;
  min-height: 44px !important;
  cursor: pointer !important;
  transition: background 180ms ease !important;
}
.hbspt-form .hs-button:hover,
.hbspt-form input[type="submit"]:hover {
  background: var(--sky-hover) !important;
}
.hbspt-form .hs-error-msgs { color: #B91C1C !important; font-size: 13px !important; list-style: none; padding: 0; margin: 4px 0 0; }
.hbspt-form .submitted-message {
  font-family: var(--font-serif) !important;
  font-size: 19px !important;
  color: var(--ink) !important;
}

/* Fallback / no-JS contact note */
.contact-fallback {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-3);
}
.contact-fallback a { color: var(--sky); }

/* ───── Project action row + gallery button ───── */

.work-project__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  margin-top: 4px;
}
.work-project__gallery-btn {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  background: none;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  letter-spacing: 0.005em;
  transition: opacity 180ms ease;
}
.work-project__gallery-btn:hover { opacity: 0.7; }
.work-project__gallery-btn svg { width: 16px; height: 16px; }

/* ───── Project lightbox (native dialog) ───── */

.lightbox {
  border: none;
  padding: 0;
  width: 92vw;
  max-width: 1200px;
  max-height: 92vh;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.5);
  overflow: hidden;
  color: var(--ink-2);
}
.lightbox::backdrop {
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
}
.lightbox__inner {
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-height: 92vh;
  overflow: hidden;
}
.lightbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
}
.lightbox__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.lightbox__counter {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
  font-weight: 500;
  flex-shrink: 0;
}
.lightbox__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-2);
  padding: 8px;
  margin: -8px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 180ms ease, color 180ms ease;
}
.lightbox__close:hover {
  background: var(--rule-2);
  color: var(--ink);
}
.lightbox__close svg { width: 20px; height: 20px; }

.lightbox__body {
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  position: relative;
  overflow: hidden;
}
.lightbox__image {
  max-width: 100%;
  max-height: 65vh;
  display: block;
  object-fit: contain;
}
.lightbox__caption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  letter-spacing: 0.005em;
  max-width: calc(100% - 100px);
}
.lightbox__caption:empty { display: none; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 180ms ease, transform 180ms ease, opacity 180ms ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  z-index: 2;
}
.lightbox__nav:hover { background: var(--paper); }
.lightbox__nav:disabled { opacity: 0.25; cursor: not-allowed; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
.lightbox__nav svg { width: 22px; height: 22px; }

.lightbox__thumbs {
  display: flex;
  gap: 8px;
  padding: 14px 22px;
  border-top: 1px solid var(--rule);
  overflow-x: auto;
  justify-content: center;
  background: var(--paper);
  flex-wrap: nowrap;
}
.lightbox__thumb {
  width: 64px;
  height: 48px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  background: var(--surface);
  padding: 0;
  flex-shrink: 0;
  transition: border-color 180ms ease, transform 180ms ease;
}
.lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lightbox__thumb:hover { border-color: var(--rule); }
.lightbox__thumb.is-active { border-color: var(--accent); }

@media (max-width: 640px) {
  .lightbox { width: 96vw; max-height: 96vh; }
  .lightbox__title { font-size: 17px; }
  .lightbox__counter { display: none; }
  .lightbox__nav { width: 38px; height: 38px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__image { max-height: 55vh; }
}

/* ───── Image-led project cards (homepage Work teaser) ───── */

.projects--image {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  border-top: none;
}
@media (min-width: 640px) {
  .projects--image { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .projects--image { grid-template-columns: repeat(3, 1fr); }
}
.project--image {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  padding: 0;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  cursor: pointer;
}
.project--image:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  text-decoration: none;
}
.project__img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}
.project__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}
.project--image:hover .project__img img {
  transform: scale(1.02);
}
.project__body {
  padding: 20px 22px 22px;
}
.project--image .project__name {
  margin-bottom: 4px;
}
.project--image .project__meta {
  margin: 0;
}

/* ───── FAQ ───── */

.faq__item { padding: 24px 0; border-top: 1px solid var(--rule); }
.faq__item:last-child { border-bottom: 1px solid var(--rule); }
.faq__q {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.005em;
}
.faq__a { margin: 0; color: var(--ink-2); max-width: 64ch; line-height: 1.6; }

/* ───── Endcap (final CTA) ───── */

.endcap {
  padding: 64px 0;
  background: var(--ink);
  color: var(--paper);
}
@media (min-width: 768px) { .endcap { padding: 88px 0; } }
.endcap h2 { color: var(--paper); max-width: 24ch; }
.endcap p { color: #C5CAD3; max-width: 52ch; }
.endcap .eyebrow { color: var(--accent-on-dark); }
.endcap .btn--primary {
  background: var(--accent-on-dark);
  border-color: var(--accent-on-dark);
  color: var(--ink);
}
body[data-accent="point-cloud"] .endcap .btn--primary {
  color: var(--ink);
}
.endcap .btn--primary:hover {
  filter: brightness(1.1);
}
.endcap .btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: #475569;
}
.endcap .btn--ghost:hover {
  background: var(--paper); color: var(--ink); border-color: var(--paper);
}

/* ───── Footer ───── */

.footer {
  padding: 32px 0;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  color: var(--ink-3);
  font-size: 14px;
}
.footer__row {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.footer__row a { color: var(--ink-3); }

/* ───── Feature list (brand home) ───── */

.feature-list { padding: 0; margin: 0; list-style: none; }
.feature-list li {
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  font-size: 17px;
  color: var(--ink-2);
  display: flex; align-items: start; gap: 14px;
  line-height: 1.55;
}
.feature-list li:last-child { border-bottom: 1px solid var(--rule); }
.feature-list svg {
  width: 22px; height: 22px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.feature-list strong { color: var(--ink); font-weight: 700; }

/* ───── Utilities ───── */

.tight { margin-bottom: 0; }
.spacer-24 { height: 24px; }
.spacer-32 { height: 32px; }
.spacer-48 { height: 48px; }
.muted { color: var(--ink-3); }
.mono { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em; }

/* ───── Hero fade-in (single calm cue, respects reduced motion) ───── */

@media (prefers-reduced-motion: no-preference) {
  .hero__kicker { animation: heroIn 600ms ease-out 0ms backwards; }
  .hero h1     { animation: heroIn 600ms ease-out 80ms backwards; }
  .hero__sub   { animation: heroIn 600ms ease-out 180ms backwards; }
  .hero .cta-row { animation: heroIn 600ms ease-out 280ms backwards; }
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ───── Reduced motion guard ───── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .card:hover, .btn:hover { transform: none; }
}
