/* "Let's connect" footer: lime field with the illustrated faces settled along the top, a paper panel with three ways to connect, and an ink base. */

.connect-footer {
  --cf-frame: max(var(--rc-layout-gutter), calc((100% - 1392px) / 2));
  position: relative;
  overflow: hidden;
  padding-top: clamp(150px, 14vw, 220px);
  background: var(--rc-color-lime);
  color: var(--rc-color-ink);
  outline: none;
  scroll-margin-top: 69px;
}

.cf-frame { padding-inline: var(--cf-frame); }

.cf-crowd {
  position: absolute;
  inset: 0 0 auto;
  height: clamp(150px, 14vw, 220px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
}

/* The faces sit as one overlapping row, centred on the page. */
.cf-crowd img {
  flex: none;
  width: calc(var(--s) * .62vw + 34px);
  height: auto;
  margin-inline: -.6vw;
  transform: translateY(18%) rotate(calc(var(--r) * 1deg));
}

.cf-title {
  margin: 0;
  text-align: center;
  font: 900 clamp(64px, 13vw, 210px)/.85 var(--rc-font-brand);
  letter-spacing: -.06em;
  text-transform: uppercase;
}

.cf-mark { position: relative; isolation: isolate; white-space: nowrap; }

.cf-mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -2%;
  right: -2%;
  bottom: -.06em;
  height: .82em;
  background: #fff;
  clip-path: var(--rc-marker-path);
}

.cf-sub {
  max-width: 34ch;
  margin: var(--rc-space-15) auto 0;
  text-align: center;
  font-size: var(--rc-type-body);
  line-height: 1.4;
}

.cf-panel {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--rc-space-10);
  margin-top: var(--rc-space-15);
  padding: var(--rc-space-10);
  border-radius: var(--rc-radius-panel) var(--rc-radius-panel) 0 0;
  background: var(--rc-color-canvas);
}

.cf-col + .cf-col { padding-left: var(--rc-space-10); border-left: 2px solid var(--rc-color-rule); }

.cf-panel h3 { margin: 0; font: 900 var(--rc-type-card)/1.1 var(--rc-font-brand); letter-spacing: -.02em; }

.cf-form { display: grid; gap: var(--rc-space-4); align-content: start; }
.cf-form p { margin: 0; font-size: var(--rc-type-caption); line-height: 1.4; }
.cf-row { display: grid; gap: var(--rc-space-1); }
.cf-row label { font-size: var(--rc-type-caption); font-weight: 600; }

.cf-form input,
.cf-form textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: var(--rc-layout-control-height);
  padding: var(--rc-space-3);
  border: 2px solid var(--rc-color-border);
  border-radius: var(--rc-radius-control);
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: var(--rc-type-small);
}

.cf-form textarea { resize: vertical; }

.cf-form button {
  justify-self: start;
  min-height: var(--rc-layout-control-height);
  padding-inline: var(--rc-space-8);
  border: 0;
  border-radius: var(--rc-radius-control);
  background: var(--rc-color-action);
  color: var(--rc-color-on-action);
  font: 900 var(--rc-type-small)/1 var(--rc-font-brand);
  cursor: pointer;
}

.cf-form button:hover { background: var(--rc-color-action-hover); }
.cf-status:empty { display: none; }
.cf-status { font-weight: 600; }

.cf-social { display: grid; gap: var(--rc-space-3); align-content: start; }
.cf-social h3 { margin-bottom: var(--rc-space-1); }

/* Social profiles open in a new tab; the pill fills lime on hover or keyboard focus. */
.cf-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  padding-inline: var(--rc-space-5);
  border: 2px solid var(--rc-color-ink);
  border-radius: var(--rc-radius-pill);
  color: var(--rc-color-ink);
  font: 900 var(--rc-type-card)/1 var(--rc-font-brand);
  text-decoration: none;
  transition: background var(--rc-motion-fast) var(--rc-motion-ease);
}

.cf-pill:hover,
.cf-pill:focus-visible { background: var(--rc-color-lime); }

.cf-base { background: var(--rc-color-ink); color: var(--rc-color-canvas); }

.cf-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: var(--rc-space-2);
  padding-block: var(--rc-space-10);
  font-size: var(--rc-type-caption);
}

.cf-legal p { margin: 0; }
.cf-wordmark { font: 900 clamp(40px, 6vw, 88px)/.86 var(--rc-font-brand); letter-spacing: -.05em; color: var(--rc-color-lime); }

.connect-footer :focus-visible {
  outline: var(--rc-layout-focus-width) solid var(--rc-color-ink);
  outline-offset: var(--rc-layout-focus-offset);
}

.cf-base :focus-visible { outline-color: var(--rc-color-lime); }

@media (max-width: 900px) {
  .cf-panel { grid-template-columns: 1fr; padding: var(--rc-space-6); }
  .cf-col + .cf-col { padding-left: 0; padding-top: var(--rc-space-10); border-left: 0; border-top: 2px solid var(--rc-color-rule); }
}

@media (max-width: 600px) {
  .cf-form button { justify-self: stretch; }
}
