/* ── Mini case study layout ──────────────────────────────────────────────
   A lighter-weight template for the "Physical systems" case studies.
   Reuses the site's color tokens and type system but skips the sidebar,
   scroll-spy, and per-page Framer CSS the main case studies rely on.       */

:root {
  --mcs-bg: #f4f2f0;
  --mcs-card: #ffffff;
  --mcs-tan: #dad3ce;
  --mcs-tan-deep: #c3b8ae;
  --mcs-brown-muted: #8c746a;
  --mcs-brown-heading: #755f59;
  --mcs-brown-dark: #5d4b46;
  --mcs-black: #000000;
  --mcs-text: rgba(0, 0, 0, 0.86);
}

body:has(.mcs-page) {
  background: var(--mcs-bg);
  margin: 0;
  font-family: "Manrope", sans-serif;
}

.mcs-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px 80px;
}

.mcs-topbar {
  width: 100%;
  max-width: 680px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.mcs-home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.56);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 8px 10px;
  margin-left: -10px;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.mcs-home-link:hover {
  background-color: rgba(0, 0, 0, 0.06);
}

.mcs-home-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.mcs-kicker {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--mcs-brown-muted);
}

.mcs-card {
  width: 100%;
  max-width: 680px;
  background: var(--mcs-card);
  border-radius: 24px;
  padding: 48px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
}

.mcs-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
}

.mcs-hero-photo {
  width: 200px;
  height: 200px;
  border-radius: 58px;
  overflow: hidden;
  background: var(--mcs-tan);
  margin-bottom: 24px;
  flex-shrink: 0;
}

.mcs-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mcs-title {
  font-family: "Manrope", sans-serif;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 120%;
  color: var(--mcs-black);
  margin: 0;
}

.mcs-title em {
  font-family: "Source Serif 4", serif;
  font-style: italic;
  font-weight: 500;
}

.mcs-section {
  margin-bottom: 32px;
}

.mcs-section:last-of-type {
  margin-bottom: 0;
}

.mcs-section h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--mcs-brown-heading);
  margin: 0 0 10px;
}

.mcs-section p {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 155%;
  color: var(--mcs-text);
  margin: 0;
}

.mcs-callout {
  background: var(--mcs-tan);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 32px 0;
}

.mcs-callout p {
  font-family: "Source Serif 4", serif;
  font-style: italic;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 140%;
  color: var(--mcs-brown-dark);
  margin: 0;
}

.mcs-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  background-color: var(--mcs-black);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.03em;
  padding: 12px 22px;
  border-radius: 999px;
  transition: opacity 0.2s ease;
}

.mcs-back-btn:hover {
  opacity: 0.82;
}

/* ── Mobile ── */
@media (max-width: 599.98px) {
  .mcs-card {
    padding: 32px 24px;
    border-radius: 20px;
  }

  .mcs-title {
    font-size: 26px;
  }

  .mcs-hero-photo {
    width: 160px;
    height: 160px;
    border-radius: 46px;
  }

  .mcs-callout p {
    font-size: 18px;
  }
}
