:root {
  --ink: #171822;
  --muted: #626574;
  --paper: #ffffff;
  --soft: #f4f5fb;
  --line: #dfe2ee;
  --brand: #4e5ac3;
  --brand-dark: #303a86;
  --brand-light: #bec1eb;
  --accent: #f4e46f;
  --footer: #2f2e2e;
  --shadow: 0 18px 50px rgba(27, 29, 50, 0.14);
  --radius: 18px;
  --shell: 1180px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  max-width: 100%;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

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

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h1 {
  margin-bottom: 26px;
  font-size: clamp(3.1rem, 7.2vw, 6.4rem);
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 4.8vw, 4.2rem);
}

h3 {
  font-size: 1.35rem;
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 8px;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--paper);
  background: rgba(48, 58, 134, 0.97);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--shell));
  min-height: 82px;
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: flex;
  align-items: center;
  width: 62px;
  height: 30px;
}

.brand-mark i {
  width: 21px;
  height: 21px;
  margin-right: -3px;
  background: var(--paper);
  border-radius: 3px;
  transform: rotate(-30deg);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.12);
}

.site-nav a[aria-current="page"]::after {
  position: absolute;
  right: 16px;
  bottom: 6px;
  left: 16px;
  height: 2px;
  content: "";
  background: var(--accent);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9px;
  cursor: pointer;
}

.menu-label {
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-icon,
.menu-icon::before,
.menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-icon {
  position: relative;
}

.menu-icon::before,
.menu-icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

.menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }

.eyebrow {
  margin-bottom: 16px;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 110px;
  background: linear-gradient(135deg, #f6f6fb 0%, #fff 58%, #eceefa 100%);
}

.hero::before {
  position: absolute;
  top: -220px;
  right: -170px;
  width: 550px;
  height: 550px;
  content: "";
  background: var(--brand-light);
  border-radius: 48% 52% 67% 33%;
  opacity: 0.25;
  transform: rotate(20deg);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  align-items: center;
  gap: 72px;
}

.hero-copy h1 span {
  color: var(--brand);
}

.hero-intro {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.8vw, 1.25rem);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.button-primary { color: var(--paper); background: var(--brand); }
.button-primary:hover { background: var(--brand-dark); }
.button-ghost { color: var(--brand-dark); border-color: var(--brand-light); }
.button-ghost:hover { background: var(--paper); }
.button-dark { margin-top: 10px; color: var(--paper); background: var(--ink); }
.button-outline { color: var(--brand-dark); border-color: var(--brand); }
.button-light { color: var(--brand-dark); background: var(--paper); }

.hero-collage {
  position: relative;
  min-height: 510px;
}

.hero-collage img {
  position: absolute;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.collage-main {
  top: 0;
  right: 0;
  width: 82%;
  height: 410px;
  border-radius: 40% 16px 40% 16px;
}

.collage-small {
  bottom: 0;
  left: 0;
  width: 54%;
  height: 215px;
  border: 8px solid var(--paper);
  border-radius: 14px;
}

.result-card {
  position: absolute;
  right: -8px;
  bottom: 10px;
  display: grid;
  min-width: 150px;
  padding: 18px;
  color: var(--brand-dark);
  background: var(--accent);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.result-card strong { font-size: 1.9rem; line-height: 1; }
.result-card span { margin-top: 5px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.section {
  padding: 104px 0;
}

.section-tint {
  background: var(--soft);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 48px;
}

.section-heading > p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading.centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.card-grid {
  display: grid;
  gap: 22px;
}

.card-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

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

.service-card > div {
  padding: 24px;
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.card-number,
.feature-index,
.value-grid article > span {
  display: block;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.section-action {
  margin-top: 42px;
}

.section-action.centered {
  text-align: center;
}

.text-link {
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.text-link span {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.2s ease;
}

.text-link:hover span { transform: translateX(4px); }

.split-layout,
.about-story,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 92px);
}

.split-visual img {
  width: 100%;
  min-height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split-copy p:not(.eyebrow),
.about-copy p:not(.eyebrow) {
  color: var(--muted);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 30px;
}

.logo-grid img {
  width: 100%;
  height: 150px;
  padding: 28px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 14px;
  filter: grayscale(1);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.logo-grid img:hover { filter: grayscale(0); transform: translateY(-3px); }

.stats-section {
  color: var(--paper);
  background: var(--brand-dark);
}

.section-heading.light .eyebrow { color: var(--accent); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.stats-grid > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 210px;
  padding: 32px;
  text-align: center;
  background: var(--brand-dark);
}

.stats-grid strong {
  color: var(--accent);
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 1;
}

.stats-grid span {
  margin-top: 16px;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-band {
  padding: 70px 0;
  color: var(--paper);
  background: var(--brand);
}

.contact-band .eyebrow {
  color: var(--accent);
}

.contact-band h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.contact-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.site-footer {
  padding: 72px 0 24px;
  color: rgba(255, 255, 255, 0.76);
  background: var(--footer);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.25fr;
  gap: 64px;
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-brand {
  margin-bottom: 18px;
  color: var(--paper);
}

.footer-grid p {
  max-width: 360px;
}

.footer-grid h2 {
  margin-bottom: 17px;
  color: var(--paper);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-grid a:not(.brand) {
  min-height: 32px;
  color: inherit;
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--paper);
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.social-links a {
  display: grid;
  width: 40px;
  min-height: 40px !important;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.social-links img {
  width: 22px;
  height: 22px;
}

.footer-bottom {
  margin-top: 56px;
  padding-top: 22px;
  font-size: 0.79rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.compact-footer { padding-top: 24px; }
.compact-footer .footer-bottom { margin-top: 0; }

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 94px 0 100px;
  color: var(--paper);
  background: var(--brand-dark);
}

.page-hero::after {
  position: absolute;
  top: -260px;
  right: -120px;
  width: 620px;
  height: 620px;
  content: "";
  border: 100px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: 70px;
}

.page-hero h1 {
  max-width: 850px;
  margin-bottom: 0;
  font-size: clamp(3rem, 6vw, 5.7rem);
}

.page-hero .eyebrow { color: var(--accent); }
.page-hero-inner > p { margin-bottom: 7px; color: rgba(255, 255, 255, 0.78); font-size: 1.08rem; }

.feature-list {
  display: grid;
  gap: 90px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(42px, 7vw, 90px);
}

.feature-row.reverse .feature-image { order: 2; }

.feature-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-copy h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.feature-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.about-image-stack {
  position: relative;
  min-height: 610px;
}

.about-image-stack img {
  position: absolute;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-wide {
  top: 0;
  left: 0;
  width: 88%;
  height: 510px;
}

.image-inset {
  right: 0;
  bottom: 0;
  width: 52%;
  height: 260px;
  border: 8px solid var(--paper);
}

.values-section .section-heading { margin-bottom: 38px; }

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

.value-grid article {
  padding: 34px;
  background: var(--soft);
  border-radius: var(--radius);
}

.value-grid p { margin-bottom: 0; color: var(--muted); }

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

.client-showcase article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.client-logo {
  display: grid;
  height: 210px;
  margin-bottom: 26px;
  padding: 36px;
  place-items: center;
  background: var(--soft);
  border-radius: 12px;
}

.client-logo img { max-width: 78%; max-height: 130px; object-fit: contain; }
.client-showcase p { margin-bottom: 0; color: var(--muted); }

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.process-list li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 26px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.process-list li > span {
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.process-list h3 { margin-bottom: 9px; }
.process-list p { max-width: 680px; margin-bottom: 0; color: var(--muted); }

.contact-layout {
  align-items: start;
}

.contact-details > p:not(.eyebrow) {
  max-width: 530px;
  color: var(--muted);
}

.contact-method {
  display: grid;
  gap: 4px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.contact-method span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-method a {
  width: fit-content;
  color: var(--brand-dark);
  font-size: clamp(1.2rem, 2.6vw, 1.75rem);
  font-weight: 750;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 24px;
}

.contact-social a { font-weight: 750; }

.contact-form {
  display: grid;
  gap: 20px;
  padding: clamp(26px, 5vw, 48px);
  background: var(--soft);
  border-radius: var(--radius);
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #bdc2d3;
  border-radius: 8px;
}

.form-row textarea { resize: vertical; }
.form-row input:focus,
.form-row textarea:focus { border-color: var(--brand); }
.contact-form .button { justify-self: start; }
.form-status { margin-bottom: 0; color: var(--brand-dark); font-weight: 700; }

.error-page {
  display: grid;
  min-height: calc(100vh - 176px);
  padding: 90px 0;
  place-items: center;
  text-align: center;
  background: var(--soft);
}

.error-page h1 {
  max-width: 850px;
  margin-inline: auto;
  font-size: clamp(3rem, 7vw, 6.5rem);
}

.error-page p:not(.eyebrow) { margin-bottom: 32px; color: var(--muted); font-size: 1.1rem; }

@media (max-width: 980px) {
  .card-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(330px, 0.75fr); gap: 40px; }
  .logo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 38px; }
}

@media (max-width: 820px) {
  html { scroll-padding-top: 72px; }
  body.menu-open::after { position: fixed; inset: 72px 0 0; z-index: 80; content: ""; background: rgba(15, 17, 36, 0.45); }
  .header-inner { width: min(calc(100% - 32px), var(--shell)); min-height: 72px; }
  .brand { gap: 10px; font-size: 0.78rem; }
  .brand-mark { width: 48px; }
  .brand-mark i { width: 17px; height: 17px; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    right: -16px;
    left: -16px;
    z-index: 90;
    display: grid;
    gap: 0;
    max-height: 0;
    padding: 0 16px;
    overflow: hidden;
    visibility: hidden;
    background: var(--brand-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 20px 35px rgba(19, 21, 44, 0.25);
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.2s ease, visibility 0.3s;
  }
  .site-nav.is-open { max-height: 390px; padding-top: 10px; padding-bottom: 16px; visibility: visible; opacity: 1; }
  .site-nav a { justify-content: space-between; min-height: 54px; padding: 0 10px; border-radius: 6px; }
  .site-nav a[aria-current="page"]::after { right: 10px; left: auto; bottom: auto; width: 9px; height: 9px; border-radius: 50%; }
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 54px; }
  .hero-copy { max-width: 680px; }
  .hero-collage { width: min(100%, 600px); min-height: 450px; margin-inline: auto; }
  .section { padding: 76px 0; }
  .split-layout,
  .about-story,
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .split-visual img { min-height: 380px; }
  .contact-band-inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .page-hero { padding: 70px 0 76px; }
  .page-hero-inner { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .page-hero-inner > p { max-width: 620px; }
  .feature-list { gap: 70px; }
  .feature-row { gap: 38px; }
  .about-image-stack { min-height: 550px; }
  .value-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .shell { width: min(calc(100% - 32px), var(--shell)); }
  h1 { font-size: clamp(2.6rem, 11.5vw, 3.8rem); }
  h2 { font-size: clamp(2rem, 10vw, 3.2rem); }
  .brand-mark { display: none; }
  .hero-collage { min-height: 360px; }
  .collage-main { width: 92%; height: 300px; }
  .collage-small { width: 48%; height: 155px; border-width: 5px; }
  .result-card { right: 0; min-width: 125px; padding: 14px; }
  .card-grid-four,
  .logo-grid,
  .stats-grid,
  .client-showcase { grid-template-columns: 1fr; }
  .service-card img { aspect-ratio: 16 / 10; }
  .split-visual img { min-height: 280px; }
  .logo-grid img { height: 130px; }
  .stats-grid > div { min-height: 160px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .page-hero h1 { font-size: clamp(2.65rem, 13vw, 4.2rem); }
  .feature-row { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .feature-row.reverse .feature-image { order: 0; }
  .feature-list { gap: 64px; }
  .about-image-stack { min-height: 430px; }
  .image-wide { width: 94%; height: 360px; }
  .image-inset { width: 54%; height: 190px; border-width: 5px; }
  .client-logo { height: 175px; }
  .process-list li { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
  .contact-form { padding: 24px 18px; }
}

@media (max-width: 400px) {
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .button-row .button { width: 100%; }
  .hero-collage { min-height: 330px; }
  .collage-main { width: 100%; height: 280px; }
  .collage-small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
