/*
  Destination: C:\Lensari\Lensari\claude-hq\drafts\gallery-site-v1\products\desktop\styles.css
  Purpose: page CSS for the "On your desktop" category page (apply directly; linked
           by index.html in this folder). Extends the shared foundation, never
           overrides tokens. All colors via var(--ls-*), constitution section 1.
  Motion: v1 static discipline (6.1) -- the portal motif is rendered ALREADY LIT
          (static glow), hover states brighten, nothing travels.
*/

/* ------------------------------------------------ category hero (portal, lit) */

.cat-hero {
  position: relative;
  padding: clamp(3.2rem, 8vw, 5.5rem) 0 clamp(2.4rem, 5vw, 3.6rem);
  overflow: hidden;
}

.cat-hero-trace {
  position: absolute;
  top: clamp(3.4rem, 6vw, 4rem);
  left: 0;
  right: 0;
  height: clamp(56px, 8vw, 115px);
}

/* the "you have entered" cue: the motif opens LIT (static, no transition needed) */
.cat-hero-trace .trace-path { opacity: 0.95; filter: drop-shadow(0 0 4px var(--ls-glow)); }
.cat-hero-trace .trace-path-2 { opacity: calc(var(--ls-trace-opacity) * 0.85); }
.cat-hero-trace .trace-node { opacity: 1; filter: drop-shadow(0 0 5px var(--ls-accent)); }

.cat-hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cat-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  border: 1px solid color-mix(in srgb, var(--ls-accent) 55%, var(--ls-line));
  border-radius: 10px;
  color: var(--ls-accent);
  background: color-mix(in srgb, var(--ls-surface) 40%, var(--ls-base));
  filter: drop-shadow(0 0 12px var(--ls-glow));
  margin-bottom: 1.4rem;
}

.cat-emblem svg { width: 1.8rem; height: 1.8rem; }

.cat-eyebrow { margin-bottom: 0.9rem; }

.cat-title { font-size: clamp(2.1rem, 5.4vw, 3.4rem); }

.cat-lede {
  max-width: 46ch;
  margin-top: 1.1rem;
  font-size: clamp(1rem, 1.6vw, 1.13rem);
  line-height: 1.7;
  color: var(--ls-label);
}

.cat-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ls-label);
}

.cat-meta-sep { color: var(--ls-line); }

/* ------------------------------------------------ exhibit hall */

.exhibit-hall { padding-top: clamp(1rem, 3vw, 2rem); }

/* an exhibit is a shared product-card, composed generously: artifact + plaque */
.product-card.exhibit {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  max-width: none;
}

.exhibit-thumb {
  aspect-ratio: auto;
  height: 100%;
  min-height: 15rem;
  max-height: 30rem;
  border-bottom: 0;
  border-right: 1px solid var(--ls-line);
}

.exhibit-flip .exhibit-thumb {
  order: 2;
  border-right: 0;
  border-left: 1px solid var(--ls-line);
}

/* crop from the artifact's top-left so leading columns / headers stay legible */
.exhibit-thumb img { object-position: left top; }

/* the PD Tracker report is a tall artifact; show its head, crop the rest */
.exhibit-thumb-tall img { object-position: center top; }

/* gallery placard: exhibit index plate (pass-1 deliberate upgrade) */
.exhibit-index {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ls-brand);
}

.exhibit-body {
  padding: clamp(1.4rem, 3vw, 2.2rem);
  gap: 0.8rem;
  justify-content: center;
}

.exhibit-name { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

.exhibit-job { font-size: 0.95rem; line-height: 1.65; }

.exhibit-points {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.35rem 0 0.1rem;
}

.exhibit-point {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ls-label);
}

.exhibit-point::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.52em;
  width: 5px;
  height: 5px;
  background: var(--ls-brand);
  transform: rotate(45deg);
}

/* ------------------------------------------------ connecting spine (motif) */

.exhibit-spine {
  height: clamp(2.6rem, 6vw, 4.2rem);
  margin: 0.2rem 0;
}

/* pass-3 upgrade: hovering or focusing either exhibit LIGHTS the spine that
   joins them (6.1 lit trace, opacity + glow only, nothing travels) */
.exhibit-spine .trace-path,
.exhibit-spine .trace-node {
  transition: opacity 0.3s var(--ease-soft), filter 0.3s var(--ease-soft);
}

.exhibit-hall .section-inner:has(.exhibit:hover) .exhibit-spine .trace-path,
.exhibit-hall .section-inner:has(.exhibit:focus-visible) .exhibit-spine .trace-path {
  opacity: 0.95;
  filter: drop-shadow(0 0 4px var(--ls-glow));
}

.exhibit-hall .section-inner:has(.exhibit:hover) .exhibit-spine .trace-node,
.exhibit-hall .section-inner:has(.exhibit:focus-visible) .exhibit-spine .trace-node {
  opacity: 1;
  filter: drop-shadow(0 0 5px var(--ls-accent));
}

@media (max-width: 700px) {
  .exhibit-spine { display: none; }
  .exhibit-hall .product-card.exhibit + .product-card.exhibit,
  .exhibit-hall .exhibit-spine + .product-card.exhibit { margin-top: 1.1rem; }
}

/* ------------------------------------------------ exhibits stack on mobile */

@media (max-width: 700px) {
  .product-card.exhibit { grid-template-columns: 1fr; }
  .exhibit-thumb,
  .exhibit-flip .exhibit-thumb {
    order: 0;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 10;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid var(--ls-line);
  }
}

/* ------------------------------------------------ cross-navigation portals */

.cat-crossnav { padding-top: clamp(3rem, 7vw, 5rem); }

.crossnav-title { margin-bottom: 1.6rem; }

@media (min-width: 881px) {
  .portal-row.portal-row-2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 46rem;
  }
}
