:root {
  --bg: #07090c;
  --bg-elevated: #0e1218;
  --text: #f3f5f7;
  --muted: #9aa3ad;
  --line: rgba(255, 255, 255, 0.1);
  --blue: #3b82f6;
  --blue-soft: rgba(59, 130, 246, 0.16);
  --aps-red: #e11d2e;
  --champ-yellow: #f5c518;
  --max: 1120px;
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(59, 130, 246, 0.18), transparent 55%),
    radial-gradient(900px 500px at 0% 20%, rgba(255, 255, 255, 0.04), transparent 50%),
    linear-gradient(180deg, #0a0d12 0%, var(--bg) 40%, #05070a 100%);
  background-attachment: fixed;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 9, 12, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 9, 12, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
}

.brand-lockup {
  flex-shrink: 0;
}

.brand-lockup img,
img.brand-lockup {
  height: 56px;
  width: auto;
  max-width: none;
  display: block;
}

.footer-logo {
  height: 28px;
  width: auto;
  max-width: none;
  display: block;
  margin-bottom: 0.8rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--blue);
  color: var(--blue);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--blue);
  color: #041018;
  transform: translateY(-1px);
}

.btn-solid {
  background: var(--blue);
  color: #041018;
}

.btn-solid:hover {
  filter: brightness(1.08);
  color: #041018;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
}

/* Hero + page tops — Option A soft world outline */
.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero {
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5.5rem);
}

.hero > .wrap,
.page-hero > .wrap {
  position: relative;
  z-index: 1;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(ellipse 65% 55% at 72% 38%, rgba(59, 130, 246, 0.2), transparent 68%),
    url("/assets/maps/world-map-v3.svg");
  background-repeat: no-repeat;
  background-size: auto, min(1180px, 100vw) auto;
  background-position: center, right -2% 42%;
  opacity: 0.42;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
}

.eyebrow {
  display: inline-block;
  color: var(--blue);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero h1,
.page-hero h1,
section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  max-width: 11ch;
}

.hero h1 span {
  color: var(--muted);
}

.lead {
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.link-quiet {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.link-quiet:hover {
  color: var(--text);
  border-bottom-color: var(--line);
}

/* Sections */
section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

section h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 16ch;
}

.section-intro {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 2rem;
}

.grid-4,
.grid-3,
.grid-2 {
  display: grid;
  gap: 1.25rem;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.service-item,
.project-item,
.case-item {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
  animation: rise 0.7s ease both;
}

.service-item:nth-child(2),
.project-item:nth-child(2),
.case-item:nth-child(2) { animation-delay: 0.08s; }
.service-item:nth-child(3),
.project-item:nth-child(3),
.case-item:nth-child(3) { animation-delay: 0.16s; }
.service-item:nth-child(4),
.project-item:nth-child(4),
.case-item:nth-child(4) { animation-delay: 0.24s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.service-item h3,
.project-item h3,
.case-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.45rem;
}

.service-item p,
.project-item p,
.case-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.num {
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--blue);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
}

.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.division-band {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.division-band img {
  max-height: 42px;
  width: auto;
}

.division-band p {
  color: var(--muted);
  margin: 0.75rem 0 1.1rem;
}

.page-hero {
  padding: clamp(3rem, 8vw, 5rem) 0 2.5rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  max-width: 14ch;
}

.split-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.split-list li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.split-list strong {
  color: var(--text);
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

.meta-block {
  color: var(--muted);
}

.meta-block h3 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.meta-block + .meta-block {
  margin-top: 1.5rem;
}

form {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(59, 130, 246, 0.45);
  border-color: transparent;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-status {
  min-height: 1.25rem;
  font-size: 0.9rem;
}

.form-status.ok { color: #4ade80; }
.form-status.err { color: #f87171; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--text);
}

.footer-col h4 {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.legal {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.82rem;
}

.prose {
  max-width: 42rem;
  color: var(--muted);
}

.prose h2 {
  font-size: 1.4rem;
  max-width: none;
  margin-top: 2rem;
}

.prose p {
  margin: 0 0 1rem;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3,
  .grid-2,
  .division-band,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    inset: calc(100% - 1px) 1.25rem auto;
    background: #0b0f14;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links.is-open { display: flex; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { max-width: 100%; }
}
