/* ==========================================================================
   Contact page
   "Let's talk." beside a frosted form card, over the homepage glass.
   The email address is never printed (js/email.js builds it on click).
   ========================================================================== */

.js body.is-loading .ct { visibility: hidden; }

.ct-main { position: relative; z-index: 1; }

/* Without WebGL2 the liquid glass falls back to a still, frosted image */
.contact-page .bg-fallback::before { filter: blur(22px) brightness(0.55) saturate(1.1); transform: scale(1.08); }
.contact-page .bg-fallback::after { display: none; }

.ct {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 5vw;
  min-height: 100vh;
  min-height: 100svh;
  padding: 130px 8.2vw 80px 11.5vw;
}

/* ---------- Intro ---------- */

.ct__intro .eyebrow { color: rgba(255, 255, 255, 0.78); }
.ct__title {
  margin: clamp(12px, 1.4vw, 22px) 0 0 -0.05em;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(64px, 7vw, 140px);
  line-height: 1;
  letter-spacing: var(--track-display);
  white-space: nowrap;
}
.ct__title .ch { display: inline-block; }
.ct__lede {
  max-width: 24em;
  margin: clamp(22px, 2.4vw, 40px) 0 0;
}

/* Copy my email, the location and LinkedIn: one line when there is room, otherwise two.
   Never three, and no "Prefer email?" label, since the form is email too (her calls). */
.ct__other {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px 20px; /* 20px lets all three share a line on most phones (390px and wider) */
  max-width: 28em;
  margin-top: clamp(36px, 5vh, 64px);
  padding-top: clamp(18px, 1.8vw, 28px);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.ct__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin: 0;
}
.ct-copy {
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  background: none;
  color: inherit;
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: var(--track-ui);
  cursor: pointer;
}
.ct-copy:hover { border-color: #fff; }
.ct__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 0;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: var(--track-ui);
  color: rgba(255, 255, 255, 0.78);
}
.ct__meta a { border-bottom: 1px solid rgba(255, 255, 255, 0.35); transition: border-color 0.3s var(--ease); }
.ct__meta a:hover { border-color: #fff; }

/* ---------- The form: frosted card, no outer stroke, a soft light along the top ----------
   This one stays see-through on purpose (her call, Oct 2026): the liquid background glows
   through it. The solid cards used elsewhere made it look flat here. */

.ct-form {
  position: relative;
  width: 100%;
  max-width: 620px;
  justify-self: end;
  padding: clamp(36px, 3.6vw, 60px) clamp(28px, 3.2vw, 56px);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(40, 44, 80, 0.46) 0%, rgba(14, 14, 34, 0.5) 100%);
  -webkit-backdrop-filter: blur(28px) saturate(1.25);
  backdrop-filter: blur(28px) saturate(1.25);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.3);
}
.ct-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 46%;
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(190, 225, 255, 0.9), transparent);
  box-shadow: 0 0 24px 4px rgba(150, 200, 255, 0.35);
  pointer-events: none;
}

.ct-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
}
.ct-field {
  min-width: 0;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

/* One outlined box per field, a single row. Its name shows inside as a placeholder and
   gives way as you type; the <label> stays in the page for screen readers only. */
.ct-box {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  cursor: text;
  transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.ct-box:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
.ct-box:focus-within {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7), 0 0 0 4px rgba(255, 255, 255, 0.06);
}
.ct-box:has([aria-invalid="true"]) { box-shadow: inset 0 0 0 1px #ffa8a8; }
.ct-box label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.ct-box input,
.ct-box textarea {
  display: block;
  width: 100%;
  padding: 13px 18px;
  border: 0;
  background: none;
  color: #fff;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: var(--track-body);
}
.ct-box input:focus,
.ct-box textarea:focus { outline: none; }
.ct-box textarea { min-height: 124px; resize: vertical; }
.ct-box input::placeholder,
.ct-box textarea::placeholder { color: rgba(255, 255, 255, 0.55); }
.ct-field__error {
  margin: 8px 2px 0;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: var(--track-body);
  color: #ffc2c2;
}

/* Topic: radio buttons shown as pills; clicking the chosen one again clears it (js/contact.js) */
.ct-topics { margin: 8px 0 24px; }
.ct-topics legend {
  margin-bottom: 14px;
  padding: 0;
  font-family: var(--text);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: var(--track-body);
  color: rgba(255, 255, 255, 0.72);
}
.ct-topics__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.ct-topics input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
/* Choice chips: pills with a radio dot, so they read as options rather than buttons */
.ct-topics label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 8px 15px 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  font-family: var(--display);
  font-size: 15.5px;
  letter-spacing: var(--track-ui);
  cursor: pointer;
  transition: background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.ct-topics label::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6);
  transition: box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);
}
.ct-topics label:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55); }
.ct-topics input:checked + label {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}
.ct-topics input:checked + label::before {
  background: #fff;
  box-shadow: inset 0 0 0 3.5px #2a2848;
}
.ct-topics input:focus-visible + label { outline: 2px solid #fff; outline-offset: 3px; }

/* Spam trap, off screen for people and screen readers */
.ct-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ct-form__end { margin-top: 30px; }
.ct-form__status {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: var(--track-body);
  color: #ffc2c2;
}
.ct-form__status:empty { display: none; }

/* After sending */
.ct-thanks { padding: clamp(12px, 2vw, 32px) 0; outline: none; }
.ct-thanks__label {
  margin: 0;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: var(--track-ui);
}
.ct-thanks__title {
  margin: 12px 0 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 3vw, 56px);
  line-height: 1.16;
  letter-spacing: var(--track-head);
}
.ct-thanks__text { margin: 18px 0 0; max-width: 28em; }
.ct-thanks__text button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* Slim footer: this page already says "Let's talk." */
.foot--slim {
  min-height: 0;
  padding-top: 0;
}
.foot--slim .foot__bar { margin-top: 0; }

/* ---------- Phones ---------- */

@media (max-width: 900px) {
  .ct {
    grid-template-columns: 1fr;
    gap: 44px;
    align-items: start;
    padding: 110px 20px 56px;
  }
  .ct__title { font-size: 21vw; }
  .ct-form { max-width: none; justify-self: stretch; padding: 32px 20px; border-radius: 24px; }
  .ct-row { grid-template-columns: 1fr; }
  .foot--slim { padding: 0 20px 32px; }
}
