/* ==========================================================================
   11 · CONTACT — "Let's talk ink."
   ========================================================================== */
.contact { position: relative; padding-block: var(--section-y) calc(var(--section-y) * 1.15); overflow-x: clip; }
.contact__ghost { right: -4vw; top: 6%; }
.contact__inner { position: relative; z-index: var(--z-content); }

.contact__head { margin-bottom: clamp(2.5rem, 5vw, 5rem); }
.contact__label { margin-bottom: 1.2rem; color: var(--ink-60); }
/* very large; allowed to run wider than the text column */
.contact__title { font-size: clamp(3.4rem, 11.5vw, 12.5rem); line-height: .9; letter-spacing: -.045em; margin-left: -.04em; white-space: nowrap; }

.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 7rem); align-items: start; }

/* ---- left column ---- */
.contact__lead { margin-bottom: clamp(2rem, 3vw, 3rem); }

.contact__channels { display: grid; gap: .75rem; margin-bottom: clamp(2rem, 3vw, 2.75rem); }
.contact__channel-card {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.1rem;
  min-height: 4.75rem; padding: .9rem 1.4rem .9rem 1rem;
  background: rgba(248, 245, 239, .75); border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
  will-change: transform;
}
.contact__channel-icon {
  display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 50%;
  background: var(--ochre); color: var(--ink);
  transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.contact__channel-icon svg, .contact__icon svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.contact__channel-text { display: grid; gap: .2rem; min-width: 0; }
.contact__channel-value { font-family: var(--font-display); font-size: clamp(1.15rem, 1.5vw, 1.45rem); line-height: 1.15; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact__channel-card:hover, .contact__channel-card:focus-visible { background: var(--ink); color: var(--parchment); border-color: var(--ink); }
.contact__channel-card:hover .contact__channel-icon, .contact__channel-card:focus-visible .contact__channel-icon { background: var(--vermillion); color: var(--cream); }
.contact__channel-card:hover .arrow, .contact__channel-card:focus-visible .arrow { transform: translateX(.35em); }

.contact__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; padding-top: 1.75rem; border-top: 1px solid var(--line); }
.contact__item { display: flex; align-items: flex-start; gap: .9rem; }
.contact__icon { flex: none; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 1px solid var(--line-strong); border-radius: 50%; }
.contact__icon svg { width: 1.15rem; height: 1.15rem; stroke-width: 2.4; }
.contact__item-body { display: grid; gap: .3rem; min-width: 0; }
.contact__value { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.25; justify-self: start; -webkit-box-decoration-break: clone; box-decoration-break: clone; }   /* the street address wraps: underline every line */
.contact__list > .contact__item:first-child { grid-column: 1 / -1; }   /* the address is long — give it the whole row, the phone sits below */

.contact__photo { width: min(240px, 60%); margin-top: clamp(2.5rem, 4vw, 3.5rem); padding: .6rem .6rem .9rem; transform: rotate(-2.2deg); }
.contact__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 35% 38%; border-radius: 2px; }
.contact__photo figcaption { margin-top: .75rem; text-align: center; font-size: .6rem; color: var(--ink-60); }

/* ---- right column: form on a small landscape stage ---- */
.contact__stage { position: relative; padding: clamp(2.5rem, 5vw, 5rem) clamp(5.5rem, 10.5vw, 10.5rem) clamp(1rem, 3vw, 3rem) 0; }
.contact__art { position: absolute; inset: 0; pointer-events: none; }
.contact__sun { position: absolute; right: -4%; top: -2%; width: clamp(180px, 42%, 330px); color: var(--ink); }
.contact__crane { position: absolute; right: clamp(.25rem, 1.6vw, 2rem); bottom: 2%; height: min(70%, 540px); width: auto; }
.contact__pine { position: absolute; right: -14%; top: 14%; width: 46%; height: auto; opacity: .95; }
.contact__swirl { position: absolute; left: -16%; bottom: -12%; width: 46%; height: auto; opacity: .32; }
.contact__jp { display: none; position: absolute; right: clamp(.25rem, 1.2vw, 1.25rem); top: clamp(12rem, 25vw, 24rem); font-size: clamp(1.1rem, 1.5vw, 1.5rem); color: var(--ink); }

.contact__form { position: relative; z-index: 1; display: grid; gap: 1.15rem; width: min(100%, 560px); padding: clamp(1.5rem, 3vw, 2.75rem); background: rgba(248, 245, 239, .93); }
.contact__form-title { margin-bottom: .35rem; }
.contact__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact__channel { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.contact__channel legend { float: left; margin-right: .6rem; padding-top: .7rem; }
.contact__chip { position: relative; cursor: pointer; }
.contact__chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.contact__chip span { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.2rem; border: 1px solid var(--line-strong); border-radius: var(--r-pill); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; transition: background-color var(--dur-1) ease, color var(--dur-1) ease, border-color var(--dur-1) ease; }
.contact__chip input:checked + span { background: var(--ink); color: var(--parchment); border-color: var(--ink); }
.contact__chip input:focus-visible + span { outline: 2px solid var(--vermillion); outline-offset: 3px; }
.contact__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .4rem; }
.contact__status { flex: 1 1 14rem; font-size: .92rem; color: var(--ink-80); min-height: 1.4em; }
.contact__status.is-error { color: var(--vermillion); }
.contact__status a { text-decoration: underline; text-underline-offset: .2em; }
.contact__send.is-busy { pointer-events: none; opacity: .6; }

/* ---- small laptop / tablet ---- */
@media (max-width: 1199px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 4vw, 3.5rem); }
  .contact__list { grid-template-columns: 1fr; }
  .contact__pine { display: none; }
}
@media (max-width: 899px) {
  .contact__title { white-space: normal; font-size: clamp(3.6rem, 17vw, 9rem); }
  .contact__grid { grid-template-columns: 1fr; }
  /* tablet: channels become a 3-up row of tall cards, form + art below, photo moves beside the list */
  .contact__channels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .contact__channel-card { grid-template-columns: 1fr; justify-items: start; gap: .9rem; border-radius: 22px; padding: 1.1rem 1.1rem 1.2rem; min-height: 0; }
  .contact__channel-card .arrow { position: absolute; right: 1.1rem; top: 1.6rem; }
  .contact__info { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; align-items: end; }
  .contact__lead, .contact__channels { grid-column: 1 / -1; }
  .contact__list { grid-template-columns: 1fr; border-top: 0; padding-top: 0; }
  .contact__photo { width: 190px; margin-top: 0; }
  .contact__stage { padding: 3.5rem 22% 2rem 0; }
  .contact__form { width: 100%; }
  .contact__sun { right: -4%; width: 38%; }
  .contact__crane { right: 1%; height: 78%; }
  .contact__jp { top: 44%; right: 17%; display: none; }
}
/* ---- phone ---- */
@media (max-width: 599px) {
  .contact { padding-bottom: calc(var(--section-y) * 1.3); }
  .contact__ghost { top: 2%; right: -14vw; }
  .contact__channels { grid-template-columns: 1fr; gap: .65rem; }
  .contact__channel-card { grid-template-columns: auto 1fr auto; justify-items: stretch; border-radius: var(--r-pill); padding: .75rem 1.25rem .75rem .8rem; min-height: 4.4rem; }
  .contact__channel-card .arrow { position: static; }
  .contact__info { grid-template-columns: 1fr; }
  .contact__photo { justify-self: end; width: 150px; margin-top: 1.5rem; transform: rotate(3deg); }   /* below the list, never over the address */
  /* the sun + crane rise above the form instead of sitting beside it */
  .contact__stage { padding: 9.5rem 0 0; }
  .contact__sun { right: 6%; top: 0; width: 9.5rem; }
  .contact__crane { right: 13%; top: .6rem; bottom: auto; height: 10.5rem; }
  .contact__swirl { left: -22%; top: 1rem; bottom: auto; width: 62%; opacity: .28; }
  .contact__form { padding: 1.35rem 1.15rem 1.6rem; }
  .contact__actions .btn { width: 100%; justify-content: space-between; }
}
/* very small phones: let the channel values wrap ("annie@ / anniestattoo.shop") instead of cutting off with an ellipsis */
@media (max-width: 359px) {
  .contact__channel-value { white-space: normal; overflow: visible; text-overflow: clip; font-size: 1.05rem; line-height: 1.2; }
  .contact .field__control { font-size: 16px; }   /* no iOS zoom */
}
