/*
Theme Name: MMES — A Century of Learning
Theme URI: https://legacy-scholars-hub.base44.app/
Author: MMES
Description: A responsive, one-page heritage website for Melvisharam Muslim Educational Society.
Version: 1.1.0
Text Domain: mmes-century
*/

:root {
  --paper: #f6f4ee;
  --paper-deep: #eeece4;
  --ink: #1c211d;
  --ink-soft: #555b55;
  --forest: #284536;
  --forest-deep: #1c382a;
  --charcoal: #171a17;
  --gold: #9a8055;
  --gold-light: #b39a70;
  --line: rgba(84, 78, 63, .18);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Plus Jakarta Sans", "Avenir Next", Avenir, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

body.mmes-menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

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

.elementor-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.elementor-content > .elementor,
.elementor-content > .elementor-section-wrap {
  width: 100%;
  max-width: none;
}

.custom-logo-link {
  position: relative;
  z-index: 102;
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  width: auto;
  max-width: 150px;
  max-height: 44px;
  object-fit: contain;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: 76px;
  border-bottom: 1px solid transparent;
  color: var(--paper);
  transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}

.site-header.is-scrolled,
.site-header.menu-is-open {
  color: var(--ink);
  background: rgba(246, 244, 238, .97);
  border-bottom-color: rgba(45, 48, 42, .1);
  backdrop-filter: blur(12px);
}

.site-header.menu-is-open {
  color: var(--paper);
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}

.site-header__inner {
  width: min(100% - 64px, 1500px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  position: relative;
  z-index: 102;
  font: 500 27px/1 var(--serif);
  letter-spacing: -.035em;
}

.menu-toggle {
  position: relative;
  z-index: 102;
  width: 46px;
  height: 46px;
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 6px;
  padding: 9px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform .28s ease, width .28s ease;
}

.menu-toggle span:nth-child(2) {
  width: 16px;
}

.menu-toggle:hover span:nth-child(2) {
  width: 22px;
}

.menu-is-open .menu-toggle span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.menu-is-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-is-open .menu-toggle span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-panel {
  position: fixed;
  inset: 0;
  z-index: 101;
  display: grid;
  place-items: center;
  padding: 96px 32px 52px;
  color: var(--paper);
  background: var(--forest-deep);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}

.menu-is-open .menu-panel {
  opacity: 1;
  visibility: visible;
}

.menu-panel__content {
  width: min(100%, 1040px);
  display: grid;
  grid-template-columns: 1fr minmax(260px, 360px);
  gap: 70px;
  align-items: end;
}

.menu-panel__links {
  display: grid;
  gap: 4px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.menu-panel__links a {
  display: inline-block;
  font: 400 clamp(38px, 5.8vw, 76px)/1.06 var(--serif);
  transition: color .2s ease, transform .2s ease;
}

.menu-panel__links a:hover {
  color: var(--gold-light);
  transform: translateX(8px);
}

.menu-panel__note {
  padding-bottom: 8px;
  color: rgba(246, 244, 238, .67);
  font-size: 13px;
  line-height: 1.9;
}

.menu-panel__note strong {
  display: block;
  margin-bottom: 14px;
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: 760px;
  min-height: max(760px, 100svh);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #f7f4ed;
  background: #33382f;
}

.hero::before,
.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
}

.hero::before {
  background: url("assets/hero-campus.webp") 50% 45% / cover no-repeat;
  transform: scale(1.015);
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(15, 19, 16, .76) 0%, rgba(18, 21, 18, .48) 42%, rgba(18, 21, 18, .1) 100%),
    linear-gradient(0deg, rgba(15, 18, 15, .56) 0%, transparent 46%, rgba(15, 18, 15, .18) 100%);
}

.hero__inner {
  width: min(100% - 64px, 1500px);
  margin: 0 auto;
  padding: 145px 0 120px;
}

.eyebrow {
  margin: 0 0 26px;
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .32em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero__title {
  max-width: 1010px;
  margin: 0;
  font: 300 clamp(54px, 7.3vw, 102px)/.99 var(--serif);
  letter-spacing: -.035em;
}

.hero__title span {
  display: block;
}

.hero__title em,
.section-title em {
  color: var(--gold-light);
  font-weight: 300;
}

.hero__copy {
  max-width: 600px;
  margin: 30px 0 0;
  color: rgba(250, 248, 242, .86);
  font-size: 15px;
  line-height: 1.85;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button-link {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 25px;
  border: 1px solid rgba(246, 244, 238, .54);
  color: var(--paper);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .19em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transition: background .24s ease, border-color .24s ease, color .24s ease;
}

.button-link--primary {
  border-color: var(--forest);
  background: var(--forest);
}

.button-link:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: #fff;
}

.hero__scroll {
  position: absolute;
  inset: auto 0 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: rgba(250, 248, 242, .78);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.hero__scroll::after {
  width: 1px;
  height: 34px;
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  content: "";
  background: rgba(250, 248, 242, .55);
}

.section-shell {
  width: min(100% - 64px, 1320px);
  margin-inline: auto;
}

.heritage {
  padding: 148px 0 128px;
  background: var(--paper);
}

.heritage__intro {
  display: grid;
  grid-template-columns: 1fr minmax(360px, .88fr);
  gap: clamp(55px, 9vw, 145px);
  align-items: center;
}

.heritage__copy {
  max-width: 570px;
}

.section-kicker {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .29em;
  text-transform: uppercase;
}

.section-title {
  max-width: 720px;
  margin: 0;
  color: var(--ink);
  font: 400 clamp(43px, 5.1vw, 70px)/1.06 var(--serif);
  letter-spacing: -.025em;
}

.heritage__copy .section-title {
  margin-bottom: 28px;
}

.body-copy {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.95;
}

.heritage__copy .body-copy {
  max-width: 550px;
  margin: 0 0 15px;
}

.heritage__image-wrap {
  position: relative;
  min-height: 490px;
  overflow: hidden;
}

.heritage__image-wrap::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(19, 21, 18, .18), transparent 42%);
}

.heritage__image {
  width: 100%;
  height: 100%;
  min-height: 490px;
  object-fit: cover;
}

.heritage__caption {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 16px;
  color: rgba(255, 255, 255, .82);
  font-size: 9px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 92px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  min-height: 144px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px clamp(16px, 3vw, 46px);
  border-right: 1px solid var(--line);
}

.stat:first-child {
  padding-left: 0;
}

.stat:last-child {
  border-right: 0;
}

.stat__number {
  color: var(--forest);
  font: 400 48px/.95 var(--serif);
}

.stat__label {
  margin-top: 12px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .19em;
  line-height: 1.5;
  text-transform: uppercase;
}

.institutions {
  padding: 120px 0 130px;
  overflow: hidden;
  color: var(--paper);
  background: var(--charcoal);
}

.institutions .section-kicker {
  color: var(--gold-light);
}

.institutions .section-title {
  max-width: 770px;
  color: var(--paper);
}

.institutions__intro {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
}

.institutions__intro .body-copy {
  max-width: 390px;
  margin: 0 0 7px;
  color: rgba(246, 244, 238, .67);
}

.institution-grid-wrap {
  margin-top: 62px;
}

.institution-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.institution-card {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(246, 244, 238, .15);
  background: rgba(246, 244, 238, .025);
}

.institution-card__image-wrap {
  position: relative;
  height: clamp(260px, 29vw, 390px);
  overflow: hidden;
  background: #30352f;
}

.institution-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(.75);
  transition: filter .6s ease, transform .8s ease;
}

.institution-card:hover .institution-card__image {
  filter: grayscale(.1) brightness(.9);
  transform: scale(1.035);
}

.institution-card__number {
  position: absolute;
  z-index: 1;
  top: 24px;
  left: 24px;
  color: rgba(255, 255, 255, .78);
  font-size: 10px;
  letter-spacing: .12em;
}

.institution-card__details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-content: start;
  min-height: 190px;
  padding: 23px 20px 24px;
  border-top: 1px solid rgba(246, 244, 238, .15);
}

.institution-card__title {
  margin: 0;
  color: var(--paper);
  font: 400 clamp(25px, 2.2vw, 32px)/1.05 var(--serif);
}

.institution-card__motto {
  display: block;
  margin-top: 9px;
  color: var(--gold-light);
  font-size: 10px;
  letter-spacing: .04em;
}

.institution-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 11px 22px;
  color: rgba(246, 244, 238, .68);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.institution-facts span {
  white-space: nowrap;
}

.legacy {
  position: relative;
  padding: 132px 0 144px;
  overflow: hidden;
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(45deg, transparent 0 26px, rgba(125, 114, 88, .07) 27px, transparent 28px 54px),
    repeating-linear-gradient(-45deg, transparent 0 26px, rgba(125, 114, 88, .045) 27px, transparent 28px 54px);
}

.legacy__header {
  max-width: 780px;
  margin: 0 auto 74px;
  text-align: center;
}

.legacy__header .section-title {
  margin-inline: auto;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 6px;
  bottom: 7px;
  left: 50%;
  width: 1px;
  content: "";
  background: rgba(154, 128, 85, .58);
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 76px;
  align-items: center;
  min-height: 260px;
}

.timeline__item:nth-child(even) .timeline__text {
  grid-column: 2;
  grid-row: 1;
}

.timeline__item:nth-child(even) .timeline__photo {
  grid-column: 1;
  grid-row: 1;
}

.timeline__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 11px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--gold);
  transform: translate(-50%, -50%);
}

.timeline__year {
  margin: 0 0 2px;
  color: var(--forest);
  font: 400 clamp(46px, 5.8vw, 72px)/.96 var(--serif);
}

.timeline__title {
  margin: 0 0 12px;
  color: var(--ink);
  font: 400 28px/1.15 var(--serif);
}

.timeline__text p {
  max-width: 420px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.85;
}

.timeline__photo {
  width: 100%;
  height: 190px;
  object-fit: cover;
  filter: sepia(.25) saturate(.75);
}

.incubation {
  position: relative;
  padding: 116px 0 128px;
  overflow: hidden;
  color: var(--paper);
  background-color: var(--charcoal);
  background-image:
    linear-gradient(rgba(246, 244, 238, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246, 244, 238, .045) 1px, transparent 1px);
  background-size: 56px 56px;
}

.incubation__top {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: clamp(54px, 9vw, 138px);
  align-items: start;
}

.incubation .section-kicker {
  color: var(--gold-light);
}

.incubation .section-title {
  max-width: 570px;
  color: var(--paper);
}

.incubation__copy .section-title em {
  display: block;
}

.incubation__copy .body-copy {
  max-width: 530px;
  margin: 24px 0 28px;
  color: rgba(246, 244, 238, .71);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold-light);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.text-link svg {
  width: 14px;
  height: 14px;
  transition: transform .2s ease;
}

.text-link:hover svg {
  transform: translate(3px, -3px);
}

.incubation__image {
  width: 100%;
  height: 440px;
  object-fit: cover;
}

.programs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 92px;
  border-top: 1px solid rgba(246, 244, 238, .18);
}

.program {
  min-height: 200px;
  padding: 24px 23px 8px 0;
  margin-right: 24px;
  border-bottom: 1px solid rgba(246, 244, 238, .18);
}

.program__number {
  display: block;
  margin-bottom: 11px;
  color: var(--gold-light);
  font: 400 24px/1 var(--serif);
}

.program__title {
  margin: 0 0 10px;
  color: var(--paper);
  font: 400 24px/1.1 var(--serif);
}

.program__copy {
  margin: 0;
  color: rgba(246, 244, 238, .65);
  font-size: 12px;
  line-height: 1.75;
}

.stewardship {
  color: var(--paper);
  background: var(--forest);
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr minmax(350px, .85fr);
  gap: 60px;
  align-items: end;
  padding: 94px 0 88px;
  border-bottom: 1px solid rgba(246, 244, 238, .2);
}

.newsletter .section-kicker {
  color: var(--gold-light);
}

.newsletter .section-title {
  max-width: 650px;
  color: var(--paper);
  font-size: clamp(40px, 4.6vw, 62px);
}

.newsletter__copy {
  max-width: 610px;
  margin: 17px 0 0;
  color: rgba(246, 244, 238, .7);
  font-size: 13px;
}

.newsletter-form {
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(246, 244, 238, .48);
}

.newsletter-form input {
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--paper);
  background: transparent;
  font-size: 12px;
}

.newsletter-form input::placeholder {
  color: rgba(246, 244, 238, .57);
}

.newsletter-form button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 0 0 12px;
  border: 0;
  color: var(--paper);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.newsletter-form button svg {
  width: 17px;
  height: 17px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr) 1.35fr;
  gap: 28px;
  padding: 69px 0 62px;
}

.footer-group h3 {
  margin: 0 0 20px;
  color: var(--gold-light);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}

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

.footer-group li {
  margin: 0 0 11px;
  color: rgba(246, 244, 238, .78);
  font-size: 12px;
}

.footer-group a {
  transition: color .2s ease;
}

.footer-group a:hover {
  color: var(--gold-light);
}

.footer-contact p {
  margin: 0 0 8px;
  color: rgba(246, 244, 238, .78);
  font-size: 11px;
  line-height: 1.75;
}

.footer-contact .footer-contact__name {
  margin-bottom: 11px;
  color: var(--paper);
  font: 400 21px/1.15 var(--serif);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 24px;
  border-top: 1px solid rgba(246, 244, 238, .2);
  color: rgba(246, 244, 238, .56);
  font-size: 9px;
  letter-spacing: .06em;
}

.footer-bottom a {
  color: rgba(246, 244, 238, .8);
  letter-spacing: .16em;
}

@media (max-width: 900px) {
  .section-shell {
    width: min(100% - 48px, 720px);
  }

  .site-header__inner,
  .hero__inner {
    width: calc(100% - 48px);
  }

  .heritage__intro {
    grid-template-columns: 1fr .9fr;
    gap: 36px;
  }

  .heritage__image-wrap,
  .heritage__image {
    min-height: 390px;
  }

  .stat {
    padding-inline: 18px;
  }

  .institution-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .institution-card__details {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .institution-facts {
    justify-content: flex-start;
  }

  .incubation__top {
    grid-template-columns: 1fr .95fr;
    gap: 45px;
  }

  .incubation__image {
    height: 360px;
  }

  .programs {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px 24px;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 70px;
  }

  .site-header {
    height: 70px;
  }

  .site-header__inner,
  .hero__inner {
    width: calc(100% - 46px);
  }

  .wordmark {
    font-size: 25px;
  }

  .menu-toggle {
    width: 42px;
    height: 42px;
  }

  .menu-panel {
    place-items: start;
    padding: 118px 24px 44px;
  }

  .menu-panel__content {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .menu-panel__links a {
    font-size: clamp(40px, 12vw, 57px);
  }

  .menu-panel__note {
    max-width: 300px;
  }

  .hero {
    min-height: 780px;
    min-height: max(780px, 100svh);
    align-items: flex-start;
  }

  .hero::before {
    background-position: 52% center;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(14, 18, 15, .69), rgba(14, 18, 15, .34)),
      linear-gradient(0deg, rgba(14, 18, 15, .68), transparent 74%);
  }

  .hero__inner {
    padding: 127px 0 125px;
  }

  .eyebrow {
    margin-bottom: 22px;
    font-size: 9px;
    letter-spacing: .29em;
  }

  .hero__title {
    max-width: 560px;
    font-size: clamp(45px, 10.3vw, 62px);
    line-height: 1.01;
    letter-spacing: -.035em;
  }

  .hero__title span:last-child {
    max-width: 520px;
  }

  .hero__copy {
    margin-top: 25px;
    font-size: 14px;
    line-height: 1.8;
  }

  .hero__actions {
    display: grid;
    gap: 12px;
    margin-top: 31px;
  }

  .button-link {
    min-height: 52px;
    padding-inline: 14px;
    font-size: 9px;
  }

  .hero__scroll {
    bottom: 26px;
  }

  .section-shell {
    width: calc(100% - 46px);
  }

  .heritage {
    padding: 102px 0 96px;
  }

  .heritage__intro {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .heritage__copy {
    display: contents;
  }

  .heritage__copy .section-kicker {
    order: 0;
    margin-bottom: -23px;
  }

  .heritage__copy .section-title {
    order: 1;
    margin-bottom: 0;
    font-size: 48px;
  }

  .heritage__image-wrap {
    order: 2;
    min-height: 0;
    height: 350px;
  }

  .heritage__image {
    min-height: 0;
    height: 350px;
  }

  .heritage__copy .body-copy {
    order: 3;
    margin-bottom: -24px;
    font-size: 13px;
    line-height: 1.88;
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    margin-top: 60px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .stat {
    min-height: 128px;
    padding: 18px 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .stat:first-child {
    padding-left: 18px;
  }

  .stat__number {
    font-size: 42px;
  }

  .stat__label {
    font-size: 8px;
    letter-spacing: .14em;
  }

  .institutions {
    padding: 88px 0 91px;
  }

  .institutions__intro {
    display: block;
  }

  .institutions__intro .section-title {
    font-size: 46px;
  }

  .institutions__intro .body-copy {
    margin-top: 18px;
    font-size: 13px;
  }

  .institution-grid-wrap {
    margin-top: 34px;
  }

  .institution-track {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .institution-card__image-wrap {
    height: 280px;
  }

  .institution-card__number {
    top: 20px;
    left: 18px;
  }

  .institution-card__details {
    gap: 14px;
    min-height: 0;
    padding: 18px;
  }

  .institution-card__title {
    font-size: 31px;
  }

  .institution-card__motto {
    font-size: 9px;
  }

  .institution-facts {
    gap: 8px 16px;
    font-size: 8px;
  }

  .legacy {
    padding: 92px 0 96px;
  }

  .legacy__header {
    margin-bottom: 49px;
    text-align: left;
  }

  .legacy__header .section-title {
    font-size: 46px;
  }

  .timeline {
    padding-left: 63px;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline__item,
  .timeline__item:nth-child(even) {
    display: block;
    min-height: 0;
    padding: 0 0 54px;
  }

  .timeline__item:last-child {
    padding-bottom: 0;
  }

  .timeline__dot {
    top: 9px;
    left: -48px;
    width: 12px;
    height: 12px;
    transform: none;
  }

  .timeline__year {
    margin-bottom: 6px;
    font-size: 48px;
  }

  .timeline__title {
    margin-bottom: 12px;
    font-size: 25px;
  }

  .timeline__text p {
    font-size: 13px;
  }

  .timeline__photo {
    display: none;
  }

  .incubation {
    padding: 88px 0 94px;
  }

  .incubation__top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .incubation .section-title {
    font-size: 47px;
  }

  .incubation__copy .body-copy {
    margin: 23px 0 25px;
    font-size: 13px;
  }

  .incubation__image {
    height: 270px;
  }

  .programs {
    grid-template-columns: 1fr;
    margin-top: 37px;
  }

  .program {
    min-height: auto;
    display: grid;
    grid-template-columns: 34px 1fr;
    column-gap: 12px;
    padding: 23px 0 22px;
    margin: 0;
  }

  .program__number {
    grid-row: span 2;
    margin: 1px 0 0;
    font-size: 22px;
  }

  .program__title {
    margin-bottom: 7px;
    font-size: 23px;
  }

  .program__copy {
    font-size: 12px;
  }

  .newsletter {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 76px 0 65px;
  }

  .newsletter .section-title {
    font-size: 45px;
  }

  .newsletter__copy {
    font-size: 12px;
  }

  .newsletter-form input {
    height: 52px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 31px 22px;
    padding: 58px 0 46px;
  }

  .footer-group h3 {
    margin-bottom: 15px;
  }

  .footer-group li {
    margin-bottom: 10px;
    font-size: 11px;
  }

  .footer-contact .footer-contact__name {
    font-size: 19px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 9px;
    padding-top: 18px;
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
