/* Survey equipment: use the site's established colour, type and motion tokens. */
.fleet { scroll-margin-top: 110px; }
.fleet [hidden], .fleet-panel[hidden] { display: none !important; }
.fleet-heading { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin-bottom: 32px; }
.fleet-heading h2 { max-width: 650px; }
.fleet-heading .section-lead { max-width: 360px; margin: 0; }
.fleet-heading > .btn { flex-shrink: 0; }
.fleet-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-strong); background: var(--bg); }
.fleet button { font: inherit; cursor: pointer; border-radius: 0; }
.fleet-tabs button { position: relative; text-align: left; padding: 20px 24px; background: var(--bg); color: var(--navy); border: 0; border-right: 1px solid var(--line); font-weight: 600; transition: background var(--dur-fast), color var(--dur-fast); }
.fleet-tabs button:last-child { border-right: 0; }
.fleet-tabs button span { display: block; font-weight: 400; font-size: .8rem; margin-top: 3px; color: var(--muted); }
.fleet-tabs button[aria-selected="true"] { background: var(--navy); color: var(--white); }
.fleet-tabs button[aria-selected="true"] span { color: var(--on-dark-muted); }
.fleet-tabs button::after { content: ''; position: absolute; inset: auto 0 0; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.fleet-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.fleet-tabs button:focus-visible { outline-offset: -5px; outline-color: var(--tech-blue); }
.fleet-tabs button[aria-selected="true"]:focus-visible { outline-color: var(--white); }
.fleet-panel { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); border: 1px solid var(--line-strong); background: var(--bg); margin-top: 24px; }
.fleet--ready .fleet-panel { border-top: 0; margin-top: 0; }
.fleet-visual { min-width: 0; padding: 24px; border-right: 1px solid var(--line); }
.fleet-stage { display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--bg-soft); }
.fleet-stage .fr { z-index: 2; }
.fleet-crop { overflow: hidden; position: relative; width: 100%; }
.fleet-crop img { display: block; width: 100%; height: auto; max-width: none; }
.fleet--ready .fleet-stage { --stage-height: 470px; height: var(--stage-height); touch-action: pan-y; }
.fleet--ready .fleet-crop { width: min(100%, calc(var(--stage-height) * var(--crop-ratio))); aspect-ratio: var(--crop-ratio); }
.fleet--ready .fleet-crop img { position: absolute; width: var(--image-width); left: var(--image-left); top: var(--image-top); }
.fleet-viewbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.fleet-viewbar span { font: .74rem/1.5 var(--mono); color: var(--muted); text-align: center; }
.fleet-viewbar button { width: 44px; height: 44px; flex: 0 0 44px; background: var(--bg); color: var(--navy); border: 1px solid var(--line-strong); font-size: 1.3rem; }
.fleet-viewbar button:hover, .fleet-angles button:hover { border-color: var(--navy); }
.fleet-angles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.fleet-angles button { min-height: 44px; padding: 8px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--muted); font-size: .76rem; line-height: 1.3; }
.fleet-angles button[aria-pressed="true"] { color: var(--white); border-color: var(--navy); background: var(--navy); }
.fleet-detail { padding: clamp(24px, 3vw, 40px); align-self: center; }
.fleet-detail h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; }
.fleet-model { font: .78rem/1.6 var(--mono); color: var(--muted); margin: 12px 0 24px; }
.fleet-detail > p:not(.fleet-model):not(.fleet-note) { color: var(--muted); }
.fleet-detail dl { margin: 24px 0; }
.fleet-detail dl div { padding: 13px 0; border-top: 1px solid var(--line); }
.fleet-detail dt { color: var(--navy); font-weight: 600; font-size: .88rem; }
.fleet-detail dd { margin-top: 3px; color: var(--muted); font-size: .85rem; }
.fleet-actions { display: flex; align-items: start; gap: 14px; flex-direction: column; }
.fleet-download { font-size: .85rem; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.fleet-note { color: var(--muted); font-size: .73rem; line-height: 1.6; margin-top: 20px; }
.fleet-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; }
.fleet-footer p { color: var(--muted); }
.fleet-dialog { margin: auto; width: min(1200px, 94vw); max-height: 94dvh; padding: 20px; border: 1px solid var(--line-strong); color: var(--text); background: var(--bg); }
.fleet-dialog::backdrop { background: rgba(15, 33, 71, .8); }
.fleet-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.fleet-dialog h2 { font-size: 1.2rem; }
.fleet-dialog button { min-height: 44px; padding: 8px 16px; flex-shrink: 0; border: 1px solid var(--line-strong); color: var(--navy); background: var(--bg); }
.fleet-dialog img { width: 100%; height: auto; display: block; }
.fleet-dialog p { margin-top: 12px; font-size: .8rem; color: var(--muted); }
body:has(.fleet-dialog[open]) { overflow: hidden; }
.fleet-preview { border-bottom: 1px solid var(--line); }
.fleet-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.fleet-preview-unit { border: 1px solid var(--line); display: block; color: var(--ink); text-decoration: none; transition: border-color var(--dur); }
.fleet-preview-unit:hover { border-color: var(--navy); }
.fleet-preview-image { overflow: hidden; position: relative; aspect-ratio: 1; }
.fleet-preview-image img { display: block; position: absolute; width: var(--sheet-width); height: var(--sheet-height); max-width: none; }
.fleet-preview-unit > div:last-child { border-top: 1px solid var(--line); padding: 18px 20px; }
.fleet-preview-unit h3 { font-size: 1.2rem; }
.fleet-preview-unit span { display: block; color: var(--muted); font-size: .85rem; margin-top: 4px; }
@media (max-width: 900px) {
  .fleet-heading { align-items: start; flex-direction: column; gap: 20px; }
  .fleet-heading .section-lead { max-width: 60ch; }
  .fleet-panel { grid-template-columns: 1fr; }
  .fleet-visual { border-right: 0; border-bottom: 1px solid var(--line); }
  .fleet--ready .fleet-stage { --stage-height: 440px; }
  .fleet-detail { padding: 28px; }
  .fleet-preview-grid { gap: 12px; }
}
@media (max-width: 600px) {
  .fleet-tabs button { padding: 16px 10px; font-size: .85rem; }
  .fleet-tabs button span { display: none; }
  .fleet-visual { padding: 12px; }
  .fleet--ready .fleet-stage { --stage-height: 310px; }
  .fleet-detail { padding: 24px 20px; }
  .fleet-footer { align-items: start; flex-direction: column; }
  .fleet-preview-grid { grid-template-columns: 1fr; gap: 20px; }
  .fleet-preview-unit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .fleet-preview-unit > div:last-child { border-top: 0; padding: 14px; }
  .fleet-dialog { padding: 12px; }
}
/* The marketing hero treats the fleet as the subject, free of a photo frame. */
.hero--fleet { background: var(--bg-deep); }
.hero--fleet::before { animation: none; opacity: .08; }
.hero--fleet .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; padding-block: clamp(48px, 7vw, 88px); }
.hero--fleet h1 { font-size: clamp(2.25rem, 4.1vw, 3.6rem); }
.hero--fleet h1 .hl { display: block; text-decoration: none; }
.hero--fleet .hero-fleet-visual { width: calc(100% + 64px); margin-left: -16px; }
.hero-fleet-link { display: block; position: relative; animation: fleet-arrive 600ms var(--ease) both; }
.hero--fleet .hero-fleet-visual img { display: block; width: 100%; height: auto; aspect-ratio: 1.8; object-fit: cover; }
.hero-fleet-visual figcaption { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin: 0 32px; padding-top: 18px; border-top: 1px solid var(--on-dark-muted); font-size: .8rem; color: var(--on-dark-muted); }
.hero-fleet-visual figcaption a { color: var(--white); white-space: nowrap; text-decoration: underline; text-underline-offset: 5px; }
.instrument-visual { border: 1px solid var(--line); background: var(--bg); min-width: 0; }
.instrument-caption { display: flex; justify-content: space-between; gap: 12px; padding: 18px 20px; font: .72rem/1.5 var(--mono); color: var(--navy); border-bottom: 1px solid var(--line); }
.instrument-caption span:last-child { color: var(--muted); }
.instrument-crop { position: relative; overflow: hidden; aspect-ratio: 484 / 470; }
.instrument-crop img { position: absolute; width: 317.356%; max-width: none; height: auto; left: 0; top: -105.532%; }
.instrument-visual figcaption { padding: 22px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.instrument-visual figcaption a { display: block; margin-top: 8px; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.instrument-line { display: block; width: 64px; border-top: 2px solid var(--red); margin-bottom: 14px; }
.rs-card--clean { background: #232526; min-height: 480px; }
.rs-clean-texture { position: absolute; inset: 0; background: url('/assets/roadsense/rs-contour-continuous.png') center / 1600px auto; opacity: .13; pointer-events: none; }
.rs-card--clean .rs-card-content { top: 36px; bottom: auto; }
.rs-card--clean .rs-card-content svg { width: 180px; max-width: 70%; margin-bottom: 26px; filter: none; }
.rs-data-flow { position: absolute; left: 26px; right: 26px; bottom: 30px; display: flex; gap: 12px; font: .7rem/1.5 'Montserrat', sans-serif; color: #ffffff; }
.rs-data-flow span { flex: 1; padding-top: 12px; border-top: 2px solid #305CDE; }
.rs-data-flow span:last-child { border-color: #F0A647; }
.project--clean { border-top: 3px solid var(--navy); }
.project--clean .meta { padding-block: 32px; }
@keyframes fleet-arrive { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: translateX(0); } }
@media (max-width: 1000px) {
  .hero--fleet .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero--fleet .hero-grid > div:first-child { display: contents; }
  .hero--fleet .hero-grid > div:first-child > .hero-badge { order: 1; justify-self: start; }
  .hero--fleet h1 { order: 2; }
  .hero--fleet .hero-fleet-visual { order: 3; }
  .hero--fleet .sub { order: 4; margin-top: 0; }
  .hero--fleet .hero-actions { order: 5; margin-top: 0; }
  .hero--fleet .hero-badges { order: 6; margin-top: 0; }
  .hero--fleet h1 { max-width: 820px; font-size: clamp(2.25rem, 5.5vw, 3.6rem); }
  .hero--fleet .hero-fleet-visual { width: 100%; max-width: 800px; margin: 0 auto; }
  .hero-fleet-visual figcaption { margin-inline: 0; }
}
@media (max-width: 600px) {
  .hero--fleet .hero-grid { padding-block: 36px; }
  .hero--fleet .hero-badges { margin-top: 24px; }
  .hero--fleet .sub { font-size: 1rem; }
  .hero-fleet-visual figcaption { align-items: start; flex-direction: column; gap: 10px; }
  .instrument-caption { font-size: .64rem; padding: 14px; }
  .rs-card--clean { min-height: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  .fleet *, .fleet-preview * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero-fleet-link { animation: none; }
}
