/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background var(--transition-fast), border-color var(--transition-fast);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-purple-deep), var(--color-purple) 55%, var(--color-pink));
  color: #ffffff;
  box-shadow: 0 8px 30px -8px rgba(139, 92, 246, 0.55);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 10px 36px -6px rgba(236, 72, 153, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--color-purple);
  background: rgba(139, 92, 246, 0.1);
}

/* ---------- Cards ---------- */

.card {
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  backdrop-filter: blur(6px);
}

.research-card h3 {
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: 0.6em;
}

.research-card__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(56, 189, 248, 0.25));
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
}

.research-card p {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  margin-bottom: 0;
}

/* ---------- Program cards (Outer Minds / Inner Minds) ---------- */

.program-card__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 0.75rem;
}

.program-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.3em;
}

.program-card__lead {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 1.1rem;
}

.program-card p:not(.program-card__lead) {
  color: var(--color-text-muted);
  font-size: 0.98rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.tag-list li {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
}

/* ---------- Team / bio cards ---------- */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-purple-deep), var(--color-blue));
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.bio-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25em;
}

.bio-card__role {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-blue);
  margin-bottom: 1rem;
}

.bio-card p:not(.bio-card__role) {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  margin-bottom: 0;
}

/* ---------- Research alignment chips ---------- */

.org-list li {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  white-space: nowrap;
}

/* ---------- Events ---------- */

.event-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .event-card {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 1.75rem;
    align-items: start;
  }
}

.event-card__meta {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--color-blue);
}

.event-card__status {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-purple);
  border: 1px solid rgba(139, 92, 246, 0.45);
  background: rgba(139, 92, 246, 0.12);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  margin-top: 0.5rem;
}

.event-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.4em;
}

.event-card p {
  color: var(--color-text-muted);
  font-size: 0.98rem;
  margin-bottom: 0.75em;
}

.event-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.event-card__link:hover,
.event-card__link:focus-visible {
  border-color: var(--color-blue);
}

/* ---------- Contact / Form ---------- */

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form__row {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

@media (min-width: 480px) {
  .contact-form__row {
    flex-direction: row;
  }
}

.field-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.field-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
}

.field-input::placeholder {
  color: var(--color-text-faint);
}

.field-input:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 1px;
  border-color: var(--color-blue);
}

.contact-form button {
  align-self: flex-start;
}

.form-note {
  font-size: 0.85rem;
  color: var(--color-text-faint);
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.form-status {
  font-size: 0.9rem;
  color: var(--color-blue);
  margin: 0;
  min-height: 1.2em;
}

.contact-direct {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
}

.contact-direct a {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-strong);
}

.contact-direct a:hover,
.contact-direct a:focus-visible {
  border-color: var(--color-blue);
  color: var(--color-blue);
}

/* Fills the empty space left by .contact-grid's align-items: start (the
   left column is naturally much shorter than the form column beside it).
   Same pull-quote treatment used elsewhere on the site — serif italic,
   muted color, generous line-height — scaled a little smaller here since
   it shares a narrower column with a heading, rather than spanning full
   section width on its own. */
.contact-quote {
  margin: clamp(2.5rem, 6vw, 3.5rem) 0 0;
}

.contact-quote p {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 40ch;
  margin: 0;
}

/* ---------- The Other Minds Laboratory ---------- */

.lab-location {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}

.lab-location__eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 0.5rem;
}

.lab-location__building {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.2em;
}

.lab-location__detail {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.lab-location__coords {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--color-text-faint);
  white-space: nowrap;
  margin-bottom: 0;
}

.lab-feature-grid {
  /* Full container width, matching .lab-location and .lab-membership above
     and below it — no max-width constraint, so its left/right edges line
     up with theirs rather than reading as a narrower, inset module. */
  margin-bottom: clamp(3rem, 7vw, 4.5rem);
}

/* .research-card is used exclusively by these 4 cards, so this padding
   bump (~33-38% over the base .card padding) is scoped to just this grid
   and doesn't affect the program/bio/event cards elsewhere on the site. */
.research-card {
  padding: clamp(2rem, 3.6vw, 2.75rem);
}

.lab-subsection {
  margin-bottom: clamp(3rem, 7vw, 4.5rem);
}

.lab-subsection h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.lab-subsection > p {
  color: var(--color-text-muted);
  max-width: 68ch;
}

.lab-subsection .tag-list {
  margin-top: 1.5rem;
}

.lab-membership {
  /* Unlike .section anchors (which have generous own padding-block to clear
     the sticky header), this is a card nested mid-section, so it needs its
     own offset when linked to directly (e.g. the hero's "Join our Lab"). */
  scroll-margin-top: 6.5rem;
}

.lab-membership > p {
  max-width: 60ch;
}

.lab-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem 2.5rem;
  margin: 1.5rem 0 2rem;
}

.lab-benefits li,
.equipment-list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.lab-benefits li::before,
.equipment-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-purple), var(--color-blue));
}

/* ---------- Equipment cards (Outer Minds / Inner Minds) ---------- */

/* Vertical list (unlike .lab-benefits' auto-fit multi-column grid) since
   equipment entries run much longer per item and read better stacked. */
.equipment-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

/* Membership is now the last block in the Laboratory section (the closing
   statement that used to follow it was removed), so its inherited
   .lab-subsection bottom margin is zeroed here — otherwise that margin
   would stack with .section's own bottom padding-block and leave an
   oversized gap before the next section. */
.lab-membership {
  margin-bottom: 0;
}

/* Centers the CTA group without touching .btn/.btn-primary/.btn-secondary
   (shared with other buttons on the page, e.g. the hero's CTAs): wrapping
   the buttons and centering the wrapper leaves each button's own padding,
   gradient, and shape untouched. */
.lab-membership__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
