@font-face { font-family: "Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("/fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Serif"; src: url("/fonts/source-serif-4-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #ffffff;
  --panel: #edf2f6;
  --ink: #17212b;
  --body: #2b3743;
  --muted: #5b6876;
  --rule: #d3dce4;
  --accent: #1f6aa5;
  --accent-ink: #164e7c;
  --night: #0f2334;
  --sans: "Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif", Georgia, serif;
  --measure: 64ch;
  --radius: 3px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 76rem; margin: 0 auto; padding: 0 1.5rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--paper); padding: 0.5rem 0.75rem; z-index: 10; }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
figcaption, .legal { font-size: 0.88rem; color: var(--muted); }
figcaption { margin-top: 0.5rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.brand img { width: 13rem; }
.site-header nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; list-style: none; margin: 0; padding: 0; align-items: center; justify-content: flex-end; }
.site-header nav a { text-decoration: none; font-size: 0.95rem; padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.site-header nav a:hover, .site-header nav a[aria-current] { border-bottom-color: var(--accent); color: var(--ink); }
.site-header nav a.nav-contact { background: var(--ink); color: #fff; border: 0; border-radius: var(--radius); padding: 0.45rem 0.85rem; font-weight: 600; }
.site-header nav a.nav-contact:hover { background: var(--accent-ink); color: #fff; }
.nav-top { font: inherit; font-size: 0.95rem; color: inherit; background: none; border: 0; border-bottom: 2px solid transparent; padding: 0.25rem 0; cursor: pointer; }
.nav-top::after { content: ""; display: inline-block; width: 0.38rem; height: 0.38rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: 0 0 0.2rem 0.45rem; }
.nav-top:hover, .nav-top.current, .has-sub:focus-within .nav-top { border-bottom-color: var(--accent); }
.has-sub { position: relative; }
.site-header nav ul.sub { display: none; position: absolute; top: 100%; left: -1rem; z-index: 5; min-width: 19rem; flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 0; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(15, 35, 52, 0.12); }
.has-sub:hover .sub, .has-sub:focus-within .sub { display: flex; }
.site-header nav .sub a { display: block; padding: 0.5rem 1rem; border-bottom: 0; }
.site-header nav .sub a:hover, .site-header nav .sub a[aria-current] { background: var(--panel); }
.nav-toggle { display: none; font: 600 0.95rem var(--sans); color: var(--ink); background: none; border: 1px solid var(--ink); border-radius: var(--radius); padding: 0.4rem 0.8rem; cursor: pointer; }

/* Buttons and links */
.button { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; padding: 0.7rem 1.15rem; font-weight: 600; font-size: 0.98rem; border-radius: var(--radius); }
.button:hover { background: var(--accent-ink); color: #fff; }
.textlink { font-weight: 600; color: var(--accent-ink); text-decoration-thickness: 2px; }
.textlink:hover { color: var(--ink); }

/* Home */
.hero { position: relative; background: var(--night); }
.hero img { width: 100%; height: clamp(22rem, 62vh, 36rem); object-fit: cover; object-position: 50% 62%; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 24, 38, 0.74) 0%, rgba(10, 24, 38, 0.45) 38%, rgba(10, 24, 38, 0) 62%); }
.hero-text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; }
.hero-text .wrap { width: 100%; display: flex; flex-direction: column; }
.hero h1 { color: #fff; font-style: italic; max-width: 13ch; font-size: clamp(2.2rem, 5vw, 4rem); text-shadow: 0 1px 18px rgba(0, 0, 0, 0.35); }
.hero .button { background: #fff; color: var(--ink); margin-top: 2rem; align-self: flex-start; }
.hero .button:hover { background: var(--accent-ink); color: #fff; }
.hero-scroll { display: none; }
.lede { font-size: 1.2rem; line-height: 1.5; color: var(--body); }

.section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section h2 { margin-bottom: 1.75rem; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.25rem 3rem; align-items: start; }
.section-head h2 { margin: 0; }
.section-head p { max-width: var(--measure); color: var(--body); }
.section-head p:last-child { margin: 0; }

.bands { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
.band summary { display: none; }
.band-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr); gap: 1.5rem 3.5rem; align-items: center; }
.band:nth-child(even) .band-body { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); }
.band:nth-child(even) .band-body > :first-child { order: 2; }
.band img { aspect-ratio: 29 / 20; object-fit: cover; width: 100%; border-radius: var(--radius); }
.band.no-photo .band-body, .band.no-photo:nth-child(even) .band-body { grid-template-columns: minmax(0, 1fr); }
.band.no-photo .band-body > div { max-width: 46rem; }
.band.no-photo p { max-width: var(--measure); }
.band h3 { font-size: 1.6rem; margin-bottom: 0.75rem; }
.band p { color: var(--body); max-width: 46ch; }
.band p:last-child { margin: 0; }

.fields { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 0.6rem; }
.fields a { display: block; text-decoration: none; background: var(--panel); border-radius: var(--radius); padding: 0.5rem 0.9rem; }
.fields a:hover { background: var(--ink); color: #fff; }

.dark { background: var(--night); color: #e8eef3; border-top: 0 !important; }
.dark .section-head p { color: #c3cfda; }
.dark .button { background: #fff; color: var(--night); }
.dark .button:hover { background: var(--panel); color: var(--night); }

/* Inner pages */
.doc { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.doc-head { max-width: 52rem; padding-bottom: 2.5rem; }
.doc-head .lede { margin: 1.25rem 0 0; }
.doc-figure { margin: 0 0 3rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 3rem; }
.doc-figure img { grid-column: 2; grid-row: 1; width: 100%; height: auto; aspect-ratio: 29 / 20; object-fit: cover; border-radius: var(--radius); }
.doc-figure figcaption { grid-column: 1; grid-row: 1; align-self: end; font-size: 0.9rem; color: var(--body); max-width: 22ch; }
/* A wide image (set "figure: wide" in front matter) spans the page at its own shape */
.doc-figure-wide { display: block; }
.doc-figure-wide img { width: 100%; height: auto; aspect-ratio: auto; }
.doc-body figure { margin: 0.5rem 0 1.5rem; }
.doc-body figure img { width: 100%; height: auto; border-radius: var(--radius); }
.doc-body figcaption { font-size: 0.9rem; color: var(--body); margin-top: 0.5rem; }
.doc-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 3rem; }
.doc-body > * { grid-column: 2; }
.doc-body > h2 { grid-column: 1; font-size: 1.45rem; }
.doc-body > h2 { position: relative; padding-top: 1.5rem; margin-top: 1.75rem; }
.doc-body > h2::before { content: ""; position: absolute; top: 0; left: 0; width: calc(300% + 3rem); border-top: 1px solid var(--rule); }
.doc-body > h2:first-child { margin-top: 0; }
.doc-body > h2:first-child::before { border-top-color: var(--ink); }
.doc-body h3 { margin: 1.5rem 0 0.4rem; }
.doc-body p, .doc-body li { max-width: var(--measure); color: var(--body); }
.doc-body ul { padding-left: 1.1rem; margin: 0 0 1em; }
.doc-body li { margin-bottom: 0.4em; }
.doc-body li::marker { color: var(--accent); }
.doc-body > :last-child { margin-bottom: 0; }
.note { background: var(--panel); border-radius: var(--radius); padding: 0.9rem 1.1rem; }

table.spec { width: 100%; border-collapse: collapse; margin: 0 0 1em; }
table.spec th, table.spec td { text-align: left; vertical-align: top; padding: 0.65rem 0; border-bottom: 1px solid var(--rule); }
table.spec tr:first-child th, table.spec tr:first-child td { padding-top: 0; }
table.spec tr:last-child th, table.spec tr:last-child td { border-bottom: 0; }
table.spec th { width: 11rem; font-weight: 600; padding-right: 1.5rem; }
table.spec td { color: var(--body); }

/* After the element rules above so the gap beside a heading always wins */
.doc-body > h2 + *, .doc-body > h2 + table.spec, .doc-body > h2 + h3 { margin-top: 3.25rem; }
.doc-body > h2:first-child + *, .doc-body > h2:first-child + table.spec, .doc-body > h2:first-child + h3 { margin-top: 1.5rem; }

.cta { margin-top: 3.5rem; padding: 2rem; background: var(--panel); border-radius: var(--radius); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0.75rem 3rem; }
.cta h2 { font-size: 1.45rem; }
.cta p { grid-column: 2; max-width: var(--measure); margin: 0; color: var(--body); }

.contact-form { display: grid; gap: 0.4rem; max-width: 36rem; }
.contact-form label { font-weight: 600; margin-top: 0.6rem; }
.contact-form label:first-of-type { margin-top: 0; }
.contact-form input, .contact-form textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid #b9c5cf; border-radius: var(--radius); padding: 0.6rem 0.75rem; width: 100%; }
.contact-form textarea { resize: vertical; min-height: 9rem; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.contact-form .button { justify-self: start; margin-top: 1rem; border: 0; cursor: pointer; font-family: inherit; }
.contact-form .button:disabled { opacity: 0.6; cursor: wait; }
.contact-form .botcheck { display: none; }
.form-status { margin: 0.5rem 0 0; min-height: 1.6em; }
.form-status.error { color: #a32a12; }
.contact-list { list-style: none; padding: 0 !important; }
.contact-list li { padding: 0 0 1rem; margin: 0 0 1rem; border-bottom: 1px solid var(--rule); }
.contact-list li:last-child { border-bottom: 0; }

/* Footer */
.site-footer { background: var(--night); color: #c3cfda; padding: 3.5rem 0 1.5rem; font-size: 0.97rem; }
.dark + .site-footer { border-top: 1px solid #24394c; }
.foot { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; }
.foot-logo { display: block; width: 13rem; margin-bottom: 1.5rem; }
.foot-logo img { width: 100%; height: auto; }
@media (min-width: 40rem) { .foot-logo { width: 27rem; max-width: 100%; } }
.foot p { max-width: 52ch; }
.site-footer h2 { font-family: var(--sans); font-size: 0.92rem; font-weight: 600; letter-spacing: 0; color: #fff; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.legal { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid #24394c; color: #8a9aa9; }

@media (max-width: 62rem) {
  .js .nav-toggle { display: block; }
  .js .site-header nav ul { display: none; }
  .js .site-header nav ul.open { display: flex; }
  .bar { flex-wrap: wrap; }
  .site-header nav { display: contents; }
  .site-header nav ul { flex-basis: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding-top: 0.5rem; }
  .site-header nav li { width: 100%; }
  .site-header nav a { display: block; padding: 0.6rem 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
  .site-header nav a.nav-contact { display: inline-block; margin-top: 0.85rem; padding: 0.6rem 1rem; }
  .nav-top { display: block; width: 100%; text-align: left; font-size: 1rem; font-weight: 600; padding: 0.6rem 0 0.2rem; border-bottom: 0; cursor: default; }
  .nav-top::after { content: none; }
  .js .site-header nav ul.open ul.sub, .site-header nav ul.sub { display: flex; position: static; min-width: 0; padding: 0; border: 0; box-shadow: none; }
  .site-header nav .sub a { padding: 0.5rem 0 0.5rem 1rem; border-bottom: 1px solid var(--rule); }
  .site-header nav .sub a:hover, .site-header nav .sub a[aria-current] { background: none; }

  /* 65px: the collapsed mobile header */
  .hero img { height: calc(100vh - 65px); height: calc(100svh - 65px); min-height: 26rem; object-position: 58% 50%; }
  .hero::before { background: linear-gradient(180deg, rgba(10, 24, 38, 0.6) 0%, rgba(10, 24, 38, 0.3) 30%, rgba(10, 24, 38, 0) 45%); }
  .hero-text { justify-content: flex-start; padding: 2.25rem 0 6.5rem; }
  .hero-text .wrap { flex: 1; }
  .hero h1 { font-size: 13vw; max-width: 13ch; align-self: center; text-align: center; }
  .hero-scroll { display: block; position: absolute; left: 50%; bottom: 1rem; margin-left: -22px; padding: 8px; color: #fff; opacity: 0.85; }
  .hero-scroll svg { display: block; animation: hero-bob 2.4s ease-in-out infinite; }
  .hero .button { margin-top: auto; align-self: center; }

  .section-head, .cta { grid-template-columns: minmax(0, 1fr); }
  .cta p { grid-column: 1; }
  .doc-body { grid-template-columns: minmax(0, 1fr); }
  .doc-figure { grid-template-columns: minmax(0, 1fr); margin-bottom: 2rem; }
  .doc-figure img, .doc-figure figcaption { grid-column: 1; grid-row: auto; max-width: none; }
  .doc-figure figcaption { margin-top: 0.5rem; }
  .doc-body > *, .doc-body > h2 { grid-column: 1; }
  .doc-body > h2::before { width: 100%; }
  .doc-body > h2 { margin-top: 2.25rem; }
  .doc-body > h2 + *, .doc-body > h2 + table.spec, .doc-body > h2 + h3, .doc-body > h2:first-child + *, .doc-body > h2:first-child + table.spec, .doc-body > h2:first-child + h3 { margin-top: 0.9rem; }

  .bands { gap: 0; border-top: 1px solid var(--ink); }
  .band { border-bottom: 1px solid var(--rule); }
  .band summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; cursor: pointer; list-style: none; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; line-height: 1.25; }
  .band summary::-webkit-details-marker { display: none; }
  .band summary::after { content: ""; flex: none; width: 0.6rem; height: 0.6rem; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); margin: 0 0.4rem 0.3rem; }
  .band[open] summary::after { transform: rotate(-135deg); margin-bottom: -0.2rem; }
  .band h3 { display: none; }
  .band-body, .band:nth-child(even) .band-body { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding: 0 0 1.5rem; }
  .band-body > :first-child, .band:nth-child(even) .band-body > :first-child { order: 2; }

  .foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 34rem) {
  body { font-size: 1rem; }
  .wrap { padding-left: 1.1rem; padding-right: 1.1rem; }
  table.spec th, table.spec td { display: block; width: auto; }
  table.spec th { border-bottom: 0; padding-bottom: 0; }
  table.spec td { padding-top: 0.25rem; }
  table.spec tr:first-child td { padding-top: 0.25rem; }
  table.spec tr:last-child th { border-bottom: 0; }
}

@media (max-width: 62rem) and (max-height: 600px) {
  .hero h1 { font-size: 11vw; }
  .hero-text { padding-top: 1.5rem; }
}

/* Homepage band video */
.band-video { position: relative; aspect-ratio: 16 / 9; width: 100%; background: var(--night); border-radius: var(--radius); overflow: hidden; }
.band-video iframe, .band-video-player { display: block; width: 100%; height: 100%; border: 0; pointer-events: none; }
.band .band-video-poster { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; transition: opacity 0.8s ease; }
.band-video.is-playing .band-video-poster { opacity: 0; }
.band-video-cover { position: absolute; inset: 0; }

/* Featured images and video carousel (camera systems page) */
.carousel { margin: 0 0 1.5em; }
.carousel-stage { display: grid; gap: 2rem; }
.carousel .slide { margin: 0; }
.slide-media { position: relative; aspect-ratio: 16 / 9; background: var(--night); border-radius: var(--radius); overflow: hidden; }
.carousel .slide-media img, .slide-media iframe { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; border-radius: 0; }
.slide-play { display: block; width: 100%; height: 100%; }
.play-icon { position: absolute; left: 50%; top: 50%; width: 4.5rem; height: 4.5rem; margin: -2.25rem 0 0 -2.25rem; border-radius: 50%; background: rgba(15, 35, 52, 0.72); border: 2px solid rgba(255, 255, 255, 0.9); transition: background 0.15s; }
.play-icon::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -0.85rem 0 0 -0.45rem; border-style: solid; border-width: 0.85rem 0 0.85rem 1.4rem; border-color: transparent transparent transparent #fff; }
.slide-play:hover .play-icon, .slide-play:focus-visible .play-icon { background: var(--accent-ink); }
.carousel-controls { display: none; }
.js .carousel.is-ready .carousel-stage { gap: 0; }
.js .carousel.is-ready .slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0s linear 0.6s; }
.js .carousel.is-ready .slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.6s ease; }
.js .carousel.is-ready .carousel-controls { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.9rem; }
.carousel-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; padding: 0; color: var(--ink); background: var(--paper); border: 1px solid #b9c5cf; border-radius: var(--radius); cursor: pointer; }
.carousel-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.carousel-count { min-width: 4.2rem; text-align: center; font-size: 0.92rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.carousel-toggle { margin-left: auto; font: 600 0.92rem var(--sans); color: var(--accent-ink); background: none; border: 0; padding: 0.5rem 0; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; cursor: pointer; }
.carousel-toggle:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .js .carousel.is-ready .slide, .js .carousel.is-ready .slide.is-active { transition: none; }
}

@keyframes hero-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes hero-fade { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
/* Reduce Motion: pulse instead of moving */
@media (prefers-reduced-motion: reduce) { .hero-scroll svg { animation-name: hero-fade; } }
