/* Lab version: our own identity in the lab orange (#FF6B00).
   Motif = the paper's picture: a patch grid (blue centers) with orange keys landing between them.
   Loaded after style.css (shared components); overrides only.  In charts, orange = projected keys, as in the paper. */
body.lab2 {
  --lab: #ff6b00;
  --lab-dark: #e05a00;
  --lab-tint: #fff6ef;
  --orange: #ff6b00;
  --chart-orange: #ff6b00;
  --ink: #16181c;
  --ink2: #3b4048;
  --soft: #f5f6f8;
  font-size: 17px;
}
body.lab2 h1, body.lab2 h2, body.lab2 h3, body.lab2 h4, body.lab2 .stat-num, body.lab2 .ln-brand, body.lab2 .lf-brand,
body.lab2 .lb { font-family: Manrope, Inter, sans-serif; }
body.lab2 h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; }
body.lab2 h3 { font-size: 23px; font-weight: 800; letter-spacing: -0.01em; }
body.lab2 h4 { font-weight: 700; font-size: 16.5px; }
body.lab2 a { color: var(--lab-dark); }
body.lab2 .c-or { color: var(--lab); }

/* ---------- hero ---------- */
.lh { position: relative; overflow: hidden; background: var(--lab-tint); border-bottom: 1px solid #f3e2d4; }
.lh-motif { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lh-inner { position: relative; max-width: 980px; margin: 0 auto; padding: 96px 20px 70px; text-align: center; }
.lh-tag { display: inline-block; font: 600 12.5px Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase;
  color: var(--lab-dark); background: #fff; border: 1px solid #f6d3b8; border-radius: 999px; padding: 4px 12px; margin: 0 0 22px; }
.lh-title { font-size: clamp(46px, 8.4vw, 92px); line-height: .98; font-weight: 800; letter-spacing: -0.035em; margin: 0 0 22px; color: var(--ink); }
.lh-title span { color: var(--lab); }
.lh-sub { font-family: Manrope, Inter, sans-serif; font-size: clamp(19px, 2.4vw, 25px); font-weight: 600; color: var(--ink2); margin: 0 0 14px; }
.lh-auth { font-size: 17px; color: #5b616b; margin: 0 0 28px; }
.lh-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.lb { display: inline-block; padding: 10px 20px; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none;
  color: var(--ink) !important; background: #fff; border: 1.5px solid #e3e5e9; transition: border-color .15s, transform .15s; }
.lb:hover { border-color: var(--lab); transform: translateY(-1px); }
.lb.primary { background: var(--lab); border-color: var(--lab); color: #fff !important; box-shadow: 0 6px 18px rgba(255,107,0,.28); }
.lb.primary:hover { background: var(--lab-dark); border-color: var(--lab-dark); }
.lb.off { color: #a3a8b0 !important; background: rgba(255,255,255,.7); cursor: default; }
.lb.off:hover { border-color: #e3e5e9; transform: none; }
.lh-legend { position: relative; text-align: center; font-size: 13px; color: #7a808a; margin: 0 0 22px; }
.lh-legend .dot { vertical-align: -1px; margin-right: 4px; }
body.lab2 .dot.or { background: var(--lab); }

/* ---------- sticky section nav ---------- */
.ln { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid #eceef1; }
.ln-inner { max-width: 1120px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 22px; height: 52px; overflow-x: auto; }
body.lab2 .ln-inner a { color: #5b616b; text-decoration: none; font-size: 14.5px; font-weight: 600; white-space: nowrap; padding: 15px 0; border-bottom: 2px solid transparent; }
body.lab2 .ln-inner a:hover { color: var(--ink); }
body.lab2 .ln-inner a.on { color: var(--ink); border-bottom-color: var(--lab); }
body.lab2 .ln-inner a.ln-brand { color: var(--ink); font-weight: 800; margin-right: auto; border: 0; }

/* ---------- sections ---------- */
body.lab2 section { margin-top: 88px; margin-bottom: 88px; scroll-margin-top: 64px; }
body.lab2 .eyebrow { color: #7a808a; font-weight: 700; letter-spacing: .1em; margin-bottom: 4px; }
body.lab2 .eyebrow b { color: var(--lab); font-family: Manrope, Inter, sans-serif; font-size: 15px; margin-right: 8px; letter-spacing: 0; }
body.lab2 #video { margin-top: 56px; }
body.lab2 .video-frame { border-radius: 16px; box-shadow: 0 20px 60px rgba(22,24,28,.12); }
body.lab2 .tl { display: block; font: 700 12.5px Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--lab-dark); margin-bottom: 6px; }
body.lab2 .tldr { font-size: 21px; }
body.lab2 .stat { background: #fff; border: 1px solid #eceef1; border-top: 3px solid var(--lab); border-radius: 12px; }
body.lab2 .stat-num { font-weight: 800; }
body.lab2 .panel, body.lab2 .card { border-color: #eceef1; border-radius: 14px; }
body.lab2 .slider input { accent-color: var(--lab); }
body.lab2 .presets button:hover { border-color: var(--lab); }

/* ---------- results on a dark stage (videos read better) ---------- */
section.dark { background: #121418; color: #e9ebee; padding: 72px 0 60px; margin-top: 88px; margin-bottom: 88px; }
section.dark h2 { color: #fff; }
section.dark p { color: #b9bec6; }
section.dark .eyebrow { color: #8a919b; }
section.dark .viewer { box-shadow: 0 20px 60px rgba(0,0,0,.45); }
section.dark .seg { background: #262a31; }
section.dark .seg button { color: #a9afb8; }
section.dark .seg button.on { background: #fff; color: #121418; }
section.dark .hold { background: transparent; border-color: #3a3f47; color: #e9ebee; }
section.dark .hold:active, section.dark .hold.active { background: var(--lab); border-color: var(--lab); color: #fff; }
section.dark .psnr { color: #9aa1ab; } section.dark .psnr b { color: #fff; }
section.dark .note { color: #8a919b; }
section.dark .thumb.on { outline-color: var(--lab); }

/* ---------- footer ---------- */
.lf { background: var(--lab-tint); border-top: 1px solid #f3e2d4; padding: 44px 0 52px; margin-top: 72px; }
.lf p { color: #7a808a; font-size: 14px; margin: 0; }
.lf .lf-brand { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.01em; }
.lf-brand span { color: var(--lab); }
.lf .logos img { height: 56px; margin: 0 14px 14px 0; }

@media (max-width: 680px) {
  .lh-inner { padding: 64px 18px 48px; }
  body.lab2 h2 { font-size: 25px; }
  body.lab2 .tldr { font-size: 18px; }
  body.lab2 section { margin-top: 60px; margin-bottom: 60px; }
  section.dark { padding: 48px 0 40px; }
  .ln-inner a.ln-brand { display: none; }
}

/* v2 (11-26): fewer elements -- plain stat row instead of boxed tiles */
body.lab2 .stats { gap: 0; border-top: 1px solid #eceef1; border-bottom: 1px solid #eceef1; }
body.lab2 .stat { background: none; border: 0; border-radius: 0; padding: 18px 20px; }
body.lab2 .stat + .stat { border-left: 1px solid #eceef1; }
body.lab2 .tldr { font-size: 20px; }
@media (max-width: 680px) { body.lab2 .stat + .stat { border-left: 0; border-top: 1px solid #eceef1; } }
.lh-auth { margin-bottom: 4px; font-size: 18px; color: var(--ink); }
.lh-aff { font-size: 15px; color: #5b616b; margin: 0 0 28px; }
.lf .logos { margin-bottom: 18px; }
body.lab2 .au a { color: var(--ink); }
body.lab2 .au a:hover { color: var(--lab-dark); }
@media (max-width: 680px) { .logos img { height: 40px; } }
.lf { margin-bottom: 0; }
