/* Contact page: company profile + project enquiry form.
   Tokens are local to .kc so they never leak into the 3D template styles. */
.kc {
  --kc-bg: rgba(9, 11, 22, 0.74);
  --kc-line: rgba(255, 255, 255, 0.14);
  --kc-text: #f3f4f8;
  --kc-muted: #b2b6c6;
  --kc-accent: #ff9628;
  --kc-accent-hi: #ffb15c;
  --kc-error: #ff8a8a;
  --kc-ok: #62e6a8;
  position: relative;
  padding: 150px 0 160px;
  color: var(--kc-text);
  font-family: acumin-pro, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}
.kc * { box-sizing: border-box; }
.kc__wrap { width: min(1240px, 90%); margin: 0 auto; }

/* ---------- Hero ---------- */
.kc__eyebrow { margin: 0 0 18px; color: var(--kc-accent); font: 600 13px/1 acumin-pro, sans-serif; letter-spacing: 0.22em; text-transform: uppercase; }
.kc__title { margin: 0; max-width: 16ch; font-size: clamp(42px, 7vw, 104px); font-weight: 700; line-height: 1; letter-spacing: -0.015em; text-wrap: balance; }
.kc__title em { font-style: normal; color: var(--kc-accent); }
.kc__lead { max-width: 56ch; margin: 28px 0 0; color: var(--kc-muted); font-size: clamp(16px, 1.4vw, 20px); line-height: 1.65; }
.kc__chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; padding: 0; list-style: none; }
.kc__chips li { padding: 9px 16px; border: 1px solid var(--kc-line); border-radius: 999px; color: var(--kc-muted); font-size: 14px; background: rgba(255,255,255,0.03); }

/* ---------- Layout ---------- */
.kc__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: 28px; margin-top: 72px; align-items: start; }
.kc__card { padding: 36px; border: 1px solid var(--kc-line); border-radius: 20px; background: var(--kc-bg); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); }
.kc__card h2 { margin: 0 0 6px; font-size: 26px; font-weight: 650; line-height: 1.2; }
.kc__sub { margin: 0 0 28px; color: var(--kc-muted); font-size: 15px; line-height: 1.6; }
.kc__aside { display: grid; gap: 28px; position: sticky; top: 110px; }

/* ---------- Form ---------- */
.kc-form { display: grid; gap: 22px; }
.kc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.kc-field { display: grid; gap: 8px; min-width: 0; }
.kc-field > label, .kc-fieldset legend { font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--kc-text); padding: 0; }
.kc-req { color: var(--kc-accent); margin-left: 3px; }
.kc-opt { color: var(--kc-muted); font-weight: 400; margin-left: 6px; }
.kc-hint { margin: 0; color: var(--kc-muted); font-size: 13px; line-height: 1.5; }
.kc-input, .kc-select, .kc-textarea {
  width: 100%; min-height: 52px; padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24); border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); color: var(--kc-text);
  font: 400 16px/1.4 acumin-pro, "Helvetica Neue", Arial, sans-serif;
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.kc-textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.kc-select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, #b2b6c6 50%), linear-gradient(135deg, #b2b6c6 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.kc-select option { color: #111; }
.kc-input::placeholder, .kc-textarea::placeholder { color: #8a8fa3; }
.kc-input:hover, .kc-select:hover, .kc-textarea:hover { border-color: rgba(255,255,255,.4); }
.kc-input:focus-visible, .kc-select:focus-visible, .kc-textarea:focus-visible { outline: none; border-color: var(--kc-accent); box-shadow: 0 0 0 3px rgba(255, 150, 40, 0.35); background: rgba(255,255,255,.07); }
.kc-field[data-invalid="true"] .kc-input, .kc-field[data-invalid="true"] .kc-select, .kc-field[data-invalid="true"] .kc-textarea,
.kc-fieldset[data-invalid="true"] .kc-pills { border-color: var(--kc-error); }
.kc-error { margin: 0; min-height: 0; color: var(--kc-error); font-size: 13px; line-height: 1.45; }
.kc-error:empty { display: none; }
.kc-error::before { content: "! "; font-weight: 700; }

.kc-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 10px; }
.kc-pills { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; border-radius: 14px; }
.kc-pill { position: relative; }
.kc-pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.kc-pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; color: var(--kc-text); font-size: 15px; background: rgba(255,255,255,.04); transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.kc-pill:hover span { border-color: rgba(255,255,255,.55); }
.kc-pill input:checked + span { background: var(--kc-accent); border-color: var(--kc-accent); color: #1a0e00; font-weight: 600; }
.kc-pill input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }

.kc-summary { display: none; padding: 16px 18px; border: 1px solid var(--kc-error); border-radius: 12px; background: rgba(255, 90, 90, 0.08); }
.kc-summary[data-show="true"] { display: block; }
.kc-summary:focus { outline: 3px solid #fff; outline-offset: 3px; }
.kc-summary h3 { margin: 0 0 8px; font-size: 15px; color: var(--kc-error); }
.kc-summary ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.7; }
.kc-summary a { color: #fff; text-underline-offset: 3px; }

.kc-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px; }
.kc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 30px; border: 1px solid var(--kc-accent); border-radius: 999px; background: var(--kc-accent); color: #1a0e00; font: 700 16px/1 acumin-pro, sans-serif; letter-spacing: 0.03em; text-decoration: none; cursor: pointer; transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; }
.kc-btn:hover { background: var(--kc-accent-hi); border-color: var(--kc-accent-hi); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(255, 150, 40, .3); }
.kc-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.kc-btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.kc-btn--ghost { background: transparent; border-color: rgba(255,255,255,.5); color: #fff; }
.kc-btn--ghost:hover { background: #fff; border-color: #fff; color: #05060d; box-shadow: none; }
.kc-btn svg { width: 20px; height: 20px; flex: none; }
.kc-privacy { margin: 0; flex: 1 1 240px; color: var(--kc-muted); font-size: 13px; line-height: 1.55; }
.kc-privacy a { color: #fff; text-underline-offset: 3px; }

.kc-success { display: none; text-align: left; }
.kc-success[data-show="true"] { display: block; }
.kc-success:focus { outline: none; }
.kc-success h2 { color: var(--kc-ok); }
.kc-success pre { margin: 20px 0; padding: 18px; max-height: 260px; overflow: auto; border: 1px solid var(--kc-line); border-radius: 12px; background: rgba(255,255,255,.04); color: var(--kc-muted); font: 400 13px/1.6 "Google Sans Code", monospace; white-space: pre-wrap; word-break: break-word; }
.kc-success__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Company + aside ---------- */
.kc-company__head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.kc-company__mark { width: 52px; height: 52px; flex: none; border-radius: 14px; background: #fff url("/favicon.png") center / 70% no-repeat; }
.kc-company__name { margin: 0; font-size: 22px; font-weight: 650; line-height: 1.2; }
.kc-company__tag { margin: 4px 0 0; color: var(--kc-muted); font-size: 14px; }
.kc-dl { margin: 0; display: grid; }
.kc-dl div { display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--kc-line); font-size: 15px; line-height: 1.55; }
.kc-dl dt { color: var(--kc-muted); }
.kc-dl dd { margin: 0; }
.kc-dl a { color: #fff; text-underline-offset: 3px; }
.kc-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.kc-social a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 16px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .2s ease, color .2s ease; }
.kc-social a:hover { background: #fff; color: #05060d; }
.kc-social a:focus-visible { outline: 3px solid var(--kc-accent); outline-offset: 2px; }

.kc-quick { display: grid; gap: 12px; }
.kc-quick a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 0 20px; border: 1px solid var(--kc-line); border-radius: 14px; background: rgba(255,255,255,.04); color: #fff; text-decoration: none; font-weight: 600; transition: border-color .2s ease, background-color .2s ease, transform .2s ease; }
.kc-quick a:hover { border-color: var(--kc-accent); background: rgba(255,150,40,.08); transform: translateX(2px); }
.kc-quick a:focus-visible { outline: 3px solid var(--kc-accent); outline-offset: 2px; }
.kc-quick small { display: block; margin-top: 3px; color: var(--kc-muted); font-weight: 400; font-size: 13px; }

/* ---------- FAQ ---------- */
.kc__faq { margin-top: 72px; }
.kc__faq h2 { margin: 0 0 24px; font-size: clamp(26px, 3vw, 40px); font-weight: 650; }
.kc-faq { border-top: 1px solid var(--kc-line); }
.kc-faq details { border-bottom: 1px solid var(--kc-line); }
.kc-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 14px 0; list-style: none; cursor: pointer; font-size: clamp(17px, 1.6vw, 20px); font-weight: 600; }
.kc-faq summary::-webkit-details-marker { display: none; }
.kc-faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; font-weight: 400; transition: transform .25s ease, background-color .2s ease; }
.kc-faq details[open] summary::after { content: "–"; background: var(--kc-accent); border-color: var(--kc-accent); color: #1a0e00; }
.kc-faq summary:focus-visible { outline: 3px solid var(--kc-accent); outline-offset: 2px; }
.kc-faq p { margin: 0 0 22px; max-width: 70ch; color: var(--kc-muted); font-size: 16px; line-height: 1.7; }

/* ---------- Motion ---------- */
.kc-in { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.kc-in.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .kc-in { opacity: 1; transform: none; transition: none; } .kc-btn, .kc-quick a { transition: none; } }

/* ---------- Responsive ---------- */
@media not screen and (min-width: 1000px) {
  .kc__grid { grid-template-columns: 1fr; margin-top: 48px; }
  .kc__aside { position: static; }
}
@media not screen and (min-width: 769px) {
  .kc { padding: 110px 0 120px; }
  .kc__wrap { width: calc(100% - 36px); }
  .kc__card { padding: 24px 20px; border-radius: 16px; }
  .kc-row { grid-template-columns: 1fr; }
  .kc-btn { width: 100%; }
  .kc-dl div { grid-template-columns: 1fr; gap: 4px; }
}
