/* ==========================================================================
   Veris contact page. Builds on veris.css + home.css + capture.css (hero type).
   One guided form in three short steps: pick a topic (the hints adapt), say who
   to reply to, say what you need. Then the direct addresses, one per purpose.
   ========================================================================== */

/* ---------- 01 · Hero + form ---------- */
.ct { padding-bottom: 0; }
.ct__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px clamp(40px, 6vw, 88px); align-items: start; }
.ct__txt { position: sticky; top: 120px; }
.ct__facts { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 18px; }
.ct__facts li { display: flex; gap: 14px; align-items: flex-start; }
.ct__fic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(46,255,213,.10); color: var(--mint); }
.ct__fic svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ct__facts b { display: block; font: 700 16px/1.3 var(--f-display); letter-spacing: -.01em; }
.ct__facts small { display: block; margin-top: 3px; font-size: 14px; color: var(--ink-2); }
.ct__facts a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.ct__facts a:hover { color: var(--mint); }
.has-motion .ct__txt [data-rise]:nth-child(2) { animation-delay: 80ms; }
.has-motion .ct__txt [data-rise]:nth-child(3) { animation-delay: 160ms; }
.has-motion .ct__txt [data-rise]:nth-child(4) { animation-delay: 240ms; }

/* the form card; [hidden] must win over the display rules below */
.ctf [hidden], .ctf[hidden] { display: none !important; }
.ctf { position: relative; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-xl); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line), 0 50px 90px -40px rgba(0,0,0,.75); }
.has-motion .ctf { animation: rise 900ms var(--out) 200ms both; }
.ctf__form { display: grid; gap: 30px; }
.ctf__step { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 14px; }
.ctf__step legend { display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 14px; font: 700 18px/1.2 var(--f-display); letter-spacing: -.015em; }
.ctf__n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); font: 600 12px/1 var(--f-mono); color: var(--ink-3); transition: background-color 250ms var(--out), color 250ms var(--out), box-shadow 250ms var(--out); }
.ctf__step.is-done .ctf__n { background: var(--mint); color: var(--mint-ink); box-shadow: none; }

/* topics: tactile chips that work as a radio group */
.ctf__topics { display: flex; flex-wrap: wrap; gap: 8px; }
.ctf__topics button {
  height: 40px; padding: 0 16px; border: 0; border-radius: var(--rf); cursor: pointer;
  background: var(--bg-3); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
  font: 600 14px/1 var(--f-body); white-space: nowrap;
  transition: transform 200ms var(--spring), box-shadow 200ms var(--out), background-color 150ms, color 150ms;
}
.ctf__topics button:active { transform: scale(.97); }
.ctf__topics button[aria-checked="true"] { background: var(--mint); color: var(--mint-ink); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .ctf__topics button:not([aria-checked="true"]):hover { color: var(--ink); background: var(--bg-4); } }
.ctf__hint { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--forest); box-shadow: inset 0 0 0 1px rgba(46,255,213,.16); font-size: 14px; line-height: 1.5; color: #CFE3DB; }
.ctf__hint::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--mint); }
.ctf__hint a { color: var(--mint); text-decoration: none; font-weight: 600; }
.ctf__hint a:hover { text-decoration: underline; }
.has-motion .ctf__hint.is-in { animation: ct-in 320ms var(--out) both; }
@keyframes ct-in { from { opacity: 0; transform: translateY(-6px); } }

/* fields */
.ctf__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ctf__f { position: relative; display: grid; gap: 8px; }
.ctf__f > span { font: 600 13.5px/1 var(--f-body); color: var(--ink-2); }
.ctf__f > span i { font-style: normal; font-weight: 500; color: var(--ink-3); }
.ctf__f input, .ctf__f textarea {
  width: 100%; padding: 13px 14px; border: 0; border-radius: var(--r-md); background: var(--bg); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-2); font: 400 16px/1.4 var(--f-body); /* 16px keeps iOS from zooming */
  transition: box-shadow 160ms var(--out), background-color 160ms;
}
.ctf__f textarea { min-height: 136px; resize: vertical; }
.ctf__f input::placeholder, .ctf__f textarea::placeholder { color: var(--ink-3); }
.ctf__f input:focus, .ctf__f textarea:focus { outline: none; background: #141518; box-shadow: inset 0 0 0 1.5px var(--mint), 0 0 0 4px rgba(46,255,213,.10); }
.ctf__f [aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--error); }
.ctf__err { min-height: 0; font: 500 13px/1.3 var(--f-body); font-style: normal; color: #F08A8A; }
.ctf__err:empty { display: none; }

.ctf__fail { padding: 12px 14px; border-radius: var(--r-md); background: rgba(224,85,85,.12); box-shadow: inset 0 0 0 1px rgba(224,85,85,.35); font-size: 14px; line-height: 1.5; color: #F5B5B5; }
.ctf__fail a { color: #fff; font-weight: 600; }
.ctf__send { width: 100%; height: 54px; font-size: 16px; }
.ctf__send svg { transition: transform 300ms var(--spring); }
@media (hover: hover) and (pointer: fine) { .ctf__send:hover svg { transform: translateX(4px); } }
.ctf__send.is-busy { pointer-events: none; }
.ctf__send.is-busy svg { display: none; }
.ctf__send.is-busy::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(0,58,48,.3); border-top-color: var(--mint-ink); animation: ct-spin 700ms linear infinite; }
@keyframes ct-spin { to { transform: rotate(360deg); } }
.ctf__fine { margin-top: -14px; text-align: center; font-size: 13.5px; color: var(--ink-3); }
.ctf__fine a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.ctf__fine a:hover { color: var(--mint); }

/* sent */
.ctf__done { display: grid; justify-items: center; gap: 14px; padding: 48px 8px 32px; text-align: center; outline: none; }
.ctf__ok { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); box-shadow: 0 0 0 10px rgba(46,255,213,.10); }
.ctf__ok svg { width: 34px; fill: none; stroke: var(--mint-ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.has-motion .ctf__done:not([hidden]) .ctf__ok { animation: ct-pop 560ms var(--spring) both; }
.has-motion .ctf__done:not([hidden]) .ctf__ok svg path { stroke-dasharray: 24; animation: ct-draw 420ms var(--out) 220ms both; }
@keyframes ct-pop { from { opacity: 0; transform: scale(.5); } }
@keyframes ct-draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
.ctf__dt { margin-top: 10px; font: 700 clamp(26px, 3vw, 34px)/1.1 var(--f-display); letter-spacing: -.03em; }
.ctf__dp { max-width: 28rem; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.ctf__dp b { color: var(--ink); font-weight: 600; }
.ctf__next { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.has-motion .ctf__done:not([hidden]) > :not(.ctf__ok) { animation: ct-in 420ms var(--out) both 160ms; }

/* ---------- 02 · Other ways ---------- */
.ctw { padding-block: clamp(96px, 12vw, 160px) 0; }
.ctw__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ctw__card { display: flex; flex-direction: column; padding: 24px 22px 20px; border-radius: var(--r-lg); background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.ctw__ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--bg-3); color: var(--ink-2); }
.ctw__ic svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ctw__card b { margin-top: 20px; font: 700 19px/1.2 var(--f-display); letter-spacing: -.02em; }
.ctw__card p { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.ctw__mail { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 22px; }
.ctw__mail a { min-width: 0; overflow: hidden; text-overflow: ellipsis; font: 500 13px/1.3 var(--f-mono); color: var(--ink); text-decoration: none; }
.ctw__mail a:hover { color: var(--mint); }
.ctw__copy { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: var(--rf); cursor: pointer; background: var(--bg-3); color: var(--ink-2); font: 600 12px/1 var(--f-body); box-shadow: none; transition: transform 150ms var(--out), color 150ms; }
.ctw__copy svg { width: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ctw__copy span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* the label still changes to Copied for screen readers */
.ctw__copy { position: relative; }
.ctw__copy:active { transform: translateY(2px); box-shadow: none; }
.ctw__copy.is-copied { color: var(--mint); }
.ctw__card--key { background: var(--forest); box-shadow: inset 0 0 0 1px rgba(46,255,213,.18); }
.ctw__card--key .ctw__ic { background: rgba(46,255,213,.12); color: var(--mint); }
.ctw__card--key p { color: #B9CCC4; }
.ctw__go { align-self: flex-start; margin-top: auto; --b: var(--forest-3); --lip: #081410; }
.ctw__card--key p { margin-bottom: 22px; }
.ctw__co { margin-top: 28px; font: 500 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .has-motion .ctw__list > * { animation: f-in var(--out) backwards; animation-timeline: view(); animation-range: entry 0% cover calc(30% + var(--i, 0) * 4%); }
    .has-motion .ctw__list > :nth-child(2) { --i: 1; } .has-motion .ctw__list > :nth-child(3) { --i: 2; } .has-motion .ctw__list > :nth-child(4) { --i: 3; }
  }
}

/* ---------- Narrower screens ---------- */
@media (max-width: 1020px) {
  .ct__in { grid-template-columns: minmax(0, 1fr); }
  .ct__txt { position: static; }
  .ct__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .ctw__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ct__facts { grid-template-columns: minmax(0, 1fr); margin-top: 28px; }
  .ctf { margin-inline: calc(var(--gutter) * -.5); border-radius: var(--r-lg); }
  .ctf__row { grid-template-columns: minmax(0, 1fr); }
  .ctf__topics button { height: 38px; padding: 0 13px; font-size: 13.5px; }
  .ctw__list { grid-template-columns: minmax(0, 1fr); }
}
