/* Geber in the lab (/lab/geber). Loaded only by that page.
   Base rules give a calm, stacked sequence of dark scenes that reads fully without JavaScript
   or with reduced motion. The pinned, scroll-scrubbed layout is switched on only inside the
   motion media query below, for .js pages; lab-geber.js then writes --p / --t (0 to 1) and the
   CSS turns them into transform, opacity and stroke changes. */

.page-lab {
  --lab-bg: #050506;
  --lab-ink: #f3f1ec;
  --lab-dim: rgba(243, 241, 236, 0.72);
  --lab-faint: rgba(243, 241, 236, 0.18);
  --lab-stage: calc(100vh - var(--header-height));
}
@supports (height: 100svh) { .page-lab { --lab-stage: calc(100svh - var(--header-height)); } }

.lab { background: var(--lab-bg); color: var(--lab-ink); overflow-x: clip; }
.lab h1, .lab h2 { color: inherit; }
.lab img { width: 100%; }
.lab-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lab :focus-visible { outline-color: var(--warm); }

/* Shared type: big, quiet and sparse. */
.lab-eyebrow { margin: 0 0 1rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--lab-dim); }
.lab-title { margin: 0 0 0.35em; font-size: clamp(2.4rem, 1.2rem + 5vw, 5.5rem); font-weight: 400; letter-spacing: -0.035em; line-height: 1.02; }
.lab-copy { max-width: 34rem; margin: 0 auto; font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.35rem); line-height: 1.5; color: var(--lab-dim); }
.lab-copy--small { font-size: 0.95rem; }
.lab-head { padding-inline: var(--gutter); text-align: center; }
.lab-link { color: var(--lab-ink); text-decoration: none; border-bottom: 1px solid var(--lab-faint); padding-bottom: 3px; font-weight: 500; }
.lab-link::after { content: " →"; }
.lab-link:hover { border-color: var(--warm); }
.lab-scene, .lab-pin { padding-block: clamp(72px, 12vw, 160px); }

/* 1. Hero: the light in darkness. */
.lab-hero { position: relative; display: grid; align-items: end; min-height: var(--lab-stage); overflow: hidden; isolation: isolate; }
.lab-hero__media, .lab-hero__glow, .lab-hero__video { position: absolute; inset: 0; }
.lab-hero__media { z-index: -1; }
.lab-hero__par { display: none; }
.lab-hero__media img, .lab-hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.lab-video { opacity: 0; transition: opacity 1.2s ease; }
.lab-video.is-playing { opacity: 1; }
.lab-hero__glow {
  background: radial-gradient(38% 60% at 50% 34%, rgba(255, 236, 205, 0.5), rgba(255, 236, 205, 0) 70%);
  mix-blend-mode: screen; opacity: 0;
}
.lab-hero::after { content: ""; position: absolute; inset: 50% 0 0; z-index: -1; background: linear-gradient(rgba(5, 5, 6, 0), rgba(5, 5, 6, 0.7) 70%, var(--lab-bg)); }
.lab-hero__text { padding: 0 var(--gutter) clamp(88px, 12vh, 140px); text-align: center; }
.lab-hero__title {
  margin: 0; font-size: clamp(5rem, 1rem + 19vw, 17rem); font-weight: 300; letter-spacing: -0.06em; line-height: 0.85;
  text-shadow: 0 2px 40px rgba(0, 0, 0, 0.35);
}
/* The model number: smaller, lighter, raised to the x-height and tinted warm, like a fine numeral. */
.lab-hero__num {
  display: inline-block; font-size: 0.36em; font-weight: 300; letter-spacing: 0.02em;
  vertical-align: 1.05em; color: #e8c48c; text-shadow: none;
}
.lab-hero__line { margin: 1.2rem 0 0; font-size: clamp(1.1rem, 0.95rem + 0.6vw, 1.5rem); color: var(--lab-dim); }
.lab-cue {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; text-decoration: none; color: var(--lab-dim);
}
.lab-cue__line { width: 1px; height: 36px; background: linear-gradient(var(--lab-dim), transparent); }

/* 2. Statement. */
.lab-statement { text-align: center; }
.lab-statement .lab-pin__stage { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-inline: var(--gutter); }
.lab-statement__text { margin: 0; font-size: clamp(2.6rem, 0.8rem + 7.4vw, 8rem); font-weight: 300; letter-spacing: -0.045em; line-height: 1; }
.lab-statement__line { display: block; }
.lab-word { display: inline-block; }
.lab-statement__note { margin: 2rem 0 0; color: var(--lab-dim); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem); }

/* 3. Morning to evening. Without motion both rooms show, the warm one below the cool one. */
.lab-room__frame { display: grid; gap: 24px; width: min(100% - 2 * var(--gutter), 1280px); margin: clamp(32px, 5vw, 56px) auto 0; }
.lab-room__shot { margin: 0; }
.lab-room__shot img { border-radius: var(--radius-lg); aspect-ratio: 2400 / 1340; object-fit: cover; }
.lab-room__shot figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--lab-dim); text-align: center; }
.lab-kelvin { width: min(100% - 2 * var(--gutter), 520px); margin: 28px auto 0; text-align: center; }
.lab-kelvin__value { display: none; }
.lab-kelvin__bar { position: relative; height: 4px; border-radius: 4px; background: linear-gradient(90deg, #cfe0f5, #fbf5ea 50%, #f0b265); }
.lab-kelvin__track { position: absolute; inset: 0; display: none; }
.lab-kelvin__marker {
  position: absolute; left: 0; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14), 0 0 22px rgba(255, 236, 205, 0.6);
}
.lab-kelvin__ends { display: flex; justify-content: space-between; margin: 10px 0 0; font-size: 0.8rem; letter-spacing: 0.08em; color: var(--lab-dim); font-variant-numeric: tabular-nums; }
.lab-room .lab-copy--small { margin: 18px auto 0; text-align: center; }

/* 4. Three beams. --t on each cone is its own draw progress; 1 (fully drawn) by default. */
.lab-beams__figure { width: min(100% - 2 * var(--gutter), 860px); margin: clamp(24px, 4vw, 48px) auto 0; }
.lab-beams__svg { width: 100%; height: auto; overflow: visible; }
.lab-beams__ceiling { stroke: rgba(243, 241, 236, 0.22); stroke-width: 1; }
.lab-beams__floor { stroke: rgba(243, 241, 236, 0.14); stroke-width: 1; stroke-dasharray: 2 6; }
.lab-beams__fixture { fill: #e9e6df; }
.lab-beams__source { fill: #fff8ea; }
.lab-beams__body { fill: #1a1917; stroke: rgba(233, 230, 223, 0.75); stroke-width: 1.5; }
.lab-beams__fin { fill: rgba(233, 230, 223, 0.55); }
.lab-beams__cord { stroke: rgba(233, 230, 223, 0.55); stroke-width: 1.5; }
.lab-cone__fill { fill: url(#lab-beam-fill); opacity: calc(var(--t, 1) * 0.5); }
.lab-cone__edge, .lab-cone__arc, .lab-cone__pool {
  fill: none; stroke-linecap: round; stroke-dasharray: 100px 200px; stroke-dashoffset: calc((1 - var(--t, 1)) * 100px);
}
.lab-cone__edge { stroke: rgba(251, 241, 220, 0.85); stroke-width: 1.5; }
.lab-cone__arc { stroke: var(--amber); stroke-width: 1.5; }
.lab-cone__pool { stroke: #fbf1dc; stroke-width: 3; }
.lab-cone__label { fill: var(--lab-ink); font-family: var(--font); font-size: 34px; font-weight: 400; letter-spacing: -0.02em; opacity: clamp(0, calc(var(--t, 1) * 4 - 3), 1); }

/* A quiet pointer under the beam diagram. */
.lab-aside { margin: clamp(16px, 2.5vw, 28px) 0 0; padding-inline: var(--gutter); text-align: center; font-size: 0.95rem; color: var(--lab-dim); }
.lab-aside .lab-link { font-weight: 400; }

/* 5. IP65 · Bathrooms. */
.lab-ip { padding-bottom: 0; }
.lab-ip__track { padding-block: 0; }
.lab-ip__media { position: relative; overflow: hidden; }
.lab-ip__media img { aspect-ratio: 2400 / 1340; object-fit: cover; }
.lab-ip__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lab-ip__media .lab-chapter__dim { position: absolute; inset: 0; width: 100%; height: 100%; }
.lab-ip__text { padding: clamp(32px, 6vw, 64px) var(--gutter) 0; text-align: center; }
.lab-ip__detail { width: min(100% - 2 * var(--gutter), 880px); margin: clamp(48px, 8vw, 96px) auto 0; }
.lab-ip__detail img { border-radius: var(--radius-lg); }

/* 6. Craft. */
/* The heatsink is a modest, contained detail; the figures carry the section. */
.lab-craft__body { display: grid; justify-items: center; gap: clamp(32px, 5vw, 56px); margin-top: clamp(32px, 5vw, 56px); }
.lab-craft__frame { width: min(78%, 420px); overflow: hidden; border-radius: var(--radius-lg); }
.lab-craft__image { aspect-ratio: 2400 / 1340; object-fit: cover; }
.lab-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 980px; margin: 0; text-align: center; }
@media (min-width: 900px) {
  .lab-craft__body { grid-template-columns: minmax(0, 560px) minmax(0, 360px); justify-content: center; align-items: center; }
  .lab-craft__frame { width: 100%; }
  .lab-craft .lab-figures { grid-template-columns: 1fr; gap: 28px; text-align: left; }
}
.lab-figures div { display: flex; flex-direction: column; padding-top: 18px; border-top: 1px solid var(--lab-faint); }
.lab-figures dt { font-size: 0.8rem; letter-spacing: 0.08em; color: var(--lab-dim); }
.lab-figures dd { margin: auto 0 0; padding-top: 6px; font-size: clamp(1.4rem, 1rem + 1.8vw, 2.6rem); font-weight: 300; letter-spacing: -0.03em; }

/* 7. Finishes: the one light moment in the story. */
.lab-finish { position: relative; padding-block: 0; background: #e6e3df; color: var(--ink); }
.lab-finish .lab-eyebrow, .lab-finish .lab-copy { color: var(--muted); }
.lab-finish__media { position: relative; overflow: hidden; }
.lab-finish__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lab-finish__media img { aspect-ratio: 2400 / 1340; object-fit: cover; }
.lab-finish__text { padding: clamp(32px, 6vw, 64px) var(--gutter) clamp(56px, 8vw, 96px); text-align: center; }
.lab-swatches { display: flex; justify-content: center; gap: 28px; margin: 1.8rem 0 0; padding: 0; list-style: none; font-size: 0.95rem; }
.lab-swatches li { display: inline-flex; align-items: center; gap: 10px; }
.lab-swatch { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.lab-swatch--white { background: #f7f6f3; }
.lab-swatch--black { background: #151517; }

/* The Geber family: four quiet cards; product photos sit on light tiles. */
.lab-family__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px);
  margin-top: clamp(32px, 5vw, 56px); list-style: none;
}
@media (min-width: 900px) { .lab-family__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1120px; } }
.lab-family__card a { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.lab-family__media { display: block; aspect-ratio: 1; padding: 14%; border-radius: var(--radius-lg); background: #f1efeb; overflow: hidden; }
.lab-family__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.4s ease; }
.lab-family__card a:hover img { transform: scale(1.04); }
.lab-family__card a:focus-visible { outline-offset: 6px; }
.lab-family__name { margin: 16px 0 4px; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); font-weight: 400; color: var(--lab-ink); }
.lab-family__note { margin: 0 0 14px; font-size: 0.9rem; line-height: 1.4; color: var(--lab-dim); }
.lab-family__facts { margin: auto 0 0; font-size: 0.85rem; }
.lab-family__facts div { padding: 7px 0; border-top: 1px solid var(--lab-faint); }
.lab-family__facts dt { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lab-dim); }
.lab-family__facts dd { margin: 2px 0 0; }
.lab-family { padding-bottom: clamp(40px, 6vw, 72px); }
.lab-family .lab-aside { margin-top: clamp(28px, 4vw, 44px); }

/* A quiet closing line between the story and the specifications. */
.lab-coda {
  margin: 0; padding: clamp(24px, 4vw, 48px) var(--gutter) clamp(72px, 10vw, 128px); text-align: center;
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.7rem); font-weight: 300; letter-spacing: -0.01em; color: var(--lab-dim);
}

/* 8. Control. */
.lab-control { position: relative; overflow: hidden; text-align: center; padding-block: clamp(110px, 18vw, 220px); }
.lab-control__orb {
  position: absolute; left: 50%; top: 50%; width: min(90vw, 760px); aspect-ratio: 1; margin: calc(min(90vw, 760px) / -2) 0 0 calc(min(90vw, 760px) / -2);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 228, 184, 0.34), rgba(255, 228, 184, 0.08) 55%, transparent);
  pointer-events: none;
}
.lab-control__text { position: relative; }
.lab-control .lab-copy { margin-bottom: 1.6rem; }

/* Technical part: back to the site's light, clean styling. */
.lab-tech__name { margin: -0.25rem 0 0; color: var(--muted); }
.lab-tech .spec-table h3, .lab-tech__downloads .mini-title { margin-bottom: 0.75rem; }
.lab-tech__downloads .download-list { margin-top: 0; }
.lab-tech__quote { max-width: 760px; margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); }

@media (max-width: 699px) {
  .lab-cone__label { font-size: 46px; }
  .lab-figures dt { font-size: 0.72rem; letter-spacing: 0.04em; }
  /* Crop in on the two trims, which sit either side of the centre line. */
  .lab-finish__media img { aspect-ratio: 3 / 2; }
  .lab-swatches { gap: 20px; }
}

/* The scroll story. Pinned scenes are tall tracks whose stage sticks under the site header. */
@media (prefers-reduced-motion: no-preference) {
  .js .lab-pin { position: relative; padding-block: 0; }
  .js .lab-pin__stage { position: sticky; top: var(--header-height); height: var(--lab-stage); overflow: hidden; }
  .js .lab-statement { height: 220vh; }
  .js .lab-room { height: 340vh; }
  .js .lab-beams { height: 320vh; }
  .js .lab-ip__track { height: 200vh; }

  /* Hero: the type lifts and fades while the beam brightens and the view leans in. */
  .js .lab-hero__text { transform: translate3d(0, calc(var(--p, 0) * -90px), 0); opacity: calc(1 - var(--p, 0) * 1.7); will-change: transform, opacity; }
  .js .lab-hero__media img, .js .lab-hero__video { transform: scale(calc(1 + var(--p, 0) * 0.08)); }
  .js .lab-hero__glow { opacity: calc(var(--p, 0) * 0.9); }

  /* Parallax hero: the pendants (a transparent layer over the same photo without them) rise faster
     than the room. At rest the two layers compose back into the original hero image. */
  .js .lab-hero__static { display: none; }
  .js .lab-hero__par { display: block; position: absolute; inset: 0; }
  .js .lab-hero__layer { position: absolute; inset: 0; transform: translate3d(0, calc(var(--hs, 0) * (var(--speed) - 1) * -100%), 0); will-change: transform; }
  .js .lab-cue { opacity: calc(1 - var(--p, 0) * 4); }

  /* Statement: each word brightens and settles as its turn comes (--w is 0 to 1 per word). */
  .js .lab-word {
    --w: clamp(0, calc(var(--p, 1) * (var(--n) + 1.5) - var(--i)), 1);
    opacity: calc(0.12 + var(--w) * 0.88);
    transform: translate3d(0, calc((1 - var(--w)) * 0.18em), 0);
  }
  .js .lab-statement__note { opacity: clamp(0, calc(var(--p, 1) * 5 - 4), 1); }

  /* Morning to evening: the warm room fades over the cool one; readout and marker follow --t. */
  .js .lab-room .lab-pin__stage { display: flex; flex-direction: column; justify-content: center; gap: clamp(14px, 2.4vh, 28px); padding-block: 2vh; }
  .js .lab-room .lab-head .lab-title { font-size: clamp(2rem, 1rem + 3.4vw, 4.2rem); }
  .js .lab-room__frame {
    position: relative; display: block; margin: 0 auto;
    width: min(100% - 2 * var(--gutter), 1280px, (var(--lab-stage) - 330px) * 2400 / 1340);
    aspect-ratio: 2400 / 1340; border-radius: var(--radius-lg); overflow: hidden;
  }
  .js .lab-room__shot { position: absolute; inset: 0; }
  .js .lab-room__shot img { width: 100%; height: 100%; border-radius: 0; }
  .js .lab-room__shot figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .js .lab-room__shot--cool img { filter: saturate(calc(1 - var(--t, 0) * 0.25)); }
  .js .lab-room__shot--warm { opacity: var(--t, 0); }
  .js .lab-kelvin { margin-top: 0; }
  .js .lab-kelvin__value {
    display: block; margin: 0 0 12px; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.6rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1;
    font-variant-numeric: tabular-nums;
  }
  .js .lab-kelvin__track { display: block; transform: translate3d(calc(var(--t, 0) * 100%), 0, 0); }
  .js .lab-room .lab-copy--small { margin: 0 auto; }

  /* Three beams: header above, diagram fills the rest of the stage. */
  .js .lab-beams .lab-pin__stage { display: flex; flex-direction: column; justify-content: center; padding-block: 2vh; }
  .js .lab-beams__figure { width: min(100% - 2 * var(--gutter), 860px, (var(--lab-stage) - 330px) * 800 / 620); }

  /* Bathroom: like the hero, the room fills the stage and leans in slowly; the words rise in
     at the top left over a soft scrim. */
  .js .lab-ip__media { position: absolute; inset: 0; }
  .js .lab-ip__media img, .js .lab-ip__video { width: 100%; height: 100%; aspect-ratio: auto; object-position: 50% 45%; transform: scale(calc(1.02 + var(--p, 0) * 0.16)); }
  .js .lab-ip .lab-pin__stage::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(5, 5, 6, 0.78), rgba(5, 5, 6, 0.35) 38%, rgba(5, 5, 6, 0) 62%);
  }
  .js .lab-ip__text {
    position: absolute; top: 0; left: 0; z-index: 1; max-width: 40rem; text-align: left;
    padding: clamp(40px, 9vh, 112px) var(--gutter) 0 clamp(var(--gutter), 7vw, 120px);
    opacity: clamp(0, calc(var(--p, 1) * 3 - 0.3), 1); transform: translate3d(0, calc((1 - clamp(0, var(--p, 1) * 2, 1)) * 40px), 0);
  }
  .js .lab-ip .lab-copy { margin: 0; }

  /* Craft: the heatsink drifts against the scroll. */
  .js .lab-craft__image { transform: translate3d(0, calc((var(--p, 0.5) - 0.5) * -12%), 0) scale(1.14); }

  /* Finishes: the pair settles into place. */
  .js .lab-finish__media img, .js .lab-finish__video { transform: scale(calc(1.08 - var(--p, 1) * 0.08)); }

  /* Control: a glow that dims up as the section arrives. */
  .js .lab-control__orb { opacity: calc(0.1 + var(--p, 1) * 0.9); transform: scale(calc(0.55 + var(--p, 1) * 0.5)); }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 699px) {
  .js .lab-room__frame { width: min(100% - 2 * var(--gutter), (var(--lab-stage) - 250px) * 2400 / 1340); }
  .js .lab-ip__media img, .js .lab-ip__video { object-position: var(--focus-x, 50%) 40%; }
}

/* People variant (/lab/geber-65-people): timed chapters of a day, laid out like the IP65 scene. */
.lab-chapter__time { color: #e8c48c; }
@media (prefers-reduced-motion: no-preference) {
  .js .lab-chapter .lab-ip__track { height: 360vh; }
  /* Down to a glow: the dim shot fades in over the bright one as the scene scrolls. */
  .js .lab-chapter__dim { opacity: clamp(0, calc((var(--p, 1) - 0.06) / 0.3), 1); }
  .js .lab-chapter--right .lab-ip__text { left: auto; right: 0; text-align: right; padding-left: var(--gutter); padding-right: clamp(var(--gutter), 7vw, 120px); }
  .js .lab-chapter--right .lab-pin__stage::after { background: linear-gradient(200deg, rgba(5, 5, 6, 0.78), rgba(5, 5, 6, 0.35) 38%, rgba(5, 5, 6, 0) 62%); }
  .js .lab-chapter--bottom .lab-ip__text { top: auto; bottom: 0; padding-top: 0; padding-bottom: clamp(40px, 9vh, 112px); }
  .js .lab-chapter--bottom.lab-chapter--right .lab-pin__stage::after { background: linear-gradient(330deg, rgba(5, 5, 6, 0.8), rgba(5, 5, 6, 0.35) 38%, rgba(5, 5, 6, 0) 62%); }
  .js .lab-chapter--shade-left .lab-pin__stage::after { background: linear-gradient(90deg, rgba(5, 5, 6, 0.85), rgba(5, 5, 6, 0.6) 34%, rgba(5, 5, 6, 0) 58%); }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 699px) {
  /* On phones the words sit across the top, so the left shade runs downward instead. */
  .js .lab-chapter--shade-left .lab-pin__stage::after { background: linear-gradient(180deg, rgba(5, 5, 6, 0.85), rgba(5, 5, 6, 0.6) 40%, rgba(5, 5, 6, 0) 62%); }
}

/* "by tunable": the maker's signature under the product name. Hairlines either side, a small
   spaced "by", then the site logo in white with its warm glow mark. */
.lab-by {
  display: flex; align-items: center; justify-content: center; gap: clamp(12px, 1.6vw, 20px);
  margin: clamp(1rem, 2.2vh, 1.6rem) auto 0; max-width: 34rem;
}
.lab-by::before, .lab-by::after { content: ""; flex: 1; max-width: 120px; height: 1px; background: linear-gradient(90deg, transparent, rgba(232, 196, 140, 0.55)); }
.lab-by::after { transform: scaleX(-1); }
.lab-by__by { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--lab-dim); }
.lab-logo { color: var(--lab-ink); font-size: clamp(1.05rem, 0.9rem + 0.7vw, 1.5rem); }
.lab-logo .logo__word { font-size: 1.6em; color: var(--lab-ink); }
.lab-logo .logo__mark { width: 2em; color: #4a4a50; filter: drop-shadow(0 0 14px rgba(242, 198, 116, 0.35)); }

/* The closing lockup repeats the hero: product name, then the signature, then one line. */
.lab-coda__name { margin: 0; font-size: clamp(3.2rem, 1rem + 9vw, 8rem); font-weight: 300; letter-spacing: -0.06em; line-height: 0.9; color: var(--lab-ink); }
.lab-coda__line { margin: 1.4rem 0 0; }
.lab-by--coda + .lab-coda__line { margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.lab-coda__line + .lab-sr + .lab-by--coda { margin-top: clamp(1.4rem, 2.6vw, 2rem); }
.lab-coda__line:first-child { margin-top: 0; }
/* Clear the descender of the "g" in the hero and closing wordmarks. */
.lab-hero .lab-by, .lab-by--coda { margin-top: clamp(1.8rem, 4.5vh, 3rem); }

/* Segment navigation on the story pages: a back link over the hero and a "more" link under the coda. */
.lab-back {
  position: absolute; top: clamp(16px, 3vw, 28px); left: var(--gutter); z-index: 2;
  display: inline-flex; align-items: center; gap: 0.5em; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--lab-faint); border-radius: 999px; background: rgba(5, 5, 6, 0.45);
  color: var(--lab-ink); font-size: 0.9rem; font-weight: 500; text-decoration: none;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.lab-back:hover { border-color: var(--warm); }
.lab-coda__more { margin: clamp(1.6rem, 3vw, 2.4rem) 0 0; font-size: 1rem; font-weight: 400; letter-spacing: 0; }

/* Product bar (productBar in lab-geber.mjs, public/lab-bar.js): a fixed pill with the product name,
   "Specs" and "Top". Always visible without JS; lab-bar.js hides it over the hero and the specs. */
.lab-bar {
  position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; width: max-content; max-width: calc(100vw - 24px);
  padding: 4px 4px 4px 18px; border: 1px solid var(--lab-faint); border-radius: 999px;
  background: rgba(5, 5, 6, 0.9); color: var(--lab-ink); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.lab-bar__name { min-width: 0; margin-right: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.9rem; font-weight: 500; letter-spacing: -0.01em; }
.lab-bar__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35em; flex: none; min-width: 44px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; background: rgba(243, 241, 236, 0.1); color: var(--lab-ink); font-size: 0.85rem; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.lab-bar__btn:hover { background: rgba(243, 241, 236, 0.18); }
.lab-bar a:focus-visible { outline: 2px solid var(--warm); outline-offset: 2px; }
.lab-bar.is-at-specs .lab-bar__specs { display: none; }
.lab-bar.is-managed { transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s; }
.lab-bar.is-managed:not(.is-shown) { opacity: 0; transform: translate(-50%, 16px); visibility: hidden; pointer-events: none; transition: opacity 0.35s ease, transform 0.35s ease, visibility 0s 0.35s; }
@media (prefers-reduced-motion: reduce) { .lab-bar.is-managed, .lab-bar.is-managed:not(.is-shown) { transition: none; } }
@media (prefers-reduced-motion: no-preference) { html:has(.lab-bar) { scroll-behavior: smooth; } }
/* Keep the footer and the quote form's last line clear of the bar. */
.page-lab .site-footer { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

/* "Skip to specs": a small text link in the hero's bottom corner, beside the SCROLL cue. */
.lab-skip {
  position: absolute; right: var(--gutter); bottom: 12px; z-index: 2; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px;
  font-size: 0.8rem; color: var(--lab-dim); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--lab-faint);
}
.lab-skip:hover { color: var(--lab-ink); }
