/* ==========================================================================
   Typefaces, self-hosted
   Taken from Google's own stylesheet, latin subset only. Google serves one
   variable file per family covering the whole weight axis, so there are two
   files rather than the six the weight list implies.

   Self-hosting keeps visitor IP addresses away from a third party -- which is
   why Google Fonts had to be listed as a processor in the privacy notice --
   and removes a DNS lookup and TLS connection from the critical path.
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Merriweather";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/merriweather-variable.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   PsalmTech
   Design ported from the Figma file "PsalmTech Option 4.2".
   Tokens -> base -> helpers -> components (roughly page order) -> responsive.

   No framework. The grid, nav, accordion and form styling are all here, so
   there is no Bootstrap or icon-font dependency to load.
   ========================================================================== */

:root {
  /* Colour */
  --navy: #0e1a2b;
  --navy-900: #101c30;
  --navy-700: #172540;
  --gold: #b39a54;
  --gold-bright: #c9ae63;
  --cream: #f6f3ec;
  --mist: #f1f3f5;
  --white: #ffffff;
  --text: #4b5563;
  --muted: #7b8490;
  --on-navy: #cbd3dc;
  --on-navy-muted: #8993a1;
  --line: #e7e3d8;
  --line-cool: #e6e8ec;

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Merriweather", Georgia, "Times New Roman", serif;

  /* Layout */
  --gutter: clamp(20px, 6.25vw, 90px);
  --maxw: 1440px;
  --radius: 14px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 112px;
}

body {
  font-family: var(--font-sans);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

/* An author-level `display` beats the user agent's [hidden] rule, so the
   type selector above would otherwise keep hidden images visible. */
[hidden] {
  display: none !important;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul {
  list-style: none;
  padding: 0;
}

strong {
  color: var(--navy);
  font-weight: 600;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Layout helpers ---------- */

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 8.3vw, 120px);
}

.section--tight {
  padding-block: clamp(48px, 6vw, 80px);
}

.section--cream {
  background: var(--cream);
}

.section--mist {
  background: var(--mist);
}

.section--navy {
  background: var(--navy-900);
  color: #fff;
}

.line {
  display: block;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 48px;
  height: 1px;
  background: var(--gold);
}

.h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--navy);
  font-size: clamp(28px, 3.1vw, 45px);
}

.section--navy .h2 {
  color: #fff;
}

.h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
  font-size: clamp(21px, 1.9vw, 27px);
}

.section--navy .h3 {
  color: #fff;
}

.lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}

.prose p {
  color: var(--text);
  line-height: 1.75;
}

.prose p + p {
  margin-top: 18px;
}

.prose a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold);
}

.prose a:hover {
  color: var(--gold);
}

.prose h2 {
  margin-top: 56px;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose h2 + p,
.prose h2 + ul {
  margin-top: 18px;
}

.prose ul {
  margin-top: 18px;
}

/* Two-column heading row */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.split__aside {
  padding-top: 66px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

.section--navy .split__aside {
  color: var(--on-navy);
}

.split__title {
  margin-top: 36px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 58px;
  padding: 0 34px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: #1d3050;
  color: #fff;
  transform: translateY(-1px);
}

.btn--sm {
  height: 52px;
  padding: 0 30px;
}

.btn--gold {
  background: var(--gold);
  color: var(--navy);
}

.btn--gold:hover {
  background: var(--gold-bright);
  color: var(--navy);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid rgba(14, 26, 43, 0.2);
}

.btn--ghost:hover {
  background: var(--navy);
  color: #fff;
}

.section--navy .btn--ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.section--navy .btn--ghost:hover {
  background: #fff;
  color: var(--navy);
}

.btn svg {
  flex: none;
  transition: transform 0.2s ease;
}

.btn:hover svg {
  transform: translateX(3px);
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.arrow-link svg {
  transition: transform 0.2s ease;
}

.arrow-link:hover {
  color: var(--navy);
}

.arrow-link:hover svg {
  transform: translateX(3px);
}

.section--navy .arrow-link:hover,
.svc.is-active .arrow-link:hover {
  color: #fff;
}

.circle-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(14, 26, 43, 0.18);
  background: var(--white);
  color: var(--navy);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.circle-btn:hover:not(:disabled) {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.circle-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ---------- Image slots ----------
   Every slot keeps its size whether or not the file exists. js/site.js hides
   an <img> that fails to load, leaving the parent's neutral block behind, so
   the layout never collapses while artwork is being added. */

.media {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #e6e1d3 0%, #cfd6e1 100%);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid rgba(14, 26, 43, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 96px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo__text {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
}

.logo--header {
  height: 60px;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--navy);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 38px);
  margin-left: auto;
  margin-right: clamp(8px, 2.2vw, 36px);
  font-size: 13px;
}

.nav > a:not(.btn) {
  position: relative;
  padding-block: 6px;
  transition: color 0.2s ease;
}

/* Desktop: the nav sits in the middle of the header. Equal outer columns keep
   it centred on the page rather than in the gap between logo and button.
   Below 1100px the header switches to the menu button instead. */
@media (min-width: 1101px) {
  .header__inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }
  .header__inner > .logo {
    justify-self: start;
  }
  .header__inner > .nav {
    margin: 0;
  }
  .header__inner > .header__cta {
    justify-self: end;
  }
}

.nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav > a:not(.btn):hover::after,
.nav > a[aria-current="page"]::after {
  width: 100%;
}

.nav > a[aria-current="page"] {
  color: var(--gold);
}

.nav__cta-mobile {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero (homepage) ---------- */

.hero {
  background: var(--cream);
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 610px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: 46px 89px;
}

.hero__title {
  margin-top: 56px;
  font-size: clamp(32px, 3.3vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--navy);
}

.hero__title span {
  display: block;
}

.hero__title em {
  display: block;
  margin-top: 4px;
  font-family: var(--font-serif);
  font-style: normal;
  font-size: clamp(38px, 4.2vw, 60px);
  line-height: 1.2;
  text-transform: none;
  color: var(--gold);
}

.hero__lead {
  max-width: 470px;
  margin-block: 42px 46px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  margin-top: 52px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__media {
  aspect-ratio: 610 / 650;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding-block: 56px 64px;
  background: var(--cream);
}

.page-hero__title {
  margin-top: 28px;
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.page-hero__lead {
  max-width: 720px;
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}

.page-hero .btn {
  margin-top: 40px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.breadcrumb a:hover {
  color: var(--gold);
}

/* ---------- Trust bar ---------- */

.trust {
  padding-block: 30px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust__label {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.trust__names {
  margin-top: 12px;
  font-size: 15px;
  color: var(--text);
}

/* ---------- Services carousel ---------- */

.services {
  overflow-x: clip;
}

.services__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.services__title {
  margin-top: 28px;
}

.services__sub {
  margin-top: 22px;
  max-width: 460px;
  font-size: 14px;
  color: var(--text);
}

.services__controls {
  display: flex;
  align-items: center;
  gap: 17px;
}

.services__count {
  margin-right: 14px;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.1em;
}

.carousel {
  margin-top: 40px;
}

/* ---------- Carousel track ----------
   Without JavaScript the track is an ordinary horizontally scrollable row, so
   every card stays reachable. js/site.js adds .is-ready when it takes over,
   loops the cards and drives the movement itself. */

.carousel__track {
  position: relative;
  overflow-x: auto;
  scrollbar-width: none;
  touch-action: pan-y; /* vertical swipes still scroll the page */
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel.is-ready .carousel__track {
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-touch-callout: none;
}

.carousel.is-dragging .carousel__track {
  cursor: grabbing;
}

.carousel__list {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.carousel.is-ready .carousel__list {
  will-change: transform; /* moved every frame while animating */
}

.carousel__list img {
  vertical-align: bottom;
  -webkit-user-drag: none;
}

/* Bleed the track to the right edge of the viewport, as in the design. */
.carousel {
  position: relative;
  margin-right: calc(-1 * (var(--gutter) + max(0px, (100vw - var(--maxw)) / 2)));
  padding-right: var(--gutter);
}

/* Everything that changes when a card becomes active moves on one curve and
   one duration, matching SPEED and the easing in js/site.js. The width and
   the track position are set by the script each frame, so they are not
   transitioned here. */
.svc {
  --svc-ease: cubic-bezier(0.65, 0, 0.35, 1);
  --svc-speed: 0.6s;
  flex: 0 0 auto;
  width: min(420px, 80vw);
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-cool);
  border-radius: var(--radius);
  background: var(--white);
  transition: background var(--svc-speed) var(--svc-ease),
    border-color var(--svc-speed) var(--svc-ease),
    color var(--svc-speed) var(--svc-ease),
    margin-top var(--svc-speed) var(--svc-ease);
}

.svc--tint:not(.is-active) {
  background: #fbf9f4;
}

.svc.is-active {
  width: min(780px, 86vw);
  margin-top: 0;
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.svc__media {
  height: 225px;
  border-radius: 0;
  transition: height var(--svc-speed) var(--svc-ease);
}

.svc.is-active .svc__media {
  height: 285px;
}

.svc__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 30px;
  transition: padding var(--svc-speed) var(--svc-ease);
}

.svc.is-active .svc__body {
  padding: 35px;
}

.svc__eyebrow {
  color: var(--gold);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.svc__title {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.25;
  transition: margin-top var(--svc-speed) var(--svc-ease),
    font-size var(--svc-speed) var(--svc-ease),
    color var(--svc-speed) var(--svc-ease);
}

.svc.is-active .svc__title {
  margin-top: 22px;
  font-size: clamp(24px, 2.1vw, 30px);
  color: #fff;
}

.svc__text {
  margin-top: 22px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text);
  transition: color var(--svc-speed) var(--svc-ease);
}

.svc.is-active .svc__text {
  max-width: 660px;
  color: var(--on-navy);
}

.svc__link {
  align-self: flex-start;
  margin-top: 28px;
}

.carousel__progress {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
}

.carousel__hint {
  flex: none;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.carousel__line {
  position: relative;
  flex: 1;
  max-width: 530px;
  height: 1px;
  background: rgba(14, 26, 43, 0.15);
}

.carousel__line span {
  position: absolute;
  left: 0;
  top: -1px;
  height: 3px;
  background: var(--gold);
  transition: width 0.6s cubic-bezier(0.65, 0, 0.35, 1);
}

.carousel__dots {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.carousel__dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  padding: 0;
  transition: background 0.3s ease;
}

.carousel__dots button.is-on {
  background: var(--gold);
}

/* ---------- Banner ---------- */

.banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 390px);
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--mist);
}

.banner__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 55px clamp(24px, 3.1vw, 45px);
}

.banner__eyebrow {
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.banner__title {
  margin-top: 36px;
  font-size: clamp(24px, 2.7vw, 39px);
}

.banner__text {
  margin-top: 30px;
  max-width: 540px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--text);
}

.banner__media {
  border-radius: 0;
}

/* ---------- Pills ---------- */

.pill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 30px;
  margin-top: clamp(56px, 8.3vw, 120px);
}

.pill {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 145px;
  padding: 24px 36px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 72px;
  background: var(--navy-700);
}

.pill__icon {
  flex: none;
  color: var(--gold);
}

.pill__index {
  display: block;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.pill__title {
  margin-top: 10px;
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.pill__text {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--on-navy);
}

/* ---------- Format rows ---------- */

.formats__list {
  display: grid;
  gap: 60px;
  margin-top: clamp(48px, 7vw, 100px);
}

.format {
  display: grid;
  grid-template-columns: minmax(0, 355fr) minmax(0, 905fr);
  padding: 42px 35px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.format--cream {
  background: var(--cream);
}

.format--white {
  background: var(--white);
  border-color: var(--line-cool);
}

.format--mist {
  background: var(--mist);
  border-color: #e4e7eb;
}

.format__meta {
  display: flex;
  flex-direction: column;
  padding-right: 30px;
  border-right: 1px solid rgba(14, 26, 43, 0.1);
}

.format__index {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.format__title {
  margin-top: 39px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 700;
  line-height: 1.2;
}

.format__label {
  margin-top: 28px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.format__main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding-left: clamp(24px, 3.8vw, 55px);
}

.format__main p {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

.format__cta {
  align-self: flex-end;
}

/* ---------- Numbered steps ---------- */

.steps {
  display: grid;
  gap: 28px;
}

.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.steps .step:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.step__num {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.step__title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}

.step__text {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

.section--navy .step {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.section--navy .step__title {
  color: #fff;
}

.section--navy .step__text {
  color: var(--on-navy);
}

/* ---------- Tick list ---------- */

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

.tick-list li {
  position: relative;
  padding-left: 34px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
}

.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 14px;
  border: 1px solid var(--gold);
  border-radius: 3px;
  transform: rotate(45deg);
}

.section--navy .tick-list li {
  color: var(--on-navy);
}

/* ---------- Chips ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips li {
  padding: 7px 16px;
  border: 1px solid rgba(14, 26, 43, 0.14);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text);
}

.section--navy .chips li,
.svc.is-active .chips li {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--on-navy);
}

/* ---------- Panels and feature blocks ---------- */

.panel {
  padding: clamp(26px, 3vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.panel--white {
  background: var(--white);
  border-color: var(--line-cool);
}

.panel__title {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.panel__dl {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.panel__key {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel__val {
  margin-top: 5px;
  font-size: 15px;
  color: var(--navy);
}

.case-meta {
  margin-top: 24px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(32px, 4vw, 55px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

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

.feature__eyebrow {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.feature__title {
  margin-top: 20px;
}

.feature__text {
  margin-top: 22px;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

.feature__text + .arrow-link,
.feature .chips + .arrow-link {
  margin-top: 26px;
}

.feature .chips {
  margin-top: 24px;
}

/* ---------- FAQ (native details/summary, no JS) ---------- */

.faq {
  display: grid;
  gap: 14px;
  margin-top: clamp(40px, 5vw, 64px);
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}

.faq__item[open] {
  background: var(--cream);
  border-color: var(--gold);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.2s ease;
}

.faq__item[open] .faq__q::after {
  transform: rotate(225deg) translate(-3px, -3px);
}

.faq__a {
  padding: 0 26px 24px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--text);
}

.faq__a a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--gold);
}

/* ---------- Forms ---------- */

.field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field__input,
.field__select,
.field__textarea {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--navy);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field__textarea {
  resize: vertical;
  min-height: 160px;
}

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(179, 154, 84, 0.15);
}

.field__input::placeholder,
.field__textarea::placeholder {
  color: #9aa3ad;
}

.field__error {
  display: none;
  margin-top: 7px;
  font-size: 13px;
  color: #b03a2e;
}

.field__input:user-invalid,
.field__textarea:user-invalid {
  border-color: #b03a2e;
}

.field__input:user-invalid ~ .field__error,
.field__textarea:user-invalid ~ .field__error {
  display: block;
}

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

.form-grid__wide {
  grid-column: 1 / -1;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.form-status {
  display: none;
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px solid var(--gold);
  border-left-width: 3px;
  border-radius: 8px;
  background: var(--cream);
  font-size: 15px;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-error {
  border-color: #b03a2e;
  background: #fdf3f2;
}

.form-note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

.form-note a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Contact list ---------- */

.contact-list {
  display: grid;
  gap: 22px;
}

.contact-list__key {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-list__val {
  margin-top: 6px;
  font-size: 16px;
  color: var(--navy);
}

.contact-list a:hover {
  color: var(--gold);
}

/* ---------- Closing + quote ---------- */

.closing {
  background: var(--cream);
  padding-block: clamp(64px, 7vw, 87px) clamp(80px, 10vw, 155px);
}

.closing__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.closing__title {
  margin-top: 36px;
  font-size: clamp(30px, 3.5vw, 50px);
}

.closing__text {
  margin-block: 26px 42px;
  font-size: 18px;
  color: var(--text);
}

.quote {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 420px;
  padding: clamp(28px, 3.5vw, 50px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.quote blockquote p {
  font-family: var(--font-serif);
  font-size: clamp(20px, 1.9vw, 27px);
  line-height: 1.5;
  color: var(--navy);
}

.quote figcaption {
  position: relative;
  margin-top: 60px;
  padding-top: 40px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.quote figcaption::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 180px;
  max-width: 60%;
  height: 1px;
  background: var(--gold);
}

/* ---------- Footer ---------- */

.footer {
  padding-top: 80px;
  background: var(--navy-900);
  color: #fff;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px 240px 250px;
  gap: 40px;
}

.footer__tagline {
  margin-top: 40px;
  font-family: var(--font-serif);
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.45;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  color: var(--on-navy);
}

.footer__col a {
  width: fit-content;
  transition: color 0.2s ease;
}

.footer__col a:hover {
  color: var(--gold);
}

.footer__label {
  margin-bottom: 14px;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer__label--spaced {
  margin-top: 34px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 80px;
  padding-block: 24px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--on-navy-muted);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer__bottom a:hover {
  color: var(--gold);
}

/* ==========================================================================
   Scroll reveal
   js/scroll-reveal.js owns the list of what animates: it injects the rule that
   hides those elements, so the selector list cannot drift out of sync with the
   observer the way two hand-maintained lists do. Only the revealed state and
   the hero load animation live here.
   ========================================================================== */

.js-reveal .hero__inner > * {
  animation: psalmtech-rise 0.7s ease-out both;
}

.js-reveal .hero__inner > *:nth-child(2) {
  animation-delay: 0.12s;
}

@keyframes psalmtech-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 48px 72px;
  }
  .hero__title {
    margin-top: 36px;
  }
  .hero__media {
    aspect-ratio: 4 / 3;
  }
  .closing__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .quote {
    min-height: 0;
  }
  .feature {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* The header collapses to the menu button below 1100px: with six nav items
   and the call-to-action, the full row no longer fits beside the logo. */
@media (max-width: 1100px) {
  html {
    scroll-padding-top: 92px;
  }
  .header__inner {
    height: 76px;
  }
  .header__cta {
    display: none;
  }
  .logo--header {
    height: 52px;
    padding: 8px 14px;
  }
  .logo img {
    height: 32px;
  }
  .menu-toggle {
    display: flex;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--white);
    border-bottom: 1px solid rgba(14, 26, 43, 0.08);
    box-shadow: 0 18px 30px -20px rgba(14, 26, 43, 0.35);
    font-size: 16px;
  }
  .nav.is-open {
    display: flex;
  }
  .nav > a:not(.btn) {
    padding-block: 14px;
    border-bottom: 1px solid rgba(14, 26, 43, 0.06);
  }
  .nav > a:not(.btn)::after {
    display: none;
  }
  .nav__cta-mobile {
    display: inline-flex;
    margin-top: 18px;
  }
}

@media (max-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .split__aside {
    padding-top: 0;
  }
  .banner {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  .banner__media {
    height: 260px;
    order: -1;
  }
  .pill-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .pill {
    min-height: 0;
    padding: 24px 28px;
    border-radius: 48px;
  }
  .format {
    grid-template-columns: minmax(0, 1fr);
    padding: 30px 24px;
  }
  .format__meta {
    padding: 0 0 24px;
    border-right: 0;
    border-bottom: 1px solid rgba(14, 26, 43, 0.1);
  }
  .format__title {
    margin-top: 16px;
  }
  .format__label {
    margin-top: 12px;
  }
  .format__main {
    padding: 24px 0 0;
  }
  .formats__list {
    gap: 24px;
  }
  .quote figcaption {
    margin-top: 40px;
  }
}

@media (max-width: 600px) {
  .hero__tags {
    margin-top: 36px;
  }
  .hero__lead {
    margin-block: 28px 32px;
  }
  .hero__actions {
    gap: 14px 20px;
  }
  .services__controls {
    width: 100%;
  }
  .services__count {
    margin-right: auto;
  }
  .svc.is-active .svc__media {
    height: 200px;
  }
  .svc.is-active .svc__body,
  .svc__body {
    padding: 24px;
  }
  .carousel__progress {
    gap: 16px;
  }
  .carousel__hint {
    display: none;
  }
  .btn {
    height: 54px;
    padding: 0 26px;
    font-size: 12px;
  }
  .format__cta {
    align-self: stretch;
  }
  .step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
  }
  .step__num {
    width: 44px;
    height: 44px;
    font-size: 12px;
  }
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .footer__label--spaced {
    margin-top: 24px;
  }
  .footer__bottom {
    margin-top: 56px;
  }
}

/* Sticky header lifts off the page once scrolled (class set by scroll-reveal.js). */
.header.is-scrolled {
  box-shadow: 0 10px 24px -18px rgba(14, 26, 43, 0.5);
}

/* ---------- Grid utilities ---------- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.grid-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.stack-sm > * + * {
  margin-top: 14px;
}

.mt-head {
  margin-top: clamp(32px, 4vw, 56px);
}

/* Centred call to action */
.cta-center {
  text-align: center;
}

.cta-center .eyebrow {
  justify-content: center;
}

.cta-center .h2 {
  margin-top: 28px;
}

.cta-center p {
  max-width: 620px;
  margin: 22px auto 0;
  font-size: 17px;
  line-height: 1.7;
}

.cta-center .btn {
  margin-top: 38px;
}

@media (max-width: 960px) {
  .grid-2,
  .grid-3,
  .grid-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Service / tier pages
   Ported from the Figma "Software Services" and "Accounting" page designs.
   All four software tiers and the accounting page share this template.
   ========================================================================== */

/* ---------- Tier hero ---------- */

.svc-hero {
  background: var(--cream);
  padding-block: 56px 72px;
}

.svc-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 620px);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.svc-hero__kicker {
  display: flex;
  align-items: center;
  gap: 18px;
}

.svc-hero__badge {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold);
}

.svc-hero__crumb {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.svc-hero__crumb a {
  color: var(--muted);
}

.svc-hero__crumb a:hover {
  color: var(--gold);
}

.svc-hero__eyebrow {
  margin-top: 40px;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.svc-hero__title {
  margin-top: 20px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: var(--navy);
}

.svc-hero__title em {
  display: block;
  font-style: normal;
  color: var(--gold);
}

.svc-hero__lead {
  max-width: 520px;
  margin-top: 28px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

.svc-hero .btn {
  margin-top: 34px;
}

.svc-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 40px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.svc-hero__tags li::after {
  content: " /";
  color: var(--gold);
}

.svc-hero__tags li:last-child::after {
  content: "";
}

.svc-hero__media {
  position: relative;
  aspect-ratio: 620 / 500;
}

/* Navy caption card sitting over the hero image */
.svc-hero__note {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  padding: 18px 22px;
  border-radius: 10px;
  background: rgba(14, 26, 43, 0.94);
  color: #fff;
}

.svc-hero__note strong {
  display: block;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.svc-hero__note span {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: var(--on-navy);
}

/* ---------- Numbered cards with a gold cap ---------- */

.numcards {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: clamp(20px, 2.2vw, 30px);
  margin-top: clamp(40px, 5vw, 64px);
}

.numcard {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  border: 1px solid var(--line-cool);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 10px 10px;
  background: var(--white);
  box-shadow: 0 14px 30px -26px rgba(14, 26, 43, 0.55);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.numcard__num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold);
}

.numcard__title {
  margin-top: 16px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}

.numcard__text {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}

.numcard__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.numcard__tags li + li::before {
  content: "/ ";
  color: var(--gold);
}

a.numcard:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

/* ---------- Icon list (what's included) ---------- */

.icon-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 3.4vw, 46px);
  margin-top: clamp(40px, 5vw, 64px);
}

.icon-list__item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.icon-list__dot {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
}

.icon-list__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

.icon-list__text {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
}

/* ---------- Hub diagram (navy sections) ---------- */

.diagram {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: center;
  justify-items: center;
}

.diagram__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.diagram__node {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: var(--navy-700);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-navy);
  text-align: center;
}

.diagram__core {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 2;
  width: 100%;
  padding: 22px 18px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  background: #16263f;
  text-align: center;
}

.diagram__core strong {
  display: block;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.diagram__core span {
  display: block;
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
}

.diagram__caption {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
  text-align: center;
}

/* ---------- Comparison table ---------- */

.cmp {
  width: 100%;
  margin-top: clamp(36px, 4.5vw, 56px);
  border-collapse: collapse;
  text-align: left;
}

.cmp th,
.cmp td {
  padding: 18px 22px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.cmp thead th {
  padding-bottom: 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.cmp tbody th {
  width: 20%;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.cmp td {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

/* The PsalmTech column is the one being argued for. */
.cmp .is-ours {
  background: var(--cream);
  color: var(--navy);
  font-weight: 600;
}

.cmp thead .is-ours {
  color: var(--gold);
}

.cmp tbody tr:last-child th,
.cmp tbody tr:last-child td {
  border-bottom: 0;
}

/* ---------- Engagement timeline ---------- */

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--steps, 6), minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(40px, 5vw, 60px);
}

.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  top: 19px;
  height: 1px;
  background: rgba(14, 26, 43, 0.16);
}

.timeline__step {
  position: relative;
  padding-right: 10px;
}

.timeline__dot {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--cream);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
}

.timeline__name {
  margin-top: 18px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

.timeline__text {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text);
}

/* ---------- Deliverable pills ---------- */

.deliverables {
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.deliverables__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.deliverables ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.deliverables li {
  padding: 11px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ---------- Tier CTA band ---------- */

.tier-cta {
  background: var(--navy-900);
  color: #fff;
  padding-block: clamp(56px, 6vw, 84px);
}

.tier-cta__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}

.tier-cta__title {
  margin-top: 26px;
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.9vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.tier-cta__title em {
  display: block;
  font-style: normal;
  color: var(--gold);
}

.tier-cta__text {
  max-width: 520px;
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--on-navy);
}

.tier-cta__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 36px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
}

/* ==========================================================================
   Services modal
   The "Services" nav item opens this. Without JavaScript the same link goes
   to /services/, which carries the identical content as a normal page.
   ========================================================================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  padding: clamp(12px, 3vw, 48px);
  overflow-y: auto;
  background: rgba(14, 26, 43, 0.55);
  backdrop-filter: blur(3px);
}

.modal.is-open {
  display: block;
}

.modal__panel {
  display: grid;
  grid-template-columns: minmax(0, 370px) minmax(0, 1fr);
  max-width: 1240px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}

.modal__aside {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 42px);
  background: var(--navy);
  color: #fff;
}

.modal__eyebrow {
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.modal__title {
  margin-top: 34px;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.2vw, 31px);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.modal__blurb {
  margin-top: 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--on-navy);
}

.modal__switchlabel {
  margin-top: 46px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modal__switch {
  display: grid;
  gap: 4px;
  margin-top: 18px;
}

.modal__switch button {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-navy-muted);
  text-align: left;
  transition: color 0.2s ease;
}

.modal__switch button::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid currentColor;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.modal__switch button:hover {
  color: #fff;
}

.modal__switch button[aria-selected="true"] {
  color: #fff;
}

.modal__switch button[aria-selected="true"]::before {
  background: var(--gold);
  border-color: var(--gold);
}

.modal__foot {
  margin-top: auto;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.modal__foot p:first-child {
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modal__foot p + p {
  margin-top: 10px;
  font-size: 14px;
  color: var(--on-navy);
}

.modal__foot .btn {
  margin-top: 22px;
}

.modal__main {
  position: relative;
  padding: clamp(28px, 3vw, 42px);
}

.modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(14, 26, 43, 0.18);
  color: var(--navy);
  font-size: 20px;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal__close:hover {
  background: var(--navy);
  color: #fff;
}

.modal__heading {
  margin-top: 20px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.3vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  max-width: 85%;
}

.modal__sub {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text);
}

.modal__panelbody[hidden] {
  display: none;
}

/* Stacked rows (software tiers) */
.optrows {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.optrow {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 48px;
  gap: 20px;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid var(--line-cool);
  border-radius: 10px;
  background: var(--white);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.optrow:hover,
.optrow.is-featured {
  background: var(--cream);
  border-color: var(--line);
  border-left: 3px solid var(--gold);
  padding-left: 20px;
}

.optrow__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--mist);
  color: var(--gold);
}

.optrow.is-featured .optrow__icon {
  background: var(--navy);
}

.optrow__num {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.optrow__title {
  margin-top: 5px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}

.optrow__text {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text);
}

.optrow__go {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: background 0.2s ease, color 0.2s ease;
}

.optrow.is-featured .optrow__go,
.optrow:hover .optrow__go {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* Two-column tiles (accounting) */
.opttiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.opttile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--line-cool);
  border-radius: 10px;
  background: var(--white);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.opttile:hover {
  background: var(--cream);
  border-color: var(--line);
  border-left: 3px solid var(--gold);
  padding-left: 18px;
}

.opttile__num {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.opttile__title {
  margin-top: 6px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}

.opttile__go {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
}

.opttile:hover .opttile__go {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 20px 24px;
  border-radius: 10px;
  background: var(--mist);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
}

.modal__bar:hover {
  background: var(--cream);
  color: var(--gold);
}

@media (max-width: 1000px) {
  .modal__panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .modal__aside {
    padding-bottom: 32px;
  }
  .modal__switchlabel {
    margin-top: 30px;
  }
  .modal__foot {
    padding-top: 26px;
  }
  .modal__heading {
    max-width: 100%;
    padding-right: 56px;
  }
}

@media (max-width: 700px) {
  .opttiles {
    grid-template-columns: minmax(0, 1fr);
  }
  .optrow {
    grid-template-columns: minmax(0, 1fr) 44px;
  }
  .optrow__icon {
    display: none;
  }
}

@media (max-width: 1100px) {
  .svc-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .svc-hero__media {
    aspect-ratio: 16 / 10;
  }
  .numcards {
    --cols: 2;
  }
  .icon-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .timeline {
    --steps: 3;
    row-gap: 32px;
  }
  .timeline::before {
    display: none;
  }
  .tier-cta__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .numcards {
    --cols: 1;
  }
  .icon-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .timeline {
    --steps: 1;
    row-gap: 24px;
  }
  .diagram {
    grid-template-columns: minmax(0, 1fr);
  }
  .diagram__core {
    grid-column: 1;
    grid-row: auto;
    order: -1;
  }
  .diagram__lines {
    display: none;
  }
  /* A table this wide cannot reflow; let it scroll rather than crush. */
  .cmp-wrap {
    overflow-x: auto;
  }
  .cmp {
    min-width: 560px;
  }
}


/* Footer now carries two link columns (software tiers + other capabilities). */
.footer__grid {
  grid-template-columns: minmax(0, 1fr) 180px 220px 190px 220px;
}

@media (max-width: 1280px) {
  .footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* These are spans (they sit inside an <a>), so they need to be block-level
   for the stacked layout and their margins to apply. */
.optrow__num,
.optrow__title,
.optrow__text,
.opttile__num,
.opttile__title {
  display: block;
}

/* ==========================================================================
   Blog
   Markdown output carries no classes, so the article rules style bare
   elements. They sit on top of .prose, which handles paragraphs and links.
   ========================================================================== */

.post-list {
  display: grid;
  gap: 28px;
}

.post-list .feature__title a {
  color: inherit;
  text-decoration: none;
}

.post-list .feature__title a:hover {
  color: var(--gold);
}

.article {
  max-width: 760px;
}

.article h2,
.article h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}

.article h2 {
  font-size: clamp(21px, 1.9vw, 27px);
}

.article h3 {
  font-size: clamp(18px, 1.5vw, 21px);
  margin-top: 36px;
}

.article h2 + *,
.article h3 + * {
  margin-top: 18px;
}

.article > * + p,
.article > * + ul,
.article > * + ol,
.article > * + pre,
.article > * + blockquote,
.article > * + table,
.article > * + figure,
.article > p + img {
  margin-top: 18px;
}

.article ul,
.article ol {
  padding-left: 1.4em;
  line-height: 1.75;
}

.article ul {
  list-style: disc;
}

.article ol {
  list-style: decimal;
}

.article li + li {
  margin-top: 6px;
}

.article li::marker {
  color: var(--gold);
}

.article strong {
  color: var(--navy);
}

.article code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9em;
  background: var(--mist);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

.article pre {
  background: var(--navy);
  color: var(--on-navy);
  border-radius: var(--radius);
  padding: 20px 24px;
  overflow-x: auto;
  line-height: 1.6;
}

.article pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.article blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--navy);
}

.article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
  display: block;
  overflow-x: auto;
}

.article th,
.article td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.article th {
  color: var(--navy);
  font-weight: 600;
}

.article__updated,
.article__back {
  max-width: 760px;
  margin-top: 36px;
  color: var(--muted);
}

/* Campaign typefaces, used only by the Websites for Good banner. */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/anton-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/fraunces-light.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/fraunces-light-italic.woff2") format("woff2");
}

/* ---------- Blog post with a banner beside it ----------
   The banner stays in view while the article scrolls on wide screens, and
   drops below the article on narrow ones (.grid-sidebar collapses at 960px). */

.article-layout__aside {
  position: sticky;
  top: 120px;
}

/* Websites for Good banner, after the campaign's "glass frame" post: a
   dark photo, the campaign name in tall letters behind a frosted card.
   Sizes follow the banner's own width (cqi), so it scales from the 380px
   sidebar to full width on a tablet. Anton and Fraunces load only on pages
   that show it. */

.wfg {
  --wfg-accent: #e6db98;
  container-type: inline-size;
  position: relative;
  overflow: hidden;
  max-width: 440px;
  border-radius: 24px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-sans);
}

.wfg__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
}

.wfg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 26, 43, 0.35), rgba(14, 26, 43, 0.15) 45%, rgba(14, 26, 43, 0.55));
  pointer-events: none;
}

.wfg__word {
  position: absolute;
  left: 3cqi;
  z-index: 1;
  margin: 0;
  font-family: "Anton", var(--font-sans);
  font-size: 25cqi;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(205, 210, 218, 0.55);
}

.wfg__word--top {
  top: -3cqi;
}

.wfg__word--bottom {
  bottom: -4cqi;
  left: 8cqi;
}

.wfg__glass {
  position: relative;
  /* Margins, not the banner's padding: cqi on .wfg itself would measure
     the page, not the banner. */
  margin: 19cqi 5cqi 23cqi;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 24px 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(14, 26, 43, 0.45));
  -webkit-backdrop-filter: blur(14px) saturate(130%);
  backdrop-filter: blur(14px) saturate(130%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 20px 50px rgba(0, 0, 0, 0.3);
}

.wfg__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wfg__globe {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
}

.wfg__round {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-align: right;
  text-transform: uppercase;
}

.wfg__title {
  margin: 4px 0 0;
  font-family: "Fraunces", var(--font-serif);
  font-size: clamp(30px, 9.4cqi, 40px);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #fff;
}

.wfg__title em {
  display: block;
  font-style: italic;
  color: var(--wfg-accent);
}

.wfg__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #e3e7ee;
}

.wfg__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wfg__list li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.45;
}

.wfg__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wfg-accent);
}

.wfg__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
}

.wfg__date {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.wfg__date time {
  color: var(--wfg-accent);
}

.wfg__go {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 46px;
  border: 1.5px solid #fff;
  border-radius: 999px;
  color: #fff;
  transition: background 0.2s ease, color 0.2s ease;
}

.wfg__go:hover,
.wfg__go:focus-visible {
  background: #fff;
  color: var(--navy);
}

.wfg__foot {
  display: grid;
  gap: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.wfg__site {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

.wfg__site::after {
  content: " \2192";
}

.wfg__site:hover {
  color: var(--wfg-accent);
}

.wfg__fine {
  margin: 0;
  font-size: 12.5px;
  color: #e3e7ee;
}

.wfg__fine a {
  color: #e3e7ee;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wfg__fine a:hover {
  color: #fff;
}

/* A narrow banner (phones): a smaller arrow keeps the date on two lines. */
@container (max-width: 350px) {
  .wfg__go {
    width: 64px;
    height: 42px;
  }

  .wfg__date {
    letter-spacing: 0.1em;
  }
}

.wfg a:focus-visible {
  outline: 2px solid var(--wfg-accent);
  outline-offset: 3px;
}

@media (max-width: 960px) {
  .article-layout__aside {
    position: static;
    margin-top: 48px;
  }
}

/* On a short screen a pinned banner would hang off the bottom with no way
   to scroll to it, so let it scroll with the page instead. */
@media (max-height: 880px) {
  .article-layout__aside {
    position: static;
  }
}

/* ---------- Blog share links ---------- */

.share {
  max-width: 760px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.share__title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
}

.share__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.share__link {
  display: inline-block;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  color: var(--navy);
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.share__link:hover,
.share__link:focus-visible {
  border-color: var(--gold);
  background: var(--cream);
}

.share__link[hidden] {
  display: none;
}

.share__status {
  min-height: 1.4em;
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Case study screenshots ----------
   Each shot sits in a light browser frame; the first spans the row. */

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.shot {
  margin: 0;
}

.shot--lead {
  grid-column: 1 / -1;
}

.shot__frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 40px -24px rgba(14, 26, 43, 0.35);
}

.shot__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line-cool);
  background: var(--mist);
}

.shot__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d5d9df;
}

.shot__bar span {
  margin-left: 10px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.shot__frame img {
  display: block;
  width: 100%;
  height: auto;
}

.shot figcaption {
  margin-top: 14px;
  font-size: 15px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .shots {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}
