:root {
  --contact-ink: #14241e;
  --contact-accent: #7a6348;
  --contact-paper: #f4f1e6;
  --contact-border: #d3c8b5;
}

body[data-site-nav="contact"] .contact-page {
  width: 100%;
  color: var(--contact-ink);
  background: var(--contact-paper);
  font-family: "Crimson Pro", Georgia, serif;
}

.contact-hero {
  position: relative;
  min-height: clamp(410px, 34vw, 520px);
  overflow: hidden;
  border-bottom: 1px solid rgba(211, 200, 181, 0.72);
  background: #ddd4c4;
  isolation: isolate;
}

.contact-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 28%;
  filter: saturate(0.83) sepia(0.08) brightness(1.03);
  z-index: -3;
}

.contact-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(244, 241, 230, 0.97) 0%, rgba(244, 241, 230, 0.88) 24%, rgba(244, 241, 230, 0.44) 48%, rgba(244, 241, 230, 0.04) 72%);
  opacity: calc(0.3 + var(--contact-overlay-opacity, 0.42));
  z-index: -2;
}

.contact-hero[data-height="compact"] { min-height: clamp(340px, 27vw, 390px); }
.contact-hero[data-height="large"] { min-height: clamp(520px, 39vw, 590px); }
.contact-hero[data-text-alignment="center"] .contact-hero-inner { justify-content: center; }
.contact-hero[data-text-alignment="center"] .contact-hero-copy { width: min(72%, 720px); text-align: center; }
.contact-hero[data-text-alignment="center"] .contact-hero-copy p { margin-right: auto; margin-left: auto; }

.contact-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 84px;
  background: linear-gradient(0deg, rgba(244, 241, 230, 0.28), transparent);
  pointer-events: none;
  z-index: -1;
}

.contact-hero-inner {
  display: flex;
  align-items: center;
  width: min(100%, 1280px);
  min-height: inherit;
  margin: 0 auto;
  padding: 56px 52px;
}

.contact-hero-copy {
  width: min(49%, 590px);
}

.contact-hero-copy h1,
.contact-section-heading h2,
.contact-topics-heading h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.contact-hero-copy h1 {
  font-size: clamp(52px, 5vw, 72px);
  line-height: 1.03;
}

.contact-hero-copy p {
  max-width: 510px;
  margin: 27px 0 0;
  font-size: 20px;
  line-height: 1.44;
}

.contact-main {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(310px, 0.9fr);
  gap: clamp(58px, 7vw, 92px);
  width: min(calc(100% - 64px), 1240px);
  margin: 0 auto;
  padding: 78px 0 82px;
}

.contact-section-heading h2 {
  font-size: clamp(34px, 3vw, 42px);
  line-height: 1.14;
}

.contact-section-heading > span {
  display: block;
  width: 50px;
  height: 1px;
  margin-top: 18px;
  background: var(--contact-accent);
  opacity: 0.54;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 24px;
  margin-top: 31px;
}

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

.contact-field label,
.contact-consent label {
  display: block;
}

.contact-field > label {
  margin-bottom: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1.3;
  text-transform: uppercase;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--contact-border);
  border-radius: 0;
  color: var(--contact-ink);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: none;
  font: 400 16px/1.35 "Crimson Pro", Georgia, serif;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.contact-field input,
.contact-field select {
  height: 54px;
  padding: 0 17px;
}

.contact-field select {
  appearance: auto;
}

.contact-field textarea {
  min-height: 178px;
  padding: 15px 17px;
  resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(20, 36, 30, 0.48);
  opacity: 1;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus,
.contact-consent input:focus-visible,
.contact-submit:focus-visible,
.contact-collaboration button:focus-visible,
.contact-topic:focus-visible,
.contact-method:focus-visible {
  outline: 2px solid var(--contact-accent);
  outline-offset: 3px;
}

.contact-field [aria-invalid="true"] {
  border-color: #9b3f35;
  box-shadow: 0 0 0 1px rgba(155, 63, 53, 0.12);
}

.contact-field-error {
  min-height: 16px;
  margin: 5px 0 -16px;
  color: #8f3029;
  font: 600 13px/1.2 "Crimson Pro", Georgia, serif;
}

.contact-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px 10px;
  align-items: start;
}

.contact-consent input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  accent-color: var(--contact-ink);
}

.contact-consent label {
  font-size: 14px;
  line-height: 1.35;
}

.contact-consent label a {
  margin-left: 4px;
  color: var(--contact-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-consent .contact-field-error {
  grid-column: 2;
  margin-top: -5px;
}

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

.contact-submit-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  min-width: 224px;
  min-height: 52px;
  padding: 0 23px;
  border: 1px solid var(--contact-accent);
  border-radius: 0;
  color: var(--contact-paper);
  background: var(--contact-accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.21em;
  text-transform: uppercase;
  transition: color 160ms ease, background-color 160ms ease;
}

.contact-submit:hover:not(:disabled) {
  color: var(--contact-accent);
  background: transparent;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: 0.62;
}

.contact-response-note {
  margin: 0;
  color: rgba(20, 36, 30, 0.55);
  font-size: 14px;
}

.contact-form-status {
  display: none;
  padding: 13px 15px;
  border: 1px solid var(--contact-border);
  font-size: 15px;
  line-height: 1.35;
}

.contact-form-status.is-visible {
  display: block;
}

.contact-form-status.is-success {
  border-color: rgba(45, 101, 70, 0.42);
  background: rgba(220, 233, 221, 0.58);
}

.contact-form-status.is-error {
  border-color: rgba(143, 48, 41, 0.38);
  background: rgba(242, 221, 216, 0.58);
}

.contact-methods {
  margin-top: 23px;
}

.contact-methods-empty { margin: 24px 0; color: rgba(20,36,30,.58); font-size: 16px; }

.contact-method {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 99px;
  border-bottom: 1px solid var(--contact-border);
  color: var(--contact-ink);
  text-decoration: none;
}

.contact-method-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(211, 200, 181, 0.28);
}

.contact-method-icon img {
  width: 23px;
  height: 23px;
}

.contact-method-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-method-copy strong {
  font-size: 22px;
  font-weight: 400;
}

.contact-method-copy small {
  font-size: 16px;
}

.contact-method-arrow {
  font-size: 24px;
  transition: transform 160ms ease;
}

.contact-method:hover .contact-method-arrow {
  transform: translateX(4px);
}

.contact-collaboration {
  margin-top: 34px;
  padding: 26px 28px 24px;
  border: 1px solid rgba(211, 200, 181, 0.72);
  background: rgba(232, 224, 208, 0.48);
  text-align: center;
}

.contact-collaboration-mark {
  display: block;
  width: 42px;
  height: 1px;
  margin: 0 auto;
  background: var(--contact-accent);
  opacity: 0.55;
}

.contact-collaboration h3 {
  margin: 9px 0 0;
  color: var(--contact-accent);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 25px;
  font-style: italic;
  font-weight: 400;
}

.contact-collaboration p {
  margin: 13px auto 0;
  max-width: 370px;
  font-size: 16px;
  line-height: 1.42;
}

.contact-collaboration button {
  margin-top: 15px;
  border: 0;
  padding: 2px;
  color: var(--contact-accent);
  background: transparent;
  font: 400 16px/1.2 "Crimson Pro", Georgia, serif;
}

.contact-topics {
  padding: 48px max(32px, calc((100% - 1240px) / 2)) 58px;
  border-top: 1px solid rgba(211, 200, 181, 0.56);
  background: rgba(255, 255, 255, 0.13);
}

.contact-topics-heading {
  text-align: center;
}

.contact-topics-heading h2 {
  font-size: clamp(27px, 2.5vw, 34px);
  letter-spacing: -0.025em;
}

.contact-topics-heading span {
  display: block;
  width: 42px;
  height: 1px;
  margin: 17px auto 0;
  background: var(--contact-accent);
}

.contact-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 33px;
}

.contact-topic {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 132px;
  border: 0;
  border-right: 1px solid var(--contact-border);
  padding: 0 25px;
  color: var(--contact-ink);
  background: transparent;
  text-align: center;
}

.contact-topic:last-child {
  border-right: 0;
}

.contact-topic-icon {
  display: block;
  width: 40px;
  min-height: 41px;
  color: var(--contact-accent);
  transition: transform 160ms ease;
}

.contact-topic-icon svg {
  display: block;
  width: 40px;
  height: 40px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-topic-icon .contact-topic-icon-front {
  fill: var(--contact-paper);
}

.contact-topic:hover .contact-topic-icon {
  transform: translateY(-3px);
}

.contact-topic strong {
  margin-top: 8px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact-topic small {
  max-width: 205px;
  margin-top: 9px;
  font-size: 15px;
  line-height: 1.32;
}

@media (max-width: 980px) {
  .contact-hero-copy { width: min(65%, 560px); }
  .contact-main { grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); gap: 48px; }
  .contact-topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .contact-hero { min-height: 390px; }
  .contact-hero[data-height="compact"] { min-height: 340px; }
  .contact-hero[data-height="large"] { min-height: 470px; }
  .contact-hero-image { object-position: 68% 45%; }
  .contact-hero-shade { background: linear-gradient(90deg, rgba(244, 241, 230, 0.95) 0%, rgba(244, 241, 230, 0.77) 58%, rgba(244, 241, 230, 0.28) 100%); }
  .contact-hero-inner { padding: 44px 24px; }
  .contact-hero-copy { width: 76%; }
  .contact-hero-copy h1 { font-size: clamp(40px, 12vw, 48px); }
  .contact-hero-copy p { margin-top: 20px; font-size: 18px; }
  .contact-main { grid-template-columns: minmax(0, 1fr); width: min(calc(100% - 40px), 620px); padding: 55px 0 62px; gap: 62px; }
  .contact-form { grid-template-columns: minmax(0, 1fr); }
  .contact-field-wide { grid-column: auto; }
  .contact-consent .contact-field-error { grid-column: 2; }
  .contact-submit { width: 100%; }
  .contact-topics { padding: 42px 20px 50px; }
}

@media (max-width: 520px) {
  .contact-hero { min-height: 360px; }
  .contact-hero[data-height="compact"] { min-height: 320px; }
  .contact-hero[data-height="large"] { min-height: 430px; }
  .contact-hero-copy { width: 90%; }
  .contact-hero-shade { background: linear-gradient(90deg, rgba(244, 241, 230, 0.94), rgba(244, 241, 230, 0.63) 72%, rgba(244, 241, 230, 0.25)); }
  .contact-method { grid-template-columns: 54px minmax(0, 1fr) auto; gap: 14px; }
  .contact-method-icon { width: 54px; height: 54px; }
  .contact-topic-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-topic, .contact-topic:nth-child(2) { min-height: 116px; border-right: 0; border-bottom: 1px solid var(--contact-border); padding: 0 10px 24px; }
  .contact-topic:last-child { border-bottom: 0; }
}

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