/* Contact — greeting hero with the Multan seal, direct lines, the stepped enquiry + tilting business card,
   topic index on paper, closing call CTA. Every class is prefixed ct- so shared components stay untouched. */

/* ---------- Hero ---------- */
.ct-hero { min-height: min(86vh, 820px); }
.ct-hero__frame { background: var(--ink); }
.ct-hero__lines {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(242, 238, 230, .045) 0 1px, transparent 1px calc(100% / 12));
  -webkit-mask-image: linear-gradient(180deg, transparent 4%, #000 35%, #000 70%, transparent 96%);
  mask-image: linear-gradient(180deg, transparent 4%, #000 35%, #000 70%, transparent 96%);
}
.ct-hero .phero__content { z-index: 2; }
.ct-hero .phero__foot .pill-row { justify-content: flex-end; }

/* the seal: rotating mono ring, hairline circles, a slow pulse and the logo mark */
.ct-seal {
  position: absolute; z-index: 1; top: calc(var(--hdr) + 56px);
  right: max(calc(var(--gutter) + var(--inset)), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  width: clamp(220px, min(27vw, 44vh), 380px); aspect-ratio: 1; pointer-events: none;
}
.ct-seal::before { content: ""; position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(closest-side, rgba(230, 173, 46, .22), rgba(230, 173, 46, .05) 60%, transparent); }
.ct-seal svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ct-seal__rings circle { fill: none; stroke: var(--rule-2); stroke-width: 1; }
.ct-seal__rings circle + circle { stroke: rgba(230, 173, 46, .45); }
.ct-seal__spin { animation: ct-spin 60s linear infinite; transform-origin: 50% 50%; }
.ct-seal__ticks { fill: none; stroke: rgba(242, 238, 230, .22); stroke-width: 7; stroke-dasharray: 1.2 6.44; }
.ct-seal__spin text { font-family: var(--mono); font-size: 15px; letter-spacing: .2em; fill: var(--gold); }
.ct-seal__pulse circle { fill: none; stroke: var(--gold); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; animation: ct-pulse 5.6s var(--ease-out) infinite; }
.ct-seal__pulse circle + circle { animation-delay: 2.8s; }
.ct-seal__mark { position: absolute; left: 50%; top: 50%; width: 40%; translate: -50% -50%; filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6)); }
@keyframes ct-spin { to { transform: rotate(360deg); } }
@keyframes ct-pulse { 0% { opacity: .55; transform: scale(.5); } 80%, 100% { opacity: 0; transform: scale(1.6); } }

/* pills whose dot holds a brand glyph (phone, mail, WhatsApp) keep it upright on hover */
.pill:hover .pill__arrow .ic.ct-still { transform: none; }

/* ---------- Direct lines ---------- */
.ct-methods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 18px); }
.ct-method { display: flex; flex-direction: column; min-height: 300px; }
.ct-method__ic { position: absolute; top: clamp(26px, 3vw, 40px); right: clamp(26px, 3vw, 40px); width: 22px; height: 22px; color: var(--gold); stroke-width: 1.3; opacity: .85; }
.ct-method__k { margin: 0 0 clamp(36px, 5vw, 64px); color: var(--gold); }
.ct-method.card h3 { margin-bottom: 18px; }
.ct-method__v { margin: 0; display: grid; gap: 4px; font-size: clamp(1.15rem, 1.5vw, 1.35rem); font-weight: 500; letter-spacing: .01em; color: var(--bone); }
.ct-method__v--sm { font-size: clamp(1rem, 1.2vw, 1.1rem); overflow-wrap: anywhere; }
.ct-method__v a { width: fit-content; transition: color .3s; }
.ct-method__v a:hover { color: var(--gold); }
.ct-method__s { margin: 6px 0 0; color: var(--mute); font-size: 15px; }
.ct-method__go, .ct-method__row { margin-top: auto; padding-top: 24px; }
.ct-method__go { align-self: flex-start; }
.ct-method__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ct-method__row .ct-method__go { margin: 0; padding-top: 0; }
.ct-method__go .ic { transition: transform .5s var(--ease-out); }
/* single-action cards: the whole card is the link */
.ct-method--link .ct-method__go::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: calc(var(--radius) * .7); }
.ct-method--link:hover .ct-method__go { background-size: 100% 1px; color: var(--gold); }
.ct-method--link:hover .ct-method__go .ic { transform: rotate(-45deg); }
.ct-method--link .ct-method__go:focus-visible { outline: none; }
.ct-method--link .ct-method__go:focus-visible::after { outline: 1.5px solid var(--gold); outline-offset: -1px; }
.ct-copy {
  position: relative; z-index: 2; height: 30px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--rule-2); color: var(--mute-2); font-size: 10.5px;
  transition: border-color .3s, color .3s;
}
.ct-copy:hover { border-color: rgba(230, 173, 46, .6); color: var(--gold); }
.ct-copy.is-done { border-color: var(--gold); color: var(--gold); }

/* ---------- Enquiry ---------- */
.ct-save[hidden], .ct-copy[hidden], .ct-aside__hint[hidden], .ct-preview[hidden] { display: none; }
.ct-enquiry__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: clamp(32px, 5vw, 88px); align-items: start; }

.ct-panel {
  position: relative; padding: clamp(24px, 4vw, 56px); border-radius: var(--radius); overflow: hidden; overflow: clip;
  border: 1px solid var(--rule); background: linear-gradient(180deg, rgba(242, 238, 230, .045), rgba(242, 238, 230, .012)), var(--ink-2);
}
.ct-panel::before { content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .6; }

/* progress (only once JS turns the form into steps) */
.ct-progress { display: none; margin-bottom: clamp(32px, 4vw, 48px); }
.ct-panel.is-stepped .ct-progress { display: block; }
.ct-progress ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; color: var(--mute); }
.ct-progress li { display: flex; gap: 10px; transition: color .5s var(--ease-out); }
.ct-progress li b { font-weight: 500; transition: color .5s; }
.ct-progress li.is-on { color: var(--mute-2); }
.ct-progress li.is-on b { color: var(--gold); }
.ct-progress li.is-cur { color: var(--bone); }
.ct-progress__bar { position: relative; display: block; height: 1px; background: var(--rule-2); }
.ct-progress__bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transform-origin: 0 50%; transform: scaleX(var(--p, .3333)); transition: transform 1.1s var(--ease-out); }

/* steps */
.ct-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.ct-step:focus { outline: none; } /* programmatic focus target on touch */
.ct-step + .ct-step { margin-top: 48px; padding-top: 44px; border-top: 1px solid var(--rule); }
.ct-step__q { float: left; width: 100%; padding: 0; margin: 0 0 12px; }
.ct-step__q + * { clear: both; }
.ct-step__n { display: block; margin-bottom: 16px; color: var(--gold); }
.ct-step__t { display: block; font-size: clamp(2.2rem, 4.2vw, 3.6rem); line-height: 1; letter-spacing: -.015em; }
.ct-step__hint { margin: 0 0 32px; color: var(--mute-2); }
.ct-panel.is-stepped .ct-step { display: none; }
.ct-panel.is-stepped .ct-step.is-current { display: block; margin: 0; padding: 0; border: 0; }
.ct-panel.is-stepped.is-moving .ct-step.is-current { animation: ct-step-in 1s var(--ease-out) both; }
@keyframes ct-step-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* step 1: role chips as large pills */
.ct-roles { display: flex; flex-wrap: wrap; gap: 12px; }
.ct-role { position: relative; }
.ct-role input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; }
.ct-role label {
  display: inline-flex; align-items: center; gap: 14px; min-height: 66px; padding: 0 28px 0 18px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--rule-2); background: rgba(242, 238, 230, .03); color: var(--mute-2);
  font-family: var(--serif); font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1;
  transition: border-color .45s var(--ease-out), background-color .45s var(--ease-out), color .45s, transform .6s var(--ease-out);
}
.ct-role label i { position: relative; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--rule-2); transition: border-color .4s; }
.ct-role label i::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform .5s var(--ease-out); }
.ct-role label:hover { border-color: rgba(230, 173, 46, .45); color: var(--bone); }
.ct-role input:checked + label { border-color: var(--gold); background: rgba(230, 173, 46, .1); color: var(--gold-2); font-style: italic; }
.ct-role input:checked + label i { border-color: var(--gold); }
.ct-role input:checked + label i::after { transform: scale(1); }
.ct-role input:focus-visible + label { outline: 1.5px solid var(--gold); outline-offset: 4px; }
.ct-role label:active { transform: scale(.98); }

/* step 2: details */
.ct-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 20px; }
.ct-opt { margin-left: 6px; color: var(--mute); letter-spacing: .1em; text-transform: lowercase; }

/* nav + send */
.ct-nav, .ct-send { display: flex; align-items: center; justify-content: space-between; gap: 16px 20px; margin-top: 36px; }
.ct-send { flex-wrap: wrap; }
.ct-panel:not(.is-stepped) .ct-nav, .ct-panel:not(.is-stepped) .ct-back { display: none; }
.ct-panel:not(.is-stepped) .ct-send { justify-content: flex-start; }
.ct-back {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 4px; border: 0; background: none; cursor: pointer;
  color: var(--mute-2); transition: color .3s;
}
.ct-back .ic { width: 16px; height: 16px; transform: rotate(180deg); transition: transform .5s var(--ease-out); }
.ct-back:hover { color: var(--bone); }
.ct-back:hover .ic { transform: rotate(180deg) translateX(4px); }
.ct-send .pill { padding-left: 22px; }

/* step 3: live preview of the message, as a chat bubble */
.ct-preview { margin-top: 26px; }
.ct-preview__k { margin: 0 0 12px; color: var(--mute); }
.ct-preview__bubble {
  position: relative; max-width: 520px; margin-left: auto; padding: 18px 20px 12px; border-radius: 20px 20px 6px 20px;
  background: linear-gradient(180deg, rgba(29, 143, 78, .2), rgba(29, 143, 78, .1)); border: 1px solid rgba(29, 143, 78, .38);
}
.ct-preview__bubble pre { margin: 0; font-family: var(--sans); font-size: 14.5px; line-height: 1.55; color: var(--bone); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow: auto; }
.ct-preview__tick { display: block; margin-top: 8px; text-align: right; font-size: 10px; color: #7fd8a5; }

.ct-form__note { display: flex; gap: 12px; align-items: flex-start; margin: 34px 0 0; padding-top: 22px; border-top: 1px solid var(--rule); color: var(--mute); font-size: 14.5px; }
.ct-form__note .ic { margin-top: .15em; color: var(--gold); }

/* the business card */
.ct-aside { display: grid; gap: 26px; }
@media (min-width: 1001px) and (min-height: 860px) { .ct-aside { position: sticky; top: calc(var(--hdr) + 32px); } }
.ct-vcard {
  position: relative; display: flex; flex-direction: column; width: 100%; max-width: 380px; aspect-ratio: 5 / 7.6; padding: clamp(24px, 2.6vw, 32px);
  border-radius: 22px; border: 1px solid rgba(230, 173, 46, .34);
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(230, 173, 46, .16), transparent 55%),
    repeating-radial-gradient(circle at 0% 100%, rgba(242, 238, 230, .03) 0 1px, transparent 1px 7px),
    linear-gradient(160deg, #19181b, #0d0d0f 72%);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: transform .7s var(--ease-out), border-color .5s;
}
.ct-vcard::before { content: ""; position: absolute; inset: 10px; border-radius: 14px; border: 1px solid rgba(230, 173, 46, .13); pointer-events: none; }
.ct-vcard:hover { border-color: rgba(230, 173, 46, .55); }
.ct-vcard__glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: screen; opacity: .5;
  background: radial-gradient(280px circle at var(--gx, 78%) var(--gy, 8%), rgba(246, 207, 110, .3), transparent 62%);
  transition: opacity .6s var(--ease-out);
}
.ct-vcard:hover .ct-vcard__glare { opacity: 1; }
.ct-vcard__top, .ct-vcard__name, .ct-vcard__list, .ct-vcard__foot { position: relative; z-index: 1; }
.ct-vcard__top { display: flex; justify-content: space-between; align-items: flex-start; transform: translateZ(26px); }
.ct-vcard__logo { width: 78px; }
.ct-vcard__spec { text-align: right; font-size: 10px; line-height: 1.7; color: var(--mute); }
.ct-vcard__name { margin-top: clamp(26px, 4vh, 44px); transform: translateZ(40px); }
.ct-vcard__word {
  margin: 0; font-size: clamp(3.6rem, 5.6vw, 4.8rem);
  background: linear-gradient(180deg, var(--gold-2), var(--gold) 55%, #8f6114); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ct-vcard__ent { margin: 10px 0 0; letter-spacing: .52em; color: var(--bone); }
.ct-vcard__tag { margin: 16px 0 0; font-size: 1.35rem; line-height: 1; color: var(--mute-2); }
.ct-vcard__list { margin: auto 0 0; padding-top: 24px; transform: translateZ(18px); }
.ct-vcard__list > div { display: grid; grid-template-columns: 58px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.ct-vcard__list dt { font-size: 10px; color: var(--mute); }
.ct-vcard__list dd { margin: 0; font-size: 14.5px; line-height: 1.5; }
.ct-vcard__list a { display: block; width: fit-content; transition: color .3s; }
.ct-vcard__list a:hover { color: var(--gold); }
.ct-vcard__foot { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid rgba(230, 173, 46, .3); font-size: 10px; color: var(--gold); }

.ct-aside__save { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.ct-aside__hint { margin: 0; max-width: 24ch; font-size: 14px; line-height: 1.45; color: var(--mute); }
.ct-save.is-done { --bg: rgba(230, 173, 46, .16); border-color: rgba(230, 173, 46, .5); }
.ct-aside__people { margin: 0; padding-top: 20px; border-top: 1px solid var(--rule); max-width: 380px; font-size: 14.5px; line-height: 1.6; color: var(--mute-2); }
.ct-aside__people .mono { display: block; margin-bottom: 8px; color: var(--gold); }
.ct-aside__people em { font-style: normal; color: var(--mute); }

/* ---------- Topics (paper) ---------- */
.ct-topics { margin: var(--inset); border-radius: var(--radius); }
.ct-topic-list { border-top: 1px solid rgba(22, 19, 15, .14); }
.ct-topic-list a {
  position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto 44px; align-items: center; gap: 24px;
  padding: clamp(18px, 2.2vw, 28px) 0; border-bottom: 1px solid rgba(22, 19, 15, .14); color: var(--paper-ink); isolation: isolate;
}
.ct-topic-list a::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -.5); z-index: -1; border-radius: 14px; background: linear-gradient(90deg, rgba(168, 112, 10, .1), transparent 75%); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease-out); }
.ct-topic-list a:hover::before, .ct-topic-list a:focus-visible::before { transform: scaleY(1); }
.ct-topic-list a:focus-visible { outline-color: #a8700a; outline-offset: 2px; }
.ct-topic-list .mono { color: #9a6b0c; }
.ct-topic-list__t { font-size: clamp(2.2rem, 5.2vw, 4.6rem); line-height: 1; letter-spacing: -.02em; transition: transform .8s var(--ease-out), color .4s; }
.ct-topic-list a:hover .ct-topic-list__t { transform: translateX(18px); font-style: italic; color: #a8700a; }
.ct-topic-list__d { color: #5b554b; font-size: 15px; text-align: right; }
.ct-topic-list .ic { width: 28px; height: 28px; justify-self: end; transition: transform .6s var(--ease-out), color .3s; }
.ct-topic-list a:hover .ic { transform: rotate(-45deg); color: #a8700a; }

/* ---------- Closing CTA ---------- */
.ct-cta__frame { background: var(--ink); }
.ct-cta__glow { position: absolute; inset: -20%; z-index: -1; pointer-events: none; background: radial-gradient(40% 45% at 50% 60%, rgba(230, 173, 46, .14), transparent 70%); animation: ct-drift 22s var(--ease-io) infinite alternate; }
@keyframes ct-drift { from { transform: translate(-6%, 4%) scale(1); } to { transform: translate(6%, -4%) scale(1.12); } }
.ct-cta__bottle { position: absolute; right: clamp(16px, 4vw, 72px); bottom: -14%; z-index: 0; width: clamp(180px, 19vw, 290px); rotate: 8deg; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .7)); pointer-events: none; }
.ct-cta .cta-band { z-index: 1; }
.ct-cta__lead { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin: 0 auto 40px; font-size: 12.5px; color: var(--mute-2); }
.ct-cta__lead a { white-space: nowrap; transition: color .3s; }
.ct-cta__lead a:last-child { text-transform: none; letter-spacing: .06em; }
.ct-cta__lead a:hover { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .ct-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-method { min-height: 260px; }
}
@media (max-width: 1199px) {
  .ct-cta__bottle { display: none; }
}
@media (max-width: 1000px) {
  .ct-enquiry__grid { grid-template-columns: 1fr; }
  .ct-aside { position: static; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: end; gap: 26px 40px; }
  .ct-aside__people { grid-column: 1 / -1; max-width: none; }
}
@media (max-width: 900px) {
  .ct-hero .phero__foot .pill-row { justify-content: flex-start; }
  .ct-topic-list a { grid-template-columns: 40px minmax(0, 1fr) 30px; gap: 4px 16px; }
  .ct-topic-list .mono { grid-row: 1; }
  .ct-topic-list__d { grid-column: 2; grid-row: 2; text-align: left; font-size: 14.5px; }
  .ct-topic-list .ic { grid-column: 3; grid-row: 1; width: 22px; height: 22px; }
}
@media (max-width: 760px) {
  .ct-seal { width: 112px; top: calc(var(--hdr) + 34px); right: calc(var(--gutter) + var(--inset)); }
  .ct-seal__spin text { display: none; }
  .ct-seal__ticks { stroke-width: 10; }
  .ct-aside { grid-template-columns: 1fr; }
  .ct-vcard { aspect-ratio: auto; max-width: 420px; }
  .ct-vcard__list { margin-top: 28px; }
}
@media (max-width: 640px) {
  .ct-methods { grid-template-columns: 1fr; }
  .ct-method { min-height: 0; }
  .ct-method__k { margin-bottom: 28px; }
  .ct-fields { grid-template-columns: 1fr; }
  .ct-role { flex: 1 1 auto; }
  .ct-role label { width: 100%; min-height: 58px; }
  .ct-progress ol { grid-template-columns: auto auto 1fr; gap: 20px; }
  .ct-progress li:not(.is-cur) span { display: none; }
  .ct-nav, .ct-send { flex-direction: column-reverse; align-items: stretch; }
  .ct-nav > span:empty { display: none; }
  .ct-back { align-self: flex-start; }
  .ct-send .pill-row { flex-direction: column; align-items: stretch; }
  .ct-nav .pill, .ct-send .pill { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .ct-seal__spin, .ct-seal__pulse circle, .ct-cta__glow { animation: none; }
}
