/* ==========================================================================
   PROOF AND CLOSE — metrics / selected work / testimonial / FAQ / CTA
   Consumes system.css tokens only. No token is redefined here.
   No border-radius. No font-size. Every transition >= 600ms.
   ========================================================================== */

/* --------------------------------------------------------------------------
   THE LIVE HAIRLINE — this piece's ambient instrument.
   Every structural rule in this section carries a pulse travelling along it,
   on coprime loops (8s / 13s / 21s) so they never visibly sync. Continuous
   by construction: nothing here plays once.
   -------------------------------------------------------------------------- */
.prf-rail{
  position:absolute;left:0;top:-1px;
  width:100%;height:2px;
  overflow:visible;pointer-events:none;
  z-index:1;
}
.prf-rail__pulse{
  fill:none;
  stroke:var(--violet);
  stroke-width:2;
  stroke-dasharray:180 1260;      /* period 1440 = viewBox width -> seamless */
  animation:prf-rail-run var(--loop-c) linear infinite;
}
.prf-rail--b .prf-rail__pulse{animation-duration:var(--loop-a)}
.prf-rail--c .prf-rail__pulse{animation-duration:var(--loop-b)}

@keyframes prf-rail-run{
  from{stroke-dashoffset:1440}
  to  {stroke-dashoffset:0}
}

/* ==========================================================================
   1 — METRICS BAND
   ========================================================================== */
.prf-intro{
  display:flex;flex-wrap:wrap;align-items:baseline;
  gap:20px 64px;
  padding-bottom:56px;
}
.prf-intro__note{max-width:44ch;margin:0}

.prf-band{
  position:relative;
  width:100%;
  border-top:1px solid var(--hairline);
  border-bottom:1px solid var(--hairline);
}
.prf-band__grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.prf-metric{
  padding:56px 28px 60px;
  border-left:1px solid var(--hairline);
}
.prf-metric:first-child{border-left:0;padding-left:0}
.prf-metric__v{
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.prf-metric__k{
  margin-top:28px;
  color:var(--primary);
}
.prf-metric__d{
  margin-top:14px;
  max-width:26ch;
  color:var(--muted);
}

@media (max-width:980px){
  .prf-band__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .prf-metric{padding:40px 24px 44px}
  .prf-metric:nth-child(odd){border-left:0;padding-left:0}
  .prf-metric:nth-child(n+3){border-top:1px solid var(--hairline)}
}
@media (max-width:640px){
  .prf-band__grid{grid-template-columns:minmax(0,1fr)}
  .prf-metric{padding:36px 0 40px;border-left:0}
  .prf-metric + .prf-metric{border-top:1px solid var(--hairline)}
  .prf-metric__d{max-width:38ch}
}

/* ==========================================================================
   2 — SELECTED WORK
   ========================================================================== */
.prf-work__head{
  display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;
  gap:32px 64px;
  padding-bottom:72px;
}
.prf-work__title{margin-top:24px;max-width:16ch}
.prf-work__note{max-width:48ch;margin:0}

.prf-rows{
  position:relative;
  width:100%;
  overflow:hidden;
  border-top:1px solid var(--hairline);
}

/* --- The Causeway: a Trace on 0deg / 30deg axes only --------------------- */
.prf-causeway{
  position:absolute;inset:0;
  width:100%;height:100%;
  z-index:0;pointer-events:none;
}
.prf-causeway__rail{
  fill:none;
  stroke:var(--hairline);
  stroke-width:1;
  vector-effect:non-scaling-stroke;
}
.prf-causeway__rail--b{opacity:.55}
.prf-node{
  fill:var(--void);
  stroke:var(--hairline);
  stroke-width:1;
  vector-effect:non-scaling-stroke;
}
.prf-node--1{animation-delay:-0s}
.prf-node--2{animation-delay:-2s}
.prf-node--3{animation-delay:-4s}
.prf-node--4{animation-delay:-6s}

.prf-causeway__trace{
  fill:none;
  stroke:var(--violet);
  stroke-width:2;
  vector-effect:non-scaling-stroke;
  stroke-dasharray:170 1720;      /* period 1890 ~= path length -> seamless */
  animation:prf-causeway-run var(--loop-c) linear infinite;
}
@keyframes prf-causeway-run{
  from{stroke-dashoffset:1890}
  to  {stroke-dashoffset:0}
}

/* --- Rows ---------------------------------------------------------------- */
.prf-row{
  position:relative;z-index:1;
  display:grid;
  grid-template-columns:56px minmax(0,1fr) 232px 48px;
  align-items:center;
  gap:24px;
  padding:40px var(--gutter);
  border-bottom:1px solid var(--hairline);
  isolation:isolate;
}
.prf-row::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:var(--wall);
  transform:scaleX(0);transform-origin:left center;
  transition:transform 760ms var(--ease);
}
.prf-row::after{
  content:"";position:absolute;left:0;top:0;bottom:0;width:3px;
  background:var(--violet);
  transform:scaleY(0);transform-origin:top center;
  transition:transform 760ms var(--ease);
}
.prf-row:hover::before,.prf-row:focus-visible::before{transform:scaleX(1)}
.prf-row:hover::after,.prf-row:focus-visible::after{transform:scaleY(1)}

.prf-row__idx{
  color:var(--muted);
  transition:color 700ms var(--ease),transform 700ms var(--ease);
}
.prf-row__title{
  color:var(--secondary);
  max-width:24ch;
  transition:color 700ms var(--ease),transform 760ms var(--ease);
}
.prf-row__meta{
  color:var(--muted);
  transition:color 700ms var(--ease),transform 760ms var(--ease);
}
.prf-row__go{
  display:inline-flex;align-items:center;justify-content:center;
  width:48px;height:48px;
  border:1px solid var(--hairline);
  color:var(--muted);
  justify-self:end;
  transition:border-color 700ms var(--ease),color 700ms var(--ease),transform 760ms var(--ease);
}
.prf-row__go svg{width:16px;height:16px}

.prf-row:hover .prf-row__idx,.prf-row:focus-visible .prf-row__idx{color:var(--primary);transform:translateY(-4px)}
.prf-row:hover .prf-row__title,.prf-row:focus-visible .prf-row__title{color:var(--primary);transform:translateX(22px)}
.prf-row:hover .prf-row__meta,.prf-row:focus-visible .prf-row__meta{color:var(--secondary);transform:translateX(10px)}
.prf-row:hover .prf-row__go,.prf-row:focus-visible .prf-row__go{
  color:var(--primary);border-color:var(--primary);transform:translateX(8px);
}

@media (max-width:980px){
  .prf-row{grid-template-columns:44px minmax(0,1fr) 40px;gap:16px 20px;padding:32px var(--gutter)}
  .prf-row__title{grid-column:2;max-width:none}
  .prf-row__meta{grid-column:2;grid-row:2}
  .prf-row__go{width:40px;height:40px;grid-column:3;grid-row:1}
  .prf-row:hover .prf-row__title,.prf-row:focus-visible .prf-row__title{transform:translateX(12px)}
}
@media (max-width:640px){
  .prf-row{grid-template-columns:36px minmax(0,1fr);padding:28px var(--gutter)}
  .prf-row__go{display:none}
}

/* ==========================================================================
   3 — TESTIMONIAL
   ========================================================================== */
.prf-quote__rule{
  position:relative;
  border-top:1px solid var(--hairline);
  padding-top:88px;
  margin:0;
}
.prf-quote__text{
  margin-top:40px;
  max-width:15em;
  text-wrap:balance;
}
.prf-em{
  font-style:normal;
  border-bottom:2px solid var(--violet);
  padding-bottom:2px;
}
.prf-quote__by{
  margin-top:44px;
  padding-top:20px;
  border-top:1px solid var(--hairline);
  display:inline-block;
  color:var(--secondary);
}
@media (max-width:640px){
  .prf-quote__rule{padding-top:56px}
  .prf-quote__text{max-width:none}
}

/* ==========================================================================
   4 — FAQ
   ========================================================================== */
.prf-faq{
  position:relative;
  border-top:1px solid var(--hairline);
}
.prf-faq__grid{row-gap:64px}
.prf-faq__title{margin-top:24px;max-width:14ch}
.prf-faq__note{margin-top:20px;max-width:32ch}

.prf-acc{border-top:1px solid var(--hairline)}
.prf-acc:first-child{border-top:0}
.prf-acc:last-child{border-bottom:1px solid var(--hairline)}

.prf-acc__btn{
  display:grid;
  grid-template-columns:64px minmax(0,1fr) 24px;
  gap:24px;
  align-items:start;
  width:100%;
  text-align:left;
  padding:36px 0;
}
.prf-acc__n{
  color:var(--muted);
  padding-top:.55em;
  transition:color 640ms var(--ease);
}
.prf-acc__q{
  color:var(--secondary);
  transition:color 640ms var(--ease),transform 640ms var(--ease);
}
.prf-acc__btn:hover .prf-acc__q,
.prf-acc__btn[aria-expanded="true"] .prf-acc__q{color:var(--primary)}
.prf-acc__btn:hover .prf-acc__n,
.prf-acc__btn[aria-expanded="true"] .prf-acc__n{color:var(--secondary)}

.prf-acc__ico{
  position:relative;
  width:22px;height:22px;
  margin-top:.5em;
  justify-self:end;
}
.prf-acc__ico::before,.prf-acc__ico::after{
  content:"";position:absolute;background:var(--muted);
  transition:transform 640ms var(--ease),background 640ms var(--ease);
}
.prf-acc__ico::before{left:0;top:10.5px;width:22px;height:1px}
.prf-acc__ico::after{top:0;left:10.5px;width:1px;height:22px}
.prf-acc__btn:hover .prf-acc__ico::before,
.prf-acc__btn:hover .prf-acc__ico::after{background:var(--primary)}
.prf-acc__btn[aria-expanded="true"] .prf-acc__ico::before{background:var(--primary)}
.prf-acc__btn[aria-expanded="true"] .prf-acc__ico::after{transform:scaleY(0);background:var(--primary)}

.prf-acc__panel{
  height:0;
  overflow:hidden;
  transition:height 700ms var(--ease);
}
.prf-acc__panel p{
  margin:0;
  padding:0 48px 44px 88px;
  max-width:64ch;
  color:var(--secondary);
}
@media (max-width:640px){
  .prf-acc__btn{grid-template-columns:44px minmax(0,1fr) 22px;gap:14px;padding:28px 0}
  .prf-acc__panel p{padding:0 0 32px 58px}
}

/* ==========================================================================
   5 — CLOSING CTA
   ========================================================================== */
.prf-cta__grid{align-items:center;row-gap:72px}
.prf-cta__h{margin-top:32px;max-width:13ch}
.prf-cta__note{margin-top:28px;max-width:46ch}
.prf-cta__btns{margin-top:44px}

.prf-cta__art{display:flex;justify-content:flex-end;align-items:center}
.prf-cta__keeper{
  width:100%;
  max-width:520px;
  height:auto;
}
@media (max-width:980px){
  .prf-cta__art{justify-content:flex-start}
  .prf-cta__keeper{max-width:400px}
}

/* ==========================================================================
   Motion governance — the instrument freezes this piece too, and the
   reduced-motion still frame is composed, never blank.
   ========================================================================== */
.motion-off .prf-rail__pulse,
.motion-off .prf-causeway__trace{animation-play-state:paused !important}

@media (prefers-reduced-motion:reduce){
  .prf-rail__pulse{animation:none !important;stroke-dashoffset:900}
  .prf-causeway__trace{animation:none !important;stroke-dashoffset:1180}
  .prf-node{opacity:.85}
}
