/* ════════════════════════════════════════════════
   /contact/ — "Personal conversation". Loaded only there, after editorial.css.
   Uses the site tokens, so light and dark mode both work.
   ════════════════════════════════════════════════ */

.ct {
  --ct-accent: var(--teal, #2F5A4C);
  --ct-wa: #1F7A4D;
  --ct-wa-hover: #186640;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(8px, 2vw, 24px) var(--pad-x) clamp(72px, 9vw, 120px);
}
html[data-theme="dark"] .ct { --ct-wa: #2E9A63; --ct-wa-hover: #37AD70; }
.ct section { padding: 0; border-bottom: 0; }
/* (higher specificity than main.css's global section padding) */
.ct .ct-intent { padding-bottom: clamp(28px, 3.5vw, 40px); }
.ct .ct-direct, .ct .ct-form { padding: clamp(22px, 3vw, 32px); }

.ct-eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ct-accent); }
html[data-theme="dark"] .ct-eyebrow { color: var(--teal); }
.ct-h2 { margin: 0 0 18px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; letter-spacing: -.02em; color: var(--ed-ink); }
.ct-h3 { margin: 0 0 6px; font-size: 21px; font-weight: 500; letter-spacing: -.02em; color: var(--ed-ink); }
.ct-muted { margin: 0 0 22px; font-size: 15px; line-height: 1.55; color: var(--ed-muted); }

/* ── Hero ───────────────────────────────────────── */
.ct-hero { display: grid; grid-template-columns: minmax(0, 1fr) clamp(200px, 30vw, 340px); gap: clamp(28px, 6vw, 88px); align-items: end; padding-bottom: clamp(40px, 5vw, 64px); }
.ct-hero__title { margin: 0 0 18px; font-size: clamp(36px, 5.2vw, 64px); line-height: 1.02; font-weight: 500; letter-spacing: -.035em; color: var(--ed-ink); text-wrap: balance; }
.ct-hero__title em { font-family: var(--font-accent); font-weight: 400; letter-spacing: -.01em; }
.ct-hero__lead { margin: 0 0 18px; max-width: 34em; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--ed-prose, var(--ed-ink)); }
.ct-hero__sign { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--font-accent); font-style: italic; font-size: 20px; color: var(--ed-ink); }
.ct-hero__sign small { font-family: var(--font-sans); font-style: normal; font-size: 14px; color: var(--ed-muted); }
.ct-hero__avatar { display: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
.ct-hero__photo { margin: 0; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: var(--ed-paper-2); }
.ct-hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; display: block; }

/* ── Intent cards ───────────────────────────────── */
.ct-intent { padding-bottom: clamp(28px, 3.5vw, 40px); }
.ct-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ct-card {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  min-height: 132px; padding: 18px 18px 16px; cursor: pointer;
  border: 1px solid var(--ed-line); border-radius: 12px; background: var(--ed-paper);
  transition: border-color .2s, background-color .2s;
}
.ct-card:hover { border-color: rgb(var(--ed-ink-rgb) / .3); background: var(--ed-paper-2); }
.ct-card__input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.ct-card__icon { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; border-radius: 10px; color: var(--ct-accent); background: rgb(var(--ed-ink-rgb) / .05); transition: background-color .2s, color .2s; }
html[data-theme="dark"] .ct-card__icon { color: var(--teal); }
.ct-card__title { font-size: 16px; font-weight: 500; letter-spacing: -.01em; color: var(--ed-ink); }
.ct-card__desc { font-size: 14px; line-height: 1.45; color: var(--ed-muted); }
.ct-card__tick { position: absolute; top: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--ed-paper); background: var(--ct-accent); opacity: 0; transform: scale(.7); transition: opacity .2s, transform .2s var(--ed-ease); }

.ct-card:has(.ct-card__input:checked) { border-color: var(--ct-accent); background: var(--ed-paper-2); box-shadow: inset 0 0 0 1px var(--ct-accent); }
html[data-theme="dark"] .ct-card:has(.ct-card__input:checked) { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.ct-card:has(.ct-card__input:checked) .ct-card__tick { opacity: 1; transform: none; }
html[data-theme="dark"] .ct-card__tick { background: var(--teal); }
.ct-card:has(.ct-card__input:checked) .ct-card__icon { color: var(--ed-paper); background: var(--ct-accent); }
html[data-theme="dark"] .ct-card:has(.ct-card__input:checked) .ct-card__icon { background: var(--teal); }
.ct-card:has(.ct-card__input:focus-visible) { outline: 2px solid var(--ed-ink); outline-offset: 3px; }

/* ── Ways to reach ──────────────────────────────── */
.ct-ways { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(16px, 2.4vw, 28px); align-items: start; }
.ct-direct, .ct-form { border: 1px solid var(--ed-line); border-radius: 14px; padding: clamp(22px, 3vw, 32px); }
.ct-direct { background: var(--ed-paper-2); }
.ct-form { background: var(--ed-paper); }

.ct-label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 500; color: var(--ed-ink); }
.ct-label span { font-weight: 400; color: var(--ed-muted); }
.ct-textarea {
  display: block; width: 100%; min-height: 96px; resize: vertical;
  padding: 12px 14px; border-radius: 10px; border: 1px solid var(--ed-line);
  background: var(--ed-paper); color: var(--ed-ink);
  font: 16px/1.5 var(--font-sans);
  transition: border-color .2s, box-shadow .2s;
}
.ct-textarea:focus { outline: none; border-color: var(--ed-ink); box-shadow: 0 0 0 3px rgb(var(--ed-ink-rgb) / .08); }

.ct-direct__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ct-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 500 16px/1 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .15s var(--ed-ease);
}
.ct-btn:active { transform: scale(.98); }
.ct-btn--wa { flex: 1 1 220px; background: var(--ct-wa); color: #fff; }
.ct-btn--wa:hover { background: var(--ct-wa-hover); }
.ct-btn--ghost { flex: 1 1 180px; color: var(--ed-ink); border-color: rgb(var(--ed-ink-rgb) / .25); background: transparent; }
.ct-btn--ghost:hover { border-color: var(--ed-ink); }
.ct-direct__email { margin: 14px 0 0; font-size: 14px; color: var(--ed-muted); }
.ct-direct__email a { color: var(--ed-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Website form (FluentForms) */
.ct-ff-hidden { display: none !important; }
.ct-form .ff-el-group { margin-bottom: 16px; }
.ct-form .ff-el-input--label label { font-size: 14px !important; font-weight: 500 !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ed-ink) !important; }
.ct-form .ff-el-form-control {
  min-height: 48px; padding: 12px 14px !important; border-radius: 10px !important;
  border: 1px solid var(--ed-line) !important; background: var(--ed-paper) !important;
  color: var(--ed-ink) !important; font-size: 16px !important; box-shadow: none !important;
}
html[data-theme="dark"] .ct-form .ff-el-form-control { background: var(--ed-paper-2) !important; }
.ct-form .ff-el-form-control:focus { border-color: var(--ed-ink) !important; box-shadow: 0 0 0 3px rgb(var(--ed-ink-rgb) / .08) !important; }
.ct-form textarea.ff-el-form-control { min-height: 130px; }
.ct-form .ff-el-is-error .ff-el-form-control { border-color: #B3412E !important; }
.ct-form .error.text-danger, .ct-form .ff-el-is-error .text-danger { margin-top: 6px; font-size: 13px; color: #B3412E; }
html[data-theme="dark"] .ct-form .error.text-danger { color: #F08A75; }
.ct-form .ff-btn-submit {
  min-height: 52px; padding: 0 26px !important; border-radius: 999px !important;
  background: var(--ed-ink) !important; color: var(--ed-paper) !important; border: 0 !important;
  font-size: 16px !important; font-weight: 500 !important;
}
.ct-form .ff-btn-submit:hover { background: var(--ed-ink-strong) !important; }
.ct-form .ff-btn-submit:disabled, .ct-form .ff-working .ff-btn-submit { opacity: .6; cursor: progress; }
.ct-form .ff-message-success {
  padding: 18px 20px; border-radius: 12px; border: 1px solid var(--ed-line);
  background: var(--ed-paper-2); color: var(--ed-ink); font-size: 16px; box-shadow: none;
}
.ct-form .enquiry-note { margin-bottom: 20px; }

/* ── Social ─────────────────────────────────────── */
.ct-social { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin-top: clamp(36px, 5vw, 56px); padding-top: 22px; border-top: 1px solid var(--ed-line); }
.ct-social__label { margin: 0; font-size: 14px; color: var(--ed-muted); }
.ct-social ul { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.ct-social a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 15px; color: var(--ed-ink); text-decoration: none; }
.ct-social a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 960px) {
  .ct-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-ways { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ct-hero { grid-template-columns: 1fr; padding-bottom: 28px; }
  .ct-hero__photo { display: none; }
  .ct-hero__avatar { display: block; }
  .ct-hero__title { font-size: clamp(32px, 9vw, 40px); margin-bottom: 14px; }
  .ct-hero__lead { font-size: 16px; }
  .ct-card { min-height: 0; padding: 14px; }
  .ct-card__icon { width: 34px; height: 34px; margin-bottom: 6px; }
  .ct-card__tick { top: 10px; right: 10px; }
  .ct-btn--wa, .ct-btn--ghost { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-card, .ct-card__tick, .ct-card__icon, .ct-btn, .ct-textarea { transition: none; }
}
