/* Why LinkedIn - three numbers on a climbing line (Manny, 2026-11-15, option D). The line climbs, stops on a short
   landing at each number, and each landing sits higher than the last; it ends in an arrow. Motion is in why.js.
   Glass cards, approved (Manny, 2026-11-15: "I love it"; locked, no re-tuning without asking): the layers are Originkit's
   Charcoal Shuttle glass, values kept exact - tint white 14% to 7%, sheen white 30% fading by half height, shade
   black 22% from 55% down, and a rim bright at the top (70%) that fades and lifts again at the foot. Glass only reads
   over colour, so the section sits on IGM's navy-to-blue ground. */
.wl {
  position: relative; color: var(--dark-text);
  background:
    radial-gradient(80% 70% at 90% 100%, rgba(0,126,187,.55) 0%, rgba(0,126,187,0) 70%),
    linear-gradient(180deg, var(--navy) 0%, #0C3352 55%, var(--deep-blue) 100%);
}
.wl-head { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(40px, 4vw, 56px) 20px 16px; }
.wl-k { margin: 0 0 14px; font: 600 14px/1 var(--font-body); color: var(--dark-muted); }
.wl-h2 { margin: 0; max-width: 26ch; font: 700 clamp(30px, 4.4vw, 60px)/1.05 var(--font-head); letter-spacing: -.018em; text-wrap: balance; color: #FFFFFF; }
.wl-li { color: var(--sky); } /* LinkedIn named loud in the headline (Manny, 2026-11-15) */
.wl-sub { margin: 18px 0 0; font-size: 17px; line-height: 1.5; color: var(--dark-muted); }

/* The chart runs wall to wall */
.wl-chart { position: relative; height: clamp(560px, 44vw, 640px); }
.wl-svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; }
.wl-guide { stroke: #FFFFFF; stroke-opacity: .12; stroke-width: 1; stroke-dasharray: 4 6; }
.wl-line, .wl-arrow { fill: none; stroke: #FFFFFF; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.wl-line { filter: drop-shadow(0 0 8px rgba(92,184,230,.75)); }
.wl-pin { fill: var(--navy); stroke: #FFFFFF; stroke-width: 3; }
.wl-ring { fill: var(--sky); fill-opacity: .35; }

/* Each number sits just above its landing, on a pane of glass */
.wl-stops { position: absolute; inset: 0; }
.wl-stop { position: absolute; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%); width: min(300px, 26vw); transform: translate(-50%, calc(-100% - 30px)); }
.wl-card {
  position: relative; padding: 18px 20px; border-radius: 12px; color: #FFFFFF;
  background:
    linear-gradient(180deg, rgba(255,255,255,.30) 0%, rgba(255,255,255,0) 50%),   /* sheen */
    linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.22) 100%),            /* shade */
    linear-gradient(180deg, rgba(255,255,255,.14) 0%, rgba(255,255,255,.07) 100%); /* tint */
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 24px 50px -28px rgba(0,0,0,.65);
}
.wl-card::before { /* the rim */
  content: ""; position: absolute; inset: 0; padding: 1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,.21) 25%, rgba(255,255,255,.07) 60%, rgba(255,255,255,.28) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.wl-kick { margin: 0 0 6px; font: 700 13px/1.2 var(--font-head); color: var(--sky); }
.wl-num { margin: 0; font: 800 clamp(40px, 3.6vw, 56px)/1 var(--font-head); letter-spacing: -.02em; color: #FFFFFF; }
.wl-t { margin: 10px 0 0; font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.92); }
.wl-src { margin: 10px 0 0; font-size: 12.5px; line-height: 1.3; color: var(--dark-muted); }

/* Desktop: the whole section fits one window, so its short hold (why.js) starts with the headline in view. The head
   clears the floating nav, the headline scales with the window's height as well as its width, and the chart takes
   the height that is left (Manny, 2026-11-16). */
@media (min-width: 981px) {
  .wl { display: flex; flex-direction: column; height: calc(100svh - 28px); min-height: 680px; }
  .wl-head { padding-top: 112px; }
  .wl-h2 { font-size: clamp(30px, min(4.4vw, 6vh), 60px); }
  .wl-chart { flex: 1 1 auto; height: auto; min-height: 400px; }
}

/* Tablet and phone: the line on top, the numbers in a column under it */
@media (max-width: 980px) {
  .wl { background: linear-gradient(180deg, var(--navy) 0%, #0C3352 100%); }
  .wl-chart { height: auto; }
  /* the line sticks under the nav while the numbers scroll up beneath it */
  .wl-svg { position: sticky; top: 76px; z-index: 1; display: block; height: 240px; background: #0D2F4C; }
  .wl-stops { position: static; display: grid; gap: 12px; padding: 8px 16px 32px; }
  .wl-stop { position: static; width: auto; transform: none; }
}
