:root {
  --ink: #17191f;
  --muted: #636b78;
  --paper: #f5f7fb;
  --white: #ffffff;
  --blue: #1f58d6;
  --blue-dark: #12347f;
  --line: #dde3ee;
  --warm: #f0eadf;
  --shadow: 0 24px 70px rgba(22, 32, 54, .13);
  --soft-shadow: 0 14px 40px rgba(22, 32, 54, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(31, 88, 214, .08), transparent 32rem),
    linear-gradient(180deg, #f8fbff 0%, var(--paper) 42rem);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1rem; color: var(--muted); }

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 34px rgba(22, 32, 54, .04);
}

.nav-wrap {
  width: min(1120px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 210px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .92rem;
  font-weight: 700;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 8px;
  color: #303846;
  transition: color .2s ease, background .2s ease;
}

.nav-links a:hover {
  color: var(--blue);
  background: rgba(31, 88, 214, .08);
}

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

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  width: min(1120px, calc(100% - 32px));
  min-height: min(760px, calc(100vh - 74px));
  margin: 0 auto;
  padding: 72px 0 56px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(340px, .72fr);
  gap: 64px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .03em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.05;
}

h1 {
  max-width: 720px;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.24rem;
}

.lead {
  max-width: 640px;
  margin: 26px 0 0;
  color: #4d5666;
  font-size: 1.18rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(31, 88, 214, .2);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(31, 88, 214, .26);
}

.button.secondary {
  background: var(--ink);
  box-shadow: 0 10px 22px rgba(23, 25, 31, .16);
}

.hero-image {
  margin: 0;
  position: relative;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: 24px -22px -22px 22px;
  z-index: -1;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}

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

.hero-image figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(14, 18, 27, .72);
  color: var(--white);
  font-size: .9rem;
  font-weight: 750;
  backdrop-filter: blur(8px);
}

.intro {
  border-block: 1px solid var(--line);
  background: var(--white);
}

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

.intro-grid p {
  margin: 0;
  padding: 26px 30px;
  background: #fbfcff;
  border-right: 1px solid var(--line);
}

.intro-grid p:last-child {
  border-right: 0;
}

.intro-grid strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

.intro-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.section {
  padding: 96px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .65fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 36px;
}

.section-text {
  margin-bottom: .2rem;
  font-size: 1.08rem;
}

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

.service-grid article {
  min-height: 190px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.service-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 88, 214, .25);
  box-shadow: var(--soft-shadow);
}

.service-grid h3 {
  position: relative;
  margin-bottom: 12px;
  padding-top: 14px;
}

.service-grid h3::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 38px;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
}

.work-section {
  background: var(--warm);
}

.comparison-gallery { display: grid; gap: 18px; }

.comparison-stage {
  --position: 50%;
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  background: #cfd3d8;
  box-shadow: 0 18px 50px rgba(39, 43, 51, .18);
  isolation: isolate;
}

.comparison-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: opacity .18s ease;
}

.comparison-before {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  overflow: hidden;
  width: var(--position);
}

.comparison-before .comparison-image { width: 100vw; max-width: min(1120px, calc(100vw - 32px)); }
.comparison-stage.is-loading .comparison-image { opacity: .55; }

.comparison-divider {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: var(--position);
  width: 3px;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 0 20px rgba(0, 0, 0, .2);
  transform: translateX(-50%);
  pointer-events: none;
}

.comparison-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 900;
  transform: translate(-50%, -50%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}

.comparison-range {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.comparison-range:focus-visible + * { outline: 3px solid var(--blue); }

.comparison-label {
  position: absolute;
  z-index: 2;
  top: 18px;
  padding: 7px 11px;
  border-radius: 6px;
  background: rgba(17, 21, 29, .76);
  color: var(--white);
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  pointer-events: none;
}

.label-before { left: 18px; }
.label-after { right: 18px; }

.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 2px 4px;
}

.project-meta h3 { margin-top: 5px; }
.project-count { color: var(--blue); font-size: .8rem; font-weight: 850; letter-spacing: .1em; }
.project-arrows { display: flex; gap: 8px; }
.project-arrows button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(23, 25, 31, .15);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 1.25rem;
  cursor: pointer;
}
.project-arrows button:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

.project-picker {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.project-picker button {
  position: relative;
  flex: 0 0 112px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 7px;
  background: #d7d7d7;
  cursor: pointer;
  opacity: .62;
  scroll-snap-align: center;
  transition: opacity .2s ease, border-color .2s ease, transform .2s ease;
}

.project-picker button:hover,
.project-picker button.is-active { opacity: 1; transform: translateY(-2px); }
.project-picker button.is-active { border-color: var(--blue); }
.project-picker img { width: 100%; height: 100%; object-fit: cover; }
.project-picker span {
  position: absolute;
  right: 4px;
  bottom: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(17, 21, 29, .78);
  color: var(--white);
  font-size: .7rem;
  font-weight: 850;
}

.about-copy { margin-bottom: 0; }

.contact-band {
  padding: 86px 0;
  background: linear-gradient(135deg, #10255e, var(--blue));
  color: var(--white);
}

.contact-band h2,
.contact-band p,
.contact-band .eyebrow {
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .55fr);
  gap: 56px;
  align-items: start;
}

address {
  display: grid;
  gap: 7px;
  padding: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .12);
  font-style: normal;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .12);
}

address strong {
  margin-bottom: 6px;
}

address a {
  color: var(--white);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer {
  padding: 52px 0;
  background: #11151d;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(300px, .75fr);
  gap: 56px;
}

.site-footer img {
  width: 210px;
  padding: 10px;
  border-radius: 8px;
  background: var(--white);
}

.site-footer h2 {
  margin-bottom: 16px;
  color: var(--white);
  font-size: 1.5rem;
  letter-spacing: 0;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, .75);
}

.site-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    inset: 74px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 16px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .nav-links.is-open { display: flex; }
  .hero,
  .section-head,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
    padding-top: 52px;
  }
  .intro-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }
  .intro-grid p {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .intro-grid p:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .brand img { width: 168px; }
  .nav-wrap { min-height: 68px; }
  .nav-links { inset-block-start: 68px; }
  .hero {
    gap: 34px;
    padding-bottom: 42px;
  }
  .hero-image::before { inset: 14px -10px -10px 10px; }
  .section { padding: 68px 0; }
  .comparison-stage { aspect-ratio: 4 / 3; }
  .comparison-before .comparison-image { width: calc(100vw - 32px); }
  .comparison-label { top: 10px; }
  .label-before { left: 10px; }
  .label-after { right: 10px; }
  .comparison-divider span { width: 46px; height: 46px; }
  .project-picker button { flex-basis: 92px; }
  .intro-grid p { padding-inline: 0; background: transparent; }
}
