/* ============================================================
   HOME — lead switch + discipline sections
   ------------------------------------------------------------
   Additions to the museum homepage only. The product grid is
   the existing one; this adds a UI/UX section beside it and a
   switch that decides which of the two the page opens with.
   ============================================================ */


/* ---- Lead switch --------------------------------------------
   Sits in the original "Selected work" header: same hairline,
   same spacing, a quiet text switch on the right.            */
.home-lead {
  position: relative;
  margin-top: var(--s-6);   /* the old .ex-work leading */
}
.home-lead__switch { display: flex; align-items: baseline; gap: 10px; }
.home-lead__switch button {
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  color: var(--ink-3);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: color var(--dur-1, 200ms) var(--ease), text-decoration-color var(--dur-1, 200ms) var(--ease);
}
.home-lead__switch button:hover { color: var(--ink); }
.home-lead__switch button[aria-checked="true"] {
  color: var(--ink);
  text-decoration-color: currentColor;
  cursor: default;
}
.home-lead__switch button:focus-visible { outline: 1px solid var(--accent, #fa5000); outline-offset: 4px; }
.home-lead__sep { color: var(--rule-strong, #c8c8c8); }

.home-sr {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- Sections ------------------------------------------------ */
.home-sections { display: flex; flex-direction: column; }
.home-sec,
.home-sec.ex-work { padding: 0; }
.home-sec:first-child { padding-top: var(--s-6); }
.home-sec + .home-sec { padding-top: var(--s-8); }

/* No head on the leading section: the switch already names it.
   The second section gets one quiet word where the work changes. */
.home-sec .ex-work__grid { margin-top: 0; }
.home-divider { display: none; margin-bottom: var(--s-6); }
.home-sec + .home-sec .home-divider { display: flex; }

/* ---- UI/UX grid ---------------------------------------------- */
.home-ux {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: var(--s-7);
}
.home-ux .ux-card { grid-column: auto; }
.home-sections + .ex-shell { padding-top: var(--s-8); }

.home-sec.is-entering {
  animation: home-enter 500ms var(--ease) both;
}
@keyframes home-enter {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: none; }
}


@media (max-width: 768px) {

  .home-ux { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-6); }
}

@media (prefers-reduced-motion: reduce) {
  .home-lead__switch button { transition: none; }
  .home-sec.is-entering { animation: none; }
}
