/* Contact page: the form on the first screen beside Ron's portrait, then what to write about. */

.ct-open { position: relative; padding: calc(var(--head-h) + 34px) 0 60px; background: var(--ink); overflow: clip; }
.ct-open::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(233,238,240,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(233,238,240,.04) 1px, transparent 1px); background-size: 48px 48px; animation: griddrift 24s linear infinite; }
.ct-open > .container { position: relative; }
.ct-open__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.ct-form-wrap .h1 { font-size: clamp(2.4rem, 4vw, 4rem); margin-bottom: 12px; }
.ct-form-wrap .lede { margin-bottom: 22px; color: #C9D5DB; }
.ct-form { background: rgba(27,44,56,.6); border: 1px solid var(--line-dark); border-radius: var(--r); padding: clamp(18px, 2vw, 28px); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.chips { border: 0; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; margin-bottom: 10px; font-weight: 600; font-size: .98rem; color: var(--on-dark); }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: var(--rb); border: 1.5px solid rgba(233,238,240,.22); font-size: .95rem; font-weight: 500; color: var(--on-dark-2); cursor: pointer; transition: border-color .25s, color .25s, background-color .25s; }
.chips input:checked + span { border-color: var(--yellow); background: var(--yellow); color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; font-size: .98rem; color: var(--on-dark); }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r); border: 1.5px solid rgba(233,238,240,.22); background: rgba(233,238,240,.05); color: var(--on-dark); font: 400 1rem/1.4 var(--f-body); transition: border-color .25s; }
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--yellow); }
.field [aria-invalid="true"] { border-color: var(--redlead); }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ct-send { display: flex; align-items: center; gap: 16px 22px; flex-wrap: wrap; margin-top: 6px; }
.hint { font-size: .92rem; color: var(--on-dark-2); margin: 0; }
.ct-msg { padding: 14px 16px; border-radius: var(--r); margin-bottom: 16px; font-weight: 500; }
.ct-msg--ok { background: rgba(127,208,168,.14); border-left: 3px solid #7FD0A8; }
.ct-msg--err { background: rgba(181,67,47,.18); border-left: 3px solid var(--redlead); }

.ct-side { position: sticky; top: calc(var(--head-h) + 20px); }
.ct-photo { position: relative; margin: 0; color: var(--yellow); width: min(100%, calc(var(--media-cap) * .8), calc((100vh - 420px) * .95)); min-width: 200px; }
.ct-photo .frame__rule { top: -14px; }
.ct-photo__img { aspect-ratio: 1100 / 1156; overflow: hidden; border-radius: var(--r); }
.ct-photo__img img { width: 100%; height: 100%; object-fit: cover; }
.ct-photo::after { content: ''; position: absolute; inset: 18px -18px auto 18px; aspect-ratio: 1100 / 1156; border: 1.5px solid var(--yellow); border-radius: var(--r); z-index: -1; opacity: .7; }
.ct-photo figcaption { margin-top: 30px; color: var(--on-dark-2); font-size: .95rem; line-height: 1.45; }
.ct-photo figcaption b { display: block; font-family: var(--f-display); font-size: 1.3rem; color: var(--on-dark); }
.ct-ways { margin-top: 18px; display: grid; gap: 4px; border-top: 1px solid var(--line-dark); padding-top: 14px; }
.ct-ways li { display: grid; grid-template-columns: 90px 1fr; align-items: center; min-height: 44px; }
.ct-ways span { font-size: .9rem; color: var(--on-dark-2); }
.ct-ways a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(246,226,26,.6); font-weight: 500; }
@media (max-width: 960px) { .ct-open__grid { grid-template-columns: 1fr; } .ct-side { position: static; max-width: 460px; } }
@media (max-width: 560px) { .ct-row { grid-template-columns: 1fr; } }

.ct-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 26px); }
.ct-card { display: grid; grid-template-rows: auto 1fr; background: #fff; border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--on-light); box-shadow: 0 1px 0 var(--line-light), 0 18px 40px rgba(13,24,33,.07); transition: transform .45s var(--ease), box-shadow .45s; }
.ct-card:hover { transform: translateY(-6px); box-shadow: 0 1px 0 var(--line-light), 0 28px 50px rgba(13,24,33,.14); }
.ct-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.ct-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.ct-card:hover .ct-card__img img { transform: scale(1.06); }
.ct-card__body { display: grid; gap: 8px; padding: 20px 22px 24px; align-content: start; }
.ct-card__body b { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; }
.ct-card__body span { color: var(--on-light-2); }
@media (max-width: 900px) { .ct-cards { grid-template-columns: 1fr; } }

.ct-row--3 { grid-template-columns: 1fr 1fr 1fr; }
.ct-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 30px; align-items: baseline; margin-bottom: 18px; }
.ct-head .h1 { margin-bottom: 0; }
.ct-head .lede { margin-bottom: 0; }
@media (max-width: 1100px) { .ct-row--3 { grid-template-columns: 1fr 1fr; } .ct-row--3 .field:last-child { grid-column: 1 / -1; } .ct-head { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ct-row--3 { grid-template-columns: 1fr; } }
@media (min-width: 961px) and (max-height: 860px) {
  .ct-open { padding-top: calc(var(--head-h) + 14px); }
  .ct-form-wrap .h1 { font-size: clamp(2.2rem, 3.4vw, 3.2rem); }
  .ct-form { padding: 16px 20px; }
  .chips { margin-bottom: 10px; gap: 6px; }
  .chips legend { margin-bottom: 6px; }
  .chips span { min-height: 38px; padding: 6px 12px; font-size: .9rem; }
  .field { margin-bottom: 10px; }
  .field input { min-height: 44px; padding: 9px 12px; }
  .field textarea { min-height: 80px; }
  .ct-ways li { min-height: 40px; }
  .ct-photo figcaption { margin-top: 22px; }
}
