/* HOME PROOF — one quote. The key phrase is the lit object: a slash of light falls across it. Prefix hp- */
.hp{overflow:clip}

/* ── 11-24: the quotes swipe (Andrew, then Davide). Full-width track so the light is never cut at the page gutter;
   padding = the section's own padding, so the light reaches as far as it did before the swipe. Quotes sit on the bottom line,
   so the name and the arrows stay put while you swipe. ── */
.hp-track{display:grid;grid-auto-flow:column;grid-auto-columns:100%;align-items:end;overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;padding-block:var(--sec);margin-block:calc(var(--sec) * -1);outline:none}
.hp-track::-webkit-scrollbar{display:none}
.hp-track:focus-visible{box-shadow:inset 0 0 0 2px rgb(var(--L) / .35)}
.hp-slide{scroll-snap-align:start;scroll-snap-stop:always;min-width:0}
.hp-nav{position:relative;z-index:2;display:flex;align-items:center;gap:24px;margin-top:44px}
.hp-arr{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;color:var(--text);cursor:pointer;
  background:radial-gradient(110% 80% at 50% 0%,oklch(1 0 0 / .16) 0%,oklch(1 0 0 / .05) 60%,oklch(1 0 0 / .02) 100%);
  box-shadow:inset 0 1px 0 oklch(1 0 0 / .28),inset 0 0 0 1px oklch(1 0 0 / .1),0 12px 24px -12px #000;
  transition:opacity .3s var(--ease-out),transform .2s var(--ease-out),box-shadow .3s var(--ease-out)}
.hp-arr:hover:not(:disabled){box-shadow:inset 0 1px 0 rgb(var(--L) / .6),inset 0 0 0 1px oklch(1 0 0 / .16),0 -6px 22px -8px rgb(var(--L) / .35),0 12px 24px -12px #000}
.hp-arr:active:not(:disabled){transform:scale(.95)}
.hp-arr:disabled{opacity:.3;cursor:default}
.hp-dots{display:flex;gap:10px;margin-left:16px}
.hp-dot{width:8px;height:8px;padding:0;border-radius:99px;background:oklch(1 0 0 / .22);cursor:pointer;transition:width .4s var(--ease-out),background .4s var(--ease-out)}
.hp-dot[aria-current="true"]{width:26px;background:var(--text);box-shadow:0 0 10px rgb(var(--L) / .5)}
.hp-fig{position:relative;font-size:clamp(25px,3.05vw,44px);
  /* where the key phrase sits and how the light leans (home-proof.js measures it; these are the fallbacks) */
  --kx:50%;--ky:42%;--kw:26em;--kh:2.5em;--ka:-4deg}
.js .hp-fig[data-lit]:not(.on){opacity:1;filter:none}   /* this figure switches its own light on */

/* ── the light ── */
.hp-light{position:absolute;inset:0;z-index:0;pointer-events:none}
.js .hp-light{opacity:0}
.js .hp-fig.on .hp-light{animation:hp-on 1.8s var(--ease-out) .25s both}
@keyframes hp-on{from{opacity:0}to{opacity:1}}
.hp-band,.hp-core,.hp-grid{position:absolute;left:var(--kx);top:var(--ky);translate:-50% -50%}
.hp-band,.hp-core{rotate:var(--ka)}
/* the wide soft slash */
.hp-band{width:calc(var(--kw) + 40em);height:calc(var(--kh) + 5.4em);filter:blur(.5em);
  background:linear-gradient(180deg,transparent 0%,rgb(var(--L) / .02) 14%,rgb(var(--L) / .075) 30%,rgb(var(--L) / .16) 44%,rgb(var(--L) / .18) 50%,rgb(var(--L) / .16) 56%,rgb(var(--L) / .075) 70%,rgb(var(--L) / .02) 86%,transparent 100%);
  mask-image:linear-gradient(90deg,transparent 0%,rgb(0 0 0 / .5) 22%,#000 46%,#000 64%,rgb(0 0 0 / .7) 82%,transparent 100%)}
/* its hot centre, on the words */
.hp-core{width:calc(var(--kw) + 6em);height:calc(var(--kh) + 1.3em);filter:blur(.7em);
  background:radial-gradient(closest-side,rgb(var(--L) / .2),rgb(var(--L) / .09) 55%,transparent 100%)}
.hp-fig.is-live .hp-core{animation:hp-breathe 7s ease-in-out infinite alternate}
@keyframes hp-breathe{from{opacity:.6}to{opacity:1}}
/* guide lines on the wall, seen only where the light reaches */
.hp-grid{width:calc(var(--kw) + 34em);height:calc(var(--kh) + 8.5em);
  background-image:linear-gradient(90deg,oklch(1 0 0 / .2) 1px,transparent 1px),linear-gradient(180deg,oklch(1 0 0 / .2) 1px,transparent 1px);
  background-size:4.25em 4.25em;background-position:50% 50%;
  mask-image:radial-gradient(closest-side,#000 0%,rgb(0 0 0 / .45) 45%,transparent 100%)}

/* ── the quote ── */
.hp-q{position:relative;z-index:1}
.hp-q p{max-width:27.5em;font-weight:500;line-height:1.24;letter-spacing:-.03em;color:var(--dim);text-wrap:pretty;text-indent:-.44em;transition:color 1.3s var(--ease-out)}
.hp-key{color:var(--text);text-shadow:0 0 .3em rgb(var(--L) / .22),0 0 1.1em rgb(var(--L) / .46);
  transition:color 1.3s var(--ease-out) .45s,text-shadow 1.5s var(--ease-out) .45s}
.js .hp-fig:not(.on) .hp-q p{color:var(--unlit)}
.js .hp-fig:not(.on) .hp-key{color:var(--unlit);text-shadow:none}

/* ── who said it ── */
.hp-by{position:relative;z-index:1;display:flex;flex-wrap:wrap;align-items:center;gap:16px 18px;margin-top:1.45em;padding-top:28px;font-size:16px;line-height:22px;
  background:linear-gradient(90deg,var(--hair-hi),var(--hair-hi) 30%,var(--hair) 70%,transparent 100%) left top / 100% 1px no-repeat;
  transition:opacity 1.2s var(--ease-out) .6s}
.js .hp-fig:not(.on) .hp-by{opacity:.3}
.hp-av{position:relative;display:grid;place-items:center;width:54px;height:54px;flex:none;border-radius:50%;font-size:21px;font-weight:500;letter-spacing:-.02em;color:var(--text);text-shadow:0 0 14px rgb(var(--L) / .6);
  background:radial-gradient(110% 80% at 50% 0%,oklch(1 0 0 / .24) 0%,oklch(1 0 0 / .08) 50%,oklch(1 0 0 / .03) 100%);
  box-shadow:inset 0 1px 0 rgb(var(--L) / .7),inset 0 0 0 1px oklch(1 0 0 / .12),inset 0 -14px 16px -10px #000,0 -8px 28px -8px rgb(var(--L) / .36),0 14px 26px -12px #000}
.hp-who{display:flex;flex-direction:column;gap:1px;color:var(--dim);font-size:14px;line-height:20px}
.hp-who strong{font-size:17px;line-height:23px;font-weight:500;color:var(--text)}
.hp-by .draft-flag{margin-left:auto}

@media (max-width:960px){
  .hp-fig{font-size:clamp(23px,6.2vw,34px)}
  .hp-nav{margin-top:32px}
  .hp-q p{line-height:1.27}
  .hp-band{height:calc(var(--kh) + 8em);filter:blur(1em)}
  .hp-core{height:calc(var(--kh) + 3em);filter:blur(1em)}
  .hp-grid{opacity:.45}
  .hp-by{margin-top:36px;padding-top:24px}
  .hp-by .draft-flag{margin-left:0}
}
@media (prefers-reduced-motion:reduce){
  .js .hp-light{opacity:1}
  .js .hp-fig.on .hp-light,.hp-fig.is-live .hp-core{animation:none}
  .js .hp-fig:not(.on) .hp-q p{color:var(--dim)}
  .js .hp-fig:not(.on) .hp-key{color:var(--text)}
  .js .hp-fig:not(.on) .hp-by{opacity:1}
}
