/* ============================================================================
   NavaTech — navatech.llc
   Dark industrial theme, shared brand language with the NavaTrak app.
   Palette source: NavaTrak/apex/css/navatrak-theme.css
   ============================================================================ */

:root {
  --yellow: #f8e823;
  --yellow-hover: #e8d800;
  --green: #4ade80;
  --red: #ef4444;

  --bg: #0a0a0a;
  --bg-2: #141414;
  --surface: #1a1a1a;
  --elevated: #2a2a2a;
  --line: #262626;

  --text: #ffffff;
  --text-2: #999999;
  --text-3: #666666;
  --on-yellow: #0a0a0a;

  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'Barlow', sans-serif;
  --font-cond: 'Barlow Condensed', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--yellow); color: var(--on-yellow); }

.accent { color: var(--yellow); }

/* ---------------------------------------------------------------- reveals */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .45s; }
.d5 { transition-delay: .6s; }
.d6 { transition-delay: .75s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-head);
  font-size: 26px;
  letter-spacing: .06em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wordmark em { font-style: normal; color: var(--yellow); }
.wordmark-logo { width: 34px; height: 34px; display: block; }
.wordmark-sm { font-size: 22px; }
.wordmark-sm .wordmark-logo { width: 28px; height: 28px; }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-link-product { color: var(--yellow) !important; }
.nav-link-product:hover { color: var(--yellow-hover) !important; }

.nav-cta {
  border: 1px solid var(--yellow);
  color: var(--yellow) !important;
  padding: 8px 18px;
  transition: background .2s, color .2s !important;
}
.nav-cta:hover { background: var(--yellow); color: var(--on-yellow) !important; }

.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); margin: 5px 0;
  transition: transform .25s, opacity .25s;
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding: 96px 24px 72px;
  max-width: var(--max);
  margin: 0 auto;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 30%, transparent 75%);
  opacity: .5;
  pointer-events: none;
}
.hero-inner { position: relative; }

.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.kicker-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  flex: none;
}
.kicker-dot.pulse { animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,.5); }
  50% { box-shadow: 0 0 0 7px rgba(74,222,128,0); }
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(64px, 11vw, 148px);
  line-height: .9;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-title span { display: block; }

.hero-sub {
  max-width: 560px;
  color: var(--text-2);
  font-size: 19px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 32px;
  transition: transform .15s, background .2s, color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--yellow);
  color: var(--on-yellow);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}
.btn-primary:hover { background: var(--yellow-hover); }
.btn-ghost {
  border: 1px solid var(--elevated);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--text-2); }

.hero-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 72px;
}
.stat {
  background: var(--bg-2);
  padding: 28px 24px;
}
.stat-num {
  display: block;
  font-family: var(--font-head);
  font-size: 56px;
  line-height: 1;
  color: var(--yellow);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* ---------------------------------------------------------------- sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 24px;
}
.section-head { margin-bottom: 48px; }
.section-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.section-sub {
  color: var(--text-2);
  max-width: 560px;
  margin-top: 14px;
}

/* ---------------------------------------------------------------- services */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service {
  position: relative;
  display: block;
  text-decoration: none;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 32px 28px 28px;
  overflow: hidden;
  transition: border-color .25s, transform .25s;
}
.service:hover { border-color: var(--yellow); transform: translateY(-4px); }
.service:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.service-bar {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--yellow);
}
.service-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
  letter-spacing: .1em;
}
.service h3 {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 10px 0 14px;
  color: var(--text);
}
.service-more {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-top: 18px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}
.service:hover .service-more,
.service:focus-visible .service-more { opacity: 1; transform: none; }
.service p { color: var(--text-2); font-size: 16px; }
.service-tag {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid rgba(74,222,128,.3);
  padding: 4px 10px;
}

/* ---------------------------------------------------------------- project tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 400px;
  gap: 20px;
}
.tile {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: block;
  text-decoration: none;
  transition: border-color .3s;
  scroll-margin-top: 84px;
}
.tile:target { border-color: var(--yellow); }
.tile:hover { border-color: var(--yellow); }
.tile:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1) contrast(1.05);
  transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .45s;
}
.tile:hover img,
.tile:focus-visible img { transform: scale(1.05); filter: grayscale(0) contrast(1.05); }
/* no hover on touch devices — show tiles in full color */
@media (hover: none) {
  .tile img { filter: saturate(.9) contrast(1.05); }
}
.tile-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.15) 30%, rgba(10,10,10,.55) 70%, rgba(10,10,10,.92) 100%);
  transition: background .4s;
}
.tile-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 24px 20px;
}
.tile-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-yellow);
  background: var(--yellow);
  padding: 3px 9px;
  margin-bottom: 10px;
}
.tile-name {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
}
.tile-desc {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-top: 6px;
}
.tile-view {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-top: 10px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}
.tile:hover .tile-view,
.tile:focus-visible .tile-view { opacity: 1; transform: none; }

.delivered-head { margin-top: 80px; margin-bottom: 32px; }
.section-title-sm { font-size: clamp(32px, 4vw, 48px); }
.tiles-past { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 300px; }
.tiles-past .tile-name { font-size: 21px; }

/* ---------------------------------------------------------------- service detail page */
.svc-hero {
  position: relative;
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}
.svc-hero-inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.svc-hero .back-link { margin-bottom: 32px; }
.svc-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--on-yellow);
  background: var(--yellow);
  padding: 2px 8px;
}
.svc-lead {
  max-width: 640px;
  color: var(--text-2);
  font-size: 21px;
  margin-top: 20px;
}
.svc-timing {
  color: var(--text-2);
  font-size: 15px;
  margin-top: 12px;
}

/* ---------------------------------------------------------------- project detail page */
.detail-hero {
  position: relative;
  height: 62vh;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
}
.detail-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.85) contrast(1.05);
}
.detail-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.15) 40%, rgba(10,10,10,.94) 100%);
}
.detail-hero-inner {
  position: relative;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px 48px;
}
.detail-hero-inner .kicker { margin-bottom: 12px; }
.back-link {
  display: inline-block;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--yellow);
  background: rgba(10,10,10,.7);
  border: 1px solid var(--yellow);
  padding: 10px 20px;
  margin-bottom: 24px;
  transition: background .2s, color .2s;
}
.back-link:hover { background: var(--yellow); color: var(--on-yellow); }
.detail-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 104px);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .01em;
}

.detail-body { padding-top: 64px; }
.detail-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.detail-copy p {
  color: var(--text-2);
  font-size: 18px;
  margin-bottom: 20px;
}
.detail-copy p:first-child {
  color: var(--text);
  font-size: 21px;
}

.detail-facts {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  padding: 28px;
}
.facts-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}
.facts { margin-bottom: 28px; }
.fact {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.fact dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
}
.fact dd {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-align: right;
}
.facts-services { list-style: none; display: grid; gap: 8px; }
.facts-services li {
  color: var(--text-2);
  font-size: 15px;
  padding-left: 16px;
  position: relative;
}
.facts-services li::before {
  content: '';
  position: absolute;
  left: 0; top: .6em;
  width: 8px; height: 2px;
  background: var(--yellow);
}

/* hero gallery slideshow (project detail pages) */
.detail-hero-img { transition: opacity .3s; }
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  background: rgba(10,10,10,.75);
  border: 1px solid var(--elevated);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.gallery-arrow:hover { background: var(--yellow); color: var(--on-yellow); border-color: var(--yellow); }
.gallery-prev { left: 18px; }
.gallery-next { right: 18px; }
.gallery-count {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 5;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--text);
  background: rgba(10,10,10,.75);
  border: 1px solid var(--elevated);
  padding: 4px 10px;
}

.detail-nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 72px;
}
.detail-nav-all {
  text-align: center;
  border-color: var(--elevated);
}
.detail-nav-all .detail-nav-name { color: var(--yellow); }
.detail-nav-link {
  display: block;
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: 22px 26px;
  text-decoration: none;
  transition: border-color .25s;
}
.detail-nav-link:hover { border-color: var(--yellow); }
.detail-nav-next { text-align: right; }
.detail-nav-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.detail-nav-name {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
}

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .detail-nav { grid-template-columns: 1fr; }
  .detail-nav-next { text-align: left; }
}

/* ---------------------------------------------------------------- contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.contact-card {
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 36px 32px;
  text-decoration: none;
  transition: border-color .25s, transform .25s;
}
a.contact-card:hover { border-color: var(--yellow); transform: translateY(-4px); }
.contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.contact-value {
  display: block;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 26px;
  letter-spacing: .03em;
  color: var(--text);
  margin-bottom: 6px;
}
.contact-hint { display: block; color: var(--text-2); font-size: 15px; }
a.contact-card .contact-hint { color: var(--yellow); }

/* ---------------------------------------------------------------- start-a-project modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,10,10,.8);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }

.modal {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  padding: 36px 36px 32px;
  position: relative;
  animation: modal-in .25s cubic-bezier(.2,.7,.2,1);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .modal { animation: none; }
}

.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: 0;
  color: var(--text-2);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 6px 10px;
  transition: color .2s;
}
.modal-close:hover { color: var(--text); }

.modal-title {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 38px;
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.modal-sub {
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 24px;
}

.modal-field { margin-bottom: 16px; }
.modal-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 6px;
}
.modal-field input,
.modal-field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--elevated);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .2s;
  resize: vertical;
}
.modal-field input:focus,
.modal-field textarea:focus { border-color: var(--yellow); }
.modal-field textarea { min-height: 110px; }

.modal-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.modal-note {
  color: var(--text-3);
  font-size: 13px;
  flex: 1;
  min-width: 180px;
}
.modal-status {
  margin-top: 14px;
  font-size: 14px;
  color: var(--green);
  display: none;
}
.modal-status.error { color: var(--red); }
.modal-status.show { display: block; }

body.modal-locked { overflow: hidden; }

/* stat count popups */
.stat-clickable { cursor: pointer; transition: background .2s; }
.stat-clickable:hover { background: var(--surface); }
.stat-clickable:focus-visible { outline: 2px solid var(--yellow); outline-offset: -2px; }
.modal-wide { max-width: 680px; }
.stat-list {
  list-style: none;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 18px;
  scrollbar-width: thin;
  scrollbar-color: var(--elevated) var(--bg-2);
}
.stat-list::-webkit-scrollbar { width: 8px; }
.stat-list::-webkit-scrollbar-track { background: var(--bg-2); }
.stat-list::-webkit-scrollbar-thumb {
  background: var(--elevated);
  border-radius: 4px;
}
.stat-list::-webkit-scrollbar-thumb:hover { background: var(--text-3); }
.stat-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.stat-list a,
.stat-list-muted > span {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .2s;
}
.stat-list a:hover { color: var(--yellow); }
.stat-list-muted > span { color: var(--text-3); }
.stat-list-client {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
  text-align: right;
  flex: none;
}

/* ---------------------------------------------------------------- clients page */
.clients-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}
.clients-map-wrap {
  position: sticky;
  top: 84px;
}
#clients-map {
  height: calc(100vh - 180px);
  min-height: 420px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  z-index: 1;
}
.clients-map-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 10px;
}

/* collapsible client tiles */
.clients-accordion { display: grid; gap: 12px; }
.client-fold {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
}
.client-fold-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  transition: background .2s;
}
.client-fold-head::-webkit-details-marker { display: none; }
.client-fold-head:hover { background: var(--surface); }
.client-fold-name {
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: .04em;
  text-transform: uppercase;
  flex: 1;
}
.client-fold-count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.client-fold-chevron {
  color: var(--text-3);
  transition: transform .25s;
}
.client-fold[open] .client-fold-chevron { transform: rotate(180deg); }
.client-fold[open] .client-fold-head { border-bottom: 1px solid var(--line); }
.client-fold .client-projects { padding: 16px 20px 18px; }

.client-projects { list-style: none; display: grid; gap: 8px; }
.client-projects li {
  padding-left: 16px;
  position: relative;
}
.client-projects li::before {
  content: '';
  position: absolute;
  left: 0; top: .6em;
  width: 8px; height: 2px;
  background: var(--yellow);
}
.client-projects a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  transition: color .2s;
}
.client-projects a:hover { color: var(--yellow); }
.client-project-muted { color: var(--text-3); font-size: 15px; }

/* dark-theme map popups */
.leaflet-popup-content-wrapper {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--elevated);
  border-radius: 0;
  box-shadow: 0 12px 32px rgba(0,0,0,.6);
}
.leaflet-popup-tip { background: var(--bg-2); }
.leaflet-popup-content { margin: 14px 18px; }
.map-pop-name {
  display: block;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text) !important;
  text-decoration: none;
}
.map-pop-name:hover { color: var(--yellow) !important; }
.map-pop-client {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-top: 4px;
}
.map-pop-status {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 2px;
}
.leaflet-container a.leaflet-popup-close-button { color: var(--text-2); }
.leaflet-tooltip {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--elevated);
  border-radius: 0;
  font-family: var(--font-cond);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 5px 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,.5);
}
.leaflet-tooltip-top:before { border-top-color: var(--elevated); }
.leaflet-control-attribution {
  background: rgba(10,10,10,.7) !important;
  color: var(--text-3) !important;
}
.leaflet-control-attribution a { color: var(--text-2) !important; }

@media (max-width: 900px) {
  .clients-layout { grid-template-columns: 1fr; }
  .clients-map-wrap { position: static; }
  #clients-map { height: 380px; min-height: 0; }
}

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { color: var(--text-3); font-size: 14px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .services { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 340px; }
  .tiles-past { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; }
}

@media (max-width: 560px) {
  .tiles, .tiles-past { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-burger { display: block; }
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding-top: 64px; }
  .section { padding: 64px 24px; }
}
