/* Homepage only. Shared product and policy pages keep styles.css unchanged. */
body.home {
  --home-band: color-mix(in srgb, var(--ink) 74%, transparent);
  --home-band-soft: color-mix(in srgb, var(--ink) 64%, transparent);
  --home-card: color-mix(in srgb, var(--panel) 90%, transparent);
  --home-control: color-mix(in srgb, var(--panel) 94%, transparent);
  font-size: 16px;
}
body.home::before { display: var(--texture-overlay); }
.home main, .home-footer { width: 100%; max-width: none; }
.home a { color: inherit; }
.home :focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
.home .skip-link:focus { position: fixed; z-index: 100; }
.home section { scroll-margin-top: 82px; }
.home [hidden] { display: none !important; }
.home h1, .home h2, .home h3, .home p { letter-spacing: 0; }

/* Quiet, sticky navigation with one lime action. */
.home-nav {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 66px;
  padding: 10px max(24px, calc((100% - 1320px)/2));
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.home-nav .wordmark { font-size: 20px; letter-spacing: 0; }
.home-nav .wordmark-o { width: 20px; height: 20px; }
.home-nav nav { gap: 32px; }
.home-nav nav a { font-size: 15px; font-weight: 600; text-decoration: none; }
.home-nav nav a:hover { color: var(--lime); }
.home .play-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 11px 23px;
  border-radius: 5px;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}
.home .play-link:hover { background: var(--button-hover); }
.home-nav > .play-link { min-width: 114px; min-height: 48px; }
.home .mobile-nav { display: none; }

/* Five approved engine figures replace the six PR #3 cast tiles. */
.cast-hero {
  padding: 34px 24px 49px;
  overflow: hidden;
  background: var(--home-band);
  text-align: center;
}
.hero-kicker { margin: 0; color: var(--paper); font-size: 14px; font-weight: 700; }
.cast {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 11fr)) minmax(0, 7fr);
  align-items: end;
  gap: 8px;
  max-width: 1100px;
  margin: 20px auto 8px;
}
.cast img {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.cast .cast-person { aspect-ratio: 11/7; }
.cast .cast-spider { aspect-ratio: 1; }
.cast-hero h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 8px;
  font-size: 84px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
}
.cast-hero h1 img { width: .78em; height: .78em; margin: 0 .02em; }
.cast-hero h1 span { color: var(--lime); }
.tagline { margin: 0; color: var(--paper); font-size: 24px; font-weight: 600; }

/* Home carousel uses the shared controls; whole images remain visible. */
.marquee {
  padding: 35px max(24px, calc((100% - 1320px)/2)) 42px;
  border-block: 1px solid var(--line);
  background: var(--home-band-soft);
}
.marquee h2 { margin: 0; color: var(--paper); font-size: 20px; font-weight: 800; text-transform: none; letter-spacing: 0; }
.home .site-carousel button { background: var(--home-control); }
.home .site-carousel .screen-track figure { background: var(--home-card); }
.home .site-carousel .screen-track figure:nth-child(odd) { flex-basis: 380px; }

/* The approved product order remains four full-width rows. */
.home-products { padding: 68px 24px 76px; background: var(--home-band); }
.home .band-title {
  margin: 0 0 31px;
  color: var(--paper);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0;
}
.product-row { position: relative; max-width: 1380px; margin: 0 auto 32px; }
.product-row:last-child { margin-bottom: 0; }
.home-card {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 28px 38px;
  width: min(100%, 1010px);
  min-height: 390px;
  margin: 0 auto;
  padding: 36px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--card-accent, var(--lime));
  border-radius: 8px;
  background: var(--home-card);
}
.home-card-copy { min-width: 0; }
.home-card h3 { margin: 0 0 18px; font-size: 42px; line-height: 1.08; letter-spacing: 0; }
.home-card p { max-width: 35ch; margin: 0 0 22px; color: var(--paper); font-size: 17px; line-height: 1.53; }
.home-card .card-tagline { margin-top: -7px; margin-bottom: 14px; font-size: 19px; font-weight: 700; line-height: 1.35; }
.home-card .product-meta { margin: 17px 0 0; color: var(--muted); font-size: 14px; }
.product-mark { width: 70px; height: 70px; margin-bottom: 18px; object-fit: contain; }
.product-status {
  display: inline-block;
  margin-bottom: 20px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
}
.card-art {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  height: auto;
  aspect-ratio: 8/5;
  align-self: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--ink);
}
.card-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pubmint-art img { width: 100%; height: auto; aspect-ratio: 8/5; object-fit: contain; }
.pubmint-art .pubmint-shot-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .pubmint-art .pubmint-shot-light { display: none; }
  :root:not([data-theme]) .pubmint-art .pubmint-shot-dark { display: block; }
}
:root[data-theme="dark"] .pubmint-art .pubmint-shot-light { display: none; }
:root[data-theme="dark"] .pubmint-art .pubmint-shot-dark { display: block; }
.card-art.stresslab-art {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 0;
  padding: 18px 30px;
}
.stresslab-art > div { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 12px; border-top: 2px solid var(--lime); }
.stresslab-art > div:first-child { border-top: 0; }
.stresslab-art small { color: var(--lime); font-size: 14px; font-weight: 800; }
.stresslab-art strong { color: var(--paper); font-size: 29px; font-weight: 800; line-height: 1.1; }
.home .detail-link { display: block; width: fit-content; margin-top: 17px; color: var(--paper); font-size: 15px; font-weight: 700; text-underline-offset: 4px; }
.home .detail-link:hover { color: var(--lime); }
#rug-pulled {
  grid-template-areas: "copy art" "actions art";
  grid-template-rows: 1fr auto;
  min-height: 390px;
  --card-accent: var(--lime);
}
#rug-pulled .home-card-copy { grid-area: copy; }
#rug-pulled .card-art { grid-area: art; align-self: center; min-height: 0; height: auto; aspect-ratio: 8/5; }
#rug-pulled .card-art img { width: 100%; height: auto; aspect-ratio: 8/5; object-fit: contain; }
#rug-pulled .home-card-actions { grid-area: actions; align-self: end; }
#rug-pulled .home-card-actions .play-link { min-width: 200px; }
#rug-pulled .home-card-actions .wishlist-actions { max-width: 100%; }
#avoiding-jayms { --card-accent: color-mix(in srgb, var(--lime) 55%, var(--paper)); }
#rug-pulled-live { --card-accent: color-mix(in srgb, var(--lime) 35%, var(--paper)); }
#pubmint { --card-accent: color-mix(in srgb, var(--lime) 20%, var(--paper)); }
#stresslab { --card-accent: var(--lime); }
.edge { display: none; position: absolute; top: 50%; width: 145px; max-height: 285px; object-fit: contain; transform: translateY(-50%); pointer-events: none; }
.edge-left { left: 0; }
.edge-right { right: 0; }

/* A single company strip; text marks avoid unlicensed third-party logos. */
.built-with { padding: 52px 24px 55px; border-block: 1px solid var(--line); background: var(--home-band-soft); }
.built-with ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; max-width: 1030px; margin: 0 auto; padding: 0; list-style: none; }
.built-with li { min-width: 115px; padding: 10px 11px; border-bottom: 1px solid var(--line); color: var(--paper); font-size: 15px; font-weight: 700; text-align: center; }
.built-with p { margin: 21px 0 0; color: var(--paper); font-size: 14px; text-align: center; }

/* A warm About panel gives the page a pause without moving its content. */
.home-about { padding: 67px 24px 77px; background: var(--home-band); }
.home-about > div { max-width: 840px; margin: auto; padding: 41px 48px; border: 1px solid var(--line); border-radius: 7px; background: var(--home-card); }
.home-about h3 { margin: 0 0 17px; color: var(--paper); font-size: 44px; line-height: 1.1; }
.home-about p { max-width: 55ch; color: var(--paper); font-size: 18px; line-height: 1.6; }
.home-about .detail-link { color: var(--lime); }
.home-about .detail-link:hover { color: var(--button-hover); }
.home-contact { padding: 44px 24px 51px; border-top: 1px solid var(--line); background: var(--home-band-soft); text-align: center; }
.home-contact h2 { margin: 0 0 17px; font-size: 36px; line-height: 1.2; }
.home-contact p { font-size: 16px; }
.home-contact a { color: var(--paper); text-underline-offset: 4px; }
.home-footer { display: block; margin: 0; padding: 25px 24px 29px; border-top: 1px solid var(--line); background: var(--home-band); color: var(--paper); font-size: 14px; text-align: center; }
.home-footer p { margin: 7px; }

@media (min-width: 1280px) {
  .home-card { width: min(calc(100% - 330px), 1010px); }
  .edge { display: block; }
}
@media (max-width: 1099px) {
  .cast { gap: 4px; }
}
@media (max-width: 980px) {
  .cast-hero h1 { font-size: 64px; }
  .home-card { gap: 22px; padding: 29px; }
  .home-card h3 { font-size: 36px; }
}
@media (min-width: 701px) and (max-width: 900px) {
  .home-card { grid-template-columns: 1fr; gap: 22px; min-height: 0; }
  .home-card .card-art { min-height: 0; height: auto; }
  #rug-pulled { grid-template-areas: "copy" "art" "actions"; grid-template-rows: auto; min-height: 0; }
  .home-card p { max-width: 58ch; }
}
@media (min-width: 701px) and (max-width: 800px) {
  .cast { gap: 2px; }
}
@media (max-width: 700px) {
  .home-nav { min-height: 62px; flex-wrap: wrap; gap: 8px; padding: 7px 16px; }
  .home-nav .wordmark { font-size: 18px; }
  .home-nav .desktop-nav { display: none; }
  .home-nav > .play-link { min-height: 44px; margin-left: auto; padding: 9px 12px; font-size: 14px; }
  .home .mobile-nav { display: block; }
  .mobile-nav summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-size: 14px; }
  .mobile-nav nav { position: absolute; top: 100%; right: 0; left: 0; display: flex; flex-wrap: wrap; gap: 24px; padding: 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
  .cast-hero { padding: 28px 16px 40px; }
  .cast { gap: 2px; max-width: 380px; }
  .cast-hero h1 { margin: 4px 0 9px; font-size: 52px; }
  .tagline { max-width: 320px; margin: auto; font-size: 19px; line-height: 1.35; }
  .marquee { padding: 26px 16px 31px; }
  .marquee h2 { font-size: 18px; }
  .home .site-carousel .screen-track figure:nth-child(odd) { flex-basis: min(88vw, 355px); }
  .home-products { padding: 46px 16px 54px; }
  .home .band-title { margin-bottom: 24px; }
  .product-row { margin-bottom: 22px; }
  .home-card { grid-template-columns: 1fr; gap: 18px; min-height: 0; padding: 24px; }
  .home-card h3 { margin-bottom: 14px; font-size: 32px; }
  .home-card p { margin-bottom: 13px; font-size: 16px; line-height: 1.5; }
  .card-art.stresslab-art { padding: 10px 18px; }
  .stresslab-art strong { font-size: 22px; }
  .product-mark { width: 58px; height: 58px; margin-bottom: 15px; }
  .card-art { grid-row: auto; min-height: 0; height: auto; }
  #rug-pulled { grid-template-areas: "copy" "art" "actions"; grid-template-rows: auto; min-height: 0; }
  #rug-pulled .home-card-actions { display: grid; justify-items: start; }
  #rug-pulled .home-card-actions .play-link { width: 100%; min-width: 0; }
  .built-with { padding: 45px 16px 49px; }
  .built-with ul { gap: 8px; }
  .built-with li { width: calc((100% - 16px)/3); min-width: 0; padding: 9px 4px; font-size: 14px; }
  .home-about { padding: 48px 16px 55px; }
  .home-about > div { padding: 26px; }
  .home-about h3 { font-size: 33px; }
  .home-about p { font-size: 16px; }
  .home-contact { padding: 37px 16px 43px; }
  .home-contact h2 { font-size: 28px; }
  .home-footer { padding: 23px 16px 27px; }
}
@media (max-width: 480px) {
  .cast { grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 4px; row-gap: 6px; }
  .cast-trader-m, .cast-trader-f { grid-column: span 3; max-width: 170px; justify-self: center; }
  .cast-friend-m, .cast-friend-f, .cast-spider { grid-column: span 2; }
  .cast .cast-spider { width: 68%; justify-self: center; }
}
@media (max-width: 370px) {
  .home-nav .wordmark { font-size: 16px; }
  .home-nav > .play-link { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after { animation-duration: 0s !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
}
@media (prefers-contrast: more) {
  body.home { --ink: #000; --panel: #000; --paper: #fff; --muted: #fff; --line: #fff; --texture-trace: #000; background: #000; }
  .cast-hero, .marquee, .home-products, .home-card, .built-with, .home-about, .home-about > div, .home-contact, .home-footer { background: #000; color: #fff; }
  .home-about h3, .home-about p, .home-about .detail-link { color: #fff; }
}
@media (forced-colors: active) {
  body.home, .cast-hero, .marquee, .home-products, .home-card, .built-with, .home-about, .home-about > div, .home-contact, .home-footer { background: Canvas; color: CanvasText; }
  .home .play-link { background: ButtonFace; color: ButtonText; border: 1px solid ButtonText; }
}
