/* Nudge · Partner with Nudge (/partners and the invitation shells). Loaded after site.css and
   built only from its tokens: the four colours, the cream ramp, the system stacks, --ease, 2px
   radii, hairlines. No webfonts, no shadows, no gradients. Prefix pt-.

   THE NO-SCRIPT RULE HOLDS HERE TOO. Nothing is hidden until a script runs unless the rule is gated
   on .js (set by the head boot script and removed again if partners.js never reports in), so with
   scripts off every word is visible: all five gates, all three situations, every capability line.
   What the script adds is the scan, the gate line, the record, the brief and the reveals.

   MOTION. transform, opacity and clip-path only; one eased curve; one pass each; nothing loops but
   the marquee site.css already runs. Every effect has a static end state and the reduced-motion
   block at the bottom applies that state at once. */

/* ---------- small shared ---------- */
.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.pt-label{color:var(--teal);letter-spacing:.08em;margin-bottom:22px}
.pt-big{font-weight:900;font-size:clamp(3rem,8vw,6rem);line-height:.8;letter-spacing:-.04em;color:var(--teal);font-variant-numeric:tabular-nums}
.pt-disc{margin-top:34px;color:var(--c40);letter-spacing:.06em;max-width:70ch;line-height:1.7}
.pt-hero h1{max-width:16ch}
.pt-hero .ctas .btn{min-height:48px}
/* The nav is position:sticky;top:0 (site.css). Any in-page anchor (hero primary to #overlap, the
   skip link to #main, the nav links) must clear it, or the target's eyebrow lands under the header.
   100px covers the nav's 26px/26px padding and its tallest child on both desktop and mobile. */
#main,.pt-hero,.sec{scroll-margin-top:100px}

/* ---------- hero: stroke to fill on the final line ----------
   site.css:332 runs this swap in reverse on hover (solid cream to a 1px stroke). On entry it runs
   forward: the line is drawn in outline, and a solid cream copy of the same words (::after, from
   data-t) wipes across it with clip-path, .9s on --ease, 400ms after the hero arrives. Without a
   script the line is simply solid. */
.pt-fill{display:inline-block;position:relative;white-space:normal}
.js .pt-fill{color:transparent;-webkit-text-stroke:1px var(--c40)}
.js .pt-fill .dot{color:var(--teal);-webkit-text-stroke:0;position:relative;z-index:1}
.js .pt-fill::after{content:attr(data-t);position:absolute;left:0;top:0;width:100%;color:var(--cream);-webkit-text-stroke:0;clip-path:inset(0 100% 0 0);transition:clip-path .9s var(--ease) .4s}
.js .hero.in .pt-fill::after{clip-path:inset(0 0 0 0)}
.js .hero.done .pt-fill{color:var(--cream);-webkit-text-stroke:0}
.js .hero.done .pt-fill::after{content:none}

/* ---------- form C: full-bleed statement ---------- */
.pt-c h2{font-size:clamp(2.4rem,5.6vw,5rem);max-width:16ch}
.pt-state{margin-top:34px;display:grid;grid-template-columns:1fr 1fr;gap:clamp(24px,4vw,64px);max-width:1100px}
.pt-state p{font-size:1.1rem;line-height:1.65}
@media(max-width:860px){.pt-state{grid-template-columns:1fr}}

/* ---------- the set-piece: find the intersection ----------
   Three columns across two shared vertical hairlines: situations (a radio group set as an editorial
   list), what the partner brings, what Nudge brings. Choosing a situation runs one teal scan down
   the whole grid (.pt-scan, a 1px line translated from top to bottom, .6s, once). Rows that belong
   to the situation settle at full cream and are marked IN PLAY; the rest settle to cream-40. Before
   any choice every row is at full cream: the list is the service presentation on its own. */
.pt-overlap h2{font-size:clamp(2.6rem,6.4vw,6rem)}
.pt-grid{position:relative;display:grid;grid-template-columns:1.05fr .8fr 1.35fr;gap:0;margin-top:44px;border-top:1px solid var(--c10)}
.pt-sit,.pt-col{padding:28px clamp(16px,2.4vw,40px) 34px;min-width:0}
.pt-sit{border:0;margin:0;padding-left:0}
.pt-col{border-left:1px solid var(--c10)}
.pt-nudge{padding-right:0}
.pt-colh{display:block;color:var(--c40);margin-bottom:22px;letter-spacing:.08em}
.pt-sit legend{padding:0;float:left;width:100%}
.pt-sit legend+.pt-s{clear:both}
.pt-s{position:relative}
.pt-s input{position:absolute;opacity:0;width:1px;height:1px;left:12px;top:24px;pointer-events:none}
.pt-s label{display:grid;grid-template-columns:auto 1fr;gap:18px;align-items:start;padding:22px 12px 24px 0;border-bottom:1px solid var(--c10);cursor:pointer;min-height:44px;transition:color .3s}
.pt-s:last-child label{border-bottom:0}
.pt-s .pt-big{font-size:clamp(2.6rem,5vw,4.2rem);color:var(--c20);transition:color .3s ease-in-out;min-width:1.6em}
.pt-st b{display:block;color:var(--cream);font-weight:900;text-transform:uppercase;letter-spacing:-.02em;line-height:1.05;font-size:clamp(1.1rem,1.5vw,1.35rem)}
.pt-st>span{display:block;margin-top:8px;font-size:.98rem;color:var(--c60);line-height:1.5}
.pt-st .pt-pot{display:none}
.js .pt-s label:hover .pt-big,.pt-s input:checked+label .pt-big{color:var(--teal)}
.pt-s input:focus-visible+label{outline:2px solid var(--teal);outline-offset:3px;border-radius:2px}
.pt-s input:checked+label{color:var(--cream)}
.pt-s input:checked+label .pt-st>span{color:var(--c80)}
.js .pt-grid.chosen .pt-s input:not(:checked)+label b{color:var(--c40)}
.pt-col ul,.pt-col ol{list-style:none}
.pt-col li{position:relative;display:grid;grid-template-columns:1fr auto;gap:12px;align-items:start;padding:16px 0;border-bottom:1px solid var(--c10);color:var(--cream);transition:color .3s ease-in-out,opacity .3s}
.pt-nudge li{grid-template-columns:auto 1fr auto;gap:16px;padding:18px 0}
.pt-col li:last-child{border-bottom:0}
.pt-t{font-size:1.05rem;font-weight:700}
.pt-num{color:var(--teal);padding-top:5px;min-width:22px}
.pt-nudge b{display:block;font-weight:700;font-size:1.05rem;line-height:1.3}
.pt-d{display:block;margin-top:6px;font-size:.92rem;line-height:1.5;color:var(--c60);max-width:52ch;transition:color .3s ease-in-out}
.pt-meta{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:8px;align-items:baseline}
.pt-mark{color:var(--c40);letter-spacing:.08em;font-size:10px}
.pt-more{color:var(--c60);text-decoration:none;font-size:10px;letter-spacing:.08em;border-bottom:1px solid var(--c20);padding-bottom:1px;transition:color .3s,border-color .3s}
.pt-more:hover{color:var(--teal);border-color:var(--teal)}
.pt-ip{color:var(--teal);letter-spacing:.08em;font-size:10px;padding-top:6px;opacity:0;transform:translateX(6px);transition:opacity .3s ease-in-out,transform .3s var(--ease)}
.pt-grid.chosen li.lit .pt-ip{opacity:1;transform:none}
.pt-grid.chosen li:not(.lit){color:var(--c40)}
.pt-grid.chosen li:not(.lit) .pt-num{color:var(--c20)}
.pt-grid.chosen li:not(.lit) .pt-d{color:var(--c20)}
.pt-grid.chosen li.lit .pt-d{color:var(--c80)}
.pt-grid.chosen li.lit .pt-num{color:var(--teal)}
/* the scan itself: a 1px teal line, drawn only while a run is on */
.pt-scan{position:absolute;left:0;right:0;top:0;height:1px;background:var(--teal);opacity:0;pointer-events:none;will-change:transform}
.pt-scan.run{animation:pt-sweep .6s ease-out 1 both}
@keyframes pt-sweep{0%{opacity:1;transform:translateY(0)}90%{opacity:1}100%{opacity:0;transform:translateY(var(--h,600px))}}
/* rows take their lit state as the line passes them: the delay is set per row by the script */
.pt-grid.scanning li{transition-delay:var(--t,0s)}
.pt-grid.scanning li .pt-ip{transition-delay:var(--t,0s)}
.pt-potential{margin-top:34px;padding-top:26px;border-top:1px solid var(--c10);font-size:1.15rem;line-height:1.55;color:var(--cream);display:grid;grid-template-columns:auto 1fr;gap:10px 28px;align-items:baseline;max-width:1100px}
.pt-potential .mono{color:var(--teal);letter-spacing:.08em;padding-top:4px}
#potential{transition:opacity .3s}
#potential.swap{opacity:0}
@media(max-width:1000px){.pt-grid{grid-template-columns:1fr 1fr}.pt-nudge{grid-column:1 / -1;border-left:0;border-top:1px solid var(--c10);padding-left:0}}
@media(max-width:760px){
  .pt-grid{grid-template-columns:1fr}
  .pt-col{border-left:0;border-top:1px solid var(--c10);padding-left:0;padding-right:0}
  .pt-s label{padding-right:0}
  .pt-nudge li{grid-template-columns:auto 1fr;}
  .pt-nudge li .pt-ip,.pt-partner li .pt-ip{grid-column:2;justify-self:start;padding-top:0}
  .pt-potential{grid-template-columns:1fr}
}

/* ---------- form D: the network, split editorial ---------- */
.pt-split h2{font-size:clamp(2.2rem,4.8vw,4.4rem);max-width:12ch}
.pt-x{display:inline-block;color:transparent;-webkit-text-stroke:1px var(--teal);transition:color .9s var(--ease) .6s}
.pt-split.in .pt-x{color:var(--teal)}
.pt-net p{font-size:1.1rem;line-height:1.65}
.pt-net p+p{margin-top:18px}
.pt-kindsh{margin-top:34px;color:var(--teal);letter-spacing:.08em}
.pt-kinds{list-style:none;margin-top:12px;display:flex;flex-wrap:wrap;gap:10px}
.pt-kinds li{border:1px solid var(--c20);border-radius:2px;padding:9px 14px;font-size:.95rem;color:var(--c80)}
.pt-limits{margin-top:22px;font-family:var(--mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--c40);line-height:1.7}

/* ---------- form B: editorial list with display numbers ---------- */
.pt-b h2{font-size:clamp(2rem,4.4vw,3.6rem)}
.pt-ways{list-style:none;margin-top:30px;max-width:1100px}
.pt-ways li{display:grid;grid-template-columns:minmax(120px,.3fr) 1fr;gap:clamp(20px,3vw,48px);align-items:start;padding:34px 0;border-bottom:1px solid var(--c10)}
.pt-ways li:last-child{border-bottom:0}
.pt-ways h3{font-size:clamp(1.4rem,2.2vw,2rem);letter-spacing:-.02em}
.pt-ways p{margin-top:12px;font-size:1.08rem;line-height:1.6;max-width:58ch}
.pt-note{margin-top:30px;padding-top:24px;border-top:1px solid var(--c10);font-size:1rem;color:var(--c60);max-width:60ch}
@media(max-width:600px){.pt-ways li{grid-template-columns:1fr;gap:12px}.pt-ways .pt-big{font-size:3rem}}

/* ---------- form A: the collaboration journey with the gate line ----------
   Five marks on one hairline. The teal progress line is scaleX(var(--p)) and moves .7s on --ease
   when the walk through advances, and nothing else moves. Below it the current gate is set in type
   (mono count, 900 headline, body, the three party marks) and the record keeps its card, because it
   is output. With scripts off all five gates are on the page in order. */
.pt-a h2{font-size:clamp(2.4rem,5.6vw,5rem)}
.pt-line{position:relative;margin-top:44px;height:1px;background:var(--c10)}
.pt-prog{position:absolute;left:0;top:0;height:1px;width:100%;background:var(--teal);transform:scaleX(var(--p,0));transform-origin:left;transition:transform .7s var(--ease)}
.pt-gates{list-style:none;display:grid;grid-template-columns:repeat(5,1fr);position:absolute;left:0;right:0;top:-5px}
.pt-gates li{position:relative;padding-top:24px}
.pt-gates li::before{content:'';position:absolute;left:0;top:0;width:11px;height:11px;border-radius:9999px;background:var(--ground);border:1px solid var(--c20);transition:border-color .3s,background .3s}
.pt-gates li.on::before{background:var(--teal);border-color:var(--teal)}
.pt-gates li .mono{display:block;color:var(--c40)}
.pt-gates li b{display:block;font-weight:900;text-transform:uppercase;letter-spacing:-.02em;font-size:clamp(.9rem,1.3vw,1.2rem);color:var(--c40);margin-top:6px;transition:color .3s}
.pt-gates li.on b{color:var(--cream)}
.pt-gates li.past b{color:var(--c60)}
.pt-jgrid{display:grid;grid-template-columns:1.3fr .9fr;gap:clamp(30px,5vw,80px);align-items:start;margin-top:110px}
.pt-gate{padding-bottom:30px}
.pt-gate+.pt-gate{border-top:1px solid var(--c10);padding-top:30px}
.js .pt-gate{display:none;padding-top:0;border-top:0}
.js .pt-gate.on{display:block}
.pt-gate h3{font-size:clamp(2.2rem,4.6vw,4.2rem);margin:12px 0 18px}
.pt-gate p{font-size:1.1rem;line-height:1.6;max-width:50ch}
.pt-parties{margin-top:18px;color:var(--c40);letter-spacing:.08em;line-height:2}
.pt-parties span.on{color:var(--teal)}
.pt-arrow{color:var(--c20)}
.pt-jctl{margin-top:30px}
.js .pt-jctl{display:flex}
.pt-jctl{display:none}
.pt-record{border:1px solid var(--c10);border-radius:2px;background:var(--surface);padding:28px 30px}
.pt-record>.mono{color:var(--c60);margin-bottom:18px}
#record{list-style:none}
#record li{padding:14px 0;border-bottom:1px solid var(--c10);opacity:1}
#record li:last-child{border-bottom:0}
#record li b{display:block;color:var(--cream);text-transform:uppercase;font-weight:900;letter-spacing:-.02em;font-size:1rem}
#record li span{display:block;margin-top:4px;font-size:.95rem;color:var(--c80)}
#record .pt-idle{color:var(--c60);font-size:.95rem}
.js #record li.new{animation:pt-in .5s var(--ease) 1 both}
@keyframes pt-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.pt-rc{margin-top:16px;color:var(--c40);letter-spacing:.08em}
.pt-record{display:none}
.js .pt-record{display:block}
@media(max-width:860px){.pt-jgrid{grid-template-columns:1fr;margin-top:70px}}
@media(max-width:600px){.pt-gates li b{display:none}.pt-gates li .mono{font-size:10px}.pt-jgrid{margin-top:60px}}

/* ---------- the brief dialog ---------- */
.pt-dialog{margin:auto;max-height:calc(100vh - 32px);overflow:auto;background:var(--surface);color:var(--c80);border:1px solid var(--c10);border-radius:2px;padding:34px 32px;max-width:min(680px,calc(100vw - 32px));width:100%}
.pt-dialog::backdrop{background:rgba(1,28,26,.82)}
.pt-dialog>.mono{color:var(--c60);margin-bottom:10px}
.pt-dialog h3{font-size:clamp(1.6rem,3vw,2.4rem)}
.pt-bi{margin-top:14px;font-size:1rem;line-height:1.6}
#brief-text{margin-top:20px;padding:18px 20px;border:1px solid var(--c10);border-radius:2px;background:var(--ground);font-family:var(--mono);font-size:12px;line-height:1.7;color:var(--c80);white-space:pre-wrap;overflow-wrap:anywhere;max-height:40vh;overflow:auto}
.pt-bf{margin-top:16px;color:var(--c40);line-height:1.7}
.pt-dialog .ctas{margin-top:22px}

/* ---------- the one inverted panel ----------
   Teal ground, ground-coloured type, the only inverted surface on the page. The teal arrives by a
   clip-path wipe from the left, once, on the inner box rather than the section, because Chromium
   counts a clip-path when it measures intersection and a fully clipped section never "arrives".
   Without a script it is simply there. */
section.sec.teal.pt-panel{background:transparent;padding:0;margin:40px calc(-1 * clamp(20px,4.5vw,64px)) 0}
.pt-panelin{background:var(--teal);color:var(--ground);padding:clamp(70px,11vh,130px) clamp(20px,4.5vw,64px)}
.pt-paneltext{font-weight:900;text-transform:uppercase;letter-spacing:-.03em;line-height:1.02;font-size:clamp(1.8rem,4.6vw,4.2rem);max-width:30ch;color:var(--ground)}
/* Two-tier per Angela's review and god's 12:31/12:33 rulings: the first two sentences at display
   scale above, the third as the house inverted secondary line (.sub -> .sec .sub size, .teal .sub
   colour rgba(1,28,26,.8), the cream-80 equivalent on teal). All three sentences stay, verbatim. */
.pt-paneltail{max-width:46ch}
.js .pt-panelin{clip-path:inset(0 100% 0 0);transition:clip-path .9s var(--ease)}
.js .pt-panel.in .pt-panelin{clip-path:inset(0 0 0 0)}
.pt-panel ::selection{background:var(--ground);color:var(--cream)}

/* ---------- the invitation shell ---------- */
.pt-shell h1{max-width:14ch}
.pt-gateform{margin-top:34px;display:grid;gap:12px;max-width:420px}
.pt-gateform label{color:var(--c60)}
.pt-gateform input{font:inherit;font-size:1.05rem;color:var(--cream);background:var(--surface);border:1px solid var(--c20);border-radius:2px;padding:14px 16px;min-height:48px}
.pt-gateform input:focus-visible{border-color:var(--teal);outline:2px solid var(--teal);outline-offset:3px}
.pt-msg{margin-top:22px;color:var(--teal);letter-spacing:.06em;line-height:1.7}
.pt-shell .pt-disc a{color:var(--c60)}

/* ---------- reduced motion: every end state at once ---------- */
@media(prefers-reduced-motion:reduce){
  .js .pt-fill,.js .pt-fill::after{transition:none!important}
  .js .pt-fill{color:var(--cream);-webkit-text-stroke:0}
  .js .pt-fill::after{content:none}
  .pt-scan,.pt-scan.run{animation:none!important;opacity:0!important}
  .pt-grid.scanning li,.pt-grid.scanning li .pt-ip,.pt-ip,.pt-col li,.pt-d,.pt-s .pt-big{transition:none!important;transition-delay:0s!important}
  .pt-prog,.pt-x,.pt-gates li b{transition:none!important}
  .js .pt-panelin{clip-path:none;transition:none!important}
  .js #record li.new{animation:none!important}
  #potential{transition:none}
}
