/* Contact: its own sizes and crops only (design\components.md, "Inner-page patterns"). */

/* ---------- #top: the words and the full form at left on the room's dark side; Harsh answering an owner at right ---------- */
.contact-head { box-sizing: border-box; min-height: max(780px, min(880px, calc(100svh - var(--header-h)))); display: grid; align-items: center; padding-block: var(--space-5); }
.contact-head .phead__media > img, .contact-head .phead__media > picture > img { object-position: 60% 50%; }
.contact-head .phead__grade { background: linear-gradient(90deg, rgba(7,18,37,0.95) 0%, rgba(7,18,37,0.88) 34%, rgba(7,18,37,0.42) 56%, rgba(7,18,37,0.22) 100%); }
.contact-head__copy { max-width: 500px; }
.contact-head h1 { font-size: clamp(2.2rem, 1.3rem + 2vw, 3.1rem); text-wrap: balance; }
.contact-form { margin-top: var(--space-2); box-shadow: var(--shadow-l); }
.contact-form .formbox__choices { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 0.5rem; }
.contact-form .choice { padding: 0.8rem; }
.contact-form textarea { min-height: 96px; resize: vertical; }
.contact-head > .stop { z-index: 6; }
/* the thread's header name in the serif: room for the J's descender inside its clipped line */
.contact-head__scene [data-scene] .ht-tn .ht-nm { line-height: 1.42; }
.contact-head__scene { right: max(var(--gutter), calc((100% - var(--max-w)) / 2 + var(--gutter))); top: 50%; width: 640px; height: 500px; margin-top: -250px; }
@media (max-width: 1279px) {
  /* the words and the form first, then the room, Harsh's thread standing on it */
  .contact-head { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding: var(--space-4) 0 0; background: var(--c-navy-900); }
  .contact-head .phead__inner { order: 1; }
  .contact-head__copy { max-width: 36rem; }
  .contact-head > .stop { order: 2; position: relative; top: auto; right: auto; align-self: flex-end; margin: var(--space-5) var(--gutter) -48px 0; }
  .contact-head .phead__media { order: 3; position: relative; inset: auto; height: 620px; }
  .contact-head .phead__grade { background: linear-gradient(180deg, var(--c-navy-900) 0%, rgba(11,27,51,0.3) 14%, rgba(11,27,51,0.3) 100%); }
  .contact-head__scene { order: 4; position: relative; right: auto; top: auto; align-self: center; width: min(720px, calc(100% - 2 * var(--gutter))); height: 520px; margin-top: -570px; margin-bottom: 50px; }
}
@media (max-width: 699px) {
  .contact-head .phead__media { height: 700px; }
  /* the phone's thread drawn at its full 360 px where the screen allows (its own margins are inside it) */
  .contact-head__scene { width: 100%; max-width: 420px; height: 620px; margin-top: -660px; margin-bottom: 40px; }
}

/* ---------- #ways: three ways, each with its picture ---------- */
.contact-ways__list { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
@media (min-width: 900px) { .contact-ways__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.way { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--c-line); border-radius: var(--radius-l); background: var(--c-paper); color: var(--c-ink); text-decoration: none;
  box-shadow: var(--shadow-s); transition: box-shadow var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out); }
.way:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); }
.way:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 3px; }
.way__pic { position: relative; display: grid; place-items: center; align-content: center; gap: 10px; height: 230px; padding: 20px; box-sizing: border-box; color: var(--c-on-ink);
  background-color: var(--c-navy-900); background-image: linear-gradient(to right, rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.045) 1px, transparent 1px); background-size: 32px 32px; }
.way__pic--plan .xcard { display: block; max-width: 300px; border-radius: var(--radius-m); background: linear-gradient(160deg, rgba(36,64,108,0.85), rgba(12,28,52,0.95)); border: 1px solid rgba(255,255,255,0.18); box-shadow: var(--shadow-glass); }
.way__pic--plan .xcard__kicker, .way__pic--plan .xcard__goal { display: block; }
.way__pic--plan .xcard__rows { display: grid; }
.way__pic--plan .xcard__rows > span { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: center; font: 500 14px/1.3 var(--font-ui); }
.way__faces { display: inline-flex; }
.way__faces img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--c-paper); box-shadow: 0 8px 22px rgba(3,9,20,0.45); }
.way__faces img + img { margin-left: -18px; }
.way__names { font: 600 var(--fs-small)/1.3 var(--font-ui); color: var(--c-on-ink); }
.way__ring { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--c-gold); color: var(--c-navy-900); box-shadow: 0 0 0 10px rgba(201,164,92,0.18); }
.way__ring svg { width: 28px; height: 28px; }
.way__num { margin-top: 8px; font: 600 1.6rem/1.1 var(--font-mono); letter-spacing: 0.01em; color: var(--c-on-ink); }
.way__hours { font: 500 var(--fs-small)/1.3 var(--font-ui); color: var(--c-on-ink-soft); }
.way__body { display: grid; align-content: start; gap: 0.5rem; padding: var(--space-3) var(--space-3) var(--space-4); }
.way__title { font: 600 1.35rem/1.25 var(--font-display); }
.way__line { color: var(--c-ink-soft); line-height: 1.5; }
.way__go { margin-top: 0.3rem; font: 600 var(--fs-ui)/1.3 var(--font-ui); color: var(--c-brand-text); }
.contact-ways__where { margin: var(--space-4) 0 0; text-align: center; font: 500 var(--fs-ui)/1.4 var(--font-ui); color: var(--c-ink-soft); }
.contact-ways__where a { color: var(--c-brand-text); }
