/* ==================================================================== *
 *  MS Circles — design system
 *  Warm, human, trustworthy. Teal = calm/connection, Coral = hope/life.
 * ==================================================================== */

/* ------------------------------------------------------------------ *
 * Tokens
 * ------------------------------------------------------------------ */
:root {
  --msc-font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --msc-font-display: "Fraunces", ui-serif, Georgia, serif;

  /* Neutrals — warm, paper-like */
  --msc-cream: #fbf7ef;
  --msc-sand: #f2ead9;
  --msc-shell: #f7f1e6;
  --msc-ink: #172b28;
  --msc-muted: #56655f;
  --msc-line: #e7ddc9;
  --msc-white: #ffffff;

  /* Brand — teal */
  --msc-brand-50: #eef9f5;
  --msc-brand-100: #d2f0e7;
  --msc-brand-200: #a6e1d1;
  --msc-brand-300: #6eccb7;
  --msc-brand-400: #38b199;
  --msc-brand-500: #1c9680;
  --msc-brand-600: #0f7a68;
  --msc-brand-700: #0d6153;
  --msc-brand-800: #0e4d44;
  --msc-brand-900: #0d3f39;

  /* Accent — coral / warm */
  --msc-coral-300: #ffb4a1;
  --msc-coral-400: #ff8f76;
  --msc-coral-500: #f76b4e;
  --msc-coral-600: #e2542f;

  /* Sun — soft gold */
  --msc-sun-300: #ffd98a;
  --msc-sun-400: #f7c25a;

  --msc-radius-card: 1rem;
  --msc-radius-big: 1.5rem;
  --msc-shadow-card: 0 16px 40px -24px rgba(13, 63, 57, 0.5);
  --msc-shadow-photo: 0 30px 60px -30px rgba(13, 63, 57, 0.45);
  --msc-container: 72rem;
  --msc-container-narrow: 48rem;
  --msc-container-wide: 80rem;
}

/* ------------------------------------------------------------------ *
 * Base
 * ------------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--msc-cream);
  color: var(--msc-ink);
  font-family: var(--msc-font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--msc-brand-200);
  color: var(--msc-brand-900);
}

h1, h2, h3, h4 {
  font-family: var(--msc-font-display);
  font-weight: 480;
  letter-spacing: -0.01em;
  color: var(--msc-ink);
  margin: 0;
}

p {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  text-underline-offset: 3px;
  color: inherit;
}

button {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--msc-brand-500);
  outline-offset: 2px;
  border-radius: 2px;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link — visible only when focused */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-150%);
  transition: transform 0.15s ease;
  background: var(--msc-brand-700);
  color: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 30px -12px rgba(13, 63, 57, 0.6);
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--msc-sun-400);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------ *
 * Layout primitives
 * ------------------------------------------------------------------ */
.msc-container {
  margin-inline: auto;
  width: 100%;
  max-width: var(--msc-container);
  padding-inline: 1.25rem;
}

.msc-container--narrow { max-width: var(--msc-container-narrow); }
.msc-container--wide { max-width: var(--msc-container-wide); }

@media (min-width: 640px) {
  .msc-container { padding-inline: 2rem; }
}

.msc-section {
  padding-block: 4rem;
}

@media (min-width: 640px) {
  .msc-section { padding-block: 6rem; }
}

.msc-section--cream { background: var(--msc-cream); color: var(--msc-ink); }
.msc-section--white { background: var(--msc-white); color: var(--msc-ink); }
.msc-section--sand { background: var(--msc-sand); color: var(--msc-ink); }
.msc-section--brand { background: var(--msc-brand-800); color: var(--msc-brand-50); }
.msc-section--ink { background: var(--msc-ink); color: var(--msc-cream); }

.msc-section--brand h2,
.msc-section--brand h3,
.msc-section--ink h2 {
  color: #fff;
}

/* Grids used across sections and patterns */
.msc-grid { display: grid; gap: 1.25rem; }

@media (min-width: 640px) {
  .msc-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .msc-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .msc-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .msc-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Two-column split (text + media) */
.msc-split {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .msc-split { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .msc-split--start { align-items: start; }
  .msc-split--rev { grid-template-columns: 0.9fr 1.1fr; }
}

/* ------------------------------------------------------------------ *
 * Text bits
 * ------------------------------------------------------------------ */
.msc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--msc-brand-600);
}

.msc-eyebrow::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--msc-coral-500);
}

.msc-eyebrow--light {
  color: var(--msc-brand-200);
}

.msc-eyebrow--light::before {
  background: var(--msc-coral-400);
}

.msc-section-heading {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 48rem;
  align-items: flex-start;
}

.msc-section-heading--center {
  max-width: 42rem;
  margin-inline: auto;
  align-items: center;
  text-align: center;
}

.msc-section-heading h2,
.msc-h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.25rem);
  line-height: 1.2;
}

.msc-section-heading .msc-intro,
.msc-intro {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--msc-muted);
}

.msc-section--brand .msc-intro,
.msc-cta .msc-intro {
  color: var(--msc-brand-100);
}

.msc-lede {
  font-family: var(--msc-font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  line-height: 1.4;
  color: var(--msc-brand-800);
  font-weight: 450;
}

/* ------------------------------------------------------------------ *
 * Buttons & links
 * ------------------------------------------------------------------ */
.msc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.msc-btn--primary { background: var(--msc-brand-600); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.msc-btn--primary:hover { background: var(--msc-brand-700); }
.msc-btn--coral { background: var(--msc-coral-500); color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.05); }
.msc-btn--coral:hover { background: var(--msc-coral-600); }
.msc-btn--outline { border: 1px solid var(--msc-brand-300); color: var(--msc-brand-800); }
.msc-btn--outline:hover { background: var(--msc-brand-50); }
.msc-btn--ghost { color: var(--msc-brand-700); }
.msc-btn--ghost:hover { color: var(--msc-brand-900); background: var(--msc-brand-50); }
.msc-btn--light { background: rgba(255, 255, 255, 0.9); color: var(--msc-brand-800); }
.msc-btn--light:hover { background: #fff; }

.msc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.msc-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--msc-brand-700);
  text-decoration: none;
  transition: color 0.15s ease;
}

.msc-arrow-link::after {
  content: "→";
  transition: transform 0.15s ease;
}

.msc-arrow-link:hover { color: var(--msc-brand-900); }
.msc-arrow-link:hover::after { transform: translateX(4px); }

/* ------------------------------------------------------------------ *
 * Header
 * ------------------------------------------------------------------ */
.msc-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(231, 221, 201, 0.7);
  background: rgba(251, 247, 239, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.msc-header__bar {
  margin-inline: auto;
  max-width: var(--msc-container-wide);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
}

@media (min-width: 640px) {
  .msc-header__bar { padding-inline: 2rem; }
}

.msc-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.msc-logo__mark {
  height: 3.5rem;
  width: auto;
  object-fit: contain;
}

.msc-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0.2rem;
}

.msc-logo__name {
  font-family: var(--msc-font-display);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--msc-ink);
}

.msc-logo__tagline {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--msc-brand-600);
}

.msc-logo--light .msc-logo__name { color: #fff; }
.msc-logo--light .msc-logo__tagline { color: var(--msc-brand-200); }

/* --- Primary nav (desktop) --- */
.msc-nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.msc-nav__item { position: relative; }

.msc-nav__link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 999px;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(23, 43, 40, 0.8);
  text-decoration: none;
  transition: color 0.15s ease;
}

.msc-nav__link:hover,
.msc-nav__item.is-current > .msc-nav__link {
  color: var(--msc-brand-800);
}

.msc-nav__chevron {
  width: 0.625rem;
  height: 0.625rem;
  opacity: 0.6;
  transition: transform 0.15s ease;
}

.msc-nav__item:hover .msc-nav__chevron,
.msc-nav__item:focus-within .msc-nav__chevron {
  transform: rotate(180deg);
}

.msc-nav__toggle { display: none; }

.msc-nav__panel {
  visibility: hidden;
  opacity: 0;
  transform: translateY(4px);
  position: absolute;
  left: 0;
  top: 100%;
  width: 18rem;
  padding-top: 0.5rem;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 60;
}

.msc-nav__item:hover > .msc-nav__panel,
.msc-nav__item:focus-within > .msc-nav__panel {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.msc-nav__panel-item:first-child .msc-nav__child { border-top-left-radius: 0.75rem; border-top-right-radius: 0.75rem; }
.msc-nav__panel-item:last-child .msc-nav__child { border-bottom-left-radius: 0.75rem; border-bottom-right-radius: 0.75rem; }

.msc-nav__panel {
  --panel-bg: #fff;
}

.msc-nav__panel > .msc-nav__panel-item:first-child { padding-top: 0.5rem; }
.msc-nav__panel > .msc-nav__panel-item:last-child { padding-bottom: 0.5rem; }

.msc-nav__panel-item {
  background: var(--panel-bg);
  padding-inline: 0.5rem;
}

.msc-nav__panel > .msc-nav__panel-item:first-child {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  border-top: 1px solid var(--msc-line);
}

.msc-nav__panel > .msc-nav__panel-item:last-child {
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  border-bottom: 1px solid var(--msc-line);
  box-shadow: 0 24px 60px -30px rgba(13, 63, 57, 0.55);
}

.msc-nav__panel-item {
  border-left: 1px solid var(--msc-line);
  border-right: 1px solid var(--msc-line);
}

.msc-nav__child {
  display: block;
  border-radius: 0.75rem;
  padding: 0.625rem 0.75rem;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.msc-nav__child:hover { background: var(--msc-brand-50); }

.msc-nav__child-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--msc-ink);
}

.msc-nav__child-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--msc-muted);
}

/* --- Header actions --- */
.msc-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.msc-header__donate {
  display: none;
  border-radius: 999px;
  background: var(--msc-coral-500);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.msc-header__donate:hover { background: var(--msc-coral-600); }

@media (min-width: 640px) {
  .msc-header__donate { display: inline-flex; }
}

.msc-header__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--msc-line);
  color: var(--msc-ink);
}

.msc-header__burger-lines {
  position: relative;
  display: block;
  width: 1.25rem;
  height: 0.875rem;
}

.msc-header__burger-lines span {
  position: absolute;
  left: 0;
  height: 2px;
  width: 1.25rem;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.msc-header__burger-lines span:nth-child(1) { top: 0; }
.msc-header__burger-lines span:nth-child(2) { top: 6px; }
.msc-header__burger-lines span:nth-child(3) { top: 12px; }

.msc-header.is-open .msc-header__burger-lines span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.msc-header.is-open .msc-header__burger-lines span:nth-child(2) { opacity: 0; }
.msc-header.is-open .msc-header__burger-lines span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- Mobile drawer --- */
@media (max-width: 1023.98px) {
  .msc-header__nav {
    display: none;
    border-top: 1px solid var(--msc-line);
    background: var(--msc-cream);
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
  }

  .msc-header.is-open .msc-header__nav { display: block; }

  .msc-nav__list {
    display: block;
    max-width: var(--msc-container-wide);
    margin-inline: auto;
    padding: 1rem 1.25rem 1.5rem;
  }

  .msc-nav__item {
    border-bottom: 1px solid rgba(231, 221, 201, 0.7);
    padding-block: 0.25rem;
  }

  .msc-nav__item.has-children {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .msc-nav__link {
    padding: 0.625rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--msc-ink);
  }

  .msc-nav__chevron { display: none; }

  .msc-nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    color: var(--msc-brand-700);
  }

  .msc-nav__toggle svg {
    width: 0.75rem;
    height: 0.75rem;
    transition: transform 0.15s ease;
  }

  .msc-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

  .msc-nav__panel {
    visibility: visible;
    opacity: 1;
    transform: none;
    position: static;
    width: auto;
    padding: 0 0 0.5rem 0.5rem;
    display: none;
    grid-column: 1 / -1;
  }

  .msc-nav__item.is-expanded > .msc-nav__panel { display: block; }

  .msc-nav__panel-item {
    border: 0;
    padding: 0;
    background: transparent;
  }

  .msc-nav__panel > .msc-nav__panel-item:first-child,
  .msc-nav__panel > .msc-nav__panel-item:last-child {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }

  .msc-nav__child { padding: 0.5rem 0; }
  .msc-nav__child:hover { background: transparent; }

  .msc-nav__child-label {
    font-weight: 400;
    color: var(--msc-muted);
  }

  .msc-nav__child:hover .msc-nav__child-label { color: var(--msc-brand-800); }
  .msc-nav__child-desc { display: none; }

  .msc-nav__drawer-donate {
    display: inline-flex;
    width: 100%;
    margin-top: 1rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--msc-coral-500);
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
  }
}

@media (min-width: 1024px) {
  .msc-header__burger { display: none; }
  .msc-nav__drawer-donate { display: none; }
}

/* ------------------------------------------------------------------ *
 * Footer
 * ------------------------------------------------------------------ */
.msc-footer {
  background: var(--msc-ink);
  color: var(--msc-cream);
}

.msc-footer__inner {
  margin-inline: auto;
  max-width: var(--msc-container-wide);
  padding: 4rem 1.25rem;
}

@media (min-width: 640px) {
  .msc-footer__inner { padding-inline: 2rem; }
}

.msc-footer__grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .msc-footer__grid { grid-template-columns: 1.3fr 2fr; }
}

.msc-footer__brand { max-width: 24rem; }

.msc-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.msc-footer__brand-row img {
  height: 2.25rem;
  width: auto;
}

.msc-footer__brand-name {
  font-family: var(--msc-font-display);
  font-size: 1.125rem;
  color: #fff;
}

.msc-footer__lede {
  margin-top: 1.25rem;
  font-family: var(--msc-font-display);
  font-size: 1.25rem;
  line-height: 1.375;
  color: rgba(251, 247, 239, 0.9);
}

.msc-footer__desc {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(251, 247, 239, 0.6);
}

.msc-footer__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  border-radius: 999px;
  background: var(--msc-brand-500);
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.msc-footer__cta:hover { background: var(--msc-brand-400); }

.msc-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 640px) {
  .msc-footer__cols { grid-template-columns: repeat(4, 1fr); }
}

.msc-footer__col-title {
  font-family: var(--msc-font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(251, 247, 239, 0.5);
}

.msc-footer__links {
  margin-top: 1rem;
  display: grid;
  gap: 0.625rem;
}

.msc-footer__links a {
  font-size: 0.875rem;
  color: rgba(251, 247, 239, 0.8);
  text-decoration: none;
  transition: color 0.15s ease;
}

.msc-footer__links a:hover { color: #fff; }

.msc-footer__bottom {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  font-size: 0.875rem;
  color: rgba(251, 247, 239, 0.5);
}

@media (min-width: 640px) {
  .msc-footer__bottom {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.msc-footer__closing {
  font-family: var(--msc-font-display);
  font-size: 1rem;
  color: rgba(251, 247, 239, 0.7);
}

/* ------------------------------------------------------------------ *
 * Wave divider (organic seam with coral ribbon)
 * ------------------------------------------------------------------ */
.msc-wave {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 52px;
}

@media (min-width: 640px) {
  .msc-wave { height: 88px; }
}

.msc-wave--bottom { bottom: -1px; }
.msc-wave--top { top: 0; transform: translateY(-99%); }

.msc-wave__ribbon { fill: var(--msc-coral-500); }

/* ------------------------------------------------------------------ *
 * Ring motif + orbit dots (hero / CTA decorations)
 * ------------------------------------------------------------------ */
.msc-ring-motif {
  background-image: repeating-radial-gradient(
    circle at center,
    transparent 0,
    transparent 26px,
    rgba(28, 150, 128, 0.12) 27px,
    transparent 28px
  );
}

@keyframes msc-float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.msc-float-slow { animation: msc-float-slow 7s ease-in-out infinite; }

@keyframes msc-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes msc-orbit-rev {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* ------------------------------------------------------------------ *
 * Home hero
 * ------------------------------------------------------------------ */
.msc-hero {
  position: relative;
  overflow: hidden;
  background: var(--msc-brand-900);
  color: var(--msc-brand-50);
}

.msc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-radial-gradient(
    circle at center,
    transparent 0,
    transparent 26px,
    rgba(28, 150, 128, 0.12) 27px,
    transparent 28px
  );
  opacity: 0.3;
  pointer-events: none;
}

.msc-hero__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(64px);
  pointer-events: none;
}

.msc-hero__glow--teal {
  left: -6rem;
  top: 2.5rem;
  width: 20rem;
  height: 20rem;
  background: rgba(15, 122, 104, 0.4);
}

.msc-hero__glow--coral {
  right: -4rem;
  bottom: 0;
  width: 24rem;
  height: 24rem;
  background: rgba(247, 107, 78, 0.2);
}

.msc-hero__inner {
  position: relative;
  display: grid;
  gap: 3rem;
  padding-block: 5rem;
}

@media (min-width: 640px) {
  .msc-hero__inner { padding-block: 7rem; }
}

@media (min-width: 1024px) {
  .msc-hero__inner {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }
}

.msc-hero__title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.05;
  color: #fff;
}

.msc-hero__intro {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: var(--msc-brand-100);
}

.msc-hero__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.msc-hero__stats {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 2.5rem;
  row-gap: 1.25rem;
}

.msc-hero__stat-value {
  font-family: var(--msc-font-display);
  font-size: 1.875rem;
  color: #fff;
}

.msc-hero__stat-label {
  font-size: 0.875rem;
  color: var(--msc-brand-200);
}

.msc-hero__stat-sep {
  display: none;
  width: 1px;
  height: 2.5rem;
  background: var(--msc-brand-700);
}

@media (min-width: 640px) {
  .msc-hero__stat-sep { display: block; }
}

/* Orbiting circles + floating quote card */
.msc-hero__orbit {
  display: none;
  position: relative;
  margin-inline: auto;
  aspect-ratio: 1;
  width: 100%;
  max-width: 28rem;
}

@media (min-width: 1024px) {
  .msc-hero__orbit { display: block; }
}

.msc-hero__ring {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(15, 122, 104, 0.5);
}

.msc-hero__ring--1 { inset: 0; }
.msc-hero__ring--2 { inset: 2rem; border-color: rgba(15, 122, 104, 0.4); }
.msc-hero__ring--3 { inset: 4rem; border-color: rgba(15, 122, 104, 0.3); }

.msc-orbit {
  position: absolute;
  animation: msc-orbit var(--dur, 16s) linear infinite;
}

.msc-orbit--rev { animation-name: msc-orbit-rev; }
.msc-orbit--1 { inset: 0; --dur: 17s; }
.msc-orbit--2 { inset: 2rem; --dur: 11s; }
.msc-orbit--3 { inset: 4rem; --dur: 7s; }

.msc-orbit__dot {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--msc-coral-500);
  width: 0.875rem;
  height: 0.875rem;
  box-shadow: 0 0 16px 4px rgba(247, 107, 78, 0.6);
}

.msc-orbit--2 .msc-orbit__dot { width: 0.75rem; height: 0.75rem; background: var(--msc-coral-400); box-shadow: 0 0 14px 3px rgba(247, 107, 78, 0.5); }
.msc-orbit--3 .msc-orbit__dot { width: 0.625rem; height: 0.625rem; box-shadow: 0 0 12px 3px rgba(247, 107, 78, 0.5); }

.msc-hero__card-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.msc-hero__card {
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: msc-float-slow 7s ease-in-out infinite;
}

.msc-hero__card img {
  margin-inline: auto;
  height: 5rem;
  width: auto;
}

.msc-hero__card-quote {
  margin-top: 1.25rem;
  font-family: var(--msc-font-display);
  font-size: 1.5rem;
  line-height: 1.375;
  color: var(--msc-brand-900);
}

.msc-hero__card-tag {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--msc-coral-500);
}

/* ------------------------------------------------------------------ *
 * Interior page hero
 * ------------------------------------------------------------------ */
.msc-page-hero {
  position: relative;
  overflow: hidden;
  background: var(--msc-brand-900);
  color: var(--msc-brand-50);
}

.msc-page-hero__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(48px);
  pointer-events: none;
}

.msc-page-hero__glow--teal {
  right: -6rem;
  top: -6rem;
  width: 24rem;
  height: 24rem;
  background: rgba(15, 122, 104, 0.4);
}

.msc-page-hero__glow--coral {
  left: 33%;
  bottom: -8rem;
  width: 18rem;
  height: 18rem;
  background: rgba(247, 107, 78, 0.15);
}

.msc-page-hero__inner {
  position: relative;
  padding-block: 4rem 6rem;
}

@media (min-width: 640px) {
  .msc-page-hero__inner { padding-block: 6rem 8.5rem; }
}

.msc-page-hero__content { max-width: 48rem; }

.msc-page-hero__content .msc-eyebrow { margin-bottom: 1rem; }

.msc-page-hero__title {
  font-size: clamp(2.25rem, 4.5vw, 3rem);
  line-height: 1.08;
  color: #fff;
}

.msc-page-hero__intro {
  margin-top: 1.5rem;
  font-size: clamp(1.125rem, 1.6vw, 1.25rem);
  line-height: 1.65;
  color: var(--msc-brand-100);
}

.msc-breadcrumbs {
  margin-bottom: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--msc-brand-200);
}

.msc-breadcrumbs a {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.msc-breadcrumbs a:hover { color: #fff; }

.msc-breadcrumbs svg {
  width: 1rem;
  height: 1rem;
}

.msc-breadcrumbs__sep { color: var(--msc-brand-400); }

/* ------------------------------------------------------------------ *
 * Cards, pillars, insights, stats
 * ------------------------------------------------------------------ */
.msc-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  gap: 0.75rem;
  border-radius: var(--msc-radius-card);
  border: 1px solid var(--msc-line);
  background: var(--msc-white);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.msc-card--cream { background: var(--msc-cream); }

a.msc-card:hover,
.msc-card--link:hover {
  transform: translateY(-4px);
  border-color: var(--msc-brand-300);
  box-shadow: var(--msc-shadow-card);
}

.msc-card__icon {
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--msc-brand-100);
  color: var(--msc-brand-700);
}

.msc-card__title,
.msc-card h3 {
  font-size: 1.25rem;
  color: var(--msc-ink);
}

.msc-card__body,
.msc-card p {
  font-size: 0.975rem;
  line-height: 1.6;
  color: var(--msc-muted);
}

.msc-card__cta {
  margin-top: auto;
  padding-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--msc-brand-700);
}

.msc-card__cta::after {
  content: "→";
  transition: transform 0.15s ease;
}

a.msc-card:hover .msc-card__cta::after { transform: translateX(4px); }

/* Numbered pillar */
.msc-pillar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-radius: var(--msc-radius-card);
  border: 1px solid var(--msc-line);
  background: var(--msc-white);
  padding: 1.5rem;
}

.msc-pillar__index {
  font-family: var(--msc-font-display);
  font-size: 1.875rem;
  color: var(--msc-brand-300);
}

.msc-pillar h3 { font-size: 1.125rem; }

.msc-pillar p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--msc-muted);
}

/* Insight row (list of linked articles) */
.msc-insight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-radius: var(--msc-radius-card);
  border: 1px solid var(--msc-line);
  background: var(--msc-cream);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

a.msc-insight:hover {
  border-color: var(--msc-brand-300);
  background: var(--msc-brand-50);
}

.msc-insight--soon {
  border-style: dashed;
  background: rgba(251, 247, 239, 0.6);
}

.msc-insight__tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--msc-coral-500);
}

.msc-insight__title {
  margin-top: 0.25rem;
  font-size: 1.125rem;
  font-family: var(--msc-font-sans);
  color: var(--msc-ink);
}

.msc-insight--soon .msc-insight__title { color: var(--msc-muted); }

.msc-insight__arrow {
  color: var(--msc-brand-500);
  transition: transform 0.15s ease;
}

a.msc-insight:hover .msc-insight__arrow { transform: translateX(4px); }

.msc-insight__badge {
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--msc-brand-100);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--msc-brand-700);
}

/* Stat */
.msc-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.msc-stat__value {
  font-family: var(--msc-font-display);
  font-size: clamp(2.25rem, 4vw, 3rem);
  color: var(--msc-brand-700);
}

.msc-stat__label {
  font-size: 0.875rem;
  line-height: 1.375;
  color: var(--msc-muted);
}

/* Pills / tag chips */
.msc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.msc-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--msc-line);
  background: var(--msc-white);
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--msc-brand-800);
}

/* Note / disclaimer box */
.msc-note {
  border: 1px solid var(--msc-line);
  border-radius: var(--msc-radius-card);
  background: var(--msc-cream);
  padding: 1.25rem 1.5rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--msc-muted);
}

/* Monogram circle (team cards) */
.msc-monogram {
  display: inline-flex;
  width: 3.5rem;
  height: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--msc-brand-100);
  color: var(--msc-brand-700);
  font-family: var(--msc-font-display);
  font-size: 1.125rem;
  font-weight: 500;
}

.msc-monogram--coral {
  background: rgba(255, 180, 161, 0.4);
  color: var(--msc-coral-600);
}

/* ------------------------------------------------------------------ *
 * Pull quote
 * ------------------------------------------------------------------ */
.msc-quote {
  position: relative;
  overflow: hidden;
  border-radius: var(--msc-radius-big);
  background: var(--msc-sand);
  color: var(--msc-ink);
  padding: 3rem 2rem;
  margin: 0;
}

@media (min-width: 640px) {
  .msc-quote { padding: 4rem 3.5rem; }
}

.msc-quote--brand {
  background: var(--msc-brand-800);
  color: var(--msc-brand-50);
}

.msc-quote::before {
  content: "\201C";
  position: absolute;
  left: 1.5rem;
  top: 1rem;
  font-family: var(--msc-font-display);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--msc-coral-300);
}

.msc-quote--brand::before { color: var(--msc-brand-600); }

.msc-quote__mark {
  pointer-events: none;
  position: absolute;
  right: -2.5rem;
  top: 50%;
  height: 150%;
  width: auto;
  transform: translateY(-50%);
  opacity: 0.07;
}

.msc-quote--brand .msc-quote__mark { opacity: 0.12; }

.msc-quote blockquote,
.msc-quote__text {
  position: relative;
  margin: 0;
  border: 0;
  padding: 0;
  font-family: var(--msc-font-display);
  font-size: clamp(1.5rem, 2.6vw, 1.875rem);
  line-height: 1.375;
}

.msc-quote figcaption,
.msc-quote__attr {
  position: relative;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--msc-brand-700);
}

.msc-quote--brand figcaption,
.msc-quote--brand .msc-quote__attr { color: var(--msc-brand-200); }

/* ------------------------------------------------------------------ *
 * Photo frame with circle-motif dots
 * ------------------------------------------------------------------ */
.msc-photo {
  position: relative;
}

.msc-photo__frame {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: var(--msc-radius-big);
  background: var(--msc-sand);
  box-shadow: var(--msc-shadow-photo);
  outline: 1px solid rgba(13, 63, 57, 0.1);
  outline-offset: -1px;
}

.msc-photo__frame img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.msc-photo__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 63, 57, 0.2), transparent 50%);
  pointer-events: none;
}

.msc-photo--43 { aspect-ratio: 4 / 3; }
.msc-photo--169 { aspect-ratio: 16 / 9; }

/* Photo frame built with a core image block (patterns) */
.msc-photo > .wp-block-image {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: var(--msc-radius-big);
  background: var(--msc-sand);
  box-shadow: var(--msc-shadow-photo);
  outline: 1px solid rgba(13, 63, 57, 0.1);
  outline-offset: -1px;
  margin: 0;
}

.msc-photo > .wp-block-image img {
  display: block;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.msc-photo__dot {
  pointer-events: none;
  position: absolute;
  border-radius: 999px;
}

.msc-photo__dot--1 { right: -1.75rem; top: -1.75rem; width: 4rem; height: 4rem; background: var(--msc-coral-500); box-shadow: 0 14px 34px -10px rgba(226, 84, 47, 0.6); }
.msc-photo__dot--2 { right: -2.75rem; top: 1.5rem; width: 2.25rem; height: 2.25rem; background: var(--msc-coral-400); }
.msc-photo__dot--3 { right: 0.75rem; top: -2.5rem; width: 1.5rem; height: 1.5rem; background: var(--msc-sun-400); }
.msc-photo__dot--4 { right: 2.25rem; top: -1rem; width: 0.875rem; height: 0.875rem; background: var(--msc-coral-300); }
.msc-photo__dot--5 { right: -0.5rem; top: 4rem; width: 1rem; height: 1rem; background: rgba(255, 143, 118, 0.8); }

/* ------------------------------------------------------------------ *
 * Gradient section with drifting circles
 * ------------------------------------------------------------------ */
.msc-gradient-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--msc-brand-100) 0%, var(--msc-cream) 50%, rgba(255, 180, 161, 0.3) 100%);
  padding-block: 4rem;
}

@media (min-width: 640px) {
  .msc-gradient-section { padding-block: 6rem; }
}

.msc-gradient-section > .msc-container { position: relative; }

@keyframes msc-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(var(--dx, 20px), var(--dy, -20px)) scale(var(--s, 1.2)); }
}

.msc-float-circle {
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  pointer-events: none;
  animation: msc-drift var(--dur, 10s) ease-in-out var(--delay, 0s) infinite;
}

.msc-float-circle--1 { left: 6%; top: 14%; width: 10rem; height: 10rem; background: rgba(110, 204, 183, 0.45); --dx: 40px; --dy: -26px; --s: 1.2; --dur: 9s; }
.msc-float-circle--2 { right: 9%; top: 8%; width: 14rem; height: 14rem; background: rgba(255, 180, 161, 0.4); --dx: -32px; --dy: 30px; --s: 1.15; --dur: 11s; --delay: 0.6s; }
.msc-float-circle--3 { left: 22%; bottom: 8%; width: 12rem; height: 12rem; background: rgba(255, 217, 138, 0.45); --dx: 26px; --dy: -32px; --s: 1.25; --dur: 10s; --delay: 1s; }
.msc-float-circle--4 { right: 20%; bottom: 14%; width: 16rem; height: 16rem; background: rgba(56, 177, 153, 0.35); --dx: -38px; --dy: -22px; --s: 1.1; --dur: 13s; --delay: 0.9s; }
.msc-float-circle--5 { left: 46%; top: 28%; width: 8rem; height: 8rem; background: rgba(255, 143, 118, 0.35); --dx: 22px; --dy: 28px; --s: 1.3; --dur: 8s; --delay: 0.3s; }
.msc-float-circle--6 { right: 42%; top: 10%; width: 7rem; height: 7rem; background: rgba(166, 225, 209, 0.5); --dx: -20px; --dy: 24px; --s: 1.2; --dur: 12s; --delay: 1.4s; }

/* ------------------------------------------------------------------ *
 * CTA band
 * ------------------------------------------------------------------ */
.msc-cta {
  position: relative;
  background: var(--msc-brand-900);
  color: var(--msc-brand-50);
}

.msc-cta__decor {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.msc-cta__rings {
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: repeating-radial-gradient(
    circle at center,
    transparent 0,
    transparent 26px,
    rgba(28, 150, 128, 0.12) 27px,
    transparent 28px
  );
}

.msc-cta__glow {
  position: absolute;
  right: -5rem;
  top: 50%;
  width: 20rem;
  height: 20rem;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(247, 107, 78, 0.2);
  filter: blur(64px);
}

.msc-cta__inner {
  position: relative;
  padding-block: 4rem;
  max-width: var(--msc-container);
}

@media (min-width: 640px) {
  .msc-cta__inner { padding-block: 5rem; }
}

.msc-cta__inner > * { max-width: 42rem; }

.msc-cta .msc-eyebrow { margin-bottom: 1rem; }

.msc-cta__title {
  font-size: clamp(1.875rem, 3.5vw, 2.25rem);
  line-height: 1.2;
  color: #fff;
}

.msc-cta__intro {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--msc-brand-100);
}

.msc-cta__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ------------------------------------------------------------------ *
 * Rich text (long-form pages, .entry-content default)
 * ------------------------------------------------------------------ */
.msc-prose {
  color: var(--msc-ink);
  font-size: 1.075rem;
  line-height: 1.75;
}

.msc-prose > * + * { margin-top: 1.15em; }

.msc-prose p { color: #33433e; }

.msc-prose h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  line-height: 1.15;
  margin-top: 2.4rem;
  margin-bottom: 0.2rem;
}

.msc-prose h3 {
  font-size: 1.28rem;
  line-height: 1.25;
  margin-top: 1.8rem;
  color: var(--msc-brand-800);
}

.msc-prose h2 + p,
.msc-prose h3 + p { margin-top: 0.6rem; }

.msc-prose strong {
  color: var(--msc-ink);
  font-weight: 600;
}

.msc-prose a {
  color: var(--msc-brand-700);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--msc-brand-200);
}

.msc-prose a:hover { text-decoration-color: var(--msc-brand-500); }

.msc-prose ul {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 0.6rem;
}

.msc-prose ul li {
  position: relative;
  padding-left: 1.6rem;
  color: #33433e;
}

.msc-prose ul li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--msc-brand-400);
  box-shadow: 0 0 0 3px var(--msc-brand-100);
}

.msc-prose ol {
  padding-left: 1.4rem;
  display: grid;
  gap: 0.6rem;
  color: #33433e;
}

.msc-prose blockquote {
  margin: 1.6rem 0;
  padding: 0.2rem 0 0.2rem 1.4rem;
  border-left: 3px solid var(--msc-coral-400);
  font-family: var(--msc-font-display);
  font-size: 1.35rem;
  line-height: 1.4;
  color: var(--msc-brand-900);
}

.msc-prose blockquote p { color: inherit; }

.msc-prose hr {
  border: 0;
  height: 1px;
  background: var(--msc-line);
  margin: 2.4rem 0;
}

.msc-prose .msc-lede,
.msc-prose .lede {
  font-family: var(--msc-font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  line-height: 1.4;
  color: var(--msc-brand-800);
  font-weight: 450;
}

.msc-prose img {
  border-radius: var(--msc-radius-big);
}

/* ------------------------------------------------------------------ *
 * Content area & Gutenberg integration
 * ------------------------------------------------------------------ */
/* Narrow prose column (default page template) */
.msc-content {
  padding-block: 4rem;
  background: var(--msc-white);
}

@media (min-width: 640px) {
  .msc-content { padding-block: 6rem; }
}

/* Full-bleed sections built with blocks (Landing template): no outer padding */
.msc-content--flow {
  padding: 0;
  background: var(--msc-cream);
}

/* alignfull / alignwide inside the narrow column */
.msc-content:not(.msc-content--flow) .alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}

.msc-content:not(.msc-content--flow) .alignwide {
  margin-left: calc(50% - min(40rem, 50vw - 1.25rem));
  margin-right: calc(50% - min(40rem, 50vw - 1.25rem));
  max-width: none;
}

/* Core buttons inherit the pill look */
.wp-block-button__link {
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  background: var(--msc-brand-600);
  color: #fff;
  transition: background-color 0.15s ease;
}

.wp-block-button__link:hover { background: var(--msc-brand-700); }

.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline > .wp-block-button__link {
  background: transparent;
  border: 1px solid var(--msc-brand-300);
  color: var(--msc-brand-800);
}

.is-style-outline .wp-block-button__link:hover { background: var(--msc-brand-50); }

/* Coral button style (selectable in the editor via "Styles") */
.is-style-msc-coral .wp-block-button__link {
  background: var(--msc-coral-500);
  color: #fff;
}

.is-style-msc-coral .wp-block-button__link:hover { background: var(--msc-coral-600); }

.is-style-msc-light .wp-block-button__link {
  background: rgba(255, 255, 255, 0.9);
  color: var(--msc-brand-800);
}

.is-style-msc-light .wp-block-button__link:hover { background: #fff; }

/* Core separator */
.wp-block-separator {
  border: 0;
  height: 1px;
  background: var(--msc-line);
}

/* ------------------------------------------------------------------ *
 * Blog: archive cards, single, pagination
 * ------------------------------------------------------------------ */
.msc-archive-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .msc-archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .msc-archive-grid { grid-template-columns: repeat(3, 1fr); }
}

.msc-post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--msc-radius-card);
  border: 1px solid var(--msc-line);
  background: var(--msc-white);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.msc-post-card:hover {
  transform: translateY(-4px);
  border-color: var(--msc-brand-300);
  box-shadow: var(--msc-shadow-card);
}

.msc-post-card__thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--msc-sand);
}

.msc-post-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.msc-post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.625rem;
  padding: 1.5rem;
}

.msc-post-card__meta {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--msc-coral-500);
}

.msc-post-card__title {
  font-size: 1.25rem;
  line-height: 1.3;
}

.msc-post-card__title a {
  color: var(--msc-ink);
  text-decoration: none;
}

.msc-post-card__title a:hover { color: var(--msc-brand-700); }

.msc-post-card__excerpt {
  font-size: 0.925rem;
  line-height: 1.6;
  color: var(--msc-muted);
}

.msc-single__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--msc-muted);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--msc-line);
}

.msc-pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 0.375rem;
}

.msc-pagination .page-numbers {
  display: inline-flex;
  min-width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding-inline: 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--msc-line);
  background: var(--msc-white);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--msc-brand-800);
  text-decoration: none;
}

.msc-pagination .page-numbers.current {
  background: var(--msc-brand-600);
  border-color: var(--msc-brand-600);
  color: #fff;
}

.msc-pagination .page-numbers:hover:not(.current) { background: var(--msc-brand-50); }

/* ------------------------------------------------------------------ *
 * Forms (search, comments, plugin forms)
 * ------------------------------------------------------------------ */
.msc-form input[type="text"],
.msc-form input[type="email"],
.msc-form input[type="url"],
.msc-form input[type="search"],
.msc-form input[type="number"],
.msc-form select,
.msc-form textarea,
.msc-content input[type="text"],
.msc-content input[type="email"],
.msc-content input[type="url"],
.msc-content input[type="search"],
.msc-content input[type="tel"],
.msc-content input[type="number"],
.msc-content select,
.msc-content textarea {
  width: 100%;
  border: 1px solid var(--msc-line);
  border-radius: 0.75rem;
  background: var(--msc-white);
  padding: 0.75rem 1rem;
  font: inherit;
  color: var(--msc-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.msc-form input:focus,
.msc-form textarea:focus,
.msc-content input:focus,
.msc-content select:focus,
.msc-content textarea:focus {
  outline: none;
  border-color: var(--msc-brand-400);
  box-shadow: 0 0 0 3px var(--msc-brand-100);
}

.msc-form label,
.msc-content form label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--msc-ink);
}

.msc-form button[type="submit"],
.msc-content form button[type="submit"],
.msc-content form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  background: var(--msc-brand-600);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.msc-form button[type="submit"]:hover,
.msc-content form input[type="submit"]:hover { background: var(--msc-brand-700); }

.msc-search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 28rem;
}

/* ------------------------------------------------------------------ *
 * 404 / no results
 * ------------------------------------------------------------------ */
.msc-empty {
  text-align: center;
  padding-block: 2rem;
}

.msc-empty__circle {
  margin: 0 auto 2rem;
  display: flex;
  width: 8rem;
  height: 8rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--msc-brand-100);
  font-family: var(--msc-font-display);
  font-size: 2.25rem;
  color: var(--msc-brand-700);
}

/* ------------------------------------------------------------------ *
 * Scroll reveal (JS adds .msc-anim to <html>, .is-inview per element)
 * ------------------------------------------------------------------ */
.msc-anim [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.msc-anim [data-reveal].is-inview {
  opacity: 1;
  transform: none;
}

.msc-anim [data-reveal-zoom] img {
  transform: scale(1.12);
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.msc-anim [data-reveal-zoom].is-inview img { transform: scale(1); }

/* Stagger children */
.msc-anim [data-stagger] > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.msc-anim [data-stagger].is-inview > * {
  opacity: 1;
  transform: none;
}

.msc-anim [data-stagger].is-inview > *:nth-child(2) { transition-delay: 0.08s; }
.msc-anim [data-stagger].is-inview > *:nth-child(3) { transition-delay: 0.16s; }
.msc-anim [data-stagger].is-inview > *:nth-child(4) { transition-delay: 0.24s; }
.msc-anim [data-stagger].is-inview > *:nth-child(5) { transition-delay: 0.32s; }
.msc-anim [data-stagger].is-inview > *:nth-child(6) { transition-delay: 0.4s; }

/* Logo entrance + hover wobble (CSS-only) */
@keyframes msc-logo-pop {
  from { opacity: 0; transform: scale(0.85) translateY(-6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.msc-anim .msc-logo__mark {
  animation: msc-logo-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.msc-logo:hover .msc-logo__mark {
  transform: scale(1.08) rotate(-3deg);
}

/* ------------------------------------------------------------------ *
 * Reduced motion
 * ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .msc-float-slow,
  .msc-hero__card,
  .msc-orbit,
  .msc-float-circle,
  .msc-anim .msc-logo__mark {
    animation: none !important;
  }

  .msc-anim [data-reveal],
  .msc-anim [data-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
