/* contact.css: the Contact page's parts (src\pages\contact.mjs), the director's. Only the tokens of design\system.css. */

/* ---------- the header: the words centred on the black, the form beside the desk photo ---------- */
.cth { position: relative; padding: calc(76px + clamp(40px, 6vw, 80px)) 0 clamp(56px, 7vw, 96px); background: radial-gradient(60% 50% at 50% 0%, rgba(0, 200, 255, 0.1), rgba(0, 200, 255, 0) 70%), var(--c-ground); }
.cth__head { display: grid; justify-items: center; gap: var(--space-3); max-width: 820px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.cth__head h1 { font-size: clamp(2.2rem, 1.3rem + 3vw, 3.9rem); line-height: 1.05; letter-spacing: -0.026em; }
.cth__head .lede { max-width: 54ch; }
.cth__grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(24px, 3vw, 40px); align-items: stretch; }
.cth__form { scroll-margin-top: 96px; display: flex; flex-direction: column; gap: 14px; }
.cth__form .fbox { flex: 1 1 auto; box-sizing: border-box; align-content: start; }
/* F3.14: "Prefer to write? Email us" under the form, which still fills the column above it */
.cth__write { padding-left: 4px; }
.cth__fig { position: relative; margin: 0; min-height: 560px; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--c-line); box-shadow: var(--shadow-l); }
.cth__photo { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); max-width: none; object-fit: cover; object-position: 50% 50%; filter: brightness(0.74) saturate(0.85); }
.cth__fig::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0) 46%); }
.cth__stop { top: 16px; right: 16px; }
/* the chat grows from its foot as each message lands (a message not yet there takes no room) */
.cth__chat { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 24px; display: grid; gap: 0; max-width: 420px; padding: 16px 18px 18px; box-sizing: border-box; }
.cth__chat-head { color: var(--c-text-soft); font: 600 0.85rem/1.2 var(--font-ui); }
/* each message keeps its place and fades in it (the kit's hold): the loop ends in a fade, never the chat closing back */
.cth__msg { max-width: 86%; margin-top: 10px; padding: 10px 14px; box-sizing: border-box; border-radius: 14px; font: 400 0.98rem/1.4 var(--font-ui); opacity: var(--kit-in, 0); transform: translateY(calc((1 - var(--kit-in, 0)) * 8px)); }
.cth__msg--me { justify-self: end; border-bottom-right-radius: 5px; background: rgba(255, 255, 255, 0.1); color: var(--c-paper); }
.cth__msg--team { justify-self: start; border-bottom-left-radius: 5px; background: linear-gradient(100deg, var(--c-brand), var(--c-brand-dark)); color: var(--c-on-brand); font-weight: 500; }
@media (max-width: 1023px) {
  .cth__grid { grid-template-columns: minmax(0, 1fr); }
  .cth__fig { min-height: 0; aspect-ratio: 4 / 3.4; }
}
@media (max-width: 600px) { .cth__fig { aspect-ratio: auto; height: 460px; } .cth__chat { left: 12px; right: 12px; bottom: 12px; } }

/* ---------- skip the wait: the chat's first question, the lit ring behind it ---------- */
.cts { overflow: hidden; background: radial-gradient(45% 70% at 30% 50%, rgba(0, 200, 255, 0.12), rgba(0, 200, 255, 0) 72%), var(--c-ground); }
.cts::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.3; background: repeating-linear-gradient(90deg, var(--c-tick) 0 1px, transparent 1px 9px); -webkit-mask: radial-gradient(60% 70% at 30% 50%, #000, transparent 80%); mask: radial-gradient(60% 70% at 30% 50%, #000, transparent 80%); }
.cts__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.cts__q { position: relative; display: grid; place-items: center; min-height: clamp(420px, 40vw, 560px); }
.cts__ring { position: absolute; left: 50%; top: 50%; width: min(560px, 100%); height: auto; aspect-ratio: 1; transform: translate(-50%, -50%); }
.cts__ring line { stroke: var(--c-brand); stroke-width: 2; stroke-linecap: round; opacity: 0.85; filter: drop-shadow(0 0 3px rgba(0, 200, 255, 0.5)); }
.cts__card { position: relative; width: min(100%, 440px); box-sizing: border-box; padding: clamp(22px, 3vw, 30px); gap: 18px; }
.cts__card .picker__legend { font: 600 clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem)/1.25 var(--font-display); letter-spacing: -0.01em; }
.cts__card .picker__link { min-height: 56px; font-size: 1.2rem; }
.cts__words { display: grid; gap: var(--space-4); justify-items: start; }
.cts__words .lede { max-width: 42ch; }
@media (max-width: 860px) {
  .cts__in { grid-template-columns: minmax(0, 1fr); }
  .cts__q { min-height: 380px; }
  .cts__ring { width: min(380px, 100%); }
  .cts__words { justify-items: center; text-align: center; }
  .cts__words .cta-block { justify-items: center; }
}
