/* :root {
  --dark: #22314c;
  --dark-2: #2a3a56;
  --light-bg: #f4f7fb;
  --line: #dde5f0;
  --text: #2b3a50;
  --muted: #5f728e;
  --teal: #2eb8ad;
  --white: #ffffff;
} */

:root {
  --dark: #5f78a4;
  --dark-2: #515f77;
  --light-bg: #f4f7fb;
  --line: #dde5f0;
  --text: #2b3a50;
  --muted: #999ca0;
  --teal: #37434f;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
  background: var(--light-bg);
  color: var(--text);
  line-height: 1.55;
}

a {
  text-decoration: none;
  color: inherit;
}

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

.container {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.top-header {
  background: var(--dark);
  color: #d7e5fa;
}

.top-header-inner {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  gap: 1rem;
}

.top-left,
.top-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navigation {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand img {
  width: 85px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #4f6687;
}

.nav a:hover,
.nav a.active {
  color: var(--dark);
}

.nav-toggle {
  display: none;
  border: 1px solid #b8c7dc;
  background: #fff;
  border-radius: 6px;
  padding: 0.35rem 0.7rem;
}

.hero {
  min-height: 620px;
  background-size: cover;
  background-position: center;
  color: #edf4ff;
  display: flex;
  align-items: flex-end;
}

.hero-content {
  display: block;
  width: min(760px, 100%);
  padding: 1.1rem 0 3.2rem 1.2rem;
  margin: 0 auto 0 0;
  position: relative;
  z-index: 1;
  text-align: left;
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: -1.5rem -4.25rem 0 -1.8rem;
  z-index: -1;
  border-radius: 24px;
  background: rgba(40, 40, 40, 0.45);
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.72) 18%,
    #000 36%,
    #000 100%
  ),
  linear-gradient(
    to right,
    #000 0%,
    #000 72%,
    rgba(0, 0, 0, 0.72) 86%,
    transparent 100%
  );
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.72) 18%,
    #000 36%,
    #000 100%
  ),
  linear-gradient(
    to right,
    #000 0%,
    #000 72%,
    rgba(0, 0, 0, 0.72) 86%,
    transparent 100%
  );
  mask-composite: intersect;
  backdrop-filter: blur(4px);
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: 0.03em;
  text-shadow: 0 3px 18px rgba(6, 12, 20, 0.5);
}

.hero p {
  margin-top: 0.85rem;
  color: #d8e6fd;
  text-shadow: 0 2px 12px rgba(6, 12, 20, 0.45);
}

.page-hero {
  min-height: 230px;
  background-size: cover;
  background-position: center;
  color: #edf4ff;
}

.page-hero-content {
  padding: 4.2rem 0 2.2rem;
}

.page-hero h1 {
  margin: 0;
  font-size: 2.1rem;
}

.page-hero p {
  margin: 0.35rem 0 0;
  color: #d8e6fd;
  font-size: 0.84rem;
}

.eyebrow,
.small-title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  color: #9fd8d6;
}

.small-title {
  color: #5f78a4;
}

.stats {
  background: var(--dark-2);
}

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

.stats article {
  text-align: center;
  padding: 1rem 0.3rem;
  border-right: 1px solid rgba(216, 230, 251, 0.2);
}

.stats article:last-child {
  border-right: 0;
}

.stats h3 {
  margin: 0;
  color: #ecf3ff;
  font-size: 1.45rem;
}

.stats p {
  margin: 0.2rem 0 0;
  color: #cad9f0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section {
  padding: 3.6rem 0;
}

.about-page-gap {
  min-height: 58vh;
  background:
    radial-gradient(circle at top left, rgba(95, 120, 164, 0.12), transparent 34%),
    linear-gradient(180deg, #f4f7fb 0%, #eef3f8 100%);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.about-hero {
  min-height: 300px;
}

.about-hero-content {
  max-width: 820px;
}

.about-hero-content h1 {
  margin: 0.75rem 0 0;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
}

.about-hero-content p {
  margin-top: 0.95rem;
  max-width: 700px;
  font-size: 0.98rem;
  color: #d7e4f7;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 1.2rem;
  margin-bottom: 1.35rem;
}

.about-intro-copy {
  padding-right: 1rem;
}

.about-intro-copy h2 {
  margin: 0.65rem 0 0;
  color: #2d405d;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  line-height: 1.18;
}

.about-intro-copy p {
  margin: 0.85rem 0 0;
  color: #5f728e;
  max-width: 740px;
}

.about-aside-card {
  align-self: start;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 251, 0.95));
  border: 1px solid #dce5f0;
  border-radius: 16px;
  padding: 1.2rem 1.2rem 1.15rem;
  box-shadow: 0 16px 32px rgba(34, 49, 76, 0.08);
}

.about-focus-list {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.8rem;
}

.about-focus-list li {
  position: relative;
  padding-left: 1.05rem;
  color: #5f728e;
}

.about-focus-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #5f78a4;
  box-shadow: 0 0 0 4px rgba(95, 120, 164, 0.14);
}

.about-spread {
  align-items: start;
}

.about-spread .info-card:last-child {
  margin-top: 2rem;
}

.info-card {
  background: #fff;
  border: 1px solid #e3e9f2;
  border-radius: 10px;
  padding: 1.2rem;
  border-left: 3px solid var(--teal);
  box-shadow: 0 8px 26px rgba(34, 49, 76, 0.08);
}

.info-card h2 {
  margin: 0;
  color: #2f7a81;
  font-size: 1.45rem;
}

.about-spread .info-card h2 {
  font-size: 1.9rem;
}

.info-card p {
  margin: 0.7rem 0 0;
  color: var(--muted);
}

.purpose-card {
  padding: 1.4rem 1.35rem 1.3rem;
}

.purpose-card h2 {
  font-size: 1.65rem;
  letter-spacing: 0.04em;
}

.mission-card {
  border-left-color: #2f7a81;
}

.vision-card {
  border-left-color: #5f78a4;
}

.purpose-points {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
  padding-top: 0.2rem;
}

.purpose-point {
  position: relative;
  padding: 0 0 0 1rem;
}

.purpose-point::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  bottom: 0.2rem;
  width: 2px;
  border-radius: 999px;
  background: rgba(55, 67, 79, 0.28);
}

.vision-card .purpose-point::before {
  background: rgba(95, 120, 164, 0.32);
}

.purpose-point h3 {
  margin: 0;
  color: #445c7d;
  font-size: 0.9rem;
  line-height: 1.3;
}

.purpose-point p {
  margin: 0.38rem 0 0;
  color: #7a8797;
  font-size: 0.88rem;
  line-height: 1.5;
}

.about-spread .purpose-card {
  padding: 1.65rem 1.5rem 1.5rem;
}

.about-spread .purpose-card h2 {
  font-size: 1.95rem;
  letter-spacing: 0.05em;
}

.about-spread .detailed-points {
  gap: 0.95rem;
  margin-top: 1.15rem;
  padding-top: 0;
}

.about-spread .detailed-points .purpose-point {
  padding: 0.9rem 1rem 0.95rem 1.1rem;
  border: 1px solid #e8edf5;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(244, 247, 251, 0.78), rgba(255, 255, 255, 0.98));
}

.about-spread .detailed-points .purpose-point::before {
  top: 0.95rem;
  bottom: 0.95rem;
  width: 3px;
  background: var(--teal);
}

.about-spread .vision-card .detailed-points .purpose-point::before {
  background: #6d88b5;
}

.about-spread .detailed-points .purpose-point h3 {
  color: #2f4b72;
  font-size: 0.98rem;
}

.about-spread .detailed-points .purpose-point p {
  color: #61738d;
  font-size: 0.92rem;
  line-height: 1.55;
}

.tech-section {
  background: #fff;
}

.tech-list {
  display: grid;
  gap: 2.2rem;
}

.tech-item h2 {
  margin: 0;
  color: #2f4b72;
  font-size: 1.1rem;
  line-height: 1.4;
}

.tech-item p {
  margin: 0.45rem 0 0.9rem;
  color: #5f728e;
}

.tech-item img {
  width: min(720px, 100%);
  height: auto;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
}

.ref-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  color: #5a6f8f;
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 1.2rem;
}

.home-projects-heading span {
  font-size: 1.64rem;
  line-height: 1.1;
}

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

.reference-card {
  background: #fff;
  border: 1px solid #dde5f0;
  border-radius: 10px;
  padding: 0.85rem;
}

.reference-card-link {
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.reference-card-link:hover {
  transform: translateY(-3px);
  border-color: #c8d5e6;
  box-shadow: 0 12px 26px rgba(34, 49, 76, 0.1);
}

.reference-card img {
  width: 100%;
  height: 370px;
  object-fit: cover;
  border-radius: 8px;
}

.reference-card h3 {
  margin: 0.75rem 0 0;
  font-size: 1rem;
  color: #2d405d;
}

.reference-card p {
  margin: 0.55rem 0 0;
  color: #5c6f8b;
}

.project-detail-section {
  padding-top: 0;
}

.project-detail-list {
  display: grid;
  gap: 1.5rem;
}

.project-detail {
  background: #fff;
  border: 1px solid #dde5f0;
  border-radius: 14px;
  padding: 1.35rem;
  box-shadow: 0 10px 28px rgba(34, 49, 76, 0.08);
  scroll-margin-top: 100px;
}

.project-detail-head {
  margin-bottom: 1rem;
}

.project-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: #e9eef7;
  color: #49627f;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-detail-head h2 {
  margin: 0.7rem 0 0;
  color: #2d405d;
  font-size: 1.45rem;
  line-height: 1.3;
}

.project-detail-gallery {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.project-detail-gallery.two-up {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-detail-gallery.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-detail-gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #d9e2ef;
  cursor: zoom-in;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-detail-gallery img:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(34, 49, 76, 0.14);
}

.project-detail-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

.project-detail-copy p {
  margin: 0;
  color: #5c6f8b;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 30, 0.82);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 2rem));
}

.lightbox-content img {
  display: block;
  width: 100%;
  max-height: calc(100vh - 4rem);
  object-fit: contain;
  border-radius: 12px;
  background: #0d1622;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 240px));
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-card {
  background: #fff;
  border: 1px solid #e0e7f2;
  border-radius: 10px;
  padding: 1.8rem 1rem;
  box-shadow: 0 8px 22px rgba(34, 49, 76, 0.08);
}

.contact-card h3 {
  margin: 0;
  color: #2f4f77;
}

.contact-card p {
  margin: 0.6rem 0 0;
  color: #647896;
}

.form-wrap {
  max-width: 620px;
}

.form-wrap h2 {
  margin: 0 0 1rem;
  color: #2f4f77;
  font-size: 2rem;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d7e1ee;
  border-radius: 4px;
  padding: 0.58rem 0.7rem;
  font: inherit;
  color: #3b4e69;
  background: #fff;
}

.contact-form textarea {
  grid-column: 1 / -1;
  resize: vertical;
}

.contact-form button {
  grid-column: 1 / -1;
  justify-self: start;
  border: none;
  border-radius: 999px;
  background: #214b80;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 0.6rem 1rem;
  cursor: pointer;
}

.form-note {
  margin-top: 0.7rem;
  color: #607491;
}

.footer {
  background: var(--dark);
  color: #d2def0;
  margin-top: 2rem;
}

.footer-grid {
  padding: 2.2rem 0 2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem;
  align-items: end;
}

.footer-brand {
  align-self: end;
  justify-self: start;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.footer-brand img {
  width: 98px;
}

.footer-brand p {
  margin: 0.55rem 0 0;
  color: #70ccc6;
  font-size: 0.8rem;
}

.footer h4 {
  margin: 0;
  color: #77cfc9;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}

.footer ul {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.footer li {
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  color: #9eb1cc;
  font-size: 0.75rem;
  padding: 0.7rem 1rem 1rem;
}

@media (max-width: 980px) {
  .stats-grid,
  .mission-grid,
  .about-intro,
  .reference-grid,
  .project-detail-gallery.two-up,
  .project-detail-gallery.three-up,
  .footer-grid,
  .contact-cards {
    grid-template-columns: 1fr;
  }

  .stats article {
    border-right: 0;
    border-bottom: 1px solid rgba(216, 230, 251, 0.2);
  }

  .stats article:last-child {
    border-bottom: 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 74px;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }

  .nav.open {
    display: flex;
  }

  .hero {
    min-height: 490px;
  }

  .hero-content {
    width: min(680px, 100%);
    padding: 0.9rem 0 2.5rem 0.9rem;
  }

  .hero-content::before {
    inset: -1.1rem -1.25rem 0 -1.15rem;
    background: rgba(16, 26, 40, 0.78);
    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.74) 20%,
      #000 38%,
      #000 100%
    ),
    linear-gradient(
      to right,
      #000 0%,
      #000 74%,
      rgba(0, 0, 0, 0.74) 88%,
      transparent 100%
    );
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0, 0, 0, 0.74) 20%,
      #000 38%,
      #000 100%
    ),
    linear-gradient(
      to right,
      #000 0%,
      #000 74%,
      rgba(0, 0, 0, 0.74) 88%,
      transparent 100%
    );
    mask-composite: intersect;
  }

  .page-hero {
    min-height: 190px;
  }

  .page-hero-content {
    padding: 3rem 0 1.5rem;
  }

  .about-spread .info-card:last-child {
    margin-top: 0;
  }

  .about-intro-copy {
    padding-right: 0;
  }

  .top-header-inner {
    min-height: 52px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0.35rem 0;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }
}

/* Force top-left header logo size */
.navigation .brand .site-logo {
  width: auto !important;
  max-width: none !important;
  height: 55px !important;
}

@media (max-width: 980px) {
  .navigation .brand .site-logo {
    width: auto !important;
    height: 45px !important;
  }
}
