.brand {
  display: flex;
  align-items: center;
}

.brand-logo {
  width: 245px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(1.16);
}

.site-header nav {
  gap: 23px;
  font-size: .88rem;
}

.hero-media {
  background-image: url('assets/carina-ensinando.jpg');
  background-position: 44% center;
  left: 46%;
  width: 54%;
}

.hero-overlay {
  background: linear-gradient(90deg, #041c2e 0%, #05263d 42%, rgba(5,38,61,.88) 49%, rgba(5,38,61,.14) 75%, rgba(5,38,61,.04) 100%);
}

.hero-content {
  width: min(770px, 90%);
}

.hero h1 {
  font-size: clamp(3rem, 5.4vw, 5.6rem);
}

.experience {
  padding: 105px max(7vw, 30px);
  background: var(--cloud);
}

.experience-heading {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  max-width: 1280px;
  margin: 0 auto 50px;
  align-items: end;
}

.experience-heading h2 {
  font-size: clamp(2.5rem, 4.4vw, 4.4rem);
  margin: 0;
}

.experience-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

.photo-mosaic {
  max-width: 1280px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 16px;
}

.photo {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #dfe9ea;
}

.photo-wide { grid-column: span 2; }
.photo-tall { grid-row: span 2; }

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.photo:hover img { transform: scale(1.035); }

.photo::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(3,27,44,.82));
}

.photo figcaption {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 16px;
  color: white;
  font-weight: 700;
  font-size: .9rem;
}

.about-main {
  grid-template-columns: .78fr 1.22fr;
  align-items: center;
}

.about-photo { margin: 0; }

.about-photo img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.about-photo figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: .78rem;
}

.about-copy > p:not(.role) {
  color: #536b79;
  font-size: 1.15rem;
}

.about-copy blockquote {
  margin: 34px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid #c5d8da;
  color: var(--navy);
  font-family: "Playfair Display", serif;
  font-size: 1.4rem;
  font-style: italic;
  line-height: 1.45;
}

.footer-brand .brand-logo {
  width: 270px;
  height: 74px;
}

footer > div:nth-of-type(2) {
  gap: 4px;
}

footer > div:nth-of-type(2) a:last-of-type {
  color: var(--aqua);
  font-weight: 700;
}

footer > div:nth-of-type(2) a:hover {
  color: var(--gold);
}

@media (max-width: 1050px) {
  .site-header nav { gap: 16px; }
  .site-header nav > a:not(.nav-cta) { display: none; }
}

@media (max-width: 900px) {
  .brand-logo { width: 190px; height: 50px; }
  .site-header nav > a:not(.nav-cta) { display: block; }
  .hero-media { left: 0; width: 100%; background-position: 53% center; }
  .hero-overlay { background: linear-gradient(180deg, rgba(5,38,61,.96) 0%, rgba(5,38,61,.86) 62%, rgba(5,38,61,.68)); }
  .experience { padding: 75px 24px; }
  .experience-heading { grid-template-columns: 1fr; gap: 24px; }
  .photo-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; }
  .photo-wide { grid-column: span 2; }
  .about-photo img { height: 560px; }
}

@media (max-width: 520px) {
  .brand-logo { width: 150px; height: 43px; }
  .hero h1 { font-size: clamp(2.75rem, 12vw, 4.3rem); }
  .hero-media { background-position: 53% center; }
  .photo-mosaic { grid-template-columns: 1fr; grid-auto-rows: 285px; }
  .photo-wide { grid-column: span 1; }
  .photo-tall { grid-row: span 1; }
  .about-photo img { height: 480px; }
  .footer-brand .brand-logo { width: 240px; }
}

/* Preserve the complete framing of every supplied photograph. */
.hero-media {
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #082d4b;
}

.photo-mosaic {
  display: block;
  columns: 3;
  column-gap: 16px;
}

.photo,
.photo-wide,
.photo-tall {
  display: inline-block;
  width: 100%;
  margin: 0 0 16px;
  break-inside: avoid;
}

.photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.about-photo img {
  height: auto;
  max-height: none;
  object-fit: contain;
}

@media (max-width: 900px) {
  .hero-media {
    background-size: cover;
    background-position: center top;
  }
  .photo-mosaic { columns: 2; }
}

@media (max-width: 520px) {
  .hero {
    background: #041c2e;
    padding-top: 390px;
  }
  .hero-media {
    top: 72px;
    bottom: auto;
    height: 390px;
    background-size: contain;
    background-position: center top;
  }
  .hero-overlay {
    background: linear-gradient(180deg, transparent 72px, rgba(4,28,46,.08) 360px, #041c2e 470px);
  }
  .hero-content { padding-top: 62px; }
  .photo-mosaic { columns: 1; }
}

.experience .photo-mosaic {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  align-items: center;
  columns: auto;
}

.experience .photo {
  margin: 0;
}

.cohorts {
  padding: 105px max(7vw, 30px);
  background: #082d4b;
  color: white;
}

.cohorts-heading {
  max-width: 950px;
  margin: 0 auto 46px;
  text-align: center;
}

.cohorts-heading h2 {
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 4.7vw, 4.7rem);
}

.cohorts-heading p {
  max-width: 720px;
  margin: auto;
  color: rgba(255,255,255,.68);
  font-size: 1.05rem;
}

.cohorts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1280px;
  margin: auto;
}

.cohorts-grid figure {
  margin: 0;
  padding: 10px 10px 15px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  background: rgba(255,255,255,.06);
}

.cohorts-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.cohorts-grid figcaption {
  padding: 12px 5px 0;
  color: rgba(255,255,255,.75);
  font-size: .86rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero-media { background-size: contain; }
  .experience .photo-mosaic { grid-template-columns: 1fr 1fr; }
  .cohorts { padding: 75px 24px; }
  .cohorts-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .experience .photo-mosaic,
  .cohorts-grid { grid-template-columns: 1fr; }
}
