/* Phoenix AI — /contact/ (wired from nav/CTAs + sitemap) */
:root {
  --ink: #090909;
  --cream: #F8F4E9;
  --cream-muted: #c8c0b4;
  --purple: #6B4FC8;
  --purple-light: #E0D0FF;
  --blue: #4A7FD4;
  --sky: #5A9FD8;
  --wine: #A81830;
  --wine-deep: #480818;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --pad-x: clamp(1.25rem, 3vw, 2.5rem);
  --panel-max: 30rem;
  --panel-max-split: 56rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100%;
  background: var(--ink);
  color: var(--cream);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-world {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 48% 44% at 50% 28%, rgba(107, 79, 200, 0.20), transparent 62%),
    radial-gradient(ellipse 36% 32% at 50% 72%, rgba(74, 127, 212, 0.10), transparent 56%),
    #090909;
  opacity: 1;
}

.contact-veil {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(9, 9, 9, 0.55) 0%,
      rgba(9, 9, 9, 0.35) 18%,
      rgba(9, 9, 9, 0.45) 55%,
      rgba(9, 9, 9, 0.78) 82%,
      rgba(9, 9, 9, 0.95) 100%
    );
}

.contact-shell {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem var(--pad-x) 1.5rem;
}

.contact-main {
  flex: 1;
  width: 100%;
  max-width: var(--panel-max);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.15rem;
  padding-top: clamp(1.5rem, 6vh, 3.5rem);
  padding-bottom: 2rem;
}

.contact-lockup {
  display: block;
  line-height: 0;
  text-decoration: none;
  margin-bottom: 0.5rem;
}

.contact-lockup img {
  width: clamp(280px, 72vw, 320px);
  height: auto;
  display: block;
}

/* Phone under lockup — ~2× prior body size, cream + wine accent */
.contact-phone {
  margin: 0 0 1rem;
  padding: 0;
  width: 100%;
}

.contact-phone__link {
  display: inline-block;
  font-size: clamp(2rem, 5.5vw, 2.35rem);
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--cream);
  text-decoration: none;
  text-shadow: 0 0 28px color-mix(in srgb, var(--purple) 35%, transparent);
  border-bottom: 2px solid color-mix(in srgb, var(--wine) 55%, transparent);
  padding-bottom: 0.12rem;
  transition: color 0.2s ease, border-color 0.2s ease, text-shadow 0.2s ease;
}

.contact-phone__link:hover {
  color: #fff;
  border-bottom-color: var(--wine);
  text-shadow: 0 0 36px color-mix(in srgb, var(--wine) 40%, transparent);
}

.contact-card-meta {
  text-align: center;
  margin: 0 0 1.25rem;
  padding: 0 0 1.15rem;
  border-bottom: 1px solid color-mix(in srgb, var(--purple) 22%, transparent);
}

.contact-card-meta .contact-phone {
  margin-bottom: 1.1rem;
}

.contact-card-meta__email {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.contact-card-meta__email a {
  color: var(--sky);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--sky) 40%, transparent);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-card-meta__email a:hover {
  color: #fff;
  border-bottom-color: var(--cream);
}

.contact-card-meta__address {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--cream-muted);
  line-height: 1.45;
}

.contact-card-meta__canada {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream-muted);
}

.contact-card-meta__flag {
  width: 1.35rem;
  height: auto;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cream) 12%, transparent);
  flex-shrink: 0;
}

/* Inline Connect panel — same form chrome as home lightbox, no modal shell */
.connect.connect--inline {
  position: relative;
  inset: auto;
  z-index: auto;
  display: block;
  width: 100%;
  max-width: var(--panel-max);
  padding: 0;
  margin: 0;
  pointer-events: auto;
  background: transparent;
  border: 0;
}

.connect__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--panel-max);
  margin: 0 auto;
  padding: 2rem 1.35rem 1.6rem;
  border-radius: 18px;
  background: rgba(12, 10, 18, 0.96);
  border: 1px solid color-mix(in srgb, var(--purple) 28%, transparent);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.55),
    0 0 48px color-mix(in srgb, var(--purple) 18%, transparent);
  text-align: left;
}

.connect__label {
  font-size: 1.44rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.85rem;
  text-align: left;
}

.connect__optional {
  font-style: normal;
  font-weight: 500;
  color: color-mix(in srgb, var(--cream-muted) 72%, transparent);
}

.connect__form {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.connect__form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cream-muted);
}

.connect__form input:not([type="checkbox"]),
.connect__form select,
.connect__form textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--purple) 35%, transparent);
  background: rgba(18, 14, 28, 0.72);
  color: var(--cream);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 400;
}

.connect__form input:focus-visible,
.connect__form select:focus-visible,
.connect__form textarea:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.connect__submit {
  margin-top: 0.35rem;
  align-self: flex-start;
  min-width: 7.5rem;
  min-height: 2.85rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--purple) 55%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--purple) 40%, transparent), color-mix(in srgb, var(--blue) 28%, transparent));
  color: var(--cream);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
}

.connect__submit:disabled,
.connect__submit.is-loading {
  cursor: wait;
  pointer-events: none;
}

.connect__spinner {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 2.5px solid transparent;
  border-top-color: #ffffff;
  border-right-color: var(--wine);
  border-bottom-color: var(--blue);
  border-left-color: var(--purple);
  animation: px-spin 0.7s linear infinite;
  box-shadow: 0 0 12px rgba(168, 24, 48, 0.35);
}

@keyframes px-spin {
  to { transform: rotate(360deg); }
}

.connect__error {
  margin: 0;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--wine) 45%, transparent);
  background: color-mix(in srgb, var(--wine-deep) 55%, transparent);
  color: #f0c4c8;
  font-size: 0.86rem;
  font-weight: 500;
  text-align: left;
}

.connect__sent {
  text-align: left;
  padding: 1rem 0;
  animation: px-sent-in 0.45s var(--ease-out);
}

.connect__sent-mark {
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 0 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 700;
  color: #090909;
  background: linear-gradient(135deg, var(--wine) 0%, var(--purple) 50%, var(--blue) 100%);
  box-shadow: 0 0 24px rgba(107, 79, 200, 0.35);
}

.connect__sent h2 {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
  color: var(--cream);
}

.connect__sent p {
  color: var(--cream-muted);
}

@keyframes px-sent-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.connect__form[hidden],
#connect-form[hidden] {
  display: none !important;
}

.connect__sent:not([hidden]) {
  display: block;
}

.connect.is-complete .connect__form {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

.honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

.contact-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.65rem;
  width: 100%;
  padding: 1.25rem 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--cream-muted);
  letter-spacing: 0.02em;
}

.contact-foot__pipe {
  opacity: 0.45;
}

.contact-foot__link {
  color: var(--cream-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-foot__link:hover {
  color: var(--cream);
  border-bottom-color: color-mix(in srgb, var(--purple) 50%, transparent);
}

/* Desktop two-column: contact info left, form right (Jon/CoS 2026-09-24) */
.connect__form-col {
  min-width: 0;
  width: 100%;
}

@media (min-width: 840px) {
  .contact-main {
    max-width: var(--panel-max-split);
    gap: 2rem;
  }

  .connect.connect--inline {
    max-width: var(--panel-max-split);
  }

  .connect__panel.connect__panel--split {
    max-width: var(--panel-max-split);
    display: grid;
    grid-template-columns: minmax(14rem, 0.88fr) minmax(20rem, 1.2fr);
    column-gap: 2.75rem;
    row-gap: 0;
    align-items: start;
    padding: 2.15rem 2rem 1.85rem;
  }

  .contact-card-meta {
    text-align: left;
    margin: 0;
    padding: 0.35rem 1.75rem 0.35rem 0;
    border-bottom: 0;
    border-right: 1px solid color-mix(in srgb, var(--purple) 22%, transparent);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    align-self: stretch;
  }

  .contact-card-meta .contact-phone {
    margin: 0 0 0.55rem;
  }

  .contact-card-meta__email {
    margin: 0;
  }

  .contact-card-meta__address {
    margin: 0;
    max-width: 16rem;
  }

  .contact-card-meta__canada {
    justify-content: flex-start;
    margin: 0.35rem 0 0;
  }

  .contact-phone__link {
    font-size: clamp(1.65rem, 2.4vw, 2.05rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 480px) {
  .contact-main {
    gap: 1.35rem;
    padding-top: 1.25rem;
  }
  .connect__panel {
    padding: 1.5rem 1.1rem 1.35rem;
  }
  .connect__submit {
    align-self: stretch;
    width: 100%;
  }
}

/* Desktop-only 9:16 portrait under contact info (Jon 2026-09-24) */
.contact-card-meta__portrait { display: none; }
@media (min-width: 840px) {
  .contact-card-meta__portrait {
    display: block;
    margin: 1.25rem 0 0;
    width: 100%;
    max-width: 17rem;
  }
  .contact-card-meta__portrait img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover;
    border-radius: 18px;
  }
}

/* Desktop-only: space above/below logo cut 25% then another 50% (Jon 2026-09-24) */
@media (min-width: 840px) {
  .contact-shell { padding-top: 0.9375rem; }
  .contact-main { padding-top: clamp(0.5625rem, 2.25vh, 1.3125rem); }
  .contact-lockup { margin-bottom: -2.0625rem; }
}

/* Interested in? dropdown (Jon 2026-09-24) */
.connect__form select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c8c0b4' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
}
.connect__form select option { background: #120e1c; color: #F8F4E9; }

/* Round 2 logo spacing (Jon 2026-09-24 12:59): desktop -50% vs live, mobile -25% */
@media (max-width: 839px) {
  .contact-shell { padding-top: 1.875rem; }
  .contact-main { padding-top: clamp(1.125rem, 4.5vh, 2.625rem); }
  .contact-lockup { margin-bottom: -0.16rem; }
}
@media (max-width: 480px) {
  .contact-main { padding-top: 0.9375rem; }
  .contact-lockup { margin-bottom: 0.04rem; }
}
@media (min-width: 840px) {
  .contact-shell { padding-top: 0.9375rem; }
  .contact-main { padding-top: clamp(0.5625rem, 2.25vh, 1.3125rem); }
  .contact-lockup { margin-bottom: -1.0625rem; }
}

/* Privacy / CASL notice above submit (privacy-terms 2026-11-06) */
.connect__notice {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--cream-muted);
  text-align: left;
}
.connect__notice p { margin: 0; }
.connect__form label.connect__consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--cream);
  cursor: pointer;
}
.connect__consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
  margin: 0.15rem 0 0;
  padding: 0;
  accent-color: #6B4FC8;
  cursor: pointer;
}
.connect__consent input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}
.connect__notice a {
  color: #E0D0FF;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, #6B4FC8 50%, transparent);
  transition: color 0.2s ease;
}
.connect__notice a:hover,
.connect__notice a:focus-visible { color: var(--cream); }
