/* Contact page styles. */
/* Contact page: editorial correspondence layout. */
.contact-page {
  position: relative;
  overflow: hidden;
  padding-block: clamp(58px, 9vw, 118px);
  background:
    radial-gradient(circle at 95% 8%, rgba(175, 198, 163, 0.5), transparent 25%),
    radial-gradient(circle at 6% 94%, rgba(229, 202, 218, 0.32), transparent 22%),
    #f7f7f5;
}

.contact-page::before {
  content: "";
  position: absolute;
  top: 12%;
  right: -9%;
  width: clamp(180px, 30vw, 430px);
  aspect-ratio: 1;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.contact-layout {
  position: relative;
  display: grid;
  gap: clamp(38px, 6vw, 76px);
}

.contact-heading {
  position: relative;
  z-index: 2;
}

.contact-heading h1 {
  max-width: 9ch;
  font-size: clamp(3.6rem, 12vw, 7.8rem);
}

.contact-heading > p:last-child {
  max-width: 570px;
  margin-top: 28px;
  color: var(--charcoal);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
}

.contact-visual {
  position: relative;
  z-index: 1;
  width: 82%;
  max-width: 360px;
  justify-self: center;
  margin: 0;
  padding: 11px 11px 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(39, 23, 34, 0.17);
  transform: rotate(2.4deg);
}

.contact-visual::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 82px;
  height: 20px;
  background: rgba(229, 202, 218, 0.88);
  transform: translateX(-50%) rotate(-2deg);
}

.contact-visual img {
  width: 100%;
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
}

.contact-visual figcaption {
  padding-top: 11px;
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.contact-routes {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 14px;
}

.contact-route {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(0, 0, 0, 0.18);
  padding: clamp(18px, 4vw, 28px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 8px 8px 0 rgba(175, 198, 163, 0.52);
  transition: color 200ms ease, background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}

.contact-route:nth-child(2) {
  box-shadow: 8px 8px 0 rgba(229, 202, 218, 0.72);
}

.contact-route-icon {
  align-self: start;
  padding-top: 4px;
  color: var(--accent);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.contact-route-copy {
  display: block;
  min-width: 0;
}

.contact-route-copy small,
.contact-route-copy strong,
.contact-route-copy > span {
  display: block;
}

.contact-route-copy small {
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-route-copy strong {
  overflow-wrap: anywhere;
  color: var(--black);
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 4vw, 1.55rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.contact-route-copy > span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
}

.contact-route-arrow {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--accent);
  transition: transform 200ms ease;
}

.contact-route:hover,
.contact-route:focus-visible {
  background: #fff;
  transform: translate(-3px, -3px);
  box-shadow: 12px 12px 0 var(--sage);
}

.contact-route:nth-child(2):hover,
.contact-route:nth-child(2):focus-visible {
  box-shadow: 12px 12px 0 var(--accent-hover);
}

.contact-route:hover .contact-route-arrow,
.contact-route:focus-visible .contact-route-arrow {
  transform: translate(3px, -3px);
}

/* Image-free contact composition. */
.contact-page {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: center;
  padding-block: clamp(54px, 8vw, 100px);
  background:
    linear-gradient(90deg, rgba(175, 198, 163, 0.72) 0 29%, transparent 29%),
    #f7f7f5;
}

.contact-page::before {
  top: auto;
  right: -7vw;
  bottom: -18vw;
  width: min(48vw, 640px);
  border-color: rgba(150, 42, 108, 0.17);
  box-shadow: 0 0 0 clamp(28px, 5vw, 72px) rgba(229, 202, 218, 0.11);
}

.contact-layout {
  grid-template-columns: 1fr;
  gap: clamp(48px, 8vw, 96px);
  align-items: center;
}

.contact-heading {
  padding: clamp(30px, 6vw, 68px);
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 14px 14px 0 rgba(0, 0, 0, 0.1);
}

.contact-heading h1 {
  max-width: 8.4ch;
  font-size: clamp(3.2rem, 10vw, 7.4rem);
}

.contact-heading > p:last-of-type {
  max-width: 480px;
}

.contact-script {
  position: absolute;
  right: clamp(18px, 4vw, 52px);
  bottom: -0.55em;
  color: var(--accent);
  font-family: var(--font-script);
  font-size: clamp(3.2rem, 8vw, 6rem);
  line-height: 1;
  transform: rotate(-5deg);
  pointer-events: none;
}

.contact-routes {
  gap: 0;
  border-top: 1px solid var(--black);
}

.contact-route,
.contact-route:nth-child(2) {
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: clamp(14px, 3vw, 28px);
  border: 0;
  border-bottom: 1px solid var(--black);
  padding: clamp(24px, 4vw, 38px) clamp(18px, 3vw, 30px);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: none;
}

.contact-route:nth-child(2) {
  border-color: var(--accent);
  background: var(--accent);
}

.contact-route-icon {
  color: var(--accent);
}

.contact-route-copy strong {
  font-size: clamp(1.25rem, 3.2vw, 2.15rem);
}

.contact-route:nth-child(2) .contact-route-icon,
.contact-route:nth-child(2) .contact-route-copy small,
.contact-route:nth-child(2) .contact-route-copy strong,
.contact-route:nth-child(2) .contact-route-copy > span,
.contact-route:nth-child(2) .contact-route-arrow {
  color: #fff;
}

.contact-route:nth-child(2) .contact-route-copy > span {
  opacity: 0.7;
}

.contact-route:hover,
.contact-route:focus-visible,
.contact-route:nth-child(2):hover,
.contact-route:nth-child(2):focus-visible {
  box-shadow: none;
  transform: translateX(8px);
}

.contact-route:hover {
  background: var(--sage-soft);
}

.contact-route:nth-child(2):hover,
.contact-route:nth-child(2):focus-visible {
  background: #74184f;
}

/* Contact experience: an animated open letter. */
.contact-experience {
  min-height: calc(100svh - var(--header-height));
  padding-block: clamp(52px, 7vw, 94px);
  background:
    radial-gradient(circle at 9% 16%, rgba(229, 202, 218, 0.55), transparent 18%),
    radial-gradient(circle at 92% 84%, rgba(175, 198, 163, 0.55), transparent 22%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    #f8f8f6;
  background-size: auto, auto, 72px 72px, auto;
}

.contact-experience::before {
  display: none;
}

.contact-stage {
  position: relative;
  z-index: 2;
  display: grid;
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
}

.letter-visual {
  position: relative;
  width: min(88vw, 450px);
  aspect-ratio: 1.15;
  justify-self: center;
  perspective: 900px;
  filter: drop-shadow(0 28px 32px rgba(50, 25, 42, 0.16));
}

.envelope-back {
  position: absolute;
  z-index: 1;
  right: 4%;
  bottom: 7%;
  left: 4%;
  height: 59%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: var(--sage);
}

.letter-paper {
  position: absolute;
  z-index: 2;
  right: 13%;
  bottom: 18%;
  left: 13%;
  height: 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.16);
  padding: 9% 10%;
  background:
    linear-gradient(90deg, rgba(150, 42, 108, 0.04) 1px, transparent 1px),
    #fff;
  background-size: 28px 28px, auto;
  box-shadow: 0 12px 24px rgba(49, 29, 42, 0.12);
  text-align: center;
  animation: letter-rise 8s cubic-bezier(.3,.7,.2,1) 0.7s infinite;
}

.letter-paper span {
  color: var(--muted);
  font-size: 0.57rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.letter-paper strong {
  margin: 8px 0 15px;
  color: var(--accent);
  font-family: var(--font-script);
  font-size: clamp(3.5rem, 11vw, 6.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 0.75;
  transform: rotate(-4deg);
}

.letter-paper i {
  color: var(--charcoal);
  font-family: var(--font-display);
  font-size: clamp(1rem, 3vw, 1.35rem);
}

.envelope-flap {
  position: absolute;
  z-index: 3;
  right: 4%;
  bottom: 36%;
  left: 4%;
  height: 31%;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: var(--sage-soft);
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  transform-origin: 50% 0;
  backface-visibility: hidden;
  animation: flap-open 8s cubic-bezier(.3,.7,.2,1) 0.7s infinite;
}

.envelope-front {
  position: absolute;
  z-index: 4;
  right: 4%;
  bottom: 7%;
  left: 4%;
  height: 59%;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background:
    linear-gradient(145deg, transparent 0 49.5%, rgba(255,255,255,0.35) 50% 50.5%, transparent 51%),
    linear-gradient(35deg, var(--mauve-soft), var(--accent-hover));
  clip-path: polygon(0 0, 50% 47%, 100% 0, 100% 100%, 0 100%);
}

.envelope-seal {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 26%;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 4px double rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-script);
  font-size: 1.8rem;
  line-height: 1;
  transform: translateX(-50%) rotate(-6deg);
  box-shadow: 0 7px 14px rgba(65, 21, 49, 0.2);
}

.contact-content {
  position: relative;
  z-index: 3;
}

.contact-content h1 {
  max-width: 8ch;
  font-size: clamp(3.6rem, 12vw, 7.8rem);
}

.contact-content > p:last-of-type {
  max-width: 570px;
  margin-top: 26px;
  color: var(--charcoal);
  font-size: clamp(1rem, 2vw, 1.14rem);
  line-height: 1.65;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 0;
}

.contact-action {
  position: relative;
  width: min(100%, 370px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 17px 30px;
  border: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(150, 42, 108, 0.07) 28px),
    #fff;
  clip-path: polygon(9px 0, calc(100% - 8px) 0, 100% 9px, calc(100% - 5px) 18px, 100% 28px, calc(100% - 6px) 39px, 100% 50px, calc(100% - 8px) 100%, 7px 100%, 0 calc(100% - 9px), 5px calc(100% - 20px), 0 calc(100% - 31px), 6px calc(100% - 43px), 0 27px, 5px 14px, 0 6px);
  box-shadow: none;
  filter: drop-shadow(7px 9px 0 rgba(175, 198, 163, 0.65));
  transform: rotate(0.7deg);
  transition: color 190ms ease, transform 190ms ease, filter 190ms ease;
}

.contact-action::before {
  content: "To the studio";
  position: absolute;
  top: 8px;
  right: 18px;
  color: rgba(150, 42, 108, 0.28);
  font-family: var(--font-script);
  font-size: 1.35rem;
  transform: rotate(-4deg);
}

.contact-action span {
  color: var(--muted);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.contact-action strong {
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.contact-action-instagram {
  width: 174px;
  aspect-ratio: 1;
  flex: 0 0 174px;
  align-items: center;
  justify-content: center;
  border: 3px double rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  padding: 24px 16px;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.22), transparent 28%),
    var(--accent);
  color: #fff;
  clip-path: none;
  filter: drop-shadow(8px 10px 0 var(--accent-hover));
  text-align: center;
  transform: rotate(-5deg);
}

.contact-action-instagram::before {
  content: "";
  inset: 9px;
  border: 1px dashed rgba(255, 255, 255, 0.48);
  border-radius: 50%;
  transform: none;
}

.contact-action-instagram span {
  color: var(--accent);
}

.contact-action-instagram strong {
  position: relative;
  color: #fff;
  font-family: var(--font-script);
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 400;
  line-height: 0.78;
}

.contact-action:hover,
.contact-action:focus-visible {
  color: var(--accent);
  transform: translateY(-4px) rotate(0deg);
  filter: drop-shadow(10px 13px 0 var(--sage));
  box-shadow: none;
}

.contact-action-instagram:hover,
.contact-action-instagram:focus-visible {
  background: transparent;
  background-color: #74184f;
  transform: translateY(-4px) rotate(-1deg);
  filter: drop-shadow(10px 13px 0 var(--accent-hover));
  box-shadow: none;
}

/* Compact artist contact index. */
.contact-actions {
  display: grid;
  gap: 0;
  width: min(100%, 470px);
  border-top: 1px solid rgba(0, 0, 0, 0.24);
}

.contact-action,
.contact-action-instagram {
  width: 100%;
  aspect-ratio: auto;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 3px 16px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.24);
  border-radius: 0;
  padding: 15px 4px;
  background: transparent;
  color: var(--black);
  clip-path: none;
  filter: none;
  text-align: left;
  transform: none;
}

.contact-action::before,
.contact-action-instagram::before {
  content: "@";
  position: relative;
  inset: auto;
  grid-column: 1;
  grid-row: 1 / 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 42% 58% 48% 52%;
  background: var(--sage-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  transform: rotate(-7deg);
  transition: transform 190ms ease, background 190ms ease, color 190ms ease;
}

.contact-action-instagram::before {
  content: "ig";
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-script);
  font-size: 1.55rem;
  transform: rotate(6deg);
}

.contact-action span,
.contact-action strong,
.contact-action-instagram span,
.contact-action-instagram strong {
  position: relative;
  grid-column: 2;
  color: inherit;
  text-align: left;
}

.contact-action span,
.contact-action-instagram span {
  font-family: var(--font-body);
  font-size: 0.54rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.contact-action strong,
.contact-action-instagram strong {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.8vw, 1.28rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.contact-action:hover,
.contact-action:focus-visible,
.contact-action-instagram:hover,
.contact-action-instagram:focus-visible {
  border-color: var(--accent);
  background: transparent;
  color: var(--accent);
  filter: none;
  transform: translateX(5px);
}

.contact-action:hover::before,
.contact-action:focus-visible::before,
.contact-action-instagram:hover::before,
.contact-action-instagram:focus-visible::before {
  background: var(--accent);
  color: #fff;
  transform: rotate(0deg) scale(1.06);
}

.contact-action:not(.contact-action-instagram):hover,
.contact-action:not(.contact-action-instagram):focus-visible {
  border-color: rgba(0, 0, 0, 0.24);
  color: var(--black);
}

.contact-action:not(.contact-action-instagram):hover::before,
.contact-action:not(.contact-action-instagram):focus-visible::before {
  background: var(--sage-soft);
  color: var(--accent);
}

.contact-confetti span {
  position: absolute;
  z-index: 1;
  width: 14px;
  height: 22px;
  border-radius: 70% 20% 70% 25%;
  background: var(--accent-hover);
  opacity: 0.62;
  animation: contact-drift 6s ease-in-out infinite alternate;
}

.contact-confetti span:nth-child(1) { top: 12%; left: 7%; transform: rotate(22deg); }
.contact-confetti span:nth-child(2) { top: 27%; right: 8%; width: 9px; height: 15px; background: var(--sage); animation-delay: -2s; }
.contact-confetti span:nth-child(3) { bottom: 14%; left: 14%; width: 10px; height: 17px; background: var(--mauve); animation-delay: -4s; }
.contact-confetti span:nth-child(4) { bottom: 8%; right: 18%; transform: rotate(-26deg); animation-delay: -1s; }
.contact-confetti span:nth-child(5) { top: 9%; left: 48%; width: 8px; height: 13px; background: var(--sage); animation-delay: -3s; }
.contact-confetti span:nth-child(6) { top: 58%; right: 3%; width: 11px; height: 18px; background: var(--mauve); animation-delay: -5s; }

@keyframes flap-open {
  0%, 12%, 88%, 100% { transform: rotateX(0deg); }
  25%, 74% { transform: rotateX(178deg); }
}

@keyframes letter-rise {
  0%, 20%, 88%, 100% { transform: translateY(24%); }
  38%, 72% { transform: translateY(-25%); }
}

@keyframes contact-drift {
  from { translate: 0 -7px; rotate: -6deg; }
  to { translate: 12px 10px; rotate: 22deg; }
}

