/* Approved Draft 1 boat-card composition.
   Visual baseline approved at v0.01.23; this canonical stylesheet preserves it. */

/* PORTRAIT — watercolor lives behind the illustration, never over Rachel's arm. */
.portrait-panel {
  overflow: visible;
  background: transparent;
  z-index: 1;
}
.portrait-panel img {
  position: relative;
  z-index: 2;
  width: 121%;
  height: 116%;
  transform: translate(-5%, -4%);
  -webkit-mask-image: linear-gradient(90deg,
    #000 0%, #000 84%, rgba(0,0,0,.98) 87%, rgba(0,0,0,.88) 90%,
    rgba(0,0,0,.64) 93%, rgba(0,0,0,.34) 96%, rgba(0,0,0,.10) 98%,
    transparent 100%);
  mask-image: linear-gradient(90deg,
    #000 0%, #000 84%, rgba(0,0,0,.98) 87%, rgba(0,0,0,.88) 90%,
    rgba(0,0,0,.64) 93%, rgba(0,0,0,.34) 96%, rgba(0,0,0,.10) 98%,
    transparent 100%);
}
.portrait-panel::after {
  z-index: 0;
  inset: -12% -54% -12% -8%;
  background:
    radial-gradient(ellipse 68% 76% at 28% 38%, rgba(23,105,170,.13), transparent 80%),
    radial-gradient(ellipse 64% 70% at 53% 79%, rgba(122,61,184,.12), transparent 82%),
    radial-gradient(ellipse 50% 56% at 78% 31%, rgba(35,140,154,.075), transparent 84%);
  filter: blur(9px);
}

/* Approved back/map. */
.map-panel { isolation: isolate; overflow: visible; margin: -4% -7% -3% -2%; }
.map-panel .loop-map {
  position: absolute;
  width: 126%;
  height: 126%;
  max-width: none;
  right: -7%;
  top: -13%;
  object-fit: contain;
  object-position: right center;
  filter: saturate(.92) contrast(.99);
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0%, transparent 15%, rgba(0,0,0,.12) 19%, rgba(0,0,0,.40) 23%,
    rgba(0,0,0,.70) 28%, rgba(0,0,0,.91) 33%, #000 37%, #000 100%);
  mask-image: linear-gradient(90deg,
    transparent 0%, transparent 15%, rgba(0,0,0,.12) 19%, rgba(0,0,0,.40) 23%,
    rgba(0,0,0,.70) 28%, rgba(0,0,0,.91) 33%, #000 37%, #000 100%);
}
.map-panel::after { display: none; }
.map-inland {
  position: absolute;
  z-index: 4;
  left: .5%;
  top: 54%;
  transform: translateY(-50%);
  color: #314257;
  font-size: clamp(.46rem, .70vw, .72rem);
  line-height: 1;
  font-weight: 430;
  letter-spacing: .105em;
  white-space: nowrap;
  pointer-events: none;
}

/* Card-relative type scale. */
.boat-card { container-type: inline-size; }
.wordmark .rachel,
.wordmark .mark-name,
.back-copy h2 { font-size: 7.1cqw; }
.wordmark .n { font-size: 4.83cqw; }
blockquote p,
.journey-copy { font-size: 2.8cqw; line-height: 1.30; }
blockquote cite { font-size: 2.05cqw; line-height: 1.08; }
.contact-kicker { font-size: 2.1cqw; line-height: 1; }
.domain,
.back-email { font-size: 3cqw; line-height: 1; }

/* FRONT — center the complete text composition in the visible negative space
   bounded by Rachel's fully visible outer arm and the physical card edge. */
.front-copy {
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: start;
  padding: 5.7% 5.2% 5.1% 2.7%;
  transform: translateX(10.2cqw);
}
.wordmark { align-self: start; margin-top: 1%; }
.front-copy blockquote {
  margin: 0;
  align-self: center;
  justify-self: center;
  transform: translateY(6%);
}
blockquote p { margin-bottom: 5%; }
.front-contact {
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  margin: 0;
  align-self: end;
  justify-self: center;
  gap: .42em;
  white-space: nowrap;
}

/* BACK — approved Draft 1 composition. */
.back-copy {
  justify-content: flex-start;
  padding-left: 4%;
  padding-top: 5%;
  padding-bottom: 18%;
}
.back-copy h2 { line-height: .92; }
.back-wave { margin: 7.5% 0 8.5%; }
.journey-copy { max-width: 84%; }
.keep-together { white-space: nowrap; }
.back-contact {
  left: 21%;
  bottom: 5.1%;
  transform: translateX(-50%);
  gap: .42em;
}

@media (max-width: 860px) {
  .map-panel .loop-map { width: 126%; height: 126%; right: -7%; top: -13%; }
  .map-inland { font-size: clamp(.44rem, 1.5vw, .68rem); }
  .back-contact { left: 21%; }
}
