/* Deepview home page — local re-implementation.
   Desktop measurements are taken from the live page at 1920px wide; the
   original is a fixed layout centred on the viewport, so offsets below are
   expressed relative to the centre line. */

:root {
  --navy: #040021;
  --ink: #0e1821;
  --blue: #04449c;
  --mist: #c5d0d9;
  --steel: #516371;
  /* Families are declared in assets/fonts/fonts.css under the live site's names. */
  --f-head: "montserrat", sans-serif;
  --f-body: "roboto-thin", "roboto", sans-serif;       /* the site uses this face at weight 700 */
  --f-ui: "proxima-n-w01-reg", sans-serif;             /* Figtree stands in for Proxima Nova */
  --f-btn: "avenir-lt-w01_85-heavy1475544", sans-serif; /* Nunito Sans stands in for Avenir */
  --f-light: "avenir-lt-w01_35-light1475496", sans-serif;
  --f-foot: "open sans", sans-serif;
  --grad-product: linear-gradient(90deg, #0e1821 0%, #001239 100%);
  --grad-glow:
    radial-gradient(circle at 10.4649% 13.1655%, rgb(0, 0, 0) 0%, 17.5%, rgba(0, 0, 0, 0) 35%),
    radial-gradient(circle at 59.5389% 66.8692%, rgb(0, 0, 0) 0%, 20%, rgba(0, 0, 0, 0) 40%),
    radial-gradient(circle at 91.9464% 86.005%, rgba(0, 18, 57, 0.99) 0%, 25%, rgba(0, 18, 57, 0) 50%),
    radial-gradient(circle at 6.16536% 12.6172%, rgb(0, 0, 0) 0%, 42%, rgba(0, 0, 0, 0) 70%),
    radial-gradient(circle at 36.6995% 47.7334%, rgb(0, 18, 57) 0%, 42%, rgba(0, 18, 57, 0) 70%),
    radial-gradient(circle at 48.9014% 49.5215%, rgb(0, 6, 15) 0%, 100%, rgba(0, 6, 15, 0) 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: #000; }
body { margin: 0; background: #000; color: #fff; font-family: var(--f-body); overflow-x: hidden; }
h1, h2, h3, h4, p, ul, address { margin: 0; padding: 0; }
address { font-style: normal; }
img { display: block; }
a { color: inherit; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; height: 94px; background: var(--navy); }
.site-header .logo { position: absolute; left: calc(50% - 603px); top: 34px; width: 219px; height: 23px; }
.logo svg { display: block; width: 100%; height: 100%; overflow: visible; }

.main-nav { position: absolute; left: calc(50% - 303px); top: 22px; height: 50px; display: flex; align-items: center; white-space: nowrap; }
.nav-item {
  font: 400 18px/22px var(--f-head); letter-spacing: 1.8px; color: #fff;
  background: none; border: 0; padding: 14px 0; margin: 0 0 0 40px; cursor: pointer; text-decoration: none;
}
.nav-item:first-child { margin-left: 0; }
.nav-item:nth-child(3) { margin-left: 42px; }
.nav-item:nth-child(4) { margin-left: 54px; }
.nav-item:nth-child(5) { margin-left: 39px; }
.nav-item:hover, .nav-item[aria-expanded="true"] { text-decoration: underline; text-underline-offset: 3px; }

.nav-toggle { display: none; }

.mega { position: absolute; left: 0; right: 0; top: 94px; height: 346px; background: #fff; }
.mega[hidden] { display: none; }
.mega-item { color: var(--ink); text-decoration: none; }
.mega-item img { position: absolute; left: calc(50% + var(--x)); top: var(--y); width: var(--w); height: var(--h); object-fit: cover; }
.mega-item span { position: absolute; left: calc(50% + var(--lx)); top: var(--ly); font: 700 18px/22px var(--f-head); letter-spacing: 1.8px; white-space: nowrap; }
.mega-item:hover span { text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn-row { display: flex; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.btn-white { width: 198px; background: #fff; border: 1px solid var(--ink); border-radius: 5px; color: var(--ink); font: 700 17px var(--f-ui); }
.btn-white:hover { background: var(--ink); color: #fff; border-color: #fff; }
.btn-blue { width: 198px; background: var(--blue); border-radius: 10px; color: #fff; font: 400 21px var(--f-btn); }
.btn-blue:hover { background: #0a5bcc; }
.btn-outline { width: 250px; height: 60px; background: var(--ink); border: 1px solid #5b7ee0; border-radius: 5px; color: #fff; font: 400 21px var(--f-ui); }
.btn-outline:hover { background: #5b7ee0; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 979px; background: #1c3142 url(../assets/img/hero.png) center / cover no-repeat; overflow: hidden; }
.hero-copy { position: absolute; left: calc(50% - 119px); top: 245px; }
.hero h1 { width: 731px; font: 700 56px/78.4px var(--f-head); }
.hero p { margin: 39px 0 0 19px; font: 400 23px/28px var(--f-head); white-space: nowrap; }
.hero .btn-row { margin: 46px 0 0 21px; gap: 54px; }

/* ---------- Product sections ---------- */
.product { height: 831px; background: var(--grad-product); }
.product .inner { position: relative; margin: 0 auto; height: 100%; }
.product h2 { font: 700 56px/78.4px var(--f-head); white-space: nowrap; }
.product .price, .product .body { font: 700 24px/33.6px var(--f-body); }
.product .shot { position: absolute; right: 0; object-fit: cover; }

.product-camera .inner { width: 1177px; left: -5px; padding-top: 137px; }
.product-camera .price, .product-camera .body, .product-camera .btn-row { margin-left: 11px; }
.product-camera .price { margin-top: 24px; }
.product-camera .body { margin-top: 29px; width: 579px; }
.product-camera .btn-row { margin-top: 63px; gap: 68px; }
.product-camera .shot { top: 100px; width: 414px; height: 630px; }

.product-processor .inner { width: 1338px; left: 16px; padding-top: 130px; }
.product-processor .price { margin-top: 28px; }
.product-processor .body { margin-top: 141px; width: 576px; }
.product-processor .body-2 { margin-top: 4px; }
.product-processor .btn-row { margin: 13px 0 0 7px; gap: 54px; }
.product-processor .btn { width: 212px; }
.product-processor .shot { top: 164px; width: 721px; height: 425px; }

.product-software { height: 918px; }
.product-software .inner { width: 1413px; left: 57px; padding-top: 169px; }
.product-software .copy { position: relative; z-index: 1; }
.product-software .body { margin-top: 38px; width: 588px; }
.product-software .btn-row { margin-top: 58px; gap: 77px; }
.product-software .shot { top: 116px; width: 857px; height: 645px; }

/* ---------- Glow sections (applications / service) ---------- */
.glow { background: var(--grad-glow); }
.glow .inner { position: relative; margin: 0 auto; }
.glow h2 { font: 700 56px/78.4px var(--f-head); }
.glow .lead { font: 700 24px/33.6px var(--f-body); }

.applications { height: 915px; }
.applications .inner { width: 983px; left: 5px; padding-top: 29px; }
.applications h2 { margin-left: 9px; }
.applications .lead { margin: 28px 0 0 14px; }
.app-cards { display: flex; gap: 46px; margin-top: 68px; }
.app-card { width: 297px; height: 543px; padding-top: 22px; background: var(--ink); border: 1px solid #fff; border-radius: 5px; font-family: var(--f-ui); }
.app-card img { width: 100%; height: 220px; object-fit: cover; }
.app-demo { display: flex; align-items: center; justify-content: center; height: 52px; margin: 31px -1px 0; border: 1px solid var(--mist); border-radius: 5px; background: var(--ink); font-size: 23px; text-decoration: none; transition: background-color .2s, color .2s; }
.app-demo:hover { background: #fff; color: var(--ink); }
.app-card h3 { margin-top: 30px; font: 400 28px/39.2px var(--f-ui); text-align: center; text-transform: uppercase; }
.app-card ul { margin-top: 28px; padding-left: 57px; font-size: 21px; line-height: 33.6px; }

.service { height: 1541px; }
.service .inner { width: 901px; padding-top: 27px; }
.service .lead { margin-top: 22px; }
.svc-cards { display: grid; grid-template-columns: repeat(3, 255px); gap: 67px 68px; margin-top: 69px; }
.svc-card { height: 320px; padding-top: 23px; background: var(--ink) linear-gradient(rgba(255, 255, 255, .06), rgba(255, 255, 255, 0) 100px); border: 1px solid var(--mist); border-radius: 5px; box-shadow: 0 1px 4px rgba(0, 0, 0, .6); font-family: var(--f-ui); position: relative; }
.svc-img { height: 102px; display: flex; align-items: center; justify-content: center; }
.svc-card h3 { margin-top: 19px; font: 400 28px/34px var(--f-ui); text-align: center; }
.svc-card ul { margin-top: 19px; padding-left: 52px; font-size: 21px; line-height: 33.6px; }
.svc-card::after { content: ""; position: absolute; left: 26px; bottom: 26px; width: 200px; height: 4px; border-radius: 7px; background: var(--steel); box-shadow: 0 1px 0 rgba(255, 255, 255, .1), inset 0 1px 0 rgba(0, 0, 0, .25); }
.more-info { margin-top: 191px; font: 400 28px/34px var(--f-head); text-align: center; white-space: nowrap; }
.downloads { margin-top: 118px; justify-content: center; gap: 86px; position: relative; left: -26px; }

/* ---------- Footer ---------- */
.site-footer { padding-top: 5px; background: #000; }
.rule { height: 4px; margin-bottom: 3px; border-radius: 7px; background: var(--steel); box-shadow: 0 1px 0 rgba(255, 255, 255, .1), inset 0 1px 0 rgba(0, 0, 0, .25); }
.footer-grid { display: grid; grid-template-columns: 35% 18.85% 26.67% 1fr; height: 470px; background: var(--ink); color: var(--mist); font-family: var(--f-foot); }
.f-brand { padding: 76px 0 0 205px; }
.f-brand .logo { display: block; width: 343px; height: 36px; }
.copyright { margin: 33px 0 0 17px; font: 400 14px/22.4px var(--f-light); }
.f-brand address { margin: 48px 0 0 17px; font-size: 18px; line-height: 37px; }
.f-links { display: flex; flex-direction: column; align-items: flex-start; padding: 76px 0 0 60px; font-size: 18px; line-height: 55px; }
.more-info a, .f-brand address a { text-decoration: none; }
.f-links a:hover, .f-brand address a:hover { color: #fff; }
.site-footer h4 { font: 700 14px/18px var(--f-head); color: #fff; }
.f-news { padding-top: 79px; }
.f-news > p { margin-top: 18px; width: 354px; max-width: 100%; font: 400 16px/23px var(--f-ui); color: #c7c7c7; }
.newsletter { margin-top: 59px; }
.newsletter label { display: block; font: 400 14px/14px var(--f-light); color: #fff; }
.nl-row { display: flex; align-items: flex-end; gap: 17px; margin-top: 13px; padding-right: 24px; }
.newsletter input { flex: 0 1 232px; min-width: 0; width: 232px; height: 50px; padding: 0 12px; background: var(--ink); border: 1px solid #8293a1; border-radius: 5px; color: #fff; font: 16px var(--f-foot); }
.newsletter input:focus { outline: none; border-color: #fff; }
.newsletter button, .btn-contact { height: 52px; background: var(--ink); border: 1px solid #8293a1; border-radius: 5px; color: #fff; font: 400 16px var(--f-foot); cursor: pointer; transition: background-color .2s, color .2s; }
.newsletter button { width: 121px; }
.newsletter button:hover, .btn-contact:hover { background: #fff; color: var(--ink); }
.nl-msg { min-height: 20px; margin-top: 10px; font-size: 14px; color: #fff; }
.nl-msg.error { color: #ff6b6b; }
.f-social { padding-top: 90px; }
.f-social h4 { margin-left: 1px; }
.icons { display: flex; gap: 10px; margin: 35px 0 0 9px; }
.btn-contact { width: 155px; margin-top: 79px; border-color: #fff; }

/* ---------- Sub-pages ----------
   These pages mirror the live site's fixed desktop layout: each band is a
   full-width strip and its contents are placed relative to the centre line.
   On narrower screens js/main.js scales the whole <main> down to fit. */
main.gen { background: #000; color: #000; }
.band { position: relative; overflow: hidden; }
.abs { position: absolute; box-sizing: border-box; }
img.abs, video.abs, iframe.abs { display: block; }
.rt { overflow-wrap: break-word; }
.rt p, .rt h1, .rt h2, .rt h3, .rt h4, .rt h5, .rt h6, .rt ul, .rt ol, .rt li, .rt blockquote { margin: 0; padding: 0; font-size: inherit; font-weight: inherit; }
.rt a { color: inherit; text-decoration: none; }
.svgw svg { display: block; width: 100%; height: 100%; }
.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; white-space: nowrap; cursor: pointer; transition: filter .2s; }
.gbtn:hover { filter: brightness(1.2); }
.gbtn-icon { width: 8px; height: 12px; fill: currentColor; flex: none; }
.gin { outline: none; }
.gin:focus { box-shadow: 0 0 0 2px #5b7ee0; }
textarea.gin { padding-top: 12px; resize: none; }
.form-msg { position: absolute; font: 400 16px var(--f-foot); color: #fff; }
.form-msg.error { color: #ff8080; }

/* ---------- Schedule a call ---------- */
.schedule { background: var(--grad-product); padding: 96px 24px 120px; }
.sched-inner { max-width: 1080px; margin: 0 auto; }
.schedule h1 { font: 700 56px/1.4 var(--f-head); }
.sched-lead { max-width: 720px; margin-top: 16px; font: 700 22px/1.5 var(--f-body); }
.sched-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 56px; align-items: start; }
.sched-panel { padding: 32px; background: var(--ink); border: 1px solid var(--mist); border-radius: 5px; box-shadow: 0 1px 4px rgba(0, 0, 0, .6); font-family: var(--f-ui); }
.sched-panel h2 { font: 700 24px/1.3 var(--f-head); }
.sched-note { margin-top: 8px; font-size: 16px; color: var(--mist); }
.sched-days { margin-top: 20px; }
.sched-day { display: grid; grid-template-columns: 1fr 104px 104px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(197, 208, 217, .25); }
.sched-date strong { display: block; font-size: 18px; font-weight: 700; }
.sched-date span { font-size: 15px; color: var(--mist); }
.sched-slot { height: 44px; background: transparent; border: 1px solid #5b7ee0; border-radius: 5px; color: #fff; font: 400 16px var(--f-ui); cursor: pointer; transition: background-color .15s; }
.sched-slot:hover:not(:disabled) { background: rgba(91, 126, 224, .3); }
.sched-slot[aria-pressed="true"] { background: var(--blue); border-color: #fff; font-weight: 700; }
.sched-slot:disabled { opacity: .5; cursor: default; }
.sched-slot.taken { border-style: dashed; text-decoration: line-through; opacity: .35; }
.sched-summary { margin-top: 12px; padding: 12px 14px; border-radius: 5px; background: rgba(255, 255, 255, .06); font-size: 16px; line-height: 1.4; color: var(--mist); }
.sched-summary.chosen { color: #fff; background: rgba(4, 68, 156, .45); }
.sched-form label { display: block; margin-top: 20px; font-size: 15px; }
.sched-form label span { color: var(--mist); }
.sched-form input, .sched-form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px; background: #fff; border: 1px solid #8293a1; border-radius: 5px; color: var(--ink); font: 16px var(--f-foot); }
.sched-form input:focus, .sched-form textarea:focus, .sched-slot:focus-visible { outline: 2px solid #5b7ee0; outline-offset: 2px; }
.sched-form textarea { resize: vertical; }
.sched-form .btn { width: 100%; margin-top: 28px; border: 0; cursor: pointer; }
.sched-form .btn:disabled { opacity: .5; cursor: default; }
.sched-msg { min-height: 24px; margin-top: 14px; font-size: 16px; line-height: 1.5; }
.sched-msg.error { color: #ff8080; }
.sched-msg.ok { color: #9be7a8; }
.sched-ics { display: inline-block; margin-top: 8px; font-size: 15px; color: var(--mist); }
.sched-bookings { grid-column: 1 / -1; width: 100%; height: 900px; border: 0; border-radius: 5px; background: #fff; }
@media (max-width: 860px) {
  .schedule { padding: 56px 16px 72px; }
  .schedule h1 { font-size: 36px; }
  .sched-lead { font-size: 18px; }
  .sched-grid { grid-template-columns: 1fr; gap: 24px; margin-top: 32px; }
  .sched-panel { padding: 20px; }
  .sched-day { grid-template-columns: 1fr 88px 88px; gap: 8px; }
}

/* ---------- Smaller screens (the live site has no equivalent; this just keeps the clone usable) ---------- */
@media (max-width: 1480px) {
  .product .inner, .glow .inner { left: 0; }
  .product-processor .inner, .product-software .inner { width: 1177px; }
  .product-processor .shot { width: 600px; height: auto; }
  .product-software .shot { width: 640px; height: auto; top: 160px; }
  .f-brand { padding-left: 8%; }
}

@media (max-width: 1240px) {
  .site-header .logo { left: 24px; }
  .main-nav { left: auto; right: 24px; }
  .nav-item { font-size: 15px; letter-spacing: 1px; margin-left: 24px !important; }
  .nav-item:first-child { margin-left: 0 !important; }
  .mega { height: auto; padding: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 24px 40px; }
  .mega-item { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 14px; }
  .mega-item img, .mega-item span { position: static; }
  .mega-item img { width: auto; max-width: 240px; height: 150px; object-fit: contain; }
  .mega-item span { font-size: 15px; letter-spacing: 1px; }

  .hero { height: auto; min-height: 640px; background-position: 22% center; }
  .hero-copy { position: static; padding: 120px 24px 120px 42%; }
  .hero h1 { width: auto; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.4; }
  .hero p { margin-left: 0; white-space: normal; }
  .hero .btn-row { margin-left: 0; gap: 24px; flex-wrap: wrap; }

  .product, .applications, .service { height: auto; }
  .product .inner, .glow .inner { width: auto !important; max-width: 760px; padding: 80px 24px; }
  .product h2, .glow h2 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.4; white-space: normal; margin-left: 0; }
  .product .price, .product .body, .product .btn-row, .applications .lead { margin-left: 0 !important; width: auto; }
  .product-processor .body { margin-top: 29px; }
  .product .btn-row { gap: 24px; flex-wrap: wrap; margin-top: 40px; }
  .product .shot { position: static; display: block; width: auto !important; max-width: 100%; height: auto !important; margin: 56px auto 0; }
  .app-cards { flex-wrap: wrap; justify-content: center; gap: 32px; }
  .svc-cards { grid-template-columns: repeat(auto-fit, 255px); justify-content: center; gap: 40px; }
  .more-info { margin-top: 80px; white-space: normal; font-size: 22px; }
  .downloads { left: 0; margin-top: 56px; gap: 24px; flex-wrap: wrap; }

  .footer-grid { height: auto; grid-template-columns: 1fr 1fr; gap: 48px 24px; padding: 56px 24px; }
  .f-brand, .f-links, .f-news, .f-social { padding: 0; }
  .f-brand .logo { width: 260px; height: 28px; }
  .f-links { line-height: 40px; }
  .newsletter { margin-top: 28px; }
  .btn-contact { margin-top: 32px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; position: absolute; right: 16px; top: 25px; width: 44px; height: 44px; padding: 8px; background: none; border: 0; cursor: pointer; }
  .nav-toggle span { height: 2px; background: #fff; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 94px; height: auto; flex-direction: column; align-items: stretch; padding: 8px 24px 20px; background: var(--navy); }
  .site-header.open .main-nav { display: flex; }
  .nav-item { margin: 0 !important; padding: 14px 0; text-align: left; font-size: 17px; }
  .mega { position: static; order: 1; }
  .site-header.open .mega:not([hidden]) { position: absolute; top: auto; }

  .hero { background-position: 12% center; }
  .hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
  .hero-copy { position: relative; left: 0; padding: 96px 24px; }
  .hero p { font-size: 19px; }
  .btn-white, .btn-blue { width: 100%; max-width: 280px; }
  .footer-grid { grid-template-columns: 1fr; }
  .nl-row { flex-wrap: wrap; }
}

/* ---------- Header with six nav items (Store added) ---------- */
@media (min-width: 1241px) and (max-width: 1300px) {
  .site-header .logo { left: 24px; }
  .main-nav { left: auto; right: 20px; }
}
/* between tablet and phone the full nav no longer fits beside the logo: use the menu button */
@media (max-width: 1020px) {
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; position: absolute; right: 16px; top: 25px; width: 44px; height: 44px; padding: 8px; background: none; border: 0; cursor: pointer; }
  .nav-toggle span { height: 2px; background: #fff; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 94px; height: auto; flex-direction: column; align-items: stretch; padding: 8px 24px 20px; background: var(--navy); }
  .site-header.open .main-nav { display: flex; }
  .nav-item { margin: 0 !important; padding: 14px 0; text-align: left; font-size: 17px; }
  .mega { position: static; order: 1; }
  .site-header.open .mega:not([hidden]) { position: absolute; top: auto; }
}

/* eight footer links now (Store and Jobs added): tighten them so they fit */
.f-links { line-height: 46px; }

/* ---------- Header: rounded Shop button and the Contact menu ---------- */
.nav-cta { padding: 9px 26px; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 700; transition: background-color .2s, color .2s, box-shadow .2s; }
.nav-cta:hover { background: #1b6fb5; color: #fff; text-decoration: none; box-shadow: 0 0 0 4px rgba(27, 111, 181, .35); }
.mega-cards { display: flex; justify-content: center; align-items: center; gap: 64px; }
.mega-cards .mega-item { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.mega-cards .mega-item img, .mega-cards .mega-item span { position: static; }
.mega-cards .mega-item img { width: 300px; height: 196px; object-fit: cover; border-radius: 14px; border: 1px solid #d5deee; box-shadow: 0 6px 18px rgba(4, 68, 156, .10); transition: transform .2s, box-shadow .2s; }
.mega-cards .mega-item:hover img { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(4, 68, 156, .20); }
@media (max-width: 1240px) {
  .mega-cards { gap: 24px 40px; }
  .mega-cards .mega-item img { width: 240px; max-width: 240px; height: 157px; object-fit: cover; }
}
@media (max-width: 1020px) {
  .nav-cta { align-self: flex-start; padding: 10px 28px; margin-top: 10px !important; }
}

/* Menu labels sit centred under their picture, whatever the length of the text */
@media (min-width: 1241px) {
  .mega:not(.mega-cards) .mega-item span { left: calc(50% + var(--x) + var(--w) / 2); transform: translateX(-50%); }
}

/* ---------- Banner v2: each title is a link to a summary page, with a plain dropdown on hover ---------- */
.site-header.v2 .main-nav { gap: 36px; }
.site-header.v2 .nav-item { margin: 0 !important; }
.nav-group { position: relative; display: flex; align-items: center; height: 100%; }
.nav-group > .nav-item { position: relative; }
.nav-group > .nav-item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 3px; border-radius: 2px; background: #2bb3ff; transform: scaleX(0); transition: transform .2s; }
.nav-group:hover > .nav-item, .nav-group:focus-within > .nav-item { text-decoration: none; }
.nav-group:hover > .nav-item::after, .nav-group:focus-within > .nav-item::after { transform: scaleX(1); }
.nav-drop { position: absolute; left: -26px; top: 100%; z-index: 30; padding-top: 22px; visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
.nav-group:hover .nav-drop, .nav-group:focus-within .nav-drop { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.nav-drop ul { margin: 0; padding: 14px 0; list-style: none; min-width: 280px; background: #fff; border-radius: 0 0 12px 12px; box-shadow: 0 22px 44px rgba(4, 0, 33, .28); }
.nav-drop a { display: block; padding: 11px 28px; color: var(--ink); font: 500 17px/1.3 var(--f-head); letter-spacing: .3px; text-decoration: none; white-space: nowrap; }
.nav-drop a:hover, .nav-drop a:focus-visible { background: #eef4ff; color: #04449c; }
@media (max-width: 1240px) { .site-header.v2 .main-nav { gap: 24px; } }
@media (max-width: 1020px) {
  .site-header.v2 .main-nav { gap: 0; }
  .nav-group { display: block; height: auto; }
  .nav-group > .nav-item { display: block; }
  .nav-group > .nav-item::after { display: none; }
  .nav-drop { position: static; padding: 0 0 8px 16px; visibility: visible; opacity: 1; transform: none; }
  .nav-drop ul { min-width: 0; padding: 0; background: none; box-shadow: none; }
  .nav-drop a { padding: 8px 0; color: #c9d6ea; font-size: 15px; white-space: normal; }
  .nav-drop a:hover, .nav-drop a:focus-visible { background: none; color: #fff; }
}

/* ---------- Banner v3: picture panel under each title (pictures + full link list + "See all") ---------- */
.nav-drop.nav-panel { left: var(--panel-left, -26px); width: var(--panel-width, 1100px); }
.nav-panel-box { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 0; background: #fff; border-radius: 0 0 14px 14px; box-shadow: 0 22px 44px rgba(4, 0, 33, .28); overflow: hidden; }
.nav-pics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 26px 22px 24px; }
.nav-pics:has(> a:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nav-drop .nav-pics a { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 12px 8px 14px; border-radius: 12px; white-space: normal; text-align: center; }
.nav-drop .nav-pics a:hover, .nav-drop .nav-pics a:focus-visible { background: #eef4ff; }
.nav-pic { display: grid; place-items: center; width: 100%; height: 132px; }
.nav-pic img { max-width: 100%; max-height: 132px; width: auto; height: auto; object-fit: contain; transition: transform .25s; }
.nav-pic-photo { border-radius: 10px; overflow: hidden; }
.nav-pic-photo img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.nav-pics a:hover .nav-pic img { transform: scale(1.05); }
.nav-pics b { font: 700 15px/1.25 var(--f-head); letter-spacing: .6px; color: var(--ink); }
.nav-links { display: flex; flex-direction: column; padding: 18px 0 16px; background: #f4f7fc; border-left: 1px solid #dfe6f2; }
.nav-drop.nav-panel .nav-links ul { flex: 1; min-width: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.nav-drop.nav-panel .nav-links li a { padding: 8px 24px; font-size: 15px; white-space: normal; }
.nav-drop .nav-all { margin: 10px 24px 0; padding: 12px 0 0; border-top: 1px solid #dfe6f2; font: 700 14px/1.3 var(--f-head); color: #04449c; }
.nav-drop .nav-all:hover { background: none; text-decoration: underline; }
@media (max-width: 1020px) {
  .nav-drop.nav-panel { width: auto; }
  .nav-panel-box { display: block; background: none; box-shadow: none; overflow: visible; }
  .nav-pics { display: none; }
  .nav-links { padding: 0; background: none; border: 0; }
  .nav-drop.nav-panel .nav-links li a { padding: 8px 0; }
  .nav-drop .nav-all { margin: 4px 0 0; padding: 8px 0; border: 0; color: #8fd4f5; }
}

/* ---------- Phone-view button, top-left corner ---------- */
.phone-toggle { position: fixed; left: 16px; top: 110px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 10px; border: 1px solid #d5deee; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #0e1821; font: 600 13px/1 var(--f-head); letter-spacing: .3px; text-decoration: none; box-shadow: 0 6px 18px rgba(4, 0, 33, .14); transition: background-color .2s, color .2s, border-color .2s; }
.phone-toggle svg { width: 20px; height: 20px; }
.phone-toggle:hover { background: #1b6fb5; border-color: #1b6fb5; color: #fff; }
@media (max-width: 1020px) { .phone-toggle { display: none; } }
html.ad-game-on .phone-toggle { display: none; }

/* ---------- Simple footer ---------- */
.site-footer.simple { padding: 0; background: var(--ink); color: var(--mist); font-family: var(--f-foot, var(--f-ui)); }
.f-simple { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px 40px; max-width: 1240px; margin: 0 auto; padding: 34px 24px 30px; }
.f-simple .logo { display: block; width: 200px; height: 21px; }
.f-simple-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 30px; font: 500 15.5px/1.4 var(--f-head); letter-spacing: .4px; }
.f-simple-links a, .f-simple-info a { color: inherit; text-decoration: none; }
.f-simple-links a:hover, .f-simple-info a:hover { color: #fff; text-decoration: underline; }
.f-simple-social { display: flex; gap: 14px; }
.f-simple-social img { display: block; opacity: .85; }
.f-simple-social a:hover img { opacity: 1; }
.f-simple-info { grid-column: 1 / -1; margin: 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; line-height: 1.6; text-align: center; opacity: .8; }
@media (max-width: 760px) {
  .f-simple { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .f-simple-info { grid-column: auto; }
}

/* picture panel: as many columns as there are pictures */
.nav-pics, .nav-pics:has(> a:nth-child(3):last-child) { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.nav-pics:has(> a:nth-child(5)) { padding-left: 14px; padding-right: 14px; gap: 4px; }
.nav-pics:has(> a:nth-child(5)) .nav-pic { height: 116px; }
.nav-pics:has(> a:nth-child(5)) .nav-pic img { max-height: 116px; }
.nav-pics:has(> a:nth-child(5)) b { font-size: 14px; }
/* phone button: just the icon until hovered, so it never covers page headings */
.phone-toggle { width: 38px; padding: 0; justify-content: center; overflow: hidden; transition: width .2s, background-color .2s, color .2s, border-color .2s; }
.phone-toggle span { display: none; white-space: nowrap; }
.phone-toggle:hover, .phone-toggle:focus-visible { width: 132px; }
.phone-toggle:hover span, .phone-toggle:focus-visible span { display: inline; }

/* ---------- Banner v3b: the picture panel is a band across the whole screen, like the original site ---------- */
@media (min-width: 1021px) {
  .nav-panel-box { display: block; border-radius: 0; box-shadow: 0 26px 40px rgba(4, 0, 33, .22); }
  .nav-pics, .nav-pics:has(> a:nth-child(5)) { max-width: 1320px; margin: 0 auto; padding: 34px 32px 22px; gap: 12px; }
  .nav-pics .nav-pic, .nav-pics:has(> a:nth-child(5)) .nav-pic { height: 170px; }
  .nav-pics .nav-pic img, .nav-pics:has(> a:nth-child(5)) .nav-pic img { max-height: 170px; }
  .nav-pics b, .nav-pics:has(> a:nth-child(5)) b { font-size: 17px; letter-spacing: 1.2px; }
  .nav-pics:has(> a:nth-child(3):last-child) { max-width: 1040px; }
  .nav-links { flex-direction: row; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 6px; padding: 14px 32px 16px; border-left: 0; border-top: 1px solid #dfe6f2; }
  .nav-drop.nav-panel .nav-links ul { flex: 0 1 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; }
  .nav-drop.nav-panel .nav-links li a { padding: 8px 14px; border-radius: 999px; font-size: 15px; white-space: nowrap; }
  .nav-drop .nav-all { margin: 0 0 0 10px; padding: 8px 16px; border: 1px solid #c9d6ee; border-radius: 999px; white-space: nowrap; }
  .nav-drop .nav-all:hover { background: #04449c; color: #fff; text-decoration: none; border-color: #04449c; }
}
@media (min-width: 1021px) {
  .nav-drop.nav-panel .nav-links li.nav-dup { display: none; }
  .nav-links:has(ul > li:not(.nav-dup)) ul::before { content: "More:"; align-self: center; margin-right: 6px; font: 700 12px/1 var(--f-head); letter-spacing: 1.6px; text-transform: uppercase; color: #7b8492; }
}

/* Machine Vision band: the X2000 picture gets a much wider slot */
@media (min-width: 1021px) {
  /* Machine Vision: the four-picture hover from deepviewai.com */
  .nav-pics:has(> a[href="x2000-gige-vision-processor.html"]) { grid-auto-flow: row; grid-template-columns: 1fr 1fr 1fr 1.7fr; max-width: 1400px; padding: 30px 32px 26px; }
  .nav-pics > a[href="x2000-gige-vision-processor.html"] .nav-pic img { width: 100%; }
  .nav-pics:has(> a[href="x2000-gige-vision-processor.html"]) .nav-pic { height: 210px; }
  .nav-pics:has(> a[href="x2000-gige-vision-processor.html"]) .nav-pic img { max-height: 210px; max-width: 100%; object-fit: contain; }
}

/* menu pictures: no coloured hover block, as on deepviewai.com */
.nav-drop .nav-pics a:hover, .nav-drop .nav-pics a:focus-visible { background: none; }

/* Machine Vision hover: picture sizes, positions and label type measured from deepviewai.com
   (a 1440px layout, 346px tall; scaled down on narrower screens via --mv-scale from main.js) */
@media (min-width: 1021px) {
  .nav-pics:has(> a[href="x2000-gige-vision-processor.html"]) { display: block !important; position: relative; width: 1440px; height: 346px; max-width: none !important; padding: 0 !important; margin: 0 0 calc(346px * (var(--mv-scale, 1) - 1)) calc(50% - 720px) !important; transform-origin: top center; transform: scale(var(--mv-scale, 1)); }
  .nav-pics:has(> a[href="x2000-gige-vision-processor.html"]) > a { display: contents !important; }
  .nav-pics:has(> a[href="x2000-gige-vision-processor.html"]) .nav-pic { position: absolute; display: block !important; top: 56px; width: 242px; height: 158px !important; }
  .nav-pics:has(> a[href="x2000-gige-vision-processor.html"]) .nav-pic img { display: block; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; object-fit: contain; transform: none !important; }
  .nav-pics:has(> a[href="x2000-gige-vision-processor.html"]) b { position: absolute; top: 268px; font: 700 18px/22px var(--f-head, montserrat, sans-serif) !important; letter-spacing: 1.8px !important; color: #0e1821; white-space: nowrap; text-align: left; }
  .nav-pics > a[href="software3.html"] .nav-pic { left: 62px; }
  .nav-pics > a[href="software3.html"] b { left: 72px; }
  .nav-pics > a[href="x400-gpu-smart-camera.html"] .nav-pic { left: 425px; top: 39px !important; width: 127px !important; height: 193px !important; }
  .nav-pics > a[href="x400-gpu-smart-camera.html"] b { left: 377px; }
  .nav-pics > a[href="x400-gige-vision-processor.html"] .nav-pic { left: 690px; }
  .nav-pics > a[href="x400-gige-vision-processor.html"] b { left: 690px; }
  .nav-pics > a[href="x2000-gige-vision-processor.html"] .nav-pic { left: 1033px; top: 64px !important; width: 332px !important; }
  .nav-pics > a[href="x2000-gige-vision-processor.html"] b { left: 1046px; }
}

/* footer: logo, social links with their names, address on the bottom line */
.f-clean { grid-template-columns: 1fr auto; }
.f-clean .f-simple-social { gap: 26px; }
.f-clean .f-simple-social a { display: inline-flex; align-items: center; gap: 9px; color: inherit; text-decoration: none; font: 600 15px/1 var(--f-head); letter-spacing: .4px; }
.f-clean .f-simple-social a:hover { color: #fff; }
@media (max-width: 760px) { .f-clean { grid-template-columns: 1fr; } }

/* "NEW!" marker beside a title */
.new-tag { display: inline-block; margin-left: 10px; padding: 3px 9px 4px; border: 2px solid #1b6fb5; border-radius: 6px; font: 700 12px/1 var(--f-head, sans-serif); letter-spacing: 1px; color: #1b6fb5; vertical-align: middle; position: relative; top: -2px; }

/* Automotive Vision menu with four pictures; photo credit beside the Explore link */
@media (min-width: 1021px) {
  .nav-pics:has(> a[href="automotive-ai.html"]) { max-width: 1240px; }
  .nav-pics:has(> a[href="automotive-ai.html"]) .nav-pic-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
}

/* backend button, beside the phone-view button */
.backend-toggle { left: 66px; }



/* Automotive Vision hover: four equal columns, each picture with its label centred underneath, larger than before */
@media (min-width: 1021px) {
  .nav-pics:has(> a[href="automotive-ai.html"]) { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: row; gap: 28px; width: auto; max-width: 1340px !important; height: auto; margin: 0 auto !important; padding: 34px 32px 28px !important; transform: none; }
  .nav-pics:has(> a[href="automotive-ai.html"]) > a { display: flex !important; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
  .nav-pics:has(> a[href="automotive-ai.html"]) .nav-pic { position: static; display: grid !important; place-items: center; width: 100%; height: 200px !important; border-radius: 12px; overflow: hidden; }
  .nav-pics:has(> a[href="automotive-ai.html"]) .nav-pic img { display: block; width: auto !important; height: auto !important; max-width: 100% !important; max-height: 200px !important; object-fit: contain; transform: none !important; }
  .nav-pics:has(> a[href="automotive-ai.html"]) .nav-pic-photo img { width: 100% !important; height: 100% !important; max-height: none !important; object-fit: cover; border-radius: 12px; }
  .nav-pics:has(> a[href="automotive-ai.html"]) b { position: static; display: block; width: 100%; text-align: center; white-space: normal; font: 700 20px/1.25 var(--f-head, montserrat, sans-serif) !important; letter-spacing: 1.4px !important; color: #0e1821; }
}

/* Automotive Vision hover: the X2000, the Mach-E and the Humvee at about the same visual size; labels on one line */
@media (min-width: 1021px) {
  .nav-pics:has(> a[href="automotive-ai.html"]) .nav-pic img { max-width: 92% !important; max-height: 150px !important; }
  .nav-pics:has(> a[href="automotive-ai.html"]) > a[href="automated-driving-2.html"] .nav-pic img { max-height: 168px !important; max-width: 78% !important; }
  .nav-pics:has(> a[href="automotive-ai.html"]) .nav-pic-photo img { max-width: 100% !important; max-height: none !important; }
  .nav-pics:has(> a[href="automotive-ai.html"]) b { white-space: nowrap; font-size: 19px !important; letter-spacing: 1px !important; }
}

/* menu pictures zoom on hover, like the cards on the overview pages (the fixed-layout menus above switched this off) */
@media (min-width: 1021px) {
  .nav-drop .nav-pics .nav-pic img { transition: transform .35s !important; }
  .nav-drop .nav-pics > a:hover .nav-pic img, .nav-drop .nav-pics > a:focus-visible .nav-pic img { transform: scale(1.07) !important; }
  .nav-drop .nav-pics > a:hover b, .nav-drop .nav-pics > a:focus-visible b { color: #1b6fb5; }
}

/* Machine Vision hover with five items: the two software monitors 25% larger, the hardware at its original
   deepviewai.com size; visible gaps of 44 / 96 / 60 / 46px (extra room between VisionOEM and the camera) across the 1440 layout, every picture centred on one
   line (y 138px), labels centred under each picture */
@media (min-width: 1021px) {
  .nav-pics:has(> a[href="x2000-gige-vision-processor.html"]) b, .nav-pics:has(> a[href="x2000-gige-vision-processor.html"]) > a b { top: 264px !important; width: 220px; text-align: center; white-space: nowrap; font: 700 16px/22px var(--f-head, montserrat, sans-serif) !important; letter-spacing: 1.2px !important; }
  .nav-pics:has(> a[href="x2000-gige-vision-processor.html"]) > a:nth-child(1) .nav-pic { left: 7.0px !important; top: 36.8px !important; width: 302.5px !important; height: 197.5px !important; }  .nav-pics:has(> a[href="x2000-gige-vision-processor.html"]) > a:nth-child(1) b { left: 40.0px !important; }
  .nav-pics:has(> a[href="x2000-gige-vision-processor.html"]) > a:nth-child(2) .nav-pic { left: 251.0px !important; top: 36.8px !important; width: 302.5px !important; height: 197.5px !important; }  .nav-pics:has(> a[href="x2000-gige-vision-processor.html"]) > a:nth-child(2) b { left: 284.0px !important; }
  .nav-pics:has(> a[href="x2000-gige-vision-processor.html"]) > a:nth-child(3) .nav-pic { left: 588.5px !important; top: 41.5px !important; width: 127.0px !important; height: 193.0px !important; }  .nav-pics:has(> a[href="x2000-gige-vision-processor.html"]) > a:nth-child(3) b { left: 542.0px !important; }
  .nav-pics:has(> a[href="x2000-gige-vision-processor.html"]) > a:nth-child(4) .nav-pic { left: 770.0px !important; top: 57.5px !important; width: 242.0px !important; height: 158.0px !important; }  .nav-pics:has(> a[href="x2000-gige-vision-processor.html"]) > a:nth-child(4) b { left: 783.0px !important; }
  .nav-pics:has(> a[href="x2000-gige-vision-processor.html"]) > a:nth-child(5) .nav-pic { left: 1058.0px !important; top: 59.0px !important; width: 332.0px !important; height: 158.0px !important; }  .nav-pics:has(> a[href="x2000-gige-vision-processor.html"]) > a:nth-child(5) b { left: 1114.0px !important; }
}


