/* Three films, one visual rhythm. Keep this refinement local to the original homepage. */
#demos .home-films-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 50px;
  margin: 0 0 64px;
}
#demos .home-films-heading h2,
#platform.build-evidence .evidence-heading h2 {
  font-family: 'Geist', Arial, sans-serif;
  font-size: clamp(36px, 3.65vw, 66px);
  line-height: 1.12;
  letter-spacing: -.05em;
  font-weight: 600;
  margin: 0;
}
#demos .home-films-heading > p {
  font-size: clamp(16px, 1.3vw, 22px);
  line-height: 1.65;
  color: var(--muted);
  flex: 0 0 auto;
  margin: 0 0 5px;
}
.home-films-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 2.3vw, 44px);
}
.home-film { min-width: 0; display: flex; flex-direction: column; scroll-margin-top: calc(var(--header) + 24px); }
#showcase-film.home-film { scroll-margin-top: calc(var(--header) + 24px); }
.home-film-link { display: flex; flex-direction: column; flex: 1; }
.home-film-image {
  position: relative;
  display: flex;
  align-items: center;
  aspect-ratio: 16/10;
  background: #e8eee7;
  overflow: hidden;
}
.home-film-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.home-film-link:hover .home-film-image img { transform: scale(1.025); }
.home-film-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
}
.home-film-duration {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 4px 8px;
  background: #f9faf4ee;
  font: 500 11px/1.5 var(--mono);
}
.home-film-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  min-height: 36px;
  margin-top: 28px;
  color: #008c7e;
  font: 500 11px/1.6 var(--mono);
  letter-spacing: .035em;
}
.home-film-meta > span:last-child { flex: none; }
.home-film h3 {
  font-size: clamp(25px, 2.3vw, 38px);
  line-height: 1.18;
  letter-spacing: -.045em;
  font-weight: 600;
  margin: 12px 0 0;
}
.home-film-link > p {
  font-size: clamp(16px, 1.3vw, 21px);
  line-height: 1.65;
  color: var(--muted);
  margin: 25px 0 34px;
}
.home-film-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 50px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
  margin-top: auto;
  font-size: clamp(15px, 1.2vw, 19px);
  font-weight: 600;
}
.home-film-action > span { font-size: 25px; }
.home-film-link:hover :is(h3, .home-film-action),
.home-film-link:focus-visible :is(h3, .home-film-action) { color: #008c7e; }
.home-film-status { font-size: 12px; line-height: 1.6; color: var(--muted); margin: 17px 0 0; }
#demos .story-proof-links { margin-top: 64px; }

/* The library lives in the menu at every screen size. */
.site-header .menu-toggle {
  display: flex;
  flex: 0 0 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
}
.site-header .menu-toggle > span { display: block; width: 17px; height: 1px; background: var(--ink); transition: transform .2s; }
.site-header .menu-toggle[aria-expanded="true"] > span:first-child { transform: translateY(3.5px) rotate(45deg); }
.site-header .menu-toggle[aria-expanded="true"] > span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.site-header #main-nav :is(.menu-story-link, .menu-library-link) { display: none; }
.site-header #main-nav.is-open {
  display: grid;
  position: absolute;
  top: var(--header);
  left: auto;
  right: var(--gutter);
  width: min(620px, calc(100% - 2 * var(--gutter)));
  max-height: calc(100svh - var(--header));
  overflow-y: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 30px;
  padding: 22px 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 30px #071c1710;
}
.site-header #main-nav.is-open a { min-height: 52px; font-size: 11px; line-height: 1.6; white-space: normal; }
.site-header #main-nav.is-open .menu-story-link { display: flex; align-items: center; }
.site-header #main-nav.is-open .menu-library-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-column: 1/-1;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: #008c7e;
}
.menu-library-link > span { font-size: 22px; }
@media (min-width: 1281px) {
  .site-header { gap: clamp(24px, 3vw, 52px); }
  .site-header .main-nav { gap: clamp(18px, 2vw, 34px); }
  .site-header .header-actions { gap: 18px; }
}
@media (min-width: 2000px) {
  #demos > :is(.section-kicker, .home-films-heading, .home-films-grid, .story-proof-links, .demo-note, .story-rai-inline) { max-width: 1780px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 1100px) {
  #demos .home-films-heading { gap: 30px; margin-bottom: 45px; }
  #demos .home-films-heading > p { flex: 0 0 220px; font-size: 15px; }
  .home-films-grid { gap: 22px; }
  .home-film h3 { font-size: 25px; }
  .home-film h3 br { display: none; }
  .home-film-meta { font-size: 9px; min-height: 42px; }
  .home-film-link > p { font-size: 15px; margin: 20px 0 26px; }
  .home-film-arrow { width: 38px; height: 38px; font-size: 26px; right: 12px; bottom: 12px; }
  .home-film-duration { font-size: 9px; top: 10px; right: 10px; }
  .home-film-status { font-size: 11px; }
}
@media (max-width: 760px) {
  #demos .home-films-heading { display: block; margin-bottom: 34px; }
  #demos .home-films-heading h2,
#platform.build-evidence .evidence-heading h2 { font-size: clamp(32px, 6.5vw, 46px); }
  #demos .home-films-heading > p { font-size: 16px; margin-top: 23px; max-width: 440px; }
  #demos .home-films-heading > p br { display: none; }
  .home-films-grid { grid-template-columns: 1fr; gap: 44px; }
  .home-film-image { aspect-ratio: 16/9; }
  .home-film-meta { min-height: 0; font-size: 10px; margin-top: 22px; }
  .home-film h3 { font-size: clamp(29px, 5.5vw, 36px); margin-top: 17px; }
  .home-film-link > p { font-size: 16px; margin: 18px 0 22px; }
  .home-film-action { font-size: 16px; min-height: 48px; padding-bottom: 13px; }
  .home-film-status { font-size: 12px; margin-top: 12px; }
  #demos .story-proof-links { margin-top: 45px; }
  .site-header #main-nav.is-open { left: 0; right: 0; width: 100%; padding: 18px var(--gutter) 24px; border-width: 0 0 1px; gap: 4px 20px; }
}
@media (max-width: 360px) {
  .home-film-meta { font-size: 9px; letter-spacing: 0; gap: 8px; }
  .site-header #main-nav.is-open a { font-size: 10px; }
}
