/* 3d-scan.si — production design system (V13 sprint winner, MASTER.md is law)
   Light base · ice blue · dark instrument panels · Inter Tight + IBM Plex Mono */

@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #f6f7f9;
  --ink: #13161b;
  --dim: #6a7280;
  --blue: #1b61d2;
  --ice: #8ec5ff;
  --line: #e2e5ea;
  --panel: #090d12;
  --mono: 'IBM Plex Mono', Consolas, monospace;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; color-scheme: light; }
[id] { scroll-margin-top: 110px; }
a, button, input, select, textarea { touch-action: manipulation; }
body { background: var(--bg); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
h1, h2, h3 { text-wrap: balance; }
::selection { background: var(--blue); color: #fff; }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--dim); }
.wrap { max-width: 1400px; margin-inline: auto; padding-inline: clamp(20px, 3.4vw, 44px); }

/* ---------- section heads ---------- */
.shead { margin-bottom: 36px; }
.shead .eyebrow, .eyebrow { display: block; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
h2 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.018em; line-height: 1.15; }
h3 { font-weight: 600; }
.shead--row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.shead .sub, .sub { color: var(--dim); margin-top: 14px; max-width: 58ch; }
section.block { padding-block: 11vh 0; }

/* ---------- nav ---------- */
nav.site { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; border-bottom: 1px solid transparent; }
nav.site .wrap { display: flex; align-items: center; gap: 14px; height: 90px; }
nav.site .brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
nav.site .brand img { width: 84px; height: 84px; transition: filter 0.3s; }
nav.site .brand b { font-weight: 600; font-size: 20px; letter-spacing: -0.01em; color: var(--ink); transition: color 0.3s; }
nav.site .links { margin-left: auto; display: flex; gap: 4px; align-items: center; }
nav.site .links > a, nav.site .dd > button {
  color: var(--dim); text-decoration: none; font-family: var(--mono); font-size: 11px; letter-spacing: 0.11em; text-transform: uppercase;
  transition: color 0.2s; background: none; border: none; cursor: pointer; padding: 10px 12px; display: inline-flex; align-items: center; gap: 7px;
}
nav.site .links > a:hover, nav.site .dd > button:hover { color: var(--ink); }
nav.site .links > a[aria-current="page"] { color: var(--ink); }
nav.site .links a.cta { color: var(--ink); border: 1px solid var(--ink); padding: 12px 18px; border-radius: 3px; margin-left: 10px; transition: 0.25s; }
nav.site .links a.cta:hover { background: var(--ink); color: #fff; }
/* dark variant over the home hero */
nav.site.on-dark .brand img { filter: invert(1); mix-blend-mode: screen; }
nav.site.on-dark .brand b { color: #fff; }
nav.site.on-dark .links > a, nav.site.on-dark .dd > button { color: rgba(255, 255, 255, 0.85); }
nav.site.on-dark .links > a:hover, nav.site.on-dark .dd > button:hover { color: #fff; }
nav.site.on-dark .links a.cta { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
nav.site.on-dark .links a.cta:hover { background: #fff; color: var(--ink); border-color: #fff; }
/* solid state (scrolled, or pages without dark hero) */
nav.site.solid { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(19, 22, 27, 0.25); }
nav.site.solid .brand img { filter: none; mix-blend-mode: normal; }
nav.site.solid .brand b { color: var(--ink); }
nav.site.solid .links > a, nav.site.solid .dd > button { color: var(--dim); }
nav.site.solid .links > a:hover, nav.site.solid .dd > button:hover { color: var(--ink); }
nav.site.solid .links a.cta { color: var(--ink); border-color: var(--ink); }
nav.site.solid .links a.cta:hover { background: var(--ink); color: #fff; }

/* dropdowns */
.dd { position: relative; }
.dd > button .chev { font-size: 9px; transition: transform 0.25s; }
.dd.open > button .chev { transform: rotate(180deg); }
.dd-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 280px;
  background: #fff; border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 24px 50px -24px rgba(19, 22, 27, 0.35);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.22s, transform 0.22s var(--ease), visibility 0.22s;
}
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu a { display: flex; align-items: baseline; gap: 12px; padding: 11px 12px; border-radius: 4px; text-decoration: none; color: var(--ink); font-size: 14.5px; }
.dd-menu a .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--blue); }
.dd-menu a:hover { background: var(--bg); }
.dd-menu .all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; color: var(--dim); font-size: 13.5px; }

/* mobile nav */
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 3px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 16px; color: var(--ink); cursor: pointer; }
nav.site.on-dark .nav-toggle { color: #fff; border-color: rgba(255, 255, 255, 0.4); }
nav.site.solid .nav-toggle { color: var(--ink); border-color: var(--line); }
@media (max-width: 1060px) {
  nav.site .wrap { height: 76px; }
  nav.site .brand img { width: 52px; height: 52px; }
  .nav-toggle { display: block; }
  nav.site .links {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px clamp(20px, 3.4vw, 44px) 22px;
    max-height: calc(100vh - 76px); overflow: auto;
  }
  nav.site .links.open { display: flex; }
  nav.site .links > a, nav.site .dd > button { color: var(--ink) !important; padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; font-size: 13px; }
  .dd-menu { position: static; opacity: 1; visibility: visible; transform: none; border: none; box-shadow: none; padding: 0 0 0 16px; display: none; }
  .dd.open .dd-menu { display: block; }
  nav.site .links a.cta { margin: 16px 0 0; text-align: center; }
}

/* ---------- buttons ---------- */
.btn { display: inline-block; text-decoration: none; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 15px 24px; border-radius: 3px; transition: background 0.25s, border-color 0.25s, color 0.25s; border: none; cursor: pointer; font-weight: 500; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--blue); }
.btn--ghost { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--white { background: #fff; color: var(--panel); }
.btn--white:hover { background: rgba(255, 255, 255, 0.72); }
.btn--ghostw { border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; background: transparent; }
.btn--ghostw:hover { border-color: #fff; }

/* ---------- compare (photo <-> scan) ---------- */
.compare { position: relative; touch-action: pan-y; }
.compare__media { position: absolute; inset: 0; }
.compare__layer { position: absolute; inset: 0; }
.compare__layer img, .compare__layer canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__layer--top { clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0); will-change: clip-path; transform: translateZ(0); }
.compare__divider { position: absolute; top: 0; bottom: 0; left: var(--split, 50%); width: 1.5px; background: var(--ice); pointer-events: none; z-index: 3; box-shadow: 0 0 14px rgba(142, 197, 255, 0.6); will-change: left; transform: translateZ(0); }
.compare__handle { position: absolute; top: 46%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--ice); background: rgba(8, 12, 17, 0.6); color: var(--ice); display: flex; align-items: center; justify-content: center; font-size: 11px; backdrop-filter: blur(3px); }
.compare__label { position: absolute; bottom: 12px; z-index: 6; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; background: rgba(9, 13, 18, 0.72); color: #c8d2dd; pointer-events: none; }
.compare__label--a { left: 12px; }
.compare__label--b { right: 12px; color: var(--ice); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: ew-resize; z-index: 4; }
.compare__range:focus-visible ~ .compare__divider { outline: 2px solid #fff; }

/* ---------- home fullscreen hero ---------- */
.fhero { position: relative; height: 100vh; min-height: 600px; background: var(--panel); overflow: hidden; }
.fhero--sub { height: 74vh; min-height: 520px; }
.fhero--sub .fhero__content { bottom: 7vh; }
.fhero .compare { position: absolute; inset: 0; }
.fhero .compare__label { bottom: 20px; }
.fhero .compare__label--a { left: clamp(16px, 3vw, 44px); }
.fhero .compare__label--b { right: clamp(16px, 3vw, 44px); }
.fhero__grad { position: absolute; inset: 0; z-index: 4; pointer-events: none; background: linear-gradient(180deg, rgba(5, 8, 12, 0.35) 0%, transparent 26%, transparent 46%, rgba(5, 8, 12, 0.88) 90%); }
.fhero__content { position: absolute; left: 0; right: 0; bottom: 9vh; z-index: 5; color: #fff; pointer-events: none; }
.fhero__content .eyebrow { color: var(--ice); margin-bottom: 0; }
.fhero__content h1 { font-size: clamp(30px, 3.6vw, 50px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin-top: 14px; max-width: 20ch; text-shadow: 0 2px 24px rgba(5, 8, 12, 0.5); }
.fhero__content .lead { color: rgba(236, 241, 246, 0.85); margin-top: 14px; max-width: 52ch; }
.btns { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.btns .btn { pointer-events: auto; }

/* ---------- subpage hero ---------- */
.phero { padding-block: calc(96px + 8vh) 0; }
.phero--split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 72px); align-items: center; }
.phero h1 { font-size: clamp(28px, 3.2vw, 44px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.phero .lead { color: var(--dim); margin-top: 16px; max-width: 54ch; font-size: 17px; }
.phero__panel { position: relative; border-radius: 6px; overflow: hidden; background: var(--panel); aspect-ratio: 4/3; box-shadow: 0 34px 70px -34px rgba(9, 13, 18, 0.5); }
.phero__panel .compare { position: absolute; inset: 0; }
.phero__panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.65); }
.phero__panel .corner { position: absolute; top: 12px; left: 12px; z-index: 6; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(200, 214, 228, 0.9); background: rgba(9, 13, 18, 0.6); padding: 4px 8px; border-radius: 3px; }
@media (max-width: 1000px) { .phero--split { grid-template-columns: 1fr; } }

/* ---------- field cards (hover -> scan) ---------- */
.fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fields--3 { grid-template-columns: repeat(3, 1fr); }
.fcard { position: relative; overflow: hidden; border-radius: 6px; background: var(--panel); aspect-ratio: 3/4; display: block; text-decoration: none; color: #fff; }
.fcard canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fcard img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.65); transition: opacity 0.32s ease; }
.fcard:hover img.photo { opacity: 0; }
.fcard .lab { position: absolute; left: 0; right: 0; bottom: 0; padding: 52px 16px 16px; background: linear-gradient(transparent, rgba(5, 8, 12, 0.88) 62%); z-index: 3; }
.fcard .lab .mono { color: var(--ice); }
.fcard .lab h3 { font-size: 18px; margin-top: 3px; }
.fcard .lab p { font-size: 12.5px; color: rgba(255, 255, 255, 0.72); margin-top: 3px; line-height: 1.4; }
.fcard .lab .hint { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(142, 197, 255, 0); transition: color 0.25s; }
.fcard:hover .lab .hint { color: rgba(142, 197, 255, 0.9); }
@media (max-width: 1000px) { .fields { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { margin-top: 12vh; background: var(--panel); color: #e9eef3; position: relative; overflow: hidden; }
.cta-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.45; }
.cta-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 13, 18, 0.55), transparent 55%); }
.cta-band .in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(28px, 4vw, 72px); align-items: center; padding-block: 11vh; }
.cta-band .eyebrow { color: var(--ice); margin-bottom: 0; }
.cta-band h2 { color: #fff; margin-top: 14px; max-width: 22ch; font-size: clamp(26px, 3vw, 40px); }
.cta-band .sub { color: rgba(233, 238, 243, 0.75); margin-top: 14px; max-width: 48ch; }
.cta-band .side { justify-self: end; align-self: center; display: flex; flex-direction: column; align-items: center; padding-top: 26px; }
.cta-band .side .tel { display: block; margin-top: 14px; color: rgba(233, 238, 243, 0.7); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-decoration: none; }
.cta-band .side .tel:hover { color: #fff; }
@media (max-width: 1000px) { .cta-band .in { grid-template-columns: 1fr; } .cta-band .side { justify-self: start; padding-top: 0; align-items: flex-start; } }

/* ---------- project cards ---------- */
.projects { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.6vw, 34px); }
.pcard .pc { position: relative; border-radius: 6px; overflow: hidden; background: var(--panel); aspect-ratio: 16/10; }
.pcard .pc .compare { position: absolute; inset: 0; }
.pcard .meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; }
.pcard .meta .mono:first-child { color: var(--blue); }
.pcard .info { margin-top: 10px; }
.pcard .info h3 { font-size: 19px; }
.pcard .info p { color: var(--dim); font-size: 14.5px; margin-top: 6px; max-width: 60ch; }
.pcard .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pcard .tags span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--dim); border: 1px solid var(--line); background: #fff; border-radius: 3px; padding: 5px 9px; }
@media (max-width: 900px) { .projects { grid-template-columns: 1fr; } }

/* ---------- services accordion ---------- */
.svc-split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.svc-intro { color: var(--dim); margin-top: 14px; max-width: 52ch; }
.svc-preview { border-radius: 6px; overflow: hidden; background: var(--panel); position: relative; width: 100%; height: 100%; }
.svc-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.62); opacity: 1; transition: opacity 0.4s; }
.svc-preview img.fade { opacity: 0; }
.svc-preview .tag { position: absolute; bottom: 10px; left: 10px; z-index: 2; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #c8d2dd; background: rgba(9, 13, 18, 0.7); padding: 4px 8px; border-radius: 3px; }
.scard { background: #fff; border: 1px solid var(--line); border-radius: 6px; margin-bottom: 12px; overflow: hidden; transition: border-color 0.25s; }
.svc-right .scard:last-child { margin-bottom: 0; }
.scard.active { border-color: var(--ink); }
.scard__head { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 20px; width: 100%; background: none; border: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.scard__head .n { font-family: var(--mono); font-size: 11px; color: var(--blue); }
.scard__head h3 { font-size: 16.5px; font-weight: 500; }
.scard__head .tag { font-family: var(--mono); font-size: 10.5px; color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; display: flex; align-items: center; gap: 12px; }
.scard__head .chev { transition: transform 0.35s var(--ease); font-size: 12px; color: var(--dim); }
.scard.active .chev { transform: rotate(180deg); color: var(--blue); }
.scard__body { display: grid; grid-template-rows: minmax(0, 0fr); overflow: hidden; transition: grid-template-rows 0.45s var(--ease); }
.scard__body .bwrap { overflow: hidden; min-height: 0; height: 118px; padding: 0 20px 20px 92px; }
.scard__body p { color: var(--dim); font-size: 14px; line-height: 1.55; }
.scard__body a { color: var(--blue); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; display: inline-block; margin-top: 8px; }
.scard__body a:hover { text-decoration: underline; text-underline-offset: 3px; }
.scard.active .scard__body { grid-template-rows: minmax(0, 1fr); }
@media (max-width: 1000px) { .svc-split { grid-template-columns: 1fr; } .svc-preview { height: auto; aspect-ratio: 4/3; } .scard__body .bwrap { padding-left: 20px; height: auto; padding-bottom: 20px; } }

/* ---------- generic two-col content ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.duo .im { border-radius: 6px; overflow: hidden; background: var(--panel); aspect-ratio: 4/3; position: relative; }
.duo .im img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.65); }
.duo p { color: var(--dim); margin-top: 12px; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }

/* checklists / spec lists */
.speclist { list-style: none; margin: 0; padding: 0; }
.speclist li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.speclist li:last-child { border-bottom: 1px solid var(--line); }
.speclist li::before { content: '▸'; color: var(--blue); font-size: 12px; flex: none; }
.speclist li span.soft { color: var(--dim); }

/* step cards */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.step .k { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--blue); }
.step h3 { font-size: 17px; margin-top: 10px; }
.step p { color: var(--dim); font-size: 14px; margin-top: 8px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* value cards (o nas) */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.vcard { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 22px; }
.vcard h3 { font-size: 16.5px; }
.vcard p { color: var(--dim); font-size: 13.5px; margin-top: 6px; }
@media (max-width: 1000px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field--full { grid-column: 1 / -1; }
.form-field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.form-field input, .form-field select, .form-field textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 14px; transition: border-color 0.2s; }
.form-field input:hover, .form-field select:hover, .form-field textarea:hover { border-color: var(--dim); }
.form-field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.75 6 6.25l4.5-4.5' fill='none' stroke='%236a7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px;
}
.form-field select:focus-visible {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.75 6 6.25l4.5-4.5' fill='none' stroke='%231b61d2' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.form-field input:focus-visible, .form-field select:focus-visible, .form-field textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 0; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- marquee ---------- */
.marq { border-top: 1px solid var(--line); overflow: hidden; background: #fff; margin-top: 11vh; }
.marq--sticky { position: sticky; bottom: 0; z-index: 30; }
.marq-track { display: flex; white-space: nowrap; padding: 20px 0; width: max-content; animation: mq 28s linear infinite; }
.marq-track span { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); padding-right: 64px; }
@keyframes mq { to { transform: translateX(-50%); } }

/* ---------- footer ---------- */
footer.site { margin-top: 0; background: var(--panel); color: #e9eef3; }
.foot-cta { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 4vw, 72px); align-items: center; padding-block: 9vh 7vh; }
.foot-cta .eyebrow { color: var(--ice); margin-bottom: 0; }
.foot-cta h2 { color: #fff; margin-top: 12px; max-width: 20ch; }
.foot-cta .side p { color: rgba(233, 238, 243, 0.72); margin-bottom: 20px; max-width: 44ch; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 4vw, 64px); padding-block: 7vh; border-top: 1px solid rgba(233, 238, 243, 0.12); }
.foot-brand img { width: 104px; height: 104px; filter: invert(1); mix-blend-mode: screen; }
.foot-brand .lockup { margin-top: 14px; }
.foot-brand .lockup b { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.foot-brand .lockup span { display: block; margin-top: 4px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(233, 238, 243, 0.55); }
.foot-brand p.desc { color: rgba(233, 238, 243, 0.65); font-size: 14.5px; margin-top: 16px; max-width: 34ch; }
.foot-col h4 { font-size: 16px; font-weight: 600; margin-bottom: 18px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 11px; }
.foot-col a { color: rgba(233, 238, 243, 0.7); text-decoration: none; font-size: 14.5px; transition: color 0.2s; }
.foot-col a:hover { color: #fff; }
.foot-contact .item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.foot-contact .ic { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(233, 238, 243, 0.25); display: flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.foot-contact .item b { display: block; font-size: 14px; font-weight: 600; }
.foot-contact .item a { color: rgba(233, 238, 243, 0.7); text-decoration: none; font-size: 14.5px; }
.foot-contact .item a:hover { color: #fff; }
.foot-contact .item a.ul { text-decoration: underline; text-underline-offset: 3px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 22px; border-top: 1px solid rgba(233, 238, 243, 0.12); color: rgba(233, 238, 243, 0.5); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; }
.foot-bottom a { color: inherit; text-decoration: none; transition: color 0.2s; }
.foot-bottom a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1000px) { .foot-cta, .foot-grid { grid-template-columns: 1fr; } }

/* ---------- kinetic rows (hover image peek) ---------- */
.krows { position: relative; }
.krow { position: relative; display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center; padding: 24px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.krows .krow:last-child { border-bottom: 1px solid var(--line); }
.krow .n { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: 0.1em; transition: color 0.2s; }
.krow h3 { font-size: clamp(17px, 1.8vw, 22px); font-weight: 500; transition: transform 0.4s var(--ease); }
.krow .tag { font-family: var(--mono); font-size: 10.5px; color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; }
.krow .peek { position: absolute; right: clamp(230px, 19vw, 320px); top: 50%; transform: translateY(-50%) rotate(-2.5deg) scale(0.92); width: clamp(240px, 24vw, 350px); aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; opacity: 0; transition: opacity 0.3s, transform 0.5s var(--ease); pointer-events: none; box-shadow: 0 30px 60px -20px rgba(19, 22, 27, 0.55); z-index: 3; }
.krow .peek img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.55); }
.krow:hover .peek { opacity: 1; transform: translateY(-50%) rotate(0deg) scale(1); }
.krow:hover h3 { transform: translateX(10px); }
.krow:hover .n { color: var(--blue); }
.krow::after { content: ''; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); z-index: 1; }
.krow:hover::after { transform: scaleX(1); }
@media (max-width: 860px) { .krow .peek { display: none; } }

/* ---------- dark cloud band (full-width, content on grid) ---------- */
.dark-band { background: var(--panel); color: #e9eef3; position: relative; overflow: hidden; margin-top: 11vh; }
.dark-band > canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.4; }
.dark-band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 13, 18, 0.6), rgba(9, 13, 18, 0.15) 60%); }
.dark-band .in { position: relative; z-index: 2; padding-block: 10vh; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 72px); align-items: center; }
.dark-band .eyebrow { color: var(--ice); }
.dark-band h2 { color: #fff; }
.dark-band p { color: rgba(233, 238, 243, 0.78); margin-top: 14px; max-width: 48ch; }
@media (max-width: 900px) { .dark-band .in { grid-template-columns: 1fr; } }

/* hover-scan card (photo crossfades to point-cloud render) */
.scanhover { position: relative; overflow: hidden; border-radius: 6px; background: var(--panel); aspect-ratio: 4/3; display: block; }
.scanhover canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanhover img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.65); transition: opacity 0.32s ease; }
.scanhover:hover img.photo { opacity: 0; }
.scanhover .corner { position: absolute; top: 12px; left: 12px; z-index: 6; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(200, 214, 228, 0.9); background: rgba(9, 13, 18, 0.6); padding: 4px 8px; border-radius: 3px; pointer-events: none; }

/* mono stat row (inside dark bands) */
.statrow { display: flex; gap: clamp(24px, 4vw, 64px); flex-wrap: wrap; margin-top: 30px; }
.statrow div b { display: block; font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; color: #fff; }
.statrow div span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.11em; text-transform: uppercase; color: rgba(233, 238, 243, 0.55); margin-top: 6px; display: block; }

/* result cards with image tops */
.mini3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.minicard { background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: border-color 0.25s, transform 0.45s var(--ease); }
.minicard:hover { border-color: var(--ink); transform: translateY(-5px); }
.minicard .im { aspect-ratio: 16/8; overflow: hidden; position: relative; background: var(--panel); }
.minicard .im img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.55); }
.minicard .im .k { position: absolute; bottom: 8px; left: 10px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #c8d2dd; background: rgba(9, 13, 18, 0.72); padding: 4px 8px; border-radius: 3px; }
.minicard .tx { padding: 18px 20px 20px; }
.minicard h3 { font-size: 17px; }
.minicard p { color: var(--dim); font-size: 14px; margin-top: 6px; }
@media (max-width: 900px) { .mini3 { grid-template-columns: 1fr; } }

/* deliverable cards (Kaj dobite) — instrument spec tiles */
.dgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dcard { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 24px 22px 26px; overflow: hidden; transition: border-color 0.25s, transform 0.45s var(--ease); }
.dcard::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); }
.dcard:hover { border-color: var(--ink); transform: translateY(-5px); }
.dcard:hover::before { transform: scaleX(1); }
.dcard .code { display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); border: 1px solid var(--line); border-radius: 3px; padding: 5px 9px; transition: border-color 0.25s; }
.dcard:hover .code { border-color: var(--blue); }
.dcard h3 { font-size: 16.5px; margin-top: 46px; }
.dcard p { color: var(--dim); font-size: 13.5px; margin-top: 7px; line-height: 1.5; }
.dcard .wm { position: absolute; right: 16px; bottom: -14px; font-family: var(--mono); font-size: 60px; font-weight: 500; letter-spacing: -0.05em; color: var(--ink); opacity: 0.05; pointer-events: none; white-space: nowrap; }
@media (max-width: 1000px) { .dgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dgrid { grid-template-columns: 1fr; } }

/* ---------- reveals ---------- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.rv.on { opacity: 1; transform: none; }

/* skip link */
.skip-link { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 3px; text-decoration: none; font-family: var(--mono); font-size: 12px; }
.skip-link:focus { left: 12px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .fcard img.photo { transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  /* equipment marquee keeps rolling by client decision (decorative, aria-hidden) */
  .marq-track { animation-duration: 28s !important; }
}
