/* ===== Design tokens ===== */
:root {
  --bg: #261e28;
  --bg-alt: #332933;
  --text: #f5f5f5;
  --text-muted: #bcaebb;
  --accent: #ff3b30;
  --accent-2: #7b2ff0;
  --border: #4a3d4c;
  --radius: 4px;
  --max-width: 1200px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(900px 500px at 12% 0%, rgba(255,59,48,.10), transparent 60%),
    radial-gradient(900px 600px at 88% 40%, rgba(123,47,240,.10), transparent 60%),
    radial-gradient(800px 500px at 20% 90%, rgba(255,59,48,.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.05; margin: 0 0 .4em; font-weight: 800; letter-spacing: -0.03em; text-transform: uppercase; }
p { margin: 0 0 1em; color: var(--text-muted); }

.section-inner, .nav-inner, .hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: .6em;
}
.eyebrow.center { text-align: center; }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(38,30,40,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo {
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: .05em;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; margin-right: auto; margin-left: 48px; }
.nav-links a {
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--text); }
.btn-nav { padding: 10px 22px; font-size: .8rem; }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 1.4rem; cursor: pointer; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 160px 0 100px;
  text-align: center;
  overflow: hidden;
}
.hero-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -2;
  background: #0a0a0a;
}
.hero-slideshow img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: heroFade 24s infinite;
}
.hero-slideshow img:nth-child(1) { animation-delay: 0s; }
.hero-slideshow img:nth-child(2) { animation-delay: 6s; }
.hero-slideshow img:nth-child(3) { animation-delay: 12s; }
.hero-slideshow img:nth-child(4) { animation-delay: 18s; }
@keyframes heroFade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  25%  { opacity: 1; }
  29%  { opacity: 0; }
  100% { opacity: 0; }
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(255,59,48,.16), transparent 70%),
    linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.72) 55%, rgba(10,10,10,.92) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .hero-slideshow img { animation: none; opacity: 0; }
  .hero-slideshow img:first-child { opacity: 1; }
}
.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.5rem);
}
.tagline {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1.15rem;
  color: var(--text-muted);
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 40px;
  max-width: 700px;
  margin: 0 auto;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat strong { font-size: 2rem; font-weight: 900; letter-spacing: -0.02em; }
.stat span { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; }

/* ===== Client strip ===== */
.client-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 22px 0;
  background: var(--bg-alt);
}
.client-track {
  display: flex;
  align-items: center;
  gap: 56px;
  white-space: nowrap;
  animation: scroll-left 60s linear infinite;
  width: max-content;
}
.client-track img {
  height: 52px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  opacity: .9;
  transition: opacity .15s ease, transform .15s ease;
  flex-shrink: 0;
}
.client-track img:hover { opacity: 1; transform: translateY(-2px); }
.client-strip:hover .client-track { animation-play-state: paused; }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: transform .15s ease, opacity .15s ease, background .15s ease;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: #ff544a; }
.btn-secondary {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-secondary:hover { border-color: var(--text); }

/* ===== Sections ===== */
.section { padding: 110px 0; position: relative; }
.section-alt {
  background:
    radial-gradient(700px 400px at 85% 10%, rgba(123,47,240,.12), transparent 65%),
    radial-gradient(700px 400px at 10% 90%, rgba(255,59,48,.10), transparent 65%),
    var(--bg-alt);
}
.section h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: .3em;
}
.section-sub {
  text-align: center;
  max-width: 480px;
  margin: 0 auto 2rem;
}
.section-cta {
  display: flex;
  justify-content: center;
  margin: 24px 0 0;
}

/* ===== Map ===== */
.map-wrap {
  max-width: 920px;
  margin: 40px auto 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #241c26;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.world-map {
  display: block;
  width: 100%;
  height: auto;
}
.map-countries path {
  fill: #3c2f40;
  stroke: #52434f;
  stroke-width: 0.6;
}
.map-arc {
  fill: none;
  stroke: var(--accent-2);
  stroke-width: 1.3;
  opacity: 0;
  stroke-dasharray: 4 5;
  animation: mapArcIn 1s ease forwards, mapArcFlow 4s linear infinite;
}
@keyframes mapArcIn {
  from { opacity: 0; }
  to { opacity: .6; }
}
@keyframes mapArcFlow {
  to { stroke-dashoffset: -180; }
}
.map-pin {
  cursor: pointer;
  opacity: 0;
  animation: mapPinIn .5s ease forwards;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes mapPinIn {
  from { opacity: 0; transform: scale(0.3); }
  to { opacity: 1; transform: scale(1); }
}
.map-pin-dot { fill: var(--accent); stroke: #fff2f1; stroke-width: 0.8; }
.map-pin-pulse {
  fill: var(--accent);
  opacity: .55;
  transform-box: fill-box;
  transform-origin: center;
  animation: mapPulse 2.4s ease-out infinite;
}
@keyframes mapPulse {
  0%   { transform: scale(1); opacity: .5; }
  100% { transform: scale(4.5); opacity: 0; }
}
.map-hq-dot {
  fill: var(--accent-2);
  stroke: #f3e9ff;
  stroke-width: 0.8;
}
.map-hq-pulse {
  fill: var(--accent-2);
  opacity: .6;
  transform-box: fill-box;
  transform-origin: center;
  animation: mapPulse 2.4s ease-out infinite;
}
.map-label {
  font-size: 13px;
  font-weight: 700;
  fill: #fff;
  paint-order: stroke;
  stroke: #241c26;
  stroke-width: 3px;
  text-anchor: middle;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}
.map-label--hq { fill: #e8d9ff; }
.map-pin:hover .map-label,
.map-pin:focus .map-label,
.map-pin.active .map-label {
  opacity: 1;
}
.map-legend {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: .85rem;
  color: var(--text-muted);
}
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.legend-dot--hq { background: var(--accent-2); }

@media (max-width: 640px) {
  .map-wrap { max-width: 100%; padding: 14px; }
  .map-label { font-size: 16px; }
}

/* ===== Filter bar ===== */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 40px 0 48px;
  flex-wrap: wrap;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  cursor: pointer;
  transition: all .15s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--text); }
.filter-btn.active { background: var(--accent); border-color: var(--accent); color: white; }

/* ===== Work grid ===== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4px;
}
.work-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
}
.work-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.work-card:hover .work-thumb { transform: scale(1.06); }
.work-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85) 100%);
}
.work-tag {
  align-self: flex-start;
  background: var(--accent);
  color: white;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.work-overlay h3 {
  font-size: 1.1rem;
  margin: 0;
  color: white;
}
.work-card.hidden { display: none; }

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  margin-top: 48px;
}
.service-card {
  background: var(--bg-alt);
  padding: 32px 28px;
}
.service-card h3 {
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: .5em;
}
.service-card p { font-size: .9rem; margin: 0; }

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: center;
}
.about-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border: 1px solid var(--border);
}
.about-copy h2 { text-align: left; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.4rem; }
.badge {
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .8rem;
  color: var(--text-muted);
}

/* ===== Contact ===== */
.contact-inner { max-width: 600px; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row input { flex: 1; min-width: 200px; }
input, textarea {
  font: inherit;
  padding: 15px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
input::placeholder, textarea::placeholder { color: #666; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form-note { font-size: .78rem; text-align: center; }
.contact-direct { text-align: center; border-top: 1px solid var(--border); padding-top: 28px; }
.contact-direct > a { font-weight: 700; font-size: 1.05rem; }
.social-row { display: flex; justify-content: center; gap: 24px; margin-top: 14px; }
.social-row a { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.social-row a:hover { color: var(--text); }

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 36px 0;
  color: var(--text-muted);
  font-size: .8rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .nav-toggle { display: block; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; margin: 0 auto; }
  .about-copy h2 { text-align: center; }
  .about-copy p { text-align: center; }
  .badges { justify-content: center; }
}
