/* playbooks: six volumes, two rows of three, set as an engineered index. Hairlines, numerals, one bulb each. No boxes. */
#playbooks { min-height: 110vh; min-height: 110svh; display: flex; align-items: center; padding: clamp(96px, 14vh, 150px) var(--pad); }
#playbooks .pb-in { width: 100%; max-width: 1560px; margin: 0 auto; }

#playbooks .pb-head { margin-bottom: clamp(36px, 7vh, 80px); }
#playbooks .pb-title { font-size: clamp(44px, 5.6vw, 96px); letter-spacing: -0.04em; }
#playbooks .pb-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .16em; margin-bottom: -.16em; }
#playbooks .pb-mask > b { display: inline-block; font-weight: inherit; will-change: transform; }
#playbooks .pb-sub { margin-top: clamp(10px, 1.6vh, 18px); color: var(--soft); }

#playbooks .pb-set { position: relative; }
#playbooks .pb-line { position: absolute; left: 0; right: 0; height: 1px; background: var(--line); transform: scaleX(var(--p, 1)); transform-origin: 0 50%; pointer-events: none; overflow: hidden; }
#playbooks .pb-top { top: 0; background: rgba(255, 255, 255, .34); }
#playbooks .pb-bot { bottom: 0; }
#playbooks .pb-light { position: absolute; left: 0; top: 0; width: 20%; height: 1px; opacity: 0; will-change: transform;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 55%, rgba(255, 255, 255, 0)); }

#playbooks .pb-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, auto auto 1fr auto); }
#playbooks .pb-item {
  position: relative; display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0;
  padding: clamp(28px, 5vh, 52px) clamp(20px, 2.6vw, 48px); color: inherit;
}
#playbooks .pb-item:nth-child(3n+1) { padding-left: 0; }
#playbooks .pb-item:nth-child(3n) { padding-right: 0; }
#playbooks .pb-sep { position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--line); transform: scaleY(var(--p, 1)); transform-origin: 50% 0; }
#playbooks .pb-item:nth-child(3n+1) .pb-sep { display: none; }
#playbooks .pb-item:nth-child(n+4)::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }

#playbooks .pb-num { display: flex; align-items: center; gap: 12px; margin-bottom: clamp(18px, 3.4vh, 34px); }
#playbooks .pb-n { font-size: 17px; font-weight: 600; letter-spacing: 0; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; color: var(--soft); line-height: 1; }
#playbooks .pb-bulb { width: 7px; height: 7px; border-radius: 50%; background: var(--bulb); flex: none; }
#playbooks .pb-item[data-c="r"] .pb-bulb { background: var(--bulb-red); }
#playbooks .pb-item[data-c="c"] .pb-bulb { background: var(--bulb-cyan); }

#playbooks .pb-t { font-size: clamp(26px, 2.5vw, 42px); letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
#playbooks .pb-d { margin-top: clamp(12px, 2vh, 20px); font-size: clamp(17px, 1.3vw, 22px); line-height: 1.35; max-width: 30ch; text-wrap: pretty; }
#playbooks .pb-st { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: clamp(26px, 5vh, 52px); font-size: 15px; font-weight: 500; color: var(--mute); line-height: 1.2; }
#playbooks .pb-go { display: none; font-size: 22px; font-weight: 600; color: var(--ink); line-height: 1; transition: transform .6s var(--spring); }

/* once a link is filled in: the whole volume is one anchor */
#playbooks a.pb-item { cursor: pointer; }
#playbooks a.pb-item .pb-soon { display: none; }
#playbooks a.pb-item .pb-go { display: inline-block; }
#playbooks a.pb-item .pb-st { justify-content: flex-end; }
#playbooks a.pb-item .pb-t { background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 2px no-repeat; transition: background-size .7s cubic-bezier(.7, 0, .2, 1); width: fit-content; padding-bottom: .06em; }
#playbooks a.pb-item:hover .pb-t, #playbooks a.pb-item:focus-visible .pb-t { background-size: 100% 2px; }
#playbooks a.pb-item:hover .pb-go, #playbooks a.pb-item:focus-visible .pb-go { transform: translate(3px, -3px); }
#playbooks a.pb-item:focus-visible { outline: 1px solid var(--ink); outline-offset: 6px; }

@media (max-width: 1100px) {
  #playbooks .pb-item { padding-left: clamp(16px, 2.2vw, 28px); padding-right: clamp(16px, 2.2vw, 28px); }
  #playbooks .pb-item:nth-child(3n+1) { padding-left: 0; }
  #playbooks .pb-item:nth-child(3n) { padding-right: 0; }
  #playbooks .pb-t { font-size: clamp(22px, 2.9vw, 30px); }
  #playbooks .pb-d { font-size: 16px; }
}

/* phones and narrow tablets: three rows, separated by horizontal hairlines, content driven height */
@media (max-width: 820px) {
  #playbooks { min-height: 0; display: block; padding-top: clamp(84px, 12vh, 110px); padding-bottom: clamp(64px, 10vh, 100px); }
  #playbooks .pb-head { margin-bottom: 30px; }
  #playbooks .pb-title { font-size: clamp(40px, 12.4vw, 68px); }
  #playbooks .pb-sub { font-size: 19px; }
  #playbooks .pb-list { display: block; }
  #playbooks .pb-item { display: block; padding: 22px 0 24px; }
  #playbooks .pb-item:nth-child(n+4)::before { display: none; }
  #playbooks .pb-item:first-child .pb-sep { display: none; }
  #playbooks .pb-item:nth-child(n+2) .pb-sep { display: block; }
  #playbooks .pb-item:nth-child(3n+1) { padding-left: 0; }
  #playbooks .pb-item:nth-child(3n) { padding-right: 0; }
  #playbooks .pb-sep { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1px; transform: scaleX(var(--p, 1)); transform-origin: 0 50%; }
  #playbooks .pb-num { margin-bottom: 12px; }
  #playbooks .pb-t { font-size: clamp(25px, 7.2vw, 34px); }
  #playbooks .pb-d { margin-top: 8px; font-size: 16px; line-height: 1.4; max-width: 36ch; }
  #playbooks .pb-st { margin-top: 14px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) { #playbooks a.pb-item .pb-go, #playbooks a.pb-item .pb-t { transition: none; } }
