/* ---------- Get in touch form page ---------- */

/* Honeypot — visually hidden but not display:none (bots ignore display:none) */
.hp {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Inline error appended after a failed submit */
.brief__error {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #c4523f;
  background: rgba(196, 82, 63, 0.06);
  color: #6b2c20;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.brief__error a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* Funky header */
.form-hero {
  min-height: 100vh;
  padding: 110px var(--pad) 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}
.form-hero__eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  gap: 24px;
  flex-wrap: wrap;
}
.form-hero__headline {
  margin: 0;
  padding: 4vh 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(32px, 5.2vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  text-wrap: balance;
  max-width: 26ch;
}
.form-hero__headline em {
  font-style: italic;
  color: var(--green);
}
.form-hero__foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--gutter);
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  align-items: end;
}
.form-hero__foot .lbl {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.55;
  margin-bottom: 8px;
}
.form-hero__foot p { margin: 0; max-width: 38ch; }
.form-hero__foot a { color: var(--ink); text-decoration: none; border-bottom: 1px solid currentColor; }
.form-hero__scroll {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}
.form-hero__scroll .line {
  display: inline-block;
  width: 40px; height: 1px;
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.form-hero__scroll .line::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--green);
  transform: translateX(-100%);
  animation: dash 2.4s ease-in-out infinite;
}

/* ---------- Brief section ---------- */
.brief {
  padding: 140px var(--pad) 120px;
  display: grid;
  place-items: center;
  min-height: 100vh;
}

.brief__head {
  width: 100%;
  max-width: 720px;
  text-align: center;
  margin-bottom: 56px;
}
.brief__num {
  font-family: var(--f-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.55;
  display: block;
  margin-bottom: 18px;
}
.brief__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.022em;
  margin: 0;
}
.brief__title em { font-style: italic; color: var(--green); }
.brief__sub {
  margin: 18px auto 0;
  max-width: 36ch;
  opacity: 0.7;
  font-size: 15px;
}

/* ---------- Form ---------- */
.brief__form {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.field { display: flex; flex-direction: column; gap: 10px; }
.field__label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.field__num {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid var(--ink);
  font-size: 10px;
  line-height: 1;
}
.field__txt { flex: 1; }
.field__req {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--green);
  opacity: 0.85;
}
.field__req--soft { color: var(--ink); opacity: 0.4; }

.field__input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule-strong);
  padding: 14px 0 12px;
  font-family: var(--f-sans);
  font-size: 18px;
  color: var(--ink);
  outline: none;
  border-radius: 0;
  transition: border-color .2s ease, background-color .2s ease;
  cursor: none;
}
.field__input::placeholder { color: var(--ink); opacity: 0.32; }
.field__input:focus {
  border-bottom-color: var(--green);
}
.field__input--ta {
  resize: vertical;
  min-height: 140px;
  font-size: 17px;
  line-height: 1.5;
  padding: 14px 0 12px;
}

/* invalid state */
.field__input.is-invalid {
  border-bottom-color: #c4523f;
  background: rgba(196, 82, 63, 0.04);
}

/* ---------- Chips (scope) ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}
.chip {
  display: inline-block;
  cursor: none;
}
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip__inner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 12px 14px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.chip__ico {
  width: 16px; height: 16px;
  color: var(--green);
  flex: 0 0 16px;
  transition: color .2s ease;
}
.chip:hover .chip__inner {
  border-color: var(--ink);
}
.chip input:focus-visible + .chip__inner {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.chip input:checked + .chip__inner {
  background: var(--green);
  border-color: var(--green);
  color: #f1efe7;
}
.chip input:checked + .chip__inner .chip__ico {
  color: #f1efe7;
}

/* ---------- Submit ---------- */
.brief__submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  flex-wrap: wrap;
}
.brief__legal {
  margin: 0;
  font-size: 12px;
  opacity: 0.55;
  max-width: 36ch;
}
.send {
  appearance: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper, #f1efe7);
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 18px 26px;
  border-radius: 999px;
  cursor: none;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: color .3s ease, border-color .3s ease;
  isolation: isolate;
}
.send::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: translateY(101%);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
  z-index: -1;
}
.send:hover::before { transform: translateY(0); }
.send:hover { border-color: var(--green); }
.send__arrow {
  display: inline-flex;
  align-items: center;
  transition: transform .4s cubic-bezier(.2,.7,.2,1);
}
.send:hover .send__arrow { transform: translateX(6px); }

/* ---------- Success ---------- */
.brief__done {
  width: 100%;
  max-width: 720px;
  padding: 80px 0;
  text-align: center;
}
.brief__done-mark {
  font-family: var(--f-display);
  font-size: 56px;
  color: var(--green);
  display: inline-block;
  animation: spin 9s linear infinite;
}
.brief__done h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 64px);
  letter-spacing: -0.02em;
  margin: 18px 0 14px;
}
.brief__done p {
  margin: 0 auto 30px;
  max-width: 40ch;
  opacity: 0.75;
}
.brief__done p a { color: var(--green); text-decoration: none; border-bottom: 1px solid currentColor; }
.brief__done-back {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .row-2 { grid-template-columns: 1fr; }
  .form-hero__foot { grid-template-columns: 1fr; gap: 24px; }
  .brief__submit { flex-direction: column; align-items: stretch; }
  .send { justify-content: center; }
  .chip__inner { white-space: normal; text-align: left; }
}
