/* v2r — the Caleb-inspired restyle of Workshops, About and Resume. It only switches on in the
   left-nav redesign (localhost:8902, or inside a shell that has html.v2rail); everywhere else
   these rules are inert. Layouts are untouched: type, color, lines and motion only. */
html.v2r{
  --v2r-font:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Inter","Segoe UI",Roboto,sans-serif;
  --ink:#171717;--muted:#928c88;--faint:#b4afab;--hairline:transparent;--hair-2:transparent;
  --mono:var(--v2r-font);--plex:var(--v2r-font);--ease-out:cubic-bezier(.32,.72,0,1);
  --v2r-fill:#f2f1f0;
}
html.v2r body{font-family:var(--v2r-font);letter-spacing:.012em;color:var(--ink)}
/* one family everywhere (the collage's handwritten notes keep their pen) */
html.v2r body *:not(.note):not(.note *){font-family:var(--v2r-font) !important}
html.v2r h1,html.v2r h2,html.v2r h3{letter-spacing:-.015em}
html.v2r h1{font-weight:500 !important}

/* ---- About ---- */
html.v2r h1 em,html.v2r .bio p .hl{color:var(--ink)}
html.v2r .bio p .hl{font-weight:500}
html.v2r .pvp p em{color:var(--ink)}
html.v2r .foot .say a{color:var(--ink);border-bottom:0;transition:color .3s var(--ease-out)}
html.v2r .foot .say a:hover{color:var(--accent)}
html.v2r .switch button{font-weight:500;letter-spacing:-.015em}
html.v2r .switch button .ct{display:none}
html.v2r .outs a{text-transform:none;letter-spacing:.012em;font-size:15px;font-weight:400;color:var(--muted);border-bottom:0}
html.v2r .outs a:hover{color:var(--accent)}
html.v2r .label,html.v2r .g-sec-head .note,html.v2r .lb .lb-x,html.v2r .foot .meta{text-transform:none;letter-spacing:.012em;font-size:13.5px;font-weight:400}

/* ---- Resume ---- */
html.v2r .pdf{text-transform:none;letter-spacing:.012em;font-size:14px;font-weight:500;border:0;background:var(--v2r-fill)}
html.v2r .pdf:hover{background:#ecebe9}
html.v2r .lbl,html.v2r .kvr .k{text-transform:none;letter-spacing:.012em;font-size:14px;font-weight:400;color:var(--muted)}
html.v2r .yr{text-transform:none;letter-spacing:.012em;font-size:14px;font-weight:400}
html.v2r .contact a{border-bottom:0}

/* ---- Workshops ---- */
html.v2r .ftab,html.v2r .file i{text-transform:none;letter-spacing:.012em}
html.v2r .doors a,html.v2r .doors button{color:var(--ink)}
html.v2r .doors a:hover,html.v2r .doors button:hover{color:var(--accent)}
html.v2r .chev{border:0;background:var(--v2r-fill)}
html.v2r .row:hover .chev{background:var(--accent);color:#fff}
html.v2r .talk.open .chev{background:var(--ink);color:#fff}
html.v2r .kits{border-top:0;border-bottom:0}

/* Workshops keeps its thin outlines around covers and chapter thumbnails (the lines it drops are set above) */
html.v2r:has(.talk){--hairline:rgba(27,26,24,.13)}
html.v2r header{border-radius:14px}
/* hovering a workshop: the chevron gives one soft, glidey bob (a light squash, a gentle lift, a settle),
   its arrow trailing a beat behind */
html.v2r .row:hover .chev{animation:v2rSquash 1s cubic-bezier(.37,0,.63,1)}
html.v2r .row:hover .chev svg{animation:v2rDip 1s cubic-bezier(.37,0,.63,1) .08s}
@keyframes v2rSquash{
  0%{scale:1 1;translate:0 0}
  22%{scale:1.06 .95;translate:0 1px}
  52%{scale:.97 1.04;translate:0 -4px}
  78%{scale:1.01 .99;translate:0 0}
  100%{scale:1 1;translate:0 0}
}
@keyframes v2rDip{
  0%{translate:0 0}
  35%{translate:0 2px}
  65%{translate:0 -1px}
  100%{translate:0 0}
}
@media (prefers-reduced-motion:reduce){html.v2r .row:hover .chev,html.v2r .row:hover .chev svg{animation:none}}

/* Resume: the chapter chevron becomes the same soft circle as Workshops, with the same glidey bob */
html.v2r .line[data-x] .tocrow::after{width:30px;height:30px;margin:-6px 0;border:0;border-radius:50%;transform:none;
  background:var(--v2r-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6.5l3.5 3.5 3.5-3.5' fill='none' stroke='%23928c88' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
  transition:background-color .3s var(--ease-out),rotate .45s cubic-bezier(.76,0,.24,1)}
html.v2r .line[data-x]:hover .tocrow::after{background-color:var(--accent);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6.5l3.5 3.5 3.5-3.5' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  animation:v2rSquash 1s cubic-bezier(.37,0,.63,1)}
html.v2r .line.open .tocrow::after{rotate:180deg;transform:none;background-color:var(--ink);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6.5l3.5 3.5 3.5-3.5' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
@media (prefers-reduced-motion:reduce){html.v2r .line[data-x]:hover .tocrow::after{animation:none}}

/* the switched variation (:8901): the page sits on the soft gray and its small fills turn white */
html.v2r.v2r-inv,html.v2r.v2r-inv body{background:#fff}
html.v2r.v2r-inv{--v2r-fill:#fff}
html.v2r.v2r-inv .pdf:hover{background:#fbfbfa}
/* on the gray, the chevron circles stay white but read darker at rest */
html.v2r.v2r-inv .chev{color:var(--ink);box-shadow:0 1px 2px rgba(0,0,0,.07)}
html.v2r.v2r-inv .line[data-x]:not(.open):not(:hover) .tocrow::after{box-shadow:0 1px 2px rgba(0,0,0,.07);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 6.5l3.5 3.5 3.5-3.5' fill='none' stroke='%23171717' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
/* chevron circles on the gray: a slightly deeper gray fill instead of white */
html.v2r.v2r-inv .chev{background:#ebebe9;box-shadow:none}
html.v2r.v2r-inv .line[data-x]:not(.open):not(:hover) .tocrow::after{background-color:#ebebe9;box-shadow:none}
html.v2r.v2r-inv .pdf{background:#ebebe9}
html.v2r.v2r-inv .pdf:hover{background:#e3e3e1}
/* pages sit on white now (only the homepage keeps the gray panel): fills go back to the soft gray */
html.v2r.v2r-inv{--v2r-fill:#f2f1f0}
html.v2r.v2r-inv .chev{background:#f2f1f0}
html.v2r.v2r-inv .line[data-x]:not(.open):not(:hover) .tocrow::after{background-color:#f2f1f0}
html.v2r.v2r-inv .pdf{background:#f2f1f0}
html.v2r.v2r-inv .pdf:hover{background:#ecebe9}

/* Resume: opening a role springs open with a little overshoot, then the scope line and each bullet
   pop up one after another; the side marker draws itself down */
html.v2r .disc{transition:height .62s cubic-bezier(.34,1.25,.5,1),opacity .3s ease}
html.v2r .line.open .disc .scope,html.v2r .line.open .disc li{animation:v2rPop .55s cubic-bezier(.34,1.45,.55,1) backwards}
html.v2r .line.open .disc .scope{animation-delay:.08s}
html.v2r .line.open .disc li:nth-child(1){animation-delay:.12s}
html.v2r .line.open .disc li:nth-child(2){animation-delay:.19s}
html.v2r .line.open .disc li:nth-child(3){animation-delay:.26s}
html.v2r .line.open .disc li:nth-child(4){animation-delay:.33s}
html.v2r .line.open .disc li:nth-child(n+5){animation-delay:.4s}
@keyframes v2rPop{0%{opacity:0;transform:translateY(10px) scale(.97)}100%{opacity:1;transform:none}}
html.v2r .line::before{transform:scaleY(0);transform-origin:50% 0;transition:opacity .4s ease,transform .6s cubic-bezier(.34,1.3,.5,1)}
html.v2r .line.flash::before,html.v2r .line.open::before{transform:scaleY(1)}
html.v2r .line.flash::before{transition:opacity .2s ease,transform .55s cubic-bezier(.34,1.3,.5,1)}
@media (prefers-reduced-motion:reduce){html.v2r .line.open .disc .scope,html.v2r .line.open .disc li{animation:none}html.v2r .line::before{transform:none}}

/* Workshops: opening a talk springs open like the resume, and what's inside (summary, video,
   chapters, photos) pops up one piece after another */
html.v2r .about{transition:grid-template-rows .62s cubic-bezier(.34,1.2,.5,1)}
html.v2r .talk.open .about-in > *{animation:v2rPop .55s cubic-bezier(.34,1.45,.55,1) backwards}
html.v2r .talk.open .about-in > :nth-child(1){animation-delay:.08s}
html.v2r .talk.open .about-in > :nth-child(2){animation-delay:.16s}
html.v2r .talk.open .about-in > :nth-child(3){animation-delay:.24s}
html.v2r .talk.open .about-in > :nth-child(n+4){animation-delay:.32s}
@media (prefers-reduced-motion:reduce){html.v2r .talk.open .about-in > *{animation:none}}
