/* =========================
   REFERENCES
   ========================= */

.refs{
  padding: clamp(2.75rem, 5.5vw, 4.5rem) 0;
}

.refs__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.refs__head{ max-width: 54rem; }

.refs__kicker{
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: var(--fw-semibold);
  color: var(--text-kicker);
}

.refs__title{
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 3.25vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: var(--fw-bold);
  color: var(--text);
}

.refs__lead{
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
  font-weight: var(--fw-regular);
  color: var(--text-muted);
}

.refs__grid{
  margin-top: clamp(1.35rem, 3.2vw, 2.25rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(0.95rem, 2vw, 1.15rem);
}

/* Card */
.ref-card{
  border: 0.0625rem solid var(--border);
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 0.5rem 1.25rem rgba(2, 6, 23, .06);
  padding: 1.25rem 1.25rem 1.15rem;
  display: grid;
  gap: 0.85rem;
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.ref-card:hover{
  transform: translateY(-0.125rem);
  box-shadow: 0 0.75rem 1.75rem rgba(2, 6, 23, .10);
}

.ref-card__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
}

.ref-card__logo{
  height: 2.1rem;
  width: auto;
  display: block;
}

.ref-card__open{
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  cursor: pointer;

  color: var(--text-soft);
  font-weight: var(--fw-semibold);
  text-decoration: underline;
  text-decoration-color: rgba(30,41,59,.28);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.08em;

  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.ref-card__open:hover{
  color: var(--primary);
  text-decoration-color: rgba(22,64,255,.55);
}

.ref-card__open:focus-visible{
  outline: 0.1875rem solid rgba(22,64,255,.28);
  outline-offset: 0.1875rem;
  border-radius: 0.5rem;
}

.ref-card__quote{
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  font-weight: var(--fw-regular);
  color: var(--text-strong);
}

.ref-card__meta{
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.ref-card__org{
  font-weight: var(--fw-semibold);
  color: var(--text-kicker);
}

/* Modal */
.refs-modal[hidden]{ display: none; }

.refs-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.refs-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, .55);
}

.refs-modal__panel{
  position: relative;
  width: min(58rem, calc(100% - 2rem));
  height: min(80vh, 44rem);
  margin: 6vh auto 0;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 1.5rem 3.5rem rgba(2, 6, 23, .30);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
}

.refs-modal__bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 0.0625rem solid var(--border);
}

.refs-modal__title{
  margin: 0;
  font-size: 0.98rem;
  font-weight: var(--fw-semibold);
  color: var(--text-strong);
}

.refs-modal__close{
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.85rem;
  border: 0.0625rem solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-muted);
  transition: transform 160ms ease;
}

.refs-modal__close:hover{ transform: scale(1.05); }

.refs-modal__close:focus-visible{
  outline: 0.1875rem solid rgba(22,64,255,.28);
  outline-offset: 0.125rem;
}

.refs-modal__content{
  height: 100%;
}

.refs-modal__frame{
  width: 100%;
  height: 100%;
  border: 0;
}

/* Mobile */
@media (max-width: 53.75rem){
  .refs__head{
    text-align: center;
    margin-inline: auto;
  }

  .refs__grid{
    grid-template-columns: 1fr;
  }

  .refs-modal__panel{
    height: 78vh;
    margin-top: 10vh;
  }
}
