/* govnex project rotator (home page). Without JavaScript or with reduced motion the
   same items render as a static grid; rotator.js turns them into a carousel. */
.pj { position: relative; }
.pj-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .pj-track { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pj-track { grid-template-columns: 1fr; } }
.pj-slide { margin: 0; }
.pj-card { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
.pj-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(26,26,24,0.08); }
.pj-card:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
.pj-img { aspect-ratio: 16 / 10; background: var(--bg-alt); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pj-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pj-img.top img { object-position: center top; }
.pj-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.pj-body .meta { font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.pj-body h3 { font-size: 17px; margin: 6px 0 6px; line-height: 1.3; }
.pj-body p { font-size: 14px; color: var(--ink-2); margin: 0; }
.pj-body .more { font-size: 13px; color: var(--coral-ink); font-weight: 600; margin-top: auto; padding-top: 10px; }

/* carousel mode (added by rotator.js; the grid above is the no-JavaScript state) */
.pj.is-carousel .pj-track { display: block; position: relative; }
.pj.is-carousel .pj-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.pj.is-carousel .pj-slide.is-active { position: relative; opacity: 1; visibility: visible; transition: opacity .5s ease; }
.pj.is-carousel .pj-card { display: grid; grid-template-columns: 1.15fr 1fr; min-height: 320px; }
.pj.is-carousel .pj-card:hover { transform: none; box-shadow: none; }
.pj.is-carousel .pj-img { aspect-ratio: auto; min-height: 240px; height: 100%; }
.pj.is-carousel .pj-body { padding: 26px 28px 28px; justify-content: center; }
.pj.is-carousel .pj-body h3 { font-size: 22px; margin: 8px 0 10px; }
.pj.is-carousel .pj-body p { font-size: 15.5px; }
.pj.is-carousel .pj-body .more { margin-top: 18px; padding-top: 0; font-size: 14px; }
@media (max-width: 720px) {
  .pj.is-carousel .pj-card { grid-template-columns: 1fr; min-height: 0; }
  .pj.is-carousel .pj-img { aspect-ratio: 16 / 10; min-height: 0; height: auto; }
  .pj.is-carousel .pj-body { padding: 16px 18px 20px; }
}
.pj-controls { display: none; }
.pj.is-carousel .pj-controls { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pj-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--card); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.pj-btn:hover, .pj-btn:focus-visible { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pj-btn svg { width: 16px; height: 16px; fill: currentColor; }
/* The dot itself stays small, but the button around it is 24px so it can
   actually be tapped on a phone (WCAG 2.5.8). */
.pj-dots { display: flex; flex-wrap: wrap; margin: 0 2px; }
.pj-dot { width: 24px; height: 24px; border: 0; background: transparent; padding: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pj-dot::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--ink-3); background: transparent; }
.pj-dot:hover::before, .pj-dot:focus-visible::before { border-color: var(--coral); }
.pj-dot[aria-current="true"]::before { background: var(--coral); border-color: var(--coral); }
.pj-count { font-size: 13px; color: var(--ink-3); margin-left: auto; font-variant-numeric: tabular-nums; }
/* ── Hero variant ──────────────────────────────────────────────────────────
   The home page opens with the rotator at full width: the free Copilot &
   Agent Readiness check first, then everything else govnex builds. The
   product icon row follows it. No second column, nothing above it. */
.hero.hero-full { grid-template-columns: 1fr; gap: 26px; padding: 34px 0 44px; }
@media (max-width: 900px) { .hero.hero-full { padding: 22px 0 32px; gap: 20px; } }
.hero.hero-full .stack-icons { justify-content: center; gap: 16px 30px; }

.pj.in-hero { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 26px; color: var(--ink); }
.pj.in-hero .hero-kicker {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral-ink);
  font-weight: 600; margin: 0 0 18px; line-height: 1.5;
}
.pj.in-hero .pj-track { grid-template-columns: 1fr; gap: 0; }
.pj.in-hero:not(.is-carousel) .pj-slide:nth-child(n + 2) { display: none; }
.pj.in-hero .pj-card { grid-template-columns: 1.08fr 0.92fr; gap: 0 34px; min-height: 0; background: transparent; border: 0; border-radius: 0; color: inherit; align-items: center; }
.pj.in-hero .pj-card:hover { transform: none; box-shadow: none; }
.pj.in-hero .pj-card:focus-visible { outline-offset: 4px; }
.pj.in-hero .pj-img { aspect-ratio: 16 / 10; min-height: 0; height: auto; border-radius: 12px; background: var(--bg-alt); }
.pj.in-hero .pj-img img { border-radius: 12px; }
.pj.in-hero .pj-body { padding: 0; }
.pj.in-hero .pj-body .meta { color: var(--ink-3); font-size: 12px; }
.pj.in-hero .pj-body h3 { color: var(--ink); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.12; letter-spacing: -0.02em; margin: 10px 0 12px; }
.pj.in-hero .pj-body p { color: var(--ink-2); font-size: 16px; max-width: 48ch; }
.pj.in-hero .pj-body .more { color: var(--coral-ink); font-size: 15px; margin-top: 16px; padding-top: 0; }
.pj.in-hero .pj-controls { margin-top: 20px; }
.pj.in-hero .pj-btn { width: 38px; height: 38px; }
.pj.in-hero .pj-count { font-size: 13px; }
.pj-all { display: none; }
.pj.in-hero .pj-all { display: inline-block; margin: 14px 20px 0 0; padding: 5px 0; font-size: 14px; font-weight: 600; color: var(--coral-ink); }
.pj.in-hero .pj-all:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .pj.in-hero { padding: 18px; }
  .pj.in-hero .pj-card { grid-template-columns: 1fr; min-height: 0; gap: 0; align-items: stretch; }
  .pj.in-hero .pj-body { padding: 16px 2px 0; }
  .pj.in-hero .pj-body p { font-size: 15px; }
  .pj.in-hero .pj-all { display: block; margin: 12px 0 0; }
}

/* Reduced motion keeps the rotation but drops every animation: slides swap
   instantly instead of cross-fading, and cards do not lift on hover. */
@media (prefers-reduced-motion: reduce) {
  .pj-card { transition: none; }
  .pj-card:hover { transform: none; box-shadow: none; }
  .pj.is-carousel .pj-slide,
  .pj.is-carousel .pj-slide.is-active { transition: none; }
  .pj.is-carousel .pj-slide:not(.is-active) { visibility: hidden; }
}
