@font-face {
  font-family: "Avenir Local";
  src: url("./fonts/avenir-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Avenir Local";
  src: url("./fonts/avenir-heavy.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #1f3bf2;
  --mint: #78f2b5;
  --ink: #111111;
  --muted: #595959;
  --line: #d9d9d9;
  --paper: #ffffff;
  --soft: #f6f6f6;
  --max: 1060px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 4px solid #cfcfcf;
}

.nav {
  min-height: 136px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  width: 84px;
  height: 84px;
}

.brand strong {
  display: block;
  font-size: 31px;
  line-height: 1;
  font-weight: 800;
}

.brand span {
  display: block;
  margin-top: 8px;
  font-size: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 19px;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a[aria-current="page"],
.nav-links a:hover {
  color: #747474;
}

.hero {
  padding: 68px 0 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 42px;
  align-items: center;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  font-weight: 800;
}

h1 {
  font-size: clamp(36px, 5.2vw, 62px);
}

h2 {
  font-size: clamp(32px, 3.6vw, 50px);
}

h3 {
  font-size: 24px;
}

p {
  margin: 0;
  font-size: 20px;
}

.lead {
  margin-top: 26px;
  font-size: 22px;
}

.hero .lead,
.visual-brain .lead,
.contact-box .lead,
.mint .lead {
  max-width: 650px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-top: 30px;
  padding: 8px 26px;
  color: #fff;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 4px;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  appearance: none;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button.button-green {
  color: var(--ink);
  background: var(--mint);
  border-color: var(--mint);
}

.button:hover {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal-left {
  transform: translateX(-48px);
}

.js .reveal-right {
  transform: translateX(48px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.js .button.reveal {
  transition: opacity 650ms ease, transform 650ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.js .button.reveal.is-visible:hover {
  transform: translateY(-2px);
}

.js .service-cards .reveal:nth-child(2),
.js .reason-grid .reveal:nth-child(2) {
  --reveal-delay: 90ms;
}

.js .service-cards .reveal:nth-child(3),
.js .reason-grid .reveal:nth-child(3) {
  --reveal-delay: 180ms;
}

.js .service-cards .reveal:nth-child(4),
.js .reason-grid .reveal:nth-child(4) {
  --reveal-delay: 270ms;
}

.portrait {
  width: min(100%, 620px);
  margin-left: auto;
}

.band {
  padding: 82px 0;
}

.intro {
  color: #fff;
  background: var(--blue);
}

.intro .section-head {
  margin-bottom: 0;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.services-overview .section-head {
  margin-bottom: 0;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.services-page .section-head {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.reasons {
  background: var(--mint);
}

.reasons h2 {
  text-align: center;
}

.consulting {
  background: var(--soft);
}

.consulting .section-head {
  margin-bottom: 0;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.consulting .section-head p {
  font-size: 24px;
}

.section-head {
  max-width: var(--max);
  margin-bottom: 42px;
}

.section-head p {
  margin-top: 18px;
  color: var(--muted);
}

.intro .section-head p {
  color: rgba(255, 255, 255, 0.86);
}

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

.card {
  min-height: 100%;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  margin: 0 auto 18px;
}

.card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 18px;
}

.service-cards {
  gap: 34px;
}

.service-card {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-align: center;
}

.service-card img {
  width: 280px;
  height: 280px;
  margin-bottom: 22px;
}

.services-overview .button {
  display: flex;
  width: fit-content;
  margin-top: 46px;
  margin-right: auto;
  margin-left: auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}

.brain-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.brain-visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(92%, 320px);
  aspect-ratio: 1;
  background: var(--soft);
  border-radius: 50%;
  transform: translateX(-25px);
}

.brain-visual img {
  position: relative;
  z-index: 1;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 38px;
}

.reason {
  padding: 22px 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
}

.reason img {
  width: 128px;
  height: 128px;
  object-fit: contain;
  margin: 0 auto 14px;
}

.reason strong {
  display: block;
  font-weight: 800;
  line-height: 1.18;
}

.reason p {
  margin-top: 12px;
  color: #333;
  font-size: 18px;
}

.service-list {
  display: grid;
  gap: 42px;
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
  padding-bottom: 42px;
  border-bottom: 1px solid var(--line);
}

.service-row:last-child {
  border-bottom: 0;
}

.service-row img {
  width: 400px;
  height: 400px;
  object-fit: contain;
}

.service-row h2 {
  font-size: 34px;
}

.service-row p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 20px;
}

.services-cta {
  background: var(--soft);
  text-align: center;
}

.services-cta .lead {
  margin-right: auto;
  margin-left: auto;
}

.services-cta-image {
  width: min(100%, 300px);
  margin: 0 auto 26px;
}

.gallery {
  display: grid;
  gap: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--line);
}

.example {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line);
}

.example:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.example-reverse {
  grid-template-columns: minmax(0, 1fr) 400px;
}

.example-image {
  width: min(100%, 400px);
  text-decoration: none;
}

.example-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(17, 17, 17, 0.08);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.example-image:hover img {
  box-shadow: 0 6px 14px rgba(17, 17, 17, 0.12);
  transform: translateY(-2px);
}

.example h2 {
  font-size: 34px;
}

.example h2 + p {
  margin-top: 18px;
}

.quote {
  grid-column: 1 / -1;
  padding: 24px 28px;
  background: var(--soft);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 72px 28px 28px;
  background: rgba(255, 255, 255, 0.96);
}

.lightbox:target {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 18px 50px rgba(17, 17, 17, 0.18);
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--ink);
  background: var(--mint);
  border: 2px solid var(--mint);
  border-radius: 4px;
  text-decoration: none;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.lightbox-close:hover {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.contact-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 44px;
  align-items: center;
}

.contact-box img {
  width: 360px;
  justify-self: center;
}

.contact-form-box {
  margin-top: 56px;
  padding: 38px;
  background: var(--soft);
  border-radius: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  font-size: 15px;
  color: var(--muted);
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #bdbdbd;
  border-radius: 4px;
  font: inherit;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.turnstile-row {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.form-status {
  align-self: center;
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

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

.form-status[data-status="success"] {
  color: #26724c;
}

.form-status[data-status="error"] {
  color: #b3261e;
}

.legal {
  max-width: 860px;
}

.legal h2 {
  margin-top: 36px;
  font-size: 28px;
}

.legal p,
.legal li {
  color: var(--muted);
}

.final-cta {
  text-align: center;
}

.final-cta-image {
  width: min(100%, 340px);
  margin: 0 auto 24px;
}

.site-footer {
  color: #fff;
  background: var(--blue);
}

.footer-main {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand img {
  width: 78px;
  filter: invert(1);
}

.footer-links {
  display: flex;
  gap: 34px;
}

.copyright {
  padding: 20px;
  text-align: center;
  color: #fff;
  background: #050505;
  font-size: 15px;
}

@media (max-width: 900px) {
  .nav-links,
  .footer-links {
    flex-wrap: wrap;
    gap: 18px 24px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.82fr);
    gap: clamp(22px, 4vw, 34px);
  }

  .hero-grid .portrait {
    width: min(100%, clamp(260px, 40vw, 460px));
  }

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

  .service-card img {
    width: clamp(190px, 30vw, 240px);
    height: clamp(190px, 30vw, 240px);
  }

  .split {
    grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 36px);
  }

  .brain-visual::before {
    width: min(84%, 240px);
  }

  .service-row {
    grid-template-columns: minmax(180px, clamp(180px, 44vw, 400px)) minmax(0, 1fr);
    gap: clamp(22px, 4vw, 30px);
  }

  .service-row img {
    width: 100%;
    height: auto;
  }

  .example {
    grid-template-columns: minmax(190px, clamp(190px, 44vw, 400px)) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 36px);
  }

  .example-reverse {
    grid-template-columns: minmax(0, 1fr) minmax(190px, clamp(190px, 44vw, 400px));
  }

  .contact-box {
    grid-template-columns: minmax(0, 1fr) minmax(180px, clamp(180px, 34vw, 280px));
    gap: clamp(24px, 4vw, 34px);
  }

  .contact-box img {
    width: 100%;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .wrap {
    width: min(100% - 28px, var(--max));
  }

  .brand strong {
    font-size: 27px;
  }

  .nav,
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 0;
  }

  .hero-grid,
  .split,
  .example,
  .example-reverse,
  .service-row,
  .contact-box {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .hero-grid > div,
  .split > div:not(.brain-visual),
  .example > div,
  .service-row > div,
  .contact-box > div {
    text-align: center;
  }

  .hero .lead,
  .visual-brain .lead,
  .contact-box .lead {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-grid .portrait {
    order: -1;
    width: min(74vw, 280px);
    margin-right: auto;
    margin-left: auto;
  }

  .js .reveal-left,
  .js .reveal-right {
    transform: translateY(18px);
  }

  .example:not(.example-reverse) > div {
    order: 1;
  }

  .example:not(.example-reverse) .example-image {
    order: 2;
  }

  .example:not(.example-reverse) .quote {
    order: 3;
  }

  .cards,
  .reason-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .service-row img {
    width: 180px;
    height: 180px;
  }

  .contact-box img {
    width: min(100%, 360px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
