.contactPage {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  background: #111317;
  color: #f7f4ed;
}

.contactShell {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  overflow-x: hidden;
  padding: max(24px, env(safe-area-inset-top, 24px)) clamp(18px, 5vw, 80px) max(40px, env(safe-area-inset-bottom, 40px));
  background: radial-gradient(circle at 82% 15%, rgba(63, 148, 111, .18), transparent 32%), linear-gradient(145deg, #111317 0%, #17231f 100%);
}

.contactTopbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 0 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
}

.contactIdentity {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-height: 44px;
}

.contactMonogram img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.contactMonogram {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  overflow: hidden;
  background: #23332c;
  flex: 0 0 auto;
}

.contactIdentity strong,
.contactIdentity small {
  display: block;
}

.contactIdentity strong {
  font-size: 15px;
}

.contactIdentity small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .56);
  font-size: 11px;
}

.contactBack {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .8);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s ease;
  white-space: nowrap;
}

.contactBack:hover {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .3);
}

.contactBack:active {
  transform: scale(.97);
}

.contactCard {
  max-width: 820px;
  margin: clamp(40px, 10vh, 140px) auto 0;
  position: relative;
  container-type: inline-size;
  container-name: contactCard;
}

.contactCard::before,
.contactCard::after {
  content: "";
  position: absolute;
  left: 43%;
  top: 22%;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(105, 214, 160, .35);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.18);
  opacity: 0;
  animation: contactRipple 2.4s cubic-bezier(.2, .65, .3, 1) .25s both;
}

.contactCard::after {
  animation-delay: .7s;
}

@keyframes contactRipple {
  0% {
    transform: translate(-50%, -50%) scale(.18);
    opacity: 0;
  }
  14% {
    opacity: .65;
  }
  100% {
    transform: translate(-50%, -50%) scale(5.2);
    opacity: 0;
  }
}

.contactPortraitWrap {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 28px;
  background: #23332c;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .35);
}

.contactPortrait {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contactKicker {
  margin: 0 0 18px;
  color: #69d6a0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.contactCopy h1 {
  max-width: 11ch;
  margin: 0;
  font-family: Newsreader, serif;
  font-size: clamp(42px, 7vw, 92px);
  font-weight: 400;
  line-height: .88;
  letter-spacing: -.055em;
}

.contactCopy h1 em {
  color: #9fd6bb;
  font-style: italic;
}

.contactIntro {
  max-width: 46ch;
  margin: 24px 0 32px;
  color: rgba(255, 255, 255, .65);
  font-size: 16px;
  line-height: 1.55;
}

.contactLinks {
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.contactLink {
  display: grid;
  grid-template-columns: 90px 1fr 20px;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  min-height: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.contactLink span {
  color: rgba(255, 255, 255, .45);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contactLink strong {
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.contactLink b {
  color: #69d6a0;
  font-size: 18px;
  font-weight: 400;
  text-align: right;
  transition: transform .2s ease;
}

.contactLink:hover strong {
  color: #9fd6bb;
}

.contactLink:hover b {
  transform: translateX(2px);
}

.resumeLink {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  color: #111317;
  background: #9fe1bf;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  min-height: 44px;
  transition: background .2s ease, transform .15s ease;
}

.resumeLink:hover {
  background: #c2f2d8;
  transform: translateY(-1px);
}

.resumeLink:active {
  transform: translateY(0);
}

.resumeLink span {
  font-size: 17px;
}

.fileLogo {
  display: block;
  width: 44px;
  height: 52px;
  margin-bottom: 22px;
}

.fileLogo svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.fileLogo text {
  fill: currentColor;
  stroke: none;
  font: 600 7px "DM Sans", sans-serif;
  letter-spacing: .3px;
}

.docxLogo text {
  font: 600 15px "DM Sans", sans-serif;
}

.resumeOption strong {
  font: 400 30px Newsreader, serif;
}

.resumeOption .fileLogo {
  color: #69d6a0;
}

.resumeOption:hover .fileLogo {
  color: #c2f2d8;
}

@media (max-width: 760px) {
  .contactShell {
    padding: max(16px, env(safe-area-inset-top, 16px)) 18px max(32px, env(safe-area-inset-bottom, 32px));
  }
  .contactBack {
    font-size: 11.5px;
    min-height: 44px;
    padding: 6px 14px;
  }
  .contactCard {
    margin-top: 36px;
  }
  .contactCopy h1 {
    font-size: clamp(40px, 13vw, 68px);
  }
  .contactIntro {
    margin: 18px 0 24px;
    font-size: 14px;
  }
  .contactLink {
    grid-template-columns: 72px 1fr 18px;
    gap: 10px;
  }
  .contactLink strong {
    font-size: 13px;
  }
}

@media (max-width: 600px) {
  .contactCard::before,
  .contactCard::after {
    left: 35%;
    top: 18%;
  }
}

@container contactCard (max-width: 440px) {
  .contactLink {
    grid-template-columns: 66px 1fr 16px;
    gap: 8px;
    padding: 12px 0;
  }
  .contactLink strong {
    font-size: 12.5px;
  }
  .contactLink span {
    font-size: 9.5px;
  }
}
