@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');

  * { margin: 0; padding: 0; box-sizing: border-box; }
  :root {
    --orange: #CC5500;
    --orange-bright: #e06010;
    --orange-glow: rgba(204,85,0,0.25);
    --bg: #080808;
    --bg2: #0d0d0d;
    --card: #111111;
    --card2: #161616;
    --border: rgba(255,255,255,0.07);
    --border-orange: rgba(204,85,0,0.3);
    --text: #e5e5e5;
    --muted: #777;
    --subtle: #444;
    --mono: 'JetBrains Mono', monospace;
  }
  html { scroll-behavior: smooth; }
  /* The nav is fixed, so an anchor target would otherwise scroll to the very top
     of the viewport and sit underneath it - landing you halfway down the heading
     you just clicked. The nav is a 54px logo plus 0.9rem padding top and bottom,
     so ~84px; this reserves that plus a little air. Covers every in-page target
     on every page, including the .app-row blocks on apps.html, whose top border
     is the divider the link should line up with. */
  section[id], .app-row[id] { scroll-margin-top: 100px; }
  body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }

  .grid-bg {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image:
      linear-gradient(rgba(204,85,0,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(204,85,0,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 80%);
  }

  /* NAV */
  nav {
    position: fixed; top: 0; width: 100%; z-index: 100;
    background: rgba(8,8,8,0.95); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.9rem 2.5rem;
  }
  nav::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    opacity: 0.4;
  }
  .nav-logo img { display: block; height: 54px; width: auto; }
  .nav-links { display: flex; align-items: center; gap: 0.25rem; }
  .nav-links a {
    color: #666; text-decoration: none; padding: 0.4rem 0.9rem;
    font-size: 1.23rem; font-family: var(--mono); letter-spacing: 0.04em;
    border-radius: 4px; transition: all 0.2s;
  }
  .nav-links a:hover { color: #fff; background: rgba(255,255,255,0.04); }

  /* Hamburger toggle. Hidden on desktop; below 680px it is the only nav control,
     where .nav-links becomes a dropdown panel. Driven by nav.js — the three spans
     are the bars, and .open crosses them into an X. */
  .nav-toggle {
    display: none; width: 44px; height: 44px; padding: 0;
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    background: transparent; border: 1px solid var(--border); border-radius: 6px;
    cursor: pointer; transition: border-color 0.2s;
  }
  .nav-toggle:hover { border-color: var(--border-orange); }
  .nav-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
  .nav-toggle span { display: block; width: 20px; height: 2px; background: #999; transition: transform 0.25s, opacity 0.2s; }
  /* 2px bar + 5px gap = 7px of travel to land each outer bar on the middle one. */
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* HERO */
  #home {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 6rem 2rem 5rem;
    position: relative; overflow: hidden; background: var(--bg);
  }
  .hero-glow {
    position: absolute; bottom: -100px; left: 50%; transform: translateX(-50%);
    width: 700px; height: 400px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(204,85,0,0.2) 0%, transparent 70%);
    pointer-events: none;
  }
  .scanline {
    position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.03) 2px, rgba(0,0,0,0.03) 4px);
  }
  .hero { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
  .hero-top { display: flex; align-items: center; justify-content: center; gap: 3rem; margin-bottom: 1.75rem; text-align: left; }
  .hero-logo img { display: block; height: 130px; width: auto; }

  .hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 4rem); font-weight: 900; line-height: 1.08;
    color: #fff; margin-bottom: 1.5rem; letter-spacing: -0.02em;
  }
  .hero h1 .accent { color: var(--orange); }
  .hero h1 .outline { -webkit-text-stroke: 1px rgba(255,255,255,0.3); color: transparent; }
  .hero-sub {
    color: var(--muted); max-width: 520px; margin: 0 auto 1rem;
    line-height: 1.8; font-family: var(--mono); font-size: 0.88rem;
  }
  .hero-sub .hl { color: #aaa; }
  .hero-divider { width: 1px; height: 40px; background: linear-gradient(180deg, transparent, var(--orange), transparent); margin: 1.75rem auto; }
  .btn-row { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }
  .btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.75rem; border-radius: 4px; font-weight: 700; font-size: 0.85rem; text-decoration: none; transition: all 0.2s; font-family: var(--mono); letter-spacing: 0.05em; text-transform: uppercase; }
  .btn-primary { background: var(--orange); color: #fff; border: 1px solid var(--orange); }
  .btn-primary:hover { background: var(--orange-bright); transform: translateY(-2px); box-shadow: 0 8px 30px var(--orange-glow); }
  .btn-outline { border: 1px solid var(--border); color: #888; background: transparent; }
  .btn-outline:hover { border-color: rgba(255,255,255,0.2); color: #fff; background: rgba(255,255,255,0.03); }

  /* SECTIONS */
  section { padding: 6rem 2rem; position: relative; z-index: 1; }
  .container { max-width: 1080px; margin: 0 auto; }
  /* Wider variant for the app-tile grids. At 1080 each of the three tiles gives
     303px of text width, and the Rack Viewer status line needs ~327px in JetBrains
     Mono, so it wrapped to a second line. 1200 gives 343px. */
  .container.wide { max-width: 1200px; }
  .section-eyebrow {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-family: var(--mono); font-size: 0.7rem; color: var(--orange);
    letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.75rem;
  }
  .section-eyebrow::before { content: '//'; color: var(--subtle); }
  .section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 900; color: #fff; margin-bottom: 0.75rem; letter-spacing: -0.02em; }
  .section-sub { color: var(--muted); font-size: 0.93rem; line-height: 1.8; max-width: 580px; }
  .divider { width: 40px; height: 2px; background: var(--orange); margin: 1rem 0 2rem; border-radius: 1px; }

  /* ABOUT */
  #about { background: var(--bg2); }
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; margin-top: 3.5rem; }
  .about-text p { color: #777; line-height: 1.9; margin-bottom: 1rem; font-size: 0.94rem; }
  .about-text strong { color: #ccc; }
  .about-highlights { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
  .highlight { background: var(--card); padding: 1.35rem 1.5rem; transition: background 0.2s; position: relative; }
  .highlight:hover { background: var(--card2); }
  .highlight::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--orange); opacity: 0; transition: opacity 0.2s; }
  .highlight:hover::before { opacity: 1; }
  .highlight-num { font-family: var(--mono); font-size: 0.65rem; color: var(--orange); margin-bottom: 0.4rem; letter-spacing: 0.1em; }
  .highlight h4 { color: #ddd; font-size: 0.9rem; font-weight: 700; margin-bottom: 0.3rem; }
  .highlight p { color: var(--muted); font-size: 0.83rem; line-height: 1.65; margin: 0; }

  /* SERVICES */
  #services { background: var(--bg); }
  .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-top: 3rem; }
  .service-card { background: var(--card); padding: 1.75rem; transition: all 0.25s; position: relative; overflow: hidden; }
  .service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--orange), transparent); opacity: 0; transition: opacity 0.3s; }
  .service-card:hover { background: #141414; }
  .service-card:hover::before { opacity: 1; }
  .svc-num { font-family: var(--mono); font-size: 0.65rem; color: var(--subtle); margin-bottom: 1rem; letter-spacing: 0.1em; }
  .icon { width: 42px; height: 42px; background: rgba(204,85,0,0.08); border: 1px solid var(--border-orange); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; font-size: 1.2rem; }
  .service-card h3 { font-size: 0.98rem; color: #fff; margin-bottom: 0.6rem; font-weight: 700; }
  .service-card p { color: #666; font-size: 0.86rem; line-height: 1.72; margin-bottom: 1rem; }
  .service-card ul { list-style: none; }
  .service-card ul li { color: var(--subtle); font-size: 0.8rem; padding: 0.25rem 0 0.25rem 1rem; position: relative; }
  .service-card ul li::before { content: '›'; position: absolute; left: 0; color: var(--orange); font-weight: 700; }

  /* CONTACT */
  #contact { background: var(--bg2); }
  .contact-box { margin-top: 3rem; max-width: 580px; }
  .contact-box p { color: #666; line-height: 1.85; margin-bottom: 2rem; font-size: 0.93rem; }
  .contact-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
  .ci { width: 38px; height: 38px; background: rgba(204,85,0,0.08); border: 1px solid var(--border-orange); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; flex-shrink: 0; }
  .contact-item a { color: var(--orange-bright); text-decoration: none; font-family: var(--mono); font-size: 0.85rem; }
  .contact-item a:hover { color: #fff; }

  /* FOOTER */
  footer { background: #050505; border-top: 1px solid var(--border); padding: 2rem 2.5rem; display: flex; align-items: center; justify-content: space-between; }
  .footer-logo img { display: block; height: 35px; width: auto; opacity: 0.3; }
  footer p { color: #2a2a2a; font-size: 0.75rem; font-family: var(--mono); }

  @media (max-width: 900px) { .services-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 680px) {
    /* The link row drops onto its own full-width line under the logo, collapsed
       until nav.js adds .open. It used to be display:none here, which left phones
       with no navigation at all beyond the logo. */
    nav { flex-wrap: wrap; padding: 0.9rem 1.25rem; }
    .nav-toggle { display: flex; }
    .nav-links {
      display: none; flex-basis: 100%; flex-direction: column; align-items: stretch;
      gap: 0; margin-top: 0.9rem; padding-top: 0.4rem; border-top: 1px solid var(--border);
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 0.7rem 0.5rem; font-size: 1.05rem; }
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .services-grid { grid-template-columns: 1fr; }
    footer { flex-direction: column; gap: 1rem; text-align: center; }
  }

/* ===== APPS & TOOLS (main-page grid) ===== */
#apps { background: var(--bg2); }
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-top: 3rem; }
.app-tile { background: var(--card); padding: 2rem 1.75rem; text-decoration: none; display: flex; flex-direction: column; transition: all 0.25s; position: relative; overflow: hidden; min-height: 235px; }
.app-tile::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--orange), transparent); opacity: 0; transition: opacity 0.3s; }
.app-tile.live:hover { background: #141414; transform: translateY(-3px); }
.app-tile.live:hover::before { opacity: 1; }
.app-tile-icon { width: 54px; height: 54px; border-radius: 10px; background: rgba(204,85,0,0.08); border: 1px solid var(--border-orange); display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; font-size: 1.5rem; }
.app-tile-icon img { width: 34px; height: 34px; object-fit: contain; }
.app-tile-name { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: 0.45rem; }
.app-tile-tag { color: var(--muted); font-size: 0.84rem; line-height: 1.6; flex: 1; }
.app-tile-status { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 1.15rem; }
/* Keeps a price phrase whole if the status line wraps, so it drops to the next
   line intact rather than splitting across two. */
.nowrap { white-space: nowrap; }
.app-tile.live .app-tile-status { color: var(--orange); }
/* Four-up variant for the index, now that there are four apps. Goes 4 -> 2 -> 1 so
   the tiles never get too narrow to read on a tablet. */
.apps-grid.four { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1100px) { .apps-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .apps-grid, .apps-grid.four { grid-template-columns: 1fr; } }

/* ===== RACK DETECTOR PAGE ===== */
.rd-hero { min-height: 84vh; display: flex; align-items: center; padding: 8rem 2rem 4rem; position: relative; overflow: hidden; background: var(--bg); }
.rd-hero-inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3.5rem; align-items: center; position: relative; z-index: 1; }
.rd-tagline { color: #cbcbcb; font-size: 1.08rem; line-height: 1.7; margin-bottom: 1.1rem; max-width: 520px; }
.rd-sub { color: var(--muted); font-family: var(--mono); font-size: 0.84rem; line-height: 1.85; margin-bottom: 2rem; max-width: 500px; }
.rd-elk { width: 100%; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 20px 60px rgba(0,0,0,0.55); display: block; }
.rd-buttons { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.rd-note { color: var(--subtle); font-size: 0.78rem; font-family: var(--mono); margin-top: 1rem; }
.video-wrap { position: relative; width: 100%; max-width: 860px; margin: 3rem auto 0; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #0a0a0a; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem; color: var(--muted); font-family: var(--mono); font-size: 0.85rem; }
.video-placeholder .play { width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--border-orange); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--orange); padding-left: 4px; }
.rd-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-top: 3rem; }
.price-callout { margin-top: 3rem; background: var(--card); border: 1px solid var(--border-orange); border-radius: 12px; padding: 2.5rem; text-align: center; position: relative; overflow: hidden; }
.price-callout::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--orange), transparent); }
.price-big { font-size: 3rem; font-weight: 900; color: #fff; line-height: 1; }
.price-big span { font-size: 1rem; color: var(--muted); font-weight: 600; }
.price-sub { color: var(--muted); font-size: 0.85rem; margin: 0.85rem 0 1.75rem; font-family: var(--mono); }
@media (max-width: 820px) { .rd-hero-inner { grid-template-columns: 1fr; } .rd-features-grid { grid-template-columns: 1fr; } .rd-elk { max-width: 340px; margin: 0 auto; } }

.rd-title { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900; color: #fff; letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 1.1rem; }
.rd-title span { color: var(--orange); }

/* ===== APP LANDING PAGES (rack-tracker.html + rack-scorer.html) =====
   The rt-* classes are shared by both mobile-app pages — phone-shaped screenshots,
   the privacy callout, and the screenshot carousel. Kept under the original prefix
   rather than renamed so both pages keep pointing at one set of rules. */
/* Phone screenshots are portrait, so unlike .rd-elk (a landscape photo) they need a
   width cap or they tower over the hero copy beside them. */
.rt-phone { display: block; width: 100%; max-width: 300px; margin: 0 auto; border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 20px 60px rgba(0,0,0,0.6); }

.rt-privacy { margin-top: 3rem; background: var(--card); border: 1px solid var(--border-orange); border-radius: 12px; padding: 2.5rem; position: relative; overflow: hidden; }
.rt-privacy::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--orange), transparent); }
.rt-privacy-lead { color: #cbcbcb; font-size: 1.02rem; line-height: 1.8; }
.rt-privacy-lead strong { color: #fff; }
.rt-privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2.5rem; margin-top: 2.25rem; }
.rt-privacy-item h4 { color: #fff; font-size: 0.95rem; font-weight: 800; margin-bottom: 0.4rem; }
.rt-privacy-item h4::before { content: '✓ '; color: var(--orange); font-weight: 700; }
.rt-privacy-item p { color: var(--muted); font-size: 0.86rem; line-height: 1.7; }

/* Screenshot carousel. The track is a native scroll-snap scroller so swipe works
   without JS; the buttons/dots below are enhancement. Three slides are visible on
   desktop and one on a phone. */
.rt-carousel { position: relative; margin-top: 3rem; }
.rt-car-track {
  display: flex; gap: 1.75rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 0.5rem 0 1rem;
  scrollbar-width: none;
}
.rt-car-track::-webkit-scrollbar { display: none; }
.rt-car-track:focus-visible { outline: 2px solid var(--orange); outline-offset: 6px; border-radius: 12px; }
.rt-car-slide { flex: 0 0 clamp(220px, 30%, 290px); margin: 0; scroll-snap-align: center; }
.rt-car-slide img { display: block; width: 100%; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 14px 40px rgba(0,0,0,0.5); background: #0a0a0a; }
.rt-car-slide figcaption { color: var(--muted); font-family: var(--mono); font-size: 0.74rem; line-height: 1.65; margin-top: 0.9rem; text-align: center; }

.rt-car-btn {
  position: absolute; top: 38%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: rgba(10,10,10,0.85); border: 1px solid var(--border-orange);
  color: var(--orange); font-size: 1.6rem; line-height: 1; padding-bottom: 4px;
  transition: background 0.2s, opacity 0.2s;
}
.rt-car-btn:hover:not(:disabled) { background: var(--orange); color: #fff; }
.rt-car-btn:disabled { opacity: 0.25; cursor: default; }
.rt-car-btn.prev { left: -10px; }
.rt-car-btn.next { right: -10px; }

.rt-car-nav { display: flex; align-items: center; justify-content: center; gap: 1.25rem; margin-top: 0.5rem; }
.rt-car-dots { display: flex; gap: 0.5rem; }
.rt-car-dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; cursor: pointer; border: 1px solid var(--border-orange); background: transparent; transition: background 0.2s, transform 0.2s; }
.rt-car-dot.active { background: var(--orange); transform: scale(1.25); }
.rt-car-count { color: var(--subtle); font-family: var(--mono); font-size: 0.72rem; }

@media (max-width: 900px) {
  .rt-car-slide { flex: 0 0 min(72vw, 300px); }
  .rt-car-btn.prev { left: -4px; }
  .rt-car-btn.next { right: -4px; }
}
@media (max-width: 680px) { .rt-privacy-grid { grid-template-columns: 1fr; } .rt-privacy { padding: 1.75rem; } }

/* ===== LEGAL / POLICY PAGES ===== */
/* Callout for the plain-language summary at the top of a policy page. */
.legal-summary { background: var(--card); border: 1px solid var(--border-orange); border-left-width: 3px; border-radius: 10px; padding: 1.75rem 2rem; margin-bottom: 2.5rem; }
.legal-summary h2 { font-size: 1.05rem; }
.legal-summary ul { margin-bottom: 0; }
.legal-summary li { color: #999; }

.legal { max-width: 780px; margin: 0 auto; padding: 9rem 2rem 5rem; position: relative; z-index: 1; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 900; color: #fff; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.legal .updated { color: var(--subtle); font-family: var(--mono); font-size: 0.78rem; margin-bottom: 2.5rem; }
.legal h2 { color: #fff; font-size: 1.15rem; font-weight: 800; margin: 2.25rem 0 0.75rem; }
.legal p, .legal li { color: #888; line-height: 1.85; font-size: 0.92rem; }
.legal ul { margin: 0.5rem 0 0.5rem 1.25rem; }
.legal li { margin-bottom: 0.5rem; }
.legal a { color: var(--orange-bright); text-decoration: none; }
.legal a:hover { color: #fff; }
.legal strong { color: #ccc; }
.footer-links a { color: #444; text-decoration: none; font-size: 0.75rem; font-family: var(--mono); }
.footer-links a:hover { color: var(--orange-bright); }

/* ---- IMAGE PREVIEW (lightbox.js) ----------------------------------------
   Click a content image to see it full size. The overlay is built on first use
   and reused, so pages with no clickable image never create one. */
.lb-zoom { cursor: zoom-in; }
.lb-overlay { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  padding: 3.5rem 1.5rem; background: rgba(0,0,0,0.93); }
/* The hidden attribute alone loses to display:flex above, so restate it. */
.lb-overlay[hidden] { display: none; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center;
  gap: 1rem; max-width: 100%; max-height: 100%; }
/* width/height auto means an image smaller than the viewport shows at its true size
   rather than being blown up, which is the whole point for a screenshot. */
.lb-img { display: block; width: auto; height: auto; max-width: 92vw; max-height: 84vh;
  border-radius: 10px; border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0,0,0,0.7); }
.lb-vid { display: block; width: auto; height: auto; max-width: 92vw; max-height: 84vh;
  border-radius: 10px; border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0,0,0,0.7); }
.lb-img[hidden], .lb-vid[hidden] { display: none; }
.lb-cap { color: var(--muted); font-family: var(--mono); font-size: 0.76rem;
  line-height: 1.65; text-align: center; max-width: 760px; }
.lb-close { position: absolute; top: 1.1rem; right: 1.4rem; width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center; border-radius: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border); color: #ddd;
  font-size: 1.6rem; line-height: 1; cursor: pointer; transition: all 0.2s; }
.lb-close:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: var(--orange); }
html.lb-open { overflow: hidden; }

/* ---- DEMO VIDEO TABS (videotabs.js) -------------------------------------
   One player, topics as buttons above it. The stage reuses .video-wrap, so the
   frame matches the single-video sections on the other pages. */
.vtab-row { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 2.5rem; }
.vtab { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted); background: transparent;
  border: 1px solid var(--border); border-radius: 6px; padding: 0.6rem 1.05rem;
  cursor: pointer; transition: all 0.2s; }
.vtab:hover { color: #fff; border-color: rgba(255,255,255,0.2); }
.vtab.is-on { color: #fff; border-color: var(--border-orange); background: rgba(204,85,0,0.10); }
.vtabs .video-wrap { margin-top: 1.35rem; background-size: cover; background-position: center; }
/* Dim the frame so the play control and label stay legible over a bright
   screenshot: several of these thumbnails are sunlit meadows. */
.vtabs .video-wrap.has-thumb .video-placeholder { background: rgba(6,6,6,0.58); color: #e9e9e9; }
.vtabs .video-wrap.has-thumb .play { background: rgba(6,6,6,0.45); border-color: var(--orange); color: #fff; }
.vtabs .video-wrap[data-ready="yes"] { cursor: pointer; }
.vtabs .video-wrap[data-ready="yes"]:hover .play { border-color: var(--orange); color: var(--orange-bright); }
.vtab-cap { color: var(--muted); font-family: var(--mono); font-size: 0.78rem;
  line-height: 1.7; text-align: center; max-width: 720px; margin: 1.1rem auto 0; }
