:root {
  --ink: #183337;
  --muted: #5f6f70;
  --paper: #f6f1e8;
  --paper-deep: #ebe1d2;
  --teal: #073f45;
  --jade: #1f6c66;
  --terracotta: #bd5f43;
  --gold: #e0ae58;
  --white: #fffdf8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero__background,
.hero__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__background {
  z-index: -2;
  object-fit: cover;
}

.hero__veil {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 38, 43, 0.9) 0%, rgba(2, 38, 43, 0.53) 48%, rgba(2, 38, 43, 0.08) 100%),
    linear-gradient(0deg, rgba(3, 32, 35, 0.48), transparent 55%);
}

.nav,
.hero__content,
.section,
footer {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-block: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
}

.brand {
  display: grid;
  width: 48px;
  height: 48px;
  margin-right: auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  font-family: "Playfair Display", serif;
  font-size: 20px;
}

.nav__link {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.nav__button,
.primary-button {
  border-radius: 999px;
  font-weight: 700;
}

.nav__button {
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.hero__content {
  padding-top: 130px;
}

.eyebrow,
.section-label {
  margin: 0 0 18px;
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow {
  color: #f4c670;
}

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

h1,
h2 {
  font-family: "Playfair Display", serif;
  line-height: 1.06;
}

h1 {
  max-width: 770px;
  margin-bottom: 24px;
  font-size: clamp(54px, 8vw, 92px);
  letter-spacing: -0.04em;
}

h1 em {
  color: #f6cf83;
  font-weight: 600;
}

.hero__intro {
  max-width: 560px;
  margin-bottom: 38px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
}

.primary-button {
  display: inline-flex;
  padding: 14px 24px;
  color: var(--teal);
  background: var(--white);
}

.section {
  padding-block: 110px;
}

.profile {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(60px, 9vw, 130px);
  align-items: center;
}

.profile__photo-wrap {
  position: relative;
}

.profile__photo-wrap::before {
  position: absolute;
  inset: -18px 18px 18px -18px;
  z-index: -1;
  border: 1px solid var(--gold);
  border-radius: 42% 42% 16px 16px;
  content: "";
}

.profile__photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 42% 42% 16px 16px;
}

.profile__badge {
  position: absolute;
  right: -22px;
  bottom: 28px;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  color: var(--white);
  background: var(--terracotta);
  border: 7px solid var(--paper);
  border-radius: 50%;
  font-weight: 700;
  letter-spacing: 0.12em;
}

h2 {
  margin-bottom: 26px;
  font-size: clamp(42px, 6vw, 68px);
  letter-spacing: -0.035em;
}

.profile__copy .lead {
  font-size: 21px;
}

.profile__copy > p:not(.section-label) {
  max-width: 650px;
  color: var(--muted);
}

.services {
  width: 100%;
  padding-inline: max(24px, calc((100% - 1180px) / 2));
  background: var(--paper-deep);
}

.services__heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
}

.services__heading h2 {
  max-width: 700px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
}

.service-card {
  min-height: 280px;
  padding: 34px;
  background: rgba(255, 253, 248, 0.72);
  border-top: 3px solid var(--terracotta);
}

.service-card span {
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 700;
}

.service-card h3 {
  margin: 54px 0 16px;
  font-family: "Playfair Display", serif;
  font-size: 27px;
  line-height: 1.16;
}

.service-card p {
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 60px;
  width: 100%;
  padding-inline: max(24px, calc((100% - 1180px) / 2));
  color: var(--white);
  background: var(--teal);
}

.contact h2 {
  margin-bottom: 0;
}

.section-label--light {
  color: #f6cf83;
}

.contact__details {
  align-self: end;
  padding-left: 30px;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.contact__details p {
  margin-bottom: 4px;
  font-size: 18px;
}

.contact__details small {
  display: block;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.62);
}

footer {
  display: flex;
  justify-content: space-between;
  padding-block: 28px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .nav,
  .hero__content,
  .section,
  footer {
    width: min(100% - 32px, 1180px);
  }

  .nav__link {
    display: none;
  }

  .hero {
    min-height: 700px;
  }

  .hero__veil {
    background: linear-gradient(90deg, rgba(2, 38, 43, 0.9), rgba(2, 38, 43, 0.45));
  }

  .hero__content {
    padding-top: 105px;
  }

  h1 {
    font-size: clamp(50px, 15vw, 68px);
  }

  .section {
    padding-block: 76px;
  }

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

  .profile {
    gap: 58px;
  }

  .profile__photo-wrap {
    width: min(86%, 430px);
    margin-inline: auto;
  }

  .services,
  .contact {
    width: 100%;
    padding-inline: 24px;
  }

  .contact__details {
    padding: 24px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 0;
  }

  footer {
    flex-direction: column;
    gap: 4px;
  }
}
