/* contact: a soft cream panel with the heading, a bar with LinkedIn and Email, and a girl peeking in from the right edge */
.contact { --ct-ink: #0f1b3d; --ct-orange: #e46f3a; --ct-cream: #fbf6ee; padding-block: 10px 30px; }
.ct-panel { position: relative; overflow-x: clip; width: 100vw; margin-left: calc(50% - 50vw); min-height: clamp(520px, 44vw, 640px); background: transparent; }
.ct-clouds { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.contact .ct-title { position: absolute; z-index: 2; left: 6%; top: 18%; margin: 0; font: 800 clamp(29px, 5.16vw, 74px)/1 "Playfair Display", Georgia, serif; letter-spacing: -0.03em; color: var(--ct-ink); }
.ct-title em { position: relative; font-style: normal; color: var(--ct-orange); white-space: nowrap; }
.ct-title em::after { content: ""; position: absolute; left: -4%; right: -6%; bottom: -.06em; z-index: -1; height: .16em; border-radius: 40px; background: #fbd8bd; transform: rotate(-2deg); }
.contact .ct-sub { position: absolute; z-index: 2; left: 6.4%; top: calc(18% + clamp(47px, 7.56vw, 107px)); max-width: 24em; margin: 0; font: 600 clamp(18px, 1.8vw, 24px)/1.4 var(--sans); color: rgba(15, 27, 61, .72); }
.ct-peek { position: absolute; z-index: 1; right: calc(var(--pw) * -0.124); bottom: clamp(96px, 11vw, 150px); width: var(--pw); height: auto; --pw: clamp(120px, 14.5vw, 210px); pointer-events: none; }
.ct-mark { position: absolute; z-index: 2; pointer-events: none; }
.ct-bar { position: absolute; z-index: 3; left: 6%; width: max(52.8%, 670px); bottom: 27%; display: flex; gap: clamp(8px, 1.44vw, 20px); padding: clamp(10px, 1.44vw, 19px) clamp(10px, 2.04vw, 28px); border-radius: 999px; background: #fffdf9; box-shadow: 0 10px 30px -12px rgba(15, 27, 61, .28), inset 0 0 0 1px rgba(15, 27, 61, .05); }
.ct-btn { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: clamp(44px, 3.84vw, 55px); border-radius: 999px; font: 600 clamp(14px, 1.2vw, 17px) var(--sans); text-decoration: none; transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s cubic-bezier(.2,.8,.2,1); }
.ct-btn:hover { transform: translateY(-3px); }
.ct-btn:focus-visible { outline: 3px solid var(--ct-ink); outline-offset: 3px; }
.ct-btn svg { width: 1.5em; height: 1.5em; flex: none; }
.ct-in { border: 2px solid var(--ct-ink); background: #fff; color: var(--ct-ink); }
.ct-in:hover { box-shadow: 0 8px 18px -8px rgba(15, 27, 61, .4); }
.ct-mail span { overflow-wrap: anywhere; }
.ct-mail { border: 2px solid var(--ct-orange); background: var(--ct-orange); color: #fff; }
.ct-mail:hover { box-shadow: 0 8px 18px -8px rgba(228, 111, 58, .7); }
.ct-resume { border: 2px solid var(--ct-ink); background: var(--ct-ink); color: #fff; }
.contact .foot { margin-top: 0; font-weight: 700; font-size: 18.4px; }
.ct-resume:hover { box-shadow: 0 8px 18px -8px rgba(15, 27, 61, .55); }
.ct-mailgroup { flex: 1.5 1 0; display: flex; gap: clamp(6px, .8vw, 10px); min-width: 0; }
.ct-mailgroup .ct-mail { flex: 1 1 auto; min-width: 0; white-space: nowrap; }
@media (max-width: 860px) {
  .ct-panel { min-height: 520px; }
  .contact .ct-title { left: 7%; top: 12%; font-size: clamp(24px, 8.1vw, 50px); }
  .contact .ct-sub { top: calc(12% + clamp(32px, 9vw, 54px)); max-width: 9.5em; font-size: 18px; }
  .ct-peek { --pw: clamp(100px, 26vw, 170px); bottom: 150px; }
  .ct-bar { left: 4%; width: min(92%, 300px); bottom: 20%; gap: 8px; padding: 8px; }
  .ct-btn { gap: 6px; min-height: 44px; font-size: 14px; }
}
@media (max-width: 860px) {
  .ct-panel { min-height: 420px; }
  .ct-mark[style*="right:1.6%"] { right: 30% !important; bottom: auto !important; top: 3%; }
  .ct-bar { bottom: 20px; flex-direction: column; border-radius: 34px; padding: 14px; width: min(92%, 400px); }
  .ct-btn { flex: none; width: 100%; font-size: 16px; }
  .ct-mailgroup { flex: none; width: 100%; }
  .ct-mailgroup .ct-mail { width: auto; }
}
@media (max-width: 560px) {
  .ct-panel { min-height: 440px; }
  .ct-peek { bottom: 215px; }
  .ct-bar { bottom: 20px; flex-direction: column; border-radius: 34px; padding: 14px; }
  .ct-btn { flex: none; width: 100%; font-size: 17px; }
}
/* desktop: a shorter panel, so there is less empty space between the bar and the footer line */
@media (min-width: 861px) {
  .ct-panel { min-height: clamp(340px, 27vw, 395px); }
  .ct-bar { bottom: 20px; }
  .ct-peek { bottom: clamp(10px, 1.4vw, 20px); }
  .ct-mark[style*="left:3.4%"] { top: 15% !important; left: 1.6% !important; }
  .ct-mark[style*="right:1.6%"] { right: 13% !important; }
}
@media (prefers-reduced-motion: reduce) { .ct-btn { transition: none; } .ct-btn:hover { transform: none; } }
