:root {
  color-scheme: light;
  --brand: #1219ca;
  --brand-dark: #1a365d;
  --focus: #ffbf47;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus) !important;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  padding: 0.75rem 1rem;
  border-radius: 0.25rem;
  background: #fff;
  color: #111827;
  font-weight: 700;
  box-shadow: 0 4px 16px rgb(0 0 0 / 25%);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.nav-link[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

/* Shared homepage footer */
.site-footer.site-footer {
  padding: 44px 0 20px;
  background: #081426;
  color: #fff;
  font-family: "Montserrat", Arial, sans-serif;
}

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

.site-footer .container {
  width: min(calc(100% - 48px), 1240px);
  max-width: none;
  margin-inline: auto;
  padding: 0;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer .footer-main {
  display: grid;
  padding-bottom: 36px;
  border-bottom: 1px solid rgb(255 255 255 / 14%);
  grid-template-columns: 1.25fr 0.75fr 0.75fr;
  gap: 48px;
}

.site-footer .footer-brand p {
  max-width: 390px;
  margin: 12px 0 0;
  color: rgb(255 255 255 / 58%);
  font-size: 0.9rem;
  hyphens: auto;
  line-height: 1.7;
  text-align: justify;
}

.site-footer .brand-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.site-footer .brand-symbol {
  position: relative;
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
}

.site-footer .brand-symbol img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-footer .logo-copy {
  display: flex;
  min-width: 190px;
  flex-direction: column;
}

.site-footer .logo-name {
  font-family: "Manrope", Arial, sans-serif;
  font-size: 2.55rem;
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 0.82;
}

.site-footer .logo-group {
  display: grid;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  grid-template-columns: 1fr auto 1fr;
}

.site-footer .logo-group i {
  display: block;
  height: 2px;
  background: currentColor;
}

.site-footer .logo-group b {
  font-size: 0.67rem;
  font-weight: 800;
  line-height: 1;
}

.site-footer .footer-title {
  margin: 0 0 22px;
  color: rgb(255 255 255 / 42%);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.site-footer .footer-links {
  display: grid;
  gap: 10px;
}

.site-footer .footer-links a {
  width: fit-content;
  color: rgb(255 255 255 / 76%);
  font-size: 0.86rem;
  transition: color 180ms ease;
}

.site-footer .footer-links a:hover {
  color: #fff;
}

.site-footer .footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  color: rgb(255 255 255 / 42%);
  font-size: 0.7rem;
}

.site-footer .footer-bottom p {
  margin: 0;
}

.site-footer .social-links {
  display: flex;
  gap: 12px;
}

.site-footer .social-links a {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 20%);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.site-footer .social-links a:hover {
  border-color: rgb(255 255 255 / 55%);
  background: rgb(255 255 255 / 8%);
}

.site-footer .social-links svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 860px) {
  .site-footer .container {
    width: min(calc(100% - 36px), 1240px);
  }

  .site-footer .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .site-footer.site-footer {
    padding-top: 36px;
  }

  .site-footer .container {
    width: min(calc(100% - 28px), 1240px);
  }

  .site-footer .footer-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer .footer-brand {
    grid-column: auto;
  }

  .site-footer .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  #preloader {
    display: none !important;
  }

  #main-content {
    display: block !important;
  }
}

/* Shared project-detail treatment: used by every legacy project page. */
.header-overlay.project-header-height {
  display: flex !important;
  min-height: 590px !important;
  max-height: none !important;
  height: 650px !important;
  align-items: flex-end;
  background: #152440 !important;
}

.header-overlay.project-header-height::before {
  background-image: url("../images/Background.jpg") !important;
  background-position: center !important;
  opacity: .72 !important;
}

.header-overlay.project-header-height::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 23, 45, .94) 0%, rgba(10, 23, 45, .76) 46%, rgba(10, 23, 45, .18) 100%);
  content: "";
}

.header-overlay.project-header-height .content-container,
.header-overlay.project-header-height + section.py-16.bg-white > .container,
.header-overlay.project-header-height ~ section.py-16.bg-gray-50 > .container {
  width: min(1520px, calc(100% - 40px)) !important;
  max-width: none !important;
  margin-right: auto !important;
  margin-left: auto !important;
}

.header-overlay.project-header-height .content-container {
  padding: 180px 0 58px !important;
}

.header-overlay.project-header-height .header-content { z-index: 2 !important; }

.header-overlay.project-header-height h1 {
  max-width: 950px;
  margin-bottom: 20px !important;
  font-family: "Archivo", "Roboto", sans-serif;
  font-size: clamp(2.7rem, 5.6vw, 5.5rem) !important;
  letter-spacing: -.065em;
  line-height: .96;
}

.header-overlay.project-header-height .text-lg {
  max-width: 690px;
  font-size: 1rem !important;
  line-height: 1.7;
}

.header-overlay.project-header-height + section.py-16.bg-white {
  padding: 30px 0 60px !important;
  background: #f6f3ed !important;
}

.header-overlay.project-header-height + section.py-16.bg-white > .container > .grid {
  gap: 48px !important;
}

.header-overlay.project-header-height + section.py-16.bg-white h2.text-3xl {
  margin-bottom: 20px !important;
  color: #14233d !important;
  font-family: "Archivo", "Roboto", sans-serif;
  font-size: clamp(1.7rem, 2.8vw, 2.35rem) !important;
  letter-spacing: -.04em;
}

.header-overlay.project-header-height + section.py-16.bg-white .project-detail-card,
.header-overlay.project-header-height + section.py-16.bg-white .lg\:col-span-1 > .bg-gray-50 {
  position: relative;
  padding: 28px !important;
  border: 1px solid #ded8cd !important;
  border-left: 1px solid #ded8cd !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.header-overlay.project-header-height + section.py-16.bg-white .project-detail-card::before,
.header-overlay.project-header-height + section.py-16.bg-white .project-detail-card::after,
.header-overlay.project-header-height + section.py-16.bg-white .lg\:col-span-1 > .bg-gray-50::before,
.header-overlay.project-header-height + section.py-16.bg-white .lg\:col-span-1 > .bg-gray-50::after {
  position: absolute;
  width: 14px;
  height: 14px;
  content: "";
  pointer-events: none;
}

.header-overlay.project-header-height + section.py-16.bg-white .project-detail-card::before,
.header-overlay.project-header-height + section.py-16.bg-white .lg\:col-span-1 > .bg-gray-50::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid #d48a12;
  border-left: 2px solid #d48a12;
}

.header-overlay.project-header-height + section.py-16.bg-white .project-detail-card::after,
.header-overlay.project-header-height + section.py-16.bg-white .lg\:col-span-1 > .bg-gray-50::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid #d48a12;
  border-bottom: 2px solid #d48a12;
}

.header-overlay.project-header-height + section.py-16.bg-white .project-detail-card h3,
.header-overlay.project-header-height + section.py-16.bg-white .lg\:col-span-1 h3 {
  color: #14233d !important;
  font-family: "Archivo", "Roboto", sans-serif;
}

.header-overlay.project-header-height + section.py-16.bg-white .project-detail-card .grid > div > h3,
.header-overlay.project-header-height + section.py-16.bg-white .lg\:col-span-1 h4 {
  margin-top: 0 !important;
  color: #7a8596 !important;
  font-family: "IBM Plex Mono", monospace;
  font-size: .65rem !important;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.header-overlay.project-header-height + section.py-16.bg-white .project-detail-card .grid > div > p {
  margin-bottom: 18px !important;
  color: #14233d !important;
  font-size: .98rem !important;
}

.header-overlay.project-header-height + section.py-16.bg-white .project-detail-card + h3,
.header-overlay.project-header-height + section.py-16.bg-white .project-detail-card ~ h3 {
  margin: 30px 0 14px !important;
  color: #14233d !important;
  font-family: "Archivo", "Roboto", sans-serif;
}

.header-overlay.project-header-height + section.py-16.bg-white .space-y-6 {
  padding: 24px 0 0;
  border-top: 1px dashed #ded8cd;
}

.header-overlay.project-header-height + section.py-16.bg-white .space-y-6 li {
  margin-bottom: 9px;
  color: #14233d;
}

.header-overlay.project-header-height + section.py-16.bg-white .space-y-6 li::marker {
  color: #d48a12;
}

.header-overlay.project-header-height + section.py-16.bg-white .lg\:col-span-1 > .bg-blue-700 {
  margin-top: 20px !important;
  padding: 28px !important;
  border-radius: 0 !important;
  background: #152440 !important;
}

.header-overlay.project-header-height ~ section.py-16.bg-gray-50 {
  padding: 70px 0 !important;
  background: #ece8df !important;
}

.header-overlay.project-header-height ~ section.py-16.bg-gray-50 .overflow-hidden.rounded-lg {
  border: 1px solid #ded8cd;
  border-radius: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 767px) {
  .header-overlay.project-header-height {
    min-height: 500px !important;
    height: auto !important;
  }

  .header-overlay.project-header-height .content-container,
  .header-overlay.project-header-height + section.py-16.bg-white > .container,
  .header-overlay.project-header-height ~ section.py-16.bg-gray-50 > .container {
    width: min(100% - 36px, 1520px) !important;
  }

  .header-overlay.project-header-height .content-container { padding: 145px 0 38px !important; }

  .header-overlay.project-header-height + section.py-16.bg-white {
    padding: 28px 0 46px !important;
  }

  .header-overlay.project-header-height + section.py-16.bg-white > .container > .grid {
    gap: 26px !important;
  }

  .header-overlay.project-header-height + section.py-16.bg-white .project-detail-card,
  .header-overlay.project-header-height + section.py-16.bg-white .lg\:col-span-1 > .bg-gray-50 {
    padding: 22px !important;
  }
}

/* Unified right-side mobile drawer for pages using the legacy header. */
@media (max-width: 1024px) {
  #mobile-menu {
    inset: 0 0 0 auto !important;
    z-index: 1000 !important;
    display: block !important;
    width: 75% !important;
    min-height: 100svh !important;
    box-sizing: border-box !important;
    padding: 60px 20px 20px !important;
    overflow-y: auto !important;
    background: #172b49 !important;
    box-shadow: -4px 0 8px rgb(0 0 0 / 30%) !important;
    color: #fff !important;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%) !important;
    transition: transform 260ms ease, opacity 220ms ease !important;
    visibility: hidden;
  }

  #mobile-menu.active {
    display: block !important;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0) !important;
    visibility: visible;
  }

  #mobile-menu a {
    display: block !important;
    padding: 20px !important;
    border-bottom: 1px solid rgb(255 255 255 / 12%) !important;
    color: #fff !important;
    font-family: Arial, sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    line-height: 1.12 !important;
    text-transform: none !important;
  }

  @media (max-width: 560px) {
    #mobile-menu { padding: 24px 12px 16px !important; }
    #mobile-menu a { padding: 13px 16px !important; font-size: .98rem !important; }
  }
}

@media print {
  header,
  footer,
  #preloader,
  .skip-link {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }
}
