.contact-page {
  position: relative;
  overflow: hidden;
  padding: 124px 24px 0;
  background:
    radial-gradient(circle at 84% 6%, rgba(84, 135, 111, .16), transparent 31rem),
    radial-gradient(circle at 12% 31%, rgba(202, 111, 55, .12), transparent 26rem),
    linear-gradient(180deg, #f8f4ed 0%, #f4efe7 48%, #eee8df 100%);
}

.contact-page::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  opacity: .34;
  background-image:
    linear-gradient(rgba(52, 48, 42, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 48, 42, .045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 68%);
}

.contact-hero,
.careers {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin-inline: auto;
}

.contact-heading {
  max-width: 900px;
  padding: 54px 0 58px;
}

.contact-heading .eyebrow,
.careers-head .eyebrow {
  margin-bottom: 18px;
  color: var(--sage-deep, #4d715d);
}

.contact-heading h1 {
  max-width: 900px;
  margin: 0;
  color: var(--ink, #28241f);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(3.6rem, 7.5vw, 7rem);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .92;
}

.contact-lede {
  max-width: 760px;
  margin: 30px 0 0;
  color: var(--muted, #666057);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.contact-shell {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.42fr);
  gap: 28px;
  align-items: start;
}

.contact-brief {
  position: sticky;
  top: 96px;
  overflow: hidden;
  padding: 44px;
  color: #f7f2e9;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0, rgba(220, 131, 71, .34), transparent 17rem),
    linear-gradient(150deg, #446554, #263f35 78%);
  box-shadow: 0 28px 70px rgba(42, 58, 49, .2);
}

.contact-brief::after {
  position: absolute;
  right: -54px;
  bottom: -70px;
  width: 210px;
  height: 210px;
  content: "";
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  box-shadow:
    0 0 0 32px rgba(255, 255, 255, .035),
    0 0 0 64px rgba(255, 255, 255, .025);
}

.contact-kicker {
  margin: 0 0 14px;
  color: #c98a60;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.contact-brief h2,
.contact-form-head h2,
.careers-head h2 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  letter-spacing: -.035em;
}

.contact-brief h2 {
  max-width: 360px;
  color: #fffaf1;
  font-size: clamp(2.15rem, 4vw, 3.3rem);
  line-height: 1;
}

.contact-brief > p:not(.contact-kicker) {
  margin: 24px 0 0;
  color: rgba(255, 250, 241, .74);
  line-height: 1.7;
}

.contact-fit {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.contact-fit > span,
.contact-response span {
  color: rgba(255, 250, 241, .5);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.contact-fit ul {
  display: grid;
  gap: 13px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.contact-fit li {
  position: relative;
  padding-left: 20px;
  color: rgba(255, 250, 241, .9);
  font-size: .92rem;
}

.contact-fit li::before {
  position: absolute;
  top: .52em;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: #dc8550;
}

.contact-response {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 34px;
}

.contact-response strong {
  color: #fffaf1;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.contact-form-card {
  padding: clamp(30px, 5vw, 54px);
  border: 1px solid var(--line, #ddd3c4);
  border-radius: 30px;
  background: rgba(255, 252, 247, .92);
  box-shadow: 0 28px 80px rgba(76, 64, 48, .12);
  backdrop-filter: blur(16px);
}

.contact-form-head {
  margin-bottom: 36px;
}

.contact-form-head .contact-kicker {
  color: var(--sage-deep, #4d715d);
}

.contact-form-head h2 {
  max-width: 610px;
  color: var(--ink, #28241f);
  font-size: clamp(2.2rem, 4.2vw, 3.5rem);
  line-height: 1.02;
}

.contact-status {
  display: flex;
  gap: 8px;
  flex-direction: column;
  margin-bottom: 30px;
  padding: 18px 20px;
  color: #294d3c;
  border: 1px solid rgba(61, 113, 84, .28);
  border-radius: 14px;
  background: rgba(92, 145, 114, .12);
}

.contact-status strong {
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.28rem;
  font-weight: 600;
}

.contact-status span {
  color: #52685d;
  font-size: .9rem;
}

.contact-status[hidden] {
  display: none;
}

.contact-honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.contact-field-wide {
  grid-column: 1 / -1;
}

.contact-field label {
  color: var(--ink, #28241f);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  box-sizing: border-box;
  color: var(--ink, #28241f);
  border: 1px solid #d8cec0;
  border-radius: 12px;
  outline: none;
  background: #fbf8f3;
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.contact-field input,
.contact-field select {
  min-height: 52px;
  padding: 0 15px;
}

.contact-field textarea {
  min-height: 158px;
  padding: 15px;
  resize: vertical;
  line-height: 1.55;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #a0988d;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--sage-deep, #4d715d);
  background: #fffdfa;
  box-shadow: 0 0 0 4px rgba(79, 116, 94, .11);
}

.contact-submit-row {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 30px;
}

.contact-submit {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  min-width: 205px;
  padding: 15px 19px;
  cursor: pointer;
  color: #fffaf2;
  border: 1px solid #365b49;
  border-radius: 10px;
  background: var(--sage-deep, #4d715d);
  font: 600 .9rem/1 "Inter", sans-serif;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.contact-submit:hover {
  transform: translateY(-2px);
  background: #365b49;
  box-shadow: 0 12px 28px rgba(54, 91, 73, .24);
}

.contact-submit:focus-visible {
  outline: 3px solid rgba(79, 116, 94, .28);
  outline-offset: 3px;
}

.contact-submit-row p {
  max-width: 330px;
  margin: 0;
  color: var(--muted, #777066);
  font-size: .73rem;
  line-height: 1.5;
}

.careers {
  padding: 138px 0 120px;
}

.careers-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .78fr);
  gap: 64px;
  align-items: end;
  margin-bottom: 48px;
}

.careers-head h2 {
  max-width: 680px;
  color: var(--ink, #28241f);
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: .95;
}

.careers-head > p {
  margin: 0 0 6px;
  color: var(--muted, #686158);
  line-height: 1.72;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line, #d9d0c3);
  border-left: 1px solid var(--line, #d9d0c3);
}

.role-card {
  display: flex;
  min-height: 400px;
  padding: 32px;
  flex-direction: column;
  border-right: 1px solid var(--line, #d9d0c3);
  border-bottom: 1px solid var(--line, #d9d0c3);
  background: rgba(250, 247, 241, .62);
  transition: background .2s ease, transform .2s ease;
}

.role-card:hover {
  z-index: 1;
  transform: translateY(-4px);
  background: #fbf8f2;
  box-shadow: 0 20px 48px rgba(72, 62, 50, .1);
}

.role-topline {
  display: flex;
  justify-content: space-between;
  color: #8c847a;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.role-card h3 {
  min-height: 74px;
  margin: 48px 0 17px;
  color: var(--ink, #28241f);
  font-family: "Newsreader", Georgia, serif;
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  font-weight: 500;
  line-height: 1.02;
}

.role-card > p {
  margin: 0;
  color: var(--muted, #6c655d);
  font-size: .91rem;
  line-height: 1.7;
}

.role-tags {
  display: flex;
  gap: 7px;
  margin: 24px 0 30px;
  flex-wrap: wrap;
}

.role-tags span {
  padding: 6px 9px;
  color: #52665b;
  border: 1px solid rgba(76, 111, 91, .2);
  border-radius: 99px;
  background: rgba(85, 127, 102, .07);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.role-apply {
  display: inline-flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 17px;
  color: var(--sage-deep, #4d715d);
  border-top: 1px solid var(--line, #d9d0c3);
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
}

.career-open {
  display: grid;
  grid-template-columns: .8fr 1.25fr auto;
  gap: 38px;
  align-items: center;
  margin-top: 30px;
  padding: 34px 38px;
  color: #f9f5ed;
  border-radius: 18px;
  background: #2f4037;
}

.career-open > div > span {
  color: #d58a5a;
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.career-open h3 {
  margin: 7px 0 0;
  color: #fffaf1;
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 500;
}

.career-open p {
  margin: 0;
  color: rgba(255, 250, 241, .68);
  font-size: .87rem;
  line-height: 1.65;
}

.career-open > a {
  white-space: nowrap;
  color: #fffaf1;
  font-size: .79rem;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 900px) {
  .contact-shell {
    grid-template-columns: 1fr;
  }

  .contact-brief {
    position: relative;
    top: auto;
  }

  .careers-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .role-grid {
    grid-template-columns: 1fr;
  }

  .role-card {
    min-height: auto;
  }

  .role-card h3 {
    min-height: auto;
    margin-top: 34px;
  }

  .role-apply {
    margin-top: 34px;
  }

  .career-open {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 620px) {
  .contact-page {
    padding: 98px 16px 0;
  }

  .contact-heading {
    padding: 38px 0 42px;
  }

  .contact-heading h1 {
    font-size: clamp(3.1rem, 15vw, 4.65rem);
  }

  .contact-lede {
    margin-top: 22px;
    font-size: 1rem;
  }

  .contact-brief,
  .contact-form-card {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-field-wide {
    grid-column: auto;
  }

  .contact-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-submit {
    width: 100%;
  }

  .careers {
    padding: 96px 0 80px;
  }

  .careers-head h2 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .role-card {
    padding: 27px 23px;
  }

  .career-open {
    padding: 28px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-submit,
  .role-card {
    transition: none;
  }
}
