:root {
  --background: #F8F7F8;
  --page: #E9EDFF;
  --primary: #5676FE;
  --accent: #7282FB;
  --white: #FFFFFF;
  --ink: #5676FE;
  --muted: #5676FE;
  --line: #CDD5FF;
  --soft-blue: #E9EDFF;
  --pale-accent: #EEF0FF;
  --shadow: none;
  --rule-width: min(100%, 860px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

main {
  counter-reset: slide;
}

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

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 247, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1160px, calc(100% - 2rem));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

.brand-mark,
.brand::before {
  display: none;
  content: none;
}

.brand strong {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  min-width: 0;
}

.nav-menu a {
  color: var(--primary);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--white);
  padding: 0.7rem;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  background: var(--primary);
  margin: 5px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section {
  position: relative;
  counter-increment: slide;
  scroll-margin-top: 96px;
  width: min(1240px, calc(100% - 2rem));
  margin: 1.25rem auto;
  padding: clamp(3.5rem, 6vw, 5.8rem) clamp(2rem, 6vw, 5rem);
  padding-bottom: clamp(4.5rem, 7vw, 6.5rem);
  background: var(--background);
  border: 1px solid rgba(104, 112, 141, 0.32);
  overflow: hidden;
}

.section::before {
  content: none;
  position: absolute;
  left: clamp(2rem, 6vw, 5rem);
  bottom: 1.6rem;
  z-index: 1;
  color: var(--primary);
  font-size: 0.75rem;
}

.section-home {
  position: absolute;
  top: clamp(3.25rem, 5.35vw, 5.2rem);
  left: auto;
  right: clamp(1.5rem, 4vw, 3rem);
  width: clamp(78px, 10.35vw, 147px);
  z-index: 3;
  display: block;
  text-decoration: none;
}

.section-home img {
  width: 100%;
  height: auto;
}

.section:has(> .section-home) > .section-home {
  position: absolute;
  left: auto;
  right: clamp(1.5rem, 4vw, 3rem);
}

.section > :not(.section-home) {
  position: relative;
  z-index: 2;
}

.hero {
  min-height: min(760px, calc(92vh - 76px));
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding-top: clamp(3rem, 6vw, 5.8rem);
  padding-bottom: clamp(3rem, 6vw, 5.8rem);
}

.hero-content {
  max-width: 670px;
}

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

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.hero-links a {
  color: var(--primary);
  text-decoration: none;
}

.hero-links a:hover,
.hero-links a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

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

h1 {
  margin-bottom: 1.35rem;
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 1.05;
  letter-spacing: 0;
  max-width: 15ch;
}

h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  max-width: var(--rule-width);
}

h2::after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 1rem;
  background: var(--primary);
}

.section:has(> .section-home) .section-heading,
.section:has(> .section-home) .section-heading.wide {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
}

.section:has(> .section-home) .section-heading .eyebrow {
  order: 1;
}

.section:has(> .section-home) .section-heading h1,
.section:has(> .section-home) .section-heading h2 {
  order: 2;
  max-width: calc(100% - clamp(8rem, 15vw, 12.5rem));
  margin-bottom: 0;
}

.section:has(> .section-home) .section-heading h1::after,
.section:has(> .section-home) .section-heading h2::after {
  display: none;
}

.section:has(> .section-home) .section-heading::after {
  content: "";
  display: block;
  order: 3;
  width: 100%;
  height: 4px;
  margin-top: 1rem;
  margin-bottom: 1.4rem;
  background: var(--primary);
}

.section:has(> .section-home) .section-heading p:not(.eyebrow) {
  order: 4;
  max-width: var(--rule-width);
}

.legal-page h1 {
  margin-bottom: 1.4rem;
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0;
  max-width: var(--rule-width);
}

.legal-page h1::after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 1rem;
  background: var(--primary);
}

.legal-content {
  max-width: 860px;
  color: var(--primary);
}

.legal-content h2 {
  margin: 2rem 0 0.75rem;
  font-size: clamp(1.2rem, 1.8vw, 1.55rem);
  font-weight: 800;
}

.legal-content h2::after {
  display: none;
}

.legal-content p,
.legal-content li {
  color: var(--primary);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
}

.legal-content a {
  color: var(--primary);
  font-weight: 800;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-copy {
  max-width: 700px;
  color: var(--primary);
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  font-weight: 700;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  padding: 0.85rem 1.1rem;
  font-weight: 800;
  text-decoration: none;
}

.button-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 16px 34px rgba(86, 118, 254, 0.28);
}

.button-secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--primary);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 400px;
}

.hero-visual img {
  position: relative;
  width: min(100%, 620px);
  filter: none;
}

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

.section-heading.wide {
  max-width: 900px;
  margin-bottom: 2rem;
}

.section-heading p:not(.eyebrow),
.split p:not(.eyebrow),
.ai-section p:not(.eyebrow),
.contact p,
.analysis-band p:not(.eyebrow) {
  color: var(--primary);
  font-size: 1.05rem;
}

.mission-statement {
  color: var(--primary);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 600;
  line-height: 1.25;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.intro-grid p,
.proof-panel,
.contact-card,
.platform-grid article,
.mission article,
.challenge-grid article,
.client-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.intro-grid p {
  margin: 0;
  padding: 1.35rem;
}

.split,
.ai-section,
.contact {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.mission {
  display: block;
}

.mission .section-heading.wide,
.mission-statement {
  margin-bottom: 0;
}

.value-list {
  display: grid;
  gap: 1rem;
  margin-top: clamp(1.25rem, 3vw, 2.25rem);
}

.value-list article {
  padding: 1.25rem;
}

.value-list span,
.timeline span {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  background: var(--soft-blue);
  color: var(--primary);
  font-weight: 900;
}

.cards {
  display: grid;
  gap: 1rem;
}

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

.experience-grid {
  grid-template-columns: repeat(4, 1fr);
}

.challenge-grid,
.client-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.challenge-grid article,
.client-grid article {
  padding: 1.35rem;
}

.card {
  min-height: 100%;
  padding: 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.card p,
.platform-grid p,
.value-list p,
.timeline p {
  margin-bottom: 0;
  color: var(--primary);
}

.platform-band,
.analysis-band {
  width: min(1240px, calc(100% - 2rem));
  max-width: 1240px;
  padding-left: clamp(2rem, 6vw, 5rem);
  padding-right: clamp(2rem, 6vw, 5rem);
  background: var(--background);
  border: 1px solid rgba(104, 112, 141, 0.32);
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.platform-grid article {
  padding: 1.35rem;
  background: var(--white);
}

ul {
  padding-left: 1.1rem;
}

.platform-grid li,
.check-list li {
  margin: 0.4rem 0;
  color: var(--primary);
}

.proof-panel {
  align-self: start;
  padding: 1.5rem;
}

.differentiation-close {
  grid-column: 1 / -1;
  margin: -1.4rem 0 0;
  color: var(--primary);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.split .proof-panel {
  grid-column: 1 / -1;
  margin-top: -4rem;
}

.check-list {
  margin: 0;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  align-items: start;
}

#approach .section-heading.wide {
  margin-bottom: 0;
}

.timeline article {
  position: relative;
  padding-top: 0;
  border-top: 0;
}

.timeline article::before {
  content: "";
  display: block;
  height: 3px;
  margin: 0 0 0.9rem;
  background: var(--line);
}

.timeline .timeline-row-rule {
  display: none;
}

@media (min-width: 641px) and (max-width: 1024px) {
  .timeline article:nth-child(4)::after {
    content: none;
  }

  .timeline .timeline-row-rule {
    display: block;
    align-self: start;
    width: auto;
    height: 3px;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: var(--line);
  }
}

.frameworks,
.artefact-grid,
.next-steps-grid,
.engagement-list,
.ai-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.frameworks span,
.artefact-grid span,
.next-steps-grid span,
.engagement-list span,
.ai-grid span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0.65rem 0.85rem;
  background: var(--white);
  color: var(--primary);
  font-weight: 700;
}

.next-steps-lead,
.next-steps-outcome p {
  color: var(--primary);
  font-size: clamp(1.15rem, 1.9vw, 1.55rem);
  font-weight: 800;
}

.next-steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 1.25rem 0 1.75rem;
}

.next-steps-outcome {
  color: var(--primary);
}

.next-steps-outcome ul {
  margin: 1rem 0 0;
  color: var(--primary);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.artefact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 1.25rem 0 2.2rem;
}

.section-note {
  margin-bottom: 0.9rem;
  font-weight: 700;
}

.analysis-band .frameworks span {
  background: var(--white);
}

.engagement-list span {
  background: var(--soft-blue);
  border-color: var(--line);
}

.section.ai-section {
  display: block !important;
  grid-template-columns: none !important;
}

.ai-section .section-heading.wide {
  margin-bottom: 2rem;
}

.ai-section .section-heading.wide p:not(.eyebrow) {
  margin-bottom: 0;
}

.ai-grid {
  margin-top: 0;
  max-width: var(--rule-width);
}

.ai-grid span:nth-child(odd) {
  background: var(--soft-blue);
  border-color: #C7D0FF;
}

.ai-grid span:nth-child(even) {
  background: var(--pale-accent);
  border-color: #D6DBFF;
}

.contact-content {
  max-width: 780px;
}

.contact .eyebrow {
  margin-bottom: 1.25rem;
}

.contact-strapline {
  margin: 0 0 2rem;
  color: var(--primary);
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  font-weight: 800;
  line-height: 1.35;
}

.contact-intro {
  max-width: 760px;
  margin-bottom: 1.6rem;
}

.contact-intro p {
  margin-bottom: 0.9rem;
  color: var(--primary);
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  font-weight: 700;
  line-height: 1.45;
}

.contact-label {
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  font-weight: 800;
}

.contact-details {
  display: grid;
  gap: 0.15rem;
  margin: 0 0 0.5rem;
}

.contact-details a {
  color: var(--primary);
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.delivery-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.15rem 0 2.3rem;
  color: var(--primary);
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  font-weight: 700;
}

.delivery-modes span {
  display: inline-flex;
  align-items: center;
}

.delivery-modes span + span::before {
  content: "|";
  margin-right: 0.6rem;
}

.closing-line {
  color: var(--primary);
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  font-weight: 800;
  line-height: 1.3;
}

.contact-logo {
  display: grid;
  place-items: center;
  width: clamp(180px, 24vw, 280px);
  margin: clamp(2.25rem, 4vw, 3.25rem) auto 0;
}

.contact-logo img {
  width: 100%;
}

.contact-logo .contact-lockup-image {
  width: 100%;
}

@media (min-width: 1025px) {
  .section:has(> .section-home) > .section-home {
    top: clamp(2.25rem, 4vw, 3.55rem);
  }

  .contact {
    display: block;
    min-height: 760px;
  }

  .contact-content {
    max-width: 780px;
  }

  .contact-logo {
    position: static;
    width: clamp(220px, 22vw, 320px);
    margin: clamp(2.25rem, 4vw, 3.25rem) auto 0;
  }

  .contact-logo .contact-lockup-image {
    width: 100%;
  }
}

.site-explore,
.page-pager {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  color: var(--primary);
}

.site-explore {
  padding: 1.7rem 0 1.25rem;
  border-top: 1px solid var(--line);
}

.explore-title {
  margin: 0 0 0.9rem;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.explore-title::after {
  display: none;
}

.explore-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.1rem;
}

.explore-links a,
.page-pager a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.explore-links a:hover,
.explore-links a:focus-visible,
.page-pager a:hover,
.page-pager a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.page-pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0 1.2rem;
  font-size: 0.95rem;
}

.page-pager a:last-child {
  margin-left: auto;
}

.site-footer {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line);
  color: var(--primary);
  font-size: 0.92rem;
  font-weight: 800;
}

.site-footer a {
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

@media (max-width: 980px) {
  .nav {
    min-height: 76px;
    padding: 0;
    align-items: center;
    flex-direction: row;
  }

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

  .section {
    scroll-margin-top: 140px;
  }

  .nav-menu {
    position: fixed;
    left: 1rem;
    right: 1rem;
    top: 84px;
    display: grid;
    gap: 0;
    padding: 0.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: 0 14px 32px rgba(37, 48, 96, 0.12);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.75rem);
    transition: opacity 180ms ease, transform 180ms ease;
  }

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

  .nav-menu a {
    padding: 0.95rem;
  }

  .hero,
  .mission,
  .split,
  .ai-section,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 4rem;
  }

  .hero-visual {
    min-height: 360px;
  }

  .intro-grid,
  .service-grid,
  .platform-grid,
  .experience-grid,
  .timeline,
  .artefact-grid,
  .next-steps-grid,
  .challenge-grid,
  .client-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .section {
    width: min(100% - 1rem, 1160px);
    padding: 4rem 0;
    padding-left: 1.15rem;
    padding-right: 1.15rem;
    padding-bottom: 4.75rem;
  }

  .nav {
    width: min(100% - 1.25rem, 1160px);
  }

  h1 {
    font-size: clamp(2.4rem, 12vw, 3.8rem);
  }

  h2 {
    font-size: clamp(1.9rem, 10vw, 3rem);
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .explore-links,
  .page-pager {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-pager a:last-child {
    margin-left: 0;
  }

  .button {
    width: 100%;
  }

  .intro-grid,
  .service-grid,
  .platform-grid,
  .experience-grid,
  .timeline,
  .artefact-grid,
  .next-steps-grid,
  .challenge-grid,
  .client-grid {
    grid-template-columns: 1fr;
  }

  .platform-band,
  .analysis-band {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .hero-visual {
    min-height: 280px;
  }

  .section-home {
    opacity: 1;
    top: 3.1rem;
    left: auto;
    right: 1rem;
    width: 67px;
  }

  .section::before {
    left: 1.15rem;
  }
}
