/* Proof of work — "Press proven" pitch and anonymous case studies (Work with me).
   Neutral palette + the one accent, same as the rest of the site. */
.proof-pitch-section { padding-block:clamp(72px,9vw,120px) clamp(56px,7vw,96px); scroll-margin-top:20px; }
.proof-cases-section { padding-block:clamp(72px,9vw,120px); scroll-margin-top:20px; }
.proof-head h2 { max-width:14ch; }
.proof-head > p { max-width:400px; }

/* ---------- The pitch ---------- */
.pitch { position:relative; margin-top:38px; overflow:hidden; border:1px solid #eadfd6; border-radius:21px; }
.pitch-field { position:relative; aspect-ratio:113 / 76; background:repeating-linear-gradient(90deg,#fdfaf7 0 12.5%,#f9f4ef 12.5% 25%); }
.pitch-lines, .pitch-press { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.pitch-lines * { fill:none; stroke:#dccdc1; stroke-width:1.5; vector-effect:non-scaling-stroke; }
.pitch-lines .pitch-spot { fill:#dccdc1; stroke:none; }
.pitch-lines-tall, .pitch-press-tall { display:none; }

.pitch-press line {
  stroke:#111; stroke-opacity:.38; stroke-width:1.5; stroke-linecap:round; stroke-dasharray:3 7;
  vector-effect:non-scaling-stroke; animation:press-run 1.1s linear infinite; transition:stroke .2s, stroke-opacity .2s;
}
.pitch-press line.is-hot { stroke:var(--accent); stroke-opacity:1; }
@keyframes press-run { from { stroke-dashoffset:10; } to { stroke-dashoffset:0; } }

.pitch-players { list-style:none; margin:0; padding:0; }
.pitch-player {
  position:absolute; left:var(--x); top:var(--y); z-index:2; transform:translate(-50%,-50%);
  display:block; text-decoration:none; color:var(--text); border-radius:50%;
}
.pitch-dot {
  display:grid; place-items:center; width:38px; height:38px; border-radius:50%;
  background:#111; color:#fff; font-size:.72rem; font-weight:600; letter-spacing:.02em; font-variant-numeric:tabular-nums;
  box-shadow:0 0 0 5px rgba(17,17,17,.07);
  animation:press-step 2.6s var(--ease) infinite alternate; transition:background-color .2s, box-shadow .2s;
}
@keyframes press-step { from { transform:translate(0,0); } to { transform:translate(var(--dx),var(--dy)); } }
.pitch-tag {
  position:absolute; left:50%; top:calc(100% + 12px); transform:translateX(-50%);
  display:flex; flex-direction:column; gap:2px; width:max-content; max-width:190px; text-align:center;
  padding:9px 13px 10px; border:1px solid var(--border); border-radius:13px; background:#fff;
  transition:border-color .2s, transform .2s var(--ease);
}
.tag-above .pitch-tag { top:auto; bottom:calc(100% + 12px); }
.pitch-tag strong { font-size:.95rem; font-weight:600; letter-spacing:-.025em; line-height:1.25; font-variant-numeric:tabular-nums; }
.pitch-tag span { font-size:.7rem; color:var(--text-muted); line-height:1.35; }
.pitch-player:hover .pitch-dot, .pitch-player:focus-visible .pitch-dot { background:var(--accent); box-shadow:0 0 0 6px rgba(201,79,32,.14); }
.pitch-player:hover .pitch-tag, .pitch-player:focus-visible .pitch-tag { border-color:#e8bea6; transform:translateX(-50%) translateY(2px); }
.tag-above:hover .pitch-tag, .tag-above:focus-visible .pitch-tag { transform:translateX(-50%) translateY(-2px); }
.pitch-player:focus-visible { outline:2px solid var(--accent); outline-offset:6px; }

.pitch-me { position:absolute; left:50%; top:50%; z-index:3; transform:translate(calc(-50% + var(--ex,0px)), calc(-50% + var(--ey,0px))); display:grid; justify-items:center; pointer-events:none; }
.pitch-me-dot { position:relative; display:block; width:22px; height:22px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 4px #fff, 0 0 0 5px #efd4c3; }
.pitch-me-dot::before, .pitch-me-dot::after {
  content:""; position:absolute; inset:0; border-radius:50%; border:1.5px solid var(--accent);
  animation:me-pulse 2.6s ease-out infinite; opacity:0;
}
.pitch-me-dot::after { animation-delay:1.3s; }
@keyframes me-pulse { 0% { transform:scale(1); opacity:.55; } 100% { transform:scale(3.4); opacity:0; } }
.pitch-me-tag {
  position:absolute; top:calc(100% + 11px); padding:3px 9px 4px; border-radius:var(--radius-pill);
  background:var(--accent); color:#fff; font-size:.68rem; font-weight:600; letter-spacing:.04em; white-space:nowrap;
}

.pitch-trait {
  position:absolute; left:18px; bottom:18px; z-index:2; display:flex; align-items:center; gap:11px;
  padding:9px 15px 10px 11px; border:1px solid #efd4c3; border-radius:13px; background:#fff9f5;
  font-size:.92rem; font-weight:600; letter-spacing:-.02em; line-height:1.2;
}
.pitch-trait small { display:block; font-size:.6rem; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:#9c6a52; }
.pitch-trait-mark { display:grid; place-items:center; width:30px; height:30px; border-radius:9px; background:var(--accent); color:#fff; font-size:.8rem; }

/* Entrance: the press closes in once the pitch scrolls into view. Only when JS is present. */
.js-proof .pitch:not(.is-in) .pitch-player { opacity:0; transform:translate(-50%,-50%) scale(.6); }
.js-proof .pitch:not(.is-in) .pitch-press, .js-proof .pitch:not(.is-in) .pitch-me { opacity:0; }
.pitch-player { transition:opacity .5s ease, transform .6s var(--ease); }
.pitch-press { transition:opacity .6s ease .5s; }
.pitch-me { transition:opacity .6s ease .5s, transform .6s var(--ease) 0s; }
.pitch-players li:nth-child(1) .pitch-player { transition-delay:.25s; }
.pitch-players li:nth-child(2) .pitch-player { transition-delay:.35s; }
.pitch-players li:nth-child(3) .pitch-player { transition-delay:.45s; }
.pitch-players li:nth-child(4) .pitch-player { transition-delay:.55s; }
.pitch-players li:nth-child(5) .pitch-player { transition-delay:.65s; }
.pitch.is-in .pitch-me { transition-delay:0s, 0s; }

.pitch-strip { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) auto; gap:24px; align-items:end; margin-top:26px; }
.pitch-stat { border-top:1px solid var(--border); padding-top:15px; display:flex; flex-direction:column; gap:4px; }
.pitch-stat strong { font-size:clamp(1.65rem,3vw,2.4rem); font-weight:600; letter-spacing:-.05em; line-height:1.1; }
.pitch-stat span { color:var(--text-muted); font-size:.82rem; line-height:1.45; }
.pitch-cue { display:inline-flex; align-items:center; gap:12px; padding-bottom:4px; border-bottom:1px solid currentColor; font-size:.91rem; font-weight:600; text-decoration:none; white-space:nowrap; }
.pitch-cue span { color:var(--accent); }
.pitch-cue:hover { color:var(--accent); }

/* ---------- Case studies ---------- */
.case-list { display:grid; gap:17px; margin-top:38px; }
.case-card { border:1px solid var(--border); border-radius:20px; background:#fff; padding:clamp(24px,3.6vw,46px); scroll-margin-top:24px; }
.case-card:target { border-color:#e8bea6; }
.case-eyebrow { display:flex; align-items:center; gap:12px; font-size:.7rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--text-muted); line-height:1.5; }
.case-shirt { display:grid; place-items:center; flex:none; width:34px; height:34px; border-radius:50%; background:#111; color:#fff; letter-spacing:.02em; font-variant-numeric:tabular-nums; }
.case-card h3 { margin-top:26px; max-width:22ch; font-size:clamp(1.55rem,3vw,2.5rem); line-height:1.13; letter-spacing:-.05em; }
.case-role { margin-top:13px; color:#8b5a45; font-size:.8rem; font-weight:600; letter-spacing:.015em; }
.case-body { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(22px,4vw,56px); margin-top:30px; }
.case-body h4 { margin:0; font-size:.7rem; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--accent); }
.case-body p { margin-top:10px; color:var(--text-secondary); font-size:.97rem; line-height:1.72; }
.case-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-top:34px; }
.case-metric { border-top:1px solid #e8e2de; padding-top:16px; display:flex; flex-direction:column; gap:5px; min-width:0; }
.case-metric strong { font-size:clamp(1.3rem,2.3vw,1.95rem); font-weight:600; letter-spacing:-.05em; line-height:1.12; font-variant-numeric:tabular-nums; }
.case-metric span { color:var(--text-muted); font-size:.8rem; line-height:1.45; }
.case-quote { margin:30px 0 0; padding:22px 26px; border-radius:16px; background:#fff9f5; border:1px solid #f0e0d5; }
.case-quote p { font-size:clamp(1.05rem,1.7vw,1.3rem); font-weight:500; letter-spacing:-.02em; line-height:1.45; }
.case-quote footer { margin-top:9px; font-size:.78rem; color:var(--text-muted); }
.case-note { margin-top:24px; max-width:780px; border-left:2px solid var(--accent); padding-left:13px; color:var(--text-secondary); font-size:.86rem; line-height:1.65; }
.case-note-loss { border-left-color:#111; }
.case-note strong { color:var(--text); }

.proof-ground { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); gap:clamp(28px,6vw,90px); align-items:end; margin-top:17px; padding:clamp(26px,3.6vw,46px); border:1px solid #f0e4dc; border-radius:20px; background:#fbf6f2; }
.proof-ground h3 { margin-top:13px; font-size:clamp(1.4rem,2.3vw,2rem); letter-spacing:-.045em; max-width:18ch; }
.proof-ground p:not(.page-eyebrow) { margin-top:11px; max-width:440px; color:var(--text-secondary); font-size:.96rem; line-height:1.7; }
.proof-ground-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.proof-ground .case-metric { border-top-color:#e9dcd3; }
.proof-footnote { margin-top:24px; max-width:780px; color:var(--text-muted); font-size:.79rem; line-height:1.65; }

@media(max-width:1000px) {
  .pitch-tag { max-width:150px; padding:7px 10px 8px; }
  .pitch-tag strong { font-size:.84rem; }
  .pitch-tag span { font-size:.66rem; }
  .case-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .proof-ground { grid-template-columns:1fr; align-items:start; }
}
@media(max-width:700px) {
  .proof-pitch-section, .proof-cases-section { padding-block:70px; }
  .proof-pitch-section { padding-bottom:56px; }
  .pitch { margin-top:28px; border-radius:18px; }
  .pitch-field { aspect-ratio:76 / 113; background:repeating-linear-gradient(180deg,#fdfaf7 0 12.5%,#f9f4ef 12.5% 25%); }
  .pitch-lines-wide, .pitch-press-wide { display:none; }
  .pitch-lines-tall, .pitch-press-tall { display:block; }
  .pitch-player { left:var(--mx); top:var(--my); }
  .pitch-dot { width:32px; height:32px; font-size:.66rem; }
  .pitch-tag { max-width:116px; top:calc(100% + 9px); padding:6px 8px 7px; border-radius:11px; }
  .tag-above .pitch-tag { bottom:calc(100% + 9px); }
  .pitch-tag strong { font-size:.76rem; }
  .pitch-tag span { font-size:.62rem; }
  .pitch-trait { position:static; margin:0; border-radius:0; border-width:1px 0 0; justify-content:center; }
  .pitch-strip { grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:20px; }
  .pitch-stat span { font-size:.74rem; }
  .pitch-cue { grid-column:1 / -1; justify-self:start; margin-top:6px; }
  .case-list { gap:13px; margin-top:28px; }
  .case-card h3 { margin-top:22px; }
  .case-body { grid-template-columns:1fr; gap:22px; margin-top:24px; }
  .case-metrics { gap:14px; margin-top:28px; }
  .case-quote { padding:19px 20px; }
  .proof-ground-stats { gap:12px; }
  .proof-ground { margin-top:13px; }
}
@media(prefers-reduced-motion:reduce) {
  .pitch-press line, .pitch-dot, .pitch-me-dot::before, .pitch-me-dot::after { animation:none; }
  .pitch-player, .pitch-press, .pitch-me { transition:none; }
}

/* Arriving from a pitch marker: the case study card briefly lights up. */
.case-card:target { animation:case-arrive 1.8s ease-out; }
@keyframes case-arrive {
  0% { box-shadow:0 0 0 0 rgba(201,79,32,.32); background:#fff5ef; }
  100% { box-shadow:0 0 0 16px rgba(201,79,32,0); background:#fff; }
}
@media(prefers-reduced-motion:reduce) { .case-card:target { animation:none; } }

/* ---------- Press and escape ----------
   Driven by js/proof.js: one industry presses, the dot in the middle keeps the ball,
   slips to the side, and the technique that beat that brief shows above it. */
.pitch.is-live .pitch-dot { animation:none; transition:transform .7s cubic-bezier(.5,0,.25,1), background-color .2s, box-shadow .2s; }
.pitch-player.is-pressing { z-index:3; }
.pitch-player.is-pressing .pitch-dot { box-shadow:0 0 0 6px rgba(201,79,32,.2); }
.pitch-player.is-pressing .pitch-tag { border-color:#e8bea6; }
.pitch-me-ball {
  position:absolute; left:50%; top:50%; width:10px; height:10px; margin:-5px 0 0 -5px; border-radius:50%;
  background:#fff; border:2px solid #111; z-index:1;
  transform:rotate(var(--spin,0deg)) translate(15px,9px); transition:transform .6s var(--ease);
}
.pitch-move {
  position:absolute; bottom:calc(100% + 13px); display:flex; flex-direction:column; align-items:center; gap:1px;
  width:max-content; max-width:210px; padding:7px 13px 8px; border-radius:12px; background:#111; color:#fff; text-align:center;
  font-size:.86rem; line-height:1.25; letter-spacing:-.015em;
  opacity:0; transform:translateY(6px) scale(.94); transition:opacity .25s ease, transform .35s var(--ease);
}
.pitch-me.move-below .pitch-move { bottom:auto; top:calc(100% + 44px); }
.pitch-mini .pitch-me.move-below .pitch-move { top:calc(100% + 13px); }
.pitch-move small { white-space:nowrap; font-size:.56rem; font-weight:600; letter-spacing:.13em; text-transform:uppercase; color:#f0b99d; }
.pitch-move b { font-weight:600; }
.pitch.is-evading .pitch-move { opacity:1; transform:none; }
.pitch.is-evading .pitch-me-dot::before, .pitch.is-evading .pitch-me-dot::after { animation-play-state:paused; opacity:0; }

/* The technique, repeated on its case study. */
.case-move { display:inline-flex; align-items:center; gap:9px; margin-top:16px; padding:7px 14px 7px 10px; border:1px solid #efd4c3; border-radius:var(--radius-pill); background:#fff9f5; font-size:.86rem; font-weight:600; letter-spacing:-.015em; }
.case-move > span { color:var(--accent); font-size:.7rem; }
.case-move small { font-size:.6rem; font-weight:600; letter-spacing:.12em; text-transform:uppercase; color:#9c6a52; }

/* ---------- Homepage teaser: the whole card links to the proof section ---------- */
.home-press { border-top:1px solid var(--border); padding-block:clamp(56px,7vw,92px) 0; margin-bottom:clamp(56px,7vw,92px); }
.press-teaser {
  display:grid; grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr); gap:clamp(26px,5vw,70px); align-items:center;
  padding:clamp(22px,3.4vw,44px); border:1px solid #efded2; border-radius:22px; background:#fff8f4;
  color:inherit; text-decoration:none; transition:border-color .2s, transform .25s var(--ease);
}
.press-teaser:hover { border-color:#e2b99f; transform:translateY(-3px); }
.press-teaser:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
.press-teaser h2 { margin-top:13px; font-size:clamp(2.1rem,4.6vw,3.5rem); letter-spacing:-.055em; line-height:1.08; }
.press-teaser-copy > p:not(.section-kicker) { max-width:400px; margin-top:14px; color:var(--text-secondary); font-size:1.02rem; line-height:1.65; }
.press-teaser-link { display:inline-flex; align-items:center; gap:13px; margin-top:24px; padding-bottom:4px; border-bottom:1px solid currentColor; font-size:.94rem; font-weight:600; }
.press-teaser-link span { color:var(--accent); transition:transform .25s var(--ease); display:inline-block; }
.press-teaser:hover .press-teaser-link span { transform:translate(3px,-3px); }
.pitch-mini { margin-top:0; border-radius:16px; background:#fff; }
.pitch-mini .pitch-dot { width:30px; height:30px; font-size:.64rem; }
.pitch-mini .pitch-move { font-size:.78rem; max-width:160px; padding:6px 11px 7px; }
.pitch-mini .pitch-me-tag { display:none; }
@media(max-width:820px) { .press-teaser { grid-template-columns:1fr; } }
@media(max-width:700px) {
  /* The teaser keeps the wide pitch at every size. */
  .pitch-mini .pitch-field { aspect-ratio:113 / 76; background:repeating-linear-gradient(90deg,#fdfaf7 0 12.5%,#f9f4ef 12.5% 25%); }
  .pitch-mini .pitch-lines-wide, .pitch-mini .pitch-press-wide { display:block; }
  .pitch-mini .pitch-player { left:var(--x); top:var(--y); }
  .pitch-mini .pitch-dot { width:26px; height:26px; font-size:.58rem; }
  .pitch-move { font-size:.78rem; max-width:150px; }
}
@media(prefers-reduced-motion:reduce) {
  .pitch-move, .pitch-me-ball { transition:none; }
  .press-teaser, .press-teaser-link span { transition:none; }
}
