:root {
  color-scheme: light;
  --bg: #f8faf9;
  --surface: #ffffff;
  --surface-alt: #eef7f4;
  --text: #1d252c;
  --muted: #5d6975;
  --border: #dbe4e1;
  --primary: #0f766e;
  --primary-dark: #0b4f4a;
  --accent: #b45309;
  --violet: #6d5bd0;
  --shadow: 0 18px 55px rgba(29, 37, 44, 0.11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(248, 250, 249, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
}

.brand-logo {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--primary-dark);
  background: #e5f3ef;
}

.nav-toggle {
  display: none;
}

.section-band,
.content-section,
.page-hero,
.statement-band,
.cta-band,
.legal-content {
  width: min(1120px, calc(100% - 36px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: clamp(28px, 6vw, 72px);
  min-height: calc(100vh - 138px);
  padding: clamp(40px, 7vw, 78px) 0 54px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.35rem, 4.2vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3.1vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.lead {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  max-width: 680px;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.mission-grid article {
  min-height: 144px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.mission-grid h2 {
  font-size: 1.05rem;
  line-height: 1.25;
}

.mission-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.button.primary {
  color: #fff;
  background: var(--primary);
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  color: var(--primary-dark);
  background: #fff;
  border-color: var(--border);
}

.button.secondary:hover {
  border-color: var(--primary);
}

.button.compact {
  margin-top: 16px;
}

.hero-visual {
  min-height: 450px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #eef7f4 72%, #fff7ed 100%);
  box-shadow: var(--shadow);
}

.visual-topline {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.visual-grid article {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
}

.visual-grid strong,
.visual-grid span {
  display: block;
}

.visual-grid strong {
  font-size: 1.2rem;
}

.visual-grid span {
  margin-top: 8px;
  color: var(--muted);
}

.content-section,
.page-hero {
  padding: clamp(54px, 8vw, 86px) 0;
}

.page-hero {
  max-width: 920px;
}

.alt-section {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100% - 1120px) / 2));
  background: var(--surface-alt);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading.split {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.text-link {
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.feature-grid,
.project-grid,
.video-grid {
  display: grid;
  gap: 18px;
}

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

.feature-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.feature-card,
.project-card,
.video-card,
.info-panel,
.contact-panel,
.contact-form,
.project-detail {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(29, 37, 44, 0.06);
}

.feature-card {
  min-height: 184px;
  padding: 22px;
}

.feature-card p,
.project-card p,
.project-detail p,
.video-card p {
  margin: 0;
  color: var(--muted);
}

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

.project-card {
  overflow: hidden;
}

.project-media {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 24px;
  color: #fff;
  font-size: clamp(1.3rem, 2.1vw, 2rem);
  font-weight: 850;
  text-align: center;
}

.project-media.image {
  padding: 0;
  overflow: hidden;
  background: #e5f3ef;
}

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

.project-media.teal {
  background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.project-media.violet {
  background: linear-gradient(135deg, #4f46e5, #8b5cf6);
}

.project-media.amber {
  background: linear-gradient(135deg, #b45309, #f59e0b);
}

.project-body {
  padding: 22px;
}

.status {
  margin-bottom: 8px;
  color: var(--primary-dark) !important;
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #39444d;
  background: #f7faf9;
  font-size: 0.82rem;
  font-weight: 700;
}

.statement-band,
.cta-band {
  margin-block: 36px 76px;
  padding: clamp(30px, 5vw, 48px);
  border-radius: 8px;
  color: #fff;
  background: var(--primary-dark);
}

.statement-band p,
.cta-band p {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.4rem, 2.7vw, 2.4rem);
  line-height: 1.15;
}

.cta-band {
  text-align: left;
}

.cta-band h2 {
  max-width: 760px;
}

.cta-band p {
  margin: 14px 0 24px;
  color: #d8f3ec;
  font-size: 1.06rem;
  line-height: 1.6;
}

.project-list {
  display: grid;
  gap: 18px;
}

.project-detail {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
  align-items: center;
}

.project-detail .project-media {
  min-height: 220px;
  border-radius: 8px;
}

.project-detail .project-media.image {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.notice,
.form-note {
  margin-top: 18px !important;
  padding: 12px 14px;
  border: 1px solid #f2d6a2;
  border-radius: 8px;
  color: #6b3d03 !important;
  background: #fff8eb;
}

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

.video-card {
  padding: 14px;
}

.video-card h3,
.video-card p,
.video-card .tag-row {
  margin-left: 6px;
  margin-right: 6px;
}

.video-card h3 {
  margin-top: 16px;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background: #dbe4e1;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.two-column,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 24px;
  align-items: start;
}

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

dl {
  margin: 0;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 16px;
  font-weight: 650;
}

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

label {
  display: grid;
  gap: 6px;
  color: #34404a;
  font-weight: 750;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--text);
  background: #fff;
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(20, 184, 166, 0.25);
  border-color: var(--primary);
}

.legal-page .page-hero {
  padding-bottom: 32px;
}

.legal-content {
  max-width: 860px;
  padding-bottom: 82px;
}

.legal-content h2 {
  margin-top: 32px;
  font-size: 1.5rem;
}

.legal-content p {
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr) minmax(180px, 0.5fr);
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--border);
  background: #fff;
}

.site-footer p {
  margin: 4px 0;
  color: var(--muted);
}

.site-footer a {
  color: var(--primary-dark);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

@media (max-width: 980px) {
  .hero,
  .two-column,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .feature-grid.four,
  .feature-grid.three,
  .feature-grid.five,
  .project-grid,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-detail {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header {
    min-height: 64px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--primary-dark);
    background: #fff;
    font: inherit;
    font-weight: 800;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 18px 18px;
    border-bottom: 1px solid var(--border);
    background: #fff;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .feature-grid.four,
  .feature-grid.three,
  .feature-grid.five,
  .project-grid,
  .video-grid,
  .visual-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: clamp(2.05rem, 10.5vw, 3rem);
  }

  .hero-visual {
    min-height: auto;
  }

  .section-heading.split {
    align-items: start;
    flex-direction: column;
  }

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