/* ==========================================================================
   Contact page (contact.html, .ct). Hand-written source, linked after
   css/work.css (tokens, hero, buttons, CTA) and css/about.css (sections).

   The form markup is the original, unchanged (#contactForm, .con-* classes,
   ids and the js/components/contactForm.js behaviour). Its base styles still
   come from css/pages/contact.css; the rules below only restyle it inside
   .ct-formcard to match the redesign.

   Signature moment (desktop, motion allowed, GSAP via js/contact.js): the
   message card in the hero types itself out. The markup is the finished
   card, so phones, reduced motion and a failed script show it complete.
   ========================================================================== */

.ct-hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center;
  padding: 88px 0 96px;
}
.ct-hero .wk-hero__title { font-size: clamp(48px, 6.4vw, 100px); margin-bottom: 24px; max-width: 12ch; }
.ct-hero .wk-hero__lede { margin-bottom: 32px; }
/* Heading written in, character by character (desktop, motion allowed).
   The visible letters are aria-hidden; screen readers read the sr-only copy. */
.ct-title .cw { display: inline-block; white-space: nowrap; }
.ct-title .cc, .ct-title__gold { display: inline-block; }
@media (min-width: 768px) and (prefers-reduced-motion: no-preference) {
  .ct-title .cc { animation: ctChar 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(0.1s + var(--i) * 0.03s); }
  .ct-title__gold { animation: ctGold 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(0.2s + var(--i) * 0.03s); }
}
/* Phones: the same write-in, quicker and without the blur (cheaper to paint). */
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .ct-title .cc { animation: ctCharLite 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(0.05s + var(--i) * 0.018s); }
  .ct-title__gold { animation: ctCharLite 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(0.1s + var(--i) * 0.018s); }
}
@keyframes ctCharLite { from { opacity: 0; transform: translate3d(0, 0.28em, 0); } to { opacity: 1; transform: none; } }
@keyframes ctChar { from { opacity: 0; transform: translate3d(0, 0.32em, 0); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes ctGold { from { opacity: 0; transform: translate3d(0, 0.4em, 0) scale(0.96); filter: blur(8px) drop-shadow(0 4px 14px rgba(30, 16, 0, 0)); } to { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 4px 14px rgba(30, 16, 0, 0.35)); } }
.ct-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.ct-hero__where { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-size: 14.5px; color: rgba(255, 255, 255, 0.78); }
.ct-hero__where svg { color: #f3d891; }

/* The message card (example) */
.ct-card {
  position: relative; max-width: 470px; margin-left: auto; padding: 22px; border-radius: 24px; background: #fff; color: #3b475b;
  box-shadow: 0 1px 2px rgba(11, 22, 48, 0.08), 0 40px 80px -30px rgba(3, 12, 40, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
.ct-card::before {
  content: ''; position: absolute; inset: -14px 18px auto; height: 100%; z-index: -1; border-radius: 26px;
  background: rgba(255, 255, 255, 0.14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); transform: rotate(-3deg);
}
.ct-card__top { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid #eef1f6; font-size: 13px; }
.ct-card__dots { display: flex; gap: 5px; }
.ct-card__dots i { width: 9px; height: 9px; border-radius: 50%; background: #d4dbe7; }
.ct-card__path { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; color: #5b6779; }
.ct-card__label { display: block; font-size: 11px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: #5b6779; margin-bottom: 8px; }
.ct-card__from { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: #0b1630; }
.ct-card__avatar { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(160deg, #e8effc, #c9d8f5); box-shadow: inset 0 0 0 1px rgba(31, 79, 184, 0.15); }
.ct-card__msg {
  min-height: 74px; padding: 14px 16px; border-radius: 16px 16px 16px 4px; margin-bottom: 16px;
  font-size: 16px; line-height: 1.5; color: #0b1630; background: #f3f6fc; box-shadow: inset 0 0 0 1px #e6ebf3;
}
.ct-card__caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: #1f4fb8; opacity: 0; }
.ct-card.is-typing .ct-card__caret { opacity: 1; animation: ctCaret 0.8s steps(1) infinite; }
@keyframes ctCaret { 50% { opacity: 0; } }
.ct-card__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.ct-card__chips span { padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #5b6779; background: #f1f4f9; box-shadow: inset 0 0 0 1px #e3e8f0; transition: color 0.3s, background 0.3s, box-shadow 0.3s; }
.ct-card__chips span.is-on { color: #fff; background: linear-gradient(160deg, #1b5bba, #143a8a); box-shadow: 0 6px 14px -8px rgba(20, 58, 138, 0.7); }
.ct-card__send { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ct-card__to { font-size: 12.5px; color: #5b6779; }
.ct-card__to b { color: #0b1630; font-weight: 600; }
.ct-card__btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 650;
  color: #1d1404; background: var(--gold-grad); background-size: 220% 100%; box-shadow: var(--sh-gold);
}
.ct-card__note { position: absolute; left: 22px; bottom: -40px; font-size: 12.5px; color: rgba(255, 255, 255, 0.72); }

/* ---------- ways to reach us ---------- */
.ct-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ct-way {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 30px; border-radius: 26px; color: var(--text); text-decoration: none; background: #fff;
  box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
a.ct-way:hover { transform: translateY(-4px); box-shadow: var(--sh-3), inset 0 0 0 1px var(--line-2); }
.ct-way__icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 16px; color: #fff;
  background: linear-gradient(160deg, #1b5bba, #102a5e); box-shadow: 0 10px 20px -10px rgba(16, 42, 94, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.ct-way--wa .ct-way__icon { background: linear-gradient(160deg, #25b864, #138a4a); }
.ct-way__kind { font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-text); }
.ct-way__value { font-size: 21px; font-weight: 650; letter-spacing: -0.02em; color: var(--ink); overflow-wrap: anywhere; }
.ct-way__sub { font-size: 15px; color: var(--muted); }
.ct-way__go { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--royal); }
.ct-way__go svg { transition: transform 0.35s var(--ease); }
a.ct-way:hover .ct-way__go svg { transform: translateX(4px); }
.ct-social { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; }
.ct-social > span { margin-right: 6px; font-size: 15px; color: var(--muted); }
.ct-social a {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink); text-decoration: none;
  background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.ct-social a:hover { transform: translateY(-2px); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line-2); }

.ct-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.ct-facts li { display: flex; gap: 12px; align-items: flex-start; padding: 18px 20px; border-radius: 20px; background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); font-size: 15px; line-height: 1.45; }
.ct-facts b { display: block; font-size: 12px; font-weight: 650; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 3px; }
.ct-fact__icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--royal); background: #eef3fc; }

/* ---------- form section ---------- */
.ct-form-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px 72px; align-items: start; }
.ct-next { counter-reset: none; margin-top: 30px; }
.ct-next li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid var(--line-2); }
.ct-next li:last-child { border-bottom: 1px solid var(--line-2); }
.ct-next__n {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; font-size: 13px; font-weight: 700; color: #1d1404;
  background: var(--gold-grad); background-size: 220% 100%; box-shadow: var(--sh-gold);
}
.ct-next h3 { font-size: 18px; letter-spacing: -0.015em; margin-bottom: 4px; }
.ct-next p { font-size: 15.5px; line-height: 1.55; }
.ct-formcard { padding: 40px 36px 34px; border-radius: 30px; background: #fff; box-shadow: var(--sh-3), inset 0 0 0 1px var(--line); }
.ct-formcard__title { font-size: 24px; font-weight: 650; letter-spacing: -0.025em; color: var(--ink); margin-bottom: 26px; }

/* restyle the original form (behaviour untouched) */
.ct-formcard .con-input, .ct-formcard .con-select { border-width: 1.5px; border-color: rgba(11, 22, 48, 0.14); background: #f6f8fc; border-radius: 14px; }
.ct-formcard .con-input:focus, .ct-formcard .con-select:focus { border-color: var(--royal-2); background: #fff; box-shadow: 0 0 0 4px rgba(42, 95, 208, 0.12); }
.ct-formcard .con-label { color: #5b6779; font-family: inherit; font-size: 15.5px; text-transform: none; letter-spacing: 0; } /* the shared rule set 11.5px uppercase Geist Mono: a 70 KB font fetched before the headline painted */
.ct-formcard .con-input:focus + .con-label, .ct-formcard .con-input:not(:placeholder-shown) + .con-label, .ct-formcard .con-input:valid + .con-label, .ct-formcard .con-label.con-label-select { font-size: 12.5px; font-weight: 600; }
.ct-formcard .con-input:focus + .con-label, .ct-formcard .con-input:not(:placeholder-shown) + .con-label, .ct-formcard .con-input:valid + .con-label, .ct-formcard .con-label-select { color: var(--royal); background: #fff; }
.ct-formcard .con-submit-btn {
  color: #1d1404; background: var(--gold-grad); background-size: 220% 100%; background-position: 20% 0; border-radius: 999px;
  box-shadow: var(--sh-gold); transition: background-position 0.6s var(--ease), transform 0.3s var(--ease);
}
.ct-formcard .con-submit-btn:hover { background-position: 80% 0; transform: translateY(-2px); }
.ct-formcard .con-submit-btn:focus-visible { outline: 3px solid var(--royal-2); outline-offset: 3px; }
.ct-formcard .checkbox-label { font-size: 14.5px; color: var(--text); }
.ct-formcard .checkbox-label a { color: var(--royal); }
.ct-formcard .con-error-message { color: #a3361f; }

.ct-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding: 36px 40px; border-radius: 28px; background: linear-gradient(180deg, #fff, #eef3fb); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); }
.ct-more h2 { font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -0.035em; line-height: 1.1; font-weight: 650; }
.ct-more p { margin-top: 6px; font-size: 16.5px; }
.ct-more__links { display: flex; flex-wrap: wrap; gap: 12px; }
.ct-more .wk-btn--line { color: var(--ink); background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line-2); }
.ct-more .wk-btn--line:hover { transform: translateY(-2px); }

/* ---------- tablet / phone ---------- */
@media (max-width: 1100px) {
  .ct-hero__inner { grid-template-columns: minmax(0, 1fr); gap: 64px; padding: 64px 0 96px; }
  .ct-card { margin: 0 auto; }
  .ct-form-wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1100px) { .ct-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .ct-ways { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .ct-facts { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) {
  .ct-hero__inner { padding: 44px 0 80px; gap: 48px; }
  .ct-hero .wk-hero__title { font-size: clamp(42px, 12vw, 58px); }
  .ct-ctas .wk-btn { flex: 1 1 auto; justify-content: center; }
  .ct-card { padding: 18px; border-radius: 20px; }
  .ct-card__msg { font-size: 15px; }
  .ct-card__note { position: static; display: block; margin-top: 14px; color: #5b6779; }
  .ct-way { padding: 24px; border-radius: 22px; }
  a.ct-way:hover, .ct-social a:hover { transform: none; }
  .ct-formcard { padding: 28px 18px 24px; border-radius: 24px; }
  .ct-more { padding: 26px 22px; border-radius: 22px; }
  .ct-more__links .wk-btn { flex: 1 1 auto; justify-content: center; }
}

/* One easing family site-wide: the form's floating labels, underline and icons
   move on the house curve instead of the old overshoot. Timing only; fields
   and behaviour are untouched. */
.ct-formcard :is(.con-label, .con-input-border, .con-select-icon, input) { transition-timing-function: var(--ease) !important; }

/* Phones (2026-11-23): body copy at least 16px; the consent box is easy to hit. */
@media (max-width: 767px) {
  .ct-facts li, .ct-next p { font-size: 16px; }
  .ct-formcard .checkbox-label { font-size: 15px; }
}
