/* Snowball IMN — clear-sky layout: white space, one brand blue, a sky hero with the LiDAR terrain.
   Tokens come from the Snowball IMN design system. Deliberately a single light look. */
:root {
  --canvas: #ffffff;
  --mist: #f3f8fc;
  --haze: #e2f0fb;
  --sky-light: #b9dcf7;
  --sky-zenith: #4a9be8;
  --sky: #1f74d1;
  --sky-deep: #0f5cb3;
  --on-sky: #ffffff;
  --ink: #0b1a2b;
  --ink-muted: #4d5f74;
  --line: #dce6ef;
  --line-strong: #6f8196;
  --laser-green: #0f9a76;

  --font-sans: Manrope, "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --space-2: 8px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-16: 64px; --space-32: 128px;
  --radius-sm: 8px; --radius-md: 16px; --radius-lg: 24px; --radius-pill: 999px;
  --shadow-float: 0 12px 40px rgba(11, 26, 43, 0.08);
  --container: 1200px;
  --measure: 64ch;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 16px/26px var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--sky-deep); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* page gutters */
.page { padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.wrap { max-width: var(--container); margin-inline: auto; }

/* type */
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 var(--space-6);
  font: 700 12px/16px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--line-strong); flex: none; }
.display-xl { margin: 0; font-size: clamp(44px, 7vw, 80px); line-height: 1; font-weight: 600; letter-spacing: -.035em; }
.display-l { margin: 0; font-size: clamp(32px, 4.4vw, 48px); line-height: 1.05; font-weight: 600; letter-spacing: -.03em; }
.heading { margin: 0; font-size: 22px; line-height: 30px; font-weight: 600; letter-spacing: -.01em; }
.body-l { margin: 0; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.58; color: var(--ink-muted); max-width: var(--measure); }
.data { font: 400 13px/20px var(--font-mono); font-variant-numeric: tabular-nums; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px;
  border-radius: var(--radius-pill); border: 1px solid transparent; font: 600 15px/1 var(--font-sans);
  text-decoration: none; cursor: pointer; transition: background-color .18s ease, border-color .18s ease, color .18s ease; white-space: nowrap; }
.btn-primary { background: var(--sky); color: var(--on-sky); }
.btn-primary:hover { background: var(--sky-deep); }
.btn-secondary { background: var(--canvas); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--mist); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

/* nav: a floating pill that stays with you */
.nav { position: fixed; z-index: 20; left: 50%; transform: translateX(-50%);
  top: calc(env(safe-area-inset-top, 0px) + 28px);
  width: min(1120px, calc(100% - 2 * max(var(--gutter), env(safe-area-inset-left, 0px)) - 32px));
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: 8px 8px 8px 24px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: var(--shadow-float); }
.logo { font-weight: 700; font-size: 17px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; gap: var(--space-8); list-style: none; margin: 0; padding: 0; }
.nav-links a { font: 700 12px/16px var(--font-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }

/* hero: the sky, with the LiDAR terrain across the bottom */
.hero-frame { padding-top: max(var(--space-4), env(safe-area-inset-top, 0px)); }
.hero { position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--sky-zenith) 0%, var(--sky-light) 48%, var(--haze) 74%, var(--canvas) 100%);
  padding: 176px max(var(--gutter), 24px) 330px; }
.hero-copy { position: relative; z-index: 1; max-width: var(--container); margin-inline: auto; }
.hero-copy .eyebrow { color: var(--ink); }
.hero-copy .eyebrow::before { background: var(--ink); }
.hero-copy .body-l { margin: var(--space-6) 0 var(--space-8); max-width: 52ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.terrain { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 340px; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 80%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 80%, transparent 100%); }

/* sections */
.section { padding-block: clamp(80px, 11vw, 128px) 0; }
.section-head { display: grid; gap: var(--space-6); max-width: 820px; margin-bottom: var(--space-16); }
.section-head .eyebrow { margin: 0; }

/* the gap: three plain facts about a locate */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8); list-style: none; margin: 0; padding: 0; }
.facts li { border-top: 1px solid var(--line); padding-top: var(--space-6); display: grid; gap: var(--space-2); align-content: start; }
.facts .data { color: var(--sky-deep); text-transform: uppercase; letter-spacing: .08em; }
.facts p { margin: 0; color: var(--ink-muted); }

/* what we map */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.service { background: var(--mist); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.service-media { position: relative; aspect-ratio: 4 / 3; flex: none; background: var(--haze); }
.service-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.service-body { padding: var(--space-8); display: grid; gap: var(--space-2); align-content: start; flex: 1; }
.service-body p { margin: 0; color: var(--ink-muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--space-4); padding: 0; list-style: none; }
.tags li { font: 400 12px/16px var(--font-mono); color: var(--ink); background: var(--canvas); border-radius: var(--radius-pill); padding: 6px 12px; }

/* deliverables */
.files { border-top: 1px solid var(--line); margin: 0; padding: 0; list-style: none; }
.files li { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr) minmax(0, 1.2fr); gap: var(--space-8);
  align-items: baseline; padding-block: var(--space-6); border-bottom: 1px solid var(--line); }
.files .heading { font-size: 19px; line-height: 26px; }
.files p { margin: 0; color: var(--ink-muted); }
.files .data { color: var(--ink); text-align: right; }
.files-note { margin: var(--space-6) 0 0; color: var(--ink-muted); font-size: 14px; }
.files-note .data { color: var(--ink); }

/* how it works: a real sequence */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-8); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; display: grid; gap: var(--space-2); align-content: start; padding-top: 64px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--sky); color: var(--sky-deep); font: 600 15px/1 var(--font-sans); background: var(--canvas); }
.steps li::after { content: ""; position: absolute; top: 20px; left: 52px; right: calc(-1 * var(--space-8) + 12px); height: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps p { margin: 0; color: var(--ink-muted); }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-copy { display: grid; gap: var(--space-6); }
.about-copy .eyebrow { margin: 0; }
.about-copy .body-l { color: var(--ink); }
.quote { margin: var(--space-2) 0 0; padding: 0; font-size: 22px; line-height: 32px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.quote::before { content: "\201C"; color: var(--sky); }
.quote::after { content: "\201D"; color: var(--sky); }
.sign { margin: 0; color: var(--ink-muted); font-size: 15px; }
.about figure { margin: 0; }
.about figure img { border-radius: var(--radius-lg); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about figcaption { margin-top: var(--space-2); font-size: 13px; color: var(--ink-muted); }

/* contact */
.contact-band { background: var(--mist); border-radius: var(--radius-lg); padding: clamp(32px, 6vw, 72px); }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-copy { display: grid; gap: var(--space-6); }
.contact-copy .eyebrow { margin: 0; }
.place { display: grid; gap: 4px; margin: var(--space-4) 0 0; padding-top: var(--space-6); border-top: 1px solid var(--line); }
.place .data { color: var(--ink-muted); }
.form { background: var(--canvas); border-radius: var(--radius-md); padding: clamp(24px, 3vw, 40px); display: grid; gap: var(--space-4); grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: var(--space-2); min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font: 700 12px/16px var(--font-sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }
.field label span { font-weight: 400; letter-spacing: .04em; text-transform: none; }
.field input, .field select, .field textarea { width: 100%; font: 400 16px/24px var(--font-sans); color: var(--ink);
  background: var(--canvas); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 11px 14px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--sky); outline-offset: 0; border-color: var(--sky); }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.form-status { margin: 0; font-size: 14px; color: var(--ink-muted); min-height: 22px; }
.form-status.is-error { color: #b42318; }
.form-status.is-ok { color: var(--sky-deep); }
.hp { position: absolute; left: -9999px; }

/* footer */
.footer { margin-top: clamp(64px, 9vw, 112px); border-top: 1px solid var(--line); padding-block: var(--space-8) calc(var(--space-8) + env(safe-area-inset-bottom, 0px)); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8); justify-content: space-between; color: var(--ink-muted); font-size: 14px; }
.footer a { color: var(--ink-muted); }

/* gentle reveal for content below the first screen (set by main.js only) */
.reveal.is-pending { opacity: 0; transform: translateY(16px); }
.reveal { transition: opacity .6s cubic-bezier(.2, 0, 0, 1), transform .6s cubic-bezier(.2, 0, 0, 1); }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal.is-pending { opacity: 1; transform: none; transition: none; } }

/* tablet */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .service { flex-direction: row; }
  .service-media { width: 40%; aspect-ratio: auto; min-height: 240px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-16); }
  .steps li:nth-child(2)::after { display: none; }
  .about, .contact { grid-template-columns: minmax(0, 1fr); }
  .files li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  .files .data { grid-column: 2; text-align: left; }
}
/* phone */
@media (max-width: 640px) {
  .nav { top: calc(env(safe-area-inset-top, 0px) + 24px); width: calc(100% - 2 * max(16px, env(safe-area-inset-left, 0px)) - 16px); padding-left: 18px; }
  .hero { padding: 140px 24px 280px; }
  .terrain { height: 280px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .service { flex-direction: column; }
  .service-media { width: 100%; aspect-ratio: 16 / 10; min-height: 0; }
  .service-body { padding: var(--space-6); }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-8); }
  .steps li::after { display: none; }
  .files li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .files .data { grid-column: auto; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .contact-band { padding: 28px 20px; }
}
