/* ==========================================================================
   Contact — "Ready to look / like · a label / not a · listing" + email CTA
   Reference: css-layout §14, js-motion §7 (Contact).
   Reveals come from js/core.js; the giant burst parallax from js/sections/contact.js.
   ========================================================================== */

.contact {
  position: relative;
  z-index: 2;
  padding-bottom: 5rem;
}

/* Top fade out of black (ref .gradient) — behind every row via z -1 in this context */
.contact::before {
  content: "";
  position: absolute;
  top: -1vw;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 30vw;
  background: linear-gradient(180deg, var(--ink) 40%, transparent);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Giant type
   -------------------------------------------------------------------------- */
.contact__type {
  font-family: var(--serif);
  font-size: 17vw;                  /* ref 16vw; Instrument Serif sets ~12% narrower than RL-Unno */
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.01em;
  color: var(--pearl);
  text-align: center;
}

/* Every row is its own z 2 layer (ref .minus-margin); later rows paint over the
   burst that hangs out of row 2. Flex blockifies the [data-reveal] spans. */
.contact__row {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-top: -.3em;
}

.contact__row--2 { column-gap: .25em; }

.contact__row--3 {
  column-gap: .3em;
  margin-top: 8rem;
  line-height: .8;
}

/* [data-reveal] words that carry absolutely positioned decoration */
.contact__word {
  position: relative;
  display: inline-block;
}

/* Giant starburst behind "like" — desktop only */
.contact__burst {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  display: none;
  width: 28.5vw;
  margin: 3rem 0 0 7rem;
  color: var(--champagne);
  pointer-events: none;
}

/* Hairline hanging off "a label". The reveal engine owns its transform
   (rotate-to 80° → 22°); on mobile it bridges the gap above row 3 (ref .line-mob). */
.contact__rule {
  position: absolute;
  top: 100%;
  left: .25em;
  width: 1px;
  height: 5rem;
  margin-top: 1.2rem;
  background: var(--hair-strong);
  transform-origin: top right;
  pointer-events: none;
}

/* Static fallbacks. `rotate` (not `transform`) so base's no-motion `transform:none !important` can't flatten it. */
html:not(.js) .contact__rule,
.no-motion .contact__rule { rotate: 22deg; }
.reduce-motion .contact__rule { transform: rotate(22deg); }

/* --------------------------------------------------------------------------
   CTA: note, email, small burst, caption
   -------------------------------------------------------------------------- */
.contact__cta {
  position: relative;
  z-index: 3;                       /* above the burst's parallax travel */
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 5rem;
  text-align: center;
}

/* Mobile stand-in for the giant burst (requested markup); tucks into the gap under row 3 */
.contact__burst-mobile {
  width: 6rem;
  margin-top: -4rem;
}

.contact__note { margin-top: 2.25rem; }

/* "something" in an outlined oval */
.contact__note i {
  display: inline-block;
  margin: .2rem 0 .4rem;
  padding: .4rem .35rem;            /* ref .5/.3/.3 offset Founders' short ascender; Hanken centres evenly */
  border: 1px solid var(--smoke);
  border-radius: 100%;
  font-style: normal;
  line-height: 2;
  color: var(--smoke);
}

.contact__email {
  margin: 2.25rem 0 1rem;
  font-family: var(--serif);
  font-size: 10vw;
  font-weight: 400;
  line-height: 1.1;
  color: var(--champagne);
  overflow-wrap: anywhere;          /* safety net only; fits at 360px */
}
.contact__email::after {
  bottom: .1em;
  height: 2px;
}

.contact__cta > .burst--xs {
  color: var(--pearl);
  opacity: .6;
  animation: nct-rotate 10s linear infinite;
}

.contact__caption {
  width: 58.333%;                   /* ref col-7 */
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   ≥768
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .contact {
    margin-bottom: 15rem;
    padding: 8rem 0 0;
  }

  .contact__type { font-size: 13.5vw; } /* ref 12vw */

  .contact__row--2 {
    justify-content: space-between;
    padding: 0 3.5rem;
  }

  .contact__row--3 {
    column-gap: .5em;
    margin-top: 5rem;
  }
  /* ref line5 width 23vw; a floor so our longer word never overflows its box */
  .contact__row--3 > :last-child {
    min-width: 23vw;
    text-align: left;
  }

  .contact__burst { display: block; }
  .contact__burst-mobile { display: none; }

  .contact__rule {
    top: 50%;
    left: 0;
    height: 16vw;
    margin: 2rem 0 0 -2rem;
    background: var(--pearl);
  }

  .contact__cta { margin-top: 0; }

  .contact__email::after { height: 3px; }
}

@media (min-width: 992px) {
  .contact__email { font-size: 5rem; } /* ref 4.5rem, widened for the narrower face */
}

@media (min-width: 1200px) {
  .contact__row--3 { margin-top: 8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .contact__cta > .burst--xs { animation: none; }
}

/* Buttons under the caption */
.contact__actions {
  justify-content: center;
  margin-top: 2.25rem;
}
