/* A full-width photographic contact section; the photograph stays one panorama. */
:is(.portfolio-page, .contact-page) { overflow-x: clip; }
:is(.portfolio-page, .contact-page) .contact-landscape {
  --color-text: #f3f6fc;
  --color-text-muted: #d0dbea;
  --color-text-faint: #adbed3;
  --color-primary: #a9cbff;
  --color-primary-highlight: rgb(169 203 255 / 13%);
  --color-border: rgb(214 229 250 / 24%);
  --color-divider: rgb(214 229 250 / 22%);
  --color-surface: rgb(15 29 46 / 82%);
  --contact-padding: clamp(64px, 7vw, 112px);
  position: relative;
  isolation: isolate;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding: var(--contact-padding) 20px;
  border: 0;
  background: #111f2d;
  color: var(--color-text);
  overflow: clip;
}
.contact-landscape-art, .contact-landscape-photo, .contact-photo-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.contact-landscape-art { z-index: -1; }
.contact-landscape-photo {
  object-fit: cover;
  object-position: center;
  filter: saturate(.6) brightness(.75);
}
.contact-landscape-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(7 17 29 / 81%), rgb(8 21 37 / 65%) 58%, rgb(8 21 37 / 60%)),
    linear-gradient(0deg, rgb(7 17 29 / 30%), transparent 50%);
}
.contact-photo-grid {
  z-index: 1;
  display: grid;
  grid-auto-rows: var(--photo-cell, 80px);
  grid-template-columns: repeat(var(--photo-cols, 1), var(--photo-cell, 80px));
  height: auto;
  bottom: auto;
}
.contact-photo-tile {
  position: relative;
  overflow: hidden;
  width: var(--photo-cell);
  height: var(--photo-cell);
  border-right: 1px solid rgb(193 216 247 / 8%);
  border-bottom: 1px solid rgb(193 216 247 / 8%);
}
.contact-photo-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('images/contact-hat-pattern.svg');
  background-size: var(--hat-size) var(--hat-size);
  background-position: var(--hat-x) var(--hat-y);
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.6s ease-out;
}
.contact-photo-tile.is-lit::after { opacity: .65; transition-duration: 0ms; }
.contact-landscape-content { max-width: var(--content); min-height: 680px; margin: 0 auto; }
.contact-landscape h2 { font-size: clamp(2rem, 3.5vw, 3rem); letter-spacing: -.035em; }
.contact-landscape .contact-context { margin-top: 32px; margin-bottom: 40px; }
.contact-landscape .contact-links { font-size: var(--text-sm); line-height: 1.9; }
.contact-landscape .contact-links a, .contact-landscape .contact-route a { text-decoration-color: rgb(169 203 255 / 50%); }
.contact-landscape a:hover { color: #fff; }
.contact-landscape .contact-message { padding-top: 24px; }
.contact-landscape .contact-message input, .contact-landscape .contact-message textarea { background: rgb(12 26 43 / 82%); }
.contact-landscape .form-submit { color: #0d2340; background: #b5d2ff; border-color: #b5d2ff; }
.contact-landscape .form-submit:hover { background: #d5e5ff; border-color: #d5e5ff; }
.contact-landscape .message-close { color: var(--color-text-muted); }
.contact-page-intro { margin-bottom: 28px; }
.contact-page-intro .section-lead { max-width: none; margin: 0 0 20px; font-size: var(--text-base); line-height: 1.8; }
.contact-page .contact-compose { display: block; }
.contact-page .contact-landscape .contact-message { width: 100%; padding: 0; border: 0; }
.contact-page .contact-message textarea { min-height: 320px; line-height: 1.7; }
.contact-response { display: block; }
.contact-page .form-field-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-page .collection-page > .contact-landscape { padding-block: var(--contact-padding); }
@media (min-width: 1280px) and (min-height: 600px) {
  .chapter-nav:has(a[href="#contact"][aria-current="location"]) {
    --color-text-muted: #cdd8e7;
    --color-text-faint: #a5b6cc;
    --color-primary: #b5d2ff;
    --color-primary-highlight: rgb(169 203 255 / 15%);
  }
}
@media (max-width: 820px) {
  :is(.portfolio-page, .contact-page) .contact-landscape { --contact-padding: 56px; padding-block: var(--contact-padding); }
  .contact-landscape-content { min-height: 700px; }
  .contact-landscape .contact-message { padding-top: 40px; }
  .contact-landscape .contact-context { margin-block: 24px 32px; }
  .contact-landscape-art::after { background: rgb(7 19 33 / 68%); }
}
@media (max-width: 360px) { .contact-landscape-content { min-height: 820px; } }
@media (prefers-reduced-motion: reduce) {
  .contact-photo-tile::after { transition: none; }
}
@media print {
  :is(.portfolio-page, .contact-page) .contact-landscape { width: auto; margin-inline: 0; padding: 0; background: none; --color-text: #111; --color-text-muted: #444; --color-text-faint: #555; --color-primary: #164c96; }
  .contact-landscape-content { min-height: 0; }
  .contact-page .collection-page > .contact-landscape { padding: 0; }
  .contact-landscape-art { display: none; }
}
