:root {
  color-scheme: dark;
  --bg: #0a0612;
  --bg-2: #12051f;
  --panel: rgba(255, 255, 255, .07);
  --panel-strong: rgba(255, 255, 255, .12);
  --text: #f7f2ff;
  --muted: #b9a9ce;
  --line: rgba(255, 255, 255, .14);
  --purple: #8b5cf6;
  --purple-2: #c026d3;
  --cyan: #22d3ee;
  --ink: #170c25;
  --light: #f5f2fa;
  --light-text: #171020;
  --light-muted: #5e526d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 86px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(9, 5, 18, .82);
  backdrop-filter: blur(18px);
}
.site-header.is-scrolled { box-shadow: 0 18px 50px rgba(0, 0, 0, .32); }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 0 28px rgba(139, 92, 246, .24);
}
.brand-mark img {
  width: 82%;
  height: 82%;
  display: block;
  object-fit: contain;
}
.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  color: var(--muted);
  font-size: 14px;
}
.main-nav a:hover { color: var(--text); }
.header-cta, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
}
.header-cta {
  border: 1px solid rgba(255,255,255,.36);
}
.button.primary {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
  box-shadow: 0 18px 45px rgba(139, 92, 246, .32);
}
.button.ghost {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
}
.menu-button { display: none; }

.section-dark {
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
    radial-gradient(circle at 78% 12%, rgba(139, 92, 246, .34), transparent 28%),
    radial-gradient(circle at 12% 70%, rgba(34, 211, 238, .13), transparent 24%),
    var(--bg);
  background-size: 58px 58px, 58px 58px, auto, auto, auto;
}
.section-light {
  background: var(--light);
  color: var(--light-text);
}
.hero {
  min-height: calc(100vh - 86px);
  padding: clamp(28px, 4vw, 64px) clamp(18px, 4vw, 56px) 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .12em;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: .98;
  letter-spacing: 0;
}
mark {
  display: inline-block;
  padding: 0 .14em .06em;
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--purple-2));
}
.hero-lead {
  max-width: 710px;
  color: var(--muted);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 34px 0;
}
.metrics {
  display: grid;
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 760px;
  margin: 0;
}
.metrics div, .service-card, .timeline article, .lead-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.metrics div { padding: 18px; }
.metrics dt { font-size: 29px; font-weight: 900; }
.metrics dd { margin: 6px 0 0; color: var(--muted); }
.hero-art {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #10071b;
  box-shadow: 0 28px 90px rgba(0,0,0,.48);
}
.hero-art img {
  width: 100%;
  min-height: clamp(340px, 38vw, 460px);
  object-fit: cover;
}
.service-strip {
  display: flex;
  gap: 28px;
  margin: clamp(46px, 6vw, 78px) calc(clamp(18px, 4vw, 56px) * -1) 0;
  padding: 21px clamp(18px, 4vw, 56px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: rgba(255,255,255,.72);
  font-size: clamp(20px, 3vw, 42px);
  font-weight: 900;
  white-space: nowrap;
}
.service-strip span { min-width: max-content; }

section:not(.hero) {
  padding: clamp(70px, 8vw, 118px) clamp(18px, 4vw, 56px);
}
.section-head {
  display: grid;
  grid-template-columns: minmax(180px, .45fr) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  max-width: 1240px;
  margin: 0 auto 40px;
}
.section-head h2 {
  margin: 0;
  max-width: 920px;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}
.intro-layout {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 34px;
  max-width: 1240px;
  margin: 0 auto;
}
.intro-layout p {
  color: var(--light-muted);
  font-size: 21px;
  line-height: 1.55;
}
.pill-grid, .stack-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pill-grid span, .stack-grid span {
  border: 1px solid rgba(23,16,32,.12);
  border-radius: 8px;
  padding: 14px 18px;
  background: white;
  color: var(--light-text);
  font-weight: 800;
}
.region-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
}
.region-grid article {
  min-height: 260px;
  padding: 24px;
  border: 1px solid rgba(23,16,32,.12);
  border-radius: 8px;
  background: white;
}
.region-grid h3 {
  margin-bottom: 14px;
  font-size: 24px;
  line-height: 1.08;
}
.region-grid p {
  color: var(--light-muted);
  line-height: 1.62;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
}
.service-card {
  min-height: 236px;
  padding: 24px;
}
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  border-radius: 8px;
  color: white;
  background: rgba(139, 92, 246, .2);
  border: 1px solid rgba(139, 92, 246, .45);
  font-weight: 900;
}
.service-card h3, .timeline h3 {
  font-size: 24px;
  margin-bottom: 12px;
}
.service-card p, .timeline p, .case-card span, .contact-copy p, .contact-copy li {
  color: var(--muted);
  line-height: 1.62;
}
.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
}
.timeline article {
  background: white;
  border-color: rgba(23,16,32,.1);
  padding: 24px;
}
.timeline span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 42px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 900;
}
.timeline p { color: var(--light-muted); }
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
}
.case-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.case-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.case-card div { padding: 22px; }
.case-card p {
  margin-bottom: 10px;
  color: var(--cyan);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .1em;
}
.case-card h3 { font-size: 28px; margin-bottom: 10px; }
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 1240px;
  margin: 28px auto 0;
}
.project-card {
  display: block;
  overflow: hidden;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.045));
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(192, 38, 211, .58);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .34);
  outline: none;
}
.project-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 0;
  object-fit: cover;
}
.project-body {
  padding: 18px;
}
.project-tag {
  margin-bottom: 12px;
  color: var(--cyan);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .1em;
}
.project-card h3 {
  margin-bottom: 0;
  font-size: 21px;
  line-height: 1.04;
}
.project-details {
  display: none;
}
.modal-content p:not(.project-tag) {
  color: var(--muted);
  line-height: 1.62;
}
.modal-content ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 34px);
}
.project-modal.is-open {
  display: flex;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 2, 8, .78);
  backdrop-filter: blur(16px);
}
.modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, .78fr);
  width: min(1180px, 100%);
  max-height: min(86vh, 900px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10071b;
  box-shadow: 0 34px 120px rgba(0, 0, 0, .62);
}
.modal-media {
  min-height: 420px;
  max-height: min(86vh, 900px);
  overflow: auto;
  background: #050309;
}
.modal-panel img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: initial;
  background: #050309;
}
.modal-content {
  align-self: center;
  max-height: min(86vh, 900px);
  overflow: auto;
  padding: clamp(22px, 3vw, 38px);
}
.modal-content h3 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(0,0,0,.48);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
body.modal-lock {
  overflow: hidden;
}
.stack-grid {
  max-width: 1240px;
  margin: 0 auto;
}
.contact {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 44px;
  align-items: start;
}
.contact-copy h2 {
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1;
  margin-bottom: 22px;
}
.contact-copy ul {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding-left: 20px;
}
.contact-direct {
  display: grid;
  gap: 12px;
  max-width: 460px;
  margin-top: 28px;
  color: var(--muted);
}
.contact-direct .button {
  width: fit-content;
}
.lead-form {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 3vw, 34px);
}
.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 16px;
  color: var(--text);
  background: rgba(255,255,255,.06);
  font: inherit;
}
select option {
  color: #171020;
  background: #ffffff;
}
textarea { resize: vertical; }
.consent {
  grid-template-columns: 18px 1fr;
  align-items: center;
}
.consent input { width: 18px; height: 18px; }
button:disabled {
  cursor: not-allowed;
  opacity: .5;
  box-shadow: none;
}
.form-status { margin: 0; color: var(--cyan); min-height: 24px; }
.footer {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(280px, 1.2fr);
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: #07040c;
}
.footer div {
  display: grid;
  gap: 8px;
}
.footer-brand {
  color: var(--text);
  font-weight: 900;
  font-size: 20px;
}
.footer-legal {
  justify-items: end;
  text-align: right;
  font-size: 14px;
  line-height: 1.45;
}
.footer-legal a {
  color: var(--cyan);
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header { grid-template-columns: auto auto; }
  .menu-button {
    display: inline-grid;
    gap: 5px;
    justify-self: end;
    width: 44px;
    height: 44px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: transparent;
  }
  .menu-button span { height: 2px; background: var(--text); }
  .main-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 0 4px;
  }
  .main-nav.is-open { display: flex; }
  .header-cta { display: none; }
  .hero-grid, .intro-layout, .contact { grid-template-columns: 1fr; }
  .metrics {
    grid-column: auto;
    grid-row: auto;
  }
  .hero-art img { min-height: 340px; }
  .section-head { grid-template-columns: 1fr; }
  .services-grid, .case-grid, .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modal-panel { grid-template-columns: 1fr; overflow: auto; }
  .modal-media { min-height: 0; max-height: 58vh; }
  .modal-content { max-height: none; }
  .timeline, .region-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .hero { min-height: auto; }
  .metrics, .services-grid, .timeline, .case-grid, .project-grid, .region-grid { grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .service-strip { font-size: 22px; }
  .footer {
    grid-template-columns: 1fr;
  }
  .footer-legal {
    justify-items: start;
    text-align: left;
  }
  .contact-direct .button {
    width: 100%;
  }
}
