:root {
  --bg: #0b0e0b;
  --panel: #141915;
  --line: #323b32;
  --lime: #d5ff49;
}
header { background: #0b0e0bee; }

@media (max-width: 740px) {
  html { scroll-padding-top: 112px; }
  .nav {
    display: grid;
    height: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: 60px auto;
    row-gap: 0;
  }
  .nav > .brand { justify-self: start; }
  .nav > .button { grid-row: 1; grid-column: 2; }
  .nav > nav {
    display: flex;
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: space-between;
    gap: 0;
    border-top: 1px solid var(--line);
  }
  .nav > nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding-inline: .25rem;
    font-size: clamp(.75rem, 3.5vw, .9rem);
  }
}

.hero.has-photo {
  min-height: min(780px, 86svh);
  isolation: isolate;
  background: #0b0e0b url(hero.webp) 58% center / cover no-repeat;
}
.hero > .hero-film {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  pointer-events: none;
}
.hero-film > .ambient-film {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% center;
}
.hero-film::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #0b0e0b 0%, transparent 26%),
    linear-gradient(90deg, #0b0e0bf5 0%, #0b0e0bc4 43%, #0b0e0b52 73%, #0b0e0b1c 100%);
}
.hero-film .film-error, .hero-film [data-film-unavailable] { display: none; }
.hero-inner { padding-block: 108px 120px; }
.hero .overline { color: #e8efdc; }
.hero h1 { font-size: clamp(3rem, 8.7vw, 8.5rem); }
.hero p { color: #ecf0e7; }
.hero-footer {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-top: 16px;
  border-top: 1px solid #ffffff3f;
  color: #d3d9cb;
  font: .8rem ui-monospace, monospace;
}
.hero-footer > :first-child { white-space: nowrap; }
#hero-scene-caption { text-align: right; }
.product-section {
  background: #e7eddc;
  color: #11180f;
}
.product-section .section-head { align-items: end; }
.product-section .section-head p { color: #465043; }
.product-section .overline { color: #3c552c; }
.dashboard-stage {
  padding: clamp(12px, 4.5vw, 64px);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 70% 36%, #afdb47 0, transparent 56%),
    repeating-linear-gradient(135deg, #87a254 0 1px, transparent 1px 58px),
    linear-gradient(132deg, #b6cfa2, #6c8c3b);
}
.dashboard {
  color: var(--text);
  box-shadow: 0 24px 65px #192a146b;
}
.dash-top { background: #151b15; }
.dash-content { min-height: 400px; }
.stat { padding: clamp(8px, 2vw, 18px); }
.chart { position: relative; }
.bars {
  height: 135px;
  background: repeating-linear-gradient(0deg, #ffffff14 0 1px, transparent 1px 32px);
}
.dash-rows { animation: appear .35s ease both; }
@keyframes appear { from { opacity: .45; transform: translateY(6px); } }
.workflows {
  background: radial-gradient(ellipse at 10% 25%, #1e2a1b, transparent 54%), #0b0e0b;
}
.workflow-intro { margin-bottom: 38px; }
.workflow {
  grid-template-columns: .75fr 1.25fr;
  gap: clamp(24px, 5vw, 74px);
  padding-block: 40px;
  border-top: 1px solid var(--line);
}
.workflow + .workflow { margin-top: 22px; }
.pack-workflow { grid-template-columns: 1.25fr .75fr; }
.pack-workflow .workflow-visual { order: -1; }
.workflow-visual {
  overflow: hidden;
  border: 1px solid #657d5a;
  border-radius: 12px;
  background: #111811;
  box-shadow: 0 18px 35px #0006;
}
.workflow-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/8;
  object-fit: cover;
  display: block;
}
.workflow-visual .scene {
  border: 0;
  border-top: 1px solid #657d5a;
  border-radius: 0;
}
.transport-feature {
  display: grid;
  align-items: center;
  min-height: 510px;
  background: linear-gradient(90deg, #080d09f5, #0b110bae 40%, #0b110b22 82%), url(transport.webp) center / cover;
  border-block: 1px solid #495943;
}
.transport-copy { max-width: 620px; padding-block: 55px; }
.transport-copy p { margin-block: 17px 25px; color: #e0e6da; }
.audience li { background: #141b14; }
.contact {
  background: radial-gradient(ellipse at 18% 27%, #465c25 0, transparent 62%), #182316;
}
@media (max-width: 740px) {
  .hero.has-photo { min-height: 600px; background-position: 62% center; }
  .hero-film > .ambient-film { object-position: 62% center; }
  .hero-film::after {
    background:
      linear-gradient(0deg, #0b0e0b 0%, transparent 42%),
      linear-gradient(90deg, #0b0e0bf0 0%, #0b0e0b93 100%);
  }
  .hero-inner { padding-block: 76px 108px; }
  .hero-footer { font-size: .72rem; }
  .dashboard-stage { padding: 10px; }
  .dash-top { flex-wrap: wrap; }
  .dashboard .stat span { font-size: .75rem; }
  .dash-content { min-height: 330px; }
  .workflow, .pack-workflow { grid-template-columns: 1fr; }
  .pack-workflow .workflow-visual { order: 0; }
  .workflow { padding-block: 28px; }
  .transport-feature { min-height: 440px; background-position: 62% center; }
}
.activity {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.activity > div {
  padding: 12px;
  border: 1px solid #353c30;
  border-radius: 5px;
  background: #20241d;
}
.activity .dash-rows { margin-top: 8px; }
.activity .dash-row { padding: 6px 0; border: 0; font-size: .88rem; }
.project-panel p { margin-top: 12px; font-size: .88rem; }
.project-panel progress { width: 100%; accent-color: var(--lime); }
@media (max-width: 650px) {
  .activity { grid-template-columns: 1fr; }
}
.contact-benefits { margin: 1rem 0 0; padding-inline-start: 1.4rem; }
.contact-benefits li + li { margin-top: .35rem; }
.contact-benefits li::marker { content: "✓  "; color: var(--lime); }
.contact-form-heading { margin-bottom: .4rem; }
.contact-form-heading h3 { margin: 0; font-size: 1.3rem; letter-spacing: -.025em; line-height: 1.2; }
.contact .contact-form-heading p { margin-top: .35rem; font-size: .95rem; }
.contact-options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.contact-options button {
  padding: 8px 12px;
  font-size: .9rem;
  border: 1px solid #82916f;
  border-radius: 5px;
  background: #151c12;
  color: var(--text);
}
.contact-options button:hover { border-color: var(--lime); color: var(--lime); }
#inquiry .contact-company:not([hidden]) { display: grid; gap: 8px; }
#inquiry input { min-height: 50px; padding-inline: 13px; border-color: #4e5b46; border-radius: 8px; }
#inquiry input::placeholder,
#inquiry textarea::placeholder { color: var(--muted); opacity: 1; }
.transport-feature {
  background:
    linear-gradient(90deg, #0b100c 28%, #0b100ca0 53%, transparent 84%),
    url(transport.webp) right center / auto max(100%, 54vw) no-repeat,
    #0b100c;
}
@media (max-width: 740px) {
  .transport-feature {
    background:
      linear-gradient(90deg, #080e09ed, #080e094c),
      url(transport.webp) center / cover;
  }
}

h1, h2, h3 {
  text-wrap: balance;
  overflow-wrap: anywhere;
}
main p {
  text-wrap: pretty;
}
.section-head h2, .transport-copy h2 {
  max-inline-size: 17ch;
}
.workflow > div, .section-head > div, .contact-inner > div {
  min-inline-size: 0;
}
.workflow p {
  max-inline-size: 44ch;
}
@media (max-width: 420px) {
  .hero h1 { font-size: clamp(2rem, 11vw, 3rem); }
}

#gate-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #101810;
}

.brand:has(.brand-logo) {
  display: inline-flex;
  align-items: center;
  padding: 7px 9px;
  border-radius: 5px;
  background: #f5f6f0;
}
.brand-logo {
  display: block;
  width: clamp(106px, 22vw, 154px);
  height: auto;
  aspect-ratio: 5 / 1;
  object-fit: contain;
}
.app-brand .brand-logo { width: 106px; margin-bottom: 3px; }

@supports (mask-image: url("rigtrack-logo.webp")) {
  .brand:has(.brand-logo) {
    position: relative;
    padding: 0;
    background: transparent;
  }
  .brand-logo { opacity: 0; }
  .brand::after {
    content: "";
    position: absolute;
    inset: 0;
    /* The color break falls in the gap between the R and I. */
    background: linear-gradient(to right, var(--lime) 17.5%, var(--text) 17.5%);
    mask: url("rigtrack-logo.webp") center / contain no-repeat;
    pointer-events: none;
  }
  @media (prefers-reduced-motion: no-preference) {
    .brand:has(.brand-logo)::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 1;
      pointer-events: none;
      mask: url("rigtrack-logo.webp") center / contain no-repeat;
      /* Restrict the accent to the striped feet of TRACK. */
      clip-path: inset(71% 0 0 37%);
      background-image: linear-gradient(90deg, transparent 46%, var(--lime) 50%, transparent 54%);
      background-repeat: no-repeat;
      background-size: 240% 100%;
      animation: rigtrack-barcode-scan 3s linear infinite;
    }
    @keyframes rigtrack-barcode-scan {
      0% { background-position: 67% 0; opacity: 0; }
      7% { opacity: 1; }
      37.33% { opacity: 1; }
      44.33%, 100% { background-position: 6% 0; opacity: 0; }
    }
  }
}

.workflow-intro p { margin-top: 16px; }
.route-manifest summary { cursor: pointer; color: #82320f; }
.route-manifest ul { padding-inline-start: 1rem; list-style: disc; }
.route-manifest li { display: list-item; padding: 2px 0; border: 0; }
