.contact-page {
  background: var(--paper);
}

.contact-page .site-header {
  background: rgb(245 243 240 / 88%);
  border-bottom-color: rgb(16 17 22 / 7%);
}

.contact-hero {
  position: relative;
  min-height: 900px;
  padding: calc(var(--header-height) + 54px) 0 82px;
  overflow: hidden;
  display: grid;
  align-items: center;
  isolation: isolate;
  background: #f4f8f7 url("../images/regenerative-system.png") 72% center / cover no-repeat;
}

.contact-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(247 249 248 / 98%) 0 30%, rgb(247 249 248 / 88%) 45%, rgb(247 249 248 / 34%) 68%, rgb(247 249 248 / 8%) 88%),
    linear-gradient(180deg, rgb(247 249 248 / 30%), transparent 52%, rgb(231 241 239 / 36%));
  pointer-events: none;
}

.contact-orbit,
.contact-orbit::before,
.contact-orbit::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgb(47 112 104 / 12%);
  border-radius: 50%;
  pointer-events: none;
}

.contact-orbit {
  right: -290px;
  bottom: -330px;
  width: 760px;
  aspect-ratio: 1;
}

.contact-orbit::before,
.contact-orbit::after {
  content: "";
  inset: 14%;
}

.contact-orbit::after {
  inset: 32%;
  background: rgb(255 255 255 / 16%);
}

.contact-hero-grid {
  display: grid;
  gap: 48px;
}

.contact-intro {
  min-width: 0;
  max-width: 680px;
}

.contact-intro > .eyebrow {
  color: #247125;
}

.contact-intro h1 {
  max-width: 770px;
  margin-bottom: 27px;
  font-size: clamp(4rem, 14vw, 7.4rem);
}

.contact-lead {
  max-width: 540px;
  margin-bottom: 30px;
  color: #414a4a;
  font-size: clamp(.85rem, 1.4vw, 1rem);
}

.contact-direct-card {
  width: min(100%, 600px);
  padding: 14px;
  border: 1px solid rgb(255 255 255 / 88%);
  border-radius: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  background: rgb(255 255 255 / 57%);
  box-shadow: 0 20px 55px rgb(32 58 54 / 9%);
  backdrop-filter: blur(22px) saturate(120%);
}

.contact-direct-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #153d38, #247125);
  box-shadow: 0 10px 26px rgb(30 89 69 / 18%);
}

.contact-direct-icon svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-direct-copy {
  min-width: 0;
}

.contact-direct-copy p {
  margin: 0 0 1px;
  color: #707674;
  font-size: .49rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.contact-direct-copy a {
  display: block;
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 4.8vw, 1.75rem);
  font-weight: 600;
  line-height: 1.15;
}

.contact-direct-copy a:hover {
  color: #247125;
}

.contact-direct-copy small {
  display: block;
  margin-top: 4px;
  color: #626967;
  font-size: .52rem;
}

.contact-copy-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgb(16 17 22 / 18%);
  border-radius: 10px;
  grid-column: 1 / -1;
  color: var(--ink);
  background: rgb(255 255 255 / 56%);
  font-size: .58rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition);
}

.contact-copy-button:hover {
  border-color: #247125;
  color: white;
  background: #247125;
  transform: translateY(-1px);
}

.contact-copy-button.is-copied {
  border-color: #247125;
  color: #164817;
  background: #e4f2e4;
}

.contact-copy-status {
  min-height: 18px;
  margin: 8px 0 0;
  color: #296c4e;
  font-size: .55rem;
  font-weight: 600;
}

.contact-location {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-location > span {
  width: 35px;
  height: 35px;
  border: 1px solid rgb(16 17 22 / 13%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #247125;
  background: rgb(255 255 255 / 34%);
  font-size: .9rem;
}

.contact-location p {
  margin: 0;
  display: grid;
  line-height: 1.35;
}

.contact-location strong {
  font-size: .47rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contact-location p span {
  color: #626967;
  font-size: .58rem;
}

.contact-panel {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  padding: 27px 20px 25px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 27px;
  background: linear-gradient(145deg, rgb(255 255 255 / 91%), rgb(248 250 249 / 74%));
  box-shadow: 0 42px 105px rgb(31 58 54 / 16%), inset 0 1px rgb(255 255 255 / 92%);
  backdrop-filter: blur(30px) saturate(125%);
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #153d38, #247125 52%, #5da9a9);
}

.contact-panel-heading {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-panel-heading .eyebrow {
  margin-bottom: 5px;
  color: #247125;
}

.contact-panel-heading h2 {
  margin: 0;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
}

.contact-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 1px solid rgb(16 17 22 / 12%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #174c3f;
  background: linear-gradient(145deg, white, #e6f0ed);
  box-shadow: 0 10px 26px rgb(30 89 69 / 12%);
  font-family: var(--font-display);
  font-size: 1.65rem;
}

.contact-mail-notice {
  margin-bottom: 24px;
  padding: 13px 14px;
  border: 1px solid rgb(36 113 37 / 18%);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #34534a;
  background: rgb(231 242 236 / 68%);
}

.contact-mail-notice > span {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  background: #247125;
  font-size: .65rem;
}

.contact-mail-notice p {
  margin: 0;
  display: grid;
  gap: 2px;
}

.contact-mail-notice strong {
  font-size: .58rem;
}

.contact-mail-notice p span {
  color: #5f6f69;
  font-size: .53rem;
}

.contact-form-grid {
  display: grid;
  gap: 13px;
}

.contact-field {
  min-width: 0;
}

.contact-field label,
.contact-label-row label {
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #343a39;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .035em;
}

.contact-field label b,
.contact-label-row label b {
  color: #9a3038;
  font-size: .72rem;
}

.contact-field label em {
  margin-left: auto;
  color: #8a8f8d;
  font-size: .45rem;
  font-style: normal;
  font-weight: 500;
  text-transform: uppercase;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #bbbeba;
  border-radius: 11px;
  color: var(--ink);
  background: rgb(255 255 255 / 75%);
  font-family: var(--font-body);
  font-size: max(16px, .7rem);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

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

.contact-field select {
  cursor: pointer;
}

.contact-field textarea {
  min-height: 168px;
  padding: 13px 14px;
  resize: vertical;
  line-height: 1.55;
}

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

.contact-field input:hover,
.contact-field select:hover,
.contact-field textarea:hover {
  border-color: #858b88;
  background: white;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: #247125;
  outline: 0;
  background: white;
  box-shadow: 0 0 0 4px rgb(36 113 37 / 11%);
}

.contact-field input[aria-invalid="true"],
.contact-field textarea[aria-invalid="true"] {
  border-color: #a33f45;
  box-shadow: 0 0 0 4px rgb(163 63 69 / 9%);
}

.contact-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.contact-counter {
  color: #7a807d;
  font-size: .47rem;
  font-variant-numeric: tabular-nums;
}

.contact-field-hint,
.contact-field-error {
  display: block;
  font-size: .49rem;
  line-height: 1.4;
}

.contact-field-hint {
  margin-top: 6px;
  color: #747a77;
}

.contact-field-error {
  min-height: 15px;
  margin-top: 4px;
  color: #91343a;
  font-weight: 600;
}

.contact-form-actions {
  margin-top: 17px;
  display: grid;
  gap: 10px;
}

.contact-submit {
  min-height: 58px;
  padding: 0 22px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: white;
  background: linear-gradient(135deg, var(--ink), #16382f 58%, #247125);
  box-shadow: 0 13px 30px rgb(26 66 52 / 20%);
  font-size: .64rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.contact-submit svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--transition);
}

.contact-submit:hover {
  border-color: #247125;
  background: #247125;
  box-shadow: 0 17px 36px rgb(36 113 37 / 24%);
  transform: translateY(-2px);
}

.contact-submit:hover svg {
  transform: translateX(3px);
}

.contact-form-actions p {
  margin: 0;
  color: #707673;
  font-size: .5rem;
}

.contact-form-status {
  min-height: 20px;
  margin: 10px 0 0;
  color: #296c4e;
  font-size: .56rem;
  font-weight: 600;
}

.contact-form-status.is-error {
  color: #91343a;
}

.contact-guidance {
  padding: 82px 0 94px;
  border-top: 1px solid var(--line);
  background: #faf9f7;
}

.contact-guidance-grid {
  display: grid;
  gap: 45px;
}

.contact-guidance-heading {
  max-width: 620px;
}

.contact-guidance-heading .eyebrow {
  color: #247125;
}

.contact-guidance-heading h2 {
  margin-bottom: 20px;
  font-size: clamp(3rem, 9vw, 5.4rem);
}

.contact-guidance-heading > p:last-child {
  max-width: 510px;
  margin: 0;
  color: #5e6562;
  font-size: .7rem;
}

.contact-guidance-cards {
  border-top: 1px solid var(--line);
}

.contact-guidance-cards a {
  min-height: 122px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  transition: padding var(--transition), color var(--transition), background var(--transition);
}

.contact-guidance-cards a:hover {
  padding-inline: 13px;
  color: #174c3f;
  background: rgb(36 113 37 / 4%);
}

.contact-guidance-cards a > span {
  color: #247125;
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.contact-guidance-cards h3 {
  margin: 0 0 5px;
  font-family: var(--font-body);
  font-size: .72rem;
}

.contact-guidance-cards p {
  max-width: 520px;
  margin: 0;
  color: #626865;
  font-size: .58rem;
}

.contact-guidance-cards b {
  width: 34px;
  height: 34px;
  border: 1px solid rgb(16 17 22 / 13%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .65rem;
  font-weight: 500;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.contact-guidance-cards a:hover b {
  border-color: #247125;
  color: white;
  background: #247125;
}

.contact-page .site-footer {
  border-top: 1px solid rgb(255 255 255 / 9%);
}

.contact-page.is-reveal-ready [data-contact-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.contact-page.is-reveal-ready [data-contact-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (min-width: 520px) {
  .contact-direct-card {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .contact-copy-button {
    grid-column: auto;
  }

  .contact-panel {
    padding: 38px 36px 34px;
  }

  .contact-form-actions {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
  }

  .contact-submit {
    width: fit-content;
    min-width: 224px;
  }
}

@media (min-width: 650px) {
  .contact-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
  }

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

@media (min-width: 800px) {
  .contact-guidance-grid {
    grid-template-columns: .76fr 1.24fr;
    align-items: start;
    gap: clamp(60px, 8vw, 120px);
  }
}

@media (min-width: 1060px) {
  .contact-hero {
    min-height: 930px;
    padding-block: calc(var(--header-height) + 66px) 88px;
  }

  .contact-hero-grid {
    grid-template-columns: minmax(0, .95fr) minmax(500px, 1.05fr);
    align-items: center;
    gap: clamp(55px, 7vw, 116px);
  }

  .contact-intro h1 {
    font-size: clamp(6.3rem, 8vw, 8rem);
  }

  .contact-panel {
    margin-right: 0;
  }

  .contact-guidance {
    padding-block: 112px 122px;
  }
}

@media (min-width: 1360px) {
  .contact-intro h1 {
    font-size: 8rem;
  }
}

@media (max-width: 1059px) {
  .contact-hero {
    background-position: 76% center;
  }

  .contact-hero::before {
    background:
      linear-gradient(180deg, rgb(247 249 248 / 98%) 0 36%, rgb(247 249 248 / 91%) 52%, rgb(247 249 248 / 47%) 73%, rgb(247 249 248 / 12%) 100%),
      linear-gradient(90deg, rgb(247 249 248 / 48%), transparent 78%);
  }
}

@media (max-width: 599px) {
  .contact-hero {
    min-height: 0;
    padding: calc(var(--header-height) + 44px) 0 70px;
  }

  .contact-intro h1 {
    font-size: clamp(3.85rem, 16vw, 5.2rem);
  }

  .contact-lead {
    max-width: 95%;
  }

  .contact-panel-heading {
    align-items: flex-start;
  }

  .contact-panel-heading h2 {
    font-size: clamp(2.3rem, 11vw, 3.15rem);
  }

  .contact-guidance-cards a {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-page *,
  .contact-page *::before,
  .contact-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .contact-page.is-reveal-ready [data-contact-reveal] {
    opacity: 1;
    transform: none;
  }
}
