/* Contact + 404 pages (Figma 8016:2315, 8016:2603, 8016:2127). Prefix pg-.
   Both start under the transparent overlay header (site/_header.html, header_overlay = true). */

.pg-br-lg { display: none; }
@media (min-width: 1024px) { .pg-br-lg { display: inline; } }

.pg-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: clamp(14px, 1.25vw, 18px); line-height: 1.6; text-transform: uppercase;
}
.pg-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

/* ============================================================ contact hero */
.pg-hero {
  position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: var(--charcoal);
  padding-top: calc(var(--header-h) + clamp(56px, 4.44vw, 64px));
  padding-bottom: clamp(60px, 5.56vw, 80px);
}
.pg-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.pg-hero::after { /* keeps white text readable on the bright moss tips */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(30, 30, 28, .45) 0%, rgba(30, 30, 28, .2) 60%, rgba(30, 30, 28, .1) 100%);
}
.pg-hero__inner { display: flex; flex-direction: column; align-items: flex-start; }
.pg-hero__title {
  margin-top: 16px; max-width: 800px;
  font-size: clamp(36px, 5.56vw, 80px); line-height: 1.1; letter-spacing: var(--track-tight); font-weight: 600;
}
/* width: 100% — as a shrink-to-fit flex item, Safari's text-wrap: pretty re-broke the first line ("… explore / a partnership,") */
.pg-hero__lead { margin-top: clamp(40px, 3.33vw, 48px); width: 100%; max-width: 600px; font-size: var(--fs-lg); line-height: 1.6; }

/* ============================================================ contact body */
.pg-contact {
  display: grid; grid-template-columns: minmax(0, 640fr) minmax(0, 520fr); column-gap: clamp(48px, 8.33vw, 120px);
  align-items: start; padding-top: 80px; padding-bottom: 100px;
}
.pg-form { display: grid; gap: 20px; }
.pg-optional { font-weight: 400; color: var(--ink-70); }
.pg-form .input, .pg-form .textarea { border-color: var(--stone); }
.pg-form .input:hover, .pg-form .textarea:hover { border-color: var(--field); }
.pg-form .input:focus, .pg-form .textarea:focus { border-color: var(--charcoal); }
.pg-form .input[aria-invalid="true"], .pg-form .textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.pg-form .textarea { min-height: 140px; }
.pg-select {
  appearance: none; -webkit-appearance: none; padding-right: 48px; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6l4.5 4.5L12.5 6' fill='none' stroke='%233e3d3b' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.pg-error { margin: 0; font-size: var(--fs-sm); color: var(--danger); }
.pg-error[hidden] { display: none; }
.pg-submit { min-height: 53px; font-size: var(--fs-md); line-height: 1.6; }
.pg-note { font-size: var(--fs-sm); color: var(--ink-70); }
.pg-note a { color: var(--charcoal); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.pg-status { font-size: var(--fs-sm); font-weight: 600; }
.pg-status:empty { display: none; }

.pg-direct { padding-top: 8px; }
.pg-direct__title { font-size: var(--fs-h7); line-height: 1.2; font-weight: 600; }
.pg-direct__list { display: grid; gap: 40px; margin: 40px 0 0; }
.pg-direct__item dt { font-size: var(--fs-sm); font-weight: 500; line-height: 1.6; color: var(--ink-70); }
.pg-direct__item dd { margin: 6px 0 0; font-size: var(--fs-md); line-height: 1.6; }
.pg-direct__item--rule { padding-top: 40px; border-top: 1px solid var(--line); max-width: 480px; }
.pg-direct__email { font-size: var(--fs-h5) !important; font-weight: 500; line-height: 1 !important; }
.pg-direct__email a { text-decoration: none; overflow-wrap: anywhere; }
.pg-direct__email a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

@media (max-width: 1023px) {
  .pg-contact { grid-template-columns: minmax(0, 1fr); row-gap: 48px; padding-top: 48px; padding-bottom: 64px; }
  .pg-direct { padding-top: 32px; border-top: 1px solid var(--line); }
}
@media (max-width: 767px) {
  .pg-hero__lead { font-size: var(--fs-md); }
  .pg-contact { padding-top: 32px; padding-bottom: 48px; row-gap: 24px; }
  .pg-direct__title { font-size: var(--fs-lg); }
  .pg-direct__email { font-size: 22px !important; }
  .pg-direct__list { gap: 24px; }
  .pg-direct__item--rule { padding-top: 24px; }
}

/* ===================================================================== 404 */
.pg-lost {
  position: relative; isolation: isolate; overflow: hidden; color: var(--white); background: #2f3330;
  min-height: max(600px, min(100svh, 800px));
  display: flex; align-items: center;
  padding-top: calc(var(--header-h) + clamp(48px, 8.3vw, 120px));
  padding-bottom: clamp(96px, 16.7vw, 240px);
}
.pg-lost__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.pg-lost::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 55% at 50% 45%, rgba(25, 28, 24, .38), rgba(25, 28, 24, .12) 70%, rgba(25, 28, 24, .25));
}
.pg-lost__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pg-lost__title { font-size: clamp(40px, 5.56vw, 80px); line-height: 1.1; letter-spacing: var(--track-tight); font-weight: 600; }
.pg-lost__text { margin-top: 32px; max-width: 504px; font-size: var(--fs-lg); line-height: 1.6; }
.pg-lost__btn {
  margin-top: 64px; width: 400px; max-width: 100%; min-height: 53px;
  font-size: var(--fs-md); line-height: 1.6; color: var(--white);
  background: rgba(62, 61, 59, .5); border-color: rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.pg-lost__btn:hover { background: rgba(62, 61, 59, .75); border-color: var(--white); }
.pg-lost__link {
  margin-top: 12px; display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px;
  font-size: var(--fs-sm); font-weight: 600; color: var(--white); text-underline-offset: 4px;
}
.pg-lost :focus-visible { outline-color: var(--white); }

@media (max-width: 767px) {
  .pg-lost__text { margin-top: 24px; font-size: var(--fs-md); }
  .pg-lost__btn { margin-top: 40px; width: 100%; }
}
