/* ContactCTA — shared by home, about, resume. Tokens from tokens.css. */
.ccta { padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 32px); }

.ccta__card {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: center;
  padding: clamp(24px, 5vw, 56px);
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
}
.ccta__card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: clamp(24px, 5vw, 56px);
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: var(--grad-main);
}
.ccta--full .ccta__card { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); }

.ccta__eyebrow {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 var(--space-md);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--blue-deep);
}
.ccta__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

.ccta__title {
  margin: 0 0 var(--space-md);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.15; font-weight: 800; color: var(--ink-900);
  max-width: 20ch;
}
.ccta--full .ccta__title { font-size: clamp(1.7rem, 3.8vw, 2.8rem); }
.ccta__text { margin: 0 0 var(--space-xl); max-width: 48ch; font-size: 1rem; line-height: 1.65; color: var(--ink-600); }
.ccta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.ccta--about { padding-top: 0; }               /* sits right under the skills band */

/* Buttons */
.ccta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--btn-height); padding: 0 var(--btn-padding-x);
  border-radius: var(--btn-radius);
  font: inherit; font-size: var(--btn-font-size); font-weight: var(--btn-font-weight);
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform var(--motion-standard) var(--ease-standard), box-shadow var(--motion-standard) var(--ease-standard), background-color var(--motion-fast), color var(--motion-fast);
}
.ccta-btn__arrow { width: 16px; height: 16px; transition: transform var(--motion-standard) var(--ease-standard); }
.ccta-btn--primary { background: var(--brand-fill, #2b6f91); color: #fff; }
.ccta-btn--secondary { background: var(--surface); color: var(--blue-deep); border-color: var(--blue-deep); }
.ccta-btn--block { width: 100%; }
.ccta-btn:focus-visible, .ccta a:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

/* Home mail-compose card */
.ccta__panel {
  padding: clamp(14px, 2.4vw, 20px);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--motion-reveal) var(--ease-soft), box-shadow var(--motion-reveal) var(--ease-soft), opacity var(--motion-reveal) var(--ease-soft);
}
.ccta__panel > * { transition: opacity .6s var(--ease-soft), transform .6s var(--ease-soft); }
.ccta__panel.is-armed:not(.is-in) { opacity: 0; transform: translateY(18px); }
.ccta__panel.is-armed:not(.is-in) > * { opacity: 0; transform: translateY(10px); }
.ccta__panel.is-in > :nth-child(2) { transition-delay: .12s; }
.ccta__panel.is-in > :nth-child(3) { transition-delay: .22s; }
.ccta__panel.is-in > :nth-child(4) { transition-delay: .3s; }

.ccta__mailhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px 16px; }
.ccta__name { margin: 0 0 4px; font-size: 1.15rem; font-weight: 800; color: var(--ink-900); }
.ccta__sub { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.9rem; color: var(--ink-600); overflow-wrap: anywhere; }
.ccta__status { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: #2e9e6b; animation: cctaPulse 2.4s ease-in-out infinite; }
@keyframes cctaPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(46,158,107,.4); } 50% { box-shadow: 0 0 0 6px rgba(46,158,107,0); } }
.ccta__tile { flex: 0 0 auto; display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius-md); background: var(--surface-soft); border: 1px solid var(--line-soft); color: var(--blue-deep); transition: transform var(--motion-standard) var(--ease-standard), background-color var(--motion-fast), color var(--motion-fast); }
.ccta__tile svg { width: 26px; height: 26px; }
.ccta__flap { transform-origin: 12px 7.5px; transition: transform .4s var(--ease-soft); }

.ccta__compose {
  background: var(--surface-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 4px 16px;
  transition: border-color var(--motion-fast), box-shadow var(--motion-fast), background-color var(--motion-fast);
}
.ccta__compose:focus-within { background: var(--surface); border-color: var(--blue); box-shadow: 0 0 0 3px rgba(57, 143, 186, 0.22); }
.ccta__row { padding: 12px 0; }
.ccta__row + .ccta__row { border-top: 1px solid var(--line-soft); }
.ccta__row--to { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ccta__to { color: var(--ink-500); font-size: 0.95rem; }
.ccta__toaddr { flex: 1 1 auto; min-width: 0; font-weight: 700; font-size: 0.95rem; color: var(--ink-900); overflow-wrap: anywhere; }
.ccta__copy { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; font: inherit; font-size: 0.8rem; font-weight: 700; color: var(--blue-deep); background: transparent; border: 1px solid var(--line-med); border-radius: var(--radius-pill); cursor: pointer; transition: background-color var(--motion-fast), color var(--motion-fast); }
.ccta__copy svg { width: 14px; height: 14px; }
.ccta__copy.is-done { background: var(--brand-fill, #2b6f91); color: #fff; }
.ccta__split { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ccta__split .ccta__row + .ccta__row { border-top: 0; }
.ccta__row label { display: block; margin-bottom: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-500, #6b6a6a); }
.ccta__compose .ccta__row .ccta-sr { position: absolute; }
.ccta__row input[aria-invalid="true"], .ccta__row textarea[aria-invalid="true"] { text-decoration: underline wavy var(--coral, #ff6c63); text-underline-offset: 4px; }
.ccta__error { margin: 12px 4px 0; font-size: .85rem; font-weight: 600; color: #b3261e; }
.ccta__row input, .ccta__subject, .ccta__row--msg textarea { width: 100%; padding: 0; font: inherit; font-size: 1rem; color: var(--ink-900); background: transparent; border: 0; outline: 0; }  /* 16px avoids iOS zoom; ring is on the card */
.ccta__subject { font-weight: 700; min-height: 28px; }
.ccta__row--msg textarea { resize: none; min-height: 84px; line-height: 1.5; }
.ccta__row--msg textarea::placeholder { color: var(--ink-500); opacity: 1; }

.ccta__send { margin-top: 14px; position: relative; overflow: hidden; }
.ccta__plane { width: 18px; height: 18px; transition: transform .5s var(--ease-soft); }
.ccta__send.is-sending { pointer-events: none; }
.ccta__send.is-sending .ccta__plane { transform: translate(34px, -22px) rotate(8deg); opacity: 0; transition: transform .6s var(--ease-standard), opacity .6s; }
.ccta__send::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); }
.ccta__hint { margin: 12px 4px 0; font-size: 0.8rem; color: var(--ink-500); text-align: center; }
.ccta__send:focus-visible, .ccta__copy:focus-visible, .ccta__toaddr:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

@media (hover: hover) {
  .ccta__panel:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
  .ccta__panel:hover .ccta__tile { transform: rotate(-6deg) scale(1.05); background: var(--brand-fill, #2b6f91); color: #fff; }
  .ccta__panel:hover .ccta__flap { transform: scaleY(-1); }
  .ccta__copy:hover { background: var(--brand-fill, #2b6f91); color: #fff; }
  .ccta__send:hover::after { transform: translateX(120%); transition: transform .9s var(--ease-soft); }
  .ccta__send:hover .ccta__plane { transform: translate(3px, -3px); }
  .ccta__toaddr:hover { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 4px; }
}

.ccta-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (hover: hover) {
  .ccta-btn--primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-blue); }
  .ccta-btn--primary:hover .ccta-btn__arrow { transform: translateX(3px); }
  .ccta-btn--secondary:hover { transform: translateY(-2px); background: var(--brand-fill, #2b6f91); color: #fff; }
  .ccta__addr a:hover { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 4px; }
}

@media (max-width: 860px) {
  .ccta--full .ccta__card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .ccta__split { grid-template-columns: 1fr; }
  .ccta__split .ccta__row + .ccta__row { border-top: 1px solid var(--line-soft, rgba(20,19,19,.08)); }
  .ccta__actions { flex-direction: column; }
  .ccta-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ccta-btn, .ccta-btn__arrow, .ccta__panel, .ccta__panel > *, .ccta__tile, .ccta__plane { transition: none !important; }
  .ccta__status { animation: none; }
  .ccta__panel:hover, .ccta__panel:hover .ccta__tile { transform: none !important; }
  .ccta-btn:hover { transform: none !important; }
}
