/* /contact (relaunch Phase 2 plan U8): the form, its banners and the honeypot.
   v12 tokens only (site.css :root and the data-ground variables). New design, flagged
   for Dan's eyeball (plan Decision 1). */

.contact h2 { margin-bottom: 18px; }
.contact .card h3 { margin-top: 0; }
.contact .card p { color: var(--muted, var(--ink-2)); }
.contact .card p + p { margin-top: 12px; }
.contact .addr { color: var(--fg, var(--ink)); font-weight: 700; overflow-wrap: anywhere; }

/* Rulings pass U7 (Sarah's comments 36, 38, 39): the hero's h2 sits under "Let's talk.",
   and the "Prefer email?" card takes a larger title and copy. */
.ct-hero h2 { max-width: 20ch; margin-bottom: .6em; }
.contact .card h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1.15; }
.contact .card p { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); line-height: 1.5; }

/* Sarah's comment 36: Pip and Murmur over coffee, above the "Prefer email?" card. The clip
   plays once when it scrolls into view (contact.ts coffeeScript); the box holds 16:9 so
   nothing moves when the poster or the clip loads. */
.contact .ct-side { display: grid; gap: 20px; }
.contact .ct-coffee { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius); background: var(--card, #fff); }
.contact .ct-coffee video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- the form ---------- */
.contact-form { display: grid; gap: 18px; max-width: 640px; }
.contact-form .field { display: grid; gap: 6px; }
.contact-form label { font-family: var(--ui); font-weight: 600; font-size: .95rem; color: var(--fg, var(--ink)); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; font-size: 1rem; line-height: 1.4; color: var(--ink);
  background: var(--card, #fff); border: 1.5px solid var(--rule, rgba(21,23,28,.14)); border-radius: var(--radius-sm);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.contact-form textarea { min-height: 168px; resize: vertical; }
.contact-form select { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible { outline: none; border-color: var(--amber-ink); box-shadow: 0 0 0 3px rgba(232,147,12,.35); }
.contact-form button[type="submit"] { justify-self: start; min-height: 48px; cursor: pointer; }
.contact-form button[type="submit"]:disabled { opacity: .6; cursor: progress; transform: none; }
.contact-form .cf-turnstile { min-height: 65px; }

/* The honeypot: off screen for people, still in the form for bots. */
.contact-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- banners: shown by :target after the route's 303 ---------- */
.contact .banner { display: none; margin: 0 0 20px; padding: 14px 18px; border-radius: var(--radius-sm); border: 1.5px solid; max-width: 640px; }
.contact .banner p { margin: 0; color: var(--ink); }
.contact .banner:target { display: block; scroll-margin-top: 96px; }
.contact .banner:focus { outline: none; }
.contact .banner:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.contact .banner--ok { background: #e6f2ec; border-color: var(--viridian); }
.contact .banner--error { background: #fbe9e3; border-color: var(--rust); }

@media (max-width: 860px) {
  .contact-form { max-width: none; }
  .contact-form button[type="submit"] { justify-self: stretch; }
}

/* ---------- design-audit pass (plan 2026-11-09-2150 U8, signed spec specs/contact.md) ----------
   Early Access loads this sheet too (early-access.ts css), so every rule below sits under a .ct-* class that page
   never prints; contact-page.test.ts holds it. */

/* The hero (build three U28, specs/small-pages.md part 2): the scene hero at full size on the first build's still, the
   words in the band under it. The table and both cups sit a little below center, so the crop keeps them at every width
   (the page passes the focus); on a phone the picture prints at 4:3. The h2 under the h1 reads a step down. */
.ct-hero .sx-scene__head > .ct-hero__sub { max-width: 24ch; margin: 10px 0 0; color: var(--fg); font-size: clamp(1.15rem, .95rem + .5vw, 1.5rem); font-weight: 600; line-height: 1.25; letter-spacing: -.004em; }
@media (max-width: 860px) { .ct-hero .sx-scene__art { aspect-ratio: 4 / 3; } }

/* Look around first: two linked cards in the shape of Home's "What Jinn is" cards (home.css .what-card, which
   only Home loads). The whole card is the link: the button's ::before stretches over it (below). The edge is one even
   hairline all round, as the Writing page's cards (kit.css .kit-check__card) are edged: no thick accent on one side. */
.ct-look h2 { margin-bottom: clamp(20px, 2.6vw, 30px); }
.ct-look__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 960px; }
.ct-look__card {
  position: relative; background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 20px 22px 22px;
  box-shadow: 0 1px 0 rgba(21,23,28,.04), 0 10px 28px -18px rgba(17,22,39,.28);
}
.ct-look__card h3 { font-family: var(--ui); font-size: .95rem; font-weight: 800; margin: 0 0 8px; }
.ct-look__card p { margin: 0; font-size: 1.04rem; line-height: 1.55; }
/* The lift on hover and focus is the kit's (.kit-lift, kit.css): the card draws no ::after of its own (the stretched
   button's ::before sits on the button), so the kit's shadow layer is free. */
@media (max-width: 860px) {
  .ct-look__cards { grid-template-columns: 1fr; }
}

/* Build six part two PR (Sarah's 2026-11-14 round). The hero: "Let's talk." and its line sit level with the words and
   button on the right (xeuxecwaWyRD), where the two columns stand side by side. */
@media (min-width: 861px) { .ct-hero .sx-scene__band { align-items: center; } }
/* The submit button reads "Send us a message" with the site's up-and-right arrow (xgyMNWPrIwEI), drawn as site.css
   draws it on a.btn, which a <button> does not get. */
.ct-send::after { content: "\2197"; content: "\2197" / ""; display: inline-block; margin-left: .4em; font-weight: 400; transition: transform .18s ease; }
.ct-send:hover:not(:disabled)::after { transform: translate(2px, -2px); }
/* The Look around cards (qC2TlRanQx_4, _MOA_sdEjS5n): the title is plain words, the button under the line is the link,
   and its ::before stretches over the card so the whole card stays the link (its ::after is the arrow). The buttons sit
   on one line across the two cards. The card lifts, so the button does not also move. */
.ct-look__card { display: flex; flex-direction: column; }
.ct-look__card > h3 { color: var(--amber-ink); }
.ct-look__card > .ct-look__go { align-self: flex-start; margin-top: auto; }
.ct-look__card > p { margin-bottom: 18px; }
.ct-look__go, .ct-look__go:hover { transform: none; }
.ct-look__go::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.ct-look__card:hover .ct-look__go { background: rgba(127,127,127,.12); }
.ct-look__card:has(.ct-look__go:focus-visible) { outline: 3px solid var(--amber); outline-offset: 2px; }
.ct-look__go:focus-visible { outline: none; }
