/* ==========================================================================
   Velaharra — Connect page (artboard 8)
   Page-specific styles; shared tokens/components live in styles.css.
   ========================================================================== */

.cn-rule {
  display: block;
  width: 2.4em;
  height: 1px;
  background: var(--rule);
}

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

/* ---- Hero -------------------------------------------------------------- */
.cn-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38vw;
  align-items: stretch;
  background: var(--light);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.cn-hero__copy {
  align-self: center;
  padding: max(40px, 7vw) max(12px, 3vw) max(40px, 6vw) var(--edge);
}

.cn-hero__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--fs-hero-xl);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--black);
  margin-left: -0.03em;
}

.cn-hero__tagline {
  font-family: var(--serif);
  font-size: max(24px, 3.2vw);
  line-height: 1.15;
  color: var(--black);
  margin-top: .3em;
}

.cn-hero__body {
  max-width: 34em;
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--body);
  margin-top: 1.8em;
}

.cn-hero .cn-rule { margin-top: max(28px, 3.2vw); }
.cn-hero__actions { margin-top: max(20px, 1.6vw); }

/* rows fade up once the section is in view (data-reveal → .is-in) */
.cn-hero__title, .cn-hero__tagline, .cn-hero__body, .cn-hero .cn-rule, .cn-hero__actions {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: calc(.1s + var(--r, 0) * .13s);
}
.cn-hero.is-in .cn-hero__title, .cn-hero.is-in .cn-hero__tagline, .cn-hero.is-in .cn-hero__body,
.cn-hero.is-in .cn-rule, .cn-hero.is-in .cn-hero__actions {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.cn-hero__image {
  position: relative;
  min-height: max(320px, 30vw);
  background: var(--dark);
}
.cn-hero__image img,
.cn-hero__image .hover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

/* ---- Who + form -------------------------------------------------------- */
.cn-reach {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 max(32px, 4.5vw);
  background: var(--light2);
  border-bottom: 1px solid var(--line);
  padding: max(48px, 5vw) var(--edge) max(48px, 5vw);
  scroll-margin-top: var(--header-h);
}

.cn-reach__who {
  position: relative;
  padding-right: max(24px, 4vw);
}
.cn-reach__who::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: calc(-1 * max(16px, 2.25vw));
  width: 1px;
  background: var(--line);
}

.cn-reach__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: max(34px, 4.3vw);
  line-height: 1.08;
  color: var(--black);
}
.cn-reach__who .cn-rule { margin-top: 1em; }

.cn-reach__body {
  max-width: 32em;
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--body);
  margin-top: 2em;
}

/* social row */
.cn-social {
  list-style: none;
  margin: max(44px, 5.4vw) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: max(20px, 2.4vw) max(20px, 3.4vw);
}
.cn-social__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--black);
}
.cn-social__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max(44px, 3.2vw);
  height: max(44px, 3.2vw);
  border: 1px solid var(--black);
  border-radius: 50%;
  transition: background-color .3s ease, color .3s ease;
}
.cn-social__icon svg {
  width: 52%;
  height: 52%;
}
.cn-social__item:hover .cn-social__icon,
.cn-social__item:focus-visible .cn-social__icon {
  background: var(--black);
  color: var(--white);
}
.cn-social__label {
  margin-top: 1.4em;
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.cn-social__sub {
  margin-top: .5em;
  font-weight: 300;
  font-size: max(11px, 0.85vw);
  color: var(--body);
}

/* form */
.cn-form {
  display: flex;
  flex-direction: column;
  gap: max(12px, 1.1vw);
}
.cn-form__row { display: block; }
.cn-form__row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: max(12px, 1.1vw);
}

.cn-field { position: relative; }
.cn-field input,
.cn-field select,
.cn-field textarea {
  display: block;
  width: 100%;
  min-height: max(48px, 3.5vw);
  padding: .9em 1.4em;
  border: 1px solid var(--black);
  border-radius: 0;
  background: transparent;
  color: var(--black);
  font-family: var(--sans);
  font-weight: 400;
  font-size: max(13px, 0.95vw);
  line-height: 1.5;
  outline: none;
  transition: background-color .25s ease, box-shadow .25s ease;
  -webkit-appearance: none;
  appearance: none;
}
.cn-field textarea {
  min-height: max(150px, 11vw);
  resize: vertical;
}
.cn-field input::placeholder,
.cn-field textarea::placeholder {
  color: var(--black);
  opacity: 1;
  font-weight: 500;
  font-size: max(10px, 0.8vw);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.cn-field input:focus,
.cn-field select:focus,
.cn-field textarea:focus {
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--black);
}

/* send result (filled by the page after a post, or by script.js) */
.cn-form__status { margin: 0; font-size: max(12px, 0.9vw); line-height: 1.5; }
.cn-form__status:empty { display: none; }
.cn-form__status.is-ok {
  color: var(--black);
  font-family: var(--serif);
  font-weight: 400;
  font-size: max(20px, 1.9vw);      /* the thank-you is the payoff, so it reads as a statement, not a footnote */
  line-height: 1.3;
  padding: .4em 0 .2em;
}
.cn-form__status.is-error { color: #b3261e; }

/* select: show the placeholder option in the same caps style, add a chevron */
.cn-field select {
  padding-right: 3em;
  cursor: pointer;
  font-weight: 500;
  font-size: max(10px, 0.8vw);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.cn-field select option { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 400; }
.cn-field--select::after {
  content: "";
  position: absolute;
  right: 1.4em;
  top: 50%;
  width: .55em;
  height: .55em;
  border-right: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.cn-form__submit {
  width: 100%;
  justify-content: space-between;
  margin-top: max(6px, .6vw);
  padding: 0 1.4em 0 1.9em;
}
.cn-form__submit .btn-arrow__label { flex: 1; text-align: center; }

/* ---- Relationships ----------------------------------------------------- */
.cn-rel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: max(24px, 6vw);
  align-items: start;
  background: var(--light);
  padding: max(48px, 5vw) var(--edge) max(28px, 2.4vw);
}
.cn-rel__title {
  font-family: var(--display);
  font-weight: 400;
  font-size: max(34px, 4.3vw);
  line-height: 1.08;
  color: var(--black);
}
.cn-rel__intro .cn-rule { margin-top: 1em; }
.cn-rel__aside {
  max-width: 30em;
  padding-top: .6em;
}
.cn-rel__aside p {
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--body);
}
.cn-rel__aside p + p { margin-top: 1.6em; }

/* the three "For …" columns reuse .pillars; page tweaks only */
.cn-for { padding-top: max(16px, 1.2vw); }
.cn-for .pillar__body { max-width: 24em; }

.cn-link {
  display: inline-flex;
  align-items: center;
  gap: .9em;
  margin-top: 2.2em;
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  transition: transform .5s cubic-bezier(.2, 1.3, .4, 1);
}
.cn-link .btn-arrow__icon {
  transition: width .4s var(--ease);
}
.cn-link:hover .btn-arrow__icon,
.cn-link:focus-visible .btn-arrow__icon { width: 2.6em; }
@media (hover: hover) {
  .cn-for .pillar:hover .cn-link { transform: translateY(2px); transition-delay: .1s; }
}

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 900px) {
  .cn-reach {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cn-reach__who { padding-right: 0; }
  .cn-reach__who::after { display: none; }
  .cn-social { justify-content: space-between; gap: 24px 12px; }
  .cn-social li { flex: 1 1 40%; }

  .cn-rel { grid-template-columns: 1fr; gap: 28px; }

  .cn-form__row--split { grid-template-columns: 1fr; }
}

/* Hero on phones: keep the photo beside the copy, bleeding off the right */
@media (max-width: 720px) {
  .cn-hero {
    grid-template-columns: minmax(0, 62%) minmax(0, 1fr);
  }
  .cn-hero__copy {
    padding: max(32px, 9vw) 0 max(32px, 8vw) var(--edge);
  }
  .cn-hero__title   { font-size: 9.2vw; }
  .cn-hero__tagline { font-size: 5.2vw; }
  .cn-hero__body    { font-size: 3.2vw; margin-top: 1.6em; max-width: none; }
  .cn-hero .cn-rule { margin-top: 6vw; }
  .cn-hero__actions .btn-arrow {
    width: 100%;
    justify-content: space-between;
    height: auto;
    min-height: 42px;
    font-size: 2.4vw;
    line-height: 1.5;
    padding: .7em 1em .7em 1.2em;
  }
  .cn-hero__actions .btn-arrow__label { flex: 1; padding-right: 1em; }
  .cn-hero__image {
    min-height: 0;
    width: 64vw;          /* wider than its column → bleeds off the right */
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cn-hero__title, .cn-hero__tagline, .cn-hero__body, .cn-hero .cn-rule, .cn-hero__actions {
    transition: none; opacity: 1; transform: none;
  }
  .cn-link, .cn-link .btn-arrow__icon, .cn-social__icon { transition: none; }
}
