/* ============================================================================
   devices/ring-lab · every section under the bar

   Measure at 1440: section label 14/500, display 64 and 48 at 500
   with -0.03em, body 16/24 in an 822 measure, counter 180, carousel cards 427,
   feature cards 382, marquee slides 400 by 560. Type is Phenome's Helvetica,
   colour is Phenome's navy and ink, and the accent is
   a cool brand blue. Copy rule: no dashes, no all caps.

   Motion states that hide content are scoped to `.lab-js`, which lab.js adds,
   so a page whose script does not run is simply the finished page.
   ========================================================================== */

.lab {
  --lab-ink: #05070f;
  --lab-light: #fafafa;
  --lab-blue: #8aaeff;
  --lab-blue-2: #4f72d9;
  --lab-ease: cubic-bezier(.16, 1, .3, 1);
  --lab-measure: 822px;
  background: #fff;
}
.lab main { overflow-x: clip; }

/* ---- shared type ------------------------------------------------------- */
.lab .lab-textblock {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 120px 24px 0; color: var(--ink-900);
}
.lab .lab-textblock.is-dark { color: #fff; }
.lab .lab-label { margin: 0 0 16px; font-size: 14px; line-height: 1; font-weight: 500; letter-spacing: .06em; }
.lab .lab-h2 {
  margin: 0; font-size: clamp(34px, 3.4vw, 48px); line-height: 1.1; font-weight: 500; letter-spacing: -0.03em;
}
.lab .lab-h2.is-xl { font-size: clamp(40px, 4.45vw, 64px); }
.lab .lab-desc { margin: 20px 0 0; max-width: var(--lab-measure); font-size: 16px; line-height: 1.5; opacity: .92; }
.lab .lab-card-t { margin: 0; font-size: 16px; line-height: 1.2; font-weight: 600; }
.lab .lab-card-b { margin: 10px 0 0; font-size: 14px; line-height: 1.5; opacity: .7; }

.lab .lab-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 24px; border: 0; border-radius: 99px; cursor: pointer;
  font: 500 15px/1 var(--ph-font); text-decoration: none !important;
  transition: transform .3s var(--lab-ease), background-color .25s ease;
}
.lab .lab-pill:active { transform: scale(.97); }
.lab .lab-pill.is-soft { background: rgba(255, 255, 255, .55); color: var(--ink-900); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.lab .lab-pill.is-soft:hover { background: rgba(255, 255, 255, .8); }
.lab .lab-pill.is-glass { background: rgba(255, 255, 255, .16); color: #fff; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.lab .lab-pill.is-glass:hover { background: rgba(255, 255, 255, .28); }
.lab .lab-pill svg { width: 12px; height: 12px; fill: currentColor; }

/* reveal on entry */
.lab-js .lab .lab-in,
.lab-js .lab .lab-textblock > * { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform 1.1s var(--lab-ease); }
.lab-js .lab .is-in.lab-in,
.lab-js .lab .lab-textblock.is-in > * { opacity: 1; transform: none; }
.lab-js .lab .lab-textblock.is-in > :nth-child(2) { transition-delay: .08s; }
.lab-js .lab .lab-textblock.is-in > :nth-child(3) { transition-delay: .16s; }

/* ---------------------------------------------------------------------------
   0 · HERO
   ------------------------------------------------------------------------ */
.lab .lab-hero {
  position: relative; height: 100svh; min-height: 720px; padding: 0; overflow: hidden;
  margin-top: calc(-1 * var(--ph-nav-h));
  background: rgb(180 183 195);
}
.lab .lab-hero-media { position: absolute; left: 0; right: 0; bottom: 0; top: 30%; }
.lab .lab-hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22%);
  mask-image: linear-gradient(180deg, transparent 0, #000 22%);
  transform: translateY(calc(var(--hero-p, 0) * 60px)) scale(calc(1 + var(--hero-p, 0) * .06));
}
.lab .lab-hero-text {
  position: relative; z-index: 1; padding-top: calc(var(--ph-nav-h) + 76px);
  display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--ink-900);
}
.lab .lab-hero-name { margin: 0; font-size: clamp(40px, 4.2vw, 60px); line-height: 1; font-weight: 600; letter-spacing: -0.035em; }
.lab .lab-hero-tag { margin: 12px 0 0; font-size: clamp(22px, 1.9vw, 28px); line-height: 1.2; font-weight: 400; letter-spacing: -0.01em; }
.lab .lab-hero-cta { display: flex; gap: 10px; margin-top: 26px; }
.lab-js .lab .lab-rise { opacity: 0; transform: translateY(18px); animation: lab-rise 1s var(--lab-ease) forwards; }
.lab-js .lab .lab-rise:nth-child(2) { animation-delay: .12s; }
.lab-js .lab .lab-rise:nth-child(3) { animation-delay: .24s; }
.lab-js .lab .lab-hero-media { animation: lab-lift 1.6s var(--lab-ease) both; }
@keyframes lab-rise { to { opacity: 1; transform: none; } }
@keyframes lab-lift { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }

/* ---------------------------------------------------------------------------
   1 · BATTERY · 200vh track, 100vh pin, two phases
   ------------------------------------------------------------------------ */
.lab .lab-battery { position: relative; height: 200vh; background: #000; color: #fff; }
.lab .lab-battery-pin { position: sticky; top: 0; height: 100vh; overflow: hidden; display: grid; place-items: center; }
.lab .lab-battery-bg { position: absolute; inset: 0; opacity: var(--bg-o, .45); }
.lab .lab-battery-bg img { width: 100%; height: 100%; object-fit: cover; }
.lab .lab-dial { position: relative; width: min(676px, 86vw); aspect-ratio: 1; display: grid; place-items: center; }
.lab .lab-dial-glass {
  position: absolute; inset: 1.8%; border-radius: 50%; opacity: var(--bg-o-g, 1);
  background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(10px) saturate(130%); backdrop-filter: blur(10px) saturate(130%);
}
.lab .lab-dial-arcs { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.lab .lab-dial-arcs circle { fill: none; stroke-linecap: round; }
.lab .lab-arc-track { stroke: rgba(255, 255, 255, .12); stroke-width: 2; }
.lab .lab-arc { stroke: var(--lab-blue); stroke-width: 8; stroke-dasharray: 2073.5; stroke-dashoffset: calc(2073.5 * (1 - var(--arc, 1))); filter: drop-shadow(0 0 14px rgba(138, 174, 255, .55)); }
.lab .lab-arc-mid { stroke: var(--lab-blue-2); stroke-width: 3; stroke-dasharray: 1885; stroke-dashoffset: calc(1885 * (1 - var(--arc2, 0))); opacity: .9; }
.lab .lab-dial-text { position: relative; text-align: center; }
.lab .lab-dial-text .lab-label { margin-bottom: 8px; }
.lab .lab-counter {
  margin: 0; font-size: clamp(110px, 12.5vw, 180px); line-height: 1.1; font-weight: 500; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; filter: blur(var(--c-blur, 0px));
}
.lab .lab-dial-units { display: grid; margin-top: 4px; }
.lab .lab-unit { grid-area: 1 / 1; margin: 0; font-size: clamp(30px, 3.3vw, 48px); line-height: 1; font-weight: 500; letter-spacing: -0.03em; }
.lab .lab-unit.is-a { opacity: var(--u-a, 1); }
.lab .lab-unit.is-b { opacity: var(--u-b, 0); font-size: clamp(22px, 2vw, 30px); line-height: 1.1; }

/* ---------------------------------------------------------------------------
   2 · CHARGING CASE SEQUENCE
   ------------------------------------------------------------------------ */
.lab .lab-case { position: relative; background: #000; }
.lab .lab-seq-track { position: relative; height: 230vh; }
.lab .lab-seq-pin { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
/* the renders sit on a studio floor that ends in a hard edge; a soft radial
   mask lets the frame dissolve into the section's black instead */
.lab .lab-seq {
  display: block; width: min(1000px, 88vw); height: auto; aspect-ratio: 16 / 9;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%);
}
.lab .lab-seq.is-square { width: min(578px, 80vw); aspect-ratio: 1; }

/* ---------------------------------------------------------------------------
   3 · CASE FEATURES
   ------------------------------------------------------------------------ */
.lab .lab-casefeat { background: #000; color: #fff; padding: 40px 24px 140px; }
.lab .lab-featlist {
  list-style: none; margin: 0 auto; padding: 0; max-width: 830px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px 48px;
}
.lab .lab-featlist li { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform 1s var(--lab-ease); }
.lab .lab-featlist.is-in li { opacity: 1; transform: none; }
.lab .lab-featlist.is-in li:nth-child(2) { transition-delay: .08s; }
.lab .lab-featlist.is-in li:nth-child(3) { transition-delay: .16s; }
.lab .lab-featlist.is-in li:nth-child(4) { transition-delay: .24s; }
.lab .lab-featlist.is-in li:nth-child(5) { transition-delay: .32s; }
.lab .lab-featlist.is-in li:nth-child(6) { transition-delay: .40s; }
html:not(.lab-js) .lab .lab-featlist li { opacity: 1; transform: none; }
.lab .lab-featlist svg { width: 36px; height: 36px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lab .lab-ft { margin: 14px 0 0; font-size: 16px; line-height: 1.2; font-weight: 600; }
.lab .lab-fd { margin: 8px 0 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .7); }

/* ---------------------------------------------------------------------------
   4 · MAGNETIC CHARGING
   ------------------------------------------------------------------------ */
.lab .lab-snap { background: #000; color: #fff; padding-bottom: 120px; }
.lab .lab-snap .lab-textblock { padding-top: 80px; }
.lab .lab-snap-stage { display: grid; place-items: center; margin-top: 56px; }
.lab .lab-snap .lab-seq { border-radius: 0; }

/* ---------------------------------------------------------------------------
   5 · PHENOME INTELLIGENCE
   ------------------------------------------------------------------------ */
.lab .lab-intel { position: relative; background: #03050c; color: #fff; padding-bottom: 120px; overflow: hidden; isolation: isolate; }
.lab .lab-intel-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  box-shadow: inset 0 0 90px 24px rgba(79, 114, 217, .55), inset 0 0 220px 60px rgba(138, 174, 255, .16);
  animation: lab-glow 7s ease-in-out infinite alternate;
}
.lab .lab-intel-glow::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 45% at 50% 40%, rgba(79, 114, 217, .22), transparent 70%);
}
@keyframes lab-glow { from { opacity: .75; } to { opacity: 1; } }
.lab .lab-intel .lab-textblock { padding-top: 110px; }

.lab .lab-carousel { position: relative; margin-top: 56px; --card: clamp(260px, 29.7vw, 427px); --gap: 18px; }
.lab .lab-car-view { overflow: hidden; padding-inline: max(24px, calc((100vw - 1320px) / 2)); cursor: grab; touch-action: pan-y; }
.lab .lab-car-view.is-drag { cursor: grabbing; }
.lab .lab-car-track {
  list-style: none; margin: 0; padding: 0; display: flex; gap: var(--gap);
  transform: translate3d(var(--car-x, 0px), 0, 0); transition: transform .7s var(--lab-ease);
}
.lab .lab-car-view.is-drag .lab-car-track { transition: none; }
.lab .lab-card { flex: none; width: var(--card); user-select: none; }
.lab .lab-card-media {
  position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, #0d1531 0%, #060a1a 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.lab .lab-card-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.lab .lab-card .lab-card-t { margin-top: 20px; }
.lab .lab-card .lab-card-b { max-width: 40ch; }
.lab .lab-car-btn {
  position: absolute; top: calc(var(--card) / 2); z-index: 2; width: 44px; height: 44px; margin-top: -22px;
  border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  color: #fff; background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color .2s ease, opacity .2s ease;
}
.lab .lab-car-btn:hover { background: rgba(255, 255, 255, .24); }
.lab .lab-car-btn:disabled { opacity: .25; cursor: default; }
.lab .lab-car-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lab .lab-car-btn.is-prev { left: 12px; }
.lab .lab-car-btn.is-next { right: 12px; }
.lab .lab-car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.lab .lab-car-dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .3); transition: transform .4s var(--lab-ease), background-color .3s; }
.lab .lab-car-dots i.on { background: #fff; transform: scaleX(2.6); }

/* the drawn cards */
.lab .ui-chat { position: absolute; inset: 0; display: grid; place-content: center; gap: 22px; padding: 28px; }
.lab .ui-chat-q { margin: 0; text-align: center; font-size: 18px; color: rgba(255, 255, 255, .8); }
.lab .ui-chat-in {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: min(300px, 70vw);
  min-height: 44px; padding: 8px 8px 8px 16px; border-radius: 99px; font-size: 13px;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.lab .ui-chat-in span::after { content: "|"; margin-left: 1px; animation: lab-caret 1s steps(1) infinite; }
.lab .ui-chat-in i { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--lab-blue); }
@keyframes lab-caret { 50% { opacity: 0; } }
.lab .ui-nodes { position: absolute; inset: 0; }
.lab .ui-nodes svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.lab .ui-nodes path { fill: none; stroke: rgba(138, 174, 255, .45); stroke-width: 1.2; stroke-dasharray: 5 6; animation: lab-dash 3s linear infinite; }
@keyframes lab-dash { to { stroke-dashoffset: -44; } }
.lab .ui-node {
  position: absolute; padding: 6px 10px; border-radius: 6px; font-size: 11px; letter-spacing: .04em;
  color: rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.lab .ui-node.n1 { left: 12%; top: 18%; } .lab .ui-node.n2 { right: 10%; top: 22%; }
.lab .ui-node.n3 { left: 10%; bottom: 20%; } .lab .ui-node.n4 { right: 10%; bottom: 23%; }
.lab .ui-core {
  position: absolute; left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px; border-radius: 50%;
  background: radial-gradient(circle, #fff 0 18%, var(--lab-blue) 40%, transparent 72%);
  animation: lab-beat 2.4s ease-in-out infinite;
}
@keyframes lab-beat { 50% { transform: scale(1.18); opacity: .8; } }
.lab .ui-modes { position: absolute; inset: 0; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px; padding: 24px; }
.lab .ui-mode { padding: 8px 14px; border-radius: 99px; font-size: 12px; background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .7); animation: lab-mode 5s infinite; }
.lab .ui-mode + .ui-mode { animation-delay: 2.5s; }
@keyframes lab-mode { 0%, 45% { background: rgba(138, 174, 255, .3); color: #fff; } 50%, 100% { background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .7); } }
.lab .ui-bars { flex-basis: 100%; display: flex; justify-content: center; align-items: flex-end; gap: 10px; height: 110px; margin-top: 18px; }
.lab .ui-bars i { width: 10px; height: 100%; transform-origin: bottom; border-radius: 3px; background: linear-gradient(var(--lab-blue), rgba(79, 114, 217, .3)); animation: lab-eq 1.8s ease-in-out infinite alternate; }
.lab .ui-bars i:nth-child(1) { animation-delay: -.2s; } .lab .ui-bars i:nth-child(2) { animation-delay: -.9s; }
.lab .ui-bars i:nth-child(3) { animation-delay: -.5s; } .lab .ui-bars i:nth-child(4) { animation-delay: -1.3s; }
.lab .ui-bars i:nth-child(5) { animation-delay: -.1s; } .lab .ui-bars i:nth-child(6) { animation-delay: -.7s; }
.lab .ui-bars i:nth-child(7) { animation-delay: -1.1s; }
@keyframes lab-eq { from { transform: scaleY(.2); } to { transform: scaleY(1); } }
.lab .ui-lock { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; }
.lab .ui-lock svg { width: 72px; height: 72px; fill: none; stroke: var(--lab-blue); stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 18px rgba(138, 174, 255, .5)); }
.lab .ui-lock p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, .7); }

/* ---------------------------------------------------------------------------
   6 · DESIGN
   ------------------------------------------------------------------------ */
.lab .lab-design { background: var(--lab-light); padding-bottom: 110px; }
.lab .lab-design-img { display: grid; place-items: center; margin-top: 56px; padding-inline: 24px; }
.lab .lab-design-img img { width: min(756px, 86vw); height: auto; display: block; }
.lab-js .lab .lab-design-img.lab-in { transform: translateY(60px) scale(.92); transition: opacity 1.2s ease, transform 1.6s var(--lab-ease); }

/* ---------------------------------------------------------------------------
   7 · OFF THE GRID · a fixed picture seen through a clipped window
   ------------------------------------------------------------------------ */
.lab .lab-offgrid { position: relative; height: 100vh; min-height: 640px; clip-path: inset(0); color: #fff; }
.lab .lab-offgrid-img { position: fixed; inset: 0; transform: scale(1.12) translateY(-15px); }
.lab .lab-offgrid-img img { width: 100%; height: 100%; object-fit: cover; }
.lab .lab-offgrid-tint { position: fixed; inset: 0; background: #000; opacity: var(--tint, 0); }
.lab .lab-offgrid-text {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 0 24px;
}
.lab .lab-offgrid-text .lab-desc { max-width: 520px; opacity: var(--tint-copy, 1); transform: translateY(calc((1 - var(--tint-copy, 1)) * 20px)); }

/* ---------------------------------------------------------------------------
   8 · ENGINEERING
   ------------------------------------------------------------------------ */
/* THE DRAWN BACKDROP IS GONE, 2026-09-16 by request: three concentric circles,
   a cross and two diagonals, at 15% behind the section, drifting with the
   scroll. It was technical drawing as decoration, and with a photograph of the
   ring's actual internals sitting on top of it the section was carrying two
   answers to the same question. The markup went with the rule. */
.lab .lab-eng { position: relative; background: #fff; padding-bottom: 130px; overflow: hidden; }
.lab .lab-eng-grid {
  position: relative; width: min(1200px, calc(100vw - 48px)); margin: 72px auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.lab .lab-eng-img { display: grid; place-items: center; }
.lab .lab-eng-img img { width: min(560px, 100%); height: auto; transform: rotate(calc((var(--eng-p, .5) - .5) * 10deg)); }
.lab .lab-eng-list { display: grid; gap: 64px; max-width: 400px; color: var(--ink-900); }
.lab .lab-eng-item .lab-card-b { color: var(--ink-900); }

/* ---------------------------------------------------------------------------
   9 · FILM
   ------------------------------------------------------------------------ */
.lab .lab-film { position: relative; height: 100vh; min-height: 560px; overflow: hidden; background: #000; }
.lab .lab-film-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(calc(1.08 - var(--film-p, 1) * .08)); }
.lab .lab-film::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, .78)); }
.lab .lab-film-over {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: 18%;
  display: flex; flex-direction: column; align-items: center; gap: 18px; color: #fff; text-align: center; padding: 0 24px;
}
.lab .lab-film-h { text-shadow: 0 1px 12px rgba(0, 0, 0, .45); margin: 0; font-size: clamp(20px, 1.7vw, 24px); font-weight: 600; letter-spacing: -0.01em; }

.lab .lab-modal {
  width: min(1200px, 94vw); max-width: none; padding: 0; border: 0; border-radius: 18px; background: #000; overflow: visible;
}
.lab .lab-modal::backdrop { background: rgba(3, 5, 12, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lab .lab-modal video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; background: #000; }
.lab .lab-modal-x {
  position: absolute; right: -8px; top: -52px; width: 40px; height: 40px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; background: rgba(255, 255, 255, .16); color: #fff;
}
.lab .lab-modal-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------------------------------------------------------------------------
   10 · APP
   ------------------------------------------------------------------------ */
.lab .lab-app { background: #fff; padding-bottom: 120px; }
.lab .lab-phone { position: relative; width: 300px; margin: 64px auto 0; padding-bottom: 36px; }
.lab .lab-phone-screen {
  position: relative; height: 620px; border-radius: 48px; overflow: hidden;
  border: 10px solid #0b0d14; box-shadow: 0 0 0 1px #2a2f3d;
  background: linear-gradient(170deg, #eef2fb 0%, #dfe6f7 55%, #eae5f2 100%);
}
.lab .lab-phone-screen::before {
  content: ""; position: absolute; z-index: 3; left: 50%; top: 10px; width: 92px; height: 26px; margin-left: -46px;
  border-radius: 99px; background: #0b0d14;
}
.lab .app-scr {
  position: absolute; inset: 0; padding: 62px 22px 90px; color: var(--ink-900);
  opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .7s var(--lab-ease);
}
.lab .app-scr.on { opacity: 1; transform: none; }
.lab .app-k { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink-600); }
.lab .app-big { margin: 6px 0 0; font-size: 64px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.lab .app-s { margin: 8px 0 0; font-size: 13px; color: var(--ink-600); }
.lab .app-note { position: absolute; left: 22px; right: 22px; bottom: 96px; margin: 0; padding: 12px 14px; border-radius: 14px; font-size: 13px; line-height: 1.4; background: rgba(255, 255, 255, .7); }
.lab .app-hyp { display: flex; align-items: flex-end; gap: 3px; height: 130px; margin-top: 30px; }
.lab .app-hyp i { flex: var(--w) 1 0; height: calc(var(--h) * 100%); border-radius: 4px; background: linear-gradient(var(--phenome-blue-500), var(--phenome-blue-200)); transform-origin: bottom; }
.lab .app-scr.on .app-hyp i { animation: lab-grow .9s var(--lab-ease) both; }
.lab .app-scr.on .app-hyp i:nth-child(2n) { animation-delay: .08s; }
.lab .app-scr.on .app-hyp i:nth-child(3n) { animation-delay: .16s; }
@keyframes lab-grow { from { transform: scaleY(.05); } }
.lab .app-vitals { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.lab .app-vitals li { display: flex; justify-content: space-between; align-items: baseline; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .72); font-size: 13px; }
.lab .app-vitals b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.lab .app-ring {
  --p: .78; position: relative; width: 190px; height: 190px; margin: 34px auto 0; border-radius: 50%;
  background: conic-gradient(var(--phenome-blue-500) calc(var(--p) * 360deg), rgba(32, 58, 133, .12) 0);
  display: grid; place-items: center;
}
.lab .app-ring::before { content: ""; position: absolute; inset: 16px; border-radius: 50%; background: #e7ecf8; }
.lab .app-ring b { position: relative; font-size: 56px; font-weight: 600; letter-spacing: -0.04em; }
.lab .app-line { width: 100%; height: 110px; margin-top: 26px; overflow: visible; }
.lab .app-line path { fill: none; stroke: var(--phenome-blue-500); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; }
.lab .app-scr.on .app-line path { animation: lab-draw 1.4s var(--lab-ease) .2s forwards; }
@keyframes lab-draw { to { stroke-dashoffset: 0; } }

.lab .lab-tabs {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 4;
  display: grid; grid-template-columns: repeat(4, auto); gap: 2px; padding: 6px; border-radius: 24px;
  background: rgba(10, 14, 28, .55); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
}
.lab .lab-tab {
  position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px;
  border: 0; background: none; cursor: pointer; font: 500 13px/1 var(--ph-font); color: rgba(255, 255, 255, .65); white-space: nowrap;
  transition: color .3s ease;
}
.lab .lab-tab.on { color: #fff; }
/* the highlight spans the whole bar and is cut down to the active tab with a
   clip-path, so the slide is a paint, never a layout */
.lab .lab-tab-hl {
  position: absolute; inset: 0; background: rgba(255, 255, 255, .16);
  clip-path: inset(6px calc(100% - var(--hl-x, 6px) - var(--hl-w, 60px)) 6px var(--hl-x, 6px) round 18px);
  transition: clip-path .5s var(--lab-ease);
}
.lab .lab-pulse { position: relative; width: 8px; height: 8px; }
.lab .lab-pulse i { position: absolute; inset: 0; border-radius: 50%; background: var(--lab-blue); }
.lab .lab-pulse i + i { background: none; box-shadow: 0 0 0 1px var(--lab-blue); animation: lab-ping 2s ease-out infinite; }
.lab .lab-pulse i:nth-child(3) { animation-delay: 1s; }
@keyframes lab-ping { from { transform: scale(1); opacity: 1; } to { transform: scale(3); opacity: 0; } }

/* ---------------------------------------------------------------------------
   11 · FEATURES
   ------------------------------------------------------------------------ */
.lab .lab-feat { background: #fff; padding: 40px 24px 120px; text-align: center; }
.lab .lab-feat .lab-h2 { color: var(--ink-900); }
.lab .lab-feat-grid {
  width: min(1186px, 100%); margin: 56px auto 0; text-align: left;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px 20px;
}
.lab .lab-fcard { color: var(--ink-900); }
.lab .lab-fcard img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; margin-bottom: 18px; transition: transform .8s var(--lab-ease); }
.lab .lab-fcard:hover img { transform: scale(1.02); }
.lab-js .lab .lab-feat-grid .is-in:nth-child(3n+2) { transition-delay: .08s; }
.lab-js .lab .lab-feat-grid .is-in:nth-child(3n) { transition-delay: .16s; }

/* ---------------------------------------------------------------------------
   12 · MARQUEE
   ------------------------------------------------------------------------ */
.lab .lab-marquee { background: #fff; padding: 20px 0 140px; overflow: hidden; }
.lab .lab-mq-row { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; width: max-content; animation: lab-mq var(--mq-s, 80s) linear infinite; }
.lab .lab-mq-row li { flex: none; width: clamp(240px, 27.8vw, 400px); aspect-ratio: 400 / 560; border-radius: 12px; overflow: hidden; }
.lab .lab-mq-row img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes lab-mq { to { transform: translateX(calc(-50% - 8px)); } }

/* ---------------------------------------------------------------------------
   13 · CLOSING
   ------------------------------------------------------------------------ */
.lab .lab-close { position: relative; background: var(--lab-light); padding-top: 140px; overflow: hidden; }
.lab .lab-close-text { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; padding: 0 24px; }
.lab .lab-close-h { margin: 0; font-size: clamp(44px, 4.45vw, 64px); line-height: 1.05; font-weight: 500; letter-spacing: -0.03em; color: var(--ink-900); }
.lab .lab-close-stage { position: relative; height: clamp(620px, 70vw, 1000px); margin-top: 72px; }
.lab .lab-close-case {
  position: absolute; left: 50%; bottom: -8%; width: min(680px, 84vw); height: auto;
  transform: translate(-50%, calc((1 - var(--cl-p, 1)) * 120px));
}
.lab .lab-close-ring {
  position: absolute; left: 50%; top: 4%; width: min(300px, 40vw); height: auto; z-index: 1;
  transform: translate(-50%, calc((1 - var(--cl-p, 1)) * -80px)) rotate(calc((1 - var(--cl-p, 1)) * -14deg));
  animation: lab-bob 6s ease-in-out infinite;
}
@keyframes lab-bob { 50% { translate: 0 -14px; } }

/* ---------------------------------------------------------------------------
   NARROW
   ------------------------------------------------------------------------ */
@media (max-width: 900px) {
  .lab .lab-textblock { padding-top: 88px; }
  .lab .lab-featlist { grid-template-columns: 1fr; gap: 36px; max-width: 420px; }
  .lab .lab-eng-grid { grid-template-columns: 1fr; gap: 40px; }
  .lab .lab-eng-list { max-width: none; gap: 36px; padding: 0 8px; }
  .lab .lab-feat-grid { grid-template-columns: 1fr 1fr; gap: 44px 16px; }
  .lab .lab-seq-track { height: 180vh; }
  .lab .lab-car-btn { display: none; }
}
@media (max-width: 560px) {
  .lab .lab-hero-media { top: 38%; }
  .lab .lab-hero-cta { flex-direction: column; width: min(260px, 80vw); }
  .lab .lab-feat-grid { grid-template-columns: 1fr; }
  .lab .lab-phone { width: 270px; }
  .lab .lab-phone-screen { height: 560px; }
  .lab .lab-tab { padding: 0 9px; font-size: 12px; }
  .lab .lab-battery { height: 170vh; }
}

@media (prefers-reduced-motion: reduce) {
  .lab .lab-mq-row, .lab .lab-close-ring, .lab .lab-intel-glow, .lab .ui-nodes path, .lab .ui-bars i, .lab .ui-core, .lab .ui-mode { animation: none; }
  .lab .lab-marquee { overflow-x: auto; }
}
