/* Home page only (DEC-W82, Stack composition). Loaded after styles.css; components come from styles.css. */

/* Hero: the glider and the caption sit in the hero block. The waitlist line is a label on its own line, then the three platform pills as one wrapping group (DEC-W91). */
.home .hero__eyebrow { align-self: center; }
.home .hero__windows { margin: 0; display: grid; justify-items: center; gap: var(--space-sm); text-align: center; }
.home .hero__windows-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); }
.home .hero__windows a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--color-control-border);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  text-decoration: none;
}
.home .hero__windows a:hover { border-color: var(--color-accent); }

/* Showcase: the window bar is written after the clip (the clip is the figure's first child) but shows on top. */
/* DEC-W118: the clip is recorded at 1280 CSS px, so the window may grow to 80rem and show it 1:1 on a wide screen. */
.home .showcase .window { display: flex; flex-direction: column; width: 100%; max-width: 80rem; }
.home .showcase .window__bar { order: -1; }

/* Showcase: the window overlaps the hero's bottom edge; the chapter pills sit under it. */
.home .showcase {
  position: relative;
  z-index: 2;
  width: min(100% - var(--space-32), 80rem);
  margin-top: -3rem;
  padding-inline: 1rem;
  display: grid;
  gap: var(--space-md);
  justify-items: center;
}
@media (min-width: 768px) {
  .home .showcase { margin-top: -7.5rem; }
}
.home .showcase__chapters { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; }
.home .showcase__chapters .pill { min-height: 44px; cursor: pointer; font: inherit; }
.home .showcase__chapters [aria-pressed="true"] { border-color: var(--text-bone); color: var(--text-bone); }

/* styles.css resets .hero to a transparent background after .hero--bleed, so the orbit backdrop is set again here, scoped to the home. */
.home .hero--bleed {
  background-image: image-set(url("/assets/hero/hero-orbit-dusk.webp") type("image/webp"), url("/assets/hero/hero-orbit-dusk.jpg") type("image/jpeg"));
  background-position: center bottom;
  background-size: cover;
}

/* The copy is 700px at most, so the glider at the right never meets the lead (DEC-W56 size, DEC-W82 position). */
.home .hero--bleed .hero__content { max-width: 700px; }
.home .hero--bleed .hero__glider { right: 2vw; bottom: 3%; width: clamp(9.5rem, 6rem + 14vw, 15rem); }
/* Between 640 and 1199px the ghost pill is wide enough to meet a bottom-right glider, so the glider moves to the top corner. */
@media (max-width: 1199px) and (min-width: 640px) {
  .home .hero--bleed .hero__glider { top: 4.5rem; right: 1rem; bottom: auto; width: clamp(7rem, 5rem + 5vw, 9rem); }
}

/* Without JavaScript the clip is replaced by its noscript still (styles.css hides the other frames' videos the same way). */
html:not(.js) .home .showcase video { display: none; }

/* Video card: centred, 640px at most. */
.home .home-video { width: min(100% - 2rem, 40rem); margin: 3rem auto; }

/* Bands: full width, 64px rhythm. */
.home .home-band { padding-block: 4rem; }
.home .home-band__head { display: flex; gap: var(--space-lg); align-items: center; }
.home .home-band__tile { width: 48px; height: 48px; flex: none; }
.home .home-band__title { margin: 0; }
.home .section__header h2 { text-wrap: balance; }
.home .home-band__line { margin: 0.25rem 0 0; }
.home .home-band__meta,
.home .home-band__os { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-block: 1.25rem; }
.home .home-band__ghost { margin-top: 1rem; }
.home .home-band__window { margin-top: 2rem; }
.home .home-os { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; }
.home .home-os .os-glyph { width: 1.1rem; height: 1.1rem; }
.home .home-os__status { color: var(--color-muted); font-size: var(--font-size-xs); }
.home .product__line { margin-top: var(--space-sm); }

/* Mods rows: tile, name and one-liner, status, install link. */
.home .home-mods { display: grid; gap: var(--space-md); }
.home .home-mod {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm) var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.home .home-mod__tile { width: 40px; height: 40px; flex: none; }
.home .home-mod__body { flex: 1 1 16rem; min-width: 0; }
.home .home-mod__name { margin: 0; font-size: var(--font-size-lg); }
/* The product title link is the whole title: 44 px target (review finding #7). The negative margin keeps the title's line height. */
.home .home-mod__name > a { display: inline-flex; align-items: center; min-height: var(--target-size); margin-block: calc((1lh - var(--target-size)) / 2); }
.home .home-mod__text { margin: 0.25rem 0 0; color: var(--color-muted); font-size: var(--font-size-sm); }
.home .home-mod .card__status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  min-height: 32px;
  padding: 0.2rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  font-size: var(--font-size-xs);
}
.home .home-mod .card__status::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--color-muted); }
.home .home-mod .card__status[data-status="ok"] { border-color: var(--color-ok); }
.home .home-mod .card__status[data-status="ok"]::before { background: var(--color-ok); }
.home .home-mod .card__status[data-status="wip"] { border-color: var(--border-iris); }
.home .home-mod .card__status[data-status="wip"]::before { background: var(--text-ash); }
.home .home-mod .card__status[data-status="hook"] { border-color: var(--border-iris); }
.home .home-mod .card__status[data-status="hook"]::before { background: var(--text-ash); }
.home .home-mod__install { min-height: 44px; display: inline-flex; align-items: center; }

/* Downloads strip: OS glyphs, not pills. */
.home .home-status { padding-block: 3rem; }
.home .home-status__title { margin: 0 0 1rem; font-size: var(--font-size-lg); }
.home .home-status__list { display: flex; flex-wrap: wrap; gap: 0.75rem 1.75rem; margin: 0; padding: 0; list-style: none; }
.home .home-status__list li { display: inline-flex; align-items: center; gap: 0.5rem; }
.home .home-status__list a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: var(--target-size); }
.home .home-status__list .os-glyph { width: 1rem; height: 1rem; }

/* Trio: Waitlist, Donation, About; three columns at 1024px, stacked below. */
.home .home-trio {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: minmax(0, 1fr);
  padding-block: 3rem 4rem;
}
@media (min-width: 1024px) {
  .home .home-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.home .home-trio__card { display: flex; flex-direction: column; gap: var(--space-sm); color: inherit; text-decoration: none; }
.home a.home-trio__card:hover { border-color: var(--color-accent); }
/* DEC-W86: Donate and About react to the pointer like the waitlist card. Their button stretches over
   the whole card, so the card is one click target and gets the same lift. */
.home .home-trio__card > a.home-trio__cta { position: static; }
.home .home-trio__card > a.home-trio__cta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.home .home-trio__card:has(> a.home-trio__cta):hover { border-color: var(--color-accent); box-shadow: var(--shadow-lift); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home .home-trio__card:has(> a.home-trio__cta):hover { transform: translateY(-3px); }
}
.home .home-trio__title { margin: 0; font-size: var(--font-size-lg); }
.home .home-trio__card p { margin: 0; }
.home .home-trio__badges { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.home .home-trio__cta { margin-top: auto; align-self: flex-start; }

/* Art (DEC-W82, image pass 2026-11): band backdrops and the trio card art.
   Set here, not in the markup, so the pinned markup stays as it is. The overlays keep text readable. */
.home #products {
  background-image: linear-gradient(rgb(4 6 28 / 0.8), rgb(4 6 28 / 0.92)), url("/assets/home/home-desktop-band-backdrop.webp");
  background-size: cover;
  background-position: center;
}
.home #mods {
  background-image: linear-gradient(rgb(4 6 28 / 0.8), rgb(4 6 28 / 0.92)), url("/assets/home/home-mods-band-backdrop.webp");
  background-size: cover;
  background-position: center;
}
.home .home-trio__card::before {
  content: "";
  position: relative;
  inset: auto;
  z-index: auto;
  opacity: 1;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-card);
  background: center / cover no-repeat;
}
.home [data-testid="home-waitlist"]::before { background-image: url("/assets/home/home-waitlist-card-art.webp"); }
.home #donate::before { background-image: url("/assets/home/home-donation-card-art.webp"); }
.home #about::before { background-image: url("/assets/home/home-about-card-art.webp"); }

/* The home video. Moved from guide.css, which the home no longer loads. The clip is 16:9: the whole frame shows, never cropped.
   Scoped under .showcase so it outranks `.showcase video { object-fit: cover }` in styles.css, which cropped the frame. */
.showcase .clip__video { flex: none; display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: var(--surface-abyss); }
