.mnf {
  padding: 15px 15px 64px;
  color: #000;
}

.mnf-panel {
  background: #d0eff2;
  border-radius: 24px;
  padding: clamp(28px, 4vw, 64px) clamp(20px, 4vw, 64px) clamp(56px, 8vw, 120px);
  overflow: hidden;
}

.mnf-panel i {
  font-family: Castoro, Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #e9511c;
}

.mnf-rise {
  animation: mnf-rise 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes mnf-rise {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@supports (animation-timeline: view()) {
  .mnf-reveal {
    animation: mnf-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 38%;
  }
}

.mnf figure {
  margin: 0;
}

.mnf img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

/* Photo legends, and the line under the hero's citation (.mnf-quote-note),
   which is set exactly like them. */
.mnf figcaption,
.mnf-quote-note {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.66);
}

.mnf figcaption a,
.mnf-quote-note a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mnf figcaption a:hover,
.mnf-quote-note a:hover {
  color: #e9511c;
}

.mnf-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 64px);
}

.mnf-hero-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(20px, 2.4vw, 36px);
}

.mnf-kicker {
  align-self: flex-start;
  padding: 8px 16px;
  border-radius: 999px;
  background: #e9511c;
  font-family: Montserrat, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: #fff;
}

.mnf-quote {
  font-size: clamp(28px, 3.4vw, 60px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.045em;
  text-wrap: pretty;
}

.mnf-intro {
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.82);
}

.mnf-hero-photo {
  align-self: center;
  animation-delay: 0.08s;
}

.mnf-hero-photo img {
  aspect-ratio: 1280 / 853;
  object-fit: cover;
}

.mnf-hero-photo figcaption {
  margin-top: 10px;
  text-align: right;
}

/* Same gap above as the photo legend. */
.mnf-quote-note {
  margin-top: 10px;
}

/* Rêve, Promesse (.mnf-statement) and Agir (.mnf-lead): one type style, 28px
   on every screen as in the prototype (scaled with the page above 1700px). */
.mnf-statement,
.mnf-lead {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.mnf-statement {
  text-wrap: pretty;
}

.mnf-note {
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.78);
}

.mnf-dream {
  padding-top: clamp(72px, 11vw, 180px);
}

.mnf-action {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  padding-top: clamp(72px, 10vw, 160px);
}

.mnf-action-text {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(24px, 4vw, 72px);
}

.mnf-action-photo {
  position: relative;
}

.mnf-action-photo img {
  aspect-ratio: 1513 / 850;
  object-fit: cover;
}

.mnf-action-photo figcaption {
  position: absolute;
  left: clamp(16px, 2vw, 28px);
  bottom: clamp(8px, 1vw, 14px);
  max-width: min(76ch, 60%);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.mnf-action-photo figcaption a:hover {
  color: #d0eff2;
}

.mnf-promise {
  display: grid;
  gap: 28px;
  padding-top: clamp(48px, 5vw, 80px);
}

.mnf-note-columns {
  columns: 2;
  column-gap: clamp(24px, 4vw, 72px);
}

.mnf-closing {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 72px);
  margin-top: clamp(40px, 6vw, 96px);
  padding-top: clamp(28px, 4vw, 56px);
  border-top: 4px solid #70cbd3;
}

.mnf-closing-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
}

.mnf-final {
  font-family: Castoro, Georgia, serif;
  font-size: clamp(40px, 6.2vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #0e2e31;
  text-wrap: balance;
}

.mnf-signature {
  display: grid;
  gap: 4px;
  padding-left: 14px;
  border-left: 4px solid #e9511c;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.7);
}

.mnf-signature-name {
  font-family: Castoro, Georgia, serif;
  font-size: clamp(24px, 2.4vw, 40px);
  letter-spacing: -0.03em;
  color: #000;
}

.mnf-portrait img {
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 25%;
}

@media (max-width: 1280px) {
  .mnf {
    margin-top: 115px;
  }
}

/* Mobile (the site's mobile breakpoint, css/mobile.css): a shorter gap under
   the fixed menu bar. */
@media (max-width: 767px) {
  .mnf {
    margin-top: 95px;
  }
}

@media (max-width: 900px) {
  .mnf-panel {
    border-radius: 18px;
  }

  .mnf-hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mnf-action {
    gap: 20px;
    padding-top: 48px;
  }

  .mnf-action-text {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mnf-promise {
    gap: 18px;
    padding-top: 48px;
  }

  .mnf-note-columns {
    columns: 1;
  }

  .mnf-closing {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 36px;
    padding-top: 24px;
  }

  .mnf-action-photo figcaption {
    position: static;
    max-width: none;
    margin-top: 10px;
    color: rgba(0, 0, 0, 0.66);
    text-shadow: none;
  }

  .mnf-action-photo figcaption a:hover {
    color: #e9511c;
  }
}

@media (max-width: 600px) {
  .mnf {
    padding-bottom: 48px;
  }

  .mnf-hero-photo figcaption {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mnf-rise,
  .mnf-reveal {
    animation: none;
  }
}

@media (min-width: 1700px) {
  .mnf {
    padding: 1.04173vw 1.04173vw 4.44471vw;
  }

  .mnf-panel {
    border-radius: 1.66677vw;
    padding: 4vw 4vw 8vw;
  }

  .mnf img {
    border-radius: 1.38897vw;
  }

  .mnf figcaption,
  .mnf-quote-note {
    font-size: 0.83338vw;
  }

  .mnf figcaption a,
  .mnf-quote-note a {
    text-underline-offset: 0.1389vw;
  }

  .mnf-hero {
    gap: 4vw;
  }

  .mnf-hero-text {
    gap: 2.4vw;
  }

  .mnf-kicker {
    padding: 0.55559vw 1.11118vw;
    font-size: 0.97228vw;
    letter-spacing: 0.12501vw;
  }

  .mnf-quote {
    font-size: 3.4vw;
  }

  .mnf-intro {
    font-size: 1.3vw;
  }

  .mnf-hero-photo figcaption,
  .mnf-quote-note {
    margin-top: 0.69449vw;
  }

  .mnf-statement {
    font-size: 1.94456vw;
  }

  .mnf-lead {
    font-size: 1.94456vw;
  }

  .mnf-note {
    font-size: 1.1vw;
  }

  .mnf-dream {
    padding-top: 11vw;
  }

  .mnf-action {
    gap: 3.88912vw;
    padding-top: 10vw;
  }

  .mnf-action-text {
    gap: 4vw;
  }

  .mnf-action-photo figcaption {
    left: 1.94456vw;
    bottom: 0.97228vw;
    text-shadow: 0 0.06945vw 0.20835vw rgba(0, 0, 0, 0.6);
  }

  .mnf-promise {
    gap: 1.94456vw;
    padding-top: 5vw;
  }

  .mnf-note-columns {
    column-gap: 4vw;
  }

  .mnf-closing {
    gap: 4vw;
    margin-top: 6vw;
    padding-top: 3.88912vw;
    border-top: 0.27779vw solid #70cbd3;
  }

  .mnf-closing-text {
    gap: 2.22236vw;
  }

  .mnf-final {
    font-size: 6.2vw;
  }

  .mnf-signature {
    gap: 0.27779vw;
    padding-left: 0.97228vw;
    border-left: 0.27779vw solid #e9511c;
    font-size: 0.97228vw;
  }

  .mnf-signature-name {
    font-size: 2.4vw;
  }
}
