/* =========================================================================
   Clo pitch site: additions on top of styles.css
   - "Ledger" canvas (faint ruled paper lines + emerald bloom)
   - Floating photo swarm (desktop + mobile, photos stay and drift)
   - Sender social proof (YouTube + Instagram)
   ========================================================================= */

/* ------------------------------ Ledger canvas ------------------------------ */
body::before {
  background:
    radial-gradient(70% 45% at 50% -8%, rgba(14, 107, 80, 0.11), transparent 62%),
    radial-gradient(45% 35% at 100% 55%, rgba(209, 0, 111, 0.045), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(14, 107, 80, 0.06), transparent 65%),
    repeating-linear-gradient(180deg, rgba(23, 20, 15, 0.026) 0 1px, transparent 1px 34px),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
.hero__title { font-weight: 600; letter-spacing: -0.02em; }
.mark { color: var(--accent); font-style: italic; }
.section__title, .cta__title, .proof__title { font-weight: 600; }

/* ------------------------------ Photo swarm ------------------------------- */
.hero { position: relative; overflow: hidden; overflow: clip; }
.hero__inner { position: relative; z-index: 2; }
.swarm { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.swarm__ph {
  position: absolute; left: 0; top: 0;
  width: var(--w, 132px); aspect-ratio: 4 / 5;
  opacity: 0; visibility: hidden;
  transform: translate3d(var(--sx, 0px), var(--sy, 0px), 0) rotate(var(--sr, 0deg)) scale(0.9);
  transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.9s ease;
  will-change: transform;
}
.swarm__ph.is-placed { visibility: visible; }
.swarm.is-in .swarm__ph.is-placed {
  opacity: 1;
  transform: translate3d(var(--fx, 0px), var(--fy, 0px), 0) rotate(var(--fr, 0deg)) scale(1);
}
.swarm.is-ready .swarm__ph { transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease; }
.swarm__float {
  display: block; width: 100%; height: 100%;
  border-radius: 16px; overflow: hidden;
  background: var(--surface);
  border: 4px solid var(--surface);
  box-shadow: 0 1px 0 rgba(23, 20, 15, 0.04), 0 22px 44px -18px rgba(23, 20, 15, 0.38), 0 0 0 1px rgba(23, 20, 15, 0.06);
}
.swarm.is-floating .swarm__float { animation: swarmFloat var(--fd, 7s) ease-in-out var(--fdel, 0s) infinite alternate; }
.swarm__float img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes swarmFloat {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%  { transform: translate3d(var(--dx1, 6px), var(--dy1, -10px), 0) rotate(var(--dr1, 1.2deg)); }
  100% { transform: translate3d(var(--dx2, -5px), var(--dy2, 8px), 0) rotate(var(--dr2, -1deg)); }
}
@media (prefers-reduced-motion: reduce) {
  .swarm__ph { transition: none !important; }
  .swarm.is-floating .swarm__float { animation: none; }
}
/* phones: make room above and below the hero content for the photos */
@media (max-width: 899px) {
  .hero { padding-top: 196px; padding-bottom: 150px; }
  .swarm__float { border-width: 3px; border-radius: 12px; }
}

/* ------------------------------ Sender proof ------------------------------ */
.proof { text-align: center; }
.proof .eyebrow { margin-bottom: 14px; }
.proof__title { margin: 0 auto 56px; font-family: var(--display); font-size: calc(clamp(2rem, 4.4vw, 3rem) + 2px); line-height: 1.08; letter-spacing: -0.025em; }
.proof__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 1040px; margin: 0 auto; align-items: stretch; }
.sp {
  display: flex; flex-direction: column; text-align: left;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 22px;
  padding: 24px; box-shadow: 0 1px 0 rgba(255, 253, 248, 0.6) inset, 0 24px 60px -34px rgba(23, 20, 15, 0.35);
}
.sp__head { display: flex; align-items: center; gap: 14px; }
.sp__avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: block; }
.sp__ring { padding: 2.5px; border-radius: 50%; background: conic-gradient(from 200deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); display: inline-flex; }
.sp__ring .sp__avatar { border: 2.5px solid var(--surface); width: 50px; height: 50px; }
.sp__id { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.sp__id b { font-size: calc(1rem + 2px); font-weight: 600; color: var(--text); }
.sp__id span { font-size: calc(0.88rem + 2px); color: var(--text-2); }
.sp__logo { margin-left: auto; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.sp__logo svg { width: 30px; height: 30px; }
.sp__logo--yt svg { fill: #ff0000; }
.sp__logo--ig svg { fill: url(#igGrad); fill: #d62976; }
.sp__videos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; flex: 1; }
.ytv { appearance: none; border: 0; padding: 0; background: none; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 10px; color: inherit; font: inherit; }
.ytv__frame { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #111; box-shadow: 0 14px 30px -18px rgba(23, 20, 15, 0.45); }
.ytv__frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.ytv:hover .ytv__frame img { transform: scale(1.04); }
.ytv__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ytv__play { position: absolute; left: 50%; top: 50%; width: 52px; height: 36px; transform: translate(-50%, -50%); border-radius: 10px; background: #ff0000; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.5); transition: transform 0.3s var(--ease); }
.ytv:hover .ytv__play { transform: translate(-50%, -50%) scale(1.08); }
.ytv__play svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px; }
.ytv__title { font-size: calc(0.88rem + 2px); line-height: 1.4; color: var(--text); font-weight: 500; }
.sp__bio { margin: 18px 0 0; font-size: calc(1rem + 2px); line-height: 1.5; color: var(--text); }
.sp__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 18px; border-radius: 12px; overflow: hidden; flex: 1; align-content: start; }
.sp__grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.sp__cta { margin-top: 20px; display: flex; align-items: center; justify-content: center; height: 46px; border-radius: 999px; font-weight: 600; font-size: calc(0.95rem + 2px); transition: transform 0.3s var(--ease), filter 0.3s var(--ease); }
.sp__cta:hover { transform: translateY(-2px); filter: brightness(1.05); }
.sp__cta--yt { background: #ff0000; color: #fff; }
.sp__cta--ig { background: linear-gradient(90deg, #f58529, #dd2a7b 55%, #8134af); color: #fff; }
@media (max-width: 860px) {
  .proof__grid { grid-template-columns: 1fr; max-width: 560px; }
}
@media (max-width: 420px) {
  .sp { padding: 18px; }
  .sp__videos { grid-template-columns: 1fr; }
}

/* Footer note stays readable on the paper canvas */
.footer__note { color: var(--text-2); }

/* fade the hero glow out so there is no seam where the hero ends */
.hero::before { -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
.footer__inner { display: flex; align-items: center; justify-content: center; height: 100%; text-align: center; }
@media (max-width: 600px) {
  .footer { height: auto; padding: 22px 0; }
  .footer__note { line-height: 1.7; letter-spacing: 0.12em; display: block; max-width: 30ch; margin: 0 auto; }
}
