/* Survey and mapping pages. Colours are existing tokens.
   The display-font fallback matches home.css so these headings
   do not jump when Rajdhani arrives. */

@font-face {
  font-family: "Rajdhani Fallback";
  src: local("Liberation Sans"), local("Arial"), local("Arimo"), local("Nimbus Sans");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  size-adjust: 92%;
  ascent-override: 95%;
  descent-override: 25%;
  line-gap-override: 0%;
}

:root {
  --font-display: "Rajdhani", "Rajdhani Fallback", "Arial Narrow", "Nimbus Sans Narrow", sans-serif;
}

.service-hero h1 {
  max-width: 18ch;
  font-size: clamp(2.15rem, 5vw, 3.5rem);
}

.service-hero-grid {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.hero-figure {
  margin: 0;
  min-width: 0;
}

.hero-figure figcaption,
.compare figcaption {
  margin-bottom: 0.55rem;
}

.service-hero figcaption {
  color: var(--color-text);
}

.hero-figure svg,
.hero-figure img,
.thumb svg,
.thumb img,
.volume-art svg,
.volume-art img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.7rem;
}

.flow-diagram {
  display: block;
  width: min(100%, 64rem);
  height: auto;
  margin-top: 0.25rem;
}

.decision-flow,
.service-grid,
.format-grid,
.related-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.decision-flow {
  counter-reset: step;
}

.decision-flow > *,
.service-grid > *,
.format-grid > *,
.related-grid > *,
.card-grid > * {
  min-width: 0;
}

.decision-flow li,
.format-grid article {
  min-width: 0;
  padding: 0.95rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.decision-flow li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-deep);
}

.decision-flow h3,
.format-grid h3 {
  margin-bottom: 0.4rem;
}

.decision-flow p,
.service-grid p,
.format-grid p {
  color: var(--color-text-muted);
}

.plain-list {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
}

.plain-list li + li {
  margin-top: 0.35rem;
}

.thumb {
  margin-bottom: 0.15rem;
  padding: 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: 0.7rem;
  background: var(--color-light);
}

.mock-label,
.card p.mock-label,
figcaption .mock-label {
  display: inline-block;
  margin: 0 0.45rem 0.4rem 0;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--color-dark);
  color: var(--color-on-dark);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
}

.volume-art {
  max-width: 36rem;
  margin-top: 1rem;
}

.section-actions {
  margin-top: 1.35rem;
}

.related-grid a {
  font-weight: 600;
}

@media (min-width: 700px) {
  .service-grid,
  .format-grid,
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }

  .decision-flow {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .service-hero-grid {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    align-items: center;
  }
}

@media (min-width: 1100px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2.5rem;
  }

  .decision-flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.mine-stage.reveal {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.45rem;
}

.reveal {
  position: relative;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  background: #281848;
  cursor: ew-resize;
}

.reveal-under,
.reveal-over img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  object-fit: cover;
}

.reveal-over {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  overflow: hidden;
}

.reveal-labels {
  z-index: 1;
  object-fit: fill;
  pointer-events: none;
  opacity: 0;
}

.reveal-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: #fff;
  transform: translateX(-1.5px);
  pointer-events: none;
}

.reveal-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #281848;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  transform: translate(-50%, -50%);
  cursor: ew-resize;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.mode-row {
  display: grid;
  gap: 1rem;
}

.mode-row figure {
  margin: 0;
}

.mode-row img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.4rem;
}

@media (min-width: 800px) {
  .mode-row {
    grid-template-columns: 1fr 1fr;
  }
}

.media-hero .service-hero-grid,
.media-hero .service-hero-grid {
  grid-template-columns: minmax(0, 40rem);
}

@media (min-width: 900px) {
  .media-hero .service-hero-grid {
    grid-template-columns: minmax(0, 40rem);
  }
}


/* Atrobot Survey & Mapping — video hero */
.survey-video-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #281848;
  min-height: 560px;
}

.survey-video-hero .survey-video-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.survey-video-hero .survey-video-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(24, 12, 46, 0.88) 0%,
    rgba(40, 24, 72, 0.68) 52%,
    rgba(40, 24, 72, 0.28) 100%
  );
}

.survey-video-hero .survey-video-content {
  position: relative;
  z-index: 1;
  min-height: 560px;
  display: flex;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
}

.survey-video-hero h1,
.survey-video-hero p,
.survey-video-hero .eyebrow {
  color: #fff;
}

.survey-video-hero .breadcrumbs a {
  color: #fff;
}

@media (max-width: 768px) {
  .survey-video-hero,
  .survey-video-hero .survey-video-content {
    min-height: 500px;
  }

  .survey-video-hero .survey-video-overlay {
    background: rgba(32, 17, 55, 0.72);
  }
}

@media (prefers-reduced-motion: reduce) {
  .survey-video-hero .survey-video-bg {
    display: none;
  }
}
