:root {
  --ink: #0b132b;
  --ink-soft: #17233f;
  --blue: #1d4ed8;
  --blue-bright: #3b82f6;
  --teal: #0f766e;
  --amber: #b7791f;
  --slate: #53627a;
  --muted: #748197;
  --line: #d9e3f0;
  --line-strong: #bfcee2;
  --paper: #f5f7fa;
  --paper-warm: #fbfaf7;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(11, 19, 43, 0.12);
  --shadow-soft: 0 12px 34px rgba(11, 19, 43, 0.08);
  --radius-card: 8px;
  --header-height: 80px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(59, 130, 246, 0.45);
  outline-offset: 3px;
}

.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;
}

.content {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: var(--header-height);
  border-bottom: 1px solid rgba(217, 227, 240, 0.88);
  background: rgba(245, 247, 250, 0.86);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1160px, calc(100% - 40px));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link,
.footer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-link img {
  width: 174px;
  height: auto;
}

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

.site-nav a,
.footer-nav a {
  text-decoration: none;
}

.site-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-card);
  padding: 0 13px;
  color: var(--slate);
  font-size: 14px;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(29, 78, 216, 0.08);
  color: var(--blue);
}

.site-nav .nav-cta {
  margin-left: 8px;
  background: var(--ink);
  color: var(--white);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta.is-active {
  background: var(--blue);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.menu-line {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  background: currentColor;
  border-radius: 999px;
  transition: transform 180ms ease, opacity 180ms ease;
}

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

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

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

.hero {
  position: relative;
  min-height: clamp(560px, calc(100svh - 170px), 690px);
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 247, 250, 0.96) 48%, rgba(232, 239, 250, 0.86) 100%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(245, 247, 250, 0) 0%, var(--paper) 100%);
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  pointer-events: none;
}

.hero-mark {
  position: absolute;
  width: min(720px, 58vw);
  right: -9vw;
  top: 50px;
  opacity: 0.82;
  filter: drop-shadow(0 22px 44px rgba(29, 78, 216, 0.12));
}

.hero-dashboard {
  position: absolute;
  right: 0;
  bottom: 48px;
  width: min(640px, 52vw);
  border: 1px solid rgba(191, 206, 226, 0.92);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: clamp(56px, 8vh, 88px);
  padding-bottom: 42px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.work-copy h3,
.about-content h2,
.contact-copy h2 {
  margin: 0;
  font-family: Sora, Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  line-height: 1;
}

.hero h1 {
  max-width: 640px;
  font-size: clamp(48px, 7vw, 92px);
}

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

.hero-copy {
  max-width: 540px;
  margin: 24px 0 0;
  color: var(--slate);
  font-size: clamp(18px, 2vw, 21px);
}

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

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  padding: 0 20px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

.button-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.2);
}

.button-primary:hover {
  background: #1744bd;
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.button-secondary:hover {
  border-color: var(--blue-bright);
  color: var(--blue);
}

.hero-proof {
  width: min(720px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: clamp(30px, 5vh, 54px) 0 0;
  padding: 0;
}

.hero-proof div {
  min-height: 108px;
  padding: 18px;
  border: 1px solid rgba(217, 227, 240, 0.9);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.hero-proof dt {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.hero-proof dd {
  margin: 0;
  color: var(--slate);
  font-size: 13px;
  line-height: 1.45;
}

.section {
  padding: clamp(74px, 9vw, 118px) 0;
}

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

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

.section-heading.compact {
  max-width: 700px;
}

.section-heading h2,
.about-content h2,
.contact-copy h2 {
  font-size: clamp(34px, 5vw, 58px);
}

.section-heading p:not(.eyebrow),
.work-copy p,
.about-copy p,
.contact-copy p {
  margin: 18px 0 0;
  color: var(--slate);
  font-size: 17px;
}

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

.service-card,
.case-card,
.process-list li {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
}

.service-card {
  min-height: 250px;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 130, 246, 0.46);
  box-shadow: var(--shadow-soft);
}

.service-card img {
  width: 44px;
  height: 44px;
  margin-bottom: 26px;
}

.service-card h3,
.case-card h3,
.process-list h3,
.work-copy h3 {
  margin: 0;
  font-family: Sora, Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

.service-card h3 {
  font-size: 21px;
}

.service-card p,
.case-card p,
.process-list p {
  margin: 12px 0 0;
  color: var(--slate);
}

.work-section {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.work-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  margin-top: 42px;
}

.work-copy h3 {
  max-width: 430px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
}

.work-copy p {
  max-width: 420px;
}

.text-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.work-feature > img {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow);
}

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

.case-card {
  overflow: hidden;
}

.case-card img {
  width: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.case-card div {
  padding: 20px;
}

.case-label {
  margin: 0 0 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.case-card h3 {
  font-size: 20px;
}

.process-section {
  background:
    linear-gradient(180deg, var(--paper) 0%, var(--paper-warm) 100%);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  min-height: 250px;
  padding: 22px;
}

.process-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: var(--radius-card);
  background: rgba(59, 130, 246, 0.08);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.process-list h3 {
  font-size: 19px;
}

.process-list p {
  font-size: 14px;
}

.about-band {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 10vw, 124px) 0;
  background: var(--ink);
  color: var(--white);
}

.about-watermark {
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: min(620px, 54vw);
  opacity: 0.14;
}

.about-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(34px, 7vw, 94px);
  align-items: start;
}

.about-band .eyebrow {
  color: #9ec5ff;
}

.about-content h2 {
  max-width: 620px;
}

.about-copy p {
  color: #dce7f6;
  margin-top: 0;
}

.about-copy p + p {
  margin-top: 22px;
}

.contact-section {
  position: relative;
  overflow: hidden;
  padding: clamp(74px, 10vw, 128px) 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 239, 250, 0.72)),
    var(--paper);
}

.contact-backdrop {
  position: absolute;
  right: -80px;
  bottom: -130px;
  width: min(560px, 54vw);
  opacity: 0.07;
  pointer-events: none;
}

.contact-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
}

.contact-copy p {
  max-width: 570px;
}

.contact-panel {
  display: grid;
  gap: 12px;
}

.contact-item,
.contact-note {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.contact-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.contact-item img {
  width: 34px;
  height: 34px;
}

.contact-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-item strong {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 15px;
}

.contact-note {
  padding: 16px;
  color: var(--slate);
  font-size: 14px;
}

.site-footer {
  padding: 34px 0;
  background: var(--ink);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.footer-brand img {
  width: 156px;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

.footer-nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-card);
  padding: 0 10px;
  color: #dce7f6;
  font-size: 13px;
  font-weight: 750;
}

.footer-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.footer-meta {
  display: grid;
  gap: 2px;
  color: #b8c7dc;
  font-size: 12px;
  text-align: right;
}

.footer-mark {
  width: 30px;
  height: 30px;
  justify-self: end;
  margin-bottom: 6px;
  filter: brightness(0) invert(1);
  opacity: 0.76;
}

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

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

  .work-feature,
  .about-content,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .work-copy p {
    max-width: 620px;
  }

  .hero-dashboard {
    width: min(540px, 58vw);
    opacity: 0.78;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .content,
  .nav-shell {
    width: min(100% - 28px, 1160px);
  }

  .brand-link img {
    width: 142px;
  }

  .menu-toggle {
    display: grid;
  }

  .site-nav {
    position: absolute;
    top: calc(var(--header-height) - 1px);
    left: 14px;
    right: 14px;
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-soft);
    transform-origin: top;
    transform: scaleY(0.96);
    opacity: 0;
    pointer-events: none;
    transition: transform 160ms ease, opacity 160ms ease;
  }

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

  .site-nav a {
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    justify-content: center;
  }

  .hero {
    min-height: calc(100svh - 92px);
  }

  .hero-content {
    padding-top: 42px;
    padding-bottom: 28px;
  }

  .hero h1 {
    max-width: 500px;
    font-size: clamp(42px, 14vw, 58px);
  }

  .hero-copy {
    max-width: 430px;
    margin-top: 18px;
    font-size: 17px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .button {
    width: 100%;
  }

  .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 24px;
  }

  .hero-proof div {
    min-height: 62px;
    padding: 12px;
  }

  .hero-proof dt {
    margin-bottom: 0;
  }

  .hero-proof dd {
    display: none;
  }

  .hero-mark {
    width: 470px;
    right: -240px;
    top: 78px;
    opacity: 0.3;
  }

  .hero-dashboard {
    display: none;
  }

  .section {
    padding: 68px 0;
  }

  .service-grid,
  .case-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .service-card,
  .process-list li {
    min-height: auto;
  }

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

  .footer-layout {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .footer-meta {
    text-align: left;
  }

  .footer-mark {
    justify-self: start;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 39px;
  }

  .section-heading h2,
  .about-content h2,
  .contact-copy h2 {
    font-size: 31px;
  }

  .contact-item {
    grid-template-columns: 1fr;
  }
}

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