/* ============================================================
   CONTACT (2026)

   The shortest path from "interested" to "in touch". In order:
     1. the promise, and every direct way to reach the team, as rows a
        thumb can tap (call, email, Instagram, where we are);
     2. the form, on a navy card with the brand's folded corner: what you
        need picked with one tap, then name, phone, email, and a few lines
        about the project; beside it on a laptop, under it on a phone, what
        happens after you send it;
     3. the questions people ask before they get in touch.

   Built from the same parts as the Work and Services pages (their tokens,
   buttons, words that rise into place, folded corners, and question tiles),
   so it reads as the same site. The form posts through main.js (initForms)
   exactly as before; only its look has changed. Inputs are 16px, so a phone
   never zooms in when one is tapped.

   Standing rules: no gradients, every surface one flat colour; mobile first,
   every media query below only adds room as the screen grows.
   ============================================================ */

body.theme-dark .ct {
  --ct-bg:      #06192B;
  --ct-brand:   #104068;
  --ct-card:    #0E3152;
  --ct-teal:    #73BEC6;
  --ct-teal-hi: #62BEC2;
  --ct-teal-lt: #8DD1D8;
  --ct-ink:     #071E33;
  --ct-text:    #EAF2F6;
  --ct-text-2:  rgba(234, 242, 246, .74);
  --ct-tint:    rgba(115, 190, 198, .07);
  --ct-line:    rgba(115, 190, 198, .22);
  --ct-corner:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cdefs%3E%3Cfilter id='b' x='-30%25' y='-30%25' width='160%25' height='160%25'%3E%3CfeGaussianBlur stdDeviation='3'/%3E%3C/filter%3E%3C/defs%3E%3Cpath d='M20 0Q28 0 33.66 5.66L114.34 86.34Q120 92 120 100V0Z' fill='%2306192B'/%3E%3Cpath d='M28 7Q28 0 32.95 4.95Q78.2 41.8 115.05 87.05Q120 92 113 92H40Q28 92 28 80Z' fill='%23000' fill-opacity='.35' filter='url(%23b)' transform='translate(-3 3)'/%3E%3Cpath d='M28 7Q28 0 32.95 4.95Q78.2 41.8 115.05 87.05Q120 92 113 92H40Q28 92 28 80Z' fill='%2373BEC6'/%3E%3C/svg%3E");   /* the folded corner, drawn once */
  --ct-t-body:  clamp(.96rem, .93rem + .18vw, 1.04rem);
  --ct-t-lead:  clamp(1.02rem, .96rem + .4vw, 1.24rem);
  display: block;
  background: var(--ct-bg);
  color: var(--ct-text);
}
.ct a:focus-visible, .ct button:focus-visible { outline: 2px solid var(--ct-teal); outline-offset: 3px; }
body.theme-dark .ct a[href^="tel:"] { white-space: nowrap; }

/* ---- shared: label, heading, words that rise ------------------------------ */
body.theme-dark .ct .ct-kicker {
  margin: 0;
  font-family: var(--font-body); font-size: .74rem; font-weight: 600; line-height: 1.3;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ct-teal);
}
body.theme-dark .ct .ct-h2 {
  margin: .8rem 0 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.3rem, 1.4rem + 3.8vw, 4.6rem);
  line-height: 1.06; letter-spacing: -.025em;
  color: #fff;
}
body.theme-dark .ct .ct-h2 > span:not(.w),
body.theme-dark .ct .ct-title > span:not(.w) { color: var(--ct-teal); font-weight: 400; }
.ct [data-split].is-split .w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: .1em .07em .14em 0; margin: -.1em -.07em -.14em 0;
}
.ct [data-split].is-split .w__i { display: inline-block; }
html.js:not(.no-anim) .ct [data-split].is-split .w__i {
  transform: translate3d(0, 115%, 0);
  transition: transform 1s var(--ease-out) calc(var(--wi, 0) * 70ms + 60ms);
}
html.js:not(.no-anim) .ct .is-in[data-split].is-split .w__i,
html.js:not(.no-anim) .ct .is-in [data-split].is-split .w__i { transform: none; }

/* ---- the button (as on the Work and Services pages) ------------------------ */
body.theme-dark .ct .ct-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  width: 100%; min-height: 3.3rem; padding: .9rem 1.6rem;
  border: 0; border-radius: 999px;
  background: var(--ct-teal-hi); color: var(--ct-ink);
  font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1.2;
  cursor: pointer;
  transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) + var(--lift, 0px)), 0);
  transition: background-color .3s var(--ease), transform .35s var(--ease), opacity .3s var(--ease);
}
body.theme-dark .ct .ct-btn .ico { font-size: .85em; transition: transform .3s var(--ease); }
body.theme-dark .ct .ct-btn:disabled { opacity: .7; cursor: progress; }
@media (hover: hover) {
  body.theme-dark .ct .ct-btn:hover:not(:disabled) { --lift: -1px; background: #fff; }
  body.theme-dark .ct .ct-btn:hover:not(:disabled) .ico { transform: translateX(3px); }
}

/* ---- 1. the promise, and every way to reach us ----------------------------- */
body.theme-dark .ct .ct-hero { padding: 6.75rem 0 clamp(2rem, 5vw, 3.4rem); }
.ct-hero__grid { display: grid; gap: clamp(1.6rem, 4vw, 3rem); }
body.theme-dark .ct .ct-title {
  margin: .9rem 0 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 1.5rem + 4.1vw, 5.1rem);   /* two lines on a laptop too: the heavy half, the light half */
  line-height: 1.02; letter-spacing: -.035em;
  color: #fff;
  text-wrap: balance;
}
body.theme-dark .ct .ct-lead {
  margin: 1.1rem 0 0; max-width: 38ch;
  font-size: var(--ct-t-lead); line-height: 1.55;
  color: var(--ct-text-2);
  text-wrap: pretty;
}
body.theme-dark .ct .ct-reach { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
body.theme-dark .ct .ct-reach__item {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .95rem;
  padding: .9rem 1.05rem;
  border-radius: 18px;
  background: var(--ct-tint);
  box-shadow: inset 0 0 0 1px rgba(115, 190, 198, .1);
}
body.theme-dark .ct .ct-reach__ic {
  display: grid; place-items: center;
  width: 2.7rem; height: 2.7rem; border-radius: 12px;
  background: rgba(115, 190, 198, .14); color: var(--ct-teal);
  font-size: 1.1rem;
}
body.theme-dark .ct .ct-reach__label {
  display: block;
  font-size: .7rem; font-weight: 600; line-height: 1.3;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ct-teal);
}
body.theme-dark .ct .ct-reach__value,
body.theme-dark .ct .ct-reach__value a {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(.98rem, .94rem + .2vw, 1.08rem); line-height: 1.4; letter-spacing: -.01em;
  color: #fff;
  overflow-wrap: anywhere;
}
body.theme-dark .ct .ct-reach__value a { display: block; width: fit-content; padding: .12rem 0; text-decoration: none; }
/* thumb-sized targets: a row with one link is tappable across the whole row;
   the row with two numbers gives each number a full line of its own */
body.theme-dark .ct .ct-reach__item { position: relative; }
body.theme-dark .ct .ct-reach__value a:only-child::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
body.theme-dark .ct .ct-reach__value a:not(:only-child) { padding: .58rem 0; }
body.theme-dark .ct .ct-reach__item:focus-within { box-shadow: inset 0 0 0 2px var(--ct-teal); }
body.theme-dark .ct .ct-reach__value a:focus-visible { outline: none; }
@media (hover: hover) { body.theme-dark .ct .ct-reach__value a:hover { color: var(--ct-teal-lt); } }

/* ---- 2. the form, and what happens next ------------------------------------ */
body.theme-dark .ct .ct-main { padding: clamp(.5rem, 2vw, 1.5rem) 0 clamp(3.4rem, 8vw, 6rem); }
.ct-grid { display: grid; gap: clamp(1.6rem, 4vw, 3rem); }
body.theme-dark .ct .ct-card {
  --f: 1.7rem;
  position: relative;
  padding: clamp(1.4rem, 1rem + 2.4vw, 2.8rem);
  border-radius: 26px 0 26px 26px;          /* the fold takes the fourth corner */
  background: var(--ct-card);
  box-shadow: 0 30px 50px -32px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(115, 190, 198, .14);
}
.ct-card::after {
  content: "";
  position: absolute; top: 0; right: 0;
  width: calc(var(--f) * 1.2); height: calc(var(--f) * 1.2);
  background: var(--ct-corner) 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}
body.theme-dark .ct .ct-card__title {
  margin: 0; padding-right: 2rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem);
  line-height: 1.1; letter-spacing: -.02em;
  color: #fff;
}
body.theme-dark .ct .ct-card__lead { margin: .55rem 0 0; font-size: var(--ct-t-body); line-height: 1.6; color: var(--ct-text-2); }

.ct-form { margin-top: clamp(1.4rem, 3vw, 2rem); }
body.theme-dark .ct .ct-choice { margin: 0; padding: 0; border: 0; min-width: 0; }
body.theme-dark .ct .ct-legend,
body.theme-dark .ct .ct-field label {
  display: block; padding: 0; margin: 0 0 .55rem;
  font-family: var(--font-body); font-size: .72rem; font-weight: 600; line-height: 1.3;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ct-text-2);
}
/* what you need: one tap. The radio stays in place, invisible, over its pill,
   so it is still a real control for keyboards and screen readers. */
.ct-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.ct-chip { position: relative; display: inline-flex; }
.ct-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
body.theme-dark .ct .ct-chip span {
  display: inline-flex; align-items: center;
  min-height: 2.75rem; padding: .55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--ct-line);
  font-family: var(--font-body); font-size: .92rem; font-weight: 600; line-height: 1.2;
  color: var(--ct-text-2);
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
body.theme-dark .ct .ct-chip input:checked + span { background: var(--ct-teal-hi); border-color: var(--ct-teal-hi); color: var(--ct-ink); }
body.theme-dark .ct .ct-chip input:focus-visible + span { outline: 2px solid var(--ct-teal); outline-offset: 3px; }
@media (hover: hover) { body.theme-dark .ct .ct-chip:hover input:not(:checked) + span { border-color: var(--ct-teal); color: #fff; } }

.ct-fields { display: grid; gap: 1.05rem; margin-top: 1.5rem; }
body.theme-dark .ct .ct-field input,
body.theme-dark .ct .ct-field textarea {
  display: block; width: 100%;
  min-height: 3.2rem; padding: .85rem 1rem;
  border: 1px solid var(--ct-line); border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  color: #fff;
  font-family: var(--font-body); font-size: 1rem; line-height: 1.4;   /* 16px: no zoom on focus */
  transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
body.theme-dark .ct .ct-field textarea { min-height: 8.5rem; resize: vertical; line-height: 1.55; }
body.theme-dark .ct .ct-field ::placeholder { color: rgba(234, 242, 246, .38); }
body.theme-dark .ct .ct-field input:focus,
body.theme-dark .ct .ct-field textarea:focus {
  outline: none;
  border-color: var(--ct-teal);
  background: rgba(115, 190, 198, .07);
  box-shadow: 0 0 0 3px rgba(115, 190, 198, .18);
}
.ct-send { margin-top: 1.5rem; }
body.theme-dark .ct .ct-status:empty { display: none; }
body.theme-dark .ct .ct-status {
  margin: 1rem 0 0; padding: .8rem 1rem;
  border-radius: 14px;
  font-size: .95rem; line-height: 1.5;
  background: rgba(115, 190, 198, .1); color: var(--ct-teal-lt);
}
body.theme-dark .ct .ct-status.is-err { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 3px 0 0 var(--ct-teal); }
body.theme-dark .ct .ct-note { margin: .9rem 0 0; font-size: .84rem; line-height: 1.5; color: rgba(234, 242, 246, .55); }

/* what happens next: three short tiles, folded like the service tiles */
body.theme-dark .ct .ct-side__title {
  margin: 0;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.15rem, 1.05rem + .4vw, 1.4rem); letter-spacing: -.015em;
  color: #fff;
}
body.theme-dark .ct .ct-steps { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .6rem; }
body.theme-dark .ct .ct-step {
  --f: 1.1rem;
  position: relative;
  display: grid; gap: .3rem;
  padding: 1.05rem 1.2rem 1.15rem;
  border-radius: 18px 0 18px 18px;
  background: var(--ct-tint);
  box-shadow: inset 0 0 0 1px rgba(115, 190, 198, .1);
}
.ct-step::after {
  content: "";
  position: absolute; top: 0; right: 0;
  width: calc(var(--f) * 1.2); height: calc(var(--f) * 1.2);
  background: var(--ct-corner) 0 0 / 100% 100% no-repeat;
}
body.theme-dark .ct .ct-step strong {
  padding-right: 1.2rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.02rem; line-height: 1.3; letter-spacing: -.01em;
  color: #fff;
}
body.theme-dark .ct .ct-step span { font-size: .92rem; line-height: 1.55; color: var(--ct-text-2); }
body.theme-dark .ct .ct-promise {
  margin: 1.2rem 0 0;
  font-size: .9rem; line-height: 1.6;
  color: var(--ct-text-2);
}

/* ---- 3. the questions (the site's accordion, as quiet tiles) ---------------- */
body.theme-dark .ct .ct-faq { padding: clamp(1rem, 3vw, 2rem) 0 clamp(4rem, 9vw, 7rem); }
.ct-faq__grid { display: grid; gap: clamp(1.8rem, 4vw, 2.6rem); }
body.theme-dark .ct .ct-faq__lead { margin: 1rem 0 0; max-width: 34ch; font-size: var(--ct-t-body); line-height: 1.6; color: var(--ct-text-2); }
body.theme-dark .ct .ct-faq__lead a { padding: .5rem 0; color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--ct-teal); text-decoration-thickness: 2px; text-underline-offset: 4px; }
body.theme-dark .ct .faq { display: grid; gap: .6rem; border: 0; }
body.theme-dark .ct .faq__item { border: 0; border-radius: 18px; background: var(--ct-tint); padding: 0 1.2rem; transition: background-color .3s var(--ease); }
body.theme-dark .ct .faq__item.is-open { background: rgba(115, 190, 198, .11); }
body.theme-dark .ct .faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.15rem 0;
  font-family: var(--font-display); font-size: clamp(1rem, .96rem + .3vw, 1.16rem); font-weight: 600; line-height: 1.35;
  color: #fff; text-align: left;
  background: none; border: 0; cursor: pointer;
}
/* a plain drawn plus, no ring, that turns into a cross (as on Services) */
body.theme-dark .ct .faq__q .ic {
  position: relative; flex: none;
  width: 22px; height: 22px; border: 0; border-radius: 0; background: transparent;
  transition: transform .4s var(--ease);
}
body.theme-dark .ct .faq__q .ic::before,
body.theme-dark .ct .faq__q .ic::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 14px; height: 2px; margin: -1px 0 0 -7px;
  border-radius: 2px; background: var(--ct-teal);
}
body.theme-dark .ct .faq__q .ic::after { transform: rotate(90deg); }
body.theme-dark .ct .faq__item.is-open .faq__q .ic { transform: rotate(45deg); }
body.theme-dark .ct .faq__a { overflow: hidden; max-height: 0; transition: max-height .45s var(--ease); }
body.theme-dark .ct .faq__a-inner { padding: 0 0 1.25rem; max-width: 62ch; font-size: var(--ct-t-body); line-height: 1.65; color: var(--ct-text-2); }

/* ---- the "View" cursor ring stays the site's own (home-dark.css) ------------ */

/* ============================================================
   Larger screens: only additions from here on.
   ============================================================ */
@media (min-width: 560px) and (max-width: 899px) {
  body.theme-dark .ct .ct-reach { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 640px) {
  .ct-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ct-field--wide { grid-column: 1 / -1; }
  body.theme-dark .ct .ct-btn { width: auto; }
}
@media (min-width: 900px) {
  body.theme-dark .ct .ct-hero { padding-top: 8.5rem; }
  .ct-hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: end; column-gap: clamp(2.5rem, 5vw, 5rem); }
  .ct-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; column-gap: clamp(2rem, 4vw, 4rem); }
  /* what happens next stays in view while the form is filled in */
  .ct-side { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
  .ct-faq__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4rem; align-items: start; }
  .ct-faq__head { position: sticky; top: calc(var(--nav-h) + 2rem); }
}

/* ============================================================
   Less motion: everything lands where it would end up, and stays.
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .ct [data-split] .w__i { transform: none !important; }
  .ct .ct-btn, .ct .ct-chip span { transition: none !important; }
}
