/* Contact: a navy banner in the family of the other pages, where a drone made of points hovers
   with a letter, and carries the visitor's message off when they send it (heroes/courier.js).
   The form card rises out of the banner, so it is in view as the page opens. Builds on plate.css. */
body.contact-page { background: var(--paper); }
.hs-hero { position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(104deg, var(--ece-navy) 0%, var(--ece-deep) 75%); }
.hs-hero .stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Scrim keeps the headline readable where the figure passes behind it. */
.hs-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(21,29,75,.9) 0%, rgba(21,29,75,.55) 32%, rgba(21,29,75,0) 46%); }
.hs-hero > .wrap { position: relative; z-index: 2; pointer-events: none; }
/* The bottom padding is the strip the form card rises into. */
.hs-head { min-height: min(40rem, 78vh); display: flex; flex-direction: column; justify-content: center; max-width: 29rem; padding-block: 6rem 10.5rem; }
.hs-head h1 { font: 600 clamp(3.2rem, 7vw, 5.4rem)/1 var(--serif); letter-spacing: -.025em; color: #fff; margin: 0 0 1.5rem; }
.hs-head h1::after { content: ""; display: block; width: 5rem; height: 4px; background: var(--ece-orange); margin-top: 1.5rem; }
.hs-lede { font: 400 1.25rem/1.6 var(--serif); color: var(--on-navy); margin: 0 0 1.5rem; }
.hs-clock { display: flex; align-items: center; gap: .6rem; font-size: .95rem; color: #AEB7D6; margin: 0; font-variant-numeric: tabular-nums; }
.hs-clock strong { color: #fff; font-weight: 600; }
.hs-clock .dot { flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ece-orange); box-shadow: 0 0 0 4px rgba(233,113,50,.22); }
.hs-hero .readout { bottom: 8.25rem; max-width: 31rem; text-wrap: pretty; }
/* The page itself is the footer's invitation: the name and the clock stand alone. */
body.contact-page .ft-ask, body.contact-page .site-foot .ft-send { display: none; }
body.contact-page .ft-main { grid-template-areas: "mark clock"; }
/* The label under the drone's envelope while it carries the visitor's message. */
.hs-tag { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; white-space: nowrap; padding: .22rem .65rem; border-radius: 99px;
  font: 600 .8rem/1.3 var(--sans); color: #fff; background: rgba(233,113,50,.3); border: 1px solid rgba(245,138,80,.9); }

/* ---------- The form, and what sits beside it ---------- */
.ct-main { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; padding-bottom: 6rem; }
.ct-card { margin-top: -7.5rem; }
.ct-card h2 { font: 600 1.65rem/1.15 var(--serif); color: var(--ece-navy); letter-spacing: -.01em; margin: 0 0 .25rem; }
.ct-aside { padding-top: 2.75rem; display: grid; gap: 1.75rem; }
.ct-note { display: flex; gap: .75rem; align-items: flex-start; margin: 0; padding: .95rem 1.1rem; border-radius: 12px;
  background: #FDF1E9; border: 1px solid #F6D5BF; font: 400 .95rem/1.55 var(--sans); color: #6B3A1C; }
.ct-note svg { flex: none; width: 1.3rem; height: 1.3rem; margin-top: .1rem; fill: none; stroke: var(--ece-orange); stroke-width: 1.8; stroke-linecap: round; }
.ct-note strong { display: block; color: #4A2410; font-weight: 600; }
.ct-students { margin: 0; font: 400 1.02rem/1.65 var(--serif); color: var(--ink-2); }
.ct-elsewhere { padding-block: 0; }   /* not the padding plate.css gives every main section */
.ct-elsewhere h2 { font: 600 1.15rem var(--serif); color: var(--ece-navy); margin: 0 0 .6rem; }
.ct-elsewhere ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.ct-elsewhere li { border-bottom: 1px solid var(--rule); }
.ct-elsewhere a { display: flex; align-items: center; gap: .85rem; padding: .8rem .25rem; color: var(--ink); text-decoration: none; }
.ct-elsewhere .si { flex: none; width: 1.15rem; height: 1.15rem; fill: var(--ece-deep); }
.ct-elsewhere a span { display: grid; font-size: .85rem; color: var(--ink-2); line-height: 1.35; }
.ct-elsewhere a strong { font-size: .97rem; font-weight: 600; color: var(--ink); }
.ct-elsewhere a:hover strong { color: var(--ece-deep); text-decoration: underline; text-underline-offset: .18em; }

.contact-form { display: grid; gap: 1.1rem; background: #fff; border: 1px solid var(--rule); border-radius: 16px; padding: 2rem;
  box-shadow: 0 40px 70px -40px rgba(21,29,75,.55), 0 2px 6px -2px rgba(21,29,75,.08); }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.cf-legend { margin: -.5rem 0 0; font-size: .85rem; color: var(--ink-2); }
.cf-field { display: grid; gap: .4rem; align-content: start; }
.contact-form label { font: 600 .85rem var(--sans); color: var(--ink); }
.req { margin-left: .2rem; color: #C2571F; font-weight: 700; }
.cf-legend .req { margin-left: 0; }
/* A field that fails its check says why, in place, until it is fixed. */
.cf-err { display: flex; gap: .4rem; align-items: flex-start; margin: 0; font: 500 .84rem/1.4 var(--sans); color: #A1202E; text-wrap: pretty; }
.cf-err::before { content: ""; flex: none; width: .95rem; height: .95rem; margin-top: .1rem; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E") center / contain no-repeat; }
.cf-err[hidden] { display: none; }
.contact-form [aria-invalid="true"] { border-color: #C93A48; }
.contact-form [aria-invalid="true"]:focus { border-color: #C93A48; box-shadow: 0 0 0 3px rgba(201,58,72,.16); }
.cf-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.cf-count { margin: 0 0 0 auto; flex: none; font-size: .8rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cf-count.near { color: #A84A13; font-weight: 600; }
.cf-count.full { color: #A1202E; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea { font: 400 1rem/1.5 var(--sans); color: var(--ink); background: #fff;
  border: 1px solid #C9CFDF; border-radius: 9px; padding: .65rem .8rem; width: 100%; }
.contact-form textarea { resize: vertical; min-height: 10rem; }
.contact-form select { appearance: none; padding-right: 2.2rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23545B77' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right .85rem center / .7rem; }
.contact-form :is(input, select, textarea):focus { outline: none; border-color: var(--ece-deep); box-shadow: 0 0 0 3px rgba(2,46,127,.14); }
.cf-human { min-height: 65px; }
.cf-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-foot { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; margin-top: .25rem; }
.cf-send { font: 600 .95rem var(--sans); color: #fff; background: var(--ece-navy); border: 0; border-radius: 9px; padding: .75rem 1.35rem; cursor: pointer; }
.cf-send:hover { background: var(--ece-deep); }
.cf-send:disabled { opacity: .55; cursor: not-allowed; }
.cf-privacy { margin: 0; flex: 1 1 14rem; font-size: .8rem; line-height: 1.45; color: var(--ink-2); }
.cf-status { margin: 0; padding: .75rem .95rem; border-radius: 9px; font-size: .92rem; }
.cf-status:empty { padding: 0; }
.cf-status[data-kind="ok"] { background: #E8F5EE; color: #1D5B3A; }
.cf-status[data-kind="bad"] { background: #FCEBEC; color: #8A1F2B; }

@media (max-width: 960px) {
  .ct-main { grid-template-columns: 1fr; gap: 2.5rem; padding-bottom: 4rem; }
  .ct-aside { padding-top: 0; }
}
@media (max-width: 800px) {
  /* The drone takes the lower part of the banner, below the words. */
  .hs-head { min-height: auto; padding-block: 7rem calc(min(58vw, 18rem) + 12rem); }
  .hs-hero::before { background: linear-gradient(180deg, rgba(21,29,75,.8) 0%, rgba(21,29,75,0) 46%); }
  .hs-hero .readout { left: 1.5rem; right: 1.5rem; bottom: 7rem; max-width: none; text-align: left; font-size: .8rem; }
  .ct-card { margin-top: -5rem; }
  .cf-row { grid-template-columns: 1fr; }
  .contact-form { padding: 1.35rem; }
}
