/* Contact (/contact). Like the live page: the message and the co-founders' photo up top, the photo fading into
   the page at its edges (.soft-edge, company.css). Below, the form on a paper card, and next to it a paper letter
   that types example messages until the visitor starts writing, then shows their own message as they type
   (scripts/v2/contact.mjs). Testimonials on paper cards. */
.ct-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px clamp(40px, 5vw, 80px); margin-top: 8px; }
.ct-text .h1 { margin-top: 18px; max-width: 13ch; }
.ct-text .lead { margin-top: 20px; max-width: 40ch; }
.ct-person { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 14px 0; border-block: 1px dashed var(--line-strong); max-width: 440px; }
.ct-person img { width: 52px; height: 52px; object-fit: cover; flex: none; }
.ct-person div { display: grid; gap: 2px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.ct-person strong { font-size: 16px; color: var(--ink); }
.ct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 26px; }
.ct-photo { margin: 0; }
.ct-photo img { aspect-ratio: 4 / 4.4; object-fit: cover; object-position: center 18%; }

/* ---- The form (left) and the letter (right) ---- */
.ct-write-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px clamp(40px, 5vw, 72px); align-items: start; }
.ct-write-main { display: grid; gap: 12px; align-content: start; }
.ct-write-lead { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.ct-form-card { --ink: #1E2022; --ink-2: #3A3D3A; --muted: #6D6F68; --line: #D9D5C8; --line-strong: #BDB8AA; position: relative; margin-top: 16px; padding: clamp(22px, 3vw, 34px); background: #FBFAF5; color: #1E2022; box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 22px 44px -24px rgba(21, 24, 26, .45); }
.ct-form-card .form { margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.ct-form-card input, .ct-form-card textarea { background: #FFFFFF; border-color: #BDB8AA; color: #1E2022; }
.ct-form-card textarea { min-height: 180px; }
.ct-form-card .migration-form-notice { background: #FBEDB8; border-color: #15181A; color: #15181A; }
.ct-form-card a { color: #1E2022; }
.ct-form-card .btn, .ct-form-card .btn:hover { background: #1E2022; color: #FBFAF5; border-color: #1E2022; }

.ct-letter-wrap { position: sticky; top: 110px; padding-top: 72px; }
.ct-letter { --type: #1E2022; --faint-type: #6D6F68; --rule-type: #C9C4B5; position: relative; padding: 26px 30px 30px; background-color: #FBFAF5; background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(35, 53, 127, .14) 31px 32px); background-position: 0 14px; color: var(--type); transform: rotate(1.2deg); box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 26px 50px -24px rgba(21, 24, 26, .5); isolation: isolate; }
.ct-letter::before { content: ""; position: absolute; top: 0; bottom: 0; left: 54px; width: 1px; background: rgba(209, 52, 43, .35); z-index: -1; }
.ct-letter-top { display: flex; justify-content: space-between; align-items: flex-start; font-family: var(--f-mono); font-stretch: 87.5%; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint-type); }
.ct-stamp { display: grid; place-items: center; width: 54px; height: 62px; background: #F2C230; color: #15181A; font-family: var(--f-display); font-stretch: 118%; font-weight: 800; font-size: 18px; letter-spacing: 0; outline: 2px dashed #FBFAF5; outline-offset: -5px; transform: rotate(4deg); }
.ct-letter-head { margin-top: 10px; display: grid; gap: 2px; }
.ct-letter-head > div { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; line-height: 32px; }
.ct-letter-head dt { font-family: var(--f-mono); font-stretch: 87.5%; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint-type); }
.ct-letter-head dd { margin: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.ct-letter-body { margin-top: 18px; min-height: 160px; font-family: var(--f-mono); font-stretch: 87.5%; font-size: 15px; line-height: 32px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ct-letter-body.typing::after { content: ""; display: inline-block; width: .55em; height: 1.05em; margin-left: 2px; vertical-align: -3px; background: var(--type); animation: ctBlink 900ms steps(2) infinite; }
.ct-letter-sign { margin-top: 6px; font-family: var(--f-serif); font-style: italic; font-size: 28px; line-height: 32px; color: #23357F; min-height: 32px; }
.ct-letter-sign::before { content: "— "; }
.ct-letter-sign:empty::before { content: ""; }
.ct-letter.live .ct-letter-top span:first-child { color: #15181A; background: #F2C230; padding: 1px 6px; }
@keyframes ctBlink { 50% { opacity: 0; } }

/* ---- Testimonials on paper ---- */
.ct-quotes .quote { background: #FBFAF5; border: 0; box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 16px 30px -20px rgba(21, 24, 26, .5); transform: rotate(-.4deg); }
.ct-quotes .grid-2 > .quote:nth-child(even) { transform: rotate(.4deg); }
.ct-quotes .quote, .ct-quotes .quote blockquote { color: #1E2022; }
.ct-quotes .quote figcaption, .ct-quotes .quote footer span { color: #6D6F68; }

body[data-template="contact"] .gfoot-cta { display: none; }

@media (max-width: 900px) {
  .ct-grid, .ct-write-grid { grid-template-columns: minmax(0, 1fr); }
  .ct-letter-wrap { position: static; padding-top: 0; max-width: 560px; }
  .ct-quotes .quote, .ct-quotes .grid-2 > .quote:nth-child(even) { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .ct-letter-body.typing::after { animation: none; } }
