/* Heseman Consulting — dark editorial. Accent sampled from logo: #bf0000 */

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("assets/fonts/Inter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter Tight";
  src: url("assets/fonts/InterTight-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter Tight";
  src: url("assets/fonts/InterTight-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter Tight";
  src: url("assets/fonts/InterTight-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #07090d;
  --bg-raise: #0b0f16;
  --card: #11151c;
  --card-hover: #161b24;
  --ink: #f3f1ec;
  --muted: #9aa0ab;
  --faint: #6d7380;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --red: #bf0000;
  --red-deep: #bf0000;
  --red-soft: rgba(191, 0, 0, 0.16);
  --paper: #f4f0ea;
  --font: "Inter", "Source Sans 3", "Liberation Sans", sans-serif;
  --display: "Inter Tight", "Inter", "Liberation Sans", sans-serif;
  --pad: clamp(1.25rem, 5vw, 5.5rem);
  --nav-h: 6.4rem;
  --max: 72rem;
  --radius: 1.15rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 0.75rem);
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.6;
  letter-spacing: -0.011em;
  min-height: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 1px solid var(--red);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 80;
  padding: 0.4rem 0.7rem;
  background: var(--red);
  color: #fff;
  font-size: 0.85rem;
  border-radius: 999px;
}

.skip:focus {
  top: 0.75rem;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 70;
  pointer-events: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— nav ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--nav-h);
  padding: 0.7rem var(--pad);
  background: #07090d;
  border-bottom: 1px solid var(--line);
}

.nav-brand {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  line-height: 0;
}

.nav-brand:hover {
  opacity: 0.92;
}

.nav-logo {
  display: block;
  height: 4.28rem;
  width: auto;
  max-width: min(372px, 58vw);
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2rem);
}

.nav nav {
  display: flex;
  align-items: center;
  gap: clamp(0.95rem, 2.2vw, 1.7rem);
}

.nav nav a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: -0.01em;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.nav nav a:hover,
.nav nav a:focus-visible,
.nav nav a.is-active {
  color: var(--ink);
}

.nav nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.55rem;
  height: 1px;
  background: var(--red);
}

.nav-cta {
  padding: 0.52rem 1.05rem;
  font-size: 0.88rem;
}

.nav-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
}

.nav-actions .nav-cta {
  min-width: 10.2rem;
}

.nav-toolbox-btn {
  background: #3d4450;
  color: #fff;
}

.nav-toolbox-btn:hover,
.nav-toolbox-btn:focus-visible {
  background: #4c5563;
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.38rem;
}

.nav-toggle-bar {
  display: block;
  width: 1.15rem;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

/* ——— buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.88rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn span[aria-hidden] {
  transition: transform 0.2s var(--ease);
}

.btn:hover span[aria-hidden] {
  transform: translateX(3px);
}

.btn-fill {
  background: var(--red);
  color: #fff;
}

.btn-fill:hover,
.btn-fill:focus-visible {
  background: var(--red-deep);
  color: #fff;
}

.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-line:hover,
.btn-line:focus-visible {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
}

/* ——— hero ——— */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: flex;
  align-items: center;
  padding: clamp(4.5rem, 12vh, 8.5rem) var(--pad) clamp(5rem, 14vh, 9rem);
  overflow: hidden;
}

.hero-grid,
.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.038) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.038) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 85% 70% at 40% 35%, #000 10%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 40% 35%, #000 10%, transparent 72%);
}

.hero-glow {
  background:
    radial-gradient(ellipse 55% 45% at 32% 38%, rgba(191, 0, 0, 0.09), transparent 62%),
    radial-gradient(ellipse 40% 35% at 55% 20%, rgba(255, 255, 255, 0.035), transparent 60%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(54rem, 100%);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.55rem;
  padding: 0.38rem 0.78rem 0.38rem 0.55rem;
  border-radius: 999px;
  background: rgba(17, 21, 28, 0.88);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.2;
}

.chip-dot,
.kicker-dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
  flex: 0 0 auto;
}

.hero h1 {
  margin: 0 0 1.35rem;
  font-family: var(--display);
  font-size: clamp(2.35rem, 5.1vw, 4.15rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.hero h1 .accent {
  display: block;
  color: var(--red);
}

.hero-lead {
  margin: 0 0 2.15rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.012em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 0.8rem;
}

/* ——— sections ——— */
.section {
  position: relative;
  padding: clamp(4.75rem, 11vh, 7.75rem) var(--pad);
}

.section-head {
  margin-bottom: clamp(2.1rem, 4.5vw, 3.4rem);
  max-width: var(--max);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.section-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.038em;
  color: var(--ink);
}

/* ——— services cards ——— */
.cards {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.card {
  position: relative;
  margin: 0;
  padding: 1.35rem 1.3rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  left: 1.3rem;
  right: 1.3rem;
  top: 0;
  height: 1px;
  background: var(--red);
  opacity: 0.55;
}

.card:hover {
  background: var(--card-hover);
  border-color: rgba(191, 0, 0, 0.28);
  transform: translateY(-3px);
}

.card-label {
  display: block;
  margin-bottom: 1.05rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--red);
}

.card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--ink);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ——— process ——— */
.process {
  background: var(--bg-raise);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.steps li {
  padding: 1.6rem 1.45rem 1.7rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.step-num {
  display: block;
  margin-bottom: 1.35rem;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--red);
}

.steps h3 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* ——— about ——— */
.about-grid {
  max-width: var(--max);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.95fr);
  gap: clamp(1.6rem, 4.5vw, 3.8rem);
  align-items: start;
}

.about-copy p {
  margin: 0 0 1.15rem;
  max-width: 46rem;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.6vw, 1.22rem);
  line-height: 1.65;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-emphasis {
  color: var(--ink) !important;
  font-weight: 500;
}

.about-close {
  color: var(--red) !important;
  font-family: var(--display);
  font-weight: 650;
  letter-spacing: -0.02em;
}

.about-portrait {
  min-width: 0;
}

.about-portrait figure {
  margin: 0;
}

.about-portrait img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.about-portrait figcaption {
  margin-top: 0.85rem;
}

.about-name {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.about-role {
  margin: 0;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}


/* ——— testimonials ——— */
.testimonials {
  border-top: 1px solid var(--line);
}

.quotes {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: var(--max);
  display: grid;
  gap: 0.9rem;
}

.quote {
  margin: 0;
  padding: 1.7rem 1.55rem 1.65rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.quote::before {
  content: "";
  position: absolute;
  left: 1.55rem;
  right: 1.55rem;
  top: 0;
  height: 1px;
  background: var(--red);
  opacity: 0.55;
}

.quote blockquote {
  margin: 0 0 1.45rem;
}

.quote blockquote p {
  margin: 0 0 0.95rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  line-height: 1.6;
  letter-spacing: -0.012em;
}

.quote blockquote p:first-child {
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.28rem, 2.2vw, 1.7rem);
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.03em;
}

.quote blockquote p:last-child {
  margin-bottom: 0;
}

.quote em {
  font-style: normal;
  color: var(--red);
}

.quote footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem 2rem;
}

.quote-who {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.quote-logo {
  display: block;
  flex: 0 0 auto;
  width: min(9.4rem, 38%);
  height: auto;
  opacity: 0.92;
}

.quote-logo--lg {
  width: min(14.1rem, 52%);
}


.quote-name {
  margin: 0;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.quote-role {
  margin: 0;
  color: var(--red);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quote-co {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ——— contact ——— */
.contact {
  background: var(--bg-raise);
  border-top: 1px solid var(--line);
}

.contact-grid {
  max-width: var(--max);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.lines li {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.lines li:first-child {
  padding-top: 0;
}

.line-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.line-value {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--ink);
  word-break: break-word;
  line-height: 1.35;
  transition: color 0.2s var(--ease);
}

.line-value:hover {
  color: var(--red);
}

.line-phone {
  font-family: var(--display);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 0.9rem;
  padding: 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.15rem);
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form label span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.72rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.65rem;
  background: #0c1016;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.98rem;
  line-height: 1.4;
  resize: vertical;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.form input:hover,
.form select:hover,
.form textarea:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}

.form select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns=%27http://www.w3.org/2000/svg%27 width=%2712%27 height=%278%27 viewBox=%270 0 12 8%27><path fill=%27%23bf0000%27 d=%27M1.1 1.2 6 6.1l4.9-4.9 1.1 1.1L6 8.3 0 2.3z%27/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 0.7rem;
  padding-right: 2.1rem;
  cursor: pointer;
}

.form-message {
  grid-column: 1 / -1;
}

.form .btn {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0.25rem;
}

/* ——— footer ——— */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem var(--pad) 1.7rem;
  border-top: 1px solid var(--line);
}

.foot p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ——— motion ——— */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.75s var(--ease) forwards;
  animation-play-state: paused;
}

.reveal.in {
  animation-play-state: running;
}

.cards .reveal:nth-child(1) { animation-delay: 0.02s; }
.cards .reveal:nth-child(2) { animation-delay: 0.08s; }
.cards .reveal:nth-child(3) { animation-delay: 0.14s; }
.cards .reveal:nth-child(4) { animation-delay: 0.2s; }
.cards .reveal:nth-child(5) { animation-delay: 0.26s; }
.cards .reveal:nth-child(6) { animation-delay: 0.32s; }

.steps .reveal:nth-child(1) { animation-delay: 0.04s; }
.steps .reveal:nth-child(2) { animation-delay: 0.12s; }
.steps .reveal:nth-child(3) { animation-delay: 0.2s; }

.hero-inner {
  animation: rise 0.9s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero-inner,
  .progress,
  .card,
  .btn,
  .btn span[aria-hidden] {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }

  .progress {
    display: none;
  }
}

@media (min-width: 860px) {
  .hero h1 .accent {
    white-space: nowrap;
  }
}

/* ——— breakpoints ——— */
@media (max-width: 1080px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .about-grid,
  .contact-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .quote footer {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .quote-logo {
    width: 8.2rem;
  }

  .quote-logo--lg {
    width: 12.3rem;
  }

  .form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  :root {
    --nav-h: 4.15rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.85rem var(--pad) 1.25rem;
    background: rgba(7, 9, 13, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
  }

  .nav.is-open .nav-panel {
    display: flex;
  }

  .nav nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }

  .nav nav a.is-active::after {
    display: none;
  }

  .nav-actions {
    margin-top: 0.65rem;
    width: 100%;
  }

  .nav-cta {
    width: 100%;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: flex-end;
    padding-top: 3.5rem;
    padding-bottom: 3.75rem;
    min-height: calc(100svh - var(--nav-h));
  }

  .hero h1 {
    font-size: clamp(2.15rem, 10.4vw, 2.85rem);
  }

  .nav {
    background: rgba(7, 9, 13, 0.92);
  }

  .nav-logo {
    height: 3.22rem;
    max-width: min(264px, 62vw);
  }
}

@media (max-width: 420px) {
  .hero-actions .btn {
    width: 100%;
  }

  .chip {
    font-size: 0.74rem;
  }
}

html.no-motion {
  scroll-behavior: auto;
}

html.no-motion .reveal,
html.no-motion .hero-inner {
  animation: none !important;
  opacity: 1;
  transform: none;
}

html.no-motion .progress {
  display: none;
}

html.shot-hero .services,
html.shot-hero .process,
html.shot-hero .about,
html.shot-hero .testimonials,
html.shot-hero .contact,
html.shot-hero .foot {
  display: none;
}

html.shot-services .hero,
html.shot-services .process,
html.shot-services .about,
html.shot-services .testimonials,
html.shot-services .contact,
html.shot-services .foot {
  display: none;
}

html.shot-hero .hero,
html.shot-services .services {
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
}

html.shot-full .hero {
  min-height: 0;
  padding-top: 4.25rem;
  padding-bottom: 4.5rem;
}

html.shot-full .section {
  padding-top: 3.6rem;
  padding-bottom: 3.6rem;
}

html.shot-process .hero,
html.shot-process .services,
html.shot-process .about,
html.shot-process .testimonials,
html.shot-process .contact,
html.shot-process .foot {
  display: none;
}

html.shot-about .hero,
html.shot-about .services,
html.shot-about .process,
html.shot-about .testimonials,
html.shot-about .contact,
html.shot-about .foot {
  display: none;
}

html.shot-contact .hero,
html.shot-contact .services,
html.shot-contact .process,
html.shot-contact .about,
html.shot-contact .testimonials {
  display: none;
}

html.shot-testimonials .hero,
html.shot-testimonials .services,
html.shot-testimonials .process,
html.shot-testimonials .about,
html.shot-testimonials .contact,
html.shot-testimonials .foot {
  display: none;
}

/* ——— toolbox ——— */

.toolbox-module-leads {
  display: grid;
  gap: 1rem 2.2rem;
  margin: 0 0 1.15rem;
  max-width: 64rem;
}

@media (min-width: 640px) {
  .toolbox-module-leads {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 860px) {
  .toolbox-module-leads {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.toolbox-module-jump {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.15rem 0.2rem 0.15rem 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.toolbox-module-jump:hover .toolbox-module-jump-desc,
.toolbox-module-jump:focus-visible .toolbox-module-jump-desc {
  color: var(--ink);
}

.toolbox-module-jump:focus-visible {
  outline: 1px solid var(--red);
  outline-offset: 4px;
  border-radius: 0.35rem;
}

.toolbox-module-jump-name {
  display: block;
  margin: 0 0 0.28rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.toolbox-module-jump-desc {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease);
}

.hero-compact .hero-note {
  margin: 0;
  max-width: 36rem;
  color: var(--faint);
  font-size: 0.82rem;
  line-height: 1.45;
}

.hero-compact {
  min-height: 0;
  padding: clamp(2.4rem, 8vh, 4.4rem) var(--pad) clamp(2.6rem, 8vh, 4.2rem);
}

.toolbox {
  border-top: 1px solid var(--line);
}

.toolbox-accent {
  margin: 0.7rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--red);
}

.toolbox-lead {
  margin: -1.1rem 0 2rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.12rem);
  line-height: 1.55;
}

.toolbox-grid {
  max-width: var(--max);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(1.2rem, 3vw, 2.2rem);
  align-items: start;
}

.toolbox-form .toolbox-mode {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.toolbox-form .toolbox-mode legend {
  margin: 0 0 0.45rem;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.toolbox-seg {
  display: flex;
  gap: 0.2rem;
  padding: 0.22rem;
  background: #0c1016;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}

.toolbox-seg-opt {
  display: flex;
  align-items: stretch;
  flex: 1 1 0;
  margin: 0;
  cursor: pointer;
}

.toolbox-seg-opt span {
  flex: 1 1 auto;
  align-self: stretch;
  box-sizing: border-box;
}

.toolbox-seg-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toolbox-form .toolbox-seg-opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--muted);
  line-height: 1;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.toolbox-form .toolbox-seg-opt input:checked + span {
  background: var(--red);
  color: #fff;
}

.toolbox-form .toolbox-seg-opt input:focus-visible + span {
  outline: 1px solid var(--red);
  outline-offset: 2px;
}

.toolbox-form[data-mode="llh"] .is-spc,
.toolbox-form[data-mode="spc"] .is-llh {
  display: none;
}

.toolbox-zone {
  grid-column: 1 / -1;
}

.toolbox-out {
  padding: 1.4rem 1.35rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.15rem);
  min-height: 100%;
}

.toolbox-status {
  margin: 0 0 1rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.toolbox-status.is-error {
  border-color: rgba(191, 0, 0, 0.45);
  background: var(--red-soft);
  color: var(--ink);
}

.toolbox-status.is-busy {
  color: var(--muted);
}

.toolbox-empty {
  margin: 0 0 1.15rem;
  color: var(--faint);
  font-size: 0.98rem;
}

.toolbox-lines li {
  gap: 0.45rem;
}

.toolbox-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
}

.toolbox-row .line-value {
  min-width: 0;
}

.toolbox-row .line-value:hover {
  color: var(--ink);
}

.toolbox-copy {
  flex: 0 0 auto;
  margin: 0.05rem 0 0;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--faint);
  font-family: inherit;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.toolbox-copy:hover:not(:disabled),
.toolbox-copy:focus-visible:not(:disabled) {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.28);
}

.toolbox-copy:disabled {
  opacity: 0.4;
  cursor: default;
}

.toolbox-copy.is-copied {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.toolbox-credit {
  margin: 1.15rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.78rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

@media (max-width: 860px) {
  .toolbox-grid {
    grid-template-columns: 1fr;
  }

  .toolbox-lead {
    margin-top: 0;
  }
}

@media (max-width: 780px) {
}

/* HC Toolbox — map + wellpath import */
.toolbox-import {
  max-width: var(--max);
  margin-top: clamp(1.2rem, 3vw, 2.2rem);
}

.toolbox-import .toolbox-paths,
.toolbox-import .toolbox-status,
.toolbox-import .toolbox-path-dl,
.toolbox-import .toolbox-import-crs,
.toolbox-import .toolbox-io,
.toolbox-import .scout-paste {
  grid-column: 1 / -1;
}

.toolbox-import-crs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 0.9rem;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid rgba(191, 0, 0, 0.45);
  border-radius: 0.85rem;
  background: var(--red-soft);
}

.toolbox-import-crs[hidden] {
  display: none;
}

.toolbox-import-prompt {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.45;
}

.toolbox-import .btn:disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.toolbox-paths {
  display: grid;
  gap: 0.85rem;
}

.toolbox-path {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.toolbox-path[data-mode="llh"] .is-spc {
  display: none;
}

.toolbox-path-remove {
  grid-column: 1 / -1;
  justify-self: start;
}

.toolbox-import input[type="file"] {
  color-scheme: dark;
  padding: 0.55rem 0.7rem;
}

.toolbox-path-dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
}

.toolbox-path-dl a {
  color: var(--ink);
  font-size: 0.92rem;
}

.toolbox-path-dl a:hover {
  color: var(--red);
}

.toolbox-map-frame {
  position: relative;
  z-index: 1;
  isolation: isolate;
  max-width: var(--max);
  margin-top: clamp(1.2rem, 3vw, 2.2rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.15rem);
  overflow: hidden;
}

#toolbox-map {
  height: 320px;
  width: 100%;
  background: #0c1016;
}

.toolbox-map-frame[data-empty="1"] #toolbox-map-empty {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 1.4rem 1.35rem;
  pointer-events: none;
}

.toolbox-map-frame:not([data-empty="1"]) #toolbox-map-empty {
  display: none;
}

.toolbox-legend {
  display: none;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
  margin: 0;
  padding: 0.7rem 1rem;
  list-style: none;
  border-top: 1px solid var(--line);
}

.toolbox-legend:not([hidden]) {
  display: flex;
}

.toolbox-legend li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 0.9rem;
}

.toolbox-swatch {
  width: 0.7rem;
  height: 0.7rem;
  background: var(--red);
}

.toolbox-map-frame .leaflet-container {
  background: #0c1016;
  font-family: var(--font);
  height: 320px;
  cursor: grab;
  touch-action: none;
}
.toolbox-map-frame .leaflet-container:active {
  cursor: grabbing;
}

.toolbox-map-frame .leaflet-control-attribution {
  background: rgba(17, 21, 28, 0.88);
  color: var(--faint);
}

.toolbox-map-frame .leaflet-control-attribution a {
  color: var(--muted);
}

.toolbox-map-frame .leaflet-control-zoom {
  border: 1px solid rgba(255,255,255,0.12);
  background: #11151c;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45);
  border-radius: 6px;
  overflow: hidden;
}
.toolbox-map-frame .leaflet-control-zoom a,
.toolbox-map-frame .leaflet-touch .leaflet-control-zoom a {
  background: #11151c;
  color: #f4f1ea;
  border-bottom-color: rgba(255,255,255,0.1);
  width: 30px;
  height: 30px;
  line-height: 30px;
}
.toolbox-map-frame .leaflet-control-zoom a:hover,
.toolbox-map-frame .leaflet-touch .leaflet-control-zoom a:hover {
  background: #1b212b;
  color: #fff;
}

@media (max-width: 860px) {
  .toolbox-path,
  .toolbox-import-crs {
    grid-template-columns: 1fr;
  }
}

.toolbox-switch {
  max-width: var(--max);
  margin: 0 0 1.6rem;
  padding: 0;
  border: 0;
  min-width: 0;
}

.toolbox-switch legend {
  margin: 0 0 0.45rem;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.toolbox-switch .toolbox-seg {
  max-width: 28rem;
}

.toolbox-switch .toolbox-seg-opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--muted);
  line-height: 1;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.toolbox-switch .toolbox-seg-opt input:checked + span {
  background: var(--red);
  color: #fff;
}

.toolbox-switch .toolbox-seg-opt input:focus-visible + span {
  outline: 1px solid var(--red);
  outline-offset: 2px;
}

.toolbox-single[hidden],
.toolbox-multi[hidden] {
  display: none;
}

.toolbox-io {
  display: grid;
  gap: 0.85rem;
}

.toolbox-io-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 0.9rem;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #0c1016;
}

.toolbox-io-label {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.toolbox-drop {
  border: 1px dashed var(--line-strong);
  border-radius: 0.85rem;
  padding: 1rem 1.05rem 1.1rem;
  background: #0c1016;
}

.toolbox-drop.is-over {
  border-color: var(--red);
  background: var(--red-soft);
}

.toolbox-drop-hint {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.45;
  text-transform: none;
}

@media (max-width: 860px) {
  .toolbox-io-block {
    grid-template-columns: 1fr;
  }
}

.toolbox-files,
.toolbox-drop input[type="file"] {
  color: transparent;
  width: 100%;
}
.toolbox-drop input[type="file"]::file-selector-button {
  color: #f3f1ec;
  background: #1a2230;
  border: 1px solid var(--line-strong);
  border-radius: 0.45rem;
  padding: 0.4rem 0.75rem;
  margin-right: 0.7rem;
  font: inherit;
  cursor: pointer;
}
.toolbox-file-count {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.toolbox-path-name {
  margin: 0 0 0.15rem;
  color: #f3f1ec;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ——— Offset Scout ——— */

.scout-datum {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.scout-datum legend {
  margin: 0 0 0.45rem;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.scout-datum .toolbox-seg-opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--muted);
  line-height: 1;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.scout-datum .toolbox-seg-opt input:checked + span {
  background: var(--red);
  color: #fff;
}

.scout-datum .toolbox-seg-opt input:focus-visible + span {
  outline: 1px solid var(--red);
  outline-offset: 2px;
}

.toolbox-module .toolbox-seg {
  max-width: 42rem;
}

.toolbox-module .toolbox-seg-opt span {
  padding-left: 0.48rem;
  padding-right: 0.48rem;
  font-size: 0.82rem;
}

.toolbox-conversions[hidden],
.toolbox-scout[hidden] {
  display: none;
}

.scout-map-frame #scout-map,
.scout-map-frame .leaflet-container {
  height: min(62vh, 560px);
}

.scout-overlays {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 1100;
  min-width: 11.6rem;
  padding: 0.72rem 0.85rem 0.78rem;
  background: rgba(17, 21, 28, 0.92);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
}

.scout-overlays[hidden] {
  display: none;
}

.scout-overlays-title {
  margin: 0 0 0.48rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}

.scout-visible-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin: 0 0 0.35rem;
}

.scout-visible-head .scout-overlays-title {
  margin: 0;
}

.scout-visible-toggle {
  margin: 0;
  padding: 0.15rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.scout-visible-toggle:hover,
.scout-visible-toggle:focus-visible {
  color: var(--ink);
  border-color: var(--red);
}

.scout-overlay-opt {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.18rem 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.scout-overlay-opt input {
  accent-color: #bf0000;
  width: 0.9rem;
  height: 0.9rem;
  margin: 0;
}

.scout-overlay-opt.is-coming {
  color: var(--faint);
  cursor: not-allowed;
}

.scout-esri-overlay {
  pointer-events: none;
}

.toolbox-path .scout-order {
  grid-column: 1 / -1;
}

.scout-kind-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.toolbox-path .scout-order .toolbox-seg {
  flex: 1 1 16rem;
  border-radius: 999px;
}

.toolbox-path .scout-order .toolbox-seg-opt span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.15rem;
  padding: 0.48rem 0.55rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--muted);
  line-height: 1.15;
  text-align: center;
}

.toolbox-path .scout-order .toolbox-seg-opt input:checked + span {
  background: var(--red);
  color: #fff;
}

.toolbox-path .scout-order .toolbox-seg-opt input:focus-visible + span {
  outline: 1px solid var(--red);
  outline-offset: 2px;
}

.form label.scout-xy,
.scout-xy {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  align-self: center;
  flex: 0 0 auto;
  gap: 0;
  width: auto;
  min-width: 2.15rem;
  height: 2.15rem;
  margin: 0;
  padding: 0 0.58rem;
  border: 1px solid #3a3a36;
  border-radius: 999px;
  background: #0c1016;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}

.form .scout-xy input,
.scout-xy input {
  position: absolute;
  inset: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: none;
  border: 0;
  background: transparent;
  box-shadow: none;
  accent-color: transparent;
}

.form .scout-xy input:hover,
.form .scout-xy input:focus,
.form .scout-xy input:focus-visible,
.scout-xy input:hover,
.scout-xy input:focus,
.scout-xy input:focus-visible {
  outline: none;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.form .scout-xy span,
.scout-xy span {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: none;
  color: inherit;
  white-space: nowrap;
}

.scout-xy:has(input:checked),
.scout-xy.is-on {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--ink);
  background: #0c1016;
}

.scout-xy:has(input:disabled) {
  opacity: 0.38;
  cursor: default;
  pointer-events: none;
}

.scout-xy:has(input:focus-visible) {
  outline: 1px solid var(--line-strong);
  outline-offset: 2px;
}

.scout-paste {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.85rem 0.9rem;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #0c1016;
}

.scout-paste .scout-datum {
  margin: 0;
}

.scout-paste .toolbox-seg {
  width: 100%;
}

.scout-grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  min-width: 0;
  background: #0a0e14;
  border: 1px solid var(--line-strong);
  border-radius: 0.65rem;
  overflow: hidden;
}

.scout-grid th,
.scout-grid td {
  width: 50%;
  padding: 0;
  border: 1px solid var(--line);
  vertical-align: stretch;
}

.scout-grid thead th {
  padding: 0.28rem 0.32rem;
  background: #11151c;
}

.scout-grid thead label {
  gap: 0;
  margin: 0;
}

.form .scout-grid thead select,
.scout-grid thead select {
  padding: 0.48rem 2rem 0.48rem 0.7rem;
  font-size: 0.88rem;
  border-radius: 0.5rem;
}

.form .scout-grid td input,
.scout-grid td input {
  width: 100%;
  margin: 0;
  padding: 0.42rem 0.58rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-size: 0.92rem;
  line-height: 1.3;
  resize: none;
}

.form .scout-grid td input:hover,
.scout-grid td input:hover {
  border: 0;
  background: rgba(255, 255, 255, 0.02);
}

.form .scout-grid td input:focus,
.scout-grid td input:focus {
  outline: none;
  border: 0;
  box-shadow: inset 0 0 0 1px var(--red);
  background: rgba(191, 0, 0, 0.08);
}

.scout-paste-zone[hidden] {
  display: none;
}

.scout-paste .btn {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0;
}

#scout-drop:focus,
#scout-drop:focus-visible {
  outline: 1px solid var(--red);
  outline-offset: 2px;
}

.scout-drop-wrap {
  position: relative;
  grid-column: 1 / -1;
}

.toolbox-conversions {
  position: relative;
}

.toolbox-conversions .toolbox-switch {
  padding-right: 5.1rem;
}

.form .btn.scout-reset,
.scout-reset,
.form .btn.toolbox-reset,
.toolbox-reset {
  position: absolute;
  top: 0.72rem;
  right: 0.75rem;
  z-index: 3;
  padding: 0.36rem 0.78rem;
  font-size: 0.8rem;
  margin-top: 0;
  grid-column: auto;
  justify-self: auto;
  white-space: nowrap;
}

.scout-drop-wrap .toolbox-drop {
  padding-right: 5.1rem;
}

.scout-map-frame[data-empty="1"] #scout-map-empty {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 1.4rem 1.35rem;
  pointer-events: none;
}

.scout-map-frame:not([data-empty="1"]) #scout-map-empty {
  display: none;
}


.toolbox-path .scout-pair-col,
.toolbox-path .scout-file-zone {
  grid-column: 1 / -1;
}

.toolbox-path .scout-zone-note {
  grid-column: 1 / -1;
  margin: -0.25rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.toolbox-path .scout-zone-note.is-needed {
  color: var(--ink);
}


.scout-visible {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  bottom: auto;
  z-index: 1100;
  box-sizing: border-box;
  width: min(22.5rem, calc(100% - 1.4rem));
  max-width: calc(100% - 1.4rem);
  max-height: min(46%, 18.5rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.72rem 0.85rem 0.7rem;
  background: rgba(17, 21, 28, 0.92);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
}

.scout-visible[hidden] {
  display: none;
}

.scout-visible.is-collapsed {
  width: auto;
  max-height: none;
  padding: 0.38rem 0.45rem 0.38rem 0.55rem;
}

.scout-visible.is-collapsed .scout-visible-head {
  margin: 0;
}

.scout-visible.is-collapsed .scout-overlays-title,
.scout-visible.is-collapsed .scout-visible-meta,
.scout-visible.is-collapsed .scout-visible-actions,
.scout-visible.is-collapsed .scout-visible-list {
  display: none;
}

.scout-visible.is-collapsed .scout-visible-toggle {
  padding: 0.2rem 0.7rem;
  color: var(--ink);
}

.scout-visible-meta {
  margin: 0 0 0.45rem;
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.scout-visible-list {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: auto;
  min-height: 0;
}

.scout-visible-item {
  display: grid;
  grid-template-columns: 7.4rem 3.4rem 1fr;
  gap: 0.45rem;
  width: 100%;
  margin: 0;
  padding: 0.32rem 0.2rem;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.scout-visible-list li:first-child .scout-visible-item {
  border-top: 0;
}

.scout-visible-item:hover,
.scout-visible-item:focus-visible {
  background: rgba(191, 0, 0, 0.12);
}

.scout-visible-api {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.scout-visible-num {
  color: #f3f1ec;
  font-weight: 600;
}

.scout-visible-kind {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scout-visible-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.45rem;
}

.scout-visible-actions .btn {
  margin: 0;
  padding: 0.32rem 0.7rem;
  font-size: 0.78rem;
  flex: 0 1 auto;
}


.scout-visible-item.is-nd {
  grid-template-columns: minmax(8.6rem, auto) minmax(4rem, 1.4fr) auto;
}

.scout-visible-ticket {
  display: inline-block;
  margin: -0.08rem 0.2rem 0.32rem;
  color: #c9d7ef;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.scout-visible-ticket:hover,
.scout-visible-ticket:focus-visible {
  color: #f3f1ec;
}

.scout-map-frame.is-drawing #scout-map {
  cursor: crosshair;
}

@media (max-width: 640px) {
  .scout-visible {
    width: calc(100% - 1.4rem);
    max-width: calc(100% - 1.4rem);
    max-height: min(50%, 16.5rem);
    padding: 0.58rem 0.65rem 0.55rem;
  }
  .scout-visible-actions .btn {
    padding: 0.28rem 0.55rem;
    font-size: 0.72rem;
  }
}
