/* Contact — two groups of strands meet in one knot; a single line drops from it into the form. */

/* ---------- Hero ---------- */
.meet-hero { min-height: 72svh; }
/* lime light pools under the knot (the braid meets at ~66% / 56%) */
.meet-hero .hero__glow {
  background:
    radial-gradient(32% 42% at 66% 58%, rgba(212, 250, 131, .12), transparent 70%),
    radial-gradient(60% 50% at 10% 100%, rgba(31, 107, 95, .35), transparent 70%),
    var(--deep);
}
/* the spine runs the full height of the hero and continues into the section below */
.meet-hero .spined::before { top: -100vh; }
/* keep the copy clear of the knot */
.meet-hero__copy h1 { max-width: 12ch; }
.meet-hero__lead { margin-top: 1.5rem; color: var(--mist-70); max-width: 32ch; }

/* ---------- Section: info on the left, the form where the strands meet ---------- */
/* the form panel rises into the hero, so this section must not clip it */
.contact { overflow: visible; padding-top: clamp(4rem, 7vw, 6.5rem); }
.contact > .spined::before { top: 0; bottom: calc(-1 * var(--space-section)); }
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 4rem; align-items: start; }
.contact__info { grid-column: 1 / span 5; }
.contact__info h2 { max-width: 12ch; }
.contact__body { margin-top: 1.75rem; color: var(--ink-2); max-width: 44ch; }

/* contact rows: horizontal strands hung from the info column */
.strands { margin-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--rule); }
.strand-row {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 1.25rem; align-items: center; column-gap: 1rem; row-gap: .35rem;
  padding: 1.25rem 0 1.3rem;
  border-bottom: 1px solid var(--rule);
  transition: translate .5s var(--ease-strand);
}
html.motion .strands > .strand-row {
  transition: transform .7s var(--ease-strand) calc(var(--i, 0) * 60ms), opacity .5s calc(var(--i, 0) * 60ms), translate .5s var(--ease-strand);
}
.strand-row::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--green-600); transform: scaleX(0); transform-origin: left;
  transition: transform .55s var(--ease-strand);
}
.strand-row__label {
  grid-column: 1; display: flex; align-items: center; gap: .65rem;
  font-family: var(--f-display); font-weight: 700; font-stretch: 78%; font-size: var(--fs-label); letter-spacing: .08em;
  color: var(--green-600);
}
.strand-row__icon {
  width: 28px; height: 28px; flex: none; display: grid; place-items: center;
  border: 1.5px solid var(--forest); border-radius: 50%; color: var(--forest);
  transition: background-color .3s, color .3s;
}
.strand-row__icon .glyph { width: 14px; height: 14px; }
.strand-row__value {
  grid-column: 1;
  font-family: var(--f-display); font-weight: 500; font-size: clamp(1.25rem, 2vw, 1.75rem); letter-spacing: -.015em; line-height: 1.15;
  padding-left: calc(28px + .65rem);
  overflow-wrap: anywhere;
}
.strand-row__arrow { grid-column: 2; grid-row: 1 / span 2; color: var(--green-600); transition: transform .4s var(--ease-strand); }
a.strand-row:hover, a.strand-row:focus-visible { translate: 10px 0; }
a.strand-row:hover::after, a.strand-row:focus-visible::after { transform: scaleX(1); }
a.strand-row:hover .strand-row__arrow, a.strand-row:focus-visible .strand-row__arrow { transform: translateX(4px); }
a.strand-row:hover .strand-row__icon, a.strand-row:focus-visible .strand-row__icon { background: var(--forest); color: var(--lime); }

/* ---------- The form panel (forest ground, light fields) ---------- */
.contact-panel {
  --fg: var(--mist); --fg-2: var(--mist-70); --rule: var(--line-dark); --accent: var(--lime); --knot: var(--lime);
  grid-column: 7 / span 6;
  position: relative;
  margin-top: calc(-1 * var(--panel-rise));
  --panel-rise: clamp(6rem, 12vw, 10rem);
  background: var(--forest); color: var(--fg);
  padding: clamp(1.75rem, 3.4vw, 3rem);
  box-shadow: var(--shadow-float);
}
/* the strand along its top edge, lit from where the line drops in */
.contact-panel::before {
  content: ""; position: absolute; z-index: 2; pointer-events: none;
  top: -1px; left: var(--meet-x, 18%); right: -1px; height: 2px;
  background: var(--lime); box-shadow: 0 0 12px rgba(212, 250, 131, .45);
  transform-origin: left; transition: transform 1.1s var(--ease-strand) .35s;
}
html.motion .contact-panel:not(.is-met)::before { transform: scaleX(0); }
.contact-panel :focus-visible { outline-color: var(--lime); }

/* the single line that falls from the braid's knot into the panel */
.meet-drop {
  position: absolute; z-index: 2; pointer-events: none;
  left: calc(var(--meet-x, 18%) - 1px); bottom: 100%;
  width: 2px; height: var(--meet-h, 0px);
  background: linear-gradient(180deg, rgba(212, 250, 131, 0), var(--lime) 40%);
  box-shadow: 0 0 12px rgba(212, 250, 131, .35);
  transform-origin: top; transition: transform 1s var(--ease-strand), opacity .4s;
  opacity: 0;
}
.contact-panel.is-placed .meet-drop { opacity: 1; }
html.motion .contact-panel:not(.is-met) .meet-drop { transform: scaleY(0); }
.meet-drop__knot {
  position: absolute; left: 50%; bottom: -14px; translate: -50% 0;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--lime);
  background: radial-gradient(circle, var(--lime) 0 3px, var(--forest) 3.5px);
  transition: transform .55s var(--ease-snap) .9s, background-color .3s;
}
html.motion .contact-panel:not(.is-met) .meet-drop__knot { transform: scale(0); }
.contact-panel.is-tied .meet-drop__knot { background: var(--lime); box-shadow: 0 0 16px rgba(212, 250, 131, .6); transition-delay: 0s; }

/* the label sits inside the panel, not on the page spine */
.contact-panel .eyebrow.contact-panel__label { padding-left: 0; margin-bottom: .25rem; color: var(--lime); }
.contact-panel .eyebrow > .knot:first-child { position: static; translate: none; --size: 14px; }
.contact-panel .eyebrow > .knot:first-child::before { background: radial-gradient(circle, var(--knot) 0 2px, transparent 2.5px); }

.contact-form { gap: 1.75rem; }
.contact-form .field textarea { min-height: 9rem; }
.contact-form .form-error {
  padding: .8rem 1rem; border-left: 2px solid var(--lime);
  background: rgba(212, 250, 131, .08);
  color: var(--lime-100); font-weight: 500; font-size: var(--fs-small); line-height: 1.5;
}
.contact-form .form-submit { margin-top: .25rem; }
.contact-form .form-submit[disabled] { opacity: .78; }

/* success: the knot is tied */
.contact-success { display: grid; gap: 1.25rem; justify-items: start; align-content: center; }
.contact-panel.is-tied { display: grid; align-content: center; }
.contact-success .tie { width: 6.5rem; height: 6.5rem; margin-bottom: .5rem; }
.contact-success h3 { font-size: clamp(1.75rem, 2.6vw, 2.4rem); font-weight: 560; letter-spacing: -.025em; line-height: 1; }
.contact-success p { color: var(--fg-2); max-width: 40ch; }
.contact-success p a { color: var(--fg); background: linear-gradient(var(--lime), var(--lime)) 0 100% / 100% 1px no-repeat; padding-bottom: .1em; white-space: nowrap; }
.contact-success p a:hover { color: var(--lime); }
.contact-reset { margin-top: .5rem; }
.contact-reset:hover { color: var(--forest); }

/* ---------- Small screens ---------- */
@media (max-width: 1099px) and (min-width: 900px) {
  .contact__info { grid-column: 1 / span 6; }
  .contact-panel { grid-column: 7 / span 6; }
}
@media (max-width: 899px) {
  .meet-hero__copy h1 { max-width: none; }
  .contact { padding-bottom: 0; }
  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .contact__info, .contact-panel { grid-column: 1; }
  /* full bleed on phones; content keeps the text column's left edge */
  .contact-panel {
    --panel-rise: 0px;
    margin-left: calc(-1 * (var(--margin) + var(--rail))); margin-right: calc(-1 * var(--margin));
    padding: 2.5rem var(--margin) 3rem calc(var(--margin) + var(--rail));
    box-shadow: none;
  }
  .meet-drop { display: none; }
  .contact-panel::before { left: 0; }
}

/* video pause control sits top-right: the form panel rises into the hero's bottom-right */
.meet-hero .hero__toggle { top: calc(var(--header-h) + 1rem); bottom: auto; }
