/* A personal introduction and a direct discovery-call request. */
#contact {background:#f3f7f5;padding-block:88px;}
#contact .discovery-panel {
  display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);
  align-items:stretch;gap:0;padding:0;border:1px solid #cfdfd8;
  border-radius:24px;background:#fff;box-shadow:0 18px 48px #082b4708;overflow:clip;
}
#contact .discovery-panel::before {display:none;}
#contact .discovery-panel>.contact-copy,
#contact .discovery-panel>.contact-form-wrap {min-width:0;padding:44px;}
#contact .discovery-panel>.contact-copy {display:flex;flex-direction:column;background:#eaf3ee;}
#contact .discovery-panel .contact-copy h2 {
  max-width:410px;color:#15242b;font-size:clamp(32px,2.8vw,40px);
  line-height:1.12;letter-spacing:-.035em;text-wrap:pretty;
}
#contact .discovery-panel .contact-copy>.discovery-intro {
  max-width:34ch;margin-top:16px;color:var(--body);font-size:18px;line-height:1.6;
}
#contact .discovery-personal {
  display:block;width:min(100%,240px);margin:24px 0 0;
}
#contact .discovery-media {
  min-width:0;margin:0;overflow:hidden;border:1px solid #ccded2;border-radius:16px;background:#fff;
}
#contact .discovery-media>img {
  display:block;width:100%;height:auto;aspect-ratio:4/5;object-fit:cover;object-position:50% 28%;
}
/* These existing photo areas can receive real clips when supplied. */
[data-video-slot]>video,[data-video-slot]>iframe {
  display:block;width:100%;max-width:100%;height:auto;aspect-ratio:16/9;
  border:0;border-radius:16px;background:#15242b;
}
#contact .discovery-media figcaption {padding:13px 14px 15px;}
#contact .discovery-media figcaption strong {
  display:block;color:var(--navy);font-size:16px;line-height:1.4;font-weight:600;letter-spacing:-.01em;
}
#contact .discovery-media figcaption span {
  display:block;margin-top:3px;color:var(--body);font-size:13px;line-height:1.45;
}
#contact .discovery-direct {display:grid;grid-template-columns:1fr;margin-top:20px;padding-top:0;}
#contact .discovery-panel .contact-link {
  grid-template-columns:minmax(0,1fr);column-gap:0;
  min-width:0;min-height:58px;margin:0;padding:10px 0;border-bottom:1px solid #c9ddd0;
  border:0;border-bottom:1px solid #c9ddd0;border-radius:2px;touch-action:manipulation;background:transparent;color:var(--navy);
}
#contact .discovery-panel .contact-link+.contact-link {margin-top:0;}
#contact .discovery-panel .contact-link>span {font-size:13px;line-height:1.4;color:var(--body);}
#contact .discovery-panel .contact-link strong {font-size:20px;line-height:1.5;font-weight:500;overflow-wrap:anywhere;color:var(--navy);}
#contact .discovery-panel .contact-link svg {width:18px;height:18px;color:var(--teal-deep);}
#contact .discovery-panel .contact-link:last-child {border-bottom:0;}
#contact .discovery-panel .contact-link:focus-visible {outline:2px solid var(--teal-deep);outline-offset:4px;}
#contact .discovery-panel>.contact-form-wrap {
  border:0;border-left:1px solid #d3e1d8;border-radius:0;background:#fff;box-shadow:none;
}
#contact .discovery-panel .contact-form-wrap h3 {
  color:#15242b;font-size:28px;line-height:1.2;letter-spacing:-.025em;
}
#contact .discovery-panel .project-form-fallback>p,
#contact .discovery-panel .brief-result>p {margin:12px 0 24px;color:var(--body);font-size:16px;line-height:1.55;}
#contact .discovery-panel form>h3 {margin:0 0 24px;}
#contact .discovery-panel .project-form-fallback a {
  color:var(--teal-deep);text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere;
}
#contact .discovery-panel .form-row {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
#contact .discovery-panel label {min-width:0;margin-bottom:18px;color:var(--navy);font-size:15px;line-height:1.45;font-weight:500;}
#contact .discovery-panel .optional {color:var(--body);font-weight:400;}
#contact .discovery-panel input,
#contact .discovery-panel select,
#contact .discovery-panel textarea {
  min-width:0;max-width:100%;min-height:52px;margin-top:7px;padding:12px 13px;
  border:1px solid #b8cbc1;border-radius:10px;background:#fbfdfb;color:var(--navy);
  font-family:inherit;font-size:16px;line-height:1.5;scroll-margin-block:120px 180px;
  transition:border-color .18s,background-color .18s;
}
#contact .discovery-panel textarea {min-height:116px;resize:vertical;}
#contact .discovery-panel input::placeholder,
#contact .discovery-panel textarea::placeholder {font-size:15px;color:#63756d;}
#contact .discovery-panel input:focus,
#contact .discovery-panel select:focus,
#contact .discovery-panel textarea:focus {background:#fff;border-color:var(--teal-deep);outline:2px solid var(--teal-deep);outline-offset:2px;}
#contact .discovery-panel form>.button,
#contact .discovery-panel .brief-result>.button {
  width:100%;min-height:54px;justify-content:center;padding:14px 18px;border-radius:10px;font-size:17px;line-height:1.5;
}
#contact .discovery-panel .form-note {margin-top:13px;color:var(--body);font-size:14px;line-height:1.55;}
#contact .discovery-panel .brief-result pre {
  max-width:100%;padding:20px;border-color:#d4e3d9;border-radius:12px;background:#f4f8f5;font-size:16px;line-height:1.6;
}
#contact .discovery-panel .result-actions {flex-wrap:wrap;gap:8px 18px;padding-right:0;}
#contact .discovery-panel .result-actions button {min-height:48px;font-size:16px;touch-action:manipulation;}
#contact .discovery-panel #copy-status {font-size:14px;line-height:1.55;overflow-wrap:anywhere;}
@media(max-width:1100px) {
  #contact .discovery-panel>.contact-copy,
  #contact .discovery-panel>.contact-form-wrap {padding:34px 28px;}
  #contact .discovery-panel .form-row {grid-template-columns:1fr;gap:0;}
}
@media(max-width:939px) {
  #contact {padding-block:64px;}
  #contact .discovery-panel {grid-template-columns:1fr;}
  #contact .discovery-panel>.contact-copy,
  #contact .discovery-panel>.contact-form-wrap {padding:36px;}
  #contact .discovery-panel>.contact-form-wrap {border-left:0;border-top:1px solid #d3e1d8;}
  #contact .discovery-panel .contact-copy h2 {max-width:680px;font-size:38px;}
  #contact .discovery-panel .contact-copy>.discovery-intro {max-width:650px;}
  #contact .discovery-personal {width:100%;max-width:440px;}
  #contact .discovery-media {display:flex;align-items:center;background:transparent;border:0;border-radius:0;}
  #contact .discovery-media>img {width:112px;height:140px;border-radius:14px;}
  #contact .discovery-direct {grid-template-columns:repeat(2,minmax(0,1fr));gap:28px;padding-top:0;}
  #contact .discovery-panel .contact-link {border-bottom:0;}
  #contact .discovery-panel .form-row {grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
}
@media(max-width:639px) {
  #contact {padding-block:48px 80px;}
  #contact .discovery-panel {border-radius:18px;}
  #contact .discovery-panel>.contact-copy,
  #contact .discovery-panel>.contact-form-wrap {padding:28px 22px;}
  #contact .discovery-panel .contact-copy h2 {font-size:32px;line-height:1.14;}
  #contact .discovery-panel .contact-copy>.discovery-intro {margin-top:17px;font-size:17px;line-height:1.55;}
  #contact .discovery-personal {margin-top:20px;}
  #contact .discovery-media {display:flex;align-items:center;gap:13px;padding:0;border:0;border-radius:0;background:transparent;overflow:visible;}
  #contact .discovery-media:has(>video),#contact .discovery-media:has(>iframe) {display:block;}
  #contact .discovery-media:has(>video) figcaption,#contact .discovery-media:has(>iframe) figcaption {padding-top:12px;}
  #contact .discovery-media>img {flex:0 0 96px;width:96px;height:120px;aspect-ratio:auto;border:1px solid #ccded2;border-radius:11px;}
  #contact .discovery-media figcaption {min-width:0;padding:0;}
  #contact .discovery-media figcaption strong {font-size:17px;}
  #contact .discovery-media figcaption span {font-size:13px;}
  #contact .discovery-direct {grid-template-columns:1fr;gap:0;padding-top:17px;}
  #contact .discovery-panel .contact-link {min-height:65px;padding-block:11px;border-bottom:1px solid #c9ddd0;}
  #contact .discovery-panel .contact-link:last-child {border-bottom:0;}
  #contact .discovery-panel .contact-link strong {font-size:20px;}
  #contact .discovery-panel .contact-form-wrap h3 {font-size:25px;}
  #contact .discovery-panel .form-row {grid-template-columns:1fr;gap:0;}
  #contact .discovery-panel form>.button,
  #contact .discovery-panel .brief-result>.button {font-size:16px;padding-inline:14px;}
  #contact .discovery-panel .brief-result pre {padding:16px;font-size:15px;}
  #contact .discovery-panel .form-note {padding-inline-end:64px;}
}
@media(max-width:359px) {
  #contact .discovery-panel>.contact-copy,
  #contact .discovery-panel>.contact-form-wrap {padding-inline:18px;}
  #contact .discovery-panel .contact-copy h2 {font-size:29px;}
  #contact .discovery-panel .contact-link strong {font-size:18px;}
  #contact .discovery-panel .contact-form-wrap h3 {font-size:24px;}
}

/* Direct requests and an honest recovery path when delivery is unavailable. */
#contact .inquiry-honeypot {position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden;}
#contact .inquiry-status {font-size:15px;line-height:1.5;margin:12px 0 0;}
#contact .inquiry-status:empty {display:none;}
#contact .inquiry-status.is-error {color:#8a2d1e;}
#contact .inquiry-fallback {display:flex;align-items:flex-start;flex-direction:column;gap:6px;margin-top:10px;padding:14px 16px;background:#f5f8f6;border:1px solid #d8e5df;border-radius:12px;}
#contact .inquiry-fallback .text-link,#contact .inquiry-fallback .text-button {font-size:16px;min-height:44px;}
#contact .inquiry-fallback p {font-size:14px;line-height:1.5;}
#contact .inquiry-success-icon {display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:#deeee4;color:#12646b;margin-bottom:18px;}
#contact .inquiry-success-icon svg {width:27px;height:27px;stroke-width:2.5;}
#contact .inquiry-confirmation-note {font-size:14px;line-height:1.5;color:var(--body);}
#contact #brief-result {scroll-margin-top:120px;}
#contact #prepare-project-email:disabled {cursor:wait;opacity:.75;}

/* The same contact controls become part of the request on smaller screens. */
@media(max-width:939px) {
  #contact .contact-form-wrap>.quick-contact.request-inline {
    position:static;inset:auto;z-index:auto;display:flex;flex-direction:row;
    align-items:center;justify-content:flex-start;gap:12px;width:auto;margin:0 0 20px;
  }
  #contact .quick-contact.request-inline>a.quick-call,
  #contact .quick-contact.request-inline>a.quick-text {
    flex:0 0 54px;grid-column:auto;width:54px;height:54px;min-height:54px;
    border-radius:50%;box-shadow:0 3px 12px #082b4718;
  }
  #contact .quick-contact.request-inline .quick-call svg,
  #contact .quick-contact.request-inline .quick-text svg {width:25px;height:25px;}
}
