/* hero-stats.css — hero corkboard collage + sliding background, and the stat strip below it */

  /* ---------------- hero: corkboard collage, not a 50/50 template grid ---------------- */
  .hero { position: relative; overflow: hidden; background: var(--board); padding: 64px 0 100px; }
  .hero .wrap { position: relative; z-index: 2; }

  /* static photo backdrop, heavily tinted -- a hint of a real office, not a
     competing image; the headline/body text sit directly on top of it, so
     legibility comes first and the photo stays firmly secondary. The photo
     itself is desaturated first: its saturated blue sky fought the warm
     board/paper palette even under a heavy tint, landing as a patchy cool
     cast in places instead of matching the page's warm ink/board colors. */
  .hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
  .hero-bg-slide {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    filter: saturate(.12) sepia(.2) brightness(1.08);
  }
  .hero-bg-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
      linear-gradient(150deg, rgba(236,228,211,.85) 0%, rgba(236,228,211,.76) 45%, rgba(236,228,211,.85) 100%);
  }

  /* running man, fleeing the question marks — placed in the open sky area to the
     right of the headline, above the corkboard row. shake+bounce conveys hurry. */
  .hero-run { position: absolute; top: 4px; right: 5%; width: 190px; pointer-events: none; z-index: 3; }
  .hero-run img { display: block; width: 100%; animation: hero-run-shake .5s ease-in-out infinite; }
  @keyframes hero-run-shake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    20% { transform: translate(-4px, -7px) rotate(-3deg); }
    40% { transform: translate(3px, -2px) rotate(2deg); }
    60% { transform: translate(-3px, -6px) rotate(-2deg); }
    80% { transform: translate(4px, -1px) rotate(3deg); }
  }
  @media (prefers-reduced-motion: reduce) { .hero-run img { animation: none; } }
  @media (min-width: 769px) and (max-width: 935px) { .hero-run { width: 300px; } }
  @media (min-width: 936px) { .hero-run { width: 418px; } }
  @media (max-width: 768px) {
    .hero-run { position: static; width: 300px; margin: 0 auto 24px; top: auto; right: auto; }
  }
  @media (max-width: 400px) {
    .hero-run { width: 200px; }
  }

  .hero-head { max-width: 640px; margin-bottom: 56px; }
  h1.hero-h {
    font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; color: var(--ink); line-height: 1.32;
    letter-spacing: -.01em; text-wrap: balance;
  }
  .hero-h .mark {
    background: linear-gradient(transparent 62%, var(--yellow) 62%); padding: 0 2px;
  }
  .hero-sub { font-size: 15.5px; line-height: 1.9; max-width: 48ch; margin: 22px 0 30px; }
  .hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

  .board {
    position: relative; min-height: 380px;
  }
  .board-notes { display: contents; }
  .board .note { position: absolute; width: 235px; transition: transform .25s ease, box-shadow .25s ease; }
  .board .n1 { top: 0; left: 2%; transform: rotate(-4deg); }
  .board .n2 { top: 6%; left: 26%; transform: rotate(3deg); }
  .board .n3 { top: 40%; left: 0; transform: rotate(2deg); }
  .board .n4 { bottom: 0; left: 22%; transform: rotate(-2deg); }
  .board .n1:hover { transform: rotate(-9deg) translateY(-4px); z-index: 5; box-shadow: 3px 5px 0 rgba(43,38,32,.08), 0 1px 2px rgba(43,38,32,.1), 0 28px 38px -16px rgba(43,38,32,.42); }
  .board .n2:hover { transform: rotate(8deg) translateY(-4px); z-index: 5; box-shadow: 3px 5px 0 rgba(43,38,32,.08), 0 1px 2px rgba(43,38,32,.1), 0 28px 38px -16px rgba(43,38,32,.42); }
  .board .n3:hover { transform: rotate(-3deg) translateY(-4px); z-index: 5; box-shadow: 3px 5px 0 rgba(43,38,32,.08), 0 1px 2px rgba(43,38,32,.1), 0 28px 38px -16px rgba(43,38,32,.42); }
  .board .n4:hover { transform: rotate(3deg) translateY(-4px); z-index: 5; box-shadow: 3px 5px 0 rgba(43,38,32,.08), 0 1px 2px rgba(43,38,32,.1), 0 28px 38px -16px rgba(43,38,32,.42); }
  @media (prefers-reduced-motion: reduce) {
    .board .n1:hover, .board .n2:hover, .board .n3:hover, .board .n4:hover { transform: none; }
  }

  .board-card {
    position: absolute; top: 2%; left: 44%; width: 320px; background: var(--paper);
    border: 2px solid var(--ink); border-radius: 6px; padding: 18px;
    box-shadow: 6px 6px 0 rgba(43,38,32,.9), 0 30px 44px -20px rgba(43,38,32,.4); transform: rotate(1.5deg);
  }
  .bc-head { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
  .bc-dot { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--ink); }
  .bc-title { font-size: 11px; color: var(--ink-soft); margin-left: 4px; font-weight: 700; }
  .bc-q {
    margin-left: auto; width: fit-content; max-width: 84%; background: var(--sky); color: var(--sky-ink);
    font-family: var(--hand-jp); font-weight: 700; font-size: 12.5px; padding: 9px 13px;
    border-radius: 10px 10px 2px 10px; margin-bottom: 9px; border: 1.5px solid var(--ink);
    opacity: 0; transform: translateY(6px);
  }
  .bc-a {
    background: var(--board); border: 1.5px solid var(--ink); border-radius: 10px 10px 10px 2px;
    padding: 11px 13px; font-size: 12.5px; line-height: 1.7; color: var(--ink);
    opacity: 0; transform: translateY(6px);
  }
  .bc-cite {
    display: inline-flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 10px; font-weight: 800;
    color: var(--ink); background: var(--yellow); border-radius: 4px; padding: 4px 9px; border: 1px solid var(--ink);
  }
  .bc-cite svg { width: 10px; height: 10px; }
  .pin {
    position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--marker);
    border: 2px solid var(--ink); top: -7px; left: 50%; transform: translateX(-50%); z-index: 2;
  }

  /* real photo, pinned like an actual photograph on the corkboard */
  .pinned-photo {
    position: absolute; top: 42%; right: 0; width: 220px; background: #fff;
    border: 2px solid var(--ink); padding: 8px 8px 10px; transform: rotate(5deg);
    box-shadow: 5px 5px 0 rgba(43,38,32,.85), 0 26px 40px -18px rgba(43,38,32,.4);
  }
  .pinned-photo img { width: 100%; display: block; }
  .pinned-photo .photo-cap { font-family: var(--hand-jp); font-weight: 700; font-size: 11px; text-align: center; margin-top: 7px; color: var(--ink-soft); }

  /* 601px - 860px: keep sticky-note shape/width intact, stack them in a left column
     (zig-zagged right/left/right/left, same as the narrower layout), tower photo
     moves to the right, taking up roughly half the width */
  @media (min-width: 601px) and (max-width: 860px) {
    .board {
      display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start;
      gap: 20px; min-height: 0;
    }
    .board-notes {
      display: flex; flex-direction: column; gap: 14px; min-width: 0;
      grid-column: 1; grid-row: 1;
    }
    .board .note { position: static; width: 235px; margin: 0; }
    .board .n1, .board .n3 { margin-left: auto; margin-right: 0; }
    .board .n2, .board .n4 { margin-left: 0; margin-right: auto; }
    .pinned-photo {
      position: relative; top: auto; right: auto; width: 100%; min-width: 0; transform: none; margin: 0;
      grid-column: 2; grid-row: 1;
    }
    .board-card {
      position: relative; top: auto; left: auto; width: 100%; min-width: 0; transform: none; margin: 0;
      grid-column: 1 / -1; grid-row: 2;
    }
  }

  /* 600px and below: single column. Notes zig-zag (right, left, right, left),
     shape/width stay the same as desktop, tower photo and board-card stack below */
  @media (max-width: 600px) {
    .board { display: flex; flex-direction: column; min-height: 0; }
    .board-notes { display: flex; flex-direction: column; gap: 14px; }
    .board .note { position: static; width: 235px; margin: 0; }
    .board .n1, .board .n3 { margin-left: auto; margin-right: 0; }
    .board .n2, .board .n4 { margin-left: 0; margin-right: auto; }
    .pinned-photo { position: relative; top: auto; right: auto; width: 100%; transform: none; margin-top: 14px; }
    .board-card { position: relative; top: auto; left: auto; width: 100%; transform: none; margin-top: 14px; }
  }

  /* ---------------- stat strip: pinned index cards, not bare text ---------------- */
  .stats { position: relative; background: var(--board-2); padding: 56px 0; }
  .stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
  @media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr; gap: 34px; } }

  /* side illustrations across three layouts:
     wide    -> flanking the row, well outside the cards
     tablet  -> cards narrow + shift right to leave room for the woman; qa tucks into the
                bottom-right corner of the last card instead of disappearing
     mobile  -> cards stack in one column; woman sits above them, qa sits below */
  .stats .wrap { position: relative; }
  .stats-decor { pointer-events: none; }
  .stats-qa { animation: stats-bounce 1.8s var(--ease) infinite; }
  @keyframes stats-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

  @media (min-width: 1400px) {
    .stats-decor { display: block; position: absolute; top: 50%; }
    .stats-woman { left: -224px; width: 200px; transform: translateY(-50%) rotate(-2deg); }
    .stats-qa { right: -204px; width: 180px; animation-name: stats-bounce-centered; }
    @keyframes stats-bounce-centered {
      0%, 100% { transform: translateY(-50%); }
      50% { transform: translateY(calc(-50% - 14px)); }
    }
  }

  @media (min-width: 761px) and (max-width: 1399.98px) {
    .stats .wrap { display: flex; align-items: center; gap: 18px; }
    .stats-grid { flex: 1 1 auto; min-width: 0; }
    .stats-decor { display: block; position: static; }
    .stats-woman { width: 156px; flex: 0 0 auto; transform: rotate(-2deg); }
    .stats-qa { position: absolute; right: 4px; bottom: -16px; width: 124px; z-index: 5; }
  }

  @media (max-width: 760px) {
    .stats .wrap { display: flex; flex-direction: column; align-items: center; gap: 20px; }
    .stats-decor { display: block; position: static; }
    .stats-woman { width: 252px; order: -1; transform: rotate(-2deg); }
    .stats-qa { width: 210px; order: 1; }
    .stats-grid { order: 0; width: 100%; }
  }

  @media (prefers-reduced-motion: reduce) { .stats-qa { animation: none !important; } }
  .stat-card {
    background: var(--paper); border: 2px solid var(--ink); border-radius: 3px; padding: 20px 20px 18px;
    box-shadow: 4px 4px 0 rgba(43,38,32,.85), 0 24px 36px -18px rgba(43,38,32,.35); position: relative;
    transform: rotate(var(--tilt, 0deg));
  }
  .stats-grid > .reveal:nth-child(1) .stat-card { --tilt: -1.5deg; }
  .stats-grid > .reveal:nth-child(2) .stat-card { --tilt: 1deg; }
  .stats-grid > .reveal:nth-child(3) .stat-card { --tilt: -.8deg; }
  .stat-card:hover { animation: stat-card-bounce .6s ease; }
  @keyframes stat-card-bounce {
    0%   { transform: rotate(var(--tilt, 0deg)) translateY(0) scale(1); }
    30%  { transform: rotate(var(--tilt, 0deg)) translateY(-14px) scale(1.03); }
    50%  { transform: rotate(var(--tilt, 0deg)) translateY(2px) scale(.98); }
    70%  { transform: rotate(var(--tilt, 0deg)) translateY(-6px) scale(1.01); }
    100% { transform: rotate(var(--tilt, 0deg)) translateY(0) scale(1); }
  }
  @media (prefers-reduced-motion: reduce) { .stat-card:hover { animation: none; } }
  .stat-card::before {
    content: ""; position: absolute; top: -8px; left: 16px; width: 38px; height: 16px;
    background: rgba(255,255,255,.6); border: 1px solid rgba(0,0,0,.04); transform: rotate(-4deg);
  }
  .stat-num { font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1; }
  .stat-num .unit { font-size: .42em; font-weight: 700; color: var(--ink-soft); margin-left: 2px; }
  .stat-label { font-size: 12px; line-height: 1.7; margin-top: 9px; font-family: var(--hand-jp); font-weight: 700; color: var(--ink-soft); }
  .stat-src { font-size: 10.5px; opacity: .6; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); }

