/* =========================================================
   Solid Core Digital — Contact page
   Loads after styles.css (global tokens, header, footer, buttons, .pillars)
   and work.css (footer legal line). Desktop values are 1:1 with the Figma
   “contact page” frame (1440px).
   Breakpoints follow the site: 1439 / 1279 / 1199 / 1023 / 860 / 767 / 600 / 479
   ========================================================= */

/* =========================================================
   HERO
   ========================================================= */
.chero { position: relative; height: 733px; overflow: hidden; background: #01020a; color: #fff; }
.chero__inner {
  position: relative; height: 100%; max-width: 1440px; margin-inline: auto;
  display: grid; grid-template-columns: 622px minmax(0, 499px); column-gap: 58px; align-items: start;
  padding: 0 153px 0 108px;
}
.chero__copy { position: relative; z-index: 2; padding-top: 185.88px; display: flex; flex-direction: column; align-items: flex-start; }
.chero__eyebrow { margin-bottom: 25px; font-family: var(--f-ui); font-weight: 700; font-size: 12px; line-height: 16px; letter-spacing: .3px; text-transform: uppercase; color: var(--blue-accent); }
.chero__title { width: 575px; max-width: 100%; margin-bottom: 24px; font-family: var(--f-display); font-weight: 700; font-size: 60px; line-height: 62px; letter-spacing: -1.3px; color: #fff; }
.chero__title-l2 { display: block; padding-bottom: 0; }
.chero__lead { width: 547px; max-width: 100%; margin-bottom: 28.12px; font-weight: 500; font-size: 18px; line-height: 24px; color: var(--text-soft); }
.chero__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.chero__btn { height: 52px; padding: 0 26px 0 28px; gap: 12px; font-size: 18px; line-height: 20px; letter-spacing: .35px; }

/* glass proof bar — homepage .pillars with this page’s Figma geometry */
.cpills {
  width: 635px; max-width: none; margin: 48px 0 0 -13px; align-items: center;
  background: linear-gradient(131.78deg, rgba(9, 24, 48, .58) 0%, rgba(5, 15, 33, .72) 50%, rgba(2, 8, 20, .85) 100%);
}
.cpill { display: flex; align-items: center; gap: 15.352px; min-width: 0; }
.cpill:nth-child(1) { flex: 1 1 0; padding: 10.235px 20.469px 10.235px 0; }
.cpill:nth-child(2) { flex: 0 0 199px; justify-content: center; padding: 0 15px 0 15.64px; border-left: .64px solid rgba(6, 182, 212, .15); }
.cpill:nth-child(3) { flex: 1 1 0; padding-left: 21.109px; border-left: .64px solid rgba(6, 182, 212, .15); }
.cpill img { width: 36px; height: 36px; flex: none; transition: transform .5s var(--ease-spring); }
.cpill:nth-child(3) img { filter: drop-shadow(0 0 3px rgba(56, 189, 248, .65)); }
.cpill:hover img { transform: translateY(-2px) scale(1.06); }
.cpill h3 { padding-bottom: 2.559px; font-weight: 700; font-size: 16px; line-height: 20.469px; letter-spacing: -.3838px; color: var(--text-soft); white-space: nowrap; }
.cpill:nth-child(2) h3 { font-weight: 500; font-size: 14.682px; }
.cpill:nth-child(3) h3 { font-size: 14.682px; padding-top: 3px; }

/* Right column: option cards + testimonial over the glowing horizon arc */
.chero__aside { position: relative; padding-top: 191px; }
.chero__arc { position: absolute; inset: 0; pointer-events: none; }
.chero__arc-line, .chero__arc-glow { position: absolute; transform: rotate(-9.19deg); }
.chero__arc-line { left: -61.43px; top: 273.19px; width: 780px; height: 483px; border-top: 3px solid rgba(56, 189, 248, .95); border-radius: 999px; }
.chero__arc-glow {
  left: -61.68px; top: 276.21px; width: 780px; height: 480px; border-radius: 315px;
  box-shadow: 0 -10px 40px -5px rgba(56, 189, 248, .6), 0 -25px 80px 10px rgba(14, 165, 233, .35), inset 0 10px 30px 0 rgba(56, 189, 248, .3);
}

.copts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(173px, auto); gap: 14px; }
.copt {
  position: relative; align-self: start; min-height: 148px; padding: 20px 20px 19px; overflow: hidden;
  display: flex; flex-direction: column; border-radius: 16px; border: 1px solid rgba(37, 99, 235, .4);
  background: var(--glass-dark); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform .5s var(--ease-out), border-color .35s, box-shadow .5s var(--ease-out);
}
.copt:hover, .copt:focus-visible { transform: translateY(-4px); border-color: rgba(59, 130, 246, 1); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8), 0 0 28px -8px rgba(37, 99, 235, .65); }
.copt__top { display: flex; align-items: flex-start; justify-content: space-between; }
.copt__icon { width: 48px; height: 48px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #2563eb; box-shadow: inset 0 2px 4px 0 rgba(59, 130, 246, .2); }
.copt__msg { width: 18.33px; height: 17.2px; translate: 0 .77px; }
.copt__go { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #fff; transition: transform .45s var(--ease-spring); }
.copt__go img { transition: transform .45s var(--ease-out); }
.copt:hover .copt__go { transform: scale(1.08); }
.copt:hover .copt__go img { transform: rotate(45deg); }
.copt__title { margin-top: 16px; font-weight: 700; font-size: 16px; line-height: 24px; color: #fff; }
.copt__title--inter { font-family: var(--f-ui); }
.copt__desc { margin-top: 4px; font-size: 12px; line-height: 19.5px; color: var(--text-soft); }

.cquote {
  position: relative; z-index: 1; margin-top: 16px; height: 94.63px; padding-left: 20px;
  display: flex; align-items: center; border-radius: 16px; border: 1px solid rgba(37, 99, 235, .5);
  background: var(--glass-dark); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.cquote__text { display: flex; align-items: center; flex: 0 0 234.13px; min-width: 0; }
.cquote__mark { width: 10.9px; flex: none; font-family: "Liberation Serif", "Times New Roman", Times, serif; font-size: 24px; line-height: 24px; color: var(--blue-500); }
.cquote__words { margin-left: 14px; font-family: var(--f-ui); font-style: italic; font-size: 12px; line-height: 17.88px; color: var(--text-soft); white-space: nowrap; }
.cquote__rule { width: .86px; height: 32px; flex: none; background: rgba(51, 65, 85, .6); }
.cquote__owner { display: flex; align-items: center; min-width: 0; margin-left: 5.71px; }
.cquote__icon {
  position: relative; width: 32px; height: 32px; flex: none; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center; background: var(--blue-600); box-shadow: inset 0 2px 4px 0 rgba(16, 185, 129, .2);
}
.cquote__icon img { width: 21px; height: 21px; filter: drop-shadow(0 0 1.2px rgba(255, 255, 255, .45)); }
.cquote__owner p { margin-left: 8.8px; display: flex; flex-direction: column; }
.cquote__owner b { min-height: 17px; font-family: var(--f-ui); font-weight: 600; font-size: 11px; line-height: 13.75px; color: #e2e8f0; }
.cquote__owner span { font-weight: 500; font-size: 10px; line-height: 13.75px; color: var(--text-soft); white-space: nowrap; }

/* =========================================================
   FORM SECTION
   ========================================================= */
.cform { position: relative; overflow: hidden; padding: 119px 24px 75px; border-bottom: 4px solid #fff; background: #f4f8fe; }
.cform__bg { position: absolute; inset: 0; pointer-events: none; }
.cform__bg img { width: 100%; height: 100%; object-fit: cover; }
.cform__inner {
  position: relative; max-width: 1168px; margin-inline: auto;
  display: grid; grid-template-columns: minmax(0, 454fr) minmax(0, 658fr); column-gap: 56px; align-items: start;
  grid-template-areas: "head card" "next card"; grid-template-rows: auto 1fr;
}

.cform__head { grid-area: head; min-height: 336px; padding-top: 8px; display: flex; flex-direction: column; gap: 12px; }
.cform__eyebrow { font-weight: 700; font-size: 14px; line-height: 16.5px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--blue-accent); }
.cform__title { font-family: var(--f-body); font-weight: 700; font-size: 48px; line-height: 52px; letter-spacing: -1.3px; color: var(--ink-2); }
.cform__title .grad-text { padding-bottom: 0; }
.cform__title-l3 { display: block; }
.cform__lead {
  max-width: 512px; padding-top: 6.875px; font-weight: 500; font-size: 16px; line-height: 24.38px;
  background: var(--grad-dark-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}

.cnext {
  grid-area: next; width: 483px; max-width: calc(100% + 29px); padding: 29px; border-radius: 16px;
  background: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 0 4px 0 rgba(0, 0, 0, .25);
}
.cnext__title { font-weight: 700; font-size: 24px; line-height: 28px; letter-spacing: -.5px; color: var(--ink); }
.cnext__list { margin-top: 24px; padding: 20px 0 28px; display: flex; flex-direction: column; gap: 24px; }
.cnext__list li { display: flex; align-items: flex-start; gap: 16px; }
.cnext__icon {
  width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center;
  background: #2565ec; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .05)); transition: transform .5s var(--ease-spring);
}
.cnext__list li:hover .cnext__icon { transform: translateY(-2px) rotate(-6deg); }
.cnext__list div { padding-top: 2px; display: flex; flex-direction: column; gap: 2px; font-family: var(--f-ui); }
.cnext__list li.cnext__li--gap div { gap: 1.28px; }
.cnext__list b { font-weight: 700; font-size: 16px; line-height: 22px; color: var(--ink); white-space: nowrap; }
.cnext__list span { font-size: 13.5px; line-height: 18.56px; color: var(--slate-500); white-space: nowrap; }

/* ---------- Form card ---------- */
.ccard {
  grid-area: card; padding: 44px 44px 47px; border-radius: 24px; background: #fff;
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, .05), 0 0 2px 1px rgba(0, 0, 0, .03), inset 0 0 4px 0 rgba(0, 0, 0, .25), inset 0 0 4px 0 rgba(0, 0, 0, .25);
}
.cf { position: relative; font-family: var(--f-ui); }
.cf__sec { position: relative; min-width: 0; margin: 0; padding: 0; border: 0; }
.cf__h { display: block; padding: 0; font-weight: 700; font-size: 20px; line-height: 28px; letter-spacing: -.5px; color: var(--ink); }
.cf__sub { margin-top: 4px; font-size: 13.5px; line-height: 20.25px; color: var(--slate-500); }
.cf__sub--manrope { font-family: var(--f-body); font-size: 14px; }

.cf__row { margin-top: 19px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
.cf__field { position: relative; min-width: 0; }
.cf__label { display: flex; align-items: flex-start; gap: 3px; min-height: 20px; font-weight: 600; font-size: 13px; line-height: 19.5px; color: #1e293b; }
.cf__opt { padding: 2px 8px; border-radius: 9999px; background: #f1f5f9; font-family: var(--f-num); font-weight: 400; font-size: 12px; line-height: 16px; color: var(--slate-500); }
.cf__control { position: relative; margin-top: 6px; }
.cf__ico { position: absolute; left: 14px; top: 50%; translate: 0 -50%; pointer-events: none; }
.cf__input {
  display: block; width: 100%; height: 44px; padding: 12px 15px 13px 41px; border-radius: 12px;
  border: 1px solid #e2e8f0; background: #fff; font: inherit; font-size: 14px; line-height: 17px; color: var(--ink);
  transition: border-color .25s, box-shadow .25s; -webkit-appearance: none; appearance: none;
}
.cf__input::placeholder, .cf textarea::placeholder { color: #94a3b8; opacity: 1; }
.cf__input:hover { border-color: #cbd5e1; }
.cf__input:focus { outline: none; border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }

.cf__err {
  position: absolute; left: 6px; top: calc(100% + 13.75px); display: flex; align-items: center; gap: 6px;
  font-family: var(--f-num); font-size: 13px; line-height: 19.5px; color: #ef4444; white-space: nowrap;
  opacity: 0; visibility: hidden; translate: 0 -4px; transition: opacity .25s, translate .25s, visibility 0s .25s;
}
.cf__err img { flex: none; }
.is-invalid .cf__err { opacity: 1; visibility: visible; translate: 0 0; transition: opacity .25s, translate .25s; }
.is-invalid .cf__input { border-color: #f7a1a1; }
.is-invalid .cf__input:focus { box-shadow: 0 0 0 3px rgba(239, 68, 68, .12); }

/* ---------- Option cards (radio group) ---------- */
.cf__sec--scope { margin-top: 31.25px; }
.cf__opts { width: 576px; max-width: none; margin: 16px 0 0 -3px; display: grid; grid-template-columns: repeat(4, 135px); gap: 12px; }
.opt {
  position: relative; height: 150px; min-height: 145px; padding: 17px; border-radius: 16px; cursor: pointer;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid rgba(226, 232, 240, .8); background: #fff; color: var(--slate-600);
  transition: border-color .3s, background-color .3s, box-shadow .3s, transform .4s var(--ease-out);
}
.opt--q { color: #000; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt__icon { display: block; width: 24px; height: 24px; transition: color .3s; }
.opt__icon svg { display: block; }
.opt__text { display: flex; flex-direction: column; gap: 2.905px; transition: transform .35s var(--ease-out); }
.opt__text b { padding-bottom: .8px; font-weight: 700; font-size: 12px; line-height: 17.88px; color: var(--ink); }
.opt__text span { padding-bottom: .725px; font-size: 11.5px; line-height: 15.81px; color: var(--slate-500); }
.opt__check {
  position: absolute; top: 13px; right: 13px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue-600);
  opacity: 0; transform: scale(.4); transition: opacity .25s, transform .4s var(--ease-spring);
}
.opt:hover { border-color: rgba(37, 99, 235, .45); transform: translateY(-2px); }
.opt:has(input:checked) { border-color: var(--blue-600); background: rgba(239, 246, 255, .4); box-shadow: inset 0 0 0 1px var(--blue-600); color: var(--blue-600); }
.opt:has(input:checked) .opt__check { opacity: 1; transform: none; }
.opt:has(input:checked) .opt__text { transform: translateY(-7px); }
.opt:has(input:focus-visible) { outline: 2px solid #60a5fa; outline-offset: 3px; }
/* fallback for browsers without :has() (class set by contact.js) */
.opt.is-checked { border-color: var(--blue-600); background: rgba(239, 246, 255, .4); box-shadow: inset 0 0 0 1px var(--blue-600); color: var(--blue-600); }
.opt.is-checked .opt__check { opacity: 1; transform: none; }
.opt.is-checked .opt__text { transform: translateY(-7px); }

/* ---------- Message ---------- */
.cf__sec--msg { margin-top: 27.75px; }
.cf__h--msg { font-family: var(--f-body); font-size: 20px; line-height: 32px; letter-spacing: -.65px; }
.cf__req { color: #ef4444; }
.cf__area { margin-top: 4px; padding-top: 13px; border-radius: 16px; border: 1px solid #e2e8f0; background: #fff; transition: border-color .25s, box-shadow .25s; }
.cf__area:hover { border-color: #cbd5e1; }
.cf__area:focus-within { border-color: var(--blue-600); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.cf__area-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px; }
.cf__area-row img { flex: none; }
.cf textarea {
  flex: 1 1 auto; min-width: 0; height: 80px; padding: 0; border: 0; resize: none; background: transparent;
  font: inherit; font-size: 14px; line-height: 20px; color: var(--ink);
}
.cf textarea:focus { outline: none; }
.cf__count { padding: 0 16px 12px; text-align: right; font-weight: 500; font-size: 11px; line-height: 16.5px; color: #94a3b8; }
.cf__count.is-near { color: #f59e0b; }
.cf__err--msg { left: 4px; top: calc(100% + 18.75px); }
.is-invalid .cf__area { border-color: #ef4444; }
.is-invalid .cf__area:focus-within { box-shadow: 0 0 0 3px rgba(239, 68, 68, .12); }

.cf__send {
  width: 188px; height: 52px; margin: 60.75px 0 0 -1px; padding: 0 0 0 38.5px; justify-content: flex-start; gap: 11px;
  font-family: var(--f-ui); font-weight: 600; font-size: 14px; line-height: 20px;
}

/* =========================================================
   MOTION PREFERENCES
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  .opt, .opt__text, .opt__check, .copt, .cf__err { transition: none !important; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* ---- 1200–1439: keep the composition; give up right margin first, then left ---- */
@media (max-width: 1439px) {
  .chero__inner { padding-left: clamp(40px, calc(100% - 1219px), 108px); padding-right: clamp(40px, calc(100% - 1287px), 153px); }
}

/* ---- 1200–1258: right column narrower than the testimonial row — stack it ---- */
@media (max-width: 1258px) {
  .chero { height: auto; min-height: 733px; }
  .chero__inner { column-gap: 40px; padding-bottom: 56px; }
  .cquote { height: auto; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 20px; }
  .cquote__text { flex: none; align-items: flex-start; }
  .cquote__words { white-space: normal; }
  .cquote__rule { width: 100%; height: .86px; }
  .cquote__owner { margin-left: 0; }
  .cquote__owner span { white-space: normal; }
}

/* ---- ≤1279: laptop ---- */
@media (max-width: 1279px) {
  .cform__inner { column-gap: 40px; }
  .cf__opts { width: auto; margin-left: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .opt { padding: 15px; }
  .opt__check { top: 11px; right: 11px; }
  .cnext { width: auto; max-width: none; }
  .cnext__list b, .cnext__list span { white-space: normal; }
  .cnext__list br { display: none; }
}

/* ---- ≤1199: stack the hero ---- */
@media (max-width: 1199px) {
  .chero { height: auto; }
  .chero__inner { grid-template-columns: minmax(0, 1fr); row-gap: 56px; padding: 150px 40px 80px; }
  .chero__copy { padding-top: 0; max-width: 720px; }
  .cpills { width: 100%; max-width: 635px; margin-left: 0; }
  .chero__aside { padding-top: 0; width: 100%; max-width: 720px; }
  .chero__arc { inset: auto; left: 50%; top: 50%; width: 0; height: 0; }
  .chero__arc-line { left: -390px; top: -180px; }
  .chero__arc-glow { left: -390px; top: -177px; }
}

/* ---- ≤1100: form stacks: intro, form, what happens next ---- */
@media (max-width: 1100px) {
  .cform { padding: 72px 24px 72px; }
  /* tall single column: keep the artwork’s dark waves out of frame */
  .cform__bg img { position: absolute; left: 0; top: -11%; height: 139%; }
  .cform__inner { max-width: 680px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "card" "next"; grid-template-rows: auto; row-gap: 40px; }
  .cform__head { min-height: 0; padding-top: 0; }
  .cform__title { font-size: 42px; line-height: 48px; letter-spacing: -1.1px; }
  .cform__title-l3 { display: inline; }
  .cf__opts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---- ≤767: mobile ---- */
@media (max-width: 767px) {
  .chero__inner { padding: 116px 20px 64px; row-gap: 44px; }
  .chero__eyebrow { margin-bottom: 18px; }
  .chero__title { font-size: clamp(38px, 10.6vw, 52px); line-height: 1.08; letter-spacing: -1px; margin-bottom: 18px; }
  .chero__lead { font-size: 16px; line-height: 25px; margin-bottom: 26px; }
  .chero__actions { width: 100%; flex-direction: column; align-items: stretch; gap: 12px; }
  .chero__actions .btn { width: 100%; }
  .chero__btn { font-size: 17px; }
  .cpills { margin-top: 36px; flex-direction: column; align-items: stretch; padding: 8px 20px; height: auto; }
  .cpill:nth-child(1), .cpill:nth-child(2), .cpill:nth-child(3) { flex: none; justify-content: flex-start; padding: 12px 0; border-left: 0; }
  .cpill + .cpill { border-top: .64px solid rgba(6, 182, 212, .2); }
  .cpill:nth-child(3) h3 { padding-top: 0; }
  .chero__arc { transform: scale(.62); }

  .cquote { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 20px; }
  .cquote__text { flex: none; padding-right: 0; align-items: flex-start; }
  .cquote__rule { width: 100%; height: .86px; }
  .cquote__owner { flex: none; margin-left: 0; }

  .cform { padding: 56px 20px 64px; }
  .cform__inner { row-gap: 32px; }
  .cform__title { font-size: 34px; line-height: 40px; letter-spacing: -1px; }
  .ccard { padding: 28px 20px 30px; border-radius: 20px; }
  .cnext { padding: 24px 20px; }
  .cnext__title { font-size: 21px; }
  .cnext__list { padding: 16px 0 8px; gap: 20px; }
  .cnext__list li { gap: 14px; }
  .cnext__icon { width: 40px; height: 40px; }
  .cnext__list b { font-size: 15px; line-height: 21px; }
  .cnext__list span { font-size: 13px; line-height: 18.5px; }
}

/* ---- ≤600: one column for cards and fields ---- */
@media (max-width: 600px) {
  .copts { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; gap: 12px; }
  .copt { min-height: 0; }
  .cf__row { grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
  .cf__err { position: static; margin-top: 8px; display: none; translate: none; }
  .is-invalid .cf__err { display: flex; }
  .cf__err span { white-space: normal; }
  .cf__opts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .opt { height: 128px; min-height: 0; }
  .cf__sec--scope { margin-top: 28px; }
  .cf__sec--msg { margin-top: 26px; }
  .cf__h--msg { font-size: 19px; line-height: 28px; }
  .cf__area-row { padding: 12px; gap: 10px; }
  .cf__area-row img { width: 24px; height: 24px; }
  .cf__send { width: 100%; margin: 28px 0 0; padding: 0; justify-content: center; }
}

/* ---- ≤479: small phones ---- */
@media (max-width: 479px) {
  .btn--email { font-size: 14px; padding-inline: 16px; }
  .cform__title { font-size: 31px; line-height: 37px; }
}
