/* =========================================================
   CONTACT  (last section)
   desktop: email 32 · labels 20 · text 24
   phone:   email 20 · labels 12 · text 14
   ========================================================= */
#contact {
  --w-h: clamp(36px, 4.233 * var(--vw), 96px);
  --c-mail: clamp(20px, 2.116 * var(--vw), 44px);
  --c-lbl: clamp(12px, 1.323 * var(--vw), 28px);
  --c-txt: clamp(14px, 1.587 * var(--vw), 32px);
  padding: clamp(40px, 6.3 * var(--vw), 120px) var(--pad) clamp(28px, 3.2 * var(--vw), 64px)
}

.ct-sig {
  display: block;
  width: clamp(110px, 15.94 * var(--vw), 320px);
  height: auto;
  margin: 0 auto clamp(14px, 3.1 * var(--vw), 60px)
}

.ct-h .d { display: inline }

.ct-line {
  margin-top: clamp(20px, 2.3 * var(--vw), 46px);
  border-top: 1px solid var(--line)
}

.ct-mail {
  margin-top: clamp(28px, 3.4 * var(--vw), 68px);
  font: 400 var(--c-mail)/1.2 'Outfit', sans-serif
}

.ct-mail .arr, .ct-v .arr { color: var(--acc); width: .5em; height: .5em; margin-left: .4em }
.ct-mail:hover .arr, .ct-v a:hover .arr { color: var(--acc) }

.ct-g {
  display: grid;
  grid-template-columns: 33.7% 26.4% 1fr;
  grid-template-areas: "focus status ." "based else uni" "cv . .";
  row-gap: clamp(36px, 4.4 * var(--vw), 90px);
  margin-top: clamp(32px, 3.6 * var(--vw), 72px)
}

.g-focus { grid-area: focus } .g-status { grid-area: status }
.g-based { grid-area: based } .g-else { grid-area: else }
.g-uni { grid-area: uni }

.ct-c { display: block; padding-right: 1em }

.ct-l {
  display: block;
  color: var(--mut);
  font: 400 var(--c-lbl)/1.25 'Outfit', sans-serif
}

.ct-v {
  display: block;
  margin-top: .15em;
  font: 400 var(--c-txt)/1.3 'Outfit', sans-serif
}

.ct-v .acc { color: var(--acc); font-size: .85em }

.g-cv {
  grid-area: cv;
  justify-self: start;
  align-self: center;
  gap: .5em;
  padding: .55em 1.1em;
  font-size: var(--c-lbl)
}

.cv-i { width: 1.1em; height: 1.1em; flex: none }

.ct-copy {
  margin-top: clamp(40px, 4.4 * var(--vw), 90px);
  text-align: center;
  color: var(--mut);
  font: 400 clamp(12px, 1.2 * var(--vw), 24px)/1.3 'Outfit', sans-serif
}

@media (max-width: 700px) {
  #contact {
    --c-mail: 20px; --c-lbl: 12px; --c-txt: 14px;
    padding-top: 48px
  }
  .ct-sig { width: 27.5vw; margin-bottom: 18px }
  .ct-h .d { display: none }
  .ct-line { margin-top: 16px }
  .ct-mail { margin-top: 28px }
  .ct-g {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "focus status" "based uni" "cv else";
    row-gap: 40px;
    margin-top: 40px
  }
  .g-cv { padding: .6em 1em; font-size: 14px }
  .ct-copy { margin-top: 48px }
}

/* Contact links: the gradient text wipe lives on .lt only, so the arrow is never inside a background-clip:text box (it vanished on hover in some browsers) */
a.xl {
  color: inherit;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  transition: transform .4s var(--e)
}
a.xl .lt {
  display: inline-block;
  color: transparent;
  background: linear-gradient(90deg, var(--mut) 0, var(--mut) 40%, var(--fg) 60%, var(--fg) 100%) 100% 0/250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  transition: background-position .9s var(--e)
}
a.xl:hover .lt, a.xl:active .lt { background-position: 0 0 }
a.xl:hover, a.xl:active { background: none; transform: scale(1.07) }
