:root {
  color-scheme: light;
  --background: #fff;
  --surface: #f7f8fa;
  --ink: #252b36;
  --muted: #666e7b;
  --border: #d7dce3;
  font-family: "Roboto", Arial, sans-serif;
  color: var(--ink);
  background: var(--background);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; font-weight: 400; isolation: isolate; }
/* Fixed photo layers crossfade without stretching the original assets. */
.background-slideshow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: #000b40 url("../backgrounds/hero-background-01.jpg") 60% center / cover no-repeat;
}
.background-slideshow img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  opacity: 0;
  transition: opacity 900ms ease-in-out;
}
.background-slideshow img.is-active { opacity: 1; }
.background-slideshow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 11, 40, .55);
}
@media (prefers-reduced-motion: reduce) {
  .background-slideshow img { transition: none; }
}
h1, h2, h3, p { margin: 0; }
.page-width { width: min(1600px, 92%); margin-inline: auto; }
.site-header { padding-top: 32px; }
.company-logo { display: block; width: 136px; height: 88px; object-fit: contain; }
.hero { padding-top: 135px; padding-bottom: 76px; }
.hero-heading {
  text-align: center;
  padding: clamp(48px, 8vw, 100px) clamp(20px, 4vw, 56px);
  color: #fff;
}
h1 { max-width: 1100px; margin-inline: auto; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; line-height: 1.15; letter-spacing: -.035em; }
.hero-heading p { margin-top: 24px; color: #fff; font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
.goals-grid, .projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.goals-grid { margin-top: 86px; }
.goal { font-weight: 400; padding: 36px 20px; border: 1px solid var(--border); border-radius: 10px; text-align: center; font-size: 1.75rem; background: transparent; color: #fff; border-color: #ffffff80; }
.projects { padding: 64px 0 88px; background: #030a26; color: #fff; --muted: #fff; --border: #ffffff26; }
.projects h2 { text-align: center; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; letter-spacing: -.025em; margin-bottom: 48px; }
.project { min-height: 265px; padding: 30px; border: 1px solid var(--border); border-radius: 10px; background: #020822; }
.project h3 { font-size: 1.75rem; font-weight: 700; }
.project p { margin-top: 24px; color: var(--muted); font-size: 1.125rem; line-height: 1.6; }
.site-footer { border-top: 1px solid var(--border); padding: clamp(28px, 3vw, 48px) 0 24px; background: #08112d; color: #fff; --muted: #fff; --border: #ffffff55; }
.footer-layout { display: block; }
.footer-info { display: grid; grid-template-columns: minmax(0, 4fr) minmax(140px, 1fr); gap: clamp(24px, 3vw, 48px); }
.footer-info h2 { font-size: 1.125rem; font-weight: 700; margin-bottom: 16px; }
.footer-info p { font-size: .9375rem; color: var(--muted); line-height: 1.8; }
.footer-bottom { margin-top: 28px; border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: .875rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 760px) {
  .page-width { width: calc(100% - 40px); }
  .hero { padding-top: 88px; padding-bottom: 48px; }
  .goals-grid { gap: 12px; margin-top: 56px; }
  .goal { font-size: 1.25rem; padding: 26px 10px; }
  .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .project { min-height: 230px; padding: 24px; }
  .projects { padding: 48px 0 56px; }
  .footer-info { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .site-header { padding-top: 20px; }
  .company-logo { width: 112px; height: 76px; }
  .hero { padding-top: 72px; }
  .goals-grid, .projects-grid, .footer-info { grid-template-columns: 1fr; }
  .goal { font-weight: 400; padding: 24px; }
  .project { min-height: 220px; }
  .projects h2 { margin-bottom: 32px; }
}



@media (max-width: 900px) {
  .footer-info { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
}

.footer-info > div { min-width: 0; overflow-wrap: anywhere; }

.about-company p + p { margin-top: 16px; }

.project.project-compact { min-height: 0; padding: 20px 24px; }
.project-compact p { margin-top: 16px; }
.project-with-diagram { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.project-diagram { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: fill; border-radius: 6px; }
.project-copy { min-width: 0; }
@media (max-width: 1100px) {
  .project-with-diagram { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .project-with-diagram { grid-template-columns: 1fr; }
  .project-diagram { max-width: 360px; margin-inline: auto; }
}

.project.project-with-photo { padding: 30px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.project-photo { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 6px; }
@media (max-width: 1100px) {
  .project-with-photo { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .project.project-with-photo { grid-template-columns: 1fr; }
  .project-photo { max-width: 360px; margin-inline: auto; }
}

@media (max-width: 760px) {
  .project.project-with-photo { padding: 24px; }
}

/* Match photo frames; crop defense symmetrically and remove the forest's top. */
.project-photo { aspect-ratio: 4 / 3; object-fit: cover; }
.photo-defense { object-position: center; }
.photo-biochemical { object-position: center bottom; }
.contact-email { color: inherit; text-underline-offset: 3px; }
