/* nine.zero — Contact (/contact/). Layout for one page; the shell lives in site.css.
   Values from the Paper artboard "Contact" at 1440px and "m-contact" at 390px. */

.page-contact .wrap { position: relative; }

.contact-eyebrow { gap: 14px; font-size: 12px; line-height: 16px; letter-spacing: 0.18em; }
.contact-eyebrow b { color: var(--np-ink); }

/* Shared section head: "/01  What happens next." */
.sec-head { display: flex; align-items: flex-start; padding-bottom: 32px; border-bottom: 1px solid var(--np-hair); }
.sec-head__idx { width: 72px; flex: none; padding-top: 16px; font-size: 12px; line-height: 14px; letter-spacing: 0.18em; color: var(--np-ink); }
.sec-head__body { display: flex; flex-direction: column; gap: 16px; max-width: 800px; }
.sec-head__title { font-size: 56px; line-height: 60px; letter-spacing: -0.015em; }
.sec-head__lede { max-width: 640px; font-size: 16px; line-height: 26px; color: var(--np-text-2); }
.dark .sec-head { border-color: var(--np-foot-hair); }
.dark .sec-head__idx { color: var(--np-dark-text); }
.dark .sec-head__title i { color: #cedfc2; }
.dark .sec-head__lede { color: var(--np-dark-muted); }

/* ---------- Hero ---------- */
.contact-hero { padding: 112px 0 96px; }
.contact-hero__wrap { display: flex; align-items: flex-start; justify-content: space-between; gap: 64px; }
.contact-hero__copy { display: flex; flex-direction: column; gap: 40px; width: 560px; flex: none; }
.contact-hero__title { font-size: 120px; line-height: 112px; letter-spacing: -0.02em; }
.contact-hero__lede { max-width: 480px; font-size: 18px; line-height: 30px; color: var(--np-text-2); }

.details { display: flex; flex-direction: column; margin: 0; max-width: 480px; border-top: 1px solid var(--np-hair); }
.details__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--np-hair); }
.details__row dt { letter-spacing: 0.14em; }
.details__row dd { display: flex; justify-content: flex-end; align-items: center; margin: 0; font-size: 15px; line-height: 18px; text-align: right; }
.details__row dd a:hover { text-decoration: underline; text-underline-offset: 3px; }
.details__tg { display: inline-flex; align-items: center; gap: 8px; }
.details__tg svg { flex: none; }
.details__links { display: flex; gap: 16px; }

/* Enquiry form card */
.enquiry {
  display: flex; flex-direction: column; width: 624px; flex: none;
  padding: 40px 32px 32px; border-radius: var(--np-radius-card);
  background: var(--np-band); border: 1px solid var(--np-lime-deep);
  box-shadow: 0 0 0 4px rgba(133, 238, 0, 0.16), 0 18px 48px -12px rgba(95, 171, 0, 0.35);
  animation: enquiry-glow 4s ease-in-out infinite;
}
@keyframes enquiry-glow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(133, 238, 0, 0.16), 0 18px 48px -12px rgba(95, 171, 0, 0.35); }
  50%      { box-shadow: 0 0 0 8px rgba(133, 238, 0, 0.24), 0 22px 64px -10px rgba(95, 171, 0, 0.5); }
}
@media (prefers-reduced-motion: reduce) { .enquiry { animation: none; } }
.enquiry__fields { display: flex; flex-direction: column; gap: 32px; }
.enquiry .field label { letter-spacing: 0.14em; }
.enquiry .field input, .enquiry .field textarea { font-size: 18px; line-height: 26px; }
.enquiry .field textarea { min-height: 78px; }
.enquiry .form__actions { padding-top: 4px; }
.enquiry .form__actions .mono { letter-spacing: 0.14em; line-height: 16px; text-align: right; }
.enquiry .form__note { max-width: 558px; }
.enquiry .form__note a { display: block; margin-top: 2px; }
.enquiry button[type="submit"]:focus-visible { outline: 3px solid var(--np-ink); outline-offset: 3px; }
.enquiry button[type="submit"]:disabled { opacity: .7; cursor: default; }
.enquiry[data-state="sending"] button[type="submit"] .arrow, .enquiry[data-state="sending"] .btn__label { display: none; }
.enquiry[data-state="sending"] button[type="submit"]::before { content: "Sending…"; }
.enquiry[data-state="sent"] ~ .agent-frame, .enquiry[data-state="sent"] ~ .agent-cursor { display: none; }

/* Chip radio groups */
.chips { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.chips__legend { padding: 0; margin-bottom: 12px; letter-spacing: 0.14em; }
.chips__row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt { position: relative; display: inline-flex; }
.chip-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip-opt span {
  display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--np-hair); background: var(--np-band);
  font-size: 13px; line-height: 16px; font-weight: 500; color: var(--np-ink); white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.chip-opt:hover span { border-color: var(--np-muted); }
.chip-opt input:checked + span { background: #20242b; border-color: var(--np-ink); color: var(--np-btn-text); }
.chip-opt input:focus-visible + span { outline: 2px solid var(--np-lime); outline-offset: 3px; }

/* Success state (pattern: Enquiry states · 03 confirmed) */
.enquiry .form__success { display: none; flex-direction: column; gap: 20px; padding: 24px; border-radius: 12px; background: #e7eedf; border: 1px solid #777c82; }
.enquiry[data-state="sent"] .form__success { display: flex; }
.form__success-idx { font-size: 12px; line-height: 18px; letter-spacing: 0; color: var(--np-ink); }
.form__success-title { font-size: 34px; line-height: 38px; letter-spacing: 0; }
.form__success-text { font-size: 16px; line-height: 26px; }
.form__success-btn { min-height: 52px; border-radius: 28px; font-size: 15px; font-weight: 400; }

/* ---------- /01 What happens next ---------- */
.next { padding: 96px 0; border-top: 1px solid var(--np-foot-hair); }
.next__wrap { display: flex; flex-direction: column; gap: 40px; }
.next__cols { display: grid; grid-template-columns: repeat(3, 1fr); }
.next__col { display: flex; flex-direction: column; gap: 16px; padding: 8px 32px; border-right: 1px solid var(--np-foot-hair); }
.next__col:first-child { padding-left: 0; }
.next__col:last-child { padding-right: 0; border-right: 0; }
.next__idx { font-size: 10px; letter-spacing: 0.14em; color: #cedfc2; }
.next__title { font-size: 36px; line-height: 40px; letter-spacing: 0; }
.next__col p { font-size: 15px; line-height: 24px; color: var(--np-dark-muted); }

/* ---------- /02 Where our clients are ---------- */
.where { padding: 88px 0 80px; }
.where__wrap { display: flex; flex-direction: column; gap: 40px; }
.where__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.where__copy { display: flex; flex-direction: column; gap: 20px; max-width: 620px; }
.where__eyebrow { font-size: 11px; line-height: 16px; letter-spacing: 0.12em; }
.where__title { font-size: 56px; line-height: 60px; letter-spacing: 0; }
.where__lede { width: 420px; flex: none; font-size: 17px; line-height: 26px; color: var(--np-text-2); }

.map {
  position: relative; width: 100%; aspect-ratio: 1280 / 540; overflow: hidden; background: #eef0e9;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px, 20px 20px);
}
.map__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map__labels { position: absolute; inset: 0; }
.map__label {
  position: absolute; left: calc(var(--x) / 1280 * 100%); top: calc(var(--y) / 540 * 100%);
  padding: 8px 14px; border-radius: 6px; background: #fff; border: 1px solid #d6ddcc;
  font-size: 15px; line-height: 20px; color: var(--np-ink); white-space: nowrap;
}
.map__legend { position: absolute; left: 32px; bottom: 28px; display: flex; align-items: center; gap: 10px; }
.map__legend-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--np-lime); border: 1px solid #294c3c; }
.map__legend .mono { font-size: 11px; line-height: 16px; letter-spacing: 0.08em; text-transform: uppercase; color: #416556; }

.where__mobile { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .contact-hero { padding: 80px 0 64px; }
  .contact-hero__wrap { flex-direction: column; align-items: stretch; gap: 48px; }
  .contact-hero__copy { width: auto; }
  .contact-hero__title { font-size: 96px; line-height: 0.95; }
  .enquiry { width: 100%; }
  .enquiry .form__note { max-width: none; }
  .next__cols { grid-template-columns: 1fr; gap: 24px; }
  .next__col, .next__col:first-child, .next__col:last-child { padding: 0 0 24px; border-right: 0; border-bottom: 1px solid var(--np-foot-hair); }
  .next__col:last-child { border-bottom: 0; padding-bottom: 0; }
  .where__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .where__lede { width: auto; }
  .map__label { font-size: 13px; line-height: 18px; padding: 6px 10px; }
}

@media (max-width: 900px) {
  .contact-hero { padding: 36px 0 56px; }
  .contact-hero__copy { gap: 24px; }
  .contact-hero__title { font-size: 48px; line-height: 50px; letter-spacing: -0.01em; }
  .contact-hero__title br { display: none; }
  .contact-hero__lede { font-size: 17px; line-height: 27px; color: var(--np-ink); }
  .details { max-width: none; }
  .details__row { align-items: flex-start; }
  .details__row dd { text-align: right; line-height: 20px; }
  .details__links { flex-direction: column; align-items: flex-end; gap: 8px; }
  .enquiry { padding: 28px 20px 24px; }
  .enquiry__fields { gap: 24px; }
  .enquiry .field input, .enquiry .field textarea { font-size: 16px; line-height: 24px; }
  .enquiry .form__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .enquiry .form__actions .btn { min-height: 52px; font-size: 16px; }
  .enquiry .form__actions .mono { text-align: center; }
  .next { padding: 56px 0; }
  .next__wrap { gap: 24px; }
  .sec-head { padding-bottom: 24px; }
  .sec-head__idx { width: 48px; padding-top: 12px; }
  .sec-head__title { font-size: 36px; line-height: 40px; }
  .next__title { font-size: 30px; line-height: 34px; }
  .where { padding: 56px 0; }
  .where__wrap { gap: 24px; }
  .where__title { font-size: 40px; line-height: 44px; }
  .where__lede { font-size: 16px; line-height: 26px; }
  .map__label { font-size: 11px; line-height: 14px; padding: 4px 8px; border-radius: 4px; }
  .map__legend { left: 16px; bottom: 12px; }
  .map__legend .mono { font-size: 9px; }
}

@media (max-width: 720px) {
  /* Mobile artboard: the map becomes a dark "Based in London" block. */
  .where { padding: 0; }
  .where__wrap { width: 100%; gap: 0; }
  .where__head, .map { display: none; }
  .where__mobile { display: flex; flex-direction: column; gap: 20px; padding: 32px var(--np-gutter); }
  .where__mobile-title { font-size: 36px; line-height: 40px; letter-spacing: 0; }
  .where__mobile p { font-size: 16px; line-height: 27px; color: var(--np-dark-muted); }
  .where__mobile a { align-self: flex-start; font-size: 16px; line-height: 26px; text-decoration: underline; text-underline-offset: 3px; }
  .where__mobile a:hover { color: var(--np-lime); }
  .sec-head { flex-direction: column; gap: 12px; }
  .sec-head__idx { width: auto; padding-top: 0; }
}
