/* ==========================================================================
   Hover Gallery (about.html — "The Practice")
   Append this block to css/style.css, e.g. after the "Team Grid" section.
   Uses only tokens already defined in :root — no new variables introduced.
   ========================================================================== */

.hover-gallery {
  display: flex;
  gap: 8px;
  height: 480px;
  margin-top: 8px;
}

.hover-item {
  position: relative;
  flex: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: flex 450ms cubic-bezier(0.16, 1, 0.3, 1), border-color var(--transition-fast);
}

.hover-item:hover,
.hover-item:focus-visible {
  flex: 3;
  border-color: var(--item-accent, var(--accent-neon));
}

.hover-item:nth-child(1) { --item-accent: var(--accent-neon); }
.hover-item:nth-child(2) { --item-accent: var(--cat-purple); }
.hover-item:nth-child(3) { --item-accent: var(--cat-orange); }
.hover-item:nth-child(4) { --item-accent: var(--cat-green); }

/* Neon wireframe line-art — deliberately not stock photography,
   to stay consistent with the brand's dark/neon-wireframe identity */
.hover-item svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  transition: opacity 450ms ease;
}

.hover-item:hover svg,
.hover-item:focus-visible svg { opacity: 0.9; }

.hover-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
}

.hover-index {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--item-accent, var(--accent-neon));
  z-index: 2;
}

.hover-content {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  z-index: 2;
  opacity: 0;
  transform: translateY(8px);
  white-space: nowrap;
  transition: opacity 350ms ease, transform 350ms ease;
}

.hover-item:hover .hover-content,
.hover-item:focus-visible .hover-content {
  opacity: 1;
  transform: translateY(0);
  white-space: normal;
}

.hover-content h3 {
  font-size: 1.1rem;
  margin: 0 0 6px;
  color: var(--text-primary);
}

.hover-content p {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 320px;
}

.hover-label {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-primary);
  transition: opacity 200ms ease;
}

.hover-item:hover .hover-label,
.hover-item:focus-visible .hover-label { opacity: 0; }

@media (max-width: 900px) {
  .hover-gallery { height: 400px; }
}

@media (max-width: 768px) {
  .hover-gallery { flex-direction: column; height: 640px; }
  .hover-item { flex: 1; }
  .hover-item:hover, .hover-item:focus-visible { flex: 3; }
  .hover-content { opacity: 1; transform: none; white-space: normal; }
  .hover-label { display: none; }
  .hover-content p { display: none; }
  .hover-item:hover .hover-content p,
  .hover-item:focus-visible .hover-content p { display: block; }
}
