.app {
    --ink: #17181a;
    --ink-soft: #6b6a67;
    --canvas: #ffffff;
    --surface: #f9f8f7;
    --border: #e6e5e3;
    --dot: #d9d7d3;
  }

  :where(.app), :where(.app) *{ box-sizing: border-box; }

  /* 2026-08-27: html,body background/color removed — this module now shares
     the live page with other shortcode modules, and a global html,body rule
     repaints the ENTIRE page. All of this module's own styling now lives on
     .app itself, which already wraps all of this module's markup. */
  .app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    background: var(--canvas);
    color: var(--ink);
    font-family: "Poppins", -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  }

  /* ---------- Top navigation / pillar switcher ---------- */

  .pillar-nav {
    display: flex;
    width: 100%;
    height: 165px; /* laptop/desktop */
    flex-shrink: 0;
  }

  .tab {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    cursor: pointer;
    border: none;
    padding: 0;
    background: #000;
    font: inherit;
    color: inherit;
    text-align: center;
  }

  .tab + .tab {
    border-left: 1px solid rgba(255, 255, 255, 0.14);
  }

  .tab:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
  }

  .tab-poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Always-visible dimmed still frame for every tab; the live video (below)
       fades in on top of this once a tab becomes active, and fades back out
       to reveal this same still frame the instant it stops being active --
       so an inactive tab never goes fully black or shows any paused-player
       chrome, it just settles back to a quiet dimmed photo. */
    filter: brightness(0.62) saturate(0.95);
    transition: filter 0.45s ease;
  }

  .tab.is-active .tab-poster {
    filter: brightness(0.88) saturate(1.05);
  }

  .tab-video {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Oversized + centered, then cropped by .tab's overflow: hidden. Bunny's
       player letterboxes/pillarboxes a clip whose aspect ratio doesn't match
       this very wide, short nav-tab box; scaling the iframe itself up (with
       the crop centered) pushes that letterboxing outside the visible area
       so the clip reads as a full-bleed "cover" fill instead of "fit". */
    width: 220%;
    height: 220%;
    transform: translate(-50%, -50%);
    border: 0;
    /* The iframe only ever shows a passive background clip; letting clicks
       and hovers fall through to the real <button> underneath keeps our own
       hover/click/keyboard handling in charge of switching slides. */
    pointer-events: none;
    opacity: 0;
    filter: brightness(0.62) saturate(0.95);
    transition: opacity 0.3s ease, filter 0.45s ease;
  }

  .tab-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.28) 0%, rgba(10, 10, 10, 0.58) 100%);
    transition: background 0.45s ease;
  }

  .tab.is-active .tab-video {
    /* Only the active tab's clip is ever shown -- inactive clips are paused
       (via the Player.js control script below) and faded to opacity: 0 at
       the same time, revealing the dimmed .tab-poster still frame
       underneath instead of any paused-state poster/play-button UI. */
    opacity: 1;
    filter: brightness(0.88) saturate(1.05);
  }

  .tab.is-active .tab-overlay {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.1) 0%, rgba(10, 10, 10, 0.42) 100%);
  }

  .tab-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 16px 24px;
  }

  .tab-title {
    margin: 0;
    font-family: "Poppins", Arial, sans-serif;
    font-weight: 500;
    font-size: clamp(16px, 2.4vw, 30px);
    line-height: 30px;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.82);
    transition: color 0.4s ease;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .tab.is-active .tab-title {
    color: #ffffff;
  }

  .tab-subtitle {
    margin-top: 4px;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 17px;
    font-weight: 400;
    letter-spacing: 0;
    opacity: 0.65;
    color: #ffffff;
  }

  .tab-chevron {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    opacity: 0.75;
    z-index: 1;
  }

  @media (prefers-reduced-motion: reduce) {
    .tab-video { transition: none !important; }
  }

  /* ---------- Content panels (fade-switched) ---------- */

  .content-area {
    position: relative;
    flex: 1 1 auto;
    min-height: 440px;
    background: var(--canvas);
  }

  .panels {
    position: absolute;
    inset: 0;
  }

  .panel {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    padding: 64px 64px 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
  }

  .panel.is-active {
    opacity: 1;
    pointer-events: auto;
  }

  .panel-left {
    display: flex;
    align-items: flex-start;
    gap: 28px;
  }

  .dot-grid {
    flex: 0 0 auto;
    width: 56px;
    height: 132px;
    background-image: radial-gradient(circle, var(--dot) 1.4px, transparent 1.6px);
    background-size: 12px 12px;
  }

  .panel-left-body { max-width: 360px; }

  .kicker {
    margin: 0 0 18px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink-soft);
  }

  .handle-list {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .handle-list li {
    font-family: "Poppins", Arial, sans-serif;
    font-size: 25px;
    line-height: 30px;
    font-weight: 400;
    letter-spacing: 0;
    color: #000000;
  }

  .panel-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: right;
  }

  .panel-right-body { max-width: 420px; }

  .panel-right .kicker { color: var(--ink-soft); }

  .panel-copy {
    margin: 0;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 16px;
    line-height: 30px;
    font-weight: 400;
    letter-spacing: 0;
    color: #000000;
  }

  .intro-line {
    width: 100%;
    flex-shrink: 0;
    margin: 0;
    text-align: center;
    font-style: italic;
    font-size: 13px;
    color: var(--ink-soft);
    padding: 40px 24px;
    background: var(--canvas);
  }

  /* ---------- Responsive ---------- */

  @media (max-width: 1024px) {
    /* Tablet */
    .pillar-nav { height: 125px; min-height: 0; }
    .tab { min-height: 0; }
    .tab-title { font-size: 20px; line-height: 22px; }
    .tab-content { padding: 12px 12px 26px; }
    .tab-subtitle { font-size: 12px; margin-top: 2px; }
    .tab-chevron { bottom: 6px; width: 12px; height: 12px; }

    .panel {
      grid-template-columns: 1fr;
      align-content: start;
      padding: 32px 24px 40px;
      gap: 28px;
      overflow-y: auto;
    }

    .panel-left { align-items: flex-start; }
    .dot-grid { display: none; }
    .panel-right { align-items: flex-start; text-align: left; }
    .handle-list li { font-size: 18px; }
  }

  @media (max-width: 640px) {
    /* Mobile */
    .pillar-nav { height: 58px; }
    .tab-title { font-size: 12px; line-height: 14px; }
    .tab-content { padding: 2px 4px 4px; }
    .tab-subtitle { font-size: 7px; margin-top: 1px; }
    .tab-chevron { bottom: 1px; width: 7px; height: 7px; }
  }
