@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&display=swap");

:root {
  --color-primary: #2228c9;
  --color-accent: #cf0101;
  --color-bg: #ffffff;
  --color-text: #141414;
  --color-surface: #f5f7fb;
  --color-muted: #5f6473;
  --container-max: 1240px;
  --radius-lg: 1.5rem;
  --radius-xl: 2.5rem;
  --shadow-soft: 0 18px 48px rgba(20, 20, 20, 0.12);
  --space-section: clamp(4.5rem, 9vw, 8rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", "Trebuchet MS", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.65;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Sora", "Trebuchet MS", sans-serif;
}

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

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

.container {
  width: min(var(--container-max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding-block: var(--space-section);
}

.section-kicker {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
}

.section-title {
  margin: 0 0 1.6rem;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.1;
  max-width: 20ch;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal;
}

.screen-reader-text:focus {
  clip: auto;
  clip-path: none;
  display: block;
  height: auto;
  width: auto;
  left: 1rem;
  top: 1rem;
  z-index: 10000;
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0.4rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(20, 20, 20, 0.07);
}

.site-header .container {
  width: min(1600px, calc(100% - 2.5rem));
}

.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.9rem;
  min-height: 4.6rem;
}

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

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

.brand__logo {
  width: auto;
  height: 2.1rem;
  object-fit: contain;
}

.nav-toggle {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  padding: 0.5rem;
  cursor: pointer;
}

.site-nav {
  position: absolute;
  left: 0;
  right: 0;
  top: 4.6rem;
  background: #fff;
  border-bottom: 1px solid rgba(20, 20, 20, 0.07);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
}

.site-nav.is-open {
  max-height: 22rem;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 1rem 1.25rem 1.2rem;
  display: grid;
  gap: 0.65rem;
}

.site-nav__list a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #252a38;
}

.header-cta {
  display: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.88rem 1.35rem;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--ghost {
  background: transparent;
  color: var(--color-text);
  border: 1px solid rgba(20, 20, 20, 0.22);
}

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

.hero {
  padding-top: clamp(2.5rem, 6vw, 4rem);
}

.hero .container {
  width: min(1600px, calc(100% - 2.5rem));
}

.hero__layout {
  display: grid;
  gap: 1.8rem;
}

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

.hero__eyebrow {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
}

.hero__headline {
  margin: 0;
  font-size: clamp(2rem, 6.2vw, 4rem);
  line-height: 0.98;
  max-width: 16ch;
}

.hero__subheadline {
  margin: 0;
  max-width: 52ch;
  color: #373c49;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__media {
  min-height: clamp(22rem, 54vw, 42rem);
  border-radius: var(--radius-xl);
  background-image:
    linear-gradient(180deg, rgba(20, 20, 20, 0.12), rgba(20, 20, 20, 0.52)),
    var(--bg-image);
  background-color: #141414;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
  transition: opacity 0.35s ease, transform 0.35s ease;
  will-change: opacity, transform;
}

.hero__media.is-switching {
  opacity: 0.82;
  transform: scale(0.992);
}

.section--services {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fc 100%);
}

.services-masonry {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: 22rem;
  gap: 1rem;
}

.service-tile {
  position: relative;
  min-height: 100%;
  border-radius: var(--radius-xl);
  background-image: var(--bg-image), linear-gradient(130deg, #d0d9ec, #e5eaf5);
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 14px 32px rgba(20, 20, 20, 0.14);
  cursor: pointer;
}

.service-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06) 30%, rgba(0, 0, 0, 0.58) 76%, rgba(0, 0, 0, 0.72) 100%);
}

.service-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: inherit;
  z-index: 1;
  pointer-events: none;
}

.service-tile__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1.15rem 1.1rem 1.2rem;
}

.service-tile__link {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.service-tile h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.32rem;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.15;
  text-wrap: balance;
}

.service-tile p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  max-width: 38ch;
}

.service-tile__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  line-height: 1;
  transition: transform 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.service-tile__link:hover .service-tile__arrow,
.service-tile__link:focus-visible .service-tile__arrow {
  transform: translateX(0.16rem);
  background: #fff;
  color: #141414;
}

.service-tile__link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -4px;
  border-radius: inherit;
}

.section--consulting {
  background: #fff;
}

.section--process {
  background: #fff;
}

.process-grid {
  display: grid;
  gap: 0.95rem;
  margin-top: 0;
}

.process-step {
  background: #f4f6fa;
  border-radius: 1.2rem;
  padding: 1.1rem 1rem;
  text-align: center;
}

.process-step__number {
    width: 4rem;
    height: 4rem;
    margin-inline: auto;
    margin-bottom: 0.8rem !important;
    border-radius: 0.85rem;
    background: #dfe4ee;
    color: var(--color-primary) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem !important;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.process-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.process-step p {
  margin: 0;
  color: #3d4454;
  font-size: 0.95rem;
}

.consulting__layout {
  display: grid;
  gap: 1.6rem;
}

.consulting__copy p {
  margin-top: 0;
  color: #343b49;
}

.consulting-points {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 1.6rem;
  display: grid;
  gap: 0.65rem;
}

.consulting-points li {
  position: relative;
  padding-left: 1.3rem;
}

.consulting-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--color-primary);
}

.consulting__media {
  min-height: clamp(18rem, 45vw, 31rem);
  border-radius: var(--radius-xl);
  background-image:
    linear-gradient(160deg, rgba(20, 20, 20, 0.1), rgba(20, 20, 20, 0.1)),
    var(--bg-image),
    linear-gradient(130deg, #d6deef, #ecf1fa);
  background-size: cover;
  background-position: center;
}

.section--projects {
  background: #f3f6fc;
}

.projects-grid {
  display: grid;
  gap: 1.1rem;
}

.project-card {
  min-height: 26rem;
  border-radius: var(--radius-xl);
  background-image:
    linear-gradient(170deg, rgba(20, 20, 20, 0.02), rgba(20, 20, 20, 0.52)),
    var(--bg-image),
    linear-gradient(130deg, #d0d9ec, #e5eaf5);
  background-size: cover;
  background-position: center;
  color: #fff;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.project-card__content {
  width: 100%;
  padding: 1.4rem;
  background: linear-gradient(to top, rgba(20, 20, 20, 0.72), rgba(20, 20, 20, 0));
}

.project-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
}

.project-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
}

.section--trust {
  background: #fff;
}

.why-icon-grid {
  display: grid;
  gap: 0.95rem;
  margin-top: 0;
  margin-bottom: 1.35rem;
}

.why-icon-card {
  background: #f4f6fa;
  border-radius: 1.2rem;
  padding: 1.1rem 1rem;
  text-align: center;
}

.why-icon-card__icon {
  width: 4rem;
  height: 4rem;
  margin-inline: auto;
  margin-bottom: 0.8rem;
  border-radius: 0.85rem;
  background: #dfe4ee;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.why-icon-card__icon svg {
  width: 1.75rem;
  height: 1.75rem;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-icon-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.why-icon-card p {
  margin: 0;
  color: #3d4454;
  font-size: 0.95rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.trust-card {
  padding: 1.3rem;
  border-radius: 1.1rem;
  background: #f7f9fd;
}

.trust-card__value {
  margin: 0 0 0.35rem;
  font-size: 1.8rem;
  line-height: 1;
  font-weight: 700;
  color: var(--color-primary);
}

.trust-card__label {
  margin: 0;
  color: #3d4454;
}

.section--cta {
  background: var(--color-primary);
}

.cta-block {
  text-align: center;
  color: #fff;
}

.cta-block h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1.1;
}

.cta-block p {
  margin: 0 0 1.4rem;
  color: rgba(255, 255, 255, 0.87);
}

.site-footer {
  background: #11131b;
  color: rgba(255, 255, 255, 0.9);
  padding-block: 2.8rem;
}

.site-footer a {
  color: #fff;
}

.site-footer__inner {
  display: grid;
  gap: 1.5rem;
}

.site-footer h2 {
  margin: 0 0 0.6rem;
  font-size: 1.7rem;
}

.site-footer p {
  margin: 0 0 0.45rem;
}

.hero__content > * {
  opacity: 0;
  transform: translateY(1.1rem);
  animation: rise-in 0.7s ease forwards;
}

.hero__content > *:nth-child(2) { animation-delay: 0.08s; }
.hero__content > *:nth-child(3) { animation-delay: 0.16s; }
.hero__content > *:nth-child(4) { animation-delay: 0.24s; }

@keyframes rise-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 48rem) {
  .container {
    width: min(var(--container-max), calc(100% - 4rem));
  }

  .site-header .container {
    width: min(1600px, calc(100% - 4rem));
  }

  .hero .container {
    width: min(1600px, calc(100% - 4rem));
  }

  .services-masonry {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: 22rem;
    grid-auto-flow: dense;
    gap: 1.1rem;
  }

  .service-tile--span6 {
    grid-column: span 6;
  }

  .service-tile--span3 {
    grid-column: span 3;
  }

  .service-tile--high {
    grid-row: span 2;
  }

  .consulting__layout {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .why-icon-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.4rem;
  }

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

  .project-card--one {
    grid-column: span 2;
    min-height: 34rem;
  }

  .site-footer__inner {
    grid-template-columns: 1.15fr 1fr 0.85fr;
  }
}

@media (min-width: 64rem) {
  .brand__logo {
    height: 2.5rem;
  }

  .site-header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 1.5rem;
    min-height: 5rem;
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    max-height: none;
    border: 0;
    background: transparent;
    justify-self: center;
  }

  .site-nav__list {
    padding: 0;
    grid-auto-flow: column;
    gap: 1.3rem;
    align-items: center;
  }

  .site-nav__list a {
    position: relative;
    padding-bottom: 0.24rem;
  }

  .site-nav__list a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 2px;
    background: var(--color-primary);
    transition: right 0.25s ease;
  }

  .site-nav__list a:hover::after {
    right: 0;
  }

  .header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.1rem;
    border-radius: 999px;
    background: var(--color-accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
  }

  .hero__layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 2rem;
  }

  .process-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  .services-masonry {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: 22rem;
    grid-auto-flow: dense;
    gap: 1.15rem;
  }

  .service-tile--span3 {
    grid-column: span 3;
  }

  .service-tile--span6 {
    grid-column: span 6;
  }

  .service-tile--high {
    grid-row: span 2;
  }

  .service-tile h3 {
    font-size: clamp(1.18rem, 1.45vw, 1.5rem);
  }

  .service-tile p {
    font-size: 1rem;
    max-width: 30ch;
  }

  .projects-grid {
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: repeat(2, minmax(16rem, auto));
  }

  .project-card--one {
    grid-column: 1;
    grid-row: span 2;
    min-height: auto;
  }

  .project-card--two {
    grid-column: 2;
    grid-row: 1;
  }

  .project-card--three {
    grid-column: 2;
    grid-row: 2;
  }

  .trust-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

