/* Tennis ball layer shared by the portfolio and resume pages */
:root { --ball-ink: #142019; --ball-optic: #dcf74a; --ball-ease: cubic-bezier(.2,.8,.2,1); }

.ball-cursor, .ball-cursor * { cursor: none !important; }
.cursor-ball { position: fixed; top: 0; left: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; z-index: 9999; pointer-events: none; opacity: 0;
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f6ffab, #d4ee2c 55%, #a9c414); box-shadow: 0 2px 6px rgba(0,0,0,.25);
  transition: opacity .2s, width .25s var(--ball-ease), height .25s var(--ball-ease), margin .25s var(--ball-ease); overflow: hidden; }
.cursor-ball::before, .cursor-ball::after { content: ""; position: absolute; top: 0; width: 100%; height: 100%; border: 1.5px solid rgba(255,255,255,.9); border-radius: 50%; }
.cursor-ball::before { left: -62%; } .cursor-ball::after { right: -62%; }
.cursor-ball.over { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
.cursor-ball.down { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; }
.cursor-ball.hide { opacity: 0 !important; }

.hit { position: fixed; z-index: 9998; pointer-events: none; width: 0; height: 0; filter: drop-shadow(0 0 1px rgba(20,32,25,.35)); }
.hit i { position: absolute; left: 0; top: -.75px; width: var(--l); height: 1.5px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,0), #fff 40%, #fff);
  transform-origin: 0 50%; transform: rotate(var(--a)) translateX(9px) scaleX(0); animation: ballRay .6s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes ballRay { 0% { transform: rotate(var(--a)) translateX(8px) scaleX(0); opacity: 0; }
  20% { opacity: .95; }
  50% { transform: rotate(var(--a)) translateX(12px) scaleX(1); opacity: .9; }
  100% { transform: rotate(var(--a)) translateX(24px) scaleX(.15); opacity: 0; } }

.fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9997; }
html { scroll-behavior: auto !important; }

/* camera pulled back: the page becomes a card on a grass court */
html.zooming, html.landing { background: #123a2a; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 90px, transparent 90px 180px); overflow-x: hidden; }
html.zooming body, html.landing body { box-shadow: 0 40px 120px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); border-radius: 18px; overflow: clip; will-change: transform; }
html.landing body { transform: scale(.6); }
html.zooming .progress { opacity: 0; }

@media print { .fx, .cursor-ball, .hit { display: none !important; } html.landing body, html.zooming body { transform: none !important; } }

/* nav steps aside while the camera is pulled back */
.nav, .toolbar { transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s; }
html.zooming .nav, html.landing .nav, html.zooming .toolbar, html.landing .toolbar { transform: translateY(-120%); opacity: 0; pointer-events: none; }

/* broadcast radar: serve speed */
.radar { position: fixed; left: 50%; bottom: 28px; z-index: 9998; pointer-events: none; display: flex; align-items: baseline; gap: 10px;
  padding: 10px 16px 9px; border-radius: 10px; background: rgba(12,29,21,.92); color: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.08);
  font-family: "Big Shoulders Display", "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: .12em;
  opacity: 0; transform: translate(-50%, 16px); transition: opacity .25s, transform .35s cubic-bezier(.2,.8,.2,1); }
.radar.on { opacity: 1; transform: translate(-50%, 0); }
.radar .rl { font-size: 12px; font-weight: 800; color: #9fb7a8; }
.radar .rv { font-size: 34px; font-weight: 900; color: #dcf74a; line-height: 1; min-width: 2.2ch; text-align: right; font-variant-numeric: tabular-nums; text-shadow: 0 0 16px rgba(220,247,74,.4); }
.radar .ru { font-size: 12px; font-weight: 800; color: #fff; }
@media print { .radar { display: none !important; } }
