/* Contact page (site-v2). Same identity as Home / Work / Studio / Services: dark textured hero, display type, lime accent.
   Left: the invitation (email + socials live in the global footer). Right: the form on a quiet panel; the Bug peeks over its top-right corner. */
/* skip link: same as the other pages (defined in work.css, which this page doesn't load) */
.skiplink { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--lime); color: var(--charcoal); font-weight: 700; font-size: 14px; padding: 10px 14px; border-radius: 4px; text-decoration: none; }
.skiplink:focus { top: 12px; }
.c-hero { position: relative; overflow: hidden; }
.c-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(36px, 6vw, 96px); align-items: start;
  padding-top: clamp(28px, 3.4vw, 52px); padding-bottom: clamp(72px, 8vw, 128px); }   /* the Bug's peek room (--peek) adds the rest */
/* desktop: the intro starts level with the form panel (both columns share one top edge, below the Bug's peek room) */
.c-intro { position: relative; z-index: 55; margin-top: var(--peek); }
.c-intro h1 { font: 700 clamp(44px, 5.8vw, 92px)/.92 var(--display); text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; max-width: 8.5em; }
.c-intro .lead { margin-top: 24px; max-width: 26em; font-size: clamp(16.5px, 1.35vw, 19.5px); line-height: 1.6; color: rgba(237,237,237,.86); text-wrap: pretty; }

/* the form panel; the Bug sits BEHIND it (its canvas is clipped at the panel's top edge), so it reads as peeking over */
.c-grid { --peek: clamp(84px, 9vw, 128px); }
.c-formwrap { position: relative; margin-top: var(--peek); }
.peek-stage { position: absolute; right: 7%; bottom: 100%; width: clamp(150px, 15vw, 210px); aspect-ratio: 1; pointer-events: none; }
/* the still is sized/placed to match the live Bug's resting peek; its lower half hides behind the (opaque, higher) form panel */
.peek-still { position: absolute; width: 125%; max-width: none; height: auto; left: -16%; bottom: -45%;   /* measured: head ~0.48 of the stage, antennae ~0.57 above the edge, like the live Bug */
  user-select: none; -webkit-user-drag: none; }
html.contact-bug-pending .peek-still, html.contact-bug-live .peek-still { visibility: hidden; }
.c-form, .c-success { position: relative; z-index: 56; background: #121613; border: 1px solid rgba(237,237,237,.1); border-radius: 6px;
  padding: clamp(24px, 3vw, 40px); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.c-form-title { font: 700 clamp(22px, 2vw, 28px)/1.05 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.form-note { margin-top: 8px; font-size: 13.5px; color: var(--faint); }

.field { margin-top: 22px; border: 0; padding: 0; min-width: 0; }
.field .opt { font-weight: 400; color: var(--faint); }
.field label, .field legend { display: block; font-size: 14.5px; font-weight: 500; color: var(--white); margin-bottom: 8px; padding: 0; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; font: 400 16px/1.45 var(--body); color: var(--white); background: rgba(237,237,237,.045);
  border: 1px solid rgba(237,237,237,.16); border-radius: 4px; padding: 12px 14px; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field textarea:hover { border-color: rgba(237,237,237,.3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lime); background: rgba(237,237,237,.06); box-shadow: 0 0 0 3px rgba(165,255,61,.18); }
.field input[type="text"][readonly], .field input[type="email"][readonly], .field textarea[readonly] { opacity: .7; }   /* not the radios: they must stay invisible under their chips */

/* "What are you looking to build?": real radios, styled as chips (arrow keys move between them, Space selects) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0 !important; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 10px 14px; border-radius: 999px; font: 500 14px/1 var(--body); color: var(--muted);
  border: 1px solid rgba(237,237,237,.18); transition: color .2s, border-color .2s, background-color .2s; }
.chip:hover span { color: var(--white); border-color: rgba(237,237,237,.38); }
.chip input:checked + span { color: var(--charcoal); background: var(--lime); border-color: var(--lime); }
.chip input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 3px; }

/* errors: a warm coral that reads on the dark panel (AA on #121613), with an icon so colour isn't the only signal */
.err { margin-top: 7px; font-size: 13.5px; line-height: 1.45; color: #ff8f7e; }
.err:empty { display: none; }
.err::before { content: "!"; display: inline-grid; place-items: center; width: 15px; height: 15px; margin-right: 7px; border-radius: 50%;
  background: #ff8f7e; color: #121613; font: 700 11px/1 var(--body); vertical-align: 1px; }
.field.invalid input, .field.invalid textarea { border-color: #ff8f7e; }
.field.invalid input:focus, .field.invalid textarea:focus { box-shadow: 0 0 0 3px rgba(255,143,126,.2); }
.types.invalid .chip span { border-color: rgba(255,143,126,.6); }

.submit-row { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.send { padding: 16px 26px; font-size: 13px; min-width: 150px; gap: 10px; }
.send:disabled { cursor: progress; opacity: .85; }
.sending .send::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(11,14,12,.35); border-top-color: var(--charcoal); animation: c-spin .8s linear infinite; }
@keyframes c-spin { to { transform: rotate(360deg); } }
.form-status { font-size: 13.5px; color: var(--muted); }
.form-error { margin-top: 20px; padding: 16px 18px; border-radius: 4px; background: rgba(255,143,126,.08); border: 1px solid rgba(255,143,126,.35); font-size: 14.5px; line-height: 1.55; }
.form-error:focus { outline: none; }
.form-error p + p { margin-top: 12px; }
.form-error strong { color: #ffb3a7; }

.c-success:focus { outline: none; }
.c-success p { margin-top: 14px; color: rgba(237,237,237,.84); line-height: 1.6; }
.c-success .again { margin-top: 24px; }

/* texture: the hero recipe (same layers as the other heroes) */
.tex .c-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 900px 620px at 72% 30%, rgba(237,237,237,.05), rgba(237,237,237,.016) 46%, rgba(237,237,237,0) 74%); }
@media (prefers-contrast: more) { .tex .c-hero::before, .tex .c-hero::after { display: none; } }

@media (max-width: 960px) {
  .c-grid { grid-template-columns: 1fr; gap: 0; padding-top: clamp(44px, 7vw, 72px); }
  .c-intro { margin-top: 0; }
  .c-formwrap { margin-top: clamp(96px, 20vw, 140px); }
  .peek-stage { width: clamp(130px, 26vw, 190px); right: 8%; }
}
@media (max-width: 760px) {
  .c-grid { padding-top: 44px; padding-bottom: 64px; }
  .c-intro h1 { font-size: clamp(40px, 12vw, 58px); }
  .send { width: 100%; }
  .form-status:empty { display: none; }
}
@media (prefers-reduced-motion: reduce) { .chip span, .field input, .field textarea { transition: none; } .sending .send::before { animation-duration: 2.4s; } }
/* nav: "Start a project" is the current page here: same ghost button, lime outline instead of the grey one */
.site-nav .btn[aria-current="page"] { box-shadow: inset 0 0 0 1px var(--lime); }

/* privacy note under the submit button: small, secondary; the link opens in a new tab so a half-written message is never lost */
.form-privacy { margin-top: 16px; font-size: 12.5px; line-height: 1.55; color: var(--faint); max-width: 46em; }
.form-privacy a { color: var(--muted); text-decoration: none; border-bottom: 1px solid rgba(237,237,237,.28); transition: color .15s, border-color .15s; }
.form-privacy a:hover { color: var(--white); border-bottom-color: var(--lime); }
.form-privacy a:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 2px; }
