:root {
  --ink: #101a33;
  --muted: #566079;
  --blue: #2a6fdb;
  --blue-deep: #1f5cc4;
  --mist: #f1f5fb;
  --error: #b3261e;
  --line: #dfe4ee;
  --paper: #fff;
  --gutter: clamp(16px, 5vw, 80px);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Albert Sans", "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
}

h1, h2, h3, p, ul { margin: 0; padding: 0; font-weight: 400; }
ul { list-style: none; }
a { color: inherit; text-underline-offset: 4px; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.sprite { position: absolute; }

.top-section {
  position: relative;
  overflow-x: clip;
  touch-action: pan-y;
}

.field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.top {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px var(--gutter);
  font-weight: 500;
}

.top a { text-decoration: none; }
.top a:hover { text-decoration: underline; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px clamp(16px, 3vw, 40px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  min-height: calc(100svh - 84px);
  padding: 24px var(--gutter) 72px;
}

h1 {
  font-size: clamp(44px, 6.6vw, 104px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-sub {
  max-width: 24em;
  margin-top: clamp(20px, 2.4vw, 36px);
  font-size: clamp(20px, 1.9vw, 28px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}

.logo {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.logo path {
  fill: var(--paper);
  stroke: var(--blue);
  stroke-width: 6;
  /* Mitred joins spike at the logo's acute corners, where several shapes meet. */
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* Contact page */

.hero-contact {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.nav [aria-current="page"] { color: var(--blue-deep); }

.contact-email {
  color: var(--blue-deep);
  text-decoration: none;
}

.contact-email:hover { text-decoration: underline; }

.hero-copy .hero-sub + .hero-sub { margin-top: 12px; }

.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: clamp(20px, 2.6vw, 40px);
  border: 1px solid var(--line);
  background: var(--paper);
}

.field-wide { grid-column: 1 / -1; }

.field-row label {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 500;
}

.field-row input,
.field-row textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #aeb7c9;
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.field-row textarea { resize: vertical; }

.field-row [aria-invalid="true"] { border: 2px solid var(--error); }

.error {
  margin-top: 6px;
  color: var(--error);
  font-size: 15px;
  line-height: 1.3;
}

.error:empty,
.form-status:empty { display: none; }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.form-status {
  max-width: 34em;
  font-size: 16px;
}

.button {
  display: inline-block;
  padding: 14px 24px;
  border: 0;
  border-radius: 2px;
  background: var(--blue-deep);
  color: var(--paper);
  font: inherit;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: var(--ink); }

/* Sections */

.block {
  padding: clamp(64px, 9vw, 136px) var(--gutter);
  border-top: 1px solid var(--line);
}

.block-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 20px clamp(32px, 6vw, 96px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 88px);
}

.block-head p {
  max-width: 30em;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.4;
}

h2 {
  font-size: clamp(38px, 5vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.icon {
  display: block;
  width: 44px;
  height: 44px;
  fill: none;
  color: var(--blue);
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Main company areas */

.area {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px clamp(32px, 6vw, 96px);
  align-items: start;
}

.area-tint {
  border-top: 0;
  background: var(--mist);
}

.area-tint + .area { border-top: 0; }

.area-head {
  position: sticky;
  top: 40px;
}

.area-head h2 {
  font-size: clamp(36px, 4.4vw, 68px);
  text-wrap: balance;
}

.area-head p {
  max-width: 24em;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.4;
}

.services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 64px);
}

.services li {
  padding-top: 24px;
  border-top: 1px solid var(--ink);
}

.services li:hover .icon { transform: translateX(8px); }

.services h3 { margin-top: 20px; }

.services p {
  max-width: 32em;
  margin-top: 10px;
  color: var(--muted);
}

/* About */

.about {
  border-top: 0;
  background: var(--mist);
}

.block-head .about-text { color: var(--ink); }

.proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px clamp(28px, 4vw, 64px);
}

.proof li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.proof .icon { flex: none; }

.proof p {
  max-width: 20em;
  font-size: clamp(18px, 1.4vw, 20px);
  line-height: 1.35;
}

/* Contact */

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 48px;
  padding: clamp(64px, 9vw, 136px) var(--gutter);
  background: var(--blue-deep);
  color: var(--paper);
}

.contact :focus-visible { outline-color: var(--paper); }

.contact-copy p {
  margin-top: 16px;
  font-size: clamp(18px, 1.5vw, 21px);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.contact .button {
  background: var(--paper);
  color: var(--blue-deep);
}

.contact .button:hover {
  background: var(--ink);
  color: var(--paper);
}

.email {
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.email:hover { text-decoration: underline; }

.foot {
  padding: 24px var(--gutter) 32px;
  color: var(--muted);
  font-size: 16px;
}

@media (max-width: 760px) {
  .top {
    flex-wrap: wrap;
    gap: 8px 24px;
    padding-block: 20px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-bottom: 56px;
  }

  .logo {
    grid-row: 1;
    width: min(78%, 360px);
  }

  .block-head { grid-template-columns: minmax(0, 1fr); }

  .hero-contact { grid-template-columns: minmax(0, 1fr); }
  .form { grid-template-columns: minmax(0, 1fr); }

  .services,
  .proof { grid-template-columns: minmax(0, 1fr); }

  .services li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 18px;
  }

  .services .icon { grid-row: 1 / span 2; }
  .services h3 { margin-top: 6px; }
  .services p { grid-column: 2; }
}

@media (max-width: 1040px) {
  .area { grid-template-columns: minmax(0, 1fr); }
  .area-head { position: static; }
  .proof { grid-template-columns: minmax(0, 1fr); }
}

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