:root {
  --white: #ffffff;
  --bg-nav: rgba(255, 255, 255, 0.75); 
  --ink: #101820;
  --green: #046A38;
  --muted: #6b7280;
  --border-light: rgba(16, 24, 32, 0.12);
  --font: 'General Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --max-w: 1120px; 
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 0.625rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button { font-family: inherit; border: none; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* SCROLLBAR REPRESSION */
html { scrollbar-width: none; overscroll-behavior: none; }
html::-webkit-scrollbar { display: none; }

/* WIDE EDGED TOP NAVIGATION APPARATUS WITH SCROLL BLUR */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px); 
  padding: 1.5rem var(--pad); 
  width: 100%;
  transition: background-color 0.2s ease;
}
.header-container {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo-box {
  background: transparent;
  width: 4rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-style: normal; 
  color: var(--green);
  font-size: 1.5rem;
  letter-spacing: -0.05em;
  transition: all 0.2s ease;
  border: none; 
  padding: 0;
  line-height: 1;
}
.nav-logo-box:hover {
  background: var(--white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  color: #005035;
}

nav { display: flex; gap: 1rem; align-items: center; } 
.nav-btn {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
  line-height: 1; 
}
.nav-btn:hover {
  background: var(--white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  color:var(--green);
}
.nav-btn.active {
  background: var(--white);
  font-weight: 700;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  color:var(--green);
}

/* MAIN CONTAINMENT BASE */
main {
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--pad);
}
.route { display: none; }
.route.active { display: block; }

/* HERO COMPONENT ELEMENTS */
.hero-layout {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding-bottom: 5rem;
}

.hero-split-grid {
  display: flex; 
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 4rem; 
  width: 100%;
  min-height: calc(100vh - 120px);
  padding-bottom: 4rem;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
  max-width: 60%; 
  z-index: 2;
}

.hero-main-title {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--green);
}

.hero-subtitle {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--green);
  max-width: 24ch;
}

.hero-right-credibility {
  display: none;
}

/* HERO BACKGROUND GRAPHIC WATERMARK */
.hero-watermark {
  font-size: clamp(16rem, 28vw, 24rem);
  font-weight: 700;
  font-style: normal;
  color: var(--green);
  opacity: 0.04; 
  line-height: 0.8;
  letter-spacing: -0.06em;
  user-select: none;
  cursor: default;
  transition: color 0.3s ease, opacity 0.3s ease;
  flex-shrink: 0; 
  transform: translateY(-5%); 
  padding-bottom: 2.5rem;
}

.hero-watermark:hover {
  color: var(--green);
  opacity: 1.0;
}


/* FEATURED PROJECTS AND ABOUT WRAPPER */
.featured-section-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
}

/* OUTER LAYOUT HEADERS */
.featured-outer-header {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.featured-outer-header h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem); 
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--green);
}

/* FEATURED PROJECTS AND ABOUT LAYOUT CARD CONTAINER */
.featured-project-card {
  background: var(--white);
  padding: 3rem;
  margin: 0 calc(var(--pad) * -1) 0 calc(var(--pad) * -1);
}

/* ABOUT SECTION CARD — distinct background to differentiate from featured */
.featured-section-wrapper:first-of-type .featured-project-card {
  background: #f9fafb;
  box-shadow: none;
  border: 1px solid var(--border-light);
}

/* ABOUT SECTION TEXT FORMATTING */
.about-card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: fit-content;
  margin-inline: auto;
  text-align: left;
}
.about-card-text p {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 52ch; 
}
.about-card-text strong {
  color: var(--ink);
  font-weight: 600;
}

.featured-card-flex {
  display: flex;
  flex-direction: row;
  gap: 4rem;
  align-items: center;
  justify-content: space-between;
}
.featured-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.featured-info h3 {
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.featured-info p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.625;
  max-width: 52ch;
}
.featured-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.featured-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  padding-bottom: 0.125rem;
  transition: color 0.2s, border-color 0.2s;
}
.featured-links a:hover {
  color: var(--green);
  border-color: var(--green);
}

/* RIGHT SIDE VISUAL LAYER COMPONENT (Expanded Size) */
.featured-img-column {
  display: flex;
  flex-direction: column;
  align-items: center; 
  gap: 0.85rem;
  flex-shrink: 0;
}
.viewer-counter-badge {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.image-display-frame {
  width: 24rem; 
  height: auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.image-display-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.viewer-nav-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  width: 100%;
}
.viewer-arrow-btn {
  background: var(--white);
  width: 2.5rem;
  height: 2.25rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: all 0.15s ease;
}
.viewer-arrow-btn:hover {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* CENTERING CTA WRAPPER */
.cta-action-block { text-align: center; padding: 3rem 0; }
.cta-action-block h3 { font-size: 1.5rem; font-weight: 700; color: var(--ink); margin-bottom: 1.5rem; }
.btn-primary-action {
  background: var(--green);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 2rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}
.btn-primary-action:hover {
  background: var(--ink);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* GENERAL ROUTES HEADERS */
.page-header { display: flex; flex-direction: column; gap: 0.5rem; margin: 3rem 0 2.5rem 0; }
.page-header h2 { 
  font-size: clamp(1.5rem, 4vw, 2.5rem); 
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--green); 
}
.page-desc { font-size: 1rem; color: var(--muted); max-width: 52ch; }

/* PROJECT/TEAM SUBPAGES RENDER MATRIX */
.project-card {
  background: var(--white);
  padding: 3rem;
  margin: 0 calc(var(--pad) * -1) 2rem calc(var(--pad) * -1);
  display: flex;
  flex-direction: row;
  gap: 4rem;
  align-items: center;
  justify-content: space-between;
}

/* Updated Thumbnail Image Styling */
.project-list-img-frame {
  width: 24rem;
  aspect-ratio: 16 / 9; 
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--white);
  transition: border-color 0.2s ease;
  flex-shrink: 0;
}
.project-list-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Forces the image to fill the box without white borders */
  display: block;
}

.project-name { 
  font-size: 1.875rem; /* Scaled up to match main page H3 */
  font-weight: 700; 
  letter-spacing: -0.02em; 
  color: var(--green); 
  margin-bottom: 0; 
}
.project-desc { 
  font-size: 1rem; 
  color: var(--muted); 
  line-height: 1.625; 
  max-width: 52ch; 
}
.project-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.875rem; }
.tag {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--green); border: 1px solid var(--green); padding: 0.2rem 0.55rem; border-radius: 4px;
}
.tag.inactive { color: var(--muted); border-color: var(--muted); opacity: 0.6; }

.team-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 3rem;
  padding: 1rem 0 3rem 0;
  align-items: flex-start;
}
.team-member {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 214px;
}
.member-role {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.member-photo {
  width: 214px;
  height: 214px;
  background: #f3f4f6;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: #d1d5db;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow: hidden;
}
.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.member-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.member-bio {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 214px;
}
.member-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.member-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: color 0.2s;
}
.member-link:hover { color: var(--green); border-color: var(--green); }
/* JOIN INTERFACE */
.interest-form-label { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); margin-bottom: 0.75rem; }
.gform-containment-box iframe { width: 100%; display: block; border: 1px solid var(--border-light); border-radius: 8px; }

/* FOOTER COMPONENT SPECIFICATIONS */
footer {
  padding: 2.5rem var(--pad) 60px var(--pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}
.footer-copyright { font-size: 0.85rem; font-weight: 500; color: var(--ink); }
.footer-links { display: flex; flex-direction: row; align-items: center; gap: 1.5rem; }
.footer-link { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.footer-link:hover { color: var(--ink); }
.footer-link svg { width: 14px; height: 14px; flex-shrink: 0; }

.project-meta:empty,
.featured-links:empty {
  display: none;
}

/* RESPONSIVE FLUID MEDIA QUERIES */
@media (max-width: 768px) {
  .hero-split-grid { flex-direction: column; min-height: auto; padding-top: 3rem; padding-bottom: 4rem; gap: 2rem; }
  .hero-left { max-width: 100%; }
  .hero-watermark { display: none; }
  
  .featured-project-card, .project-card { margin-left: 0; margin-right: 0; padding: 2rem 1.5rem; }
  .featured-card-flex, .project-card { flex-direction: column-reverse; gap: 2.5rem; align-items: center; }
  .image-display-frame, .project-list-img-frame { width: 100%; max-width: 22rem; }
  .featured-info, .about-card-text { align-items: center; text-align: center; }
  .header-container { align-items: center; }
}
@media (max-width: 600px) {
  .project-links { flex-direction: row; text-align: left; }
  .team-member { grid-template-columns: 1fr; gap: 0.4rem; }
  footer { flex-direction: column; gap: 1rem; align-items: flex-start; padding-bottom: 60px; }
}