/* Keep the project search in its own section below the cinematic introduction. */
html:root body #main .projects-directory-content {
  display: flow-root;
  padding-top: clamp(32px, 4vw, 56px);
}

/* Card faces size to their content; the switch has a separate row below them. */
html:root body #main .developer-card.developer-logo-flip-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: auto;
  min-height: 0;
}
html:root body #main .developer-logo-card-link {
  display: grid;
  flex: 1;
  height: auto;
  min-width: 0;
}
html:root body #main .developer-logo-flip-inner {
  display: grid;
  height: auto;
  min-height: 278px;
}
html:root body #main .developer-logo-flip-face {
  position: relative;
  inset: auto;
  grid-area: 1 / 1;
  min-width: 0;
  padding: 24px 20px;
  overflow-wrap: anywhere;
}
html:root body #main .developer-logo-flip-front { gap: 12px; }
html:root body #main .developer-logo-flip-logo { flex-shrink: 0; height: 88px; }
html:root body #main .developer-logo-flip-back-depth { gap: 16px; }
html:root body #main .developer-logo-flip-toggle {
  position: static;
  inset: auto;
  transform: none;
  align-self: center;
  flex: 0 0 auto;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 9px 18px;
  font-size: 14px;
  line-height: 1.4;
}

html:root body .footer-advisor {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid #ffffff26;
  max-width: 320px;
}
html:root body .footer-advisor h3 { margin: 0 0 10px; }
html:root body .footer-advisor a {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  color: #f7f2e8;
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.25;
}
html:root body .footer-advisor a span { color: #ffb57d; font-size: 18px; }

@media (max-width: 700px) {
  html:root body #main .developer-logo-flip-face { padding: 22px 16px; }
  html:root body #main .developer-logo-flip-inner { min-height: 264px; }
}
