/* CONTACT: CTA rows, the page's one inversion, signal-red baseline. */

.s-contact {
  background: var(--ink);
  padding-top: var(--section-gap);
}

/* ---------- head ---------- */

.contact-label {
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.contact-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.contact-title-mask {
  overflow: hidden;
}

/* Top padding gives the cap line headroom inside the reveal mask. */
.contact-title-text {
  display: block;
  padding-top: 0.05em;
}

.contact-arrow {
  width: clamp(3.25rem, 8vw, 7rem);
  height: auto;
  flex: none;
  color: var(--paper);
}

.contact-rule {
  height: 1px;
  background: var(--hairline);
  margin-top: clamp(1.75rem, 4.5vh, 3rem);
  transform-origin: left center;
}

.contact-sub {
  margin-top: clamp(1.25rem, 3vh, 2rem);
  max-width: 42ch;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.45;
  color: var(--paper-dim);
}

.contact-arrow {
  will-change: transform;
}

/* ---------- CTA rows ---------- */

.contact-rows {
  margin-top: clamp(3.5rem, 9vh, 6rem);
}

.row-shell {
  position: relative;
}

.contact-row {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: clamp(1.5rem, 4.5vh, 2.75rem) var(--gutter);
  border-top: 1px solid var(--hairline);
}

/* Signal swipe: enters from the top on hover, exits toward the bottom.
   Driven by the shell so the copy button keeps the row hot. */
.contact-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--signal);
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.5s var(--ease-out);
}

.row-shell:hover .contact-row::before,
.contact-row:focus-visible::before {
  transform: scaleY(1);
  transform-origin: 50% 0%;
}

.contact-row-text {
  position: relative;
  z-index: 1;
  font-variation-settings: 'wdth' 110, 'wght' 750;
  font-stretch: 110%;
  font-weight: 750;
  font-size: clamp(1.7rem, 5.6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--paper);
  transition: color 0.35s var(--ease-out);
}

.row-shell:hover .contact-row-text,
.contact-row:focus-visible .contact-row-text {
  color: var(--ink);
}

/* Copy affordance: appears on row hover, confirms in place after copying.
   A sibling of the anchor (buttons cannot nest inside links). */
.row-copy {
  position: absolute;
  top: 50%;
  right: var(--gutter);
  transform: translateY(-50%);
  z-index: 1;
  padding: 8px 10px;
  color: var(--paper-dim);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out), color 0.3s var(--ease-out);
}

.row-shell:hover .row-copy,
.row-copy:focus-visible {
  opacity: 1;
  color: var(--ink);
}

.row-copy:focus-visible {
  color: var(--paper);
}

@media (pointer: coarse) {
  .row-copy {
    opacity: 1;
    color: var(--paper-dim);
  }
}

/* ---------- the inversion: paper wordmark block ---------- */

.contact-paper {
  position: relative;
  margin-top: clamp(4rem, 10vh, 7rem);
  background: var(--paper);
  color: var(--ink);
  padding-top: clamp(4rem, 10vh, 7rem);
  overflow: hidden;
}

/* The flight: a signal-red colibri crosses the paper field, driven by scroll
   (path and bobbing in contact.js). The brand's one red moment on paper. */
.paper-bird {
  position: absolute;
  top: clamp(1.2rem, 3.5vh, 2.6rem);
  left: 0;
  width: clamp(30px, 4vw, 54px);
  height: auto;
  color: var(--signal);
  transform: translateX(-120%);
  will-change: transform;
  pointer-events: none;
}

.paper-bird-wing {
  transform-box: fill-box;
  transform-origin: 88% 96%;
}

@media (prefers-reduced-motion: no-preference) {
  .paper-bird-wing {
    animation: wing-flutter 0.16s ease-in-out infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .paper-bird {
    display: none;
  }
}

.paper-mark {
  position: relative;
  width: 100%;
}

.paper-mark-mask {
  display: block;
  overflow: hidden;
}

.paper-wordmark {
  display: block;
  padding-top: 0.05em;
  color: var(--ink);
}

.paper-reg {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0.4vw;
  transform: translateY(-62%);
  font-variation-settings: 'wdth' 100, 'wght' 700;
  font-weight: 700;
  font-size: clamp(1.5rem, 4.5vw, 4.25rem);
  line-height: 1;
  color: var(--ink);
}

/* ---------- signal baseline strip ---------- */

.contact-baseline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 2rem;
  background: var(--signal);
  color: var(--ink);
  padding: 0.85rem var(--gutter);
}

.baseline-copy {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.baseline-mark {
  width: 19px;
  height: 19px;
  flex: none;
  display: block;
}

.baseline-links {
  display: flex;
  gap: clamp(0.9rem, 2.5vw, 1.6rem);
}

.baseline-links a {
  transition: opacity 0.25s var(--ease-out);
}

.baseline-links a:hover {
  opacity: 0.55;
}

/* ---------- mobile ---------- */

@media (max-width: 767px) {
  .contact-arrow {
    width: 3rem;
  }
  .contact-baseline {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .contact-row-text {
    font-size: 1.4rem;
  }
}
