:root {
  --blue: #1a3c64;
  --blue-light: #507aa4;
  --navy: #06183a;
  --sand: #e3d9ce;
  --light: #f6f8f3;
  --gray: #f3f5f7;
  --white: #ffffff;
  --font: "LTS Raela Pro", Arial, Helvetica, sans-serif;
  --shell: 1240px;
  --header-height: 98px;
  --hero-waves-height: clamp(190px, 18vw, 290px);
  --hero-back-wave-clip-extra: 28vw;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--blue);
  background: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

h1,
h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 700px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  line-height: 1.28;
}

p {
  margin: 0;
}

.shell {
  width: min(calc(100% - 48px), var(--shell));
  margin-inline: auto;
}

.section {
  padding-block: clamp(90px, 10vw, 155px);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: var(--header-height);
  color: var(--white);
  background: var(--blue);
}

.header-inner {
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  gap: 42px;
}

.wordmark {
  display: block;
  width: 92px;
  text-decoration: none;
}

.wordmark img {
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.9rem;
}

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

.header-actions {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 24px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  padding: 0 28px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  line-height: 1;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.button-light {
  color: var(--blue);
  background: var(--light);
}

.button-light:hover,
.button-light:focus-visible {
  background: var(--sand);
}

.button-primary {
  color: var(--white);
  background: var(--blue);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--blue-light);
}

.arrow {
  width: 15px;
  height: 15px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.menu {
  position: relative;
}

.menu summary {
  display: grid;
  width: 42px;
  height: 42px;
  cursor: pointer;
  list-style: none;
  align-content: center;
  gap: 5px;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu summary span {
  display: block;
  width: 34px;
  height: 3px;
  background: var(--white);
}

.menu nav {
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  display: grid;
  min-width: 240px;
  padding: 16px;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--blue);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.menu nav a {
  padding: 6px 10px;
  text-decoration: none;
}

.menu nav a:hover,
.menu nav a:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.hero {
  position: relative;
  min-height: max(680px, 72vh);
  margin-bottom: calc(var(--hero-waves-height) / 2);
  background: var(--light);
}

.wave {
  position: relative;
  pointer-events: none;
}

.wave-hero {
  z-index: 2;
  height: var(--hero-waves-height);
  margin-top: calc(-1 * var(--hero-waves-height));
  overflow: visible;
  pointer-events: none;
  background: var(--light);
  margin-bottom: clamp(90px, 10vw, 155px);
}

.hero-wave {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
}

.hero-wave-back-clip {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: calc(var(--hero-waves-height) + var(--hero-back-wave-clip-extra));
  overflow: hidden;
}

.hero-wave-back {
  z-index: 1;
  bottom: 0;
  will-change: transform;
}

.hero-wave-front {
  z-index: 2;
  transform: translateY(50%);
}

.wave-services {
  height: clamp(120px, 30vw, 400px);
  margin-top: clamp(-160px, -12vw, -90px);
  overflow: hidden;
}

.wave-contact {
  z-index: 1;
  height: clamp(120px, 30vw, 400px);
  margin-top: clamp(-170px, -14vw, -95px);
  overflow: hidden;
  background: var(--light);
}

.section-wave-image {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-width: none;
  will-change: transform;
}

.hero-copy {
  padding-top: clamp(140px, 16vw, 230px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: clamp(48px, 9vw, 160px);
}

.split > *,
.service-row > *,
.profile-grid > * {
  min-width: 0;
}

.copy {
  display: grid;
  align-content: start;
  gap: 19px;
}

.statement {
  margin-bottom: clamp(68px, 8vw, 102px);
  padding-block: clamp(68px, 8vw, 102px);
  background: var(--light);
}

.statement p {
  max-width: 1020px;
  margin-inline: auto;
  font-size: clamp(1.45rem, 2.8vw, 2.1rem);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.services {
  position: relative;
  padding-bottom: clamp(110px, 13vw, 190px);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(55px, 10vw, 150px);
}

.service-row + .service-row {
  margin-top: clamp(95px, 12vw, 180px);
}

.service-row-reverse .service-image {
  order: 2;
}

.service-image {
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 18px;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-copy h2 {
  margin-bottom: 18px;
}

.profile {
  position: relative;
  overflow: hidden;
  /*padding-top: 165px;*/
  color: var(--white);
  background: linear-gradient(180deg, var(--blue), var(--navy));
}

.profile-grid {
  display: grid;
  min-height: 790px;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 40px;
}

.profile-copy {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding-bottom: 90px;
}

.profile-heading {
  display: flex;
  margin-bottom: 26px;
  align-items: center;
  gap: 18px;
}

.profile-heading h2 {
  margin-bottom: 0;
}

.linkedin-link {
  display: inline-flex;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
}

.linkedin-link img {
  width: 100%;
  height: 100%;
}

.profile-copy h2 {
  margin-bottom: 26px;
}

.profile-copy .profile-heading h2 {
  margin-bottom: 0;
}

.profile-copy p {
  margin-top: 18px;
}

.profile-copy ul {
  margin: 24px 0 0;
  padding-left: 22px;
}

.profile-copy a {
  color: var(--white);
}

.profile-contact {
  font-weight: 700;
}

.affiliation-logos {
  display: flex;
  margin-top: 32px;
  align-items: center;
  gap: 40px;
}

.affiliation-logo-link,
.footer-affiliation-logo-link {
  display: block;
}

.affiliation-logo {
  width: 245px;
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
}

.affiliation-logo-ciarb {
  width: 120px;
}

.affiliation-logo-imi {
  width: 150px;
}

.portrait-wrap {
  position: relative;
  min-height: 100%;
}

.portrait {
  --portrait-x: 0px;
  --portrait-y: 0px;
  position: absolute;
  right: -70px;
  bottom: 0;
  width: min(640px, 46vw);
  max-width: none;
  transform: translate3d(var(--portrait-x), var(--portrait-y), 0);
  will-change: transform;
}

.contact {
  position: relative;
  background: var(--gray);
}

.contact p {
  max-width: 440px;
  margin-top: 28px;
}

.contact-preview {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 16px;
}

.contact-preview input,
.contact-preview textarea {
  width: 100%;
  border: 0;
  border-radius: 4px;
  padding: 16px;
  color: var(--blue);
  background: var(--white);
  font: inherit;
  resize: vertical;
}

.contact-preview .button {
  width: fit-content;
  margin-top: 6px;
}

.contact-preview button {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.contact-preview .form-status {
  max-width: none;
  min-height: 1.8em;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

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

.form-field-hidden {
  position: absolute;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-footer {
  min-height: 370px;
  padding-block: 105px 70px;
  color: var(--white);
  background: var(--blue);
  padding-top: 0;
}

.footer-grid {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 60px;
}

.site-footer p {
  margin-top: 28px;
}

.site-footer a {
  color: var(--white);
}

.footer-affiliation-logos {
  display: grid;
  margin-top: 10px;
  justify-items: end;
  gap: 32px;
}

.footer-affiliation-logo {
  width: 255px;
}

.footer-affiliation-logo-ciarb {
  width: 120px;
}

.footer-affiliation-logo-imi {
  width: 150px;
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .hero {
    min-height: 560px;
  }

  :root {
    --hero-waves-height: 210px;
  }

  .split,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .service-row {
    grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
    gap: 32px;
  }

  .service-image {
    height: 100%;
  }

  .profile-grid {
    min-height: 0;
  }

  .profile-copy {
    padding-bottom: 0;
  }

  .portrait-wrap {
    min-height: 520px;
  }

  .portrait {
    --portrait-x: 50%;
    right: 50%;
    width: min(640px, 94vw);
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 76px;
  }

  body {
    font-size: 15px;
  }

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

  .header-inner {
    gap: 16px;
  }

  .header-actions {
    gap: 13px;
  }

  .header-actions > .button {
    display: none;
  }

  .menu summary {
    width: 35px;
  }

  .menu summary span {
    width: 30px;
  }

  .hero {
    min-height: 465px;
  }

  .hero-copy {
    padding-top: 105px;
  }

  h1 {
    font-size: 2.15rem;
    line-height: 1.18;
  }

  :root {
    --hero-waves-height: 145px;
  }

  .section {
    padding-block: 78px;
  }

  .split {
    gap: 34px;
  }

  .statement p {
    font-size: 1.35rem;
  }

  .service-row + .service-row {
    margin-top: 90px;
  }

  .service-row {
    grid-template-columns: 1fr;
    gap: 26px;
  }

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

  .service-image {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .profile {
    padding-top: 120px;
  }

  .profile-copy {
    font-size: 0.95rem;
  }

  .portrait-wrap {
    min-height: 380px;
  }

  .contact {
    padding-bottom: 130px;
  }

  .footer-grid {
    display: grid;
  }

  .footer-affiliation-logo {
    width: 220px;
  }
}
