/*
 * Adjustments on top of the design team's stylesheets (loaded last, design files stay untouched).
 */

/* Start hero fills exactly the viewport. The design CSS sets fixed minimum heights
   (730–880px plus large top padding) that exceed smaller screens. svh ignores the
   mobile browser bars, so nothing jumps while scrolling. If the content is taller
   than the screen (landscape phones), the hero grows with it instead of cutting it off. */
.hero.is-start {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  max-height: none;
}
.hero.is-start .hero-in {
  width: 100%;
  min-height: 0;
  margin: 0 auto;
  /* Room for the fixed navigation above, a calmer gap below */
  padding-top: clamp(160px, 18svh, 220px);
  padding-bottom: clamp(24px, 4svh, 64px);
}
/* Flat laptop windows (e.g. 1366×768 minus browser bars): headline scales with the height
   so the whole hero still fits on one screen. */
@media (min-width: 801px) and (max-height: 820px) {
  .hero.is-start .hero-h1 {
    font-size: clamp(48px, 9.5svh, 96px);
  }
  .hero.is-start .hero-sub {
    font-size: 17px !important;
  }
  .hero.is-start .hero-in {
    padding-top: 150px;
    padding-bottom: 24px;
  }
}
@media (max-width: 800px) {
  .hero.is-start .hero-in {
    padding-top: clamp(96px, 13svh, 140px);
    padding-bottom: clamp(24px, 5svh, 56px);
  }
}

/* Highlighted article (component 15 with an article): cover photo fills the left panel
   instead of a logo on the green background. */
.founder-feature--article .founder-brand--photo {
  padding: 0;
  min-height: 240px;
  background: var(--color-paper, #f7f7f2);
  overflow: hidden;
}
.founder-feature--article .founder-brand--photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.founder-feature--article:hover .founder-brand--photo img {
  transform: scale(1.03);
}
@media (max-width: 800px) {
  .founder-feature--article .founder-brand--photo {
    padding: 0;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
  .founder-feature--article .founder-brand--photo img {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .founder-feature--article .founder-brand--photo img {
    transition: none;
  }
}
