/* Editorial field-note pages, built to sit alongside the portfolio's clean type. */
.visit-page {
  --page-accent: #56705d;
  --page-wash: #f1f4ef;
  width: min(1120px, calc(100% - 56px));
  margin: 0 auto;
  padding: 26px 0 44px;
}

.visit-page--deepmind {
  --page-accent: #4c68aa;
  --page-wash: #f1f3fa;
}

body[data-theme="dark"] .visit-page {
  --page-wash: #1b211c;
}

body[data-theme="dark"] .visit-page--deepmind {
  --page-wash: #1b1e29;
}

.visit-back,
.visit-footer a {
  font-size: 13px;
}

.visit-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: clamp(32px, 6vw, 76px);
  min-height: 470px;
  margin: 24px 0 66px;
  padding: clamp(34px, 6vw, 72px);
  overflow: hidden;
  border-radius: 8px;
  background: var(--page-wash);
}

.visit-hero::before {
  position: absolute;
  top: -180px;
  left: 36%;
  width: 430px;
  height: 430px;
  border: 1px solid color-mix(in srgb, var(--page-accent) 18%, transparent);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.visit-hero__copy,
.visit-hero__image {
  position: relative;
  z-index: 1;
}

.visit-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.visit-kicker span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--page-accent);
}

.visit-hero h1 {
  max-width: 650px;
  margin: 0 0 20px;
  font-size: clamp(38px, 5.6vw, 66px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.visit-hero h1 em {
  color: var(--page-accent);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
}

.visit-deck {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.visit-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}

.visit-tags span {
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--page-accent) 25%, transparent);
  border-radius: 999px;
  color: var(--page-accent);
  font-size: 11px;
  letter-spacing: 0.01em;
}

.visit-hero__image {
  justify-self: end;
  width: min(100%, 340px);
  margin: 0;
  padding: 10px 10px 35px;
  transform: rotate(2deg);
  background: var(--bg);
  box-shadow: 0 16px 42px rgba(24, 35, 28, 0.13);
}

.visit-hero__image img {
  display: block;
  width: 100%;
  height: 370px;
  object-fit: cover;
}

.visit-page--mandi .visit-hero__image img {
  object-fit: contain;
  background: var(--page-wash);
}

.visit-hero__image--poster img {
  object-position: center 26%;
}

.visit-hero__image figcaption {
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  color: var(--muted);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  font-style: italic;
  text-align: center;
}

.visit-note {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 34px;
  max-width: 940px;
  margin: 0 auto 82px;
  padding: 0 30px;
}

.visit-note__label {
  margin: 8px 0 0;
  color: var(--page-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.visit-note h2,
.gallery-heading h2 {
  margin: 0 0 16px;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.visit-note div > p {
  max-width: 690px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.visit-story-link {
  display: inline-block;
  margin-top: 4px;
  color: var(--page-accent);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.gallery-heading {
  max-width: 760px;
  margin: 0 auto 28px;
  padding: 0 18px;
}

.gallery-heading .visit-kicker {
  margin-bottom: 12px;
}

.gallery-heading h2 {
  margin-bottom: 7px;
}

.gallery-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.visit-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 28px 18px;
}

.mandi-photo {
  grid-column: span 4;
  min-width: 0;
  margin: 0;
}

.mandi-photo:nth-child(5n + 1) {
  grid-column: span 6;
}

.mandi-photo:nth-child(5n + 2) {
  grid-column: span 6;
}

.mandi-photo a {
  display: block;
  overflow: hidden;
  border-radius: 5px;
  background: var(--page-wash);
}

.mandi-photo img {
  display: block;
  width: 100%;
  height: 270px;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.25s ease;
}

.mandi-photo a:hover img {
  opacity: 0.94;
  transform: scale(1.035);
}

.mandi-photo figcaption {
  padding: 10px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.mandi-photo--wide {
  grid-column: span 8 !important;
}

.mandi-photo--wide img {
  height: 330px;
  object-fit: contain;
  background: #171717;
}

.visit-gallery--deepmind .mandi-photo:nth-child(1) img,
.visit-gallery--deepmind .mandi-photo:nth-child(3) img,
.visit-gallery--deepmind .mandi-photo:nth-child(9) img {
  object-position: center 28%;
}

.visit-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 70px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.visit-footer span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.13em;
}

@media (max-width: 800px) {
  .visit-page {
    width: min(100% - 32px, 680px);
    padding-top: 20px;
  }

  .visit-hero {
    grid-template-columns: minmax(0, 1fr) minmax(190px, 0.7fr);
    gap: 24px;
    min-height: unset;
    margin: 24px 0 54px;
    padding: 35px 28px;
  }

  .visit-hero__image {
    width: 100%;
  }

  .visit-hero__image img {
    height: 290px;
  }

  .visit-note {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 20px;
    margin-bottom: 60px;
    padding: 0 8px;
  }

  .visit-gallery {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .mandi-photo,
  .mandi-photo:nth-child(5n + 1),
  .mandi-photo:nth-child(5n + 2) {
    grid-column: span 3;
  }

  .mandi-photo--wide {
    grid-column: span 6 !important;
  }
}

@media (max-width: 560px) {
  .visit-page {
    width: calc(100% - 28px);
  }

  .visit-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
    margin-top: 22px;
    padding: 30px 22px 34px;
  }

  .visit-hero h1 {
    font-size: clamp(39px, 11vw, 54px);
  }

  .visit-deck {
    font-size: 15px;
  }

  .visit-hero__image {
    justify-self: center;
    width: min(82%, 310px);
  }

  .visit-hero__image img {
    height: 330px;
  }

  .visit-note {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 54px;
    padding: 0 3px;
  }

  .visit-note__label {
    margin-top: 0;
  }

  .gallery-heading {
    padding: 0 3px;
  }

  .visit-gallery {
    grid-template-columns: minmax(0, 1fr);
    gap: 23px;
  }

  .mandi-photo,
  .mandi-photo:nth-child(5n + 1),
  .mandi-photo:nth-child(5n + 2),
  .mandi-photo--wide {
    grid-column: auto !important;
  }

  .mandi-photo img,
  .mandi-photo--wide img {
    height: auto;
    max-height: 500px;
    min-height: 220px;
    object-fit: cover;
  }

  .mandi-photo--wide img {
    object-fit: contain;
  }

  .visit-footer {
    align-items: flex-start;
    margin-top: 48px;
  }

  .visit-footer span {
    max-width: 145px;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mandi-photo img {
    transition: none;
  }
}
