:root {
  --color-hero: #e0ebe8;
  --color-footer: #c5ded7;
  --color-text: #545454;
  --color-heading: #1e836c;
  --color-accent: #45b29a;
  --color-accent-dark: #21564b;
  --color-white: #ffffff;
  --color-soft: #f3f2f1;
  --color-border: #d8e7e2;
  --color-focus: #153e35;
  --container: 1140px;
  --narrow-container: 680px;
  --header-height: 130px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: #545454;
  background: #fff;
  font-family: Lucida Grande;
  font-size: 14px;
  line-height: 1.42857143;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Original site's typography scale and colors. */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: Lucida Grande;
  font-weight: 500;
  line-height: 1.1;
}

p {
  margin: 0 0 10px;
  font-family: Lucida Grande;
  font-size: 1.5em;
  font-weight: 300;
}

h3 {
  color: #45b29a;
  font-size: 2em;
}

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

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

a {
  color: #e0ebe8;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #b2cdc5;
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: #1b7f69;
  background: #3ea08a;
  text-decoration: none;
  border-radius: 6px;
}

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

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.narrow-container {
  width: min(100% - 40px, var(--narrow-container));
}

.section-anchor {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

.hero {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
  background: var(--color-hero);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  min-height: var(--header-height);
  background: #e0ebe8;
  box-shadow: none;
  transform: translate3d(0, 0, 0);
  transition: transform 0.5s ease-in-out, background-color 0.8s ease-in-out, box-shadow 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

.site-header.is-scrolled {
  background: rgb(255 255 255 / 97%);
  box-shadow: 0 1px 1px rgb(6 8 8 / 10%);
}

.site-header.is-hidden {
  transform: translate3d(0, -110%, 0);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  flex: 0 0 auto;
  display: block;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 50%;
  text-decoration: none;
}

.site-logo img {
  width: 72px;
  height: 72px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 4vw, 44px);
}

.site-nav a {
  color: var(--color-accent);
  font-size: 120%;
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-accent-dark);
}

.hero-title-wrap {
  position: relative;
  z-index: 2;
  padding: 56px 0 28px;
}

.hero-title-container {
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-copy h1 {
  margin-bottom: 10px;
  color: #4ab19a;
  font-size: 54px;
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: 0;
}

.hero-role {
  margin-bottom: 4px;
  color: #45b29a;
  font-size: 25.2px;
  line-height: 1.42857143;
  font-weight: 400;
}

.hero-focus {
  margin-bottom: 0;
  color: #45b29a;
  font-size: 1.5em;
  line-height: 1.42857143;
}

.hero-focus span {
  margin-inline: 5px;
}

.cloud {
  position: absolute;
  z-index: 1;
  width: 150px;
  height: 45px;
  opacity: 0.92;
  user-select: none;
}

.cloud-left {
  left: 3%;
  bottom: 12px;
}

.cloud-right {
  right: 4%;
  top: 35px;
}

.landscape-holder {
  width: min(100%, 800px);
  margin: 0 auto;
}

.landscape-holder img {
  width: 100%;
}

.about {
  padding: clamp(64px, 8vw, 96px) 0;
}

.about-card {
  text-align: center;
}

.profile-photo-wrap {
  width: 150px;
  height: 150px;
  margin: 0 auto 24px;
  overflow: hidden;
  border-radius: 50%;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.about h2,
.service-copy h3 {
  color: #45b29a;
  font-weight: 500;
}

.about h2 {
  margin-bottom: 20px;
  font-size: 28px;
}

.about p,
.service-copy p,
.contact p,
.references-header p {
  font-size: 21px;
}

.about p {
  margin-bottom: 0;
}

.section-divider {
  width: 100px;
  height: 6px;
  margin: 0 auto;
  background: url("../images/ui/section-divider.png") repeat-x center / auto 6px;
}

.section-header {
  text-align: center;
}

.section-header h2 {
  margin-bottom: 28px;
  color: var(--color-heading);
  font-size: 3.8em;
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: 0;
}

.services {
  padding: clamp(68px, 8vw, 100px) 0;
}

.service-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(44px, 7vw, 88px);
  margin-top: clamp(54px, 7vw, 82px);
}

.service-row-reverse {
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.9fr);
}

.service-row-reverse .service-visual {
  grid-column: 2;
  grid-row: 1;
}

.service-row-reverse .service-copy {
  grid-column: 1;
  grid-row: 1;
}

.service-visual {
  min-width: 0;
}

.service-illustration {
  position: relative;
  margin: 0 auto;
  background: url("../images/services/connector-line.png") repeat-x center;
}

.service-mobile {
  width: min(100%, 340px);
  min-height: 190px;
}

.service-mobile > img {
  width: 175px;
}

.service-development {
  width: min(100%, 360px);
  min-height: 200px;
}

.service-development > img {
  width: 215px;
  margin-left: auto;
}

.service-bubble {
  position: absolute;
  top: 52px;
  width: 77px;
  height: 77px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--color-soft);
}

.service-bubble-right {
  right: 0;
}

.service-bubble-left {
  left: 0;
}

.mobile-icon-sprite,
.development-icon-sprite {
  display: block;
  width: 77px;
  height: 77px;
  border-radius: 50%;
  animation-duration: 20s;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(1, 0, 0, 1);
}

.mobile-icon-sprite {
  background: url("../images/services/mobile-icons.png") 0 0 / 77px 231px;
  animation-name: mobile-icons;
}

.development-icon-sprite {
  background: url("../images/services/development-icons.png") 0 0 / 77px 231px;
  animation-name: development-icons;
  animation-delay: 1s;
}

.service-copy h3 {
  margin-bottom: 18px;
  font-size: 28px;
  line-height: 1.1;
}

.service-copy p {
  margin-bottom: 0;
}

.references {
  padding: clamp(68px, 8vw, 100px) 0;
}

.references-header h2 {
  margin-bottom: 12px;
}

.references-header p {
  margin-bottom: 0;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 900px;
  margin: 42px auto 0;
  padding: 0;
  list-style: none;
}

.reference-card {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
  color: #45b29a;
  background: #f8fbfa;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgb(33 86 75 / 5%);
  font-size: 1.5em;
  font-weight: 300;
  text-align: center;
}

.contact {
  padding: clamp(68px, 8vw, 110px) 0;
  text-align: center;
}

.contact .section-header h2 {
  margin-bottom: 10px;
}

.contact-lead {
  margin-bottom: 30px;
  color: #45b29a;
  font-size: 2em !important;
  font-weight: 500;
  line-height: 1.1;
}

.contact > .container > article > p {
  margin-bottom: 0;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 24px;
  margin-top: 34px;
}

.primary-button {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 24px;
  color: #1b7f69;
  background: #45b29a;
  border-radius: 3px;
  font-size: 16.8px;
  font-weight: 400;
  line-height: 1.42857143;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  transition: background-color 160ms ease, transform 160ms ease;
}

.primary-button:hover {
  color: #1b7f69;
  background: #3ea08a;
  transform: translateY(-1px);
}

.mail-icon {
  width: 24px;
  height: 15px;
  flex: 0 0 24px;
  background: url("../images/ui/mail.png") no-repeat center / 24px 15px;
}

.secondary-link {
  color: #45b29a;
  border-bottom: 1px solid #45b29a;
  font-size: 1.5em;
  font-weight: 300;
  text-decoration: none;
}

.secondary-link:hover {
  color: #29685a;
  border-bottom-color: #29685a;
  text-decoration: none;
}

.site-footer {
  padding: 42px 0 36px;
  background: var(--color-footer);
}

.footer-inner {
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 42px;
}

.footer-links a {
  color: #45b29a;
  font-size: 1.5em;
  font-weight: 400;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.site-footer p {
  margin: 24px 0 0;
  color: #45b29a;
  font-size: 1em;
}


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

.hero-cta {
  display: inline-block;
  padding: 10px 18px;
  color: #1e836c;
  border: 1px solid #45b29a;
  border-radius: 3px;
  font-family: Lucida Grande;
  font-size: 16.8px;
  font-weight: 400;
  line-height: 1.42857143;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.hero-cta:hover,
.hero-cta:focus-visible {
  color: #1e836c;
  background: rgb(69 178 154 / 10%);
  text-decoration: none;
}

.service-row-text {
  display: block;
  margin-top: clamp(54px, 7vw, 82px);
}

.service-copy-centered {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.workflow {
  padding: clamp(68px, 8vw, 100px) 0;
}

.workflow-header h2 {
  margin-bottom: 12px;
}

.workflow-header p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 21px;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 54px;
  max-width: 940px;
  margin: 48px auto 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.workflow-step {
  position: relative;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.workflow-number {
  display: block;
  margin-bottom: 9px;
  color: #45b29a;
  font-family: Lucida Grande;
  font-size: 1em;
  font-weight: 400;
}

.workflow-step h3 {
  margin-bottom: 14px;
  color: #45b29a;
  font-size: 2em;
  font-weight: 500;
}

.workflow-step p {
  margin-bottom: 0;
  color: #545454;
  font-size: 1.5em;
  font-weight: 300;
}

.contact-topics {
  max-width: 760px;
  margin: 42px auto 0;
  text-align: left;
}

.contact-topics h3 {
  margin-bottom: 22px;
  color: #45b29a;
  font-size: 2em;
  font-weight: 500;
  text-align: center;
}

.contact-topics ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-topics li {
  position: relative;
  padding-left: 20px;
  color: #545454;
  font-family: Lucida Grande;
  font-size: 1.5em;
  font-weight: 300;
  line-height: 1.42857143;
}

.contact-topics li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #45b29a;
}

@keyframes mobile-icons {
  0%, 5% { background-position: 0 0; }
  5.1%, 35% { background-position: 0 -77px; }
  35.1%, 68% { background-position: 0 -154px; }
  68.1%, 100% { background-position: 0 -231px; }
}

@keyframes development-icons {
  0%, 5% { background-position: 0 0; }
  5.1%, 35% { background-position: 0 -77px; }
  35.1%, 68% { background-position: 0 -154px; }
  68.1%, 100% { background-position: 0 -231px; }
}

@media (min-width: 992px) {
  .site-nav a {
    margin-left: 0;
    font-size: 150%;
  }
}

@media (min-resolution: 1.5dppx) {
  .section-divider {
    background-image: url("../images/ui/section-divider@2x.png");
  }

  .service-illustration {
    background-image: url("../images/services/connector-line@2x.png");
    background-size: 3px auto;
  }

  .mobile-icon-sprite {
    background-image: url("../images/services/mobile-icons@2x.png");
  }

  .development-icon-sprite {
    background-image: url("../images/services/development-icons@2x.png");
  }

  .mail-icon {
    background-image: url("../images/ui/mail@2x.png");
  }
}

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

  .container,
  .narrow-container {
    width: min(100% - 32px, var(--container));
  }

  .header-inner {
    gap: 14px;
  }

  .site-logo,
  .site-logo img {
    width: 64px;
    height: 64px;
  }

  .site-nav {
    gap: clamp(10px, 3.2vw, 18px);
  }

  .hero-title-wrap {
    padding-top: 42px;
  }

  .cloud {
    width: 110px;
    height: auto;
    opacity: 0.72;
  }

  .cloud-left {
    left: -42px;
    bottom: 0;
  }

  .cloud-right {
    right: -42px;
    top: 22px;
  }

  .hero-focus span {
    margin-inline: 3px;
  }

  .profile-photo-wrap {
    width: 150px;
    height: 150px;
  }

  .service-row,
  .service-row-reverse {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .service-row-reverse .service-visual,
  .service-row-reverse .service-copy {
    grid-column: auto;
    grid-row: auto;
  }

  .service-row-reverse .service-visual {
    order: 0;
  }

  .service-row-reverse .service-copy {
    order: 1;
  }

  .service-mobile,
  .service-development {
    width: min(100%, 320px);
  }

  .service-mobile > img {
    margin: 0 auto 0 10px;
  }

  .service-development > img {
    margin: 0 0 0 auto;
  }

  .reference-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    gap: 14px;
    margin-top: 32px;
  }

  .reference-card {
    min-height: 88px;
  }

  .contact-actions {
    flex-direction: column;
  }
}


@media (max-width: 760px) {
  .workflow-steps,
  .contact-topics ul {
    grid-template-columns: 1fr;
  }

  .workflow-steps {
    gap: 28px;
    margin-top: 38px;
  }

  .contact-topics {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .site-nav {
    gap: 9px;
  }

  .hero-focus {
    max-width: 310px;
    margin-inline: auto;
  }
}

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

.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 0;
  background: var(--color-hero);
}

.error-card {
  text-align: center;
}

.error-code {
  margin-bottom: 4px;
  color: var(--color-accent);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.error-card h1 {
  margin-bottom: 16px;
  color: var(--color-accent-dark);
  font-size: clamp(36px, 7vw, 58px);
  line-height: 1.15;
}

.error-card p:not(.error-code) {
  margin-bottom: 28px;
  font-size: 21px;
}
