/* Contact uses the portfolio's Inter typography, quiet borders and blue links. */
.contact-invitation { margin: 0 0 36px; }
.contact-trigger { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: #06c; font-size: 17px; font-weight: 500; text-decoration: none; }
.contact-trigger:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact-trigger span { transition: transform .2s ease; }
.contact-trigger:hover span { transform: translate(2px, -2px); }
.contact-dialog { box-sizing: border-box; width: calc(100% - 32px); max-width: 560px; max-height: calc(100dvh - 32px); margin: auto; padding: 40px; border: 1px solid rgba(0,0,0,.08); border-radius: 24px; background: #fff; color: #1d1d1f; box-shadow: 0 24px 100px rgba(0,0,0,.18); overflow-y: auto; overscroll-behavior: contain; }
.contact-dialog::backdrop { background: rgba(20,20,26,.45); backdrop-filter: blur(8px); }
html:has(.contact-dialog[open]) { overflow: hidden; }
.contact-dialog[open] { animation: contact-appear .2s ease-out; }
.contact-close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f5f5f7; color: #636366; cursor: pointer; }
.contact-close:hover { background: #eaeaed; color: #1d1d1f; }
.contact-eyebrow { display: block; margin-bottom: 12px; color: #6e6e73; font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.contact-heading h2 { margin: 0 0 12px; font-size: 36px; line-height: 1.15; font-weight: 700; letter-spacing: -.035em; }
.contact-heading p { margin: 0; max-width: 390px; color: #6e6e73; font-size: 15px; line-height: 1.6; }
.contact-form { margin-top: 28px; }
.contact-form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-field { min-width: 0; margin-bottom: 18px; }
.contact-field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.contact-field input, .contact-field textarea { box-sizing: border-box; display: block; width: 100%; padding: 12px 14px; border: 1px solid #d2d2d7; border-radius: 12px; background: #fafafa; color: #1d1d1f; font: inherit; font-size: 16px; line-height: 1.5; transition: border-color .15s, box-shadow .15s; }
.contact-field textarea { resize: vertical; min-height: 130px; max-height: 300px; }
.contact-field input::placeholder, .contact-field textarea::placeholder { color: #76767b; }
.contact-field input:focus, .contact-field textarea:focus { outline: 0; border-color: #06c; box-shadow: 0 0 0 3px rgba(0,102,204,.14); }
.contact-send { display: flex; justify-content: center; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 12px; background: #06c; color: white; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s; }
.contact-send:hover { background: #005bb5; }
.contact-form fieldset:disabled { opacity: .65; }
.contact-form fieldset:disabled .contact-send { cursor: wait; }
.contact-trigger:focus-visible, .contact-dialog button:focus-visible, .contact-alternative a:focus-visible { outline: 3px solid #667eea; outline-offset: 4px; }
.contact-status { margin: 12px 0 0; color: #6e6e73; font-size: 13px; line-height: 1.5; }
.contact-status:empty { display: none; }
.contact-status[data-error="true"] { color: #b42318; }
.contact-alternative { margin: 24px 0 0; text-align: center; font-size: 12px; line-height: 1.6; color: #6e6e73; }
.contact-alternative a { color: #06c; text-decoration: none; }
.contact-alternative a:hover { text-decoration: underline; }
.contact-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.contact-success { margin-top: 28px; text-align: center; }
.contact-success[hidden], .contact-form[hidden] { display: none; }
.contact-success-mark { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 50%; color: #06c; background: #eef5ff; font-size: 24px; }
.contact-success h3 { font-size: 21px; font-weight: 600; margin: 0 0 8px; }
.contact-success p { font-size: 15px; line-height: 1.6; color: #6e6e73; margin: 0 0 24px; }
@keyframes contact-appear { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 520px) {
  .contact-dialog { padding: 32px 24px 24px; border-radius: 20px; }
  .contact-heading h2 { font-size: 32px; }
  .contact-row { grid-template-columns: 1fr; gap: 0; }
  .contact-heading p { padding-right: 10px; }
}
@media (prefers-color-scheme: dark) {
  .contact-trigger, .contact-alternative a { color: #70b5ff; }
  .contact-dialog { background: #1c1c1e; color: #f5f5f7; border-color: #38383a; box-shadow: 0 24px 100px rgba(0,0,0,.5); color-scheme: dark; }
  .contact-close { background: #2c2c2e; color: #aeaeb2; }
  .contact-close:hover { background: #38383a; color: #fff; }
  .contact-eyebrow, .contact-heading p, .contact-alternative, .contact-status, .contact-success p { color: #aeaeb2; }
  .contact-field input, .contact-field textarea { background: #232325; border-color: #48484a; color: #f5f5f7; }
  .contact-field input::placeholder, .contact-field textarea::placeholder { color: #98989d; }
  .contact-field input:focus, .contact-field textarea:focus { border-color: #70b5ff; box-shadow: 0 0 0 3px rgba(112,181,255,.16); }
  .contact-status[data-error="true"] { color: #ffb4ab; }
  .contact-success-mark { color: #70b5ff; background: #16314d; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-dialog[open] { animation: none; }
  .contact-trigger span, .contact-field input, .contact-field textarea, .contact-send { transition: none; }
}
