/* Contact-page layout: branded form panel, field states, security widget, and responsive stacking. */
.contact-page .page {
  background: #ffffff;
}

/* Contact hero uses a media crossfade independently of the office gallery lower on the page. */
.contact-hero {
  position: relative;
  min-height: var(--hero-banner-min-height);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 26%, rgba(255, 255, 255, .18), transparent 34%),
    linear-gradient(145deg, #005746 0%, #2e7d52 54%, #6e9c56 100%);
  color: #ffffff;
  isolation: isolate;
}

.contact-hero::before,
.contact-hero::after {
  position: absolute;
  content: "";
  inset: 0;
  pointer-events: none;
}

.contact-hero::before {
  z-index: 2;
  background: var(--hero-image-overlay);
}

.contact-hero::after {
  z-index: 1;
  background:
    radial-gradient(circle at 70% 24%, rgba(255, 255, 255, .16), transparent 30%),
    radial-gradient(circle at 82% 72%, rgba(0, 87, 70, .26), transparent 36%),
    linear-gradient(125deg, #005746 0%, #367f57 52%, #80aa62 100%);
  opacity: 0;
  transform: scale(1.04) translate3d(0, 0, 0);
  animation: landing-hero-placeholders 18s ease-in-out infinite;
}

.contact-hero__slides,
.contact-hero__slide,
.contact-hero__slide picture,
.contact-hero__slide img,
.contact-hero__shade {
  position: absolute;
  inset: 0;
}

.contact-hero__slide {
  opacity: 0;
  transition: opacity var(--hero-crossfade-duration) var(--hero-crossfade-ease);
  pointer-events: none;
}

.contact-hero__slide.is-active {
  z-index: 1;
  opacity: 1;
}

.contact-hero__slide picture {
  display: block;
}

.contact-hero__slide--placeholder {
  overflow: hidden;
  background: #005746;
}

.contact-hero__slide--placeholder::before {
  position: absolute;
  content: "";
  inset: -4%;
  background:
    linear-gradient(rgba(255, 255, 255, .105) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .105) 1px, transparent 1px),
    radial-gradient(circle at 74% 28%, rgba(190, 207, 153, .34), transparent 34%),
    radial-gradient(circle at 28% 78%, rgba(0, 87, 70, .4), transparent 38%),
    linear-gradient(118deg, #005746 0%, #2f7d56 54%, #6e9c56 100%);
  background-size: 56px 56px, 56px 56px, auto, auto, auto;
  animation: contact-placeholder-drift 10s cubic-bezier(.37, 0, .63, 1) infinite alternate;
}

.contact-hero__slide--placeholder-mist::before {
  background:
    linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px),
    radial-gradient(circle at 22% 30%, rgba(190, 207, 153, .3), transparent 31%),
    radial-gradient(circle at 80% 72%, rgba(0, 87, 70, .34), transparent 39%),
    linear-gradient(135deg, #0b5f4b 0%, #4f8a5d 56%, #9ab976 100%);
  background-size: 64px 64px, 64px 64px, auto, auto, auto;
  animation-direction: alternate-reverse;
}

@keyframes contact-placeholder-drift {
  from {
    transform: scale(1.015) translate3d(-.4%, 0, 0);
  }

  to {
    transform: scale(1.065) translate3d(.6%, -.4%, 0);
  }
}

.contact-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
}

.contact-hero__slide:first-child img {
  object-position: center;
}

.contact-hero__slide.is-active img {
  animation: contact-hero-ken-burns var(--hero-ken-burns-pass-duration) var(--hero-ken-burns-pass-ease) both;
}

.contact-hero__slide:nth-child(3) img {
  object-position: center 43%;
}

.contact-hero__slide:nth-child(6) img,
.contact-hero__slide:nth-child(7) img {
  object-position: center 38%;
}

.contact-hero__shade {
  z-index: 2;
  background: none;
  pointer-events: none;
}

@keyframes contact-hero-ken-burns {
  from {
    transform: scale(1.015);
  }

  to {
    transform: scale(1.075);
  }
}

.contact-hero__content {
  position: relative;
  z-index: 3;
  width: var(--hero-banner-content-width);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--hero-banner-content-gap);
  margin-left: var(--hero-banner-gutter);
  margin-right: auto;
  padding-bottom: var(--hero-banner-pad-bottom);
}

.contact-hero__dots {
  position: absolute;
  z-index: 4;
  right: clamp(24px, 4vw, 58px);
  bottom: clamp(22px, 3vw, 38px);
}

.contact-hero__content > span,
.contact-details__eyebrow,
.contact-form__heading > span {
  display: block;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 600;
}

.contact-hero__content > span {
  color: var(--type-hero-eyebrow-color);
  font-family: var(--type-hero-eyebrow-font-family);
  font-size: var(--type-hero-eyebrow-size);
  font-weight: var(--type-hero-eyebrow-weight);
  letter-spacing: var(--type-hero-eyebrow-letter-spacing);
  line-height: var(--type-hero-eyebrow-line-height);
  margin: 0;
  text-transform: var(--type-hero-eyebrow-text-transform);
}

.contact-details__eyebrow,
.contact-form__heading > span {
  text-transform: uppercase;
}

.contact-hero h1 {
  max-width: 15ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--type-hero-heading-size);
  font-weight: 500;
  line-height: var(--type-hero-heading-line-height);
  text-align: left;
  text-indent: 0;
  text-wrap: normal;
}

.contact-hero p {
  max-width: var(--type-hero-copy-width);
  margin: 0;
  color: rgba(255, 255, 255, .85);
  font-size: var(--type-hero-copy-size);
  line-height: var(--type-hero-copy-line-height);
  text-wrap: balance;
}

/* Inquiry workspace pairs location context with the form, then stacks the two areas for narrower screens. */
.contact-workspace {
  width: min(1320px, calc(100% - clamp(48px, 9vw, 132px)));
  display: grid;
  grid-template-columns: minmax(280px, .7fr) minmax(520px, 1.3fr);
  gap: clamp(56px, 8vw, 120px);
  margin: 0 auto;
  padding-block: clamp(72px, 9vw, 128px);
}

.contact-details {
  padding-top: 10px;
}

.contact-details__eyebrow,
.contact-form__heading > span {
  color: #6e9c56;
}

.contact-details h2,
.contact-form__heading h2 {
  margin: 0;
  color: #005746;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
}

.contact-details h2 {
  max-width: 19ch;
  font-size: clamp(30px, 2.75vw, 40px);
  line-height: 1.12;
  text-wrap: balance;
}

.contact-details > p {
  margin: 24px 0 0;
  color: #526078;
  font-size: 16px;
  line-height: 1.65;
}

.contact-details dl {
  display: grid;
  gap: 0;
  margin: 44px 0 0;
}

.contact-details dl > div {
  border-top: 1px solid #dce5d5;
  padding-block: 20px;
}

.contact-details dt {
  margin-bottom: 7px;
  color: #6e9c56;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.contact-details dd {
  margin: 0;
  color: #23483e;
  font-size: 14px;
  line-height: 1.55;
}

/* Office photographs and their pagination share one gallery box; active-frame state comes from contact-shell.js. */
.office-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 4;
  margin-top: clamp(28px, 3vw, 42px);
  overflow: hidden;
  border-radius: 24px;
  background: #dce4dc;
  box-shadow: 0 18px 44px rgba(16, 54, 43, .12);
}

.office-gallery__slides,
.office-gallery__slide,
.office-gallery__slide img,
.office-gallery__shade {
  position: absolute;
  inset: 0;
}

.office-gallery__slide {
  opacity: 0;
  transition: opacity var(--hero-crossfade-duration) var(--hero-crossfade-ease);
  pointer-events: none;
}

.office-gallery__slide.is-active {
  z-index: 1;
  opacity: 1;
}

.office-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
}

.office-gallery__slide:nth-child(5) img {
  object-position: center 62%;
}

.office-gallery__slide.is-active img {
  animation: contact-hero-ken-burns var(--hero-ken-burns-pass-duration) var(--hero-ken-burns-pass-ease) both;
}

.office-gallery__shade {
  z-index: 2;
  background: linear-gradient(0deg, rgba(7, 46, 36, .72), rgba(7, 46, 36, 0) 58%);
  pointer-events: none;
}

.office-gallery__caption {
  position: absolute;
  z-index: 3;
  left: 22px;
  bottom: 42px;
  display: grid;
  gap: 4px;
  color: #ffffff;
}

.office-gallery__caption span {
  color: #d8e4b1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.office-gallery__caption strong {
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 500;
}

.office-gallery__dots {
  position: absolute;
  z-index: 4;
  right: 20px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.office-gallery__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .58);
  cursor: pointer;
  transition: width .28s ease, background-color .28s ease;
}

/* The office carousel sits directly over photography, so its active mark
   follows the white hero-indicator contrast contract rather than card chrome. */
.office-gallery__dots button.is-active {
  width: 24px;
  background: var(--hero-pagination-dot-active);
}

.office-gallery__dots button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.contact-details a:hover {
  color: #6e9c56;
}

/* Form geometry and visible field states; client validation supplies messages while the server remains authoritative. */
.contact-form {
  border: 1px solid #dfe8da;
  /* The inquiry workspace is a card surface; individual controls use the smaller control radius. */
  border-radius: var(--radius-card);
  padding: clamp(30px, 4.5vw, 58px);
  background: #f6f8f4;
}

.contact-form__heading {
  margin-bottom: 38px;
}

.contact-form__heading > p {
  margin: 12px 0 0;
  color: #60716a;
  font-size: 12px;
  line-height: 1.5;
}

.contact-form__heading h2 {
  font-size: clamp(30px, 3.4vw, 44px);
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 22px;
}

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

.contact-form label > span {
  color: #31594d;
  font-size: 13px;
  font-weight: 500;
}

.contact-form__label-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #31594d;
  font-size: 13px;
  font-weight: 500;
}

.contact-form__label-text > small {
  padding: 4px 8px 3px;
  border-radius: 999px;
  color: #356b55;
  background: #e5eedc;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.contact-form__label-text > small.is-optional {
  color: #6d7974;
  background: #edf1ed;
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #ccd9c6;
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  background: #ffffff;
  color: #193b32;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input {
  min-height: 48px;
}

.contact-form select {
  min-height: 48px;
  cursor: pointer;
}

/* Keep contact-page all-caps labels aligned with the global eyebrow token. */
.contact-details__eyebrow,
.contact-form__heading > span,
.contact-details dt,
.office-gallery__caption span {
  font-family: var(--font-body);
  font-size: var(--type-eyebrow-size);
  font-weight: var(--type-eyebrow-weight);
  letter-spacing: var(--type-eyebrow-letter-spacing);
  line-height: var(--type-eyebrow-line-height);
  text-transform: uppercase;
}

.contact-form textarea {
  min-height: 158px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #6e9c56;
  box-shadow: 0 0 0 3px rgba(110, 156, 86, .14);
}

.contact-form label.has-error input,
.contact-form label.has-error select,
.contact-form label.has-error textarea {
  border-color: var(--error-border);
  box-shadow: 0 0 0 3px var(--error-ring);
}

.contact-form__field-error {
  display: none;
  margin: 1px 0 0;
  padding: 8px 10px;
  align-items: flex-start;
  gap: 7px;
  border: 1px solid var(--error-border);
  border-radius: var(--radius-sm);
  color: var(--error-text);
  background: var(--error-background);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  animation: contact-field-error-in 220ms cubic-bezier(.22, 1, .36, 1) both;
}

.contact-form__field-error:not(:empty) {
  display: flex;
}

.contact-form__field-error:not(:empty)::before {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  content: "!";
  color: #ffffff;
  background: var(--error-accent);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

@keyframes contact-field-error-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-form__interest,
.contact-form__other-subject,
.contact-form__email,
.contact-form__message {
  grid-column: 1 / -1;
}

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

.contact-form__interest {
  display: grid;
  gap: 9px;
  position: relative;
}

.contact-form__interest.is-enhanced > select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Enhanced service selector overlays a native select. Keep focus and open-panel states consistent with contact-shell.js. */
.contact-interest {
  position: relative;
  z-index: 4;
  isolation: isolate;
}

.contact-interest__trigger {
  width: 100%;
  min-height: 66px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #ccd9c6;
  border-radius: 16px;
  background: #fff;
  color: #193b32;
  box-shadow: 0 12px 34px rgba(51, 73, 94, .06);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 260ms cubic-bezier(.22, 1, .36, 1),
    box-shadow 320ms cubic-bezier(.22, 1, .36, 1),
    transform 260ms cubic-bezier(.22, 1, .36, 1);
}

.contact-interest__trigger:hover,
.contact-interest.is-open .contact-interest__trigger {
  border-color: #becf99;
  box-shadow: 0 16px 42px rgba(51, 73, 94, .1);
}

.contact-interest__trigger:focus-visible {
  outline: 3px solid rgba(190, 207, 153, .55);
  outline-offset: 3px;
}

.contact-interest__icon,
.contact-interest__toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #005746;
  background: #f7f4ee;
  transition:
    background 260ms ease,
    transform 420ms cubic-bezier(.22, 1, .36, 1);
}

.contact-interest__icon {
  background: #eef2e6;
}

.contact-interest__icon svg,
.contact-interest__toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.contact-interest.is-open .contact-interest__toggle {
  background: #e8efdd;
  transform: rotate(180deg);
}

.contact-interest__value {
  overflow: hidden;
  color: #193b32;
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-interest__value.is-placeholder {
  color: #60716a;
}

.contact-interest__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: 0;
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid #ebe5da;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(35, 57, 50, .14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-10px) scale(.985);
  transform-origin: top center;
  transition:
    opacity 280ms ease,
    transform 440ms cubic-bezier(.22, 1, .36, 1),
    visibility 0s linear 440ms;
}

.contact-interest.is-open .contact-interest__panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 0s;
}

.contact-interest__heading {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  padding: 5px 7px 11px;
  border-bottom: 1px solid #eee8de;
}

.contact-interest__heading span {
  color: #005746;
  font-size: 13px;
  font-weight: 600;
}

.contact-interest__heading small {
  color: #71859b;
  font-size: 11px;
}

.contact-interest__option {
  width: 100%;
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: #fff;
  color: #33495e;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    color 220ms ease,
    transform 260ms cubic-bezier(.22, 1, .36, 1);
}

.contact-interest__option:hover,
.contact-interest__option:focus-visible,
.contact-interest__option.is-active {
  border-color: #dce6ca;
  background: #f7f9f3;
  color: #005746;
  outline: none;
  transform: translateX(2px);
}

.contact-interest__option.is-selected {
  border-color: #becf99;
  background: #eef2e6;
  color: #005746;
}

.contact-interest__option-title {
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
}

.contact-form__honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

/* Human-verification area reserves room for Turnstile and status text; it is not an optional analytics embed. */
.contact-form__verification {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  margin-top: 28px;
  border-top: 1px solid #dfe8da;
  padding-top: 20px;
}

#contact-turnstile {
  min-height: 1px;
  flex: 0 0 auto;
}

.contact-form__verification > p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #60716a;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  order: -1;
}

.contact-form__verification > p span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-inline-start: -4px;
  color: #2e7d52;
}

.contact-form__verification > p span svg {
  width: 21px;
  height: 21px;
  display: block;
  fill: rgba(110, 156, 86, .08);
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-form__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 20px;
}

.contact-form__footer button {
  min-width: 188px;
  min-height: 54px;
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0 26px;
  background: #005746;
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 87, 70, .15);
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.contact-form__footer button:disabled {
  background: #8aa39a;
  cursor: wait;
  box-shadow: none;
  transform: none;
}

.contact-form__footer button:hover,
.contact-form__footer button:focus-visible {
  background: #6e9c56;
  box-shadow: 0 12px 28px rgba(0, 87, 70, .22);
  transform: translateY(-1px);
}

.contact-form__button-arrow {
  width: 7px;
  height: 13px;
  margin-left: 8px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("assets/icons/arrow-chevron.svg") center / contain no-repeat;
  mask: url("assets/icons/arrow-chevron.svg") center / contain no-repeat;
  transition: transform 180ms ease;
}

.contact-form__footer button:hover .contact-form__button-arrow,
.contact-form__footer button:focus-visible .contact-form__button-arrow {
  transform: translateX(2px);
}

.contact-form__fine-print {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.contact-form__fine-print > p {
  max-width: 620px;
  margin: 0;
  color: #78847f;
  font-size: 10px;
  line-height: 1.55;
}

.contact-form__fine-print a {
  color: #2e7d52;
  text-decoration: underline;
}

/* Submission feedback is separate from field errors and stays in the form live region for assistive technology. */
.contact-form__status {
  min-height: 16px;
  color: #2e7d52;
}

.contact-form__status.is-error {
  color: var(--error-text);
}

.contact-form__status.is-success {
  color: #2e7d52;
  font-weight: 500;
}

/* Responsive form layout: reduce outer whitespace, then stack fields and actions on phones. */
@media (max-width: 900px) {
  .contact-hero__slide:first-child img {
    object-position: 72% center;
  }

  .contact-hero__slide:nth-child(2) img {
    object-position: 58% top;
  }

  .contact-workspace {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .office-gallery {
    max-width: 560px;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 620px) {
  .contact-hero {
    min-height: var(--hero-banner-mobile-min-height);
  }

  .contact-hero::before {
    background: linear-gradient(
      180deg,
      rgba(9, 66, 52, .08) 0%,
      rgba(9, 66, 52, .18) 30%,
      rgba(9, 66, 52, .58) 44%,
      rgba(9, 66, 52, .88) 61%,
      rgba(9, 66, 52, .97) 100%
    );
  }

  .contact-hero__slide img {
    object-position: center;
    transform-origin: center top;
  }

  .contact-hero__slide:first-child img {
    object-position: center;
  }

  .contact-hero__slide:first-child::after {
    display: none;
  }

  .contact-hero__slide:nth-child(4) img,
  .contact-hero__slide:nth-child(5) img {
    object-position: center;
  }

  .contact-hero__slide:nth-child(2) img {
    object-position: center top;
  }

  .contact-hero__slide:nth-child(3) img {
    object-position: 56% center;
  }

  .contact-hero__slide:nth-child(6) img,
  .contact-hero__slide:nth-child(7) img {
    object-position: 64% center;
  }

  .contact-hero__shade {
    background: none;
  }

  .contact-hero__dots {
    right: var(--hero-pagination-mobile-inline);
    bottom: var(--hero-pagination-mobile-bottom);
    left: auto;
    transform: none;
  }

  .contact-hero__content,
  .contact-workspace {
    width: var(--hero-banner-mobile-content-width);
  }

  .contact-hero__content {
    gap: var(--hero-banner-mobile-content-gap);
    margin-inline: auto;
    padding-bottom: var(--hero-pagination-mobile-content-clearance);
    text-shadow: 0 2px 14px rgba(4, 35, 28, .48);
  }

  .contact-hero h1 {
    max-width: 100%;
    font-size: var(--type-hero-heading-mobile-size);
  }

  .contact-hero p {
    color: rgba(255, 255, 255, .96);
    font-size: var(--type-hero-copy-mobile-size);
  }

  .contact-workspace {
    padding-block: 58px;
  }

  .office-gallery {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-card);
  }

  .contact-form {
    padding: 28px 22px;
  }

  .contact-form__grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .contact-form__interest,
  .contact-form__message {
    grid-column: auto;
  }

  .contact-interest__trigger {
    min-height: 60px;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 10px;
    padding: 9px 10px;
  }

  .contact-interest__icon,
  .contact-interest__toggle {
    width: 38px;
    height: 38px;
  }

  .contact-interest__value {
    font-size: 14px;
  }

  .contact-interest__panel {
    max-height: min(390px, 58vh);
    padding: 10px;
    overflow-y: auto;
  }

  .contact-interest__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

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

  .contact-form__verification {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-form__verification > p {
    white-space: normal;
  }

  .contact-form__footer button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-hero__slide,
  .office-gallery__slide {
    transition-duration: .01ms;
  }

  .contact-hero__slide.is-active img,
  .office-gallery__slide.is-active img {
    animation: none;
  }

  .contact-form__field-error {
    animation: none;
  }

  .contact-interest__trigger,
  .contact-interest__icon,
  .contact-interest__toggle,
  .contact-interest__panel,
  .contact-interest__option {
    transition-duration: .01ms;
  }
}

/* Contact and persona confirmations share one calm, image-led dialog pattern. */
.form-success-dialog {
  position: relative;
  margin: auto;
  width: min(calc(100% - 32px), 760px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--modal-surface);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
  overflow: hidden;
}

.form-success-dialog::backdrop {
  background: var(--modal-backdrop-background);
  backdrop-filter: var(--modal-backdrop-filter);
}

.form-success-dialog[open] {
  animation: nka-modal-panel-enter var(--modal-panel-enter) var(--modal-motion-ease) both;
}

.form-success-dialog[open]::backdrop {
  animation: nka-modal-backdrop-enter var(--modal-backdrop-enter) var(--modal-motion-ease) both;
}

.form-success-dialog[open].is-closing {
  pointer-events: none;
  animation: nka-modal-panel-exit var(--modal-panel-exit) var(--modal-motion-ease) both;
}

.form-success-dialog[open].is-closing::backdrop {
  animation: nka-modal-backdrop-exit var(--modal-backdrop-exit) var(--modal-motion-ease) both;
}

.form-success-dialog__visual {
  height: clamp(160px, 25vw, 245px);
  background: var(--nka-stage-field);
  overflow: hidden;
}

.form-success-dialog__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-success-dialog--persona .form-success-dialog__visual img {
  object-position: center 28%;
}

.form-success-dialog__close {
  position: absolute;
  z-index: 2;
  top: var(--modal-close-inset);
  right: var(--modal-close-inset);
  display: grid;
  width: var(--close-control-size);
  height: var(--close-control-size);
  padding: 0;
  place-items: center;
  border: 1px solid var(--modal-close-border);
  border-radius: var(--radius-round);
  background: var(--modal-close-background);
  box-shadow: var(--shadow-sm);
  color: var(--modal-close-color);
  cursor: pointer;
  transition: transform var(--motion-fast) var(--motion-ease), background var(--motion-fast) var(--motion-ease);
}

.form-success-dialog__close svg,
.form-success-dialog__mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.form-success-dialog__close:hover {
  background: var(--modal-close-hover-background);
  color: var(--modal-close-hover-color);
}

.form-success-dialog__close:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

.form-success-dialog__inner {
  display: grid;
  justify-items: center;
  padding: clamp(28px, 5vw, 46px);
  text-align: center;
}

.form-success-dialog__mark {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: var(--radius-round);
  background: var(--color-surface-warm);
  color: var(--color-brand);
}

.form-success-dialog h2 {
  margin: 0;
  color: var(--color-brand);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.04;
  text-wrap: balance;
}

.form-success-dialog p {
  max-width: 560px;
  margin: 16px 0 24px;
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.6;
  text-wrap: balance;
}

.form-success-dialog__action {
  min-width: 190px;
  justify-content: center;
}

body.has-form-success-dialog {
  overflow: hidden;
}

@media (max-width: 560px) {
  .form-success-dialog__visual {
    height: 150px;
  }

  .form-success-dialog__inner {
    padding: 26px 22px 30px;
  }

  .form-success-dialog__action {
    width: 100%;
  }

}

@media (prefers-reduced-motion: reduce) {
  .form-success-dialog[open],
  .form-success-dialog[open]::backdrop,
  .form-success-dialog[open].is-closing,
  .form-success-dialog[open].is-closing::backdrop {
    animation-duration: .01ms;
  }
}

/* Keep the carousel fallback quiet during crossfades so no template grid
   flashes through while both photo layers are partially transparent. */
.contact-hero {
  background-color: #005746;
  background-image: none;
}

.contact-hero::after {
  background: var(--nka-grain);
  background-size: 160px 160px;
  mix-blend-mode: soft-light;
  opacity: 0.14;
  transform: none;
  animation: none;
}

/* Final contact all-caps label pass. Kept at file end so local caption rules
   cannot drift away from the global eyebrow token. */
.contact-details__eyebrow,
.contact-form__heading > span,
.contact-details dt,
.office-gallery__caption span {
  font-family: var(--font-body);
  font-size: var(--type-eyebrow-size);
  font-weight: var(--type-eyebrow-weight);
  letter-spacing: var(--type-eyebrow-letter-spacing);
  line-height: var(--type-eyebrow-line-height);
  text-transform: uppercase;
}
