/* ============================================================
   HOME PAGE HERO GALLERY
   GENERATED by scripts/build-hero-gallery.mjs from public/v4/v4.css.
   Do not edit by hand - edit v4.css and re-run the script.

   Every rule is scoped under #lb-hero because v2.css owns the global
   .container / .nav / .logo / .h1 / .foot-* names.
   ============================================================ */
/* ============================================================
   LOGICAL BOOST — v4 (variation B)
   Built to the approved references in _handoff/.

   LAYERS, kept strictly separate:
     .room      architectural plate (image only, no text/artwork)
     .gallery-head   real HTML headline over the room
     .deck/.card     artwork in thin metal frames, moving in 3D
     .card-reflect   per-card floor reflection, clipped + faded
     .tabs-wrap      selector in normal flow
     .panels         campaign panel in normal flow

   Do NOT reintroduce CSS light cones or a flat black stage: the
   room plate supplies the lighting and depth.
   ============================================================ */
#lb-hero {
  --bg: #0a0d0c;
  --elev: #111614;
  --card: #151a18;
  --ink: #f0ebe1;
  --ink-dim: #b9bfb9;
  --ink-mute: #7d867f;
  --line: #2d3530;
  --emerald: #10b981;
  --emerald-br: #34d399;
  --emerald-dim: #3f7a66;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 54px;
}
#lb-hero * { box-sizing: border-box; }
#lb-hero img { max-width: 100%; display: block; }
#lb-hero button { font: inherit; color: inherit; }
#lb-hero a { color: inherit; text-decoration: none; }
#lb-hero .container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 clamp(16px, 2.6vw, 34px); }
#lb-hero :focus-visible, #lb-hero:focus-visible { outline: 2px solid var(--emerald-br); outline-offset: 3px; border-radius: 8px; }
/* ---------- buttons ---------- */
#lb-hero .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
#lb-hero .btn--primary { background: var(--emerald-br); color: #06231a; padding: 12px 22px; font-size: 15px; box-shadow: 0 8px 24px rgba(16,185,129,0.26); }
#lb-hero .btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(16,185,129,0.38); }
#lb-hero .btn--sm { padding: 8px 16px; font-size: 13.5px; }
#lb-hero .btn--lg { padding: 13px 24px; font-size: 15.5px; }
/* ============================================================
   LAYER 1 — the room
   ============================================================ */
#lb-hero .gallery { position: relative; isolation: isolate; padding-bottom: 0; }
#lb-hero .room { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
#lb-hero .room-img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
/* Dark overlay belongs to the ROOM, not across the carousel. */
#lb-hero .room-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,13,12,0.9) 0%, rgba(10,13,12,0.46) 22%, rgba(10,13,12,0.12) 44%, rgba(10,13,12,0.0) 62%),
    linear-gradient(180deg, transparent 70%, rgba(10,13,12,0.82) 100%);
}
/* ============================================================
   LAYER 2 — headline over the quiet top of the room
   ============================================================ */
#lb-hero .gallery-head { position: relative; z-index: 3; text-align: center; padding: calc(var(--nav-h) + 6px) clamp(14px, 2.4vw, 26px) 0; }
#lb-hero .h1 {
  font-family: var(--sans); font-weight: 600; font-style: normal;
  font-size: clamp(30px, 4.6vw, 66px);
  line-height: 1.02; letter-spacing: -0.04em;
  max-width: none; margin: 0 auto clamp(16px, 1.8vw, 30px);
  text-shadow: 0 4px 34px rgba(0,0,0,0.75);
}
#lb-hero .h1 em { font-style: normal; color: var(--emerald-br); }
/* Small lead-in above the three display lines. */
#lb-hero .h1-kicker {
  display: block;
  font-size: clamp(13px, 1.05vw, 16px); font-weight: 500;
  letter-spacing: 0.02em; line-height: 1.2;
  color: var(--ink-dim);
  margin-bottom: clamp(6px, 0.8vw, 11px);
}
#lb-hero .pitch { padding: clamp(34px, 4.6vw, 72px) 0 clamp(30px, 4vw, 60px); border-top: 1px solid var(--line); }
#lb-hero .pitch .container { text-align: center; }
#lb-hero .pitch-line {
  font-family: var(--sans); font-weight: 600;
  font-size: clamp(30px, 4.4vw, 68px);
  line-height: 1.06; letter-spacing: -0.038em;
  color: var(--ink); max-width: 20ch;
  margin: 0 auto clamp(28px, 3.4vw, 50px);
}
#lb-hero .pitch-line em { font-style: normal; color: var(--emerald-br); }
#lb-hero .stats {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(20px, 3vw, 46px);
  margin: 0 auto;
}
#lb-hero .stat { display: flex; align-items: baseline; gap: 8px; }
/* Italic Instrument Serif against the tight sans headline: the contrast is
   what makes this read as considered rather than generic. */
#lb-hero .stat-fig {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(26px, 2.6vw, 42px); line-height: 1;
  color: var(--ink); letter-spacing: 0.005em;
}
#lb-hero .stat-lab {
  font-size: clamp(11.5px, 0.95vw, 14px); font-weight: 500;
  color: var(--ink-mute); letter-spacing: 0.01em; white-space: nowrap;
}
#lb-hero .stat-rule { width: 1px; height: 34px; background: var(--line); flex: none; }
/* ============================================================
   LAYER 3 + 4 — cards and reflections
   ============================================================ */
#lb-hero .stage {
  position: relative; z-index: 2;
  margin-top: clamp(4px, 0.6vw, 9px);
  /* --ch is the frame HEIGHT; --ar is the creative's true aspect ratio. */
  --ar: 1.475;
  --ch: clamp(132px, 19vh, 210px);
  height: calc(var(--ch) * 1.21);
  perspective: 1500px;
  perspective-origin: 50% 46%;
}
#lb-hero .deck { position: absolute; inset: 0; transform-style: preserve-3d; }
#lb-hero .stage { cursor: grab; }
#lb-hero .stage.is-dragging { cursor: grabbing; }
#lb-hero .stage.is-dragging .card { cursor: grabbing; }
/* Kill text/image selection while throwing frames around. */
#lb-hero .stage.is-dragging, #lb-hero .stage.is-dragging * { user-select: none; -webkit-user-select: none; }
#lb-hero .card-art, #lb-hero .card-reflect img { -webkit-user-drag: none; user-drag: none; pointer-events: none; }
#lb-hero .card {
  position: absolute; top: 46%; left: 50%; margin: 0;
  width: calc(var(--ch) * var(--ar));
  transform:
    translate(-50%, -50%)
    translateX(var(--x, 0px)) translateY(var(--y, 0%)) translateZ(var(--z, 0px))
    rotateY(var(--ry, 0deg)) scale(var(--s, 1));
  opacity: var(--o, 1);
  /* Restrained recession: neighbours stay legible (handoff). */
  filter: brightness(var(--b, 0.86));
  /* NO transform transition: the spring in v4.js sets the pose every
     frame, and a transition here would lag and smear it. */
  cursor: pointer;
  will-change: transform, opacity;
  backface-visibility: hidden;
}
#lb-hero .card.is-active { cursor: default; }
#lb-hero .card[aria-hidden="true"] { pointer-events: none; }
/* Thin dark metal frame. */
#lb-hero .card-frame {
  position: relative; padding: 6px; border-radius: 2px;
  background:
    linear-gradient(148deg, #5b635d 0%, #262d29 14%, #121716 46%, #2c3430 84%, #161b19 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.09),
    inset 0 0 0 6px rgba(0,0,0,0.5),
    0 24px 44px rgba(0,0,0,0.7),
    0 4px 12px rgba(0,0,0,0.6);
  transition: box-shadow 0.45s var(--ease);
}
#lb-hero .card.is-active .card-frame {
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.2),
    inset 0 0 0 6px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.16),
    0 40px 74px rgba(0,0,0,0.85),
    0 10px 24px rgba(0,0,0,0.6);
}
/* contain: never crop the creative (handoff). */
#lb-hero .card-art { width: 100%; height: var(--ch); object-fit: cover; background: #0b0e0d; display: block; }
#lb-hero .card-frame picture { display: block; }
#lb-hero .deck-note {
  position: relative; z-index: 3; text-align: center;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
  color: #5c655f; margin: 6px 0 0;
}
#lb-hero .deck-note-swipe { display: none; }
#lb-hero .deck-note-swipe::after { content: ' ·'; }
/* Reflection: derived from the card, clipped to a short floor band. */
#lb-hero .card-reflect {
  position: absolute; left: 0; right: 0; top: calc(var(--ch) + 10px);
  height: calc(var(--ch) * 0.17);
  overflow: hidden; pointer-events: none;
  opacity: 0.2;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.85), transparent 92%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,0.85), transparent 92%);
}
#lb-hero .card-reflect picture { display: block; }
#lb-hero .card-reflect img {
  width: 100%; height: var(--ch);
  object-fit: cover; transform: scaleY(-1); transform-origin: top; margin-top: 0;
  filter: blur(1px);
}
/* ---------- arrows + dots ---------- */
#lb-hero .arrow {
  position: absolute; top: 44%; transform: translateY(-50%); z-index: 9;
  width: clamp(40px, 3.2vw, 52px); aspect-ratio: 1; border-radius: 50%;
  background: rgba(14,19,17,0.5); border: 1px solid rgba(255,255,255,0.3); color: #fff;
  font-size: clamp(20px, 1.9vw, 26px); line-height: 1; display: grid; place-items: center; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
#lb-hero .arrow:hover { background: rgba(16,185,129,0.3); border-color: var(--emerald-br); transform: translateY(-50%) scale(1.07); }
#lb-hero .arrow--prev { left: clamp(8px, 2.2vw, 40px); }
#lb-hero .arrow--next { right: clamp(8px, 2.2vw, 40px); }
#lb-hero .dots { position: relative; z-index: 3; display: none; justify-content: center; gap: 6px; margin-top: 2px; }
#lb-hero .dot { width: 6px; height: 6px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,0.3); cursor: pointer; transition: background 0.25s, transform 0.25s; }
#lb-hero .dot.is-active { background: var(--emerald-br); transform: scale(1.35); }
#lb-hero .swipe-hint { display: none; position: relative; z-index: 3; text-align: center; font-size: 15px; color: var(--ink); opacity: 0.85; margin: 10px 0 0; }
/* ============================================================
   LAYER 5 — industry selector
   ============================================================ */
#lb-hero .tabs-wrap { position: relative; z-index: 6; background: var(--bg); padding: 4px 0 5px; margin-top: -2px; }
#lb-hero .tabs { display: flex; justify-content: center; align-items: center; gap: clamp(8px, 1.5vw, 26px); max-width: 1360px; margin: 0 auto; padding: 0 clamp(16px, 2.6vw, 34px); }
#lb-hero .tab {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; border-radius: 4px;
  padding: 3px 2px; cursor: pointer; white-space: nowrap;
  font-size: clamp(11.5px, 0.88vw, 13px); font-weight: 500; color: #6a726c;
  transition: color 0.2s;
}
#lb-hero .tab-dot { width: 7px; height: 7px; border-radius: 2px; border: 1.5px solid currentColor; flex: none; transition: background 0.2s, border-color 0.2s; }
#lb-hero .tab:hover { color: #9aa39c; }
#lb-hero .tab.is-active { color: #d7dcd7; font-weight: 600; }
#lb-hero .tab.is-active .tab-dot { background: #9aa39c; border-color: #9aa39c; box-shadow: none; }
/* ============================================================
   LAYER 6 — campaign panel
   ============================================================ */
#lb-hero .panels { padding: 0 0 clamp(24px, 3vw, 44px); }
#lb-hero .panel {
  border: 1px solid var(--line); border-radius: 16px; background: var(--elev);
  padding: clamp(16px, 1.7vw, 26px);
  box-shadow: 0 20px 44px rgba(0,0,0,0.5);
  animation: lb-panelIn 0.4s var(--ease) both;
}
@keyframes lb-panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* ~44% scope / ~56% previews (handoff). */
#lb-hero .panel-grid { display: grid; grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); gap: clamp(16px, 2.2vw, 34px); align-items: center; }
#lb-hero .panel-eyebrow { font-family: var(--sans); font-size: clamp(10.5px, 0.78vw, 12px); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--emerald-br); margin-bottom: 7px; }
#lb-hero .panel-head { font-family: var(--sans); font-weight: 600; font-size: clamp(19px, 1.65vw, 25px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 clamp(10px, 1.1vw, 14px); }
#lb-hero .panel-head em { font-style: normal; color: var(--emerald-br); }
#lb-hero .scope-list { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(7px, 0.75vw, 10px); }
#lb-hero .scope-list li { display: flex; align-items: center; gap: 9px; font-size: clamp(12px, 0.88vw, 13.5px); font-weight: 400; color: var(--ink-dim); }
#lb-hero .scope-ico { flex: none; width: 16px; height: 16px; color: var(--ink-mute); }
#lb-hero .scope-ico svg { width: 100%; height: 100%; }
/* ---------- the matching landing page ---------- */
#lb-hero .panel-page { margin: 0; position: relative; }
#lb-hero .panel-page img {
  width: 100%; height: auto; display: block;
  /* No height cap: cropping it hid a third of the page, which is the one
     thing this box exists to show. */
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 44px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.07);
}
#lb-hero .panel-page figcaption {
  margin: 0 0 8px; text-align: left;
  font-size: clamp(11px, 0.85vw, 13px); font-weight: 700;
  color: var(--emerald-br); letter-spacing: 0.1em; text-transform: uppercase;
}
#lb-hero .panel-btn { margin-top: clamp(12px, 1.4vw, 18px); }
/* ---------- desktop: cap the landing-page height ----------
   At full column width the screenshot ran 406px against a 172px text column,
   which read as lopsided. Capping the HEIGHT with width:auto scales it down
   proportionally, so nothing is cropped, and `grid-template-columns: auto 1fr`
   lets the text reclaim the width the image gives up. */
@media (min-width: 901px) {
#lb-hero .panel-grid { grid-template-columns: auto minmax(0, 1fr); }
#lb-hero .panel-page { width: fit-content; }
#lb-hero .panel-page img {
    width: auto; height: auto;
    max-width: 100%;
    max-height: clamp(210px, 27vh, 300px);
  }
}
/* ============================================================
   RESPONSIVE — mobile reference: one centred artwork ~65-75vw
   with visible neighbouring slivers, tabs scroll horizontally.
   ============================================================ */
@media (max-width: 900px) {
#lb-hero .panel-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 760px) {
#lb-hero { --nav-h: 60px; }
#lb-hero .room-img { object-position: center 58%; }
#lb-hero .h1 { font-size: clamp(27px, 7.9vw, 36px); max-width: none; }
#lb-hero .h1-kicker { font-size: 13px; margin-bottom: 5px; }
#lb-hero .swipe-hint { display: block; }
#lb-hero .pitch-line { font-size: clamp(27px, 8vw, 36px); max-width: 15ch; }
#lb-hero .stats { gap: 14px; margin-top: 10px; }
#lb-hero .stat-fig { font-size: 19px; }
#lb-hero .stat-lab { font-size: 10px; }
#lb-hero .stage { --ch: clamp(128px, 44vw, 190px); height: calc(var(--ch) * 1.17); perspective: 900px; }
#lb-hero .deck-note-swipe { display: inline; }
#lb-hero .arrow { display: none; }
#lb-hero .dots { display: flex; }
#lb-hero .card-tag { font-size: 10px; }
#lb-hero .tabs-wrap { padding: 6px 0 7px; }
#lb-hero .tabs { justify-content: flex-start; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
#lb-hero .tabs::-webkit-scrollbar { display: none; }
#lb-hero .tab {
    flex: none; padding: 6px 13px; border-radius: 6px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  }
#lb-hero .tab .tab-dot { display: none; }
#lb-hero .tab.is-active { background: rgba(255,255,255,0.1); border-color: #4d5852; color: #e2e7e2; }
#lb-hero .panel { padding: 20px; border-radius: 14px; }
#lb-hero .panel-head { font-size: clamp(20px, 5.6vw, 25px); }
#lb-hero .scope-list li { font-size: clamp(12.5px, 3.5vw, 14px); }
}
@media (max-width: 420px) {
#lb-hero .container { padding: 0 14px; }
#lb-hero .panel { padding: 16px; }
}
/* ---------- short desktops / laptops ----------
   A 1024x768 or 1280x720 screen is wide enough for the two-column panel but
   not tall enough for full-size type, so trim the headline and frames rather
   than letting the panel fall past the fold. */
@media (min-width: 901px) and (max-height: 820px) {
#lb-hero .h1 { font-size: clamp(30px, 3.2vw, 44px); }
#lb-hero .pitch-line { font-size: clamp(26px, 3.4vw, 42px); }
#lb-hero .stage { --ch: clamp(110px, 15.5vh, 160px); }
#lb-hero .panel { padding: clamp(13px, 1.3vw, 19px); }
#lb-hero .panel-head { font-size: clamp(23px, 2.1vw, 31px); margin-bottom: 11px; }
#lb-hero .scope-list { gap: 8px; }
#lb-hero .scope-list li { font-size: 14px; }
#lb-hero .tabs-wrap { padding: 6px 0 7px; }
#lb-hero .stats { margin-top: 7px; }
#lb-hero .deck-note { margin-top: 4px; }
}
/* ---------- short viewports ----------
   Height-aware, not width-aware: a 375x667 phone and a 390x844 phone are the
   same width but need different headline sizes. */
@media (max-height: 760px) and (max-width: 760px) {
#lb-hero .h1 { font-size: clamp(24px, 7vw, 31px); }
#lb-hero .pitch-line { font-size: 26px; }
#lb-hero .stats { margin-top: 6px; gap: 12px; }
#lb-hero .stage { --ch: clamp(120px, 42vw, 170px); }
}
@media (max-height: 600px) and (max-width: 760px) {
#lb-hero .h1 { font-size: 23px; }
#lb-hero .pitch-line { font-size: 20px; }
#lb-hero .stage { --ch: clamp(112px, 40vw, 152px); }
}
/* Landscape phones: very short, so trim the headline block hard. */
@media (max-height: 460px) and (orientation: landscape) {
#lb-hero .gallery-head { padding-top: calc(var(--nav-h) - 4px); }
#lb-hero .h1 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 2px; }
#lb-hero .pitch-line { font-size: 20px; }
#lb-hero .stats { display: none; }
#lb-hero .stage { --ch: clamp(90px, 15vh, 128px); }
}
/* ---------- very narrow phones ----------
   Below ~360px the two preview tiles fall under 150px each and their body
   text stops being legible, so stack them. */
@media (max-width: 359px) {
#lb-hero .tabs { gap: 6px; }
#lb-hero .tab { padding: 8px 13px; font-size: 12.5px; }
#lb-hero .panel { padding: 13px; }
#lb-hero .scope-list li { font-size: 14px; gap: 9px; }
}
/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
#lb-hero .btn, #lb-hero .arrow, #lb-hero .card-frame { transition-duration: 0.01ms !important; }
#lb-hero .panel { animation: none; }
}


/* ---------- home-page integration ----------
   1. v2.css applies  section { padding: clamp(90px,12vw,170px) 0 }  to EVERY
      section, and .gallery / .panels are sections, so both inherit ~170px of
      vertical padding that does not exist on the standalone /v4/ page.
   2. The home page's nav is fixed and taller than the /v4/ one, so the
      headline needs more clearance.
   ---------------------------------------------------------------- */
#lb-hero { --nav-h: 78px; }
#lb-hero .gallery { padding: 0; }
#lb-hero .panels { padding-top: 0; }
