/* Story pages rendered from src/content/stories (scripts/lib/story.mjs): additions to
   lab-geber.css and lab-hyperion.css, which they share. */

/* The Hyperion statement leaves room under the words for its drawn neon line; stories have none. */
.lab--story .lab-statement__text { padding-bottom: 0; }

/* A display name of several words is set like a sentence, smaller, and may wrap. */
.lab-hero__title--words { font-size: clamp(3rem, 1rem + 8vw, 8.5rem); letter-spacing: -0.045em; line-height: 0.95; }
.lab-coda__name--words { font-size: clamp(2.4rem, 1rem + 5vw, 5.5rem); letter-spacing: -0.045em; line-height: 0.95; }

/* Chapter words often sit over lit fittings; a soft shadow keeps them legible. */
.lab--story .lab-ip__text { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 0 28px rgba(0, 0, 0, 0.75); }

/* Two family cards instead of four. */
@media (min-width: 900px) { .lab-duo__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; } }

/* Swatches for finishes and colour temperatures the Geber and Hyperion pages don't use. */
.lab-swatch--grey, .lab-swatch--gray { background: #8d8e90; }
.lab-swatch--silver { background: linear-gradient(135deg, #e4e5e7, #a9abaf); }
.lab-swatch--k5000 { background: #fdf8ef; }
.lab-swatch--k5700 { background: #f4f6fb; }
.lab-swatch--k6000, .lab-swatch--k6500 { background: #e6eefa; }

/* Selectable CCT: the readout steps between fixed values, so the marker and photos ease across. */
.lab-room--steps .lab-kelvin__track { transition: transform 0.45s ease; }
.lab-room--steps .lab-room__shot--warm, .lab-room--steps .lab-room__shot--cool img { transition: opacity 0.45s ease, filter 0.45s ease; }

/* Call to action: a full stage, one message and one clear button. */
.lab-cta { display: grid; align-content: center; min-height: var(--lab-stage); }
.lab-cta__action { margin: 0; }
.lab-cta__button { min-height: 52px; padding-inline: 32px; font-size: 1.05rem; }
.lab-cta__button:focus-visible { outline: 2px solid var(--warm); outline-offset: 4px; }

/* The range slide: one card per facet (options, colour temperature, size, IP, CRI, control). */
/* The photo sits in its own column; the facets fill a two-column grid beside it, and an odd last card spans both. */
.lab-range__layout {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(12px, 2vw, 20px);
  margin-top: clamp(32px, 5vw, 56px);
}
.lab-range__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: inherit; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) {
  .lab-range__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lab-range__facet:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .lab-range__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); max-width: 1120px; align-items: start; }
  .lab-range__photo { position: sticky; top: calc(var(--header-height, 72px) + 24px); }
}
.lab-range__facet { min-width: 0; padding: clamp(18px, 2.4vw, 26px); border: 1px solid var(--lab-faint); border-radius: var(--radius-lg); }
.lab-range__label { margin: 0 0 14px; font-size: 0.68rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lab-dim); }
.lab-range__values { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lab-range__values li {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); font-size: 0.95rem; line-height: 1.3; color: var(--lab-ink); overflow-wrap: anywhere;
}
.lab-range__values .lab-swatch { flex: none; width: 14px; height: 14px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.lab-range__sub { margin-top: clamp(40px, 6vw, 72px); margin-bottom: 0; font-size: 0.68rem; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lab-dim); text-align: center; }
.lab-range .lab-family__grid { margin-top: clamp(20px, 3vw, 32px); }

/* The product photo leads the range grid on the same pale tile as the family cards. */
.lab-range__photo { min-width: 0; margin: 0; display: flex; flex-direction: column; }
.lab-range__photo .lab-family__media { aspect-ratio: 4 / 3; padding: 10%; display: flex; align-items: center; justify-content: center; }
.lab-range__photo .lab-family__media img { width: auto; max-width: 100%; height: 100%; }
.lab-range__photo .lab-family__name { margin: 12px 0 0; text-align: center; }

/* Room pages: "The lights in this room." One card per product, built like the family cards but with
   two links of their own, then the quote button for the whole room. */
.lab-lights__card { display: flex; flex-direction: column; height: 100%; }
.lab-lights__product { display: block; color: inherit; text-decoration: none; }
.lab-lights__product:hover img { transform: scale(1.04); }
.lab-lights__product:hover .lab-family__name { text-decoration: underline; text-decoration-color: var(--warm); text-underline-offset: 0.2em; }
.lab-lights__product:focus-visible { outline-offset: 6px; }
@media (prefers-reduced-motion: reduce) { .lab-lights__product:hover img { transform: none; } }
.lab-lights__links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 16px 0 0; font-size: 0.9rem; }
.lab-lights__quote { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; margin: clamp(32px, 5vw, 56px) auto 0; text-align: center; }
.lab-coda__note { margin: 1rem 0 0; font-size: 0.85rem; letter-spacing: 0; color: var(--lab-dim); }
