:root {
  --ink: #17202a;
  --muted: #5f6b7a;
  --paper: #ffffff;
  --soft: #f6f8fb;
  --line: #dce4ea;
  --teal: #005f73;
  --green: #2d6a4f;
  --coral: #e76f51;
  --amber: #f4a261;
  --blue: #1d3557;
  --shadow: 0 18px 50px rgba(23, 32, 42, 0.13);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

a:hover {
  color: var(--teal);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(220, 228, 234, 0.72);
  backdrop-filter: blur(18px);
  transition: box-shadow 180ms ease, background 180ms ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 34px rgba(23, 32, 42, 0.08);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img,
.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand span {
  display: grid;
  line-height: 1.05;
}

.brand strong {
  font-size: 1rem;
  color: var(--blue);
}

.brand small {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  color: #273342;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
  padding: 8px 0;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 86svh;
  padding: 140px clamp(18px, 6vw, 72px) 36px;
  overflow: hidden;
  color: #ffffff;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 25, 42, 0.82), rgba(8, 25, 42, 0.52) 48%, rgba(8, 25, 42, 0.22)),
    url("assets/lib6.jpg") center / cover;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 28%;
  content: "";
  background: linear-gradient(0deg, rgba(8, 25, 42, 0.72), rgba(8, 25, 42, 0));
}

.hero-content {
  width: min(780px, 100%);
}

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

.hero .eyebrow {
  color: var(--amber);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.55rem, 5.8vw, 5.4rem);
  line-height: 1;
}

h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.28;
}

.hero-lede {
  width: min(650px, 100%);
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

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

.button.ghost {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.1);
}

.button:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(820px, 100%);
  margin-top: 48px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.hero-panel div {
  min-width: 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
}

.hero-panel strong {
  display: block;
  color: #ffffff;
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.hero-panel span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.section {
  padding: clamp(72px, 9vw, 118px) clamp(18px, 5vw, 56px);
}

.section-heading,
.about-grid,
.product-grid,
.split-layout,
.feature-grid,
.solution-grid,
.client-grid,
.catalogue-tools,
.catalogue-groups,
.careers-layout,
.verse-grid,
.contact-panel,
.site-footer {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.section-heading {
  margin-bottom: clamp(30px, 5vw, 54px);
}

.section-heading h2 {
  width: min(760px, 100%);
}

.about-section,
.features-section,
.clients-section,
.careers-section {
  background: var(--soft);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(32px, 6vw, 74px);
}

.copy-block {
  color: var(--muted);
  font-size: 1.04rem;
}

.copy-block p {
  margin-bottom: 18px;
}

.value-list {
  display: grid;
  gap: 14px;
}

.value-list article,
.product-card,
.solution-card,
.client-grid article,
.application-card,
.job-grid article,
.verse-grid article,
.catalogue-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 26px rgba(23, 32, 42, 0.05);
}

.value-list article {
  padding: 22px;
}

.value-list span,
.job-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  margin-bottom: 14px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
}

.value-list p,
.solution-card p,
.job-grid p,
.verse-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-card div {
  padding: 22px;
}

.product-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.digital-section {
  background: #0f1f2e;
  color: #ffffff;
}

.digital-section h2,
.digital-section h3 {
  color: #ffffff;
}

.digital-section .copy-block {
  color: rgba(255, 255, 255, 0.78);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: center;
}

.visual-stack {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  align-items: end;
  gap: 16px;
}

.visual-stack img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.visual-stack img:first-child {
  aspect-ratio: 4 / 5;
}

.visual-stack img:last-child {
  aspect-ratio: 4 / 4.7;
  margin-bottom: 38px;
}

.chip-list,
.service-strip,
.demo-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.chip-list span,
.service-strip span,
.demo-rail span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  font-weight: 700;
}

.service-strip {
  align-items: center;
  color: #ffffff;
}

.demo-rail {
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.demo-rail span {
  color: var(--amber);
  border-color: rgba(244, 162, 97, 0.28);
  background: rgba(244, 162, 97, 0.1);
}

.motto {
  color: var(--amber);
  font-weight: 800;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feature-grid span {
  min-height: 58px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  background: var(--paper);
  font-weight: 700;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.solution-card {
  overflow: hidden;
}

.solution-card img {
  width: 100%;
  aspect-ratio: 5 / 3.4;
  object-fit: cover;
}

.solution-card h3,
.solution-card p {
  padding-inline: 18px;
}

.solution-card h3 {
  padding-top: 18px;
}

.solution-card p {
  padding-bottom: 18px;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.client-grid article {
  overflow: hidden;
}

.client-grid img {
  width: 100%;
  aspect-ratio: 1 / 0.78;
  object-fit: cover;
}

.client-grid h3 {
  display: flex;
  align-items: center;
  min-height: 74px;
  margin: 0;
  padding: 14px;
  font-size: 0.98rem;
}

.catalogue-tools {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}

.search-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.search-field input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
}

.search-field input:focus {
  border-color: var(--teal);
  outline: 3px solid rgba(0, 95, 115, 0.13);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-tabs button {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
}

.filter-tabs button.active {
  color: #ffffff;
  border-color: var(--teal);
  background: var(--teal);
}

.catalogue-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.catalogue-group {
  padding: 22px;
}

.catalogue-group h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.catalogue-group h3::after {
  flex: 1;
  height: 1px;
  content: "";
  background: var(--line);
}

.catalogue-group ul {
  display: grid;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.catalogue-group li {
  color: var(--muted);
}

.catalogue-group a,
.catalogue-group span {
  display: inline-block;
  padding: 2px 0;
}

.catalogue-group a {
  color: var(--blue);
  font-weight: 700;
}

.catalogue-group[hidden],
.catalogue-group li[hidden] {
  display: none;
}

.empty-state {
  width: min(var(--max), 100%);
  margin: 22px auto 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--soft);
  text-align: center;
}

.careers-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.application-card,
.job-grid article,
.verse-grid article {
  padding: 22px;
}

.application-card {
  position: sticky;
  top: 96px;
}

.application-card ol {
  padding-left: 20px;
  margin-bottom: 0;
  color: var(--muted);
}

.application-card a {
  color: var(--teal);
  font-weight: 800;
}

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

.faith-section {
  background: #fff7f1;
}

.founding-note {
  width: min(var(--max), 100%);
  margin-inline: auto;
}

.founding-note > p {
  width: min(780px, 100%);
  margin-bottom: 24px;
  color: #6b5a4f;
  font-size: 1.04rem;
}

.verse-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.verse-grid article {
  background: #ffffff;
}

.verse-grid h3 {
  color: var(--coral);
}

.map-section {
  background: var(--paper);
}

.map-frame {
  width: min(var(--max), 100%);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.map-frame iframe {
  display: block;
  width: 100%;
  min-height: 400px;
}

.contact-section {
  background:
    linear-gradient(rgba(15, 31, 46, 0.82), rgba(15, 31, 46, 0.86)),
    url("assets/lib10.jpg") center / cover;
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 0.65fr) minmax(220px, 0.5fr);
  gap: clamp(24px, 5vw, 54px);
  align-items: start;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(15, 31, 46, 0.68);
  backdrop-filter: blur(16px);
}

.contact-panel h2 {
  color: #ffffff;
}

.contact-panel p {
  color: rgba(255, 255, 255, 0.78);
}

address {
  display: grid;
  gap: 4px;
  font-style: normal;
}

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

.contact-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 0.8fr));
  gap: 30px;
  padding: 54px clamp(18px, 5vw, 56px) 32px;
  color: rgba(255, 255, 255, 0.78);
  background: #111820;
}

.site-footer h2 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 0.94rem;
  text-transform: uppercase;
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover {
  color: var(--amber);
}

.footer-brand {
  margin-bottom: 14px;
  color: #ffffff;
  font-weight: 900;
}

.site-footer small {
  grid-column: 1 / -1;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@media (max-width: 1050px) {
  .site-nav {
    position: fixed;
    top: 72px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 4px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

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

  .nav-toggle {
    display: inline-flex;
  }

  .product-grid,
  .solution-grid,
  .client-grid,
  .feature-grid,
  .verse-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid,
  .split-layout,
  .careers-layout,
  .contact-panel,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .application-card {
    position: static;
  }
}

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

  .site-nav {
    top: 66px;
  }

  .hero {
    min-height: 84svh;
    padding-top: 112px;
  }

  .hero-panel,
  .catalogue-groups,
  .job-grid,
  .product-grid,
  .solution-grid,
  .client-grid,
  .feature-grid,
  .verse-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel div {
    padding: 16px;
  }

  .visual-stack {
    grid-template-columns: 1fr;
  }

  .visual-stack img:last-child {
    margin-bottom: 0;
  }

  .section {
    padding-block: 64px;
  }

  .contact-panel {
    padding: 22px;
  }

  .site-footer {
    padding-top: 42px;
  }
}
