:root {
  /* Cooler hybrid palette: mix of institutional + technical */
  --bg: #f4f6fb;
  --bg-alt: #ffffff;
  --bg-soft: #e1e7f2;
  --primary: #0b2345;
  --secondary: #173645;
  --accent: #5bc0eb;
  --accent-cool: #2f8f9d;
  --border-soft: #d2d9e7;
  --text: #1b2736;
  --muted: #6c7a8f;
  --white: #ffffff;
  --radius-lg: 20px;
  --radius-full: 999px;
  --shadow-soft: 0 14px 34px rgba(7, 22, 54, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, #e5ecf7 0, #f4f6fb 45%, #f4f6fb 100%);
  color: var(--text);
  line-height: 1.6;
}

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

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

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.8rem 1.5rem 3rem;
}

/* HEADER */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem 1.3rem;
  position: sticky;
  top: 0;
  background: linear-gradient(
    to bottom,
    rgba(246, 244, 239, 0.94),
    rgba(246, 244, 239, 0.86)
  );
  backdrop-filter: blur(12px);
  z-index: 20;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 40% 60% 50% 50%;
  background:
    radial-gradient(circle at 30% 25%, #ffffff, #5bc0eb),
    linear-gradient(140deg, #5bc0eb, #0b2345);
  box-shadow: 0 8px 20px rgba(7, 22, 54, 0.45);
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text span:first-child {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
}

.logo-text span:last-child {
  font-size: 0.85rem;
  color: var(--muted);
}

nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  gap: 1.3rem;
}

.nav-links a {
  position: relative;
  padding-bottom: 0.25rem;
  color: var(--muted);
  font-weight: 500;
}

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

.nav-links a.active::after,
.nav-links a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 18px;
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--accent);
}

/* Language switcher as links */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  font-size: 0.78rem;
}

.lang-switch span {
  display: none;
}

.lang-switch a {
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  position: relative;
}

.lang-switch a.active {
  color: var(--primary);
  font-weight: 600;
}

.lang-switch a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.2rem;
  height: 2px;
  border-radius: var(--radius-full);
  background: var(--accent);
}

/* TOGGLE */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.3rem 0.4rem;
  cursor: pointer;
}

.nav-toggle-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  border-radius: 1px;
  background: var(--primary);
}

/* HERO */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.1fr);
  gap: 2.4rem;
  align-items: center;
  padding: 1.7rem 0 2.4rem;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.9rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 3.1vw, 2.8rem);
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 0.9rem;
}

.hero-lead {
  font-size: 0.97rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.15rem;
  line-height: 1.75;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.4rem;
  font-size: 0.84rem;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.hero-meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.hero-meta-value {
  color: var(--primary);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.btn {
  border-radius: var(--radius-full);
  padding: 0.65rem 1.6rem;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn-primary {
  background: linear-gradient(135deg, #0b2345, #173645);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--border-soft);
}

.hero-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.6rem;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--bg-alt);
  border-radius: 24px;
  padding: 1.4rem 1.3rem 1.3rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(210, 217, 231, 0.9);
  overflow: hidden;
}

.hero-card-feature {
  display: flex;
  flex-direction: column;
}

.hero-feature-image {
  width: 100%;
  display: block;
  border-radius: 18px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-feature-copy {
  padding-top: 1rem;
}

.hero-feature-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-cool);
  margin-bottom: 0.35rem;
}

.hero-feature-title {
  font-size: 1.02rem;
  line-height: 1.35;
  margin: 0 0 0.45rem 0;
  color: var(--primary);
}

.hero-feature-text {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

.hero-image-placeholder {
  height: 170px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, #d2e3f7, #f4f6fb),
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.5), transparent);
  position: relative;
  margin-bottom: 1rem;
  overflow: hidden;
}

.hero-image-placeholder::after {
  content: "Placeholder: field work / community engagement image";
  position: absolute;
  bottom: 8px;
  left: 12px;
  font-size: 0.7rem;
  color: #1b2736;
  text-shadow: 0 1px 3px rgba(244, 246, 251, 0.9);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.metric-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}

.hero-caption {
  font-size: 0.78rem;
  color: var(--muted);
}

/* GENERIC SECTION */

section {
  margin-bottom: 2.6rem;
}

.section-header {
  margin-bottom: 1.3rem;
}

.section-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.2rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.75;
}

.section-body {
  max-width: 50rem;   /* same as section-subtitle */
  margin: 0;
}
/* VALUE PILLARS */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.pillar-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.1rem 1rem;
  box-shadow: 0 8px 24px rgba(7, 22, 54, 0.06);
  border: 1px solid rgba(210, 217, 231, 0.9);
}

.pillar-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-cool);
  margin-bottom: 0.35rem;
}

.pillar-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.4rem;
}

.pillar-text {
  font-size: 0.86rem;
  color: var(--muted);
}

/* ABOUT PREVIEW + PORTRAIT */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: flex-start;
}

.about-card {
  background: var(--bg-alt);
  border-radius: 22px;
  padding: 1.3rem 1.3rem 1.1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(210, 217, 231, 0.9);
}

.about-top {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 0.8rem;
}

.portrait-placeholder {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d2e3f7, #5bc0eb);
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(7, 22, 54, 0.4);
}

.portrait-placeholder::after {
  content: "Photo";
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.95);
}

.about-portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 1rem;
}

.about-name {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.98rem;
  margin-bottom: 0.15rem;
}

.about-role {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  line-height: 1.65;
}

.about-text {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.7rem;
  line-height: 1.75;
}

.about-list {
  list-style: none;
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 0.4rem;
  line-height: 1.75;
}

.about-list li::before {
  content: "•";
  margin-right: 0.4rem;
  color: var(--accent);
}

.about-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.6rem;
  line-height: 1.7;
}

.about-meta span {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: var(--accent-cool);
}

.about-side-panel {
  border-radius: 20px;
  border: 1px dashed var(--border-soft);
  padding: 1rem;
  background: rgba(255,255,255,0.9);
  font-size: 0.82rem;
  color: var(--muted);
}

.about-side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.about-side-tag {
  padding: 0.22rem 0.7rem;
  border-radius: var(--radius-full);
  background: #e1e7f2;
  color: var(--primary);
  font-size: 0.76rem;
}

/* SERVICES (TECH / STRUCTURED) */

.service-matrix {
  background: var(--bg-alt);
  border-radius: 22px;
  padding: 1rem 1.3rem 1.3rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(210, 217, 231, 0.9);
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 0.35rem;
}

.matrix-card {
  border-radius: 14px;
  padding: 0.9rem 0.9rem 0.8rem;
  background: #edf1f9;
  border: 1px solid rgba(199, 208, 230, 0.9);
  font-size: 0.84rem;
}

.matrix-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.matrix-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.35rem;
  line-height: 1.4;
}

.matrix-text {
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.72;
}

/* PROCESS PREVIEW */

/*
 .process-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
}
*/

.process-layout {
  display: block;
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}

.process-steps {
  margin-left: 0;
  padding-top: 0.1rem;
}

.process-row {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.process-index {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  flex-shrink: 0;
}

.process-body-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.15rem;
  line-height: 1.4;
}

.process-body-text {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--text);
  max-width: none;
}

#process .process-body-text {
  margin: 0 0 0.7rem;
}

#process .process-body-text:last-child {
  margin-bottom: 0;
}

.process-panel {
  border-radius: 18px;
  border: 1px dashed var(--border-soft);
  padding: 1rem;
  background: #edf1f9;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.72;
}

.process-panel p {
  line-height: 1.72;
}

.process-badge {
  display: inline-block;
  padding: 0.16rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(91, 192, 235, 0.12);
  border: 1px solid rgba(91, 192, 235, 0.4);
  color: var(--primary);
  font-size: 0.76rem;
  margin-bottom: 0.5rem;
}

/* Make the Our approach title use the same width as the text */
/*
  #process .section-header {
  max-width: 900px;
  margin: 0 auto 1.3rem;
}
*/


/* Temporarily hide AI panel on all pages */
.process-panel[aria-labelledby="ai-use-title"] {
  display: none;
}

/* CTA */

.cta {
  background: linear-gradient(135deg, #0b2345, #173645);
  border-radius: 22px;
  padding: 1.5rem 1.4rem;
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-soft);
}

.cta-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  line-height: 1.35;
}

.cta-text {
  font-size: 0.86rem;
  opacity: 0.92;
  max-width: 30rem;
  line-height: 1.72;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn-cta-primary {
  border-radius: var(--radius-full);
  padding: 0.6rem 1.5rem;
  border: none;
  background: #f4f6fb;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.86rem;
}

.btn-cta-secondary {
  border-radius: var(--radius-full);
  padding: 0.55rem 1.4rem;
  border: 1px solid rgba(255,255,255,0.55);
  background: transparent;
  color: var(--white);
  font-weight: 500;
  cursor: pointer;
  font-size: 0.84rem;
}

/* FOOTER */

footer {
  padding-top: 1.7rem;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-lang {
  display: flex;
  gap: 0.5rem;
}

.footer-lang a {
  text-decoration: underline;
  text-decoration-style: dotted;
}

/* DESKTOP TYPOGRAPHY / LAYOUT */

@media (min-width: 1101px) {
  .section-title {
    font-size: 1.46rem;
  }

  .section-subtitle {
    font-size: 1.16rem;
    line-height: 1.9;
    max-width: 50rem;
    color: var(--text);
  }

  .matrix-title {
    font-size: 1.18rem;
  }

  .matrix-text {
    font-size: 1.14rem;
    line-height: 1.84;
  }

  .process-body-title {
    font-size: 1.2rem;
  }

  .process-body-text {
    font-size: 1.16rem;
    line-height: 1.9;
    color: var(--text);
  }

  .process-panel,
  .process-panel p {
    font-size: 1.14rem;
    line-height: 1.86;
    color: var(--text);
  }

  .process-badge {
    font-size: 0.9rem;
  }

  .about-name {
    font-size: 1.3rem;
  }

  .about-role {
    font-size: 1.16rem;
    line-height: 1.82;
    color: var(--muted);
  }

  .about-text,
  .about-list {
    font-size: 1.18rem;
    line-height: 1.96;
    color: var(--text);
  }

  .about-meta {
    font-size: 1.14rem;
    line-height: 1.9;
    color: var(--text);
  }

  .about-meta span {
    font-size: 0.86rem;
  }

  .cta-title {
    font-size: 1.3rem;
  }

  .cta-text {
    font-size: 1.12rem;
    line-height: 1.84;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    font-size: 1.02rem;
  }
}

/* RESPONSIVE LAYOUT */

@media (max-width: 900px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.9rem 1rem 1rem;
  }

  nav {
    width: 100%;
    margin-top: 0.75rem;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.9rem;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
    padding-top: 0.5rem;
  }

  header.nav-open .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: block;
    margin-left: auto;
  }

  .logo {
    gap: 0.55rem;
  }

  .logo-text span:first-child {
    font-size: 0.74rem;
    letter-spacing: 0.16em;
  }

  .logo-text span:last-child {
    font-size: 0.76rem;
    line-height: 1.2;
  }

  .hero,
  .about-layout,
  .process-layout {
    grid-template-columns: 1fr;
  }

  .hero-card {
    order: -1;
  }

  .matrix-grid {
    grid-template-columns: 1fr;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .page {
    padding: 1.4rem 1rem 2.2rem;
  }

  .section-subtitle,
  .matrix-text,
  .process-body-text,
  .process-panel,
  .process-panel p,
  .about-role,
  .about-text,
  .about-list,
  .about-meta,
  .cta-text,
  .hero-lead,
  .hero-feature-text {
    font-size: 0.98rem;
    line-height: 1.62;
  }

  .matrix-title,
  .process-body-title,
  .about-name,
  .cta-title,
  .hero-feature-title {
    font-size: 1.02rem;
    line-height: 1.35;
  }

  .matrix-label,
  .process-badge,
  .about-meta span,
  .hero-feature-kicker,
  .hero-meta-label {
    font-size: 0.74rem;
    letter-spacing: 0.12em;
  }

  .about-top {
    align-items: flex-start;
  }

  .process-row {
    gap: 0.8rem;
  }

  .process-panel,
  .about-card,
  .service-matrix,
  .hero-card {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Read more / Read less toggle */
.read-more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.4rem;
  color: var(--accent-cool);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

/* Make sure the label stays bold even inside .process-panel mobile styles */
.read-more-toggle .read-more-label {
  font-weight: 700;
}

/* Hide placeholder portrait + logo mark everywhere */

.portrait-placeholder,
.logo-mark,
.logo-mark::before,
.logo-mark::after {
  display: none !important;
  content: none !important;
}

.page {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding: 1.8rem 1.5rem 3rem;
}

/* Keep all main sections and the footer aligned inside .page */
.page > main,
.page > footer {
  width: 100%;
  max-width: 100%;
}

.page > main > section,
.page > footer {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Keep the contact panel aligned with the other content */
#contact .cta {
  width: 100%;
}