:root {
  --bg: #17181A;
  --surface: #212327;
  --surface2: #2B2E33;
  --ink: #ECEBE6;
  --dim: #9098A0;
  --amber: #E0A526;
  --brake: #B33A3A;
  --line: #3A3D42;
}

html { scroll-behavior: smooth; }

::selection { background: var(--amber); color: #17181A; }

/* focus visibility, kept even on a dark UI */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ---------- Nav ---------- */
.nav-link {
  color: var(--dim);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.15s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--amber); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--amber);
}

.mobile-nav-link {
  display: block;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
}
.mobile-nav-link:hover { color: var(--amber); background: var(--surface); }

.dropdown-item {
  display: block;
  padding: 12px 16px;
  transition: background 0.15s ease;
}
.dropdown-item:hover { background: var(--surface2); }

/* ---------- Signature gauge (hero) ---------- */
.gauge-wrap { width: 100%; max-width: 380px; margin: 0 auto; }
.gauge-needle {
  transform-origin: 150px 150px;
  transform: rotate(-90deg);
  transition: transform 1.6s cubic-bezier(.2,.9,.15,1.05);
}
.gauge-needle.swept { transform: rotate(58deg); }
.gauge-tick { stroke: var(--line); }
.gauge-tick.hot { stroke: var(--brake); }
.gauge-label { fill: var(--dim); font-family: 'JetBrains Mono', monospace; font-size: 11px; }

/* small inline gauge motif used as a bullet in lists */
.mini-gauge { flex-shrink: 0; }

/* ---------- Cards ---------- */
.service-card {
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover { border-color: var(--amber); transform: translateY(-2px); }

.service-card.highlight {
  border-color: var(--amber);
  background: linear-gradient(180deg, rgba(224,165,38,0.07), rgba(224,165,38,0) 60%);
}

/* ---------- Article typography ---------- */
.article-body p {
  color: #D8D6CF;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}
.article-body h3 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--amber);
  font-size: 1.05rem;
  margin-top: 2.25rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.article-body h3::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--amber);
  display: inline-block;
}

/* fade-in for route transitions */
.route-enter { animation: routeFade 0.35s ease both; }
@keyframes routeFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Gallery ---------- */
/* When an <img> fails to load (no real photo added yet), show a placeholder
   box with an icon and the expected filename instead of a broken image. */
.img-missing .placeholder-fill { display: flex; }

.gallery-card { cursor: pointer; }
.gallery-card:hover .img-frame img { transform: scale(1.03); }
.img-frame img { transition: transform 0.3s ease; }

/* Lock background scroll while the lightbox is open */
body.no-scroll { overflow: hidden; }
