﻿:root {
  --bg: #0b0f18;
  --bg-soft: #0f1524;
  --surface: #151d2f;
  --surface-soft: #1a2438;
  --line: #2b3550;
  --ink: #f2f5ff;
  --muted: #aeb8cf;
  --accent: #5d63ff;
  --accent-soft: #7e84ff;
  --warm: #f2b538;
  --warm-soft: #e0a428;
  --white: #ffffff;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow: 0 18px 52px rgba(3, 6, 12, 0.52);
  --container: min(1180px, 92vw);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 5.7vw, 4.5rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.55rem, 3vw, 2.5rem);
  line-height: 1.12;
}

h3 {
  font-size: 1.16rem;
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(8, 11, 18, 0.95);
  border-bottom: 1px solid rgba(63, 79, 107, 0.45);
  backdrop-filter: blur(10px);
}

body[data-page="home"] .site-header {
  position: absolute;
  width: 100%;
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(7, 10, 17, 0.86), rgba(7, 10, 17, 0));
  backdrop-filter: none;
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}

.brand img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.brand-text {
  display: grid;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 1.06rem;
  color: #f7f9ff;
}

.brand-text em {
  font-style: normal;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: #aeb8cd;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav > a,
.nav-dropdown > a {
  text-decoration: none;
  color: #e6ecfa;
  font-size: 0.97rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  opacity: 0.9;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  opacity: 1;
  color: #ffffff;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > a::after {
  content: " v";
  font-size: 0.72em;
}

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  min-height: 86px;
}

.submenu {
  display: none;
  position: absolute;
  top: calc(100% - 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 250px;
  border-radius: 10px;
  border: 1px solid #36435f;
  background: #141c2d;
  box-shadow: var(--shadow);
  padding: 7px;
  z-index: 95;
}

.submenu a {
  display: block;
  text-decoration: none;
  color: #d6deef;
  padding: 9px 11px;
  font-size: 0.92rem;
  border-radius: 8px;
  font-weight: 600;
}

.submenu a:hover {
  background: #253250;
  color: #ffffff;
}

.nav-dropdown:hover .submenu,
.nav-dropdown:focus-within .submenu,
.nav-dropdown.is-open .submenu {
  display: block;
}

.menu-toggle {
  display: none;
  border: 1px solid #556685;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #eef3ff;
  padding: 8px 14px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 24%, rgba(59, 96, 234, 0.28), rgba(8, 11, 18, 0.82) 45%),
    linear-gradient(114deg, rgba(8, 11, 18, 0.9), rgba(8, 11, 18, 0.42) 50%, rgba(8, 11, 18, 0.88));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin-top: 76px;
}

.eyebrow {
  margin-bottom: 13px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.76rem;
  font-weight: 800;
  color: #d4def2;
}

.lead {
  margin-top: 18px;
  max-width: 60ch;
  color: #d7def0;
  font-size: clamp(1rem, 1.95vw, 1.2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  padding: 11px 20px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #f8faff;
}

.btn-primary:hover {
  background: var(--accent-soft);
}

.btn-warm {
  background: var(--warm);
  color: #161616;
}

.btn-warm:hover {
  background: var(--warm-soft);
}

.btn-ghost {
  border-color: rgba(236, 244, 255, 0.45);
  background: rgba(255, 255, 255, 0.05);
  color: #eef3ff;
}

.hero-bottom {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1.75fr minmax(210px, 1fr);
  gap: 14px;
  align-items: stretch;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(98, 117, 150, 0.5);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(8, 12, 20, 0.8);
}

.metric-line {
  padding: 14px 9px;
  text-align: center;
  border-right: 1px solid rgba(88, 107, 140, 0.45);
}

.metric-line:last-child {
  border-right: 0;
}

.metric-line strong {
  display: block;
  color: #f6f9ff;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 1.17rem;
}

.metric-line span {
  display: block;
  margin-top: 3px;
  color: #b1bed7;
  font-size: 0.75rem;
}

.hero-value {
  border: 1px solid rgba(98, 117, 150, 0.55);
  border-radius: 12px;
  background: rgba(8, 12, 20, 0.8);
  padding: 12px 15px;
  display: grid;
  align-content: center;
}

.hero-value span {
  color: #a8b6d0;
  font-size: 0.82rem;
}

.hero-value strong {
  color: #5e7dff;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1;
  margin-top: 3px;
}

.hero-value small {
  margin-top: 5px;
  color: #92a4c1;
  font-size: 0.76rem;
}

.section {
  padding: clamp(58px, 8vw, 102px) 0;
}

.section-kicker {
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.74rem;
  font-weight: 800;
  color: #899fd0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  max-width: 26ch;
}

.section-intro {
  background: var(--bg-soft);
  border-top: 1px solid #1e2940;
  border-bottom: 1px solid #1e2940;
}

.center-intro {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.center-intro p {
  margin-top: 12px;
  color: var(--muted);
}

.stats-ribbon {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ribbon-item {
  background: rgba(20, 28, 44, 0.78);
  border: 1px solid #2a3652;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.ribbon-item strong {
  display: block;
  font-size: 1.4rem;
  font-family: "Montserrat", "Segoe UI", sans-serif;
}

.ribbon-item span {
  display: block;
  margin-top: 4px;
  color: #a9b6cf;
  font-size: 0.82rem;
}

.section-logos {
  background: #0b101a;
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 34px;
  padding-top: 10px;
}

.logo-strip span {
  color: #cfd8ea;
  letter-spacing: 0.08em;
  font-size: 0.84rem;
  font-weight: 700;
}

.reference-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.reference-card {
  background: linear-gradient(170deg, rgba(25, 35, 58, 0.95), rgba(16, 23, 38, 0.95));
  border: 1px solid #2f3d59;
  border-radius: 12px;
  padding: 14px;
}

.reference-card strong {
  display: block;
  font-family: "Montserrat", "Segoe UI", sans-serif;
  font-size: 1rem;
}

.reference-card span {
  display: block;
  margin-top: 6px;
  color: #acbad4;
  font-size: 0.86rem;
}

.section-projects {
  position: relative;
  background: var(--bg);
}

.section-projects::before,
.section-projects::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(94, 108, 154, 0.2);
  border-radius: 28px;
  pointer-events: none;
}

.section-projects::before {
  left: 4vw;
  top: 70px;
}

.section-projects::after {
  right: 4vw;
  bottom: 50px;
}

.project-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.showcase-item {
  border: 1px solid #2a3550;
  border-radius: 14px;
  overflow: hidden;
  background: #141b2c;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.showcase-item:hover {
  transform: translateY(-3px);
  border-color: #4e63a0;
}

.showcase-media {
  position: relative;
  aspect-ratio: 16 / 10;
}

.showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.71rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(8, 11, 18, 0.75);
  border: 1px solid rgba(113, 130, 162, 0.6);
}

.status-badge.is-ongoing {
  background: rgba(93, 99, 255, 0.23);
  border-color: rgba(140, 146, 255, 0.9);
}

.showcase-body {
  padding: 14px 14px 16px;
}

.showcase-overline {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #8da2cf;
  font-weight: 800;
}

.showcase-body h3 {
  margin-top: 8px;
}

.showcase-body p {
  margin-top: 8px;
  color: #b5c1da;
}

.showcase-link {
  margin-top: 11px;
  display: inline-flex;
  text-decoration: none;
  color: #a4b7ff;
  font-weight: 800;
}

.showcase-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.showcase-meta span {
  font-size: 0.73rem;
  color: #a8b4ce;
  border: 1px solid #32405c;
  border-radius: 999px;
  padding: 4px 10px;
}

.section-news {
  background: #eceff5;
  color: #121827;
}

.section-news .section-kicker {
  color: #5f6dc7;
}

.section-news .section-head h2 {
  color: #121827;
}

.news-stage {
  border: 1px solid #cfd7e8;
  border-radius: 14px;
  background: #ffffff;
  padding: 22px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.news-card {
  border: 1px solid #d9e0ee;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.news-body {
  padding: 13px;
}

.news-body h4 {
  font-size: 1rem;
  color: #151f35;
}

.news-body p {
  margin-top: 8px;
  color: #5f6d86;
  font-size: 0.95rem;
}

.subhero {
  position: relative;
  min-height: 390px;
  display: flex;
  align-items: flex-end;
  background-image: var(--hero-image, url("../img/hero.jpg"));
  background-size: cover;
  background-position: center;
}

.subhero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(7, 10, 17, 0.84), rgba(7, 10, 17, 0.46) 45%, rgba(7, 10, 17, 0.86)),
    linear-gradient(180deg, rgba(7, 10, 17, 0.18), rgba(7, 10, 17, 0.85));
}

.subhero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 92px 0 52px;
}

.subhero-content p {
  margin-top: 12px;
  color: #ccd7eb;
}

.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid #1e2940;
  border-bottom: 1px solid #1e2940;
}

.split-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.split-intro p {
  color: var(--muted);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.value-card,
.service-block,
.scope-item,
.info-table,
.project-card,
.detail-aside,
.contact-info,
.contact-form,
.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.value-card {
  padding: 18px;
}

.value-card p {
  margin-top: 10px;
  color: var(--muted);
}

.info-table {
  overflow: hidden;
}

.info-table div {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #27334d;
}

.info-table div:last-child {
  border-bottom: 0;
}

.info-table strong {
  color: #d7e1f2;
}

.info-table span {
  color: #b8c4dc;
}

.service-stack {
  display: grid;
  gap: 14px;
}

.service-block {
  padding: 20px;
}

.service-block p {
  margin-top: 10px;
  color: var(--muted);
}

.service-block ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: #bdc8de;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.scope-item {
  padding: 14px;
  text-align: center;
  font-weight: 700;
}

.cta-section {
  background: #0c111b;
}

.cta-box {
  border: 1px solid #2f3c58;
  border-radius: 14px;
  background: #161f31;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  margin-bottom: 20px;
}

.filter-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-group button {
  border: 1px solid #364562;
  background: #162033;
  color: #e7edff;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  cursor: pointer;
}

.filter-group button:hover,
.filter-group button.is-active {
  background: #2e3f65;
  border-color: #4b6192;
}

.search-wrap {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.88rem;
}

.search-wrap input {
  min-width: 260px;
  border: 1px solid #384966;
  border-radius: 10px;
  background: #121a29;
  color: #eff4ff;
  padding: 10px 12px;
  font: inherit;
}

.projects-summary {
  margin-bottom: 14px;
  color: #aebbd5;
  font-size: 0.94rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: #4b6192;
}

.project-card-media {
  position: relative;
  aspect-ratio: 16 / 11;
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-body {
  padding: 14px;
}

.project-card-body p {
  margin-top: 8px;
  color: #b8c3d9;
}

.project-card-link {
  margin-top: 11px;
  display: inline-flex;
  text-decoration: none;
  color: #9fb7ff;
  font-weight: 800;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  border-style: dashed;
  padding: 22px;
  color: #b7c4dd;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(290px, 0.66fr);
  gap: 16px;
  align-items: start;
}

.detail-cover {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.detail-gallery {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.detail-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
}

.detail-aside {
  position: sticky;
  top: 98px;
  padding: 14px;
}

.detail-aside h3 {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #364563;
  background: #212b41;
}

.detail-aside ul {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.detail-aside li {
  padding: 10px 0;
  border-bottom: 1px solid #2d3a55;
  display: grid;
  gap: 4px;
}

.detail-aside li:last-child {
  border-bottom: 0;
}

.detail-aside li strong {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.77rem;
  color: #9fb0ce;
}

.detail-aside li span {
  color: #d6e0f2;
}

.detail-nav {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.detail-nav a {
  border: 1px solid #374663;
  border-radius: 999px;
  text-decoration: none;
  padding: 10px 14px;
  background: #151f31;
  color: #dbe5fa;
  font-weight: 700;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-info,
.contact-form {
  padding: 18px;
}

.contact-info p {
  margin-top: 10px;
  color: #b9c5dc;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: #acb8d0;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #374764;
  border-radius: 8px;
  background: #121a2a;
  color: #eef4ff;
  padding: 10px 12px;
  font: inherit;
}

.site-footer {
  margin-top: 34px;
  border-top: 1px solid #28334c;
  background: #090e17;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 18px;
  padding: 28px 0;
}

.footer-grid p {
  margin-top: 8px;
  color: #9fafcc;
}

.footer-grid a {
  color: #b8c7e5;
}

.footer-bottom {
  border-top: 1px solid #26324a;
  padding: 12px 0 24px;
  color: #95a7c6;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .projects-grid,
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 78px;
    left: 4vw;
    right: 4vw;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    border: 1px solid #33435f;
    border-radius: 12px;
    background: #121a2a;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 10px;
    border-radius: 8px;
  }

  .main-nav a:hover,
  .main-nav a.is-active {
    background: #202c42;
  }

  .nav-dropdown > a::after {
    float: right;
  }

  .nav-dropdown > a {
    min-height: 0;
  }

  .submenu {
    position: static;
    transform: none;
    display: block;
    margin-top: 5px;
    border: 1px solid #30405d;
    background: #1a2436;
    box-shadow: none;
  }

  .hero {
    min-height: 94svh;
  }

  .hero-content {
    margin-top: 90px;
  }

  .hero-bottom {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-line {
    border-right: 0;
    border-bottom: 1px solid rgba(88, 107, 140, 0.45);
  }

  .metric-line:nth-child(3),
  .metric-line:nth-child(4) {
    border-bottom: 0;
  }

  .stats-ribbon {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-intro,
  .project-showcase,
  .reference-grid,
  .scope-grid,
  .footer-grid,
  .detail-layout,
  .contact-layout,
  .projects-grid,
  .news-grid,
  .value-grid {
    grid-template-columns: 1fr;
  }

  .detail-aside {
    position: static;
  }

  .info-table div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .search-wrap input {
    min-width: 0;
    width: 100%;
  }
}
