/* Home is rendered from demo content so every story and post can use fictional artwork. */
.home-demo {
  position: relative;
  width: 100%;
  aspect-ratio: 660 / 1380;
  overflow: hidden;
  container-type: inline-size;
  color: #fff;
  background:
    radial-gradient(ellipse at 104% 5%, #1a2863 0 27%, transparent 27.5%),
    radial-gradient(ellipse at 106% 63%, #432638 0 22%, transparent 22.5%),
    linear-gradient(#0f101b, #16182a 54%, #23242e 73%, #191a24);
}
.home-demo-head, .home-demo-stories, .home-demo-class, .home-demo-events, .home-demo-feed {
  position: absolute;
  left: 5.3%;
  right: 5.3%;
  font-size: 3cqw;
  line-height: 1.3;
}
.home-demo-head { top: 2.6%; }
.home-demo-brand { display: block; font-size: 7.2cqw; line-height: 1.05; font-weight: 950; letter-spacing: -.045em; }
.home-demo-tagline {
  display: flex;
  gap: 1.4cqw;
  align-items: center;
  margin-top: 1.6cqw;
  color: #d4d7e3;
  font-size: 2.15cqw;
  font-weight: 750;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.home-demo-tagline::before { content: ""; width: 2.1cqw; aspect-ratio: 1; border-radius: 50%; background: #45e4ba; }
.home-demo-icons { position: absolute; top: 0; right: -.4cqw; display: flex; gap: 2cqw; }
.home-demo-icons span { display: grid; place-items: center; width: 10.8cqw; aspect-ratio: 1; border-radius: 50%; border: 1px solid #ffffff30; background: #ffffff0b; }
.home-demo-icons svg { width: 56%; height: auto; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-demo-stories { top: 10.8%; display: flex; gap: 2.5cqw; }
.home-demo-story {
  width: 22.8%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  display: grid;
  align-content: start;
  border: 1px solid #c3ff4d;
  border-radius: 4.8cqw;
  background: #20182d;
  color: #fff;
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.home-demo-story:nth-child(2) { border-color: #ffb399; background: #37202e; }
.home-demo-story:nth-child(3) { border-color: #9ddaff; background: #192a47; }
.home-demo-story > span:last-child { position: relative; padding: 1.35cqw .4cqw; font-size: 2.55cqw; line-height: 1.2; font-weight: 750; white-space: nowrap; }
.home-demo-art {
  display: block;
  aspect-ratio: 1;
  background-color: #493477;
  background-image: url("./assets/screens/gallery/home-story-art.webp");
  background-size: 200% 200%;
}
.home-demo-art--maya { background-position: 100% 0; background-color: #c16e60; }
.home-demo-art--arjun { background-position: 0 100%; background-color: #397ba5; }
.home-demo-art--campus { background-position: 100% 100%; background-color: #66428b; }
.home-demo-class { top: 24.3%; height: 11.7%; padding: 3.25cqw; border-radius: 5cqw; background: linear-gradient(112deg, #8250f4, #28335e 64%, #324fed); }
.home-demo-class span { display: inline-block; padding: .75cqw 2cqw; border: 1px solid #e5cbff90; border-radius: 99px; background: #602984c0; font-size: 2.25cqw; font-weight: 800; letter-spacing: .09em; }
.home-demo-class strong { display: block; margin-top: 1.6cqw; font-size: 4.05cqw; line-height: 1.15; }
.home-demo-class small { display: block; margin-top: 2.5cqw; font-size: 3.1cqw; font-weight: 650; }
.home-demo-map { position: absolute; bottom: 1.6cqw; right: 2.3cqw; min-height: 9cqw; padding: 0 3cqw; border: 0; border-radius: 99px; color: #131b17; background: #c6ff43; font: inherit; font-size: 2.9cqw; font-weight: 800; cursor: pointer; }
.home-demo-events { top: 39%; }
.home-demo-row { display: flex; justify-content: space-between; align-items: center; gap: 1.5cqw; margin-bottom: 2.3cqw; }
.home-demo-row strong, .home-demo-feed > strong { font-size: 4.85cqw; line-height: 1.15; letter-spacing: -.035em; }
.home-demo-row button { border: 0; background: none; color: #c6ff43; padding: 1cqw 0 1cqw 2cqw; font: inherit; font-size: 2.8cqw; font-weight: 800; cursor: pointer; }
.home-demo-event { height: 35cqw; padding: 3cqw; border: 1px solid #ffffff55; border-radius: 5cqw; background: linear-gradient(114deg, #304d7b, #3b4b83); }
.home-demo-event-icon { display: grid; place-items: center; width: 9cqw; aspect-ratio: 1; border-radius: 3cqw; background: #50def2; }
.home-demo-event-icon svg { width: 62%; fill: none; stroke: #122b46; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.home-demo-event b { display: block; margin-top: 3.4cqw; font-size: 3.8cqw; line-height: 1.15; }
.home-demo-event p { margin: 1.2cqw 0 2cqw; color: #e2e9fa; font-size: 3cqw; }
.home-demo-event small { color: #ff96cc; font-size: 2.9cqw; font-weight: 750; }
.home-demo-feed { top: 62%; }
.home-demo-filters { display: flex; gap: 1.6cqw; margin: 2.7cqw 0 4cqw; }
.home-demo-filters span { border: 1px solid #ffffff2d; border-radius: 99px; padding: 1.5cqw 3cqw; background: #171925; color: #e3e4ee; font-size: 3.1cqw; font-weight: 750; }
.home-demo-filters span:first-child { border-color: #c6ff43; background: #c6ff43; color: #162018; }
.home-demo-post-author { display: flex; align-items: center; gap: 2.5cqw; margin-bottom: 2.5cqw; }
.home-demo-post-author .home-demo-art { width: 8.8cqw; border: 1px solid #ffb399; border-radius: 50%; }
.home-demo-post-author b { font-size: 3.5cqw; }
.home-demo-post-author small { display: block; color: #dadbea; font-size: 2.45cqw; }
.home-demo-post { max-height: 40cqw; overflow: hidden; border: 1px solid #ffffff35; border-radius: 3.5cqw; }
.home-demo-post > .home-demo-art { width: 100%; translate: 0 -31cqw; }
@media (prefers-reduced-motion: no-preference) {
  .home-demo-story .home-demo-art { transition: transform .25s ease; }
  .home-demo-story:is(:hover, :focus-visible) .home-demo-art { transform: scale(1.09); }
  .screen-card-capture[data-preview-visible="true"] .home-demo-story:first-child .home-demo-art,
  .screen-card-capture[data-preview-visible="true"] .home-demo-post .home-demo-art { animation: home-story-sway 4.5s ease-in-out infinite; }
}
@keyframes home-story-sway { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
